JPH05260129A - System for generating structure body for interface - Google Patents

System for generating structure body for interface

Info

Publication number
JPH05260129A
JPH05260129A JP4088178A JP8817892A JPH05260129A JP H05260129 A JPH05260129 A JP H05260129A JP 4088178 A JP4088178 A JP 4088178A JP 8817892 A JP8817892 A JP 8817892A JP H05260129 A JPH05260129 A JP H05260129A
Authority
JP
Japan
Prior art keywords
interface structure
knowledge
service primitive
protocol
input means
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4088178A
Other languages
Japanese (ja)
Inventor
Masako Orito
昌子 折戸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP4088178A priority Critical patent/JPH05260129A/en
Publication of JPH05260129A publication Critical patent/JPH05260129A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PURPOSE:To generate a structure body for interface independently of the manual work and to prevent a failure in generation of this structure body. CONSTITUTION:A protocol specification input means 1 inputs protocol specifications described in ASN.1, and a service primitive input means 2 inputs a service primitive as transmission data. A conversion means 5 uses the knowledge of a knowledge base 4 to generate the structure body for interface in accordance with protocol specifications inputted by the protocol specification input means 1 and the service primitive inputted by the service primitive input means 2. An interface structure body output means 3 outputs the structure body for interface, which the conversion means 5 generates, to a tool system which assembles and decomposes protocol data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は通信分野におけるプロト
コルデータの作成に関し、特に送信系通信プロトコルの
実装に際し、プロトコルデータの組立および分解を行う
ツールシステムへのインターフェイスとして必要なイン
ターフェイス用構造体を生成するインターフェイス用構
造体生成方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the creation of protocol data in the field of communication, and in particular, when implementing a transmission communication protocol, creates an interface structure necessary as an interface to a tool system for assembling and disassembling protocol data. Structure generation method for interface.

【0002】[0002]

【従来の技術】従来、ASN.1(Abstract
Syntax Notation One)記述で書か
れたプロトコルを実装開発する場合、実装者は、プロト
コルデータを組み立てたり分解したりする作業をツール
システムを用いて行っていた。
2. Description of the Related Art Conventionally, ASN. 1 (Abstract
When implementing and developing the protocol written in the Syntax Notation One) description, the implementer used the tool system to assemble and disassemble the protocol data.

【0003】このツールシステムによるプロトコルデー
タの作成には、送信データとしてのサービスプリミティ
ブとプロトコル仕様とから作成されたインターフェイス
用構造体というデータが用いられる。
To create protocol data by this tool system, data called an interface structure created from service primitives as transmission data and protocol specifications is used.

【0004】このインターフェイス用構造体は、図3に
示すように、インターフェイス用構造体の1要素がプロ
トコル仕様のANS.1記述中に現れる項目を識別する
項目識別子と、その項目が持つ値の長さと、その項目が
格納されている所在を示すポインタと、作業領域との4
項目を持つANS.1構文型の記述に対応した表構造で
ある。
In this interface structure, as shown in FIG. 3, one element of the interface structure is ANS. 4 an item identifier for identifying an item appearing in one description, a length of a value of the item, a pointer indicating the location where the item is stored, and a work area
ANS. With item. It is a table structure corresponding to one syntactic type description.

【0005】なお、このインターフェイス用構造体の配
列の構造は、プロトコル仕様のANS.1記述中に現れ
る型の属性および識別要素の属性に従って決定される。
The structure of the array of the interface structure is ANS. 1 Determined according to the type attribute and the identification element attribute that appear in the description.

【0006】従来、インターフェース用構造体の作成
は、実装者がプロトコル仕様と送信データとしてのサー
ビスプリミティブとからANS.1文法を考慮して手作
業で行っていた。
Conventionally, an interface structure is created by an implementer from ANS.NET based on protocol specifications and service primitives as transmission data. I did it manually considering the grammar.

【0007】[0007]

