JPH0563756A - Communication protocol controller - Google Patents

Communication protocol controller

Info

Publication number
JPH0563756A
JPH0563756A JP3246451A JP24645191A JPH0563756A JP H0563756 A JPH0563756 A JP H0563756A JP 3246451 A JP3246451 A JP 3246451A JP 24645191 A JP24645191 A JP 24645191A JP H0563756 A JPH0563756 A JP H0563756A
Authority
JP
Japan
Prior art keywords
check code
error check
data
header
pdu
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
JP3246451A
Other languages
Japanese (ja)
Inventor
Katsuhiko Yoneda
勝彦 米田
Norihiko Sugimoto
則彦 杉本
Kazuhisa Inada
和久 稲田
Hisao Ogawa
尚雄 小川
Tatsuya Yokoyama
達也 横山
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
Original Assignee
Hitachi 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 filed Critical Hitachi Ltd
Priority to JP3246451A priority Critical patent/JPH0563756A/en
Publication of JPH0563756A publication Critical patent/JPH0563756A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To process generation and check of an error check code at a high speed in a header added at data transfer in a data communication system. CONSTITUTION:The controller is provided with an error check code generating circuit check circuit 4, and when data are transferred from a terminal equipment 8 to a memory 3 via a terminal interface 1 and a local bus 6 at the transmission processing, the error check code is generated in a header in parallel and the data are sent to a communication line 11. Moreover, when a PDU(protocol data unit) is transferred from the communication line 11 via a communication control access control section 5 and the local bus 6 to the memory 3, an error check code in the header is checked in parallel simultaneously as the transfer of the PDU. Thus, the error check code is generated and checked at a high speed in the transmission reception of the PDU and about 20% of the transmission processing time and the reception processing time is saved.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データ通信システムに
おける通信プロトコル制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication protocol control device in a data communication system.

【0002】[0002]

【従来の技術】複数の端末機器間でデータ通信を行なう
際には、データの誤りチェックが不可欠である。そこ
で、従来から、誤りチェックコードを含むヘッダ部とデ
ータ部から構成されるプロトコルデータユニットを用い
てデータ通信を行なう方式のシステムが知られており、
その例を図2に示す。
2. Description of the Related Art When performing data communication between a plurality of terminal devices, data error checking is indispensable. Therefore, conventionally, a system of a method of performing data communication using a protocol data unit composed of a header section including an error check code and a data section is known,
An example thereof is shown in FIG.

【0003】この図2のデータ通信システムは、複数の
通信端末10と通信回線11により構成されており、通
信端末10には端末機器8及び通信プロトコル制御装置
7が設けられている。図3は、このデータ通信システム
において、通信回線11により伝送されるプロトコルデ
ータユニット(以下、PDUと略す)12を示したもの
で、図示のように、このPDU12は、それの先頭を表
わす開始デリミタ、宛先アドレス、送信元アドレス、そ
れに誤りチェックコードなどのプロトコル制御情報を含
むヘッダと、データ及びPDU12の後尾を示す終了デ
リミタとで構成され、開始デリミタを先頭として、図2
における通信回線11上を流れ、各端末機器8間でのデ
ータ伝送が行なわれるようになっている。
The data communication system shown in FIG. 2 comprises a plurality of communication terminals 10 and a communication line 11, and the communication terminals 10 are provided with a terminal device 8 and a communication protocol control device 7. FIG. 3 shows a protocol data unit (hereinafter abbreviated as PDU) 12 transmitted by a communication line 11 in this data communication system. As shown in the figure, this PDU 12 is a start delimiter indicating the beginning of the protocol delimiter. , A destination address, a source address, and a header including protocol control information such as an error check code, and an end delimiter indicating the end of the data and the PDU 12, with the start delimiter at the beginning.
The data is transmitted between the terminal devices 8 through the communication line 11 in FIG.

【0004】ところで、このようなデータ通信システム
における通信プロトコル制御装置7としては、従来から
図4に示すものが使用されていた。この図4において、
1は端末インターフェース、2はプロセッサ2、3はメ
モリ、5は通信回線アクセス制御部、それに6はローカ
ルバスである。
By the way, as the communication protocol control device 7 in such a data communication system, the one shown in FIG. 4 has been conventionally used. In this FIG.
Reference numeral 1 is a terminal interface, 2 is a processor 2, 3 is a memory, 5 is a communication line access control unit, and 6 is a local bus.

【0005】次に、この従来例の動作について説明す
る。送信処理は、図5のフローチャートに従って実行さ
れる。まず、メモリ転送処理13で、端末機器8から送
出されたデータが端末インタフェース1とローカルバス
6を経由してメモリ3へ転送される。その後、ヘッダ生
成処理14で、プロセッサ2により誤りチェックコード
を除くヘッダの生成を行ない、メモリ3内のデータに付
加する。そして誤りチェックコード生成処理15で、プ
ロセッサ2において誤りチェックコードを生成し、メモ
リ3内のヘッダ内に書込む。その後、送信準備処理16
と通信回線送出処理17により、メモリ3内のデータ及
びヘッダを、通信回線アクセス制御部5を介して通信回
線11へ送出するのである。このとき、通信回線11へ
PDUを送出する際に、通信回線アクセス制御部5で開
始デリミタ及び終了デリミタを付加するのである。
Next, the operation of this conventional example will be described. The transmission process is executed according to the flowchart of FIG. First, in the memory transfer process 13, the data sent from the terminal device 8 is transferred to the memory 3 via the terminal interface 1 and the local bus 6. Then, in the header generation processing 14, the processor 2 generates a header excluding the error check code and adds it to the data in the memory 3. Then, in the error check code generation processing 15, the processor 2 generates an error check code and writes it in the header in the memory 3. Then, the transmission preparation process 16
By the communication line sending processing 17, the data and the header in the memory 3 are sent to the communication line 11 via the communication line access control unit 5. At this time, when transmitting the PDU to the communication line 11, the communication line access control unit 5 adds a start delimiter and an end delimiter.

