CaT: A Solver-Aided Compiler for Packet-Processing Pipelines
Xiangyu Gao, Divya Raghunathan, Ruijie Fang, Tao Wang, Xiaotong Zhu, Anirudh Sivaraman, Srinivas Narayana, Aarti Gupta
摘要
Compiling high-level programs to high-speed packet-processing pipelines is a challenging combinatorial optimization problem. The compiler must configure the pipeline's resources to match the semantics of the program's high-level specification, while packing all of the program's computation into the pipeline's limited resources. State of the art approaches tackle individual aspects of this problem. Yet, they miss opportunities to produce globally high-quality outcomes within reasonable compilation times.
We develop a framework to decompose the compilation problem for such pipelines into three phases-making extensive use of solver engines (e.g., ILP, SMT, and program synthesis) to simplify the development of these phases. Transformation rewrites programs to use more abundant pipeline resources, avoiding scarce ones. Synthesis breaks complex transactional code into configurations of pipelined compute units. Allocation maps the program's compute and memory to the pipeline's hardware resources.
We prototype these ideas in a compiler, CaT, which targets (1) the Tofino programmable switch pipeline and (2) Menshen, a cycleaccurate simulator of a Verilog description of the RMT pipeline. CaT can handle programs that existing compilers cannot currently run on pipelines and generates code faster than existing compilers, where the generated code uses fewer pipeline resources.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- 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
- NutCracker: A Compilation Framework for Hybrid DPU Architectures 引用了 Lyra: A Cross-Platform Language and Compiler for Data Plane Programming on Heterogeneous ASICs
- NutCracker: A Compilation Framework for Hybrid DPU Architectures 引用了 Unleashing SmartNIC Packet Processing Performance in P4
- Unleashing SmartNIC Packet Processing Performance in P4 引用了 Lyra: A Cross-Platform Language and Compiler for Data Plane Programming on Heterogeneous ASICs
引用它的顶会 Paper4
- Unleashing SmartNIC Packet Processing Performance in P4Jiarong Xing, Yiming Qiu, Kuo-Feng Hsu, Songyuan Sui 等SIGCOMM 2023 · 29 次引用
- Optimizing Quantum Fourier Transformation (QFT) Kernels for Modern NISQ and FT ArchitecturesYuwei Jin, Xiangyu Gao, Minghao Guo, Henry Chen 等SC 2024 · 3 次引用
- NutCracker: A Compilation Framework for Hybrid DPU ArchitecturesYihan Yang, Haifeng Sun, Antoine Kaufmann, Jialin LiEuroSys 2026 · 2 次引用
- ParserHawk: Hardware-aware parser generator using program synthesisXiangyu Gao, Jiaqi Gao, Karan Kumar G., Muhammad Haseeb 等SIGCOMM 2025 · 1 次引用
它引用的 Paper10
- 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 次引用
- NetHide: Secure and Practical Network Topology ObfuscationRoland Meier, Petar Tsankov, Vincent Lenders, Laurent Vanbever 等USENIX Security 2018 · 84 次引用
- 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
- Switch Code Generation Using Program SynthesisXiangyu Gao, Taegyun Kim, Michael D. Wong, Divya Raghunathan 等SIGCOMM 2020 · 51 次引用
- Isolation Mechanisms for High-Speed Packet-Processing PipelinesTao Wang, Xiangrui Yang, Gianni Antichi, Anirudh Sivaraman 等NSDI 2022 · 44 次引用
- P4runpro: Enabling Runtime Programmability for RMT Programmable SwitchesYifan Yang, Lin He, Jiasheng Zhou, Xiaoyi Shi 等SIGCOMM 2024 · 12 次引用
- Stateful multi-pipelined programmable switchesVishal ShrivastavSIGCOMM 2022 · 24 次引用
- eHDL: Turning eBPF/XDP Programs into Hardware Designs for the NICAlessandro Rivitti, Roberto Bifulco, Angelo Tulumello, Marco Bonola 等ASPLOS 2023 · 16 次引用
