JPH0286243A - Communication protocol processing system - Google Patents

Communication protocol processing system

Info

Publication number
JPH0286243A
JPH0286243A JP63237315A JP23731588A JPH0286243A JP H0286243 A JPH0286243 A JP H0286243A JP 63237315 A JP63237315 A JP 63237315A JP 23731588 A JP23731588 A JP 23731588A JP H0286243 A JPH0286243 A JP H0286243A
Authority
JP
Japan
Prior art keywords
event
state transition
routine
matrix
processing
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.)
Granted
Application number
JP63237315A
Other languages
Japanese (ja)
Other versions
JP2820942B2 (en
Inventor
Yoshiro Yabuki
矢吹 義朗
Kenji Memezawa
目々沢 健治
Shigeru Kureji
呉地 滋
Hiroshi Kichise
吉瀬 宏
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.)
N T T SOFTWARE KK
Hitachi Ltd
Nippon Telegraph and Telephone Corp
NTT Software Corp
Original Assignee
N T T SOFTWARE KK
Hitachi Ltd
Nippon Telegraph and Telephone Corp
NTT Software 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 N T T SOFTWARE KK, Hitachi Ltd, Nippon Telegraph and Telephone Corp, NTT Software Corp filed Critical N T T SOFTWARE KK
Priority to JP63237315A priority Critical patent/JP2820942B2/en
Publication of JPH0286243A publication Critical patent/JPH0286243A/en
Application granted granted Critical
Publication of JP2820942B2 publication Critical patent/JP2820942B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PURPOSE:To relieve an overhead at event notice and to reduce the software and hardware of a communication equipment by devising the title system such that an event is notified not via an entry of the event. CONSTITUTION:The notice of an event from other state transition matrix to plural state transition matrixes A-C, that is, the notice of the event to a task 22 is implemented via an event entry 21. Then only one event entry is provided on the plural state transition matrixes A-C and the event among them is given to the state transition matrixes through a direct routine cell not via the event entry. Thus, the overhead at event notice is relieved to save the software and hardware of the communication equipment.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は通信装置におけるプロトコル処理に関し、より
詳細には、lIIm型通信プロトコルにおける各層間の
イベント通知インタフェース、及び同一層内の異なる状
態遷移マトリックス間のイベント通知インタフェースに
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to protocol processing in a communication device, and more specifically, an event notification interface between layers in an IIm type communication protocol, and different state transition matrices within the same layer. Regarding the event notification interface between.

近年、通信技術の発達に伴い、ファクシミリ通信、パケ
ット交換、ビデオテックス通信など種々の通信が提案さ
れ、実用化されている。これらの異なる通信を有機的か
つ一体的に結合して体系的な(標準的な)通信を確立す
るために、プロトコル(通信規約)が必要である。プロ
トコルはネットワーク(通信網)の構成要素をモデル化
し、モデル上での通信に必要な取決め(例えばメツセー
ジの種類、情報送受信の順序関係)である。
In recent years, with the development of communication technology, various communication methods such as facsimile communication, packet switching, and videotex communication have been proposed and put into practical use. A protocol (communication protocol) is required to organically and integrally combine these different communications to establish systematic (standard) communications. A protocol models the components of a network (communication network) and is the arrangement necessary for communication on the model (for example, message types, order of information transmission and reception).

〔従来の技術〕[Conventional technology]

はじめに、第7図ないし第9図を参照して、プロトコル
の概念について説明する。尚、第7図ないし第9図は、
「河岡、ばか“プロトコルの形式%式%) 187−192.昭和60年2月」に記載されている。
First, the concept of a protocol will be explained with reference to FIGS. 7 to 9. In addition, Figures 7 to 9 are as follows:
"Kawaoka, idiot" protocol format % expression %) 187-192. February 1985”.

第7図はプロトコルの階層化モデルを示す図である。ノ
ードA、Bは端末等の通信装置である。
FIG. 7 is a diagram showing a layered model of the protocol. Nodes A and B are communication devices such as terminals.

プロトコルは(N+1)レイヤ、(N)レイヤ等のよう
に階層化されてモデル化される。エンティティはプロト
コルを実行する手段で、各層ごとに設けられている。例
えば(N)レイヤのエンティティは、すぐ下の(N−1
)エンティティから提供される(N−1)サービスを受
取り、(N)レイヤの手順処理ルーチンを実行する。そ
して、(N)レイヤのすぐ上の(N+1)レイヤに(N
)サービスを提供する。このような(N)レイヤのエン
ティティが行う動作を規定するものが、プロトコルであ
る。
The protocol is modeled in layers such as (N+1) layer, (N) layer, etc. Entities are means for executing protocols and are provided for each layer. For example, an entity in layer (N) is layered immediately below layer (N-1).
) Receives the (N-1) services provided by the entity and executes the procedure processing routine of the (N) layer. Then, (N) is added to the (N+1) layer immediately above the (N) layer.
) to provide services. What defines the operations performed by such (N) layer entities is a protocol.

一般に、プロトコルを記述する方法として種々提案され
ているが、ここでは状態遷移モデルに沿って説明する。
In general, various methods have been proposed for describing protocols, but here the description will be based on a state transition model.

第8図はデータの提供者とデータの消費側との間で行れ
る状態遷移モデルの一例を示す図である。
FIG. 8 is a diagram showing an example of a state transition model that can be performed between a data provider and a data consumer.

図中、i+は内部的な送信要求の通知、12は相手側か
らの受信可の通知、i3は内部的なデータ転送の終りの
通知、i4は相手側からのデータ消費の通知、01は相
手側へ送信要求、02は相手側へデータの送信、−は入
力、出力がないことを示す。また、i10はiが入力を
、0が出力を示し、*はデータ提供側の出力がデータ消
費側の入力となることを示している。
In the figure, i+ is an internal transmission request notification, 12 is a reception permission notification from the other party, i3 is an internal data transfer end notification, i4 is a data consumption notification from the other party, and 01 is the other party. Request for transmission to the other side, 02 indicates data transmission to the other party, - indicates no input or output. Further, in i10, i indicates input, 0 indicates output, and * indicates that the output of the data provider side becomes the input of the data consumption side.

第9図は、データ提供側の状態遷移を示す図である。図
示するように、入力(イベントともいう)とこのときの
データ提供側の状態とで、エンティティが実行する手順
処理ルーチンが決定される。
FIG. 9 is a diagram showing state transitions on the data provider side. As shown in the figure, the procedure processing routine to be executed by the entity is determined based on the input (also called an event) and the state of the data provider at this time.

通常、第9図に示す入力と状態との関係を状態遷移マト
リックスと呼ぶ。
The relationship between inputs and states shown in FIG. 9 is usually called a state transition matrix.

従来の階層型通信プロトコル処理では、各層毎に独立し
た状態遷移マトリックスを持ち、それぞれイベントの受
け口を持つ。この様子を第10図に示す。図中X、Y、
Zは異なる層のエンティティ(以下、タスクという)で
、x、y、zはそれぞれタスクX、Y、Zに対するイベ
ントの受け口である。イベントの受け口とは、隣り合う
層間で行れる手順処理ルーチンを結合するプログラムで
ある。例えば、第10図に示すように、タスクXの層の
すぐ下の層でタスクXに対して発生したイベントはイベ
ント受け口Xにつながれ(キューイング)、ここを介し
てイベントを取得する。タスクXは後述するように、白
層の状態遷移マトリックスから、取得したイベントに対
する手順処理ルーチンを求め、実行する(これをマトリ
ックス対応手順処理という)。タスクXは手順処理ルー
チンを実行することにより状態遷移し、タスクXの層の
すぐ上の層に対するイベントを作成する。このイベント
は、タスクYに対するイベント受け口yを介してタスク
Yに与えられる。このようにしてイベントを取得したタ
スクYは、このイベントに対する手順処理ルーチンを求
め、実行する。そして、タスクYはこの手順処理ルーチ
ンで作成したイベントをイベント受け口2ヘキューイン
グし、タスクZに与える。イベントを取得したタスクZ
は同様にして手順処理ルーチンを決定し、実行する。
In conventional hierarchical communication protocol processing, each layer has an independent state transition matrix, and each layer has an event reception. This situation is shown in FIG. In the diagram, X, Y,
Z is an entity (hereinafter referred to as a task) in a different layer, and x, y, and z are event receivers for tasks X, Y, and Z, respectively. An event receiver is a program that connects procedural processing routines that can be performed between adjacent layers. For example, as shown in FIG. 10, an event that occurs for task X in a layer immediately below the layer of task X is connected to event receiver X (queueing), and the event is acquired through this. As will be described later, Task Task X undergoes a state transition by executing a procedural processing routine, and creates an event for the layer immediately above the layer of task X. This event is given to task Y via event socket y for task Y. Task Y, which has acquired the event in this way, determines and executes a procedure processing routine for this event. Then, task Y queues the event created in this procedural processing routine to event receiver 2, and provides it to task Z. Task Z that acquired the event
similarly determines and executes a procedural processing routine.

各層内の処理は第11図に示すように行われる。Processing within each layer is performed as shown in FIG.

例えば、タスクXは白層に係る状態遷移マトリックスa
(マトリックス番@aで特定される)を取得し、イベン
トの受け口Xから取得したイベントのイベント番号すと
このときの層の状態(ステータス)の状態番号Cから、
対応する手順処理ルーチンのルーチン番号dを取得する
。このルーチン番号dは、状態遷移マトリックスa中の
各手順処理ルーチンを格納するメモリの先頭アドレス(
これを手順処理ルーチンアドレスという)を格納するル
ーチンアドレステーブルT+に与えられる。
For example, task X is a state transition matrix a related to the white layer.
(specified by matrix number @a), and from the event number C of the event obtained from the event socket X and the state number C of the layer state (status) at this time,
Obtain the routine number d of the corresponding procedure processing routine. This routine number d is the start address (
This is given to the routine address table T+ which stores the procedure processing routine address.

そして、ルーチン番号dに対応する手順処理ルーチンア
ドレスを知ったタスクXは、このアドレスから開始され
る手順処理ルーチンをルーチン・コールし、実行する。
Task X, which has learned the procedural processing routine address corresponding to routine number d, calls and executes the procedural processing routine starting from this address.

特に、マトリックス番号aの取得からルーチン・コール
までの制御処理をマトリックス制御処理という。第11
図中、これを参照番号10で示す。ルーチン番号dに対
応する手順処理ルーチンの実行中に、呼び出したいFl
(例えば、タスクYの層)に対するイベントが作成され
る。そして、ルーチン・コールでマトリックス制御処理
10にもどり、イベントの受け口yにギューイングする
ことにより、タスクYにイベントを通知する。
In particular, the control process from obtaining matrix number a to routine call is called matrix control process. 11th
This is indicated by reference number 10 in the figure. During the execution of the procedure processing routine corresponding to routine number d, select the Fl that you want to call.
An event is created for (eg, layer of task Y). Then, the routine call returns to the matrix control processing 10, and the task Y is notified of the event by gaging the event reception port y.

以上の処理は通常プログラムで行われる。このプログラ
ムは、各層ごとに独立したサブプログラムとサブプログ
ラムを有機的に結合するメインプログラムとを有する。
The above processing is normally performed by a program. This program has independent subprograms for each layer and a main program that organically combines the subprograms.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、上記従来の階層型通信プロトコル処理方
式では、各層ごとに独立してタスク(換言すればサブプ
ログラム又はエンティティ)が設けられており、しかも
タスク間(換言すれば状態遷移マトリックス間)は、イ
ベントの受け口のみを介してのみイベントを取得するこ
とができるため、イベント通知時のイベントの受け口を
構成するプログラムのオーバヘッドが大となるという問
題点があった。
However, in the conventional hierarchical communication protocol processing method described above, tasks (in other words, subprograms or entities) are provided independently for each layer, and events between tasks (in other words, between state transition matrices) are Since an event can be obtained only through the receiver, there is a problem in that the overhead of the program that constitutes the event receiver at the time of event notification becomes large.

従って、本発明は上記問題点を解決し、イベントの受け
口を介さずにイベントの通知を行えるようにして、イベ
ント通知時のオーバヘッドを軽減し、もって通信装置の
ソフトウェア及びハードウェアを削減することを目的と
する。
Therefore, the present invention solves the above problems and makes it possible to notify an event without going through an event receiver, thereby reducing the overhead at the time of event notification and thereby reducing the software and hardware of a communication device. purpose.

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

第1図は、本発明の詳細な説明するための図である。プ
ロトコルの持つ複数の状ail移マトリックス(仮にA
、B、Cとする)からそれぞれ求められるAマトリック
ス対応手順処理、Bマトリックス対応手順処理、Cマト
リックス対応手順処理に対し、1つのイベント受け口2
1を設ける。
FIG. 1 is a diagram for explaining the present invention in detail. The multiple state ail transition matrices of the protocol (if A
, B, and C), one event receiver 2 is used for the A matrix corresponding procedure processing, the B matrix corresponding procedure processing, and the C matrix corresponding procedure processing respectively obtained from
1 will be provided.

また、各状態遷移マトリックスで規定されるAマトリッ
クス対応手順処理、Bマトリックス対応手順処理、Cマ
トリックス対応手順処理の中にそれぞれ、他の状態遷移
マトリックス(例えば状態遷移マトリックスAに対する
状態遷移マトリックスB)をルーチン・コールで直接呼
び出してイベントを通知するための制御情報を受ける。
In addition, other state transition matrices (for example, state transition matrix B for state transition matrix A) are included in the A matrix compatible procedure process, B matrix compatible procedure process, and C matrix compatible procedure process defined in each state transition matrix. Receives control information for directly calling a routine to notify an event.

複数の状態遷移マトリックスは異なる層間(例えば、前
述した第10図に相当する)のものであっても良いし、
同一層間のものであっても良い。
The plurality of state transition matrices may be between different layers (for example, corresponding to the above-mentioned FIG. 10), and
It may be between the same layers.

また、複数の状態遷移マトリックスはイベントの受け口
を介さずにルーチン・コールで直接イベントを通知する
ため、これらに対し1つのタスク22を設けることでマ
トリックス対応手順処理を実行できる。
Furthermore, since a plurality of state transition matrices directly notify events by routine calls without going through an event receiver, by providing one task 22 for these, matrix-compatible procedure processing can be executed.

〔作用〕[Effect]

複数の状態遷移マトリックスに対する他の状態遷移マト
リクス(例えば下位層にある)からのイベントの通知、
換言すればタスク22に対するイベントの通知はイベン
ト受け口21を介して通知される。例えば状g3遷移マ
トリックスAはイベント受け口21を介して(キューに
より)イベン1−を取得する。そして、取得したイベン
トに対応するAマトリックス対応手順処理を実行する。
notification of events from other state transition matrices (e.g. in lower layers) to multiple state transition matrices;
In other words, the event notification for the task 22 is sent via the event receiver 21. For example, the state g3 transition matrix A obtains event 1- via the event socket 21 (by queue). Then, the A matrix corresponding procedure process corresponding to the acquired event is executed.

この実行により発生したイベントは、Aマトリックス対
応手順処理中の制御情報に従い、他の状態遷移マトリッ
クスBを直接呼び出しくルーチン・コール)して通知さ
れる。このようにして通知されたイベントに対応するB
マトリックス対応手順処理が実行される。この実行中に
発生したイベントは制御情報に従い、直接呼び出された
他の状態遷移マトリックスCに通知され、対応するCマ
トリックス対応手順処理が実行される。
An event generated by this execution is notified by a routine call that directly calls another state transition matrix B according to the control information during processing of the A matrix corresponding procedure. B that responds to the event notified in this way
Matrix-enabled procedural processing is performed. Events that occur during this execution are notified to other directly called state transition matrices C according to the control information, and the corresponding C matrix corresponding procedure processing is executed.

