JP5176973B2 - Communication system, communication method, and communication program - Google Patents

Communication system, communication method, and communication program Download PDF

Info

Publication number
JP5176973B2
JP5176973B2 JP2009007279A JP2009007279A JP5176973B2 JP 5176973 B2 JP5176973 B2 JP 5176973B2 JP 2009007279 A JP2009007279 A JP 2009007279A JP 2009007279 A JP2009007279 A JP 2009007279A JP 5176973 B2 JP5176973 B2 JP 5176973B2
Authority
JP
Japan
Prior art keywords
block
frame
transmission
communication
data
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.)
Active
Application number
JP2009007279A
Other languages
Japanese (ja)
Other versions
JP2010166347A (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.)
Meidensha Corp
Original Assignee
Meidensha 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 Meidensha Corp filed Critical Meidensha Corp
Priority to JP2009007279A priority Critical patent/JP5176973B2/en
Publication of JP2010166347A publication Critical patent/JP2010166347A/en
Application granted granted Critical
Publication of JP5176973B2 publication Critical patent/JP5176973B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、装置間の通信において、通信回線が低速且つ不安定であるときの通信プロトコルに関し、通信システム、通信方法および通信プログラムに関する。   The present invention relates to a communication protocol when a communication line is low speed and unstable in communication between apparatuses, and relates to a communication system, a communication method, and a communication program.

本発明では特に次のような通信回線を想定している。   In the present invention, the following communication line is particularly assumed.

(1)長距離の電話回線や専用回線において通信速度が遅くノイズなどの外乱により不安定な回線。   (1) A long-distance telephone line or dedicated line has a slow communication speed and is unstable due to disturbances such as noise.

(2)携帯電話や衛星電話などの無線機器で、通信速度が遅く通信環境により不安定な回線。   (2) A wireless device such as a mobile phone or satellite phone, which has a slow communication speed and is unstable due to the communication environment.

送信側装置と受信側装置の間で通信回線を介して通信を行う通信システムにおいて、通信距離が長いとき信号減衰とノイズの影響があり、また無線通信では電波環境が悪いと不安定となる。   In a communication system in which communication is performed between a transmission-side device and a reception-side device via a communication line, signal attenuation and noise are affected when the communication distance is long, and wireless communication becomes unstable when the radio wave environment is bad.

通信機器は異常検出すると回線を切断とする。通信プロトコルは通信を継続するために再接続を行う。   The communication device disconnects the line when an abnormality is detected. The communication protocol reconnects to continue communication.

通信プロトコルは、送受信データから破壊されたデータを検出し、その部分を再送信することで、確実な通信を実現している。その処理のためにプロトコルはデータのかたまり(フレームとする)を相手へ送信し、相手からの応答を受信することでフレームが届けられたことを確認している。   The communication protocol detects reliable data from transmitted / received data, and retransmits that portion, thereby realizing reliable communication. For this processing, the protocol transmits a block of data (referred to as a frame) to the other party and receives a response from the other party to confirm that the frame has been delivered.

このようすを、装置A,B間のデータの送受信を示す図9とともに説明する。図9において、フレーム01の送受信が完了した後に装置Aからフレーム02を送信し、装置Bではフレーム02の途中まで受信できたが回線異常により中断(ここで中断とは、回線切断には至らない程度の回線異常をいい、通信が回復することもあり得る状態を指す)したとする。   This will be described with reference to FIG. 9 showing data transmission / reception between apparatuses A and B. In FIG. 9, after transmission / reception of frame 01 is completed, frame A is transmitted from apparatus A, and apparatus B can receive partway through frame 02, but is interrupted due to a line abnormality (here, interruption does not result in disconnection of the line) This refers to a state in which communication abnormality can be recovered).

そしてその後しばらくして通信が可能となった時、装置A側では、装置Bからフレーム02を受信したという応答が無いためフレーム02から送信を再開する。この際フレーム02の図示黒色部分は前回接続時に送信できているが、フレーム単位でしか処理できないためフレームごと再送信する。   Then, when communication becomes possible after a while, the apparatus A side resumes transmission from the frame 02 because there is no response that the frame 02 has been received from the apparatus B. At this time, the illustrated black portion of the frame 02 can be transmitted at the time of the previous connection, but since it can be processed only in units of frames, it is retransmitted for each frame.

尚、従来のデータ通信方法及び送受信装置としては、例えば特許文献1に記載のものが提案されていた。   In addition, as a conventional data communication method and transmission / reception apparatus, the thing of patent document 1 was proposed, for example.

特許第3961128号公報Japanese Patent No. 3961128

前記図9で述べたように、通信異常が発生すると相手からの応答が受信できず、それより前に正常に受信した応答のところまでを送信完了として処理する。通信可能になると、その次のフレームから送信を開始することになる。   As described in FIG. 9, when a communication abnormality occurs, a response from the other party cannot be received, and processing up to the response that has been normally received before that is processed as transmission completion. When communication is possible, transmission starts from the next frame.

しかし、切断されたとき相手側にはフレームの一部、あるいはフレーム全体が到達している可能性があり、そのデータは応答が送信できていないために破棄され無駄となっている。   However, when it is disconnected, there is a possibility that a part of the frame or the whole frame has reached the other side, and the data is discarded and wasted because the response has not been transmitted.

伝送速度が高速な回線、あるいは低速であるが通信環境が安定しており切断がほとんどない回線では、前記破棄されたデータは全体から見れば小さいため問題とならない。しかし、伝送速度が低速かつ不安定な回線では破棄されたデータの影響は大きく、無視できない。   In a line having a high transmission rate or a line having a low speed but a stable communication environment and almost no disconnection, the discarded data is small as viewed from the whole, so that there is no problem. However, the influence of the discarded data is great on a line with a low transmission rate and an unstable line and cannot be ignored.

また、1000byte送信する時間で通信が不安定になる環境において1フレーム1000byteのデータを送信すると、毎回同じフレームを再送することに費やされてしまい、通信はたまにしか成立しない。   In addition, if data of one frame of 1000 bytes is transmitted in an environment where communication becomes unstable in the time of transmission of 1000 bytes, it is spent retransmitting the same frame every time, and communication is only occasionally established.

上位プロトコルに対し下位プロトコルが小さい単位に分割して送信する例は多く存在する。しかしそれらは、伝送の物理的特性による制限や規格上の制限により決められた大きさであり、頻発する伝送異常を考慮しているわけではない。不安定な回線は時間、場所などの環境により状況が大きく変化するため、常時分割するサイズを見直す必要がある。   There are many examples in which the lower protocol is divided into smaller units and transmitted with respect to the upper protocol. However, they are sizes determined by restrictions due to physical characteristics of transmission and restrictions on the standard, and do not take into account frequent transmission abnormalities. Because the situation of unstable lines varies greatly depending on the environment such as time and place, it is necessary to review the size to be always divided.

従来の通信システム、通信方法における問題点は以下のとおりである。   Problems in the conventional communication system and communication method are as follows.

(1)プロトコルが管理する単位よりも短い時間で通信異常になるならば送信は成功しない。異常となる時間よりも短い時間で伝送できるように分割できなければならない。小さく分割するプロトコルは存在するが、伝送異常の発生頻度から決定しているわけではなく、状況の変化に対応できない。   (1) If communication abnormality occurs in a time shorter than the unit managed by the protocol, transmission will not succeed. It must be able to be divided so that it can be transmitted in a shorter time than the abnormal time. Although there are protocols that are divided into small parts, they are not determined from the frequency of occurrence of transmission abnormalities, and cannot respond to changes in the situation.

(2)切断時に相手に到達していたデータの一部は破棄される。次回接続時にはその破棄された部分も含めて再送信する必要があり無駄がある。   (2) A part of the data that has reached the partner at the time of disconnection is discarded. At the next connection, it is necessary to retransmit the discarded part including the discarded part.

本発明は上記課題を解決するものであり、その目的は、伝送状態の悪化に追従することができ、また無駄な再送信を防止することができる通信システム、通信方法および通信プログラムを提供することにある。   The present invention solves the above-described problems, and an object thereof is to provide a communication system, a communication method, and a communication program that can follow the deterioration of the transmission state and prevent unnecessary retransmission. It is in.

