JPH10301872A - Communication control system - Google Patents

Communication control system

Info

Publication number
JPH10301872A
JPH10301872A JP12163297A JP12163297A JPH10301872A JP H10301872 A JPH10301872 A JP H10301872A JP 12163297 A JP12163297 A JP 12163297A JP 12163297 A JP12163297 A JP 12163297A JP H10301872 A JPH10301872 A JP H10301872A
Authority
JP
Japan
Prior art keywords
buffer
channel
dedicated
data
setting
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
JP12163297A
Other languages
Japanese (ja)
Inventor
Takeshi Onodera
剛 小野寺
Mitsuo Asai
光男 浅井
Yoshihiro Takiyasu
美弘 滝安
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 JP12163297A priority Critical patent/JPH10301872A/en
Publication of JPH10301872A publication Critical patent/JPH10301872A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To guarantee transfer quality for each channel and to efficiently perform even data communication by the channel of low transfer quality by referring to a first table, searching a buffer without dedication setting, setting a new channel to a second table and setting the buffer without the dedication setting corresponding to the new channel to be usable. SOLUTION: A dedication setting condition column 404 is referred to from the buffer 0 in a buffer management table 401, and when dedication is not performed, in a channel management table 501, the pertinent buffer column 503a of a channel column 502 corresponding to the requested new channel is set to be usable. In the case of allocating dedicated buffer, when the dedication attribute column 403 of a reference buffer is set to dedicatable and the dedication setting condition column 404 is set to sharing, the dedication setting condition column 404 is set to dedication and all the pertinent buffer columns 503a for the other channels of the channel management table 501 are set to unusable.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はデータ通信装置にお
ける通信制御方式に係り、特にチャネルを通信装置の初
期化時以降に設定する際にチャネル毎にデータパケット
を格納するためのバッファを割り当て、このバッファを
用いてデータ通信を行う通信制御方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication control method in a data communication device, and more particularly, to assigning a buffer for storing a data packet for each channel when setting a channel after the initialization of the communication device. The present invention relates to a communication control method for performing data communication using a buffer.

【0002】[0002]

【従来の技術】ネットワークを介してデータ通信を行う
場合、通信装置は受信したデータパケットを通信装置へ
の到着順に受信バッファに一時格納する。そして、デー
タコピーや廃棄等の処理を行うまで該当するバッファに
データパケットを格納し続ける。そのため、受信バッフ
ァが事前に受信したデータパケットですべて使用されて
受信バッファが枯渇している場合には、新しく到着した
データパケットを無条件に廃棄する。データ送信を行う
場合にも受信と同様に、通信装置は送信要求が発行され
た順にデータパケットを送信バッファに一時格納する。
そして、送信処理が終了するまで該当するバッファにデ
ータパケットを格納し続ける。そのため、バッファが事
前に送信要求のあったデータパケットですべて使用され
送信バッファが枯渇している場合には、送信要求を無条
件に拒否する。
2. Description of the Related Art When performing data communication via a network, a communication device temporarily stores received data packets in a reception buffer in the order of arrival at the communication device. Then, the data packet is kept stored in the corresponding buffer until processing such as data copying or discarding is performed. Therefore, when the reception buffer is completely used by the data packets received in advance and the reception buffer is depleted, the newly arrived data packet is unconditionally discarded. When performing data transmission, similarly to reception, the communication device temporarily stores data packets in the transmission buffer in the order in which the transmission requests are issued.
Then, the data packet is kept stored in the corresponding buffer until the transmission processing ends. Therefore, if the buffer is completely used by data packets for which a transmission request has been made in advance and the transmission buffer is exhausted, the transmission request is rejected unconditionally.

【0003】一方、近年のデータ通信方式ではATM(エ
イティエム:Asynchronous TransferMode)等のよう
に、データ通信を行うためのチャネルを複数同時に設定
可能になり、また各チャネル毎に通信帯域と転送品質を
設定可能になった。従来のバッファ割当方法では、チャ
ネル毎に設定した転送品質を守るために、通信装置の初
期化時に高い転送品質に設定されているチャネルには、
該当するチャネルのみが使用可能な送受信バッファを一
定量確保する。こうすることにより、優先度の低いチャ
ネルのデータパケットによる送受信バッファの枯渇を防
ぎチャネル毎の転送品質を保証しようとする。
On the other hand, in recent data communication systems, a plurality of channels for performing data communication can be simultaneously set, such as ATM (Asynchronous Transfer Mode), and the communication band and transfer quality are set for each channel. Configurable. In the conventional buffer allocation method, in order to protect the transfer quality set for each channel, a channel set to a high transfer quality when the communication device is initialized includes:
A certain amount of transmission / reception buffer that can be used only by the corresponding channel is secured. By doing so, it is possible to prevent the transmission / reception buffer from being exhausted due to the data packet of the low priority channel and to guarantee the transfer quality for each channel.

【0004】[0004]

【発明が解決しようとする課題】ATMのチャネル設定制
御には、データ通信に用いるチャネルを通信装置の初期
化時に固定的に決めてしまうPVC(ピーブイシー:Perma
nent Virtual Connection)の他に、通信装置の動作中
にチャネルの設定を変更可能であるSVC(エスブイシ
ー:Switched Virtual Connection )という二通りの方
式が標準化されている。上記した従来のバッファ割当方
法では、通信装置が初期化時にチャネル毎に利用可能な
バッファ量を固定してしまうため、SVC等を用いて動的
にチャネルの設定状況を変更した場合には、最適なバッ
ファ割当は望めずにバッファの有効利用が不可能にな
る。
In the channel setting control of the ATM, a channel (PVC: Permatrix: Permatrix) which fixedly determines a channel used for data communication when the communication device is initialized.
In addition to NVC (Nent Virtual Connection), two other systems, SVC (Switched Virtual Connection), which can change channel settings during operation of the communication device, are standardized. In the above-described conventional buffer allocation method, the communication device fixes the available buffer amount for each channel at the time of initialization, so if the channel setting status is dynamically changed using SVC or the like, the optimal Without efficient buffer allocation, effective use of the buffer becomes impossible.

【0005】具体的には、次のような問題が発生する。
通信装置の初期化時に高い転送品質のチャネル専用に多
くのバッファを割当てた場合、SVC等により実際には低
い転送品質のチャネルが多く設定されたりすると、送受
信バッファ全体の量は十分であるにも関わらず、チャネ
ルで利用可能なバッファ量が少ないためデータパケット
の廃棄等が頻繁に発生し転送速度が低く抑えられてしま
う。逆に高い転送品質チャネル専用のバッファ量を少な
く割当てた場合には、低い転送品質のチャネルによるデ
ータパケットと高い転送品質のチャネルによるデータパ
ケットの間で、送受信バッファの取り合いが頻繁に発生
するため、高い転送品質のチャネルの通信帯域の保証が
不可能になる。そのために通信装置のユーザは高い転送
品質のチャネルによるデータ通信中には、低い転送品質
のチャネルによるデータ通信を行わない等とする運用面
での注意が必要になる。本発明の目的は、動的にチャネ
ルの設定を変化させた場合でも、チャネル毎に設定した
転送品質を保証し、かつ低い転送品質のチャネルによる
データ通信もできるだけ効率よく行えるバッファ割り当
てを行い、該バッファを用いてデータ通信を行う通信制
御方式を提供することにある。
Specifically, the following problem occurs.
If a large number of buffers are allocated exclusively for channels with high transfer quality at the time of initialization of the communication device, and if many channels with low transfer quality are actually set by SVC or the like, the amount of the entire transmit / receive buffer may be sufficient. Regardless, since the amount of buffer available in the channel is small, data packets are frequently discarded and the transfer speed is reduced. Conversely, if a small amount of buffer is dedicated to a high transfer quality channel, transmission and reception buffers frequently occur between data packets of the low transfer quality channel and data packets of the high transfer quality channel. It is impossible to guarantee the communication band of a channel with high transfer quality. For this reason, the user of the communication apparatus needs to pay attention in operation such as not performing data communication using a low transfer quality channel during data communication using a high transfer quality channel. An object of the present invention is to perform a buffer allocation that guarantees the transfer quality set for each channel even when the channel setting is dynamically changed, and enables data communication with a channel of low transfer quality to be performed as efficiently as possible. An object of the present invention is to provide a communication control method for performing data communication using a buffer.

【0006】[0006]

【課題を解決するための手段】上記課題を解決するた
め、本発明は、データパケットに分割されたデータを指
定されたチャネルによりネットワークを介してデータ通
信し、かつ、データパケットを送受信するために少なく
とも1つ以上のバッファを持つ通信装置における通信制
御方式であり、前記各バッファ毎の専用化設定状況を示
す第1のテーブルと、前記各チャネル対応に前記各バッ
ファの使用可、使用不可を示す第2のテーブルを設け、
新規チャネル要求の発行に応じて該チャネルに前記バッ
ファを割り当てる際、前記第1のテーブルを参照し、専
用化設定されていないバッファを探索し、前記第2のテ
ーブルに前記新規チャネルを設定し、該新規チャネルに
対応する前記各バッファのうち、前記探索した専用化設
定されていないバッファを使用可に設定する手段を備
え、該新規チャネルが利用できるバッファの上限を設定
するようにしている。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the present invention provides a method for performing data communication of data divided into data packets through a specified channel through a network, and transmitting and receiving data packets. A communication control method in a communication device having at least one or more buffers, a first table indicating a dedicated setting status of each buffer, and indicating whether each buffer can be used or not used for each channel. Set up a second table,
When allocating the buffer to the channel in response to the issuance of a new channel request, refer to the first table, search for a buffer that is not set for exclusive use, set the new channel in the second table, Among the buffers corresponding to the new channel, there is provided a means for setting the searched buffer, which has not been set for exclusive use, to be usable, so as to set an upper limit of buffers that can be used by the new channel.

【0007】さらに、前記新規チャネルに専用バッファ
を割り当てる際、割り当てる専用バッファ量を決定する
手段と、前記第1のテーブルを参照し、専用化設定され
ていないバッファを探索し、該第1のテーブルにおいて
該探索したバッファを専用化設定し、前記第2のテーブ
ルにおいて前記新規チャネル以外のチャネルに対応する
各バッファのうち前記探索したバッファを使用不可に設
定する手段を備えるようにしている。
Further, when allocating a dedicated buffer to the new channel, means for determining a dedicated buffer amount to be allocated, and referring to the first table, searching for a buffer not set for exclusive use, and And means for setting the searched buffer to exclusive use, and setting the searched buffer to be unusable among the buffers corresponding to the channels other than the new channel in the second table.

【0008】また、データパケットに分割されたデータ
を指定されたチャネルによりネットワークを介してデー
タ通信し、かつ、データパケットを送受信するために少
なくとも1つ以上のバッファを持つ通信装置における通
信制御方式であり、前記各バッファ毎の専用化設定状況
を示す第1のテーブルと、前記各チャネル対応に前記各
バッファの使用可、使用不可を示す第2のテーブルと、
前記各バッファが使用中であるか否かを示す第3のテー
ブルを備え、受信処理要求が発行されたとき、前記第2
のテーブルを参照し、該受信処理要求のチャネルに対応
する各バッファから使用可能なバッファを選択し、かつ
第3のテーブルを参照して該選択したバッファが使用中
でないとき、該バッファに受信したデータパケットを格
納する手段を備えるようにしている。
A communication control method in a communication device having at least one buffer for transmitting and receiving data divided into data packets through a network through a designated channel and transmitting and receiving the data packets. A first table indicating a dedicated setting state for each buffer, a second table indicating whether each buffer can be used or not used for each channel,
A third table indicating whether each of the buffers is in use or not, and when a reception processing request is issued, the second table
And selects an available buffer from each buffer corresponding to the channel of the reception processing request, and when the selected buffer is not in use by referring to the third table, Means for storing the data packet is provided.

【0009】また、データパケットに分割されたデータ
を指定されたチャネルによりネットワークを介してデー
タ通信し、かつ、データパケットを送受信するために少
なくとも1つ以上のバッファを持つ通信装置における通
信制御方式であり、前記各バッファ毎の専用化設定状況
を示す第1のテーブルと、前記各チャネル対応に前記各
バッファの使用可、使用不可を示す第2のテーブルと、
前記各バッファが使用中であるか否かを示す第3のテー
ブルを備え、送信処理要求が発行されたとき、前記第2
のテーブルを参照し、該送信処理要求のチャネルに対応
する各バッファから使用可能なバッファを選択し、かつ
第3のテーブルを参照して該選択したバッファが使用中
でないとき、該バッファに送信するデータパケットを格
納する手段を備えるようにしている。
A communication control method in a communication device having at least one buffer for transmitting and receiving data divided into data packets via a network through a designated channel and transmitting and receiving the data packets. A first table indicating a dedicated setting state for each buffer, a second table indicating whether each buffer can be used or not used for each channel,
A third table indicating whether each of the buffers is in use or not, and when a transmission processing request is issued, the second table
And selects an available buffer from each buffer corresponding to the channel of the transmission processing request, and transmits to the buffer when the selected buffer is not in use by referring to the third table. Means for storing the data packet is provided.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施例を詳細に説
明する。図1は、実施例におけるバッファ割当処理のフ
ローチャートを示し、図2は、該バッファ割当処理が実
施される通信装置の構成を示すブロック図である。図2
において、通信装置201は、送信するデータを通信プ
ロトコルが規定する最大転送サイズに分割したり、受信
したデータパケットの組立処理を行うCPU202と、
データを格納するメモリ203と、データが経由するホ
ストバス204と、外部とのデータ入出力を行うための
I/Oバス204と、ネットワーク213を介してデー
タ通信を行うネットワークアダプタ207から構成され
る。さらに、ネットワークアダプタ207は、ネットワ
ーク213からデータパケットを受信するデータ受信部
210と、データパケットを送信するデータ送信部21
1と、送受信に必要なテーブルを格納する制御用メモリ
212と、送受信するデータパケットを一時格納するた
めのデータパケット用メモリ209と、加えてI/Oバ
ス206を制御しデータパケット用メモリ209とメモ
リ203間とのデータ転送を制御するI/Oバス制御部
208から構成される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of the present invention will be described in detail. FIG. 1 is a flowchart of a buffer allocation process in the embodiment, and FIG. 2 is a block diagram illustrating a configuration of a communication device in which the buffer allocation process is performed. FIG.
, A communication device 201 divides data to be transmitted into a maximum transfer size defined by a communication protocol, and performs a process of assembling a received data packet;
It comprises a memory 203 for storing data, a host bus 204 through which data passes, an I / O bus 204 for inputting and outputting data to and from the outside, and a network adapter 207 for performing data communication via a network 213. . Further, the network adapter 207 includes a data receiving unit 210 that receives a data packet from the network 213 and a data transmitting unit 21 that transmits the data packet.
1, a control memory 212 for storing tables required for transmission and reception, a data packet memory 209 for temporarily storing data packets to be transmitted and received, and a data packet memory 209 for controlling the I / O bus 206. The I / O bus controller 208 controls data transfer between the memories 203.

【0011】上記バッファ割当処理を実施するために
は、通信装置の初期化時に以下の図3に示すバッファの
設定、図4、図5に示すテーブルの設定を行う必要があ
る。図3はデータパケットを送受信するのに使用される
データパケット用メモリ209の構成例である。送受信
するデータパケットは一時データパケット用メモリ20
9に格納される。データパケットの最大サイズは通信プ
ロトコルによって規定されるため、送受信のためにデー
タパケットの最大サイズ以上の大きさを持つバッファ3
01を複数用意する。図3では、例として10個のバッ
ファを用意した様子を示す。また、通信装置201によ
ってはネットワークアダプタ207上のデータパケット
用メモリ209に一時格納せずに、メモリ203から直
接データパケットを送信したり、データパケットを受信
する場合も考えられる。この場合には、バッファ301
と同様のデータパケット送受信用バッファがメモリ20
3上に複数用意される。
In order to carry out the buffer allocation process, it is necessary to set the following buffers shown in FIG. 3 and the tables shown in FIGS. 4 and 5 when the communication device is initialized. FIG. 3 shows a configuration example of the data packet memory 209 used for transmitting and receiving data packets. Data packets to be transmitted and received are stored in the temporary data packet memory 20.
9 is stored. Since the maximum size of the data packet is defined by the communication protocol, a buffer 3 having a size equal to or larger than the maximum size of the data packet for transmission / reception.
01 are prepared. FIG. 3 shows a state in which ten buffers are prepared as an example. Further, depending on the communication device 201, a case where a data packet is directly transmitted from the memory 203 or a data packet is received without temporarily storing the data packet in the data packet memory 209 on the network adapter 207 may be considered. In this case, the buffer 301
The same data packet transmission / reception buffer as
3 are prepared.

【0012】図4と図5はバッファ割当処理を行うため
に必要なテーブルである。図4、図5ともに端末初期化
時の1構成例を示している。図4のデータパケット送受
信用バッファ301の設定状況を示すバッファ管理テー
ブル401の構成例である。バッファ管理テーブル40
1は、データパケット用メモリ209上のバッファを示
すバッファ欄402と、該当バッファが特定チャネルの
送受信に専用化設定が可能かどうかを示す専用化属性欄
403と、該当バッファが特定チャネルに専用化設定さ
れているかどうかを示す専用化設定状況欄404と、バ
ッファ301が他のデータパケットの送受信に使用され
ている使用中であるか、新規データパケットの送受信に
使用可能かどうかを示す使用状況欄405から構成され
る。図4の例では、転送品質を低く設定したチャネルの
ために全てのチャネルで使用可能なバッファを用意する
ため、専用化属性欄403のバッファ8とバッファ9を
共有のみの設定にしている。しかし、転送品質を高く設
定したチャネルによる通信を優先する際には全てのバッ
ファを専用化可能に設定することも考えられる。また、
通信装置201の初期化時には送受信用のチャネルは設
定されていないと仮定しているため、各バッファの専用
化設定状況欄404は全てのバッファ301について共
有可能と設定している。ただし、通信装置201の初期
化時に、既にチャネルを設定することも考えられる。こ
の場合には、転送品質を保証するために専用化属性欄4
03が専用化可能に設定されているバッファ301のう
ち、1つ以上が該当チャネルの専用に設定されている場
合も考えられる。次にバッファ301の使用状況を示す
使用状況欄405は初期化時であるため、全て使用可能
と設定している。
FIGS. 4 and 5 show tables necessary for performing the buffer allocation process. 4 and 5 both show one configuration example at the time of terminal initialization. 5 is a configuration example of a buffer management table 401 showing a setting status of a data packet transmission / reception buffer 301 in FIG. 4. Buffer management table 40
Reference numeral 1 denotes a buffer column 402 indicating a buffer on the data packet memory 209, a dedicated attribute column 403 indicating whether the buffer can be set to be dedicated to transmission / reception of a specific channel, and a buffer dedicated to the specific channel. A dedicated setting status column 404 indicating whether or not the setting has been set, and a usage status column indicating whether the buffer 301 is being used for transmission / reception of another data packet or whether it can be used for transmission / reception of a new data packet. 405. In the example of FIG. 4, buffers 8 and 9 in the dedicated attribute column 403 are set to be shared only in order to prepare buffers that can be used for all channels for channels for which transfer quality is set low. However, when priority is given to communication using a channel for which transfer quality is set high, it is conceivable to set all buffers to be dedicated. Also,
Since it is assumed that a channel for transmission and reception is not set when the communication device 201 is initialized, the dedicated setting status column 404 of each buffer is set to be sharable for all buffers 301. However, it is also conceivable that a channel is already set when the communication device 201 is initialized. In this case, in order to guarantee the transfer quality, the dedicated attribute column 4
It is also conceivable that one or more of the buffers 301 for which a dedicated channel 03 has been set can be dedicated to the corresponding channel. Next, since the use status column 405 indicating the use status of the buffer 301 is at the time of initialization, all use is set.

【0013】図5は、チャネル毎の、データパケット用
メモリ209上の使用可能なバッファ301を示すチャ
ネル管理テーブル501の構成例である。チャネルを識
別するためのチャネル番号欄502と、データパケット
用メモリ209上のバッファ301中で該当チャネルに
より使用可能なバッファを示すバッファ欄503から構
成される。通信装置201の初期化時にはチャネルは設
定されていないと仮定しているために、全てのチャネル
についてバッファ欄503は使用不可能と設定してい
る。しかし、初期化時に既にチャネルが設定されている
場合には、該当チャネルについて1つ以上のバッファ欄
503が使用可能に設定されている場合も考えられる。
また、上記のバッファ管理テーブル401とチャネル管
理テーブル501は通信装置201上では、制御用メモ
リ212に作成される。ただし、メモリ203上に作成
される場合も考えられる。
FIG. 5 shows an example of the configuration of a channel management table 501 showing available buffers 301 on the data packet memory 209 for each channel. It comprises a channel number column 502 for identifying a channel, and a buffer column 503 indicating a buffer usable by the channel in the buffer 301 on the data packet memory 209. Since it is assumed that channels have not been set when the communication device 201 is initialized, the buffer columns 503 are set to be unusable for all channels. However, if a channel has already been set at the time of initialization, one or more buffer columns 503 may be set to be usable for the channel.
The buffer management table 401 and the channel management table 501 are created in the control memory 212 on the communication device 201. However, a case in which it is created on the memory 203 is also conceivable.

【0014】次に、図1のフローチャートに基づいて、
新規チャネル要求101が発行された場合のCPU20
2により行われるバッファ割当処理を説明する。始め
に、バッファ管理テーブル401で専用化設定状況欄4
04をバッファ0から参照するために参照するバッファ
番号を0にクリアし(102)、参照バッファが他チャ
ンネルの専用に既に設定されているかどうかについて専
用化設定状況欄404の内容を調べる(103)。参照
バッファが他チャンネルに専用化されていなければ、チ
ャネル管理テーブル501において、要求された新規チ
ャネルに対応するチャネル欄502の該当バッファ欄5
03(この場合、バッファ0の欄)を使用可能に設定し
(104)、ステップ105に進む。参照バッファが他
チャンネルに専用化されていれば、ステップ105に進
む。ステップ105では全てのバッファについてチェッ
ク終了したかどうかを判定し、終了していなければ、参
照するバッファ番号を1だけ増加し(106)、ステッ
プ103に戻り、設定を行う。終了していれば、ステッ
プ107に進む。
Next, based on the flowchart of FIG.
CPU 20 when new channel request 101 is issued
2 will be described. First, the specialization setting status column 4 in the buffer management table 401
The buffer number referred to in order to refer to the buffer 04 from the buffer 0 is cleared to 0 (102), and the content of the dedicated setting status column 404 is checked as to whether or not the reference buffer is already dedicated to another channel (103). . If the reference buffer is not dedicated to another channel, the corresponding buffer column 5 of the channel column 502 corresponding to the requested new channel in the channel management table 501
03 (in this case, the column of buffer 0) is set to be usable (104), and the process proceeds to step 105. If the reference buffer is dedicated to another channel, the process proceeds to step 105. In step 105, it is determined whether or not the checking has been completed for all the buffers. If the checking has not been completed, the buffer number to be referred is increased by 1 (106), and the process returns to step 103 to perform the setting. If it has been completed, the process proceeds to step 107.

【0015】次に要求されたチャネルの転送品質から専
用バッファの割当を行うかどうかを決定する(10
7)。ATMを通信方式に用いた場合には、ABR(エイビー
アール:Available Bit Rate)やUBR(ユービーアー
ル:Unspesified Bit Rate)等の転送品質を指定した場
合には専用バッファの割当は行わずに、 CBR(シービー
アール:Constant Bit Rate)やVBR(ブイビーアール:
Variable Bit Rate)の場合にのみ割当を行うなどが考
えられる。もし、割当を行わない場合にはこれでバッフ
ァ割当を終了する(108)。
Next, it is determined from the transfer quality of the requested channel whether to allocate a dedicated buffer (10).
7). When ATM is used for the communication method, if a transfer quality such as ABR (Available Bit Rate) or UBR (UBS: Unspesified Bit Rate) is specified, a dedicated buffer is not allocated and CBR is not assigned. (CBR: Constant Bit Rate) and VBR (VBR:
(Variable Bit Rate) only. If the allocation is not performed, the buffer allocation is completed (108).

【0016】専用バッファの割当を行う場合には、新規
チャネル専用に設定するバッファ割当量を決定する(1
09)。ATMを通信方式に用いた場合には割当量の決定
に、要求されたPCR(ピーシーアール:Peak Cell Rat
e)とネットワークアダプタの最大転送速度の割合から
決定することも考えられる。次に、バッファ管理テーブ
ル401の専用化属性欄403と専用化設定状況欄40
4をバッファ0から参照していくため、参照するバッフ
ァ番号を0にクリアする(110)。参照バッファの専
用化属性欄403が専用化可能で、かつ専用化設定状況
欄404が共有に設定されているかどうか判定する(1
11)。判定がYESならば、専用化設定状況欄404
を専用に設定し(112)、チャネル管理テーブル50
1の他チャンネルについての該当するバッファ欄503
を全て使用不可能に設定する(113)。先に決定した
バッファ量分の設定が終了したかどうか判定し(11
4)、終了していればバッファ割当を終了し(10
8)、終了していなければ、参照するバッファ番号を1
だけ増加し、ステップ111に戻る。上記ステップ11
1の判定がNOの場合には、ステップ115に進む。
When allocating a dedicated buffer, a buffer quota set to be dedicated to a new channel is determined (1).
09). When ATM is used for the communication system, the required PCR (Peak Cell Rat
It is also conceivable to determine from e) and the ratio of the maximum transfer rate of the network adapter. Next, the dedicated attribute column 403 and the dedicated setting status column 40 of the buffer management table 401
To refer to 4 from buffer 0, the buffer number to be referenced is cleared to 0 (110). It is determined whether the dedicated attribute column 403 of the reference buffer can be dedicated and the dedicated setting status column 404 is set to shared (1).
11). If the determination is YES, the specialization setting status column 404
Is set to exclusive (112), and the channel management table 50 is set.
Applicable buffer column 503 for one other channel
Are set to be unusable (113). It is determined whether the setting for the previously determined buffer amount has been completed (11).
4) If it has been completed, the buffer allocation ends (10).
8) If not finished, set the buffer number to be referenced to 1
And returns to step 111. Step 11 above
When the determination of 1 is NO, the process proceeds to step 115.

【0017】図6に図1のバッファ割当方法を用いた際
のバッファ管理テーブル401とチャネル管理テーブル
501の1具体例を示す。チャネル番号100はバッフ
ァ0を、チャネル番号101はバッファ1を専用化して
いることが図6から分かる。
FIG. 6 shows one specific example of the buffer management table 401 and the channel management table 501 when the buffer allocation method of FIG. 1 is used. It can be seen from FIG. 6 that channel number 100 is dedicated to buffer 0 and channel number 101 is dedicated to buffer 1.

【0018】図7、図8のフローチャートに基づいて、
上記バッファ割当を採用した際のデータ送受信の実施形
態を説明する。始めに、ネットワーク213からデータ
パケットが到着した場合の受信処理について図7により
説明する。この受信処理はデータ受信部210で行われ
る。データパケットがデータ受信部210で受信され始
めた場合、データ受信部210は制御メモリ212上の
チャネル管理テーブル501のバッファ欄503をバッ
ファ0から参照するため、参照するバッファ番号を0に
クリアする(702)。参照バッファが該当チャネルに
対して使用可能に設定してあるかどうか判定し(70
3)、使用不可ならステップ706に進み、使用可能な
らステップ704に進む。ステップ704では、バッフ
ァ管理テーブル401の使用状況欄405から参照バッ
ファが他のデータパケットの受信で使用中であるかどう
か判定し、使用中であればステップ706に進み、使用
中でなければステップ705に進む。ステップ705で
は、バッファ管理テーブル401の使用状況欄405を
使用中に設定し、ステップ709に進む。ステップ70
6では、全バッファについてチェックを行ったかどうか
判定し、チェックが終了していればステップ707に進
み、終了していなければステップ708に進む。ステッ
プ708では、参照するバッファ番号を1だけ増加し、
ステップ703に戻る。ステップ707では、データパ
ケットの廃棄をし、そして受信処理を終了する(71
3)。
Based on the flowcharts of FIGS. 7 and 8,
An embodiment of data transmission and reception when the above buffer allocation is adopted will be described. First, a reception process when a data packet arrives from the network 213 will be described with reference to FIG. This receiving process is performed by the data receiving unit 210. When a data packet starts to be received by the data receiving unit 210, the data receiving unit 210 clears the buffer number to be referred to to 0 in order to refer to the buffer column 503 of the channel management table 501 in the control memory 212 from the buffer 0 ( 702). It is determined whether the reference buffer is set to be usable for the corresponding channel (70).
3) If not usable, proceed to step 706; if usable, proceed to step 704. In step 704, it is determined from the use status column 405 of the buffer management table 401 whether or not the reference buffer is being used for reception of another data packet. If it is in use, the process proceeds to step 706; Proceed to. In step 705, the use status column 405 of the buffer management table 401 is set to “in use”, and the process proceeds to step 709. Step 70
In step 6, it is determined whether or not the check has been performed for all buffers. If the check has been completed, the process proceeds to step 707; In step 708, the buffer number to be referred to is increased by one,
It returns to step 703. In step 707, the data packet is discarded, and the reception processing ends (71).
3).

【0019】上記ステップ709では、参照バッファに
データパケットの受信をし、データパケットの受信が終
了したらば(710)、参照バッファ内のデータをメモ
リ203にデータコピーし(711)、参照バッファを
使用中から使用可能に設定し(712)、受信処理を終
了する(713)。なお、ステップ711におけるデー
タコピーはバス制御部205の制御の下に行われる。
In step 709, the data packet is received in the reference buffer. When the reception of the data packet is completed (710), the data in the reference buffer is copied to the memory 203 (711), and the reference buffer is being used. Is set to be usable (712), and the reception process ends (713). The data copy in step 711 is performed under the control of the bus control unit 205.

【0020】次にネットワーク213に対してデータを
送信するデータパケットの送信処理について図8により
説明する。データの送信要求が通信装置201のCPU
202から発行された場合、バス制御部205は受信処
理時と同じ手順を行い送信処理に利用可能な送信バッフ
ァを参照する。すなわち、図8におけるステップ802
〜806、808は図7におけるステップ702〜70
6、708と同様である。もし、利用可能な送信バッフ
ァが得られなかった場合には、ステップ807では送信
不可能の通知を行い、そして、送信処理を終了する(8
12)。
Next, transmission processing of a data packet for transmitting data to the network 213 will be described with reference to FIG. The data transmission request is sent to the CPU of the communication device 201.
When issued from 202, the bus control unit 205 performs the same procedure as in the reception processing and refers to a transmission buffer available for transmission processing. That is, step 802 in FIG.
806 and 808 are steps 702 to 70 in FIG.
6, 708. If an available transmission buffer is not obtained, a notification indicating that transmission is impossible is made in step 807, and the transmission processing is terminated (8).
12).

【0021】ステップ804において現在使用中でない
参照バッファが見つかれば、この参照バッファを使用中
に設定し(805)、メモリ203上の送信データをデ
ータパケットに分割し、該当バッファにコピーし、デー
タ送信部211により送信処理を行う(809)。送信
処理終了後(810)に、バッファ管理テーブル401
の該当バッファの使用状況欄405を使用可能に設定し
(811)、そして、送信処理を終了する(812)。
If a reference buffer that is not currently being used is found in step 804, this reference buffer is set to be in use (805), the transmission data in the memory 203 is divided into data packets, and the data packets are copied to the corresponding buffer and transmitted. The transmission processing is performed by the unit 211 (809). After the transmission process is completed (810), the buffer management table 401
The use status column 405 of the corresponding buffer is set to be usable (811), and the transmission process is terminated (812).

【0022】図9のフローチャートに基づき、上記バッ
ファ割当を採用した際のチャネル開放時におけるバッフ
ァ解放処理の実施形態を説明する。バッファ開放処理は
CPU202により行われる。チャネル開放要求(90
1)が通信装置201に到着した場合、チャネル管理テ
ーブル501の該当チャネルのバッファ欄503をバッ
ファ0から参照するため、参照するバッファ番号を0に
クリアする(902)。参照バッファについてバッファ
欄503が使用可能に設定されているかどうか判定し
(903)、判定結果がNOならばステップ908に進
み、YESならばステップ904に進む。ステップ90
4では、該当するバッファ欄503を使用不可能に設定
する。次に、バッファ管理テーブルの参照バッファの専
用化設定状況欄404を参照して専用化に設定してある
かどうか判定し(905)、NOならばステップ908
に進み、YESならばステップ906に進む。ステップ
906では、該当する専用化設定状況欄404を共有に
設定する。次に、チャネル管理テーブル501について
現在設定されている全てのチャネルについて、上記の共
有に設定された参照バッファのバッファ欄503を使用
可能に設定する(907)。ステップ908では、全て
のバッファについてチェックしたかどうか判定し、NO
ならば、参照するバッファ番号を1だけ増加し(90
9)、ステップ903に戻り、YESならば、バッファ
解放処理を終了する(910)。
An embodiment of the buffer release processing at the time of releasing the channel when the above buffer allocation is adopted will be described with reference to the flowchart of FIG. The buffer release processing is performed by the CPU 202. Channel release request (90
When 1) arrives at the communication device 201, the buffer number to be referred to is cleared to 0 in order to refer to the buffer column 503 of the corresponding channel in the channel management table 501 from the buffer 0 (902). It is determined whether the buffer column 503 is set to be usable for the reference buffer (903). If the determination result is NO, the process proceeds to step 908, and if YES, the process proceeds to step 904. Step 90
In 4, the corresponding buffer column 503 is set to be unusable. Next, it is determined by referring to the dedicated buffer setting status column 404 of the reference buffer in the buffer management table whether the dedicated buffer is set (905).
The process proceeds to step 906 if YES. In step 906, the corresponding dedicated setting status column 404 is set to be shared. Next, for all channels currently set in the channel management table 501, the buffer column 503 of the reference buffer set to be shared is set to be usable (907). In step 908, it is determined whether or not all buffers have been checked.
Then, the reference buffer number is increased by 1 (90
9) Returning to step 903, and if YES, terminates the buffer release processing (910).

【0023】上記説明した実施形態においては、データ
パケット用メモリ209に設定されたバッファは、受信
用にも、送信用にも使用可能としているが、データパケ
ット用メモリ209にバッファを設定する際、バッファ
を受信専用のバッファと、送信専用のバッファとに別々
に設定し、バッファ管理テーブルとチャネル管理テーブ
ルも受信用と送信用に別々に専用に設けるようにしても
よい。
In the above-described embodiment, the buffer set in the data packet memory 209 is usable for both reception and transmission. However, when the buffer is set in the data packet memory 209, The buffers may be separately set for a reception-only buffer and a transmission-only buffer, and the buffer management table and the channel management table may be separately provided for reception and transmission.

【0024】[0024]

【発明の効果】本発明によれば、動的にチャネルが設定
される場合にも、常時最適なバッファ割当を設定可能で
ある。これにより高い転送品質のチャネルでは設定した
通信帯域が保証される。また、複数のチャネルによるデ
ータ通信を同時に行う場合にも各チャネルごとの転送品
質と通信帯域が保証される。これにより、通信装置のユ
ーザは高い転送品質のチャネルを用いたデータ通信中に
は、低い転送品質のチャネルによる通信を行わないなど
の運用を気にする必要がなくなる。
According to the present invention, even when a channel is dynamically set, an optimum buffer allocation can always be set. As a result, the set communication band is guaranteed in the channel of high transfer quality. Also, when data communication is performed simultaneously on a plurality of channels, the transfer quality and communication band for each channel are guaranteed. Accordingly, the user of the communication device does not need to worry about operations such as not performing communication using the low transfer quality channel during data communication using the high transfer quality channel.

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

【図1】バッファ割当処理のフローチャートを示す図で
ある。
FIG. 1 is a diagram showing a flowchart of a buffer allocation process.

【図2】通信装置の概略構成を示すブロック図である。FIG. 2 is a block diagram illustrating a schematic configuration of a communication device.

【図3】データ通信に用いられるバッファの構成例を示
す図である。
FIG. 3 is a diagram illustrating a configuration example of a buffer used for data communication.

【図4】バッファ管理テーブルを示す図である。FIG. 4 is a diagram showing a buffer management table.

【図5】チャネル管理テーブルを示す図である。FIG. 5 is a diagram showing a channel management table.

【図6】バッファを割り当てた場合のバッファ管理テー
ブルおよびチャネル管理テーブルの具体例を示す図であ
る。
FIG. 6 is a diagram illustrating a specific example of a buffer management table and a channel management table when a buffer is allocated.

【図7】受信処理のフローチャートを示す図である。FIG. 7 is a diagram illustrating a flowchart of a reception process.

【図8】送信処理のフローチャートを示す図である。FIG. 8 is a diagram showing a flowchart of a transmission process.

【図9】バッファ解放処理のフローチャートを示す図で
ある。
FIG. 9 is a diagram illustrating a flowchart of a buffer release process.

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

201 通信装置 202 CPU 203 メモリ 204 ホストバス 205 バス制御部 206 I/Oバス 207 ネットワークアダプタ 208 I/Oバス制御部 209 データパケット用メモリ 210 データ受信部 211 データ送信部 212 制御用メモリ 201 Communication Device 202 CPU 203 Memory 204 Host Bus 205 Bus Control Unit 206 I / O Bus 207 Network Adapter 208 I / O Bus Control Unit 209 Data Packet Memory 210 Data Receiving Unit 211 Data Transmitting Unit 212 Control Memory

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 データパケットに分割されたデータを指
定されたチャネルによりネットワークを介してデータ通
信し、かつ、データパケットを送受信するために少なく
とも1つ以上のバッファを持つ通信装置における通信制
御方式であって、 前記各バッファ毎の専用化設定状況を示す第1のテーブ
ルと、前記各チャネル対応に前記各バッファの使用可、
使用不可を示す第2のテーブルを設け、 新規チャネル要求の発行に応じて該チャネルに前記バッ
ファを割り当てる際、前記第1のテーブルを参照し、専
用化設定されていないバッファを探索し、前記第2のテ
ーブルに前記新規チャネルを設定し、該新規チャネルに
対応する前記各バッファのうち、前記探索した専用化設
定されていないバッファを使用可に設定する手段を備
え、該新規チャネルが利用できるバッファの上限を設定
することを特徴とする通信制御方式。
1. A communication control method in a communication device having at least one buffer for transmitting and receiving data divided into data packets through a network through a designated channel and transmitting and receiving the data packets. A first table indicating a dedicated setting status of each buffer, and availability of each buffer corresponding to each channel;
Providing a second table indicating unusable, when allocating the buffer to the channel in response to issuance of a new channel request, referring to the first table, searching for a buffer not set for exclusive use, Means for setting the new channel in the table of No. 2 and setting, among the buffers corresponding to the new channel, the buffer which has not been set for exclusive use and which can be used, the buffer which can use the new channel. A communication control method, wherein an upper limit is set.
【請求項2】 請求項1記載の通信制御方式において、 前記新規チャネルに専用バッファを割り当てる際、 割り当てる専用バッファ量を決定する手段と、 前記第1のテーブルを参照し、専用化設定されていない
バッファを探索し、該第1のテーブルにおいて該探索し
たバッファを専用化設定し、前記第2のテーブルにおい
て前記新規チャネル以外のチャネルに対応する各バッフ
ァのうち前記探索したバッファを使用不可に設定する手
段を備えることを特徴とする通信制御方式。
2. The communication control method according to claim 1, wherein, when allocating a dedicated buffer to the new channel, means for determining an amount of dedicated buffer to be allocated, and the dedicated table is not set by referring to the first table. A buffer is searched, the searched buffer is set to be dedicated in the first table, and the searched buffer among the buffers corresponding to channels other than the new channel is set to be unusable in the second table. A communication control method comprising means.
【請求項3】 データパケットに分割されたデータを指
定されたチャネルによりネットワークを介してデータ通
信し、かつ、データパケットを送受信するために少なく
とも1つ以上のバッファを持つ通信装置における通信制
御方式であって、 前記各バッファ毎の専用化設定状況を示す第1のテーブ
ルと、前記各チャネル対応に前記各バッファの使用可、
使用不可を示す第2のテーブルと、前記各バッファが使
用中であるか否かを示す第3のテーブルを備え、 受信処理要求が発行されたとき、前記第2のテーブルを
参照し、該受信処理要求のチャネルに対応する各バッフ
ァから使用可能なバッファを選択し、かつ第3のテーブ
ルを参照して該選択したバッファが使用中でないとき、
該バッファに受信したデータパケットを格納する手段を
備えることを特徴とする通信制御方式。
3. A communication control method in a communication device having at least one buffer for transmitting and receiving data divided into data packets through a network through a designated channel and transmitting and receiving the data packets. A first table indicating a dedicated setting status of each buffer, and availability of each buffer corresponding to each channel;
A second table indicating that the buffer is unavailable and a third table indicating whether each of the buffers is in use. When a reception processing request is issued, the second table is referred to, and When an available buffer is selected from each buffer corresponding to the channel of the processing request and the selected buffer is not in use by referring to the third table,
A communication control method comprising: means for storing a received data packet in the buffer.
【請求項4】 データパケットに分割されたデータを指
定されたチャネルによりネットワークを介してデータ通
信し、かつ、データパケットを送受信するために少なく
とも1つ以上のバッファを持つ通信装置における通信制
御方式であって、 前記各バッファ毎の専用化設定状況を示す第1のテーブ
ルと、前記各チャネル対応に前記各バッファの使用可、
使用不可を示す第2のテーブルと、前記各バッファが使
用中であるか否かを示す第3のテーブルを備え、 送信処理要求が発行されたとき、前記第2のテーブルを
参照し、該送信処理要求のチャネルに対応する各バッフ
ァから使用可能なバッファを選択し、かつ第3のテーブ
ルを参照して該選択したバッファが使用中でないとき、
該バッファに送信するデータパケットを格納する手段を
備えることを特徴とする通信制御方式。
4. A communication control method for a communication device having at least one buffer for transmitting and receiving data divided into data packets through a network through a designated channel and transmitting and receiving the data packets. A first table indicating a dedicated setting status of each buffer, and availability of each buffer corresponding to each channel;
A second table indicating that the buffer is unavailable and a third table indicating whether or not each of the buffers is in use. When a transmission processing request is issued, the second table is referred to and the transmission is performed. When an available buffer is selected from each buffer corresponding to the channel of the processing request and the selected buffer is not in use by referring to the third table,
A communication control method comprising: means for storing a data packet to be transmitted in the buffer.
JP12163297A 1997-04-24 1997-04-24 Communication control system Pending JPH10301872A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12163297A JPH10301872A (en) 1997-04-24 1997-04-24 Communication control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12163297A JPH10301872A (en) 1997-04-24 1997-04-24 Communication control system

Publications (1)

Publication Number Publication Date
JPH10301872A true JPH10301872A (en) 1998-11-13

Family

ID=14816077

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12163297A Pending JPH10301872A (en) 1997-04-24 1997-04-24 Communication control system

Country Status (1)

Country Link
JP (1) JPH10301872A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007104054A (en) * 2005-09-30 2007-04-19 Oki Electric Ind Co Ltd Data communication device, data communication method, and data communication program
CN100405349C (en) * 2003-10-22 2008-07-23 国际商业机器公司 Connection management method, system, and program product

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100405349C (en) * 2003-10-22 2008-07-23 国际商业机器公司 Connection management method, system, and program product
JP2007104054A (en) * 2005-09-30 2007-04-19 Oki Electric Ind Co Ltd Data communication device, data communication method, and data communication program

Similar Documents

Publication Publication Date Title
US5231631A (en) Arrangement for regulating traffic in a high speed data network
EP0762799B1 (en) Burst transfer system
US6046817A (en) Method and apparatus for dynamic buffering of input/output ports used for receiving and transmitting print data at a printer
US6292492B1 (en) Efficient method and apparatus for allocating memory space used for buffering cells received on several connections in an asynchronous transfer mode (ATM) switch
CA2159459C (en) Method and system for managing memory in a high speed network
EP0413488B1 (en) Method for regulating traffic in a high speed data network
JPH09128315A (en) Method and device for control of flow of data
JPH1195948A (en) Method and device for dynamically managing buffer for communication to be used for packet communication data for printer
US6195331B1 (en) Method of managing transmission buffer memory and ATM communication device using the method
US5940397A (en) Methods and apparatus for scheduling ATM cells
JP2003512793A (en) Channel configuration in wideband code division multiple access systems.
WO2006036124A1 (en) Improved handling of atm data
US6298049B1 (en) Method and arrangement for upstream timeslot assignment, and communication system wherein the method is used
EP0838970B1 (en) Method for shared memory management in network nodes
JP2960653B2 (en) Radio channel allocation method in mobile communication system
US6175572B1 (en) Bandwith allocating method by using sub-tables in an ATM network interface card
JPH10301872A (en) Communication control system
US7020149B1 (en) Method for operating a switching system for data packets
US20130136137A1 (en) Apparatus and method for data transmission
US6954433B2 (en) IP processor
KR20010038486A (en) Structure of Buffer and Queues for Suppling Ethernet QoS and Operating Method thereof
JPH1132050A (en) Method for controlling priority control queue in atm exchanging device
Lindgren et al. Fast Connection Establishment in the DTM Gigabit Network.
JP2001024661A (en) Multicast system and exchanging method therefor
JPH1155276A (en) Shaping device

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20040316