このように、複数の状態遷移マトリックスに対しイベン
ト受け口は1つで、しかもこれらの間のイベントの通知
をイベント受け口を介さずに直接ルーチン・コールで対
応する状態遷移マトリックスに与えるので、従来の問題
点は解消される。
In this way, there is only one event receiver for multiple state transition matrices, and notifications of events between these matrices are given directly to the corresponding state transition matrices by routine calls without going through the event receivers, which solves the conventional problem. The points are cleared.

〔実施例〕〔Example〕

以下、本発明の実施例を図を参照して詳細に説明する。 Embodiments of the present invention will be described in detail below with reference to the drawings.

第2図は、本発明を実施する通信装置−構成例を示す。FIG. 2 shows a configuration example of a communication device implementing the present invention.

同図において、通信装置は本体系装置30と、通信制御
処理装置34と、周辺系装置35とを有する。本体系装
置30は中央処理装置(CPU)31と、主記憶装置(
MEM)32と、データ転送装置(DCH)33とを具
備する。中央処理装置31は後述するフローチャートに
従い、プロトコルで規定された制御を行う。主記憶装置
32は後述する状態遷移マトリックス、対応手順処理ル
ーチン、ルーチンアドレステーブル等を記憶する。デー
タ転送装置33は、中央処理装置31と通信制卵処理装
置34及び周辺系装置35との間のデータ転送を制御す
る。通信制御処理装置34は、本体系装置30と回線3
6との間に設けられ、変復調や回線接続/しゃ断等の制
御を行う。周辺系装置35はCRT、プリンタ、キーボ
ード等である。
In the figure, the communication device includes a main body system device 30, a communication control processing device 34, and a peripheral system device 35. The main system device 30 includes a central processing unit (CPU) 31 and a main storage device (
MEM) 32 and a data transfer device (DCH) 33. The central processing unit 31 performs control specified by the protocol according to a flowchart described later. The main storage device 32 stores a state transition matrix, a corresponding procedure processing routine, a routine address table, etc., which will be described later. The data transfer device 33 controls data transfer between the central processing device 31, the communication control processing device 34, and the peripheral devices 35. The communication control processing device 34 connects the main body system device 30 and the line 3.
6, and controls modulation/demodulation, line connection/cutoff, etc. Peripheral devices 35 include a CRT, printer, keyboard, and the like.

第3図は、第2図中の中央処理装置31や主記憶装置3
2で行われるプロトコル制御の機能ブロック図である。
FIG. 3 shows the central processing unit 31 and main storage device 3 in FIG.
2 is a functional block diagram of protocol control performed in step 2. FIG.

イベント入力部40は第1図に示すイベント受け口21
に相当し、下位層などからタスク22に対するイベント
の通知を受け取る。
The event input section 40 is connected to the event receiving port 21 shown in FIG.
This corresponds to receiving event notifications for the task 22 from lower layers and the like.

