arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2204.02739cs.NI
收藏

P4RROT:为应用层生成P4代码

P4RROT: Generating P4 Code for the Application Layer

Csaba Györgyi, Sándor Laki, Stefan Schmid

摘要:

吞吐量和延迟关键型应用程序通常可以从靠近客户端执行计算中受益。为了实现这一点,最近出现了诸如边缘计算的分布式计算范例。然而,随着可编程数据平面的出现,计算不仅可以由服务器执行,而且可以卸载到网络交换机。像P4这样的语言可以灵活地重新编程整个数据包处理管道。尽管这些设备承诺高吞吐量和超低响应时间,但对于不熟悉网络领域的应用开发人员来说,在数据平面程序设计语言P4中实现应用层任务仍然具有挑战性。在本文中,我们首先识别和检查将基于服务器的计算卸载到网络时可能遇到的障碍和痛点。然后,我们提出P4RROT,一个代码生成器(在一个库的形式),它允许克服这些限制,通过提供一个用户友好的API来描述要卸载的计算。在讨论了P4RROT背后的设计选择之后,我们介绍了两个P4目标的概念验证实现:Netronome SmartNIC和BMv2。

英文摘要:

Throughput and latency critical applications could often benefit of performing computations close to the client. To enable this, distributed computing paradigms such as edge computing have recently emerged. However, with the advent of programmable data planes, computations cannot only be performed by servers but they can be offloaded to network switches. Languages like P4 enable to flexibly reprogram the entire packet processing pipeline. Though these devices promise high throughput and ultra-low response times, implementing application-layer tasks in the data plane programming language P4 is still challenging for an application developer who is not familiar with networking domain. In this paper, we first identify and examine obstacles and pain points one can experience when offloading server-based computations to the network. Then we present P4RROT, a code generator (in form of a library) which allows to overcome these limitations by providing a user-friendly API to describe computations to be offloaded. After discussing the design choices behind P4RROT, we introduce our proof-of-concept implementation for two P4 targets: Netronome SmartNIC and BMv2.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