JPH02224047A - Encoding/decoding system - Google Patents

Encoding/decoding system

Info

Publication number
JPH02224047A
JPH02224047A JP1043013A JP4301389A JPH02224047A JP H02224047 A JPH02224047 A JP H02224047A JP 1043013 A JP1043013 A JP 1043013A JP 4301389 A JP4301389 A JP 4301389A JP H02224047 A JPH02224047 A JP H02224047A
Authority
JP
Japan
Prior art keywords
skeleton
encoding
data element
decoding
identifier
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
JP1043013A
Other languages
Japanese (ja)
Inventor
Ikuko Katsumaru
勝丸 郁子
Junji Fukuzawa
福澤 淳二
Hiroshi Yamano
浩 山野
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.)
Hitachi Ltd
Hitachi Information Systems Ltd
Original Assignee
Hitachi Ltd
Hitachi Information Network Ltd
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 Hitachi Ltd, Hitachi Information Network Ltd filed Critical Hitachi Ltd
Priority to JP1043013A priority Critical patent/JPH02224047A/en
Publication of JPH02224047A publication Critical patent/JPH02224047A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To execute the processing which does not depend on an application service and a service primitive by encoding in advance an identifier of a protocol data element used by the application service, and generating in advance a skeleton of a transfer syntax arranged in an appearance order at every service primitive. CONSTITUTION:Since a skeleton of a transfer syntax 6 is generated in advance, an encoding processing of an identifier for identifying a protocol data unit (PDU) data element can be omitted, and since the transfer syntax 6 is generated by converting only the contents of the PDU data element, the encoding processing can be executed at high speed. With regard to the time of decoding, as well, decoding of a value of the PDU data element can be executed without decoding the identifier of the encoded PDU data element, and a value converted to a primitive can be set directly, therefore, decoding can be executed at high speed. As for the service which cannot fix and allocate the skeleton 8, it will suffice that an encoding processing/decision processing module of the identifier of a variable part is generated only with regard to the variable part, therefore, a program scale can be suppressed to the minimum.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は抽象構文記法ASN、1により定義されたプロ
トコルデータ単位(PDU)の転送構文への符号化、及
びその逆変換(復号化)の方式に関す゛る。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to encoding of a protocol data unit (PDU) defined by Abstract Syntax Notation ASN,1 into a transfer syntax, and its inverse conversion (decoding). Regarding the method.

〔従来の技術〕[Conventional technology]

ASN、1 (アブス1−ラク1− シンタクス ノー
チージョン ワン: Abstraei 5yntax
 NotationOne)は、O8Iにおける応用層
及びプレゼンテーション層で使用さ414るプロトコル
データ単位(PDU)の形式を定義するために使用され
る抽象構文表記法の−っである。ASN、l記法を用い
て記述されたI’DUの形式を抽象槽文と呼び、ASN
、1で定められた符号化規則を用いて抽象構文から変換
されたバイト列を転送構文と呼ぶ。
ASN, 1 (Abs 1-Raku 1- Syntax No Chee John One: Abstraei 5yntax
NotationOne) is an abstract syntax notation used to define the format of protocol data units (PDUs) used in the application and presentation layers in O8I. The format of I'DU written using the ASN and l notation is called an abstract tank sentence, and the ASN
A byte string converted from an abstract syntax using the encoding rules defined in , 1 is called a transfer syntax.

各システム上で与えられるP D tJは複数のデータ
要素から構成され、その各データ要素は、ASN。
The P D tJ provided on each system consists of multiple data elements, each of which has an ASN.

Jの符号化規則に従って、PDTJ内のどの要素かを識
別するための識別゛Pと、データ要素の長さ、デー・夕
要素の内容の三要素に変換される。この際データ要素の
内容自身もASN、]で規定されたデ・・−クキに変換
さ打、他システムに送られる2転送構文を受り取−〕か
システムは、符号化規則に従い転送構文に符号化された
11 D Uを復号化ず;!5゜上記の様に、PDUを
他システムに送信及び他システムから受信1゛る際には
、ASN、iの符号化規則に従った転送構文への符号化
/復号化が必要となる。
According to the encoding rules of J, the data is converted into three elements: an identification P for identifying which element in the PDTJ, the length of the data element, and the content of the data element. At this time, the content of the data element itself is also converted into the data specified by the ASN. Encoded 11 DU is not decoded;! 5. As mentioned above, when transmitting a PDU to or receiving it from another system, it is necessary to encode/decode the PDU into a transfer syntax according to the encoding rules of ASN, i.