7トリツクス格納部41は、複数の状態遷移マトリック
スを格納する。ルーチン格納部42は、各状R遷移マト
リックスで規定されている状態番号に対応したマトリッ
クス対応手順ルーチンと、このルーチンで発生したイベ
ントを、直接ルーチン・コールで伯の状態遷移マトリッ
クスを呼び出して通知するためのルーチン(これを二次
マトリックス制御処理ルーチンという)とを格納する。
The 7-trix storage unit 41 stores a plurality of state transition matrices. The routine storage unit 42 calls the state transition matrix of the matrix by a direct routine call and notifies the matrix corresponding procedure routine corresponding to the state number defined in each state R transition matrix and the event that occurs in this routine. (This is called a secondary matrix control processing routine).

ルーチンアドレステーブル43は、各状態遷移マトリッ
クスで求められる状態番号とルーチン格納部42との対
応関係を規定するテーブルである。
The routine address table 43 is a table that defines the correspondence between the state numbers found in each state transition matrix and the routine storage unit 42.

制御部44は図示する各部を、後述する第4図の動作フ
ローチャートに従って制御Oする。手順処理部45は、
制御部44から指定された対応手順処理ルーチンを実行
する。
The control section 44 controls each of the illustrated sections according to the operation flowchart of FIG. 4, which will be described later. The procedure processing unit 45
The corresponding procedure processing routine specified by the control unit 44 is executed.

次に、本実施例の動作を第3図に加え、第4図ないし第
6図を参照して説明する。ここで、第4図は本実施例の
動作を示すフローチャート、第5図は本実施例の処理手
順を示す図、及び第6図は本実施例の処理をステップご
とに示す図である。
Next, the operation of this embodiment will be explained with reference to FIGS. 4 to 6 in addition to FIG. 3. Here, FIG. 4 is a flowchart showing the operation of this embodiment, FIG. 5 is a diagram showing the processing procedure of this embodiment, and FIG. 6 is a diagram showing the processing of this embodiment step by step.

以下の説明では、階層型通信プロトコル処理における連
続する二層(以下、下位層をA層、上位層を8層とする
)を制御する場合の手順を例にとる。
In the following explanation, a procedure for controlling two consecutive layers (hereinafter, the lower layer is referred to as layer A and the upper layer is referred to as 8 layers) in hierarchical communication protocol processing will be taken as an example.

はじめに、装置はイベント持ち状態にある(第6図の(
a))。この状態でA層の下位層でA層に対するイベン
ト■とBlに対するイベント■とが連続して発生したと
する(第6図(b))。イベント■は他のプログラムに
よるキューイングにより第3図のイベント入力部40に
与えられる。そして、イベント入力部40は先頭のイベ
ント■を取得する(第4図のステップ101;第6図(
C))。
First, the device is in an event holding state ((
a)). In this state, it is assumed that an event (2) for layer A and an event (2) for B1 occur consecutively in a lower layer of layer A (FIG. 6(b)). Event (2) is given to the event input unit 40 in FIG. 3 by queuing by another program. Then, the event input unit 40 obtains the first event ■ (step 101 in FIG. 4; FIG. 6 (
C)).

イベント入力部40からイベント■の通知を受けた制御
部44は、このイベント■がどの層に対応するかを判定
する(ステップ102;第6図(d))。
The control unit 44, which receives the notification of the event ■ from the event input unit 40, determines to which layer this event ■ corresponds (step 102; FIG. 6(d)).

制御部44は、イベント■は状態遷移マトリックスAに
対応するものであることを知り、マトリックス格納部4
1から第5図に示す状態遷移マトリックスa1を読み出
す(ステップ103:第6図(e))。いま、ステータ
スの状態番号がCIでイベントのがイベント番号b+を
持つとすると、制御部44は対応するルーチンアドレス
d1を決定する(ステップ104;第6図(f))。そ
して、制御部44はルーチンアドレステーブル43を参
照して、状態番号d1に対応する81対応手順処理ルー
チンのアドレスを知り、ルーチン・コールをする(ステ
ップ105;第6図(g))。そして、制御部44は8
1対応手順処理ルーチンを手順処理部45に与える。こ
れにより、手順処理部45はイベント■に対応するa1
1対応順処理を実行する(ステップ106:第6図(h
))。
The control unit 44 knows that the event ■ corresponds to the state transition matrix A, and the matrix storage unit 4
The state transition matrix a1 shown in FIG. 1 to FIG. 5 is read out (step 103: FIG. 6(e)). Assuming that the status number is CI and the event number is b+, the control unit 44 determines the corresponding routine address d1 (step 104; FIG. 6(f)). Then, the control section 44 refers to the routine address table 43, learns the address of the 81-compatible procedure processing routine corresponding to the state number d1, and calls the routine (step 105; FIG. 6(g)). Then, the control unit 44
1 corresponding procedure processing routine is provided to the procedure processing section 45. As a result, the procedure processing unit 45 a1 corresponding to event ■
1 Execute the corresponding order processing (step 106: Fig. 6 (h
)).