【0006】次に、受信処理は、図6のフローチャート
に従って実行される。まず、通信回線受信処理18及び
メモリ転送処理19では、通信回線11から受信したP
DUが通信回線アクセス制御部5を通り、メモリ3へ転
送される。この通信回線アクセス制御部5を通る際に、
開始デリミタ及び終了デリミタは取り除かれる。その
後、誤りチェックコード検査処理20で、プロセッサ2
により誤りチェックコードの検査を行い、ヘッダ解析処
理21でヘッダの解析及び除去を行った後、ローカルバ
ス6、端末インタフェース1を経由して、端末機器8へ
転送されるのである。
Next, the reception process is executed according to the flowchart of FIG. First, in the communication line receiving process 18 and the memory transfer process 19, the P received from the communication line 11 is received.
The DU is transferred to the memory 3 through the communication line access control unit 5. When passing through this communication line access control unit 5,
The starting and ending delimiters are removed. After that, in the error check code checking process 20, the processor 2
The error check code is inspected by the method, the header is analyzed and removed in the header analysis process 21, and then transferred to the terminal device 8 via the local bus 6 and the terminal interface 1.

【0007】ところで、このようなデータ伝送システム
では、上記したPDUのヘッダの生成及び解析に要する
時間の短縮が、データ通信における伝送効率の向上に大
きく寄与するため、従来からその方策が考えられてきて
おり、このため、例えば特開昭63−308444号公
報では、ヘッダ内のプロトコル制御情報を予めメモリ等
に登録し、送信等の要求が現われた際には、その登録さ
れたプロトコル制御情報を参照し、参照したプロトコル
制御情報を直接データに付加することによってヘッダを
生成し、ヘッダ生成時間を短縮する方式について提案が
されていた。
By the way, in such a data transmission system, the reduction of the time required for the generation and analysis of the header of the PDU described above greatly contributes to the improvement of the transmission efficiency in the data communication. Therefore, for example, in JP-A-63-308444, the protocol control information in the header is registered in advance in a memory or the like, and when a request for transmission or the like appears, the registered protocol control information is stored. A method has been proposed in which a header is generated by referring to and directly adding the referred protocol control information to the data to shorten the header generation time.

【0008】なお、その他、この種の装置として関連す
るものには、特開昭60−264143号、特開昭61
−64447号、特開昭62−105554号、それに
特開平2−190064号の各公報の記載を挙げること
ができる。
Other related devices of this type are disclosed in JP-A-60-264143 and JP-A-61.
-64447, JP-A-62-105554, and JP-A-2-190064 can be mentioned.

【0009】[0009]

【発明が解決しようとする課題】上記従来技術は、例え
ば送信元アドレスのように、パターンの固定化が比較的
容易なプロトコル制御情報への対応は可能であるが、特
にヘッダ及びデータのデータパターンより生成する誤り
チェックコードのように、パターンの固定化が困難なプ
ロトコル制御情報への対応について配慮がされておら
ず、このため、従来技術では、例えば、送信の都度、プ
ロセッサ2によりプログラムで誤りチェックコードを生
成する必要があり、これに多大の処理時間が掛って伝送
効率の低下を招くという問題があった。
The above-mentioned conventional technique can deal with protocol control information such as a source address whose pattern is relatively easy to fix, but especially data patterns of header and data. No consideration is given to handling protocol control information in which it is difficult to fix a pattern, such as an error check code generated more. Therefore, in the conventional technique, for example, an error occurs in the program by the processor 2 each time transmission is performed. It is necessary to generate a check code, which takes a lot of processing time and causes a decrease in transmission efficiency.

【0010】上記したように、データ通信においては、
データの信頼性保証の点から、誤りチェックコードの使
用は必要不可欠なものであり、その処理の高速化は大き
な課題となっている。
As described above, in data communication,
From the viewpoint of guaranteeing the reliability of data, the use of error check code is indispensable, and speeding up the processing is a major issue.

【0011】また、誤りチェックコードの処理に関して
は、パターンの固定化が困難であるという点の他に、も
う1点の問題が存在する。それは、ヘッダ及びデータを
対象とする誤りチェックコードが、PDUの先頭部であ
るヘッダ内に含まれているため、データを通信回線へ送
出しながら誤りチェックコードを生成し、ヘッダ内に付
加することが出来ない点である。つまり、誤りチェック
コードはデータの後尾でしか生成できないから、生成で
きた時点では、誤りチェックコードを付加すべきヘッダ
は、既に通信回線へ送出されていることになり、誤りチ
ェックコードのヘッダへの付加は不可能になってしまう
からである。
Regarding the processing of the error check code, there is another problem in addition to the difficulty in fixing the pattern. Since the error check code for the header and data is included in the header that is the beginning of the PDU, the error check code must be generated and added to the header while sending the data to the communication line. It is a point that can not be done. In other words, since the error check code can be generated only at the end of the data, the header to which the error check code should be added has already been sent to the communication line at the time when the error check code can be generated. This is because addition becomes impossible.

【0012】このため、従来技術では、通信回線へ送出
する前に、プロセッサ2により、メモリ3内のヘッダ及
びデータを対象として誤りチェックコードを生成し、ヘ
ッダ内に付加した後、通信回線へ送出する方式が用いら
れてきたため、伝送効率が低下しているのである。
Therefore, in the prior art, before sending to the communication line, the processor 2 generates an error check code for the header and data in the memory 3, adds the error check code in the header, and then sends it to the communication line. However, the transmission efficiency has been reduced because the method that has been used has been used.

【0013】本発明の目的は、誤りチェックコード処理
が充分に高速化され、伝送効率の低下を最小限に抑える
ことができる通信プロトコル制御装置の提供にある。
An object of the present invention is to provide a communication protocol control device capable of sufficiently speeding up error check code processing and suppressing a decrease in transmission efficiency to a minimum.

【0014】[0014]

【課題を解決するための手段】上記目的は、端末機器か
らデータ格納用メモリへデータを転送する処理、或いは
通信回線からPDUをメモリへ転送する処理と並行し
て、PDUのヘッダ内のプロトコル制御情報である誤り
チェックコードを生成及び検査する手段を設けることに
より達成される。
The above-mentioned object is to perform protocol control in a header of a PDU in parallel with a process of transferring data from a terminal device to a memory for storing data or a process of transferring a PDU to a memory from a communication line. This is achieved by providing means for generating and checking an error checking code which is information.

【0015】上記手段は、PDUの送信時には、端末機
器からデータ格納用メモリへデータが転送されてゆくの
と並行して、このとき端末機器からデータ格納用メモリ
へ転送すべきデータとプロセッサで生成されるヘッダと
により誤りチェックコードを生成し、通信回線への送出
時にヘッダ内に誤りチェックコードを挿入するように構
成され、また、受信時には通信回線から受信したPDU
がメモリに格納されて行くのと並行して、そのPDUの
ヘッダ内の誤りチェックコードをモニタし、検査するよ
うに構成されている。
In the above means, when the PDU is transmitted, the data is transferred from the terminal device to the data storage memory at the same time as the data is transferred from the terminal device to the data storage memory, and is generated by the processor. The error check code is generated by the header and the error check code is inserted in the header at the time of transmission to the communication line, and the PDU received from the communication line at the time of reception.
While being stored in memory, the error checking code in the header of the PDU is monitored and checked.

【0016】[0016]

【作用】上記手段は、前記構成により、PDUの送信或
いは受信が発生すると、PDUのヘッダ内のプロトコル
制御情報である誤りチェックコードの生成及び検査を、
端末機器からデータ格納用メモリへのデータ転送、或い
は通信回線からPDUをメモリへ転送するのと並行して
処理するように働く。従って、誤りチェックコードの生
成・検査に要する処理時間が短縮し、高速でのプロトコ
ル処理を可能とする。
With the above structure, when the transmission or reception of the PDU occurs, the above-mentioned means generates and checks the error check code which is the protocol control information in the header of the PDU.
It functions to transfer data from the terminal device to the data storage memory or transfer PDU from the communication line to the memory in parallel with processing. Therefore, the processing time required to generate and inspect the error check code is shortened, and high-speed protocol processing is possible.

【0017】[0017]

【実施例】以下、本発明による通信プロトコル制御装置
について、図示の実施例により詳細に説明する。図1
は、本発明の一実施例で、図において、4は誤りチェッ
クコード生成・検査回路で、これ以外の構成は図4の従
来技術と同じである。端末機器8はデータの生成、解釈
を行い、端末インタフェース1は端末機器8と通信プロ
トコル制御装置7との間のデータの入出力制御を行い、
プロセッサ2は端末機器8のコマンドやステータスの制
御及びヘッダの生成、解釈を行なう。メモリ3は送受信
データを格納し、通信回線アクセス制御部5はPDUの
通信回線との送受信を制御し、誤りチェックコード生成
・検査回路4は送受信データの誤りチェックコードを生
成或いは検査する働きをする。そして、ローカルバス6
はデータ及び制御信号の通り道である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The communication protocol control device according to the present invention will be described in detail below with reference to the illustrated embodiments. Figure 1
4 is an embodiment of the present invention. In the figure, 4 is an error check code generation / inspection circuit, and the rest of the configuration is the same as the prior art of FIG. The terminal device 8 generates and interprets data, the terminal interface 1 controls input / output of data between the terminal device 8 and the communication protocol control device 7,
The processor 2 controls commands and status of the terminal device 8 and generates and interprets a header. The memory 3 stores the transmission / reception data, the communication line access control unit 5 controls the transmission / reception of the PDU with the communication line, and the error check code generation / inspection circuit 4 functions to generate or inspect the error check code of the transmission / reception data. .. And local bus 6
Is the path for data and control signals.

【0018】次に、この図1の実施例の動作について、
送信時と受信時の動作に分けて説明する。まず、図7
は、本実施例におけるPDUの送信処理手順を示したも
ので、この図7において、メモリ転送処理13、ヘッダ
生成処理14、送信準備処理16、通信回線送出処理1
7は、一部表現は違うが、図5に示した、図4の従来技
術における送信処理手順と同じである。
Next, regarding the operation of the embodiment shown in FIG.
The operation during transmission and the operation during reception will be described separately. First, FIG.
7 shows a PDU transmission processing procedure in this embodiment. In FIG. 7, a memory transfer processing 13, a header generation processing 14, a transmission preparation processing 16, and a communication line transmission processing 1 are shown in FIG.
7 is the same as the transmission processing procedure in the conventional technique of FIG. 4 shown in FIG. 5, although the expression is partially different.

【0019】一方、処理22、23、24は、誤りチェ
ックコード生成・検査回路4によって、上記した処理の
うちの処理13、14、16と並行して実行されるもの
で、まず、処理22は、図1において、データが端末機
器8から端末インタフェース1、ローカルバス6を通
り、メモリ3へ転送される際に、つまり処理13が実行
されているときに、誤りチェックコード生成・検査回路
4において、ローカルバス6上のデータをモニタしなが
らデータの誤りチェックコードを生成する処理である。
On the other hand, the processes 22, 23 and 24 are executed by the error check code generation / inspection circuit 4 in parallel with the processes 13, 14 and 16 of the above processes. In FIG. 1, when the data is transferred from the terminal device 8 through the terminal interface 1 and the local bus 6 to the memory 3, that is, when the process 13 is executed, the error check code generation / check circuit 4 , A process of generating a data error check code while monitoring the data on the local bus 6.

【0020】次に、処理14で、プロセッサ2により誤
りチェックコードを除いたヘッダ部を生成し、ローカル
バス6を介しメモリ3内へ転送し、既に転送されている
データの前部に付加する処理が実行されるが、このと
き、同時に、処理23で、誤りチェックコード生成・検
査回路4により、ローカルバス6上のヘッダ情報をモニ
タし、生成済みのデータの誤りチェックコードにヘッダ
情報を加えていくことにより、ヘッダとデータを合わせ
た誤りチェックコードの生成を行なう。
Next, in process 14, the processor 2 generates a header part excluding the error check code, transfers it to the memory 3 via the local bus 6, and adds it to the front part of the already transferred data. At this time, at the same time, in process 23, the error check code generation / inspection circuit 4 monitors the header information on the local bus 6, and adds the header information to the error check code of the generated data. As a result, an error check code that combines the header and the data is generated.

【0021】その後、処理16で、メモリ3内に転送さ
れたヘッダとデータとを連ねたPDUを通信回線アクセ
ス制御部5へ転送する際に、誤りチェックコ−ド生成・
検査回路4にて生成した誤りチェックコードをヘッダ内
の指定された部分に挿入する処理24を実行する。
After that, in process 16, when the PDU in which the header and the data transferred in the memory 3 are transferred to the communication line access control unit 5, an error check code is generated.
A process 24 for inserting the error check code generated by the inspection circuit 4 into the designated portion in the header is executed.

【0022】図8は、図7で示した送信処理をタイムチ
ャートで示したもので、PDUの送信処理時間tを横軸
にして、従来技術による送信処理時間と本発明の実施例
による送信処理時間とを対比して示したものである。こ
こで送信処理時間とは、図1及び図4における端末機器
8から送出されたデータを通信プロトコル制御装置7内
で処理し、通信回線11上へ送出するまでの時間のこと
である。
FIG. 8 is a time chart showing the transmission processing shown in FIG. 7. The transmission processing time t of the PDU is plotted on the horizontal axis, and the transmission processing time according to the prior art and the transmission processing according to the embodiment of the present invention are shown. It is shown in contrast to time. Here, the transmission processing time is the time until the data sent from the terminal device 8 in FIGS. 1 and 4 is processed in the communication protocol control device 7 and sent to the communication line 11.

【0023】また、図8において、メモリ転送処理時間
26とは、図1における端末機器8から端末インタフェ
ース1とローカルバス6を介してメモリ3へデータが転
送されるのに要する時間、ヘッダ生成処理時間27と
は、プロセッサ2による誤りチェックコードを除いたヘ
ッダの生成時間、プロセッサでの誤りチェックコード生
成処理時間28とは、プロセッサ2によるヘッダ及びデ
ータの誤りチェックコードの生成時間、そして通信回線
送出処理時間29とは、メモリ3からローカルバス6と
通信回線アクセス制御部5を介して通信回線11へPD
Uを送信する時間をそれぞれ表わす。
In FIG. 8, the memory transfer processing time 26 is the time required for data to be transferred from the terminal device 8 in FIG. 1 to the memory 3 via the terminal interface 1 and the local bus 6, and the header generation processing. The time 27 is the header generation time by the processor 2 excluding the error check code, the error check code generation processing time 28 by the processor is the header and data error check code generation time by the processor 2, and the communication line transmission. The processing time 29 means PD from the memory 3 to the communication line 11 via the local bus 6 and the communication line access control unit 5.
Each represents the time to transmit U.

【0024】この図8から、本発明の実施例における送
信処理時間の方が、プロセッサ2による誤りチェックコ
ードの生成処理時間28の分だけ、従来技術の処理時間
よりも短縮されていることが判る。なお、図7で、処理
24で生成した誤りチェックコードは、ヘッダ内に挿入
する他に、メモリ3内のヘッダの誤りチェックコードエ
リアに書き込むこともできる。
From FIG. 8, it can be seen that the transmission processing time in the embodiment of the present invention is shortened by the error check code generation processing time 28 by the processor 2 as compared with the processing time of the prior art. .. In addition, in FIG. 7, the error check code generated in the process 24 can be written in the error check code area of the header in the memory 3 instead of being inserted in the header.

【0025】次に、図9は、本実施例におけるPDUの
受信処理手順を示したもので、この図9において、通信
回線受信処理18、メモリ転送処理19、ヘッダ解析処
理21は、一部表現は異なるが、図6に示した、図4の
従来技術における受信処理手順と同じである。
Next, FIG. 9 shows a PDU reception processing procedure in this embodiment. In FIG. 9, the communication line reception processing 18, the memory transfer processing 19, and the header analysis processing 21 are partially expressed. 4 is the same as the reception processing procedure in the related art of FIG. 4 shown in FIG.

【0026】誤りチェックコード検査処理25は、図1
に示す通信回線11より受信したPDUが通信回線アク
セス制御部5からローカルバス6を通り、メモリ3に格
納される処理18による処理と並行して、誤りチェック
コード生成・検査回路4により実行されるもので、ロー
カルバス6上のPDUをモニタし、誤りチェックコード
を生成し、その結果を検査する処理である。そして、こ
のように、誤りチェックコードの検査を、通信制御アク
セス部5からメモリ3へのデータ転送と同時に並行して
処理することにより、誤りチェックコードの検査時間を
短縮できる。
The error check code checking process 25 is shown in FIG.
The PDU received from the communication line 11 shown in FIG. 2 passes through the local line 6 from the communication line access control unit 5 and is executed by the error check code generation / inspection circuit 4 in parallel with the process 18 stored in the memory 3. This is a process of monitoring a PDU on the local bus 6, generating an error check code, and inspecting the result. By thus processing the error check code check in parallel with the data transfer from the communication control access unit 5 to the memory 3, the error check code check time can be shortened.

【0027】図10は、図9で示した受信処理動作をタ
イムチャートで示したもので、PDUの受信処理時間t
を横軸にして、従来技術の受信処理時間と本発明の実施
例による受信処理時間とを対比して示したものであり、
ここで受信処理時間とは、図1の通信回線11から受信
したPDUを通信プロトコル制御装置7内で処理し、端
末機器8へ転送するまでの時間のことである。
FIG. 10 is a time chart showing the reception processing operation shown in FIG. 9. The reception processing time t of the PDU is shown in FIG.
Is a horizontal axis, and shows the reception processing time of the prior art and the reception processing time according to the embodiment of the present invention in comparison.
Here, the reception processing time is the time until the PDU received from the communication line 11 in FIG. 1 is processed in the communication protocol control device 7 and transferred to the terminal device 8.

【0028】この図10において、通信回線及びメモリ
転送処理時間30とは、図1における通信回線11から
通信制御アクセス部5とローカルバス6を介してメモリ
3へPDUが転送されるまでの時間、プロセッサでの誤
りチェックコード検査処理時間31とは、プロセッサ2
によるヘッダ内誤りチェックコードの検査に要する時
間、そしてヘッダ解析処理時間32とは、プロセッサ2
によるヘッダの解析時間をそれぞれ表わす。
In FIG. 10, the communication line and memory transfer processing time 30 is the time until the PDU is transferred from the communication line 11 in FIG. 1 to the memory 3 through the communication control access unit 5 and the local bus 6. The error check code check processing time 31 in the processor means the processor 2
The time required for checking the error check code in the header by the header and the header analysis processing time 32 is the processor 2
Represents the parsing time of the header.

【0029】この図10から明らかなように、本発明の
実施例による受信処理時間の方が、プロセッサ2による
誤りチェックコードの検査処理時間31の分だけ、従来
技術の受信処理時間よりも短縮されていることが判る。
As is apparent from FIG. 10, the reception processing time according to the embodiment of the present invention is shortened by the inspection processing time 31 of the error check code by the processor 2 as compared with the reception processing time of the prior art. You can see that

【0030】次に、図1における誤りチェックコード生
成・検査回路4の詳細について説明する。図11は、誤
りチェックコード生成・検査回路4の一実施例で、入出
力インタフェース部33と、演算部34、結果格納レジ
スタ35、カウンタ部36、入出力制御線37、演算制
御線39、それにレジスタ制御線40で構成されてい
る。
Next, details of the error check code generating / checking circuit 4 in FIG. 1 will be described. FIG. 11 shows an embodiment of the error check code generating / checking circuit 4, which includes an input / output interface section 33, an arithmetic section 34, a result storage register 35, a counter section 36, an input / output control line 37, an arithmetic control line 39, and It is composed of a register control line 40.

【0031】入出力インタフェース部33はローカルバ
ス6上を転送されるデータの入出力を制御する働きを
し、演算部34は誤りチェックコードを算出する働きを
する。そして、結果格納レジスタ35は演算部34で算
出された結果を格納する働きをする。また、カウンタ部
36は誤りチェックコード生成・検査の開始、終了の指
令と、ローカルバス6上を転送されるデータの生成、検
査範囲をプロセッサ2の指示により制御する働きをし、
入出力制御線37は入出力インタフェースの制御を行な
い、演算制御線39は演算部の制御を行なう。そして、
レジスタ制御線40は結果格納レジスタの制御を行なう
ものである。
The input / output interface unit 33 functions to control the input / output of data transferred on the local bus 6, and the arithmetic unit 34 functions to calculate an error check code. The result storage register 35 functions to store the result calculated by the calculation unit 34. Further, the counter unit 36 has a function of instructing start and end of error check code generation / inspection, generation of data transferred on the local bus 6, and control of an inspection range by an instruction of the processor 2,
The input / output control line 37 controls the input / output interface, and the arithmetic control line 39 controls the arithmetic unit. And
The register control line 40 controls the result storage register.

【0032】次に、この図11に示した誤りチェックコ
ード生成・検査回路4の動作について説明する。まず、
データ送信処理時、入出力インタフェース部33は、ロ
ーカルバス6上を転送されるデータを演算部34へ取り
込む。一方、プロセッサ2はカウンタ部36へ生成開始
情報を与え、これにより、カウンタ部36は演算制御線
39を介して演算部34へ誤りチェックコードの生成を
指示する。
Next, the operation of the error check code generating / checking circuit 4 shown in FIG. 11 will be described. First,
At the time of data transmission processing, the input / output interface unit 33 fetches the data transferred on the local bus 6 into the arithmetic unit 34. On the other hand, the processor 2 gives the generation start information to the counter unit 36, whereby the counter unit 36 instructs the arithmetic unit 34 via the arithmetic control line 39 to generate an error check code.

【0033】演算部34では、演算単位毎にデータを加
算し、結果格納レジスタ35へ演算結果を格納して行
く。このとき、生成範囲は予めプロセッサ2からカウン
タ部36へ与えられ、その情報をもとにカウンタ部36
で生成範囲をカウントし、生成し終わればカウンタ部3
6がレジスタ制御線40を介して、それを結果格納レジ
スタ35に指示し、入出力インタフェース33を介し
て、格納された誤りチェックコードをローカルバス6上
に送り、このローカルバス6上を転送されるPDUのヘ
ッダ内の所定の箇所に挿入するのである。
The arithmetic unit 34 adds data for each arithmetic unit and stores the arithmetic result in the result storage register 35. At this time, the generation range is given in advance from the processor 2 to the counter unit 36, and based on the information, the counter unit 36
The generation range is counted with and the counter section 3 is generated when the generation is completed.
6 sends it to the result storage register 35 via the register control line 40, sends the stored error check code to the local bus 6 via the input / output interface 33, and is transferred on this local bus 6. The PDU is inserted at a predetermined position in the header of the PDU.

