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

在网络功能上签入

Checking-in on Network Functions

Zeeshan Lakhani, Heather Miller

摘要:

当对网络功能进行编程时,数据包中的更改往往会产生后果--网络程序员或管理员必须通过任意逻辑和对依赖关系的固有理解来考虑这些副作用。这方面的示例包括当分组的内容已经被修改时更新校验和,或者如果在分组内添加或更新另一个报头,则调整IPv6报头的有效载荷长度字段。虽然静态类型捕获接口规范和数据包内容应该如何行为,但它并不像上面的示例那样围绕运行时依赖性强制执行精确的不变量。相反,在网络功能的设计阶段,程序员应该有一种更简单的方法来预先指定检查,而不必在开发周期的每一步都考虑和跟踪这些结果。为了保持这种观点,我们提出了一种独特的方法,用于添加和生成静态检查和动态合同,用于指定和检查数据包处理操作。我们开发我们的技术在一个现有的框架称为NetBricks和演示我们的方法如何简化和检查常见的相关数据包和报头处理逻辑,其他系统认为是理所当然的,所有在开发过程中没有增加太多的开销。

英文摘要:

When programming network functions, changes within a packet tend to have consequences---side effects which must be accounted for by network programmers or administrators via arbitrary logic and an innate understanding of dependencies. Examples of this include updating checksums when a packet's contents has been modified or adjusting a payload length field of a IPv6 header if another header is added or updated within a packet. While static-typing captures interface specifications and how packet contents should behave, it does not enforce precise invariants around runtime dependencies like the examples above. Instead, during the design phase of network functions, programmers should be given an easier way to specify checks up front, all without having to account for and keep track of these consequences at each and every step during the development cycle. In keeping with this view, we present a unique approach for adding and generating both static checks and dynamic contracts for specifying and checking packet processing operations. We develop our technique within an existing framework called NetBricks and demonstrate how our approach simplifies and checks common dependent packet and header processing logic that other systems take for granted, all without adding much overhead during development.

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

↑