従来、ASN、1符号化規則に基づく符号化/復号化方
式&、一ついCは、(1)情報処理学会第35回(昭和
62年後期)全国大会第533頁から第534頁、↑n
H(処理学会第:う6回(昭和63年前期)全国大会第
999頁から第1000頁、情報処理学会研究報告マル
チメディア通イSと分散処理36−・・フ (1988
,2,)、9)第1頁から第8頁、及び(2)情報処理
学会研究報告マルヂ、−デ、イア通信と分散外@39−
4(19B8,9.16)第1頁から第8 i b=お
いて論じられている。
Conventionally, the encoding/decoding method based on ASN, 1 encoding rule & Hitoi C is (1) Information Processing Society of Japan 35th (late 1988) National Conference, pages 533 to 534, ↑n
H (Processing Society of Japan No. 6 (first half of 1988) National Conference, pages 999 to 1000, Information Processing Society of Japan Research Report Multimedia Communication S and Distributed Processing 36-...F (1988)
,2,),9) Pages 1 to 8, and (2) Information Processing Society of Japan Research Report Maruji,-De,ia Communication and Distributed Outside @39-
4 (19B8, 9.16) pages 1 to 8 i b=.

」1記(1)の文献においては、ΔSN、1によって記
述されたP D Uの形式及び符号化方法を木槌造等の
テーブル(ゾロト・フル内部表現)に展開【、・τ°お
き、上位から渡ざ狛、たP D Uデー・夕要素を応用
サービスにオ?いてデー・ブBノ参照可能な形式(中間
形式)に−旦変換し、プレゼンテーション層において、
テーブルと中間形式に相互に蓼照しながら転送構文へ変
換していく、転送構文を復号する際も同様にブ1ノゼン
テーション層においてテーブルを参照しながら中間形式
に変換した後、応用サービスにおいてシステム固有の1
’ D Uデータ要素に再度変換する2この方式におい
ては、上位から渡されたP D Uデータ要素を中間形
式に変換する処理は、応用リーービス毎に個別に作成す
る必要があるが、中間形式から転送構文への変換処理は
、プレゼンテーション層において、全ての応用サービス
共通に行うことができるや 上記(2)の文献においては、中間形式への変換及び、
テーブル参照は行わず、ノ↓用ザービス毎に専用に設け
られフニ符号化処理プログラムが上記(1)のプレゼン
テーション層の処理を代行(7,十位から渡さ九たP 
D Uデー・夕要素を直接転送や、た番;変換していく
。転送構文の復号も同様に1個々の応用ザー・ビス専用
の復号化処理プログラムが直接上位に渡すl” D U
プーラ要素を作成14.ていく。
In the document 1 (1), the PDU format and encoding method described by ΔSN, 1 are developed into a Kozuchizukuri table (Zoloto full internal representation) [,・every τ°, Will Watazakoma be able to apply PDU day/evening elements to applied services from the top? Convert data into a format that can be referenced (intermediate format), and in the presentation layer,
The transfer syntax is converted to the transfer syntax while referring to the table and the intermediate format. Similarly, when decoding the transfer syntax, it is converted to the intermediate format while referring to the table in the notification layer, and then in the application service. System-specific 1
' Convert again to D U data element 2 In this method, the process of converting the P D U data element passed from the upper level to the intermediate format must be created individually for each application Levis, but The conversion process to the transfer syntax can be performed in common to all application services in the presentation layer. In the document (2) above, conversion to the intermediate format and
No table references are performed, and the Huni encoding processing program is provided exclusively for each service and handles the presentation layer processing in (1) above (7,
DU day/evening elements are directly transferred or converted. Similarly, the decoding of the transfer syntax is passed directly to the upper layer by a decoding processing program dedicated to each application service.
Create puller element 14. To go.

〔発明が解決しよ・〕とする課題〕 に記従来技術(i)ζJ5、符号te/復号化処理を応
用)ナービ入によらずブiノゼンテーション層におい丁
共通に処理する−とを目的どし7てい6 mこのため、
各応用サービスブo l−二jル処理千ジュールとこの
応用サービスを利用する上位応用ブrJグラムとの間で
取り決めI〕・肛へPDUデータ要素の受は渡し形式を
、各応、用シ・−ビス側で共通な中間形式に一旦変換す
る必要がある。ブ1ノゼンテージョン層における符号化
/復号化処理モジュー・ルは、どの応用サービスに関す
る■ノθTJ −)” =−夕要素かを意識するとシ・
なく中間形式と転送構文との変・換を行うことができる
。しかし、中間形式」・介することが符号化/復号化処
理オ・−バヘッド増人をまねさ。
[Problems to be solved by the invention] Stated in the prior art (i) ζJ5, application of code/decoding processing) processing that is common to the nosentation layer regardless of navigation input. For this reason, the purpose is 7 meters.
The format for receiving and transmitting PDU data elements to each application service module shall be agreed between the 1,000 joules processed by each application service module and the upper application program that uses this application service. - It is necessary to convert it once to a common intermediate format on the -visual side. The encoding/decoding processing module in the presentation layer has the following functions:
It is possible to convert between the intermediate format and the transfer syntax without any need. However, interposing an intermediate format increases encoding/decoding processing overhead.

応答時間の制約が厳しいリアルタイム処理環境への適用
は難しい。
It is difficult to apply to real-time processing environments where response time is severely constrained.

上記従来技術(2)は、各応用サービス、毎に専用の符
号化/復号化処理・七ジュールち・絹み込み、上位から
渡されたI’ D Uデータ要素7転送構文間の変換を
直接行うため符4i化/復号化登効率よく行え、リアル
タイム処理環境にも適用できる。しか1、di!;用サ
ービス毎更に、応用サー・ビスのす・−ビスブリミ子イ
ブ単位にプログラムの作成が必要となるため、プログラ
ム作成址が増大する問題がある、又5応用ザービスのプ
ロ1−コル仕様の変更時には、プログラムの変更も必要
となる。
The above-mentioned conventional technology (2) directly performs encoding/decoding processing, seven joules, and imbrication for each application service, and directly converts between the I'DU data element 7 transfer syntax passed from the upper layer. Therefore, the code 4i conversion/decoding registration can be performed efficiently and can be applied to a real-time processing environment. Only 1, di! In addition, since it is necessary to create a program for each application service child, there is a problem that the amount of time required to create a program increases.Also, there is a need to change the protocol specifications for 5 application services. Sometimes it is necessary to change the program.

本発明の目的は、リアルタイム処理環境に適用可能な高
速性を有し、か−)、各応用サービスにおいでも共通に
利用できる汎用性を備えた符号化/復号化方式を提供す
ることにある。
An object of the present invention is to provide an encoding/decoding method that has high speed applicable to a real-time processing environment, and has versatility that can be commonly used in various application services.

〔課題を解決するための手段〕[Means to solve the problem]

各応用形°・−ビスで使用されるPDUを転送構文に変
換?“る場合、データ要素の数や転送構文への設定M1
シ、各データ要素を表わす識別子の符号はその応用サー
ビスのサー・ビスプリミティブ番J、よって特定でえる
。このため、上記目的を達成するために、各応用サービ
スで使用するPDUの、 PDUデータ要素の識別子を
あらかじめ符号化し、出現順序に並べた転送構文のスケ
ルトンをづ−ビスプリミテイブ毎に作成しておく、この
際、P D Uデータ要素の内容によ゛つて転送構文の
識別=T−符号が変わるサー・ビスについてば、変更が
発生する部分(可変部)の識別子を十数定状態にしてス
ク゛ルトンを作成しておさ゛、同一サービスプリミティ
ブにおける部分変更を符号化/復号化処理時に動的に行
う方式とする6 符号化/復号化処理は各応用サー・ビスに組み込み、上
位から渡されたPDUデー・−タ要素、転送碑文間の変
換はスケルトンをハ1いて直接行う方式とする。各サー
ビスプリミティブの可変部分を持つスケル[−ンに1い
ては、各サービスプリミティブ専用の可変要素処理モジ
ュールを用いて処理を行い、PDUデータ要素の内容の
形式変換、及び転送構文への組み込み1分解は各応用サ
ー・−ビス、サービスプリミティブで共通に処理を行う
Convert PDUs used in each application into transfer syntax? ", the number of data elements and the settings for the transfer syntax M1
The code of the identifier representing each data element can be specified by the service primitive number J of the application service. Therefore, in order to achieve the above purpose, a transfer syntax skeleton is created for each bis primitive in which the identifiers of the PDU data elements of the PDU used in each application service are encoded in advance and arranged in the order of appearance. At this time, for services where the transfer syntax identification = T-sign changes depending on the contents of the PDU data element, the script is made with the identifier of the part where the change occurs (variable part) in a constant state. 6. The encoding/decoding process is built into each application service, and the PDU data passed from the higher level is・Conversion between data elements and transfer inscriptions is performed directly by converting the skeleton. In the skeleton with the variable parts of each service primitive, processing is performed using a variable element processing module dedicated to each service primitive, converting the format of the content of the PDU data element and incorporating it into the transfer syntax. Processing is common to each application service and service primitive.

〔作用〕[Effect]

符号化処理時には、各応用サービスのサービスプリミテ
ィブに対応して該当するスケルトンを選択し、スケルト
ンに記述された転送構文の形式に従ってPDTJ内デー
少データ要素を埋め込んで行く、可変要素を含む場合に
は該当する可変要素処理モジュールを選択して識別子の
符号化を行うため、上位から渡されたPDUデータ要素
から直接転送構文への変換が行える。
During encoding processing, a corresponding skeleton is selected corresponding to the service primitive of each application service, and small data elements are embedded in the PDTJ according to the format of the transfer syntax described in the skeleton. Since the corresponding variable element processing module is selected and the identifier is encoded, the PDU data element passed from the higher level can be converted into a direct transfer syntax.

復号化処理時にも同様に、各応用サービスのサービスプ
リミティブに対応して該当するスケルトンを選択し・、
スケルトンに記述された転送構文の形式に従って転送構
文内1こ埋め込まれたP D U白データ要素を直接取
り込んで行く。可変要素を含む場合には該当する可変要
素処理モジュールを選択して識別子の復号化を行うため
、転送構文から上位に渡すPDtJ要索への変換が直接
行λ、る。
Similarly, during the decoding process, select the appropriate skeleton corresponding to the service primitive of each application service.
In accordance with the format of the transfer syntax described in the skeleton, the PDU white data element embedded in the transfer syntax is directly fetched. If a variable element is included, the corresponding variable element processing module is selected and the identifier is decoded, so the conversion from the transfer syntax to the PDtJ summary to be passed to the upper level is performed directly in line λ.

〔実施例〕〔Example〕

以下本発明の一実施例を、図面を参照しつつ説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第6図は本発明に係わる符号化/復号化方式の−・実施
例の構成を示す図である。1(i−i、、1−2)は計
算機及びロボット・等工作機械の制御装置、2(2−1
,2,−2)は08丁における応用層の上に位置するユ
ーザ作成応用プログラム、3(3−1,3−3)は応用
層の一応用サービスのプロトコル処理モジュール、4(
4−1,1−2)は応用層以下のブuトコル処理を行う
下位プロトコル処理モジュ・−ルである* 5(5−1
,5−2)は、応用プログラム2、応用層プロトコル処
理モジュール3間で取り決められたプリミティブと呼ば
れるデータ授受形式、6 (6−1,6−2)は、応用
層プロトコル処理モジュール3、下位プロトコル処理モ
ジュール4.l’Jで取り決められた転送碑文と呼ばれ
るデータ授受形式である。7(”/−1゜7−2)は応
用層プロトコル処理モジュール3内でプリミティブ5、
転送構文6間の形式変換を行う符号化/復号化処理モジ
ュール、8 (8−1゜8−2)は、符号化/復号化時
に使用する転送構文のスケルトンである。
FIG. 6 is a diagram showing the configuration of an embodiment of the encoding/decoding system according to the present invention. 1 (i-i, 1-2) is a control device for computers and machine tools such as robots, 2 (2-1
, 2, -2) is a user-created application program located above the application layer in 08th block, 3 (3-1, 3-3) is a protocol processing module of one application service of the application layer, and 4 (
4-1, 1-2) are lower protocol processing modules that perform protocol processing below the application layer.
, 5-2) is a data exchange format called a primitive agreed between the application program 2 and the application layer protocol processing module 3, and 6 (6-1, 6-2) is the data exchange format agreed between the application program 2 and the application layer protocol processing module 3. Processing module 4. This is a data exchange format called a transfer inscription, which was agreed upon in I'J. 7 (''/-1°7-2) is the primitive 5, in the application layer protocol processing module 3.
An encoding/decoding processing module 8 (8-1° 8-2) that performs format conversion between the transfer syntaxes 6 is a skeleton of the transfer syntax used during encoding/decoding.