【発明が解決しようとする課題】このような従来のイン
ターフェイス用構造体作成方式では、プロトコル仕様の
中に現れるASN.1文法における型の属性および識別
要素の属性によりインターフェイス用構造体の配列構造
が変わってくるので、実装者は、ANS.1文法を正し
く理解している必要があるという問題点があった。
In such a conventional interface structure creating method, the ASN. The array structure of the interface structure changes depending on the type attribute and the identification element attribute in the grammar 1. 1 There was a problem that it was necessary to correctly understand grammar.

【0008】また、インターフェイス用構造体を作成す
るためには、プロトコル仕様とサービスプリミティブと
から人手により逐一作っていかなければならないので、
手間のかかる作業であるばかりでなくインターフェイス
用構造体の作成ミスが発生するという問題点があった。
Further, in order to create the interface structure, it is necessary to manually create it from the protocol specifications and the service primitives.
Not only is it a time-consuming task, but there is also a problem in that a mistake is made in creating the interface structure.

【0009】さらに、インターフェイス用構造体の各要
素は4項目からなる表構造であるので、このインターフ
ェイス用構造体を作成するには、実装者は、作業領域以
外の項目識別子,長さおよびポインタを各要素ごとに格
納する必要があるという問題点があった。
Furthermore, since each element of the interface structure is a table structure consisting of four items, the implementer must create an item identifier other than the work area, a length and a pointer in order to create this interface structure. There was a problem that it was necessary to store each element.

【0010】本発明の目的は、上述の点に鑑み、AS
N.1で記述されたインターフェイス用構造体の作成を
手作業によらないようにするとともに、インターフェイ
ス用構造体の作成ミスをなくすようにしたインターフェ
イス用構造体生成方式を提供することにある。
In view of the above points, an object of the present invention is to provide AS
N. An object of the present invention is to provide an interface structure generation method in which the interface structure described in 1 is not manually created and an interface structure creation error is eliminated.

【0011】[0011]

【課題を解決するための手段】本発明のインターフェイ
ス用構造体生成方式は、ASN.1で記述されたプロト
コル仕様を入力するプロトコル仕様入力手段と、サービ
スプリミティブを入力するサービスプリミティブ入力手
段と、ASN.1文法に関する知識と、前記サービスプ
リミティブ入力手段によって入力されるサービスプリミ
ティブのデータ形式に関する知識と、インターフェイス
用構造体に関する知識と、サービスプリミティブとイン
ターフェイス用構造体との間の関係を記述した知識とを
格納する知識ベースと、前記プロトコル仕様入力手段に
より入力されたプロトコル仕様と前記サービスプリミテ
ィブ入力手段により入力されたサービスプリミティブと
から前記知識ベースの知識を用いてインターフェイス用
構造体を作成する変換手段と、前記変換手段により作成
されたインターフェイス用構造体をツールシステムに出
力するインターフェイス用構造体出力手段とを有する。
The interface structure generating method of the present invention is based on ASN. Protocol specification input means for inputting the protocol specifications described in 1., service primitive input means for inputting service primitives, ASN. 1 knowledge about grammar, knowledge about data format of service primitive input by the service primitive input means, knowledge about interface structure, and knowledge describing relationship between service primitive and interface structure. Conversion means for creating an interface structure from the knowledge base to be stored, the protocol specification input by the protocol specification input means and the service primitive input by the service primitive input means, using the knowledge of the knowledge base; Interface structure output means for outputting the interface structure created by the conversion means to a tool system.

【0012】[0012]

【作用】本発明のインターフェイス用構造体生成方式で
は、プロトコル仕様入力手段がASN.1で記述された
プロトコル仕様を入力し、サービスプリミティブ入力手
段がサービスプリミティブを入力し、知識ベースがAS
N.1文法に関する知識と、サービスプリミティブ入力
手段によって入力されるサービスプリミティブのデータ
形式に関する知識と、インターフェイス用構造体に関す
る知識と、サービスプリミティブとインターフェイス用
構造体との間の関係を記述した知識とを格納し、変換手
段がプロトコル仕様入力手段により入力されたプロトコ
ル仕様とサービスプリミティブ入力手段により入力され
たサービスプリミティブとから知識ベースの知識を用い
てインターフェイス用構造体を作成し、インターフェイ
ス用構造体出力手段が変換手段により作成されたインタ
ーフェイス用構造体をツールシステムに出力する。
In the interface structure generating method of the present invention, the protocol specification input means is the ASN. 1. The protocol specification described in 1 is input, the service primitive input means inputs the service primitive, and the knowledge base is AS.
N. 1 knowledge about grammar, knowledge about data format of service primitive input by service primitive input means, knowledge about interface structure, and knowledge describing relationship between service primitive and interface structure are stored. Then, the conversion means creates an interface structure using the knowledge of the knowledge base from the protocol specification input by the protocol specification input means and the service primitive input by the service primitive input means. The interface structure created by the converting means is output to the tool system.

【0013】[0013]

【実施例】次に、本発明について図面を参照して詳細に
説明する。
The present invention will be described in detail with reference to the drawings.

【0014】図1は、本発明の一実施例に係るインター
フェイス用構造体生成方式の構成を示すブロック図であ
る。本実施例のインターフェイス用構造体生成方式は、
プロトコル仕様入力手段1と、サービスプリミティブ入
力手段2と、インターフェイス用構造体出力手段3と、
知識ベース4と、変換手段5とから構成されている。
FIG. 1 is a block diagram showing the structure of an interface structure generating method according to an embodiment of the present invention. The interface structure generation method of this embodiment is
Protocol specification input means 1, service primitive input means 2, interface structure output means 3,
It is composed of a knowledge base 4 and a conversion means 5.

【0015】プロトコル仕様入力手段1は、ASN.1
で記述されたプロトコルの仕様を変換手段5に入力す
る。
The protocol specification input means 1 uses the ASN. 1
The specifications of the protocol described in (4) are input to the conversion means 5.

【0016】サービスプリミティブ入力手段2は、送信
データであるサービスプリミティブを変換手段5に入力
する。
The service primitive input means 2 inputs a service primitive, which is transmission data, to the conversion means 5.

【0017】インターフェイス用構造体出力手段3は、
変換手段5により作成されたインターフェイス用構造体
をプロトコルデータの組立および分解を行うツールシス
テム(図示せず)に出力する。
The interface structure output means 3 is
The interface structure created by the conversion means 5 is output to a tool system (not shown) that assembles and disassembles protocol data.

【0018】知識ベース4は、ASN.1文法に関する
知識と、サービスプリミティブのデータ形式に関する知
識と、インターフェイス用構造体に関する知識と、サー
ビスプリミティブとインターフェイス用構造体との間の
関係を記述した知識とを格納する。
The knowledge base 4 is ASN. 1 knowledge about grammar, knowledge about data format of service primitive, knowledge about interface structure, and knowledge describing relationship between service primitive and interface structure are stored.

【0019】変換手段5は、プロトコル仕様入力手段1
により入力されたプロトコル仕様とサービスプリミティ
ブ入力手段2により入力されたサービスプリミティブと
から、知識ベース4の知識を用いてインターフェイス用
構造体を作成する。
The conversion means 5 is the protocol specification input means 1
An interface structure is created using the knowledge of the knowledge base 4 from the protocol specification input by the service primitive and the service primitive input by the service primitive input means 2.

【0020】図2を参照すると、変換手段5がASN.
1で記述されたプロトコル仕様とサービスプリミティブ
とから知識ベース4中の知識を用いてインターフェイス
用構造体を作成する処理は、型の属性処理ステップS2
1と、識別要素の属性処理ステップS22と、インター
フェイス用構造体の配列構造代入ステップS23と、プ
ロトコル仕様終了判定ステップS24とからなる。
Referring to FIG. 2, the conversion means 5 is ASN.
The process of creating the interface structure using the knowledge in the knowledge base 4 from the protocol specification and the service primitive described in 1 is the type attribute processing step S2.
1, an identification element attribute processing step S22, an interface structure array structure substitution step S23, and a protocol specification end determination step S24.

【0021】次に、このように構成された本実施例のイ
ンターフェイス用構造体生成方式の動作について説明す
る。
Next, the operation of the interface structure generating method of this embodiment having the above structure will be described.

【0022】まず、プロトコル仕様入力手段1は、実装
者によりANS.1で記述されたプロトコル仕様を入力
され、このプロトコル仕様を変換手段5に引き渡す。
First, the protocol specification input means 1 is set to ANS. The protocol specification described in 1 is input, and this protocol specification is delivered to the conversion means 5.

【0023】サービスプリミティブ入力手段2は、実装
者により送信データとしてのサービスプリミティブを入
力され、このサービスプリミティブを変換手段5に引き
渡す。
The service primitive input means 2 receives a service primitive as transmission data from the implementer, and delivers this service primitive to the conversion means 5.

【0024】変換手段5は、プロトコル仕様のASN.
1記述中に現れる型の属性による処理を、知識ベース4
の中に格納されているASN.1文法に関する知識とサ
ービスプリミティブのデータ形式に関する知識とを用い
て行う(ステップS21)。例えば、SEQUENCE
型ではインターフェイス用構造体を構成する要素の順序
性を考慮する必要があるため、変換手段5は、サービス
プリミティブがプロトコル仕様に現れる要素の並びに従
っているか否かを知識ベース4の中に格納されているA
SN.1文法に関する知識とサービスプリミティブのデ
ータ形式に関する知識とを用いてチェックする。
The conversion means 5 is an ASN.
Knowledge Base 4
Stored in the ASN. This is performed using knowledge about one grammar and knowledge about the data format of the service primitive (step S21). For example, SEQUENCE
Since it is necessary to consider the order of the elements forming the interface structure in the type, the conversion means 5 stores in the knowledge base 4 whether or not the service primitive follows the arrangement of the elements appearing in the protocol specification. A
SN. 1 Check using knowledge about grammar and knowledge about data format of service primitive.

【0025】次に、変換手段5は、プロトコル仕様のA
SN.1記述中に現れる識別要素の属性による処理を、
知識ベース4の中に格納されているASN.1文法に関
する知識とサービスプリミティブのデータ形式に関する
知識とを用いて行う(ステップS22)。例えば、プロ
トコル仕様ではOPTIONAL属性を持つ要素は、省
略が可能であるが、プロトコル仕様でOPTIONAL
属性を持つ要素が省略され、サービスプリミティブ中で
OPTIONAL属性を持つ要素が省略されていない場
合には、このOPTIONAL属性を持つ要素の値をイ
ンターフェイス用構造体に代入するという処理が必要に
なるという知識を知識ベース4に格納されているAS
N.1文法に関する知識とサービスプリミティブのデー
タ形式に関する知識とから引き出す。
Next, the conversion means 5 uses the protocol specification A
SN. 1 Processing by the attribute of the identification element appearing in the description,
The ASN. This is performed using knowledge about one grammar and knowledge about the data format of the service primitive (step S22). For example, elements with the OPTIONAL attribute can be omitted in the protocol specifications, but OPTIONAL in the protocol specifications.
Knowledge that, if the element having the attribute is omitted and the element having the OPTIONAL attribute is not omitted in the service primitive, the process of substituting the value of the element having the OPTIONAL attribute into the interface structure is required. AS stored in knowledge base 4
N. 1 Extracted from knowledge of grammar and knowledge of data format of service primitives.

