JPH02100538A - Data communication method for local area network - Google Patents

Data communication method for local area network

Info

Publication number
JPH02100538A
JPH02100538A JP63253370A JP25337088A JPH02100538A JP H02100538 A JPH02100538 A JP H02100538A JP 63253370 A JP63253370 A JP 63253370A JP 25337088 A JP25337088 A JP 25337088A JP H02100538 A JPH02100538 A JP H02100538A
Authority
JP
Japan
Prior art keywords
data
sequence number
transmission
acknowledge
authorization
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
JP63253370A
Other languages
Japanese (ja)
Inventor
Motoji Nishijima
西嶋 元司
Tadahiro Morita
森田 忠宏
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.)
Japan Radio Co Ltd
Original Assignee
Japan Radio Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Japan Radio Co Ltd filed Critical Japan Radio Co Ltd
Priority to JP63253370A priority Critical patent/JPH02100538A/en
Publication of JPH02100538A publication Critical patent/JPH02100538A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify packet structure and to facilitate an acknowledge(ACK) processing by returning a sequence number itself or an acknowledge number which is selected in accordance with the sequence number from a reception side whenever packet data is communicated. CONSTITUTION:When packet data is accurately received, the acknowledge number is returned without fail. A transmission-side recognizes transmission by the reception of the acknowledge number and shifts a system to the transmission of packet data of a subsequent sequence number. Fundamentally, the acknowledge number can be only the sequence number itself, and a bit quantity and a returning time required for acknowledge are considerably shortened by the simple selection of the acknowledge signal, whereby the efficiency of a whole device is improved. When the sequence number is duplicated with the prior sequence number, only the return of acknowledge(ACK) is performed, and the system returns to a main processing by the return. Thus, a processing at the time of duplicate reception can considerably speedily be completed.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、ローカルエリアネットワークのデータ通信方
法、特に簡易型ローカルエリアネットワークにおける認
可をり通信方法の改良に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data communication method in a local area network, and in particular to an improvement in an authorized communication method in a simplified local area network.

[従来の技術] 限定された地域、例えばオフィス内、或いは特定のクロ
ーズドエリア内において、データ通信を行うローカルエ
リアネットワークが実用化されており、広汎な特定領域
内の用途に対して有効な通信システムとして確実にその
地歩を固めている。
[Prior Art] Local area networks that perform data communication in a limited area, such as an office or a specific closed area, have been put into practical use, and are effective communication systems for use within a wide range of specific areas. The company is steadily solidifying its footing.

特に、ビル内回線にパソコン、ファクシミリ或いはオフ
コンその他のOA機器を複数接続し、光ファイバなどを
用いることによって高速大容量のデータ伝送を行い、ビ
ル内相互通信によって各ワークステーションにて分散処
理を行いながらエリア内の全てのデータを共用できると
いう利点がある。
In particular, multiple computers, facsimiles, office computers, and other OA equipment are connected to the in-building line, and high-speed, large-capacity data transmission is performed using optical fibers, etc., and distributed processing is performed at each workstation through mutual communication within the building. However, it has the advantage that all data within the area can be shared.

このようなローカルエリアネットワークにおいて、各デ
ータの通信は無手順通信方法による場合が多く、このよ
うな無手順通信によれば、所望の通信データを高速度で
伝送できるという利点があるが、一方において、通信の
信頼性が低いという問題があった。
In such local area networks, each data is often communicated using a non-procedural communication method. Although such non-procedural communication has the advantage of being able to transmit the desired communication data at high speed, it also , there was a problem of low communication reliability.

即ち、通信路自体或いは通信ハードウェアの混信或いは
ノイズなどによって通信データはデータの消失或いはデ
ータ誤りを含んでしまうという問題があった。
That is, there is a problem in that communication data may be lost or contain data errors due to interference or noise in the communication channel itself or communication hardware.

従来における無手順通信方式では、このようなデータ劣
化に対処することができず、また、ローカルエリアネッ
トワークの無手順通信方式では、送信データは受信側に
おいて一旦受信バッファに収納されるが、このときの受
信バッファはその容量が制限されており、通信データが
容量を超えた場合或いは受信側での処理速度が送信速度
より遅い場合に受信バッファの容量不足を生じるという
問題があった。
Conventional non-procedural communication systems cannot deal with such data degradation, and in local area network non-procedural communication systems, transmitted data is temporarily stored in a receive buffer on the receiving side; The receiving buffer has a limited capacity, and there is a problem in that the capacity of the receiving buffer becomes insufficient when the communication data exceeds the capacity or when the processing speed on the receiving side is slower than the sending speed.

後者の受信バッファ容量に対して、送信データを所定デ
ータ長以内のパケットデータに区分けして伝送すること
は弁益である。
With respect to the latter receiving buffer capacity, it is beneficial to divide the transmission data into packet data of a predetermined data length or less and transmit the data.

しかしながら、このようなパケットデータの区分は転送
時には、各パケットデータ毎の関連性を確実に受信側に
伝え、データの再構成を誤りなく行わなければならず、
このような場合にも、従来の無手順通信方式では途中の
パケットデータの抜は或いは順番の差違いなどが生じや
すいという問題があった。    − 従来において、大規模ネットワークでのデータ通信には
、送信側と受信側とが順次シェイクハンドを行いながら
通信する方式が確立されており、各種の標準通信プロト
コルが実用化されている。
However, when dividing such packet data, during transfer, it is necessary to reliably convey the relevance of each packet data to the receiving side and reconfigure the data without error.
Even in such a case, the conventional non-procedural communication system has the problem that packet data is likely to be omitted midway or the order of packet data may be incorrect. - Conventionally, for data communication in large-scale networks, a method has been established in which the transmitting side and the receiving side communicate while sequentially performing shake hands, and various standard communication protocols have been put into practical use.

このようなシェイクハンド通信方式によれば、各送信デ
ータ毎にその内容を示すヘッダが付され、このようなヘ
ッダ付データを受信した場合に、受信側からは確実に認
可(ACIO信号が送信側に返送され、これによって各
データの正しい伝送が行われていることを確認しながら
データ通信が進行する。
According to such a shake-hand communication method, a header indicating the content is attached to each transmitted data, and when such header-attached data is received, the receiving side reliably acknowledges (the ACIO signal is sent by the transmitting side). The data communication proceeds while confirming that each data is transmitted correctly.

従って、このような標準通信プロトコルに従えば、前述
したデータ劣化を生じることなく信頼性の高い通信を行
うことができる。
Therefore, if such a standard communication protocol is followed, highly reliable communication can be performed without causing the data deterioration described above.

[発明が解決しようとする課題] しかしながら、このような標準プロトコルにおける通信
手順はそのヘッダ及び認可信号がそれ自体大量の規格化
された情報を含まなければならず、ヘッダに相当量のビ
ット領域を与えなくてはならないという問題があった。
[Problems to be Solved by the Invention] However, in the communication procedure in such a standard protocol, the header and authorization signal must themselves contain a large amount of standardized information, and the header requires a considerable amount of bit area. The problem was that I had to give.

従って、このような詳細な認可等情報を持ったヘッダを
ローカルエリアネットワークのように通信データそのも
のが比較的小容量である通信方式に利用することは必ず
しも有利でなく、通常のビル内或いは施設内ローカルエ
リアネットワークではより簡易型の通信方式が望まれて
いた。
Therefore, it is not necessarily advantageous to use a header with such detailed authorization information in a communication system where the amount of communication data itself is relatively small, such as a local area network. A simpler communication method was desired for local area networks.

本発明は上記従来の課題に鑑みなされたものであり、そ
の目的は、小規模システムから成るロカルエリアネット
ワークに最適な簡易型の通信データ認可プロトコルを備
えた通信方法を提供することにある。
The present invention has been made in view of the above-mentioned conventional problems, and its purpose is to provide a communication method equipped with a simplified communication data authorization protocol that is optimal for local area networks consisting of small-scale systems.

[課題を解決するための手段] 上記目的を達成するために、本発明は、送信データが所
定データ長以内のパケットデータに区分けされてローカ
ルエリアネットワーク内で伝送され、これによって、受
信側のデータバッファ8二は送信されるパケットデータ
長の最大値にてその容量を効率よく設定することかでき
る。
[Means for Solving the Problem] In order to achieve the above object, the present invention divides transmission data into packet data of a predetermined data length or less and transmits the divided data within a local area network. The capacity of the buffer 82 can be efficiently set according to the maximum length of packet data to be transmitted.

また、このようにパケットデータに区分けされた一連の
関連する送信データには各パケット毎に一連のシーケン
ス番号、通常の場合所定のスタト番号から始まる数字列
などで表されるシーケンス番号が付され、これによって
、受信側で各パケットデータの識別を行うことができる
In addition, a series of related transmission data divided into packet data in this way is assigned a sequence number for each packet, usually a sequence number represented by a string of numbers starting from a predetermined stat number, This allows each packet data to be identified on the receiving side.

そして、本発明によれば、各データ送信毎に受信側から
は認可信号の返送にて認可(A CK)が行われ、この
ときの認可信号は前記シーケンス番号と対応した認可番
号、通常の場合シーケンス番号そのものにて行われる。
According to the present invention, for each data transmission, the receiving side performs acknowledgment (ACK) by returning an authorization signal, and the authorization signal at this time is the authorization number corresponding to the sequence number, and in the normal case This is done on the sequence number itself.

送信側にて、所定時間認可がないときには同一データが
再送され、一方、正しく認可が返送されたときには送信
側はシーケンス番号に従った次のパケットデータを送信
する。
On the transmitting side, if there is no authorization for a predetermined period of time, the same data is retransmitted, while on the other hand, when authorization is correctly returned, the transmitting side transmits the next packet data according to the sequence number.

また、認可の返送時にデータ消失或いはデータ誤りが発
生した場合には前述した認可なし時の動作によって同一
データが再送されるが、本発明において、このような再
送データか受信側で既に正しく処理されていた場合には
、2重送りとなるので、通信速度を低下させないために
、認可信号の返送のみを行い、重複受信されたデータの
処理は省略される。
Furthermore, if data is lost or a data error occurs when an authorization is returned, the same data will be retransmitted by the operation in the case of no authorization described above, but in the present invention, such retransmitted data can be processed correctly on the receiving side. If so, double sending will occur, so in order not to reduce the communication speed, only the authorization signal is sent back, and the processing of the duplicately received data is omitted.

更に、本発明によれば、前述したシーケンス番号は1周
期以上の繰返し時にスタート番号を除去して繰り返され
、これによって、一連の関連したデータ通信の完了と次
の新たな一連の関連データとの通信を確実に区分けする
ことができる。
Furthermore, according to the present invention, the aforementioned sequence number is repeated with the start number removed during one or more repetitions, thereby indicating the completion of a series of related data communications and the subsequent new series of related data. Communication can be reliably classified.

[作用] 従って、本発明によれば、通信データは規格化されたデ
ータ長以内のパケットデータに区分けされ、パケットデ
ータの通信毎に受信側からは認可(A CK)が返送さ
れ、確実に受信側に信号が伝送されたことを確認しなが
ら一連のシーケンス番号で関連付けられたデータの通信
が継続される。
[Operation] Therefore, according to the present invention, communication data is divided into packet data within a standardized data length, and an acknowledgment (ACK) is returned from the receiving side every time packet data is communicated, thereby ensuring reliable reception. Communication of data associated with a series of sequence numbers continues while confirming that the signal has been transmitted to the other side.

本発明の認可は単にシーケンス番号そのもの或いはこれ
に対応して選択された認可番号の返送のみで行われるの
で、従来の通常の通信標準プロトコルのような大量ビッ
ト領域を必要とするヘッダが不要となり、パケット構造
が簡略化されるとともに、その認可(A CK)処理も
極めて容易になるという利点がある。
Since the authorization of the present invention is performed simply by returning the sequence number itself or the authorization number selected in accordance with the sequence number, there is no need for a header that requires a large bit area as in the conventional standard communication protocol. This has the advantage that the packet structure is simplified and the acknowledgment (ACK) process is also extremely easy.

また、本発明によれば、データ通信からの時間を計測し
、このタイムアウト時には通信が不良であったとしてデ
ータの再送が行われるが、前記通信不良か単に認可にお
ける通信不良のみである場合、受信側は同一データの重
複受信を受けることとなり、このような場合には、再び
認可のみは返送するがデータ処理は省略して処理時間の
短縮化を図っている。
Further, according to the present invention, the time from data communication is measured, and when this timeout occurs, the data is retransmitted because it is assumed that the communication is defective. The side receives the same data repeatedly, and in such a case, only the authorization is returned again, but the data processing is omitted to shorten the processing time.

更に、前述したシーケンス番号の設定は所定のスタート
番号例えば「0」から増加する数字列などとして選択さ
れ、これを1周期以上の繰返し時には前記スタート番号
を除去して、例えばスタート番号が「0」であるときに
は次の「1」から2周期目の繰り返しが行われ、これに
よって、別個のデータ群が混同を起こすことを確実に防
止している。
Further, the above-mentioned sequence number setting is selected as a predetermined start number, such as a number string increasing from "0", and when this is repeated for one cycle or more, the start number is removed, and the start number is set to "0", for example. When , the second cycle is repeated from the next "1", thereby reliably preventing confusion between separate data groups.

「実施例」 以下図面に基づいて本発明の好適な実施例を説明する。"Example" Preferred embodiments of the present invention will be described below based on the drawings.

第1図には本発明に係る通信方法が適用されたワークス
テーションの通信部の概略が示されている。
FIG. 1 schematically shows a communication section of a workstation to which a communication method according to the present invention is applied.

図において、ネットワーク100は比較的狭い施設内ロ
ーカルエリアネットワークとして組まれており、このネ
ットワーク100に対して所定のワークステーションが
任意に接続されている。
In the figure, a network 100 is set up as a relatively narrow local area network within a facility, and predetermined workstations are arbitrarily connected to this network 100.

各ワークステーションはネットワーク制御部10を含み
、この制御部10によって前記ネットワク100と接続
されている。
Each workstation includes a network controller 10 and is connected to the network 100 by this controller 10.

ネットワーク制御部10はローカルバス12を介して2
ポ一トRAM14と接続されており、この2ポ一トRA
M14はその内部に受信バッファメモリ及び送信バッフ
ァメモリの両者が異なる領域に割り付けられている。
The network control unit 10 connects the 2
It is connected to point RAM14, and this two point RAM
Inside M14, both the reception buffer memory and the transmission buffer memory are allocated to different areas.

前記ネットワーク制御部10はCPU16によってコン
トロールされており、後述するごとくネットワーク制御
部10がネットワーク10からデータを受信したときに
はCPU16に対して割込信号を供給して作用を行い、
またCPU16はネットワーク制御部10が受信動作を
していないときにアテンション信号を送ってデータ送信
を指示する。
The network control unit 10 is controlled by the CPU 16, and as described later, when the network control unit 10 receives data from the network 10, it supplies an interrupt signal to the CPU 16 and operates.
Further, the CPU 16 sends an attention signal to instruct data transmission when the network control unit 10 is not performing a receiving operation.

CPU16の制御プログラムはROM18に記憶されて
おり、両者はシステムバス20を介して接続されている
。このシステムバス20には更にRAM22が接続され
、送信データは−旦RAM22に書き込まれた後ここか
らシステムバス20を通って前記2ポートRAM14へ
送られ、また受信データは後述するごとく一旦2ポート
RAM14に記憶された後システムバス20を通ってR
AM22に伝送される。
A control program for the CPU 16 is stored in the ROM 18, and both are connected via a system bus 20. A RAM 22 is further connected to this system bus 20, and the transmitted data is first written to the RAM 22 and then sent from there to the two-port RAM 14 through the system bus 20, and the received data is once written to the two-port RAM 14 as described later. after being stored in R via the system bus 20.
It is transmitted to AM22.

前記CP01Bにはタイマ24が接続されており、後述
するタイムアウト再送制御に必要なタイムアウト時間を
計数する。
A timer 24 is connected to the CP01B, and counts the timeout time required for timeout retransmission control, which will be described later.

本発明が適用されたハードウェアは以上のような通信機
能部を有しており、以下に第2図及び第3図を用いて本
発明に係る送信及び受信の手順を詳細に説明する。
The hardware to which the present invention is applied has the communication function unit as described above, and the transmission and reception procedures according to the present invention will be explained in detail below using FIGS. 2 and 3.

第2図には送信フローチャートが示されており、CPU
16はRAM22に一旦書き込まれた送信データをシス
テムバス20によって2ポ一トRAM14上の決められ
た送信バッファ領域に書き込む(ステップ101)。
FIG. 2 shows a transmission flowchart, in which the CPU
16 writes the transmission data once written in the RAM 22 to a determined transmission buffer area on the two-point RAM 14 via the system bus 20 (step 101).

次に、CPU16はROM18の制御プログラムに従っ
た送信コマンドを2ポ一トRAM12のコマンド領域に
書き込み、更にアテンション信号をネットワーク制御部
10へ送る(102)。
Next, the CPU 16 writes a transmission command according to the control program in the ROM 18 into the command area of the two-point RAM 12, and further sends an attention signal to the network control unit 10 (102).

ネットワーク制御部10は、周知のごとく、前記アテン
ション信号の供給によって、2ポ一トRAM14に記憶
されている送信データをその送信コマンドに従ってロー
カルバス12からネットワーク100に接続し、所望の
受信ワークステーションに伝送する。
As is well known, by supplying the attention signal, the network control unit 10 connects the transmission data stored in the two-point RAM 14 from the local bus 12 to the network 100 according to the transmission command, and sends it to a desired receiving workstation. Transmit.

前記アテンション信号かCPU16から出力され送信が
完了すると、CPU16はタイマ24をスタートさせ所
定時間の計数を開始する(ステップ103)。
When the attention signal is output from the CPU 16 and the transmission is completed, the CPU 16 starts the timer 24 and starts counting a predetermined time (step 103).

ネットワーク制御部10による送信中に、ネットワーク
100からこのワークステーションを受信ターミナルと
して指定した受信信号が入力されると、ネットワーク制
御部10は直ちに割込信号をCPU16に与える(ステ
ップ104)。
When a reception signal designating this workstation as a receiving terminal is input from the network 100 during transmission by the network control section 10, the network control section 10 immediately gives an interrupt signal to the CPU 16 (step 104).

この受信割込信号が供給されると、CPU16はこの受
信データを2ポ一トRAM14の受信領域に記憶する受
信モードを実行しくステップ105)、この受信フロー
チャートは次の第3図にて詳細に説明する。
When this reception interrupt signal is supplied, the CPU 16 executes a reception mode in which the reception data is stored in the reception area of the 2-point RAM 14 (step 105), and this reception flowchart is detailed in the following FIG. 3. explain.

一方、ステップ104にて受信割込がない場合、ステッ
プ106で示されるタイムアウトの判定が行われ、この
間に受信側からの認可(A CK)の返送を待つ。
On the other hand, if there is no reception interrupt in step 104, a timeout determination is performed in step 106, and during this time, an acknowledgment (ACK) from the receiving side is awaited.

第2図のフローチャートにおいて、認可(ACK)の受
信は通常の受信データと同様であり、ステップ104に
おいて受信割込有りと判定され、ステップ105の受信
モード中の認可(A CK)受信モードを実行し主処理
に戻る。
In the flowchart of FIG. 2, reception of acknowledgment (ACK) is the same as normal reception data, and in step 104 it is determined that there is a reception interrupt, and in step 105, the acknowledgment (ACK) reception mode in the reception mode is executed. and returns to main processing.

一方、データを送信してから所定のタイムアウト時間が
経過しても認可が戻らない場合には、ステップ106か
らステップ107にて一旦タイマ24のタイマ解除を行
った後に再びステップ101に戻り、同一のデータ、即
ち2ポ一トRAMI4に記憶されている送信データの再
送が行われ、これを繰り返す。
On the other hand, if the authorization is not returned even after the predetermined timeout period has elapsed after transmitting the data, the timer 24 is temporarily canceled in steps 106 and 107, and then the process returns to step 101 and the same process is performed. The data, ie, the transmission data stored in the 2-point RAMI 4, is retransmitted and this process is repeated.

図には詳細に示していないが、再送が所定回数繰り返さ
れても依然として認可(A CK)が得られないときに
は、ハードウェアの永久的な故障その他と判定し、送信
の停止が掛けられる。
Although not shown in detail in the figure, if acknowledgment (ACK) is still not obtained even after retransmission is repeated a predetermined number of times, it is determined that there is a permanent hardware failure or the like, and transmission is stopped.

以上のようにして、この送信モードによれば、送信から
所定時間の計測が常に行われており、各パケットデータ
の受信確認がこのタイムアウト時間内に行われたか否か
が常に判定され、認可(八〇K)がないときにはデータ
か再送される。
As described above, according to this transmission mode, the predetermined time from transmission is always measured, and it is always determined whether or not the reception confirmation of each packet data has been performed within this timeout period, and the authorization ( 80K), the data will be retransmitted.

第4図には前述した送信データの一例が示されており、
一連の関連する送信データは所定データ長以内のパケッ
トデータに区分けされており、各パケットデータにはヘ
ッダが付加されている。
FIG. 4 shows an example of the transmission data mentioned above.
A series of related transmission data is divided into packet data of a predetermined data length or less, and a header is added to each packet data.

実施例におけるヘッダはデータ長、シーケンス番号及び
データ/ACKビットが含まれ、データ長はパケットデ
ータの実効長を示し、シーケンス番号は一連の関連する
送信データに対するパケットデータの順番を示す一連の
番号として設定され、例えば「0」のスタート番号から
順次rlJ、「2]、「3」としてrloojまで続く
第6図に示されるごときシーケンス番号が設定される。
The header in an embodiment includes a data length, a sequence number, and a data/ACK bit, where the data length indicates the effective length of the packet data, and the sequence number is a series of numbers indicating the order of the packet data relative to a series of related transmitted data. For example, sequence numbers as shown in FIG. 6 are set, starting from the start number "0" and continuing to rlooj as rlJ, "2", and "3".

また、データ/ A CKビットは、この送信データが
データであるか単なる認可であるかを判定するためのビ
ットであり、実施例においてデータの場合には「0」が
、またACKの場合には「1」が用いられている。
Further, the data/A CK bit is a bit for determining whether this transmission data is data or just an authorization, and in the embodiment, it is set to "0" in the case of data, and is set to "0" in the case of ACK. "1" is used.

以上のようにして、第4図のごとき送信データが送られ
れば、受信側ではそのヘッダ、特にシーケンス番号を読
み取って区分けされたパケットデータを元のデータに再
構成することが可能である。
As described above, when transmission data as shown in FIG. 4 is sent, the receiving side can read the header, especially the sequence number, and reconstruct the divided packet data into the original data.

第3図には本発明の通信方法における受信フロチャート
が示されており、前述したごとく、この受信フローチャ
ートにはデータ受信及び認可受信が含まれ、更にデータ
受信時の認可返送が含まれる。
FIG. 3 shows a reception flowchart in the communication method of the present invention, and as described above, this reception flowchart includes data reception and authorization reception, and further includes authorization return upon data reception.

データ受信時にはタイムアウト再送制御は不要であり、
ステップ201にてタイマ24が解除される。
Timeout retransmission control is not required when receiving data,
At step 201, the timer 24 is canceled.

次に、ネットワーク制御部10はネットワーク100か
ら供給された受信信号をローカルバス12を介して2ボ
一トRAM14の受信領域に記憶する(ステップ202
)。
Next, the network control unit 10 stores the received signal supplied from the network 100 in the reception area of the 2-bot RAM 14 via the local bus 12 (step 202
).

そして、CPU16はこの信号がデータであるか認可(
A CK)であるかをヘッダのデータ/ACKビットに
よって判定する(ステップ203)。
Then, the CPU 16 determines whether this signal is data or not (
ACK) based on the header data/ACK bit (step 203).

送信信号がデータである場合、次にヘッダのシーケンス
番号が読み取られ(ステップ204)、その直前に処理
して受信データのシーケンス番号と異なる場合、これを
新たに送られた送信データとして認可(A CK)を送
信するとともに2ポー1−RAM14の受信データを処
理しくステップ205)、主処理に戻る。
If the transmitted signal is data, then the sequence number of the header is read (step 204), and if it is processed immediately before and differs from the sequence number of the received data, it is authorized (A) as newly sent transmitted data. CK) and processes the received data in the 2-port 1-RAM 14 (step 205), returning to main processing.

本発明における簡易型ローカルエリアネットワークでの
通信方法では、通常の場合、一連の関連する送信データ
はシーケンス番号順に受信されるが、ネットワークが極
めて混み合っているような場合には、パケットデータの
送信が異なるルートを通ることもあり、必ずしも受信デ
ータのシーケンス番号は順番通りとならない場合があり
、このような場合においても、受信側でのシーケンス番
号の読取りは後のパケットデータの再構成に極めて有効
であり、また前述したような順不同データの受信時にも
正しい受信状態では同一のシーケンス番号がくることは
ないので、前記ステップ204のシーケンス番号判定に
て異なるシーケンス番号の受信でこれを正常データと判
定することが可能である。
In the communication method in a simplified local area network according to the present invention, normally a series of related transmission data is received in the order of sequence numbers, but when the network is extremely congested, packet data transmission The sequence numbers of the received data may not always be in the correct order because the packets may take different routes. Even in such cases, reading the sequence numbers on the receiving side is extremely effective for later reassembling the packet data. Also, even when receiving out-of-order data as described above, the same sequence number will not come in the correct reception state, so in the sequence number judgment in step 204, if a different sequence number is received, this is judged as normal data. It is possible to do so.

第5図には認可(A CK)信号の一例が示されており
、この認可信号は本発明において主として・シーケンス
番号と対応した認可番号を含む。
FIG. 5 shows an example of an acknowledgment (ACK) signal, which in the present invention mainly includes an acknowledgment number corresponding to a sequence number.

実施例における認可信号は送られてきた送信データのヘ
ッダと同一のデータを認可信号として用いており、但し
このときのデータ/ACKビットは勿論認111(AC
K)を示す「1」に切り替えられている。
The authorization signal in the embodiment uses the same data as the header of the transmitted data, but the data/ACK bit at this time is of course the authorization 111 (AC
It has been switched to "1" indicating K).

従って、認可信号は、第5図のごとく送信データのデー
タ長とシーケンス番号そして「1」のデータ/ A C
Kビットを含む。
Therefore, the authorization signal consists of the data length and sequence number of the transmission data, and the data "1" as shown in Figure 5.
Contains K bits.

本発明において、この認可番号は必ずしも送信されたシ
ーケンス番号と同一である必要はないが、シーケンス番
号を例えば「+1」とする密接な関連性を持った番号を
選択することが好ましい。
In the present invention, this authorization number does not necessarily have to be the same as the transmitted sequence number, but it is preferable to select a closely related number, such as a sequence number of "+1".

以上のようにして、本発明によれば、正しくパケットデ
ータが受信された時には必ず認可信号が返送され、送信
側では、この認可信号の受信によって送信を確認し、次
のシーケンス番号のパケットデータの送信に移行するこ
とができ、極めて信頼性の高い通信が確保される。
As described above, according to the present invention, an authorization signal is always returned when packet data is correctly received, and the transmitting side confirms the transmission by receiving this authorization signal, and then transmits the packet data of the next sequence number. transmission, ensuring extremely reliable communication.

また、本発明の認可信号は、第5図に示されるごとく、
極めて単純な構成から成り、特に基本的にはシーケンス
番号そのもののみでよく、このような単純な認可信号の
選択により、認可に要するビット容量及び返送時間をご
く短くし、装置全体の効率を高めることができる。
Further, the authorization signal of the present invention is as shown in FIG.
It has an extremely simple configuration, in particular, basically only the sequence number itself is required, and by selecting such a simple authorization signal, the bit capacity required for authorization and the return time are extremely short, increasing the efficiency of the entire device. Can be done.

一方、ステップ204にてシーケンス番号がそれ以前の
シーケンス番号と重複した場合、ステップ206におい
て、認可(A CK)の返送のみが行われ、この返送に
よって主処理に戻る。
On the other hand, if the sequence number overlaps with the previous sequence number in step 204, only an acknowledgment (ACK) is returned in step 206, and the process returns to the main process.

即ち、既に受信したシーケンス番号と同一のシーケンス
番号に対しては何らかの理由、例えば認可(ACK)信
号の返送が通信回線の不良によって送信側に届かなかっ
たような場合が考えられ、このとき送信側は前述したタ
イムアウト再送処理により同一データを再び送ってくる
。従って、このようなデータ再送は既に受信側では受信
処理が完了したデータであり、単なる認可信号のみの返
送不良であるので、この場合には認可(A CK)を返
送するのみで送信側に確認を与えるだけで処理を簡略化
する。
In other words, for a sequence number that is the same as a sequence number that has already been received, there may be some reason, such as a case where the return of an acknowledgment (ACK) signal did not reach the sending side due to a faulty communication line, and in this case, the sending side sends the same data again through the timeout retransmission process described above. Therefore, such retransmission of data is data that has already been received and processed on the receiving side, and is simply a failure to return an authorization signal. The process is simplified by simply giving

従って、本発明の方法によれば、重複受信時の処理を極
めて迅速に完了させることが可能となる。
Therefore, according to the method of the present invention, it is possible to complete processing at the time of duplicate reception extremely quickly.

以−1ユによってデータの受信が理解されるが、この受
信信号が認rl(ACK)であった場合の処理を以下に
説明する。
The reception of data is understood from the above-1, and the processing when this received signal is an acknowledgment rl (ACK) will be described below.

ステップ203において受信信号が認可(ACK)であ
る場合、ステップ207によって送信データのシーケン
ス番号との一致或いは不一致が判定される。通常の場合
、認可(A CK)は、前述した第5図で説明したごと
く送信シーケンス番号と同一のシーケンス番号が返送さ
れ、このときにはそのまま送信か正常であったとして主
処理に戻る。
If the received signal is an acknowledgment (ACK) in step 203, it is determined in step 207 whether it matches or does not match the sequence number of the transmitted data. Normally, the same sequence number as the transmission sequence number is returned as the acknowledgment (ACK), as explained in FIG.

一方、ステップ207において、認可のシーケンス番号
が送信シーケンス番号と異なる場合には何らかの原因で
送信不良があったものと判定し、ステップ208におい
てデータの再送処理が行われる。
On the other hand, in step 207, if the authorization sequence number is different from the transmission sequence number, it is determined that there has been a transmission failure for some reason, and data retransmission processing is performed in step 208.

この再送処理も所定回数行って正常に復帰しない場合に
は送信そのものに停止を与えるこ・とが好ましい。
It is preferable to perform this retransmission process a predetermined number of times and, if normality does not return, to stop the transmission itself.

以上のようにしてデータ或いは認可(ACK)の受信モ
ードが理解されるが、次に、本発明におけるシーケンス
番号の設定を第6図に基づいて説明する。
The reception mode of data or acknowledgment (ACK) can be understood as described above.Next, the setting of sequence numbers in the present invention will be explained based on FIG. 6.

前述したごとく、シーケンス番号は実施例においてスタ
ート番号「0」から順次増加する数字列で示されており
、第6図ではrl 00Jが最大値となる。従って、こ
の例によれば、一連の関連する通信データは101個の
パケッデータに区分けすることが可能である。
As mentioned above, in the embodiment, the sequence number is shown as a sequence of numbers that increase sequentially from the start number "0", and in FIG. 6, rl 00J is the maximum value. Therefore, according to this example, a series of related communication data can be divided into 101 packet data.

しかしながら、送信データがこれより大きい場合、「1
00」まで1周期用いたシーケンス番号は再び繰り返し
て用いられなければならず、本発明においては、この1
周期以上の繰返し時には、スタート番号を除去して繰り
返され、即ち第6図に矢印で示されるごとく2周期以上
に対するスタート番号は「]」とされる。
However, if the transmitted data is larger than this, “1
The sequence number used for one cycle up to ``00'' must be used again, and in the present invention, this number
When repeating for more than one period, the start number is removed and repeated, that is, as shown by the arrow in FIG. 6, the start number for two or more periods is set to "]".

従って、このような繰返しを用いれば、いくらでも長い
送信データを本発明のごとき簡易型の通信方式において
も処理することが可能となる。
Therefore, by using such repetition, it becomes possible to process transmission data of any length even in a simple communication system such as the present invention.

勿論、前述した第3図のステップ204において受信信
号のシーケンス番号がそれ以前と同じか否かが判定され
ているが、本発明においてこの繰返しによるシーケンス
番号の一致は100回毎の一致となり、正常な通信路の
使用によれば、どんなに混雑した場合においても100
回毎のシーケンス番号の相違は発生することがなく、こ
のような繰返しとルートの長短によるシーケンス番号の
前後とは確実に識別可能である。
Of course, in step 204 of FIG. 3 mentioned above, it is determined whether the sequence number of the received signal is the same as before, but in the present invention, the sequence numbers match every 100 times due to this repetition, and it is not normal. By using a reliable communication channel, even in the most congested conditions, 100
There is no difference in the sequence number from time to time, and it is possible to reliably identify the previous and subsequent sequence numbers due to such repetition and the length and shortness of the route.

以上のような、繰返しシーケンス番号の選択は、次のよ
うな効果を生む。即ち、繰返しを全シーケンス番号に施
して、rl 00Jから例えばスタト番号「0」に戻る
と、異なる通信データを処理したときとの区別ができな
いおそれがある。
The selection of repeat sequence numbers as described above produces the following effects. That is, if the repetition is applied to all sequence numbers and returns from rl 00J to, for example, the stat number "0", there is a possibility that it will not be possible to distinguish between processing different communication data.

即ち、第1の送信データが1周期以上の長さとなり、そ
の最終データに「0」なるシーケンス番号が付されたと
仮定すると、この次に送られる新たな送信データは必ず
スタート番号「0」からそのシーケンス番号を開始し、
この結果、受信側では2個の同一のシーケンス番号即ち
「0」が重複受信されることとなる。
In other words, assuming that the first transmission data has a length of one cycle or more and that the final data is assigned a sequence number of "0", the next new transmission data will always start from the start number "0". start that sequence number,
As a result, the receiving side receives two identical sequence numbers, ie, "0" in duplicate.

そして、本発明によれば、このような重複受信は、前述
した第3図のシーケンス番号判定ステップ204にて2
ffiデータとして認可(A CK)の送信のみでデー
タ処理を省略するので、この新たな送信データのスター
トパケットデータが受信できないという結果を生むこと
となり、本発明による第6図に示したシーケンス番号の
繰返しはこのような事態を確実に防止することかできる
According to the present invention, such duplicate reception is handled by 2 in the sequence number determination step 204 of FIG.
Since data processing is omitted by only transmitting an acknowledgment (ACK) as ffi data, the result is that the start packet data of this new transmission data cannot be received, and the sequence number shown in FIG. Repetition can definitely prevent such situations.

[発明の効果] 以上説明したように、本発明によれば、ローカルエリア
ネットワークに対して簡易型の通信ブロトコルを与え、
データ送信時にシェイクハンドを行いながら、それに要
するビット長及び処理時間を極めて短縮した簡便な且つ
信頼性の高い通信を確保することが可能となる。
[Effects of the Invention] As explained above, according to the present invention, a simplified communication protocol is provided to a local area network,
While shaking hands during data transmission, it is possible to ensure simple and highly reliable communication with extremely shortened bit length and processing time required.

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

第1図は本発明に係る通信方法が適用されたワークステ
ーションの送受信部の一例を示す概略構成図、 第2図は本発明の送信モードを示すフローチャート図、 第3図は本発明の受信モードを示すフローチャート図、 第4図は本発明の送信データの一例を示す説明図、 第5図は本発明の認可信号の一例を示す説明図、第6図
は本発明のシーケンス番号の設定の一例を示す説明図で
ある。 PU ネットワーク
FIG. 1 is a schematic configuration diagram showing an example of a transmitting/receiving section of a workstation to which the communication method according to the present invention is applied. FIG. 2 is a flowchart showing the transmitting mode of the present invention. FIG. 3 is a receiving mode of the present invention. FIG. 4 is an explanatory diagram showing an example of transmission data of the present invention; FIG. 5 is an explanatory diagram showing an example of an authorization signal of the present invention; FIG. 6 is an example of sequence number setting of the present invention. FIG. PU network

Claims (1)

【特許請求の範囲】 一連の関連する送信データを所定データ長以内のパケッ
トデータに区分けして送信するローカルエリアネットワ
ークのデータ通信方法において、前記各パケットデータ
には一連のシーケンス番号が付され、 データ受信の認可は前記シーケンス番号と対応した認可
番号の返送にて行われ、 所定時間認可返送がないときには同一データが再送され
、 受信側で同一データが重複受信されたときには後データ
は処理することなく認可返送処理のみ行い、 前記シーケンス番号は1周期以上の繰返し時にスタート
番号を除去して繰り返されることを特徴とするローカル
エリアネットワークのデータ通信方法。
[Claims] In a local area network data communication method in which a series of related transmission data is divided into packet data of a predetermined data length or less and transmitted, each packet data is assigned a series of sequence numbers, Reception authorization is performed by returning an authorization number that corresponds to the sequence number, and if no authorization is returned for a predetermined period of time, the same data is retransmitted, and if the same data is received twice on the receiving side, the subsequent data is not processed. A data communication method for a local area network, characterized in that only an authorization return process is performed, and the sequence number is repeated by removing a start number when repeating one cycle or more.
JP63253370A 1988-10-07 1988-10-07 Data communication method for local area network Pending JPH02100538A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63253370A JPH02100538A (en) 1988-10-07 1988-10-07 Data communication method for local area network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63253370A JPH02100538A (en) 1988-10-07 1988-10-07 Data communication method for local area network

Publications (1)

Publication Number Publication Date
JPH02100538A true JPH02100538A (en) 1990-04-12

Family

ID=17250409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63253370A Pending JPH02100538A (en) 1988-10-07 1988-10-07 Data communication method for local area network

Country Status (1)

Country Link
JP (1) JPH02100538A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0637804A (en) * 1992-05-15 1994-02-10 Internatl Business Mach Corp <Ibm> System and method for transmission of data frame
JP2002135233A (en) * 2000-09-12 2002-05-10 Lucent Technol Inc Method and apparatus for asynchronous incremental redundancy reception in communication system
JP2006252555A (en) * 2005-03-08 2006-09-21 Microsoft Corp Reliable request response messaging via request response transport
WO2007052719A1 (en) * 2005-11-01 2007-05-10 Ntt Docomo, Inc. Retransmission control method and receiving-end apparatus
JP2008174231A (en) * 2001-08-09 2008-07-31 Virgin Atlantic Airways Ltd Seating system and passenger accommodation unit for vehicle
WO2010061482A1 (en) * 2008-11-28 2010-06-03 株式会社アドバンテスト Testing apparatus, serial transmission system, program, and recording medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0637804A (en) * 1992-05-15 1994-02-10 Internatl Business Mach Corp <Ibm> System and method for transmission of data frame
JP2002135233A (en) * 2000-09-12 2002-05-10 Lucent Technol Inc Method and apparatus for asynchronous incremental redundancy reception in communication system
JP2008174231A (en) * 2001-08-09 2008-07-31 Virgin Atlantic Airways Ltd Seating system and passenger accommodation unit for vehicle
JP2006252555A (en) * 2005-03-08 2006-09-21 Microsoft Corp Reliable request response messaging via request response transport
WO2007052719A1 (en) * 2005-11-01 2007-05-10 Ntt Docomo, Inc. Retransmission control method and receiving-end apparatus
JPWO2007052719A1 (en) * 2005-11-01 2009-04-30 株式会社エヌ・ティ・ティ・ドコモ Retransmission control method and receiving apparatus
WO2010061482A1 (en) * 2008-11-28 2010-06-03 株式会社アドバンテスト Testing apparatus, serial transmission system, program, and recording medium

Similar Documents

Publication Publication Date Title
US4747100A (en) Token passing network utilizing active node table
US5301186A (en) High speed transmission line interface
US5856972A (en) Duplicate message detection method and apparatus
US4439859A (en) Method and system for retransmitting incorrectly received numbered frames in a data transmission system
EP0365673B1 (en) Peer-to-peer register exchange controller for plcs
JP2503086B2 (en) Data link control method
US4750109A (en) Method and system for expediting multi-packet messages in a computer network
EP0076880A1 (en) A local area contention network data communication system
AU645999B2 (en) Networks
JPS62164335A (en) Network interface device for coupling digital data with bus bar network
US4509117A (en) Communications network access rights arbitration
JP2986798B2 (en) Data transmission control method and data communication device
JPH02100538A (en) Data communication method for local area network
JP3516451B2 (en) Communication bus systems and stations used in such systems
JPS63246055A (en) Packet transmitter-receiver
JPH0496534A (en) Selection retransmission system for hold
JPS58219856A (en) Data communication system
JP2000253098A (en) Signal processor and signal processing system
JP2644558B2 (en) Test apparatus and test method for communication device
JPH01276939A (en) Packet transmission and reception system in local area network system
JPH0344704B2 (en)
JPH0758999B2 (en) How to match clocks in communication network systems
JPH0256867B2 (en)
JPS63237635A (en) Data transmission system
JPH043545A (en) Multiplex transmission system