応用プログラム2−1から応用層プロト・コル処理モジ
ュール3−1−に渡されたプリミティブ5−1は、符号
化処理モジュール7−1によって、転送構文6−1に変
換される7上位プロトコル処理千ジュール4−1−は、
渡された転送構文6−1を、自プロトコル処理用PDU
のデータとして伝送路11を介して目的ステーション1
0−2上の下位プロトコル処理モジュール4−2!こ送
出する。下位プロトコル処理モジュール4−2は、自プ
a l−コル処理用PDU内に含まれる応用層プロ1−
コル処理に関するデータ部分6−2を応用層プロトコル
処理モジュ・−ル;3−2に渡す。応用層プロトコル処
理モジュール3−2は、復号化処理モジュール7−2を
用いて、プリミティブ5−2に形式変換し、応用プログ
ラム22に引き渡す、この一連の処理によってステーシ
ョン10−1上の環境で作成されたプリミティブ5−1
、は、環境の異なるステーション10−2上の応用プロ
グラム2−2が解析可能なプリミティブ5−2に復元さ
れる。
The primitive 5-1 passed from the application program 2-1 to the application layer protocol processing module 3-1 is converted into a transfer syntax 6-1 by the encoding processing module 7-1. Joule 4-1- is
The passed transfer syntax 6-1 is converted into a PDU for own protocol processing.
as data to the destination station 1 via the transmission line 11.
Lower protocol processing module 4-2 on 0-2! Send this. The lower protocol processing module 4-2 processes the application layer protocol 1-2 included in the own protocol processing PDU.
The data portion 6-2 regarding protocol processing is passed to the application layer protocol processing module 3-2. The application layer protocol processing module 3-2 converts the format into a primitive 5-2 using the decoding processing module 7-2 and passes it to the application program 22. Through this series of processing, the application layer protocol processing module 3-2 is created in the environment on the station 10-1. Primitive 5-1
, is restored to a primitive 5-2 that can be analyzed by the application program 2-2 on the station 10-2 in a different environment.

第7図にプリミティブの一形式を示す、プリミティブの
形式は応用層プロトコル処理モジュールによって規定さ
れるが、プリミティブには各々。
FIG. 7 shows one format of the primitive. The format of the primitive is defined by the application layer protocol processing module, but each primitive has its own format.

各ステーションの環境に依存したPDUデー・・夕要素
の内容ELMiが設定される。
The content ELMi of the PDU day element is set depending on the environment of each station.

