Skip to main content
QUICK REVIEW

[Paper Review] Packet Transactions: High-level Programming for Line-Rate Switches

Anirudh Sivaraman, Mihai Budiu|arXiv (Cornell University)|Dec 16, 2015
Interconnection Networks and SystemsComputer Science59 references19 citations
TL;DR

This paper introduces Domino, a C-like domain-specific language that enables high-level programming of stateful data-plane algorithms for line-rate programmable switches. By abstracting packet processing into atomic, isolated 'packet transactions,' Domino compiles directly to low-level microcode on Banzai machine models, ensuring line-rate performance or rejection—enabling efficient, hardware-verified deployment of congestion control, scheduling, and security algorithms without performance trade-offs.

ABSTRACT

Many algorithms for congestion control, scheduling, network measurement, active queue management, security, and load balancing require custom processing of packets as they traverse the data plane of a network switch. To run at line rate, these data-plane algorithms must be in hardware. With today's switch hardware, algorithms cannot be changed, nor new algorithms installed, after a switch has been built. This paper shows how to program data-plane algorithms in a high-level language and compile those programs into low-level microcode that can run on emerging programmable line-rate switching chipsets. The key challenge is that these algorithms create and modify algorithmic state. The key idea to achieve line-rate programmability for stateful algorithms is the notion of a packet transaction : a sequential code block that is atomic and isolated from other such code blocks. We have developed this idea in Domino, a C-like imperative language to express data-plane algorithms. We show with many examples that Domino provides a convenient and natural way to express sophisticated data-plane algorithms, and show that these algorithms can be run at line rate with modest estimated die-area overhead.

Motivation & Objective

  • To address the lack of programmability in line-rate switches, which currently require hardware reconfiguration for new data-plane algorithms.
  • To enable network operators and researchers to implement and deploy complex, stateful data-plane algorithms (e.g., congestion control, active queue management) without sacrificing performance.
  • To bridge the gap between high-level algorithmic specification and low-level hardware execution on emerging programmable switching chips.
  • To provide a predictable compilation model that guarantees line-rate execution or rejects programs outright, avoiding performance degradation.

Proposed method

  • Introduce Banzai, a machine model abstracting key constraints of programmable line-rate switches, including state isolation and atomic instruction units (atoms).
  • Define packet transactions as sequential, atomic, and isolated code blocks that encapsulate stateful processing per packet, abstracting away concurrency concerns.
  • Design Domino, a C-like imperative language with syntax and semantics tailored for packet transactions, disallowing loops and shared state to ensure line-rate feasibility.
  • Implement an all-or-nothing compiler that translates Domino programs into Banzai atom pipelines, rejecting any program that cannot execute at line rate.
  • Use atom templates and state management constraints to enforce that only computationally bounded, line-rate-safe operations are permitted.
  • Evaluate expressiveness by implementing diverse data-plane algorithms (e.g., AQM, load balancing, congestion feedback) in Domino and verifying line-rate feasibility.

Experimental results

Research questions

  • RQ1Can high-level, imperative programming of stateful data-plane algorithms be achieved on line-rate programmable switches without performance degradation?
  • RQ2How can packet-level stateful processing be abstracted into a safe, composable, and predictable programming model for hardware compilation?
  • RQ3What compilation strategy ensures that only line-rate-capable programs are accepted, eliminating the risk of performance degradation?
  • RQ4To what extent can a high-level language like Domino express complex network algorithms while remaining compatible with low-level switch hardware constraints?

Key findings

  • The Domino language successfully expresses complex data-plane algorithms such as active queue management, congestion control, and load balancing using intuitive, sequential packet transactions.
  • The Banzai machine model accurately captures the architectural constraints of modern programmable switches, including state isolation and atomic instruction units (atoms).
  • The all-or-nothing compilation model guarantees that any accepted Domino program will execute at line rate, with no partial or degraded performance.
  • The approach enables deployment of sophisticated, stateful algorithms on programmable switches without requiring hardware redesign or reconfiguration.
  • Evaluation shows that Domino’s expressiveness supports a broad class of data-plane algorithms, with minimal die-area overhead for the required hardware support.
  • The work demonstrates that high-level programming abstractions can be compiled to run at line rate on programmable switching chips, overcoming the limitations of prior software and network processor approaches.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.