JPH09233082A - Flow control method - Google Patents

Flow control method

Info

Publication number
JPH09233082A
JPH09233082A JP3674396A JP3674396A JPH09233082A JP H09233082 A JPH09233082 A JP H09233082A JP 3674396 A JP3674396 A JP 3674396A JP 3674396 A JP3674396 A JP 3674396A JP H09233082 A JPH09233082 A JP H09233082A
Authority
JP
Japan
Prior art keywords
frame
transmission
side device
frames
reception
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
JP3674396A
Other languages
Japanese (ja)
Inventor
Kazuhiro Sato
和弘 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP3674396A priority Critical patent/JPH09233082A/en
Publication of JPH09233082A publication Critical patent/JPH09233082A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a control method by which transfer performance of flow control is not deteriorated even when a transfer delay time of control information of the flow control is increased. SOLUTION: A round transmission delay time from a time when an initializing processing section 71 of a transmitter side equipment sends a frame describing an initializing frame identifier at initialization of communication to a receiver side equipment till a time when the receiver side equipment returns a reply frame describing number of frames capable of being stored in a reception buffer and the transmitter side equipment receives the reply frame, is measured based on a clock 72. When a half of the round transmission delay time is larger than the time required for transmission of data corresponding to the number of frames capable of being stored in the reception buffer extracted from the reply frame at a credit extract section 64, the number of frames more than the number of frames capable of being stored in the reception buffer is allowed for transmission.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、受信側装置の受信
バッファのオーバーフローを防止するためのフロー制御
方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a flow control method for preventing a receiving buffer of a receiving device from overflowing.

【0002】[0002]

【従来の技術】ANSI(American National Standard
for Information Systems)では、HIPPI(High P
erformance Parallel Interface)と呼ばれる高速のパ
ラレルインターフェースの仕様が規定されている。HI
PPIの伝送距離は最大で25mであるため、遠距離の
通信には使用できない。
2. Description of the Related Art ANSI (American National Standard)
for Information Systems), HIPPI (High P
The specifications of a high-speed parallel interface called erformance Parallel Interface) are defined. HI
Since the maximum transmission distance of PPI is 25 m, it cannot be used for long-distance communication.

【0003】一方、広域網の高速インターフェースとし
てATMが標準になりつつある。HIPPIをATMに
変換することにより、遠隔にあるHIPPIインターフ
ェースを持つコンピュータ間で高速の通信が可能とな
る。
On the other hand, ATM is becoming the standard as a high-speed interface for wide area networks. By converting HIPPI into ATM, high-speed communication becomes possible between computers having a remote HIPPI interface.

【0004】HIPPIのインターフェース上では、レ
ディと呼ばれる主信号線と別の信号線を用いてフロー制
御を行っている。HIPPIをATMに変換する場合、
ATMの通信区間では、HIPPIのフロー制御と形を
変えたフロー制御が行われる。
On the HIPPI interface, flow control is performed using a signal line different from the main signal line called ready. When converting HIPPI to ATM,
In the ATM communication section, flow control that is different in form from HIPPI flow control is performed.

【0005】以下、ANSIで規定されているHIPP
I−ATM変換におけるフロー制御方法について説明す
る。
Hereinafter, HIPP specified by ANSI
A flow control method in I-ATM conversion will be described.

【0006】図1は従来の送信側装置、例えば10の構
成を示すもので、図中、11は上位レイヤ送信処理部、
12はフ口ー制御処理部、13はクレジット処理部、1
4は送信バッファ、15は送信バッファ制御部、16は
クレジット抽出部、17は送信伝送処理部、18は受信
伝送処理部、19は初期化フレーム生成部、20はセレ
クタ、21はクレジットカウンタである。また、A,B
は伝送路である。
FIG. 1 shows a configuration of a conventional transmitting side device, for example, 10, in which 11 is an upper layer transmission processing section,
Reference numeral 12 is a control processing unit, 13 is a credit processing unit, 1
Reference numeral 4 is a transmission buffer, 15 is a transmission buffer control unit, 16 is a credit extraction unit, 17 is a transmission transmission processing unit, 18 is a reception transmission processing unit, 19 is an initialization frame generation unit, 20 is a selector, and 21 is a credit counter. . Also, A, B
Is a transmission path.

【0007】図2は従来の受信側装置、例えば30の構
成を示すもので、図中、31は受信伝送処理部、32は
送信伝送処理部、33は受信バッファ、34はクレジッ
トセル生成部、35はバッファ読み出し制御部、36は
クロック、37はレディカウンタ、38は上位レイヤ受
信処理部、39は受信フレーム信号、40はフロー制御
信号である。
FIG. 2 shows a configuration of a conventional receiving side device, for example, 30, in which 31 is a reception transmission processing unit, 32 is a transmission transmission processing unit, 33 is a reception buffer, 34 is a credit cell generation unit, 35 is a buffer read control unit, 36 is a clock, 37 is a ready counter, 38 is an upper layer reception processing unit, 39 is a received frame signal, and 40 is a flow control signal.

【0008】図3は従来のフレーム、例えば50の構成
を示すもので、図中、51はフレーム種別、52は宛先
アドレス、53は送り元アドレス、54はクレジット数
であり、これらはフレームヘッダ55を構成し、また、
56はユーザ情報であり、これはぺイロード57を構成
する。
FIG. 3 shows the structure of a conventional frame, for example, 50. In the figure, 51 is a frame type, 52 is a destination address, 53 is a source address, 54 is a credit number, and these are frame headers 55. And also
Reference numeral 56 is user information, which constitutes a payload 57.

【0009】以下、動作について説明する。The operation will be described below.

【0010】フロー制御処理部12は、通信の初期化時
に送信バッファ14に格納可能なフレーム数のパルスを
上位レイヤ送信処理部11に送信する。送信バッファ制
御部15が送信バッファ14からフレームを読み出す度
にフロー制御処理部12は1パルス送信する。上位レイ
ヤ送信処理部11は、受信したパルス数のフレームの送
信が可能である。初期化フレーム生成部19は、通信を
開始する前にフレーム種別51に初期化用のフレームで
あることを示す識別子を記載したフレーム(以下、初期
化フレームと称す。)50を、送信伝送処理部17によ
りセル化等の伝送処理を施した後、伝送路Aに送信す
る。
The flow control processing unit 12 transmits to the upper layer transmission processing unit 11 pulses of the number of frames that can be stored in the transmission buffer 14 at the time of initialization of communication. Each time the transmission buffer control unit 15 reads a frame from the transmission buffer 14, the flow control processing unit 12 transmits one pulse. The upper layer transmission processing unit 11 is capable of transmitting frames of the received pulse number. The initialization frame generation unit 19 transmits the frame (hereinafter, referred to as initialization frame) 50 in which the identifier indicating the initialization frame is described in the frame type 51 before starting the communication, to the transmission transmission processing unit. After performing transmission processing such as cell formation at 17, the data is transmitted to the transmission path A.

【0011】初期化フレーム50が受信側装置30に到
着すると、受信伝送処理部31はフレーム組み立て処理
等の伝送処理を施して初期化フレームを再生する。クレ
ジットセル生成部34は、受信したフレーム50のフレ
ーム種別51に初期化フレームの識別子が記載されてい
る時、該フレーム50を初期化フレームと見なし、フレ
ーム種別51に初期化フレームに対する応答フレームの
識別子を記載し、受信側装置30の受信バッファ33が
格納可能なフレーム数をクレジット数54に記載した応
答フレーム50を送信伝送処理部32によりセル化した
後、伝送路Bに送信する。
When the initialization frame 50 arrives at the receiving side device 30, the reception transmission processing unit 31 performs transmission processing such as frame assembly processing and reproduces the initialization frame. When the frame type 51 of the received frame 50 describes an initialization frame identifier, the credit cell generation unit 34 regards the frame 50 as an initialization frame, and sets the frame type 51 to a response frame identifier for the initialization frame. The number of frames that can be stored in the reception buffer 33 of the reception side device 30 is described in the credit number 54, the response frame 50 is converted into cells by the transmission and transmission processing unit 32, and then transmitted to the transmission path B.

【0012】セル化された該応答フレームを送信側装置
10が伝送路Bより受信すると、受信伝送処理部18で
フレームに組み立てられる。クレジット抽出部16は、
受信したフレーム50のフレーム種別51に応答フレー
ムの識別子が記載されていることを認識すると、該フレ
ーム50のクレジット数54をクレジット処理部13に
通知する。
When the transmission side device 10 receives the cellized response frame from the transmission path B, the reception transmission processing section 18 assembles the frame into a frame. The credit extraction unit 16
When recognizing that the identifier of the response frame is described in the frame type 51 of the received frame 50, the credit processing unit 13 is notified of the credit number 54 of the frame 50.

【0013】クレジット処理部13は、通知されたクレ
ジット数54をクレジットカウンタ21にセットする。
クレジット処理部13はクレジットカウンタ21の値が
「1」以上の場合は、送信バッファ制御部15に送信可
であることを通知し、クレジットカウンタ21の値が
「0」の場合は、送信バッファ制御部15に送信不可で
あることを通知する。
The credit processing unit 13 sets the notified credit number 54 in the credit counter 21.
The credit processing unit 13 notifies the transmission buffer control unit 15 that transmission is possible when the value of the credit counter 21 is "1" or more, and the transmission buffer control when the value of the credit counter 21 is "0". The unit 15 is notified that transmission is not possible.

【0014】送信バッファ制御部15は、送信可が通知
されている場合は、送信バッファ14に格納されている
フレームを送信伝送処理部17でセル化処理等の伝送処
理を施した後に伝送路Aに送信し、クレジット処理部1
3は、送信バッファ14からフレームが送信される度に
クレジットカウンタ21をカウントダウンし、フロー制
御処理部12は、1パルスを上位レイヤ送信処理部11
に送信する。送信バッファ制御部15は、クレジットカ
ウンタ21の値が「0」の時は送信を停止する。
When the transmission permission is notified, the transmission buffer control unit 15 performs transmission processing such as cell formation processing on the frame stored in the transmission buffer 14 by the transmission transmission processing unit 17, and then transmits the transmission path A. To credit processing unit 1
3 counts down the credit counter 21 every time a frame is transmitted from the transmission buffer 14, and the flow control processing unit 12 outputs 1 pulse to the upper layer transmission processing unit 11.
Send to The transmission buffer control unit 15 stops the transmission when the value of the credit counter 21 is “0”.

【0015】上位レイヤ受信処理部38は、通信の初期
化時に該上位レイヤ受信処理部38が格納可能なフレー
ム数分のパルスをフロー制御信号40に送信し、フレー
ム50を受信して該フレームの処理が終了し、新たにフ
レームの受信が可能になるとフロー制御信号40に1パ
ルス送信する。バッファ読み出し制御部35は、受信し
たパルス数をレディカウンタ37によりカウントし、受
信バッファ33から1フレーム読み出す毎にレディカウ
ンタ37をカウントダウンする。
The upper layer reception processing unit 38 transmits as many pulses to the flow control signal 40 as the number of frames which can be stored in the upper layer reception processing unit 38 at the time of initialization of communication, receives the frame 50, and receives the frame 50. When the processing is completed and a new frame can be received, one pulse is transmitted to the flow control signal 40. The buffer read control unit 35 counts the number of received pulses by the ready counter 37, and counts down the ready counter 37 every time one frame is read from the reception buffer 33.

【0016】受信側装置30がセル化されたフレームを
受信すると、受信伝送処理部31によりフレームに組み
立てられ、該フレームを受信バッファ33に格納する。
バッファ読み出し制御部35は、レディカウンタ37が
「1」以上の時は、受信バッファ33に格納されている
フレームを上位レイヤ受信処理部38に転送する。
When the receiving device 30 receives the cellized frame, the reception transmission processing unit 31 assembles the frame into a frame and stores the frame in the reception buffer 33.
When the ready counter 37 is “1” or more, the buffer read control unit 35 transfers the frame stored in the reception buffer 33 to the upper layer reception processing unit 38.

【0017】このような送信側装置10及び受信側装置
30の動作により、送信バッファ14、受信バッファ3
3及び上位レイヤ受信処理部38の受信バッファのオー
バフローが回避できる。
By the operation of the transmitting side device 10 and the receiving side device 30 as described above, the transmitting buffer 14 and the receiving buffer 3
3 and the overflow of the reception buffer of the upper layer reception processing unit 38 can be avoided.

【0018】近年、1Gbit/s以上のエンドシステム間
の高速通信の実現を目指し、各所で研究が行われてい
る。米国では、ギガビットテストベッドと称した高速の
実験網により大学や研究機関の間を接続し、その上で高
速通信のプロトコルや高速通信を使用したアプリケーシ
ョンの研究が行われている。
In recent years, research has been conducted in various places with the aim of realizing high-speed communication between end systems of 1 Gbit / s or higher. In the United States, a high-speed test network called a gigabit test bed is used to connect universities and research institutes, and research on high-speed communication protocols and applications using high-speed communication is being conducted on it.

【0019】[0019]

【発明が解決しようとする課題】一般に、データ通信で
は、受信側装置の受信バッファのオーバフローを回避す
るため、フロー制御が行われる。通信距離が長くなり、
伝送速度が高速になると、送信側装置と受信側装置との
間の伝送速度に対する相対的な転送遅延が増加し、フロ
ー制御の制御情報の到着時間の相対的な遅れが増加す
る。
Generally, in data communication, flow control is performed in order to avoid overflow of the receiving buffer of the receiving side device. Communication distance becomes longer,
When the transmission speed becomes high, the relative transfer delay with respect to the transmission speed between the transmission side device and the reception side device increases, and the relative delay of the arrival time of the control information of the flow control increases.

【0020】前述した従来のフロー制御方法では、転送
遅延が増加すると受信側装置が受信可能であるにもかか
わらず送信側装置で過剰に送信を抑制し、転送性能が低
下するという問題があった。
The above-described conventional flow control method has a problem that when the transmission delay increases, the transmission side device excessively suppresses transmission even though the reception side device can receive, and the transfer performance deteriorates. .

【0021】本発明の目的は、フロー制御の制御情報の
転送遅延時間が増加してもフロー制御の転送性能が低下
しないフロー制御方法を提供することにある。
It is an object of the present invention to provide a flow control method in which the transfer performance of flow control does not deteriorate even if the transfer delay time of control information for flow control increases.

【0022】[0022]

【課題を解決するための手段】本発明では、前記課題を
解決するため、受信側装置が受信バッファからのフレー
ムの読み出し数を送信側装置に通知し、送信側装置は該
通知に基づきデータの送信量を制御するフロー制御方法
において、送信側装置は通信の初期化時に初期化用のフ
レームを受信側装置に送信し、受信側装置は該初期化用
のフレームを受信した時、該受信側装置の受信バッファ
が格納可能なフレーム数を記載した応答フレームを返送
し、送信側装置は初期化用のフレームを送信してから応
答フレームを受信するまでの時間を測定して往復の転送
遅延時間を測定し、該往復の転送遅延時間の1/2の時
間が前記応答フレームに記載されている受信側装置の受
信バッファに格納可能なフレーム数分のデータの送信に
要する時間より大きい場合、送信を許可するフレーム数
を受信側装置の受信バッファに格納可能なフレーム数よ
り増加し、受信側装置は受信バッファからのフレームの
読み出し数を定期的に測定し、該測定結果及び前回の測
定時間から今回の測定時間までの時間差を記載したフレ
ームを定期的に送信側装置に送信し、送信側装置は前記
フレームを受信した時、該フレームに記載された測定結
果と時間差とにより受信側装置の受信バッファからのフ
レームの読み出し速度を求め、該読み出し速度と前記往
復の転送遅延時間とに基づいて送信を許可するフレーム
数の増加量を求めるようになしたことを特徴とするフロ
ー制御方法を提案する。
According to the present invention, in order to solve the above-mentioned problems, the receiving side device notifies the transmitting side device of the number of frames read from the receiving buffer, and the transmitting side device transmits the data based on the notification. In a flow control method for controlling a transmission amount, a transmission side device transmits an initialization frame to a reception side device at the time of initialization of communication, and when the reception side device receives the initialization frame, the reception side device The device's receive buffer sends back a response frame that describes the number of frames that can be stored, and the sending device measures the time from when the initialization frame is sent until the response frame is received, and the round trip transfer delay time is measured. ½ of the round trip transfer delay time is longer than the time required to transmit data for the number of frames that can be stored in the reception buffer of the reception side device described in the response frame. If the number of frames allowed for transmission is greater than the number of frames that can be stored in the receiving buffer of the receiving side device, the receiving side device periodically measures the number of frames read from the receiving buffer, and The frame that describes the time difference from the measurement time of this time to the current measurement time is periodically transmitted to the transmission side device, and when the transmission side device receives the frame, it receives the measurement result and the time difference described in the frame. The flow control is characterized in that the frame reading speed from the receiving buffer of the side device is obtained, and the increase amount of the number of frames permitted for transmission is obtained based on the reading speed and the round-trip transfer delay time. Suggest a method.

【0023】従来は、受信側装置が受信バッファに格納
可能なフレーム数を送信側装置に通知し、送信側装置は
該通知されたフレーム数までのフレームを送信してい
た。これに対して本発明では、送信側装置及び受信側装
置間のフレームの転送遅延と、受信側装置の受信バッフ
ァからのフレームの読み出し速度と、受信側装置の受信
バッファの空容量とに基づいて送信側装置に送信を許可
するフレーム数を決める点で異なる。
Conventionally, the receiving side device notifies the transmitting side device of the number of frames that can be stored in the receiving buffer, and the transmitting side device transmits up to the notified number of frames. On the other hand, in the present invention, based on the transfer delay of the frame between the transmission side device and the reception side device, the reading speed of the frame from the reception buffer of the reception side device, and the empty capacity of the reception buffer of the reception side device. The difference is that the number of frames permitted to be transmitted to the transmission side device is determined.

【0024】本発明によれば、送信側装置に送信を許可
するフレーム数を、送信側装置及び受信側装置間の転送
遅延と、受信側装置の受信バッファからのフレームの読
み出し速度とに基づいて決めることにより、送信側装置
及び受信側装置間の伝送距離が長くなり、フレームの転
送遅延が大きくなった場合でも転送性能が低下しない。
また、受信側装置の受信バッファの空容量が少なくなる
と、送信側装置に送信を許可するフレーム数を減らすこ
とにより、受信側装置の受信バッファのオーバフローの
危険性を低下させることができる。
According to the present invention, the number of frames permitted to be transmitted to the transmission side device is determined based on the transfer delay between the transmission side device and the reception side device and the reading speed of the frame from the reception buffer of the reception side device. By deciding, the transmission distance between the transmitting side device and the receiving side device becomes long, and the transfer performance does not deteriorate even when the frame transfer delay becomes large.
Further, when the free capacity of the reception buffer of the reception side device decreases, the risk of overflow of the reception buffer of the reception side device can be reduced by reducing the number of frames permitted to be transmitted to the transmission side device.

【0025】[0025]

【発明の実施の形態】図4乃至図6は本発明のフロー制
御方法の実施の形態の一例を示すものである。
4 to 6 show an example of an embodiment of a flow control method of the present invention.

【0026】図4は送信側装置、例えば60の構成を示
すもので、図中、61は上位レイヤ送信処理部、62は
フロー制御処理部、63は送信バッファ、64はクレジ
ット抽出部、65は送信バッファ制御部、66は送信伝
送処理部、67は受信伝送処理部、68はクレジットカ
ウンタ、69はクレジット演算処理部、70はセレク
タ、71は初期化処理部、72はクロックである。ま
た、Aは送信伝送路、Bは受信伝送路である。
FIG. 4 shows the configuration of a transmitting side device, for example, 60. In the figure, 61 is an upper layer transmission processing unit, 62 is a flow control processing unit, 63 is a transmission buffer, 64 is a credit extraction unit, and 65 is a unit. A transmission buffer control unit, 66 is a transmission transmission processing unit, 67 is a reception transmission processing unit, 68 is a credit counter, 69 is a credit calculation processing unit, 70 is a selector, 71 is an initialization processing unit, and 72 is a clock. A is a transmission transmission line and B is a reception transmission line.

【0027】図5は受信側装置、例えば80の構成を示
すもので、図中、81は受信伝送処理部、82は送信伝
送処理部、83は受信フレームカウンタ、84はクレジ
ットフレーム生成部、85は受信バッファ、86は送信
クロック、87はバッファ読み出し制御部、88は上位
レイヤ受信処理部、89は受信バースト、90はフロー
制御信号である。
FIG. 5 shows a configuration of a receiving side device, for example, 80. In the figure, 81 is a reception transmission processing unit, 82 is a transmission transmission processing unit, 83 is a reception frame counter, 84 is a credit frame generation unit, and 85. Is a reception buffer, 86 is a transmission clock, 87 is a buffer read control unit, 88 is an upper layer reception processing unit, 89 is a reception burst, and 90 is a flow control signal.

【0028】図6はフレーム、例えば100の構成を示
すもので、図中、101はフレーム種別、102は宛先
アドレス、103は送り元アドレス、104は送信間
隔、105はフレーム蓄積数、106はクレジット数で
あり、これらはフレームヘッダ107を構成し、また、
108はユーザ情報であり、これはぺイロード109を
構成する。
FIG. 6 shows the structure of a frame, for example, 100, in which 101 is a frame type, 102 is a destination address, 103 is a source address, 104 is a transmission interval, 105 is the number of accumulated frames, and 106 is a credit. A number, which make up the frame header 107, and
Reference numeral 108 is user information, which constitutes a payload 109.

【0029】以下、動作について説明する。The operation will be described below.

【0030】フロー制御処理部62は、通信の初期化時
に送信バッファ63が蓄積可能なフレーム数分のパルス
を上位レイヤ送信処理部61に送信する。送信バッファ
63からフレーム100が送信され、送信バッファ63
に1フレーム分の空容量が増える度に、フロー制御処理
部62は上位レイヤ送信処理部61へ1パルスを送信す
る。上位レイヤ送信処理部61は、フロー制御処理部6
2が送信するパルス数までのフレーム100の送信が可
能である。
The flow control processing unit 62 transmits to the upper layer transmission processing unit 61 as many pulses as the number of frames that can be accumulated in the transmission buffer 63 at the time of initialization of communication. The frame 100 is transmitted from the transmission buffer 63, and the transmission buffer 63
Each time the empty capacity for one frame increases, the flow control processing unit 62 transmits one pulse to the upper layer transmission processing unit 61. The upper layer transmission processing unit 61 includes the flow control processing unit 6
It is possible to transmit frame 100 up to the number of pulses that 2 transmits.

【0031】初期化処理部71は、通信の初期化時にフ
レーム種別101に初期化用のフレームであることを示
す識別子を記載した初期化フレーム100を、送信伝送
処理部66でセル化処理等の伝送処理を施した後、伝送
路Aに送信する。
The initialization processing unit 71 causes the transmission / transmission processing unit 66 to perform the initialization processing for the initialization frame 100 in which the identifier indicating that the frame is an initialization frame is described in the frame type 101 when the communication is initialized. After performing the transmission process, it is transmitted to the transmission path A.

【0032】セル化された初期化フレーム100が受信
側装置80に到着すると、受信伝送処理部81は、受信
セルを初期化フレームに組み立てる。クレジットフレー
ム生成部84は、該初期化フレームのフレーム種別10
1に初期化フレームの識別子が記載されていることを認
識すると、該初期化フレームに対する応答フレームの識
別子をフレーム種別101に記載し、クレジット数10
6の領域に受信バッファ85に格納可能なフレーム数で
ある初期クレジット(Cinit)を記載した応答フレーム
を送信伝送処理部82によりセル化した後、伝送路Bに
送信する。
When the cellized initialization frame 100 arrives at the reception side device 80, the reception transmission processing section 81 assembles the reception cells into an initialization frame. The credit frame generation unit 84 uses the frame type 10 of the initialization frame.
When recognizing that the initialization frame identifier is described in 1, the response frame identifier for the initialization frame is described in the frame type 101, and the number of credits is 10
A response frame in which an initial credit (Cinit), which is the number of frames that can be stored in the reception buffer 85, is written in the area 6 is made into cells by the transmission / transmission processing unit 82, and then transmitted to the transmission path B.

