Charting the Complexity Landscape of Compiling Packet Programs to Reconfigurable Switches

IF 3 3区 计算机科学 Q2 COMPUTER SCIENCE, HARDWARE & ARCHITECTURE
Balázs Vass;Erika R. Bérczi-Kovács;Ádám Fraknói;Costin Raiciu;Gábor Rétvári
{"title":"Charting the Complexity Landscape of Compiling Packet Programs to Reconfigurable Switches","authors":"Balázs Vass;Erika R. Bérczi-Kovács;Ádám Fraknói;Costin Raiciu;Gábor Rétvári","doi":"10.1109/TNET.2024.3424337","DOIUrl":null,"url":null,"abstract":"P4 is a widely used Domain-specific Language for Programmable Data Planes. A critical step in P4 compilation is finding a feasible and efficient mapping of the high-level P4 source code constructs to the physical resources exposed by the underlying hardware, while meeting data and control flow dependencies in the program. In this paper, we take a new look at the algorithmic aspects of this problem, with the motivation to understand the fundamental theoretical limits and obtain better P4 pipeline embeddings, and to speed up practical P4 compilation times for RMT and dRMT target architectures. We report mixed results: we find that P4 compilation is computationally hard even in a severely relaxed formulation, and there is no polynomial-time approximation of arbitrary precision (unless \n<inline-formula> <tex-math>$\\mathcal {P}$ </tex-math></inline-formula>\n=\n<inline-formula> <tex-math>$\\mathcal {N}$ </tex-math></inline-formula>\n<inline-formula> <tex-math>$\\mathcal {P}$ </tex-math></inline-formula>\n), while the good news is that, despite its inherent complexity, P4 compilation is approximable in linear time with a small constant bound even for the most complex, nearly real-life models.","PeriodicalId":13443,"journal":{"name":"IEEE/ACM Transactions on Networking","volume":"32 5","pages":"4519-4534"},"PeriodicalIF":3.0000,"publicationDate":"2024-07-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE/ACM Transactions on Networking","FirstCategoryId":"94","ListUrlMain":"https://ieeexplore.ieee.org/document/10591728/","RegionNum":3,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, HARDWARE & ARCHITECTURE","Score":null,"Total":0}
引用次数: 0

Abstract

P4 is a widely used Domain-specific Language for Programmable Data Planes. A critical step in P4 compilation is finding a feasible and efficient mapping of the high-level P4 source code constructs to the physical resources exposed by the underlying hardware, while meeting data and control flow dependencies in the program. In this paper, we take a new look at the algorithmic aspects of this problem, with the motivation to understand the fundamental theoretical limits and obtain better P4 pipeline embeddings, and to speed up practical P4 compilation times for RMT and dRMT target architectures. We report mixed results: we find that P4 compilation is computationally hard even in a severely relaxed formulation, and there is no polynomial-time approximation of arbitrary precision (unless $\mathcal {P}$ = $\mathcal {N}$ $\mathcal {P}$ ), while the good news is that, despite its inherent complexity, P4 compilation is approximable in linear time with a small constant bound even for the most complex, nearly real-life models.
将分组程序编译到可重构交换机的复杂性图谱
P4 是一种广泛应用于可编程数据平面的特定领域语言。P4 编译的一个关键步骤是在满足程序中的数据和控制流依赖性的同时,找到将高级 P4 源代码结构与底层硬件所暴露的物理资源进行可行、高效映射的方法。在本文中,我们重新审视了这一问题的算法方面,目的是了解基本理论限制,获得更好的 P4 流水线嵌入,并加快 RMT 和 dRMT 目标架构的实际 P4 编译时间。我们报告了喜忧参半的结果:我们发现 P4 编译即使在严重松弛的表述中也很难计算,而且不存在任意精度的多项式时间近似(除非 $\mathcal {P}$ = $\mathcal {N}$ $\mathcal {P}$ ),而好消息是,尽管其固有的复杂性,P4 编译在线性时间内是可近似的,即使对于最复杂、接近现实生活的模型,也有一个小的常数约束。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
IEEE/ACM Transactions on Networking
IEEE/ACM Transactions on Networking 工程技术-电信学
CiteScore
8.20
自引率
5.40%
发文量
246
审稿时长
4-8 weeks
期刊介绍: The IEEE/ACM Transactions on Networking’s high-level objective is to publish high-quality, original research results derived from theoretical or experimental exploration of the area of communication/computer networking, covering all sorts of information transport networks over all sorts of physical layer technologies, both wireline (all kinds of guided media: e.g., copper, optical) and wireless (e.g., radio-frequency, acoustic (e.g., underwater), infra-red), or hybrids of these. The journal welcomes applied contributions reporting on novel experiences and experiments with actual systems.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信