Journal of Software:2020.31(9):2709-2722

(上海市高可信计算重点实验室(华东师范大学), 上海 200062;华东师范大学 教育部软硬件协同设计技术与应用工程研究中心, 上海 200062;上海移动通信有限公司, 上海 200070;安徽师范大学 计算机与信息学院, 安徽 芜湖 241002)
SDN Data Plane Software Conformance Test Case Generation Method
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)
Chart / table
Similar Articles
Article :Browse 1009   Download 483
Received:July 01, 2019    Revised:August 18, 2019
> 中文摘要: SDN(software-defined network)旨在解决架构复杂且分散的传统网络出现的问题,使网络具有更强的灵活性.P4编程语言的特征在于用户可以直接根据自己对处理数据包的需求定义P4程序,然后经过编译过程,生成适配文件将用户需求配置到网络设备.面向P4编程语言的SDN数据平面一致性测试,是将一致性测试用例发送给P4网络设备,评估实际输出和预期输出的一致程度.一致性测试用例是执行一致性测试的载体,而传统的人工构造测试用例是一项繁琐耗时费力的工作.重点分析了面向P4编程语言的SDN数据平面软件一致性测试用例设计原则和生成方法,给出了一致性测试用例覆盖标准,设计了命令信息实体结构和测试用例实体结构,以装载P4程序的simple_switch虚拟交换机为测试对象,说明一致性测试用例生成过程,实现了一个用于P4网络设备一致性测试的测试用例自动生成工具,并验证了该工具自动生成测试用例的有效性,实现了一致性测试用例构造过程简易性.
Abstract: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
文章编号:     中图分类号:TP311    文献标志码:
基金项目:国家重点研发计划(2018YFB2101301);上海市高可信计算重点实验室开放课题(07dz22304201607);国家自然科学基金(61772034);安徽省自然科学基金(1808085MF172);高校优秀青年人才支持计划(gxyqZD2019010) 国家重点研发计划(2018YFB2101301);上海市高可信计算重点实验室开放课题(07dz22304201607);国家自然科学基金(61772034);安徽省自然科学基金(1808085MF172);高校优秀青年人才支持计划(gxyqZD2019010)
Foundation items:National Key Research and Development Program of China (2018YFB2101301); Open Project Fund of Shanghai Key Lab for Trustworthy Computing (07dz22304201607); National Nature Science Foundation of China (61772034); Natural Science Foundation of Anhui Province (1808085MF172); Youth Elite Support Plan in Universities of Anhui Province (gxyqZD2019010)
Reference text:


ZHANG Wen-Wen,XU Tian-Yu,ZHANG Yue,ZHENG Xiao-Yao.SDN Data Plane Software Conformance Test Case Generation Method.Journal of Software,2020,31(9):2709-2722