【0034】次に、データ受信処理時、図1における通
信回線アクセス制御部5からメモリ3へ受信データを転
送するとき、ローカルバス6上からPDUを入出力イン
タフェース33より演算部34へ取り込み、送信時と同
様にプロセッサ2からカウンタ部36へ検査範囲等の情
報を与え、カウンタ部36が演算制御線39を介して演
算部33を制御することにより誤りチェックコードの検
査を行なうのである。
Next, during the data receiving process, when the received data is transferred from the communication line access control unit 5 in FIG. 1 to the memory 3, the PDU is fetched from the input / output interface 33 to the arithmetic unit 34 and transmitted from the local bus 6. Similar to the time, the processor 2 supplies information such as the inspection range to the counter unit 36, and the counter unit 36 controls the arithmetic unit 33 via the arithmetic control line 39 to inspect the error check code.

【0035】第2の実施例として、PDUの送信及び受
信が重なって発生した場合、図11に示す誤りチェック
コード生成・検査回路4において、結果格納レジスタ3
5及びカウンタ部36を送信用と受信用の別々のレジス
タとして設け、ローカルバス6上を送信PDUのデータ
が転送されている場合には、該データをモニタし、入出
力インタフェース33を通して演算部34へ取り込み、
演算結果を送信用のレジスタに格納すると共に、受信の
場合には、ローカルバス6上の受信PDUのデータを、
送信と同様に演算部34に取り込み、演算結果を受信用
のレジスタに格納するようにする。
As a second embodiment, when transmission and reception of PDUs occur in an overlapping manner, the result storage register 3 in the error check code generation / inspection circuit 4 shown in FIG.
5 and the counter unit 36 are provided as separate registers for transmission and reception, and when data of the transmission PDU is transferred on the local bus 6, the data is monitored and the arithmetic unit 34 is supplied through the input / output interface 33. Take in,
The calculation result is stored in the register for transmission, and in the case of reception, the data of the reception PDU on the local bus 6 is stored.
Similar to the transmission, it is taken into the arithmetic unit 34 and the arithmetic result is stored in the reception register.

【0036】従って、この第2の実施例によれば、上記
した送信時と受信時の動作を交互に繰り返すことによ
り、送信PDUと受信PDUの誤りチェックコードの生
成・検査を行なうことができ、これにより、PDUの送
信と受信を並行して行うことが可能となり、図11の実
施例と同様の効果が得られる。
Therefore, according to the second embodiment, it is possible to generate and inspect the error check code of the transmission PDU and the reception PDU by alternately repeating the above-mentioned transmission and reception operations. As a result, it becomes possible to transmit and receive PDUs in parallel, and the same effect as the embodiment of FIG. 11 can be obtained.

【0037】また、第3の実施例として、図11示した
誤りチェックコード生成・検査回路4を送信用と受信用
に個別にもつようにしてもよい。この実施例の場合に
は、送信PDUの誤りチェックコード生成と受信PDU
の誤りチェックコード検査をそれぞれ個別に行うことに
より、PDUの送信及び受信を並行して行うことが可能
となり、やはり、図11の実施例と同様の効果が得られ
る。
As a third embodiment, the error check code generation / check circuit 4 shown in FIG. 11 may be separately provided for transmission and reception. In the case of this embodiment, error check code generation of the transmission PDU and reception PDU
By individually performing the error check code inspection of (1), it is possible to perform PDU transmission and reception in parallel, and again, the same effect as the embodiment of FIG. 11 can be obtained.

【0038】さらに、第4の実施例として、送信処理時
の手順で説明した図1における端末機器8からのデータ
転送後に行うヘッダの生成処理を、通信プロトコル制御
装置7内のプロセッサ2で行わずに、予め端末機器8側
で誤りチェックコードを除くヘッダ部を生成するように
しても良い。この実施例の場合、端末機器8からヘッダ
とデータ、すなわち、PDUを、端末インタフェース1
及びローカルバス6を介してメモリ3へ転送し、このと
き、誤りチェックコード生成・検査回路4によりローカ
ルバス6上のヘッダとデータをモニタし、データ転送と
並行してPDUの誤りチェックコードを一度に生成し、
メモリ3内のPDUを通信回線アクセス制御部5へ転送
するときに、ヘッダ内の指定された部分に誤りチェック
コードを挿入するようにする。
Further, as a fourth embodiment, the processing of generating the header, which is performed after the data transfer from the terminal device 8 in FIG. 1 described in the procedure of the transmission processing, is not performed by the processor 2 in the communication protocol control device 7. In addition, the terminal device 8 may previously generate the header portion excluding the error check code. In the case of this embodiment, the header and data, that is, the PDU, is sent from the terminal device 8 to the terminal interface 1
And to the memory 3 via the local bus 6. At this time, the error check code generation / inspection circuit 4 monitors the header and data on the local bus 6, and the error check code of the PDU is once transmitted in parallel with the data transfer. To generate
When the PDU in the memory 3 is transferred to the communication line access control unit 5, the error check code is inserted in the designated portion in the header.