第8図に転送構文の一形式を示す、転送構文はプリミテ
ィブに設定されたPDTJデータ要素の種類を識別する
ための識別子IDx、R別子ID別作示されるPDUデ
ータ要素の長さLx、各環境に共通な形式に変換さオ]
、たP D Uデータ要素の内容(ELMj、)’ か
ら構成される。同一サ・−ビスプリミティブに関する転
送構文の形式、内容は、あらゆる環境で同一となる。
Figure 8 shows one format of the transfer syntax.The transfer syntax includes an identifier IDx for identifying the type of PDTJ data element set in the primitive, a length Lx of the PDU data element to be created for each R identifier ID, and the length Lx of each PDU data element. Converted to a format common to the environment]
, the contents of the PDU data element (ELMj,)'. The format and contents of transfer syntax regarding the same service primitive are the same in all environments.

第9図に転送構文のスケルトンの一形式を示す。FIG. 9 shows one form of a transfer syntax skeleton.

スケルトンは、ASN。1によって記述されたプロトコ
ル仕様に従い、プロトコル処理のサービスプリミティブ
単位13作成される。スケル)−ンは、PDUデータ要
素を転送構文に変換した際に使用される識別子IDX、
ll別子ID、別作されるPDUデータ要素の長さをス
ケルトン上の位置情報で表現した識別子修飾範囲Qx 
、m別作に対応したPT)Uデータ要素の内容がプリミ
ティブ内のどの位置に設定されているかを示す要素設定
位置情報P、、PDUデータ要素の内容のデータ型変換
規則(α、β・・・)より構成される。スケルトンは任
意の方法によってあらかじめ作成しておき、プロ[・・
コル及びザービス単位に参照可能とする。
The skeleton is ASN. Service primitive units 13 for protocol processing are created according to the protocol specifications described by No. 1. The skeleton is an identifier IDX used when converting a PDU data element into a transfer syntax.
Identifier ID, identifier modification range Qx that expresses the length of the separately created PDU data element using position information on the skeleton
, m PT corresponding to separate works) U Element setting position information P indicating where in the primitive the content of the data element is set, data type conversion rules for the content of the PDU data element (α, β...・). Create the skeleton in advance using any method, and then use the professional [...
It can be referenced in units of cols and services.

まず第1図を参照して、符号化/復号化処理モジュール
の一購成例を述べる。符号化/復号化処理モジュールは
、処理を行う際参照するスケルトンをメモリ上などに持
つ。符号化/復号化処理モジュールは、転送構文の作成
及び分解を行う際に使用するスケルトン(8a)をスケ
ルトン群(8)より選択する手段を有するスケルト・ン
選択処理(7a)、符号化処理機能を有する転送構文合
成処理(7b)、復号化処理機能を有するデータ要素設
定処理(7c)、スケルトンにおける可変部分の設定/
判定処理機能を有するデータ型変換処理(7o)より構
成される。可変要素処理以外の処理は、各プロI・コル
及びザービスの符号化/復号化に共通に使用できる。
First, an example of purchasing an encoding/decoding processing module will be described with reference to FIG. The encoding/decoding processing module has a skeleton, which is referenced when performing processing, in memory or the like. The encoding/decoding processing module has a skeleton selection processing (7a) having means for selecting a skeleton (8a) to be used when creating and decomposing a transfer syntax from a skeleton group (8), and an encoding processing function. Transfer syntax synthesis processing (7b) with decoding processing function, data element setting processing (7c) with decoding processing function, setting of variable part in skeleton/
It consists of a data type conversion process (7o) having a determination processing function. Processing other than variable element processing can be commonly used for encoding/decoding of each protocol and service.

以下、第]図、第2図、第3図を参照して符号化方式の
一例を示す。
Hereinafter, an example of the encoding method will be described with reference to FIG. 2, FIG. 3, and FIG.

プリミティブ5を受は取った符号化/復号化処理モジュ
ールは、スケルトン選択モジュールを用い、スケルトン
群8より該当するスケルトン8aを選択する(Stop
 1 a) 、選択したスケルトン群用いて転送構文合
成処理を行う(Stop2a)。
The encoding/decoding processing module that has received the primitive 5 selects the corresponding skeleton 8a from the skeleton group 8 using the skeleton selection module (Stop
1 a) Perform transfer syntax synthesis processing using the selected skeleton group (Stop 2a).

転送構文合成処理の概略を示す、まず選択したスケルト
ンより識別子を選び、その識別子に関する要素設定位置
情報より、プリミティブに設定されたP D Uデータ
要素の内容の取り込み有無を調べる。データ要素の内容
の取り込みを行う場合は、指定されたプリミティブの要
素設定位置よりデータ要素の内容(E L Ml/ E
 L MI%)を得、データ型変換規則に従いデータ型
を変換しく5top3a)、変換1ノたデータ要素の内
容(E LMI’ /ELM11’ )を転送構文格納
用バッファに設定する。更に、変換したデータ要素の内
容の長さ(Li=/Lc)をスケルトン内の識別子修飾
範囲情報に従い符号化し、スケルトンの識別子と共に設
定する(Step 4 a)。
The outline of the transfer syntax synthesis process is shown below. First, an identifier is selected from the selected skeleton, and based on the element setting position information regarding the identifier, it is checked whether or not the content of the PDU data element set in the primitive is captured. When importing the contents of a data element, the contents of the data element (EL Ml/E
LMI%) is obtained, the data type is converted according to the data type conversion rules (5top3a), and the content of the data element (ELMI'/ELM11') obtained by conversion 1 is set in the transfer syntax storage buffer. Furthermore, the length of the content of the converted data element (Li=/Lc) is encoded according to the identifier modification range information in the skeleton, and is set together with the skeleton identifier (Step 4 a).

