Lune

INFOCOM2026Top-tier venue

T4G: Trace-based P4 Program Generation

Chenxing Ji, Timo Jugariu, Sebastijan Dumancic, Fernando Kuipers

Abstract

While the adoption of programmable data planes is increasing, writing correct and efficient P4 programs remains a challenging and error-prone process. This hinders the rapid development of custom in-network functionality and limits the accessibility of data-plane programming to a small set of experts. In this paper, we present T4G, a system that automatically synthesizes P4 programs from network behavior expressed as input-output network traces. Unlike prior approaches that rely on high-level abstraction or domain-specific languages, T4G operates with example packet captures, eliminating the need for manual abstraction or rule specifications from network operators. T4G introduces a novel input-output grouping technique that identifies logical packet transformation behavior from packet traces, and performs a divide-and-conquer synthesis that scales to complex forwarding logic. Our experimental results show the ability of T4G to generate different types of programs and demonstrate the potential of T4G in generating complex P4 programs.

Ask Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

its abstract · related work

Get the answer

Free to start. No credit card required.

Related papers

  1. P4Inv: Inferring Packet Invariants for Verification of Stateful P4 ProgramsDelong Zhang, Chong Ye, Fei HeINFOCOM 2024 · 3 citations
  2. NetCL: A Unified Programming Framework for In-Network ComputingGeorge Karlos, Henri E. Bal, Lin WangSC 2024 · 3 citations
  3. Sequence Abstractions for Flexible, Line-Rate Network MonitoringAndrew Johnson, Ryan Beckett, Xiaoqi Chen, Ratul Mahajan et al.NSDI 2024 · 4 citations
  4. Meissa: scalable network testing for programmable data planesNaiqian Zheng, Mengqi Liu, Ennan Zhai, Hongqiang Harry Liu et al.SIGCOMM 2022 · 17 citations
  5. P4runpro: Enabling Runtime Programmability for RMT Programmable SwitchesYifan Yang, Lin He, Jiasheng Zhou, Xiaoyi Shi et al.SIGCOMM 2024 · 12 citations
Dusk over the sea between two cliffs drawn in fine vertical lines