上記課題を解決するための本発明の通信システムは、1フレームのデータを、所定データ長に構成され、通信回線上の何番目のフレームであるかを表すフレーム番号および当該フレーム内の何番目のブロックであるかを表すブロック番号を含むブロックに分割して送信する送信側装置と、受信側装置との間で、通信回線を介して通信を行う通信システムであって、前記送信側装置に設けられた送信側制御手段と、前記受信側装置に設けられた受信側装置とを備え、前記送信側制御手段は、前記ブロックを送信する機能と、前記ブロック送信後に、最新の送信フレームを表す最新送信フレーム番号および受信側装置での受信完了フレームを表す受信完了フレーム番号を含む送達確認データを送信する機能と、受信側装置から送信された、フレーム番号および受信ブロック状態を含む受信状態通知データを受信したとき、該データで指定された未受信のブロックを送信する機能とを有し、前記受信側制御手段は、送信側装置から送信されたブロックを受信し、該受信したブロックをフレームに組み立てる機能と、送信側装置から送信された送達確認データを受信したとき、該データ内の最新送信フレーム番号に基づいて受信できていないフレームを判定し、該フレームのどのブロックが未受信であるかを示す受信状態通知データを送信する機能とを有していることを特徴とする。   In the communication system of the present invention for solving the above-described problem, one frame of data is configured with a predetermined data length, and a frame number indicating what number frame is on the communication line and what number in the frame. A communication system that performs communication via a communication line between a transmission-side apparatus that transmits a block including a block number that represents a block and a reception-side apparatus, provided in the transmission-side apparatus The transmission side control means and the reception side apparatus provided in the reception side apparatus, wherein the transmission side control means has a function of transmitting the block, and a latest version representing the latest transmission frame after the block transmission. A function for transmitting delivery confirmation data including a transmission frame number and a reception completion frame number indicating a reception completion frame at the reception side device, and a frame transmitted from the reception side device. A reception state notification data including a number and a reception block state, and a function of transmitting an unreceived block designated by the data, wherein the reception side control means is a block transmitted from the transmission side device. And when receiving the delivery confirmation data transmitted from the transmission side device, determine a frame that has not been received based on the latest transmission frame number in the data, And a function of transmitting reception state notification data indicating which block of the frame is not received.

また請求項2に記載の通信システムは、請求項1において、前記送信側制御手段は、前記最新送信フレーム番号および受信完了フレーム番号を含み、且つ前記通信回線への初回接続時には乱数から生成した新規の接続番号を、回線切断後の再接続時には前回接続時の接続番号を各々付与した接続開始の通知データを送信する機能と、前記受信側装置から前記接続開始の通知データを応答として受信した後に前記ブロックを送信する機能とを有し、前記受信側制御手段は、前記送信側装置から接続開始の通知データを受信したときに、前記接続番号と一致する番号が過去の通信記録に有るか否かを判定する機能と、前記判定結果が、一致する接続番号有りの場合、前記通信記録から受信完了フレーム番号および最新送信フレーム番号を引き継ぎ、前記判定結果が、一致する接続番号無しの場合、新規の接続番号を前記通信記録に追加する機能と、前記通信記録の引き継ぎ又は追加終了後の前記接続開始の通知データを応答として送信する機能とを有していることを特徴とする。   The communication system according to claim 2 is the communication system according to claim 1, wherein the transmission side control means includes the latest transmission frame number and the reception completion frame number, and is a new one generated from a random number at the first connection to the communication line. A connection start notification data to which the connection number at the time of the previous connection is assigned when reconnecting after disconnecting the line, and after receiving the connection start notification data as a response from the receiving side device A function of transmitting the block, and when the reception side control means receives connection start notification data from the transmission side device, whether or not a number that matches the connection number exists in a past communication record. If the connection result is the same as the determination result and the determination result, the reception completion frame number and the latest transmission frame number are taken over from the communication record. A function of adding a new connection number to the communication record when the determination result is that there is no matching connection number, and a function of transmitting notification data of the connection start after taking over or adding the communication record as a response; It is characterized by having.

また請求項3に記載の通信システムは、請求項1又は2において、前記送信側制御手段は、前記送達確認データ内の受信完了フレーム番号で表される、受信完了のフレームデータを送信側メモリから削除する機能を有していることを特徴とする。   According to a third aspect of the present invention, in the communication system according to the first or second aspect, the transmission-side control means transmits reception completion frame data represented by a reception completion frame number in the delivery confirmation data from the transmission-side memory. It has the function to delete.

また請求項4に記載の通信システムは、請求項1ないし3のいずれか1項において、前記送信側制御手段は、前記通信回線への初回接続時に、前記ブロックの長さを第1のブロック長に決定して所定期間通信を行わせる機能と、前記所定期間内に通信異常を収集する機能と、前記所定期間内に収集された通信異常の発生頻度に基づいて前記ブロックの長さを第2のブロック長に決定する機能と、を有していることを特徴とする。   According to a fourth aspect of the present invention, in the communication system according to any one of the first to third aspects, the transmission-side control means sets the length of the block to the first block length when connected to the communication line for the first time. And determining the length of the block based on the frequency of occurrence of communication abnormalities collected within the predetermined period, a function for collecting communication abnormalities within the predetermined period, And a function for determining the block length of the block.

また、請求項5に記載の通信方法は、1フレームのデータを、所定データ長に構成され、通信回線上の何番目のフレームであるかを表すフレーム番号および当該フレーム内の何番目のブロックであるかを表すブロック番号を含むブロックに分割して送信する送信側装置と、受信側装置との間で、通信回線を介して通信を行う通信システムにおける通信方法であって、前記送信側装置の送信側制御手段が、前記ブロックを送信するステップと、前記ブロック送信後に、最新の送信フレームを表す最新送信フレーム番号および受信側装置での受信完了フレームを表す受信完了フレーム番号を含む送達確認データを送信するステップと、前記受信側装置の受信側制御手段が、送信側装置から送信されたブロックを受信し、該受信したブロックをフレームに組み立てるステップと、送信側装置から送信された送達確認データを受信したとき、該データ内の最新送信フレーム番号に基づいて受信できていないフレームを判定し、該フレームのどのブロックが未受信であるかを示す受信状態通知データを送信するステップと、前記送信側制御手段が、受信側装置から送信された、前記受信状態通知データを受信したとき、該データで指定された未受信のブロックを送信するステップとを有していることを特徴とする。   The communication method according to claim 5 is configured such that one frame of data is configured with a predetermined data length, a frame number indicating what number frame is on the communication line, and what number block in the frame. A communication method in a communication system in which communication is performed via a communication line between a transmission-side apparatus that transmits a block including a block number that indicates whether there is a transmission and a reception-side apparatus, The transmission side control means transmits the block, and after the block transmission, the delivery confirmation data including the latest transmission frame number representing the latest transmission frame and the reception completion frame number representing the reception completion frame at the reception side device. A transmitting step, and a receiving-side control means of the receiving-side device receives the block transmitted from the transmitting-side device, and the received block is framed. When receiving the acknowledgment data transmitted from the transmitting side device and determining the frame that has not been received based on the latest transmission frame number in the data, and which block of the frame is not received A step of transmitting reception state notification data indicating whether or not when the transmission side control means receives the reception state notification data transmitted from the reception side device, an unreceived block designated by the data is received. And a step of transmitting.

また請求項6に記載の通信方法は、請求項5において、前記送信側制御手段が、前記最新送信フレーム番号および受信完了フレーム番号を含み、且つ前記通信回線への初回接続時には乱数から生成した新規の接続番号を、回線切断後の再接続時には前回接続時の接続番号を各々付与した接続開始の通知データを送信するステップと、前記受信側制御手段が、前記送信側装置から接続開始の通知データを受信したときに、前記接続番号と一致する番号が過去の通信記録に有るか否かを判定するステップと、前記判定結果が、一致する接続番号有りの場合、前記通信記録から受信完了フレーム番号および最新送信フレーム番号を引き継ぎ、前記判定結果が、一致する接続番号無しの場合、新規の接続番号を前記通信記録に追加するステップと、前記通信記録の引き継ぎ又は追加終了後の前記接続開始の通知データを応答として送信するステップと、前記送信側制御手段が、前記受信側装置から前記接続開始の通知データを応答として受信した後に前記ブロックを送信するステップとを有していることを特徴とする。   The communication method according to claim 6 is the communication method according to claim 5, wherein the transmission-side control means includes the latest transmission frame number and the reception completion frame number, and is generated from a random number at the first connection to the communication line. The connection start notification data to which the connection number at the time of the previous connection is assigned at the time of reconnection after disconnection of the line, and the reception side control means sends connection start notification data from the transmission side device. When receiving a message, a step of determining whether or not a number that matches the connection number exists in a past communication record, and if the determination result is a connection number that matches, a reception completion frame number from the communication record And the step of adding a new connection number to the communication record if the determination result is that there is no matching connection number, Transmitting the connection start notification data after taking over or adding the communication record as a response; and the transmission side control means receives the connection start notification data from the reception side device as a response. And a step of transmitting.

また請求項7に記載の通信方法は、請求項5又は6において、前記送信側制御手段が、前記送達確認データ内の受信完了フレーム番号で表される、受信完了のフレームデータを送信側メモリから削除するステップを有していることを特徴とする。   The communication method according to claim 7 is the communication method according to claim 5 or 6, wherein the transmission-side control means sends reception completion frame data represented by a reception completion frame number in the delivery confirmation data from the transmission-side memory. It has the step to delete, It is characterized by the above-mentioned.

また請求項8に記載の通信方法は、請求項5ないし7のいずれか1項において、前記送信側制御手段が、前記通信回線への初回接続時に、前記ブロックの長さを第1のブロック長に決定して所定期間通信を行わせるステップと、前記所定期間内に通信異常を収集するステップと、前記所定期間内に収集された通信異常の発生頻度に基づいて前記ブロックの長さを第2のブロック長に決定するステップと、を有していることを特徴とする。   The communication method according to claim 8 is the communication method according to any one of claims 5 to 7, wherein the transmission side control means sets the length of the block to the first block length at the time of initial connection to the communication line. And determining the length of the block based on the frequency of occurrence of communication abnormalities collected within the predetermined period, the step of collecting communication abnormalities within the predetermined period, And determining the block length.

また、請求項9に記載の通信プログラムは、コンピュータを請求項1ないし4のいずれか1項に記載の各手段として機能させる通信プログラムである。   A communication program according to a ninth aspect is a communication program that causes a computer to function as each means according to any one of the first to fourth aspects.

(1)請求項1〜9に記載の発明によれば、フレームを分割したブロック単位で通信を行っているので、通信回線の不安定などによりフレームよりも短い間隔で通信が失敗しても通信を維持することができる。また、送達確認データおよび受信状態通知データを用いているので、伝送異常(通信異常)により回線切断したとき、再接続において相手側が受信できなかった部分データ(ブロック)のみ再送信することで無駄な再送信をせずに済ますことができる。   (1) According to the first to ninth aspects of the present invention, since communication is performed in units of blocks obtained by dividing a frame, even if communication fails at intervals shorter than the frame due to instability of the communication line, etc. Can be maintained. In addition, since delivery confirmation data and reception status notification data are used, when the line is disconnected due to a transmission error (communication error), only the partial data (block) that the other party could not receive in the reconnection is retransmitted. You can avoid re-sending.

すなわち、切断にて伝送途中のデータが破棄され、次回接続にてフレーム全体のデータを再送信するのは時間的な無駄となるが、本発明によれば、再接続にて前回受信できたところを活かしてその次のブロックから送信開始するため、伝送上の無駄が少なくなる。   That is, the data being transmitted is discarded due to the disconnection, and it is time-consuming to retransmit the entire frame data at the next connection. Since transmission is started from the next block by utilizing, transmission waste is reduced.

(2)請求項2、6に記載の発明によれば、通信回線への初回接続時や、回線切断後の再接続時など、複数の接続状態に応じた接続番号を備えた接続開始の通知データを用いているので、適切な接続状態でデータの伝送を開始することができる。   (2) According to the inventions of claims 2 and 6, notification of connection start having connection numbers corresponding to a plurality of connection states, such as when connecting to a communication line for the first time or when reconnecting after disconnecting the line Since data is used, data transmission can be started in an appropriate connection state.

すなわち、前述の無駄な再送信を行わないためには前回の接続状態を保持する必要があるが、本発明によれば、前記複数の接続状態に応じた接続番号を回線接続時に受信側装置から送信側装置に通知しているため、該当する接続状態に戻して通信を再開することができる。これによって回線切断が頻発しても伝送効率の悪化を防ぐことができる。   That is, in order not to perform the above-described useless retransmission, it is necessary to maintain the previous connection state. However, according to the present invention, the connection number corresponding to the plurality of connection states is obtained from the receiving side device at the time of line connection. Since the transmission side device is notified, communication can be resumed by returning to the corresponding connection state. As a result, it is possible to prevent deterioration in transmission efficiency even if line disconnection occurs frequently.

(3)請求項3、7に記載の発明によれば、送達確認データ内の受信完了フレーム番号を利用して、受信完了のフレームデータをメモリから削除しているので、送信側装置のメモリ容量を増やすことなく、未受信のフレームデータを送信側装置から再送することができる。   (3) According to the third and seventh aspects of the present invention, since the reception completion frame number is deleted from the memory using the reception completion frame number in the delivery confirmation data, the memory capacity of the transmission side device It is possible to retransmit unreceived frame data from the transmission side device without increasing the number of frames.

(4)請求項4、8に記載の発明によれば、伝送フレームより細かい単位(ブロック)で管理するので、短時間で通信異常が発生しても通信を継続することができる。   (4) According to the fourth and eighth aspects of the invention, since management is performed in units (blocks) smaller than the transmission frame, communication can be continued even if a communication abnormality occurs in a short time.

すなわち、伝送異常(通信異常)の発生頻度に応じてブロック長を決定しているので、伝送状態によりブロック長が自動変更されるため、伝送状態が一時的に悪化しても追従できる範囲が広くなる。   That is, since the block length is determined according to the frequency of occurrence of transmission abnormality (communication abnormality), the block length is automatically changed according to the transmission state, so the range that can be followed even if the transmission state temporarily deteriorates is wide. Become.

本発明の通信システムの実施形態例を示す構成図。The block diagram which shows the embodiment of the communication system of this invention. 本発明で適用されるフレームのブロック分割のようすを示す説明図。Explanatory drawing which shows the block division of the frame applied by this invention. 本発明の実施形態例におけるブロックのデータ構成を示す説明図。Explanatory drawing which shows the data structure of the block in the example embodiment of this invention. 本発明の実施形態例における送達確認データの構成を示す説明図。Explanatory drawing which shows the structure of the delivery confirmation data in the example embodiment of this invention. 本発明の実施形態例における受信状態通知データの構成を示す説明図。Explanatory drawing which shows the structure of the reception status notification data in the example embodiment of the present invention. 本発明の実施形態例におけるブロック送信から未受信ブロックの再送信までの処理を示すフローチャート。The flowchart which shows the process from the block transmission in the example embodiment of this invention to the retransmission of an unreceived block. 本発明の実施形態例における接続開始の通知データの構成を示す説明図。Explanatory drawing which shows the structure of the notification data of a connection start in the example embodiment of this invention. 本発明の実施形態例における新規接続又は再接続時の処理を示すフローチャート。The flowchart which shows the process at the time of the new connection or reconnection in the embodiment of this invention. 従来の通信方法における不具合を示す説明図。Explanatory drawing which shows the malfunction in the conventional communication method.

以下、図面を参照しながら本発明の実施の形態を説明するが、本発明は下記の実施形態例に限定されるものではない。図1は本発明の通信システムの実施形態例を示す構成図であり、100は送信側装置、200は受信側装置、300は通信回線を示している。   Hereinafter, embodiments of the present invention will be described with reference to the drawings, but the present invention is not limited to the following embodiments. FIG. 1 is a block diagram showing an embodiment of a communication system according to the present invention, where 100 is a transmission side device, 200 is a reception side device, and 300 is a communication line.

送信側装置100には、1フレームのデータを所定データ長に分割したブロックを送信する機能と、前記通信回線300への初回接続時に、前記ブロックの長さを第1のブロック長に決定して所定期間通信を行わせる機能と、前記所定期間内に通信異常を収集する機能と、前記所定期間内に収集された通信異常の発生頻度に基づいて前記ブロックの長さを第2のブロック長に決定する機能と、最新の送信フレームを表す最新送信フレーム番号および受信側装置200での受信完了フレームを表す受信完了フレーム番号を含み、且つ前記通信回線300への初回接続時には乱数から生成した新規の接続番号を、回線切断後の再接続時には前回接続時の接続番号を各々付与した接続開始の通知データを送信する機能と、前記受信側装置200から前記接続開始の通知データを応答として受信した後に前記ブロックを送信する機能と、前記ブロック送信後に、最新送信フレーム番号および受信完了フレーム番号を含む送達確認データを送信する機能と、受信側装置200から送信された、フレーム番号および受信ブロック状態を含む受信状態通知データを受信したとき、該データで指定された未受信のブロックを送信する機能とを有した送信側制御手段101が設けられている。   The transmission side device 100 has a function of transmitting a block obtained by dividing one frame of data into a predetermined data length, and determines the length of the block as a first block length when connecting to the communication line 300 for the first time. Based on a function for performing communication for a predetermined period, a function for collecting communication abnormality within the predetermined period, and a frequency of occurrence of communication abnormality collected within the predetermined period, the block length is set to the second block length. A function for determining, a latest transmission frame number representing the latest transmission frame, and a reception completion frame number representing a reception completion frame in the receiving-side apparatus 200, and a new one generated from a random number at the first connection to the communication line 300 A function of transmitting connection start notification data each of which is given a connection number at the time of the previous connection at the time of reconnection after disconnection of the line; A function of transmitting the block after receiving the connection start notification data as a response; a function of transmitting delivery confirmation data including the latest transmission frame number and reception completion frame number after the transmission of the block; A transmission-side control unit 101 having a function of transmitting an unreceived block designated by the data when receiving the received reception state notification data including the frame number and the reception block state is provided.

前記受信側装置200には、前記送信側装置100から前記接続開始の通知データを受信したときに、前記接続番号と一致する番号が過去の通信記録に有るか否かを判定する機能と、前記判定結果が、一致する接続番号有りの場合、前記通信記録から受信完了フレーム番号および最新送信フレーム番号を引き継ぎ、前記判定結果が、一致する接続番号無しの場合、新規の接続番号を前記通信記録に追加する機能と、前記通信記録の引き継ぎ又は追加終了後の前記接続開始の通知データを応答として送信する機能と、送信側装置100から送信されたブロックを受信し、該受信したブロックをフレームに組み立てる機能と、送信側装置100から送信された送達確認データを受信したとき、該データ内の最新送信フレーム番号に基づいて受信できていないフレームを判定し、該フレームのどのブロックが未受信であるかを示す受信状態通知データを送信する機能と、前記送達確認データ内の受信完了フレーム番号で表される、受信完了のフレームデータをメモリから削除する機能とを有した受信側制御手段201が設けられている。   The receiving side device 200 has a function of determining whether or not a number matching the connection number exists in the past communication record when the connection start notification data is received from the transmitting side device 100; If the determination result is that there is a matching connection number, the reception completion frame number and the latest transmission frame number are taken over from the communication record. If the determination result is that there is no matching connection number, a new connection number is stored in the communication record. A function to add, a function to transmit the connection start notification data after taking over or completion of the communication record as a response, and a block transmitted from the transmission side device 100, and assembling the received block into a frame When the function and the delivery confirmation data transmitted from the transmission-side apparatus 100 are received, the data is received based on the latest transmission frame number in the data. A function for transmitting a reception status notification data indicating which block of the frame is not received and a reception completion frame data represented by a reception completion frame number in the delivery confirmation data Receiving-side control means 201 having a function of deleting from the memory.

前記送信側制御手段101および受信側制御手段201の前記各機能は、例えばコンピュータにより達成される。   The functions of the transmission side control unit 101 and the reception side control unit 201 are achieved by, for example, a computer.

通信プロトコルは、上位通信層から送信データを受け取り送信し、通信回線からデータを受信したら上位通信層へ渡す。上位層と下位層の間のインターフェースさえ守れば下位層にてデータを分割管理しても問題はない。通常、データは伝送媒体の物理的制約や規格により分割し送信されている。   The communication protocol receives and transmits transmission data from the upper communication layer, and passes it to the upper communication layer when data is received from the communication line. As long as the interface between the upper layer and the lower layer is protected, there is no problem even if the data is divided and managed in the lower layer. Normally, data is divided and transmitted according to physical restrictions and standards of the transmission medium.

ここで、フレームを分割せずに送信した場合、図2のようにフレーム途中で伝送異常が発生するとそのフレーム全体を破棄するしかない。フレームを小さいブロックに分割して管理しながら送信した場合、図2において2ブロックと3ブロックのみ再送信すればフレームを受信することができる。   Here, when the frame is transmitted without being divided, if a transmission abnormality occurs in the middle of the frame as shown in FIG. 2, the entire frame can only be discarded. When the frame is divided into small blocks and transmitted while being managed, the frame can be received by retransmitting only 2 blocks and 3 blocks in FIG.

プロトコルにおいてブロックのように小さな単位に分割して送信することは通常よく行われている。しかし、後述するような本発明におけるブロック長の調整や、再送信のための機構は従来存在しなかった。   In the protocol, it is often performed that the data is divided into small units such as blocks. However, there has been no mechanism for adjusting the block length and re-transmission in the present invention as will be described later.

上位からのデータをフレームとし、分割したデータをブロックとするとき、ブロックの伝送時間が通信異常の発生間隔より長いならば送信は失敗してしまう。そこで本実施形態例ではブロック長を次のように決定する。   When the data from the higher order is used as a frame and the divided data is used as a block, transmission will fail if the transmission time of the block is longer than the occurrence interval of communication abnormality. Therefore, in this embodiment, the block length is determined as follows.

(1)通信回線300への接続の最初は異常発生頻度が不明なので安全のために最小の値(第1のブロック長)とする。   (1) Since the frequency of occurrence of abnormality is unknown at the beginning of connection to the communication line 300, the minimum value (first block length) is set for safety.

(2)一定期間(所定期間)そのブロック長(第1のブロック長)で運用し通信異常を収集する。収集するのはブロックを連続して送信したとき何ブロック目で異常となったかである。   (2) A communication error is collected by operating with the block length (first block length) for a certain period (predetermined period). What is collected is the number of blocks at which abnormalities occur when blocks are transmitted continuously.

(3)一定期間後、前記収集した通信異常の発生頻度からブロック長(第2のブロック長)を決定する。発生確率が小さい間隔を除いて、残りの間隔で最も短い間隔を探しその時間内に送信できるブロック長とする。   (3) After a certain period, a block length (second block length) is determined from the collected occurrence frequency of communication abnormality. Except for intervals with a low probability of occurrence, the shortest interval is searched for among the remaining intervals, and the block length that can be transmitted within that time is set.

(4)一度ブロック長を決定したら、次回接続時は該ブロック長(第2のブロック長)から始める。ただし、前記ブロック長(第2のブロック長)を決定してから時間(第2の所定期間)が経過している場合にはブロック長は最小(第1のブロック長)に戻す。   (4) Once the block length is determined, the next connection is started from the block length (second block length). However, when the time (second predetermined period) has elapsed since the block length (second block length) was determined, the block length is returned to the minimum (first block length).

次に本実施形態例におけるブロックのデータ構成を説明する。   Next, the data structure of the block in the present embodiment will be described.

ブロックは図3のような構成であり、先頭にヘッダ、最後にトレーラ、それらの間にフレームを分割したデータをセットする。フレーム番号とブロック番号は、このデータが回線接続上の何番目のフレームで、そのフレーム内の何番目のブロックであるかを示す。全ブロック数はそのフレームが構成されているブロック数を示す。   The block has a structure as shown in FIG. 3, and sets a header at the beginning, a trailer at the end, and data obtained by dividing a frame between them. The frame number and the block number indicate what number frame on the circuit connection is, and what number block is in the frame. The total number of blocks indicates the number of blocks constituting the frame.

全ブロック数が毎回送信されるのは、伝送異常にて一部のブロックだけが到達しても、それがフレーム全体なのか一部なのかを知る必要があるからである。全ブロック数ではなく最終ブロックであることを示すフラグを用いても同様な処理は可能である。   The reason why the total number of blocks is transmitted every time is that it is necessary to know whether it is an entire frame or a part even if only some of the blocks arrive due to a transmission error. Similar processing is possible even when a flag indicating the last block is used instead of the total number of blocks.

通信異常となったときブロックデータの一部が欠けたり、あるいは異常なデータが追加されたり、化けたりすることが多い。このためヘッダにある識別コードの中に簡易なチェックコードを追加し受信側にて異常ならばブロックを破棄する。簡易なチェックコードにした理由は、フレーム全体には別途チェックコードがあるためブロック単位は完全性を要求されず、これを完全にするためにブロックデータ構造が増えることを避けたものである。   When a communication error occurs, part of the block data is often missing, or abnormal data is added or garbled. For this reason, a simple check code is added to the identification code in the header, and the block is discarded if there is an abnormality on the receiving side. The reason for the simple check code is that the entire frame has a separate check code, so that the completeness of the block unit is not required, and the increase in the block data structure is avoided to complete this.

ここで、図3のブロックにおけるトレーラの存在理由を説明する。   Here, the reason for the presence of the trailer in the block of FIG. 3 will be described.

(1)データサイズの省略
前記図2に示すように、1フレームは複数ブロックで構成されており、1ブロックのサイズは伝送異常の発生頻度により決定される固定値である。例えば、ブロックサイズを300byteと決定し、送信データが1000byteであるとき、ブロックは、300byte+300byte+300byte+100byteの4つに分割する。
(1) Omission of Data Size As shown in FIG. 2, one frame is composed of a plurality of blocks, and the size of one block is a fixed value determined by the frequency of occurrence of transmission abnormality. For example, when the block size is determined as 300 bytes and the transmission data is 1000 bytes, the block is divided into four of 300 bytes + 300 bytes + 300 bytes + 100 bytes.

その各ブロックのサイズを示す項目はなく、最終ブロック以外、ブロックサイズは300byteである。そこで最終ブロックはトレーラまでをブロックデータとして扱っている。これにより、フレームサイズとブロックサイズを送るのを省くことができる。   There is no item indicating the size of each block, and the block size other than the last block is 300 bytes. Therefore, the last block handles up to the trailer as block data. Thereby, it is possible to omit sending the frame size and the block size.

(2)伝送異常タイムアウトを減らす
低速で不安定な回線では、データが受信できずにタイムアウトすることは時間的な無駄が大きく伝送帯域を悪くする。これは低速で不安定であるためタイムアウト値は短くできないためである。
(2) Reducing the transmission abnormal timeout On a low-speed and unstable line, timing out without receiving data is time consuming and the transmission bandwidth is degraded. This is because the timeout value cannot be shortened because it is slow and unstable.

ここで伝送異常によりブロックデータの一部が欠けた場合を想定する。欠損したブロックの後、次のブロックが送信されればそのヘッダを受信したときにデータ欠損を認識する。しかし次の送信が存在しない場合にはタイムアウトにより検出しなければならない。これに対し、本実施形態例のトレーラがあれば、データサイズに関係なくトレーラ受信時点でデータ欠損を認識できるためタイムアウトによる待ち時間はなくなり、伝送効率が良くなる。   Here, it is assumed that a part of the block data is missing due to a transmission abnormality. If the next block is transmitted after the missing block, the missing data is recognized when the header is received. However, if there is no next transmission, it must be detected by timeout. On the other hand, if the trailer of the present embodiment is used, data loss can be recognized at the time of trailer reception regardless of the data size, so there is no waiting time due to timeout and transmission efficiency is improved.

また前述の簡易なチェックコードは、図3のヘッダにある識別コードの中に含まれており、識別コードは種別とチェックコードから構成されている。前記種別は、ブロックデータ、後述の送達確認、受信状態通知などを区別するコードであり、チェックコードは例えばチェックサムならばヘッダからブロックデータ最後までの合計値を格納する。   The simple check code described above is included in the identification code in the header of FIG. 3, and the identification code is composed of a type and a check code. The type is a code for distinguishing block data, a delivery confirmation described later, a reception state notification, and the like. For example, if the check code is a checksum, a total value from the header to the end of the block data is stored.

次に本実施形態例におけるフレーム合成と送達確認データについて説明する。受信側装置200では、ブロックを受信するとフレームに組み立て、すべての図ロックが揃えばフレームが完成する。プロトコル上、相手が受信できたことを確認する必要があるため、送信側装置100は図4に示すような送達確認データを適当なタイミングで送る。   Next, frame synthesis and delivery confirmation data in this embodiment will be described. When receiving the block, the receiving-side apparatus 200 assembles it into a frame, and completes the frame when all the figure locks are aligned. Since it is necessary for the protocol to confirm that the other party has been able to receive, the transmitting apparatus 100 sends delivery confirmation data as shown in FIG. 4 at an appropriate timing.

図4において、識別コードは、データの始まりと終わりを示すコードであり、データ種別と全体のチェックサムを含んでいる。   In FIG. 4, an identification code is a code indicating the start and end of data, and includes a data type and an overall checksum.

重複識別は、送達確認データの送信のたびに+1されるが、送達確認に対する応答が無いときタイムアウトにて当該送達確認データを再送信する場合には+1せず同じ値とする。すなわち、送達確認データが回線上のどこかで遅延して到達し誤って動作するのを防ぐ目的で使用する。   The duplicate identification is incremented by +1 every time the delivery confirmation data is transmitted. However, when there is no response to the delivery confirmation, the same value is used instead of +1 when the delivery confirmation data is retransmitted due to timeout. That is, it is used for the purpose of preventing the delivery confirmation data from arriving at somewhere on the line and operating erroneously.

受信完了フレーム番号は、受信側装置200での受信完了フレームを表し、送達確認を送信する側にて受信したフレームにおいて連続したフレーム番号の最後の番号を示す。つまりその次のフレームはまだ受信していないか、一部しか受信していないことを示す。   The reception completion frame number represents a reception completion frame in the reception-side apparatus 200, and indicates the last number of consecutive frame numbers in the frame received on the transmission acknowledgment transmission side. That is, it indicates that the next frame has not been received yet or only a part has been received.

最新送信フレーム番号は、最新の送信フレームを表し、送達確認を送信する側にて複数のフレームを送信した際の最も新しいフレーム番号を示す。つまり相手側でそのフレームまで受信できていれば、送信はすべて完了していることになる。   The latest transmission frame number represents the latest transmission frame, and indicates the newest frame number when a plurality of frames are transmitted on the transmission acknowledgment transmission side. In other words, if the other side has received up to that frame, transmission has been completed.

次に本実施形態例における受信状態通知データについて説明する。   Next, the reception status notification data in this embodiment will be described.

受信側装置200では、送信側装置100から前記送信確認データを受信すると、該データに基づいて以下の2点について判定を行う。   When receiving the transmission confirmation data from the transmission-side device 100, the reception-side device 200 determines the following two points based on the data.

(1)送信側装置100から送信されたフレームについてどのフレームまで受信完了したか。   (1) Up to which frame has been received for the frame transmitted from the transmitting apparatus 100.

(2)相手からの送信はすべて受信完了か、それとも次のフレームが受信できていないのかを知る。   (2) Know whether all transmissions from the other party have been received, or whether the next frame has not been received.

次のフレームが受信されていないと判定されたら、送信元に対して図5に示す受信状態通知データを送信する。図5のデータ構成によって、受信できていないフレームについて、どのブロックが未受信であるかを通知している。そして送信側装置100では、この受信状態通知データを受信したら未受信のブロックについて受信側装置200へ再送信を行いフレーム組み立てを完成させる。   If it is determined that the next frame has not been received, the reception state notification data shown in FIG. 5 is transmitted to the transmission source. The data configuration in FIG. 5 notifies which block has not been received for a frame that has not been received. When receiving the reception state notification data, the transmission side device 100 retransmits the unreceived block to the reception side device 200 to complete the frame assembly.

すなわち、受信側装置200では、受信によりフレーム内のブロックがすべて揃えばそのフレームは完成となるが、ブロックが全て揃わない、又は全く受信していないとき、そのフレームは未完成である。   That is, in receiving-side apparatus 200, the frame is completed when all the blocks in the frame are aligned by reception, but when all the blocks are not aligned or not received at all, the frame is incomplete.

図4の送達確認データを受信したとき、送信側装置100の最新送信フレーム番号が得られる。これはそのフレーム番号の最終ブロックまで送信したことを示しているので、そのフレーム以前の未完成フレームは、図5の受信状態通知データにより足りないブロックを送信側装置100に要求する。その後送信側装置100が前記足りないブロックを受信側装置200へ再送信する。   When the delivery confirmation data in FIG. 4 is received, the latest transmission frame number of the transmission side device 100 is obtained. This indicates that the frame up to the last block of the frame number has been transmitted, so that an incomplete frame before that frame requests the transmitting side device 100 for a block that is not sufficient by the reception state notification data of FIG. Thereafter, the transmitting apparatus 100 retransmits the missing block to the receiving apparatus 200.

上記の処理により伝送異常が発生したブロックを再送信し、フレームより細かい単位で伝送を行うことができる。   It is possible to retransmit a block in which a transmission abnormality has occurred by the above processing and perform transmission in units smaller than a frame.

以上説明したブロックの送信から未受信ブロックの再送信までの処理のフローチャートの一例を図6に示す。図6において、まずステップS1では送信側装置100がブロックを送信する。   FIG. 6 shows an example of a flowchart of the processing from the block transmission described above to the retransmission of the unreceived block. In FIG. 6, first, in step S1, the transmission-side apparatus 100 transmits a block.

次にステップS2において、一定時間経過したか否かを判定し、YESならばステップS3へ進み、NOならばステップS1に戻る。ステップS3では、図4に示す送達確認データを送信する。   Next, in step S2, it is determined whether or not a predetermined time has elapsed. If YES, the process proceeds to step S3, and if NO, the process returns to step S1. In step S3, the delivery confirmation data shown in FIG. 4 is transmitted.

次にステップS4において、受信側装置200は、受信した送達確認データ内の最新送信フレーム番号に基づいて、受信できていないフレームを判定し、該フレームのどのブロックが未受信であるかを示す受信状態通知データを送信する。   Next, in step S4, the receiving-side apparatus 200 determines a frame that has not been received based on the latest transmission frame number in the received delivery confirmation data, and receives that indicates which block of the frame has not been received. Send status notification data.

次にステップS5において、送信側装置100は、受信した前記受信状態通知データで指定された未受信のブロックを再送信する。   Next, in step S5, the transmitting apparatus 100 retransmits the unreceived block specified by the received reception status notification data.

次に本実施形態例における送達確認データ内の受信完了フレーム番号を利用した機能について説明する。前述のように送信側装置100では、受信状態通知データを受信したら、要求されたブロックを受信側装置200へ再送信するが、どのフレームでもいつでも再送できるようにするためには、送信側装置100にメモリが大量に必要となる。そのため受信側装置200にてフレーム完成したと判明しているフレームは送信側メモリから解放させる。   Next, the function using the reception completion frame number in the delivery confirmation data in this embodiment will be described. As described above, when receiving the reception state notification data, the transmitting apparatus 100 retransmits the requested block to the receiving apparatus 200. In order to be able to retransmit any frame at any time, the transmitting apparatus 100 Requires a lot of memory. Therefore, the frame that is known to be completed by the receiving side apparatus 200 is released from the transmitting side memory.

すなわち、ブロック受信にてフレームが完成すると、送達確認データ内の受信完了フレーム番号にて通知し、送信側装置100はそのフレーム以前のデータをメモリから消去する。なおフレームは連続して受信している最後のフレームであり、途中で未完成フレームがあればその1つ前のフレーム番号を受信完了フレーム番号として通知する。   That is, when a frame is completed by block reception, notification is made with a reception completion frame number in the delivery confirmation data, and the transmission-side apparatus 100 erases data before that frame from the memory. The frame is the last frame continuously received. If there is an incomplete frame, the previous frame number is notified as the reception completion frame number.

次に本実施形態例における「切断から再接続におけるブロック送信(すなわち、途中で回線切断してもブロック単位で途中から再開させる機構)」について説明する。   Next, “block transmission from disconnection to reconnection (that is, a mechanism for restarting from the middle in units of blocks even if the line is disconnected in the middle)” in this embodiment will be described.

回線切断において相手(受信側)の状況は不明であるが自分(送信側)の送受信状態は記録できる。再接続時に相手側(受信側)の送受信状態を得ることで切断時から継続して伝送を開始する。これは以下の手順で行う。   When the line is disconnected, the status of the other party (reception side) is unknown, but the transmission / reception status of oneself (transmission side) can be recorded. Transmission is continuously started from the time of disconnection by obtaining the transmission / reception state of the other party (reception side) at the time of reconnection. This is done by the following procedure.

(1)自装置側(送信側)の送達確認を相手(受信側)へ送信する。   (1) The delivery confirmation on the own device side (transmission side) is transmitted to the partner (reception side).

(2)送達確認を受信したら当方(受信側)が受信できていないフレームに対し、受信状態通知を(送信側へ)送信する。   (2) When a delivery confirmation is received, a reception state notification is transmitted (to the transmission side) for a frame that we (the reception side) cannot receive.

(3)(送信側は)受信状態通知を受信したら未受信ブロックについて再送信を行う。   (3) When the reception state notification is received (on the transmission side), retransmission is performed for an unreceived block.


(4)フレームの完成により、送達確認が送信されると相手は次のフレームを送信し始める。

(4) When a delivery confirmation is transmitted due to completion of the frame, the other party starts transmitting the next frame.

上記動作により、前回接続時に受信できたブロックを再送信せずにフレームを送信することができる。   With the above operation, a frame can be transmitted without retransmitting a block that can be received at the previous connection.

次に本実施形態例における「接続を区別して保持する機構」について説明する。接続においては、初回である場合と前回が通信異常にて中断した後の接続がある。また他の機器との接続もあるため、前回接続状態を継続するためにはそれぞれ区別する手段が必要となる。   Next, the “mechanism for distinguishing and holding connections” in this embodiment will be described. In connection, there is a connection for the first time and after the previous interruption due to a communication error. In addition, since there are connections with other devices, a means for distinguishing them is necessary to continue the previous connection state.

そこで、電源ON又は初回接続時に乱数から生成した接続番号を、接続時に相手へ送信する。相手側はその番号にて検索し前回接続時の状態を探し出し使用する。なお検索にて見つからないときは新規接続として扱う。そのため接続開始において、図7に示す構造を持った接続開始の通知データが必要となる。   Therefore, the connection number generated from the random number at the time of power-on or first connection is transmitted to the other party at the time of connection. The other party searches by that number, finds the state at the previous connection, and uses it. If it is not found in the search, it is treated as a new connection. Therefore, connection start notification data having the structure shown in FIG. 7 is required at the start of connection.

図7において、重複識別は、このデータが相手に到達しない場合や遅延にて再送信しても区別できるようにしている。   In FIG. 7, duplication identification is made possible to distinguish even when this data does not reach the other party or retransmitted due to delay.

接続番号は、異なる通信機器の接続、又は同じ機器でも別の接続であれば乱数により生成される番号であり、通信異常で切断しても再接続であれば同じ番号が指定される。   The connection number is a number generated by a random number if different communication devices are connected, or if the same device is another connection, and the same number is designated if the connection is reconnected even if disconnected due to a communication error.

ブロック長は、伝送異常の発生頻度から決定されたサイズである。   The block length is a size determined from the frequency of occurrence of transmission abnormalities.

受信完了フレーム番号、最新送信フレーム番号等は、図4の送達確認データで使用している値と同じである。この機構によって、複数の機器、又は同じ機器でも異なる接続を区別して伝送を継続することが可能となる。   The reception completion frame number, the latest transmission frame number, and the like are the same as the values used in the delivery confirmation data in FIG. With this mechanism, a plurality of devices or the same device can distinguish different connections and continue transmission.

ここで、前記「切断から再接続におけるブロック送信」と「接続を区別して保持する機構」は、動作するパケットとタイミングが同じであり、これらの処理のフローチャートの一例を図8に示す。   Here, the “block transmission from disconnection to reconnection” and the “mechanism for distinguishing and holding the connection” have the same timing as the operating packet, and FIG. 8 shows an example of a flowchart of these processes.

図8において、まず送信側装置100は、電源ON又は初回接続時であれば、ステップS11において、図7に示すデータの接続番号を乱数から生成した新規の接続番号とし、受信完了フレーム番号および最新送信フレーム番号を零として接続開始の通知データを送信する。   In FIG. 8, first, when the power source is ON or initially connected, the transmission side apparatus 100 sets the connection number of the data shown in FIG. 7 as a new connection number generated from a random number in step S11, and the reception completion frame number and the latest The connection start notification data is transmitted with the transmission frame number set to zero.

また回線切断後の再接続時であれば、ステップS12において、図7に示すデータの接続番号を前回接続時の接続番号として接続開始の通知データを送信する。   If reconnection after line disconnection is made, in step S12, connection start notification data is transmitted with the connection number of the data shown in FIG. 7 as the connection number at the previous connection.

次にステップS13,S14において、受信側装置200は、送信側装置100からの前記接続開始の通知データを受信し、過去の通信記録を接続番号で検索し、受信した接続番号が通信記録にあるか否かを判定する。   Next, in steps S13 and S14, the receiving-side device 200 receives the connection start notification data from the transmitting-side device 100, searches past communication records by the connection number, and the received connection number is in the communication record. It is determined whether or not.

無い場合はステップS15において、通信記録へ新規接続として接続番号を追加し(新規の接続番号として通信記録上に領域を用意し)、受信完了フレーム番号および最新送信フレーム番号を零とし、有る場合はステップS16において、通信記録から受信完了フレーム番号および最新送信フレーム番号を読み出す(引き継ぐ)。   If not, in step S15, a connection number is added as a new connection to the communication record (an area is prepared on the communication record as a new connection number), and the reception completion frame number and the latest transmission frame number are set to zero. In step S16, the reception completion frame number and the latest transmission frame number are read (taken over) from the communication record.

次にステップS17において、受信側装置200は、前記ステップS15,S16の処理終了後の接続開始の通知データを応答として送信する。   Next, in step S17, the receiving-side apparatus 200 transmits connection start notification data after the processing of steps S15 and S16 as a response.

次にステップS18では、送信側装置100および受信側装置200の両方において、相手が新規であればこちらも新規とし、受信完了フレーム番号に従ってメモリを解放させ、最新送信フレーム番号に従って受信状態通知データを送信する。   Next, in step S18, if both parties are new in the transmission side device 100 and the reception side device 200, this is also new, the memory is released according to the reception completion frame number, and the reception state notification data is sent according to the latest transmission frame number. Send.

以後は通常の送受信状態となる。   Thereafter, a normal transmission / reception state is established.

また、本実施形態の通信装置における各手段の一部もしくは全部の機能をコンピュータのプログラムで構成し、そのプログラムをコンピュータを用いて実行して本発明を実現することができること、本実施形態の通信方法における手順をコンピュータのプログラムで構成し、そのプログラムをコンピュータに実行させることができることは言うまでもなく、コンピュータでその機能を実現するためのプログラムを、そのコンピュータが読み取り可能な記録媒体、例えばFD(Floppy(登録商標) Disk)や、MO(Magneto−Optical disk)、ROM(Read Only Memory)、メモリカード、CD(Compact Disk)−ROM、DVD(Digital Versatile Disk)−ROM、CD−R、CD−RW、HDD、リムーバブルディスクなどに記録して、保存したり、配布したりすることが可能である。また、上記のプログラムをインターネットや電子メールなど、ネットワークを通して提供することも可能である。   In addition, a part or all of the functions of each unit in the communication apparatus of the present embodiment can be configured by a computer program, and the program can be executed using the computer to realize the present invention. The communication of the present embodiment It goes without saying that the procedure in the method can be constituted by a computer program, and the program can be executed by the computer. A program for realizing the function by the computer can be recorded on a computer-readable recording medium, for example, FD (Floppy). (Registered trademark) Disk, MO (Magneto-Optical disk), ROM (Read Only Memory), memory card, CD (Compact Disk) -ROM, DVD (Digital Versatile Disk) ROM, CD-R, CD-RW, HDD, and recorded in a removable disk, storage or can be or distribute. It is also possible to provide the above program through a network such as the Internet or electronic mail.

100…送信側装置、101…送信側制御手段、200…受信側装置、201…受信側制御手段、300…通信回線。   DESCRIPTION OF SYMBOLS 100 ... Transmission side apparatus, 101 ... Transmission side control means, 200 ... Reception side apparatus, 201 ... Reception side control means, 300 ... Communication line.

Claims (9)

1フレームのデータを、所定データ長に構成され、通信回線上の何番目のフレームであるかを表すフレーム番号および当該フレーム内の何番目のブロックであるかを表すブロック番号を含むブロックに分割して送信する送信側装置と、受信側装置との間で、通信回線を介して通信を行う通信システムであって、
前記送信側装置に設けられた送信側制御手段と、前記受信側装置に設けられた受信側制御手段とを備え、
前記送信側制御手段は、
前記ブロックを送信する機能と、
前記ブロック送信後に、最新の送信フレームを表す最新送信フレーム番号および受信側装置での受信完了フレームを表す受信完了フレーム番号を含む送達確認データを送信する機能と、
受信側装置から送信された、フレーム番号および受信ブロック状態を含む受信状態通知データを受信したとき、該データで指定された未受信のブロックを送信する機能とを有し、
前記受信側制御手段は、
送信側装置から送信されたブロックを受信し、該受信したブロックをフレームに組み立てる機能と、
送信側装置から送信された送達確認データを受信したとき、該データ内の最新送信フレーム番号に基づいて受信できていないフレームを判定し、該フレームのどのブロックが未受信であるかを示す受信状態通知データを送信する機能とを有していることを特徴とする通信システム。
One frame of data is divided into blocks each having a predetermined data length and including a frame number indicating the numbered frame on the communication line and a block number indicating the numbered block in the frame. A communication system that performs communication via a communication line between a transmission-side device that transmits data and a reception-side device,
A transmission side control means provided in the transmission side device, and a reception side control means provided in the reception side device,
The transmission side control means includes
A function of transmitting the block;
A function of transmitting delivery confirmation data including the latest transmission frame number representing the latest transmission frame and the reception completion frame number representing the reception completion frame at the receiving side device after the block transmission;
When receiving reception state notification data including a frame number and a reception block state transmitted from the receiving side device, it has a function of transmitting an unreceived block designated by the data,
The receiving side control means includes:
A function of receiving a block transmitted from a transmission side device and assembling the received block into a frame;
When receiving acknowledgment data transmitted from the transmission side device, a reception state indicating which frame is not received based on the latest transmission frame number in the data and which block of the frame is not received A communication system having a function of transmitting notification data.
前記送信側制御手段は、前記最新送信フレーム番号および受信完了フレーム番号を含み、且つ前記通信回線への初回接続時には乱数から生成した新規の接続番号を、回線切断後の再接続時には前回接続時の接続番号を各々付与した接続開始の通知データを送信する機能と、
前記受信側装置から前記接続開始の通知データを応答として受信した後に前記ブロックを送信する機能とを有し、
前記受信側制御手段は、
前記送信側装置から接続開始の通知データを受信したときに、前記接続番号と一致する番号が過去の通信記録に有るか否かを判定する機能と、
前記判定結果が、一致する接続番号有りの場合、前記通信記録から受信完了フレーム番号および最新送信フレーム番号を引き継ぎ、前記判定結果が、一致する接続番号無しの場合、新規の接続番号を前記通信記録に追加する機能と、
前記通信記録の引き継ぎ又は追加終了後の前記接続開始の通知データを応答として送信する機能とを有していることを特徴とする請求項1に記載の通信システム。
The transmission side control means includes the newest transmission frame number and the reception completion frame number, and a new connection number generated from a random number at the time of initial connection to the communication line, and at the time of previous connection at the time of reconnection after line disconnection. A function of sending connection start notification data each assigned a connection number;
A function of transmitting the block after receiving the connection start notification data as a response from the receiving side device;
The receiving side control means includes:
A function for determining whether or not a number matching the connection number exists in the past communication record when connection start notification data is received from the transmission side device;
If the determination result is that there is a matching connection number, the reception completion frame number and the latest transmission frame number are taken over from the communication record. If the determination result is that there is no matching connection number, the new connection number is Features to add to
2. The communication system according to claim 1, further comprising a function of transmitting, as a response, notification data of the connection start after the communication record has been taken over or has been added.
前記送信側制御手段は、前記送達確認データ内の受信完了フレーム番号で表される、受信完了のフレームデータを送信側メモリから削除する機能を有していることを特徴とする請求項1又は2に記載の通信システム。   3. The transmission side control means has a function of deleting reception completion frame data represented by a reception completion frame number in the delivery confirmation data from a transmission side memory. The communication system according to 1. 前記送信側制御手段は、
前記通信回線への初回接続時に、前記ブロックの長さを第1のブロック長に決定して所定期間通信を行わせる機能と、
前記所定期間内に通信異常を収集する機能と、
前記所定期間内に収集された通信異常の発生頻度に基づいて前記ブロックの長さを第2のブロック長に決定する機能と、を有していることを特徴とする請求項1ないし3のいずれか1項に記載の通信システム。
The transmission side control means includes
A function for determining a length of the block as a first block length and performing communication for a predetermined period at an initial connection to the communication line;
A function of collecting communication anomalies within the predetermined period;
4. The function according to claim 1, further comprising: determining a length of the block as a second block length based on a frequency of occurrence of communication abnormality collected within the predetermined period. The communication system according to claim 1.
1フレームのデータを、所定データ長に構成され、通信回線上の何番目のフレームであるかを表すフレーム番号および当該フレーム内の何番目のブロックであるかを表すブロック番号を含むブロックに分割して送信する送信側装置と、受信側装置との間で、通信回線を介して通信を行う通信システムにおける通信方法であって、
前記送信側装置の送信側制御手段が、
前記ブロックを送信するステップと、
前記ブロック送信後に、最新の送信フレームを表す最新送信フレーム番号および受信側装置での受信完了フレームを表す受信完了フレーム番号を含む送達確認データを送信するステップと、
前記受信側装置の受信側制御手段が、
送信側装置から送信されたブロックを受信し、該受信したブロックをフレームに組み立てるステップと、
送信側装置から送信された送達確認データを受信したとき、該データ内の最新送信フレーム番号に基づいて受信できていないフレームを判定し、該フレームのどのブロックが未受信であるかを示す受信状態通知データを送信するステップと、
前記送信側制御手段が、受信側装置から送信された、前記受信状態通知データを受信したとき、該データで指定された未受信のブロックを送信するステップとを有していることを特徴とする通信方法。
One frame of data is divided into blocks each having a predetermined data length and including a frame number indicating the numbered frame on the communication line and a block number indicating the numbered block in the frame. A communication method in a communication system that performs communication via a communication line between a transmission-side device that transmits data and a reception-side device,
The transmission side control means of the transmission side device comprises:
Transmitting the block;
After the block transmission, transmitting delivery confirmation data including a latest transmission frame number representing the latest transmission frame and a reception completion frame number representing a reception completion frame at the receiving side device;
The receiving side control means of the receiving side device comprises:
Receiving a block transmitted from a transmission side device, and assembling the received block into a frame;
When receiving acknowledgment data transmitted from the transmission side device, a reception state indicating which frame is not received based on the latest transmission frame number in the data and which block of the frame is not received Sending notification data; and
The transmission-side control means includes a step of transmitting an unreceived block designated by the data when receiving the reception status notification data transmitted from the reception-side device. Communication method.
前記送信側制御手段が、前記最新送信フレーム番号および受信完了フレーム番号を含み、且つ前記通信回線への初回接続時には乱数から生成した新規の接続番号を、回線切断後の再接続時には前回接続時の接続番号を各々付与した接続開始の通知データを送信するステップと、
前記受信側制御手段が、
前記送信側装置から接続開始の通知データを受信したときに、前記接続番号と一致する番号が過去の通信記録に有るか否かを判定するステップと、
前記判定結果が、一致する接続番号有りの場合、前記通信記録から受信完了フレーム番号および最新送信フレーム番号を引き継ぎ、前記判定結果が、一致する接続番号無しの場合、新規の接続番号を前記通信記録に追加するステップと、
前記通信記録の引き継ぎ又は追加終了後の前記接続開始の通知データを応答として送信するステップと、
前記送信側制御手段が、前記受信側装置から前記接続開始の通知データを応答として受信した後に前記ブロックを送信するステップとを有していることを特徴とする請求項5に記載の通信方法。
The transmission side control means includes the newest transmission frame number including the latest transmission frame number and the reception completion frame number, and generated from a random number at the first connection to the communication line. Transmitting connection start notification data each assigned a connection number;
The receiving side control means is
Determining whether or not a number matching the connection number exists in the past communication record when connection start notification data is received from the transmission side device;
If the determination result is that there is a matching connection number, the reception completion frame number and the latest transmission frame number are taken over from the communication record. If the determination result is that there is no matching connection number, a new connection number is added to the communication record. Steps to add to
Transmitting the connection start notification data as a response after taking over or adding the communication record;
The communication method according to claim 5, further comprising: a step of transmitting the block after the transmission side control means receives the connection start notification data from the reception side device as a response.
前記送信側制御手段が、前記送達確認データ内の受信完了フレーム番号で表される、受信完了のフレームデータを送信側メモリから削除するステップを有していることを特徴とする請求項5又は6に記載の通信方法。   7. The transmission side control means comprises a step of deleting reception completion frame data represented by a reception completion frame number in the delivery confirmation data from the transmission side memory. The communication method described in 1. 前記送信側制御手段が、
前記通信回線への初回接続時に、前記ブロックの長さを第1のブロック長に決定して所定期間通信を行わせるステップと、
前記所定期間内に通信異常を収集するステップと、
前記所定期間内に収集された通信異常の発生頻度に基づいて前記ブロックの長さを第2のブロック長に決定するステップと、を有していることを特徴とする請求項5ないし7のいずれか1項に記載の通信方法。
The transmission side control means is
A step of determining a length of the block as a first block length and performing communication for a predetermined period at the time of initial connection to the communication line;
Collecting communication anomalies within the predetermined period;
8. The step of determining the length of the block as a second block length based on the frequency of occurrence of communication anomalies collected within the predetermined period. The communication method according to claim 1.
コンピュータを請求項1ないし4のいずれか1項に記載の各手段として機能させる通信プログラム。   A communication program for causing a computer to function as each unit according to any one of claims 1 to 4.
JP2009007279A 2009-01-16 2009-01-16 Communication system, communication method, and communication program Active JP5176973B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009007279A JP5176973B2 (en) 2009-01-16 2009-01-16 Communication system, communication method, and communication program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009007279A JP5176973B2 (en) 2009-01-16 2009-01-16 Communication system, communication method, and communication program

Publications (2)

Publication Number Publication Date
JP2010166347A JP2010166347A (en) 2010-07-29
JP5176973B2 true JP5176973B2 (en) 2013-04-03

Family

ID=42582160

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009007279A Active JP5176973B2 (en) 2009-01-16 2009-01-16 Communication system, communication method, and communication program

Country Status (1)

Country Link
JP (1) JP5176973B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015056696A (en) * 2013-09-10 2015-03-23 株式会社東芝 Communication device and communication method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2315962B (en) * 1996-07-31 2001-07-04 Internat Mobile Satellite Orga Method and apparatus for transmitting data
KR100574960B1 (en) * 2003-11-25 2006-05-02 삼성전자주식회사 The dividing method for payload intra-frame
JP2006304138A (en) * 2005-04-25 2006-11-02 Nippon Telegr & Teleph Corp <Ntt> Selective retransmission type communication device
JP4521368B2 (en) * 2006-02-24 2010-08-11 株式会社東芝 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
US8275565B2 (en) * 2006-06-20 2012-09-25 Ntt Docomo, Inc. Radio communication apparatus and radio communication method used in mobile communication system
JP5087939B2 (en) * 2007-02-02 2012-12-05 富士通株式会社 Wireless communication apparatus and transmission method

Also Published As

Publication number Publication date
JP2010166347A (en) 2010-07-29

Similar Documents

Publication Publication Date Title
US20100105334A1 (en) Radio link control status reporting and polling
US7965625B2 (en) Communication device and logical link abnormality detection method
KR100842281B1 (en) Apparatus for managing performance of transport control protocol using path recovery notification in wireless network and method using the same
JP2002152308A (en) Data communication system, data communication method, and recording medium with communication program recorded therein
WO2008025251A1 (en) A method for controling data retransmission in wireless network at the last retransmission time
US20070133414A1 (en) Method for faster detection and retransmission of lost TCP segments
JP2006211632A (en) Detection method of crc inspection error out of range
JP2001510960A (en) Communication method and system
KR20070108801A (en) Apparatus and method of effective harq assisted arq operation for high rate data transmission
WO2016201904A1 (en) Tcp-based data transmission method and device
EP1580916B1 (en) System and method for transmitting units of messages in a mobile communication system
WO2019242496A1 (en) Method and device for data transmission
CN116599953B (en) File uploading method, device, system, equipment and readable storage medium
US7724755B2 (en) Communications apparatus
JP4229807B2 (en) Data transfer method, TCP proxy device, and network system using the same
JP5176973B2 (en) Communication system, communication method, and communication program
JP3520793B2 (en) Error compensation method and error compensation device using the method
JP2005217626A (en) Packet data exchange node through wireless access network, terminal and its program
EP1662704B1 (en) Monitoring system, apparatus to be monitored, monitoring apparatus and monitoring method
WO2008003217A1 (en) A method and appratus and system for transfering short message
US20060251076A1 (en) Real-time and reliable method for transporting data
JPH1070523A (en) Method and equipment for packet transmission
JP4710719B2 (en) Retransmission device when communication is abnormal
JP2004187099A (en) Communication control method, communication system and communication equipment
KR20090043724A (en) A method for serial transmitting/receiving high volume data

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111209

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20121211

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121212

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121224

R150 Certificate of patent or registration of utility model

Ref document number: 5176973

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150