プリミティブ内のデータ要素の内容を取り込む必要がな
い場合は、ra別別作修飾範囲情報従い長さ(Q&)を
符号化し、長さ(La)と識別子(IDa)の設定のみ
行う、上記処理において、プリミティブ内よりデータ要
素の内容を取り込む際、指定された位置に要素が設定さ
九ていない場合は異常終了として処理を終了する。
If it is not necessary to import the contents of the data element in the primitive, use the above process to encode the length (Q&) according to the ra-specific modification range information and only set the length (La) and identifier (IDa). , when fetching the contents of a data element from within a primitive, if the element is not set at the specified position, the process ends as an abnormal termination.

スケルトン内に可変値を示す識別子が設定さおでいる場
合の処理を示す。スケルトン内の識別子が可変値(x)
である場合は、可変部分設定用の処理モジュールを可変
要素処理群より選択する(Step 5 a)、該当す
る可変要素設定処理は、プリミティブ内に設定されたデ
ータ要素の内容(ELMz)を参照し、識別子1.こ符
号化可能な値かを調べる。符号化可能であればデータ要
素の内容(ELM2.)を識別子(IDx)に符号化し
、長さをスケルトン内の識別子修飾範囲情N(Qx)に
従って符号化し、転送構文用のバッファに設定する(S
top 4 a)。データ要素の内容(ELM2)が符
号化不可能な値である場合、異常終了として処理を終了
する。
The process is shown when an identifier indicating a variable value is set in the skeleton. The identifier in the skeleton is a variable value (x)
If so, the processing module for variable part setting is selected from the variable element processing group (Step 5 a), and the corresponding variable element setting processing refers to the contents of the data element (ELMz) set in the primitive. , identifier 1. Check whether this value can be encoded. If encoding is possible, encode the content of the data element (ELM2.) into an identifier (IDx), encode the length according to the identifier modification range information N (Qx) in the skeleton, and set it in the transfer syntax buffer ( S
top 4 a). If the content of the data element (ELM2) is a value that cannot be encoded, the process is terminated as an abnormal termination.

符号化時には、上記処理をスケルトンに設定された要素
数分、スケルトンに示さ九た識別子、識別子修飾範囲、
変換規則に従って昇順、降順任意の方向で処理する。ス
ケルトン内の識別子ば、転送構文を作成した際現われる
識別子順に並べられているため、転送構文を作成する際
は、データ要素の内容を指定の位置へ埋め込んで行く処
理を行う。
During encoding, the above processing is performed for the number of elements set in the skeleton, the identifier shown in the skeleton, the identifier modification range,
Process in ascending or descending order according to conversion rules. The identifiers in the skeleton are arranged in the order of the identifiers that appear when the transfer syntax is created, so when the transfer syntax is created, the content of the data element is embedded in the specified position.

次に、第1図、第4図、第5図を参照して復号化方式の
一例を示す。
Next, an example of a decoding method will be described with reference to FIGS. 1, 4, and 5.

転送構文6を受は取った符号化/復号化処理モジュール
は、スケル]−ン選択モジュールを用い、ステル1〜ン
群8より該当するスケルトン8aを選択する(Stsp
lb)、選択したスケルトンを用いて、データ要素設定
処理を行う(Stap2b)。
The encoding/decoding processing module that has received the transfer syntax 6 selects the corresponding skeleton 8a from the skeleton groups 1 to 8 using the skeleton selection module (Stsp
lb), data element setting processing is performed using the selected skeleton (Stap 2b).

データ要素設定処理の概略を示す。まず転送構文を、識
別子修飾範囲(Ωa@ Qbg 12□Qc) に従っ
て、識別子IDi とPDUデータ要素の内容E L 
M a ’  に分解する。取り出した識別子をスケル
トン内識別子と、取り出した長さLをスケルトン内識別
子修飾範囲と比較し、一致するならば、PDUデータ要
素設定有無を調べる。データ要素の内容が設定されてい
る識別子(I D b/ I D c)ならば、スケル
トン内の変換規則に従いデータ型を変換しく5top3
 b) 、データ要素の内容(ELM 1/ELMa)
を要素設定位置情報に従いプリミティブ内に設定する(
Stop4b)。分解した識別子がスケルトン内情報と
一致しない場合は、異常終了として処理を終了する。
An overview of data element setting processing is shown. First, the transfer syntax is divided into the identifier IDi and the content E L of the PDU data element according to the identifier qualification range (Ωa@Qbg 12□Qc).
Decompose into M a '. The retrieved identifier is compared with the skeleton internal identifier, and the retrieved length L is compared with the skeleton internal identifier modification range, and if they match, it is checked whether a PDU data element is set. If the content of the data element is an identifier (ID b/ID c), convert the data type according to the conversion rules in the skeleton. Top 3
b) Contents of data elements (ELM 1/ELMa)
is set in the primitive according to the element setting position information (
Stop4b). If the decomposed identifier does not match the information in the skeleton, the process is terminated as an abnormal termination.

