JPH04280529A - Data communication system - Google Patents
Data communication systemInfo
- Publication number
- JPH04280529A JPH04280529A JP3043285A JP4328591A JPH04280529A JP H04280529 A JPH04280529 A JP H04280529A JP 3043285 A JP3043285 A JP 3043285A JP 4328591 A JP4328591 A JP 4328591A JP H04280529 A JPH04280529 A JP H04280529A
- Authority
- JP
- Japan
- Prior art keywords
- station
- data
- frame
- exclusive
- transmission
- 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.)
- Granted
Links
- 238000004891 communication Methods 0.000 title claims description 51
- 230000005540 biological transmission Effects 0.000 claims description 92
- 238000012545 processing Methods 0.000 claims description 14
- 238000000034 method Methods 0.000 claims description 13
- 238000010586 diagram Methods 0.000 description 9
- 238000013500 data storage Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
Landscapes
- Small-Scale Networks (AREA)
- Communication Control (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は、複数の伝送路を有する
ネットワークにおけるデータ通信方式に係り、特に複数
のフレームに分けて一連のデータを2局間で排他的に通
信するデータ通信方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data communication system in a network having a plurality of transmission paths, and more particularly to a data communication system in which a series of data is divided into a plurality of frames and is exclusively communicated between two stations.
【0002】0002
【従来の技術】LAN(ローカルエリアネットワーク:
Local AreaNetwork)等のようなネッ
トワークにおいては、ワークステーションやパーソナル
コンピュータ等の複数の装置(以下、ステーションと記
述する)が1本の伝送路(ツィストペア線、同軸ケーブ
ル、光ファイバ等から成る)上に接続される。また、ス
テーションの数が多い、大規模なLANにおいては、複
数の伝送路がリピータ等を介して互いに接続されて、L
ANを構成する。[Prior Art] LAN (Local Area Network:
In networks such as local area networks, multiple devices (hereinafter referred to as stations) such as workstations and personal computers are connected over a single transmission line (consisting of twisted pair wires, coaxial cables, optical fibers, etc.). Connected. In addition, in a large-scale LAN with a large number of stations, multiple transmission paths are connected to each other via repeaters, etc.
Configure AN.
【0003】ところで、上記のようなコンピュータネッ
トワークにおいて、同一または異なる伝送路上に接続さ
れたステーション(局)間でデータ通信を行う場合、伝
送フレームのデータ数の制約や、送信先である相手ステ
ーションの受信バッファのサイズ等の制約から、1つの
データを複数のフレームに分けて、複数回通信しなけれ
ばならない場合がある。このとき、そのデータが、各ス
テーション間での共有データであるような場合、そのデ
ータの一連の通信を行っている間、別のステーションか
らの通信を排除しなければならない。By the way, in the above-mentioned computer network, when data communication is performed between stations connected on the same or different transmission paths, there are restrictions on the number of data in a transmission frame, and there are restrictions on the number of data transmitted from the destination station. Due to constraints such as the size of the receive buffer, one piece of data may have to be divided into multiple frames and communicated multiple times. At this time, if the data is shared data between stations, communications from other stations must be excluded while a series of communications of that data is being performed.
【0004】このような場合、従来は受信側のステーシ
ョンで一連の通信データの一部であるか否かを判断し、
一連の通信データの一部であればそのデータの送信元の
ステーションを、上記通信データの伝送路種別(送信元
のステーションが接続されている伝送路を示す情報)、
ステーション番号(送信元のステーションに割当られた
識別番号)等をもとに認識し、以後上記伝送路種別及び
ステーション番号等が一致する上記送信元のステーショ
ンからの送信データだけを処理し、他のステーションか
らの送信データは受信しても、そのデータは受付ないよ
うにしていた。In such cases, conventionally, the receiving station determines whether or not the data is part of a series of communication data.
If it is part of a series of communication data, the source station of the data, the transmission path type of the communication data (information indicating the transmission path to which the source station is connected),
It is recognized based on the station number (identification number assigned to the source station), etc., and from then on, only the transmitted data from the source station with the same transmission line type and station number, etc. is processed, and other Even if the data transmitted from the station was received, the data was not accepted.
【0005】このようなデータ通信の例を、図5(A)
,(B) を参照しながら説明する。まず、図5(A
) に示すような1つの伝送路21に4個のステーショ
ンA,B,C,及びDが接続されているネットワークに
おいて、ステーションA,B,またはDからステーショ
ンCに対しデータを送信するとき、ステーションCが受
信データがステーションA,B,またはDのいずれのス
テーションが送信したものであるかを認識できるために
は、送信元のステーション番号があればよい。An example of such data communication is shown in FIG.
, (B). First, Figure 5 (A
) In a network where four stations A, B, C, and D are connected to one transmission path 21 as shown in FIG. In order for C to be able to recognize which station A, B, or D transmitted the received data, it only needs to know the station number of the transmitter.
【0006】また、図5(B) に示すような2つの伝
送路31,32があり、ステーションCが上記2つの伝
送路31,32に接続され、ステーションA,Bが伝送
路31にステーションDが伝送路32に接続されている
ネットワークにおいては、ステーションDとステーショ
ンA,Bとでは接続されている伝送路が異なるため、ス
テーションDにステーションAまたはBと同一のステー
ション番号が割当られている場合がある。したがって、
送信元のステーションが接続している伝送路31または
32を識別するための伝送路種別情報が必要である。こ
のため、ステーションAからステーションCに対し、一
連のデータを複数回にわたって送信するとき、ステーシ
ョンCがステーションA以外の他のステーションからの
通信を排他したい場合は、ステーションAのステーショ
ン番号とステーションAが接続されている伝送路を示す
伝送路種別の2つの情報を認識して、ステーションBま
たはDからの通信を受付ないようにしていた。[0006] Furthermore, there are two transmission lines 31 and 32 as shown in FIG. In a network where station D is connected to transmission path 32, station D and stations A and B are connected to different transmission paths, so if station D is assigned the same station number as station A or B, There is. therefore,
Transmission path type information is required to identify the transmission path 31 or 32 to which the source station is connected. Therefore, when station A sends a series of data to station C multiple times, if station C wants to exclude communications from stations other than station A, the station number of station A and station A Two pieces of information, the transmission path type indicating the connected transmission path, were recognized and communications from stations B or D were not accepted.
【0007】[0007]
【発明が解決しようとする課題】上述したように、従来
のデータ通信方式においては、データを送信してきたス
テーションを認識するために、伝送路種別及びステーシ
ョン番号を用いていたため、図6に示すような複数の伝
送路41,42,43,44及び45が接続されている
ネットワークにおいては、上記伝送種別と上記ステーシ
ョン番号を用いて受信データの伝送経路をも認識できる
ようにする必要がある。そのため、伝送データに送信元
のステーションの伝送路種別(送信元のステーションが
接続している伝送路を示す情報)及びステーション番号
だけでなく、伝送データを中継した各伝送路を示す伝送
路種別、及び中継ステーションのステーション番号等の
情報が必要になり、情報量が非常に多くなる。[Problems to be Solved by the Invention] As mentioned above, in the conventional data communication system, the transmission path type and station number are used to recognize the station that has transmitted data. In a network in which a plurality of transmission lines 41, 42, 43, 44, and 45 are connected, it is necessary to also recognize the transmission route of the received data using the transmission type and the station number. Therefore, the transmission data includes not only the transmission path type of the source station (information indicating the transmission path to which the source station is connected) and station number, but also the transmission path type indicating each transmission path that relayed the transmission data, In addition, information such as the station number of the relay station is required, and the amount of information becomes extremely large.
【0008】例えば、図6において太線で示すように、
ステーションAからステーションKに対してデータを送
信するときは、その送信データは■ステーションA■伝
送路41■ステーションB■伝送路42■ステーション
F■伝送路45■ステーションJ■伝送路46を経由し
てステーションKへ送られるため上記■〜■の情報がス
テーションKに通知されなければならない。For example, as shown by the thick line in FIG.
When transmitting data from station A to station K, the transmitted data is sent via ■Station A■Transmission line 41■Station B■Transmission line 42■Station F■Transmission line 45■Station J■Transmission line 46 In order to send the information to station K, the above information ① to ② must be notified to station K.
【0009】さらに、新たに伝送路が追加されたときに
は、その伝送路を示す伝送路種別を認識する処理を追加
しなければならない。このように、従来の伝送路種別と
ステーション番号のみを用いた従来のデータ通信方式で
は、伝送路が複数接続されたネットワークにおいて一連
のデータを複数回に分けて送信する場合、情報量が多く
なり通信効率が低下すると共に処理に要する時間も長く
なるという欠点があった。また、ネットワークにおいて
新たに伝送路が追加された場合には、その伝送路を認識
する処理を追加しなければならずシステムを拡張する場
合不便であった。Furthermore, when a new transmission path is added, it is necessary to add processing for recognizing the transmission path type indicating the new transmission path. In this way, with the conventional data communication method that uses only the conventional transmission path type and station number, the amount of information increases when a series of data is divided into multiple transmissions in a network where multiple transmission paths are connected. This method has disadvantages in that communication efficiency decreases and the time required for processing increases. Furthermore, when a new transmission path is added to the network, processing for recognizing the transmission path must be added, which is inconvenient when expanding the system.
【0010】本発明は、複数の伝送路を有するネットワ
ークにおいて、任意の2つの局(ステーション)間での
排他的な一連の通信データの連続通信を、少ない情報量
のフレームを用いながら受信局(受信側の局)が目的の
フレームを容易かつ高速に認識できるようにして行える
データ通信方式を実現することを目的とする。[0010] The present invention enables continuous communication of an exclusive series of communication data between arbitrary two stations in a network having a plurality of transmission paths, while using frames with a small amount of information. The purpose of the present invention is to realize a data communication system that allows a receiving station (station on the receiving side) to easily and quickly recognize a target frame.
【0011】[0011]
【課題を解決するための手段】図1は、本発明の原理説
明図である。本発明は、複数の伝送路を有するネットワ
ークにおける各局間でのデータ通信方式において、同図
(A) に示すように任意の送信局1から排他的なデー
タ通信の開始を指示するコマンド2を受信した受信局3
は、同図(C) に示すように上記送信局1から上記排
他的なデータ通信の終了を指示するコマンド4を受信す
るまで、同図(B) に示すように排他用データ5aが
セットされたフレーム5のみについてデータ処理を行う
。[Means for Solving the Problems] FIG. 1 is a diagram illustrating the principle of the present invention. The present invention is a data communication system between stations in a network having a plurality of transmission paths, in which a command 2 instructing the start of exclusive data communication is received from an arbitrary transmitting station 1, as shown in FIG. receiving station 3
The exclusive data 5a is set as shown in (B) of the same figure until command 4 instructing the termination of the exclusive data communication is received from the transmitting station 1 as shown in (C) of the same figure. Data processing is performed only on frame 5.
【0012】この場合、上記排他用データ5aのコード
指定は、例えば請求項2記載のように受信局3側で行う
。In this case, the code designation of the exclusive data 5a is performed, for example, on the receiving station 3 side as described in claim 2.
【0013】[0013]
【作用】任意の局(受信局)3は、他の任意の局(送信
局)1から排他的なデータ通信の開始を指示するコマン
ド2を受信すると、以後フレームを受信する毎に、その
受信フレームに排他用データ5aがセットされているか
否かを判別し、排他用データ5aがセットされているフ
レームのみを受け付けてデータ処理し、排他用データ5
aがセットされていないフレームについてはデータ処理
を行わない動作を、上記送信局1から排他的なデータ通
信の終了を指示するコマンド5を受信するまで継続する
。[Operation] When an arbitrary station (receiving station) 3 receives a command 2 instructing the start of exclusive data communication from another arbitrary station (transmitting station) 1, the received It is determined whether or not the exclusive data 5a is set in the frame, and only the frames in which the exclusive data 5a is set are accepted and data processed, and the exclusive data 5a is set in the frame.
The operation of not performing data processing for frames for which a is not set is continued until command 5 is received from the transmitting station 1 to instruct the end of exclusive data communication.
【0014】従って、上記送信局1から受信局3へ、他
の局からの通信を排除して、複数のフレームに分けて一
連の通信データを連続して排他的に送信することができ
る。Therefore, it is possible to continuously and exclusively transmit a series of communication data divided into a plurality of frames from the transmitting station 1 to the receiving station 3, excluding communications from other stations.
【0015】[0015]
【実施例】以下、図面を参照しながら本発明の一実施例
を説明する。図2は、実施例を適用したネットワークの
システム構成図であり、図3、図4はそれぞれ各ステー
ション(局)間で通信する送信フレーム(送信データ)
、応答フレーム(応答データ)のフォーマットを示す図
である。DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 2 is a system configuration diagram of a network to which the embodiment is applied, and FIGS. 3 and 4 respectively show transmission frames (transmission data) communicated between each station.
, is a diagram showing the format of a response frame (response data).
【0016】図2に示すネットワークは、伝送路101
,102、及び103を有し、伝送路101にはステー
ションA,Bが接続され、伝送路102にはステーショ
ンB,Cが、そして伝送路103にはステーションB,
D,Eが接続されている。The network shown in FIG. 2 has a transmission path 101
, 102, and 103, stations A and B are connected to the transmission line 101, stations B and C are connected to the transmission line 102, and stations B, B, and C are connected to the transmission line 103.
D and E are connected.
【0017】上記構成のネットワークにおいて、ステー
ションA,B,C,Dは、上記各伝送路101,102
,103を介しステーションEと通信を行う。これらの
通信におけるステーションEへの処理通知は、図3に示
す送信フレームの送信データ部220内のコマンド22
1によって行われる。In the network configured as described above, stations A, B, C, and D are connected to each of the transmission lines 101 and 102.
, 103 to communicate with station E. Processing notifications to station E in these communications are made using the command 22 in the transmission data section 220 of the transmission frame shown in FIG.
1.
【0018】このコマンド221は、受信側ステーショ
ンに対して行うべき処理を指定するデータであり、例え
ばデータのリード/ライト、プログラムのリード/ライ
ト、ステーションの起動/停止等の指令などがある。そ
して、本実施例の特徴として送信側のステーションから
受信側のステーションに他のステーションからの送信デ
ータをロックさせるための指令であるインタロックセッ
ト及びそのインクロックを解除させるための指令である
インタロック解除のコマンドがある。The command 221 is data that specifies processing to be performed on the receiving station, and includes, for example, commands to read/write data, read/write programs, start/stop the station, and the like. The features of this embodiment include an interlock set, which is a command from the sending station to the receiving station to lock transmission data from another station, and an interlock set, which is a command to release the ink lock. There is a release command.
【0019】例えば、プログラムのリード/ライトにつ
いては、そのコマンドを受信したステーションがプログ
ラムのリード/ライトを実行している間、他ステーショ
ンがそのプログラムに対する書き込み、変更等を行わせ
ないために、送信側ステーションが、上記インタロック
セットのコマンドを、プログラムのリード/ライトのコ
マンドを送信する前に受信側ステーシンに送信し、受信
側ステーションがプログラムのリード/ライト処理終了
のレスポンス(応答)を返してきた後、インタロック解
除のコマンドを上記受信側ステーションに送信すること
により、受信側ステーションがプログラムのリード/ラ
イトを行っている間、他ステーションから受信したコマ
ンドを処理しないようにしている。For example, regarding program read/write, while the station that received the command is executing the program read/write, in order to prevent other stations from writing or changing the program, The side station sends the above interlock set command to the receiving station before sending the program read/write command, and the receiving station returns a response indicating that the program read/write process has been completed. Thereafter, by transmitting an interlock release command to the receiving station, commands received from other stations are not processed while the receiving station is reading/writing the program.
【0020】ここで、図3に示す送信フレームの構成を
説明する。送信フレームは、第1の通信制御部210、
送信データ部220、及び第2の通信制御部230とか
ら成り、第1の通信制御部210は、この送信フレーム
の送信先のステーションを示す送信先局番データ211
、このフレームを送信した送信元のステーションを示す
送信局番データ212、この送信フレームの全体の長さ
(例えばオクテット数)を示すフレームデータ数213
とから成っている。また、送信データ部220はこのデ
ータ部220内の後に続く処理データ格納域224に格
納されているデータの処理方法を通知(指令)するデー
タである上記コマンドをセットするコマンド領域221
、この送信フレームが排他的に処理されるべき連続フレ
ームの一部であることを示す排他用データのセット/リ
セットが行われる排他用データ領域223、上記処理デ
ータ格納域224内に格納されているデータ数(例えば
オクテット数)がセットされるデータ数セット領域22
3等から成っている。そして、第2の通信制御部230
は、送信フレームのデータの正常/異常をチェックする
ためのデータであるFCS(Frame Check
Sequence) 231とフレームの終了を示す情
報(コード)であるENDデータ232から成る。The structure of the transmission frame shown in FIG. 3 will now be explained. The transmission frame is transmitted by the first communication control unit 210,
It consists of a transmission data section 220 and a second communication control section 230, and the first communication control section 210 receives destination station number data 211 indicating the destination station of this transmission frame.
, transmission station number data 212 indicating the source station that transmitted this frame, and frame data number 213 indicating the entire length (for example, number of octets) of this transmission frame.
It consists of. The transmission data section 220 also includes a command area 221 in which the above-mentioned command, which is data that notifies (instructs) how to process data stored in the processing data storage area 224 that follows in this data section 220, is set.
, an exclusive data area 223 in which exclusive data is set/reset indicating that this transmitted frame is part of a continuous frame to be processed exclusively, and is stored in the processed data storage area 224. Data number set area 22 where the data number (for example, the number of octets) is set
It consists of 3rd class. Then, the second communication control unit 230
is FCS (Frame Check
Sequence) 231 and END data 232 which is information (code) indicating the end of the frame.
【0021】次に、図4に示す応答フレームの構成を説
明する。応答フレームも、上記送信フレームと同様、第
1の通信制御部310、データ部320、及び第2の通
信制御部330とから成る。Next, the structure of the response frame shown in FIG. 4 will be explained. Like the transmission frame, the response frame also includes a first communication control section 310, a data section 320, and a second communication control section 330.
【0022】第1の通信制御部310は、この応答フレ
ームの送信先のステーションの局番号を示す送信先局番
データ311、この応答フレームを送信した送信元のス
テーションの局番号を示す送信元局番データ312、応
答フレームの全体長(例えば、オクテット数)を示すフ
レームデータ数313等から成っている。また、データ
部320は、受信したコマンドをセットするコマンド領
域321、送信フレームにより相手側ステーションから
依頼されたコマンド処理の結果(正常または異常)を示
す終了情報322、上記インタロックセットコマンドを
受信したときに排他用データをセットし、上記インタロ
ック解除コマンドを受信したときに排他用データをリセ
ットする排他用データ領域323、受信したコマンドに
対する応答データをセットする応答データ格納域325
、その応答データ格納域325内に格納されている応答
データのデータ数(例えばオクテット数)がセットされ
るデータ数セット領域324等から成っている。さらに
、第2の通信制御部330は、応答フレームの正常/異
常をチェックするためのデータであるFCS(Fram
e Check Sequence)331とこの応答
フレームの終了を示す情報(コード)であるENDデー
タ332から成る。The first communication control unit 310 receives destination station number data 311 indicating the station number of the station to which this response frame is transmitted, and source station number data 311 indicating the station number of the source station that transmitted this response frame. 312, the number of frame data 313 indicating the overall length (for example, number of octets) of the response frame, and the like. The data section 320 also includes a command area 321 for setting the received command, termination information 322 indicating the result (normal or abnormal) of the command processing requested by the other station in the transmission frame, and the interlock set command. an exclusive data area 323 in which exclusive data is set when the interlock release command is received, and the exclusive data is reset when the interlock release command is received; a response data storage area 325 in which response data to the received command is set;
, a data number setting area 324, etc., in which the number of response data (for example, the number of octets) stored in the response data storage area 325 is set. Further, the second communication control unit 330 uses FCS (Fram
e Check Sequence) 331 and END data 332 which is information (code) indicating the end of this response frame.
【0023】ところで、上記FCSは、例えば任意の生
成多項式のCRC(Cyclic Redund−an
cy Check) 符号から成る。また、送信フレー
ム並びに応答フレームの排他用データ領域222、32
3にセットする排他用データは、各ステーションA,B
,C,D,E毎に個別に割り当てられており、同時に複
数のステーション間で排他的データ通信が行われても、
受信側のステーションは送信フレームにセットされてい
る排他用データを参照して自ステーション向けの当該フ
レームを確実に認識できるようになっている。尚、排他
用データのリセット値は、各ステーションA,B,C,
D,Eが共通に例えば「FFH 」もしくは「00H
」(Hは16進値を示す記号)のような固有の値を用い
る。[0023] By the way, the above FCS is a CRC (Cyclic Redund-and-
cy Check) code. In addition, exclusive data areas 222 and 32 for transmission frames and response frames
The exclusive data set to 3 is for each station A and B.
, C, D, and E, and even if exclusive data communication is performed between multiple stations at the same time,
The receiving station is able to reliably recognize the frame intended for its own station by referring to the exclusive data set in the transmitted frame. Note that the reset value of exclusive data is for each station A, B, C,
D and E are common, for example, “FFH” or “00H”
” (H is a symbol indicating a hexadecimal value).
【0024】次に、上記構成の実施例において、ステー
ションAがステーションEと通信してステーションAが
ステーションEに対しプログラム転送を行う時の動作を
説明する。
(1) 通常、ステーションA,B,C,Dは、送信フ
レーム並びに応答フレームの排他用データ領域222,
323をリセットし排他用データをセットしないでステ
ーションEと通信を行っている。
(2) そして、ステーションAがステーションEへプ
ログラムデータの転送(プログラムのライト)を行おう
とするときは、まず最初に送信先局番データ211にス
テーションEの局番号を、送信元局番データ222に自
ステーションすなわちステーションAの局番号を、さら
にコマンド領域221にインタロックセットコマンドを
セットした図3に示すフォーマットの送信フレームを作
成し、その送信フレームを伝送路101、ステーション
B、及び伝送路103を介してステーションEに送信す
る。
(3) ステーションEは、上記送信フレームを受信す
ると、その送信フレームの解析を行い、ステーションA
からインタロックセットコマンドが送られてきたことを
認識する。そして、図4に示す応答フレームの送信先局
番データ311にステーションAの局番号を、送信元局
番データ312に自ステーションすなわちステーション
Eの局番号を、さらに排他用データ領域323に任意の
コードから成る自ステーションに予め割り当てられた固
有の排他用データをセットした図4に示す応答フレーム
を作成し、その応答フレームを伝送路103、ステーシ
ョンB及び伝送路101を介してステーションAへ返信
する。
(4) ステーションAは、上記応答フレームを受信し
て、その応答フレームの排他用データ領域323にステ
ーションEがセットした上記排他用データがセットされ
ているのを認識すると、その排他用データと同一の排他
用データを排他用データ領域222にセットし、コマン
ド領域221にプログラムライトのコマンドが、処理デ
ータ格納域224に送信するプログラムデータを、デー
タ数セット領域223に上記プログラムのデータ数(バ
イト数)をセットし、さらに送信先局番データ211、
送信元局番データ212にそれぞれステーションA、ス
テーションEの局番号をセットした図3に示すフォーマ
ットの送信フレームを作成し、その送信フレームを伝送
路101、ステーションB、及び伝送路103を介しス
テーションEへ送信する。
(5) ステーションEは、上記処理(3) でインタ
ロックセットコマンドを受信すると、以後フレームを受
信するごとに、自らがそのフレームの排他用データ領域
222に上記処理(4) でステーションAへの応答フ
レームの排他用データ領域323にセットした排他用デ
ータがセットされているか否かを判断し、その排他用デ
ータがセットされていればステーションAから送信され
たフレームであると認識し、その送信フレームの処理デ
ータ領域224に格納されているプログラムデータを読
み込む。そして、プログラムを読み込んだ後、上記受信
したフレームに対する応答データを応答データ領域32
5にセットした図4に示すフォーマットの応答フレーム
を作成し、その応答フレームを伝送路103、ステーシ
ョンB、伝送路101を介しステーションAへ送信する
。一方、上記排他用データがセットされていなければ、
ステーションA以外のステーションから送信されたフレ
ームであると判断し、その受信フレームに対する処理は
行わない。
(6) ステーションAは、上記ステーションEからの
応答フレームを受信すると、次のプログラムデータを処
理データ格納域224に格納した図3に示すフォーマッ
トの送信フレームを作成し、その送信フレームを伝送路
101、ステーションB、及び伝送路103を介しステ
ーションEへ送信する。
(7) ステーションEは、上記処理(5) と同様に
して上記ステーションAからの送信フレームを認識し、
その送信フレームの処理データ格納域224からプログ
ラムデータを読み込み、上記処理(5) と同様にして
ステーションAに対し応答フレームを送信する。
(8) 上記処理(6),(7) は、ステーションA
がステーションEに対し全てのプログラムデータを送信
するまで繰り返される。そして、ステーションAは最終
のプログラムデータを送信したと判断すると、次にコマ
ンド領域221にインタロック解除コマンドをセットし
たステーションE宛の送信フレームを作成し、その送信
フレームを伝送路101、ステーションB、及び伝送路
103を介しステーションEへ送信する。
(9) ステーションEは、ステーションAから送信さ
れた上記インタロック解除コマンドがセットされた送信
フレームを受信すると、排他用データをリセットした排
他用データ領域323と上記インタロック解除コマンド
に対応する応答データを応答データ領域325にセット
した応答フレームを作成し、その応答フレームを伝送路
103、ステーションB、及び伝送路101を介しステ
ーションAへ返信する。
(10) ステーションAは、上記ステーションEか
らの応答フレームを受信し、その応答フレームの排他用
データ領域323の排他用データがリセットされている
のを認識すると、以後、送信する送信用フレームにおい
てその排他用データ領域222の排他用データをリセッ
トする。
(11) 以後、ステーションA,B,C,Dは再び
ランダムにステーションEと通信をすることができる。Next, the operation when station A communicates with station E and station A transfers a program to station E in the embodiment with the above configuration will be described. (1) Normally, stations A, B, C, and D use the exclusive data area 222 of the transmission frame and response frame,
323 and communicates with station E without setting exclusive data. (2) When station A attempts to transfer program data (write program) to station E, first the station number of station E is written in the destination station number data 211, and the station number of station E is written in the source station number data 222. A transmission frame with the format shown in FIG. 3 is created in which the station number of the station, that is, station A, and an interlock set command is set in the command area 221, and the transmission frame is transmitted via the transmission path 101, station B, and transmission path 103. and transmits it to station E. (3) Upon receiving the above transmission frame, station E analyzes the transmission frame and sends it to station A.
Recognizes that an interlock set command has been sent from. Then, the destination station number data 311 of the response frame shown in FIG. A response frame shown in FIG. 4 is created in which exclusive exclusive data previously assigned to the own station is set, and the response frame is sent back to station A via transmission path 103, station B, and transmission path 101. (4) When station A receives the response frame and recognizes that the exclusive data set by station E is set in the exclusive data area 323 of the response frame, station A reads the same data as the exclusive data. Exclusive data is set in the exclusive data area 222, the program write command is sent to the command area 221, the program data to be sent to the processing data storage area 224 is set, and the number of data (number of bytes) of the program is set in the data number set area 223. ), and also set destination station number data 211,
A transmission frame in the format shown in FIG. 3 is created in which the station numbers of station A and station E are set in the source station number data 212, respectively, and the transmission frame is sent to station E via transmission path 101, station B, and transmission path 103. Send. (5) When station E receives the interlock set command in the above process (3), every time it receives a frame thereafter, it writes data to the exclusive data area 222 of that frame to the station A in the process (4) above. It is determined whether or not the exclusive data set in the exclusive data area 323 of the response frame is set, and if the exclusive data is set, the frame is recognized as being transmitted from station A, and the transmission The program data stored in the processing data area 224 of the frame is read. After reading the program, the response data for the received frame is stored in the response data area 32.
A response frame is created in the format shown in FIG. On the other hand, if the above exclusive data is not set,
It is determined that the frame is transmitted from a station other than station A, and no processing is performed on the received frame. (6) When station A receives the response frame from station E, it creates a transmission frame in the format shown in FIG. , station B, and to station E via transmission line 103. (7) Station E recognizes the transmission frame from station A in the same manner as in process (5) above, and
The program data is read from the processing data storage area 224 of the transmission frame, and a response frame is transmitted to station A in the same manner as in process (5) above. (8) The above processes (6) and (7) are performed at station A.
is repeated until all program data has been sent to station E. When station A determines that it has transmitted the final program data, it then creates a transmission frame addressed to station E with an interlock release command set in the command area 221, and sends the transmission frame to transmission line 101, station B, and transmits to station E via transmission line 103. (9) When station E receives the transmission frame in which the above-mentioned interlock release command is set, which was sent from station A, station E stores the exclusive data area 323 in which the exclusive data has been reset and the response data corresponding to the above-mentioned interlock release command. A response frame is created in which the response data area 325 is set, and the response frame is sent back to station A via transmission path 103, station B, and transmission path 101. (10) When station A receives the response frame from station E and recognizes that the exclusive data in the exclusive data area 323 of the response frame has been reset, station A will no longer use that response frame in subsequent transmission frames. The exclusive data in the exclusive data area 222 is reset. (11) After that, stations A, B, C, and D can communicate with station E again at random.
【0025】このように、送信フレームと応答フレーム
に排他用データをセットする排他用データ領域222,
323を儲け、さらに2つのステーション間で排他的に
他のステーションからの送信データを排除して通信を行
うためのインタロックセックとインタロック解除の2つ
のコマンドを用いることにより、任意の2つのステーシ
ョン間(上記実施例では、ステーションAとステーショ
ンE間)で、複数回に分けて送信する一連の連続データ
を、他のステーションからの送信データにより中断され
ることなく、連続して排他的に送受信できる。このため
、フレームの情報量を1データ分追加するだけで、2つ
のステーション間で排他的な通信を行うことが可能とな
る。しかも、この場合、排他用データがセットされてい
るか否かを判断するだけで、直ちに目的のデータを認識
できるので、連続データの送受信を高速に行うことがで
きる。また、伝送路が新たに追加される場合でも、同様
のシーケンスで連続データの送受信ができ、システムの
拡張性に優れている。In this way, the exclusive data area 222 sets exclusive data in the transmission frame and the response frame.
323, and furthermore, by using two commands, interlock sec and interlock release, to perform communication between two stations exclusively excluding data sent from other stations, any two stations can (in the above embodiment, between station A and station E), a series of continuous data to be transmitted in multiple parts is continuously and exclusively transmitted and received without being interrupted by data transmitted from other stations. can. Therefore, by simply adding one piece of information to the frame, exclusive communication can be performed between two stations. Moreover, in this case, the target data can be immediately recognized just by determining whether or not exclusive data is set, so that continuous data can be sent and received at high speed. Furthermore, even when a new transmission path is added, data can be continuously transmitted and received in the same sequence, making the system highly expandable.
【0026】尚、上記実施例は、プログラムライト(ス
テーションAがステーションEに対してプログラムのラ
イトを行う)のコマンドを実行する例であるが、プログ
ラムリード(例えば、ステーションAがステーションE
からプログラムを読み込む)のコマンドも、上記プログ
ラムライトと同様に排他用データを用いて行うことがで
きる。また、本発明は上記2つのコマンド以外にも、他
のステーションからの通信を排他して、任意の2つのス
テーション間でデータの連続転送を行う必要のある全て
のデータ通信に適用できるものである。The above embodiment is an example in which a program write command (station A writes a program to station E) is executed, but a program read command (for example, station A writes a program to station E) is executed.
The command (to read a program from) can also be executed using exclusive data in the same way as the program write mentioned above. In addition to the above two commands, the present invention can be applied to all data communications that require continuous data transfer between any two stations, excluding communications from other stations. .
【0027】また、本実施例では、受信側のステーショ
ン(受信局)で排他用データを指定するようにしている
が、送信側のステーション(送信局)が排他用データを
指定するようにしてもよい(例えば、上記インタロック
セットコマンドの送信フレームで指定する)。この場合
、各ステーション毎に個別に排他用データを割り当てる
ようにすれば、受信局側で確実に当該フレームのみを認
識できる。Furthermore, in this embodiment, the receiving station (receiving station) specifies exclusive data, but even if the transmitting station (transmitting station) specifies exclusive data, (For example, specify in the transmission frame of the above interlock set command). In this case, by individually allocating exclusive data to each station, the receiving station can reliably recognize only the relevant frame.
【0028】[0028]
【発明の効果】本発明によれば、2局間での排他的なデ
ータ通信において、受信局は受信フレームに排他用デー
タがセットされているか否かを判別することにより、目
的のフレームを認識できるので、受信局は容易に目的の
フレームを認識し、データ処理することができる。した
がって、2局間での排他的なデータ通信を高速に行うこ
とができる。また、任意の伝送路に新たな局が接続され
た場合でも、プロトコルを変更する必要はないので、シ
ステムの拡張性にも優れている。さらに、フレーム構成
も排他用データ領域を追加するだけでよいので、データ
の通信効率は従来よりも格段に向上する。また、上記の
効果によりシステム全体のスループットが向上する。こ
の効果は、伝送路数が多い大規模なネットワークになれ
ばなるほど顕著となる。According to the present invention, in exclusive data communication between two stations, the receiving station recognizes the target frame by determining whether exclusive data is set in the received frame. Therefore, the receiving station can easily recognize the target frame and process the data. Therefore, exclusive data communication between two stations can be performed at high speed. Furthermore, even when a new station is connected to an arbitrary transmission path, there is no need to change the protocol, so the system has excellent expandability. Furthermore, since the frame configuration requires only the addition of an exclusive data area, data communication efficiency is significantly improved compared to the conventional method. Furthermore, the above effect improves the throughput of the entire system. This effect becomes more pronounced as the network becomes larger and has more transmission paths.
【図1】本発明の原理説明図である。FIG. 1 is a diagram explaining the principle of the present invention.
【図2】本発明の一実施例を適用したシステムの構成図
である。FIG. 2 is a configuration diagram of a system to which an embodiment of the present invention is applied.
【図3】通信フレームの形式を示す図である。FIG. 3 is a diagram showing the format of a communication frame.
【図4】応答フレームの形式を示す図である。FIG. 4 is a diagram showing the format of a response frame.
【図5】従来のネットワークの2つの構成例及びそれら
のネットワークにおける排他的なデータ通信の方法を説
明する図である。FIG. 5 is a diagram illustrating two configuration examples of conventional networks and a method of exclusive data communication in these networks.
【図6】従来のネットワークの他の構成例及びそのネッ
トワークでの排他的なデータ通信の方法を説明する図で
ある。FIG. 6 is a diagram illustrating another configuration example of a conventional network and a method of exclusive data communication in the network.
1 送信局 2 コマンド(排他通信開始コマンド)3 受信局 4 コマンド 1 Transmitting station 2 Command (exclusive communication start command) 3 Receiving station 4 Command
Claims (2)
クにおける各局間でのデータ通信方式において、任意の
送信局(1)から排他的なデータ通信の開始を指示する
コマンド(2)を受信した受信局(3)は、上記送信局
(1)から上記排他的なデータ通信の終了を指示するコ
マンド(4)を受信するまで、排他用データ(5a)が
セットされたフレーム(5)のみについてデータ処理を
行うことを特徴とするデータ通信方式。Claim 1: In a data communication system between stations in a network having a plurality of transmission paths, a receiving station (1) receives a command (2) instructing to start exclusive data communication from an arbitrary transmitting station (1). 3) performs data processing only on the frame (5) in which the exclusive data (5a) is set until the command (4) instructing the termination of the exclusive data communication is received from the transmitting station (1). A data communication method characterized by:
ド指定は、前記受信局(3)側で行うことを特徴とする
請求項1記載のデータ通信方式。2. The data communication system according to claim 1, wherein the code specification of the exclusive data (5a) is performed on the receiving station (3) side.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3043285A JP2901020B2 (en) | 1991-03-08 | 1991-03-08 | Data communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3043285A JP2901020B2 (en) | 1991-03-08 | 1991-03-08 | Data communication method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH04280529A true JPH04280529A (en) | 1992-10-06 |
JP2901020B2 JP2901020B2 (en) | 1999-06-02 |
Family
ID=12659535
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3043285A Expired - Fee Related JP2901020B2 (en) | 1991-03-08 | 1991-03-08 | Data communication method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2901020B2 (en) |
-
1991
- 1991-03-08 JP JP3043285A patent/JP2901020B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2901020B2 (en) | 1999-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4750109A (en) | Method and system for expediting multi-packet messages in a computer network | |
JP4564665B2 (en) | Method and apparatus for extending the range of general serial bus protocols | |
US9294387B2 (en) | Discovery technique for physical media interface aggregation | |
US7200641B1 (en) | Method and system for encoding SCSI requests for transmission using TCP/IP | |
EP0101609B1 (en) | Data communication method | |
JPS62164335A (en) | Network interface device for coupling digital data with bus bar network | |
JP2551304B2 (en) | Broadcast link control method | |
JP2010525644A (en) | Packet switching device and local communication network comprising such a packet switching device | |
US5566176A (en) | Parameter setting method for PLC communication system | |
US4977499A (en) | Method and apparatus for commanding operations on a computer network | |
EP0785651A1 (en) | Receiver sharing for demand priority access method repeaters | |
JP2004128671A (en) | Network repeater and network repeating method | |
JPH04280529A (en) | Data communication system | |
KR100226781B1 (en) | Method for recognizing node | |
US5117419A (en) | System for controlling data transmission and reception in a network | |
EP0569512A4 (en) | Packet transmission system and method utilizing both a data bus and dedicated control lines | |
US20060031424A1 (en) | Packet signal processing architecture | |
JP2949624B1 (en) | Connection control method for Fiber Channel connection equipment | |
JPH0690240A (en) | Multiplex transmission system | |
GB2188216A (en) | Ring bus communications systems | |
JPS6236940A (en) | Data communication equipment in automobile | |
JP2715137B2 (en) | Communication network control method | |
JPH04291435A (en) | Computer system | |
JPH05324505A (en) | Method and system for file transfer | |
JPS60201760A (en) | Data transmission method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19990302 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080319 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090319 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090319 Year of fee payment: 10 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090319 Year of fee payment: 10 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090319 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100319 Year of fee payment: 11 |
|
LAPS | Cancellation because of no payment of annual fees |