FP4:P4交换机的线速灰盒模糊测试
FP4: Line-rate Greybox Fuzz Testing for P4 Switches
摘要:
与固定功能交换机相比,可编程交换机的灵活性是有代价的,因为程序员的错误经常会导致网络数据平面中的细微错误。在本文中,我们提出了FP4的设计和实现,模糊测试框架P4交换机,实现了高表现力,覆盖率和可扩展性。FP4通过生成半随机输入数据包并观察其在数据平面中的执行结果来直接测试运行中的交换机。为了实现高覆盖率和可扩展性,在运行时,FP4利用P4本身与另一个“测试器”交换机,每秒在数据平面中生成和变异数十亿个测试数据包。由于测试某些程序分支需要导航复杂的语义输入需求,因此FP4还通过检测被测程序来利用P4的可编程性,以通过数据包报头将覆盖信息传递回测试仪。我们目前的案例研究表明,FP4可以验证安全性和有状态属性,提高了现有的随机数据包生成基线的效率,并在一分钟内达到100%的覆盖范围广泛的例子。
英文摘要:
Compared to fixed-function switches, the flexibility of programmable switches comes at a cost, as programmer mistakes frequently result in subtle bugs in the network data plane. In this paper, we present the design and implementation of FP4, a fuzz-testing framework for P4 switches that achieves high expressiveness, coverage, and scalability. FP4 directly tests running switches by generating semi-random input packets and observing their resulting execution in the data plane. To achieve high coverage and scalability, at runtime, FP4 leverages P4 itself with another "tester" switch that generates and mutates billions of test packets per second entirely in the dataplane. Because testing some program branches requires navigating complex semantic input requirements, FP4 additionally leverages the programmability of P4 by instrumenting the tested program to pass coverage information back to the tester through the packet header. We present case studies showing that FP4 can validate both safety and stateful properties, improves efficiency over existing random packet generation baselines, and reaches 100% coverage in under a minute on a wide range of examples.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。