第5図中、マトリックス番号a1を取tqシてから対応
するルーチン・コールまでの側聞は、−次マトリックス
制御処理として図示している。
In FIG. 5, the process from taking matrix number a1 to the corresponding routine call is shown as -th order matrix control processing.

このようにして得たa11対応順処理を実行中にイベン
トが発生するかどうかで、以下に述べるように2通りの
処理に分れる。
Depending on whether an event occurs during execution of the a11 corresponding order processing obtained in this way, the processing is divided into two types as described below.

まず、al対応手順処理中に状態遷移マトリックス8に
対するイベントOが発生したとする(第6図(i2))
。これを検知した制御部44は、先にルーチンアドレス
テーブル43のルーチン格納部d1をアクセスした際に
取得した二次マトリックス制御処理ルーチンアドレスに
従い、a11対応順処理の終了から、第5図に示す−次
マトリックス副部処理と同様にして、イベントG〕に対
応するルーチン番号を取得するためのプログラムに連続
的に移行する(ステップ107の”YES”:第6図(
j2))。この二次マトリックス制御処理ルーチンアド
レスとは、第4図のステップ107からステップ102
に戻ることを意味し、二次マトリックス制御処理とはこ
のようにして房っだステップ102からステップ106
までの処理を意味する。
First, it is assumed that event O for the state transition matrix 8 occurs during the al corresponding procedure processing (Fig. 6 (i2)).
. Detecting this, the control unit 44 follows the secondary matrix control processing routine address acquired when the routine storage section d1 of the routine address table 43 is accessed earlier, and from the end of the a11 corresponding order processing, as shown in FIG. In the same manner as the next matrix sub-part processing, the program continues to obtain the routine number corresponding to event G] ("YES" in step 107: FIG.
j2)). This secondary matrix control processing routine address is from step 107 to step 102 in FIG.
, and the secondary matrix control process is thus condensed from step 102 to step 106.
This means the processing up to.

制御部44はイベント0に対応する層を判定した後(ス
テップ102) 、これに係る状態遷移マトリックスa
2をマトリックス格納部41から読み出しくステップ1
03) 、このときの811のステータスとイベントθ
のイベント番号に対応するルーチン番号を知る(ステッ
プ104)。今、第5図に示すように、イベント0のイ
ベント番号b2とこのときの状態番号C2とでルーチン
アドレスd2が求められたとすると、制御部44はルー
チン・コールによりルーチン格納部42からルーチンア
ドレスd2に対応するa2対応手順処理ルーチンを読み
出しくステップ105)、これを受けた手順処理部45
がこれを実行する(ステップ106)。尚、本実施例で
は8層は1つのタスクで処理される最上位層なので、ル
ーチンアドレステーブル43は状態遷移マトリックスa
2に規定されるステータス・アドレスに関しては手順処
理ルーチンアドレスのみを持ち、二次マトリックス制御
処理ルーチンアドレスを持たない。
After determining the layer corresponding to event 0 (step 102), the control unit 44 determines the state transition matrix a related to this layer.
2 from the matrix storage section 41 Step 1
03) , 811 status and event θ at this time
The routine number corresponding to the event number is known (step 104). Now, as shown in FIG. 5, if the routine address d2 is obtained from the event number b2 of event 0 and the state number C2 at this time, the control unit 44 retrieves the routine address d2 from the routine storage unit 42 by a routine call. Step 105) reads the a2-compatible procedure processing routine corresponding to
does this (step 106). In this embodiment, the 8th layer is the highest layer processed by one task, so the routine address table 43 is based on the state transition matrix a.
Regarding the status address specified in 2, it has only a procedure processing routine address and does not have a secondary matrix control processing routine address.

一方、第4図のステップ107でa1対応手順処理中に
イベントが発生しなかった場合は、制御部44はイベン
ト入力部40に次のイベントがあるかどうかを判定する
(ステップ108)。第6図(11)に示すように、イ
ベント■に続きイベント■が来ているので、制御部44
はイベント入力部40からイベント■を取得する。そし
て、ステップ102〜106に従って、対応する手順処
理ルーチンを決定し、実行する(第6図(j+)。
On the other hand, if no event occurs during the a1 corresponding procedure processing in step 107 of FIG. 4, the control unit 44 determines whether there is a next event in the event input unit 40 (step 108). As shown in FIG. 6 (11), since the event ■ follows the event ■, the control unit 44
obtains the event ■ from the event input section 40. Then, according to steps 102 to 106, a corresponding procedural processing routine is determined and executed ((j+) in FIG. 6).

(kl))。そして、最侵に初期状態(第6図(a))
に戻る。
(kl)). Then, the initial state (Fig. 6(a))
Return to

