[Paper Review] A Survey on Data Plane Programming with P4: Fundamentals, Advances, and Applied Research
This survey provides a comprehensive tutorial on P4 programming for programmable data planes, covering its foundations, advancements, and applied research. It analyzes 245 P4-based research papers across domains, demonstrating how P4's core features enable flexible, high-performance network customization in data centers, 5G, and network function virtualization.
Programmable data planes allow users to define their own data plane algorithms for network devices including appropriate data plane application programming interfaces (APIs) which may be leveraged by user-defined software-defined networking (SDN) control. This offers great flexibility for network customization, be it for specialized, commercial appliances, e.g., in 5G or data center networks, or for rapid prototyping in industrial and academic research. Programming protocol-independent packet processors (P4) has emerged as the currently most widespread abstraction, programming language, and concept for data plane programming. It is developed and standardized by an open community, and it is supported by various software and hardware platforms. In the first part of this paper we give a tutorial of data plane programming models, the P4 programming language, architectures, compilers, targets, and data plane APIs. We also consider research efforts to advance P4 technology. In the second part, we categorize a large body of literature of P4-based applied research into different research domains, summarize the contributions of these papers, and extract prototypes, target platforms, and source code availability. For each research domain, we analyze how the reviewed works benefit from P4's core features. Finally, we discuss potential next steps based on our findings.
Motivation & Objective
- To provide a detailed tutorial on P4 programming, including its language, architectures, compilers, and data plane APIs.
- To survey and categorize 245 P4-based applied research papers published up to 2021 across diverse networking domains.
- To analyze how P4's core features—such as protocol independence and user-defined packet processing—enable innovation in network customization.
- To identify research gaps and future directions in P4 development, especially in hardware support, debugging, and control plane integration.
- To assess the role of P4 in enabling disaggregation, reducing vendor lock-in, and accelerating prototyping in academia and industry.
Proposed method
- Systematic literature review of P4-based research papers from journals, conferences, workshops, standards, and source code repositories up to end-2020 and selected 2021 publications.
- Categorization of 245 papers into 10 research domains, including data centers, 5G, network functions, and security, with analysis of prototypes, target platforms, and source code availability.
- Evaluation of P4’s core features—such as protocol independence, extensible header parsing, and extern functions—across domains to determine their enabling role in implementations.
- Survey of P4 toolchains, including compilers, bmv2 software switch, and Tofino ASIC targets, to assess deployment and portability trade-offs.
- Analysis of advancements in P4 development, including optimization of testing, debugging, and control plane operation for P4-based systems.
- Comparison of P4 with alternative data plane programming models (e.g., Click, VPP, NPL) to contextualize its current dominance in research and industry.
Experimental results
Research questions
- RQ1How has P4 evolved in relation to SDN and other data plane programming models, and what makes it the dominant abstraction today?
- RQ2Which core features of P4—such as protocol independence, user-defined headers, and extern functions—most significantly enable innovation in applied research?
- RQ3What are the most common application domains for P4-based research, and how do they leverage P4’s capabilities in terms of target platforms and prototype deployment?
- RQ4To what extent do P4-based prototypes rely on software emulators (e.g., bmv2) versus hardware platforms (e.g., Tofino), and what are the limitations of current hardware support?
- RQ5What are the key challenges and opportunities in advancing P4 technology, particularly in control plane integration, testing, and hardware portability?
Key findings
- P4 has seen a dramatic rise in academic and industrial research from 2018 to 2021, with 245 P4-based research papers surveyed, indicating strong adoption for rapid prototyping.
- The bmv2 software switch is the most widely used target platform, with the majority of P4 prototypes implemented in software due to complexity and lack of extern function support on current hardware.
- Tofino ASIC is the leading hardware platform for high-throughput, production-grade P4 deployments, particularly in data centers and wide area networks.
- Extern functions—such as encryption, floating-point operations, and custom hashing—are critical for extending P4’s capabilities beyond standard packet processing, though they reduce portability.
- P4 enables significant benefits in network disaggregation, allowing organizations to avoid vendor lock-in and build customized, cost-effective appliances using off-the-shelf programmable components.
- The survey identifies a growing need for better tooling in debugging, testing, and control plane integration to further accelerate P4 adoption beyond prototyping.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.