Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0640642B2 - Network control method - Google Patents
[go: Go Back, main page]

JPH0640642B2 - Network control method - Google Patents

Network control method

Info

Publication number
JPH0640642B2
JPH0640642B2 JP60124127A JP12412785A JPH0640642B2 JP H0640642 B2 JPH0640642 B2 JP H0640642B2 JP 60124127 A JP60124127 A JP 60124127A JP 12412785 A JP12412785 A JP 12412785A JP H0640642 B2 JPH0640642 B2 JP H0640642B2
Authority
JP
Japan
Prior art keywords
transmission
node
token
network
address
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.)
Expired - Lifetime
Application number
JP60124127A
Other languages
Japanese (ja)
Other versions
JPS61283251A (en
Inventor
貢司 高尾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP60124127A priority Critical patent/JPH0640642B2/en
Publication of JPS61283251A publication Critical patent/JPS61283251A/en
Publication of JPH0640642B2 publication Critical patent/JPH0640642B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は通信権委譲命令であるトークンにより通信権を
委譲するトークンバス方式のネツトワークシステムにお
ける網制御方式に関するものである。
The present invention relates to a network control method in a token bus type network system for transferring a communication right by a token which is a communication right transfer instruction.

[従来の技術] 近年、一本の伝送路を共通して多数の通信制御装置(以
下ノードと称す)を接続し、これらノード間でデータ通
信を行なうローカルエリアネツトワークシステム、いわ
ゆる“LAN”が盛んである。LANにおける種々の通
信方式の中で、トークンパツシング方式はネツトワーク
が高トラヒツク状態でも均等に全ノードに通信サービス
を行なうことができ、それ故伝送効率の低下を招かない
という点で特にすぐれたものである。
[Prior Art] In recent years, a local area network system, so-called "LAN", in which a large number of communication control devices (hereinafter referred to as nodes) are commonly connected to one transmission line and data communication is performed between these nodes, has been developed. It is flourishing. Among various communication methods in the LAN, the token passing method is particularly excellent in that the communication service can be uniformly provided to all the nodes even when the network is in a high traffic state, and therefore the transmission efficiency is not deteriorated. It is a thing.

このLANのシステム構成例を第2図に示す。An example of the system configuration of this LAN is shown in FIG.

図中1は伝送路100〜160はLANを構成する各ノ
ードA〜Gである。各ノードA〜G(100〜160)
にはそれぞれ伝送情報の処理を行なうホストA〜G(2
00〜260)が接続されている。このように一般にバ
スLANでは一本の伝送路を共用している為、各ノード
での発信を無管理で許すと、同時に2つ以上のノードか
ら送信が行なわれる状態が起こり、伝送路上のデータが
混信するいわゆる“衝突”現象が生じる。
In the figure, reference numeral 1 denotes transmission lines 100 to 160, which are nodes A to G constituting a LAN. Each node A to G (100 to 160)
Host A to G (2
00 to 260) are connected. In this way, in general, one transmission line is shared in the bus LAN. Therefore, if transmission is permitted without control at each node, a state occurs in which transmission is performed from two or more nodes at the same time, and data on the transmission line is transmitted. A so-called "collision" phenomenon occurs in which the two interfere with each other.

これを防ぐための一つの方式としてトークンパツシング
方式がある。トークンパツシング方式ではこれに対し
“トークン”なる送信権委譲命令を伝送路を介して、各
ノード間で交換し合い、トークンを受信したノードのみ
が発信する権利(送信権)を獲得する取極としておき、
このトークンを受信したノードは必要があれば(例えば
ホストよりの送信要求があれば)送信処理等の一連の通
信処理をその時点で行い、この処理が終了した時や、あ
るいは全く送信処理の必要がない時は、次にトークンを
委譲すべきノードにトークンを渡す(送信する)という
方法をとつて衝突現象を防いでいる。
One method for preventing this is the token passing method. In the token passing method, on the other hand, an arrangement for exchanging transmission right delegation commands called "tokens" between nodes via a transmission line and acquiring the right (transmission right) to be transmitted only by the node that received the token. As
The node that received this token performs a series of communication processing such as transmission processing at that point if necessary (for example, if there is a transmission request from the host), and when this processing is completed, or no transmission processing is necessary. When there is no token, the collision phenomenon is prevented by passing (transmitting) the token to the node to which the token should be delegated next.

“トークン”は、この様にして送信要求のあるノードで
の送信処理が終了する毎に次のノードに渡されてネツト
ワーク内のノード間に順次巡回されてゆき、ネツトワー
ク内の各構成ノードでは均等に送信権獲得の機会、即ち
通信サービスの機会が与えられるわけである。
The "token" is passed to the next node every time the transmission processing is completed at the node that has made a transmission request in this way, and is sequentially circulated among the nodes in the network, and each constituent node in the network. In this way, the opportunity for acquiring the transmission right, that is, the opportunity for the communication service is equally given.

この様にトークンパツシング方式はトークンコードを媒
体としてネツトワーク内の全ノードが同期をとり衝突も
なく通信を行ない得る。
In this way, in the token passing system, all nodes in the network can synchronize with each other and communicate without collision using the token code as a medium.

他方、ネツトワーク方式として古くから存在するCSMA/C
D(Carrier Sense Multiple Access/Collision Detectio
n)方式では送信データの衝突が生じる事を前提としてお
り、各ノードに伝送路1上にデータの送出されていない
限りランダムに送信を許し、データの衝突が生じた場合
においては一定間隔をもつて送信の再試行を行なうと言
う方法をとつており、データ通信量の多いシステムでは
衝突が多発し、通信効率を損なっていた。
On the other hand, CSMA / C, which has existed for a long time as a network method
D (Carrier Sense Multiple Access / Collision Detectio
The n) method is based on the premise that transmission data will collide, and will allow each node to send data randomly unless data is sent out on the transmission path 1. In the case of data collision, there is a fixed interval. Then, the transmission is retried, and in a system with a large amount of data communication, collisions frequently occur and communication efficiency is impaired.

トークン方式はこの意味で同期型通信方式、またCSM
A/CD方式は非同期型通信方式ということができ、デ
ータ通信量の多いLANにおいてはCSMA/CD方式
は不向きであり、トークン方式が適しているといえる。
In this sense, the token system is a synchronous communication system, and also CSM.
The A / CD system can be called an asynchronous communication system, and the CSMA / CD system is not suitable for a LAN with a large amount of data communication, and the token system can be said to be suitable.

トークンの巡回制御は、ネツトワークの形状と関連して
“トークンリング”方式と“トークンバス”方式の2つ
の方式があるが、トークンバス方式においては、通常、
伝送を単一の線状導体で形成しており、1つのノードよ
り送信された伝送データは、殆ど同時にネツトワークの
伝送路(第2図伝送路1)に接続された他の全てのノー
ドに受信される。そこで前述のトークン命令も含めて伝
送するデータの先頭には必ず相手先ノードアドレスが附
されており、これを各ノードに固有に割当てられたアド
レス値と比較して、自ノードに割当てられたノードアド
レスと一致した場合に、その伝送データを自ノード宛の
データとして取り込むか、あるいは無差別に伝送データ
を取り込んだ後で、上記アドレス比較を行ない、一致し
た時初めて正式の自ノード宛受信データとして扱う。
There are two types of token circulation control, a "token ring" system and a "token bus" system, depending on the shape of the network.
Transmission is formed by a single linear conductor, and transmission data transmitted from one node is transmitted to all other nodes connected to the network transmission line (transmission line 1 in FIG. 2) almost at the same time. Be received. Therefore, the destination node address is always added to the beginning of the data to be transmitted including the above token command, and this is compared with the address value uniquely assigned to each node, and the node assigned to the own node When it matches the address, the transmission data is taken as the data addressed to the own node, or after the transmission data is indiscriminately taken, the above address comparison is performed, and when it matches, the data is officially addressed to the own node. deal with.

このトークンバス方式においては、あるノードが次にト
ークンを渡すべきノード(下流ノード)とは、一般に
「自ノードアドレスの最も近くかつ小なる(あるいは大
なる)アドレス値をもつノード。但し、最小値(あるい
は最大値)アドレスのノードに対しては、最大(あるい
は最小)のアドレス値をもつノード」と定義されてい
る。
In this token bus system, a node to which a token should be passed next (downstream node) is generally "a node that is the closest to its own node address and has a small (or large) address value. A node having a maximum (or minimum) address value is defined as a node having a (or maximum value) address.

第3図に第2図に示すLANのトークン巡回例を示す。
上述括弧内の動作による場合はトークンの巡回方向は逆
転するだけである。また、ネツトワーク内に故障あるい
はパワーダウンによる動作不可能ノードが存在する場
合、これらを巧みに避けてトークンの巡回を行なわしめ
る必要がある。即ち、動作不可能ノードがあれば、この
ノードをネツトワーク構成より外し、トークンの巡回リ
ングより外し(即ち縮退運転し)、トークンを以後渡す
べきノードとして別の適当なノードを選別し、これに切
り換える事が必要となる。第2図に示すシステムにおい
て例えばノードB110とノードF150が動作不可能
ノードである場合のトークンの巡回例を第4図に示す。
FIG. 3 shows an example of token circulation in the LAN shown in FIG.
In the case of the operation in parentheses, the token circulation direction is only reversed. In addition, if there are inoperable nodes due to a failure or power down in the network, it is necessary to skillfully avoid them and perform token circulation. That is, if there is an inoperable node, remove this node from the network configuration, remove it from the token cyclic ring (that is, perform degenerate operation), select another appropriate node as the node to which the token should be passed thereafter, and select it. It is necessary to switch. FIG. 4 shows an example of token circulation when the node B 110 and the node F 150 are inoperable nodes in the system shown in FIG.

図示の如く動作不可ノードを避けながらトークンを巡回
させる事が必要である。さて、トークンの巡回を開始す
るに当つては、ネツトワーク中のいずれかのノードでト
ークンを発生し、そしてこれを次のノードへ渡す動作が
必要である。これについては一般のトークンバス方式の
ネツトワークシステムにおいては、スタートアツプ時、
もしくはトークン消失時に、トークンを各ノードで発生
し、引き続いてデータ伝送が可能な様に自由にトークン
を送信する事を許す手法をとる。ここで、当然の事なが
らネツトワーク伝送路1上でトークンの衝突が生じ得
る。
As shown in the figure, it is necessary to circulate the token while avoiding the inoperable node. Now, in order to start the token circulation, it is necessary to generate a token at any node in the network and pass it to the next node. Regarding this, in the general token bus type network system, at the time of start-up,
Alternatively, when the token disappears, a token is generated at each node, and the token is allowed to be transmitted freely so that data can be transmitted subsequently. Here, as a matter of course, a token collision may occur on the network transmission line 1.

そこで、各ノードに固有のアドレス値等を用いて、予め
一定の時間差をつけてトークンの送信を行なわしめ、こ
の他のノードとの送出トークンの衝突を回避する手法が
とられる。この従来のノードアドレスに対するトークン
の送信許可タイミングを第5図に示す。
Therefore, a method is adopted in which tokens are transmitted with a certain time difference in advance by using an address value or the like unique to each node, and collision of a transmission token with other nodes is avoided. FIG. 5 shows the token transmission permission timing for this conventional node address.

第5図においてはアドレス値の最も小なる(アドレス
“1”)ノードG160がまだ動作不可能であれば次の
アドレス値(アドレス“2”)のノードであるノードF
150からトークンが初めて送出されネツトワークシス
テム上に巡回される。
In FIG. 5, if the node G160 having the smallest address value (address "1") is still inoperable, the node F having the next address value (address "2") is the node F.
The token is first sent from 150 and circulated on the network system.

アドレス“1”、アドレス“2”のノードが動作不可能
状態ならばアドレス“3”のノードであるノードE14
0からトークンが初めて送出される。この様にしていず
れか1つのノードよりトークンが最初に送出され、送出
トークンがネツトワークを巡回し始める事になる。
If the nodes with the addresses "1" and "2" are inoperable, the node E14 that is the node with the address "3"
The token is sent for the first time from 0. In this way, the token is first transmitted from any one node, and the transmitted token starts to circulate the network.

[発明が解決しようとする課題] 上述した従来の技術においては各ノードの時間経過に対
する認識が全く一致して初めて成功し得るものである
が、実際には時間差をとつて送出したはずのトークンが
他のノードの出したトークンと衝突する事が起こり得、
その対策として前述の非同期型通信方式であるところの
CSMA/CD方式に同じく衝突検知器を備え、トーク
ンの発信で衝突が生じた際に再試行を行なわしめると言
う苦肉の策を取る事になる。
[Problems to be Solved by the Invention] In the above-mentioned conventional technology, the recognition of the passage of time of each node can be succeeded only when the tokens coincide with each other. It is possible to collide with tokens issued by other nodes,
As a countermeasure, the CSMA / CD system, which is an asynchronous communication system described above, is also equipped with a collision detector, so that a retry is performed when a collision occurs in the token transmission, and a painstaking measure is taken.

またノードアドレスの小なるノードが動作不可又は接続
されていない場合には、無駄な時間が経過する(伝送効
率の低下を招く)ことになる。
Further, when a node having a small node address is inoperable or is not connected, useless time elapses (results in deterioration of transmission efficiency).

以上の事情は、いかにトークンパツシング方式のネツト
ワークと言えどもトークンが巡回した時点で初めて同期
型通信形態となり得るものであり、ここに至るまでの過
程はやはり非同期的手段に頼らざるを得ない事を示して
いる。そしてこの非同期的な処理動作がかなりの割合を
占め、制御を非常に複雑なものとしている。
Even if the token passing system is a network, it is possible that the token communication will not be synchronized until the token circulates. It shows a thing. And this asynchronous processing operation occupies a considerable proportion, which makes the control very complicated.

そこで以上の点に鑑み、特開昭60−87534号公報
のように、ネツトワーク内にトークンの発生及び移譲を
制御する管理局を設け、管理局が1つのノードへトーク
ンを移譲後、所定時間が経過してもトークンが返送され
てこない時、新たにトークンを生成し、次のノードへト
ークンを送出することでトークン紛失時に速やかにトー
クンの生成を行うようにしたものが知られている。
Therefore, in view of the above points, as in Japanese Patent Laid-Open No. 60-87534, a management station that controls the generation and transfer of tokens is provided in the network, and after the management station transfers the token to one node, a predetermined time is passed. It is known that when the token is not returned even after the lapse of time, a new token is generated and the token is transmitted to the next node to promptly generate the token when the token is lost.

しかしながら、前記特開昭60−87534号公報に開
示の技術は、トークンの移譲の際、常に管理局を介さな
ければならず、トークン移譲に時間がかかり、通信効率
が悪いといつた欠点があつた。
However, the technique disclosed in Japanese Patent Laid-Open No. Sho 60-87534 has a drawback that the transfer of the token must always go through the management station, which takes time to transfer the token and the communication efficiency is poor. It was

[課題を解決するための手段] 本発明は上述の課題を解決することを目的としてなされ
たもので、上述の課題を解決する一手段として以下の構
成を備える。
[Means for Solving the Problems] The present invention has been made for the purpose of solving the above problems, and includes the following configuration as one means for solving the above problems.

即ち、通信媒体により複数の伝送装置を互いに接続して
通信権移譲命令であるトークンにより通信権を獲得した
伝送装置が送信権を得るネツトワークシステムの網制御
方式において、ネツトワークシステム内に異常が発生し
トークンが紛失した時に、ネツトワークを構成する伝送
装置のうちの唯一の特定伝送装置が新規のトークンの発
生を可能とし、 前記特定伝送装置は、自装置のアドレス値を初期値と
し、当該初期値から順に1つづつアドレス値をずらし宛
先アドレスを設定する宛先アドレス設定手段と、前記宛
先アドレス設定手段により設定されたアドレス値を固有
のアドレス値とする伝送装置に対して、該伝送装置が動
作可能であるか否かを調べるための伝送フレームを送信
する送信手段と、前記送信手段による送信フレームの送
信後伝送フレームを送信した伝送装置から応答信号が返
送されてくると、前記伝送フレームを送信した伝送装置
のアドレス値をネツトワーク構成テーブルに記憶する記
憶手段と、前記宛先アドレス設定手段によるアドレス値
の設定、前記送信手段による伝送フレームの送信、及び
前記記憶手段へのアドレス値の記憶を全ての伝送装置に
対して繰り返し実行する制御手段と、 前記ネツトワーク構成テーブルに記憶されているアドレ
ス値をネツトワークを構成する複数の伝送装置へ通知す
る通知手段と、新規にトークンを発生し、前記ネツトワ
ーク構成テーブルに記憶されているアドレス値に基づき
トークンを送出するトークン送出手段とを備え、 前記ネットワークを構成する複数の伝送装置のそれぞれ
は、トークンを移譲する際、前記特定伝送装置から通知
されたネツトワーク構成テーブルの内容に基づきトーク
ンを他の伝送装置へ送出する構成により達成される。
That is, in a network control method of a network system in which a transmission device that obtains a communication right by a token that is a communication right transfer command by connecting a plurality of transmission devices to each other via a communication medium obtains a transmission right, an error occurs in the network system. When the generated token is lost, the only specific transmission device among the transmission devices that make up the network enables the generation of a new token, and the specific transmission device uses the address value of its own device as an initial value, For the destination address setting means for setting the destination address by shifting the address values one by one from the initial value, and for the transmission apparatus having the address value set by the destination address setting means as the unique address value, the transmission apparatus is Transmitting means for transmitting a transmission frame for checking whether or not it is operable, and after transmitting the transmission frame by the transmitting means When a response signal is returned from the transmission device that transmitted the transmission frame, storage means for storing the address value of the transmission device that transmitted the transmission frame in a network configuration table, and setting of the address value by the destination address setting means A control means for repeatedly executing transmission of a transmission frame by the transmission means and storage of an address value in the storage means for all transmission devices; and an address value stored in the network configuration table And a sending means for sending a token based on an address value stored in the network configuration table, and a notification means for sending a notification to a plurality of transmission devices constituting the network. Each of the plurality of transmission devices that A token based on the content of the notified the net work configuration table is achieved by the configuration to be sent to another transmission apparatus from.

[作用] 以上の構成において、トークンの紛失時には、特定の伝
送装置が全ての伝送装置の状態を調べ、それを全ての伝
送装置に通知して新たにトークンを生成し、送出するの
で、トークンの紛失があつても、ネツトワークの再構築
を確実に行うことがでる。
[Operation] In the above configuration, when the token is lost, the specific transmission device checks the states of all the transmission devices, notifies all the transmission devices, and newly generates and sends the token. Even if it is lost, the network can be reliably reconstructed.

さらに、この結果、通常のトークン移譲をネツトワーク
を構成する伝送装置間で直接行うことが可能となり、ト
ークンの移譲を時間をかけることなく、迅速に行うこと
ができる。
Further, as a result, the normal token transfer can be performed directly between the transmission devices constituting the network, and the token transfer can be performed quickly without taking time.

[第1実施例] 以下、図面を参照して本発明の一実施例を詳細に説明す
る。
First Embodiment Hereinafter, one embodiment of the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例のノードのブロツク図であ
り、第2図に示すネツトワークシステムを構成してい
る。第2図の説明については上述してあるため省略す
る。
FIG. 1 is a block diagram of a node according to an embodiment of the present invention, which constitutes the network system shown in FIG. The description of FIG. 2 is omitted because it has been described above.

第1図中1はLANのネツトワーク伝送路、2は伝送制
御装置であるノード、3はノード2に接続される各種コ
ンピユータ機器や事務機器(以下ホストと称す)であ
る。
In FIG. 1, 1 is a network transmission line of a LAN, 2 is a node which is a transmission control device, and 3 is various computer equipment and office equipment (hereinafter referred to as a host) connected to the node 2.

ノード2は伝送路1との間でデータ通信を行う送信回路
12、及び受信回路11、受信回路11での受信データ
がトークンか否かを判別するトークン判別回路4、ノー
ドの全体制御及び送信データの加工や受信データの解
読、分解や通信動作のタイミング制御等を行なう制御部
(以下CPUと称す)5、送受信データ、CPU5の制
御手順等を蓄積するメモリ回路6、ホスト3との間のイ
ンタフエース回路7、各ノードに固有のアドレス番号
(ノードアドレス)を設定するスイッチ等で構成される
アドレス設定部8、ネツトワークの各構成ノードのアド
レス情報等のネツトワーク構成を記憶するネツトワーク
構成テーブル9、宛先アドレス判別回路13より構成さ
れている。
The node 2 is a transmission circuit 12 that performs data communication with the transmission path 1, a reception circuit 11, a token determination circuit 4 that determines whether or not the reception data in the reception circuit 11 is a token, the overall control of the node and the transmission data. Control unit (hereinafter referred to as CPU) 5 for processing data, decoding received data, disassembling, timing control of communication operation, etc., memory circuit 6 for storing transmission / reception data, control procedure of CPU 5, interface with host 3. Ace circuit 7, address setting unit 8 including a switch for setting a unique address number (node address) for each node, network configuration table for storing network configuration such as address information of each configuration node of the network 9 and a destination address discriminating circuit 13.

アドレス設定部8に設定されたアドレス値、及びネツト
ワーク構成テーブル9のノード情報はCPU5により読
み出され、送受信時の宛先アドレス、送信元アドレス等
として利用される。
The address value set in the address setting unit 8 and the node information in the network configuration table 9 are read by the CPU 5 and used as a destination address, a source address, etc. during transmission / reception.

また、後述するマスタノードには鎖線で示すタイマ回路
10が備えられており、一定時間トークンが検出されな
い時はその旨をCPU5に報知する。
Further, a master node described later is provided with a timer circuit 10 shown by a chain line, and when a token is not detected for a certain period of time, it notifies the CPU 5 of that fact.

ホスト3により送信すべきデータは、受信回路11で自
ノード宛のトークンを受信し、送信権を獲得した時に初
めて送信回路12を介して伝送路1に送出することがで
きる。
The data to be transmitted by the host 3 can be transmitted to the transmission line 1 via the transmission circuit 12 only when the reception circuit 11 receives the token addressed to the own node and acquires the transmission right.

伝送すべきデータは一旦ノード2内のメモリ回路6に蓄
えられ、通信データとしての適切なるフオーマツト化
(パケツト化)がなされ、ネツトワーク構成テーブル9
よりの送信先ノードアドレスを宛先アドレス値、アドレ
ス設定回路8の設定値を送信元アドレスとして付加した
後、伝送路1に送出する。
The data to be transmitted is temporarily stored in the memory circuit 6 in the node 2 and is converted into an appropriate format (packet) as communication data.
The destination node address is added as the destination address value, and the setting value of the address setting circuit 8 is added as the source address, and then sent to the transmission line 1.

伝送情報の受信は伝送路1上の通信データを受信回路1
1にて受信し、宛先アドレス判別回路13で受信データ
中の宛先アドレス値を調べ、自ノード内のアドレス設定
回路8の設定値、即ち自ノード宛のデータであると判断
すると、これをCPU5に報知し、このデータを自ノー
ド内に取り込み、CPU5で多少の分解、編集処理を行
なつた後、必要に応じて接続されたホスト3へと配送す
る。
To receive the transmission information, the communication circuit 1 receives the communication data on the transmission line 1.
1, the destination address discriminating circuit 13 checks the destination address value in the received data, and when it is determined that it is the set value of the address setting circuit 8 in the own node, that is, the data addressed to the own node, this is sent to the CPU 5. The CPU 5 informs this data, fetches this data into its own node, performs some disassembly and editing processing on the CPU 5, and then delivers it to the connected host 3 as necessary.

以上のハードウエア構成と前述トークンパツシングの原
理に基づき、ネツトワーク内の各々のノードで、トーク
ンを次々に下流ノードに受け渡していく事で一本の伝送
路を共用した通信がなされるわけである。第2図の各ノ
ードが全て立ち上がつている時にはトークンは第3図に
示す如くに巡回する。
Based on the above hardware configuration and the principle of token passing described above, each node in the network transfers tokens to downstream nodes one after another, so that communication that shares one transmission line is performed. is there. When all the nodes in FIG. 2 are up, the token circulates as shown in FIG.

本実施例のネツトワークシステム構成を第2図に示す構
成として以下説明を行う。
The network system configuration of this embodiment will be described below with the configuration shown in FIG.

本実施例ネツトワークシステムを巡回する伝送フレーム
の構成を第6図(A),(B)に示す。
The structure of the transmission frame circulating in the network system of this embodiment is shown in FIGS. 6 (A) and 6 (B).

図中200はトークンフレーム、201は送信元アドレ
ス(以下、SAと称す)、202は宛先アドレス(以
下、DAと称す)、203はトークンフレームを表すト
ークンコード、205はデータフレームを表す伝送コー
ド、206は伝送情報である。
In the figure, 200 is a token frame, 201 is a source address (hereinafter referred to as SA), 202 is a destination address (hereinafter referred to as DA), 203 is a token code representing a token frame, 205 is a transmission code representing a data frame, 206 is transmission information.

以下、本実施例のデータ伝送制御を第7図のフローチヤ
ートを参照して説明する。
The data transmission control of this embodiment will be described below with reference to the flow chart of FIG.

ノード装置の電源が投入されると、ステップS1でトー
クンを最初に生成して他のノードに送出(委譲)するこ
とができるネツトワーク中の唯一の特定ノード(以下マ
スタノードと称す)か否かを判別し、マスタノードであ
ればステップS2に進み、ネツトワーク構築処理を実行
し、続くステップS3でタイマ回路10をスタートさせ
る。
When the node device is powered on, whether or not it is the only specific node (hereinafter referred to as a master node) in the network that can first generate a token in step S1 and send (transfer) it to another node. If it is a master node, the process proceeds to step S2, the network construction process is executed, and the timer circuit 10 is started in the following step S3.

そしてこのネツトワーク構築処理が終了するとステツプ
S4に進み、SA201に自ノードアドレスを、203
にトークンコードを設定し、トークンを委譲すべき下流
ノードアドレスをステップS3で構築したネツトワーク
構成テーブル9を参照して決定し、DA202に設定
し、トークンフレーム200を生成する。そしてこれを
送信回路12を介して伝送路1に送出し、送信権を下流
ノードに委譲した後、ステツプS5に進む。
When this network construction process is completed, the flow proceeds to step S4, where SA201 is set to the own node address, 203
The token code is set to the node, the downstream node address to which the token should be transferred is determined by referring to the network configuration table 9 constructed in step S3, set in DA202, and the token frame 200 is generated. Then, this is sent to the transmission line 1 via the transmission circuit 12, the transmission right is transferred to the downstream node, and then the process proceeds to step S5.

一方、ステップS1でマスタノードでない場合にもステ
ップS5に進む。
On the other hand, if the master node is not the master node in step S1, the process proceeds to step S5.

ステップS5では伝送路1より伝送フレームを受信した
か否かを監視し、伝送フレームを受信しない時はステッ
プS6に進み、マスタノードか否かを調べ、マスタノー
ドであればステップS7でタイマ回路10よりタイムア
ウトの割り込みによる報知があるか否かを調べる。タイ
マ回路10はトークンがネツトワークを一巡するに足る
十分な時間、又は1ノード当りのトークン最大保有時間
に設定されており、タイマ回路10に設定された所定時
間経過してもトークン判別回路4よりのトークン検出の
ない場合にはネツトワーク構成に変更があるとしてステ
ップS2に戻り、ネツトワーク構築処理を実行する。タ
イムアウトでない場合、マスタノードでない場合にはス
テップS5に進み、伝送フレームの受信を待つ。
In step S5, it is monitored whether or not a transmission frame is received from the transmission line 1, and when the transmission frame is not received, the process proceeds to step S6 to check whether or not the node is the master node. Check whether there is a notification due to a timeout interrupt. The timer circuit 10 is set to a time sufficient for the token to complete one round of the network, or the maximum token holding time per node. Even if the predetermined time set in the timer circuit 10 has elapsed, the token discrimination circuit 4 If no token is detected, it is determined that the network configuration has been changed, and the process returns to step S2 to execute the network construction process. If it is not the time-out or if it is not the master node, the process proceeds to step S5 to wait for the reception of the transmission frame.

ステップS5で伝送フレームを受信するとステップS8
に進み、トークン判別回路4が受信した伝送フレーム中
の伝送コード領域(203,205)を調べ、ここがト
ークンコード203か否かを調べる。トークンフレーム
の受信の場合にはステツプS9に進み、マスタノードで
あればタイマ回路10のタイマをリスタートする。そし
てステップS10で、宛先アドレス判別回路13は受信
フレーム中のDA202とアドレス設定回路8に設定さ
れた自ノードアドレス値とを比較する。そして両値が一
致しない場合、即ち自ノード宛伝送フレームでない場合
にはステツプS5に戻り、自ノード宛の伝送フレームの
受信に備える。
When the transmission frame is received in step S5, step S8
Then, the transmission code area (203, 205) in the transmission frame received by the token discrimination circuit 4 is examined to see if it is the token code 203 or not. If the token frame is received, the process proceeds to step S9, and if it is the master node, the timer of the timer circuit 10 is restarted. Then, in step S10, the destination address determination circuit 13 compares the DA 202 in the received frame with the own node address value set in the address setting circuit 8. If the two values do not match, that is, if the transmission frame is not addressed to the own node, the process returns to step S5 to prepare for reception of the transmission frame addressed to the own node.

自ノード宛伝送フレームの場合にはステツプS11に進
み、トークンの受信により送信権を獲得する。そして続
くステツプS12でホスト3又は自ノードよりの送信す
べきデータがあるか、即ち送信要求があるか否かを調
べ、送信要求があればステツプS13でデータを送信す
べき伝送フレームを生成する。
In the case of the transmission frame addressed to the own node, the process proceeds to step S11 and the transmission right is acquired by receiving the token. Then, in step S12, it is checked whether or not there is data to be transmitted from the host 3 or its own node, that is, whether or not there is a transmission request, and if there is a transmission request, a transmission frame for transmitting data is generated in step S13.

具体的には送信先ノードに固有のノードアドレス(宛先
アドレス)をDA202に、アドレス設定回路8により
設定された自ノードアドレス(送信元アドレス)をSA
201にそれぞれセツトし、続いて伝送コード205、
伝送情報206をセツトすることによりデータ伝送フレ
ーム250を生成する。そして、ステツプS14でこの
データ伝送フレーム250を予め定められた伝送制御手
順に従い、伝送先ノードに送信する。この伝送制御手段
は公知であるので説明を省略する。
Specifically, the node address (destination address) peculiar to the destination node is set to DA 202, and the own node address (source address) set by the address setting circuit 8 is set to SA.
201 respectively, followed by transmission code 205,
A data transmission frame 250 is generated by setting the transmission information 206. Then, in step S14, the data transmission frame 250 is transmitted to the destination node according to a predetermined transmission control procedure. This transmission control means is publicly known and will not be described.

そしてデータの送信処理が終了するとステツプS4に進
み、トークンフレーム200を生成し、これを送信回路
12を介して伝送路1に送出し、送信権を下流ノードに
委譲した後、ステツプS5に戻る。
When the data transmission process is completed, the process proceeds to step S4, the token frame 200 is generated, this is sent to the transmission line 1 via the transmission circuit 12, the transmission right is transferred to the downstream node, and then the process returns to step S5.

ステップS8でトークンフレームの受信でない場合には
ステップS20に進み、ステップS10と同様に宛先ア
ドレス判別回路13により受信フレーム中のDA202
とアドレス設定回路8に設定された自ノードアドレス値
とを比較する。そして両値が一致しない場合、即ち自ノ
ード宛伝送フレームでない場合にはステツプS5に戻
り、自ノード宛の伝送フレームの受信に備える。
If the token frame is not received in step S8, the process proceeds to step S20, and the DA202 in the received frame is determined by the destination address determination circuit 13 as in step S10.
And the own node address value set in the address setting circuit 8 are compared. If the two values do not match, that is, if the transmission frame is not addressed to the own node, the process returns to step S5 to prepare for reception of the transmission frame addressed to the own node.

自ノード宛伝送フレームの場合にはステツプS21に進
み、予め定められた伝送制御手順に従い、自装置宛デー
タ伝送フレーム250を自ノード内に受信し、ステツプ
S22で受信した伝送情報がホスト3へ送るべき情報か
否かを調べ、ホスト3へ送るべき情報であればステツプ
S23に進み、この情報を多少の分解、編集を行つた
後、このノードに接続されたホスト3へ送信し、ステツ
プS5に戻り次のデータ伝送に備える。
In the case of the transmission frame addressed to the own node, the process proceeds to step S21, the data transmission frame 250 addressed to the own device is received in the own node according to a predetermined transmission control procedure, and the transmission information received in step S22 is sent to the host 3. If it is the information to be sent to the host 3, it proceeds to step S23, and after some disassembling and editing of this information, it is sent to the host 3 connected to this node, and to step S5. Return Prepare for the next data transmission.

ホスト3に送信すべきデータでない場合、即ち、ノード
間の通信データである場合にはステツプS30に進み、
マスタノードより例えばグループ同報通信でネツトワー
ク構成テーブルが送られてきたものか否かを調べ、ネツ
トワーク構成テーブルの受信の場合にはステップS26
で受信データをネツトワーク構成テーブル9に格納す
る。
If it is not the data to be transmitted to the host 3, that is, if it is the communication data between the nodes, the process proceeds to step S30,
It is checked whether or not the network configuration table is sent from the master node by, for example, group broadcast communication, and if the network configuration table is received, step S26
Then, the received data is stored in the network configuration table 9.

ステップS25でネツトワーク構成テーブルの受信でな
い場合にはステップS27に進み、受信データに対応し
た処理を実行した後ステップS5に戻り、次の伝送フレ
ームの受信に備える。
If the network configuration table is not received in step S25, the process proceeds to step S27, the process corresponding to the received data is executed, and then the process returns to step S5 to prepare for the reception of the next transmission frame.

この様に、本実施例においてはトークンを最初に生成し
て他のノードに送出(委譲)することができるのはマス
タノードのみであり、他のノードはマスタノードよりの
トークンを受信した後でなければトークンを発生させる
ことは出来ない。即ち、トークンの発生は唯1つのノー
ドのみより行われ、伝送路1上でトークン同志が衝突す
る事態は発生しない。
As described above, in the present embodiment, only the master node can first generate a token and send (delegate) it to another node, and the other node receives the token from the master node and then receives the token. Without it, tokens cannot be generated. That is, the token is generated from only one node, and the tokens do not collide with each other on the transmission line 1.

次に以上の説明におけるネツトワーク構成の構築処理
を、第8図のフローチヤートを参照して説明する。
Next, the construction process of the network configuration in the above description will be described with reference to the flow chart of FIG.

本実施例においてはこのネツトワーク再構成処理はマス
タノードのみが行い、他のノードはマスタノードよりの
ネツトワーク構成情報を受信してネツトワーク構成テー
ブル9に格納し、格納内容に従つて伝送を行う。
In this embodiment, this network reconfiguration processing is performed only by the master node, and the other nodes receive the network configuration information from the master node, store it in the network configuration table 9, and transmit it according to the stored contents. To do.

このネツトワーク再構成処理はシステムの立ち上がり
時、トークンが消失した場合、即ち、ネツトワークを構
成していたノードの電源断や故障等によるネツトワーク
よりの脱落が発生した場合、ネツトワークに新たなノー
ドが参入する場合等に行われる。
This network reconfiguration process is performed when a token is lost at the time of system startup, that is, when a node that is part of the network is disconnected from the network due to power failure or failure. This is done when a node joins.

まずステツプS40で、今までのネツトワーク構成テー
ブル9で保持の下流ノードアドレスとは無関係に、下流
ノードアドレス即ち、宛先アドレスを自ノードの設定ア
ドレスに設定し、続くステツプS41でこの下流ノード
アドレスを1つデクリメントし、ステップS42で宛先
アドレスとアドレス設定回路8の設定値が等しいか否か
を調べ、等しくなければステップS43に進み、このア
ドレスを宛先アドレスとして伝送フレームを生成して送
信回路12を介して伝送路1より送信する。この伝送フ
レームはノード間の制御フレームとすればよい。
First, in step S40, the downstream node address, that is, the destination address is set to the set address of the own node, irrespective of the downstream node address held in the network configuration table 9 until now, and in step S41, the downstream node address is set. Decrement by one, and in step S42 it is checked whether or not the destination address and the setting value of the address setting circuit 8 are equal. If they are not equal, the process proceeds to step S43, a transmission frame is generated using this address as the destination address, and the transmission circuit 12 is set. It is transmitted from the transmission line 1 via This transmission frame may be a control frame between nodes.

そして続くステツプS44で伝送フレームの受け渡しが
成功したか否かを調べる。これを識別する手段は各ネツ
トワークの伝送制御手順により種々異なるが、例えば伝
送フレームを受け取つたノードで肯定応答であるACK
応答を返すことにより識別される。
Then, in a succeeding step S44, it is checked whether or not the transmission of the transmission frame has succeeded. The means for identifying this varies depending on the transmission control procedure of each network, but for example, ACK which is an acknowledgment at the node which has received the transmission frame.
It is identified by returning a response.

伝送フレームが宛先ノードに正常に送られなかつた場合
(送信が失敗すれば)には、相手ノードは動作(通信)
不可能なノードであるとしてステツプS45に進み、宛
先ノードアドレス値がネツトワークに定める最小アドレ
ス値か否かを調べ、最小アドレス値でない場合にはステ
ツプS41に戻り、再び宛先ノードアドレス値を1つデ
クリメントし、この新たなアドレス値を宛先アドレスと
して伝送フレーム送信を試みる。
If the transmission frame is not normally sent to the destination node (if the transmission fails), the other node operates (communication).
Assuming that the node is not possible, the process proceeds to step S45, and it is checked whether or not the destination node address value is the minimum address value defined in the network. If it is not the minimum address value, the process returns to step S41 and the destination node address value is set to one again. It decrements and tries transmission frame transmission using this new address value as the destination address.

こうして、アドレス値を漸次減算して行つてはそのアド
レス値のノードに伝送フレームの送信を試みる。
In this way, the address value is gradually subtracted, and then the transmission frame is tried to be transmitted to the node having the address value.

もし、上記減算されていつたアドレス値がネツトワーク
に定める最小アドレス値に達した場合にはステップS4
5よりステップS46に進み、宛先ノードアドレス値を
ネツトワークに定める最小ノードアドレス値としてステ
ツプS43に戻る。そして以後はまた、伝送フレームの
送信とアドレス値の減算動作を繰り返す。
If the subtracted address value reaches the minimum address value defined in the network, step S4
From S5, the process proceeds to step S46, and the destination node address value is set as the minimum node address value determined in the network, and the process returns to step S43. After that, the transmission of the transmission frame and the subtraction operation of the address value are repeated.

もし、伝送フレームの送信が成功した場合にはステツプ
S44よりステツプS47に進み、その時の宛先ノード
アドレス値を有するノードをネツトワークを構成する動
作可能ノードとしてネツトワーク構成テーブル9に記憶
する。そしてステップS41に戻り、他に動作可能ノー
ドが存在するか否かを調べる。
If the transmission of the transmission frame is successful, the process proceeds from step S44 to step S47, and the node having the destination node address value at that time is stored in the network configuration table 9 as an operable node configuring the network. Then, the process returns to step S41, and it is checked whether or not another operable node exists.

ステップS42で宛先アドレスと自ノードアドレスが等
しい場合には、ネツトワークを構成する全てのノードに
対して伝送フレームの送信処理を実行したことになるた
め、ステップS42よりステップS50に進み、今まで
の処理において伝送フレームの送信の成功したノードが
あるか否かを調べる。
If the destination address is equal to the own node address in step S42, it means that the transmission process of the transmission frame has been executed for all the nodes that compose the network. Therefore, the process proceeds from step S42 to step S50, In the process, it is checked whether or not there is a node that has successfully transmitted the transmission frame.

ここで伝送の成功したノードが無い場合にはネツトワー
クシステムのマスタノード以外のノードが全て動作不能
状態にあることを示すため、ステップS40に戻り、い
ずれかのノードが伝送可能になるまでネツトワーク構築
処理を実行する。この様に本実施例においてはいずれか
のノードに伝送フレームの伝送処理が成功するまで上述
の処理を繰り返す。
If there is no node that has succeeded in transmission, it means that all the nodes other than the master node of the network system are in an inoperable state. Therefore, the process returns to step S40 and the network is transmitted until one of the nodes becomes available for transmission. Execute the build process. As described above, in the present embodiment, the above-described processing is repeated until the transmission processing of the transmission frame to one of the nodes succeeds.

ステップS50で伝送成功ノードのある場合にはステッ
プS51に進み、グループ同報通信でネツトワーク構成
テーブル9に記憶されているネツトワーク構成テーブル
を送信する。他のノードはこの同報通信を受信し、自ノ
ードのネツトワーク構成テーブル9に格納し、以後この
ネツトワーク構成テーブルに従い下流ノードを選定す
る。
If there is a successful transmission node in step S50, the process proceeds to step S51, and the network configuration table stored in the network configuration table 9 is transmitted by group broadcast communication. The other nodes receive this broadcast communication, store it in the network configuration table 9 of their own node, and thereafter select a downstream node according to this network configuration table.

以上の説明は主にネツトワークより脱落するノードの発
生時、又はネツトワークシステムの立ち上がり時に対す
るリカバリー処理であるが、ネツトワーク構成に新たに
参入するノードは、自ノードにトークンを巡回してもら
う必要がある。これを実現するため参入すべきノードは
伝送路1上の伝送フレームを監視し、(例えば自ノード
アドレスが伝送フレームのSA201,DA202間に
ある場合に)伝送フレームのトークンコード203を検
出すると直ちに伝送路上にデータを送出し、トークンフ
レーム200に対して“衝突”を起し、トークンの消失
状態を発生させ、ステップS40以降の処理を実行させ
ればよい。
The above explanation is mainly about the recovery process when a node that falls out of the network occurs or when the network system starts up, but a node newly entering the network configuration asks its own node to circulate the token. There is a need. In order to realize this, the node that should enter must monitor the transmission frame on the transmission path 1 and immediately transmit it when it detects the token code 203 of the transmission frame (for example, when its own node address is between SA201 and DA202 of the transmission frame). It suffices to send data on the road, cause a “collision” with the token frame 200, generate a token disappearance state, and execute the processing from step S40.

または、この処理が一定周期毎に行われる様にしてもよ
い。
Alternatively, this process may be performed at regular intervals.

また、以上の説明では一般の伝送フレームを送信して、
ネツトワーク構成を調べたが、伝送フレームに替えてト
ークンフレームによりネツトワーク構成を調べてもよ
い。この場合にはまず、ネツトワーク構成テーブルとし
てマスタノードのみを指定し、トークンを送出し、送出
トークンが自ノードに還るよう構成して行うとよい。
Also, in the above description, a general transmission frame is transmitted,
Although the network configuration has been checked, the network configuration may be checked using a token frame instead of the transmission frame. In this case, first, only the master node may be designated as the network configuration table, the token is transmitted, and the transmitted token is returned to the own node.

[第2実施例](第9図、第10図) さて、以上説明した様に本実施例におけるマスタノード
はネツトワークのスタートアツプ時、及びトークン消失
時等のリカバリー処理に重要な役目を果たすものであ
る。この為、マスタノードの障害に対しては充分な対策
を講じておく事が必要である。そこで、本実施例ではこ
のマスタノードとなる得るべきノードを複数個用意して
おく、即ち、マスタノードの2重化系あるいは、多重化
系を構成しておく。
[Second Embodiment] (FIGS. 9 and 10) As described above, the master node in this embodiment plays an important role in recovery processing at the time of network start-up and token loss. It is a thing. Therefore, it is necessary to take sufficient measures against the failure of the master node. Therefore, in this embodiment, a plurality of nodes to be the master nodes are prepared, that is, a duplicated system or a multiplexed system of the master nodes is configured.

前述した様にトークンが正常に巡回している時はマスタ
ノードは他のノード(以下スレーブノードと称す)と同
一の動作を行なう。また、ハードウエアの構成もマスタ
ノードとスレーブノードとでは単にタイマ回路10を追
加するのみであり、全てのノードにこのタイマ回路10
を備えることにより、どのノードでもマスタノードとし
ての動作が可能となる。従つて、例えばネツトワーク内
の各ノードのCPUにおける通信制御処理手順(フアー
ムウエア)としてマスタノードとしての制御動作と、ス
レーブノードとしての制御動作とを両方備え、外部(ホ
スト)からの指示によつてマスタノードとしての制御動
作、あるいはスレーブノードとしての制御動作のいずれ
かを選択して実行可能とすることが望ましい。この制御
動作の選択指示の入力手段としては、例えば、CPU5
の入出力ポートに制御動作モード選択スイツチを設ける
ことで容易に行なうことができる。
As described above, when the token is normally circulating, the master node performs the same operation as other nodes (hereinafter referred to as slave nodes). In addition, the hardware configuration is such that the timer circuit 10 is simply added between the master node and the slave node, and the timer circuit 10 is added to all the nodes.
By including the above, any node can operate as a master node. Therefore, for example, as a communication control processing procedure (firmware) in the CPU of each node in the network, both a control operation as a master node and a control operation as a slave node are provided, and instructions from an external (host) are provided. It is desirable that either the control operation as the master node or the control operation as the slave node can be selected and executed. As the input means of the selection instruction of the control operation, for example, the CPU 5
This can be easily performed by providing a control operation mode selection switch at the input / output port of the.

第9図にこの場合のノードの構成例を示す。これは第1
図の回路構成に対し、タイマ回路10、動作モード選択
回路14を追加したものである。この動作モード選択回
路14は、例えば切換スイツチで構成することができ
る。この動作モード選択回路14として切換スイツチを
用いた場合のノードの外観図を第10図に示す。
FIG. 9 shows a configuration example of the node in this case. This is the first
A timer circuit 10 and an operation mode selection circuit 14 are added to the circuit configuration shown in the figure. The operation mode selection circuit 14 can be composed of, for example, a switching switch. FIG. 10 shows an external view of a node when a switching switch is used as the operation mode selection circuit 14.

第10図図示の如く、切換スイツチ14aが外部より操
作可能となつており、稼動中のマスタノードが障害等で
動作を停止した時には、他のスレーブモードとして動作
中のノードをマスタノードに切り換えることができる。
As shown in FIG. 10, the switching switch 14a can be operated from the outside, and when the operating master node stops operating due to a failure or the like, another operating mode is switched to the master node as another slave mode. You can

[第3実施例](第11図) 第2実施例においてはマスタノード機能とスレーブノー
ド機能とは動作モード選択回路14により切り換えて選
択したが、この選択をホスト3よりの指示入力に従い、
切り換えてもよい。
[Third Embodiment] (FIG. 11) In the second embodiment, the master node function and the slave node function are selected by switching by the operation mode selection circuit 14, but this selection is performed according to the instruction input from the host 3.
You may switch.

一般にホスト3は例えば第11図に示すパーソナルコン
ピユータ等、マン・マシンインタフエースを備え、表示
部31とキー入力部32を備えるものが多く、キー入力
部32のキー操作等によつてマスタノード/スレーブノ
ード機能の切り換え指示を行なわせしめる事が可能であ
る。
Generally, the host 3 is equipped with a man-machine interface, such as a personal computer shown in FIG. 11, and is often equipped with a display section 31 and a key input section 32. It is possible to instruct to switch the slave node function.

これにより通常は人の操作の介在することの殆どないノ
ード2に対する操作が必要なく、ノードの処理機能を切
り換えられる。
As a result, it is possible to switch the processing function of the node 2 without the need for an operation on the node 2, which normally has little human intervention.

この時には、ノード2は例えばタイマ回路10のタイム
アウト情報をインタフエース回路7を介してホスト3に
送出し、ホスト3はこのタイムアウト情報を受信する
と、ホスト3の表示装置31の表示面に例えば“トーク
ン消失”情報31aとして表示する様制御すればよい。
オペレータはこの“トークン消失”の旨の表示31aを
確認すると、キー入力部32に配設されたノード機能切
換の指示入力キー32aを入力し、自装置の接続されて
いるノードをマスタノードとして動作させる旨の指定入
力を行ない、このキー入力に従い、ノード2のインタフ
エース回路7を介してCPU5にマスタノードとして動
作するべく指定する。この指定入力を受け取ると、この
ノードは第7図に示すマスタノードとしての制御動作を
実行し、ネツトワークを再構築し、下流ノードに対して
トークンを送出する。この時、自装置の接続されている
ノードの機能を表示装置31の表示面に表示すれば(3
1b)オペレータに接続ノード機能を常時確認可能とな
る。
At this time, the node 2 sends the time-out information of the timer circuit 10 to the host 3 via the interface circuit 7, and when the host 3 receives the time-out information, for example, a "token" is displayed on the display surface of the display device 31 of the host 3. It may be controlled so that it is displayed as "disappeared" information 31a.
When the operator confirms the display 31a indicating that "token disappears", he / she inputs the node function switching instruction input key 32a arranged in the key input section 32, and operates the node connected to the own device as the master node. Then, the CPU 5 is designated to operate as the master node via the interface circuit 7 of the node 2 in accordance with the key input. Upon receiving this designation input, this node executes the control operation as the master node shown in FIG. 7, reconstructs the network, and sends the token to the downstream node. At this time, if the function of the node connected to the own device is displayed on the display surface of the display device 31 (3
1b) The operator can always confirm the connection node function.

[第4実施例](第12図) また、ネツトワークに接続されるホスト3のうちネツト
ワーク中で特に重要な処理を司どる、例えばフアイル装
置、中央処理装置、大容量記憶装置等においては、第1
2図に示す如くネツトワークに対して複数(例えば2
つ)のノードを介して接続し、信頼性の向上、及び通信
能力の強化を図る場合が多い。この様な構成の場合には
この中央処理装置に接続されているノードのうちの1つ
をマスタノードとして機能させ、ノードの状態をホスト
側で管理可能とすることが望ましく、多くはマスタノー
ドはこれらのうちの1つのノードとなつている。
[Fourth Embodiment] (FIG. 12) Further, in the host 3 connected to the network, which controls particularly important processing in the network, for example, in a file device, a central processing unit, a mass storage device, etc. , First
As shown in FIG. 2, a plurality (for example, 2
In many cases, the connection is made via a node (1) to improve reliability and enhance communication capability. In the case of such a configuration, it is desirable that one of the nodes connected to this central processing unit be made to function as a master node so that the state of the node can be managed by the host side. It is one of these nodes.

この場合には、通常の場合にはいずれかのノードをマス
タノード、他方をスレーブノードとして運用し、一方の
マスタノードのダウン時には、他方のスレーブノードを
マスタノードに切り換える方法もある。これにより、マ
スタノードがネツトワークのいずれかのホストに接続さ
れているかを探す必要がなく、例えマスタノードとして
機能していたノードがダウンしたとしても、それに変わ
るマスタノードはそれ以前にマスタノードとして機能し
ていたノード近傍であることが直ちに認識でき、障害対
策も迅速かつ正確に行なうことが可能となる。
In this case, there is also a method of operating one of the nodes as a master node and the other as a slave node in the normal case, and switching the other slave node to the master node when one master node goes down. This eliminates the need to find out if the master node is connected to any host in the network, and even if the node that was functioning as the master node goes down, the master node that changes to it becomes the master node before that. It is possible to immediately recognize that it is in the vicinity of the functioning node, and it is possible to take quick and accurate countermeasures against failures.

以上説明したいずれの方法もネツタワーク内にマスタノ
ードを潜在的に複数個保有し得る事から、マスタノード
における障害に対しても強固なネツトワークシステムを
作り上げる事が可能となる。
Since any of the methods described above can potentially have a plurality of master nodes in the network, it is possible to build a robust network system against failures in the master node.

また以上の説明ではトークンバス方式のネツトワークを
基準として説明したが、これに限るものではなく、トー
クンリング方式のネツトワーク構成としても本実施例を
適用出来る。
In the above description, the token bus type network is used as a reference, but the present invention is not limited to this, and the present embodiment can be applied to a token ring type network configuration.

以上説明したように本実施例によればトークンの委譲が
どのような場合においても確実に行え、かつ、トークン
委譲が正常に行えなかつた場合にもデータ伝送の効率を
ほとんど損なうことなくネツトワークの再構築を行え
る。
As described above, according to the present embodiment, token transfer can be performed reliably in any case, and even if token transfer cannot be performed normally, the network transmission can be performed without substantially impairing the data transmission efficiency. Can be rebuilt.

以上説明した様に本実施例においてはマスタノードをネ
ツトワーク内に唯一設ける事により従来におけるトーク
ンの発生送出時の競合、衝突状態の発生を皆無とし、か
つトークンの巡回開始処理を同期的に実行すると言う長
所を有する。
As described above, in this embodiment, by providing the master node only in the network, there is no conflict and collision state at the time of generation and transmission of tokens in the past, and the token circulation start processing is executed synchronously. It has the advantage of saying that.

また、従来必要とされていた衝突検知器等を不要とし、
コスト的にも安価なものとする事ができる。
In addition, it eliminates the need for conventional collision detectors,
It can be cheap in terms of cost.

更にまた、非同期的処理を排除したために、処理手順は
きわめてシンプルなものとすることができ、通信制御手
順等の処理上のオーバヘットも最小限で行なうことがで
きる。
Furthermore, since the asynchronous processing is eliminated, the processing procedure can be made extremely simple, and the processing overhead such as the communication control procedure can be minimized.

更には、マスタノードが障害等によりダウンした場合に
おいても容易に他のスレーブノードをマスタノードとす
ることができ、障害に強いネツトワークを構築すること
ができる。
Further, even if the master node goes down due to a failure or the like, another slave node can be easily made the master node, and a network resistant to the failure can be constructed.

[発明の効果] 以上説明した様に本発明によれば、トークンの紛失時に
は、特定の伝送装置が全ての伝送装置の状態を調べ、そ
れを全ての伝送装置に通知して新たにトークンを生成
し、送出するので、トークンの紛失があつても、ネツト
ワークの再構築を確実に行うことができる。
[Effects of the Invention] As described above, according to the present invention, when a token is lost, a specific transmission device checks the states of all the transmission devices, notifies all the transmission devices, and newly generates a token. However, since it is transmitted, the network can be reliably reconstructed even if the token is lost.

さらに、この結果、通常のトークン移譲をネツトワーク
を構成する伝送装置間で直接行うことが可能となり、ト
ークンの移譲を時間をかけることなく、迅速に行うこと
ができる。
Further, as a result, the normal token transfer can be performed directly between the transmission devices constituting the network, and the token transfer can be performed quickly without taking time.

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

第1図は本発明に係る一実施例のネツトワークシステム
を構成するノードのブロツク図、 第2図はネツトワーク構成図、 第3図は第2図に示すネツトワークのトークンパツシン
グ方式のトークン巡回遷移図、 第4図は第2図に示すネツトワークの一部動作不能ノー
ドの存在する場合のトークンパツシング方式のトークン
巡回遷移図、 第5図は従来のトークン消失時のトークン再送出タイミ
ングを示す図、 第6図(A),(B)は本実施例で用いる伝送フレーム
構成図、 第7図は本実施例のノードにおける一般的データ伝送制
御フローチヤート、 第8図は本実施例におけるネツトワーク構築処理フロー
チヤート、 第9図は本発明に係る他の実施例のネツトワークシステ
ムを構成するノードのブロツク図、 第10図は本発明の他の実施例のノードの外観図、 第11図は本発明の他の実施例のノード及びホストの外
観図、 第12図は本発明の他の実施例のネツトワークの構成図
である。 図中、1……伝送路、2,100〜170……ノード、
3……ホスト、4……トークン判別回路、5……CP
U、6……メモリ回路、7……インタフエース回路、8
……アドレス設定回路、9……ネツトワーク構成テーブ
ル、10……タイマ回路、11……受信回路、12……
送信回路、13……宛先アドレス判別回路、14……動
作モード選択回路、31……表示装置、31a……ノー
ド機能表示、32……キー入力部、32a……ノード機
能切換の指示入力キー、203……トークンコード、2
05……伝送コードである。
FIG. 1 is a block diagram of nodes constituting a network system according to an embodiment of the present invention, FIG. 2 is a network configuration diagram, and FIG. 3 is a token of a network token passing system shown in FIG. Cyclic transition diagram, FIG. 4 is a token transition diagram of the token passing method in the case where there is a partially inoperable node of the network shown in FIG. 2, and FIG. 5 is a conventional token re-sending timing when a token disappears. 6A, FIG. 6A and FIG. 6B are transmission frame configuration diagrams used in this embodiment, FIG. 7 is a general data transmission control flow chart in the node of this embodiment, and FIG. 8 is this embodiment. FIG. 9 is a block diagram of a node constituting a network system of another embodiment according to the present invention, and FIG. 10 is a flowchart of another embodiment of the present invention. External view of over-de, Figure 11 is an external view of a node and the host of another embodiment of the present invention, FIG. 12 is a block diagram of the net work of another embodiment of the present invention. In the figure, 1 ... Transmission line, 2,100 to 170 ... Node,
3 ... Host, 4 ... Token discrimination circuit, 5 ... CP
U, 6 ... memory circuit, 7 ... interface circuit, 8
...... Address setting circuit, 9 ...... Network configuration table, 10 ...... Timer circuit, 11 ...... Reception circuit, 12 ......
Transmission circuit, 13 ... Destination address discrimination circuit, 14 ... Operation mode selection circuit, 31 ... Display device, 31a ... Node function display, 32 ... Key input unit, 32a ... Node function switching instruction input key, 203 ... Token code, 2
05 ... Transmission code.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】通信媒体により複数の伝送装置を互いに接
続して通信権移譲命令であるトークンにより通信権を獲
得した伝送装置が送信権を得るネツトワークシステムの
網制御方式において、 ネツトワークシステム内に異常が発生しトークンが紛失
した時に、ネツトワークを構成する伝送装置のうちの唯
一の特定伝送装置が新規のトークンの発生を可能とし、 前記特定伝送装置は、 自装置のアドレス値を初期値とし、当該初期値から順に
1つづつアドレス値をずらし宛先アドレスを設定する宛
先アドレス設定手段と、 前記宛先アドレス設定手段により設定されたアドレス値
を固有のアドレス値とする伝送装置に対して、該伝送装
置が動作可能であるか否かを調べるための伝送フレーム
を送信する送信手段と、 前記送信手段による送信フレームの送信後伝送フレーム
を送信した伝送装置から応答信号が返送されてくると、
前記伝送フレームを送信した伝送装置のアドレス値をネ
ツトワーク構成テーブルに記憶する記憶手段と、 前記宛先アドレス設定手段によるアドレス値の設定、前
記送信手段による伝送フレームの送信、及び前記記憶手
段へのアドレス値の記憶を全ての伝送装置に対して繰り
返し実行する制御手段と、 前記ネツトワーク構成テーブルに記憶されているアドレ
ス値をネツトワークを構成する複数の伝送装置へ通知す
る通知手段と、 新規にトークンを発生し、前記ネツトワーク構成テーブ
ルに記憶されているアドレス値に基づきトークンを送出
するトークン送出手段とを備え、 前記ネットワークを構成する複数の伝送装置のそれぞれ
は、 トークンを移譲する際、前記特定伝送装置から通知され
たネツトワーク構成テーブルの内容に基づきトークンを
他の伝送装置へ送出することを特徴とする網制御方式。
1. A network control method of a network system, wherein a plurality of transmission devices are connected to each other by a communication medium and the transmission device which has acquired the communication right by a token which is a communication right transfer command obtains the transmission right. When a token is lost due to an error in the, the only specific transmission device among the transmission devices that make up the network enables the generation of a new token, and the specific transmission device sets the address value of its own device to the initial value. For the destination address setting means for shifting the address value one by one from the initial value and setting the destination address, and for the transmission device having the address value set by the destination address setting means as the unique address value, Transmitting means for transmitting a transmission frame for checking whether or not the transmitting device is operable; and a transmitting frame by the transmitting means. When the response signal from the transmission apparatus that has transmitted the transmission after the transmission frame is sent back,
Storage means for storing the address value of the transmission device that has transmitted the transmission frame in a network configuration table; setting of the address value by the destination address setting means, transmission of the transmission frame by the transmission means, and address to the storage means Control means for repeatedly executing storage of values to all transmission devices, notification means for notifying the address values stored in the network configuration table to a plurality of transmission devices constituting the network, and a new token And a token sending means for sending a token based on the address value stored in the network configuration table, each of the plurality of transmission devices constituting the network is Talk based on the contents of the network configuration table notified by the transmitter. Network control method, which comprises delivering to another transmission apparatus.
JP60124127A 1985-06-10 1985-06-10 Network control method Expired - Lifetime JPH0640642B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60124127A JPH0640642B2 (en) 1985-06-10 1985-06-10 Network control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60124127A JPH0640642B2 (en) 1985-06-10 1985-06-10 Network control method

Publications (2)

Publication Number Publication Date
JPS61283251A JPS61283251A (en) 1986-12-13
JPH0640642B2 true JPH0640642B2 (en) 1994-05-25

Family

ID=14877593

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60124127A Expired - Lifetime JPH0640642B2 (en) 1985-06-10 1985-06-10 Network control method

Country Status (1)

Country Link
JP (1) JPH0640642B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6087543A (en) * 1983-10-20 1985-05-17 Fujitsu Ltd Transmission system

Also Published As

Publication number Publication date
JPS61283251A (en) 1986-12-13

Similar Documents

Publication Publication Date Title
US7518989B2 (en) Method and apparatus for recovery from faults in a loop network
JPS635789B2 (en)
JPH0620203B2 (en) Data communication method and communication system
JPH08227344A (en) Communication control equipment between duplex disk controllers
EP2224341B1 (en) Node system, server switching method, server device, and data transfer method
JPS5923142B2 (en) Adapter for data communication system
JPS6215950A (en) Data transmission control system
US5034881A (en) Method of and system for controlling common bus
EP1107119A2 (en) Extending cluster membership and quorum determinations to intelligent storage systems
JPH0640642B2 (en) Network control method
JPH0683222B2 (en) Network control method
JP6134720B2 (en) Connection method
JPH05336141A (en) Loop network
JPH0828722B2 (en) Data transmission control method
CN104702693A (en) Processing method for two-node system partitioning and node
JPS61283249A (en) Network control method
JPS61283248A (en) Network control system
JPS61256846A (en) Network system
JPS61253950A (en) Network control system
JP2001022712A (en) Initial setting method of information processing device
JPH0427239A (en) Control method for lan connecting device
JPH0430218B2 (en)
JPS61253948A (en) Network control system
JPH07212376A (en) Data transmission method
JP2002353881A (en) Packet base station and processing method at switching to duplexing

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term