[Paper Review] Packet Transactions: A Programming Model for Data-Plane Algorithms at Hardware Speed
This paper introduces Domino, a C-like programming language for data-plane algorithms that enables hardware-line-rate performance through packet transactions—atomic, isolated code blocks compiled to PISA abstract machines. The key contribution is a high-level, efficient, and portable way to implement dynamic network functions without hardware reconfiguration.
Data-plane algorithms execute on every packet traversing a network switch; they encompass many schemes for congestion control, network measurement, active-queue management, and load balancing. Because these algorithms are implemented in hardware today, they cannot be changed after being built. To address this problem, recent work has proposed designs for programmable line-rate switches. However, the languages to program them closely resemble the underlying hardware, rendering them inconvenient for this purpose. This paper presents Domino, a C-like imperative language to express data-plane algorithms. Domino introduces the notion of a packet transaction, defined as a sequential code block that is atomic and isolated from other such code blocks. The Domino compiler compiles Domino code to PISA, a family of abstract machines based on emerging programmable switch chipsets. We show how Domino enables several data-plane algorithms written in C syntax to run at hardware line rates.
Motivation & Objective
- To address the inflexibility of hardware-implemented data-plane algorithms that cannot be updated post-deployment.
- To overcome the complexity of existing programmable switch languages, which closely mirror low-level hardware and hinder portability and expressiveness.
- To design a high-level programming model that enables efficient, correct, and maintainable implementation of data-plane algorithms at line rate.
- To bridge the semantic gap between high-level algorithm design and low-level programmable switch architectures.
Proposed method
- Introduce the concept of a packet transaction: a sequential, atomic, and isolated code block that executes per packet.
- Design Domino as a C-like imperative language to express data-plane logic using packet transactions.
- Compile Domino code into PISA, a family of abstract machines targeting modern programmable switch chipsets.
- Ensure correctness and performance by enforcing isolation and atomicity of packet transactions during compilation.
- Leverage PISA’s abstraction layer to achieve portability across different programmable switch platforms.
- Use static analysis and compilation techniques to optimize transaction execution for line-rate throughput.
Experimental results
Research questions
- RQ1Can a high-level, C-like language express data-plane algorithms with performance matching that of hand-optimized hardware implementations?
- RQ2Can packet transactions provide sufficient abstraction to ensure correctness and isolation while maintaining line-rate performance?
- RQ3To what extent does Domino enable portable and maintainable implementations of data-plane algorithms across different programmable switch architectures?
- RQ4How does the compilation pipeline from Domino to PISA preserve functional correctness and performance?
Key findings
- Domino enables data-plane algorithms written in C-like syntax to achieve hardware-line-rate performance on programmable switches.
- The packet transaction abstraction ensures atomicity and isolation, simplifying reasoning about correctness in concurrent packet processing.
- The Domino compiler successfully translates high-level code into efficient PISA machine code, preserving functional semantics.
- The approach demonstrates that high-level abstractions can achieve performance comparable to low-level hardware implementations.
- The model supports multiple data-plane algorithms, including congestion control and active-queue management, at line rate without performance degradation.
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.