JPH0340155A - Protocol data unit editing and analysis device - Google Patents
Protocol data unit editing and analysis deviceInfo
- Publication number
- JPH0340155A JPH0340155A JP1175915A JP17591589A JPH0340155A JP H0340155 A JPH0340155 A JP H0340155A JP 1175915 A JP1175915 A JP 1175915A JP 17591589 A JP17591589 A JP 17591589A JP H0340155 A JPH0340155 A JP H0340155A
- Authority
- JP
- Japan
- Prior art keywords
- protocol
- value data
- value
- data
- unit
- 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
Links
Landscapes
- Communication Control (AREA)
- Computer And Data Communications (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
産業上の利用分野
本発明C−1通信機器のプロトコルデータユニットを編
集解析する装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention C-1 relates to an apparatus for editing and analyzing protocol data units of communication equipment.
従来の技術
通信プロトコルは一般になんらかのプロトコル記法に基
づいて記述されている。そこで従来から、これらのプロ
トコル記法で記述されたプロトコルデータユニットを編
集解析するためのさまざまな方法ならびに装置が提案さ
れてきた 一般的な方法としてはプロトコル定義を記述
したファイルをプロトコルコンパイラに人力してC言語
の構造体を作成し この構造体に送信したい値データを
プログラマが書き込へ 汎用のコーデックによって符号
化することによる編集処凰 また受信の場合は逆に受信
したデータをコーデックがC言語の構造体に書き込へ
プログラマがこれを取り出すことによる解析処理を行っ
ていた
発明が解決しようとする課題
しかし 従来のこのようなプロトコルデータユニット編
集解析装置には以下のような課題がある。Prior art communication protocols are generally described based on some protocol notation. Therefore, various methods and devices have been proposed for editing and analyzing protocol data units written using these protocol notations.A common method is to manually input a file containing a protocol definition into a protocol compiler. A C language structure is created, and the programmer writes the value data to be sent to this structure.Editing is done by encoding it using a general-purpose codec.Conversely, in the case of reception, the received data is converted into a C language codec. Write to structure
The problem that the invention attempts to solve is that the programmer performs the analysis process by extracting the data. However, the conventional protocol data unit editing and analysis device has the following problems.
l)プロトコル構造をC言語の構造体で表現すると、使
用しないプロトコル要素のためのデータ領域 あるいは
データ領域を指し示すポインタの領域も常にメモリ上に
確保しなければならないたム 無駄なメモリ領域が生じ
る。l) If a protocol structure is expressed as a C language structure, a data area for unused protocol elements or an area for a pointer pointing to a data area must always be reserved in memory, resulting in wasted memory area.
2)プロトコル構造が複雑かつ巨大になると構造体の大
きさがきわめて大きくなり非常にたくさんのメモリが必
要となるので、小さなメモリ容量しか持たないシステム
上でのアプリケーションの実現が困難になる。2) If the protocol structure becomes complex and huge, the size of the structure becomes extremely large and requires a large amount of memory, making it difficult to implement applications on a system with only a small memory capacity.
3)内部に構造を持つプロトコル要素でその構成要素の
個数に制限の無いものがある場合には無限大のメモリ領
域が必要となり事実上実現できない。3) If there is a protocol element that has an internal structure and there is no limit to the number of its components, an infinite memory area is required, which is practically impossible to implement.
4)同じプロトコルを使用するプロセスを1つのマシン
上で複数実装する場合に 全てのプロセスが同一の構造
体をそれぞれに持つ必要があり、プロトコルルールに関
する情報が重複してメモリ効率が落ちる。4) When multiple processes that use the same protocol are implemented on one machine, all processes must have the same structure, and information regarding protocol rules is duplicated, reducing memory efficiency.
5)構造体とそれにリンクされるデータ領域などの情報
の管理をプログラマが行う必要があるが一般にそのリン
ク構造は非常に複雑になるため管理がきわめて困難であ
り、作成されたアプリケーションに障害が発生し易し
また そのような構造のデータをひとまとまりのものと
して受渡することは困難であるためデータのファイルへ
の退避やマルチプロセス化が困難である。本発明はこの
ような課題を鑑へ 必要最小限のメモリしか使用しない
コンパクトなプロトコルデータユニットの編集解析処理
装置を提供し また プロトコル構造に関する知識を余
り要求せずミ かつデータの管理を容易にすることによ
って、プロトコルに精通しないプログラマでも容易に信
頼性が高いプロトコル処理装置を開発できる機能を提供
することを目的とする。5) It is necessary for programmers to manage information such as structures and data areas linked to them, but the link structures are generally very complex and management is extremely difficult, resulting in failures in the created applications. Easy to do
In addition, it is difficult to transfer data with such a structure as a whole, making it difficult to save data to a file or use multi-processing. In view of these problems, the present invention provides a compact protocol data unit editing and analysis processing device that uses only the minimum necessary memory, and also facilitates data management without requiring much knowledge of protocol structure. The purpose of this invention is to provide a function that allows even programmers who are not familiar with protocols to easily develop a highly reliable protocol processing device.
課題を解決するための手段
上記の目的を遠戚するために 本発明のプロトコルデー
タユニット編集解析装置に於いて(よ 第1の方法とし
て、一定のプロトコル記法によって記述されるプロトコ
ル定義を読み込んでプロトコル定義の字句解析ならびに
意味解析処理を行うことによってプロトコル定義に記述
されたプロトコル要素を識別するためのプロトコル要素
識別子−監部とプロトコルの構造ならびに各プロトコル
要素の属性情報を記述したプロトコルルール表を出力す
るプロトコル定義コンパイラを提供し プロトコル構造
を構造体を用いずに表現する。第2の方法として、前記
のプロトコルコンパイラなどによって生成されたプロト
コルルール表をメモリ上に登録するプロトコルルール表
登録部と、値データ表の作成・削除や、送受信する値デ
ータを値データ表に値識別子を付与して登録し 各値デ
ータを値識別子によって管理・入出力操作する値データ
表管理操作部と、前記プロトコル要素識別子をもとにプ
ロトコルルール表を参照して、前記値識別子を用いて前
記値データ表の一部あるいは全部の値データをプロトコ
ルルールに沿って関連付Cす、かつ値データの構成とプ
ロトコルルールとの適合性を検査するプロトコル要素関
連付は適合検査部と、プロトコル適合性検査済みの前記
値データ表をもとに符号化規則に則って送信する転送構
文を組み立て、あるいは受信した転送構文を分解して値
データ表に登録する汎用コーデック部と、前記プロトコ
ルルール表登録部と前記値データ入出力管理操作部、
前記プロトコル要素関連付は適合検査部 前記汎用コー
デックの各部に対してプロトコルルール表ならびに値デ
ータ表使用のためのメモリ管理機能を提供するデータ管
理部とで構成されるプロトコルルータユニツ)[集解析
装置を提供する。第3の方法として値データ表内部を階
層構造を持つことができるいくつかの管理領域に分割し
かつ各管理領域内においては同一のプロトコル要素識
別子を持つプロトコル要素の重複を避けるようにした表
構造を持つプロトコルデータユニット編集解析装置を提
供する。第4の方法として、値識別子によって指定され
た値データ表上の値データを、下位構造としてその値デ
ータと関連付けられた全ての値データと共に抜きだして
メモリ上の別領域あるいはファイルに退避し また逆に
メモリ上あるいはファイル上に退避された一連の値デー
タを現在編集処理を行っている値データ表の指定の値デ
ータの構成要素として組み込む機能を提供し すでに値
データ表形式に構成された一連の値データの再利用を可
能ならしめるプロトコルデータユニット編集解析装置を
提供する。Means for Solving the Problem In order to achieve the above-mentioned object, the protocol data unit editing and analysis device of the present invention (as a first method) reads a protocol definition written in a certain protocol notation, By performing lexical analysis and semantic analysis of the definition, outputs a protocol element identifier-monitoring section for identifying the protocol elements described in the protocol definition and a protocol rule table that describes the structure of the protocol and attribute information of each protocol element. A second method is to provide a protocol definition compiler that expresses a protocol structure without using a structure.A second method includes a protocol rule table registration unit that registers a protocol rule table generated by the protocol compiler or the like in memory; A value data table management operation unit that creates and deletes value data tables, registers value data to be sent and received by assigning value identifiers to the value data table, and manages and inputs/outputs each value data using the value identifier, and the protocol element described above. Referring to a protocol rule table based on the identifier, using the value identifier to associate part or all of the value data in the value data table according to the protocol rule, and the configuration of the value data and the protocol rule. The protocol element association for checking the compatibility with the compatibility check unit assembles a transfer syntax to be transmitted in accordance with the encoding rules based on the value data table that has been checked for protocol compatibility, or assembles the received transfer syntax. a general-purpose codec section that decomposes and registers it in a value data table; the protocol rule table registration section; and the value data input/output management operation section;
A protocol router unit (comprised of a conformance inspection unit for associating the protocol elements and a data management unit that provides a memory management function for using protocol rule tables and value data tables for each unit of the general-purpose codec) [collection analysis device] I will provide a. A third method is to divide the inside of the value data table into several management areas that can have a hierarchical structure, and create a table structure that avoids duplication of protocol elements with the same protocol element identifier within each management area. Provided is a protocol data unit editing and analysis device having the following features. A fourth method is to extract the value data on the value data table specified by the value identifier, along with all value data associated with that value data as a lower structure, and save it to a separate area on memory or to a file. Conversely, it provides a function to incorporate a series of value data saved in memory or a file as a component of specified value data in the value data table currently being edited. Provided is a protocol data unit editing and analysis device that enables reuse of value data.
作用
第1の方法によって、プロトコルルールを構造体として
持つ必要がなくなるのでプロトコルルール情報記述のた
めに使用するメモリ領域が削減され 同時にプロトコル
ルールと値データ領域が互いに独立となるので使用しな
いプロトコル要素のための値データ領域が不要となるの
でメモリ使用量が削減される。第2の方法によって、第
1の方法などによって作成されたプロトコルルール表を
使用してプロトコルデータユニットの編集処理並びに解
析処理が行えるようになり、また値データ表管理操作部
とデータ管理部によって値データ表を必要に応じて必要
なだけ作成あるいは削除できるので、メモリ使用量が削
減される。また プロトコルルール表が値データ表と独
立であることとデータ管理部の機能によってプロトコル
ルール表の複数プロセスでの共有が可能となるのでプロ
トコルルールに関する情報の重複がなくなり、マル9−
チプロセス処理時のメモリ効率が向上する。第3の方法
によって、値データ表内部を階層構造を持つことができ
るいくつかの管理領域に分割し かつ各管理領域内には
同一プロトコル要素を含まないようにできるので、同一
プロトコル要素を多数使用する複雑なプロトコルの処理
に於いて、まず各管理領域単位でプロトコル編集・解析
処理を行し\ しかる後に全体の編集解析を行うことに
よりプロトコルデータユニットの編集・解析処理を混乱
なく行うことができる。第4の方法によって、あるプロ
トコル要素の値データを、その要素を構成する全ての下
部構造のプロトコル要素の値データと共に取り出すこと
ができるので、あるプロトコル要素を現在の通信処理と
は別の通信処理あるいは同時に動いている別のプロトコ
ル編集解析プロセスで使用できるようになり、頻繁に使
用されるプロトコル要素の値データ表作成処理を省略で
き、編集処理効率が向上する。The first method eliminates the need to hold protocol rules as a structure, reducing the memory area used to describe protocol rule information.At the same time, the protocol rules and value data area become independent of each other, so unused protocol elements can be saved. Since there is no need for a value data area for this, memory usage is reduced. The second method makes it possible to edit and analyze protocol data units using the protocol rule table created by the first method, etc., and the value data table management operation section and data management section You can create or delete as many data tables as needed, reducing memory usage. In addition, the fact that the protocol rule table is independent of the value data table and the function of the data management section makes it possible to share the protocol rule table among multiple processes, which eliminates duplication of information regarding protocol rules and improves performance during multi-process processing. Improves memory efficiency. With the third method, the inside of the value data table can be divided into several management areas that can have a hierarchical structure, and each management area can not contain the same protocol elements, so a large number of the same protocol elements can be used. When processing complex protocols, it is possible to edit and analyze protocol data units without confusion by first editing and analyzing the protocol for each management area and then editing and analyzing the entire protocol. . By the fourth method, the value data of a certain protocol element can be extracted together with the value data of all the lower structure protocol elements that constitute that element, so that a certain protocol element can be processed in a communication process different from the current communication process. Alternatively, it can be used in another protocol editing and analysis process that is running at the same time, and the process of creating value data tables for frequently used protocol elements can be omitted, improving editing processing efficiency.
実施例
第1図は本発明の第1の実施例におけるプロト1〇−
コルデータユニット編集解析装置のプロトコル定義コン
パイラの構成を示す。本装置はディスク装置101、プ
ロトコル定義コンパイル処理部]02.およびRA M
103とで構成される。ディスク装置101にはプロ
トコルを記述したテキストファイルが格納されている。Embodiment FIG. 1 shows the configuration of a protocol definition compiler of a protocol data unit editing and analysis apparatus in a first embodiment of the present invention. This device includes a disk device 101, a protocol definition compilation processing section]02. and R.A.M.
103. A text file describing a protocol is stored in the disk device 101.
プロトコル定義コンパイル処理部102はこのファイル
を順次読みだし プロトコル要素を抽出してプロトコル
要素識別子一覧表を作成し 同時に各プロトコル要素の
属性情報や構成要素について記述したプロトコルルール
表301を一旦RA M 103上に作成する。これら
の表が完成するとファイルとしてディスク装置101に
格納される。第2図は本発明の第1の実施例におけるプ
ロトコル定義コンパイラのプロトコル定義コンパイル処
理部の処理の流れを示す。プロトコル定義コンパイル処
理部はプロトコルテキストファイルを順次読み込んで、
プロトコル要素識別子を抽出しくステップ201)、そ
のプロトコル要素識別子がすでに処理したものであるか
どうかを判断する(ステップ202)。処理済みであれ
ばステップ201に戻る。未1
処理であればプロトコル要素識別子一覧表に登録する(
ステップ203)。ついでそのプロトコル要素識別子の
属性情報を抽出して(ステップ204)プロトコル要素
属性表302に登録する(ステップ205)。The protocol definition compile processing unit 102 sequentially reads this file, extracts the protocol elements, creates a list of protocol element identifiers, and at the same time temporarily stores the protocol rule table 301, which describes the attribute information and constituent elements of each protocol element, on the RAM 103. Create to. When these tables are completed, they are stored in the disk device 101 as files. FIG. 2 shows the processing flow of the protocol definition compilation processing section of the protocol definition compiler in the first embodiment of the present invention. The protocol definition compilation processing section sequentially reads the protocol text files and
A protocol element identifier is extracted (step 201), and it is determined whether the protocol element identifier has already been processed (step 202). If the process has been completed, the process returns to step 201. If the process is not yet 1, register it in the protocol element identifier list (
Step 203). Next, the attribute information of the protocol element identifier is extracted (step 204) and registered in the protocol element attribute table 302 (step 205).
つぎにそのプロトコル要素識別子が構文型であるか基本
型であるかを判断する(ステップ206)。構文型であ
れ(よ そのプロトコル要素識別子の下部構造をなすプ
ロトコル要素識別子の情報を構成要素表303に登録す
る(ステップ207)。基本型であれば そのプロトコ
ル要素識別子が取りうる値の範囲が規定されているかど
うかを判断しくステップ208)、指定されていればそ
の条]4を値範囲表304に登録する(ステップ209
)。以上の作業を繰り返すことによって、プロトコル要
素識別子一覧表ならびにプロトコルルール表301が完
成する。第3図は本発明の第1の実施例におけるプロト
コルルル表301の構成を示i−= 第3図におい−
こ プロトコル要素属性表302は各プロトコル要素の
属性(例えば 整数型やSET型などの基本的なタイプ
の情報および必須要素/オプショナル要素の指定な2−
ど)と、各プロトコル要素のルールかどの表のどこに記
述されているかを示すルール位置情報を記述している。Next, it is determined whether the protocol element identifier is a syntactic type or a basic type (step 206). Regardless of whether it is a syntax type (other protocol element identifiers), the information on the protocol element identifier that forms the substructure of the other protocol element identifier is registered in the component table 303 (step 207).If it is a basic type, the range of values that the protocol element identifier can take is specified. If specified, the article]4 is registered in the value range table 304 (step 209).
). By repeating the above operations, the protocol element identifier list and protocol rule table 301 are completed. FIG. 3 shows the structure of the protocol table 301 in the first embodiment of the present invention.
This protocol element attribute table 302 contains the attributes of each protocol element (for example, information on basic types such as integer type and SET type, and specification of required elements/optional elements, etc.) and a table of rules for each protocol element. The rule position information indicating where the rule is written is described.
プロトコル要素属性表302−J−、の名プロトコル要
素はルール位置情報によって構成要素表303および値
範囲表304とリンクされている。構成要素表303に
は構文型データが構成要素として持つプロトコル要素と
その属性情報が記述されている。The name protocol element in the protocol element attribute table 302-J- is linked to the component table 303 and the value range table 304 by rule position information. The component table 303 describes protocol elements that the syntax type data has as components and their attribute information.
値範囲表304には整数型やビット列型データなどの基
本型データがとりうる値の範囲がそれぞれのプロトコル
要素に対応して記述されている。このような表によって
プロトコルに記述されたプロトコルのルールを表現する
。また これらの表は本装置が提供するデータ管理部4
02の機能によってひとまとまりのルール情報環境とし
て管理されるので、複数のプロセスが一つのルール環境
を共有して動作することができる。 第4図は本発明の
第1の実施例に於けるプロトコルデータユニット編集解
析装置の構成を示すものである。装置が起動されると、
まずルール表登録部401がデータ管理部402の機能
を利用して、ディスク装置101からプロトコル3−
ルール表301をRAM103上に読み込む。データの
送信を行う場合、まず送信したいプロトコル要素に対応
する値データをユーザインタフェース部403から値デ
ータ表管理操作部404を使って値データ表501に順
次登録する。値データ表はデータ管理部402の機能を
使用してRA M 1031に作成される。The value range table 304 describes the range of values that basic type data such as integer type and bit string type data can take, corresponding to each protocol element. Such a table represents the rules of the protocol described in the protocol. In addition, these tables are provided by the data management section 4 provided by this device.
Since the rule information environment is managed as a set of rule information environments by the functions of 02, multiple processes can operate while sharing one rule environment. FIG. 4 shows the configuration of a protocol data unit editing and analysis device in the first embodiment of the present invention. When the device is started,
First, the rule table registration unit 401 uses the function of the data management unit 402 to read the protocol 3-rule table 301 from the disk device 101 onto the RAM 103. When transmitting data, first, value data corresponding to the protocol element to be transmitted is sequentially registered in the value data table 501 from the user interface section 403 using the value data table management operation section 404. The value data table is created in the RAM 1031 using the functions of the data management unit 402.
登録が完成するとユーザインタフェース部403はプロ
トコル要素関連付は適合検査部405を使用してプロト
コルルール表301を参照して値データ表をプロトコル
要素に沿った構成に組み立てる。値データ表501が完
成するとユーザインタフェース部403は汎用コーデッ
ク部406の機能を利用して値データ表501を転送構
文に変換する。データを受信する場合は受信した転送構
文をまず汎用コーデック部406が受は取り、値データ
表管理操作部404を使って値データ表501を作成す
る。ついでこの値データ表をプロト:]ル要素関連付は
適合検査部405がプロトコルルール表を参照して、各
プロトコル要素の情報の不足を補い値データ表5旧を完
成する。そして、ユーザインタフェースから指定された
プロトコル要4
素の値を値データ表501から値データ管理部によって
取り出す。第5図は本発明の第1の実施例におけるプロ
トコルデータユニット編集解析装置が値データ表管理操
作部404を用いて作成する値データ表501の構成を
示すものである。第5図において、値属性表502は各
プロトコル要素に対応する値データに関する情報(例え
ばその値の対応するプロトコル要素のタイプと夕欠 値
データの大きさ、実際の値データのある領域の位置情報
など)を管理している。値属性表502の各行は値順序
表503か実値領域504にリンクされる。値順序表5
03は構文型の値が構成要素として持つ値を記述してお
り、小さな表の連結で構成されている。各小さな表に記
述されたデータは値属性表502上の1行を指し示すも
のである。実値領域504には基本型データの実際の値
が記述されている。このような表によって値データの値
と構造が記述される。また これらの表は本装置が提供
するデータ管理部によってひとまとまりに値データ環境
として管理される。したがって、これらの表の削除やプ
ロセス間での授受5−
は環境単位で行える。第6図は本発明の第1の実施例に
於けるプロトコル要素関連付は適合検査部405が行う
値データ表をプロトコル構造に沿って検査する処理の流
れを示したものである。まず検査作業を開始する先頭の
値データの値識別子とその値データに対応するプロトコ
ル要素のプロトコル要素識別子をプロトコル要素関連付
は適合検査部に指示する(ステップ601)。プロトコ
ル要素関連付は適合検査部は指定されたプロトコル要素
の属性情報をプロトコル要素属性表302から取り出す
(ステップ602)。取り出した属性情報を値属性表5
02上の指定値識別子の行に登録されているプロトコル
要素属性情報と比較する(ステップ603)。この結果
不一致ならば異常終了する。次にプロトコル要素関連付
は適合検査部はそのプロトコル要素が構文型か基本型か
をプロトコル要素属性表302で調べる(ステップ60
4)。構文型であった場合は構成要素303から構成要
素のプロトコル要素識別子や属性情報を取り出す(ステ
ップ605)。また値属性表の現在参照している行にリ
ンクされている値順6−
序表から構成要素の値識別子を求める(ステップ606
)。得られた値識別子の行を値属性表上で見つけ出し
各行に登録されて゛いるプロトコル要素属性情報がステ
ップ605で得たものと一致するかどうかを確認する(
ステップ607)。不一致ならば異常終了する。基本型
であった場合は値範囲表304から現在考慮しているプ
ロトコル要素の値の範囲を求める(ステップ608)。When the registration is completed, the user interface unit 403 uses the protocol element association conformance checking unit 405 to refer to the protocol rule table 301 and assembles the value data table into a configuration in accordance with the protocol elements. When the value data table 501 is completed, the user interface unit 403 uses the function of the general-purpose codec unit 406 to convert the value data table 501 into a transfer syntax. When receiving data, the general-purpose codec unit 406 first receives the received transfer syntax, and creates a value data table 501 using the value data table management operation unit 404. Then, this value data table is prototyped: ] For the element association, the conformance inspection unit 405 refers to the protocol rule table, fills in the missing information of each protocol element, and completes the value data table 5 old. Then, the value of the protocol element 4 designated from the user interface is extracted from the value data table 501 by the value data management unit. FIG. 5 shows the structure of a value data table 501 created by the protocol data unit editing and analysis device according to the first embodiment of the present invention using the value data table management operation section 404. In FIG. 5, a value attribute table 502 contains information regarding the value data corresponding to each protocol element (for example, the type of protocol element to which the value corresponds, the size of the value data, and the location information of the area where the actual value data is located). etc.) are managed. Each row of the value attribute table 502 is linked to a value order table 503 or an actual value area 504. Value order table 5
03 describes the values that syntactic type values have as constituent elements, and is composed of a concatenation of small tables. The data written in each small table points to one row on the value attribute table 502. The actual value area 504 describes the actual value of the basic type data. Such a table describes the values and structure of value data. Furthermore, these tables are collectively managed as a value data environment by the data management unit provided by this device. Therefore, deletion of these tables and transfer between processes can be performed on an environment-by-environment basis. FIG. 6 shows the flow of processing for checking the value data table according to the protocol structure, which is performed by the conformity checking unit 405 for protocol element association in the first embodiment of the present invention. First, the protocol element association instructs the conformance inspection section about the value identifier of the first value data for which inspection work is to be started and the protocol element identifier of the protocol element corresponding to the value data (step 601). Regarding the protocol element association, the conformance checking section extracts attribute information of the specified protocol element from the protocol element attribute table 302 (step 602). The extracted attribute information is shown in value attribute table 5.
02 is compared with the protocol element attribute information registered in the specified value identifier row (step 603). If the result does not match, the process ends abnormally. Next, the protocol element association conformance checking unit checks whether the protocol element is a syntax type or a basic type using the protocol element attribute table 302 (step 60
4). If it is a syntax type, the protocol element identifier and attribute information of the component are extracted from the component 303 (step 605). Also, obtain the value identifier of the component from the value order 6-order table linked to the currently referenced row of the value attribute table (step 606).
). Find the row of the obtained value identifier on the value attribute table
Check whether the protocol element attribute information registered in each row matches that obtained in step 605 (
Step 607). If they do not match, the process will terminate abnormally. If it is a basic type, the value range of the protocol element currently being considered is determined from the value range table 304 (step 608).
これと現在参照している値属性表の行にリンクされてい
る実値領域に格納されているデータを比較する(ステッ
プ609)。データが不適当な値であれば異常終了する
。このような処理の繰り返しによって値データ表の値デ
ータのプロトコル的合戒を検査する。第7図は本発明の
第1の実施例に於けるプロトコル要素関連イ」け適合検
査部405が行う値データ表上の値データをプロトコル
構造に沿って関連付ける処理の流れを示したものである
。処理を開始する前の値データ表には送信(7たいプロ
トコル要素に対応する値ブタおよびその属性情報だけが
登録されている。各要素の上位構造に関しては何も登録
されていない。This is compared with the data stored in the actual value area linked to the row of the value attribute table currently being referenced (step 609). If the data is an inappropriate value, it will terminate abnormally. By repeating such processing, the protocol compliance of the value data in the value data table is checked. FIG. 7 shows the flow of the process of associating value data on the value data table along the protocol structure, which is performed by the protocol element related index conformance inspection unit 405 in the first embodiment of the present invention. . In the value data table before starting processing, only the value tag corresponding to the transmission protocol element and its attribute information are registered. Nothing is registered regarding the upper structure of each element.
7
まずプロトコル要素関連付は適合検査部405に対して
今から作成しようとするプロトコル要素の最上位の(あ
るいはルートの)プロトコル要素識別子を指定する(ス
テップ701)。世プロトコル要素関連付は適合検査部
405はこの識別子に対応するプロトコル要素の属性情
報をプロトコル要素属性表302から得る(ステップ7
02)。この結果 対象としているプロトコル要素が構
文型か基本型かを判断しくステップ703)、構文型で
あればその構成要素を構成要素表303から求め(ステ
ップ704)、得られた構成要素のプロトコル要素識別
子を用いて基本型の構成要素が出現するまで同様の処理
を繰り返す。この胤 経由する各構文型のプロトコル要
素識別子を一時的に記憶しておく (ステップ705)
。7. First, for protocol element association, the highest (or root) protocol element identifier of the protocol element to be created is specified to the conformance checking unit 405 (step 701). The conformance checking unit 405 obtains the attribute information of the protocol element corresponding to this identifier from the protocol element attribute table 302 (step 7).
02). As a result, it is determined whether the target protocol element is a syntax type or a basic type (Step 703), and if it is a syntax type, its component is found from the component table 303 (Step 704), and the protocol element identifier of the obtained component is Using , repeat the same process until the basic type components appear. Temporarily store the protocol element identifier of each syntax type that passes through this seed (step 705)
.
対象としているプロトコル要素が基本型であれば(ある
いは前述の繰り返し処理の結果基本型の構成要素が得ら
れたら)そのプロトコル要素に対応する値が値データ表
上に登録されているかどうかを検索する(ステップ70
6)。登録されていた場合(よ ステップ705で一時
的に記憶していたプロトコ8
ル要素識別子を基にして、それらのプロトコル要素に対
応する情報を値データ表上に登録し ステップ706で
発見された値データの上位構造を組み立てる(ステップ
707)。ステップ706で発見されなかった場合はス
テップ705で記憶していた情報を消去する。このよう
な処理を最上位のプロトコル要素から最下位のプロトコ
ル要素に至る全ての経路について行うことによって、値
データ表上の全ての値データが関連イ」けられる。第8
図はプロトコル構造内に同一プロトコル要素が複数カ所
に出現する場合のプロトコル要素関連伺は適合検査部の
処理の流れである。まく 登録されたデータを同一プロ
トコル要素が重複しないようなプロトコル構造の階層に
基づいていくつかのグループ、すなわち管理領域に分割
する(ステップ801)。ついで、内部に管理領域を持
たない最下層の管理領域に対してプロトコル要素関連付
は適合検査部の処理を行う (ステップ802)。これ
が完了すると一つ上位の管理領域があるかどうかを調べ
(ステップ803)、あれはその管理環境に対してプロ
トコル要素関連9−
付は適合検査部の処理を行う。それ以上上位の管理領域
がなくなれば処理は完了である(ステップ804)。第
9図は値データ表からの指定プロトコル要素抜き出し・
保存の処理の流れを示すものである。まずデータ管理部
402を用いて値データ保存用の値データ表を別に作成
する(ステップ901)。つぎに指定された値データを
値属性表上から捜し出しくステップ902)、その属性
情報を保存用値データ表にコピーする(ステップ903
)。ついで、その値データが値順序表とリンクされてい
ればその値順序表を保存用値データ表にコピーする(ス
テップ904)。これと共に 値順序表に登録された構
成要素の値識別子によって構成要素を検索しくステップ
905)その属性情報を保存用値データ表にコピーする
(ステップ906)。値データが実値領域とリンクされ
ていれ(′L その実値領域を保存用値データ表にコピ
ーする(ステップ907)。このような処理の繰り返し
によって、ある値データとそれを構成する全ての値デー
タを抜き出して保存することができる。If the target protocol element is a basic type (or if the constituent elements of the basic type are obtained as a result of the above-mentioned iterative processing), search whether the value corresponding to that protocol element is registered in the value data table. (Step 70
6). If the protocol elements have been registered (in step 705, information corresponding to those protocol elements is registered in the value data table based on the temporarily stored protocol element identifiers, and the values found in step 706 are registered). Assemble the upper level structure of the data (step 707).If not found in step 706, erase the information stored in step 705.Such processing is carried out from the highest protocol element to the lowest protocol element. By doing this for all routes, all value data on the value data table will be related.
The figure shows the flow of processing performed by the conformance checking unit regarding protocol element related questions when the same protocol element appears in multiple locations within the protocol structure. The registered data is divided into several groups, that is, management areas, based on the hierarchy of the protocol structure so that the same protocol elements do not overlap (step 801). Next, the conformity inspection unit performs protocol element association processing for the lowest layer management area that does not have an internal management area (step 802). When this is completed, it is checked whether there is a management area one level higher than the other (step 803), and the conformance checking section performs processing for that management environment. If there are no higher management areas, the process is complete (step 804). Figure 9 shows the extraction of designated protocol elements from the value data table.
This shows the flow of the storage process. First, a value data table for storing value data is separately created using the data management unit 402 (step 901). Next, the specified value data is searched from the value attribute table (step 902), and the attribute information is copied to the value data table for storage (step 903).
). Next, if the value data is linked to a value order table, the value order table is copied to the value data table for storage (step 904). At the same time, the component is searched for using the value identifier of the component registered in the value order table (step 905), and its attribute information is copied to the storage value data table (step 906). If the value data is linked with the actual value area ('L), the actual value area is copied to the value data table for storage (step 907). By repeating this process, a certain value data and all the values that make up it are copied. Data can be extracted and saved.
−加−
発明の詳細
な説明したように 本発明によれば
l)少ないメモリでプロトコルデータユニットlJi集
解析装置を実現できる。-Additional- As described in detail, according to the present invention, l) an apparatus for analyzing a collection of protocol data units lJi can be realized with a small amount of memory;
2)値データとプロトコルルールが独立しているので一
つのプロトコルルールを複数プロセスで共有でき、マル
チプロセス化を効率よく実現できる。2) Since value data and protocol rules are independent, one protocol rule can be shared by multiple processes, and multi-processing can be realized efficiently.
3)メモリ管理機能によって複雑なリンク構造を持つ値
データやルールをひとまとめに扱えるのでメモリ管理の
失敗による障害が発生しにくく、かつ値データのプロセ
ス間での授受が容易になるのでマルチプロセス化しやす
くなる。3) The memory management function allows value data and rules with complex link structures to be handled all at once, so failures due to memory management failures are less likely to occur, and value data can be easily exchanged between processes, making multi-processing easier. Become.
第1図は本発明の第1の実施例におけるプロトコルデー
タユニット編集解析装置のプロトコル定義コンパイラの
構成阻 第2図は本発明の第1の実施例におけるプロト
コル定義コンパイラのプロトコル定義コンパイル処理部
の処理の流れ阻 第21
3図は本発明の第1の実施例におけるプロトコルルール
表の構成@ 第4図は本発明の第1の実施例に於けるプ
ロトコルデータユニット編集解析装置の構成阻 第5図
は本発明の第1の実施例におけるプロトコルデータユニ
ット編集解析装置が値データ表管理操作部を用いて作成
する値データ表の構成阻 第6図は本発明の第1の実施
例に於けるプロトコル要素関連付は適合検査部が行う値
ブタ表をプロトコル構造に沿って検査する処理の流れは
第7図は本発明の第1の実施例に於けるプロトコル要
素関連付は適合検査部が行う値データ表上の値データを
プロトコル構造に沿って関連付ける処理の流れは 第8
図はプロトコル構造内に同一プロトコル要素が複数カ所
に出現する場合のプロトコル要素関連付は適合検査部の
処理の流れ@ 第9図は値データ表からの指定プロトコ
ル要素抜き出し・保存の処理の流れ図である。
101・・・・ディスク装置 102・・・・プロトコ
ル定義コンパイル処理i 103・・・・RAM、3
01・・・・プロトコルルール表、302・・・・プロ
トコル要素属性表、22−
303・・・・構成要素表、304・・・・値範囲表、
401・・・・ルル表登録R402・・・・データ管理
敵403・・・・ユーザインタフェース敵404・・・
・値データ表管理操作訊405・・・・プロトコル要素
関連例は適合検査敵406・・・・汎用コーデック敵5
01・・・・値データ表、502・・・・値属性表、5
03・・・・値順序表、504・・・・実値傾板FIG. 1 shows the configuration of the protocol definition compiler of the protocol data unit editing and analysis device in the first embodiment of the present invention, and FIG. 2 shows the processing of the protocol definition compile processing section of the protocol definition compiler in the first embodiment of the present invention. Figure 21 3 shows the configuration of the protocol rule table in the first embodiment of the present invention @ Figure 4 shows the configuration of the protocol data unit editing and analysis device in the first embodiment of the present invention Figure 5 Figure 6 shows the structure of the value data table created by the protocol data unit editing and analysis device in the first embodiment of the present invention using the value data table management operation unit. The process flow for inspecting the pig table according to the protocol structure is as follows. Figure 7 shows the values that are carried out by the conformance inspection section for the protocol element association in the first embodiment of the present invention. The process flow for associating the value data on the data table along the protocol structure is as follows:
The figure shows the process flow of the conformance inspection unit for associating protocol elements when the same protocol element appears in multiple places in the protocol structure. be. 101...Disk device 102...Protocol definition compilation processing i 103...RAM, 3
01...Protocol rule table, 302...Protocol element attribute table, 22-303...Component table, 304...Value range table,
401... Lulu table registration R402... Data management enemy 403... User interface enemy 404...
・Value data table management operation question 405...Protocol element related example is conformance check enemy 406...General codec enemy 5
01...Value data table, 502...Value attribute table, 5
03...Value order table, 504...Actual value tilt plate
Claims (4)
、一定のプロトコル記法によって記述されるプロトコル
定義を読み込んでプロトコル定義の字句解析ならびに意
味解析処理を行うことによってプロトコル定義に記述さ
れたプロトコル要素を識別するためのプロトコル要素識
別子一覧表とプロトコルの構造ならびに各プロトコル要
素の属性情報を記述したプロトコルルール表を出力する
プロトコル定義コンパイラを具備するプロトコルデータ
ユニット編集解析装置(1) A protocol data unit editing and analysis device reads a protocol definition described using a certain protocol notation and performs lexical analysis and semantic analysis of the protocol definition to identify protocol elements described in the protocol definition. A protocol data unit editing and analysis device equipped with a protocol definition compiler that outputs a protocol element identifier list, a protocol structure, and a protocol rule table that describes attribute information of each protocol element.
、プロトコル構造ならびに各プロトコル要素の属性情報
を記述したプロトコルルール表をメモリ上に登録するプ
ロトコルルール表登録部と、値データ表の作成・削除や
送受信する値データを値データ表に値識別子を付与して
登録し、各値データを値識別子によって管理・入出力操
作する値データ表管理操作部と、前記プロトコル要素識
別子をもとにプロトコルルール表を参照して、前記値識
別子を用いて前記値データ表の一部あるいは全部の値デ
ータをプロトコルルールに沿って関連付け、かつ値デー
タの構成とプロトコルルールとの適合性を検査するプロ
トコル要素関連付け適合検査部と、プロトコル適合性検
査済みの前記値データ表をもとに符号化規則に則って送
信する転送構文を組み立て、あるいは受信した転送構文
を分解して値データ表に登録する汎用コーデック部と、
前記プロトコルルール表登録部と前記値データ入出力管
理操作部、前記プロトコル要素関連付け適合検査部前記
汎用コーデックの各部に対してプロトコルルール表およ
び値データ表をそれぞれ一括管理する機能および各表へ
のデータ入出力機能を持つメモリ管理機能を提供するデ
ータ管理部とで構成されるプロトコルデータユニット編
集解析装置(2) In the protocol data unit editing and analysis device, there is a protocol rule table registration unit that registers in memory a protocol rule table that describes the protocol structure and attribute information of each protocol element, and a value data table that creates and deletes the value data table and sends and receives values. A value data table management operation unit that registers data by assigning value identifiers to the value data table, manages each value data using the value identifier, and performs input/output operations; a protocol element association conformance inspection unit that associates part or all of the value data in the value data table according to protocol rules using the value identifier, and inspects the conformity between the structure of the value data and the protocol rules; , a general-purpose codec unit that assembles a transfer syntax to be transmitted in accordance with encoding rules based on the value data table that has been checked for protocol compatibility, or disassembles the received transfer syntax and registers it in the value data table;
The protocol rule table registration unit, the value data input/output management operation unit, the protocol element association conformance inspection unit, the function of collectively managing the protocol rule table and value data table for each part of the general-purpose codec, and the data to each table. A protocol data unit editing and analysis device consisting of a data management section that provides memory management functions with input/output functions.
、前記値データ表内部を階層構造を持つことができるい
くつかの管理領域に分割し、かつ各管理領域内において
は同一のプロトコル要素識別子を持つプロトコル要素の
重複を避けるようにしたプロトコルデータユニット編集
解析装置。(3) In the protocol data unit editing and analysis device, the inside of the value data table is divided into several management areas that can have a hierarchical structure, and within each management area, protocol elements having the same protocol element identifier are A protocol data unit editing and analysis device designed to avoid duplication.
、値データ表で値識別子によって指定された値データを
、下位構造としてその値データと関連付けられた全ての
値データと共に抜きだしてメモリ上の別領域あるいはフ
ァイルに退避し、また逆にメモリ上あるいはファイル上
に退避された一連の値データを現在編集処理を行ってい
る値データ表の指定の値データの構成要素として組み込
む機能を提供し、すでに値データ表形式に構成された一
連の値データの再利用を可能ならしめるプロトコルデー
タユニット編集解析装置。(4) The protocol data unit editing and analysis device extracts the value data specified by the value identifier in the value data table together with all the value data associated with that value data as a lower structure, and extracts it from a separate area on the memory or into a file. This function provides a function to save a series of value data saved in memory or a file as a component of the specified value data in the value data table currently being edited, and vice versa. A protocol data unit editing and analysis device that enables reuse of a series of value data configured in a format.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1175915A JPH0340155A (en) | 1989-07-07 | 1989-07-07 | Protocol data unit editing and analysis device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1175915A JPH0340155A (en) | 1989-07-07 | 1989-07-07 | Protocol data unit editing and analysis device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0340155A true JPH0340155A (en) | 1991-02-20 |
Family
ID=16004475
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1175915A Pending JPH0340155A (en) | 1989-07-07 | 1989-07-07 | Protocol data unit editing and analysis device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0340155A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6509848B1 (en) | 1999-09-10 | 2003-01-21 | Sony Computer Entertainment Inc. | Remote control device |
| US6602139B2 (en) | 2000-07-03 | 2003-08-05 | Sony Computer Entertainment, Inc. | Program execution system, program execution device, recording medium, program used in the program execution device, method for switching viewpoint on display device and a method for switching aim on display device of the system |
| US6607442B2 (en) | 2000-03-03 | 2003-08-19 | Sony Computer Entertainment Inc. | Operating apparatus and signal-output-modulating method for the same |
| US6717568B1 (en) | 1999-09-10 | 2004-04-06 | Sony Computer Entertainment Inc. | Method of controlling the movement of a position indicating item, storage medium on which a program implementing said method is stored, and electronic device |
| US6780112B2 (en) | 2000-02-24 | 2004-08-24 | Sony Computer Entertainment, Inc. | Game device in which the character representation changes corresponding to the value of a multi-level input signal |
| EP1289229A3 (en) * | 2001-09-04 | 2005-07-13 | Fujitsu Limited | Dynamic protocol exchange system and method |
-
1989
- 1989-07-07 JP JP1175915A patent/JPH0340155A/en active Pending
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6509848B1 (en) | 1999-09-10 | 2003-01-21 | Sony Computer Entertainment Inc. | Remote control device |
| US6717568B1 (en) | 1999-09-10 | 2004-04-06 | Sony Computer Entertainment Inc. | Method of controlling the movement of a position indicating item, storage medium on which a program implementing said method is stored, and electronic device |
| US6780112B2 (en) | 2000-02-24 | 2004-08-24 | Sony Computer Entertainment, Inc. | Game device in which the character representation changes corresponding to the value of a multi-level input signal |
| US6607442B2 (en) | 2000-03-03 | 2003-08-19 | Sony Computer Entertainment Inc. | Operating apparatus and signal-output-modulating method for the same |
| US6602139B2 (en) | 2000-07-03 | 2003-08-05 | Sony Computer Entertainment, Inc. | Program execution system, program execution device, recording medium, program used in the program execution device, method for switching viewpoint on display device and a method for switching aim on display device of the system |
| EP1289229A3 (en) * | 2001-09-04 | 2005-07-13 | Fujitsu Limited | Dynamic protocol exchange system and method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Batory et al. | The design and implementation of hierarchical software systems with reusable components | |
| CN109614413B (en) | Memory flow type computing platform system | |
| US7526769B2 (en) | Message translation and parsing of data structures in a distributed component architecture | |
| US9305096B2 (en) | Uniform resource identifier template manipulation | |
| US7853930B2 (en) | Annotating graphs to allow quick loading and analysis of very large graphs | |
| CN102541521B (en) | Automatic operating instruction generating device based on structured query language and method | |
| JP2007213592A (en) | Character processing apparatus, method and program, and recording medium | |
| CN101377806A (en) | Information flow analysis method based on system source code searching concealed channel | |
| CN114281845A (en) | Index generation method and device, electronic equipment and readable storage medium | |
| CN109933786B (en) | Method for constructing responder message tool based on compiling rule | |
| Diaz | Petri net based models in the specification and verification of protocols | |
| JPH0340155A (en) | Protocol data unit editing and analysis device | |
| CN116360850A (en) | Microservice flow node data acquisition method and device based on elastic search | |
| Qian et al. | Use of the ADAMO data management system within ALEPH | |
| JP3489216B2 (en) | File system | |
| Cronburg et al. | Floorplan: spatial layout in memory management systems | |
| CN106802922A (en) | A kind of object-based storage system and method for tracing to the source | |
| CN121433655B (en) | UML model segment multiplexing method | |
| CN121166842B (en) | Tree document retrieval method, device, equipment and storage medium | |
| CN118862848A (en) | Worksheet data processing method, device and storage medium | |
| JP2000339175A (en) | Dynamic assigning method for type information in data structure definition using abstract syntax description method | |
| TWI223169B (en) | Department relation encoding system and method | |
| CN114461719A (en) | Method and system for realizing unlimited domain access of PLPGSQL language | |
| CN121255801A (en) | Data processing method, apparatus, device, storage medium, and program product | |
| JP2001154890A (en) | RDB data caching system and recording medium |