| 本文已被:浏览 4582次 下载 7624次 |
 码上扫一扫! |
|
|
| SDN数据平面软件一致性测试用例生成方法 |
|
张雯雯1,2, 许天予3, 章玥1,2, 郑孝遥4
|
|
1.上海市高可信计算重点实验室(华东师范大学), 上海 200062;2.华东师范大学 教育部软硬件协同设计技术与应用工程研究中心, 上海 200062;3.上海移动通信有限公司, 上海 200070;4.安徽师范大学 计算机与信息学院, 安徽 芜湖 241002
|
|
| 摘要: |
| SDN(software-defined network)旨在解决架构复杂且分散的传统网络出现的问题,使网络具有更强的灵活性.P4编程语言的特征在于用户可以直接根据自己对处理数据包的需求定义P4程序,然后经过编译过程,生成适配文件将用户需求配置到网络设备.面向P4编程语言的SDN数据平面一致性测试,是将一致性测试用例发送给P4网络设备,评估实际输出和预期输出的一致程度.一致性测试用例是执行一致性测试的载体,而传统的人工构造测试用例是一项繁琐耗时费力的工作.重点分析了面向P4编程语言的SDN数据平面软件一致性测试用例设计原则和生成方法,给出了一致性测试用例覆盖标准,设计了命令信息实体结构和测试用例实体结构,以装载P4程序的simple_switch虚拟交换机为测试对象,说明一致性测试用例生成过程,实现了一个用于P4网络设备一致性测试的测试用例自动生成工具,并验证了该工具自动生成测试用例的有效性,实现了一致性测试用例构造过程简易性. |
| 关键词: 一致性测试 测试用例生成 测试覆盖 SDN(software-defined networks) P4(programming protocol-independent packet processors)中间节点编程语言 |
| DOI:10.13328/j.cnki.jos.005940 |
| 分类号: |
| 基金项目:国家重点研发计划(2018YFB2101301);上海市高可信计算重点实验室开放课题(07dz22304201607);国家自然科学基金(61772034);安徽省自然科学基金(1808085MF172);高校优秀青年人才支持计划(gxyqZD2019010) |
|
| SDN Data Plane Software Conformance Test Case Generation Method |
|
ZHANG Wen-Wen1,2, XU Tian-Yu3, ZHANG Yue1,2, ZHENG Xiao-Yao4
|
|
1.Shanghai Key Laboratory for Trustworthy Computing(East China Normal University), Shanghai 200062, China;2.MOE Engineering Research Center of Hardware&Software Co-design Technology and Application, East China Normal University, Shanghai 200062, China;3.Shanghai Mobile Communications Co. Ltd., Shanghai 200070, China;4.School of Computer and Information, Anhui Normal University, Wuhu 241002, China
|
| 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 |
| Key words: conformance test test case generation test coverage SDN (software-defined networks) P4 (programming protocol-independent packet processors) intermediate node programming language |