JP3241104B2 - Clock supply switching method - Google Patents

Clock supply switching method

Info

Publication number
JP3241104B2
JP3241104B2 JP17700492A JP17700492A JP3241104B2 JP 3241104 B2 JP3241104 B2 JP 3241104B2 JP 17700492 A JP17700492 A JP 17700492A JP 17700492 A JP17700492 A JP 17700492A JP 3241104 B2 JP3241104 B2 JP 3241104B2
Authority
JP
Japan
Prior art keywords
clock
node
priority
frame
transmission line
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 - Fee Related
Application number
JP17700492A
Other languages
Japanese (ja)
Other versions
JPH0621955A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP17700492A priority Critical patent/JP3241104B2/en
Publication of JPH0621955A publication Critical patent/JPH0621955A/en
Application granted granted Critical
Publication of JP3241104B2 publication Critical patent/JP3241104B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、マスタ局とスレーブ局
からなる複数のノードを第1と第2の2系統の伝送路で
ループ状に接続したループ型LAN(ローカルエリアネ
ットワーク)に関し、特に、ループ型LANの各ノード
に供給されるクロックを切り替えるクロック供給切替え
方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a loop type LAN (local area network) in which a plurality of nodes comprising a master station and a slave station are connected in a loop by first and second transmission lines. And a clock supply switching method for switching a clock supplied to each node of a loop type LAN.

【0002】[0002]

【従来の技術】上述したようなループ型LANにおいて
は、マスタ局とスレーブ局からなる複数のノードを右回
りと左回りの2系統の伝送路でループ状に接続し、マス
タ局のノードから2系統の伝送路にそれぞれクロックを
送出し、スレーブ局のノードでは2系統の伝送路から得
られた2つのクロックから1つを選択し、そのクロック
に従って通信データのフレームを伝送路に周回させ、そ
れにより各ノードでフレームの送受信を行うようにして
いる。
2. Description of the Related Art In a loop type LAN as described above, a plurality of nodes consisting of a master station and a slave station are connected in a loop by two transmission lines, clockwise and counterclockwise, and two nodes are connected from the master station node. A clock is transmitted to each of the transmission lines of the system, and the node of the slave station selects one of the two clocks obtained from the transmission lines of the two systems, and circulates the communication data frame on the transmission line according to the clock. , Each node transmits and receives frames.

【0003】すなわち、ネットワーク内のクロックマス
タとしての一台のノード(マスタ局)からその他のノー
ド(スレーブ局)にクロック源を供給して、従属同期に
よりネットワーク内同期を行うようにしている。また、
マスタ局のノードに外部のネットワークからクロックを
供給し、その外部クロックにネットワーク全体を同期さ
せることにより外部ネットワークとの従属同期を可能と
するものもある。
That is, a clock source is supplied from one node (master station) as a clock master in a network to another node (slave station), and synchronization in the network is performed by subordinate synchronization. Also,
In some cases, a master station node is supplied with a clock from an external network, and the entire network is synchronized with the external clock, thereby enabling subordinate synchronization with the external network.

【0004】従来のこのようなループ型LANでは、伝
送路クロック系の障害や、クロックマスタあるいは外部
クロック供給断の障害に対しては、伝送路のクロック系
を運用系と予備系の2系統とした二重化伝送路を用い、
また、クロックマスタをマスタ局とサブマスタ局の二重
構成とすることで対処していた。
In such a conventional loop type LAN, the clock system of the transmission line is divided into two systems, an operation system and a standby system, in response to a failure of the transmission line clock system or a failure of the clock master or external clock supply interruption. Using a duplicated transmission line,
In addition, a countermeasure has been taken by making the clock master a dual configuration of a master station and a submaster station.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、従来の
このようなループ型LANにおいては、伝送路クロック
系の障害については運用系から予備系へ、また、クロッ
クマスタの障害についてはマスタ局からサブマスタ局
へ、それぞれ切り替えるというように、一重の障害にし
か対処できなかったため、多重障害に対応できるような
ループ型LANが望まれていた。
However, in such a conventional loop type LAN, a fault in the transmission line clock system is switched from the operation system to the standby system, and a fault in the clock master is shifted from the master station to the submaster station. In this case, only a single failure can be dealt with, for example, by switching each. Therefore, a loop-type LAN capable of dealing with multiple failures has been desired.

【0006】本発明は、このような事情を考慮してなさ
れたもので、全てのノードにマスタ局となるための優先
順位をあらかじめ定義しておき、優先順位の高いノード
から順次マスタ局としてゆくとともに、マスタ局になれ
なかったノードについては、2系統から受信したクロッ
クの内のいずれか1つを選択することにより、マスタ局
の障害や伝送路クロック系の障害などの多重障害時で
も、ネットワーク内の同期を常に確立できるようにし
た、クロック供給切替え方式を提供するものである。
The present invention has been made in view of such circumstances, and the priorities for all the nodes to become master stations are defined in advance, and the nodes having higher priorities are sequentially assigned as master stations. At the same time, for a node that could not become the master station, by selecting one of the clocks received from the two systems, the network can be operated even when multiple failures such as a failure in the master station or a failure in the transmission line clock system occur. And a clock supply switching method which can always establish synchronization within the clock.

【0007】[0007]

【課題を解決するための手段】この発明は、マスタ局と
スレーブ局からなる複数のノードを第1と第2の伝送路
でループ状に接続することによりネットワークを構成
し、マスタ局のノードから第1と第2の伝送路にクロッ
クを送出し、スレーブ局のノードでは第1と第2の伝送
路から得られた2つのクロックから1つを選択し、その
クロックに従って通信データのフレームを伝送路に周回
させ、それにより各ノードでフレームの送受信を行うル
ープ型LANにおいて、全てのノードにマスタ局となる
ための優先順位をクロック優先度としてあらかじめ設定
しておき、そのクロック優先度と外部クロックの有無
フレームに書き込んで伝送路に送出し、各ノードが伝送
路からフレームを受信したときには、フレームに書き込
まれているクロック優先度と自ノードのクロック優先度
とを比較して、フレームに書き込まれているクロック優
先度を最も高いクロック優先度に順次更新してゆき、各
ノードでは、システムクロック供給源切替え調停の手順
を記憶しておき、伝送路からフレームを受信したときに
は、前記手順に基づいて、フレームに書き込まれている
クロック優先度を自ノードのクロック優先度と比較する
ことにより、第1の伝送路から得られたクロックと第2
の伝送路から得られたクロックと自ノードのクロックか
ら1つのクロックを選択するとともに、いずれかのノー
ドに外部クロックが供給されていればその外部クロック
を優先的に選択し、選択したクロックに従ってネットワ
ークの同期を確立する、ことからなるクロック供給切替
え方式である。
According to the present invention, a network is constructed by connecting a plurality of nodes consisting of a master station and a slave station in a loop by first and second transmission lines. A clock is transmitted to the first and second transmission lines, and the slave station node selects one of the two clocks obtained from the first and second transmission lines, and transmits a frame of communication data according to the clock. In a loop-type LAN in which each node transmits and receives frames, thereby setting the priority order for all nodes to become master stations in advance as a clock priority, the clock priority and an external clock the existence of and transmitted to a transmission line is written to the frame, the clock each node when receiving a frame from the transmission path, which is written in the frame Sakido and by comparing the clock priority of the node, so on are sequentially updated to the highest clock priority clock priority written in the frame, with each node, the procedure of the system clock source switching arbitration
Is stored, and when a frame is received from the transmission line , the clock priority written in the frame is compared with the clock priority of the own node based on the above procedure, thereby obtaining the clock priority from the first transmission line. Clock and second
One clock is selected from the clock obtained from the transmission path of the
If an external clock is supplied to the
Is preferentially selected, and network synchronization is established in accordance with the selected clock.

【0008】[0008]

【0009】[0009]

【作用】本発明によれば、全てのノードにはマスタ局と
なるための優先順位がクロック優先度として設定されて
おり、そのクロック優先度と外部クロックの有無がフレ
ームに書き込まれて伝送路に送出され、最も高いクロッ
ク優先度に順次更新されてゆく。そして、それを受信し
たノードは、自ノードの優先順位のほうが高ければマス
タ局となって自ノードのクロックを選択し、自ノードの
優先順位のほうが低ければスレーブ局となって第1と第
2の伝送路から得られたクロックのいずれか一方のクロ
ックを選択し、そしてその際、いずれかのノードに外部
クロックが供給されていればその外部クロックを優先的
に選択し、その選択したクロックに従ってネットワーク
の同期を確立する。
According to the present invention, the priority order for becoming a master station is set as a clock priority for all nodes, and the clock priority and the presence or absence of an external clock are written in a frame and transmitted to a transmission line. It is transmitted and is sequentially updated to the highest clock priority. Then, the node that has received it becomes the master station if the priority of the own node is higher, selects the clock of the own node, and becomes the slave station if the priority of the own node is lower, and the first and second nodes. select one of the clocks obtained clock from the transmission path of, and outside that time, one of the nodes
If a clock is supplied, the external clock has priority
And establish network synchronization according to the selected clock.

