We use cookies to improve your experience with our site.

一个UML状态机建模服务规范中的综合分布协议方

Synthesizing Distributed Protocol Specifications from a UML State Machine Modeled Service Specification

  • 摘要: 面向对象是设计与运行通讯系统的常用方法.标准建模语言(UML)是一种用于设计面向对象系统的标准语言.协议状态机是一个UML图,它已被广泛用于设计通讯协议.相比较于传统的有限状态机来说,协议状态机有两个优势:并行建模与邻域层次状态建模.在分布式通讯系统中,当不同通讯实体之间交换信息时,每一个实体都定义了它自己的协议.被交换信息的顺序必须与系统的整体服务规范相吻合.在面向对象的系统中,服务和协议规范在UML协议状态机中构建.协议规范综合方法已经被用于从服务规范中自动生成协议规范,如果不采用协议规范综合方法,那么设计、分析以及错误检测和纠错的耗时过程将不断被迭代,直到协议正确并且与服务规范一致.本文分析了几种综合方法用于模型而非协议状态机,因为协议状态机的独特风格,所以这些方法并不适用于UML协议状态机中的服务建模.本文提出了一种综合方法,能够自动综合服务规范中分布协议实体的协议规范,得到UML协议状态机中所有类型的规范.这种方法是建立在最新版本UML(UML2.3)上的,并且证明了这种综合协议规范方法从语法和语义上来说都是正确的.以网络电话为例,利用这种综合方法生成了符合H.3.23标准的协议规范.

     

    Abstract: The object-oriented paradigm is widely applied in designing and implementing communication systems. Unified Modeling Language (UML) is a standard language used to model the design of object-oriented systems. A protocol state machine is a UML adopted diagram that is widely used in designing communication protocols. It has two key attractive advantages over traditional finite state machines: modeling concurrency and modeling nested hierarchical states. In a distributed communication system, each entity of the system has its own protocol that defines when and how the entity exchanges messages with other communicating entities in the system. The order of the exchanged messages must conform to the overall service specifications of the system. In object-oriented systems, both the service and the protocol specifications are modeled in UML protocol state machines. Protocol specification synthesis methods have to be applied to automatically derive the protocol specification from the service specification. Otherwise, a time-consuming process of design, analysis, and error detection and correction has to be applied iteratively until the design of the protocol becomes error-free and consistent with the service specification. Several synthesis methods are proposed in the literature for models other than UML protocol state machines, and therefore, because of the unique features of the protocol state machines, these methods are inapplicable to services modeled in UML protocol state machines. In this paper, we propose a synthesis method that automatically synthesizes the protocol specification of distributed protocol entities from the service specification, given that both types of specifications are modeled in UML protocol state machines. Our method is based on the latest UML version (UML2.3), and it is proven to synthesize protocol specifications that are syntactically and semantically correct. As an example application, the synthesis method is used to derive the protocol specification of the H.323 standard used in Internet calls.

     

/

返回文章
返回