Lune

SIGCOMM2021Top-tier venue

Lucid: a language for control in the data plane

John Sonchack, Devon Loehr, Jennifer Rexford, David Walker

Abstract

Programmable switch hardware makes it possible to move fine-grained control logic inside the network data plane, improving performance for a wide range of applications. However, applications with integrated control are inherently hard to write in existing data-plane programming languages such as P4. This paper presents Lucid, a language that raises the level of abstraction for putting control functionality in the data plane. Lucid introduces abstractions that make it easy to write sophisticated data-plane applications with interleaved packet-handling and control logic, specialized type and syntax systems that prevent programmer bugs related to data-plane state, and an open-sourced compiler that translates Lucid programs into P4 optimized for the Intel Tofino. These features make Lucid general and easy to use, as we demonstrate by writing a suite of ten different data-plane applications in Lucid. Working prototypes take well under an hour to write, even for a programmer without prior Tofino experience, have around 10x fewer lines of code compared to P4, and compile efficiently to real hardware. In a stateful firewall written in Lucid, we find that moving control from a switch's CPU to its data-plane processor using Lucid reduces the latency of performance-sensitive operations by over 300X.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

20 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Homunculus: Auto-Generating Efficient Data-Plane ML Pipelines for Datacenter Networks cites Jaqen: A High-Performance Switch-Native Approach for Detecting and Mitigating Volumetric DDoS Attacks with Programmable Switches
  • Homunculus: Auto-Generating Efficient Data-Plane ML Pipelines for Datacenter Networks cites Taurus: a data plane architecture for per-packet ML
  • Switch Code Generation Using Program Synthesis cites Lyra: A Cross-Platform Language and Compiler for Data Plane Programming on Heterogeneous ASICs
  • Lyra: A Cross-Platform Language and Compiler for Data Plane Programming on Heterogeneous ASICs cites Switch Code Generation Using Program Synthesis
  • Taurus: a data plane architecture for per-packet ML cites Jaqen: A High-Performance Switch-Native Approach for Detecting and Mitigating Volumetric DDoS Attacks with Programmable Switches
  • Cetus: Releasing P4 Programmers from the Chore of Trial and Error Compiling cites Switch Code Generation Using Program Synthesis
  • Cetus: Releasing P4 Programmers from the Chore of Trial and Error Compiling cites Lyra: A Cross-Platform Language and Compiler for Data Plane Programming on Heterogeneous ASICs
  • Unleashing SmartNIC Packet Processing Performance in P4 cites Switch Code Generation Using Program Synthesis
  • Unleashing SmartNIC Packet Processing Performance in P4 cites Cetus: Releasing P4 Programmers from the Chore of Trial and Error Compiling
  • Unleashing SmartNIC Packet Processing Performance in P4 cites Lyra: A Cross-Platform Language and Compiler for Data Plane Programming on Heterogeneous ASICs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. Syrup: User-Defined Scheduling Across the StackKostis Kaffes, Jack Tigar Humphries, David Mazières, Christos KozyrakisSOSP 2021 · 35 citations
  2. Unleashing SmartNIC Packet Processing Performance in P4Jiarong Xing, Yiming Qiu, Kuo-Feng Hsu, Songyuan Sui et al.SIGCOMM 2023 · 29 citations
  3. Homunculus: Auto-Generating Efficient Data-Plane ML Pipelines for Datacenter NetworksTushar Swamy, Annus Zulfiqar, Luigi Nardi, Muhammad Shahbaz et al.ASPLOS 2023 · 26 citations
  4. Cebinae: scalable in-network fairness augmentationLiangcheng Yu, John Sonchack, Vincent LiuSIGCOMM 2022 · 22 citations
  5. Cetus: Releasing P4 Programmers from the Chore of Trial and Error CompilingYifan Li, Jiaqi Gao, Ennan Zhai, Mengqi Liu et al.NSDI 2022 · 22 citations

Builds on6

  1. Jaqen: A High-Performance Switch-Native Approach for Detecting and Mitigating Volumetric DDoS Attacks with Programmable SwitchesZaoxing Liu, Hun Namkung, Georgios Nikolaidis, Jeongkeun Lee et al.USENIX Security 2021 · 221 citations
  2. Contra: A Programmable System for Performance-aware RoutingKuo-Feng Hsu, Ryan Beckett, Ang Chen, Jennifer Rexford et al.NSDI 2020 · 104 citations
  3. Taurus: a data plane architecture for per-packet MLTushar Swamy, Alexander Rucker, Muhammad Shahbaz, Ishan Gaur et al.ASPLOS 2022 · 94 citations
  4. Lyra: A Cross-Platform Language and Compiler for Data Plane Programming on Heterogeneous ASICsJiaqi Gao, Ennan Zhai, Hongqiang Harry Liu, Rui Miao et al.SIGCOMM 2020 · 82 citations
  5. Switch Code Generation Using Program SynthesisXiangyu Gao, Taegyun Kim, Michael D. Wong, Divya Raghunathan et al.SIGCOMM 2020 · 51 citations

Related papers

  1. Safe, modular packet pipeline programmingDevon Loehr, David WalkerPOPL 2022 · 6 citations
  2. P4runpro: Enabling Runtime Programmability for RMT Programmable SwitchesYifan Yang, Lin He, Jiasheng Zhou, Xiaoyi Shi et al.SIGCOMM 2024 · 12 citations
  3. When P4 Meets Run-to-completion ArchitectureHao Zheng, Xin Yan, Wenbo Li, Jiaqi Zheng et al.NSDI 2025 · 5 citations
  4. Composing Dataplane Programs with μP4Hardik Soni, Myriana Rifai, Praveen Kumar, Ryan Doenges et al.SIGCOMM 2020 · 54 citations
  5. NetCL: A Unified Programming Framework for In-Network ComputingGeorge Karlos, Henri E. Bal, Lin WangSC 2024 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines