对数据包处理的全面验证
Comprehensive Verification of Packet Processing
AI总结:
本文提出了一种全面框架,用于验证网络交换机中处理数据包的其他组件,如解析器、反解析器及非P4组件,以确保交换机整体行为的正确性。
摘要:
为了证明在可编程网络交换机或智能网卡中运行的P4程序的功能正确性,先前的工作主要集中在“控制块”(匹配-动作管道)的验证器上。但要验证交换机根据期望的规范处理数据包,仅证明控制块是不够的。我们展示了一个新的全面框架,用于正式指定和证明交换机中处理每个数据包的其他组件:P4解析器和反解析器,以及非P4组件如多播引擎、数据包生成器和重提交路径。这些组件通常由P4程序设置头部或元数据字段触发,从而促使其他交换机组件——固定功能或可配置的——执行相应的动作。只有当“可配置”组件确实被正确配置时,整体行为才是正确的;我们展示了如何证明这一点。我们通过验证两个经典P4应用中的数据包流行为来演示我们的框架。我们的框架是第一个允许将P4程序的正确性证明与这些其他交换机组件的正确性证明组合起来,以验证整个交换机编程实现指定行为的框架。
英文摘要:
To prove the functional correctness of a P4 program running in a programmable network switch or smart NIC, prior works have focused mainly on verifiers for the "control block" (match-action pipeline). But to verify that a switch handles packets according to a desired specification, proving the control block is not enough. We demonstrate a new comprehensive framework for formally specifying and proving the additional components of the switch that handle each packet: P4 parsers and deparsers, as well as non-P4 components such as multicast engines, packet generators, and resubmission paths. These are generally triggered by having the P4 program set header or metadata fields, which prompt other switch components -- fixed-function or configurable -- to execute the corresponding actions. Overall behavior is correct only if the "configurable" components are, indeed, configured properly; and we show how to prove that. We demonstrate our framework by verifying the correctness of packet-stream behavior in two classic P4 applications. Our framework is the first to allow the correctness proof of a P4 program to be composed with the correctness proof for these other switch components to verify that the switch programming as a whole accomplishes a specified behavior.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。