JPS63228838A - Communication control processing method - Google Patents
Communication control processing methodInfo
- Publication number
- JPS63228838A JPS63228838A JP62063027A JP6302787A JPS63228838A JP S63228838 A JPS63228838 A JP S63228838A JP 62063027 A JP62063027 A JP 62063027A JP 6302787 A JP6302787 A JP 6302787A JP S63228838 A JPS63228838 A JP S63228838A
- Authority
- JP
- Japan
- Prior art keywords
- text
- block
- transmission
- divided
- ack
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 25
- 238000003672 processing method Methods 0.000 title claims description 6
- 230000005540 biological transmission Effects 0.000 claims abstract description 37
- 238000012790 confirmation Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 abstract description 42
- 238000003491 array Methods 0.000 abstract 1
- 238000004519 manufacturing process Methods 0.000 abstract 1
- 238000000034 method Methods 0.000 description 22
- 230000000694 effects Effects 0.000 description 4
- 230000005856 abnormality Effects 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔概 要〕
通信制御における伝送エラー発生時の再送処理の改良し
た処理方法である。[Detailed Description of the Invention] [Summary] This is an improved processing method for retransmission processing when a transmission error occurs in communication control.
受信側からの受信の確認信号を受は取れない場合にテキ
ストを再送する回線制御部で、再送する場合には、テキ
ストを比較的短いデータ長のブロックに分割して送信す
る。A line control unit that retransmits text when it cannot receive a reception confirmation signal from the receiving side, and when retransmitting, it divides the text into blocks of relatively short data length and transmits them.
この方法により、比較的長いテキストを何回も再送信し
なければならない状況の発生を防ぎ、回線利用率を向上
できる。This method can prevent situations in which relatively long texts must be retransmitted many times and can improve line utilization.
本発明は、通信制御における伝送エラー発生時の再送信
の処理方法に関する。The present invention relates to a method for processing retransmission when a transmission error occurs in communication control.
第2図は通信システムの構成例を示すブロック図である
。FIG. 2 is a block diagram showing an example of the configuration of a communication system.
回線制御部1は通信回線2を経て、同様の構成の回線制
御部3と接続し、相互の通信を行うことができる。The line control unit 1 is connected to a line control unit 3 having a similar configuration via a communication line 2, and can communicate with each other.
回線制御部1は、例えば応用処理部4からの所定の送信
要求を受は付けると、応用処理部4で生成したテキスト
を受は取り、例えばテキストの各バイトのビットごとの
加算で生成するチェックバイト等の公知の伝送エラーチ
ェック手段と、送信ブロックの開始及び終了を示す所定
のバイト (以下においてSTX及びETXとする)等
を付加して、1送信ブロックとして通信回線2に送出す
る。When the line control unit 1 receives a predetermined transmission request from, for example, the application processing unit 4, it receives the text generated by the application processing unit 4, and generates a check by, for example, adding each byte of the text bit by bit. A known transmission error check means such as a byte and predetermined bytes (hereinafter referred to as STX and ETX) indicating the start and end of a transmission block are added, and the resultant block is sent to the communication line 2 as one transmission block.
回線制御部3が通信回線2から、このブロックを受信す
ると、所定の伝送エラーチェックを行い、正常に受信さ
れたと判断すると、受信したブロックのテキストを応用
処理部5へ渡し、又正常に受信したことを示す確認信号
となる所定の応答バイト (以下においてACKという
)を通信回線2によって返送する。When the line control unit 3 receives this block from the communication line 2, it performs a predetermined transmission error check, and if it determines that it has been received normally, passes the text of the received block to the application processing unit 5, and if it has been received normally. A predetermined response byte (hereinafter referred to as ACK), which serves as a confirmation signal indicating that the
又、伝送エラーチェックの結果でエラーがあると判断し
た場合には、その受信ブロックを捨て、正常に受信でき
なかったことを示す所定の応答バイト (以下において
NAKという)を返送する。Furthermore, if it is determined that there is an error as a result of the transmission error check, the received block is discarded and a predetermined response byte (hereinafter referred to as NAK) indicating that the reception was not successful is returned.
回線制御部1では、1ブロックを送信すると、相手の回
線制御一部3からの応答を一所定時浦待ゲ乙ACKが返
送されてくれば、そのテキストの送信処理を完了する。When the line control unit 1 transmits one block, if an ACK is returned from the other party's line control unit 3 at a predetermined time, the text transmission process is completed.
又、NAKが返送された場合、及び前記の応答待ち時間
を経過しても応答が受信されなかった場合には、テキス
トが相手に正常に到着しなかったものと判断して、先に
送信したテキストのブロックを通信口wA2に再送信す
る。Also, if a NAK is returned, or if a response is not received even after the response waiting time described above has elapsed, it is assumed that the text did not reach the recipient normally, and the text is sent first. Retransmit the block of text to communication port wA2.
以上の処理を、相手からのACKを受信するまで繰り返
すが、所定の最大回数まで反復してもなおACKが来な
い場合には、応用処理部4にその旨を通知してこの通信
を中止し、例えば応用処理部4で適当・な処置をするよ
うにする。The above process is repeated until an ACK is received from the other party, but if the ACK still does not come even after repeating it a predetermined maximum number of times, the application processing unit 4 is notified to that effect and this communication is stopped. For example, the application processing unit 4 takes appropriate measures.
第3図は回線制御部1の送信処理の流れ図である。送信
要求が発生すると、回線制御部1は処理ステップ10で
送信するテキストを受は取って前記のように送信ブロッ
クを作成する。FIG. 3 is a flowchart of the transmission processing of the line control section 1. When a transmission request occurs, the line control unit 1 receives the text to be transmitted in processing step 10 and creates a transmission block as described above.
処理ステップ11でブロックを送信して、処理ステップ
12で応答を待ち、ACKを受信すれば応用処理部4に
その旨通知して送信処理を終わる。The block is transmitted in a processing step 11, and a response is waited for in a processing step 12. If an ACK is received, the application processing section 4 is notified to that effect and the transmission processing ends.
処理ステップ12で所定時間内にACKを受信しなかっ
た場合には、処理ステップ13で予め設定されている最
大再送回数で現再送回数(今は0)をチェックし、再送
が最大回数になっていなければ、現回数を+1して処理
ステップ11に戻り、先に送信したブロックを再び送信
し、処理ステップ12で応答を待つ。If ACK is not received within a predetermined time in processing step 12, the current number of retransmissions (currently 0) is checked with the maximum number of retransmissions set in advance in processing step 13, and the number of retransmissions is the maximum number. If not, the current count is increased by 1 and the process returns to processing step 11, the previously transmitted block is transmitted again, and a response is waited for in processing step 12.
このようにして、へGK応答を受信するか、処理ステッ
プ13で再送回数が所定の最大回数に達したことを検出
するまで再送を繰り返し、最大回数まで再送を行って処
理ステップ■3に来たときは、応用処理部4に異常の旨
を通知して送信処理を中止する。In this way, retransmission is repeated until a GK response is received or it is detected in processing step 13 that the number of retransmissions has reached a predetermined maximum number of times, and after retransmission is performed up to the maximum number of times, processing step 3 is reached. If so, the application processing unit 4 is notified of the abnormality and the transmission process is stopped.
前記のようにして伝送するブロックは、ブロック長が長
い程、伝送エラーに遭遇する可能性が大きいことは明ら
かであり、且つ伝送エラーが発生すれば比較的長時間の
再送時間を要するという不利がある。It is clear that the longer the block length of a block transmitted as described above, the greater the possibility of encountering a transmission error, and if a transmission error occurs, there is a disadvantage that a relatively long retransmission time is required. be.
一方、正常に伝送される場合には、ブロックを長くした
方が、チェックバイトその他の付加及びACK授受等に
よるオーバヘッドの割合が少なくなって、回線の利用率
を向上できることも明らかであるので、例えば適当な通
信回線の回線品質がある場合には、極端に長いテキスト
以外は、lテキストを1ブロックとして送信する。On the other hand, in the case of normal transmission, it is clear that if the block is made longer, the proportion of overhead due to check bytes and other additions, ACK transmission and reception, etc. will be reduced, and the line utilization rate can be improved, so for example, If the line quality of the communication line is appropriate, texts other than extremely long texts are transmitted as one block.
しかし、このようにすると交換回線等のように、通信ご
とに回線品質が変動し得る場合には、長時間の再送を繰
り返しても、結局送信出来ないというような事態が生じ
るという問題がある。However, if this is done, there is a problem that if the line quality can vary with each communication, such as in a switched line, a situation may arise in which the message cannot be transmitted even after repeated retransmissions for a long time.
第1図は、本発明の構成を示す処理の流れ図である。 FIG. 1 is a process flowchart showing the configuration of the present invention.
図は回線制御部の送信処理の流れを示し、20〜27は
処理ステップである。The figure shows the flow of transmission processing by the line control unit, and 20 to 27 are processing steps.
〔作 用〕゛
回線制御部は送信処理において、処理ステップ20〜2
2で従来のように、送信テキストのブロックを作成して
送信し、相手の応答を待ち、ACK応答を受信すれば処
理を終わる。[Function] In the transmission process, the line control unit performs processing steps 20 to 2.
In step 2, as in the conventional method, a block of text to be sent is created and sent, a response from the other party is waited for, and the process ends when an ACK response is received.
ACKを受信しない場合の再送処理において、先ず処理
ステップ23で所定の方法でテキストを分割し、それぞ
れ個別の送信ブロックを作成する。In the retransmission process when an ACK is not received, first, in processing step 23, the text is divided in a predetermined manner to create individual transmission blocks.
処理ステップ24〜26により、この分割ブロックを、
テキスト内の配列の順に1ブロックづつ取り出して順次
送信し、各分割ブロックごとに従来のように応答を確認
し、全分割ブロックを正常に送信すれば送信処理を終わ
る。Through processing steps 24 to 26, this divided block is
One block at a time is extracted in the order of the arrangement in the text and transmitted sequentially, a response is confirmed for each divided block in the conventional manner, and the transmission process is completed when all divided blocks are transmitted normally.
伝送エラーの分割ブロックが生じた場合には、処理ステ
ップ27でそのブロックの再送処理を行い、それで再送
に成功しない場合には送信、要求元に異常の旨を通知し
て送信処理を中止する。If a divided block with a transmission error occurs, the block is retransmitted in step 27, and if the retransmission is not successful, the transmission and request source is notified of the abnormality and the transmission process is canceled.
以上の処理方法により、通信回線の品質が変動する場合
にも、通信回線を効率良く使用することができる。With the above processing method, the communication line can be used efficiently even when the quality of the communication line fluctuates.
回線制御部1は応用処理部4からの送信要求を受けると
、処理ステップ20で従来のように送信テキストのブロ
ックを作成し、処理ステップ21でこのブロックを送信
し、処理ステップ22で相手の応答を待ち、ACK応答
を受信した場合には送信処理を終了する。When the line control unit 1 receives a transmission request from the application processing unit 4, it creates a block of transmission text in a process step 20 as in the conventional manner, transmits this block in a process step 21, and responds to the other party's response in a process step 22. and if an ACK response is received, the transmission process ends.
ACKを受信しない場合の再送処理において、先ず処理
ステップ23で所定の方法でテキストを分割し、それぞ
れ個別の送信ブロックを作成する。In the retransmission process when an ACK is not received, first, in processing step 23, the text is divided in a predetermined manner to create individual transmission blocks.
この分割の第1の方法では、例えばテキストのバイト数
をカウントして、予め設定されている分割数(例えば2
)によってはy゛等分割する。In the first method of division, for example, the number of bytes of the text is counted and a preset number of divisions (for example, 2
), it is divided into y゛ equal parts.
第2の分割方法では、テキストの先頭から予め設定され
ている一定バイト長づつ切り出して、それぞれ同長のブ
ロックとし、末尾はこの一定バイト長以内のテキスト部
分で1ブロックとする。In the second division method, a predetermined byte length is cut out from the beginning of the text to form blocks of the same length, and at the end, a text portion within this fixed byte length is made into one block.
又、第3の方法として、テキストが一定バイト長より大
きい場合のみ、一定分割数で等分割するようにしてもよ
い。Further, as a third method, only when the text is larger than a certain byte length, the text may be equally divided by a certain number of divisions.
処理ステップ23では、以上のような分割方法で分割し
たテキストごとに、従来のようにして送信ブロックを作
成する。但し最後の分割ブロックを除く各分割ブロック
の末尾はETXではなく、中間のブロックであることを
示す所定のバイト(例えばETBバイト)にする。In processing step 23, a transmission block is created in the conventional manner for each text divided by the above division method. However, the end of each divided block except the last divided block is not ETX but a predetermined byte (for example, ETB byte) indicating that it is an intermediate block.
このようにすることにより、受信側の回線制御部3では
、分割ブロックを受信したときに、ETBのあるブロッ
クのテキストは回線制御部3の中に保持しておき、I!
TXのブロックを受信したとき、それまでに受信したテ
キストを一括して応用処理部5に渡すようにする。By doing this, when the line control unit 3 on the receiving side receives a divided block, the text of a certain block of ETB is held in the line control unit 3, and the I!
When a TX block is received, the texts received so far are delivered to the application processing section 5 all at once.
回線制御部1は処理ステップ24で、前記の分割ブロッ
クをテキスト内の配列の順に1ブロックづつ送信し、処
理ステップ25で応答を待つ。In processing step 24, the line control unit 1 transmits the divided blocks one by one in the order of arrangement within the text, and waits for a response in processing step 25.
ACKが来れば処理ステップ26でチェックして、未送
信の分割ブロックがあれば処理ステップ24に戻り、次
の分割ブロックの送信を始め、このようにしてすべての
分割ブロックを送信すれば処理を終わる。If an ACK is received, it is checked in processing step 26, and if there is an untransmitted divided block, the process returns to processing step 24 and transmission of the next divided block is started.If all the divided blocks are transmitted in this way, the processing ends. .
処理ステップ25でACKを受信出来ない場合は処理ス
テップ27で、この分割ブロックの再送処理を行う。If ACK cannot be received in processing step 25, retransmission processing of this divided block is performed in processing step 27.
この再送処理は例えば前記従来のように、ACKを受信
するか、所定の再送回数まで、同じ分割ブロックの再送
を繰り返す方法による。This retransmission process is performed, for example, by receiving an ACK or by repeating retransmission of the same divided block until a predetermined number of retransmissions, as in the conventional method.
又、分割ブロックを更に前記のような方法で複数のブロ
ックに分割して、再送信するようにしてもよい。Further, the divided block may be further divided into a plurality of blocks using the method described above, and the blocks may be retransmitted.
このようにして、再送に成功した場合には、処理ステッ
プ26に進み、前記のように次の分割ブロックの送信を
開始するか、又は全分割ブロックの送信を終わった場合
には処理を終了する。In this way, if the retransmission is successful, the process proceeds to step 26 and starts transmitting the next divided block as described above, or ends the process if all the divided blocks have been transmitted. .
又再送によっても分割ブロックを送信できない、再送不
成功の場合には、応用処理部4に異常の旨を通知して送
信処理を中止する。Further, if the divided block cannot be transmitted even by retransmission, or if the retransmission is unsuccessful, the application processing unit 4 is notified of the abnormality and the transmission process is stopped.
以上の説明から明らかなように、本発明によれば、通信
回線の品質が変動するような場合のテキスト送信におい
て、通信回線の利用効率を向上するという著しい工業的
効果がある。As is clear from the above description, the present invention has a significant industrial effect of improving the efficiency of communication line usage in text transmission when the quality of the communication line fluctuates.
第1図は本発明の構成を示す処理の流れ図、第2図は通
信システムの構成例ブロック図、第3図は従来の処理の
流れ図
である。
図において、
1.3は回線制御部、 2は通信回線、4.5は応用処
理部、
10〜13.20〜27は処理ステップを示す。FIG. 1 is a process flowchart showing the configuration of the present invention, FIG. 2 is a block diagram of an example configuration of a communication system, and FIG. 3 is a conventional process flowchart. In the figure, 1.3 is a line control unit, 2 is a communication line, 4.5 is an application processing unit, 10 to 13, and 20 to 27 are processing steps.
Claims (3)
に送信し、該テキストの受信側装置からの所定の確認信
号を受信しない場合に、該テキストの再送信を行う回線
制御部を有する装置において、該再送信の場合に、該テ
キストを所定のデータ長のブロックに分割して送信する
(23〜27)ことを特徴とする通信制御処理方法。(1) In a device having a line control unit that transmits a required transmission text as one block to a communication line and retransmits the text when a predetermined confirmation signal is not received from the receiving device of the text, In the case of the retransmission, the communication control processing method is characterized in that the text is divided into blocks of a predetermined data length and transmitted (23 to 27).
略等分割したデータ長である特許請求の範囲第1項記載
の通信制御処理方法。(2) The communication control processing method according to claim 1, wherein the predetermined data length is a data length obtained by dividing the text into approximately equal parts.
タ長である特許請求の範囲第1項記載の通信制御処理方
法。(3) The communication control processing method according to claim 1, wherein the predetermined data length is less than or equal to a predetermined maximum length.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62063027A JPS63228838A (en) | 1987-03-18 | 1987-03-18 | Communication control processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62063027A JPS63228838A (en) | 1987-03-18 | 1987-03-18 | Communication control processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63228838A true JPS63228838A (en) | 1988-09-22 |
Family
ID=13217434
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62063027A Pending JPS63228838A (en) | 1987-03-18 | 1987-03-18 | Communication control processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63228838A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004104574A (en) * | 2002-09-11 | 2004-04-02 | Mitsubishi Electric Corp | Method for controlling retransmission and communication equipment |
JP2009044370A (en) * | 2007-08-08 | 2009-02-26 | Fujitsu Ltd | Radio communication equipment, transmission method, and reception method |
-
1987
- 1987-03-18 JP JP62063027A patent/JPS63228838A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004104574A (en) * | 2002-09-11 | 2004-04-02 | Mitsubishi Electric Corp | Method for controlling retransmission and communication equipment |
JP2009044370A (en) * | 2007-08-08 | 2009-02-26 | Fujitsu Ltd | Radio communication equipment, transmission method, and reception method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0244117B1 (en) | A method of duplex data transmission using a send-and-wait protocol | |
JP2746363B2 (en) | Message communication method | |
US5245616A (en) | Technique for acknowledging packets | |
JPH0771125B2 (en) | Data communication method and data communication system | |
JPH073978B2 (en) | Broadcast system | |
JPS59144243A (en) | Variable time division communication system station apparatus | |
US20230239076A1 (en) | Method and device for BLE audio data transmission | |
JPS63228838A (en) | Communication control processing method | |
CA2010809A1 (en) | Technique for acknowledging packets | |
JPH04111553A (en) | Arq communication system | |
JPH05153162A (en) | Transmission confirming method for packet communication system | |
JPH03107229A (en) | Communication control system | |
KR0165440B1 (en) | Polling communication method | |
JPS6172432A (en) | Communication control system | |
KR930004100B1 (en) | Method for embodying full duplex communication protocol | |
JPH1196096A (en) | Communication system | |
JPH04263545A (en) | Data communication equipment | |
JP2000059347A (en) | Method and device for radio communication | |
JPH0771089B2 (en) | Communications system | |
JPH01149640A (en) | Loop type data transmitting system | |
JPS5810899B2 (en) | Unidirectional broadcast communication method | |
JPH02226828A (en) | Data packet transmission system | |
JPS5963831A (en) | Data transmission system | |
JP2541563B2 (en) | Retransmission control method | |
JPS63215233A (en) | Communication responsing system |