【0010】したがって、マスタ局のノードに障害が発
生したとしても、優先度の高い順に全てのノードがマス
タ局になり得るので、ネットワークの同期を常に確立す
ることができる。また、伝送路クロック系に障害が発生
したとしても、スレーブ局の各ノードは、第1と第2の
伝送路から得られたクロックのいずれか一方のクロック
を選択できるので、常にマスタ局とリンクした系への切
り替えが可能となる。
Therefore, even if a failure occurs in a node of the master station, all nodes can become master stations in descending order of priority, so that network synchronization can always be established. Further, even if a failure occurs in the transmission line clock system, each node of the slave station can select one of the clocks obtained from the first and second transmission lines, so that the node always links with the master station. It is possible to switch to a new system.

【0011】さらに、障害の事象によりネットワークル
ープが2つ以上存在するようになった場合でも、各ルー
プで最も優先順位の高いノードがそれぞれマスタ局とな
るため、各ループ単位でネットワークの同期を確立する
ことができ、これにより多重障害においても柔軟に対応
することができる。
Further, even when two or more network loops exist due to a failure event, the nodes having the highest priority in each loop become master stations, so that network synchronization is established in each loop unit. This makes it possible to flexibly cope with multiple failures.

【0012】しかも、クロックの選択において、いずれ
かのノードに外部クロックが供給されていればその外部
クロックを優先的に選択するので、外部クロックの有無
によってマスタ局とスレーブ局の切替えが自動的かつリ
アルタイムに動作し、網を構成するための必須条件とな
る外部網とのクロック同期確立における信頼性が向上す
る。
In addition, in selecting a clock,
If an external clock is supplied to any of the nodes,
Presence or absence of an external clock because the clock is selected with priority
Switching between master station and slave station automatically and automatically
It is a necessary condition to operate in real time and configure the network.
Reliability in establishing clock synchronization with external networks
You.

【0013】[0013]

【実施例】以下、図面に示す実施例に基づいてこの発明
を詳述する。なお、これによってこの発明が限定される
ものではない。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the embodiments shown in the drawings. Note that the present invention is not limited to this.