スケルトン内に可変値を示す識別子が設定されている場
合の処理を示す、スケルトン内の識別子が可変値(X)
である場合は、可変部分判定用の処理モジュールを可変
要素処理群より選択する(Step5b)、該当する可
変要素判定処理は、分解時に得られた識別子(IDx)
が可変要素として使用可能であるかを調べる。使用可能
であれば、識別T−(IDx)をデータ要素の内容(E
LMz)に復号し、要素設定位置情報に従いプリミティ
ブ内に設定する(Step4b)。分解時に得らねた識
別子IDが不適当な場合、異常終了として処理を終了す
る。
Indicates processing when an identifier indicating a variable value is set in the skeleton.The identifier in the skeleton is a variable value (X)
If so, a processing module for variable part determination is selected from the variable element processing group (Step 5b), and the corresponding variable element determination processing is performed using the identifier (IDx) obtained during disassembly.
Check if can be used as a variable element. If available, the identification T-(IDx) is set to the data element content (E
LMz) and set in the primitive according to the element setting position information (Step 4b). If the identifier ID that was not obtained during disassembly is inappropriate, the process is terminated as an abnormal termination.

復号時においては、上記処理をスケルトンに設定された
要素数分、スケルトンに示された識別子。
At the time of decoding, the identifiers shown in the skeleton correspond to the number of elements set in the skeleton for the above processing.

識別子修飾範囲、変換規則に従って昇順方向で処理する
、スケルトン内の識別子は、転送構文を分解した際現わ
れる識別子順に並べられているため、プリミティブを作
成する際は、転送構文よりデータ要素の内容を抜き取る
処理を行う。
The identifiers in the skeleton are processed in ascending order according to the identifier qualification range and conversion rules.Since the identifiers in the skeleton are arranged in the order of the identifiers that appear when the transfer syntax is decomposed, when creating a primitive, the contents of data elements are extracted from the transfer syntax. Perform processing.

以上本実施例においては、符号化/復号化処理を高速に
行える効果がある。
As described above, this embodiment has the advantage that encoding/decoding processing can be performed at high speed.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、転送構文のスケ用1−ンを予め作成し
ておくため、r’ D Uデータ要素を識別する識別子
の符号化処理が省略でき、PDUデータ要素の内容のみ
を変換し転送構文を作成するため、符号化処理を高速に
行える。復号時についても、符号化されたPDUデータ
要素の識別子を復号することなく、PDUデータ要素の
値の復号が行え。
According to the present invention, since the transfer syntax scale 1 is created in advance, the encoding process of the identifier for identifying the r'DU data element can be omitted, and only the contents of the PDU data element are converted and transferred. Since the syntax is created, the encoding process can be performed at high speed. Also during decoding, the value of the PDU data element can be decoded without decoding the encoded identifier of the PDU data element.

直接、プリミティブに変換した値を設定できるため、高
速に復号化が行える6 スケルトンを固定割当できないサービスについては、可
変部分の識別子の符号化処理/判定処理モジュールを可
変部分についてのみ作成すればよいため、プログラム規
模を最小限におさえられる。
Since the converted value can be directly set in the primitive, decoding can be performed at high speed. 6 For services where skeletons cannot be fixedly allocated, it is only necessary to create an encoding/judgment processing module for the identifier of the variable part only for the variable part. , program scale can be kept to a minimum.

