JPH10308787A - Communication protocol processing method and processor - Google Patents

Communication protocol processing method and processor

Info

Publication number
JPH10308787A
JPH10308787A JP9115400A JP11540097A JPH10308787A JP H10308787 A JPH10308787 A JP H10308787A JP 9115400 A JP9115400 A JP 9115400A JP 11540097 A JP11540097 A JP 11540097A JP H10308787 A JPH10308787 A JP H10308787A
Authority
JP
Japan
Prior art keywords
processing
protocol
state transition
state
associative memory
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
JP9115400A
Other languages
Japanese (ja)
Inventor
Takao Matsuda
隆男 松田
Mineki Ichimori
峰樹 市森
Kazuhiro Matsuda
和浩 松田
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP9115400A priority Critical patent/JPH10308787A/en
Publication of JPH10308787A publication Critical patent/JPH10308787A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a processing method and a processor which fast execute similar processing without reading a parameter from other memory inside and outside a device at the time of performing processing that accompanies state transition when a communication protocol is processed. SOLUTION: This device retrieves associative memory 12 that holds a current state number 61 of a protocol, a state transition condition 62, the next state 63 of the protocol, a start instruction 64 of processing that accompanies a state transition and a parameter 65 which is needed for processing from the number 61 of the protocol and the condition 62. When the memory 12 is hit, the number 63, the instruction 64 and at the same time, the parameter 65 are read from the memory 12, and an executing circuit performs necessary operations based on it and repeats the operations.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データ通信を行う
システムにおいて、通信プロトコルを処理する方法及び
処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for processing a communication protocol in a data communication system.

【0002】従来の通信プロトコル処理装置は、通信プ
ロトコル処理の内容を格納したメモリーとマイクロプロ
セッサとで構成されている。このような構成におけるプ
ロトコルの状態遷移の制御は、複数の分岐先が存在する
場合はそれらを列挙し、プロトコルの現状態番号及び状
態遷移条件に合致するものを順次照合して次状態を得る
ようになっている。また、状態によっては必ずしも全て
の状態遷移条件を照合する必要がないため、必要な情報
のみを抽出した後に照合し次状態を得る。このような従
来の処理装置では、状態遷移から必要な情報のみを抽出
する処理及び現状態番号と状態遷移条件とを順次照合す
る処理のために、プロトコル処理能力を大幅に改善する
ことが困難である。
[0002] A conventional communication protocol processing device is composed of a memory storing the contents of communication protocol processing and a microprocessor. In the state transition control of the protocol in such a configuration, when there are a plurality of branch destinations, they are enumerated, and those that match the current state number of the protocol and the state transition condition are sequentially collated to obtain the next state. It has become. Also, depending on the state, it is not always necessary to collate all state transition conditions, so that only necessary information is extracted and collated to obtain the next state. In such a conventional processing device, it is difficult to greatly improve the protocol processing capability because of the process of extracting only necessary information from the state transition and the process of sequentially comparing the current state number with the state transition condition. is there.

【0003】この問題を解決し、通信プロトコル処理に
おける状態遷移の制御を高速化し、処理能力を向上させ
ることができる方法及び装置が、本発明の発明者による
特許出願である特願平7−36920号「通信プロトコ
ル処理方法及び処理装置」(特開平8−237327
号)によって提案されている。
A method and an apparatus capable of solving this problem, speeding up the state transition control in the communication protocol processing, and improving the processing capacity are disclosed in Japanese Patent Application No. Hei 7-36920, filed by the inventor of the present invention. No. "Communication protocol processing method and processing apparatus" (Japanese Patent Laid-Open No. 8-237327)
No.).

【0004】この出願で提案されている装置において
は、プロトコルの現状態番号、複数の状態遷移条件、プ
ロトコルの次状態番号及び状態遷移に伴う処理の起動指
示を保持した連想メモリーを、プロトコルの現状態番号
と複数の状態遷移条件とから検索し、連想メモリーがヒ
ットした場合は、連想メモリーからプロトコルの次状態
番号と状態遷移に伴う処理の起動指示とを読出し、これ
に基づいて実行回路が必要な演算を行い、これらの動作
を必要な回数繰り返す。
In the device proposed in this application, an associative memory holding a current state number of a protocol, a plurality of state transition conditions, a next state number of the protocol, and an instruction to start a process associated with a state transition is stored in an associative memory. Searching from the state number and multiple state transition conditions, if the associative memory hits, reads out the next state number of the protocol and the instruction to start processing associated with the state transition from the associative memory, and an execution circuit is required based on this. And these operations are repeated as many times as necessary.

【0005】上記特願平7−36920号の発明では、
従って、連想メモリーからプロトコルの次状態番号及び
状態遷移に伴う処理の起動指示を読出す。その結果、起
動指示により実行回路内で状態遷移に伴う処理が実行さ
れる。
In the invention of Japanese Patent Application No. 7-36920,
Therefore, the next state number of the protocol and the start instruction of the process accompanying the state transition are read from the associative memory. As a result, the process accompanying the state transition is executed in the execution circuit by the start instruction.

【0006】[0006]

【発明が解決しようとする課題】上述の方法において
は、状態遷移に伴う処理を行う際に、必要なパラメータ
を装置内又は外の別メモリーから読出す必要がある。そ
のメモリーから読出す時間が大きいという問題がある。
In the above-mentioned method, it is necessary to read out necessary parameters from another memory inside or outside the apparatus when performing a process accompanying a state transition. There is a problem that the time for reading from the memory is long.

【0007】本発明の目的は、状態遷移に伴う処理を行
う際に、パラメータを装置内外の別のメモリーから読出
すことなく、同様の処理を高速で遂行する処理方法及び
処理装置を提供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a processing method and a processing apparatus for performing the same processing at a high speed without reading parameters from another memory inside or outside the apparatus when performing processing accompanying a state transition. It is in.

【0008】[0008]

【課題を解決するための手段】本発明の通信プロトコル
処理方法は、この目的を達成するため、プロトコルの現
状態番号、状態遷移条件、プロトコルの次状態、状態遷
移に伴う処理の起動指示、及び、処理に必要なパラメー
タを保持した連想メモリーを、プロトコルの現状態番号
と状態遷移条件とから検索し、連想メモリーがヒットし
た場合は、連想メモリーからプロトコルの次状態番号及
び状態遷移に伴う処理の起動指示と同時に、処理に必要
なパラメータを読出し、これに基づいて実行回路が必要
な演算を行い、これらの動作を繰り返す。
According to the communication protocol processing method of the present invention, in order to achieve this object, a current state number of a protocol, a state transition condition, a next state of the protocol, a start instruction of a process accompanying a state transition, and The associative memory holding the parameters required for processing is searched from the current state number of the protocol and the state transition condition, and if the associative memory is hit, the next state number of the protocol and the processing associated with the state transition are retrieved from the associative memory. At the same time as the start instruction, parameters necessary for processing are read out, and the execution circuit performs necessary calculations based on the readout parameters, and repeats these operations.

【0009】このような本発明によれば、状態遷移に伴
う処理を行う際に装置内外の別メモリーから処理に必要
なパラメータを読出す必要がなくなるので、メモリー読
出しに要する時間を削減することができ、処理を高速化
することができる。
According to the present invention, it is not necessary to read parameters necessary for processing from another memory inside or outside the apparatus when performing processing accompanying a state transition, so that the time required for reading memory can be reduced. And speed up the processing.

【0010】また、本発明の通信プロトコル処理装置
は、プロトコルの現状態番号、状態遷移条件、プロトコ
ルの次状態、状態遷移に伴う処理の起動指示、及び、処
理に必要なパラメータを保持した連想メモリーと、プロ
トコルの現状態番号と状態遷移条件とから連想メモリー
を検索し、プロトコルの次状態番号、状態遷移に伴う処
理の起動指示、及び、処理に必要なパラメータを読出す
状態遷移制御回路と、論理ゲートで構成され、状態遷移
に伴って読出される起動指示によって演算又はメモリー
の読出し/書込みを行う実行回路とを具備することを特
徴とする。
Further, the communication protocol processing device of the present invention is an associative memory holding a current state number of a protocol, a state transition condition, a next state of the protocol, an instruction to start processing associated with the state transition, and parameters required for the processing. A state transition control circuit that retrieves the associative memory from the current state number of the protocol and the state transition condition, and instructs the next state number of the protocol, an instruction to start processing accompanying the state transition, and parameters necessary for the processing, An execution circuit configured by a logic gate and performing an operation or a memory read / write operation in accordance with a start instruction read in accordance with a state transition.

【0011】[0011]

【発明の実施の形態】次に図面を用いて本発明の実施例
を説明する。図1は、本発明を実施するための通信プロ
トコル処理装置の構成例を示す図である。通信プロトコ
ル処理装置1は、現状態番号、状態遷移条件、次状態番
号、状態遷移に伴う処理の起動指示及び処理に必要なパ
ラメータを格納した連想メモリー12、連想メモリー12の
検索及び連想メモリー12から読出しを行う状態遷移制御
回路13、及び、処理の起動指示により起動される実行回
路14を具える。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a diagram showing a configuration example of a communication protocol processing device for implementing the present invention. The communication protocol processing device 1 stores the current state number, the state transition condition, the next state number, the start instruction of the processing accompanying the state transition, and the associative memory 12 storing the parameters necessary for the processing, and searches and associates the associative memory 12 from the associative memory 12. The system includes a state transition control circuit 13 for performing reading, and an execution circuit 14 that is activated by a process activation instruction.

【0012】連想メモリー12と状態遷移制御回路13と
は、状態番号の授受を行うための信号線15、状態遷移条
件を連想メモリー12に与える信号線16及び検索/読出し
/書込み/検索範囲を制御する信号線17、並びに、検索
の結果該当するメモリー内容が連想メモリー12に格納さ
れていることを示すヒット信号線18、連想メモリー12の
検索結果である処理の起動指示を状態遷移制御回路に与
える信号線23及び実行回路14での処理に必要なパラメー
タを送受するための信号線24により結合されている。
The associative memory 12 and the state transition control circuit 13 control a signal line 15 for transmitting and receiving a state number, a signal line 16 for giving a state transition condition to the associative memory 12, and a search / read / write / search range. To the state transition control circuit, and a hit signal line 18 indicating that the content of the relevant memory is stored in the associative memory 12 as a result of the search, and an instruction to start processing as a search result of the associative memory 12. They are connected by a signal line 23 and a signal line 24 for transmitting and receiving parameters required for processing in the execution circuit 14.

【0013】状態遷移制御回路13と実行回路14とは、連
想メモリー12の検索結果である処理の起動指示を実行回
路14に与えるための信号線19、実行回路14が生成した状
態遷移条件を状態遷移制御回路13に与えるための信号線
20、及び、実行回路14での処理に必要なパラメータを送
受するための信号線25により結合されている。
The state transition control circuit 13 and the execution circuit 14 are connected to a signal line 19 for giving a start instruction of a process, which is a search result of the associative memory 12, to the execution circuit 14, and the state transition condition generated by the execution circuit 14 Signal line to be provided to the transition control circuit 13
20 and a signal line 25 for transmitting and receiving parameters required for processing in the execution circuit 14.

【0014】状態遷移制御回路13は、現状態番号を格納
するレジスタ31、状態遷移条件を格納するレジスタ32、
及び、連想メモリー12に対して検索/読出し/書込み/
検索範囲を制御する論理回路41を具える。実行回路14
は、様々な演算又はメモリーの読出し/書込み等の処理
を行う複数の論理回路42を具える。
The state transition control circuit 13 includes a register 31 for storing a current state number, a register 32 for storing a state transition condition,
And search / read / write /
A logic circuit 41 for controlling a search range is provided. Execution circuit 14
Includes a plurality of logic circuits 42 for performing various operations or processing such as reading / writing of a memory.

【0015】状態遷移制御回路13と外部回路2とは、外
部回路からの状態遷移制御条件を受入れるための信号線
21により結合されている。実行回路14と外部回路2と
は、実行回路14での実行結果を外部回路2に与えるため
の信号線22により結合されている。
The state transition control circuit 13 and the external circuit 2 are connected to a signal line for receiving a state transition control condition from the external circuit.
Linked by 21. The execution circuit 14 and the external circuit 2 are connected by a signal line 22 for giving the execution result of the execution circuit 14 to the external circuit 2.

【0016】図2は、連想メモリー12の内容を説明する
図である。この連想メモリー12には、通信プロトコルに
応じて現状態番号61、状態遷移条件62、次状態番号63、
状態遷移に伴う処理の起動指示64及び処理に必要なパラ
メータ65の組合せが複数行格納される。図2では、現状
態番号61及び次状態番号63としてS1 、S2 、S3 、状
態遷移条件62としてCa 、Cb 、Cc の組、状態遷移に
伴う処理の起動指示64として*1 、*2 、*3 から*n
まで、処理に必要なパラメータとしてP1 、P2 、P3
からPn までの組が、それぞれ必要な組合せで格納され
ている。
FIG. 2 is a diagram for explaining the contents of the associative memory 12. The associative memory 12 has a current state number 61, a state transition condition 62, a next state number 63,
A plurality of rows of a combination of a start instruction 64 for a process accompanying a state transition and a parameter 65 required for the process are stored. In FIG. 2, S1, S2, S3 are set as the current state number 61 and the next state number 63, a set of Ca, Cb, Cc is set as the state transition condition 62, and * 1, * 2, * are set as the start instruction 64 of the process accompanying the state transition. 3 to * n
Up to P1, P2, P3
To Pn are stored in necessary combinations.

【0017】連想メモリー12の1行目の記述は、現状態
番号がS1 であり、状態遷移条件がCa である場合に、
処理*1 、*2 、*3 を起動して状態S2 に遷移するこ
とを表している。
The description on the first line of the associative memory 12 indicates that when the current state number is S1 and the state transition condition is Ca,
This means that the processes * 1, * 2, * 3 are activated and the state transits to the state S2.

【0018】図3は、図1及び図2に示された装置構成
の場合における通信プロトコル処理の例を説明するため
のフローチャートを示す。ステップ101 及びステップ10
2 は連想メモリー及び状態遷移制御回路の初期設定を行
うステップである。現状態番号と状態遷移条件とを検索
範囲に設定する(ステップ103 )。次に、状態遷移条件
を取込み、レジスタ32に書込む(ステップ104 )。
FIG. 3 is a flow chart for explaining an example of the communication protocol processing in the case of the device configuration shown in FIGS. Step 101 and Step 10
Step 2 is a step for initializing the associative memory and the state transition control circuit. The current state number and the state transition condition are set in the search range (step 103). Next, the state transition condition is fetched and written into the register 32 (step 104).