【0014】図1は本発明のクロック供給切替え方式に
適用されるループ型LANの通信ノードの構成を示すブ
ロック図である。この図において、1は通信ノードであ
る。本実施例のループ型LANは、この通信ノード1
を、0系(図中、♯0で示す)と1系(図中、♯1で示
す)の逆回りの2系統の伝送路で複数個接続したもので
あり、通信ノード1間のデータはオーバーヘッドを有す
るフレームで伝送するようになっている。
FIG. 1 is a block diagram showing a configuration of a communication node of a loop type LAN applied to the clock supply switching system of the present invention. In this figure, 1 is a communication node. The loop type LAN according to the present embodiment uses the communication node 1
Are connected by two transmission lines of the system 0 (shown by # 0 in the figure) and the system 1 (shown by # 1 in the figure), and data between the communication nodes 1 is The transmission is performed in a frame having overhead.

【0015】通信ノード1は、0系の伝送路IF部2、
1系の伝送路IF部3、CLK部4、及びCSEL部5
から構成されている。
The communication node 1 includes a transmission line IF unit 2 for the 0 system,
1-system transmission line IF unit 3, CLK unit 4, and CSEL unit 5
It is composed of

【0016】0系の伝送路IF部2は、伝送路♯0から
フレームの入力を受けて、REC検出、伝送路クロック
抽出、及び受信オーバーヘッドの分離を行うとともに、
送信オーバーヘッドを多重化して、再び伝送路♯0に出
力する。
The 0-system transmission path IF unit 2 receives a frame input from the transmission path # 0, performs REC detection, transmission path clock extraction, and separation of reception overhead.
The transmission overhead is multiplexed and output to the transmission path # 0 again.

【0017】1系の伝送路IF部3は、伝送路♯1から
フレームの入力を受けて、REC検出、伝送路クロック
抽出、及び受信オーバーヘッドの分離を行うとともに、
送信オーバーヘッドを多重化して、再び伝送路♯1に出
力する。
The transmission line IF unit 3 of the first system receives the input of the frame from the transmission line # 1, performs REC detection, extraction of the transmission line clock, and separation of the reception overhead.
The transmission overhead is multiplexed and output to the transmission path # 1 again.

【0018】CLK部4は、外部クロックの入力を受
け、0系のクロックと1系のクロックと外部クロックの
内から1つのクロックを選択するセレクタ6と、選択し
たクロックの分周回路7と、システムクロックを発振器
するPLO8と、外部クロックを検出するディテクタ回
路9から構成されている。
The CLK unit 4 receives an input of an external clock, and selects one clock from among a 0-system clock, a 1-system clock, and an external clock, a frequency divider 7 for the selected clock, It comprises a PLO 8 for oscillating a system clock and a detector circuit 9 for detecting an external clock.

【0019】CSEL部5は、通信ノード1がクロック
マスタとなるための優先順位をクロック優先度データと
してあらかじめ記憶したレジスタ10と、フリーラン
(自走)クロック、外部クロック、0系クロック、1系
クロックの内からいずれか1つのクロックを選択する調
停回路11から構成されている。
The CSEL unit 5 includes a register 10 in which the priority order for the communication node 1 to become a clock master is stored in advance as clock priority data, a free-running (self-running) clock, an external clock, a 0-system clock, and a 1-system. It comprises an arbitration circuit 11 for selecting any one of the clocks.

【0020】通信ノード1間に送信されるフレームのオ
ーバヘッドは、図2に示すように、CP−ID(Clk
Priolity ID)で示されるクロック優先度
情報21と、EXT−EN(Ext Clk Enab
le)で示される外部クロック監視情報22と、SEQ
(Sequence No.)で示されるシーケンス情
報23から構成されている。外部クロック監視情報22
とシーケンス情報23はマスタ局で生成される。また、
このオーバーヘッドフレームは、CSEL部5で生成
し、各通信ノード1を中継する形で0系と1系の伝送路
を周回させる。
As shown in FIG. 2, the overhead of a frame transmitted between the communication nodes 1 is CP-ID (Clk
Clock priority information 21 indicated by a Priority ID (Ext. Clk Enable) and EXT-EN (Ext Clk Enable)
le), the external clock monitoring information 22 shown in FIG.
(Sequence No.). External clock monitoring information 22
And the sequence information 23 are generated by the master station. Also,
The overhead frame is generated by the CSEL unit 5 and circulates through the transmission paths of the 0-system and the 1-system while relaying each communication node 1.

【0021】オーバーヘッドフレームに含まれる各情報
の内、クロック優先度情報23は、各通信ノード1にお
いてフレームを受信した際、0系と1系の受信クロック
優先度情報♯0/♯1と、CSEL部5内のレジスタ1
0に設定されたクロック優先度データを比較し、優先度
が高い方の値を書き込んで中継する。
Among the information included in the overhead frame, the clock priority information 23 includes, when the communication node 1 receives the frame, the received clock priority information # 0 / # 1 of the 0-system and the 1-system, and CSEL. Register 1 in unit 5
The clock priority data set to 0 is compared, and the higher priority value is written and relayed.

【0022】外部クロック監視情報22は、マスタ局に
おいて、外部クロックイネーブル信号の状態(イネーブ
ル:‘1’,ディセーブル:‘0’)を書き込んで送信
し、各スレーブ局の通信ノード1では監視のみで中継す
る。
The external clock monitoring information 22 is transmitted by writing the state of the external clock enable signal (enable: "1", disable: "0") in the master station, and the communication node 1 of each slave station only monitors. To relay.

【0023】シーケンス情報23は、マスタ局の通信ノ
ード1において、周回してきたフレームを再び送信する
毎に更新するようなシーケンス番号を書き込んで送信
し、各スレーブ局の通信ノード1では監視のみで中継す
る。なお、オーバーヘッドフレームは、各通信ノード1
で受信する際には一定の保護を取り、また、受信イネー
ブルがイネーブル状態で有効とする。
The sequence information 23 is written and transmitted in the communication node 1 of the master station such that the sequence number is updated each time the circulating frame is transmitted again, and the communication node 1 of each slave station relays only by monitoring. I do. Note that the overhead frame is stored in each communication node 1
When receiving the data, certain protection is taken, and the reception is enabled when the reception enable is enabled.

【0024】CSEL部5では、0系の伝送路IF部2
と1系の伝送路IF部3でそれぞれ抽出した0系と1系
の受信イネーブル信号♯0/♯1と、受信した0系と1
系のフレームのオーバーヘッド♯0/♯1から得られた
情報と、CLK部4で抽出した外部クロックイネーブル
信号と、CSEL部5内のレジスタ10に設定されたク
ロック優先度データに基づいて、0系クロック、1系ク
ロック、外部網から供給される外部クロック、及び、C
SEL部5に搭載するPLOのフリーランクロックの中
から1つを選択し、CLK部4で生成するシステムクロ
ックの供給源とする。
In the CSEL unit 5, the 0-system transmission line IF unit 2
And the 1-system reception enable signal # 0 / # 1 extracted by the transmission-line IF unit 3 of the 1-system and 1-system, respectively.
Based on the information obtained from the overhead # 0 / # 1 of the frame of the system, the external clock enable signal extracted by the CLK unit 4, and the clock priority data set in the register 10 in the CSEL unit 5, the system Clock, first system clock, external clock supplied from an external network, and C
One of the free-run clocks of the PLO mounted on the SEL unit 5 is selected and used as a supply source of the system clock generated by the CLK unit 4.

【0025】このように、通信ノード1のシステムクロ
ック供給源選択肢は、図3に示すように、フリーランク
ロック、0系クロック、1系クロック、及び外部クロッ
クの4つの状態遷移として切り替え、図4及び図5に示
すように、 CP−IDM(クロック優先度データ) CP−ID0(0系受信クロック優先度情報) CP−ID1(1系受信クロック優先度情報) CP−EN0(0系受信オーバーヘッドイネーブル) (受信イネーブル,シーケンス情報) CP−EN1(1系受信オーバーヘッドイネーブル) (受信イネーブル,シーケンス情報) EXT−EN(外部クロックイネーブル) EXT−EN0(0系外部クロック同期イネーブル) EXT−EN1(1系外部クロック同期イネーブル) 前状態の9つのパラメータを与えることで調停を行う。
4つの状態の内、フリーランクロック、外部クロックの
状態は、その通信ノード1がマスタ局として動作し、0
系クロック、1系クロックの状態は、その通信ノード1
がスレーブ局として動作することになる。
As described above, the system clock supply source options of the communication node 1 are switched as four state transitions of the free-running clock, the 0-system clock, the 1-system clock, and the external clock as shown in FIG. As shown in FIG. 5 and FIG. 5, CP-IDM (clock priority data) CP-ID0 (0 system reception clock priority information) CP-ID1 (1 system reception clock priority information) CP-EN0 (0 system reception overhead enable) ) (Reception enable, sequence information) CP-EN1 (1 system reception overhead enable) (Reception enable, sequence information) EXT-EN (external clock enable) EXT-EN0 (0 system external clock synchronization enable) EXT-EN1 (1 system External clock synchronization enable) Give 9 parameters of previous state Arbitrate by.
Among the four states, the states of the free-running clock and the external clock indicate that the communication node 1 operates as a master station,
The status of the system clock and the system clock is determined by the communication node 1
Will operate as a slave station.

