多单元协议一致性测试中的同步序列的生成
SYNCHRONIZABLE TEST SEQUENCE FOR MULTI-PARTY PROTOCOL CONFORMANCE TESTING
-
摘要: 有限状态机模型一般被用来描述通信协议和其它种类的分布式系统 .对于一个多端口的有限状态机 ,需要多个测试单元进行测试 .使用一个包括 K个 (K≥ 2 )测试单元的测试系统可以检查一个多单元通信协议软件的收发行为是否与协议规格一致 .在测试过程中 ,K个测试单元之间可能会出现同步问题 .目前 ,主要是通过增加外部同步操作来解决同步问题 .提出了一种新的同步测试序列生成模型——同步有向图 ,它可以判断一个给定的协议规格是否可以在不需要外部同步操作的情况下 ,产生同步测试序列 ;如果可以产生 ,则此生成模型可以将非同步测试序列转化为相应的同步测试序列 ;另外此生成模型还可以用来选择为测试系统增加外部同步通道的方法 .Abstract: The finite state machine (FSM) model is commonly used for specifying communication protocols and other types of distributed systems. For an FSM with multiple ports, multiple testers are needed. Testing whether a multi party protocol implementation conforms to the specification can be achieved by a testing system with K testers (where K ≥2), among which synchronization problems are encountered. A synchronizble test sequence of an FSM is a test sequence for which the synchroniztion problem does not exist. Now external synchronization operations are added to test sequence to solve this problem. For each type of testing, a necessary and sufficient condition is defined, under which a test sequence of an FSM is synchronizable. In this paper a new model—synchroniable digraph is proposed, which can judge whether there exist any synchronizable test sequence for a given specification without synchronization operation, and which can transform its nonsynchronizable test sequence to synchronizable test sequence if the answer is true. A method to judge how to add external synchronization operations in a nonsynchronizable test sequence to change it to synchroniable one is also proposed.
下载: