JPH0831844B2 - Error recovery device - Google Patents

Error recovery device

Info

Publication number
JPH0831844B2
JPH0831844B2 JP59111434A JP11143484A JPH0831844B2 JP H0831844 B2 JPH0831844 B2 JP H0831844B2 JP 59111434 A JP59111434 A JP 59111434A JP 11143484 A JP11143484 A JP 11143484A JP H0831844 B2 JPH0831844 B2 JP H0831844B2
Authority
JP
Japan
Prior art keywords
frame
sequence number
srej
transmission
control circuit
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.)
Expired - Lifetime
Application number
JP59111434A
Other languages
Japanese (ja)
Other versions
JPS60254936A (en
Inventor
祐治 小笠原
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59111434A priority Critical patent/JPH0831844B2/en
Publication of JPS60254936A publication Critical patent/JPS60254936A/en
Publication of JPH0831844B2 publication Critical patent/JPH0831844B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1809Selective-repeat protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • H04L1/1832Details of sliding window management

Description

【発明の詳細な説明】 (1) 発明の技術分野 本発明はコンピュータや衛星通信などにおけるデータ
伝送のための通信制御方式の1つであるHDLC(High Lev
el Date Link Control Procedures)方式におけるエラ
ー・リカバリーに関する。
DETAILED DESCRIPTION OF THE INVENTION (1) Technical Field of the Invention The present invention relates to HDLC (High Lev) which is one of communication control systems for data transmission in computers and satellite communications.
el Date Link Control Procedures) error recovery.

(2) 技術の背景 コンピュータシステムにおいてコンピュータと各端末
間,または各端末相互間で通信を行う場合,あるいは衛
星通信において各地上局間で通信を行う場合などにおい
ては,通信回線が接続されたことの確認,自局及び相手
局のアドレスの確認,情報メッセージが正しく伝送され
たことの確認,情報メッセージの送信終了の確認などを
行う必要がある。このような通信制御において伝送効率
が高く,信頼性の高い通信制御方式としてHDLC(High L
evel Data Link Control Procedure)がある。
(2) Background of technology When communication is performed between a computer and terminals, or between terminals in a computer system, or when communication is performed between ground stations in satellite communication, the communication line has been connected. It is necessary to check the information, the addresses of the local station and the partner station, confirm that the information message was transmitted correctly, and confirm that the information message has been sent. In such communication control, HDLC (High L
evel Data Link Control Procedure).

HDLCにおいては情報メッセージや各制御情報は特定の
ビットパターン(フラグ)で囲まれたフレームと呼ばれ
るブロック単位で送受信される。第1図にこのフレーム
の構成を示す。フラグFはフレームの区切りを示すもの
で,“01111110"という1バイトのビットパターンで表
わされる。アドレスフィールドAは送信側,受信側のア
ドレスを表示するためのフィールド(1バイト程度)
で,制御フィールドCはフレームの種類の指定や番号管
理(後述する)等の制御に使用されるフィールド(1〜
2バイト程度)である。また,送信する情報メッセージ
はIフィールドに書き込まれる。フレームチェックシー
ケンスFCSは上記各フィールドのビットパターンが正し
く伝送されたかを,サイクリックチェック(CRC)方式
と呼ばれる誤り制御方式によって確認するために使用さ
れるビットシーケンス(2バイト程度)である。
In HDLC, information messages and control information are transmitted and received in block units called frames surrounded by specific bit patterns (flags). FIG. 1 shows the structure of this frame. The flag F indicates a frame delimiter, and is represented by a 1-byte bit pattern "01111110". Address field A is a field (about 1 byte) for displaying the addresses of the sender and receiver
The control field C is a field (1 to 1) used for control such as frame type designation and number management (described later).
2 bytes). The information message to be transmitted is written in the I field. The frame check sequence FCS is a bit sequence (about 2 bytes) used to confirm whether or not the bit pattern of each field is correctly transmitted by an error control method called a cyclic check (CRC) method.

以上のような構成のフレームによって情報メッセージ
の送受信を行う場合,フレームとしての番号が送信シー
ケンス番号及び受信シーケンス番号として管理され,現
在送信側で送信したフレームは何番目のフレームであ
り,受信側では何番目のフレームまで受信したという情
報にして各フレーム中に挿入される。このような構成に
よって,各送信フレームに対する受信側からの応答を待
つことなく,次々にフレームを送信することができ,伝
送効率の高い通信を行うことができる。
When information messages are transmitted / received by the frame having the above configuration, the frame numbers are managed as the transmission sequence number and the reception sequence number, and the frame currently transmitted by the transmitting side is the number of the frame, and the receiving side by the receiving side. It is inserted in each frame as information indicating up to what frame the frame has been received. With such a configuration, frames can be transmitted one after another without waiting for a response from the receiving side for each transmission frame, and communication with high transmission efficiency can be performed.

このような方式においては,信頼性の高い伝送を行う
ために正確かつ迅速な誤りの制御を行うことが重要とな
ってくる。
In such a system, it is important to perform accurate and speedy error control in order to perform highly reliable transmission.

(3) 従来技術と問題点 HDLCにおいて誤り制御を行うためには,フレーム内の
各ビットパターンの誤り制御には第1図におけるフレー
ムチェックシーケンスFCSを用いたサイクリックチェッ
ク(CRC)方式が用いられるが,本実施例においてはそ
の方式の説明は省略する。その他の誤りとしては通信回
線においてフレームがそっくり失われてしまうというよ
うな誤りがある。このような誤りに対する制御として
は,送信側から送られてくるフレームの送信シーケンス
番号を受信側で監視する方式がある。第2図を用いてそ
の方式を説明する。送信側から送信される各|I(j,k)
|は送信シーケンス番号がj,受信シーケンス番号がkで
ある情報メッセージを含むフレームであることを示す。
ここでは受信シーケンス番号は特に用いないので,全て
k=0とする。いま,送信側から情報メッセージを5フ
レーム送信したとすると,受信側で受信される各フレー
ムの送信シーケンス番号を監視した場合,送信シーケン
ス番号は0から4まで順に受信されるはずである。とこ
ろが受信側では1と4の送信シーケンス番号しか受信し
なかったとすると(第2図中,受信側の○で示したフレ
ーム),送信シーケンス番号が0,2,及び3のフレームは
正しく受信されなかったことがわかる(図中,×で示し
たフレーム)。そこで受信側は正しく受信されなかった
フレームの送信シーケンス番号を送信側に通知して,そ
のフレームの再送信(再送と呼ぶ)を要求することがで
きる。その要求をセレクティブ・リジェクト(以下SREJ
と略す)と呼び,SREJフレームと呼ばれるフレームを受
信側から送信側へ送出することによって実現される。SR
EJフレームは第1図のフレーム構成において,制御フィ
ールドCにSREJを示すビットパターンを書き込み,さら
に誤った送信シーケンス番号をSREJフレームの受信シー
ケンス番号としてフレーム内に書き込むことによって構
成される。第2図において,受信側において送信シーケ
ンス番号の誤りが検出され,まず送信シーケンス番号0
に対するSREJフレーム|SREJ(0)|が送信側に送出さ
れる。ここで|SREJ(l)|は誤った送信シーケンス番
号lを受信シーケンス番号として持つSREJフレームを示
す。送信側では|SREJ(0)|を受け取り,その受信シ
ーケンス番号0と同じ送信シーケンス番号の情報メッセ
ージを含むフレーム|I(0,0)|を受信側に再送する。
そして受信側において|SREJ(0)|を送出してから一
定時間内に再送されてきた|I(0,0)|を受信すれば,
送信シーケンス番号0のフレームは正しく受信されたと
する。次に|I(4,0)|を受信したので送信シーケンス
番号2に対する|SREJ(2)|を送出する。続けて|SREJ
(3)|を送信するが,|I(2,0)|が誤まり,|I(3,0)
|が正しく受信された。
(3) Conventional technology and problems In order to perform error control in HDLC, the cyclic check (CRC) method using the frame check sequence FCS in Fig. 1 is used for error control of each bit pattern in the frame. However, the description of the method is omitted in this embodiment. Other errors include the error that frames are completely lost in the communication line. As a control for such an error, there is a method in which the receiving side monitors the transmission sequence number of the frame sent from the transmitting side. The method will be described with reference to FIG. Each | I (j, k) sent from the sender
| Indicates a frame including an information message whose transmission sequence number is j and whose reception sequence number is k.
Since no reception sequence number is used here, it is assumed that k = 0. If five frames of information messages are transmitted from the transmission side, the transmission sequence numbers should be sequentially received from 0 to 4 when the transmission sequence number of each frame received by the reception side is monitored. However, if the receiving side receives only the transmission sequence numbers 1 and 4 (frames indicated by a circle on the receiving side in FIG. 2), the frames having the transmission sequence numbers 0, 2, and 3 are not correctly received. You can see that (the frame indicated by × in the figure). Therefore, the receiving side can notify the transmitting side of the transmission sequence number of the frame that was not correctly received, and can request the retransmission (called retransmission) of the frame. Selective reject (hereinafter SREJ)
It is realized by sending a frame called SREJ frame from the receiving side to the transmitting side. SR
The EJ frame is configured by writing a bit pattern indicating SREJ in the control field C in the frame structure of FIG. 1 and further writing an erroneous transmission sequence number in the frame as a reception sequence number of the SREJ frame. In FIG. 2, an error in the transmission sequence number is detected on the receiving side, and first the transmission sequence number 0
SREJ frame | SREJ (0) | is sent to the sender. Here, | SREJ (l) | indicates an SREJ frame having an erroneous transmission sequence number l as a reception sequence number. The transmitting side receives | SREJ (0) | and retransmits to the receiving side a frame | I (0,0) | containing an information message having the same transmitting sequence number as the receiving sequence number 0.
If the receiving side receives | SREJ (0) | and is retransmitted within a certain time after receiving | I (0,0) |,
It is assumed that the frame with the transmission sequence number 0 is correctly received. Next, since | I (4,0) | is received, | SREJ (2) | for the transmission sequence number 2 is transmitted. Continue | SREJ
(3) | is sent, but | I (2,0) | is incorrect and | I (3,0)
| Was received correctly.

送信したIフレームが受信側に正しく受信されたか否
かを監視するために,Iフレームを送信したときタイマを
スタートまたはリスタートし,送信したすべてのIフレ
ームの受信確認ができたときストップするタイマを設
け,タイムアウト時に受信側にIフレームの受信状況を
問い合せるためのRR・Pフレームを送信する。受信側は
|I(2,0)|を正しく受信していないので,|SREJ(2)F
|を送信する。送信側は,|SREJ(2)F|に対して|I(2,
0)|を送信してタイマをスタートする。この方法は,
伝搬遅延の大きい衛星回線や高速回線ではエラー・リカ
バリィに時間がかかるという問題点がある。
A timer that starts or restarts a timer when an I frame is transmitted and stops when all the transmitted I frames can be confirmed to monitor whether or not the transmitted I frame is correctly received by the receiving side. Is provided to transmit an RR / P frame for inquiring the receiving side of the reception status of the I frame at the time-out. The receiver is
| I (2,0) | was not received correctly, so | SREJ (2) F
Send |. The transmitting side responds to | SREJ (2) F | with | I (2,
0) | is sent to start the timer. This method
There is a problem that error recovery takes a long time in a satellite line or a high-speed line with a large propagation delay.

(4) 発明の目的 本発明は上記問題点を除くため,送信したSREJフレー
ムの受信シーケンス番号を順に記憶する手段を設けるこ
とによって,再送フレームが送信されてくる間にSREJフ
レームを複数送信できるエラー・リカバリィ装置を提供
することを目的とする。
(4) Object of the Invention In order to eliminate the above problems, the present invention provides a means for sequentially storing the reception sequence numbers of the transmitted SREJ frames, thereby making it possible to transmit a plurality of SREJ frames while a retransmission frame is transmitted. -The purpose is to provide a recovery device.

(5) 発明の構成 本発明は、HDLC通信制御装置において、再送要求フレ
ームを送信した順にこの再送要求フレームに含まれるシ
ーケンス番号を順次記憶する順次記憶手段と、受信され
る再送フレームに含まれるシーケンス番号と上記順次記
憶手段に最も古く記憶されているシーケンス番号とを比
較する比較手段と、この比較手段での比較結果に基づい
て、上記順次記憶手段に最も古く記憶されているシーケ
ンス番号に対応する再送フレームの転送エラーを検出す
る転送エラー検出手段とを有することを特徴とするエラ
ー・リカバリィ装置を提供する。
(5) Configuration of the Invention According to the present invention, in an HDLC communication control device, a sequential storage unit that sequentially stores the sequence numbers included in a retransmission request frame in the order in which the retransmission request frame is transmitted, and a sequence included in a received retransmission frame. Comparing means for comparing the number with the oldest sequence number stored in the sequential storage means, and corresponding to the oldest stored sequence number in the sequential storage means based on the comparison result by this comparing means. Provided is an error recovery device having a transfer error detecting means for detecting a transfer error of a retransmission frame.

(6) 発明の実施例 以下,本発明の実施例について詳細に説明を行う。(6) Examples of the Invention Hereinafter, examples of the present invention will be described in detail.

第3図は本発明によるエラー・リカバリィ装置の原理
を説明するための図である。第3図(a)において|I
(0,0)|,・・・及び|SREJ(0)|,・・・の意味は第2
図の従来例の場合と同様である。まず送信側から情報メ
ッセージを5フレームの情報Iフレームとして受信側へ
送信する。すなわち送信側から送信される5フレームの
情報Iフレームの送信シーケンス番号は,0〜4までであ
る。次に受信側において,送信シーケンス番号が0,2,及
び3の情報Iフレームを受信できなかったとする(第3
図(a)の状態S0)。そこで受信できなかった情報Iフ
レームの送信シーケンス番号0,2,3を受信シーケンス番
号として持つSREJフレームとして,|SREJ(0)|,|SREJ
(2)|,及び|SREJ(3)|を順に受信側から送信側へ
送出する(第3図(a)の状態S1,S2,S3)。この時送出
したSREJフレームの受信シーケンス番号0,2,3を送出し
た順に記憶しておくための記憶手段(以下,キューと呼
ぶ)を受信側に設ける。そのための動作原理を表わした
のが第3図(b)である。また第3図(a)において|S
REJ(0)|を送出したら(状態S1),その受信シーケ
ンス番号0をキューに記憶する(以下,キューインと呼
ぶ)。すなわち第3図(b)の状態S1のようになる。こ
の時,第3図(b)に示すように各受信シーケンス番号
はキューに左側から入力する。続いて第3図(a)にお
いて|SREJ(2)|及び|SREJ(3)|を順に送出したら
(状態S2及びS3),それらの受信シーケンス番号2及び
3を順にキューにキューインする。すなわち第3図
(b)の状態S2及びS3のようになる。この結果,キュー
には送出したSREJフレームの受信シーケンス番号0,2,3
が,送出した順に記憶される(第3図(b)の状態S
3)。次に送信側においては受信側から送出された各SRE
Jフレームを受け取り,この各SREJフレームの受信シー
ケンス番号0,2,3と同じ送信シーケンス番号を持つ情報
Iフレームとして、|I(0,0)|,|(2,0)|、及び|I
(3,0)|を順に受信側へ再送信(以下、再送と呼ぶ)
する。すなわちこれらの再送Iフレームが先に受信側に
おいて受信できなかった情報Iフレームとして、再び受
信側へ再送される。続いて受信側において、送信側から
再送された再送Iフレームを受信する。まず送信シーケ
ンス番号0の再送Iフレーム|I(0,0)|が受信される
(第3図(a)の状態S4)。この再送Iフレームの送信
シーケンス番号0はキューの先頭に記憶されている番号
と同じはずである。すなわち先に送出したSREJフレーム
の受信シーケンス番号の順に、それらに対応する送信シ
ーケンス番号の再送Iフレームが受信されるはずであ
る。よってまず送信シーケンス番号0の再送Iフレーム
|(0,0)|を受信し、その送信シーケンス番号0がキ
ューの先頭に記憶されている番号と一致したら、再送I
フレーム|I(0,0)|は正常に受信されたとして、その
番号をキューの外に取り出す(以下、キューアウトと呼
ぶ)。すなわち第3図(b)の状態S4のようになる。こ
の時、第3図(b)に示すようにキューの先頭の番号
は、キューの右側から取り出される。この結果、キュー
の先頭に記憶されている番号は2となり、次に受信され
る再送Iフレームに記憶されている番号とが比較され
る。ところが第3図(a)の状態S5において,送信シー
ケンス番号2の再送Iフレーム|I(2,0)|が再び受信
できなかったとする。(これは|SREJ(2)|の送信時
か,|I(2,0)|の送信時にエラーが起こったことを示
す。)この場合,受信側においては,|I(2,0)|を受信
できなかったのでキューの内容は変化しない(第3図
(b)の状態S5)。そして次に第3図(a)の状態S6に
おいて,送信シーケンス番号3の再送Iフレーム|(3,
0)|が受信されたとする。これによってその番号がキ
ューの先頭に記憶されている番号と比較されるが,キュ
ーの先頭には2が記憶されている。従って番号が一致し
ないので,送信シーケンス番号2の再送Iフレームが正
常に受信できなかったことが受信側でわかる。そこで受
信側においてはキューの先頭の番号2をまずキューアウ
トする(第3図(b)の状態S6−1)。次にその番号を
受信シーケンス番号として持つSREJフレーム|SREJ
(2)|を再び送信側へ送出し,|I(2,0)|の再送を要
求する。この時,SREJフレームが送出されたので,その
番号2をキューにキューインする(第3図(b)の状態
S6−2)。このようにして送信シーケンス番号2の再送
Iフレームに対するエラー訂正処理が完了する。続いて
状態S6で受信されている再送Iフレーム|I(3,0)|の
送信シーケンス番号3と、キューの先頭の受信シーケン
ス番号3とを比較する。この結果,両者が一致するの
で,|I(3,0)|が正常に受信されたとして,その番号を
キューアウトする。すなわち第3図(b)の状態S6−3
のようになる。この結果,キューには番号2のみが残
り,送信シーケンス番号2の再送Iフレームがまだ正常
に受信されていないことがわかる。そして最後に第3図
(a)の状態S7において,送信側から再送Iフレーム|I
(2,0)|が再送され,受信側で正常に受信されると,
その送信シーケンス番号2とキューの先頭に記憶されて
いる番号とが一致し,2をキューアウトしてエラー訂正を
終了する(第3図(b)の状態S7)。以上のように,受
信側でSREJフレームを送出したらその受信シーケンス番
号をキューインし,再送Iフレームを受信しその送信シ
ーケンス番号がキューの先頭の番号と一致したらキュー
アウトする。このようにすることによって,番号が一致
しなかったら,キューの先頭の番号を送信シーケンス番
号として持つ再送Iフレームがエラーを起こしたことが
わかり,それに対応するSREJフレームを再び送出し,同
じ処理を繰り返すことによってSREJフレームを次々に送
出することができる。すなわち本発明はSREJフレームの
送出順序と,再送Iフレームの受信順序とが必ず一致す
るという仮定を利用し,その順序が狂ったらエラーが起
こったと判断するものである。
FIG. 3 is a diagram for explaining the principle of the error recovery device according to the present invention. In Fig. 3 (a) | I
(0,0) |, ... and | SREJ (0) |, ... mean the second
This is similar to the case of the conventional example in the figure. First, the information message is transmitted from the transmission side to the reception side as an information I frame of 5 frames. That is, the transmission sequence number of the information I frame of 5 frames transmitted from the transmission side is from 0 to 4. Next, it is assumed that the receiving side cannot receive the information I frames having the transmission sequence numbers of 0, 2, and 3 (third part).
The state S 0 in FIG. As a SREJ frame having the transmission sequence numbers 0, 2, and 3 of the information I frame that could not be received as reception sequence numbers, | SREJ (0) |, | SREJ
(2) |, and | SREJ (3) | are sequentially transmitted from the receiving side to the transmitting side (states S1, S2, S3 in FIG. 3 (a)). The receiving side is provided with a storage means (hereinafter referred to as a queue) for storing the reception sequence numbers 0, 2, and 3 of the SREJ frame transmitted at this time in the order of transmission. FIG. 3B shows the operating principle therefor. Also, in FIG. 3 (a), | S
When REJ (0) | is transmitted (state S1), the reception sequence number 0 is stored in the queue (hereinafter referred to as queue-in). That is, the state becomes the state S1 in FIG. 3 (b). At this time, as shown in FIG. 3B, each reception sequence number is input to the queue from the left side. Subsequently, in FIG. 3A, when | SREJ (2) | and | SREJ (3) | are sequentially transmitted (states S2 and S3), those reception sequence numbers 2 and 3 are sequentially queued in the queue. That is, the states are S2 and S3 in FIG. As a result, the reception sequence number of the SREJ frame sent to the queue is 0, 2, 3
Are stored in the order of transmission (state S in FIG. 3 (b))
3). Next, on the transmitting side, each SRE sent from the receiving side
J frames are received, and as information I frames having the same transmission sequence number as the reception sequence numbers 0,2,3 of each SREJ frame, | I (0,0) |, | (2,0) |, and | I
(3,0) | is retransmitted to the receiving side in order (hereinafter called retransmission)
To do. That is, these retransmitted I frames are retransmitted to the receiving side again as information I frames that the receiving side could not previously receive. Then, the receiving side receives the retransmitted I frame retransmitted from the transmitting side. First, the retransmission I frame | I (0,0) | of the transmission sequence number 0 is received (state S4 in FIG. 3 (a)). The transmission sequence number 0 of this retransmission I frame should be the same as the number stored at the head of the queue. That is, the retransmitted I-frames having the transmission sequence numbers corresponding to them should be received in the order of the reception sequence numbers of the SREJ frames transmitted previously. Therefore, first, the retransmission I frame | (0,0) | of the transmission sequence number 0 is received, and if the transmission sequence number 0 matches the number stored at the head of the queue, the retransmission I frame is transmitted.
It is assumed that the frame | I (0,0) | is normally received, and the number is taken out of the queue (hereinafter referred to as queue out). That is, the state becomes S4 in FIG. 3 (b). At this time, as shown in FIG. 3B, the head number of the queue is taken out from the right side of the queue. As a result, the number stored at the head of the queue becomes 2, which is compared with the number stored in the retransmission I frame received next. However, it is assumed that the retransmitted I frame | I (2,0) | of the transmission sequence number 2 cannot be received again in the state S5 of FIG. 3 (a). (This indicates that an error occurred when sending | SREJ (2) | or sending | I (2,0) |.) In this case, | I (2,0) | Since the message was not received, the contents of the queue do not change (state S5 in FIG. 3 (b)). Then, in the state S6 of FIG. 3A, the retransmission I frame of the transmission sequence number 3 | (3,
0) | is received. This compares that number with the number stored at the beginning of the queue, but 2 is stored at the beginning of the queue. Therefore, since the numbers do not match, the receiving side knows that the retransmission I frame with the transmission sequence number 2 could not be received normally. Therefore, the number 2 at the head of the queue is first cueed out on the receiving side (state S6-1 in FIG. 3B). SREJ frame with that number as the receive sequence number | SREJ
(2) | is sent to the transmitting side again, and | I (2,0) | is retransmitted. At this time, since the SREJ frame has been sent, its number 2 is queued in the queue (state in Fig. 3 (b)).
S6-2). In this way, the error correction process for the retransmitted I frame of transmission sequence number 2 is completed. Then, the transmission sequence number 3 of the retransmission I frame | I (3,0) | received in the state S6 is compared with the reception sequence number 3 at the head of the queue. As a result, since both match, | I (3,0) | is assumed to be received normally, and the number is queued out. That is, the state S6-3 in FIG. 3 (b)
become that way. As a result, it can be seen that only the number 2 remains in the queue and the retransmitted I frame having the transmission sequence number 2 has not been normally received. Finally, in the state S7 of FIG. 3 (a), the retransmitted I frame | I
When (2,0) | is retransmitted and is received normally at the receiving side,
The transmission sequence number 2 coincides with the number stored at the head of the queue, and 2 is queued out to complete the error correction (state S7 in FIG. 3B). As described above, when the SREJ frame is transmitted on the receiving side, the reception sequence number is queued in, the retransmission I frame is received, and when the transmission sequence number matches the number at the head of the queue, it is queued out. By doing this, if the numbers do not match, it can be seen that a retransmitted I frame having the number at the head of the queue as the transmission sequence number has caused an error, and the corresponding SREJ frame is sent again, and the same processing is performed. By repeating, SREJ frames can be sent one after another. That is, the present invention utilizes the assumption that the sending order of SREJ frames and the receiving order of retransmitted I frames always match, and if the order is incorrect, it is determined that an error has occurred.

第4図は上記原理を実現するための本発明によるエラ
ー・リカバリィ装置の全体的な構成図である。チャネル
1からの送信情報メッセージはチャネル間送受信制御回
路2,Iフレーム作成回路3,スケジューリング制御回路4,
回線送信制御回路5の順に入力し,回線6に送出され
る。回線6からの受信情報メッセージは,回線受信制御
回路7に入力し,回線受信制御回路7は受信Iフレーム
順序制御回路8,Iフレーム再送制御回路9,及びシーケン
スエラー・再送Iフレーム受信検出回路10に接続され
る。受信Iフレーム順序制御回路8からの受信情報メッ
セージはチャネル間送受信制御回路2を介してチャネル
1に送出され,Iフレーム再送制御回路9はスケジューリ
ング制御回路9に接続される。またシーケンスエラー・
再送Iフレーム受信検出回路10は,SREJフレーム送信制
御回路11に接続され,SREJフレーム送信制御回路11はキ
ュー制御回路12に相互接続されると共に,スケジューリ
ング制御回路4に接続される。
FIG. 4 is an overall configuration diagram of an error recovery device according to the present invention for realizing the above principle. The transmission information message from the channel 1 includes an inter-channel transmission / reception control circuit 2, an I frame creation circuit 3, a scheduling control circuit 4,
The signals are input in the order of the line transmission control circuit 5 and sent to the line 6. The reception information message from the line 6 is input to the line reception control circuit 7, and the line reception control circuit 7 receives the I frame sequence control circuit 8, the I frame retransmission control circuit 9, and the sequence error / retransmission I frame reception detection circuit 10. Connected to. The reception information message from the reception I-frame order control circuit 8 is sent to the channel 1 via the inter-channel transmission / reception control circuit 2, and the I-frame retransmission control circuit 9 is connected to the scheduling control circuit 9. Sequence error
The retransmission I frame reception detection circuit 10 is connected to the SREJ frame transmission control circuit 11, and the SREJ frame transmission control circuit 11 is mutually connected to the queue control circuit 12 and the scheduling control circuit 4.

以上のような構成のエラー・リカバリィ装置が送信側
である場合の動作についてまず説明する。チャネル1か
ら入力した送信情報メッセージはチャネル間送受信制御
回路2を介してIフレーム作成回路3に入力する。Iフ
レーム作成回路3においては第1図の形式の情報Iフレ
ームが作成され,スケジューリング制御回路4で時間制
御された後回線送信制御回路5を介して回線6から受信
側に送信される。また,受信側から回線6を介して再送
要求のためのSREJフレームが回線受信制御回路7に入力
した場合,Iフレーム再送制御回路9において入力したSR
EJフレームの受信シーケンス番号を送信シーケンス番号
として持つ情報Iフレームが,スケジューリング制御回
路4及び回線送信制御回路5を介して回線6から受信側
へ再送される(第3図の原理参照)。
The operation when the error recovery device having the above-mentioned configuration is on the transmitting side will be described first. The transmission information message input from the channel 1 is input to the I frame creation circuit 3 via the inter-channel transmission / reception control circuit 2. The I-frame creating circuit 3 creates an information I-frame of the format shown in FIG. 1 and is time-controlled by the scheduling control circuit 4 and then transmitted from the line 6 to the receiving side via the line transmission control circuit 5. Further, when the SREJ frame for the resend request is input from the receiving side to the line reception control circuit 7, the SR input in the I frame resend control circuit 9
The information I frame having the reception sequence number of the EJ frame as the transmission sequence number is retransmitted from the line 6 to the receiving side via the scheduling control circuit 4 and the line transmission control circuit 5 (see the principle of FIG. 3).

次に第4図のエラー・リカバリィ装置が受信側である
場合の動作について第5図のフローチャートを用いなが
ら説明する。まず,送信側から回線6を介して情報Iフ
レームが回線受信制御回路7に入力した場合,それらが
正常に受信されればそれらの情報Iフレームは受信Iフ
レーム順序制御回路8に入力する。これは第3図(a)
の状態S0の○印のついた情報Iフレームに相当する。一
方,第3図(a)の状態S0の×印のように情報Iフレー
ムが正常に受信されなかったことが,第4図のシーケン
スエラー・再送Iフレーム受信検出回路10で検出される
と,エラーの起こった情報Iフレームの送信シーケンス
番号を受信シーケンス番号として持つSREJフレームをSR
EJフレーム送信制御回路11において作成する。そしてそ
の受信シーケンス番号N(R)をキュー制御回路12内の
キューにキューインする(第5図(a)の)。そして
スケジューリング制御回路4及び回線送信制御回路5を
介してそのSREJフレームを回線6から送信側へ送信する
(第5図(a)の)。以上の動作(第5図(a)の動
作)をエラーの起こった情報Iフレームすべてに対して
行う。以上によって,第3図(a)及び(b)の状態S1
〜S3に相当する動作が行われる。次に送信側から回線6
を介して再送Iフレームが回線受信制御回路7に入力し
た場合,その送信シーケンス番号N(S)がキュー制御
回路12内のキューの先頭に記憶されている番号と一致し
ているかどうかがシーケンスエラー・再送Iフレーム受
信検出回路10を介してSREJフレーム送信制御回路11で判
断される(第5図(b)の)。そして一致すればその
番号がキュー制御回路12内のキューからキューアウトさ
れ(第5図(b)の),その再送Iフレームは正常に
受信されたとして受信Iフレーム順序制御回路8に入力
する。以上によって,第3図(a)及び(b)の状態S4
及びS7に相当する動作が行われる。一方,番号が一致し
なければ,キュー制御回路12内のキューの先頭の番号Q1
を送信シーケンス番号N(S)として持つ再送Iフレー
ムが正常に受信されなかったとして,その番号を受信シ
ーケンス番号N(R)として持つSREJフレームが再び送
信される(第5図(b)の)。ここでSREJ(Q1)は受
信シーケンス番号がQ1であるSERJフレームを示す。この
時の動作は第5図(a)のフローチャートに従う。その
後,キュー制御回路12内のキューの先頭の番号はキュー
アウトQOUTされてキューからQ1が取り出され,続いて第
5図(b)ののフローの動作が行われる。以上によっ
て,第3図(a)及び(b)の状態S6(S6−1,S6−2,S6
−3)に相当する動作が行われる。以上の動作の結果,
すべての再送Iフレームが受信されエラー・リカバリィ
が完了すると,受信Iフレーム順序制御回路8において
各受信Iフレームの順序が整えられ,そこから受信情報
メッセージが取り出されてチャネル間送受信制御回路2
を介してチャネル1に送出される。
Next, the operation when the error recovery device of FIG. 4 is on the receiving side will be described with reference to the flowchart of FIG. First, when information I frames are input from the transmitting side to the line reception control circuit 7 via the line 6, if they are normally received, those information I frames are input to the reception I frame order control circuit 8. This is shown in FIG.
Corresponds to the information I frame marked with a circle in the state S0. On the other hand, when the sequence error / retransmission I-frame reception detection circuit 10 of FIG. 4 detects that the information I-frame is not normally received as indicated by the cross mark in the state S0 of FIG. 3 (a), SR is an SREJ frame that has the transmission sequence number of the information I frame in which the error occurred as the reception sequence number.
Created in the EJ frame transmission control circuit 11. Then, the reception sequence number N (R) is queued in the queue in the queue control circuit 12 (in FIG. 5 (a)). Then, the SREJ frame is transmitted from the line 6 to the transmitting side via the scheduling control circuit 4 and the line transmission control circuit 5 (in FIG. 5 (a)). The above operation (operation of FIG. 5A) is performed for all the information I frames in which an error has occurred. From the above, the state S1 of FIGS. 3 (a) and 3 (b) is obtained.
~ The operation corresponding to S3 is performed. Next, line 6 from the sender
When a retransmitted I frame is input to the line reception control circuit 7 via the, it is determined whether the transmission sequence number N (S) matches the number stored at the head of the queue in the queue control circuit 12 as a sequence error. The judgment is made by the SREJ frame transmission control circuit 11 via the retransmission I-frame reception detection circuit 10 (in FIG. 5 (b)). If they match, the number is queued out from the queue in the queue control circuit 12 (FIG. 5B), and the retransmitted I frame is input to the reception I frame order control circuit 8 as if it was normally received. From the above, the state S4 of FIGS. 3 (a) and 3 (b) is obtained.
And an operation corresponding to S7 is performed. On the other hand, if the numbers do not match, the first number Q 1 of the queue in the queue control circuit 12
Assuming that the retransmission I frame having the transmission sequence number N (S) is not normally received, the SREJ frame having that number as the reception sequence number N (R) is transmitted again (in FIG. 5 (b)). . Here, SREJ (Q 1 ) indicates a SERJ frame whose reception sequence number is Q 1 . The operation at this time follows the flowchart of FIG. After that, the head number of the queue in the queue control circuit 12 is queued out Q OUT, Q 1 is taken out from the queue, and then the operation of the flow in FIG. 5B is performed. From the above, the states S6 (S6-1, S6-2, S6 in FIGS. 3A and 3B) are obtained.
The operation corresponding to (3) is performed. As a result of the above operation,
When all the retransmitted I-frames are received and the error recovery is completed, the received I-frame order control circuit 8 arranges the order of the received I-frames, and the received information message is extracted from the received I-frames and the inter-channel transmission / reception control circuit 2
Is sent to channel 1 via.

以上のようなエラー・リカバリィ装置によってエラー
・リカバリィの際の回線利用効率を向上させることがで
きる。また本発明を従来のタイマーと組み合わせること
によって,さらに効率の高いエラー・リカバリィ制御を
行うことも可能である。
The error recovery device as described above can improve the line utilization efficiency during error recovery. Further, by combining the present invention with a conventional timer, it is possible to perform more efficient error recovery control.

(7) 発明の効果 本発明によれば,SREJフレームの送信,及び再送Iフ
レームの受信に従って制御されるキューを用いることに
よって,複雑なタイマー制御等を用いずにエラー・リカ
バリィを行うことができ,それによって再送Iフレーム
の受信を待たずに,複数のSREJフレームを送信できるた
め,回線利用効率を向上させることができる。
(7) Effects of the Invention According to the present invention, error recovery can be performed without using complicated timer control or the like by using a queue controlled according to the transmission of SREJ frames and the reception of retransmitted I frames. As a result, a plurality of SREJ frames can be transmitted without waiting for the reception of the retransmitted I frame, so that the line utilization efficiency can be improved.

【図面の簡単な説明】 第1図はHDLCのフレームの構成を示した図,第2図は従
来の誤り制御の説明図,第3図(a)は本発明による誤
り制御の説明図,第3図(b)は本発明によるキューの
動作説明図,第4図は本発明によるエラー・リカバリィ
装置の全体的な構成図,第5図は本発明によるエラー・
リカバリィ装置の動作フローチャートである。 1……チャネル,2……チャネル間送受信制御回路,3……
Iフレーム作成回路,4……スケジューリング制御回路,5
……回線送信制御回路,6……回線,7……回線受信制御回
路,8……受信Iフレーム順序制御回路,9……Iフレーム
再送制御回路,10……シーケンスエラー・再送Iフレー
ム受信検出回路,11……SREJフレーム送信制御回路,12…
…キュー制御回路.
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram showing the structure of an HDLC frame, FIG. 2 is an explanatory diagram of conventional error control, and FIG. 3 (a) is an explanatory diagram of error control according to the present invention. FIG. 3 (b) is a diagram for explaining the operation of the queue according to the present invention, FIG. 4 is an overall configuration diagram of the error recovery device according to the present invention, and FIG. 5 is an error recovery device according to the present invention.
It is an operation | movement flowchart of a recovery apparatus. 1 …… Channel, 2 …… Channel transmission / reception control circuit, 3 ……
I-frame creation circuit, 4 ... Scheduling control circuit, 5
...... Line transmission control circuit, 6 ...... Line, 7 ...... Line reception control circuit, 8 ...... Reception I frame sequence control circuit, 9 ...... I frame retransmission control circuit, 10 ...... Sequence error / retransmission I frame reception detection Circuit, 11 …… SREJ frame transmission control circuit, 12…
... Queue control circuit.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】HDLC通信制御装置において、 再送要求フレームを送信した順に該再送要求フレームに
含まれるシーケンス番号を順次記憶する順次記憶手段
と、 受信される再送フレームに含まれるシーケンス番号と前
記順次記憶手段に最も古く記憶されているシーケンス番
号とを比較する比較手段と、 該比較手段での比較結果に基づいて、前記順次記憶手段
に最も古く記憶されているシーケンス番号に対応する再
送フレームの転送エラーを検出する転送エラー検出手段
とを有することを特徴とするエラー・リカバリィ装置。
1. An HDLC communication control device, wherein a sequential storage means for sequentially storing sequence numbers included in the retransmission request frame in the order of transmission of the retransmission request frame, a sequence number included in the received retransmission frame and the sequential storage Comparing means for comparing with the oldest sequence number stored in the means, and a transfer error of the retransmission frame corresponding to the oldest sequence number stored in the sequential storage means, based on the comparison result by the comparing means. And an error recovery device for detecting transfer error.
【請求項2】前記転送エラー検出手段で転送エラーが検
出されたシーケンス番号を前記順次記憶手段に記憶し直
すと共に、該シーケンス番号を含む再送要求フレームを
再度送信する制御手段を更に有することを特徴とする特
許請求の範囲第1項記載のエラー・リカバリィ装置。
2. A control means for storing the sequence number in which the transfer error is detected by the transfer error detection means again in the sequential storage means, and for transmitting a retransmission request frame including the sequence number again. The error recovery device according to claim 1.
JP59111434A 1984-05-31 1984-05-31 Error recovery device Expired - Lifetime JPH0831844B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59111434A JPH0831844B2 (en) 1984-05-31 1984-05-31 Error recovery device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59111434A JPH0831844B2 (en) 1984-05-31 1984-05-31 Error recovery device

Publications (2)

Publication Number Publication Date
JPS60254936A JPS60254936A (en) 1985-12-16
JPH0831844B2 true JPH0831844B2 (en) 1996-03-27

Family

ID=14561091

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59111434A Expired - Lifetime JPH0831844B2 (en) 1984-05-31 1984-05-31 Error recovery device

Country Status (1)

Country Link
JP (1) JPH0831844B2 (en)

Also Published As

Publication number Publication date
JPS60254936A (en) 1985-12-16

Similar Documents

Publication Publication Date Title
EP0377136B1 (en) Adaptive data link protocol
EP0870378B1 (en) Concatenated error detection coding and packet numbering for hierarchical arq schemes
US4422171A (en) Method and system for data communication
US6141784A (en) Method and system in a data communications system for the retransmission of only an incorrectly transmitted portion of a data packet
US5432798A (en) Data communication method and system
AU598917B2 (en) Improvements in or relating to data transmission systems and methods of transmitting data
JP3349926B2 (en) Receiving control device, communication control system, and communication control method
US4896151A (en) Simultaneous communication method and system
EP0393314B1 (en) High data rate asynchronous communication method and apparatus
JPH10190637A (en) Data transmission system
EP0330223B1 (en) Information distribution system
JP2778373B2 (en) Buffer device with retransmission function
JPH1070523A (en) Method and equipment for packet transmission
JPH0831844B2 (en) Error recovery device
EP1353468B1 (en) ARQ method with isochronous and asynchronous transmission
JPH06252895A (en) Data transmission system
JPH11252134A (en) Broadcast communication system
JPH10313294A (en) Transmission controller
JPS61100043A (en) Transmitter for multiple address communication
JPS60254947A (en) Communication controller
JPS61152142A (en) Data transferring system
JPH0344704B2 (en)
JPS6232743A (en) Packet exchange system
JPH0344129A (en) Data error recovery system in network system
JPH06112953A (en) Packet re-transmission system