Cetus: Releasing P4 Programmers from the Chore of Trial and Error Compiling
Yifan Li, Jiaqi Gao, Ennan Zhai, Mengqi Liu, Kun Liu, Hongqiang Harry Liu
摘要
Programmable switches are widely deployed in Alibaba's edge networks. To enable the processing of packets at line rate, our programmers use P4 language to offload network functions onto these switches. As we were developing increasingly more complex offloaded network functions, we realized that our development needs to follow a certain set of constraints in order to fit the P4 programs into available hardware resources. Not adhering to these constraints results in fitting issues, making the program uncompilable. Therefore, we decide to build a system (called Cetus) that automatically converts an uncompilable P4 program into a functionally identical but compilable P4 program. In this paper, we share our experience in the building and using of Cetus at Alibaba. Our design insights for this system come from our investigation of the past fitting issues of our production P4 programs. We found that the long dependency chains between actions in our production P4 programs are creating difficulties for the programs to comply with the hardware resources of programmable switching ASICs, resulting in the majority of our fitting issues. Guided by this finding, we designed the core approach of Cetus to efficiently synthesize a compilable program by shortening the lengthy dependency chains. We have been using Cetus in our production P4 program development for one year, and it has effectively decreased our P4 development workload by two orders of magnitude (from O(day) to O(min)). In this paper we share several real cases addressed by Cetus, along with its performance evaluation.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Sirius: Composing Network Function Chains into P4-Capable Edge Gateways 引用了 Composing Dataplane Programs with μP4
- Sirius: Composing Network Function Chains into P4-Capable Edge Gateways 引用了 Sailfish: accelerating cloud-scale multi-tenant multi-service gateways with programmable switches
- Composing Dataplane Programs with μP4 引用了 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 引用了 Composing Dataplane Programs with μP4
- Sketchovsky: Enabling Ensembles of Sketches on Programmable Switches 引用了 Composing Dataplane Programs with μP4
- CaT: A Solver-Aided Compiler for Packet-Processing Pipelines 引用了 Composing Dataplane Programs with μP4
- CaT: A Solver-Aided Compiler for Packet-Processing Pipelines 引用了 PINT: Probabilistic In-band Network Telemetry
- CaT: A Solver-Aided Compiler for Packet-Processing Pipelines 引用了 Sailfish: accelerating cloud-scale multi-tenant multi-service gateways with programmable switches
- CaT: A Solver-Aided Compiler for Packet-Processing Pipelines 引用了 Lyra: A Cross-Platform Language and Compiler for Data Plane Programming on Heterogeneous ASICs
- Enabling Portable and High-Performance SmartNIC Programs with Alkali 引用了 Sailfish: accelerating cloud-scale multi-tenant multi-service gateways with programmable switches
- Enabling Portable and High-Performance SmartNIC Programs with Alkali 引用了 Lyra: A Cross-Platform Language and Compiler for Data Plane Programming on Heterogeneous ASICs
- Enabling Portable and High-Performance SmartNIC Programs with Alkali 引用了 Unleashing SmartNIC Packet Processing Performance in P4
- Unleashing SmartNIC Packet Processing Performance in P4 引用了 CaT: A Solver-Aided Compiler for Packet-Processing Pipelines
- Unleashing SmartNIC Packet Processing Performance in P4 引用了 Lyra: A Cross-Platform Language and Compiler for Data Plane Programming on Heterogeneous ASICs
引用它的顶会 Paper9
- Sketchovsky: Enabling Ensembles of Sketches on Programmable SwitchesHun Namkung, Zaoxing Liu, Daehyeok Kim, Vyas Sekar 等NSDI 2023 · 44 次引用
- Unleashing SmartNIC Packet Processing Performance in P4Jiarong Xing, Yiming Qiu, Kuo-Feng Hsu, Songyuan Sui 等SIGCOMM 2023 · 29 次引用
- Sirius: Composing Network Function Chains into P4-Capable Edge GatewaysJiaqi Gao, Jiamin Cao, Yifan Li, Mengqi Liu 等NSDI 2024 · 11 次引用
- Enabling Portable and High-Performance SmartNIC Programs with AlkaliJiaxin Lin, Zhiyuan Guo, Mihir Shah, Tao Ji 等NSDI 2025 · 11 次引用
- CaT: A Solver-Aided Compiler for Packet-Processing PipelinesXiangyu Gao, Divya Raghunathan, Ruijie Fang, Tao Wang 等ASPLOS 2023 · 8 次引用
它引用的 Paper12
- PINT: Probabilistic In-band Network TelemetryRan Ben Basat, Sivaramakrishnan Ramanathan, Yuliang Li, Gianni Antichi 等SIGCOMM 2020 · 268 次引用
- Sailfish: accelerating cloud-scale multi-tenant multi-service gateways with programmable switchesTian Pan, Nianbing Yu, Chenhao Jia, Jianwen Pi 等SIGCOMM 2021 · 111 次引用
- BeauCoup: Answering Many Network Traffic Queries, One Memory Update at a TimeXiaoqi Chen, Shir Landau Feibish, Mark Braverman, Jennifer RexfordSIGCOMM 2020 · 91 次引用
- Lyra: A Cross-Platform Language and Compiler for Data Plane Programming on Heterogeneous ASICsJiaqi Gao, Ennan Zhai, Hongqiang Harry Liu, Rui Miao 等SIGCOMM 2020 · 82 次引用
- Composing Dataplane Programs with μP4Hardik Soni, Myriana Rifai, Praveen Kumar, Ryan Doenges 等SIGCOMM 2020 · 54 次引用
相关 Paper
- Gallium: Automated Software Middlebox Offloading to Programmable SwitchesKaiyuan Zhang, Danyang Zhuo, Arvind KrishnamurthySIGCOMM 2020 · 50 次引用
- Sequence Abstractions for Flexible, Line-Rate Network MonitoringAndrew Johnson, Ryan Beckett, Xiaoqi Chen, Ratul Mahajan 等NSDI 2024 · 4 次引用
- Aquila: a practically usable verification system for production-scale programmable data planesBingchuan Tian, Jiaqi Gao, Mengqi Liu, Ennan Zhai 等SIGCOMM 2021 · 28 次引用
- Modular Switch Programming Under Resource ConstraintsMary Hogan, Shir Landau Feibish, Mina Tahmasbi Arashloo, Jennifer Rexford 等NSDI 2022
- Enabling In-situ Programmability in Network Data Plane: From Architecture to LanguageYong Feng, Zhikang Chen, Haoyu Song, Wenquan Xu 等NSDI 2022