【0026】続いて、変換手段5は、知識ベース4の中
に格納されているインターフェイス用構造体に関する知
識とサービスプリミティブとインターフェイス用構造体
との間の関係を記述した知識とを用いてインターフェイ
ス用構造体の配列構造を構成する項目識別子,長さおよ
びポインタに値を代入する(ステップS23)。
Subsequently, the conversion means 5 uses the knowledge about the interface structure stored in the knowledge base 4 and the knowledge describing the relationship between the service primitive and the interface structure, for the interface. Values are assigned to the item identifiers, lengths, and pointers that make up the array structure of the structure (step S23).

【0027】最後に、変換手段5は、入力されたサービ
スプリミティブがプロトコル仕様のすべての要素に沿っ
て処理し終えたか否かをチェックする(ステップS2
4)。チェックした結果、処理し終えたとき、変換手段
5は、作成したインターフェイス用構造体をインターフ
ェイス用構造体出力手段3に渡す。一方、処理し終えて
いないとき、変換手段5は、再び、ステップS21に処
理を戻し上記の処理を行う。
Finally, the conversion means 5 checks whether the input service primitive has been processed according to all the elements of the protocol specification (step S2).
4). As a result of the check, when the processing is completed, the conversion means 5 passes the created interface structure to the interface structure output means 3. On the other hand, when the processing has not been completed, the conversion means 5 returns the processing to step S21 again and performs the above processing.

【0028】インターフェイス用構造体出力手段3は、
プロトコルデータを生成するためにインターフェイス用
構造体をツールシステムに出力する。
The interface structure output means 3 is
Output the interface structure to the tool system to generate the protocol data.

【0029】[0029]

【発明の効果】以上説明したように本発明は、プロトコ
ル仕様入力手段,サービスプリミティブ入力手段,知識
ベース,変換手段およびインターフェイス用構造体出力
手段を設けたことにより、従来、プロトコル仕様のAN
S.1記述とサービスプリミティブとを一つ一つ追って
照らし合わせながら手作業で行っていたインターフェイ
ス用構造体の作成を知識ベースの中の知識を用いて自動
的に行うことができ、実装者がANS.1文法を正しく
理解する手間が省けるという効果がある。
As described above, according to the present invention, the protocol specification input means, the service primitive input means, the knowledge base, the conversion means, and the interface structure output means are provided.
S. Interface structure can be automatically created by using the knowledge in the knowledge base, which was manually done while checking each description and the service primitive one by one. 1 It has the effect of saving the trouble of correctly understanding grammar.

【0030】また、ツールシステムとのインターフェイ
ス用構造体をプロトコル仕様とサービスプリミティブと
から自動的に作成することができ、インターフェイス用
構造体の作成ミスを未然に防止することができるという
効果がある。
Further, it is possible to automatically create the interface structure with the tool system from the protocol specification and the service primitive, and it is possible to prevent the interface structure creation error from occurring.

【0031】さらに、インターフェイス用構造体の作業
領域以外の項目識別子,値の長さおよび値へのポインタ
を各要素ごとに毎回格納する必要がなくなるという効果
がある。
Further, there is an effect that it becomes unnecessary to store the item identifier, the length of the value and the pointer to the value other than the work area of the interface structure for each element every time.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例に係るインターフェイス用構
造体生成方式の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an interface structure generation method according to an exemplary embodiment of the present invention.

【図2】図1中の変換手段の処理を示す流れ図である。FIG. 2 is a flow chart showing a process of a converting means in FIG.

【図3】インターフェイス用構造体の構成を示す図であ
る。
FIG. 3 is a diagram showing a configuration of an interface structure.

【符号の説明】[Explanation of symbols]