【0019】レジスタ31及び32の内容による連想メモリ
ーの検索(ステップ105 )の結果がヒットした(該当項
目が連想メモリー中にある)場合には、連想メモリーか
ら状態遷移に伴う処理の起動指示及び処理に必要なパラ
メータを読出し、実行回路14の起動を行う(ステップ10
6 )。実行回路内の指示を受けた論理回路で処理に必要
なパラメータを用いて処理が行われる(ステップ107
)。例えば、状態遷移に伴う処理の起動指示として*1
が読出されると、実行回路が起動され、実行回路内の
論理回路*1 で処理が行われる。処理の完了が通知され
る(ステップ108 )と、ステップ103 からの処理を繰り
返す。
If the result of the search of the associative memory based on the contents of the registers 31 and 32 (step 105) results in a hit (the corresponding item is in the associative memory), the start instruction and the processing of the state transition from the associative memory are performed. Are read out and the execution circuit 14 is started (step 10).
6). Processing is performed using parameters necessary for processing in the logic circuit that has received the instruction in the execution circuit (step 107).
). For example, * 1 as an instruction to start a process accompanying a state transition
Is read out, the execution circuit is activated, and the processing is performed by the logic circuit * 1 in the execution circuit. When the completion of the processing is notified (step 108), the processing from step 103 is repeated.

【0020】連想メモリーの検索(ステップ105 )の結
果がミスヒットした(該当項目が連想メモリー中にな
い)場合には、ミスヒット処理を行い(ステップ109
)、ステップ103 からの処理を繰り返す。
If the result of the search of the associative memory (step 105) is a mishit (the relevant item is not in the associative memory), a mishit process is performed (step 109).
), The processing from step 103 is repeated.

【0021】ここで、図3のステップ106 の処理におい
て、連想メモリーから、次状態番号及び状態遷移に伴う
処理の起動指示以外に、処理に必要なパラメータを読出
すことができる。
Here, in the process of step 106 in FIG. 3, parameters necessary for the process can be read from the associative memory in addition to the next state number and the instruction to start the process accompanying the state transition.

【0022】[0022]

【発明の効果】以上、詳細に説明したように、本発明に
よれば、状態遷移に伴う処理を行う際に必要なパラメー
タを次状態番号及び処理の起動指示と同時に連想メモリ
ーから読出すことができるので、従来状態遷移に伴う処
理を行う時に必要とされていた別メモリーからパラメー
タを読出すための時間を削減することができる。
As described above in detail, according to the present invention, it is possible to read out the parameters necessary for performing the processing accompanying the state transition from the associative memory simultaneously with the next state number and the instruction to start the processing. Therefore, it is possible to reduce the time required for reading parameters from another memory, which has been required when performing processing associated with the state transition.

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

【図1】本発明を実施するための通信プロトコル処理装
置の構成例を示す図である。
FIG. 1 is a diagram showing a configuration example of a communication protocol processing device for implementing the present invention.

【図2】連想メモリーの内容を説明する図である。FIG. 2 is a diagram illustrating the contents of an associative memory.

【図3】図1及び図2に示された装置構成の場合におけ
る通信プロトコル処理の例を説明するためのフローチャ
ートである。
FIG. 3 is a flowchart for explaining an example of a communication protocol process in the case of the device configuration shown in FIGS. 1 and 2;

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

