JPS60201757A - Transmitter - Google Patents

Transmitter

Info

Publication number
JPS60201757A
JPS60201757A JP5740984A JP5740984A JPS60201757A JP S60201757 A JPS60201757 A JP S60201757A JP 5740984 A JP5740984 A JP 5740984A JP 5740984 A JP5740984 A JP 5740984A JP S60201757 A JPS60201757 A JP S60201757A
Authority
JP
Japan
Prior art keywords
node
data
transmission
communication
packet
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
JP5740984A
Other languages
Japanese (ja)
Inventor
Tsunematsu Komaki
常松 小牧
Senichi Takeuchi
武内 宜一
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.)
ADVANCED ELECTRON KK
Seika Sangyo Co Ltd
Mitsubishi Research Institute Inc
Original Assignee
ADVANCED ELECTRON KK
Seika Sangyo Co Ltd
Mitsubishi Research Institute Inc
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 ADVANCED ELECTRON KK, Seika Sangyo Co Ltd, Mitsubishi Research Institute Inc filed Critical ADVANCED ELECTRON KK
Priority to JP5740984A priority Critical patent/JPS60201757A/en
Publication of JPS60201757A publication Critical patent/JPS60201757A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration

Abstract

PURPOSE:To ensure the communication as a whole even in case the power supply is cut off in one of transmitters connected in series, by using a relay contact circuit which is closed and opened when the power supply is cut off and applied respectively as a by-pass of each transmitter. CONSTITUTION:Communication media 100a and 100b are connected to a circuit connection control part 301 consisting of a relay which is usually closed. Both communication media are connected to each other when the function of a node 300 is stopped in order to eliminate the effect of the node stoppage for a network system. When the node 300 is working, the part 301 separates both media 100a and 100b from each other and connects the node 300 in series to both communication media.

Description

【発明の詳細な説明】[Detailed description of the invention]

[技術分野] 本発明は複数の伝送装置を通信媒体を介して直列に接続
して構成したネットワークシステムにおける伝送装置に
関するものである。 [従来技術] 従来、伝送装置間を通信媒体で接続したネットワークシ
ステムにおいては、ある伝送装置が電源断の場合には伝
送すべきデータはその伝送装置にて中断してしまい、次
の伝送装置に送ることはできなかった。これを回避する
ためには伝送装置を通信媒体を介して直列に接続するこ
とができず、パス状にしか接続できなかった。従っであ
る伝送装置間でデータの伝送があると、他の装置は全く
データの伝送ができず非能率であった。 [目的] 本発明は上述従来技術の欠点に鑑み成されたものでその
目的とする所は、伝送装置の停止時においても他のネッ
トワーク構成装置に影響を与えることのないネットワー
クを構成する伝送装置を提供することにある。 一以下余白一 [実施例] 以下、図面を参照して本発明の一実施例を詳細に説明す
る。 第1図は本発明に係るネットワークシステムである直列
パケット交換網システムの構成図であり、100は通信
媒体、101−105は通信媒体100を介して直列に
接続された伝送制御を行なう伝送装置(以下ノードと称
す)、110〜113はノードlotに接続されている
各端末又はサーバ(以下ホストと称す)を示し、本実施
例では各ノードに最大4つのホストが接続できる。 各ノー1間の通信媒体100は両方向性であり、ノード
間でそれぞれ独立してパケット通信を行なう。 このパケット通信を行なうパケットフレーム構成を第2
図及び第3図に示す。 第2図は本システムで使用するパケットフレーム構成を
示す図であり、201は1フレームの開始のための開始
フラグ、202はフレームの宛先アドレス部、203は
送信元アドレス部、204は後述する伝送コマンドであ
り、ノードのネットワークへの参入制御、受信データの
正誤の応答、同報通信制御等のデータ通信制御、ノード
の状態などを示す。205は伝送情報フィールドの長さ
を示すデータ長指定部である。206は伝送情報フィー
ルドであり最大256バイトである。 207はフレームのCRCチェックコードであり誤り制
御の為のものである。なお208は終了フラグである。 上述の宛先アドレス部202及び送信元アドレス部20
3の詳細を第2図(B)に示す、アドレス部はノードの
アドレスを示すノードアドレス211と、ノードに接続
されているホストの所属グループアドレスを示すグルー
プアドレス212と、ホストの所属グループ内アドレス
を示すグループ内アドレス213より成っている。 このグループ名、及びグループアドレスの例を表1に示
す。 ここ゛ではグループをR3−232C規格によるホスト
と、GP−IB規格によるホスト、プリンタサーバ、フ
ァイルサーバに分けた例を示している。 表1 上述のデータパケットフレームの外に、ノード・ホスト
間における制御用フレームとして第21W(A)に示す
ポーリング制御フレームと、第2IJ (B)に示すセ
レクティング制御フレームとがあり、ポーリングの為の
ポーリング制御フレームは“EOT”221とポーリン
グコード“POL”222と“ENQ”223より成り
、セレクティンク制御フレームは’EOT”221とセ
レクテイングコード゛SEL″°224、“E N Q
 ”223より成る。 ホストはノードに対してはこの制御フレームによりポー
リング及びセレクティングを行ない、データの授受を行
なう。 次に本システムのノードの構成を第4図のブロック図を
参照して説明する。 ノード300は第1図のノード1.01−105に相当
し、通1ご媒体100a、100bは回線接続制御部3
01と接続されており、この回線接続制御部301はノ
ード300が停止しているときには両通信奴体を接続し
、ノード300が稼動しているときには両通信媒体を切
り離す様制御している。例えばこの回線接続制御部30
1は常閉型リレーであり、ノード300の電源が投入さ
れると間接する構造とすることにより、ノードの電鯨断
峙には両通信媒体100a、100bが接続されており
、ネットワークシステムとしてノードの停止二による影
響がない制御とする事ができる。 通信媒体100aにはトランシーバA302を介して伝
送回路A304が、通信媒体100bにはトランシーバ
B503を介して伝送回路B505が接続されており、
通信媒体上の受信パケットデータを制御部に送出すると
共に、送信パケットデータを制御通信媒体上に送出して
いる。306はノードアドレス設定部であり、ノー13
00のネットワークアドレスを設定している。このノー
ドアドレスは本システムの一方の端に接続されているノ
ードより順次他端のノードになるにつれ大(又は小)の
値となる様に設定される。 第1図の例では、ノード101がノードアドレス(R0
1)、ノード102が(R08)、ノード103が(#
lO)、ノード104が(R18)、ノード105が(
R20)のアドレス設定となっている。この様にノード
アドレス・を一定方向に順次大きくなる様に設定するこ
とにより、メートでネットワーク構成の記憶更新等を行
なうことなく、ホストよりの送出要求アドレスと自ノー
ドアドレスの比較のみにより、自ノードよりのパケット
送出方向が決定でき、また自ノードに送られてきた転送
要求パケットが送出方向ノード宛のパケットか杏かが即
座に自ノー、ドアドレスとの比較のみで判断することが
できる。 310は制御部であり、伝送回路A304又は伝送回路
B505を制御して通信媒体100a又は1oob上で
パケット交換を行なう。 −力制御部310には接続各ホストとのデータ通信を行
なう為の構成があり、伝送インタフェース部の構成の違
いによりR3232C規格のホストが使用可能な部分と
、GP−IB規格のホストが使用可能な部分等に分けら
れている。 制御部310には最大4回線分のホストが接続可能であ
り、各ホストに対してソケットアド1/ス設定部(C(
321)、D (331)、E(341)、F (35
1)) と、伝送回路(C(332) 、D (332
) 、E (342) 、F(352))及び各伝送回
路とホスト間の伝送インタフェース(C(323)、D
 (333)。 E (343)、F (353))により構成さ′れて
いる。 次に各伝送回路部の詳細を第5図のブロック図により説
明する。 502は伝送回路A304及びB505の場合にはトラ
ンシーバ(第4図の302,303に相当する)、伝送
回路C322、D332 。 E342 、F352の場合には伝送インタフェースに
相当する(第4図の323,333,343.353に
相当する)インタフェース部である。フレームの受信に
先立って通信媒体上に送られてくるキャリア信号はイン
タフェース部502を介してキャリア検出部523にて
検出され、受信回路520を受信可能状態とする。また
インタフェース部502よりの受信データ等は受信回路
520に入力され、入力されたフレームデータは受信バ
ッファ521に移される。その時に受信フレーム中のア
ドレス部のみはアドレスレジスタ522に格納され、こ
のアドレスレジスタ522にセットされたアドレスデー
タは比較部524において自ノードのアドレス設定部5
01 (第4図の306又は321.331.341.
351に相当する)のアドレスデータと比較され比較結
果が制御部310に出力される。 送信すべきフレームは制御部310より送信バッファ5
11にセットされ、その後送信回路510よりインタフ
ェース部502を介して通信媒体へ送出される。 以下に本システムの通信制御を説明する。 まず、ホストの通信制御を第6図のホストの通信制御を
示すフローチャートを参照して説明する。本システムで
はホスト・ノー1間のデータ通信は全てホストよりのポ
ーリング又はセレクテイングにより行なわれる。つまり
通信の主導権はホスト側に持たせている。 ホストはステップ100で自ホストよりの送出データが
有る場合にはステップ102に進み、第2図に示す様な
送信フレームを生成する。この場合には送信元アドレス
203としてはノード部のアドレス設定部501の設定
値が優先され、通信奴休100にはアドレス設定部50
1の設定・アドレスを送信元アドレス203として送出
する。ホスト・ノー1間のデータ通信にいおいては後述
するノード・ノード間のパケット通信時と異なり、送受
信する必要のあるデータは全て一度に伝送する。 続いてステップ104でノードに対して第3図(B)に
示すセレクテイングフレームを送出する。そしてステッ
プ106とステップ108でタイムアウトまでに受信デ
ータ(応答)が有るか否かを監視する。受信データのな
い場合にはステップ122に進み、ノードに対して“E
OT”を送出し、ステップ100に戻り再度セレクテイ
ングを行なう。 ステップ106で受信データのある場合には受信データ
が“ACK”°か否か調べ、”ACK”でない場合には
ノードでデータ受信準備が完了していないことを示すた
めステップlOOに戻り受信準備の完rを待つ。 ” A CK ”受信の場合にはステップ11’2に進
み、送信データフレームをノードに対して送出し、その
後ステップ114,116でタイムアウトを監視する。 タイムアウトの場合には前述のステップ122に進み、
データが受信された場合にはステップ118に進み受信
データが“N A K ”か否かを調べ、” N A 
K ”の場合には送信フレームが正しくノードに受信さ
れなかったため送信したフレームを無効とし1通信制御
をやり直すためステラ7’l12に戻り、送信データフ
レームの再送を行なう。 受信データが“N A K ”でない場合にはステップ
120に進み“A CK ”かを調べ、“ACK□′の
場合には送信フレームが正しくノードに取り込まれたた
めステップ100に戻りデータの受信処理を終了し、“
A CK ”でない場合にはステップ122に進み“E
OT”“を送出し、ステップlOOに戻る。 ステップ100でホストよりの送出データがない場合に
はステップ130に進み、ノードに対して第3図(A)
に示すポーリングフレームを送出し、ステップ132.
134でタイムアウトまでノードよりの応答を待つ、応
答のない場合にはステップ134よりステップ100に
戻り、応答のあった場合にはステップ136に進み、“
EOT”応答か否か調べる。“E OT ”応答の場合
にはノードよりホストへの送信データがないことを示す
ためステップ100に戻る。”EOT”受信でない場合
にはノードよりデータフレームが送られてきたものとみ
なし、ステップ13gで送られてきたデータフレームを
受信する。モしてステラ7’140でデータフレームの
チェックコード(BCCチェックコード)207により
受信フレームの受信誤りがあるか調べる。受信誤りがあ
る場合にはステップ142に進み、ノードに対して“”
NAK’″を送出し、ステップ144で受信したフレー
ムを無効としてステップ132に戻り、データフレーム
の再送されてくるのを待つ。 ステップ140でフレームが正しく受信されるとステッ
プ146に進み、ノードに’ A CK ”を送出し、
続いてステップ148,150で” E OT ”が受
信されるか否かをタイムアウトまで監視する。ノードに
A CK ”コードが正しく送られデータの通信が正常
終了した場合にはノードより’ E OT ”コードが
送られ、ステップ148よりステップ100に戻り、次
のデータ通信に備える。 “E OT ”コードが送られてこず、タイムアウトに
なった場合には何らかの原因でデータ通信が正常綿rさ
れないことになり、ステップ150よリステップ152
に進み、受信データを無効としてステップZooに戻る
。 以上の説明中で同−目ノードに接続されている他のホス
トに対してデータを送る場合には、宛先アドレス202
として自ノードアドレスを指定することによりホストよ
りノードを介して他のホストに対してデータを送ること
ができる。 次にノード・ホスト間通信のノード側の通信制御を第7
図のフローチャートを参照して説明する。 ノードはホストよりの起動(ポーリング・セレクテング
)により動作を開始する。まずステップ200でホスト
よりキャリアが送られてきたかをキャリア検出部523
出力により監視し、キャリアが検出されるとステップ2
00よりステップ202に進み、続いて送られてくるデ
ータを受信する。そしてステップ204で受信データが
セレクテイングフレームか否か調べ、セレクテングフレ
ームの場合にはステップ206に進み、ノードが該当ホ
ストよりのデータ受信が可能かを調べ、受信不可の場合
はステップ208で“N A K ”を返送しステップ
200に戻る。データ受信Irfの場合にはステップ2
10に進みA CK ”を返送し、ステップ212,2
14でタイムアウトまでデータが受信されるのを監視す
る。タイムアウトの場合にはステップ200に戻る。 データが送られてくるとステップ212よりステップ2
16に進み、データフレームを受信バッファ521に受
信する。データの受信が終了するとステップ218で、
受信フレームのチェックコード(BCCコード)207
により受信フレームに受信誤りが発生したか否か調べる
。 受信誤りの無い場合にはステップ220に−進み、A 
CK ”を応答し、データの受信処理を終了し、宛先ア
ドレス202で指定された宛先への送信準備をしてステ
ップ200に戻る。 データ受信誤りのある場合にはステップ222に進み、
”NAK”を応答し、受信フレームを無効としてステッ
プ212に戻り、再びフレームの送られてくるのを待つ
。 ステップ204でセレクティングフレーム受信でない場
合にはステップ226に進み、受信データがポーリング
フレームか否かを調べる。ポーリングフレームでない場
合にはステップ200に戻る。 ポーリングフレームの場合にはステップ230に進み、
ノードよりホスト宛の送信データが有るか否か調べ、送
出データの無い場合にはステップ246に進み、“’E
OT’“を送出し、その後ステップ200に戻る。 送出データの有る場合にはステップ232でホスト宛の
フレームを送出し、その後ステップ234.236で送
出フレームに対する応答を待つ。タイムアウトまで応答
の無い場合にはステップ246に進み、応答のある場合
にはステップ238で応答が’ N A K ”か否か
を調べる。 “” N A K ”の場合にはステップ238よりス
テップ232に戻り、再度ホスト宛フレームを送出する
。 受信データが“N A K ”でない場合にはステップ
240に進み、“ACK’”応答か否か調べる。 A CK ”応答の場合にはフレームが正しく送られた
ためステップ242で送信フレームを消去し、ステップ
246に進み、“EOT′′を送出してステップ200
に戻る。 ステップ240で応答が“A CK ”でない場合には
通信誤り発生としてステップ246に進み、送信フレー
ムの消去は行なわない。 以上の説明中のノード・ホスト間での1つのデータの授
受はすべて一度の通信で行なわれるが、以下に述べるノ
ード・ノー1間通信ではデータを規定量以下に分割して
複数回に分けて送られるため、これら分割して送られた
データが全て送受信完了した時点で宛先のノード争ホス
ト間の通信を行なう。 以下、各ノード間の通信制御を第8図(A)〜(C)の
フローチャートを参照して説明する。 各ノー1間通信は全て第2r54に示すバケツトフレー
ムにより行なわれる。 まず第8図(A)のステップ300において、キャリア
検出部523により通信媒8体よりキャリアが検出され
たか否か調べる。キャリアが検出されれば続いてパケッ
トが送られてくるので、ステップ302で第4図の通信
媒体100aよりのキャリアが伝送回路A304にて検
出されたのか否か調べ、伝送回路A304で検出された
場合には後述する第8図(B)に示す“受信A ”処理
に進み、通信媒体toobよりのキャリアが伝送回路B
505で検出された場合には第81m(C)に尽す“受
信B ”処理に進む。 ステップ300でどちらでもキャリアが検出されない場
合にはステップ308に進み、他ノード宛への送信デー
タが有るか否か調べ、送信データが無い場合にはステッ
プ300に戻り、データの受信検出又は送信要求発生ま
でループする。 ステップ308で送信データの有る場合にはステップ3
10に進み、宛先ノードアドレスが自ノードアドレスよ
り大か否か調べる。これは、本システムでは各ノードア
ドレスを第4図で示す
[Technical Field] The present invention relates to a transmission device in a network system configured by connecting a plurality of transmission devices in series via a communication medium. [Prior Art] Conventionally, in a network system in which transmission devices are connected through a communication medium, if the power of one transmission device is cut off, the data to be transmitted is interrupted at that transmission device, and the data is transferred to the next transmission device. I couldn't send it. In order to avoid this problem, transmission devices cannot be connected in series via a communication medium, and can only be connected in a path. Therefore, when data is transmitted between certain transmission devices, other devices cannot transmit data at all, resulting in inefficiency. [Objective] The present invention has been made in view of the drawbacks of the prior art described above, and its purpose is to provide a transmission device that configures a network that does not affect other network component devices even when the transmission device is stopped. Our goal is to provide the following. EMBODIMENT OF THE INVENTION An embodiment of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a configuration diagram of a serial packet switching network system, which is a network system according to the present invention, in which 100 is a communication medium, and 101-105 are transmission devices (101-105) that perform transmission control and are connected in series via the communication medium 100. 110 to 113 represent terminals or servers (hereinafter referred to as hosts) connected to the node lot, and in this embodiment, up to four hosts can be connected to each node. The communication medium 100 between each node 1 is bidirectional, and packet communication is performed independently between the nodes. The packet frame configuration for this packet communication is
As shown in FIG. FIG. 2 is a diagram showing the packet frame structure used in this system, where 201 is a start flag for starting one frame, 202 is a destination address section of the frame, 203 is a source address section, and 204 is a transmission described later. This is a command that indicates control of a node's entry into the network, response as to whether received data is correct or incorrect, data communication control such as broadcast communication control, node status, etc. 205 is a data length designation section indicating the length of the transmission information field. 206 is a transmission information field having a maximum length of 256 bytes. 207 is a frame CRC check code for error control. Note that 208 is an end flag. The above-mentioned destination address section 202 and source address section 20
The details of 3 are shown in FIG. 2(B).The address part includes a node address 211 indicating the address of the node, a group address 212 indicating the address of the group to which the host connected to the node belongs, and an address within the group to which the host belongs. It consists of an intra-group address 213 indicating. Table 1 shows examples of this group name and group address. Here, an example is shown in which the groups are divided into hosts according to the R3-232C standard, hosts according to the GP-IB standard, printer servers, and file servers. Table 1 In addition to the data packet frames described above, there are polling control frames shown in 21st W (A) and selecting control frames shown in 2nd IJ (B) as control frames between nodes and hosts. The polling control frame consists of 'EOT' 221, polling codes 'POL' 222 and 'ENQ' 223, and the selecting control frame consists of 'EOT' 221 and selecting codes 'SEL'°224 and 'ENQ'.
223. The host polls and selects the nodes using this control frame, and sends and receives data. Next, the configuration of the nodes in this system will be explained with reference to the block diagram in Figure 4. The node 300 corresponds to the nodes 1.01-105 in FIG.
01, and this line connection control unit 301 controls to connect both communication bodies when the node 300 is stopped, and to disconnect both communication media when the node 300 is operating. For example, this line connection control section 30
Reference numeral 1 is a normally closed relay, which is configured to be connected indirectly when the power of the node 300 is turned on, so that both communication media 100a and 100b are connected to the power source of the node, and the node is connected as a network system. It is possible to perform control that is not affected by stoppage 2. A transmission circuit A304 is connected to the communication medium 100a via a transceiver A302, and a transmission circuit B505 is connected to the communication medium 100b via a transceiver B503.
The received packet data on the communication medium is sent to the control unit, and the transmitted packet data is sent onto the control communication medium. 306 is a node address setting section;
A network address of 00 is set. This node address is set so that the value becomes larger (or smaller) in order from the node connected to one end of the system to the node connected to the other end. In the example of FIG. 1, the node 101 has the node address (R0
1), node 102 (R08), node 103 (#
lO), node 104 is (R18), node 105 is (
R20) address setting. In this way, by setting the node address so that it increases in a certain direction, the mate can use the own node by simply comparing the send request address from the host and the own node address, without updating the memory of the network configuration on the mate. It is possible to determine the direction in which a packet is sent from, and to immediately determine whether a transfer request packet sent to the own node is a packet addressed to the sending direction node or not just by comparing it with the address of the own node. A control unit 310 controls the transmission circuit A 304 or the transmission circuit B 505 to perform packet exchange on the communication medium 100a or 1oob. -The power control unit 310 has a configuration for data communication with each connected host, and depending on the configuration of the transmission interface unit, a part that can be used with an R3232C standard host and a GP-IB standard host can be used. It is divided into different parts. Up to four hosts can be connected to the control unit 310, and a socket address setting unit (C(
321), D (331), E (341), F (35
1)) and transmission circuits (C(332), D(332)
), E (342), F (352)) and transmission interfaces (C (323), D) between each transmission circuit and the host.
(333). E (343), F (353)). Next, details of each transmission circuit section will be explained with reference to the block diagram of FIG. 5. 502 is a transceiver (corresponding to 302 and 303 in FIG. 4) in the case of transmission circuits A304 and B505, and transmission circuits C322 and D332. In the case of E342 and F352, it is an interface section corresponding to a transmission interface (corresponding to 323, 333, 343, and 353 in FIG. 4). Prior to frame reception, a carrier signal sent onto the communication medium is detected by the carrier detection unit 523 via the interface unit 502, and the receiving circuit 520 is placed in a receiving state. Further, received data etc. from the interface section 502 are inputted to a receiving circuit 520, and inputted frame data is transferred to a receiving buffer 521. At that time, only the address part in the received frame is stored in the address register 522, and the address data set in this address register 522 is passed to the comparator 524 by the address setting unit of the own node.
01 (306 or 321.331.341. in Figure 4)
351), and the comparison result is output to the control unit 310. The frame to be transmitted is sent from the control unit 310 to the transmission buffer 5.
11, and then sent from the transmitting circuit 510 to the communication medium via the interface section 502. The communication control of this system will be explained below. First, communication control of the host will be explained with reference to a flowchart showing communication control of the host in FIG. In this system, all data communication between the host and No. 1 is performed by polling or selecting from the host. In other words, the host side takes the initiative in communication. If the host has data to be sent from its own host in step 100, the process proceeds to step 102 and generates a transmission frame as shown in FIG. In this case, priority is given to the setting value of the address setting section 501 of the node section as the source address 203, and the setting value of the address setting section 501 of the communication node 100 is given priority.
The setting address of 1 is sent as the source address 203. In data communication between the host and No. 1, unlike packet communication between nodes, which will be described later, all data that needs to be sent and received is transmitted at once. Subsequently, in step 104, a selecting frame shown in FIG. 3(B) is sent to the node. Then, in steps 106 and 108, it is monitored whether there is any received data (response) before timeout. If there is no received data, the process proceeds to step 122, where "E" is sent to the node.
OT" and returns to step 100 to perform selection again. In step 106, if there is received data, it is checked whether the received data is "ACK", and if it is not "ACK", the node prepares to receive data. In order to indicate that the data frame has not been completed, the process returns to step lOO and waits for reception preparation to be completed.If "ACK" is received, the process proceeds to step 11'2, sends the transmission data frame to the node, and then returns to step 100. A timeout is monitored at steps 114 and 116. In case of a timeout, the process proceeds to step 122 described above;
If the data has been received, the process proceeds to step 118 and checks whether the received data is "NAK".
In the case of "K", the transmitted frame was not correctly received by the node, so the transmitted frame is invalidated and the controller returns to Stella 7'112 to redo the communication control, and retransmits the transmitted data frame.If the received data is "NAK" ”, the process advances to step 120 to check whether there is an “ACK”, and if it is “ACK□’, the transmitted frame has been correctly captured by the node, so the process returns to step 100 and ends the data reception process, and “
If it is not “A CK”, the process goes to step 122 and “E
Send OT"" and return to step lOO. If there is no data sent from the host in step 100, the process proceeds to step 130, and the node is sent to the node as shown in FIG. 3(A).
Send the polling frame shown in step 132.
In step 134, wait for a response from the node until timeout. If there is no response, the process returns from step 134 to step 100. If there is a response, the process proceeds to step 136.
If it is an "EOT" response, it indicates that there is no data to be sent from the node to the host, so the process returns to step 100.If "EOT" is not received, a data frame is sent from the node. The received data frame is received in step 13g.Then, Stella 7'140 checks whether there is a reception error in the received frame using the data frame check code (BCC check code) 207.Reception If there is an error, proceed to step 142 and write “” to the node.
NAK''' is sent, the received frame is invalidated in step 144, and the process returns to step 132 to wait for the retransmission of the data frame. If the frame is correctly received in step 140, the process proceeds to step 146 and the node is sent to the node. ACK” is sent,
Subsequently, in steps 148 and 150, whether or not "E OT" is received is monitored until timeout. If the ACK'' code is correctly sent to the node and the data communication ends normally, the node sends the ``EOT'' code, and the process returns from step 148 to step 100 to prepare for the next data communication. If the "E OT" code is not sent and a timeout occurs, data communication will not be performed normally for some reason, and steps 150 and 152 will be performed.
Then, the received data is invalidated and the process returns to step Zoo. In the above explanation, when sending data to another host connected to the same node, the destination address 202
By specifying the own node address as , data can be sent from a host to another host via the node. Next, the communication control on the node side of node-host communication is
This will be explained with reference to the flowchart shown in the figure. A node starts operating upon activation (polling/selection) from the host. First, in step 200, the carrier detection unit 523 determines whether a carrier has been sent from the host.
Monitor by output, and if carrier is detected, step 2
00, the process proceeds to step 202, and the subsequently sent data is received. Then, in step 204, it is checked whether or not the received data is a selecting frame. If it is a selecting frame, the process proceeds to step 206, and it is checked whether the node can receive data from the corresponding host. If the data cannot be received, in step 208, "NAK'' is returned and the process returns to step 200. Step 2 in case of data reception Irf
Proceed to step 10 and return A CK”, then step 212, 2
14, it monitors for data to be received until timeout. In case of timeout, the process returns to step 200. When the data is sent, step 212 starts with step 2.
16, the data frame is received into the reception buffer 521. When the data reception is completed, in step 218,
Received frame check code (BCC code) 207
Check whether a reception error has occurred in the received frame. If there is no reception error, proceed to step 220, and A
CK'', completes the data reception process, prepares for transmission to the destination specified by the destination address 202, and returns to step 200. If there is a data reception error, the process proceeds to step 222;
It responds with "NAK", invalidates the received frame, returns to step 212, and waits for another frame to be sent. If it is determined in step 204 that a selecting frame has not been received, the process proceeds to step 226 to check whether the received data is a polling frame. If it is not a polling frame, the process returns to step 200. If it is a polling frame, proceed to step 230;
It is checked whether there is data to be sent from the node to the host, and if there is no data to be sent, the process advances to step 246 and "'E
OT'", and then returns to step 200. If there is data to be sent, a frame addressed to the host is sent in step 232, and then a response to the sent frame is waited for in steps 234 and 236. If there is no response until timeout If there is a response, the process proceeds to step 246, and if there is a response, it is checked in step 238 whether or not the response is 'NAK'. In the case of ""NAK", the process returns from step 238 to step 232, and the frame addressed to the host is sent again. If the received data is not "NAK", the process advances to step 240, and it is determined whether the received data is an "ACK'" response or not. If the response is "ACK", the frame was sent correctly, so the transmitted frame is erased in step 242, the process proceeds to step 246, "EOT" is sent, and the process returns to step 200.
Return to If the response is not "ACK" in step 240, it is determined that a communication error has occurred and the process proceeds to step 246, where the transmitted frame is not erased. In the above explanation, data exchange between a node and a host is all done in one communication, but in the communication between a node and No. 1 described below, the data is divided into smaller than a specified amount and divided into multiple times. Therefore, when all of the divided and sent data has been sent and received, communication between the destination node contending hosts is performed. Communication control between each node will be described below with reference to flowcharts shown in FIGS. 8(A) to 8(C). All communication between each node 1 is performed using a bucket frame shown in the second r54. First, in step 300 of FIG. 8(A), the carrier detection unit 523 checks whether a carrier is detected from the eight communication media. If a carrier is detected, a packet is subsequently sent, so in step 302 it is checked whether or not the carrier from the communication medium 100a in FIG. 4 has been detected by the transmission circuit A304. In this case, the process proceeds to “reception A” shown in FIG. 8(B), which will be described later, and the carrier from the communication medium
If it is detected in step 505, the process proceeds to the 81st m(C) "receiving B" process. If no carrier is detected in either step 300, the process advances to step 308 to check whether there is data to be transmitted to another node, and if there is no data to be transmitted, the process returns to step 300 to detect reception of data or request transmission. Loop until occurrence. If there is transmission data in step 308, step 3
Proceed to step 10 to check whether the destination node address is greater than the own node address. In this system, each node address is shown in Figure 4.

【(トランシーバA302側への
接続ノードアドレス)<(自ノードアドレス)<(’)
ランシーパB 303 (Illへの接続ノードアドレ
ス)】となる様に設定しているため送信パケットをどち
らの送信媒体より送出するかを判定するためである。 ステップ310で宛先アドレス202が自ノードより小
であれば通信媒体の100a側に送信すればよいことに
なり、ステップ312で伝送回路A304の送信バッフ
ァ511にパケットヲセリトン、ステップ314でトラ
ンシーバA302より送信パケットを送信し、ステップ
300に戻る。 ステップ310で宛先アドレス202が自ノードアドレ
スより大であった時は通信媒体の100b側に送信すれ
ばよいことになり、ステップ316とステップ318に
おいてステップ312.314と同様に、伝送回路B5
05、トランシーバB503よリパケットを送信してス
テップ300に戻る。 続いて受信処理について説明する。 送信媒体100aよりキャリアが検出されると前述の如
く第8図(B)に示す“受信A ”処理に進む。 まずステップ320で通信媒体100aよりの受信パケ
ットをトランシーバA302を介して伝送回路A304
の受信バッファ521に受信する。そしてステップ32
2において受信エラーが発生したか台かをチェックコー
ド207により判定する。受信エラーが発生していれば
ステップ324に進み、伝送回路A304より“N A
 K ”パケットを送信するべく準備をし、ステップ3
26で受信バッファ521への格納データを無効として
ステップ300に戻る。 ステップ322で受信エラーの発生していない場合には
ステップ330に進み、第5図の受信回路520よりア
ドレスレジスタ522に格納されたアドレスデータ値と
アドレス設定部501の値とを比較部524にて比較し
、受信パケットが自ノード宛“A CK ”パケットか
否か調べ、自ノード宛“ACK”°パケットの場合には
ステップ332で該当するパケットの送信が終了したこ
とになるため該当するパケットをクリアし、ステツブ3
34で受信八ツファをクリアしステップ300に戻る。 ステップ330で自ノード宛°“ACK”パケットでな
かった場合にはステップ336に進み、ステップ320
と同様にして比較tfB524にて自ノード宛“NAK
″゛パケットか否か調べる。自ノード宛“NAK’”パ
ケットの場合にはステップ338に進み、該当するパケ
ットを再送すべく送信sssを行ないステップ334に
進む。 以上の説り1での’ A CK ”パケットと’ N 
AK’”パケットは、第2[fflに示す伝送コマンド
204にて“A CK ”パケット、N A K ”パ
ケットの指定が行なわれる。 この伝送コマンドは2バイトで構成され、第1バイトは
ノード・ノード間通信の為のもので下記に示す表2の構
成よりなる。 表2 第2バイトはパケット送信元ノードとパケット宛先ノー
1間通信のためのものでその構成を表3に示す。 表3 さて、ステップ336で自ノード宛゛N A K ”パ
ケットでなかった場合にはステップ340に進み、他ノ
ード宛“ACK’”パケットか否か調べる。これはパケ
ット宛先ノードよりパケット送信元ノードに対して受信
パケットの正常/不正常を示す“A CK / N A
 K ”パケットの場合であり、これはパケットシーケ
ンス番号が連続しない場合等には再送を依頼するために
“N A K ”パケットを、正常に全ての通信が完r
した場合には”A CK ”パケットを送る場合である
。この場合には受信パケットに対する応答を打なわない
ため後述のステップ348に進む。 ステップ340で他ノード宛“ACK/NAK”パケッ
トでない場合にはステップ342に進み、比較部524
出力により受信パケットが自ノード宛データパケットか
否か調べ、自ノード宛データパケットであればステップ
344に進み、通信データの最後か否か調べる。通信デ
ータが最後であれば当該送信元ノードよりのデータ通信
が全て正常に終rしたためステップ346に進み、伝送
回路Aより送信元ノード“ACK””パケットの送信準
備をしてステップ300に戻り、準備した送信パケット
の送信を行なう。 通信データの最後でない場合にはステップ347に進み
、受信パケットに対する応答のため伝送回路A304よ
り’ A CK ”パケット送信準備を行なう、そして
ステップ348に進む、またステップ340で他ノード
宛“ACK/NAK”パケットであった場合も同様にス
テップ348に進み、ここで宛先アドレス202が自ノ
ードアドレスより大であるかを比較部524の出力によ
り調べる。自ノードアドレスより大である場合にはステ
ップ350に進み、受信パケットを伝送回路B505よ
り送信すべく送信準備をし、ステップ300に戻る。 宛先アドレス202が自ノードアドレスより小であれば
受信パケットを無効とし伝送回路B505には送信しな
い。そして同様にステップ300に戻る。これは通信媒
体toob側には自ノードアドレスより小のノードアド
レスを有するノードは存在しないためである。 また第8図(A)のステップ302においてキャリアの
検出されたのが伝送回路B505であった場合には第8
図(C)に示す“受信B”処理に進む。 “受信B ”処理においては“受信A 11と同様の処
理を伝送回路B505において行なう、しかし“受信A
 ”処理あステップ348以降の処理では、ステップ3
48同様比較部524で宛先アドレス202が自ノード
アドレスより大か否か調べるが、この場合には宛先アド
レス202が0ノードアドレスより小の場合に受信パケ
ットを伝送回路A304より送信すべく準備し、宛先ア
ドレス202が自ノードアドレスより大の場合に受信パ
ケットを無効とする。これは通信媒体100a側には自
ノードアドレスより大のノードアドレスを有するノード
は存在しないためである。 以Eの説明ではd!1値媒体100の接続、労敲を常閉
型リレーにて行ない、ノートの゛屯源のオン/オフによ
りリレー接点の開/閉を行なっていたが、ノードか実際
にネットワークに参人する場合で、例えば通信媒体−ヒ
のデータのない場合にリレー接点を間接し、伝送制御を
行なう様にすることによりノードの動作不良でデータの
転送が出来ない場合においてもネットワークに何らの悪
影響を与えない通信媒体の接続、分離、制御を行なうこ
とができる。 〔効果] 以ヒ説明した様に本発明によれば、ネットワーりを構成
している伝送装置の停止や電源断によってもネットワー
ク全体の制御が停止Fすることのない伝送装置が提供で
きる。
[(Connection node address to transceiver A302 side) < (own node address) <(')
Lancer B 303 (connection node address to Ill)] This is to determine from which transmission medium the transmission packet should be sent. If the destination address 202 is smaller than the own node in step 310, it is sufficient to send it to the communication medium 100a, and in step 312 the packet is sent to the transmission buffer 511 of the transmission circuit A304, and in step 314 from the transceiver A302. Send the transmission packet and return to step 300. When the destination address 202 is larger than the own node address in step 310, it is sufficient to transmit to the communication medium 100b side, and in steps 316 and 318, similarly to steps 312 and 314, transmission circuit B5
05, transceiver B 503 transmits a repacket and returns to step 300. Next, reception processing will be explained. When a carrier is detected from the transmission medium 100a, the process proceeds to the "reception A" process shown in FIG. 8(B) as described above. First, in step 320, a received packet from the communication medium 100a is sent to the transmission circuit A304 via the transceiver A302.
The received data is received in the receive buffer 521 of. and step 32
2, it is determined by the check code 207 whether a reception error has occurred or not. If a reception error has occurred, the process advances to step 324, and the transmission circuit A304 outputs “N A
K” prepare to send packet, step 3
In step 26, the data stored in the reception buffer 521 is invalidated and the process returns to step 300. If no reception error has occurred in step 322, the process proceeds to step 330, where the address data value stored in the address register 522 from the receiving circuit 520 in FIG. Then, it is checked whether the received packet is an "ACK" packet addressed to its own node. If it is an "ACK" packet addressed to its own node, the transmission of the corresponding packet is completed in step 332, so the corresponding packet is sent. Clear and step 3
At step 34, the reception eight buffer is cleared and the process returns to step 300. If it is determined in step 330 that the packet is not addressed to the own node, the process proceeds to step 336, and step 320
In the same way as tfB524, the “NAK” addressed to the own node is sent.
Check whether it is a ``'' packet. If it is a ``NAK'' packet addressed to the own node, proceed to step 338, perform SSS transmission to retransmit the corresponding packet, and proceed to step 334. ``A'' in explanation 1 above. CK ``Packet and'' N
The ``AK'' packet is specified as an ``ACK'' packet or a N AK '' packet in the transmission command 204 shown in the second [ffl. This transmission command consists of 2 bytes, the first byte is for node-to-node communication and has the structure shown in Table 2 below. Table 2 The second byte is for communication between the packet source node and the packet destination node 1, and its structure is shown in Table 3. Table 3 Now, if it is determined in step 336 that the packet is not addressed to the own node, the process proceeds to step 340, and it is checked whether it is an "ACK'" packet addressed to another node. “ACK/NA” indicates whether the received packet is normal or abnormal.
In this case, if the packet sequence numbers are not consecutive, a "N A K" packet is sent to request retransmission, and all communications are completed normally.
In this case, an "ACK" packet is sent. In this case, since no response is made to the received packet, the process proceeds to step 348, which will be described later. If it is determined in step 340 that the packet is not an "ACK/NAK" packet addressed to another node, the process proceeds to step 342, and the comparing unit 524
It is checked from the output whether the received packet is a data packet addressed to the own node, and if it is a data packet addressed to the own node, the process proceeds to step 344, where it is checked whether it is the last of the communication data. If the communication data is the last, all data communication from the source node has ended normally, so the process advances to step 346, where the transmission circuit A prepares to send the source node "ACK" packet and returns to step 300. The prepared transmission packet is transmitted. If it is not the end of the communication data, the process advances to step 347, and the transmission circuit A 304 prepares to transmit an 'A CK' packet in response to the received packet, and the process advances to step 348. If it is determined in step 340 that the packet is an "ACK/NAK" packet addressed to another node, the process similarly proceeds to step 348, where it is checked based on the output of the comparator 524 whether the destination address 202 is larger than the own node address. If it is larger than the own node address, the process proceeds to step 350, prepares to transmit the received packet from the transmission circuit B505, and returns to step 300. If the destination address 202 is smaller than the own node address, the received packet is invalidated and not transmitted to the transmission circuit B505. Then, the process returns to step 300 in the same manner. This is because there is no node on the communication medium toob side that has a node address smaller than its own node address. Further, if the carrier is detected in the transmission circuit B505 in step 302 of FIG. 8(A), the eighth
The process proceeds to "receiving B" shown in FIG. 3(C). In the "receiving B" process, the same processing as "receiving A 11" is performed in the transmission circuit B505, but the "receiving A
"Processing A In the processing after step 348, step 3
Similarly to No. 48, the comparison unit 524 checks whether the destination address 202 is larger than the own node address, but in this case, if the destination address 202 is smaller than the 0 node address, the received packet is prepared to be transmitted from the transmission circuit A 304, If the destination address 202 is greater than the own node address, the received packet is invalidated. This is because there is no node on the communication medium 100a side that has a node address larger than its own node address. In the following E explanation, d! The connection and operation of the single value medium 100 was performed using a normally closed relay, and the relay contact was opened/closed by turning on/off the power source of the notebook, but when a node actually participates in the network. For example, when there is no data on the communication medium, by connecting the relay contact and controlling the transmission, there will be no negative impact on the network even if the data cannot be transferred due to malfunction of the node. Connection, separation, and control of communication media can be performed. [Effects] As described below, according to the present invention, it is possible to provide a transmission device in which the control of the entire network does not stop even if the transmission devices constituting the network stop or the power is cut off.

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

第1図は本発明に係るネットワークシステム構成例を示
す図、 第2図(A)は本発明に係るネットワークシステムでの
パケット通信フレームを示す図、第2図(B)は第2図
(A)に示すパケットフレームのアドレス部の詳細を示
す図、 第3図(A)は本発明に係るネットワークシステムの伝
送装置とホスト間通信におけるポーリングフレームをボ
す図1 、A31N(B)は本発明に係るネットワークシステム
の伝送装置とホスト間通信におけるセレクテイングフレ
ームを示す図、 第4図は本発明に係るネットワークシステムの実施例伝
送装置のブロック構成図、 第5図は第4図に示す実施例伝送装置の伝送回路部の詳
細を示す図、 第6図は本実施例伝送装置接続のホストの通信制御フロ
ーチャート、 第7図は本実施例伝送装置の接続ホストとの通信制@を
示すフローチャート、 第8図(A)〜(C)は本実施例伝送装置相互間の通信
制御手順を示すフローチャートである。 図中、100.100a、100b、 ・−通信媒体、
lO1〜105.300・・・ノード、111 N11
4,401〜404・・・ホスト、301・・・回線接
続制御部、302,303・・・トランシーバ、304
,305,322,332,342,352,500・
・・伝送回路、30B、321,331,341,35
1,501・・・アドレス設定部、310・・・制御部
、323,333,343,353・・・伝送インタフ
ェース、502・・・インタフェース部、 510・・
・送信回路、511・・・送信八ツファ、520・・・
受信回路、521・・・受信八ツファ、522・・・ア
ドレスレジスタ、523・・・キャリア検出部、524
・・・比較部である。 第1図 第2図 (A) 第3図 (A) 第3図 (B)
FIG. 1 is a diagram showing an example of a network system configuration according to the present invention, FIG. 2 (A) is a diagram showing a packet communication frame in the network system according to the present invention, and FIG. ), FIG. 3(A) shows the polling frame in communication between the transmission device and the host of the network system according to the present invention, and FIG. 3(B) shows the details of the address part of the packet frame shown in FIG. FIG. 4 is a block diagram of a transmission device according to an embodiment of the network system according to the present invention, and FIG. 5 is an embodiment shown in FIG. 4. A diagram showing details of the transmission circuit section of the transmission device, FIG. 6 is a communication control flowchart of the host connected to the transmission device of this embodiment, FIG. 7 is a flowchart showing the communication system @ of the transmission device of this embodiment with the connected host, FIGS. 8(A) to 8(C) are flowcharts showing communication control procedures between the transmission devices of this embodiment. In the figure, 100.100a, 100b, - communication medium,
lO1~105.300...Node, 111 N11
4,401-404...Host, 301...Line connection control unit, 302,303...Transceiver, 304
,305,322,332,342,352,500・
...Transmission circuit, 30B, 321, 331, 341, 35
1,501... Address setting section, 310... Control section, 323, 333, 343, 353... Transmission interface, 502... Interface section, 510...
・Transmission circuit, 511... Transmission eight-fa, 520...
Receiving circuit, 521... Reception eight buffer, 522... Address register, 523... Carrier detection section, 524
...This is the comparison section. Figure 1 Figure 2 (A) Figure 3 (A) Figure 3 (B)

Claims (2)

【特許請求の範囲】[Claims] (1)複数の伝送装置を通信媒体を介して直列に接続し
てデータ伝送を行なうネットワークシステムの前記伝送
装置であって、他の伝送装置と接続の通信媒体同士を分
離接続する通信媒体接続手段を備え、該通信媒体接続手
段は伝送装置が停止している時は前記通信媒体同士を接
続し、前記伝送装置が稼動しているときは前記通信媒体
同士を分離する様制御することを特徴とする伝送装置。
(1) The transmission device of a network system in which a plurality of transmission devices are connected in series via communication media to perform data transmission, and the communication medium connection means separates and connects the communication media connected to other transmission devices. characterized in that the communication medium connecting means controls to connect the communication media to each other when the transmission device is stopped, and to separate the communication media from each other when the transmission device is in operation. transmission equipment.
(2)通信媒体接続手段は電磁リレーより成り、常時閉
接状態であり、伝送装置の電源投入により間接状態とな
ることを特徴とする特許請求の範囲第1項記載の伝送装
置。
(2) The transmission device according to claim 1, wherein the communication medium connection means is composed of an electromagnetic relay, is always in a closed state, and becomes an indirect state when the power of the transmission device is turned on.
JP5740984A 1984-03-27 1984-03-27 Transmitter Pending JPS60201757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5740984A JPS60201757A (en) 1984-03-27 1984-03-27 Transmitter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5740984A JPS60201757A (en) 1984-03-27 1984-03-27 Transmitter

Publications (1)

Publication Number Publication Date
JPS60201757A true JPS60201757A (en) 1985-10-12

Family

ID=13054843

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5740984A Pending JPS60201757A (en) 1984-03-27 1984-03-27 Transmitter

Country Status (1)

Country Link
JP (1) JPS60201757A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5336117A (en) * 1976-09-16 1978-04-04 Fujitsu Ltd Circuit connection system
JPS5392603A (en) * 1977-01-25 1978-08-14 Mitsubishi Electric Corp Line branching unit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5336117A (en) * 1976-09-16 1978-04-04 Fujitsu Ltd Circuit connection system
JPS5392603A (en) * 1977-01-25 1978-08-14 Mitsubishi Electric Corp Line branching unit

Similar Documents

Publication Publication Date Title
US5519693A (en) High speed transmission line interface
US5371897A (en) Method for requesting identification of a neighbor node in a data processing I/O system
US7502992B2 (en) Method and apparatus for detecting presence of errors in data transmitted between components in a data storage system using an I2C protocol
US6665275B1 (en) Network device including automatic detection of duplex mismatch
US4352103A (en) Industrial control system
US20020087763A1 (en) Communication sytem with a communication bus
JPH09130408A (en) Network interface device
JPH0769545A (en) Multiplexer and switching method of its output
CN114884767B (en) Synchronous dual-redundancy CAN bus communication system, method, equipment and medium
JPS60201757A (en) Transmitter
JP2003140704A (en) Process controller
JP2925679B2 (en) Relay device
JPS60201760A (en) Data transmission system
JP3217086B2 (en) Message Communication Method between Standby Controller and Message Device in Redundant System
JPH0354909B2 (en)
JPS63267039A (en) Network system
JPS6354845A (en) Communication control equipment
JPS60201759A (en) Data transmission system
JP2605507B2 (en) Data restoration method
JPS63246055A (en) Packet transmitter-receiver
JPH0753145A (en) Method and device for jamming bus
JPH0635816A (en) Multi-cpu sustem
JPH02238744A (en) Communication system
JPS60201758A (en) Data transmission system
JPH05252172A (en) Switching method for duplex bus and node device