摘要
SDN(software-definednetwork)旨在解决架构复杂且分散的传统网络出现的问题,使网络具有更强的灵活性.P4编程语言的特征在于用户可以直接根据自己对处理数据包的需求定义P4程序,然后经过编译过程,生成适配文件将用户需求配置到网络设备.面向P4编程语言的SDN数据平面一致性测试,是将一致性测试用例发送给P4网络设备,评估实际输出和预期输出的一致程度.一致性测试用例是执行一致性测试的载体,而传统的人工构造测试用例是一项繁琐耗时费力的工作.重点分析了面向P4编程语言的SDN数据平面软件一致性测试用例设计原则和生成方法,给出了一致性测试用例覆盖标准,设计了命令信息实体结构和测试用例实体结构,以装载P4程序的simpleswitch虚拟交换机为测试对象,说明一致性测试用例生成过程,实现了一个用于P4网络设备一致性测试的测试用例自动生成工具,并验证了该工具自动生成测试用例的有效性,实现了一致性测试用例构造过程简易性.
SDN(software-defined network)is designed to solve the problems of traditional networks with complex and scattered architecture,making the network more flexible.The characteristic of the P4 programming language is that users can directly define P4 programs according to their needs for processing data packets,and then compile and configure user requirements to network equipment through the adaptation file.The SDN data plane conformance test for the P4 programming language is to send the consistency test cases to the P4 network equipment to evaluate the consistency of the actual output and the expected output.Conformance test cases are the carriers for performing conformance tests,and the traditional manual construction of test cases is a tedious and time-consuming work.This article focuses on the design principles and generation method of SDN data plane software conformance test cases for P4 programming language,gives the conformance test case coverage standards,designs the command information entity structure and the test case entity structure,and uses the simple_switch virtual switch loaded with the P4 program as the test object to illustrate the conformance test case generation process.This paper also implements an automatic test case generation tool for P4 network device conformance testing,and verifies the effectiveness of the tool to automatically generate test cases,and realizes the simplicity of the conformance test case construction process.
作者
张雯雯
许天予
章玥
郑孝遥
ZHANG Wen-Wen;XU Tian-Yu;ZHANG Yue;ZHENG Xiao-Yao(Shanghai Key Laboratory for Trustworthy Computing(East China Normal University),Shanghai 200062,China;MOE Engineering Research Center of Hardware&Software Co-design Technology and Application,East China Normal University,Shanghai 200062,China;Shanghai Mobile Communications Co.Ltd.,Shanghai 200070,China;School of Computer and Information,Anhui Normal University,Wuhu 241002,China)
出处
《软件学报》
EI
CSCD
北大核心
2020年第9期2709-2722,共14页
Journal of Software
基金
国家重点研发计划(2018YFB2101301)
上海市高可信计算重点实验室开放课题(07dz22304201607)
国家自然科学基金(61772034)
安徽省自然科学基金(1808085MF172)
高校优秀青年人才支持计划(gxyqZD2019010)