1 通信プロトコル処理装置 2 外部回路 12 連想メモリー 13 状態遷移制御回路 14 実行回路 15、16、17、18、19、20、21、22、2
3、24、25 信号線 31、32、33 レジスタ 41、42 論理回路 61 現状態番号 62 状態遷移条件 63 次状態番号 64 起動指示 65 処理に必要なパラメータ
DESCRIPTION OF SYMBOLS 1 Communication protocol processing apparatus 2 External circuit 12 CAM 13 State transition control circuit 14 Execution circuit 15, 16, 17, 18, 19, 20, 21, 22, 2
3, 24, 25 Signal lines 31, 32, 33 Registers 41, 42 Logic circuit 61 Current state number 62 State transition condition 63 Next state number 64 Start instruction 65 Parameters required for processing

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 プロトコルの現状態番号、状態遷移条
件、プロトコルの次状態、状態遷移に伴う処理の起動指
示、及び、処理に必要なパラメータを保持した連想メモ
リーを、プロトコルの現状態番号と状態遷移条件とから
検索し、連想メモリーがヒットした場合は、連想メモリ
ーからプロトコルの次状態番号及び状態遷移に伴う処理
の起動指示と同時に、処理に必要なパラメータを読出
し、これに基づいて実行回路が必要な演算を行い、これ
らの動作を繰り返すことを特徴とする通信プロトコル処
理方法。
1. An associative memory holding a current state number of a protocol, a state transition condition, a next state of the protocol, a process start instruction accompanying a state transition, and parameters necessary for the processing are stored in a current state number and a state of the protocol. When the associative memory is hit from the transition condition, the next state number of the protocol and the instruction to start the process associated with the state transition are read from the associative memory, and at the same time, the parameters necessary for the process are read out. A communication protocol processing method which performs necessary operations and repeats these operations.
【請求項2】 プロトコルの現状態番号、状態遷移条
件、プロトコルの次状態、状態遷移に伴う処理の起動指
示、及び、処理に必要なパラメータを保持した連想メモ
リーと、プロトコルの現状態番号と状態遷移条件とから
連想メモリーを検索し、プロトコルの次状態番号、状態
遷移に伴う処理の起動指示、及び、処理に必要なパラメ
ータを読出す状態遷移制御回路と、論理ゲートで構成さ
れ、状態遷移に伴って読出される起動指示によって演算
又はメモリーの読出し/書込みを行う実行回路とを具備
することを特徴とする通信プロトコル処理装置。
2. An associative memory holding a current state number of the protocol, a state transition condition, a next state of the protocol, an instruction to start processing associated with the state transition, and parameters required for the processing, and a current state number and state of the protocol. It consists of a state transition control circuit that retrieves the associative memory from the transition conditions and reads the next state number of the protocol, the instruction to start the processing accompanying the state transition, and the parameters required for the processing, and a logic gate. A communication protocol processing device comprising: an execution circuit for performing a calculation or a memory read / write operation in accordance with a start instruction read in conjunction therewith.
JP9115400A 1997-05-06 1997-05-06 Communication protocol processing method and processor Pending JPH10308787A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9115400A JPH10308787A (en) 1997-05-06 1997-05-06 Communication protocol processing method and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9115400A JPH10308787A (en) 1997-05-06 1997-05-06 Communication protocol processing method and processor

Publications (1)

Publication Number Publication Date
JPH10308787A true JPH10308787A (en) 1998-11-17

Family

ID=14661635

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9115400A Pending JPH10308787A (en) 1997-05-06 1997-05-06 Communication protocol processing method and processor

Country Status (1)

Country Link
JP (1) JPH10308787A (en)

Similar Documents

Publication Publication Date Title
TWI465945B (en) Methods and devices for reducing power consumption in a pattern recognition processor
JP2003509733A5 (en)
JPH0644135A (en) Information processor
US5987564A (en) Associative memory device
US7111127B2 (en) System for supporting unlimited consecutive data stores into a cache memory
JPH10308787A (en) Communication protocol processing method and processor
US20010007559A1 (en) Interleaved processing system for processing frames within a network router
US5819081A (en) Method of executing a branch instruction of jumping to a subroutine in a pipeline control system
JPH10145453A (en) Method and device for processing communication protocol
JPH10145448A (en) Method and device for processing communication protocol
JPS63314644A (en) Data processor
JP3256442B2 (en) Data transfer control circuit
JP2529429B2 (en) Programmable controller
JP3230944B2 (en) Communication protocol processing method and processing device
JP2783865B2 (en) Data processing device
JPS62254237A (en) Inter-printer type branch instruction executing system
JPH04225429A (en) Data processor
JP2003091454A (en) Associative memory device
JP2806690B2 (en) Microprocessor
JPH04199240A (en) Cache system
JPS6337457A (en) Inter-processor data transfer system
JPS6232507B2 (en)
JPH11185482A (en) Associative memory retrieval circuit
JPH11120119A (en) Information transfer device having arithmetic function
JPH09305476A (en) Data processor