摘要
在协议测试过程中,对于测试数据的生成方法的考虑应从包的粒度细化到字段上。对协议的通用数据包进行了全面的分析,根据各个字段的功能及其取值之间的关系,对所有字段进行了固定字段、独立字段以及相关字段序列的划分,然后根据测试经验对独立字段和相关字段序列进行了优先级赋值,并根据优先级构建测试包,从而可以将具有重要测试目的的包尽早生成进行测试,并根据优先级标记指导测试结果判定。给出了测试包库的生成算法,并分析了该算法的有效性,然后以BGP4+的UPDATE包为例给出了生成的包,最后给出了结论。
During the process of protocol testing, the consideration of test data should be changed from the granularity of packet to the granularity of field. The general format of packet was analyzed completely. According to their functions and the relation of the values, the fields were divided into three parts, the first part is constant part, the second part is independent fields and the third part is the related fields. Moreover based on the accumulated experience, the priority was assigned to the independent fields and each sequence of related field as a whole. The testing packets were sequentially constructed according to priorities such that the important packets are generated and some aspects of the protocol are tested as early as possible. The tag of priority is used to conduct the verdict of testing result. The generation algorithm of packet database was provided and its validation was analyzed. The UPDATE of BGP4+ was presented as an example to verify the algorithm. Finally the conclusion was presented.
出处
《计算机科学》
CSCD
北大核心
2008年第12期102-105,共4页
Computer Science
基金
国家自然基金项目(60263002)
内蒙古自然科学基金重点项目(200711020803)
中欧联合项目GO4IT
关键词
协议
一致性测试
包
字段
Protocol, Conformance testing, Packet, Field