P4R-Type:面向P4控制面程序的经过验证的API(技术报告)
P4R-Type: a Verified API for P4 Control Plane Programs (Technical Report)
AI总结:
本文提出P4R-Type,一种面向Scala的经过验证的P4Runtime API,通过静态检查排除P4表与操作参数的不匹配,并基于$F_{\ ext{P4R}}$演算确保控制面程序不会发出无效操作。
摘要:
软件定义网络(SDN)显著简化了对交换机和路由器等网络设备的编程、重新配置和优化。编程SDN设备的事实标准是P4语言。然而,P4及更广泛的SDN的灵活性和强大功能带来了重大风险。正如主要云提供商发生的多起事件所示,SDN程序中的错误可能会损害网络的可用性,使其陷入无法正常运行的状态。本文的重点是与支持P4的网络设备通过标准化P4Runtime API交互的控制面程序中的错误。尽管使用了Google的Protocol Buffers作为接口定义语言,P4Runtime API的客户端仍极易犯下导致灾难性故障的错误。本文提出了P4R-Type,这是一种面向Scala的新型经验证的P4Runtime API,可对P4控制面操作执行静态检查,从而排除P4表、允许的操作和操作参数之间的不匹配。作为P4R-Type的形式化基础,我们提出了$F_{\ ext{P4R}}$演算及其类型系统,以确保类型良好的程序永远不会因发出无效的P4Runtime操作而卡住。我们通过3个案例研究评估了P4R-Type的安全性和灵活性。据我们所知,这是第一项形式化P4Runtime控制面应用程序,并引入确保P4Runtime操作正确性的类型规则的工作。
英文摘要:
Software-Defined Networking (SDN) significantly simplifies programming, reconfiguring, and optimizing network devices, such as switches and routers. The de facto standard for programmming SDN devices is the P4 language. However, the flexibility and power of P4, and SDN more generally, gives rise to important risks. As a number of incidents at major cloud providers have shown, errors in SDN programs can compromise the availability of networks, leaving them in a non-functional state. The focus of this paper are errors in control-plane programs that interact with P4-enabled network devices via the standardized P4Runtime API. For clients of the P4Runtime API it is easy to make mistakes that lead to catastrophic failures, despite the use of Google's Protocol Buffers as an interface definition language. This paper proposes P4R-Type, a novel verified P4Runtime API for Scala that performs static checks for P4 control plane operations, ruling out mismatches between P4 tables, allowed actions, and action parameters. As a formal foundation of P4R-Type, we present the $F_{\text{P4R}}$ calculus and its typing system, which ensure that well-typed programs never get stuck by issuing invalid P4Runtime operations. We evaluate the safety and flexibility of P4R-Type with 3 case studies. To the best of our knowledge, this is the first work that formalises P4Runtime control plane applications, and a typing discipline ensuring the correctness of P4Runtime operations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。