JPH05268291A - Data buffer management system - Google Patents

Data buffer management system

Info

Publication number
JPH05268291A
JPH05268291A JP4064185A JP6418592A JPH05268291A JP H05268291 A JPH05268291 A JP H05268291A JP 4064185 A JP4064185 A JP 4064185A JP 6418592 A JP6418592 A JP 6418592A JP H05268291 A JPH05268291 A JP H05268291A
Authority
JP
Japan
Prior art keywords
buffer
line
data
transmission
pool
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
JP4064185A
Other languages
Japanese (ja)
Inventor
Izumi Hoshino
泉 星野
Atsushi Ugajin
敦 宇賀神
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 JP4064185A priority Critical patent/JPH05268291A/en
Publication of JPH05268291A publication Critical patent/JPH05268291A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To change the number of buffers for every line without causing the occurrence of buffer busy due to the occupation of the buffer by a specified protocol line, and at that time, to give no influence upon a line during communication. CONSTITUTION:A resource management processor 120 and a shared memory 14 to execute the assignment and the management of a data buffer resource include a transmitted data buffer 141 to execute the dynamic assignment of a resource in accordance with the kind of a designated protocol and a buffer management information area 143 for realizing buffer management.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数の通信回線を収容
してデ−タの送受信を行う通信制御装置におけるデータ
バッファ管理システムおよびデ−タバッファ管理方法に
係り、特に、回線ごとに異なる通信プロトコル、異なる
回線速度での通信を行うことに好適なデータバッファ管
理システムおよびデ−タバッファ管理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data buffer management system and a data buffer management method in a communication control device for accommodating a plurality of communication lines and transmitting and receiving data, and more particularly to a communication which is different for each line. The present invention relates to a protocol, a data buffer management system and a data buffer management method suitable for performing communication at different line speeds.

【0002】[0002]

【従来の技術】ホストコンピュ−タ間またはホストコン
ピュ−タと端末との間で、通信を行なう場合に、通信の
制御をおこなる装置として、通信制御装置が用いられ
る。この通信制御装置は、通信データを一時格納するた
めのバッファを構成するメモリを有する。
2. Description of the Related Art A communication control device is used as a device for controlling communication when performing communication between host computers or between a host computer and a terminal. This communication control device has a memory that constitutes a buffer for temporarily storing communication data.

【0003】ところで、近年、通信制御装置は、同一装
置内で、複数回線、複数プロトコルの通信の制御を行な
うようになっている。この種の通信制御装置では、通信
に際して、データを格納するためのバッファの割り付け
を行なう必要がある。従来、この種のバッファの割り付
けについては、例えば、特公平1−48574号公報に
記載されるものがある。
By the way, in recent years, a communication control device has come to control communication of a plurality of lines and a plurality of protocols within the same device. In this type of communication control device, it is necessary to allocate a buffer for storing data during communication. Conventionally, this type of buffer allocation is described in, for example, Japanese Patent Publication No. 1-48574.

【0004】この従来の技術では、特公平1−4857
4号公報に記載されているように、バッファの要求元に
応じて使用可能なバッファ数を設定している。この方法
では、ハイレベル手順とベ−シック手順での送信を同時
に行う場合に、共通のバッファプ−ルから送信バッファ
をハントして使用する。従って、ハイレベル手順側で複
数フレ−ムを連続送信し、送達確認を待つ間、一時的に
バッファリソ−スを使いきってしまうことが起こり得
る。このような場合に、ベ−シック手順側が送信バッフ
ァをハントしようとすると、送信バッファがビジ−状態
となり、円滑な通信を行えないことがあり得る。
According to this conventional technique, Japanese Patent Publication No. 1-4857.
As described in Japanese Patent No. 4, the number of usable buffers is set according to the request source of the buffer. In this method, the transmission buffer is hunted from the common buffer pool and used when the transmission in the high level procedure and the transmission in the basic procedure are simultaneously performed. Therefore, it is possible that the high-level procedure side continuously transmits a plurality of frames and temporarily uses up the buffer resource while waiting for the delivery confirmation. In such a case, if the basic procedure side tries to hunt the transmission buffer, the transmission buffer may be in a busy state and smooth communication may not be performed.

【0005】[0005]

【発明が解決しようとする課題】このように、従来の技
術では、ハイレベル手順とベ−シック手順でバッファリ
ソ−スを共有しているので、ハイレベル手順の通信回線
にかかる負荷によって、上記のような送信バッファビジ
−の発生を避けることは出来なかった。また、各通信回
線毎にバッファリソ−スを割り当てると、特定の回線に
かかる負荷が他の回線の制御に影響することは避けられ
るが、ハイレベル手順で使用する送信バッファに要する
メモリ量が非常に多くなるという問題がある。
As described above, in the prior art, since the buffer resource is shared by the high level procedure and the basic procedure, the above-mentioned is caused by the load on the communication line of the high level procedure. Occurrence of such a transmission buffer busy cannot be avoided. In addition, if a buffer resource is assigned to each communication line, it is possible to avoid the load on a specific line from affecting the control of other lines, but the amount of memory required for the transmission buffer used in the high-level procedure is very large. There is a problem that it will increase.

【0006】本発明は、上記のような問題点を解決する
ために、回線の定義時にプロトコル種別に応じて、最適
なバッファ数のバッファを獲得し、少ないメモリ量で、
バッファビジ−による待ち時間が生じない円滑な通信を
行うことができるデータバッファ管理システムおよびデ
−タバッファ管理方法を提供することを目的とする。
In order to solve the above problems, the present invention acquires the optimum number of buffers according to the protocol type at the time of defining a line and uses a small amount of memory.
An object of the present invention is to provide a data buffer management system and a data buffer management method capable of performing smooth communication without waiting time due to buffer busy.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、本発明の一態様によれば、複数の回線を用い、上位
装置から回線への送信および回線から上位装置への受信
の制御を行なう通信制御装置におけるデータバッファ管
理システムであって、通信データを一時格納するバッフ
ァを構成するメモリと、このメモリ内に構成されるバッ
ファを各回線に割り付ける制御を行なうリソース管理プ
ロセッサとを有し、メモリは、送信データを格納する送
信バッファと、受信データを格納する受信バッファと、
リソース管理プロセッサがバッファを管理するための情
報を格納するバッファ管理情報エリアとを有し、バッフ
ァ管理情報エリアは、プロトコルごとのリソース管理テ
ーブルを有し、これらの管理テーブルには、少なくとも
送信バッファを管理する管理テーブル群を含み、この送
信バッファを管理するテーブル群は、送信バッファを、
適用されるプロトコルの少なくとも1種について、固定
的に割り付けられるバッファ群と、適用されるプロトコ
ルの他の種について、回線対応に割り付けられるバッフ
ァ群と、いずれにも割り付けられないプールバッファ群
とを定義する情報と、プールバッファ群を、上記固定的
に割り付けられるバッファ群に追加設定すると共に、そ
れを返却する管理を行なうバッファプール管理情報とが
記述されるものであること、を特徴とするデータバッフ
ァ管理システムが提供される。
In order to achieve the above object, according to one aspect of the present invention, a plurality of lines are used to control transmission from a host device to a line and control from a line to a host device. A data buffer management system in a communication control device for performing, comprising a memory that constitutes a buffer for temporarily storing communication data, and a resource management processor that controls the allocation of the buffer configured in this memory to each line, The memory includes a transmission buffer for storing transmission data, a reception buffer for storing reception data,
The resource management processor has a buffer management information area for storing information for managing the buffer, and the buffer management information area has a resource management table for each protocol, and these management tables include at least a transmission buffer. The table group including the management table group that manages the transmission buffer is
Defines a buffer group that is fixedly allocated for at least one type of applied protocol, a buffer group that is allocated line-correspondingly, and a pool buffer group that is not allocated to any of the other types of applied protocol. Information and buffer pool management information for additionally managing the pool buffer group to the fixedly allocated buffer group and for returning the pool buffer group are described. A management system is provided.

【0008】ここで、適用されるプロトコル種別とし
て、例えば、OSI基本参照モデルのレイヤの概念に適
合したハイレベル手順(HDLCなどが該手順に含まれ
る)と、レイヤ概念が曖昧な中低速プロトコルであるベ
ーシック手順(SYN同期手順などが該手順に含まれ
る)の2種とすることができる。
Here, as the protocol types to be applied, for example, a high-level procedure (including HDLC and the like) adapted to the layer concept of the OSI basic reference model, and a medium-low speed protocol in which the layer concept is ambiguous There can be two basic procedures (a SYN synchronization procedure and the like are included in the procedure).

【0009】また、本発明の他の態様によれば、複数の
回線を用い、上位装置から回線への送信および回線から
上位装置への受信の制御を行なう通信制御装置におい
て、データを一時格納するメモリにおけるデータバッフ
ァ管理方法であって、メモリのデータ格納領域を複数面
のバッファ領域に分け、少なくとも送信データを格納す
る領域について、ハイレベル手順用には、予め定めた複
数面を固定的に割付け、ベーシック手順用には、回線対
応に予め定めた面数分割付け、いずれにも割り付けられ
ないものをプールバッファとしてプールし、ハイレベル
手順用に割り付けられたバッファ領域は、各回線で共有
して使用し、不足分は、プルーバッファを確保して、追
加のバッファ領域とし、通信終了時には、プールバッフ
ァに返却することを特徴とするデータバッファ管理方法
が提供される。
According to another aspect of the present invention, data is temporarily stored in a communication control device that controls transmission from a host device to a line and reception from the line to a host device using a plurality of lines. A data buffer management method in a memory, wherein a data storage area of the memory is divided into a plurality of buffer areas, and at least an area for storing transmission data is fixedly allocated to a plurality of predetermined surfaces for a high-level procedure. , For the basic procedure, divide the number of planes predetermined for each line, pool those that cannot be allocated to any of them as a pool buffer, and share the buffer area allocated for the high-level procedure with each line. Use the pool buffer for the shortfall and secure it as an additional buffer area, and return it to the pool buffer at the end of communication. The data buffer management method of the symptoms is provided.

【0010】すなわち、本発明では、プロトコル別のバ
ッファ管理を行うために、以下に示す手段を採用する。
That is, the present invention employs the following means in order to perform buffer management for each protocol.

【0011】(1)プロトコル種別に応じたバッファ管
理を行う管理テ−ブルを設ける。
(1) A management table is provided for buffer management according to the protocol type.

【0012】(2)回線速度、最大送信デ−タ長等のパ
ラメ−タに対応して、最適なバッファ数を格納したテ−
ブルを設ける。
(2) A data storing optimum number of buffers corresponding to parameters such as line speed and maximum transmission data length.
Provide a bull.

【0013】(3)ホストコンピュ−タからの指示によ
る、回線に対する定義時、および、定義の削除時に、プ
ロトコル種別に応じたバッファ管理テ−ブルに、バッフ
ァプ−ルよりハントしたバッファアドレスを登録し、ま
たは、あるいは登録したバッファをバッファプ−ルへ返
却する。
(3) Register the buffer address hunted from the buffer pool in the buffer management table according to the protocol type at the time of defining the line and deleting the definition according to the instruction from the host computer. , Or, or the registered buffer is returned to the buffer pool.

【0014】本発明では、ハイレベル手順については、
バッファを回線に共通に割り付けるので、バッファ数を
回線毎に変更可能とすることができる。この変更は、他
の回線が通信中でも可能に設定することができる。
In the present invention, for the high level procedure,
Since the buffers are commonly assigned to the lines, the number of buffers can be changed for each line. This change can be set even while another line is communicating.

【0015】前記プロトコルが単一の場合には、回線速
度または送信最大デ−タ長によってのみ最適なバッファ
を割り当てるようにすることができる。
When the protocol is single, the optimum buffer can be allocated only by the line speed or the maximum transmission data length.

【0016】前記送受信バッファ数の割り当ては、メモ
リ上のテ−ブルをプロトコル種別、および、回線速度ま
たは送信最大デ−タ長によって検索することにより行う
構成とすることができる。
The allocation of the number of transmission / reception buffers can be performed by searching the table in the memory according to the protocol type and the line speed or the maximum transmission data length.

【0017】[0017]

【作用】本発明においては、バッファを、プロトコル種
別に応じて、すなわち、ハイレベル手順用バッファ、ベ
ーシック手順用バッファに分けて割り付けている。これ
によって、ベーシック手順用のバッファが確実に確保で
きる。従来、ハイレベル手順の通信回線にかかる負荷に
よって、ベーシック手順用のバッファのハントが困難と
なる問題が解決される。
In the present invention, the buffers are allocated according to the protocol type, that is, divided into the high level procedure buffer and the basic procedure buffer. This ensures the buffer for the basic procedure. Conventionally, the problem that the buffer for the basic procedure is difficult to hunt due to the load on the communication line of the high level procedure is solved.

【0018】また、ハイレベル手順用バッファは、回線
対応ではなく、回線に共通に確保される。従って、各回
線が順次バッファを使用する。そして、プールバッファ
から必要な数のバッファを捕捉(ハント)して、それを
追加のハイレベル手順用バッファとする。これにより、
ハイレベル手順用のバッファが不足する場合でも、必要
に応じてバッファの領域を拡張することができる。さら
に、通信が終了した場合、確保していたハイレベル手順
用のバッファを、開放(フリー)する。また、プールバ
ッファからハントしたバッファは、プールバッファに戻
す。これにより、他の通信でバッファの使用が可能とな
る。従って、回線対応に大量のバッファを用意すること
が省ける。
Further, the high-level procedure buffer is not shared for each line but is commonly reserved for each line. Therefore, each line sequentially uses the buffer. It then grabs (hunts) the required number of buffers from the pool buffer and makes them additional high-level procedure buffers. This allows
Even if the buffer for the high-level procedure runs out, the buffer area can be expanded as needed. Further, when the communication ends, the secured high level procedure buffer is released (freed). The buffer hunted from the pool buffer is returned to the pool buffer. This allows the buffer to be used for other communications. Therefore, it is possible to omit preparing a large number of buffers for the line.

【0019】また、本発明によれば、次の効果を期待す
ることができる。
Further, according to the present invention, the following effects can be expected.

【0020】(1)送信バッファをプロトコル別に管理
するため、特定のプロトコルの回線に送信バッファが占
有され、他のプロトコルの回線で、バッファビジ−が発
生することはない。
(1) Since the transmission buffer is managed for each protocol, the transmission buffer is occupied by the line of the specific protocol, and the buffer busy does not occur in the line of the other protocol.

【0021】(2)送受信バッファ割当て、および返却
を回線定義時に行うので、各回線ごとにバッファ数を変
更可能であり、このとき他の通信中の回線に影響を与え
ない。
(2) Since transmission / reception buffer allocation and return are performed at the time of line definition, it is possible to change the number of buffers for each line without affecting other lines in communication.

【0022】(3)送受信バッファハントおよびフリ−
時に、バッファが既にハントおよびフリ−済であるかを
識別する情報をチェックすることにより、プログラム不
良等によるバッファの二重ハント、二重フリ−を検出す
る。
(3) Transmission / reception buffer hunt and free
At times, double hunting and double free of the buffer due to a program failure or the like is detected by checking information that identifies whether the buffer has already been hunted and freed.

【0023】また、本発明において、前記プロトコル種
別について、ハイレベル手順と、ベ−シック手順の2種
にのみ分類することにより、テ−ブルのメモリ量を少な
くすることができる。
In the present invention, the amount of memory in the table can be reduced by classifying the protocol types into only two types, a high level procedure and a basic procedure.

【0024】[0024]

【実施例】以下、本発明の実施例について、図面を用い
て具体的に説明する。
Embodiments of the present invention will be specifically described below with reference to the drawings.

【0025】図1は、本発明の一実施例が適用される通
信制御装置の構成の一例を示す。図1において、通信制
御装置100は、ホストコンピュータ200とチャネル
接続し、各種通信回線160と接続することにより、ホ
ストコンピュータ200と、他のホストコンピュータま
たは端末との間での通信を制御する。
FIG. 1 shows an example of the configuration of a communication control device to which an embodiment of the present invention is applied. In FIG. 1, the communication control device 100 controls communication between the host computer 200 and other host computers or terminals by channel-connecting with the host computer 200 and connecting with various communication lines 160.

【0026】通信制御装置100は、ホストインタフェ
ース制御、および、OSI基本参照モデルのレイヤ3制
御を行う上位プロトコル制御プロセッサ110と、ホス
トコンピュータ200からの指示に応じて、回線リソー
スおよびデータバッファリソースの割当て、管理を行う
リソース管理プロセッサ120と、通信を行う際のプロ
トコル種別に応じて、固有のプロトコル処理を行う下位
プロトコル制御プロセッサ130と、回線コントローラ
150と、各プロセッサ110,120および130か
らアクセス可能な共有メモリ140とを構成要素として
有する。
The communication control device 100 allocates line resources and data buffer resources in response to an instruction from the host protocol control processor 110 that performs host interface control and layer 3 control of the OSI basic reference model, and the host computer 200. , A resource management processor 120 for managing, a lower level protocol control processor 130 for performing a unique protocol processing according to a protocol type for communication, a line controller 150, and access from the respective processors 110, 120 and 130. The shared memory 140 is included as a component.

【0027】共有メモリ140は、指定されたプロトコ
ル種別に応じた割当てを行うバッファリソースである送
信データバッファ141と、受信データバッファ142
と、プロトコル種別に応じた送受信データバッファ割当
ての制御および管理を実現するためのバッファ管理情報
エリア143とを含む。
The shared memory 140 is a transmission data buffer 141 and a reception data buffer 142 which are buffer resources for performing allocation according to a designated protocol type.
And a buffer management information area 143 for realizing control and management of transmission / reception data buffer allocation according to the protocol type.

【0028】図2に、ハイレベル手順およびベーシック
手順のプロトコル階層とOSI基本参照モデル下位レイ
ヤ310との対応を示す。
FIG. 2 shows the correspondence between the protocol hierarchy of the high level procedure and the basic procedure and the OSI basic reference model lower layer 310.

【0029】実施例において、ハイレベル手順は、OS
I基本参照モデルのレイヤ1(物理層)に対応する回線
物理インタフェース制御320と、レイヤ2(データリ
ンク層)に対応するデータリンク制御330と、レイヤ
3(ネットワーク層)に対応するネットワーク制御34
0とを通信制御装置100で行い、レイヤ4以上の制御
をホストコンピュータ200で行う。すなわち、ハイレ
ベル手順は、回線リソースの割当て、データの送達確
認、再送制御等、レイヤ3までの制御を通信制御装置1
00で行う。
In the preferred embodiment, the high level procedure is the OS
Circuit physical interface control 320 corresponding to layer 1 (physical layer) of the I basic reference model, data link control 330 corresponding to layer 2 (data link layer), and network control 34 corresponding to layer 3 (network layer)
0 is performed by the communication control device 100, and control of layers 4 and above is performed by the host computer 200. That is, in the high-level procedure, the communication control device 1 controls the layer resources such as line resource allocation, data delivery confirmation, and retransmission control.
00.

【0030】ベーシック手順は、OSI基本参照モデル
に対応したレイヤ概念が無いため、回線物理インタフェ
ース制御320およびキャラクタ単位の制御を通信制御
装置100で行い、ホストコンピュータ200では、テ
キスト単位以上の制御を行う。すなわち、ベーシック手
順は、回線単位、テキスト単位の制御をホストコンピュ
ータ200が直接行う。
In the basic procedure, since there is no layer concept corresponding to the OSI basic reference model, the communication physical interface control 320 and the character unit control are performed by the communication control unit 100, and the host computer 200 controls the text unit or more. .. That is, in the basic procedure, the host computer 200 directly controls the line unit and the text unit.

【0031】このように、ホストコンピュータ200と
通信制御装置100の間で、制御レベルの異なるプロト
コル種別に対応した、二種類のインタフェースをサポー
トすることにより、伝送効率を上げることができる。通
信制御装置100とホストコンピュータ200との機能
分担の境界を、一点鎖線350で示す。
As described above, by supporting the two types of interfaces corresponding to the protocol types having different control levels between the host computer 200 and the communication control device 100, the transmission efficiency can be improved. The boundary of the function sharing between the communication control device 100 and the host computer 200 is indicated by a dashed line 350.

【0032】ホストコンピュータ200と通信制御装置
100の間で、制御レベルの異なるプロトコル種別の通
信を行なう場合に、バッファを効率よく割り付けること
が必要となる。本実施例は、バッファの状態をバッファ
リソース管理テーブルで管理し、リソース管理プロセッ
サ120がこのバッファリソース管理テーブル用いてリ
ソース管理を実行している。
When performing communication of protocol types having different control levels between the host computer 200 and the communication control device 100, it is necessary to allocate buffers efficiently. In this embodiment, the buffer state is managed by the buffer resource management table, and the resource management processor 120 uses this buffer resource management table to execute resource management.

【0033】先ず、送信バッファの管理について、図3
〜図7を参照して、説明する。
First, regarding the management of the transmission buffer, FIG.
~ It demonstrates with reference to FIG.

【0034】図3は、プロトコル種別に応じてバッファ
リソースを管理するための管理テーブル、および、管理
テーブルと送信バッファとの関係を示している。これら
の管理テーブルは、図1のバッファ管理情報エリア14
3内に存在する。また、送信バッファ450は、図1の
送信データバッファ141にある。
FIG. 3 shows a management table for managing buffer resources according to the protocol type, and the relationship between the management table and the transmission buffer. These management tables are stored in the buffer management information area 14 of FIG.
Exists within 3. Further, the transmission buffer 450 is in the transmission data buffer 141 of FIG.

【0035】これらの管理テーブルのうち、ハイレベル
手順用に割り当てたバッファを管理するテーブルとし
て、ハイレベル用バッファアドレステーブル410(以
下、HBAT)を設ける。HBAT410は、ビジーフ
ラグ411および送信バッファアドレス412から構成
される一面を単位とする、メモリ上の連続したエリアで
あり、エリアの先頭から順にサイクリックに使用する。
HBAT410は、ハイレベル用に割り当てた送信バッ
ファ一面に対し、その一面を設定する。本実施例におい
て、HBAT410は、1400面設けられている。
Of these management tables, a high level buffer address table 410 (hereinafter, HBAT) is provided as a table for managing the buffers allocated for the high level procedure. The HBAT 410 is a continuous area on the memory in units of one side composed of the busy flag 411 and the transmission buffer address 412, and is used cyclically from the beginning of the area.
The HBAT 410 sets one surface of the transmission buffer allocated for the high level. In this embodiment, the HBAT 410 is provided on 1400 surfaces.

【0036】このHBAT410を参照するために、H
BATポインタ440(以下、HBATP)が設けられ
る。HBATP440は、以下の三つのポインタから構
成される。HBAT410のメモリエリア上の先頭アド
レスを与えるバッファアドレステーブルヘッダポインタ
441と、HBAT410のメモリエリア上の最終面の
アドレスを与えるバッファアドレステーブルテイルポイ
ンタ442と、HBAT410のうちバッファアドレス
を格納したものの最終面のアドレスを与えるバッファア
ドレステーブル返却ポインタ443とである。
In order to refer to this HBAT410, H
A BAT pointer 440 (hereinafter, HBATP) is provided. The HBATP 440 is composed of the following three pointers. A buffer address table header pointer 441 that gives the start address on the memory area of the HBAT 410, a buffer address table tail pointer 442 that gives an address of the final surface on the memory area of the HBAT 410, and a buffer address table A buffer address table return pointer 443 for giving an address.

【0037】ベーシック手順用に割り当てたバッファを
参照するためのアドレステーブルとして、ベーシック用
バッファアドレステーブル460(以下、BBAT)を
設ける。BBAT460は、一回線当たり、それぞれ1
6面のバッファアドレス用のエリアを設けたテーブルで
ある。実際にバッファを割り付けたときに、このエリア
にバッファアドレスを格納する。
A basic buffer address table 460 (hereinafter referred to as BBAT) is provided as an address table for referring to the buffer allocated for the basic procedure. BBAT460 is 1 per line
It is a table in which six areas for buffer addresses are provided. The buffer address is stored in this area when the buffer is actually allocated.

【0038】ベーシック手順用に割り当てたバッファを
管理するためのテーブルとして、ベーシック用バッファ
管理テーブル430(以下、BBMT)を設ける。BB
MT430は、各回線に対応して一面ずつ設けられる。
一面の構成は、バッファ面数431、および、当該回線
に対応するBBATアドレス432からなる。
A basic buffer management table 430 (hereinafter, BBMT) is provided as a table for managing the buffer allocated for the basic procedure. BB
The MT 430 is provided on each side corresponding to each line.
The configuration of one side includes a buffer side number 431 and a BBAT address 432 corresponding to the line.

【0039】プロトコル種別対応に割付けを行う前のバ
ッファを管理するために、送信バッファプール管理テー
ブル420(以下、BPMT)を設ける。このテーブル
420は、次の要素から構成される。割付け前のプール
バッファの先頭アドレスを与えるプールバッファヘッダ
ポインタ421と、プールバッファの最終面のアドレス
を与えるプールバッファテイルポインタ422と、プー
ルバッファ数423と、プールバッファ数規制値424
とである。
A transmission buffer pool management table 420 (hereinafter, BPMT) is provided in order to manage the buffer before allocation according to the protocol type. This table 420 is composed of the following elements. A pool buffer header pointer 421 that gives the start address of the pool buffer before allocation, a pool buffer tail pointer 422 that gives the address of the last surface of the pool buffer, a pool buffer number 423, and a pool buffer number regulation value 424.
And.

【0040】プログラムローディング後の共有メモリ初
期設定の際、送信バッファのうち、所定の個数は、ハイ
レベル手順に対して割り付ける。これにより、送信バッ
ファ450の一部に、ハイレベル用固定割付バッファ4
54が設けられる。所定の個数分のHBAT410は、
ビジーフラグをオフ状態とし、割り付けた送信バッファ
アドレスを設定する。残りのHBAT410は、ビジー
フラグをオン状態とし、バッファアドレスエリアはクリ
ア状態とする。HBATP440のうち、返却ポインタ
443は、バッファを割り付けたHBAT410のうち
最終面のアドレスを設定する。
When the shared memory is initialized after the program is loaded, a predetermined number of transmission buffers are allocated to the high level procedure. As a result, the high-level fixed allocation buffer 4 is partially provided in the transmission buffer 450.
54 is provided. A certain number of HBATs 410
Turn off the busy flag and set the assigned transmit buffer address. The remaining HBATs 410 turn on the busy flag and clear the buffer address area. The return pointer 443 of the HBATP 440 sets the address of the final surface of the HBAT 410 to which the buffer is allocated.

【0041】このとき、ハイレベル手順に割り付けてい
ない残りのバッファは、プールバッファ455としてB
PMT420に登録する。このとき、プールバッファ数
を、プールバッファ数423とプールバッファ数規制値
424に設定する。ベーシック用の管理テーブル430
については、クリアした状態、すなわちバッファを割り
付けていない状態を初期設定する。
At this time, the remaining buffers not allocated to the high level procedure are pool buffers 455 and B
Register with PMT420. At this time, the number of pool buffers is set to the number 423 of pool buffers and the regulation value 424 of number of pool buffers. Management table 430 for basic
With regard to, the initial state is a cleared state, that is, a state in which no buffer is allocated.

【0042】このように、ハイレベル手順用およびベー
シック手順用に分けた2種類のバッファ管理テーブルを
設けることにより、プロトコル種別に応じたバッファ管
理を行うことが可能となる。
As described above, by providing the two types of buffer management tables for the high level procedure and the basic procedure, it becomes possible to perform the buffer management according to the protocol type.

【0043】各送信バッファ一面は、各データバッファ
についての制御情報を格納する制御情報エリア452
と、データエリア453とから構成される。制御情報エ
リア452中には、当該バッファがハントまたはフリー
された状態であることを示す識別用のコードであるバッ
ファ状態コード451を含む。
One side of each transmission buffer is a control information area 452 for storing control information about each data buffer.
And a data area 453. The control information area 452 includes a buffer status code 451 that is a code for identifying that the buffer is in the hunted or freed state.

【0044】次に、ハイレベル回線定義時に、バッファ
リソース管理テーブルの各テーブルがどうのように関連
付けられるかについて、図4に示すテーブル関連図を用
いて説明する。
Next, how the tables of the buffer resource management table are associated with each other when the high level line is defined will be described with reference to the table relation diagram shown in FIG.

【0045】ハイレベル手順定義時に、ハイレベル用バ
ッファをどの程度割り付けるかは、回線速度に応じて決
めることができる。そこで、回線速度コードをインデッ
クスとして、ハイレベル用バッファ面数を規定するハイ
レベル用バッファ面数テーブル530(以下、HBC
T)が設けられている。
When defining the high level procedure, how much the high level buffer is allocated can be determined according to the line speed. Therefore, using the line speed code as an index, a high-level buffer plane number table 530 (hereinafter, referred to as HBC)
T) is provided.

【0046】ホストコンピュータ200から、回線リソ
ースに対してハイレベル手順の定義指示を受けたとき、
リソース管理プロセッサ120は、回線速度コードをイ
ンデックスとして、HBCT530を検索することによ
り、その回線速度に最適な送信バッファ数を得る。この
数の送信バッファをプールバッファよりハントし、BP
MT420を更新する。このとき、ハントしたプールバ
ッファの数をプールバッファ規制値424から減算す
る。ハントしたバッファは、すでに、初期設定時に、ハ
イレベル用に割り当てているバッファにつなぐかたちで
HBAT410に追加登録し、HBATP440のバッ
ファアドレステーブル返却ポインタ443を更新する。
When a high-level procedure definition instruction is given to the line resource from the host computer 200,
The resource management processor 120 obtains the optimum number of transmission buffers for the line speed by searching the HBCT 530 using the line speed code as an index. Hunt this number of send buffers from the pool buffer and
Update MT 420. At this time, the number of hunted pool buffers is subtracted from the pool buffer regulation value 424. The hunted buffer is already additionally registered in the HBAT 410 by connecting to the buffer allocated for high level at the time of initial setting, and the buffer address table return pointer 443 of the HBATP 440 is updated.

【0047】ハイレベル回線定義ごとに、回線速度に応
じた数のバッファを、ハイレベル用に割り当てたバッフ
ァリソースにつないでいく。このバッファリソースは、
回線ごとに分割管理せず、ハイレベルに定義した回線の
間で共有する。これにより、高い回線速度、連続フレー
ム送信を行うため多くのバッファリソースを必要とする
ハイレベル手順を複数回線で行う場合にも、少ないメモ
リ量でこれを実現することができる。
For each high level line definition, a number of buffers corresponding to the line speed are connected to the buffer resources allocated for the high level. This buffer resource is
It is not managed separately for each line, but shared between lines defined at a high level. This makes it possible to realize this with a small amount of memory even when performing a high-level procedure that requires a large number of buffer resources for high line speed and continuous frame transmission with a plurality of lines.

【0048】ホストコンピュータ200よりハイレベル
用に定義された回線に対して、定義の削除が指示された
場合、リソース管理プロセッサ120は、当該回線定義
時に追加登録したバッファをバッファプールへ返却し、
BPMT420を更新する。このとき、返却するバッフ
ァの数を、プールバッファ数規制値424に加算する。
ハイレベル用に定義された回線に対する定義の削除が指
示されたときに、他の回線で一時的に多くのバッファを
占有しており、当該回線の定義に対して、付与された数
のバッファを返却できない場合には、実際に返却できる
数を返却するが、プールバッファ数規制値424には回
線定義時に付与された数を加算する。
When the host computer 200 instructs the line defined for high level to delete the definition, the resource management processor 120 returns the buffer additionally registered at the time of defining the line to the buffer pool,
Update the BPMT 420. At this time, the number of buffers to be returned is added to the pool buffer number regulation value 424.
When the deletion of the definition for the line defined for high level is instructed, another line temporarily occupies a large number of buffers, and the assigned number of buffers for the definition of the line is If it cannot be returned, the number that can actually be returned is returned, but the number given at the time of line definition is added to the pool buffer number regulation value 424.

【0049】次に、ベーシック回線定義時に、バッファ
リソース管理テーブルの各テーブルがどうのように関連
付けられるかについて、図5に示すテーブル関連図を用
いて説明する。
Next, how the tables of the buffer resource management table are associated with each other when defining the basic line will be described with reference to the table relation diagram shown in FIG.

【0050】ベーシック手順定義時に、最適な送信バッ
ファ数を与えるため、送信最大フレーム長コードをイン
デックスとして、ベーシック用バッファ面数を規定する
ベーシック用バッファ面数テーブル610(以下、BB
CT)が設けられている。
In order to give the optimum number of transmission buffers when defining the basic procedure, the basic buffer plane number table 610 (hereinafter, BB) which defines the number of basic buffer planes by using the maximum transmission frame length code as an index.
CT) is provided.

【0051】回線リソースに対してベーシック手順の定
義指示を受けたとき、リソース管理プロセッサ120
は、同時に指示された送信最大フレーム長コードをイン
デックスとして、BBC610を検索することにより、
最適な送信バッファ数を得る。所定の数の送信バッファ
をプールバッファ455よりハントし、BPMT420
を更新する。当該回線のBBMT430にバッファ面数
431を登録し、バッファアドレスをBBAT460に
設定する。
When a basic procedure definition instruction is received for a line resource, the resource management processor 120
Searches the BBC 610 using the maximum transmission frame length code simultaneously instructed as an index,
Get the optimal number of send buffers. Hunt a predetermined number of transmit buffers from the pool buffer 455 to allow the BPMT420
To update. The number of buffer surfaces 431 is registered in the BBMT 430 of the line, and the buffer address is set to BBAT 460.

【0052】ベーシック手順では、中低速の回線速度、
比較的短いフレーム長の送信を行うので、回線定義ごと
にバッファプールよりハントしたバッファを、各回線対
応にくくりつけても、バッファリソース量は問題となら
ない。これにより、各バッファのビジー管理を省き、バ
ッファ制御を簡単にすることが出来る。
In the basic procedure, medium and low line speed,
Since a relatively short frame length is transmitted, the buffer resource amount does not matter even if a buffer hunted from the buffer pool for each line definition is difficult to handle for each line. As a result, busy management of each buffer can be omitted and buffer control can be simplified.

【0053】ベーシック用に定義された回線に対して、
定義の削除が指示された場合、リソース管理プロセッサ
120は、当該回線に対して割り付けたバッファをバッ
ファプールへ返却する。当該回線対応のBBMT430
のバッファ面数431をクリアし、BPMT420を更
新する。
For the line defined for basic,
When the deletion of the definition is instructed, the resource management processor 120 returns the buffer allocated to the relevant line to the buffer pool. BBMT430 corresponding to the line
The buffer face number 431 of is cleared and the BPMT 420 is updated.

【0054】回線リソースに対する定義および定義の削
除は、ホストコンピュータ200から回線単位に指示す
るので、バッファ数を回線ごとに、また、他の回線が通
信中でも、変更可能である。
The definition of the line resource and the deletion of the definition are instructed from the host computer 200 on a line-by-line basis. Therefore, the number of buffers can be changed for each line or while another line is communicating.

【0055】次に、ハイレベル手順での送信時の動作に
ついて、ハイレベル手順でのデータ送信シーケンスを示
す図6を参照して説明する。
Next, the operation at the time of transmission in the high level procedure will be described with reference to FIG. 6 showing the data transmission sequence in the high level procedure.

【0056】ホストコンピュータ200からの送信指示
(611)を受けたとき、通信制御装置100は、ハイ
レベル用バッファリソースをハントし(612)、デー
タ送信に十分な面数のバッファが確保できれば、送信準
備完了(613)をホストコンピュータ200に通知す
る。バッファが確保できないときには、バッファビジー
を通知し、ホストコンピュータ200からのリトライを
待つ。
When receiving a transmission instruction (611) from the host computer 200, the communication control device 100 hunts the buffer resource for high level (612), and if a buffer with a sufficient number for data transmission can be secured, transmission is performed. The host computer 200 is notified of the completion of preparation (613). When the buffer cannot be secured, the buffer busy is notified and the host computer 200 waits for a retry.

【0057】送信準備完了613を受けたホストコンピ
ュータ200は、送信するデータを通信制御装置100
に転送(614)する。通信制御装置100は、この送
信データをハントしたバッファに格納(615)した
後、送信完了(616)をホストコンピュータ200に
通知し、相手局にデータを送信(617)する。この
後、通信制御装置100は、相手局からの受信データ
(618)を解析し、これが先の送信(617)に対す
る正常応答である場合には、先の送信データを格納して
いるバッファをフリー(619)する。
The host computer 200 having received the transmission preparation completion 613 transmits the data to be transmitted to the communication control device 100.
(614). The communication control device 100 stores the transmission data in the hunted buffer (615), notifies the host computer 200 of the transmission completion (616), and transmits the data to the partner station (617). Thereafter, the communication control device 100 analyzes the received data (618) from the partner station, and if this is a normal response to the previous transmission (617), frees the buffer storing the previous transmission data. (619)

【0058】このとき、一旦バッファプールへバッファ
を返却し、プールバッファ数規制値を越えた数のバッフ
ァをHBAT410に再度登録する。このようにして、
ある回線で通信中に一時的に多くのバッファを占有して
おり、他の回線に対する定義の削除に対して、付与され
た数のバッファを返却できない場合には、送信終了時の
バッファフリー時にバッファ数を調整する。
At this time, the buffers are once returned to the buffer pool, and the number of buffers exceeding the pool buffer number regulation value is registered again in the HBAT 410. In this way
If a certain line temporarily occupies a large number of buffers during communication and cannot delete the assigned number of buffers for the deletion of definitions for other lines, the buffer will be released at the end of transmission when the buffer is free. Adjust the number.

【0059】送信(617)に対する正常応答が、受信
できなかった場合、通信制御装置100は、バッファ内
のデータを再送する。
When the normal response to the transmission (617) cannot be received, the communication control device 100 retransmits the data in the buffer.

【0060】次に、ベーシック手順での送信時の動作に
ついて、ベーシック手順でのデータ送信シーケンスを示
す図7を参照して説明する。
Next, an operation at the time of transmission in the basic procedure will be described with reference to FIG. 7 showing a data transmission sequence in the basic procedure.

【0061】ホストコンピュータ200からの送信指示
(711)を受けたとき、通信制御装置100は、送信
指示を受付可能な状態であれば、送信準備完了(71
2)をホストコンピュータ200に通知する。送信準備
完了(712)を受けたホストコンピュータ200は、
送信するデータを通信制御装置100に転送(713)
する。通信制御装置100は、この送信データを当該回
線定義時に割り付けたバッファに格納(714)した
後、相手局にデータを送信(715)する。データ送信
(715)終了後、通信制御装置100は、ホストコン
ピュータ200に対して送信完了を通知(716)す
る。
When receiving a transmission instruction (711) from the host computer 200, the communication control device 100 is ready for transmission (71) if the transmission instruction can be accepted.
2) is notified to the host computer 200. The host computer 200 which has received the transmission preparation completion (712)
Transfer data to be transmitted to the communication control device 100 (713)
To do. The communication control device 100 stores this transmission data in the buffer allocated at the time of defining the line (714), and then transmits the data to the partner station (715). After the data transmission (715) ends, the communication control device 100 notifies the host computer 200 of the transmission completion (716).

【0062】次に、図8〜図9を用いて、受信バッファ
のバッファ管理について説明する。図8は、受信バッフ
ァリソースを管理するための管理テーブル、および管理
テーブルと受信バッファとの関係を示している。
Next, buffer management of the reception buffer will be described with reference to FIGS. FIG. 8 shows a management table for managing the reception buffer resource and the relationship between the management table and the reception buffer.

【0063】これらの管理テーブルは、図1のバッファ
管理情報エリア143内に存在する。受信バッファの管
理テーブルは、プロトコル種別対応に分けず、共通のテ
ーブルを使用する。各受信バッファに対して、受信バッ
ファアドレステーブル820(以下、RBAT)を設け
る。RBAT820は、ビジーフラグ821、受信バッ
ファアドレス822から構成される。
These management tables exist in the buffer management information area 143 of FIG. The management table of the reception buffer is not divided according to the protocol type but uses a common table. A reception buffer address table 820 (hereinafter, RBAT) is provided for each reception buffer. The RBAT 820 includes a busy flag 821 and a reception buffer address 822.

【0064】受信の場合は、ハイレベル手順において
も、各通信回線毎にバッファ管理を行う。ホストコンピ
ュータ200より、回線の定義が指示されたとき、バッ
ファプールよりハントしたバッファを、受信バッファ登
録テーブル810(以下、RBST)に登録する。RB
ST810の1面の構成は、ハントした先頭バッファの
RBATを格納するRBATアドレス811、バッファ
内データ長812、ハントしたバッファ数を格納するR
BAT数813から成る。
In the case of reception, the buffer is managed for each communication line even in the high level procedure. When the host computer 200 instructs the line definition, the buffer hunted from the buffer pool is registered in the reception buffer registration table 810 (hereinafter, RBST). RB
The configuration of the first surface of ST810 is as follows: RBAT address 811, which stores the RBAT of the hunted head buffer, data length 812 in the buffer, and R, which stores the number of hunted buffers.
It is composed of 813 BAT numbers.

【0065】受信バッファプールを管理するために、受
信バッファプール管理テーブル840(以下、RPM
T)を設ける。このテーブルは、次の要素から構成され
る。割付け前のプールバッファの先頭アドレスを与える
プールバッファヘッダポインタ841、プールバッファ
の最終面のアドレスを与えるプールバッファテイルポイ
ンタ822、プールバッファ数843、プールバッファ
数規制値844である。
In order to manage the reception buffer pool, a reception buffer pool management table 840 (hereinafter, RPM
T) is provided. This table consists of the following elements. A pool buffer header pointer 841 that gives the start address of the pool buffer before allocation, a pool buffer tail pointer 822 that gives the address of the last surface of the pool buffer, the number of pool buffers 843, and a pool buffer number regulation value 844.

【0066】ハイレベル手順において回線が定義された
ときに、回線速度コードをインデックスとして、その回
線速度に最適な受信バッファ数を得るために、受信バッ
ファ面数テーブル830(以下、RBCT)を設ける。
受信の場合、ベーシック手順は、回線毎に一定のバッフ
ァ数の割り当てを行う。
When a line is defined in the high level procedure, a reception buffer plane number table 830 (hereinafter, RBCT) is provided to use the line speed code as an index to obtain the optimum number of reception buffers for the line speed.
For reception, the basic procedure allocates a fixed number of buffers for each line.

【0067】次に、ハイレベル手順での受信時の動作に
ついて、ハイレベル手順でのデータ受信シーケンスを示
す図9を参照して説明する。
Next, the operation at the time of reception in the high level procedure will be described with reference to FIG. 9 showing the data reception sequence in the high level procedure.

【0068】相手局よりデータを受信(911)したと
き、通信制御装置100は、受信データをバッファ内に
格納し(912)、この受信で使用したバッファ面数だ
けバッファプールより受信バッファを、さらにハント
(913)する。このようにして、回線速度が高く、連
続的にデータを受信する場合にも、バッファビジーによ
るオーバランを避けるため、次の受信に備えて一定のバ
ッファ数を確保する。
When data is received from the partner station (911), the communication control device 100 stores the received data in the buffer (912), and the reception buffer is further expanded from the buffer pool by the number of buffer planes used in this reception. Hunt (913). In this way, even when the line speed is high and data is continuously received, a constant number of buffers is secured in preparation for the next reception in order to avoid overrun due to buffer busy.

【0069】この後、通信制御装置100は、ホストコ
ンピュータ200に対して、受信完了を通知(914)
する。ホストコンピュータ200からの受信準備完了通
知(915)を受けた後に、通信制御装置100は、受
信データを転送し(916)、この後、受信バッファを
フリーし(917)、バッファプールへ返却する。
Thereafter, the communication control device 100 notifies the host computer 200 of the reception completion (914).
To do. After receiving the reception preparation completion notification (915) from the host computer 200, the communication control device 100 transfers the reception data (916), then releases the reception buffer (917) and returns it to the buffer pool.

【0070】次に、ベーシック手順での受信時の動作に
ついて、ベーシック手順でのデータ受信シーケンスを示
す図10を参照して説明する。
Next, the operation at the time of reception in the basic procedure will be described with reference to FIG. 10 showing the data reception sequence in the basic procedure.

【0071】ホストコンピュータ200からの受信指示
(1011)を受けた後、通信制御装置100は、相手
局からのデータ受信1012に対して、受信データをバ
ッファ内に格納し(1013)、使用した受信バッファ
のビジーフラグをオンにする。この後、ホストコンピュ
ータ200に対して、受信完了通知(1014)を行
い、続いて受信データを転送(1015)する。
After receiving the reception instruction (1011) from the host computer 200, the communication control device 100 stores the received data in the buffer (1013) in response to the data reception 1012 from the partner station and uses the received data. Turn on the busy flag for the buffer. After that, the reception completion notification (1014) is sent to the host computer 200, and then the received data is transferred (1015).

【0072】この後、通信制御装置100は、使用して
いた受信バッファのビジーフラグをオフ(1016)に
する。ベーシック手順では、基本的に1回のホストコン
ピュータの指示に対して、1テキストのデータ受信を行
う。また、中低速の回線速度、比較的短いデータ長での
受信が主である。これより、受信バッファのハントおよ
びフリーは行わず、回線定義の際に割り付けた、固定の
受信バッファをビジーフラグを用いて管理し、使用する
ことで、受信バッファ管理を簡略にすることが出来る。
After that, the communication control device 100 turns off (1016) the busy flag of the reception buffer that has been used. In the basic procedure, basically, one text data is received in response to one instruction from the host computer. In addition, reception is mainly done with medium to low line speeds and relatively short data lengths. As a result, the reception buffer management can be simplified by using the busy flag to manage and use the fixed reception buffer allocated at the time of line definition without hunting or freeing the reception buffer.

【0073】上記実施例において、リソース管理プロセ
ッサ120は、送受信バッファをハントおよびフリーす
るときに、バッファ内のバッファ状態コード451をチ
ェックする。また、ハントおよびフリーしたとき、バッ
ファ状態コード451を書き替える。これにより、プロ
グラム不良などによるバッファの二重ハント、二重フリ
ーを防止することができる。
In the above embodiment, the resource management processor 120 checks the buffer status code 451 in the buffer when hunting and freeing the send / receive buffer. Further, when the hunt and the free state are performed, the buffer status code 451 is rewritten. As a result, it is possible to prevent double hunting and double freeing of the buffer due to defective programming or the like.

【0074】以上説明した実施例では、プロトコルとし
て、ハイレベル手順と、ベーシック手順の2種の場合に
ついて、説明した。しかし、本発明は、この2種に限ら
れるものではない。他のプロトコルについても適用可能
である。また、3種以上のプロトコルが用いられる場合
にも適用可能である。その場合は、例えば、バッファを
種類態様に割り付ければよい。
In the above-described embodiments, two types of protocols, a high level procedure and a basic procedure, have been described. However, the present invention is not limited to these two types. It is also applicable to other protocols. It is also applicable when three or more protocols are used. In that case, for example, the buffers may be assigned to the types.

【0075】[0075]

【発明の効果】本発明によれば、次の効果がある。The present invention has the following effects.

【0076】(1)送信バッファをプロトコル別に管理
するため、特定のプロトコルの回線に送信バッファが占
有され、他のプロトコルの回線で、バッファビジーが発
生による待ち時間が生じない円滑な通信を行うことがで
きる。
(1) Since the transmission buffer is managed for each protocol, the transmission buffer is occupied by the line of the specific protocol, and the communication of the other protocol is performed smoothly without waiting time due to the occurrence of buffer busy. You can

【0077】(2)送受信バッファについて、プロトコ
ルの特徴に応じたバッファ数の割り当てを行うので、バ
ッファに要するメモリ量を少なくすることができる。
(2) Since the number of buffers is allocated to the transmission / reception buffers according to the characteristics of the protocol, the amount of memory required for the buffers can be reduced.

【0078】(3)送受信バッファ割当て、および返却
を回線定義時に行うので、各回線ごとにバッファ数を変
更可能であり、このとき、他の通信中の回線に影響を与
えない。
(3) Since transmission / reception buffer allocation and return are performed at the time of line definition, it is possible to change the number of buffers for each line, and at this time, other communication lines are not affected.

【0079】(4)送受信バッファハントおよびフリー
時に、バッファが既にハントおよびフリー済であるかを
識別する情報をチェックすることにより、プログラム不
良等によるバッファの二重ハント、二重フリーを検出す
る。
(4) During transmission / reception buffer hunt and free, by checking the information for identifying whether the buffer has already been hunted and freed, double hunting and double freeing of the buffer due to a defective program or the like are detected.

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

【図1】本発明のデータバッファ管理システムの一実施
例を実現する通信制御装置の一例の構成を示すブロック
図である。
FIG. 1 is a block diagram showing a configuration of an example of a communication control device for realizing an embodiment of a data buffer management system of the present invention.

【図2】プロトコルの階層を示す説明図である。FIG. 2 is an explanatory diagram showing a hierarchy of protocols.

【図3】送信バッファリソース管理テーブルのテーブル
関連図である。
FIG. 3 is a table related diagram of a transmission buffer resource management table.

【図4】ハイレベル回線定義時の送信バッファ管理テー
ブル関連図である。
FIG. 4 is a diagram relating to a transmission buffer management table when a high level line is defined.

【図5】ベーシック回線定義時の送信バッファ管理テー
ブル関連図である。
FIG. 5 is a diagram relating to a transmission buffer management table when defining a basic line.

【図6】ハイレベル手順でのデータ送信シーケンス図で
ある。
FIG. 6 is a data transmission sequence diagram in a high level procedure.

【図7】ベーシック手順でのデータ送信シーケンス図で
ある。
FIG. 7 is a data transmission sequence diagram in the basic procedure.

【図8】受信バッファリソース管理テーブルのテーブル
関連図である。
FIG. 8 is a table related diagram of a reception buffer resource management table.

【図9】ハイレベル手順でのデータ受信シーケンス図で
ある。
FIG. 9 is a data reception sequence diagram in a high level procedure.

【図10】ベーシック手順でのデータ受信シーケンス図
である。
FIG. 10 is a data reception sequence diagram in the basic procedure.

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

100…通信制御装置、120…リソース管理プロセッ
サ、140…共有メモリ、143…バッファ管理情報エ
リア、200…ホストコンピュータ、410…ハイレベ
ル用バッファアドレステーブル(HBAT)、460…
ベーシック用バッファアドレステーブル(BBAT)。
100 ... Communication control device, 120 ... Resource management processor, 140 ... Shared memory, 143 ... Buffer management information area, 200 ... Host computer, 410 ... High-level buffer address table (HBAT), 460 ...
Basic buffer address table (BBAT).

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】複数の回線を用い、上位装置から回線への
送信および回線から上位装置への受信の制御を行なう通
信制御装置におけるデータバッファ管理システムであっ
て、 通信データを一時格納するバッファを構成するメモリ
と、このメモリ内に構成されるバッファを各回線に割り
付ける制御を行なうリソース管理プロセッサとを有し、 メモリは、送信データを格納する送信バッファと、受信
データを格納する受信バッファと、リソース管理プロセ
ッサがバッファを管理するための情報を格納するバッフ
ァ管理情報エリアとを有し、 バッファ管理情報エリアは、プロトコルごとのリソース
管理テーブルを有し、これらの管理テーブルには、少な
くとも送信バッファを管理する管理テーブル群を含み、
この送信バッファを管理するテーブル群は、送信バッフ
ァを、適用されるプロトコルの少なくとも1種につい
て、固定的に割り付けられるバッファ群と、適用される
プロトコルの他の種について、回線対応に割り付けられ
るバッファ群と、いずれにも割り付けられないプールバ
ッファ群とを定義する情報と、プールバッファ群を、上
記固定的に割り付けられるバッファ群に追加設定すると
共に、それを返却する管理を行なうバッファプール管理
情報とが記述されるものであること、 を特徴とするデータバッファ管理システム。
1. A data buffer management system in a communication control device for controlling transmission from a higher-level device to a line and reception from a higher-level device using a plurality of lines, comprising a buffer for temporarily storing communication data. The memory includes a constituent memory, and a resource management processor that controls allocation of a buffer configured in the memory to each line. The memory includes a transmission buffer that stores transmission data, a reception buffer that stores reception data, and The resource management processor has a buffer management information area for storing information for managing the buffer, and the buffer management information area has a resource management table for each protocol, and these management tables include at least a transmission buffer. Including management table group to manage,
The group of tables for managing the transmission buffer is a group of buffers that are fixedly allocated to at least one type of applied protocol, and a group of buffers that are allocated line-correspondingly to other types of applied protocol. And information that defines a pool buffer group that cannot be allocated to any of them, and buffer pool management information that additionally manages the pool buffer group to the buffer group that is fixedly allocated and that returns the pool buffer management information. A data buffer management system characterized by being described.
【請求項2】複数の回線を用い、上位装置から回線への
送信および回線から上位装置への受信の制御を行なう通
信制御装置において、データを一時格納するメモリにお
けるデータバッファ管理方法であって、 メモリのデータ格納領域を複数面のバッファ領域に分
け、少なくとも送信データを格納する領域について、ハ
イレベル手順用には、予め定めた複数面を固定的に割付
け、ベーシック手順用には、回線対応に予め定めた面数
分割付け、いずれにも割り付けられないものをプールバ
ッファとしてプールし、 ハイレベル手順用に割り付けられたバッファ領域は、各
回線で共有して使用し、不足分は、プルーバッファを確
保して、追加のバッファ領域とし、通信終了時には、プ
ールバッファに返却することを特徴とするデータバッフ
ァ管理方法。
2. A data buffer management method in a memory for temporarily storing data in a communication control device for controlling transmission from a host device to a line and reception from a line to a host device by using a plurality of lines. Divide the data storage area of the memory into multiple buffer areas, and at least the area to store the transmission data, fixedly allocate multiple predetermined areas for the high-level procedure, and make a line correspondence for the basic procedure. A predetermined number of faces is divided, pools that cannot be allocated to any of them are pooled, and the buffer area allocated for high-level procedures is shared by each line and used. Data buffer management method that secures it as an additional buffer area and returns it to the pool buffer at the end of communication .
JP4064185A 1992-03-19 1992-03-19 Data buffer management system Pending JPH05268291A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4064185A JPH05268291A (en) 1992-03-19 1992-03-19 Data buffer management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4064185A JPH05268291A (en) 1992-03-19 1992-03-19 Data buffer management system

Publications (1)

Publication Number Publication Date
JPH05268291A true JPH05268291A (en) 1993-10-15

Family

ID=13250754

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4064185A Pending JPH05268291A (en) 1992-03-19 1992-03-19 Data buffer management system

Country Status (1)

Country Link
JP (1) JPH05268291A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09114761A (en) * 1995-10-20 1997-05-02 Nec Software Ltd Data communication system
JP2000284980A (en) * 1999-01-28 2000-10-13 Mitsubishi Electric Inf Technol Center America Inc Multi-task system and message transmission scheduling method in the system
JP2006330812A (en) * 2005-05-23 2006-12-07 Fujitsu Ltd Data buffer monitoring device in multiprocessor system, and method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09114761A (en) * 1995-10-20 1997-05-02 Nec Software Ltd Data communication system
JP2000284980A (en) * 1999-01-28 2000-10-13 Mitsubishi Electric Inf Technol Center America Inc Multi-task system and message transmission scheduling method in the system
JP2006330812A (en) * 2005-05-23 2006-12-07 Fujitsu Ltd Data buffer monitoring device in multiprocessor system, and method thereof

Similar Documents

Publication Publication Date Title
US5590328A (en) Protocol parallel processing apparatus having a plurality of CPUs allocated to process hierarchical protocols
JP3382953B2 (en) Client management flow control method and apparatus on finite memory computer system
EP0308408B1 (en) Information transfer method and arrangement
KR100326864B1 (en) Network communication method and network system
US5526492A (en) System having arbitrary master computer for selecting server and switching server to another server when selected processor malfunctions based upon priority order in connection request
US5530905A (en) Temporary state preservation for a distributed file service which purges virtual circuit control information after expiration of time limit of inactivity
US5781741A (en) Message communications system in a parallel computer
JPH0675262B2 (en) Message transfer mechanism
JPH0682347B2 (en) Distributed processing system and distributed processing cooperation method
JPH05204835A (en) General purpose device for connecting bus of computer to controller of peripheral equipment
US20060059244A1 (en) Communication mechanism and method for easily transferring information between processes
JPH01137356A (en) Inter-process communication
US5958032A (en) Data processing and communicating system with high throughput peripheral component interconnect bus
JPH05268291A (en) Data buffer management system
JPH11149387A (en) Common device control method and its implementing device
JPH09224066A (en) Communication protocol parallel processor
JP3644158B2 (en) Data transmission / reception method in parallel computer
JPH11149455A (en) Memory disk sharing method and its executing device
JPH02268046A (en) Packet multiplexer
JPH06132999A (en) Protocol mapping method
JPS61195439A (en) Remote file access system
JP2723245B2 (en) Facsimile storage and switching equipment
JPS63121342A (en) Reception buffer control system for communication processing equipment
JP3524338B2 (en) Fabric with storage device and control device thereof
JP3168254B2 (en) Message processing method in distributed processing