以上、本発明の一実施例を説明した。上記実流例では状
態遷移マトリックスA、Bに対し1つのイベント受け口
(イベント入力部40)を設け、状態遷移マトリックス
Aに係る処理中に発生したイベントはルーチン・コール
により状態遷移マトリックスに通知している。これによ
り、イベント受け口の層間インタフェースのオーバーヘ
ッドを削減できる。
One embodiment of the present invention has been described above. In the above actual flow example, one event receiver (event input section 40) is provided for state transition matrices A and B, and events that occur during processing related to state transition matrix A are notified to the state transition matrix by a routine call. There is. As a result, the overhead of the interlayer interface of the event reception can be reduced.

また、タスク(第3図の手順処理部45に相当)は状態
遷移7トリツクスA、Bに共通に1つあれば良いので、
プロトコルを実行するソフトウェアやハードウェアの各
組を削減できる。
In addition, since it is sufficient to have one task (corresponding to the procedure processing unit 45 in FIG. 3) common to the state transition 7 tricks A and B,
Each set of software and hardware that executes the protocol can be reduced.

更に、上記実施例では状態遷移マトリックスat 、a
2を異なる層に対応するものとして説明したが、同一層
内において状態遷移マトリックスを複数に分割して管理
することができる。例えば、プロトコル処理上あっては
ならない状態とイベントとの関係とで1つの状171遷
移マトリツクスを作成しておき、これにアクセスがあっ
たときは障害として直ちに必要な対応処理を読み出して
行うようにすることができる。
Furthermore, in the above embodiment, the state transition matrices at, a
2 has been described as corresponding to different layers, but the state transition matrix can be divided into multiple parts and managed within the same layer. For example, one state 171 transition matrix is created with the relationship between states and events that should not occur in protocol processing, and when this is accessed, the necessary response processing is immediately read out and executed as a failure. can do.

(発明の効果) 以上説明したように、本発明によれば、複数の状態遷移
マトリックスに対しイベントの受け口は1つで、しかも
これらの間のイベントの通知をイベントの受け口を介さ
ずに直接ルーチン・コールで対応する状態遷移マトリッ
クスに与えるので、イベントの通知時のオーバーヘッド
を軽減して通信装置のソフトウェア及びハードウェアを
削減することができる。
(Effects of the Invention) As explained above, according to the present invention, there is only one event receiver for a plurality of state transition matrices, and notification of events between these matrices can be directly performed via a routine without going through the event receivers. - Since it is given to the corresponding state transition matrix in a call, the overhead at the time of event notification can be reduced and the software and hardware of the communication device can be reduced.

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

第1図は本発明の詳細な説明するための図、第2図は本
発明が適用できる通信装置の構成例を示すブロック図、 第3図は本発明実施例の機能ブロック図、第4図は本発
明実施例の動作フローチャート、第5図は本発明実施例
の処理手順を示す図、第6図は本発明実施例の処理をス
テップごとに示す図、 第7図はプロトコルの階層化モデルを示す図、第8図は
状態遷移モデルの一例を示す図、第9図はデータ提供側
の状態遷移を示す図、第10図は従来方式を説明するた
めの図、及び第11図は各層で行われる処理手順を示す
図である。 21・・・イベント受け口、22・・・タスク、30・
・・本体系装置、31・・・中央処理装置(CPU)、
32・・・主記憶装置(MEM) 、33・・・データ
転送装置(DCH)、34・・・通信制御処理装置、3
5・・・周辺系装置、36・・・回線、40・・・イベ
ント入力部、41・・・マトリックス格納部、42・・
・ルーチン格納部、43・・・ルーチンアドレステーブ
ル、44・・・制御部、45・・・手順処理部。 不発明実施例の機能ブロック図 第3図 本発明の詳細な説明するための処理 第1図 本発明が適用できる)I!i信装置の講成例を示すブ0
ツク図第2図 −に発明実癩例・つ動作フローチ・−一ト第4図 状91!移 マトリックスa 不発明実施例の蛤埋手順を示す図 第 図 ノードA ノードB グロトコルの階層化モデルを示す図 第7図 (データの提供側) (データの消費側) 状態遷移モデルの一例を示す図 第8図 夕提供側の状態遷移を示す図
FIG. 1 is a diagram for explaining the present invention in detail, FIG. 2 is a block diagram showing a configuration example of a communication device to which the present invention can be applied, FIG. 3 is a functional block diagram of an embodiment of the present invention, and FIG. 4 is an operation flowchart of the embodiment of the present invention, FIG. 5 is a diagram showing the processing procedure of the embodiment of the present invention, FIG. 6 is a diagram showing the processing of the embodiment of the present invention step by step, and FIG. 7 is a layered model of the protocol. , FIG. 8 is a diagram showing an example of a state transition model, FIG. 9 is a diagram showing state transition on the data provider side, FIG. 10 is a diagram for explaining the conventional method, and FIG. 11 is a diagram showing each layer. It is a figure which shows the processing procedure performed in FIG. 21...Event reception, 22...Task, 30.
...Main system device, 31...Central processing unit (CPU),
32... Main memory device (MEM), 33... Data transfer device (DCH), 34... Communication control processing device, 3
5... Peripheral system device, 36... Line, 40... Event input section, 41... Matrix storage section, 42...
- Routine storage unit, 43... Routine address table, 44... Control unit, 45... Procedure processing unit. Fig. 3 Functional block diagram of the non-inventive embodiment Fig. 3 Processing for detailed explanation of the invention Fig. 1 Applicable to the invention) I! Block 0 showing an example of training on i-communication equipment
Figure 2 shows an example of the invention, an operation flow chart, and the fourth diagram 91! Transition matrix a Diagram showing the clam filling procedure of the non-inventive embodiment Node A Node B Diagram showing the hierarchical model of the global protocol FIG. 7 (Data provider side) (Data consumer side) An example of a state transition model Figure 8 Diagram showing the state transition on the provider side