1 プロトコル仕様入力手段 2 サービスプリミティブ入力手段 3 インターフェイス用構造体出力手段 4 知識ベース 5 変換手段 1 protocol specification input means 2 service primitive input means 3 interface structure output means 4 knowledge base 5 conversion means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ASN.1で記述されたプロトコル仕様
を入力するプロトコル仕様入力手段と、 サービスプリミティブを入力するサービスプリミティブ
入力手段と、 ASN.1文法に関する知識と、前記サービスプリミテ
ィブ入力手段によって入力されるサービスプリミティブ
のデータ形式に関する知識と、インターフェイス用構造
体に関する知識と、サービスプリミティブとインターフ
ェイス用構造体との間の関係を記述した知識とを格納す
る知識ベースと、 前記プロトコル仕様入力手段により入力されたプロトコ
ル仕様と前記サービスプリミティブ入力手段により入力
されたサービスプリミティブとから前記知識ベースの知
識を用いてインターフェイス用構造体を作成する変換手
段と、 前記変換手段により作成されたインターフェイス用構造
体をツールシステムに出力するインターフェイス用構造
体出力手段とを有することを特徴とするインターフェイ
ス用構造体生成方式。
1. ASN. Protocol specification input means for inputting the protocol specifications described in 1., service primitive input means for inputting service primitives, ASN. 1 knowledge about grammar, knowledge about data format of service primitive input by the service primitive input means, knowledge about interface structure, and knowledge describing relationship between service primitive and interface structure. A knowledge base to be stored, a conversion means for creating an interface structure using the knowledge of the knowledge base from the protocol specifications input by the protocol specification input means and the service primitives input by the service primitive input means, An interface structure generation method for outputting an interface structure created by the conversion means to a tool system.
JP4088178A 1992-03-12 1992-03-12 System for generating structure body for interface Pending JPH05260129A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4088178A JPH05260129A (en) 1992-03-12 1992-03-12 System for generating structure body for interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4088178A JPH05260129A (en) 1992-03-12 1992-03-12 System for generating structure body for interface

Publications (1)

Publication Number Publication Date
JPH05260129A true JPH05260129A (en) 1993-10-08

Family

ID=13935656

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4088178A Pending JPH05260129A (en) 1992-03-12 1992-03-12 System for generating structure body for interface

Country Status (1)

Country Link
JP (1) JPH05260129A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000339175A (en) * 1999-05-28 2000-12-08 Nec Corp Dynamic assigning method for type information in data structure definition using abstract syntax description method
KR20040043845A (en) * 2002-11-20 2004-05-27 한국전자통신연구원 Edit Method for ASN.1 message Using Hierarchical Tree

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000339175A (en) * 1999-05-28 2000-12-08 Nec Corp Dynamic assigning method for type information in data structure definition using abstract syntax description method
KR20040043845A (en) * 2002-11-20 2004-05-27 한국전자통신연구원 Edit Method for ASN.1 message Using Hierarchical Tree

Similar Documents

Publication Publication Date Title
JPH103374A (en) Method for reutilizing parts of configuration tool for controlling design
JPH04337945A (en) Protocol composition/decomposition supporting device
JPH05260129A (en) System for generating structure body for interface
JPH09107387A (en) Protocol conversion gateway system
JP2002342078A (en) Program development system and method
JP2833612B2 (en) Service primitive generation system
JPH1065762A (en) Automatic testing simulator for communication software and automatic testing method therefor
JPH01233513A (en) Processing method for printing data
JPH04369730A (en) Source program conversion tool generation system
JPH10198419A (en) Plant information monitoring device and its input/output point list editing processor
JPS63296542A (en) Protocol data analyzer
CN115686489A (en) Automatic generation method and device for transmission service code of flight control system
JPH11272524A (en) Data converter and storage medium
JPH08185316A (en) Device for supporting communication protocol description
JPH05210492A (en) Graphic preparing system
JPH09257876A (en) Output pattern analysis model automatic generating system
JPH06243002A (en) Data base processing method using file
JPH0580992A (en) Output system for procedure-function relation chart
JPS61247148A (en) Protocol verification logic table system
JPH09265368A (en) Distributed processing system
JPH05303484A (en) Data linking system
JPH0756717A (en) Automatic jcl preparing device
JP2000148722A (en) Date switching method
JPH0319056A (en) Asn.1 encoding vtl generation device
JPH0252078A (en) Apparatus for applying postal code number