【0039】この動作を図12により説明すると、図7
におけるデータのメモリ転送処理13に代えてPDUの
メモリ転送処理41が設けられ、ヘッダ生成処理14が
除かれ、データ部の誤りチェックコード生成処理22と
ヘッダを加えた誤りチェックコード生成処理23に代え
てPDUの誤りチェックコード生成処理42が設けられ
ることになり、送信準備処理16と通信回線送出処理1
7、それに誤りチェックコード挿入処理24については
そのままにしたものである。
This operation will be described with reference to FIG.
A memory transfer process 41 of PDU is provided in place of the memory transfer process 13 of data in FIG. 10, the header generation process 14 is removed, and an error check code generation process 22 of the data part and an error check code generation process 23 with a header are replaced. The error check code generation process 42 of the PDU is provided, and the transmission preparation process 16 and the communication line transmission process 1 are performed.
7, and the error check code insertion processing 24 is left as it is.

【0040】この図12の実施例による処理動作を、図
8の送信処理タイムチャートにより示すと、従来技術と
本発明の実施例において、全体の送信処理時間からプロ
セッサ2でのヘッダ生成処理時間27を除いたものに相
当し、本発明の実施例における送信処理時間の方が、従
来技術に比して、プロセッサ2による誤りチェックコー
ド生成処理時間28の分だけ、処理時間が短縮されてお
り、従って、この図12の実施例によっても、図7のフ
ローチャートに示した実施例と同様の効果が得られるこ
とが判る。
The processing operation according to the embodiment of FIG. 12 is shown by the transmission processing time chart of FIG. 8. In the prior art and the embodiment of the present invention, the header generation processing time 27 in the processor 2 is calculated from the entire transmission processing time. In comparison with the prior art, the transmission processing time in the embodiment of the present invention is shortened by the error check code generation processing time 28 by the processor 2, Therefore, it is understood that the same effect as that of the embodiment shown in the flowchart of FIG. 7 can be obtained also by the embodiment of FIG.

【0041】[0041]

【発明の効果】本発明によれば、データ通信システムで
の通信プロトコル制御装置において、転送されるPDU
の誤りチェックコードの生成・検査を高速に行うことが
でき、送信処理時間と受信処理時間を約20%も削減で
きるので、伝送効率を充分に向上させる効果がある。
According to the present invention, a PDU to be transferred in a communication protocol control device in a data communication system
The error check code can be generated / inspected at high speed, and the transmission processing time and the reception processing time can be reduced by about 20%, which has the effect of sufficiently improving the transmission efficiency.

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

【図1】本発明による通信プロトコル制御装置の一実施
例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a communication protocol control device according to the present invention.

【図2】本発明による通信プロトコル制御装置の適用対
象となるデータ通信システムの一例を示す構成図であ
る。
FIG. 2 is a configuration diagram showing an example of a data communication system to which a communication protocol control device according to the present invention is applied.

【図3】本発明による通信プロトコル制御装置の適用対
象となるデータ通信システムにおいて使用されるプロト
コルデータユニットの説明図である。
FIG. 3 is an explanatory diagram of a protocol data unit used in a data communication system to which the communication protocol control device according to the present invention is applied.

【図4】通信プロトコル制御装置の従来例を示すブロッ
ク図である。
FIG. 4 is a block diagram showing a conventional example of a communication protocol control device.

【図5】通信プロトコル制御装置の従来例におけるデー
タ送信動作を説明するためのフローチャートである。
FIG. 5 is a flowchart for explaining a data transmission operation in the conventional example of the communication protocol control device.

【図6】通信プロトコル制御装置の従来例におけるデー
タ受信動作を説明するためのフローチャートである。
FIG. 6 is a flowchart for explaining a data receiving operation in the conventional example of the communication protocol control device.

【図7】本発明の一実施例におけるデータ送信動作を説
明するためのフローチャートである。
FIG. 7 is a flowchart illustrating a data transmission operation according to an embodiment of the present invention.

【図8】本発明の一実施例におけるデータ送信動作を説
明するための特性図である。
FIG. 8 is a characteristic diagram for explaining a data transmission operation in the embodiment of the present invention.

【図9】本発明の一実施例におけるデータ受信動作を説
明するためのフローチャートである。
FIG. 9 is a flowchart illustrating a data receiving operation according to an embodiment of the present invention.

【図10】本発明の一実施例におけるデータ受信動作を
説明するための特性図である。
FIG. 10 is a characteristic diagram for explaining a data receiving operation in the embodiment of the present invention.

【図11】本発明による通信プロトコル制御装置の一実
施例の詳細ブロック図である。
FIG. 11 is a detailed block diagram of an embodiment of a communication protocol control device according to the present invention.

【図12】本発明の別の一実施例におけるデータ送信動
作を説明するためのフローチャートである。
FIG. 12 is a flow chart for explaining a data transmission operation in another embodiment of the present invention.

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

1 端末インタフェース 2 プロセッサ 3 メモリ 4 誤りチェックコード生成・検査回路 5 通信回線アクセス制御部 6 ローカルバス 7 通信プロトコル制御装置 8 端末機器 10 通信端末 11 通信回線 12 PDU(プロトコルデータユニット) 13 メモリ転送処理 33 入出力インタフェース 34 誤りチェックコード演算部 35 演算結果格納レジスタ 36 カウンタ部 37 入出力制御線 39 演算制御線 40 レジスタ制御線 1 Terminal Interface 2 Processor 3 Memory 4 Error Check Code Generation / Inspection Circuit 5 Communication Line Access Control Unit 6 Local Bus 7 Communication Protocol Control Device 8 Terminal Equipment 10 Communication Terminal 11 Communication Line 12 PDU (Protocol Data Unit) 13 Memory Transfer Processing 33 Input / output interface 34 Error check code operation unit 35 Operation result storage register 36 Counter unit 37 Input / output control line 39 Operation control line 40 Register control line

───────────────────────────────────────────────────── フロントページの続き (72)発明者 小川 尚雄 茨城県日立市大みか町五丁目2番1号 株 式会社日立製作所大みか工場内 (72)発明者 横山 達也 神奈川県川崎市麻生区王禅寺1099番地 株 式会社日立製作所システム開発研究所内 ─────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Nao Ogawa 5-2-1 Omika-cho, Hitachi-shi, Ibaraki Hitachi Ltd. Omika factory (72) Inventor Tatsuya Yokoyama 1099 Ozenji, Aso-ku, Kawasaki-shi, Kanagawa Hitachi, Ltd. System Development Laboratory

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数の端末装置間でのデータ伝送を、誤
りチェックコードを含むヘッダ部とデータ部から構成さ
れるプロトコルデータユニットを用いて行なう方式のデ
ータ通信システムにおける通信プロトコル制御装置にお
いて、データ処理用のプロセッサとは独立して動作する
誤りチェックコード生成・検査手段を設け、前記データ
部をデータ格納用メモリへ転送する処理と並行して、該
データ部に対応した誤りチェックコードの生成と検査を
行なうように構成したことを特徴とする通信プロトコル
制御装置。
1. A communication protocol control device in a data communication system of a system in which data transmission between a plurality of terminal devices is performed using a protocol data unit including a header part including an error check code and a data part. An error check code generation / inspection unit that operates independently of the processing processor is provided, and in parallel with the process of transferring the data section to the data storage memory, an error check code corresponding to the data section is generated. A communication protocol control device characterized by being configured to perform an inspection.
【請求項2】 請求項1の発明において、前記誤りチェ
ックコード生成・検査手段が、誤りチェックコードを算
出する演算部と演算結果を格納するレジスタ部、誤りチ
ェックコードの生成範囲を制御するカウンタ部、それに
誤りチェックコードの対象となるデータの入出力を制御
する入出力インタフェース部とで構成されていることを
特徴とする通信プロトコル制御装置。
2. The invention according to claim 1, wherein the error check code generating / inspecting means calculates an error check code, a register section for storing an operation result, and a counter section for controlling a generation range of the error check code. And a communication protocol control device comprising an input / output interface unit for controlling the input / output of the data that is the target of the error check code.
【請求項3】 請求項2の発明において、前記カウンタ
部での前記誤りチェックコードの生成範囲を制御する処
理が、該カウンタ部に対して誤りチェックコードの生成
範囲及び処理の開始・終了情報を与える処理と、該カウ
ンタ部がこれらの情報をもとに生成の指示を該演算部に
与える処理とで構成されていることを特徴とする通信プ
ロトコル制御装置。
3. The invention according to claim 2, wherein the processing for controlling the generation range of the error check code in the counter section sends the generation range of the error check code and start / end information of the processing to the counter section. A communication protocol control device comprising: a giving process and a process in which the counter section gives an instruction of generation to the arithmetic section based on these pieces of information.
JP3246451A 1991-09-02 1991-09-02 Communication protocol controller Pending JPH0563756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3246451A JPH0563756A (en) 1991-09-02 1991-09-02 Communication protocol controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3246451A JPH0563756A (en) 1991-09-02 1991-09-02 Communication protocol controller

Publications (1)

Publication Number Publication Date
JPH0563756A true JPH0563756A (en) 1993-03-12

Family

ID=17148634

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3246451A Pending JPH0563756A (en) 1991-09-02 1991-09-02 Communication protocol controller

Country Status (1)

Country Link
JP (1) JPH0563756A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002183072A (en) * 2000-12-13 2002-06-28 Hitachi Ltd Interface controller
US7245613B1 (en) * 2002-03-28 2007-07-17 Advanced Micro Devices, Inc. Arrangement in a channel adapter for validating headers concurrently during reception of a packet for minimal validation latency

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002183072A (en) * 2000-12-13 2002-06-28 Hitachi Ltd Interface controller
JP4615122B2 (en) * 2000-12-13 2011-01-19 株式会社日立製作所 Interface control device
US7245613B1 (en) * 2002-03-28 2007-07-17 Advanced Micro Devices, Inc. Arrangement in a channel adapter for validating headers concurrently during reception of a packet for minimal validation latency

Similar Documents

Publication Publication Date Title
EP0442053A2 (en) Apparatus for high speed transfer of data
US20130031412A1 (en) Processing apparatus, test signal generator, and method of generating test signal
US20010018646A1 (en) USB simulation apparatus and storage medium
US7523202B2 (en) Method, system, and storage medium for resolving contention issues during channel program execution
JPH0563756A (en) Communication protocol controller
JP3569149B2 (en) Communication control device
US20030154288A1 (en) Server-client system and data transfer method used in the same system
US7724775B2 (en) Data transmission circuit and method for controlling the data transmission circuit
US20090132224A1 (en) Co-Simulation System Using a Slow Operation Mode that Allows Detailed Interaction with Hardware and a Fast Operation Mode
JP3245552B2 (en) Transfer control system
JP6813637B1 (en) Transmission device and transmission method
JPH05347650A (en) Data reception system and communication controller
JPH06131478A (en) Multi-data-flow-processor device
JP2727847B2 (en) Debug device
JPH064496A (en) Operating method of network computer system wherein data-conversion overhead is minimized
JP3284500B2 (en) Analysis equipment
JPH0567014A (en) Protocol processor
JP2863392B2 (en) Equipment for testing network equipment
US7478137B1 (en) Lightweight messaging with and without hardware guarantees
JPH06350611A (en) Communication processing system
JP3309549B2 (en) Load test equipment for line relay connection equipment
JPS59191958A (en) Protocol inspector
JPH0512069A (en) Debugging system
JP2001136299A (en) Data communication system and data communication method
JPS6360941B2 (en)