节点文献

基于属性的网络协议建模与互操作性测试方法研究

Research on Network Protocol Modeling and Interoperability Testing Based on Property

【作者】 李华

【导师】 叶新铭;

【作者基本信息】 内蒙古大学 , 计算机应用技术, 2010, 博士

【摘要】 因特网是世界范围内的一个网络,其互联产品可能来自不同的生产厂家,因此需要进行互操作性测试。所谓互操作性测试就是检查两个或多个协议实现是否可以进行正确的交互,提供期望的服务,它可以对设备的互连互通和互操作提供根本保证。互操作性测试的过程一般包含被测系统建模、互操作性测试生成以及测试实施。本文对于协议说明中的不确定性问题进行了分析,提出了一种利用已有测试经验针对不确定进行建模的方法,并给出一种新的测试选择方法。属性是一个系统在某个特定的场景下应具有的功能或者特性。基于属性的互操作性测试生成可以分成四部分:基于属性建立被测系统的Petri网模型,考虑相关可达图的获取;基于可达图考虑覆盖属性的可执行测试序列的生成;测试数据的生成。采用基于属性的方法进行被测系统的建模在一般情况下可以减少建模的工作量。本文给出了义务属性、交互属性和可扩展属性的定义及相关模型,基于上述属性进行测试的测试判定方法。对协议的通用数据包进行了全面的分析并给出一种构建测试数据包的方法,对提出的方法进行了测试实践,检验了本文方法的有效性,最后总结全文,给出了下一步的研究工作。论文的创造性工作主要体现在以下几个方面:(1)针对协议说明的不确定性及当前已有的互操作性测试经验为被测系统建模,给出互操作性测试序列选择算法。互操作性测试至少包括两个被测实现,它们合起来构成被测系统。本文根据被测的说明的不确定有限状态机模型(FSM)和当前已有的互操作性测试经验构建概率不确定有限状态机(PNFSM),有效地刻画当前的互操作性测试状况。基于该模型及一定的策略生成包含所有状态的二叉树,然后基于得到的二叉树给出了包含不确定状态的互操作性测试序列的选择算法,通过示例展示了提出的算法的有效性,并以RIP协议为例展示了提出的建模方法的应用。(2)提出了基于属性进行互操作性测试建模的方法及测试序列的生成方法,给出测试判定方法。本文提出了一种基于两个被测的Petri网模型及较为完全交互消息序列进行模型复合的方法,得到了被测系统的复合Petri网模型。然后基于该模型及协议说明给出了互操作性测试中应考虑的义务属性、交互属性及可扩展属性的定义。基于复合模型及其可达图,依据本文给出的义务属性、交互属性及可扩展属性的定义的要求给出了可执行测试序列的生成算法,给出了属性覆盖的定义,测试判定的方法。并以BRP(Bounded Retransmition Protocol)为例进行相关方法的例示,通过对于RIP协议、OSPF的义务属性之一、BGP4的策略路由从不同的角度展示了本文的建模方法比传统方法在描述感兴趣的属性时可以更有效地减缓或者避免了状态爆炸,而且生成的测试序列数目也大大减少。(3)针对协议数据包的特点,给出了一种测试数据生成方法,以利于自动组包。在协议测试过程中,对于测试数据的生成方法的考虑应从包的粒度细化到字段上。本文对协议的通用数据包进行了全面的分析,根据各个字段的功能及其取值之间的关系,对所有字段进行了固定字段、独立字段以及相关字段序列的划分,然后根据测试经验对独立字段和相关字段序列进行了优先级赋值,并根据优先级构建测试包,从而可以将具有重要测试目的的包尽早生成并进行测试,并根据优先级标记指导测试结果判定。

【Abstract】 Internet is world widely network. Its products can be built by many different manufactures, therefore they need interoperability testing. Interoperability testing is to check whether two or more implementations can interact correctly and offer expected service, it is a basic guarantee for interconnecting network devices and transporting the information between these products.The generic process of interoperability testing includes SUT(System under Test) modeling, test sequence generation and test deployment and execution. The nondeterminism in specification is analyzed and the test experience results are made use to model the situation. A new test selection method is introduced. Properties are the functions or features of one system. Interoperability testing based on property can be divided into four parts:the construction of Petri net for SUT base on property, the executable test sequence generation based on reachable graph with property coverage consideration; the test data generation. Modeling SUT base on property generally can reduce the workload of model construction because it only focuses on the interested properties and ignores the others. The definitions of obligation property, interactive property and extensible property as well as the related models are puting forwarded. The test verdict methods are introduced base on the above properties. To generate test data, the format of generation protocol packet is fully analyzed. A new approach is given to construct test packet and its efficency is validated by the examples. Finally the summary and the research work in the future are presented.The main creativities of this dissertation are explained as follows:(1) A model of SUT is constructed from nondeterminism in specification and current experience of interoperability testing and a new algorithm of test sequence selection is presented. Interoperability testing involves at least two IUTs (implementation under test) and they make up the SUT. According to the nondeterministic finite state machine of specification and the current experience of interoperability testing, a probability nondeterministic finite state machine(PNFSM) is constructed gradually. The achieved model efficiently describes the current situation of interoperability testing. Based on PNFSM and the certain policy, a binary tree which covers all states of PNFSM is generated. The algorithms, which are used to select test sequences from that binary tree, are presented. The algorithms’validity is proved by an example and the final test sequences are listed in a table. Furthermore the testing scenario of the counting to infinite in RIP is used as an experiment to simply illuminate the modeling method.(2) A new modeling method for interoperability testing is putting forward as well as the test sequence generation method and the test verdict method. A SUT model, called composite Petri net(ComPN), is constructed by two IUTs’Petri nets and a relative complete interactive message sequence. Based on SUT model and protocol specification, the definitions of obligation property, extensible property and interactive property are given. Whereafter based on ComPN and its reachable graph, the algorithms of executable test sequence generation are presented according to each property’s definition in the dissertation. Furthermore the definition of property coverage and the test verdict method are putting forwards. BRP(Bounded Retransmission Protocol) is used as an example to show the algorithm’s validity. The routing protocols, such as RIP, one of obligation property of OSPF and the policy of BGP4, from different sides show that the modeling method can decrease or avoid state explosion more efficiently than tranditional method when it only focuses on the description of the interested property. Moreover the number of test sequence is reduced dramatically.(3) A method of test data generation, which considers the features of packet, is given to help construct packet automatically. 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 is analyzed completely. According to their functions and the relation of the values, the fields are divided into three parts, first part is constant part, second part is independent fields and third part is the related fields. Moreover based on the accumulated experience, the priority is assigned to the independent fields and each sequence of related field as a whole. The testing packets are 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.

【关键词】 属性协议建模互操作性测试
【Key words】 PropertyProtocolModelingInteroperability Testing
  • 【网络出版投稿人】 内蒙古大学
  • 【网络出版年期】2010年 10期
节点文献中: 

本文链接的文献网络图示:

本文的引文网络