転送構文のスケルトンは、PDUのプロトコル記述に対
応して作成されるため、プロトコル変更時には、スケル
トンの変更を行うだけで対2客できる。又、プログラム
の変更も、可変部分の符号化処理/判定処理モジュール
に限定されるため、管理が容易となる。
Since the skeleton of the transfer syntax is created in accordance with the protocol description of the PDU, when changing the protocol, two customers can be transferred by simply changing the skeleton. Furthermore, since changes to the program are limited to the encoding processing/judgment processing module of the variable portion, management becomes easier.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明における符号化/復号化処理モジュール
の一構成例を示す説明図、第2図は符号化処理の一例を
示す動作説明図、第3図は符号化処理の一例を示すフロ
ーチャート、第4図は復号化処理の一例を示す動作説明
図、第5図は復号化処理の一例を示すフローチャート、
第6図は本発明に係る、符号化/復号化処理の一実施例
の機能構成を示すブロック図、第7図は符号化/復号化
処理モジュールに渡されるプリミゾイブの一構成例を示
す説明図、第8図は、符号化/復号化処理モジュールが
作成する転送構文の一例を示を説明図、第9図は符号化
/復号化時に使用するスケルトンこの一構成例を示す説
明図である。 1・・・計算機及び制御装置、2・・・応用プログラム
。 3°パ応用層プロトコル処理モジュール、4・・・下位
プロトコル処理モジュール、5・・・プリミティブ、6
・・・転送構文、7・・・符号化/復号化処理モジュー
ル、8・・・転送構文スケルトン、10・・・ノード。 1.1・・・伝送路。 第1図
FIG. 1 is an explanatory diagram showing a configuration example of an encoding/decoding processing module in the present invention, FIG. 2 is an operation explanatory diagram showing an example of encoding processing, and FIG. 3 is a flowchart showing an example of encoding processing. , FIG. 4 is an operation explanatory diagram showing an example of the decoding process, FIG. 5 is a flowchart showing an example of the decoding process,
FIG. 6 is a block diagram showing the functional configuration of an embodiment of encoding/decoding processing according to the present invention, and FIG. 7 is an explanatory diagram showing an example of the configuration of Primizoib passed to the encoding/decoding processing module. , FIG. 8 is an explanatory diagram showing an example of a transfer syntax created by the encoding/decoding processing module, and FIG. 9 is an explanatory diagram showing an example of the structure of a skeleton used during encoding/decoding. 1... Computer and control device, 2... Application program. 3° performance layer protocol processing module, 4...lower protocol processing module, 5...primitive, 6
... Transfer syntax, 7... Encoding/decoding processing module, 8... Transfer syntax skeleton, 10... Node. 1.1...Transmission line. Figure 1

Claims (1)

【特許請求の範囲】[Claims] 1、応用サービスのプロトコルデータ要素を、ASN.
1で定められた符号化規則に従い転送構文に変換する処
理、及び、転送構文をASN.1で定められた復号化規
則に従いプロトコルデータ要素に変換する処理において
、応用サービスが使用するプロトコルデータ要素の識別
子をあらかじめ符号化し、出現順序に並べた転送構文の
スケルトンをサービスプリミティブ毎にあらかじめ作成
しておくことによつて、プロトコルデータ要素の内容の
みを転送構文の符号化/復号化対象情報にし、応用サー
ビス及びサービスプリミティブによらない処理を可能と
したことを特徴とする符号化/復号化方式。
1. The protocol data element of the application service is assigned ASN.
A process of converting the transfer syntax into a transfer syntax according to the encoding rules defined in ASN.1, and converting the transfer syntax into ASN. In the process of converting into protocol data elements according to the decoding rules specified in 1, the identifiers of the protocol data elements used by the application service are encoded in advance, and a skeleton of the transfer syntax arranged in the order of appearance is created in advance for each service primitive. An encoding/decoding method characterized by making only the content of the protocol data element the information to be encoded/decoded in the transfer syntax, thereby enabling processing independent of application services and service primitives. .
JP1043013A 1989-02-27 1989-02-27 Encoding/decoding system Pending JPH02224047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1043013A JPH02224047A (en) 1989-02-27 1989-02-27 Encoding/decoding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1043013A JPH02224047A (en) 1989-02-27 1989-02-27 Encoding/decoding system

Publications (1)

Publication Number Publication Date
JPH02224047A true JPH02224047A (en) 1990-09-06

Family

ID=12652101

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1043013A Pending JPH02224047A (en) 1989-02-27 1989-02-27 Encoding/decoding system

Country Status (1)

Country Link
JP (1) JPH02224047A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002027008A (en) * 2000-05-30 2002-01-25 Alcatel Transfer method with signal processing between two different transmitting/receiving interfaces

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002027008A (en) * 2000-05-30 2002-01-25 Alcatel Transfer method with signal processing between two different transmitting/receiving interfaces
JP4719377B2 (en) * 2000-05-30 2011-07-06 アルカテル−ルーセント Transfer method with signal processing between two separate send / receive interfaces

Similar Documents

Publication Publication Date Title
US4709326A (en) General locking/synchronization facility with canonical states and mapping of processors
JP2003288143A (en) Method for automatically generating user interface
JPH02224047A (en) Encoding/decoding system
JP2000029751A (en) Log managing method/device
JPS5831463A (en) Magnetic disk controller
JPS62204380A (en) Image data processor
JPH04239847A (en) Protocol data analysis system
JP2000242686A (en) Cad device and device and method for data exchange between different kind of cads
JP2000348027A (en) Structured document processing system
JPH03195153A (en) Media conversion data transmitting system
JPH03176740A (en) Interchange system for source file
JPH0591114A (en) Data communication system
JPH08161186A (en) Inter-task communication system
JPH05216799A (en) Name managing system
JPS63156455A (en) Method for constituting hardware of communication terminal equipment for multimedia
JP4690004B2 (en) Document data processing apparatus, document data processing method and program thereof
JPH04104340A (en) Code conversion system by conversion master file
JPH03123264A (en) Traffic information edit processing system in exchange
JPH05119957A (en) Data converter
JPH05233543A (en) On-line screen output system
JPH0337713A (en) Code conversion processing system
JPH04178827A (en) Character code mutual conversion system
JPH03227285A (en) Forms output editor
JPH0922351A (en) Application software preparation supporting device
JPS6115230A (en) Input data identifier