JPH0372743A - Duplicate ring initializing method - Google Patents

Duplicate ring initializing method

Info

Publication number
JPH0372743A
JPH0372743A JP20875889A JP20875889A JPH0372743A JP H0372743 A JPH0372743 A JP H0372743A JP 20875889 A JP20875889 A JP 20875889A JP 20875889 A JP20875889 A JP 20875889A JP H0372743 A JPH0372743 A JP H0372743A
Authority
JP
Japan
Prior art keywords
node
initialization
slot
key information
loop
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
JP20875889A
Other languages
Japanese (ja)
Inventor
Takeyuki Harada
原田 剛征
Takashi Honda
本田 隆司
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP20875889A priority Critical patent/JPH0372743A/en
Publication of JPH0372743A publication Critical patent/JPH0372743A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To establish the synchronization state to make the most of a ring system by using unique key information assigned to each node so as to generate a loop, thereby initializing the duplicate ring. CONSTITUTION:Plural master node candidates 4-6 request a loopback to an adjacent node to form a partial loop and the partial loop is being sequentially expanded similarly after the confirmation of the forming. When collision takes place, the partial loop is absorbed or combined based on the relation of quantity of the key information decided uniquely depending on a random number or the like or the unique key information assigned to the nodes 4-6 and finally a maximum loop is formed by a sole node such as a master node 4 to initialize the duplicate ring. Thus, even when a fault such as a broken line takes place, the synchronization state to make the most of the ring system is established.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は二重リング初期化方法、すなわち、二重リング
システムにおいて、信頼性向上のために複数のマスタノ
ード候補が配置される場合に、前記複数のマスク候補ノ
ードが初期化開始指示、あるいは、独自に初期化開始を
認識する分散的手法を用いて、前記マスタノード候補の
中からマスタノードを唯一に決定し、該マスタノードが
中心になって前記二重リングシステムを初期化する方法
に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides a dual ring initialization method, that is, in a dual ring system, when a plurality of master node candidates are arranged to improve reliability, Using a distributed method in which the plural mask candidate nodes receive an initialization start instruction or independently recognize the initialization start, a master node is uniquely determined from among the master node candidates, and the master node becomes the central node. The present invention relates to a method for initializing the dual ring system.

〔従来の技術〕[Conventional technology]

従来、二重リングシステムの初期化方法においては、各
リング毎に初期設定を行っている。すなわち、第8図(
a)に示す如く、マスタノード候補aは、Aリングに対
して初期化を行い、また、Bリングに対してもAリング
とは独立に初期化を行っていた。
Conventionally, in an initialization method for a dual ring system, initial settings are performed for each ring. In other words, Fig. 8 (
As shown in a), master node candidate a initialized the A ring and also initialized the B ring independently of the A ring.

なお、二重リングシステムに関しては、ANSI / 
I E E E  S td、802.5−1985.
a ring utilizingtoken pas
sing as 1.he access metho
d  または、Draft  Std、802.6.a
 dual bus utilizing dlst−
ributed queueing as the a
ccess methodの記載を参考にすることがで
きる。
Regarding the double ring system, ANSI/
IEEE STd, 802.5-1985.
a ring utilizingtoken pass
sing as 1. he access method
d or Draft Std, 802.6. a
dual bus utilizing dlst-
Ributed queuing as the a
The description of the access method can be referred to.

〔発明が解決しようとする課題] 上記の如き、従来の二重リングシステムの初期化方法に
おいては、第8図(b)に示す如く、二重リングシステ
ムが点pで切断されているときは、二重リングシステム
の初期化が行われない。
[Problems to be Solved by the Invention] In the conventional double ring system initialization method as described above, when the double ring system is cut at point p as shown in FIG. 8(b), , the double ring system is not initialized.

本発明は上記事情に鑑みてなされたもので、その目的と
するところは、従来の技術における上述の如き問題を解
消し、二重リングシステムにおいて如何なる状態におい
ても、最大限にリングシステムの同期状態を確立するこ
とを可能とする二重リング初期化方法を提供することに
ある。
The present invention has been made in view of the above circumstances, and its purpose is to solve the above-mentioned problems in the conventional technology, and to maximize the synchronization state of the ring system in any state in a dual ring system. The object of the present invention is to provide a dual ring initialization method that allows the establishment of a dual ring initialization method.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の上述の目的は、片方向伝送のリングを2本逆方
向に組み合せた二重リングシステムの初期化時において
、マスタノード候補が隣接ノードに対してループ折り返
しを要求して部分ループを作成し、作成確認後、更に次
段の隣接ノードをその部分ループに取り込み、以下同様
に部分ループを順次拡大して行き、また、複数のマスタ
ノード候補が前記手順を並行して実施し、衝突が発生し
た場合に、各ノードに割当てられたユニークなキー情報
または乱数等により独自に決めたキー情報の大小関係を
基に、部分ループを吸収併合し、最終的に唯一のマスタ
ノードにより部分ループを拡大し、二重リングを一巡し
て自ノードに戻る最大のループを作成し、二重リングを
初期化することを特徴とする二重リング初期化方法によ
って達成される。
The above-mentioned object of the present invention is to create a partial loop by requesting a loop return from an adjacent node by a master node candidate at the time of initializing a dual ring system in which two unidirectional transmission rings are combined in opposite directions. After confirming the creation, the next stage adjacent node is taken into the partial loop, and the partial loop is expanded in the same way.Also, multiple master node candidates perform the above procedure in parallel, and collisions occur. When a partial loop occurs, the partial loop is absorbed and merged based on the unique key information assigned to each node or the size relationship of the key information independently determined by random numbers, etc., and finally the partial loop is processed by the only master node. This is achieved by a double ring initialization method characterized by expanding the double ring, creating the largest loop that goes around the double ring and returning to the own node, and initializing the double ring.

〔作用〕[Effect]

上述の如く、本発明に係る二重リング初期化方法におい
ては、信頼性向上のため、複数のマスタノード候補が配
置される場合に、 (1)各ノードは、各ノードに割り当てられたユニーク
なキー情報または乱数等により各ノード毎に独自に決め
たキー情報を有する とともに、種々の状態に対応して、下記の各機能を有す
る如く構成したので、最終的に唯一のマスタノードによ
り部分ループを拡大し、二重リングを初期化することが
可能になる。
As described above, in the dual ring initialization method according to the present invention, in order to improve reliability, when a plurality of master node candidates are arranged, (1) each node is assigned a unique In addition to having key information uniquely determined for each node using key information or random numbers, etc., it is configured to have the following functions in response to various states, so in the end, only one master node can perform partial loops. It becomes possible to expand and initialize the double ring.

(2)ループ折り返し指示情報が設定された初期化スロ
ット受信時に、当該初期化スロットに設定されたキー情
報と、自ノードに割り当てられたキー情報の大小比較を
行い、マスク候補ノードにおいては、上記大小比較の結
果、自ノードが持つキー情報が上記初期化スロットで転
送されてきたキー情報より大きいときは応答を示す初期
化スロットを前段のノードに返送せずに、自ノードのキ
ー情報を設定した初期化スロットを次段へ転送し、上記
大小比較の結果、自ノードが持つキー情報が上記初期化
スロットで転送されてきたキー情報より小さいときは応
答を示す初期化スロットを前段のノードに返送する機能 (3)上記マスタノード候補にとって最初のループ拡大
指示情報の設定された初期化スロットを受信したとき、
当該初期化スロットに設定されたキー情報および折り返
し指示情報を設定した初期化スロットを次段のノードへ
転送する機能 (4)上記マスタノード候補にとって2度目以降のルー
プ拡大指示情報の設定された初期化スロットを受信した
とき、当該初期化スロットに設定されたキー情報および
ループ拡大指示情報を設定した初期化スロットを次段の
ノードへ転送する機能 (5)上記二重リングを一巡してきた自キー情報および
折り返し指示情報の設定された初期化スロットを受信し
た上記マスタノード候補は、自ノードが当該二重リング
システムでマスタノードに勝ち残ったことを認識後、初
期化スロットを前段のノードへ折り返す機能 (6)前段のノードから自ノードのキー情報およびルー
プ拡大指示情報の設定された初期化スロットを受信した
とき、他のノードに対して初期化手順の終了を示すため
に、初期化手順の終了を示す情報を設定した初期化スロ
ットを転送する機能 (7)自キー情報が設定された初期化手順の終了を示す
初期化スロットを受信することで、初期化手順を終了す
る機能および、自キー情報が設定された初期化手順の終
了を示す初期化スロットを他のノードのキー情報が設定
された初期化手順の終了を示す初期化スロットを、一定
時間以上受信しないとき、初期化手順の終了を認識する
機能 (8)マスタノード以外のノードは、初期化手順の終了
を示す初期化スロットを受信したとき、初期化手順の終
了を認識する機能 (9)自キー情報より大きなキー情報および折り返し指
示情報が設定された初期化スロットを受信した後、応答
を示すスロットを前段のノードへ返送したマスク候補ノ
ードが、前段のノードからループ拡大指示情報の設定さ
れた初期化スロットを受信したとき、段数マスク候補ノ
ードは、マスタノードになる権利を持たないスレーブノ
ードに移行し、自初期化スロ7 していたときはこれを中止し、当該ノードにおいてルー
プ状態にある二重リングを解除する機能 (10)マスタ候補ノードは、初期化手順開始以前に前
段のノードから初期化スロットを受信したとき、初期化
手順を開始する機能 (11)ループ拡大指示情報を設定した初期化スロット
を転送したマスク候補ノードが、前段のノードから自キ
ー情報あるいは自キー情報より大きい他のキー情報およ
び折り返し指示情報を設定した初期化スロットを転送し
、前段方向に初期化手順を開始する機能 (12)上記前段方向に初期化手順を開始した状態にあ
るマスク候補ノードが、一定時間その状態にあるとき、
自ノードがマスタノードに勝ち残ったと判断して、初期
設定手順の終了を示す初期化スロットを前段および次段
のリング方向に対して転送する機能 〔実施例〕 以下、本発明の実施例を図面に基づいて詳細に説明する
(2) When receiving an initialization slot in which loop return instruction information is set, the key information set in the initialization slot is compared in size with the key information assigned to its own node, and the mask candidate node As a result of the size comparison, if the key information held by the own node is larger than the key information transferred in the initialization slot above, the key information of the own node is set without returning the initialization slot indicating the response to the previous node. The initialization slot is transferred to the next stage, and as a result of the above size comparison, if the key information held by the own node is smaller than the key information transferred in the initialization slot, the initialization slot indicating the response is transferred to the previous stage node. Return function (3) When the master node candidate receives the initialization slot in which the first loop expansion instruction information is set,
Function to transfer the initialization slot in which the key information and loopback instruction information set in the initialization slot are set to the next stage node (4) The initialization in which the loop expansion instruction information is set for the second and subsequent times for the above master node candidate Function to transfer the initialization slot with the key information and loop expansion instruction information set in the initialization slot to the next node when receiving the initialization slot. (5) The own key that has gone around the double ring The master node candidate that receives the initialization slot in which the information and return instruction information are set has a function of returning the initialization slot to the previous node after recognizing that its own node has won the master node in the dual ring system. (6) When an initialization slot in which the key information and loop expansion instruction information of the own node are set is received from the previous node, the initialization procedure is terminated to indicate the end of the initialization procedure to other nodes. (7) A function to terminate the initialization procedure by receiving an initialization slot indicating the end of the initialization procedure in which the own key information is set, and The initialization procedure ends when an initialization slot indicating the end of the initialization procedure with information set is not received for a certain period of time or an initialization slot indicating the end of the initialization procedure with key information of another node set. (8) When a node other than the master node receives an initialization slot indicating the end of the initialization procedure, it recognizes the end of the initialization procedure. (9) Key information larger than its own key information and return After receiving an initialization slot in which instruction information is set, a mask candidate node that returns a slot indicating a response to a previous node receives an initialization slot in which loop expansion instruction information is set from a previous node, The stage number mask candidate node migrates to a slave node that does not have the right to become a master node, cancels the self-initialization slot 7 if it is running, and releases the double ring in a loop state at the node ( 10) A function for the master candidate node to start the initialization procedure when it receives an initialization slot from the previous node before starting the initialization procedure. (11) A mask candidate that has transferred the initialization slot in which the loop expansion instruction information is set. A function in which a node transfers its own key information or other key information larger than its own key information and an initialization slot in which return instruction information is set from a previous node, and starts the initialization procedure in the previous direction (12) The above-mentioned previous stage direction When a mask candidate node that is in a state where the initialization procedure was started remains in that state for a certain period of time,
A function of determining that the own node has won over the master node and transferring the initialization slot indicating the end of the initial setting procedure to the previous and next stages of the ring [Example] Hereinafter, an example of the present invention will be described with reference to the drawings. This will be explained in detail based on the following.

第3図は、二重リングシステムの構成例を示す図である
。第3図に示す如く、二重リングシステムは、複数のノ
ードと、それらを接続する媒体によって構成され、初期
化手順以前は、マスタノードになり得るマスク候補ノー
ドと、マスタノードになる権利を最初から持たない一般
ノードから構成され、初期化手順終了後は、マスク候補
ノードの中から唯−勝ち残ったマスタノードと、マスタ
ノードに勝ち残らなかったマスタ候補ノードおよび一般
ノードから構成されるスレーブノードによって構成され
る。
FIG. 3 is a diagram showing an example of the configuration of a double ring system. As shown in FIG. 3, a dual ring system consists of a plurality of nodes and a medium that connects them. After the initialization procedure, the slave node consists of the master node that survived from among the mask candidate nodes, and the master node and general nodes that did not survive the master node. configured.

第4図は、初期化スロットのフォーマットを示す図であ
る。図中、aは初期化スロットを示す制御情報、bは本
二重リングシステムにおいて唯一に識別されるキー情報
、Cは折り返し指示を示す情報、dは応答を示す情報、
eはループ拡大指示を示す情報、fは初期化手順の終了
を示す情報を示している。なお、情報aが設定された初
期化スロットには、情報すと情報Cが設定された折り返
し指示を示す初期化スロット、情報dのみが設定された
応答を示す初期化スロット、情報すと情報eが設定され
たループ拡大指示を示す初期化スロットおよび情報すと
情報fが設定された初期化手順の終了を示す初期化スロ
ットがある。
FIG. 4 is a diagram showing the format of the initialization slot. In the figure, a is control information indicating an initialization slot, b is key information uniquely identified in this dual ring system, C is information indicating a return instruction, d is information indicating a response,
e indicates information indicating a loop expansion instruction, and f indicates information indicating the end of the initialization procedure. Note that an initialization slot in which information a is set includes an initialization slot indicating a return instruction in which information C is set, an initialization slot indicating a response in which only information d is set, and an initialization slot in which information e is set. There is an initialization slot that indicates a loop expansion instruction in which an information f is set, and an initialization slot that indicates the end of an initialization procedure in which an information f is set.

なお、第5図は、各ノードの状態を示す図であり、各ノ
ードの状態には、ループ状態およびループ解除状態があ
る。
Note that FIG. 5 is a diagram showing the states of each node, and the states of each node include a loop state and a loop release state.

以下、上述の如く構成された本実施例の動作について、
第1図、第2図、第6図および第7図を用いて説明する
The operation of this embodiment configured as described above will be explained below.
This will be explained using FIG. 1, FIG. 2, FIG. 6, and FIG. 7.

最初に、二重リングに切断等の障害がない場合の動作を
説明する。第1図は、この場合における本実施例の動作
シーケンスを示すものである。第2図は、第1図のシー
ケンスによって初期化手順を終了したときの初期化状態
を示すものである。
First, the operation when there is no failure such as disconnection in the double ring will be explained. FIG. 1 shows the operation sequence of this embodiment in this case. FIG. 2 shows the initialization state when the initialization procedure is completed according to the sequence shown in FIG.

なお、第1図において、各ノードのキー情報は、それぞ
れ、ノード1が8.ノード2が7.ノード3が6となっ
ており、また、矢印は初期化スロツトを示し、それに付
された記号は、下記の意味に用いられている。
In FIG. 1, the key information of each node is 8. Node 2 is 7. Node 3 is 6, and the arrow indicates the initialization slot, and the symbols attached thereto are used for the following meanings.

α:折り返し指示を示す初期化スロットβ:応答を示す
初期化スロット γ:ループ拡大指示を示す初期化スロットδ:初期化手
順の終了を示す初期化スロットまた、右肩の記号は、下
記の説明の項番である。
α: Initialization slot that indicates a return instruction β: Initialization slot that indicates a response γ: Initialization slot that indicates a loop expansion instruction δ: Initialization slot that indicates the end of the initialization procedure The symbols on the right shoulder are explained below. This is the item number.

(a)まず、ノード3は、初期設定手順開始コマンドに
よって初期設定手順を開始し、ノード1に対して自キー
情報および折り返し指示情報を設定した初期化スロット
を転送する。
(a) First, the node 3 starts the initialization procedure using the initialization procedure start command, and transfers to the node 1 the initialization slot in which the own key information and return instruction information are set.

(b)また、ノード2においても、ノード3と同様に、
初期設定手順開始コマンドによって初期設定手順を開始
し、ノード3に対して自キー情報および折り返し指示情
報を設定した初期化スロットを転送する。但し、ノード
2とノード3の初期設定手順開始コマンドは、互いに独
立である。
(b) Also, in node 2, similarly to node 3,
The initialization procedure is started by the initialization procedure start command, and the initialization slot in which the own key information and return instruction information are set is transferred to the node 3. However, the initial setting procedure start commands for node 2 and node 3 are independent from each other.

(C)上記(a)の初期化スロットを受信したノード1
は、これに基づいて初期設定手順を開始す − る。
(C) Node 1 that received the initialization slot in (a) above
Based on this, the initial configuration procedure will be started.

(d)(c)で初期設定手順を開始したノード1は、自
キー情報が前記初期化スロットに設定されたノード3の
キー情報より大きいため、ノード3へ応答スロットを返
送せずに、ノード2に対して自キー情報および折り返し
指示情報を設定した初期化スロットを転送する。
(d) Node 1, which started the initialization procedure in (c), does not send a response slot back to node 3 because its own key information is larger than the key information of node 3 set in the initialization slot. 2, the initialization slot in which the own key information and return instruction information are set is transferred.

(e)前記(b)の初期化スロットを受信したノード3
は、自キー情報が当該初期化スロットに設定されたキー
情報より小さいため、ノード2へ応答スロットを返送す
る。
(e) Node 3 that received the initialization slot of (b) above
returns a response slot to node 2 because its own key information is smaller than the key information set in the initialization slot.

(f)上記(d)の初期化スロットを受信したノード2
は、自キー情報が当該初期化スロットに設定されたキー
情報より小さいため、ノード1へ応答スロットを返送す
る。
(f) Node 2 that received the initialization slot in (d) above
returns a response slot to node 1 because its own key information is smaller than the key information set in the initialization slot.

(g)ノード3は、前記(a)に対する応答がないため
、リトライとして0初期化スロット送信タイミングで、
ノード1に対して、自キー情報および折り返し指示情報
を設定した初期化スロットを再度転送する。
(g) Since there is no response to the above (a), node 3 retries at 0 initialization slot transmission timing,
The initialization slot in which the own key information and return instruction information are set is transferred again to the node 1.

(h)前記(e)によって応答スロットを受信したノー
ド2は、0初期化スロット送信タイミングに、ノード3
ヘループ拡大指示情報を設定した初期化スロットを転送
する。
(h) Node 2, which has received the response slot according to (e) above, transmits the response slot to node 3 at the 0 initialization slot transmission timing.
Transfer the initialization slot in which the loop expansion instruction information is set.

(i)上記(h)の初期化スロットを受信したノード3
は、自キー情報が受信したキー情報より小さいため、当
該初期化スロットに同期して、当該初期化スロットに設
定されたキー情報(ノード2のキー情報)および折り返
し指示情報を設定した初期化スロットをノードlに転送
し、マスタノードになる権利を持たないスレーブノード
になる。
(i) Node 3 that received the initialization slot in (h) above
Since the own key information is smaller than the received key information, the initialization slot in which the key information (key information of node 2) and return instruction information set in the initialization slot is synchronized with the initialization slot. to node l, and becomes a slave node without the right to become a master node.

(j)前記(f)の応答スロットを受信したノードlは
、0初期化スロット送信タイミングに、自キー情報およ
びループ拡大指示情報を設定した初期化スロットをノー
ド2へ転送する。
(j) Node 1, which has received the response slot in (f) above, transfers the initialization slot in which own key information and loop expansion instruction information are set to node 2 at the 0 initialization slot transmission timing.

(k)上記(j)のループ拡大指示情報の設定された初
期化スロットを受信したノード2は、自キー情報が受信
したキー情報より小さいため、マスタノードになる権利
を持たないスレーブノードに移行し、ノードlのキー情
報および折り返し指示情報を設定した初期化スロットを
ノード3へ転送する。
(k) Node 2, which received the initialization slot in which the loop expansion instruction information in (j) above was set, transitions to a slave node that does not have the right to become a master node because its own key information is smaller than the received key information. Then, the initialization slot in which the key information and return instruction information of node l is set is transferred to node 3.

(Q)上記(k)の初期化スロットを受信したノード3
は、自キー情報が当該初期化ロットに設定されたキー情
報より小さいため、ノード2に対して応答スロットを返
送する。
(Q) Node 3 that received the initialization slot of (k) above
returns a response slot to node 2 because its own key information is smaller than the key information set for the initialization lot.

(m)前記(g)および(i)の初期化スロットを受信
したノード1は、当該初期化スロットに設定されたキー
情報が、自キー情報より小さいため、ノード3に対して
応答スロットは返送しない。
(m) Node 1, which received the initialization slots in (g) and (i) above, returns the response slot to node 3 because the key information set in the initialization slot is smaller than its own key information. do not.

(n)ノード1は、0初期化スロット送信タイミングに
、ノード2に対して自キー情報およびループ拡大指示情
報を設定した初期化スロットを転送する。
(n) Node 1 transfers the initialization slot in which own key information and loop expansion instruction information are set to node 2 at the 0 initialization slot transmission timing.

(0)前記(氾)の応答スロットを受信したノード2が
、上記(n)の初期化スロットをノード1から受信した
とき、当該初期化スロットをノード3に転送し、ループ
を解除する。
(0) When node 2, which has received the (flood) response slot, receives the initialization slot (n) from node 1, it transfers the initialization slot to node 3 and releases the loop.

(p)上記(o)の初期化スロットを受信したノード3
は、自キー情報が受信したキー情報より小さいため、当
該初期化スロットに同期して、前記初期化スロットに設
定されたキー情報(ノードlのキー情報)および折り返
し指示情報を設定した初期化スロットをノードlへ転送
する。
(p) Node 3 that received the initialization slot in (o) above.
Since the own key information is smaller than the received key information, in synchronization with the initialization slot, the initialization slot in which the key information (key information of node l) and return instruction information set in the initialization slot is set. is transferred to node l.

(q)上記(p)の初期化スロットを受信したノード1
は、当該初期化スロットに自キー情報が設定されている
ことから、応答スロットをノード3へ返送する。
(q) Node 1 that received the initialization slot of (p) above
Since the own key information is set in the initialization slot, the node returns the response slot to the node 3.

(r)上記(q)の応答スロットを受信したノード3が
、ノードlのキー情報およびループ拡大指示情報の設定
された初期化スロットをノード2から受信したとき、当
該初期化スロットをノードlへ転送し、ループを解除す
る。
(r) When node 3, which has received the response slot in (q) above, receives from node 2 the initialization slot in which the key information and loop expansion instruction information of node l are set, the node 3 transfers the initialization slot to node l. Transfer and break the loop.

(S)ノード1は、前記(p)の自キー情報が設定され
ている初期化スロットを前段から受信することによって
、自ノードが当該二重リングにおいてマスタノードに勝
ち残ったことを認識5 し、ループを解除するとともに、0初期化スロット送信
タイミングに、本二重リングに接続されるすべてのノー
ドに対して、初期化手順の終了を示すために、初期化手
順の終了を示す情報を設定した初期化スロットを、両側
のノードに対して転送する。
(S) Node 1 recognizes that it has won over the master node in the dual ring by receiving the initialization slot in which the own key information of (p) is set from the previous stage, In addition to canceling the loop, information indicating the end of the initialization procedure was set for all nodes connected to this duplex ring at the 0 initialization slot transmission timing to indicate the end of the initialization procedure. Transfer the initialization slot to both nodes.

(1)上記(S)の初期化スロットを受信したノード2
およびノード3は、初期化手順の終了を認識し、更に、
次段のノード3およびノード2に対して、それぞれ、当
該初期化スロットを転送する。
(1) Node 2 that received the initialization slot of (S) above
and node 3 recognizes the end of the initialization procedure and further
The initialization slot is transferred to the next stage node 3 and node 2, respectively.

(u)上記(1)の初期化スロットを受信したノード3
およびノード2は、初期化手順の終了を認識し、更に、
次段のノード1に対して当該初期化スロットを転送する
(u) Node 3 that received the initialization slot in (1) above
and node 2 recognizes the end of the initialization procedure and further
The initialization slot is transferred to the next node 1.

ノードlは、0初期化スロット送信タイミングに、ノー
ド2およびノード3に対して初期化手順の終了を示す情
報を設定した初期化スロットを転送する。前記(u)の
初期化スロットを受信したノード1は、初期化手順の終
了を認識する。
Node 1 transfers an initialization slot in which information indicating the end of the initialization procedure is set to nodes 2 and 3 at the 0 initialization slot transmission timing. The node 1 that has received the initialization slot (u) recognizes the end of the initialization procedure.

上述の動作によれば、二重リングに切断等の障害がない
場合に、リングの初期化を行うことができる。
According to the above-described operation, the ring can be initialized when there is no failure such as disconnection in the duplex ring.

次に、前述の二重リングシステムで、ノード5とノード
6の間に障害(切断)が発生した場合における動作につ
いて、第6図および第7図を用いて説明する。
Next, the operation when a failure (disconnection) occurs between nodes 5 and 6 in the above-mentioned dual ring system will be explained using FIGS. 6 and 7.

第6図は、本実施例の動作シーケンスを示すものである
。第7図は、第6図のシーケンスによって初期化手順を
終了したときの初期化状態を示すものである。なお、第
6図において、各記号は、第1図の場合と同様の意味に
用いられている。
FIG. 6 shows the operation sequence of this embodiment. FIG. 7 shows the initialization state when the initialization procedure is completed according to the sequence of FIG. 6. Note that in FIG. 6, each symbol is used to have the same meaning as in FIG. 1.

(ア)まず、ノード6は、初期設定手順開始コマンドに
よって初期設定手順を開始し、ノード4に対して自キー
情報および折り返し指示情報を設定した初期化スロット
を転送する。
(A) First, the node 6 starts the initialization procedure by using the initialization procedure start command, and transfers to the node 4 the initialization slot in which its own key information and return instruction information are set.

(イ)また、ノード5においても、ノード6と同様に、
初期設定手順開始コマンドによって初期設定手順を開始
し、ノード6に対して自キー情報および折り返し指示情
報を設定した初期化スロットを転送する。但し、ノード
5とノード6の初期設定手順開始コマンドは、互いに独
立である。
(b) Also, at node 5, similarly to node 6,
The initialization procedure is started by the initialization procedure start command, and the initialization slot in which the own key information and return instruction information are set is transferred to the node 6. However, the initial setting procedure start commands for nodes 5 and 6 are independent from each other.

(つ)上記(ア)の初期化スロットを受信したノード4
は、これに基づいて初期設定手順を開始する。
(1) Node 4 that received the initialization slot in (a) above
starts the initialization procedure based on this.

(1)(つ)で初期設定手順を開始したノード4は、自
キー情報が前記初期化スロットに設定されたノード6の
キー情報より大きいため、ノード6へ応答スロットを返
送せずに、ノード5に対して自キー情報および折り返し
指示情報を設定した初期化スロットを転送する。
(1) Node 4, which started the initialization procedure in (1), does not return the response slot to node 6 because its own key information is larger than the key information of node 6 set in the initialization slot. 5, the initialization slot in which the own key information and return instruction information are set is transferred.

(オ)上記(1)の初期化スロットを受信したノード5
は、自キー情報が当該初期化スロットに設定されたキー
情報より小さいため、ノード4へ応答スロットを返送す
る。
(e) Node 5 that received the initialization slot in (1) above
returns a response slot to node 4 because its own key information is smaller than the key information set in the initialization slot.

(力)ノード6は、前記(ア)に対する応答がないため
、リトライとして0初期化スロット送信タイミングで、
ノード4に対して、自キー情報および折り返し指示情報
を設定した初期化スロットを再度転送する。
(I) Since there is no response to the above (a), node 6 retries at the 0 initialization slot transmission timing.
The initialization slot in which the own key information and return instruction information are set is transferred again to the node 4.

(キ)ノード5は、前記(イ)に対する応答がないため
、リトライとして0初期化スロット送信タイミングで、
ノード6に対して、自キー情報および折り返し指示情報
を設定した初期化スロットを再度転送する。
(K) Since there is no response to the above (B), node 5 retries at the 0 initialization slot transmission timing.
The initialization slot in which the own key information and return instruction information are set is transferred again to the node 6.

(り)前記(オ)の応答スロットを受信したノード4は
、0初期化スロット送信タイミングで、自キー情報およ
びループ拡大指示情報を設定した初期化スロットを、ノ
ード5に対して転送する。
(ri) The node 4 that has received the response slot in (e) transfers the initialization slot in which its own key information and loop expansion instruction information are set to the node 5 at the 0 initialization slot transmission timing.

(ケ)前記(力)の初期化スロットを受信したノード4
は、当該初期化スロットに設定されたキー情報が、自キ
ー情報より小さいため、ノード6に対して応答スロット
は返送しない。
(vi) Node 4 that received the above initialization slot
does not return a response slot to node 6 because the key information set in the initialization slot is smaller than its own key information.

(コ)上記(り)のループ拡大指示情報の設定された初
期化スロットを受信したノード5は、マスタノードにな
る権利を持たないスレーブノードへ移行し、ノード4の
キー情報および折り返し指示情報を設定した初期化スロ
ットをノ9 一ドロへ転送する。
(e) Node 5, which received the initialization slot in which the loop expansion instruction information in (i) above was set, migrates to a slave node that does not have the right to become a master node, and transfers the key information and return instruction information of node 4. Transfer the set initialization slot to No. 9 Ichidoro.

(す)前記(力)の状態を一定時間以上続けたノード6
は、前記初期化スロットの転送を中止し、(力)で初期
化スロットを転送した方向とは逆の方向に、自キー情報
および折り返し指示情報を設定した初期化スロットをノ
ード5へ転送する。
(S) Node 6 where the above (force) state continued for a certain period of time or more
stops the transfer of the initialization slot, and transfers the initialization slot in which the own key information and return instruction information are set to the node 5 in the opposite direction to the direction in which the initialization slot was transferred using (force).

(シ)前記(り)の状態を一定時間以上続けたノード4
は、前記初期化スロットの転送を中止し、(り)で初期
化スロットを転送した方向とは逆の方向に、自キー情報
および折り返し指示情報を設定した初期化スロットをノ
ード6へ転送する。
(c) Node 4 that has been in the above (ri) state for a certain period of time or more
stops the transfer of the initialization slot, and transfers the initialization slot in which the own key information and return instruction information are set to the node 6 in the opposite direction to the direction in which the initialization slot was transferred in (ri).

(ス)上記(シ)の初期化スロットを受信したノード6
は、自キー情報が当該初期化スロットに設定されたキー
情報より小さいため、ノード4へ応答スロットを返送す
る。
(S) Node 6 that received the initialization slot in (C) above
returns a response slot to node 4 because its own key information is smaller than the key information set in the initialization slot.

(セ)ノード6は、0初期化スロット送信タイミングに
、自キー情報および折り返し指示情報を設定した初期化
スロットをノード5へ転送す0 (ソ)上記(ス)の応答スロットを受信したノード4は
、0初期化スロット送信タイミングに、自キー情報およ
びループ拡大指示情報を設定した初期化スロットをノー
ド6へ転送する。
(C) Node 6 transfers the initialization slot in which its own key information and return instruction information are set to node 5 at the 0 initialization slot transmission timing.0 (S) Node 4 receives the response slot in (S) above. transfers the initialization slot in which the own key information and loop expansion instruction information are set to the node 6 at the 0 initialization slot transmission timing.

(り)上記(ソ)のループ拡大指示情報を設定した初期
化スロットを応答スロットを受信したノード6は、マス
タノードになる権利を持たないスレーブノードに移行し
、ノード4のキー情報および折り返し指示情報を設定し
た初期化スロットをノード5へ転送する。
(ri) Node 6, which received the response slot for the initialization slot in which the loop expansion instruction information set in (e) above, transitions to a slave node that does not have the right to become a master node, and transfers the key information of node 4 and return instructions. The initialization slot in which the information is set is transferred to node 5.

(チ)ノード4は、0初期化スロット送信タイミングに
、ノード6に対して、自キー情報およびループ拡大指示
情報を設定した初期化スロットを転送する。
(H) Node 4 transfers the initialization slot in which own key information and loop expansion instruction information are set to node 6 at the 0 initialization slot transmission timing.

(ツ)(チ)の状態を一定時間以上続けたノード4は、
(チ)の初期化スロットの転送を中止し、自キー情報お
よび初期化手順の終了を示す情報を設定した初期化スロ
ットを両側のノードへ転送する。
(T) Node 4 that has continued in the state of (H) for a certain period of time or more,
(h) The initialization slot transfer is stopped, and the initialization slot in which the own key information and the information indicating the end of the initialization procedure are set is transferred to both nodes.

(テ)上記(ツ)の初期化スロットを受信したノード5
およびノード6は、初期化手順の終了を認識し、ノード
4のキー情報および初期設定手順の終了を示す情報を設
定した初期化スロットを、それぞれ、ノード6およびノ
ード5へ転送する。
(T) Node 5 that received the initialization slot in (T) above
And node 6 recognizes the end of the initialization procedure and transfers the key information of node 4 and the initialization slot in which information indicating the end of the initialization procedure is set to node 6 and node 5, respectively.

ノード4は、上記(ツ)で転送した初期化スロットをノ
ード6およびノード5から一定時間以上受信しないとき
、初期化手順の終了を認識する。この時点で、前記(1
)および(オ)により、ノード5はループ状態、前記(
シ)および(ス)により、ノード6はループ状態になっ
ている(第5図参照)。
When node 4 does not receive the initialization slot transferred in step (2) above from node 6 and node 5 for a certain period of time or more, it recognizes that the initialization procedure has ended. At this point, the above (1)
) and (e), node 5 is in a loop state, and the above (
Due to (c) and (s), the node 6 is in a loop state (see FIG. 5).

上記動作によれば、前述の二重リングシステムでノード
5とノード6の間に障害(切断)が発生した場合にも、
前述の障害がない場合と同様に、二重リングの初期化を
行うことができるという効果がある。
According to the above operation, even if a failure (disconnection) occurs between nodes 5 and 6 in the dual ring system described above,
The effect is that the initialization of the dual ring can be performed as in the case without the above-mentioned failure.

上記実施例は、本発明の一例として示したものであり、
本発明はこれに限定されるべきものではないことは言う
までもない。
The above embodiment is shown as an example of the present invention,
It goes without saying that the present invention should not be limited to this.

〔発明の効果) 以上、詳細に説明した如く、本発明によれば、二重リン
グシステムにおいて切断等の障害が発生した場合におい
ても、障害個所の両側のノードがループ状態を保ち、最
大限にリングシステムの同期状態を確立することを可能
とする二重リング初期化方法を実現できるという顕著な
効果を奏するものである。
[Effects of the Invention] As explained above in detail, according to the present invention, even if a failure such as disconnection occurs in a double ring system, the nodes on both sides of the failure point maintain a loop state, and the This has the remarkable effect of realizing a dual ring initialization method that makes it possible to establish a synchronized state of the ring system.

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

第1図は本発明の一実施例の動作シーケンスを示す図、
第2図は第1図に対応するシステムの初期化状態を示す
図、第3図は二重リングシステムの構成例を示す図、第
4図は初期化手順時に使用する初期化スロットのフォー
マットを示す図、第5図は初期化手順終了時における各
ノードの状態を示す図、第6図は本発明の一実施例の動
作シーケンスを示す図、第7図は第6図に対応するシス
テムの初期化状態を示す図、第8図は従来の二重リング
システムの初期化方法を説明するための図である。 (a)〜(u)、(ア)〜(テ):動作ステップ。 第 2 図 ノードl (マスタノード) ノード2 ノード3 (スレーブノード) (スレーブノード) 第 図 第 7 図 ノード4 (マスタノード〉 ノード5 ノード6 (スレーブノード〉 (スレーブノード) 第 図 (a) (b) Aリンク初期化 438
FIG. 1 is a diagram showing an operation sequence of an embodiment of the present invention;
Fig. 2 is a diagram showing the initialization state of the system corresponding to Fig. 1, Fig. 3 is a diagram showing a configuration example of a dual ring system, and Fig. 4 is a diagram showing the format of the initialization slot used during the initialization procedure. 5 is a diagram showing the state of each node at the end of the initialization procedure, FIG. 6 is a diagram showing the operation sequence of an embodiment of the present invention, and FIG. 7 is a diagram showing the system corresponding to FIG. 6. FIG. 8, which is a diagram showing the initialization state, is a diagram for explaining the initialization method of the conventional dual ring system. (a) to (u), (a) to (te): Operation steps. Figure 2 Node l (Master node) Node 2 Node 3 (Slave node) (Slave node) Figure 7 Figure Node 4 (Master node) Node 5 Node 6 (Slave node) Figure (a) ( b) A link initialization 438

Claims (1)

【特許請求の範囲】[Claims] (1)片方向伝送のリングを2本逆方向に組み合せた二
重リングシステムの初期化時において、マスタノード候
補が隣接ノードに対してループ折り返しを要求して部分
ループを作成し、作成確認後、更に次段の隣接ノードを
その部分ループに取り込み、以下同様に部分ループを順
次拡大して行き、また、複数のマスタノード候補が前記
手順を並行して実施し、衝突が発生した場合に、各ノー
ドに割当てられたユニークなキー情報または乱数等によ
り独自に決めたキー情報の大小関係を基に、部分ループ
を吸収併合し、最終的に唯一のマスタノードにより部分
ループを拡大し、二重リングを一巡して自ノードに戻る
最大のループを作成し、二重リングを初期化することを
特徴とする二重リング初期化方法。
(1) When initializing a dual ring system that combines two unidirectional transmission rings in opposite directions, a master node candidate requests an adjacent node to loop back, creates a partial loop, and after confirming the creation. , further incorporates the next-stage adjacent node into its partial loop, and similarly expands the partial loop sequentially. Also, if multiple master node candidates perform the above procedure in parallel and a collision occurs, Based on the unique key information assigned to each node or the size relationship of the key information independently determined by random numbers, etc., partial loops are absorbed and merged, and finally the partial loop is expanded by the only master node, resulting in double A double ring initialization method characterized by initializing a double ring by creating the largest loop that goes around the ring and returns to its own node.
JP20875889A 1989-08-11 1989-08-11 Duplicate ring initializing method Pending JPH0372743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20875889A JPH0372743A (en) 1989-08-11 1989-08-11 Duplicate ring initializing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20875889A JPH0372743A (en) 1989-08-11 1989-08-11 Duplicate ring initializing method

Publications (1)

Publication Number Publication Date
JPH0372743A true JPH0372743A (en) 1991-03-27

Family

ID=16561597

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20875889A Pending JPH0372743A (en) 1989-08-11 1989-08-11 Duplicate ring initializing method

Country Status (1)

Country Link
JP (1) JPH0372743A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5282237A (en) * 1991-09-03 1994-01-25 The Whitaker Corporation Trunk cable fault detection and reconfiguration arrangement in a ring commnications network
WO1998021854A1 (en) * 1996-11-12 1998-05-22 Kabushiki Kaisha Toshiba Communication network system and rebuilding thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55105457A (en) * 1979-02-07 1980-08-13 Toshiba Corp Circuit formation accelerating method for data highway
JPH01105637A (en) * 1986-10-21 1989-04-24 Nippon Telegr & Teleph Corp <Ntt> Integrating method for loop network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55105457A (en) * 1979-02-07 1980-08-13 Toshiba Corp Circuit formation accelerating method for data highway
JPH01105637A (en) * 1986-10-21 1989-04-24 Nippon Telegr & Teleph Corp <Ntt> Integrating method for loop network

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5282237A (en) * 1991-09-03 1994-01-25 The Whitaker Corporation Trunk cable fault detection and reconfiguration arrangement in a ring commnications network
WO1998021854A1 (en) * 1996-11-12 1998-05-22 Kabushiki Kaisha Toshiba Communication network system and rebuilding thereof
US6184778B1 (en) 1996-11-12 2001-02-06 Kabushiki Kaisha Toshiba Communication network system and rebuilding method thereof

Similar Documents

Publication Publication Date Title
EP0321907B1 (en) Duplex system of transmission lines in a loop network
JPS62239641A (en) Multiple address communication system
US6370146B1 (en) Method and apparatus for non-disruptive addition of a new node to an inter-nodal network
JPH08307419A (en) Network initiation method and its application
JPH077979B2 (en) Method and apparatus for synchronizing asynchronous protocol interactions
JPH0372743A (en) Duplicate ring initializing method
JP2002538521A (en) Redundant system state synchronization
JP4793948B2 (en) Communication system, terminal, communication method, and communication processing program
JP3120910B2 (en) Network synchronization setting method in loop type LAN
JP2606493B2 (en) Method for establishing synchronization of redundant loop network
JP2833281B2 (en) Clock Synchronization Method for Duplex Loop Network
JPH05167599A (en) Order wire control system in synchronizing network ring lan system
JPH0371746A (en) Master node selection control system
JP2655460B2 (en) Clock switching method
JPH0430218B2 (en)
JP3450222B2 (en) Clock switching method in ring network
JPH05199212A (en) Clock switching system
JP3003430B2 (en) Clock Switching Method for Synchronous Network Ring Configuration Network System
JPH0661989A (en) Synchronizing signal switching system
JPS6276839A (en) Data transfer control system
JPH104423A (en) Access method
JPH0522328A (en) Synchronizing ring system
JPH02162860A (en) Communication method between master station versus plural slave stations
JPS5875349A (en) Transmitting system of digital signal
JPH05268235A (en) Transmission line control system for double loop-type communication equipment