【0026】以下、このような実施例の動作を、通信ノ
ードA〜Fを6台接続した構成において、クロック優先
度を上位順にA→F→B→E→C→Dと定義した場合に
ついて、図6から図10に示す5つの事例で説明する。
Hereinafter, the operation of this embodiment will be described in the case where the clock priority is defined as A → F → B → E → C → D in the configuration in which six communication nodes A to F are connected, in the order of higher priority. This will be described with reference to five cases shown in FIGS.

【0027】図6は通信ノードA〜Fの順で電源を投入
し、全ての通信ノードA〜Fが正常に立ち上がった場合
を示す例である。通信ノードAは、ループ内のクロック
優先度で自局が最上位となるためフリーランの状態とな
り、マスタ局として動作する。通信ノードB〜Fは、伝
送路クロック系の0系の方から受信イネーブルがイネー
ブル状態となり、また、通信ノードAに比較して全てク
ロック優先度が低いため、0系クロックの状態となり、
通信ノードAのスレーブ局として動作する。
FIG. 6 shows an example in which the power is turned on in the order of the communication nodes A to F, and all the communication nodes A to F have started up normally. The communication node A is in a free-run state since its own station has the highest clock priority in the loop, and operates as a master station. In the communication nodes BF, the reception enable is enabled from the system 0 of the transmission line clock system, and the clock priority is lower than that of the communication node A.
It operates as a slave station of the communication node A.

【0028】図7は通信ノードAと通信ノードBの間で
伝送路クロック系の0系に障害が生じた場合であり、伝
送路に片系障害が生じた場合を示す例である。通信ノー
ドBは、0系の受信イネーブルがディセーブル状態とな
ることで1系クロックの状態へ切り替わる。通信ノード
C〜Fは、0系のシーケンス同期が外れることで1系ク
ロックの状態へ切り替わる。
FIG. 7 shows a case where a failure has occurred in the system 0 of the transmission line clock system between the communication node A and the communication node B, and shows an example in which a single system failure has occurred in the transmission line. The communication node B switches to the state of the system 1 clock when the reception enable of the system 0 is disabled. The communication nodes C to F switch to the state of the system 1 clock when the sequence synchronization of the system 0 is lost.

