JPH02310649A - Reception frame transfer system and communication controller - Google Patents

Reception frame transfer system and communication controller

Info

Publication number
JPH02310649A
JPH02310649A JP1131305A JP13130589A JPH02310649A JP H02310649 A JPH02310649 A JP H02310649A JP 1131305 A JP1131305 A JP 1131305A JP 13130589 A JP13130589 A JP 13130589A JP H02310649 A JPH02310649 A JP H02310649A
Authority
JP
Japan
Prior art keywords
buffer
frame
reception
control device
dma
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
JP1131305A
Other languages
Japanese (ja)
Inventor
Yoshinori Watanabe
義則 渡辺
Riichi Yasue
利一 安江
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 JP1131305A priority Critical patent/JPH02310649A/en
Publication of JPH02310649A publication Critical patent/JPH02310649A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To successively continue normal communication control even if it comes to a state where a data part is insufficient by storing the header part of a reception frame and the data part in reception buffer groups which are provided for plural sets by means of dividing them. CONSTITUTION:The length of the header part of the frame to be received is stored in the reception buffer length 803 of a buffer control register 81 and the maximum length of the data part in the buffer length of a register 82 as a condition before the transfer of the reception frame. When a DMA controller 2 receives a DMA start request from a frame reception circuit in a DMA stop state, it decides the free conditions of the buffer group 61. When the free buffer does not exist, a DMA action is terminated by assuming it to be the occurrence of the overrun of the reception buffer. When there is the free buffer, a descripter read pointer 802 is updated and the reception frame is DMA transferred to the free buffer.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ受信装置において、回線からフレーム
を受信した際に、あらかじめ用意された空の受信バッフ
ァの情報に基いて、I)MA(ダイレクトメモリアクセ
ス)制御装置が自動的に受信フレームを空バッファへD
MA転送する受信フレA転送方式およびこの転送方式を
用いた通信制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention provides a data receiving device that, upon receiving a frame from a line, performs I) MA( Direct memory access) The control device automatically transfers the received frame to an empty buffer.
The present invention relates to a reception frame A transfer method for MA transfer and a communication control device using this transfer method.

〔従来の技術〕[Conventional technology]

従来1通信回線からの受信フレームを主記憶装置へDM
A転送する方式としては、特開昭50−181862号
公報に記載のように、主記憶装置上に受信バッファを指
定する情報を蓄積するためのバッファ指定キューと、こ
のキューの管理を行うキュー管理装置とを設け、空バッ
ファを指定する情報を前記キューに書き込み、DMA転
送要求が発生すると、DMA制御制御か前記キューから
空バッファ情報を読み込んで自動的にDMA転送を開始
する方式がある。
Conventionally, DM received frames from one communication line to main memory
As described in Japanese Unexamined Patent Publication No. 50-181862, the A transfer method includes a buffer specification queue for storing information specifying a reception buffer on the main storage device, and a queue management for managing this queue. There is a method in which a device is provided, information specifying an empty buffer is written in the queue, and when a DMA transfer request occurs, the empty buffer information is read from the queue by DMA control control and DMA transfer is automatically started.

この方式は、DMA転送要求発生時のDMA制御装置へ
のバッファ情報の設定を主制御装置の介在なしに行うた
め、DMA起動までの時間が短縮されて高速回線に対応
できるというメリットを持っているが、受信するフレー
ムの内容まで考慮していないため、受信されるフレーt
1の最大長に合オ)せた大きさの受信バッファを用意す
る必要があった。そこで、ヘッダ部分のみで構成される
短いフレームの受信に対しても前記受信バッファを適用
せざるを得なかった。
This method sets buffer information in the DMA control device when a DMA transfer request occurs without the intervention of the main control device, so it has the advantage of shortening the time until DMA activation and being able to support high-speed lines. However, since the content of the received frame is not considered, the received frame t
It was necessary to prepare a receive buffer of a size that matched the maximum length of 1. Therefore, the above-mentioned reception buffer had to be applied also to the reception of short frames consisting only of the header portion.

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

上記従来方式は、受信するフレームの内容まで考慮して
いないため、データ部分を含む情報フレームとデータ部
分を含まない制御フレームとを同一の受信バッファ群で
受信しなければならない。
Since the above-described conventional method does not take into account the contents of the frame to be received, it is necessary to receive an information frame including a data portion and a control frame not including a data portion using the same receiving buffer group.

そのため、例えば、すぐに解放できないデータ部分を含
む情報フレームを連続して受信した結果、空の受信バッ
ファが無くなってしまった場合に、データ部分を含まな
い制御フレームを受信することが不可能になり、正常な
フロー制御が行えなくなるという点について配慮がされ
ていなかった。
Therefore, for example, if the empty receive buffer runs out as a result of continuously receiving information frames that contain data parts that cannot be released immediately, it becomes impossible to receive control frames that do not contain data parts. However, no consideration was given to the fact that normal flow control would no longer be possible.

また、上記従来方式を階層化された通信制御装置に適用
する場合は、受信フレーム中で前記通信制御装置が処理
対象として参照するのはヘッダ部分だけであるため、ヘ
ッダ部分とデータ部分とが同一受信バッファに格納され
る前記方式では、前記受信バッファが主制御装置から高
速にアクセスできないメモリであった時に、処理速度が
低下するという点に配慮がされていなかった。
In addition, when applying the above conventional method to a hierarchical communication control device, the communication control device only refers to the header part in the received frame as a processing target, so the header part and the data part are the same. In the above-mentioned method of storing information in a reception buffer, no consideration was given to the fact that the processing speed would be reduced if the reception buffer was a memory that could not be accessed quickly from the main controller.

本発明の目的は、受信バッファビジー状態でもフレーム
のヘッダ部分の受信を可能とする受信フレーム転送方式
を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a receive frame transfer method that allows reception of the header portion of a frame even when the receive buffer is busy.

また、本発明の他の目的は、受信フレームのヘッダ部分
に対する処理を高速化できる受、信フレーム転送方式を
提供することにある。
Another object of the present invention is to provide a receiving and receiving frame transfer system that can speed up the processing of the header portion of a received frame.

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

上記目的を達成するために、本発明は、受信バッファ群
と、そのバッファ群の中の空バッファを指定する情報を
蓄積するための手段とを、受信フレームのヘッダ部分用
とデータ部分用の複数組を設け、DMA制御装置が、前
記空バッファ情報に基づいて、受イ11フレームをヘツ
タ部分とデータ部分に分割して前記各受信バッファ群の
空バッファへ、それぞれ格納するようにしたものである
In order to achieve the above object, the present invention provides a receiving buffer group and a means for accumulating information specifying an empty buffer in the buffer group. The DMA control device divides the received 11 frames into a header part and a data part and stores them in the empty buffers of each of the receive buffer groups based on the empty buffer information. .

また、上記他の目的を達成するために1本発明は、複数
組の受信バッファ群のうち受信フレームのヘッダ部分を
格納するための受信バッファ群を、主制御装置から高速
にアクセス可能な主記憶装置上に設け、データ部分を格
納するためのバッファ群を、上位装置からアクセス可能
な別の記憶装置に設けたものである。
In order to achieve the other objects mentioned above, one aspect of the present invention is to store a receive buffer group for storing a header portion of a received frame among a plurality of sets of receive buffer groups in a main memory that can be accessed at high speed from a main controller. A group of buffers provided on the device for storing data portions is provided in a separate storage device that is accessible from the host device.

本発明のより具体的な態様としては、例えば。More specific embodiments of the present invention include, for example.

次のものが挙げられる。These include:

すなわち1通信101線から送られてくるフレームを受
信するためのフレーム受信回路と、前記受信フレームを
格納するための主記憶装置と、前記受信フレームを前記
主記憶装置へ転送するためのDMA制御装置と、前記主
記憶装置に格納された受信フレームに対し処理を行う主
制御装置とから成るデータ受信装置にける、前記DMA
制御装置が前^受信フレームを前記主記憶装置へ転送す
る受信フレーム転送方式であって、前記受信フレームの
中のヘッダ部分を格納するための第1のバッファ群と、
前記受信フレームの中のデータ部分を格納するための第
2のバッファ群と、前記第1のバッファ群の中の空バッ
ファを指定する情報を格、納するための第1のディスク
リブタ群と、前記第2のバッファ群の中の空バッファを
指定する情報を格納するための第2のディスクリブタ群
とを前記主記憶装置上に設け、前記1) M A装置は
、前記フレーム受信回路がフレームの受信を開始して1
) M A転送要求を発生すると、前記第1のディスク
リブタ群より前記第1のバッファ群に関する空バッファ
情報を読み出して前記受信フレーム中のヘッダ部分を該
空バッファへDMA転送し、さらに、前記受信フレーム
がデータ部分を含む場合は、前記第2のディスクリブタ
群より前記第2のバッファ群に関する空バッファ情報を
読み出して前記データ部分を該空バッファへDMA転送
することを特徴とする。
That is, a frame receiving circuit for receiving frames sent from the 1 communication line 101, a main storage device for storing the received frames, and a DMA control device for transferring the received frames to the main storage device. and a main controller that processes received frames stored in the main storage device.
A receive frame transfer method in which a control device transfers a previous received frame to the main storage device, a first buffer group for storing a header part in the received frame;
a second group of buffers for storing data portions in the received frames; a first group of discretors for storing information specifying empty buffers in the first buffer group; 1) a second disk libter group for storing information specifying an empty buffer in the second buffer group on the main storage device; Start receiving 1
) When an M A transfer request is generated, the empty buffer information regarding the first buffer group is read from the first discriminator group, the header part of the received frame is transferred to the empty buffer by DMA, and the received If the frame includes a data portion, the empty buffer information regarding the second buffer group is read from the second discriminator group, and the data portion is DMA-transferred to the empty buffer.

〔化」〕〔 〕

次に、本発明の作用について説明する。 Next, the operation of the present invention will be explained.

1) M A制御装置は、複数組設けられた受4gバッ
ファ群に対し、フレーム受信開始に伴うL)MA転送起
動要求により、まず、受信フレームのヘッダ部分を第1
の受信バッファ群へD M A転送し、引き続きデータ
部分が存在する場合は、該データ部分を第2の受信バッ
ファ群へDMA転送する。
1) The MA control device first sends the header part of the received frame to the first
If a data portion still exists, the data portion is DMA-transferred to a second reception buffer group.

このようにすることにより、データ部分を含むフレーム
を連続して受信してデータ部分格納用の第2のバッファ
群に空きが無くなったとしても。
By doing this, even if frames containing data portions are continuously received and the second buffer group for storing the data portions runs out of space.

この状態でヘッダ部のみで構成される制御フレームやデ
ータ部分を含む情報フレームのヘッダ部分のみを受信す
ることができるので1回線で接続されている通信制御装
置間で正常なフロー制御を継続することが01能になる
。なお、このとき、本発明では、第1のバッファ群の中
のバッファ数が第2のバッファ群の中のバッファ数より
多く設けられていることが必要である。
In this state, only the header part of the control frame consisting of the header part and the information frame including the data part can be received, so normal flow control can be continued between the communication control devices connected by one line. becomes 01 Noh. At this time, in the present invention, it is necessary that the number of buffers in the first buffer group be greater than the number of buffers in the second buffer group.

さらに、ヘッダ部分格納用の第1のバッファ群、を主制
御装置が高速アクセス可能な別の記憶装置上に設けるこ
とにより、受信フレームのヘッダ部分に対する処理速度
を向上させることが可能にな机 〔実施例〕 以下、添付図に従って本発明の一実施例を説明する。
Furthermore, by providing the first buffer group for storing the header part on another storage device that can be accessed at high speed by the main controller, it is possible to improve the processing speed for the header part of the received frame. Embodiment] An embodiment of the present invention will be described below with reference to the accompanying drawings.

第1図は本発明の一実施例を適用した通信制御装置の構
成を示す図である。
FIG. 1 is a diagram showing the configuration of a communication control device to which an embodiment of the present invention is applied.

図中、[は主制御装置、2はDMA制御装置、二3は主
記憶装置、4はフレーム受信回路、5は通信回線、61
は受信フレームのうちヘッダ部分を格納するためのバッ
ファが複数個集まった第1のバッファ群、62は受信フ
レームのうちデータ部分を格納するためのバッファが複
数個集まった第2のバッファ群、7]は第1のバッファ
群61の中の空バッファを指定する情報を含む1個また
は複数個のディスクリブタをポインタによりチェインし
た第1のディスクリブタ群、72は第2のバッファ群6
2の中の空バッファを指定する情報を含む1個または複
数個のディスクリブタをポインタによりチェインした第
2のディスクリブタ群、81は第1のディスクリブタ群
71および第1のバッファ群61を管理する情報を格納
するための第1のバッファ管理レジスタ、82は第2の
ディスクリブタ群72および第2のバッファ群62を管
理する情報を格納するための第2のバッファ管理レジス
タである。
In the figure, [ is the main control device, 2 is the DMA control device, 23 is the main storage device, 4 is the frame receiving circuit, 5 is the communication line, 61
7 is a first buffer group including a plurality of buffers for storing the header portion of the received frame; 62 is a second buffer group including a plurality of buffers for storing the data portion of the received frame; ] is a first disk librator group in which one or more disk libters containing information specifying an empty buffer in the first buffer group 61 is chained by a pointer, and 72 is a second buffer group 6
A second disk libter group 81 in which one or more disk libters containing information specifying an empty buffer in 2 is chained by a pointer, 81 manages the first disk libter group 71 and the first buffer group 61. The first buffer management register 82 is a second buffer management register for storing information for managing the second discriminator group 72 and the second buffer group 62.

第2図は第1のバッファ管理レシズタ81および第2の
バッファ管理レジスタ82の内容を示す図である。
FIG. 2 is a diagram showing the contents of the first buffer management register 81 and the second buffer management register 82.

図中、801は第1のディスクリブタ群71または第2
のディスクリブタ群72の中の最後のディスクリブタの
位置を指し示すディスクリブタ書込みポインタ、802
は第1のディスクリブタ群71または第2のディスクリ
ブタ群72の中の先頭のディスクリブタの位置を指し示
すディスクリブタ続出しポインタ、803は第1のバッ
ファ群61または第2のバッファ群62の中の1つバッ
ファの大きさを示す受信゛バッファ長である。
In the figure, 801 is the first disc ribtor group 71 or the second
a disc libter write pointer pointing to the position of the last disc libta in the disc libta group 72, 802;
is a disc libter successive pointer that points to the position of the first disc libta in the first disc libta group 71 or the second disc libta group 72; One of these is the receive buffer length, which indicates the size of the buffer.

上記構成において、DMA制御装置2は、フレ−ム受信
回路4が通イS回線5からフレームを受信したことによ
り発生するDMA起動要求によって、前記受信フレーム
を主記憶装置3上の第1のバッファ群61および第2の
バッファ群62へDMA転送する。この動作の詳細を第
3N5!lの)) M A 1lIIJ御装置2の動作
フローチャートに従って説明する。
In the above configuration, the DMA control device 2 transfers the received frame to the first buffer on the main storage device 3 in response to a DMA activation request generated when the frame receiving circuit 4 receives the frame from the communication S line 5. DMA transfer is performed to group 61 and second buffer group 62. Details of this operation in Part 3N5! The operation of the control device 2 will be explained according to the flowchart of the control device 2.

まず、受信フレーム転送前の条件として、第1のバッフ
ァ管理レジスタ81の受信バッファ長803には受信す
るフレームのヘッダ部分の長さを、第2のバッファ管理
レジスタ82の受信バッファ長80:3には受信するフ
レームのデータ部分の最大長をそれぞれ格納しておき、
第1の受4aバッファ群61の中のバッファ数は第2の
受信バッファ群62の中のバッファ数より多く設けられ
ていることが必要である。
First, as a condition before transferring a received frame, the length of the header part of the frame to be received is set in the receive buffer length 803 of the first buffer management register 81, and the length of the header part of the received frame is set as the receive buffer length 80:3 of the second buffer management register 82. stores the maximum length of the data part of each received frame,
It is necessary that the number of buffers in the first receiving buffer group 61 is greater than the number of buffers in the second receiving buffer group 62.

D M A制御装置2は、DMA停止状態においてフレ
ーム受信回路4よりDMA起動要求を受けると、第1の
バッファ群61に空バッファが存在するかどうかを判定
する。この判定は第1のバッファ管理レジスタ81中の
ディスクリブタ書込みポインタ801の値とディスクリ
ブタ読出しポインタ802の値を比較することで行い、
両者の値が−L’ffiしたときに第1のバッファ群6
1に空バッファは存在しないと判定する(ステップ30
1 )。
When the DMA control device 2 receives a DMA activation request from the frame receiving circuit 4 in the DMA stopped state, it determines whether or not there is an empty buffer in the first buffer group 61. This determination is made by comparing the value of the disc libter write pointer 801 and the value of the disc libta read pointer 802 in the first buffer management register 81,
When both values become -L'ffi, the first buffer group 6
It is determined that there is no empty buffer in 1 (step 30
1).

この判定により第1のバッファ群61に空バッファが存
在しないと判定されたら、受信バッファオーバランが発
生したとして、主制御装置1に割り込み等で通知をし、
DMA動作を終了する(ステップ302)。
If it is determined through this determination that there is no empty buffer in the first buffer group 61, it is determined that a reception buffer overrun has occurred, and the main controller 1 is notified by an interrupt or the like.
The DMA operation ends (step 302).

ステップ301において、第1のバッファ群61に空バ
ッファ有りと判定されたら、第1のバッファ管理レジス
タ81の中のディスクリブタ読出しポインタ802の7
指し示すディスクリブタより空バッファ情報を取り出し
、前記ディスクリブタ読出しポインタ802をそれが指
し示すディスクリブタの次のディスクリブタな指し示す
ように更新する(ステップ303)、そして、受信フレ
ームを、ステップ303で得られた空バッファにDMA
転送する(ステップ304)。もし、受信フレームがス
テップコ304にて全て転送できる大きさであった場合
、すなわち、ヘッダ部のみで構成される制御フレームで
あった場合は、ここで1) M A動作を終了する(ス
テップ305)。
In step 301, if it is determined that there is an empty buffer in the first buffer group 61, the 7 of the disc libter read pointer 802 in the first buffer management register 81
Empty buffer information is retrieved from the pointed disc libter, and the disc libter read pointer 802 is updated to point to the next disc libter of the disc libter it points to (step 303), and the received frame is DMA to empty buffer
Transfer (step 304). If the received frame is large enough to be transferred in its entirety by the step controller 304, that is, if it is a control frame consisting only of a header section, 1) the M A operation is terminated (step 305). ).

さらに、フレームのデータ部分が続く場合は、第2のバ
ッファ群62に空バッファが存在するかどうかを判定す
る。この判定は、第2のバッファ管理レジスタ82の中
のディスクリブタ書込みポインタ801の値とディスク
リブタ続出しポインタ802の値を比較することで行い
、両者の値が一致したときに、第2のバッファ群62に
空バッファは存在しないと判定する(ステップ306)
Further, if the data portion of the frame continues, it is determined whether or not there is an empty buffer in the second buffer group 62. This determination is made by comparing the value of the disc libta write pointer 801 and the value of the disc libta continuation pointer 802 in the second buffer management register 82, and when the two values match, the second buffer It is determined that there is no empty buffer in group 62 (step 306).
.

この判定において、第2の受信バッファ群62に空バッ
ファが無いと判定されたら、受信フレームの残りの部分
を全て読み捨てた後、DMA動作を終了する(ステップ
307)。
In this determination, if it is determined that there is no empty buffer in the second reception buffer group 62, the remaining part of the reception frame is completely read and then the DMA operation is ended (step 307).

ステップ306において第2のバッファ群62に空バッ
ファ有りと判定されたら、ステップ304で使用した空
バッファを指定する情報を含むディスクリブタ内に、第
2のバッファ群62ヘデータ部分が継続することを示す
情報を書き込み(ステップ308)、第2のバッファ管
理レジスタ82の中のディスクリブタ続出しポインタ8
02が指し示すディスクリブタより空バッファ情報を取
り出し、前記ディスクリブタ続出しポインタ802をそ
れが指し示すディスクリブタの次のディスクリブタを指
し示すように更新する(ステップ309)、そして、受
信フレームの残りの部分、すなわち、データ部分を、ス
テップ309で得られた空バッファにDMA転送する(
ステップ310)。
If it is determined in step 306 that there is an empty buffer in the second buffer group 62, it is indicated that the data portion continues to the second buffer group 62 in the descriptor that includes the information specifying the empty buffer used in step 304. Writes information (step 308) and writes the disc libter successive pointer 8 in the second buffer management register 82.
The empty buffer information is retrieved from the disc libter pointed to by 02, and the disc libter continuation pointer 802 is updated to point to the next disc libta of the disc libta pointed to by it (step 309), and the remaining part of the received frame, That is, the data portion is transferred by DMA to the empty buffer obtained in step 309 (
step 310).

受信中のフレームのデータ部分の長さが第2のバッファ
管理レジスタ82の中の受信バッファ長803より短く
、1個の空バッファに収まる場合は、そのままD M 
A #作を終了しくステップ311)、1個の空バッフ
ァに収まらない場合は、残りのデータ部分を全て読み捨
て、ステップ304で使用した空バッファを指定する情
報を含むディスクリブタ内に最大受信フレーム長オーバ
が発生したという情報を書き込み、DMA動作を終了す
る(ステップ312)。
If the length of the data part of the frame being received is shorter than the receive buffer length 803 in the second buffer management register 82 and fits into one empty buffer, it is sent to D M as is.
A: If the data does not fit in one empty buffer, all remaining data is discarded and the maximum received frame length is stored in the disc libter containing the information specifying the empty buffer used in step 304. Information indicating that an overflow has occurred is written, and the DMA operation is ended (step 312).

以上が本実に例におけるDMA制御制御!2の動作であ
る。
The above is a real example of DMA control! This is the second action.

一方、主制御装置lは、第1のバッファ群61および第
2のバッファ群62における受信フレーム格納済みバッ
ファを指定する情報を含むディスクリブタ群7L、72
の先頭ディスクリブタの位置を記憶する手段を持つ、こ
の主制御装置1は、1) M A制御装置2より受信フ
レームのDMA転送終了を通知されると、まず、第1の
バッファ群61より前記受信フレームのヘッダ部が格納
されたバッファの内容を解析処理し、処理が終了したら
第1のバッファ管理レジスタ81の中のディスクリブタ
書込みポインタ801が指し示すディスクリブタの後に
、前記処理対象となったバッファを指定する情報を含む
ディスクリブタを接続し、前記ディスクリブタ書込みポ
インタ801の値を前記接続されたディスクリブタを指
し示す値に書き換えることで、第1のバッファ群61の
空バッファ解放を行う、前記受信フレームのヘッダ部分
本川き続きデータ部分が存在し、第2のバッファ群62
の前記データ部分を含むバッファの処理が終了したら、
第2のバッファ管理レジスタ82の中のディスクリブタ
書込みポインタ801が指し示すディスクリブタの後に
、前記処理対象となったバッファを指定する情報を含む
ディスクリブタを接続し、前記ディスクリブタ書込みポ
インタ801の値を前記接続されたディスクリブタを指
し示す値に書き換えることで、第2のバッファ群62の
空バッファ解放を行う。
On the other hand, the main controller 1 controls the distributor groups 7L and 72 including information specifying buffers in which received frames are stored in the first buffer group 61 and the second buffer group 62.
This main control device 1, which has means for storing the position of the first disc libter of The contents of the buffer in which the header part of the received frame is stored are analyzed, and when the processing is completed, the buffer targeted for processing is written after the disc libter pointed to by the disc libta write pointer 801 in the first buffer management register 81. , and releases an empty buffer in the first buffer group 61 by connecting a disc libter including information specifying the disc libter and rewriting the value of the disc libta write pointer 801 to a value pointing to the connected disc libta. There is a main continuation data part in the header part of the frame, and the second buffer group 62
After processing the buffer containing said data part of
After the disc libta pointed to by the disc libta write pointer 801 in the second buffer management register 82, a disc libta that includes information specifying the buffer to be processed is connected, and the value of the disc libta write pointer 801 is changed. Empty buffers in the second buffer group 62 are released by rewriting the value to point to the connected disc libter.

以上、本実施例では、受信フレームのヘッダ部分とデー
タ部分とを別々のバッファ群へ分割して格納することに
より、データ部分を含む情報フレームの連続受信などに
よりデータ部分格納用バッファが不足する受信バッファ
ビジー状態となっても、制御用フレームや情報フレーム
のヘッダ部分だけは受信を続けることが可能となる。
As described above, in this embodiment, the header part and the data part of a received frame are divided and stored in separate buffer groups, so that when there is a shortage of data part storage buffers due to continuous reception of information frames including the data part, etc. Even if the buffer is busy, it is possible to continue receiving only the header portions of control frames and information frames.

次に、本発明の第2の実施例を第4図を用いて説明する
Next, a second embodiment of the present invention will be described using FIG. 4.

図中、9は情報処理装置、10は情報処理装置ムに接続
され通信制御機能を提供する通信制御装置、11は情報
処理装置9と通信制御装置10との間で受信フレームの
データ部分の受は渡しを行うための共有メモリ、その他
は、第1図における同一番号で示されるものと同じであ
る。
In the figure, 9 is an information processing device, 10 is a communication control device that is connected to the information processing device and provides a communication control function, and 11 is a communication device for receiving the data part of a received frame between the information processing device 9 and the communication control device 10. The shared memory for the transfer and other parts are the same as those indicated by the same numbers in FIG.

本実施例におけるデータ受イd装置は、受信されるフレ
ームのヘッダ部分は通信制御袋filoが処理して通信
プロトコルの制御等を行い、データ部分は共有メモリ1
1を介して情報処理装置9へ渡されて処理が行われる構
成になっている。
In the data receiving device in this embodiment, the header part of the received frame is processed by the communication control bag filo to control the communication protocol, etc., and the data part is stored in the shared memory 1.
1 to the information processing device 9 for processing.

共有メモリ11は、主記憶装置3に比べて記憶容量が大
きく、使用する主制御装置1の規模によっては共有メモ
リ11を参照するために適当な前処理が必要となってく
る。従って、この装置における受信フレーム転送にフレ
ーム分割を行わない従来方式を適用すると、通常、受信
バッファは共有メモリ11上に設けられるため、受信フ
レームのヘッダ部分も共有メモリ11上に格納されるこ
とになり、主制御装置1が前記ヘッダ部分の処理を行う
時に処理速度の低下を招くという問題が起こる。
The shared memory 11 has a larger storage capacity than the main storage device 3, and depending on the scale of the main control device 1 used, appropriate preprocessing may be required to refer to the shared memory 11. Therefore, if the conventional method that does not perform frame division is applied to the received frame transfer in this device, since the receive buffer is usually provided on the shared memory 11, the header part of the received frame will also be stored on the shared memory 11. Therefore, when the main control device 1 processes the header portion, a problem arises in that the processing speed decreases.

本発明をこの装置に適用すると、第1のバッファ群61
と第1および第2のディスクリブタ群71.72とを主
記憶装置3上に設け、第2のバッファ群62のみを共有
メモリ11上に設けるので、DMA制御装置2が第3図
のフローチャートに従って動作することにより、受信フ
レームのヘッダ部分は主制御装置が高速にアクセスでき
る記憶領域に格納され、データ部分は直接共有メモリ1
1へ格納されて情報処理装置9へ転送可能となる。
When the present invention is applied to this device, the first buffer group 61
, and the first and second disc libter groups 71 and 72 are provided on the main storage device 3, and only the second buffer group 62 is provided on the shared memory 11, so that the DMA control device 2 follows the flowchart in FIG. By operating, the header part of the received frame is stored in a storage area that can be accessed quickly by the main controller, and the data part is directly stored in the shared memory 1.
1 and can be transferred to the information processing device 9.

以上のように、受信フレームのヘッダ部分とデータ部分
とを分割し、かつ、ヘッダ部分を高速アクセス可能なメ
モリ領域へ格納することにより1、ヘッダ部分に対する
処理時間を短縮することができる。
As described above, by dividing a received frame into a header portion and a data portion and storing the header portion in a memory area that can be accessed at high speed, 1. The processing time for the header portion can be shortened.

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

本発明によれば、複数組設けられた受信バッファ群に受
信フレームのヘッダ部分とデータ部分とを分割して格納
できるため、仮に、データ部分用バッファが不足する受
信バッファビジー状態となっても、引き続き制御相フレ
ームの受信と情報フレームのヘッダ部分のみの受信は可
能であり、正常な通信制御を継続可能になるという効果
がある。
According to the present invention, since the header part and the data part of a received frame can be divided and stored in a plurality of reception buffer groups, even if the reception buffer is in a busy state where there is a shortage of buffers for the data part, It is possible to continue receiving the control phase frame and only the header part of the information frame, which has the effect of allowing normal communication control to continue.

また、制御フレーム受信時にはヘッダ部分用の受信バッ
ファしか使われないことから、受信バッファ用メモリの
使用効率がよくなるという効果がある。
Furthermore, since only the receive buffer for the header portion is used when receiving the control frame, there is an effect that the use efficiency of the receive buffer memory is improved.

さらに、ヘッダ部分用の受信バッファを高速アクセス可
能なメモリ上へ分離して設けることで、ヘッダ部分に対
する処理速度を向上させるという効果がある。
Furthermore, by separately providing a reception buffer for the header portion on a memory that can be accessed at high speed, there is an effect of improving the processing speed for the header portion.

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

第1図は本発明の第1実施例を適用した通信制御装置の
データ受信装置の構成を示すブロック図、第2図は第1
図のバッファ管理レジスタの詳細内容を示す説明図、第
3図は第1図のDMA制御装置の動作概要を示すフロー
チャート、第4図は本発明の第2の実施例を適用した通
信制御装置のデータ受信装置の構成を示すブロック図で
ある。 1・・・主制御装置、2・・・DMA制御装置、3・・
・主記憶装置、4・・・フレーム受他回路、5・・・通
信同線。 9・・・情軸処理装置、10・・・通信制御装置、11
・・・共有メモリ、61.62・・・バッファ群、71
゜72・・・ディスクリブタ群、81.82・・・バッ
ファ管理レジスタ。 纂 2 図 纂 3 図
FIG. 1 is a block diagram showing the configuration of a data receiving device of a communication control device to which the first embodiment of the present invention is applied, and FIG.
3 is a flowchart showing an overview of the operation of the DMA control device of FIG. 1, and FIG. 4 is an explanatory diagram showing the detailed contents of the buffer management register shown in FIG. FIG. 2 is a block diagram showing the configuration of a data receiving device. 1... Main control device, 2... DMA control device, 3...
・Main memory device, 4...Frame receiving circuit, 5...Communication line. 9... Information axis processing device, 10... Communication control device, 11
...Shared memory, 61.62...Buffer group, 71
゜72...Distributor group, 81.82...Buffer management register. Collection 2 Illustration 3 Illustration

Claims (1)

【特許請求の範囲】 1、通信回線からの受信フレームを、DMA制御装置に
より主記憶装置に転送して格納するデータ受信装置にお
ける受信フレーム転送方式であって、 受信バッファ群と、そのバッファ群の中の空バッファを
指定する情報を蓄積するための手段とを、受信フレーム
のヘッダ部分用とデータ部分用の複数組設け、前記DM
A制御装置は、前記空バッファ情報に基づいて、受信フ
レームをヘッダ部分とデータ部分に分割して前記各受信
バッファ群の空バッファへ、それぞれ格納するよう構成
されるものであることを特徴とする受信フレーム転送方
式。 2、通信回線から送られてくるフレームを受信するため
のフレーム受信回路と、前記受信フレームを格納するた
めの主記憶装置と、前記受信フレームを前記主記憶装置
へ転送するための DMA制御装置と、前記主記憶装置に格納された受信フ
レームに対し処理を行う主制御装置とから成る通信制御
装置において、 受信バッファ群と、そのバッファ群の中の空バッファを
指定する情報を蓄積するための手段とを、受信フレーム
のヘッダ部分用とデータ部分用の複数組設け、前記DM
A制御装置は、前記空バッファ情報に基づいて、受信フ
レームをヘッダ部分とデータ部分に分割して前記各受信
バッファ群の空バッファへ、それぞれ格納するよう構成
されるものであることを特徴とする通信制御装置。 3、前記バッファ群のうち、ヘッダ部分に用いるものを
前記主記憶装置上に設け、データ部分に用いるものを前
記主記憶とは異なる記憶装置に設けることを特徴とする
請求項1記載の受信フレーム転送方式、または請求項2
記載の通信制御装置。
[Scope of Claims] 1. A reception frame transfer method in a data reception device in which a reception frame from a communication line is transferred to a main storage device and stored by a DMA control device, comprising a reception buffer group and a buffer group of the reception buffer group. a plurality of sets of means for accumulating information specifying empty buffers in the DM, one for the header part and the other for the data part of the received frame;
The A control device is characterized in that it is configured to divide a received frame into a header part and a data part based on the empty buffer information, and store the divided parts into the empty buffers of each of the receiving buffer groups. Received frame transfer method. 2. A frame receiving circuit for receiving frames sent from a communication line, a main storage device for storing the received frames, and a DMA control device for transferring the received frames to the main storage device. , and a main control device that processes received frames stored in the main storage device, the communication control device comprising a main control device that processes received frames stored in the main storage device, means for accumulating information specifying a receive buffer group and an empty buffer in the buffer group. A plurality of sets are provided for the header part and the data part of the received frame, and the DM
The A control device is characterized in that it is configured to divide a received frame into a header part and a data part based on the empty buffer information, and store the divided parts into the empty buffers of each of the receiving buffer groups. Communication control device. 3. The received frame according to claim 1, wherein, among the buffer group, those used for the header portion are provided on the main storage device, and those used for the data portion are provided on a storage device different from the main storage. Transfer method or claim 2
The communication control device described.
JP1131305A 1989-05-26 1989-05-26 Reception frame transfer system and communication controller Pending JPH02310649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1131305A JPH02310649A (en) 1989-05-26 1989-05-26 Reception frame transfer system and communication controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1131305A JPH02310649A (en) 1989-05-26 1989-05-26 Reception frame transfer system and communication controller

Publications (1)

Publication Number Publication Date
JPH02310649A true JPH02310649A (en) 1990-12-26

Family

ID=15054853

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1131305A Pending JPH02310649A (en) 1989-05-26 1989-05-26 Reception frame transfer system and communication controller

Country Status (1)

Country Link
JP (1) JPH02310649A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0505764A2 (en) * 1991-03-04 1992-09-30 Hewlett-Packard Company Modular interface
US6775245B1 (en) 1998-10-27 2004-08-10 Seiko Epson Corporation Data transfer control device and electronic equipment
WO2006018895A1 (en) * 2004-08-20 2006-02-23 Fujitsu Limited Communication apparatus, communication system and communication method
JP2009193430A (en) * 2008-02-15 2009-08-27 Toshiba Corp Communication controller, information processing device, and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0505764A2 (en) * 1991-03-04 1992-09-30 Hewlett-Packard Company Modular interface
US6775245B1 (en) 1998-10-27 2004-08-10 Seiko Epson Corporation Data transfer control device and electronic equipment
WO2006018895A1 (en) * 2004-08-20 2006-02-23 Fujitsu Limited Communication apparatus, communication system and communication method
JP2009193430A (en) * 2008-02-15 2009-08-27 Toshiba Corp Communication controller, information processing device, and program
US8423689B2 (en) 2008-02-15 2013-04-16 Kabushiki Kaisha Toshiba Communication control device, information processing device and computer program product

Similar Documents

Publication Publication Date Title
US5828901A (en) Method and apparatus for placing multiple frames of data in a buffer in a direct memory access transfer
US6334162B1 (en) Efficient data transfer mechanism for input/out devices having a device driver generating a descriptor queue and monitoring a status queue
US6145015A (en) Multimedia data transferring method
US6564271B2 (en) Method and apparatus for automatically transferring I/O blocks between a host system and a host adapter
US5797033A (en) Direct memory access for storing and retrieving data based on packet size
EP0550163A1 (en) Circuit architecture for supporting multiple-channel DMA operations
EP0542417A1 (en) Method and direct memory access controller for asynchronously reading/writing data from/to a memory with improved throughput
EP0141742A2 (en) Buffer system for input/output portion of digital data processing system
US6889266B1 (en) Method for delivering packet boundary or other metadata to and from a device using direct memory controller
JPH10500503A (en) Data buffer monitoring device for disk drive system
WO1992015053A1 (en) Data transfer within a data storage subsystem
JP3083663B2 (en) Disk array device
US5923852A (en) Method and system for fast data transmissions in a processing system utilizing interrupts
US6584512B1 (en) Communication DMA device for freeing the data bus from the CPU and outputting divided data
JPH02310649A (en) Reception frame transfer system and communication controller
EP0522728B1 (en) Method for efficient access of data stored in a nexus table
US4561053A (en) Input/output multiplexer for a data processing system
US6233628B1 (en) System and method for transferring data using separate pipes for command and data
US6633928B2 (en) Fast process context switching buffer
JP2963696B2 (en) Data transfer control system
US5875299A (en) disk access apparatus for performing a stride processing of data
JP2784520B2 (en) File transfer device
JPH05173933A (en) Direct memory access transfer system
JP3259095B2 (en) Data transfer method
JPH0743687B2 (en) Data storage subsystem