【0033】セル化された該応答フレームが送信側装置
60に到着すると、受信伝送処理部67によりフレーム
に組み立てられ、初期化処理部71は、該受信フレーム
のフレーム種別101に初期化フレームの応答フレーム
の識別子が記載されている時は、初期化フレームを送信
してから、該応答フレームを受信するまでの時間をクロ
ック72により測定し、該測定結果を往復の転送遅延時
間としてクレジット演算処理部69に通知する。
When the cellized response frame arrives at the transmission side device 60, it is assembled into a frame by the reception transmission processing unit 67, and the initialization processing unit 71 responds to the initialization frame with the frame type 101 of the reception frame. When the frame identifier is described, the time from the transmission of the initialization frame to the reception of the response frame is measured by the clock 72, and the measurement result is used as the round-trip transfer delay time, which is the credit calculation processing unit. Notify 69.

【0034】一方、クレジット抽出部64は、該応答フ
レーム100のクレジット数106に記載されている初
期クレジットをクレジット演算処理部部69に通知す
る。クレジット演算処理部106は、初期クレジットを
クレジットカウンタ68にセットする。クレジットカウ
ンタ68の値が「1」以上で、送信バッファ63に送信
フレームが格納されている時、送信バッファ制御部65
は該フレームを送信伝送処理部66を通して伝送路Aに
送信する。
On the other hand, the credit extraction unit 64 notifies the credit calculation processing unit 69 of the initial credit described in the credit number 106 of the response frame 100. The credit calculation processing unit 106 sets the initial credit in the credit counter 68. When the value of the credit counter 68 is “1” or more and the transmission frame is stored in the transmission buffer 63, the transmission buffer control unit 65
Transmits the frame to the transmission line A through the transmission / transmission processing unit 66.

【0035】クレジットカウンタ68は、送信バッファ
63からフレームが送信される度にカウントダウンされ
る。クレジットカウンタ68の値が「0」であるか、送
信バッファ63にフレームが格納されていない場合に
は、送信バッファ制御部65は送信バッファ65からの
フレームの送信は行わない。
The credit counter 68 counts down each time a frame is transmitted from the transmission buffer 63. When the value of the credit counter 68 is “0” or the frame is not stored in the transmission buffer 63, the transmission buffer control unit 65 does not transmit the frame from the transmission buffer 65.

【0036】クレジットフレーム生成部84は、受信バ
ッファ85から読み出されるフレーム数(クレジット)
を一定周期毎に測定し、フレーム種別101にクレジッ
トを記載したフレームであることを示す識別子を記載
し、送信間隔104に測定周期を記載し、クレジット数
106に該クレジットを記載し、フレーム蓄積数105
にその時点で受信バッファ85に格納されているフレー
ム数を記載したフレームを送信伝送処理部82を通して
伝送路Bに送信する。
The credit frame generator 84 is the number of frames (credits) read from the reception buffer 85.
Is measured at regular intervals, an identifier indicating that the frame is a frame in which credits are described in the frame type 101, the measurement cycle in the transmission interval 104, the credits in the credit number 106, and the frame accumulation number. 105
Then, the frame in which the number of frames stored in the reception buffer 85 at that time is described is transmitted to the transmission path B through the transmission transmission processing unit 82.

【0037】フレームを伝送路Bより送信側装置60が
受信すると、クレジット抽出部64は、該フレームに記
載されている送信間隔104、フレーム蓄積数105、
クレジット数106をクレジット演算処理部69にそれ
ぞれ通知する。クレジット演算処理部69は、通知され
た初期クレジット、送信間隔、フレーム蓄積数、クレジ
ットに基づいてフロー制御を行う。
When the transmission side device 60 receives the frame from the transmission line B, the credit extraction unit 64 causes the transmission interval 104, the frame accumulation number 105,
The credit amount 106 is notified to the credit calculation processing unit 69. The credit calculation processing unit 69 performs flow control based on the notified initial credit, transmission interval, frame accumulation number, and credit.

【0038】以下、これらの通知情報に基づくフロー制
御のアルゴリズムについて説明する。
The flow control algorithm based on these notification information will be described below.

【0039】まず、以下の説明に出てくる変数を定義す
る。
First, variables defined in the following description will be defined.

【0040】Cinitを初期クレジット、Rateを伝送路の
速度、Tpropを伝送路の往復の転送遅延時間、Cnewをク
レジット、Tcをクレジット送信周期、Credit_countをク
レジットカウンタ68の値、Fsizeをフレームサイズ、C
offsetをクレジット値の増加値、Rbufを受信側装置の受
信バッファからの単位時間当たりのフレームの読み出し
数とする。通信の初期化時には、これらの変数を0に初
期化する。
Cinit is an initial credit, Rate is a transmission line speed, Tprop is a round trip transfer delay time of the transmission line, Cnew is a credit, Tc is a credit transmission period, Credit_count is a value of a credit counter 68, Fsize is a frame size, C
Let offset be the increment value of the credit value, and Rbuf be the number of frames read from the reception buffer of the reception side device per unit time. At the time of initialization of communication, these variables are initialized to 0.

【0041】クレジット演算処理部69は、通知された
初期クレジット(Cinit)数のフレームの送信に要する
時間が、往復の転送遅延時間(Tprop)の1/2の値よ
り大きい場合、即ち Cinit×Fsize/Rate≧Tprop/2 ……(1) を満たす場合は、以下の処理を行う。
The credit calculation processing unit 69, when the time required to transmit the notified number of frames of the initial credit (Cinit) is larger than 1/2 of the round trip transfer delay time (Tprop), that is, Cinit × Fsize. / Rate ≧ Tprop / 2 (1) When the condition (1) is satisfied, the following processing is performed.

【0042】まず、 Credit_count=Cinit ……(2) というようにクレジットカウンタ68(Credit_count)
に初期クレジット(Cinit)をセットする。
First, the credit counter 68 (Credit_count) such as Credit_count = Cinit (2)
Set the initial credit (Cinit) to.

【0043】受信側装置80は、続いて周期的にクレジ
ットが記載されたフレームを受信すると、 Credit_count=Cnew+Credit_count ……(3) という処理を行う。
When the receiving side device 80 subsequently receives a frame in which credits are described periodically, it performs the process of Credit_count = Cnew + Credit_count (3).

【0044】受信バッファ85に格納可能なフレームの
送信に要する時間が往復の転送遅延時間の1/2より短
い場合、即ち Cinit×Fsize/Rate<Tprop/2 ……(4) を満たす場合は、以下の処理を行う。
When the time required to transmit a frame that can be stored in the reception buffer 85 is shorter than 1/2 of the round trip transfer delay time, that is, when Cinit × Fsize / Rate <Tprop / 2 (4) is satisfied, The following processing is performed.

【0045】送信側装置60は、初期化フレームの応答
フレームを受信した時、該フレームのクレジット数10
6に記載されている初期クレジットをクレジットカウン
タ68にセット、即ち Credit_count=Cinit ……(5) とする。
When the transmission side device 60 receives the response frame of the initialization frame, the credit number of the frame is 10
The initial credit described in 6 is set in the credit counter 68, that is, Credit_count = Cinit (5).

【0046】送信側装置60は、受信側装置80から周
期的に送信されてくる、クレジットが記載されているフ
レーム100を受信すると、受信側装置80の受信バッ
ファ85からの単位時間当たりのフレームの読み出し数
(Rbuf)を、クレジット(Cnew)とクレジット送信間隔
(Tc)から Rbuf=Cnew/Tc ……(6) として求める。
When the transmission side device 60 receives the frame 100 in which the credit is written, which is periodically transmitted from the reception side device 80, the frame per unit time from the reception buffer 85 of the reception side device 80 is received. The read number (Rbuf) is calculated as Rbuf = Cnew / Tc (6) from the credit (Cnew) and the credit transmission interval (Tc).

【0047】フレームのクレジット数106に記載され
ている値に基づいて、 Coffset=(Tprop/2−Cinit×Fsize/Rate)×Rbuf×Fsize/Rate −Coffset Credit_count=Credit_count+Cnew+Coffset ……(7) という式から、クレジットカウンタ68に値をセットす
る。
Based on the value described in the frame credit number 106, Coffset = (Tprop / 2-Cinit * Fsize / Rate) * Rbuf * Fsize / Rate-Coffset Credit_count = Credit_count + Cnew + Coffset (7) , A value is set in the credit counter 68.

【0048】以上の処理を送信側装置60は、クレジッ
トを記載したフレームを受信する度に行う。
The transmitting side device 60 performs the above processing each time it receives a frame in which a credit is described.

【0049】また、式(7)を、 Coffset=(Tprop/2−Cinit×Fsize/Rate)×Rbuf×Fsize/Rate −Coffset Credit_count=Credit_count+Cnew+α×Coffset ……(8) に置き換えることにより、受信バッファ85がオーバー
フローする危険性を低くすることが可能である(但し、
αは1未満の値である。)。
Further, by replacing the equation (7) with Coffset = (Tprop / 2−Cinit × Fsize / Rate) × Rbuf × Fsize / Rate-Coffset Credit_count = Credit_count + Cnew + α × Coffset (8), the receiving buffer 85 It is possible to reduce the risk of overflow (but
α is a value less than 1. ).

【0050】送信側装置60は、周期的に受信するフレ
ーム100に記載されているフレーム蓄積数105の値
と初期クレジットとの差がある特定の値以下になった時
は、 Credit_count=Credit_count+Cnew ……(9) によりクレジットカウンタ68に値をセットする。
When the difference between the value of the accumulated frame number 105 described in the frame 100 that is periodically received and the initial credit becomes less than a specific value, the transmitting side device 60 credit_count = Credit_count + Cnew. The value is set in the credit counter 68 by (9).

【0051】[0051]

【発明の効果】以上説明したように本発明によれば、通
信の初期化時に、送信側装置及び受信側装置間の転送遅
延時間を測定し、該測定結果が受信側装置の受信バッフ
ァに格納可能なフレーム数分のデータの送信に要する時
間より大きい場合は、送信側装置に送信を許可するフレ
ーム数を、転送遅延時間と受信側装置の受信バッファに
格納可能なフレーム数分のデータの送信に要する時間と
の差に比例して増加させることにより、転送遅延時間が
増加しても転送性能が低下しないフロー制御を行うこと
ができる。また、受信側装置から送信側装置に定期的に
送信される受信バッファからのフレームの読み出し数と
その送信周期とにより、送信側装置は受信側装置の受信
バッファからの読み出し速度を求めることができ、該読
み出し速度により送信側装置に送信を許可するフレーム
数を設定することにより、受信側装置の上位レイヤの処
理速度に応じて受信バッファのオーバーフローを回避し
つつ高効率のフロー制御を行うことができる。
As described above, according to the present invention, the transfer delay time between the transmission side device and the reception side device is measured at the time of initialization of communication, and the measurement result is stored in the reception buffer of the reception side device. If it is longer than the time required to send the data for the number of possible frames, set the number of frames that the sending device is allowed to send to the transfer delay time and the amount of data that can be stored in the receiving buffer of the receiving device. It is possible to perform flow control in which the transfer performance does not deteriorate even if the transfer delay time increases by increasing the transfer delay time in proportion to the difference in time. In addition, the number of frames read from the reception buffer that is periodically transmitted from the reception side device to the transmission side device and the transmission cycle thereof allow the transmission side device to obtain the reading speed from the reception buffer of the reception side device. By setting the number of frames permitted to be transmitted to the transmission side device by the read speed, highly efficient flow control can be performed while avoiding overflow of the reception buffer according to the processing speed of the upper layer of the reception side device. it can.

【0052】また、送信側装置に送信を許可するフレー
ム数の増加量に1未満の係数をかけることにより、さら
にオーバーフローの危険性を低くしたフロー制御を行う
ことができる。
Further, by multiplying the increase amount of the number of frames permitted to be transmitted to the transmission side device by a coefficient of less than 1, it is possible to perform flow control with a further reduced risk of overflow.

【0053】さらにまた、受信側装置から送信側装置に
受信バッファにおけるフレームの蓄積数を転送し、該フ
レームの蓄積数と受信バッファに格納可能なフレーム数
との差を求めることにより、受信側装置の受信バッファ
の空容量を知り、該空容量がある特定の値以下になった
時、送信側装置に送信を許可するフレーム数の増加量を
小さくすることによって受信側装置の受信バッファのオ
ーバーフローを防止することが可能である.
Furthermore, the receiving side device transfers the accumulated number of frames in the receiving buffer from the receiving side device to the transmitting side device and obtains the difference between the accumulated number of frames and the number of frames that can be stored in the receiving buffer. Of the receiving buffer of the receiving side device, and when the free space becomes less than a certain value, the receiving device overflow of the receiving side device can be prevented by reducing the increase amount of the number of frames permitted to be transmitted to the transmitting side device. It is possible to prevent it.

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

【図1】従来のフロー制御方法の一例を示す送信側装置
の構成図
FIG. 1 is a configuration diagram of a transmission side device showing an example of a conventional flow control method.

【図2】従来のフロー制御方法の一例を示す受信側装置
の構成図
FIG. 2 is a block diagram of a receiving side device showing an example of a conventional flow control method.

【図3】従来のフロー制御方法の一例を示すフレームの
構成図
FIG. 3 is a frame configuration diagram showing an example of a conventional flow control method.

【図4】本発明のフロー制御方法の実施の形態を示す送
信側装置の構成図
FIG. 4 is a configuration diagram of a transmission side apparatus showing an embodiment of a flow control method of the present invention.

【図5】本発明のフロー制御方法の実施の形態を示す受
信側装置の構成図
FIG. 5 is a configuration diagram of a receiving side apparatus showing an embodiment of a flow control method of the present invention.

【図6】本発明のフロー制御方法の実施の形態を示すフ
レームの構成図
FIG. 6 is a frame configuration diagram showing an embodiment of a flow control method of the present invention.

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

60…送信側装置、61…上位レイヤ送信処理部、62
…フロー制御処理部、63…送信バッファ、64…クレ
ジット抽出部、65…送信バッファ制御部、66…送信
伝送処理部、67…受信伝送処理部、68…クレジット
カウンタ、69…クレジット演算処理部、70…セレク
タ、71…初期化処理部、72…クロック、80…受信
側装置、81…受信伝送処理部、82…送信伝送処理
部、83…受信フレームカウンタ、84…クレジットフ
レーム生成部、85…受信バッファ、86…送信クロッ
ク、87…バッファ読み出し制御部、88…上位レイヤ
受信処理部、89…受信バースト、90…フロー制御信
号、100…フレーム、101…フレーム種別、102
…宛先アドレス、103…送り元アドレス、104…送
信間隔、105…フレーム蓄積数、106…クレジット
数、107…フレームヘッダ、108…ユーザ情報、1
09…ぺイロード、A,B…伝送路。
60 ... Transmission side device, 61 ... Upper layer transmission processing unit, 62
... Flow control processing unit, 63 ... Transmission buffer, 64 ... Credit extraction unit, 65 ... Transmission buffer control unit, 66 ... Transmission transmission processing unit, 67 ... Reception transmission processing unit, 68 ... Credit counter, 69 ... Credit calculation processing unit, 70 ... Selector, 71 ... Initialization processing section, 72 ... Clock, 80 ... Reception side device, 81 ... Reception transmission processing section, 82 ... Transmission transmission processing section, 83 ... Reception frame counter, 84 ... Credit frame generation section, 85 ... Reception buffer, 86 ... Transmission clock, 87 ... Buffer reading control unit, 88 ... Upper layer reception processing unit, 89 ... Reception burst, 90 ... Flow control signal, 100 ... Frame, 101 ... Frame type, 102
... destination address, 103 ... source address, 104 ... transmission interval, 105 ... frame accumulation number, 106 ... credit number, 107 ... frame header, 108 ... user information, 1
09 ... Payload, A, B ... Transmission line.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 受信側装置が受信バッファからのフレー
ムの読み出し数を送信側装置に通知し、送信側装置は該
通知に基づきデータの送信量を制御するフロー制御方法
において、 送信側装置は通信の初期化時に初期化用のフレームを受
信側装置に送信し、 受信側装置は該初期化用のフレームを受信した時、該受
信側装置の受信バッファが格納可能なフレーム数を記載
した応答フレームを返送し、 送信側装置は初期化用のフレームを送信してから応答フ
レームを受信するまでの時間を測定して往復の転送遅延
時間を測定し、該往復の転送遅延時間の1/2の時間が
前記応答フレームに記載されている受信側装置の受信バ
ッファに格納可能なフレーム数分のデータの送信に要す
る時間より大きい場合、送信を許可するフレーム数を受
信側装置の受信バッファに格納可能なフレーム数より増
加し、 受信側装置は受信バッファからのフレームの読み出し数
を定期的に測定し、該測定結果及び前回の測定時間から
今回の測定時間までの時間差を記載したフレームを定期
的に送信側装置に送信し、 送信側装置は前記フレームを受信した時、該フレームに
記載された測定結果と時間差とにより受信側装置の受信
バッファからのフレームの読み出し速度を求め、該読み
出し速度と前記往復の転送遅延時間とに基づいて送信を
許可するフレーム数の増加量を求めるようになしたこと
を特徴とするフロー制御方法。
1. A flow control method in which a receiving device notifies a transmitting device of the number of frames read from a receiving buffer, and the transmitting device controls a data transmission amount based on the notification, in which the transmitting device communicates. At the time of initialization, the initialization frame is transmitted to the reception side device, and when the reception side device receives the initialization frame, the response frame describing the number of frames that can be stored in the reception buffer of the reception side device. The transmission side device measures the time from the transmission of the initialization frame to the reception of the response frame to measure the round trip transfer delay time, which is half the round trip transfer delay time. If the time is longer than the time required to transmit the data of the number of frames that can be stored in the reception buffer of the receiving side device described in the response frame, the number of frames permitted for transmission is set to the receiving side device. The number of frames that can be stored in the reception buffer is increased, and the receiving device periodically measures the number of frames read from the reception buffer, and describes the measurement result and the time difference from the previous measurement time to the current measurement time. The frame is periodically transmitted to the transmission side device, and when the transmission side device receives the frame, the reading speed of the frame from the reception buffer of the reception side device is obtained from the measurement result and the time difference described in the frame, A flow control method, wherein an increase amount of the number of frames permitted to be transmitted is obtained based on the read speed and the round-trip transfer delay time.
【請求項2】 送信を許可するフレーム数の増加量に1
未満の係数を掛けた値を増加量とすることを特徴とする
請求項1記載のフロー制御方法。
2. The increase amount of the number of frames permitted to be transmitted is 1
The flow control method according to claim 1, wherein a value obtained by multiplying the coefficient by less than is set as the increase amount.
【請求項3】 受信側装置から送信側装置に送信するフ
レームにその時点で該受信側装置の受信バッファに蓄積
されているフレーム数を記載し、送信側装置では該フレ
ーム数と受信側装置の受信バッファに格納可能なフレー
ム数との差を求めることにより受信側装置の受信バッフ
ァの空容量を知り、受信バッファの空容量がある特定の
値以下になった場合、送信を許可するフレーム数の増加
量を減らすことを特徴とする請求項1または2記載のフ
ロー制御方法。
3. The number of frames accumulated in the reception buffer of the receiving side device at that time is described in the frame transmitted from the receiving side device to the transmitting side device. Knowing the free space in the receiving buffer of the receiving device by finding the difference with the number of frames that can be stored in the receiving buffer, and when the free space in the receiving buffer is below a certain value, the number of frames to allow transmission The flow control method according to claim 1, wherein the increase amount is reduced.
【請求項4】 受信側装置の受信バッファの空容量が特
定の値以下から特定の値以上に変化した場合、送信側装
置に送信を許可するフレーム数を増加させることを特徴
とする請求項3記載のフロー制御方法。
4. The number of frames permitted to be transmitted to the transmission side device is increased when the free capacity of the reception buffer of the reception side device changes from below a specific value to above a specific value. The described flow control method.
JP3674396A 1996-02-23 1996-02-23 Flow control method Pending JPH09233082A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3674396A JPH09233082A (en) 1996-02-23 1996-02-23 Flow control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3674396A JPH09233082A (en) 1996-02-23 1996-02-23 Flow control method

Publications (1)

Publication Number Publication Date
JPH09233082A true JPH09233082A (en) 1997-09-05

Family

ID=12478215

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3674396A Pending JPH09233082A (en) 1996-02-23 1996-02-23 Flow control method

Country Status (1)

Country Link
JP (1) JPH09233082A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100320395B1 (en) * 1998-02-27 2002-01-15 클라크 3세 존 엠. Flow control method for networks
WO2004107699A1 (en) * 2003-05-30 2004-12-09 Fujitsu Limited Flow control device
JP2007019953A (en) * 2005-07-08 2007-01-25 Oki Electric Ind Co Ltd Video data transmission system
WO2008023656A1 (en) * 2006-08-23 2008-02-28 Panasonic Corporation Communications equipment
JP2014230072A (en) * 2013-05-22 2014-12-08 株式会社リコー Data communication device, data communication apparatus, and data communication method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100320395B1 (en) * 1998-02-27 2002-01-15 클라크 3세 존 엠. Flow control method for networks
WO2004107699A1 (en) * 2003-05-30 2004-12-09 Fujitsu Limited Flow control device
JP2007019953A (en) * 2005-07-08 2007-01-25 Oki Electric Ind Co Ltd Video data transmission system
WO2008023656A1 (en) * 2006-08-23 2008-02-28 Panasonic Corporation Communications equipment
US8014287B2 (en) 2006-08-23 2011-09-06 Panasonic Corporation Communications apparatus
JP2014230072A (en) * 2013-05-22 2014-12-08 株式会社リコー Data communication device, data communication apparatus, and data communication method

Similar Documents

Publication Publication Date Title
US7200672B2 (en) Flow control system and method
JP2929991B2 (en) Optimization credit control method
US5835484A (en) Method and apparatus for controlling congestion in communication network
CN111817977B (en) Network congestion control method and device
US4506361A (en) Retransmission control system
US7643504B2 (en) Credit based flow control in an asymmetric channel environment
US20060062169A1 (en) Dynamic bandwidth assignment system and dynamic bandwidth assignment method capable of reducing cell transmission delay
CN1992582B (en) Implementation method for adaptive variable slide receiving window of broadband signaling link
US20080192633A1 (en) Apparatus and method for controlling data flow in communication system
US5872789A (en) Method for reducing jitter of ATM cells
KR100408044B1 (en) Traffic control system and method in atm switch
JP2005018768A (en) Dual-port functionality for single-port cell memory device
JPH09233082A (en) Flow control method
JP2001203697A (en) Flow control method and communication element executing it
CN107302504B (en) Multipath transmission scheduling method and system based on virtual sending queue
CN100414939C (en) Conversion circuit and method between ATM data and data in frame format, and transmission exchange system
JP3100612B2 (en) Billing method and apparatus in exchange
CN116723133B (en) Data transmitting and receiving equipment, network state information extraction method and device
JP2875559B2 (en) Routing method and node circuit for burst data transfer
KR101049289B1 (en) Transmission speed control device and method in asynchronous transmission system
KR0140782B1 (en) Measurement system for performance of cell transferring system in atm switch
KR100246568B1 (en) Transmission range predicting device for transferring abr on atm
JPH0974414A (en) Atm communication network
CN116760779A (en) Network congestion control method, system, storage medium and electronic equipment
US20030191631A1 (en) System and method for minimizing overrun and underrun errors in packetized voice transmission