【0029】図8は通信ノードBと通信ノードCの間で
伝送路クロックの0系に障害が生じ、さらに、通信ノー
ドEと通信ノードFの間で伝送路クロックの1系に障害
が生じた場合であり、伝送路に両系障害が生じた場合を
示す例である。通信ノードFは、0系のクロック優先度
が1系より低くなるため1系クロックの状態へ切り替わ
る。通信ノードC〜Eは、孤立したループとなり、通信
ノードEは、孤立ループ内のクロック優先度で自局が最
上位となるためフリーランの状態へ切り替わり、マスタ
局として動作する。通信ノードCは、0系の受信イネー
ブルがディセーブル状態となることで1系クロックの状
態へ切り替わる。通信ノードDは、0系のシーケンス同
期がはずれることで1系クロックの状態へ切り替わる。
FIG. 8 shows that a failure has occurred in the system 0 of the transmission line clock between the communication nodes B and C, and a failure has occurred in the system 1 of the transmission line clock between the communication nodes E and F. This is an example showing a case where a two-way failure has occurred in the transmission path. The communication node F switches to the state of the system 1 clock because the clock priority of the system 0 becomes lower than that of the system 1. The communication nodes C to E form an isolated loop, and the communication node E switches to a free-run state because its own station has the highest clock priority in the isolated loop, and operates as a master station. The communication node C switches to the state of the system clock when the reception enable of the system 0 is disabled. The communication node D switches to the state of the system 1 clock when the sequence synchronization of the system 0 is lost.

【0030】図9はマスタ局である通信ノードAが、障
害により伝送路から離脱した場合を示す例である。通信
ノードFは、通信ノードAに次いでクロック優先度が高
いためフリーラン状態へ切り替わり、マスタ局として動
作する。通信ノードB〜Eは、0系のシーケンス同期が
はずれることで1系クロックの状態へ切り替わる。
FIG. 9 shows an example in which the communication node A, which is the master station, has left the transmission line due to a failure. The communication node F switches to the free-run state because of the second highest clock priority after the communication node A, and operates as a master station. The communication nodes B to E switch to the state of the system 1 clock when the sequence synchronization of the system 0 is lost.

【0031】図10はマスタ局である通信ノードAに供
給される外部クロックに障害が生じた場合を示す例であ
る。通信ノードAは、外部クロックイネーブルがディセ
ーブル状態となるため、外部クロック監視情報をディセ
ーブル状態で送信するのであるが、それにも係わらず、
1系から先に外部クロック監視情報をイネーブル状態で
受信するので、1系クロックの状態へ切り替わり、スレ
ーブ局として動作する。通信ノードFは、両系からの外
部クロック監視情報がディセーブル状態となり、外部ク
ロックイネーブルがイネーブル状態であるため外部クロ
ックの状態となり、マスタ局として動作する。通信ノー
ドB〜Eは、マスタ局が切り替わる時点で一度、シーケ
ンス同期はずれとなり、通信ノードFからのクロック優
先情報を早く受信した系へ切り替わる。
FIG. 10 shows an example in which a failure occurs in the external clock supplied to the communication node A as the master station. Since the external clock enable is disabled, the communication node A transmits the external clock monitoring information in the disabled state.
Since the external clock monitoring information is received in the enable state from the first system first, the system is switched to the first system clock state and operates as a slave station. The communication node F is in a state of an external clock because external clock monitoring information from both systems is disabled and an external clock enable is enabled, and operates as a master station. The communication nodes B to E lose the sequence synchronization once at the time of switching of the master station, and switch to the system that received the clock priority information from the communication node F earlier.

【0032】[0032]

【発明の効果】以上説明したように、本発明によれば、
全てのノードにマスタ局となるための優先順位をクロッ
ク優先度としてあらかじめ設定するので、各種の障害事
象によってネットワークが完全なループ状でなくなった
場合でも、2台以上のノードが存在すれば、マスタ局と
スレーブ局のノードを設定することができる。また、例
え正常なノードが1台となったとしても、自らがマスタ
局として動作するため、そのノードの範囲内にあるパス
回線においてはデータの疎通が可能となる。したがっ
て、どのような多重障害が発生したとしても常にネット
ワークの同期を確立することができ、ネットワークの信
頼性の向上、及びメンテナンスの容易化に寄与するとこ
ろが大きい。しかも、クロックの選択において、いずれ
かのノードに外部クロックが供給されていればその外部
クロックを優先的に選択するので、外部クロックの有無
によってマスタ局とスレーブ局の切替えが自動的かつリ
アルタイムに動作し、網を構成するための必須条件とな
る外部網とのクロック同期確立における信頼性が向上す
る。
As described above, according to the present invention,
Since the priority order for becoming the master station is set in advance for all nodes as the clock priority, even if the network is not completely looped due to various failure events, if there are two or more nodes, the master Station and slave station nodes can be set. Further, even if the number of normal nodes becomes one, since the node itself operates as a master station, data can be communicated on a path line within the range of the node. Therefore, even if any multiple failures occur, network synchronization can always be established, which greatly contributes to improvement of network reliability and easiness of maintenance. Moreover, in the selection of the clock,
If an external clock is supplied to any of the nodes,
Presence or absence of an external clock because the clock is selected with priority
Switching between master station and slave station automatically and automatically
It is a necessary condition to operate in real time and configure the network.
Reliability in establishing clock synchronization with external networks
You.

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

