JPH02222248A - Communication control system - Google Patents

Communication control system

Info

Publication number
JPH02222248A
JPH02222248A JP1040362A JP4036289A JPH02222248A JP H02222248 A JPH02222248 A JP H02222248A JP 1040362 A JP1040362 A JP 1040362A JP 4036289 A JP4036289 A JP 4036289A JP H02222248 A JPH02222248 A JP H02222248A
Authority
JP
Japan
Prior art keywords
retransmission
upper limit
retransmissions
primary station
frame
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
JP1040362A
Other languages
Japanese (ja)
Inventor
Kiyoko Sugita
杉田 聖子
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1040362A priority Critical patent/JPH02222248A/en
Publication of JPH02222248A publication Critical patent/JPH02222248A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Communication Control (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

PURPOSE:To early avoid the increase of CPU load and deterioration in line efficiency by informing a warning message to a host layer when number of times of retransmission within a prescribed time exceeds the upper limit of number of times of retransmission. CONSTITUTION:When a transmission error is detected at the reception of an RR response from a secondary station 2 and a primary station 1 discriminates it that no timer is started, a check timer is started to count number of times of retransmission in the retransmission counter. When it is discriminated that the number of times of retransmission exceeds the preset upper limit, the primary station informs a warning message to a host layer. Thus, the processing is implemented properly for changeover of a bypass route or the like and the load of a CPU required for the retransmission processing is relieved and the deteriorated quality of the communication line is detected.

Description

【発明の詳細な説明】[Detailed description of the invention] 【産業上の利用分野】[Industrial application field]

この発明はデータの送受信を行う通信制御方式に関する
ものである。
The present invention relates to a communication control system for transmitting and receiving data.

【従来の技術】[Conventional technology]

データ通信の伝送制御方式の一つであるハイレベルデー
タリンク制御(以下II D L Cという)は、伝送
する情報をフレームと呼ぶ規定の枠に収容し、情報の種
類に関係なく統一的に伝送する。このことは「ハイレベ
ルデータリンク手順のフレーム構成」 (日本規格協会
、JIS  X  5104)に規定されており、高速
度通信方式としてHDLCを用いた通信回線ではISO
,CCITTで標準化されたHDLC手順が用いられる
ことが多い。 第4図は従来の通信システムの構成図であり、図におい
て、1.2はデータ通信を行う端末機器、3は前記端末
機器1.2間に設置されている通信回線、4はデータ転
送用バス、5はCPU、6は通信用データを格納する送
信データバッファとしてのランダムアクセスメモリ (
以下RAMという)、7は前記CPU5と独立して回線
制御1Ls1 B ト前記RA M 6との間のデータ
転送及びバス4の制御をするダイレクトメモリアクセス
コントローラ(以下DMAコントローラという)、8は
データリンク制御用の回線側1LsIである。 次に動作について第5図を用いて説明する。 端末機器lを1次局、端末機器2を2次局とすると、1
次局lは2次局2に対し、正規応答モードでの動作指示
をするためSNRM、Pコマンド(Set Norma
l Re5ponse Mode)を送信しく401)
、2次局2はこの指示に対し動作可能であればUA。 Fレスポンス(Unnumbered Acknowl
edge)を1次局1へ送信して(402)、1次局l
が該UA、Fレスポンスを受信するとデータリンクが設
定される。 この後、1次局1は3個の!フレーム(10,。。 I8.。、IL。)を送信する。ここで、■フレームの
構成は第6図のような構成になっている。送信した3個
の■フレームの内■1.。が受信されなかったとき(4
03)、2次局2は引き続き■フレームI5.。の受信
準備ができていることを1次局1へ知らせるため、RR
I、Fレスポンス(ReceiveReady)を送信
する(404) 、この時、1次局11ま送信データバ
ッファ6内にある2次局2に送信したIフレームIa、
。の内容をクリアし、■フレーム11.。から再送する
(405)。再送が終わり、2次局2でのIフレーム受
信が完了すれば、フレーム受信準備ができていることを
1次局1へ知らせるため、RRI、Fレスポンスを送信
する(406)。 このとき1次局1は送信データバッファ6内の受信され
た1フレームの内容をクリアし、もし再送が完了してい
なければ、送信データバッファ6をクリアすることなく
、再送を繰り返す。なお、コマンド又はレスポンスにP
又はFとあるのは、フレームがコマンドの場合、制御部
のボール(P)ビットであることを示し、レスポンスの
場合、制御部のファイナル(F)ピントであることを示
すものとし、各々“1”のとき機能を果たす。またPビ
ットは相手局に対して単一又は複数個のレスポンスフレ
ームを勧誘するのに使用し、“1″に設定されたFビッ
トは“l”に設定されたPビット受信の結果として送出
されたレスポンスフレームであることを示す。また図中
、P又はFとあるのはそれぞれPビット−“1”、Fビ
ット−“1”であることを示し、記載してないIフレー
ムについてはPビット−“0”、Fビット−“O”を示
している。
High-level data link control (hereinafter referred to as II DLC), which is one of the transmission control methods for data communication, accommodates the information to be transmitted in a specified frame called a frame, and transmits it uniformly regardless of the type of information. do. This is specified in the "Frame structure of high-level data link procedures" (Japanese Standards Association, JIS
, CCITT standardized HDLC procedures are often used. Figure 4 is a configuration diagram of a conventional communication system. In the figure, 1.2 is a terminal device for data communication, 3 is a communication line installed between the terminal devices 1.2, and 4 is for data transfer. 5 is a CPU, 6 is a random access memory as a transmission data buffer that stores communication data (
7 is a direct memory access controller (hereinafter referred to as a DMA controller) that controls the line control 1Ls1B and the RAM 6 and the bus 4 independently of the CPU 5, and 8 is a data link. This is the line side 1LsI for control. Next, the operation will be explained using FIG. 5. If terminal device l is the primary station and terminal device 2 is the secondary station, then 1
The next station 1 instructs the secondary station 2 to operate in the normal response mode using the SNRM and P commands (Set Norma).
401)
, the secondary station 2 is a UA if it can operate in response to this instruction. F response (Unnumbered Acknowledgment)
edge) to the primary station 1 (402), and the primary station l
When the UA receives the F response, a data link is established. After this, primary station 1 has three! Send frame (10,.. I8.., IL.). Here, the configuration of the (2) frame is as shown in FIG. ■1 of the three ■frames sent. . is not received (4
03), the secondary station 2 continues ■ frame I5. . In order to notify primary station 1 that it is ready to receive the
I, F response (ReceiveReady) is transmitted (404). At this time, the I frame Ia sent to the secondary station 2 by the primary station 11 in the transmission data buffer 6,
. Clear the contents of ■Frame 11. . (405). When the retransmission is finished and the reception of the I frame at the secondary station 2 is completed, the RRI and F response are transmitted to notify the primary station 1 that it is ready to receive the frame (406). At this time, the primary station 1 clears the contents of the received one frame in the transmission data buffer 6, and if retransmission is not completed, repeats the retransmission without clearing the transmission data buffer 6. Please note that the command or response is
or F indicates the ball (P) bit of the control unit when the frame is a command, and indicates the final (F) bit of the control unit when the frame is a response. It performs its function when ”. The P bit is used to solicit single or multiple response frames from the other station, and the F bit set to "1" is sent as a result of receiving the P bit set to "l". This indicates that the frame is a response frame. Also, in the figure, P or F indicates P bit-“1” and F bit-“1”, respectively, and for I frames that are not described, P bit-“0” and F bit-“ O” is shown.

【発明が解決しようとする課H】[Question H that the invention attempts to solve]

従来の通信制御方式は以上のようになされているので、
回線品質の悪い通信回線の場合、再送回数が多くなり、
再送処理のためにCPUの負荷が増大し、回線効率が低
下するとともに、送信バッファがクリアされないので、
バッファが一杯になり新しいデータの送信が長い間待た
される等の課題があった。 この発明は上記のような課題を解消するためになされた
もので、再送処理の発生を監視することで、CPU負荷
の増大、回線効率の悪化を早期に回避する通信制御方式
を得ることを目的とする。
Since the conventional communication control method is as described above,
In the case of a communication line with poor line quality, the number of retransmissions increases,
The CPU load increases due to retransmission processing, line efficiency decreases, and the transmission buffer is not cleared.
There were problems such as the buffer becoming full and sending new data having to wait for a long time. This invention was made to solve the above-mentioned problems, and aims to provide a communication control method that quickly avoids increases in CPU load and deterioration of line efficiency by monitoring the occurrence of retransmission processing. shall be.

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

この発明に係る通信制御方式は、一定時間内での再送回
数の上限を設定し、データ送受信中、−定時間内での再
送回数をカウントし、この再送回数が前記再送回数の上
限を越えたとき、上位レイヤに対し、警告メツセージを
通知するようにしたものである。
The communication control method according to the present invention sets an upper limit on the number of retransmissions within a certain period of time, counts the number of retransmissions within a certain period of time during data transmission and reception, and when the number of retransmissions exceeds the upper limit of the number of retransmissions. In this case, a warning message is sent to the upper layer.

【作 用】[For use]

この発明における通信制御方式は、データリンクレイヤ
での再送処理を監視し、再送回数のカウント、上限値と
の比較を行うことで上位レイヤへの警告メツセージの通
知を可能にする。
The communication control method according to the present invention monitors retransmission processing in the data link layer, counts the number of retransmissions, and compares it with an upper limit value, thereby making it possible to notify an upper layer of a warning message.

【実施例】【Example】

以下、この発明の一実施例を図について説明する。第1
図はこの発明による通信システムの構成であるが、従来
の技術によるシステム構成(第4図)と同一であるので
、説明を省略する。 次に動作について第2図及び第3図を用いて説明する。 従来技術の動作説明と同様に、端末機器lを1次局、端
末機器2を2次局とする。1次局1からSNRM、Pコ
マンドを2次局2へ送信しく201)、この送信を受け
て2次局2からUA、Fレスポンスを送信しく202)
、1次局1が受信することでデータリンクが設定される
。設定後、1次局lは連続した3個のIフレーム(■。 、。、I1.。、I2.。)を送信して2番目の■フレ
ームIt、。が受信されなかった場合(203)、2次
局2は2番目以降のフレーム受信準備が可能であること
をRRi、Fレスポンスで1次局1へ知らせる(204
)、1次局1は受信された■フレーム!。、。の内容を
送信データバッファ6からクリアし、■フレーム!1.
。から再送する(205)。再送に対して2次局2はR
R□、Fレスポンスを1次局1へ送信しく206)、送
信データがなくなるまで上記動作を繰り返す(207)
が、2次局2からのRRレスポンス受信時、送信エラー
を検出すると、1次局1は第3図(a)で示す処理を実
行する。つまり、タイマが起動していないと判断した場
合(ステップ5T1)、チエツク用タイマを起動させ(
ステップ5T2) 、再送カウンタに回数をカウントす
る(ステップ5T3)。再送回数が事前に設定しておい
た上限以上(例えば10秒間に100回以上)になった
と判断すると(ステップ5T4)、上位レイヤに対して
警告メツセージを通知しくステップ5T5) 、再送カ
ウンタをクリアしくステップ5T6) 、起動中タイマ
に再度一定時間をセットしなおす(ステップ5T7)。 タイマ起動中に再送回数が上限を越えなかった場合(第
3図(b)) 、つまりタイマのタイムアウトが発生し
た場合は、再度カウンタをクリアしくステップ5T8)
、チエツク用のタイマに一定時間をセットする(ステッ
プ5T9)。図中P又はFとあるのはPビット−“1″
、Fビット−“1”であることを示し、記載していない
!フレームについてはPビット−″0″、Fビットー6
0″を示している。 なお、上記実施例では一定時間内の再送回数の上限を設
定しておき、その上限を越えたとき上位レイヤに対して
警告メツセージを通知することを示したが、この再送回
数の上限値や一定時間の間隔は、この通信制御方式を使
用しようとするシステムの通信回線や装置、システムの
信転性、メモリの容量等に応じて任意に設定できる。
An embodiment of the present invention will be described below with reference to the drawings. 1st
The figure shows the configuration of a communication system according to the present invention, but since it is the same as the system configuration according to the prior art (FIG. 4), the explanation will be omitted. Next, the operation will be explained using FIGS. 2 and 3. As in the description of the operation of the prior art, the terminal device 1 is assumed to be the primary station, and the terminal device 2 is assumed to be the secondary station. The primary station 1 should send the SNRM and P commands to the secondary station 2 (201), and in response to this transmission, the secondary station 2 should send the UA and F responses (202).
, a data link is established by the primary station 1 receiving the data. After setting, the primary station l transmits three consecutive I frames (■., ., I1.., I2..), and the second ■ frame It. is not received (203), the secondary station 2 notifies the primary station 1 with an RRi, F response that it is ready to receive the second and subsequent frames (204).
), the primary station 1 received the ■ frame! . ,. Clear the contents of the transmit data buffer 6, and ■ Frame! 1.
. (205). Secondary station 2 is R for retransmission.
Send the R□, F response to the primary station 1 (206), and repeat the above operation until there is no more data to send (207).
However, when a transmission error is detected when receiving the RR response from the secondary station 2, the primary station 1 executes the process shown in FIG. 3(a). In other words, if it is determined that the timer is not activated (step 5T1), the check timer is activated (
Step 5T2), and counts the number of times in a retransmission counter (Step 5T3). When it is determined that the number of retransmissions has exceeded the upper limit set in advance (for example, 100 times or more in 10 seconds) (step 5T4), a warning message is sent to the upper layer (step 5T5), and the retransmission counter is cleared. Step 5T6), and the starting timer is set again for a certain period of time (Step 5T7). If the number of retransmissions does not exceed the upper limit while the timer is activated (Figure 3 (b)), that is, if the timer times out, clear the counter again (step 5T8).
, sets a certain time in a check timer (step 5T9). P or F in the diagram indicates P bit - “1”
, F bit - indicates “1” and is not written! For frames, P bit - ``0'', F bit - 6
In the above embodiment, an upper limit is set for the number of retransmissions within a certain period of time, and when the upper limit is exceeded, a warning message is sent to the upper layer. The upper limit value of the number of retransmissions and the fixed time interval can be arbitrarily set depending on the communication line and device of the system in which this communication control method is to be used, the reliability of the system, the capacity of the memory, etc.

【発明の効果】【Effect of the invention】

以上のように、この発明によれば、一定時間内の再送回
数の上限を設定してデータ送受信中の再送回数をカウン
トし、この回数が再送回数の上限を越えたとき、上位レ
イヤに警告メツセージを通知するようにしたので、迂回
ルートの切り替え等の適切な処置を迅速に行うことがで
き、再送処理にかかるCPUの負荷を軽減したり、通信
回線の品質悪化の検出等を可能にする効果がある。
As described above, according to the present invention, the upper limit of the number of retransmissions within a certain period of time is set, the number of retransmissions during data transmission and reception is counted, and when this number exceeds the upper limit of the number of retransmissions, a warning message is sent to the upper layer. As a result, appropriate measures such as switching detour routes can be taken quickly, reducing the CPU load associated with retransmission processing, and making it possible to detect deterioration in the quality of communication lines. There is.

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

第1図はこの発明の一実施例による通信システムの構成
を示すブロック図、第2図はこの発明のデータ送受信の
動作手順を示す説明図、第3図(a)。 (b)はこの発明の動作手順を示すフローチャート、第
4図は従来技術の通信システムの構成を示すブロック図
、第5図は従来技術の動作手順を示す説明図、第6図は
HDLC手順のフレーム構成図である。 1は端末機器(1次局)、2は端末機器(2次局)、3
は通信回線、4はデータ転送用バス、5はCPU、6は
RAM、7はDMAコントローラ、8は回線制御LSI
である。 なお、図中、同一符号は同一、または相当部分を示す。 第 ■ 手 続 補 正 書 (方 式) %式% 発明の名称 通信制御方式 3、補正をする者 7 。 補正の内容 別紙の通り第3図の分区番号を補正する。 8゜ 添付書類の目録 補正後の第3図を記載した書面 ■ 通 以 上 手 続 補 正 書 (自 発) 2、発明の名称 通信制御方式 3、補正をする者 事件との関係 特許出願人 住 所    東京都千代田区丸の内二丁目2番3号名
 称  (601)三菱電機株式会社代表者 志岐守哉 4、代理人 住所 郵便番号 105 東京都港区西新橋1丁目4番lO号 6、補正の内容 (1)明細書をつぎのとおり訂正する。。 (2)別紙の通り第2図を補正する。 (3)別紙の通り第3図を補正する。 (4)別紙の通り第5図を補正する。 7、添付書類の目録 (1)補正後の第2図を記載した書面 (2)補正後の第3図を記載した書面 (3)補正後の第5図を記載した書面 第3図 (a) C=D
FIG. 1 is a block diagram showing the configuration of a communication system according to an embodiment of the present invention, FIG. 2 is an explanatory diagram showing the operational procedure of data transmission and reception of the present invention, and FIG. 3(a). (b) is a flowchart showing the operating procedure of the present invention, FIG. 4 is a block diagram showing the configuration of a communication system of the prior art, FIG. 5 is an explanatory diagram showing the operating procedure of the prior art, and FIG. 6 is an illustration of the HDLC procedure. FIG. 3 is a frame configuration diagram. 1 is terminal equipment (primary station), 2 is terminal equipment (secondary station), 3
is a communication line, 4 is a data transfer bus, 5 is a CPU, 6 is a RAM, 7 is a DMA controller, and 8 is a line control LSI
It is. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. Chapter ■ Procedural amendment (method) % formula % Name of invention Communication control method 3, person making the amendment 7. Details of the correction The subdivision numbers in Figure 3 will be corrected as shown in the attached sheet. 8゜Document stating Figure 3 after amendment of catalog of attached documents■ Written amendment (voluntary) 2. Name of the invention Communication control method 3. Relationship with the case of the person making the amendment Patent applicant address Tokyo 2-2-3 Marunouchi, Chiyoda-ku Name (601) Mitsubishi Electric Corporation Representative Moriya Shiki 4 Agent address Postal code 105 1-4 Nishi-Shinbashi, Minato-ku, Tokyo No. 6 Contents of amendment (1) ) The specification is amended as follows. . (2) Correct Figure 2 as shown in the attached sheet. (3) Correct Figure 3 as shown in the attached sheet. (4) Correct Figure 5 as shown in the attached sheet. 7. List of attached documents (1) Document stating the amended Figure 2 (2) Document stating the amended Figure 3 (3) Document stating the amended Figure 5 Figure 3 (a) ) C=D

Claims (1)

【特許請求の範囲】[Claims] データの送受信を複数のレイヤによって実行する通信制
御方式において、データリンクを管理する前記レイヤは
、一定時間内での再送回数の上限を設定し、データ送受
信中、一定時間内での再送回数をカウントし、この再送
回数が前記再送回数の上限を越えたとき、上位レイヤに
対し、警告メッセージを通知することを特徴とする通信
制御方式。
In a communication control method in which data transmission and reception are performed by multiple layers, the layer that manages the data link sets an upper limit on the number of retransmissions within a certain period of time, and counts the number of retransmissions within a certain period of time during data transmission and reception. A communication control method characterized in that, when the number of retransmissions exceeds the upper limit of the number of retransmissions, a warning message is notified to an upper layer.
JP1040362A 1989-02-22 1989-02-22 Communication control system Pending JPH02222248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1040362A JPH02222248A (en) 1989-02-22 1989-02-22 Communication control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1040362A JPH02222248A (en) 1989-02-22 1989-02-22 Communication control system

Publications (1)

Publication Number Publication Date
JPH02222248A true JPH02222248A (en) 1990-09-05

Family

ID=12578527

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1040362A Pending JPH02222248A (en) 1989-02-22 1989-02-22 Communication control system

Country Status (1)

Country Link
JP (1) JPH02222248A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05207030A (en) * 1992-01-24 1993-08-13 Nec Corp Device and method for establishing data link
JP2002359609A (en) * 2001-05-31 2002-12-13 Nec Eng Ltd Variable error correction rate system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05207030A (en) * 1992-01-24 1993-08-13 Nec Corp Device and method for establishing data link
JP2002359609A (en) * 2001-05-31 2002-12-13 Nec Eng Ltd Variable error correction rate system

Similar Documents

Publication Publication Date Title
JPH07193585A (en) Communication access control method and communication control equipment
JPH1056470A (en) Network communication control equipment
JPH05252165A (en) Satellite communication equipment
KR100241904B1 (en) Data retransmission method of data link layer in paging exchange system
JP3341276B2 (en) Communication control device
JPS6172432A (en) Communication control system
JPH02222247A (en) Communication control system
JPS6116651A (en) Multilink communication processing system
JPH01117439A (en) Data communication system
JPS62108632A (en) Data transmission system
JPH03117945A (en) Communication equipment using hdlc procedure
KR930004100B1 (en) Asynchronous full duplex protocol implementation
JPH03139038A (en) Retransmission data length deciding system
JPH04273736A (en) Packet communication system and packet re-transmission equipment
JPH0683224B2 (en) Polling method
JPH04132421A (en) Line control system
JPH02185145A (en) Communication control system
JPS61186046A (en) System for controlling terminal equipment connection
JPS61292444A (en) Communication control system
JPS62128239A (en) Data communication system
JPH11331158A (en) Monitoring and control system
JPH07162441A (en) Priority communication method
JPH04344741A (en) Communication controller
JP2001298486A (en) Data communication system and recording medium recording data communication program
JPH09181754A (en) Communication control system and communication control method