Claims (1)

【特許請求の範囲】 通信装置におけるプロトコル処理において、プロトコル
の持つ複数の状態遷移マトリックスに対してイベントを
通知するためのイベント受け口を1つ設け、 各状態遷移マトリックスで規定されるマトリックス対応
手順処理の中に、他の状態遷移マトリックスをルーチン
・コールで直接呼び出してイベントを通知するための制
御情報を設けたことを特徴とする通信プロトコル処理方
式。
[Claims] In protocol processing in a communication device, one event receiver is provided for notifying events for a plurality of state transition matrices of the protocol, and matrix-compatible procedure processing specified by each state transition matrix is performed. A communication protocol processing method characterized in that control information for directly calling another state transition matrix by a routine call and notifying an event is provided therein.
JP63237315A 1988-09-21 1988-09-21 Communication protocol processing method Expired - Lifetime JP2820942B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63237315A JP2820942B2 (en) 1988-09-21 1988-09-21 Communication protocol processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63237315A JP2820942B2 (en) 1988-09-21 1988-09-21 Communication protocol processing method

Publications (2)

Publication Number Publication Date
JPH0286243A true JPH0286243A (en) 1990-03-27
JP2820942B2 JP2820942B2 (en) 1998-11-05

Family

ID=17013547

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63237315A Expired - Lifetime JP2820942B2 (en) 1988-09-21 1988-09-21 Communication protocol processing method

Country Status (1)

Country Link
JP (1) JP2820942B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001022498A (en) * 1999-04-14 2001-01-26 Matsushita Electric Ind Co Ltd Event controller and digital broadcasting system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001022498A (en) * 1999-04-14 2001-01-26 Matsushita Electric Ind Co Ltd Event controller and digital broadcasting system
US7962568B2 (en) 1999-04-14 2011-06-14 Panasonic Corporation Event control device and digital broadcasting system

Also Published As

Publication number Publication date
JP2820942B2 (en) 1998-11-05

Similar Documents

Publication Publication Date Title
WO1999008431A1 (en) Queue system and method for point-to-point message passing
CN110636073A (en) Distributed asynchronous remote service arranging and calling technology
JPH0286243A (en) Communication protocol processing system
US6526050B1 (en) Programming call-processing application in a switching system
KR100539907B1 (en) Structure and Method of Call Processing by Thread in Intelligent Network Switching System
JPH1169394A (en) Sharing method for protocol control memory
JPH0666983B2 (en) Routing control system
JPS60142657A (en) Composite terminal control system
JP2933478B2 (en) Switching system resource control method
KR910005777B1 (en) Method for exchanging document information between pcs using n-telephone lines
KR20000044360A (en) Method for managing subscriber port state
JPH04288795A (en) Telephone exchange system
JP3239968B2 (en) Realization method of resource sharing operation between multiple calls
JPH04302246A (en) Automatic private branch exchange
JP3280676B2 (en) Retrieval method of call processing task by providing purpose
JPH0468457A (en) Manager device for network control system
JPH02280437A (en) Communication processor
JPH03135128A (en) Exchange
JPS60253397A (en) Call processing task control system
JPH0512148A (en) Display method for network connection destination computer name
JPH11298626A (en) Terminal connecting method for online system
Suzuki et al. Implementation and evaluation of X. 25 and X. 32 on personal computers
JPH08235027A (en) Notification system for program execution state
KR20010026634A (en) Subscriber Call Service Keeping Method in Overloading Processor of Mobile Communication System
JPH0567012A (en) Computer system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080828

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080828

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090828

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090828

Year of fee payment: 11