【図1】本発明に適用されるループ型LANの通信ノー
ドの構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a communication node of a loop type LAN applied to the present invention.

【図2】オーバーヘッドフレームの構成図である。FIG. 2 is a configuration diagram of an overhead frame.

【図3】システムクロック供給源切替え状態遷移図であ
る。
FIG. 3 is a transition diagram of a system clock supply source switching state.

【図4】システムクロック供給源切替え調停説明図であ
る。
FIG. 4 is an explanatory diagram of arbitration of system clock supply source switching.

【図5】図4に続くシステムクロック供給源切替え調停
説明図である。
FIG. 5 is an explanatory diagram of arbitration for switching system clock supply sources following FIG. 4;

【図6】全ての通信ノードが正常に立ち上がった場合を
示す説明図である。
FIG. 6 is an explanatory diagram showing a case where all communication nodes have started up normally.

【図7】伝送路に片系障害が生じた場合を示す説明図で
ある。
FIG. 7 is an explanatory diagram showing a case where a single-system failure has occurred in a transmission line.

【図8】伝送路に両系障害が生じた場合を示す説明図で
ある。
FIG. 8 is an explanatory diagram showing a case where a two-way failure has occurred in a transmission path.

【図9】通信ノードAが障害により伝送路から離脱した
場合を示す説明図である。
FIG. 9 is an explanatory diagram showing a case where a communication node A has left a transmission path due to a failure.

【図10】通信ノードAに供給される外部クロックに障
害が生じた場合を示す説明図である。
FIG. 10 is an explanatory diagram showing a case where a failure has occurred in an external clock supplied to a communication node A;

【符号の説明】[Explanation of symbols]

1 通信ノード 2 0系の伝送路IF部 3 1系の伝送路IF部 4 CLK部 5 CSEL部 6 セレクタ 7 分周回路 8 PLO 9 ディテクタ回路 10 レジスタ 11 調停回路 21 クロック優先度情報 22 外部クロック監視情報 23 シーケンス情報 REFERENCE SIGNS LIST 1 communication node 2 0-system transmission line IF unit 3 1-system transmission line IF unit 4 CLK unit 5 CSEL unit 6 selector 7 frequency divider 8 PLO 9 detector circuit 10 register 11 arbitration circuit 21 clock priority information 22 external clock monitoring Information 23 Sequence information

───────────────────────────────────────────────────── フロントページの続き (72)発明者 廣目 正志 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (56)参考文献 特開 平3−71746(JP,A) 特開 平4−51627(JP,A) 特開 平2−257733(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04L 12/42 ──────────────────────────────────────────────────続 き Continuation of the front page (72) Inventor Masashi Hirome 1015 Uedanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture Inside Fujitsu Limited (56) References JP-A-3-71746 (JP, A) JP-A-4- 51627 (JP, A) JP-A-2-257733 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H04L 12/42

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 マスタ局とスレーブ局からなる複数のノ
ードを第1と第2の伝送路でループ状に接続することに
よりネットワークを構成し、マスタ局のノードから第1
と第2の伝送路にクロックを送出し、スレーブ局のノー
ドでは第1と第2の伝送路から得られた2つのクロック
から1つを選択し、そのクロックに従って通信データの
フレームを伝送路に周回させ、それにより各ノードでフ
レームの送受信を行うループ型LANにおいて、 全てのノードにマスタ局となるための優先順位をクロッ
ク優先度としてあらかじめ設定しておき、 そのクロック優先度と外部クロックの有無をフレームに
書き込んで伝送路に送出し、 各ノードが伝送路からフレームを受信したときには、フ
レームに書き込まれているクロック優先度と自ノードの
クロック優先度とを比較して、フレームに書き込まれて
いるクロック優先度を最も高いクロック優先度に順次更
新してゆき、 各ノードでは、システムクロック供給源切替え調停の手
順を記憶しておき、伝送路からフレームを受信したとき
には、前記手順に基づいて、フレームに書き込まれてい
るクロック優先度を自ノードのクロック優先度と比較す
ることにより、第1の伝送路から得られたクロックと第
2の伝送路から得られたクロックと自ノードのクロック
から1つのクロックを選択するとともに、いずれかのノ
ードに外部クロックが供給されていればその外部クロッ
クを優先的に選択し、 選択したクロックに従ってネットワークの同期を確立す
る、ことからなるクロック供給切替え方式。
1. A network is formed by connecting a plurality of nodes consisting of a master station and a slave station in a loop by first and second transmission lines, and a first node is connected to the first node by a node of the master station.
And a clock is transmitted to the second transmission line. The slave station node selects one of the two clocks obtained from the first and second transmission lines, and transmits a communication data frame to the transmission line in accordance with the clock. In a loop-type LAN in which each node transmits and receives frames, whereby the priority order for becoming a master station is set in advance for all nodes as a clock priority, and the clock priority and the presence or absence of an external clock are set. Is written to the frame and sent to the transmission path.When each node receives the frame from the transmission path, the clock priority written in the frame is compared with the clock priority of the own node, and the so on are sequentially updated to the highest clock priority clock priority are, in each node, the system clock source switching tone Stop hand
The order is stored, and when a frame is received from the transmission line , the clock priority written in the frame is compared with the clock priority of the own node based on the above procedure, so that the first transmission line the resulting clock and with selecting one clock from the clock of the clock and the local node obtained from the second transmission path, either Roh
If an external clock is supplied to the external clock,
Clock supply switching method , which preferentially selects the clock and establishes network synchronization according to the selected clock.
JP17700492A 1992-07-03 1992-07-03 Clock supply switching method Expired - Fee Related JP3241104B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17700492A JP3241104B2 (en) 1992-07-03 1992-07-03 Clock supply switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17700492A JP3241104B2 (en) 1992-07-03 1992-07-03 Clock supply switching method

Publications (2)

Publication Number Publication Date
JPH0621955A JPH0621955A (en) 1994-01-28
JP3241104B2 true JP3241104B2 (en) 2001-12-25

Family

ID=16023494

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17700492A Expired - Fee Related JP3241104B2 (en) 1992-07-03 1992-07-03 Clock supply switching method

Country Status (1)

Country Link
JP (1) JP3241104B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4108877B2 (en) 1998-07-10 2008-06-25 松下電器産業株式会社 NETWORK SYSTEM, NETWORK TERMINAL, AND METHOD FOR SPECIFYING FAILURE LOCATION IN NETWORK SYSTEM
JP5480977B2 (en) * 2009-12-17 2014-04-23 テレフオンアクチーボラゲット エル エム エリクソン(パブル) Synchronization network configuration with synchronization trail for time synchronization and frequency synchronization
JP6434211B2 (en) * 2013-12-26 2018-12-05 Necプラットフォームズ株式会社 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM
CN112703705A (en) 2018-09-21 2021-04-23 三菱电机株式会社 Communication device, communication system, communication method, and communication program
CN112703704B (en) 2018-09-21 2022-07-29 三菱电机株式会社 Communication device, communication system, communication method, and computer-readable recording medium
JP6523589B1 (en) 2018-09-21 2019-06-05 三菱電機株式会社 Communication apparatus, communication system, communication method and communication program

Also Published As

Publication number Publication date
JPH0621955A (en) 1994-01-28

Similar Documents

Publication Publication Date Title
US6839858B1 (en) System for clock synchronization
JP6275323B2 (en) Relay device and communication system
JPH0752886B2 (en) How to configure a loop network
JP3241104B2 (en) Clock supply switching method
JPH04274633A (en) Synchronization apparatus
JP2001186159A (en) Ring transmission system and its squelch method
US7660237B2 (en) Synchronous clock supply system and synchronous clock supply method
JP3104490B2 (en) Dependent synchronization control method for dual loop LAN
JP2001358736A (en) Ring network system
JP2002344465A (en) Redundancy switching device
JP2636936B2 (en) Clock path configuration method in duplex ring network
JPH01231450A (en) Synchronizing clock supply system for communication system
JPH06125354A (en) Network synchronization setting system in loop lan
JPH0697945A (en) Transmitting signal non-instantaneous disconnection communicating equipment
JPH01208047A (en) Clock supplying system
JPH03195144A (en) Clock synchronizing device for ring type local area network
JP2609834B2 (en) Clock switching method in ring network
JP3409234B2 (en) Add-drop multiplexer device
JPH05268235A (en) Transmission line control system for double loop-type communication equipment
JP4187480B2 (en) Clock synchronous switching device
JPH08107415A (en) Synchronized lan system and automatic changing method for master clock node for system
KR0153378B1 (en) Method for changing route to master node at network synchronization of switching network
JPH10336224A (en) Clock supplying device
KR100297857B1 (en) Apparatus and method for processing clock recovery error
CN117081980A (en) Self-loop detection method, device, equipment and medium for MLAG environment

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010925

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071019

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081019

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081019

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091019

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091019

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101019

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees