[go: up one dir, main page]

JPH1174889A - Topology modification method - Google Patents

Topology modification method

Info

Publication number
JPH1174889A
JPH1174889A JP9231940A JP23194097A JPH1174889A JP H1174889 A JPH1174889 A JP H1174889A JP 9231940 A JP9231940 A JP 9231940A JP 23194097 A JP23194097 A JP 23194097A JP H1174889 A JPH1174889 A JP H1174889A
Authority
JP
Japan
Prior art keywords
connection
loop
communication node
node
notification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP9231940A
Other languages
Japanese (ja)
Other versions
JP3938806B2 (en
Inventor
Takanori Furuzono
貴則 古園
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP23194097A priority Critical patent/JP3938806B2/en
Publication of JPH1174889A publication Critical patent/JPH1174889A/en
Application granted granted Critical
Publication of JP3938806B2 publication Critical patent/JP3938806B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

(57)【要約】 【課題】 IEEE1394の規定などの各通信ノード
をループ配置したままでは、通信不能となるバスで、誤
ってループ配置した場合に、ハードウェアによる処理の
みで通信を可能とするトポロジー修正方式を提供する。 【解決手段】 ループ検出ステップ1で通信ノードがル
ープに含まれると判断したら、各ノード間の論理的な接
続をいったん無効にする。接続ステップ2で物理的に接
続され、ループを構成する隣接通信ノードに接続通知を
送信し、隣接通信ノードからも接続通知を受信したら、
論理的にループを形成せずに接続可能と判断される。接
続可能と判断された通信ノード同士が同一のツリーまた
はディジーチェーンの構造を持つノードグループを形成
する。ノードグループが構成要素の通信ノードを増やし
ていくことにより、バス全体が一つのノードグループと
なり、バスをツリーまたはディジーチェーンとして認識
し、通信可能となる。
(57) [Summary] [Problem] To enable communication only by processing by hardware when a communication node is erroneously arranged in a loop where communication nodes cannot be communicated in a state where the communication nodes are laid out in a loop according to IEEE1394 or the like. Provides a topology modification method. When a communication node is determined to be included in a loop in a loop detection step, a logical connection between the nodes is once invalidated. When the connection notification is transmitted to the adjacent communication node that is physically connected in the connection step 2 and forms the loop, and the connection notification is also received from the adjacent communication node,
It is determined that connection is possible without logically forming a loop. Communication nodes determined to be connectable form a node group having the same tree or daisy chain structure. When the node group increases the number of communication nodes as components, the entire bus becomes one node group, and the bus is recognized as a tree or a daisy chain, and communication becomes possible.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、高速シリアルバス
規格IEEE1394のように、通信ノードをループ配
置した場合に通信不能となるインターフェースにおい
て、ループ配置されて通信不能となった状態から通信を
再開するためのトポロジーの修正を行うトポロジー修正
方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a high-speed serial bus standard, such as IEEE 1394, in which communication is disabled when a communication node is arranged in a loop. And a topology correction method for correcting the topology.

【0002】[0002]

【従来の技術】一般に、バス上で通信ノードをループ配
置すると、データ転送の際、経路の異なるデータの衝突
が起きる危険性がある。IEEE802.3で規定され
た10BASE−Tのように、ループ(スター)配置を
とるネットワークでは、スイッチがデータの転送される
経路を判断して、衝突の起こらないように、ポート接続
を管理して、データ転送の効率を高めている。また、L
AN間接続などでは、IEEE802.1で規定されて
いるスパニングツリーアルゴリズムにより、論理的なツ
リー構造を持つループフリーな配置が採られている。
2. Description of the Related Art Generally, when communication nodes are arranged in a loop on a bus, there is a danger that data with different routes will collide during data transfer. In a network having a loop (star) arrangement, such as 10BASE-T defined in IEEE802.3, a switch determines a data transfer path and manages port connections so that a collision does not occur. , Increasing the efficiency of data transfer. Also, L
In connection between ANs and the like, a loop-free arrangement having a logical tree structure is adopted by a spanning tree algorithm defined in IEEE 802.1.

【0003】[0003]

【発明が解決しようとする課題】以上のような技術は、
アドレス割り付けや、データ転送経路の管理、トポロジ
ーの管理を行うホストやスイッチが必要であり、全ての
通信ノードが対等で、ホストなしでも通信を行わなくて
はならないIEEE1394などで規定されているイン
ターフェースには適用できない。しかし、IEEE13
94の規定では、利用可能な通信ノード数が最大63、
ポート数が1通信ノードにつき16までと多く、ユーザ
ーが誤って通信ノードをループ配置してしまう可能性が
高く、こうした場合に通信不能になる問題がある。
SUMMARY OF THE INVENTION
Hosts and switches that perform address assignment, data transfer path management, and topology management are required, and all communication nodes are equal, and the interface specified by IEEE 1394 or the like must communicate without a host. Is not applicable. However, IEEE13
According to the provision of 94, the maximum number of available communication nodes is 63,
Since the number of ports is as large as 16 per communication node, there is a high possibility that a user will mistakenly arrange communication nodes in a loop, and in such a case, communication becomes impossible.

【0004】また、IEEE1394の規定では、こう
した場合、どの通信ノードの配置が原因で通信不能なの
かといった情報をバスから得ることができず、ユーザー
が直接配線を調べて接続を変更する必要がある。したが
って、本発明の目的は、ループ配置されて通信が不能な
状態から自動的に通信を再開することができるトポロジ
ー修正方式を提供することである。
According to the IEEE 1394 regulations, in such a case, it is not possible to obtain information such as which communication node is incapable of communication from the bus, and it is necessary for the user to directly check the wiring and change the connection. . Therefore, an object of the present invention is to provide a topology correction method that can automatically restart communication from a state where communication is disabled due to a loop arrangement.

【0005】[0005]

【課題を解決するための手段】本発明は、ループ配置さ
れて通信が不能な状態となったときに、いったんループ
内の接続を論理的に無効にし、各ループ内通信ノード同
士をループにならないように再度接続していくことで過
不足なく接続箇所を求められることに着目し、物理的に
はループ配置されたバスを論理的にツリーまたはディジ
ーチェーンとして認識可能として、自動的に通信を再開
させるものである。
SUMMARY OF THE INVENTION According to the present invention, when communication is disabled due to the arrangement of a loop, the connection in the loop is logically invalidated once, and the communication nodes in the loop do not form a loop. That the connection points can be determined without excess or shortage by reconnecting in such a way that the buses physically arranged in a loop can be logically recognized as a tree or daisy chain, and communication is automatically resumed It is to let.

【0006】以下、請求項毎に説明する。請求項1記載
のトポロジー修正方式は、複数の通信ノードと通信ノー
ド間を接続する伝送路により構成されるバスにおいて、
通信ノードが伝送路によってループを含む配置で接続さ
れた場合、各通信ノードはループ検出ステップでループ
に含まれるかを判定し、ループを構成する通信ノードで
あるループ内通信ノードは、いったん伝送路の接続を論
理的に無効にし、接続ステップで、伝送路によって接続
された通信ノードのうち、ループを構成しているもので
ある隣接通信ノードに対して接続通知を送信し、かつ論
理的にループを形成せずに隣接通信ノードと接続可能か
を判定し、接続可能と判定された箇所で論理的な接続を
有効とすることを特徴とする。
The following is a description of each claim. The topology correction method according to claim 1, wherein a bus configured by a plurality of communication nodes and a transmission path connecting the communication nodes,
When the communication nodes are connected in an arrangement including a loop by a transmission line, each communication node determines whether or not the communication node is included in the loop in a loop detection step. Logically invalidates the connection, and in the connection step, among the communication nodes connected by the transmission path, transmits a connection notification to an adjacent communication node forming a loop, and logically loops. It is characterized in that it is determined whether or not a connection can be made with an adjacent communication node without forming a logical connection, and a logical connection is made valid at a place where it is determined that the connection is possible.

【0007】請求項1記載の方式では、ループ検出ステ
ップで通信ノードがループを構成していると判定された
ら、いったん伝送路による通信ノード間の接続を論理的
に無効にし、接続ステップで、ループを構成する隣接通
信ノードと論理的にループを形成せずに接続可能かを判
定し、接続可能と判定された伝送路での接続のみ有効と
することで、物理的にはループ配置を含むバスを、ツリ
ーまたはディジーチェーンとして認識し通信を行えるよ
うにする。
In the system according to the first aspect, if it is determined in the loop detecting step that the communication node forms a loop, the connection between the communication nodes by the transmission line is logically invalidated once, and the loop is set in the connection step. A bus including a loop arrangement is physically determined by determining whether connection is possible without forming a logical loop with an adjacent communication node constituting the connection path, and validating only the connection on the transmission path determined to be connectable. Is recognized as a tree or a daisy chain so that communication can be performed.

【0008】請求項2記載のトポロジー修正方式は、請
求項1記載のトポロジー修正方式において、接続ステッ
プで、ループ内通信ノードが接続通知を送信している伝
送路で、隣接通信ノードも接続通知を送信している場合
に、論理的にループを形成せずに隣接通信ノードと接続
可能であると判定することを特徴とする。請求項2記載
の方式では、接続ステップで隣接通信ノードと接続可能
かを、同一の伝送路上で両端の通信ノードが双方とも接
続通知を行っていることにより判断することで、伝送路
でやりとりされる情報を少なくする。
According to a second aspect of the present invention, in the topology modification method according to the first aspect, in the connection step, the adjacent communication node also transmits the connection notification on the transmission line on which the communication node in the loop transmits the connection notification. When transmitting, it is determined that it is possible to connect to an adjacent communication node without logically forming a loop. In the method according to the second aspect, in the connection step, whether or not connection with an adjacent communication node is possible is determined by determining that both communication nodes on both sides of the same transmission path have notified the connection, and the communication is performed on the transmission path. Less information.

【0009】請求項3記載のトポロジー修正方式は、請
求項1記載のトポロジー修正方式において、接続ステッ
プで、ループ内通信ノードが論理的にループを形成せず
に新たに隣接通信ノードと接続可能と判定した場合、既
にループ内通信ノードが形成している、接続可能な通信
ノード同士で構成されるノードグループと、新たに接続
可能と判定した隣接通信ノードが形成しているノードグ
ループとが、新たに同一のノードグループを形成し、1
つのノードグループからは最大1ポートで接続通知を送
信することを特徴とする。
According to a third aspect of the present invention, in the topology correction method of the first aspect, in the connection step, the intra-loop communication node can be newly connected to an adjacent communication node without logically forming a loop. If it is determined, the node group formed by connectable communication nodes already formed by the in-loop communication node and the node group formed by the adjacent communication node newly determined to be connectable are newly added. Form the same node group in
A connection notification is transmitted from one node group at a maximum of one port.

【0010】請求項3記載の方式では、接続可能と判断
された通信ノード同士が同一のノードグループに属し、
1つのノードグループからは1ポートからしか接続通知
を行わないことで、離れたノードと情報をやりとりする
ことなく、トポロジーが再構成される過程でループが形
成されるのを防ぐ。請求項4記載のトポロジー修正方式
は、請求項1記載のトポロジー修正方式において、接続
通知箇所決定ステップで、ループ内通信ノードが、隣接
通信ノードとまだ接続可能でないポートが1箇所以上あ
る場合、接続通知を行う通信ノードとなることを要求す
る接続要求を行い、接続要求の送信後、接続通知可能と
判断したら、接続ステップに遷移することを特徴とす
る。
In the method according to the third aspect, the communication nodes determined to be connectable belong to the same node group,
By notifying a connection from only one port from one node group, a loop is prevented from being formed in the process of reconfiguring the topology without exchanging information with a remote node. According to a fourth aspect of the present invention, in the topology correction method according to the first aspect, when the communication node in the loop has one or more ports that cannot be connected to the adjacent communication node in the connection notification point determination step, the connection is established. A connection request for requesting to become a communication node that performs notification is made, and after transmitting the connection request, if it is determined that connection notification is possible, the process proceeds to a connection step.

【0011】請求項4記載の方式では、接続通知箇所決
定ステップで、まだ隣接通信ノードと接続可能でないル
ープを形成するポートを持つループ内ノードが接続要求
を送信することにより、短時間でノードグループ内で接
続通知を行うノードの候補を決める。請求項5記載のト
ポロジー修正方式は、請求項4記載のトポロジー修正方
式において、接続通知箇所決定ステップで、ループ内通
信ノードが接続要求を送信しないうちに接続要求を受信
した場合、接続要求を受信した以外のループを構成する
ポートで接続要求を送信することを特徴とする。
In the method according to the fourth aspect, in the connection notification point determining step, the node in the loop having a port forming a loop that is not yet connectable to the adjacent communication node transmits a connection request, so that the node group can be transmitted in a short time. The node candidates for which connection notification is to be made are determined. According to a fifth aspect of the present invention, in the topology correction method according to the fourth aspect, in the connection notification location determining step, the connection request is received when the communication node in the loop receives the connection request before transmitting the connection request. A connection request is transmitted from a port that forms a loop other than the loop request.

【0012】請求項5記載の方式では、接続通知箇所決
定ステップで、先に接続要求を行った通信ノードの要求
を優先して、他の隣接通信ノードにリピートすることに
より、情報の多くのせられない伝送路上で、高速に要求
の伝搬、調停を行う。請求項6記載のトポロジー修正方
式は、請求項4記載のトポロジー修正方式において、接
続通知箇所決定ステップで、ループ内通信ノードが接続
要求を送信した全てのポートで接続許可を受信した場
合、接続要求を送信するよりも先に隣接通信ノードから
の接続要求を受信していなければ、接続通知可能と判断
して、接続ステップに遷移し、受信していれば、接続要
求を受信したポートで接続許可を送信することを特徴と
する。
In the method according to the fifth aspect, in the connection notification location determining step, the request of the communication node which has made the connection request first is prioritized and repeated to another adjacent communication node, whereby a large amount of information is provided. The request is propagated and arbitrated at high speed over the transmission path that does not exist. According to a sixth aspect of the present invention, in the topology correction method according to the fourth aspect, in the connection notification location determining step, when the communication permission in all the ports to which the in-loop communication nodes have transmitted the connection request has received the connection request, If a connection request from an adjacent communication node has not been received prior to sending a connection request, it is determined that connection notification is possible, and the process proceeds to the connection step. If received, connection is permitted at the port that received the connection request. Is transmitted.

【0013】請求項6記載の方式では、接続通知箇所決
定ステップで、接続要求をリピートした方向の通信ノー
ド全ての接続許可を得て、接続通知を行うことで、ルー
トなどを決めずに接続通知を行うノードを決定する。請
求項7記載のトポロジー修正方式は、請求項4記載のト
ポロジー修正方式において、接続通知箇所決定ステップ
で、接続要求を受信したポートが1つで、かつそれ以外
にループを構成するポートがない場合、接続要求を受信
したポートで接続許可を送信することを特徴とする。
[0013] In the method according to claim 6, in the connection notification location determining step, connection permission is given to all communication nodes in the direction in which the connection request is repeated, and connection notification is performed, so that connection notification is performed without determining a route or the like. Is determined. According to a seventh aspect of the present invention, in the topology correction method according to the fourth aspect, in the connection notification location determination step, when one port receives the connection request and there is no other port constituting a loop. The connection permission is transmitted at the port receiving the connection request.

【0014】請求項7記載の方式では、接続通知箇所決
定ステップで、接続要求をリピートする先のない通信ノ
ードから接続許可を開始することで、ルートなどを決め
ずに接続通知を行うノードを決定する。請求項8記載の
トポロジー修正方式は、請求項4記載のトポロジー修正
方式において、接続通知箇所決定ステップで、複数の接
続要求を同時に受信したと判断した場合に、接続要求を
受信したポートで接続要求を送信することを特徴とす
る。
[0014] In the system according to the seventh aspect, in the connection notification location determining step, the connection permission is started from a communication node to which the connection request is not repeated, thereby determining the node to which the connection notification is performed without determining the route or the like. I do. In the topology correction method according to the eighth aspect, in the topology correction method according to the fourth aspect, when it is determined in the connection notification location determining step that a plurality of connection requests are received simultaneously, the connection request is received at the port that received the connection request. Is transmitted.

【0015】請求項8記載の方式では、接続通知箇所決
定ステップで、同時に接続要求をしてきた通信ノードに
対して、接続要求を送信して、要求の競合状態を作り出
すことにより、要求を再試行させる。請求項9記載のト
ポロジー修正方式は、請求項4記載のトポロジー修正方
式において、接続通知箇所決定ステップで、接続要求を
送信したポートで接続要求の競合が観測された場合、接
続要求の送信を自ら開始したループ内通信ノードが、乱
数発生手段によって与えられる乱数に基づいて選択され
た待機時間、接続要求を送信したポートでの送信を停止
することを特徴とする。
In the system according to the eighth aspect, in the connection notification location determining step, the connection request is transmitted to the communication node that has made the connection request at the same time, and a request contention state is created to retry the request. Let it. In the topology correction method according to the ninth aspect, in the topology correction method according to the fourth aspect, when a conflict of the connection request is observed at the port that transmitted the connection request in the connection notification point determination step, the transmission of the connection request is performed by itself. The in-loop communication node that has started stops transmitting at the port that has transmitted the connection request for a standby time selected based on the random number given by the random number generating means.

【0016】請求項9記載の方式では、接続通知箇所決
定ステップで、乱数発生手段により、接続要求の競合の
観測から、接続要求再開までの待機時間をランダムに決
定することで、接続要求の調停結果の規則性をなくす。
請求項10記載のトポロジー修正方式は、請求項9記載
のトポロジー修正方式において、接続通知箇所決定ステ
ップで、乱数発生手段によって与えられる乱数に基づい
て選択される待機時間同士の差が、バスの最長経路に対
応する長さの伝送路で信号を往復させるのに必要な時間
以上であることを特徴とする。
In the method according to the ninth aspect of the present invention, in the connection notification location determination step, the random number generation means randomly determines the waiting time until the connection request is resumed from the observation of the connection request competition, thereby arbitrating the connection request. Eliminate regularity of results.
According to a tenth aspect of the present invention, in the topology correcting method according to the ninth aspect, the difference between the standby times selected based on the random number given by the random number generating means in the connection notification point determining step is the longest of the bus. It is characterized in that the time is longer than the time required for a signal to reciprocate on a transmission path having a length corresponding to the path.

【0017】請求項10記載の方式では、接続通知箇所
決定ステップで、選択される接続要求の競合の観測か
ら、接続要求再開までの待機時間の差が、バス上で最も
離れた通信ノード間で信号を往復してリピートさせるの
に充分な時間であることにより、待機時間の選択結果が
異なる場合に、確実に競合の勝敗が決定される。請求項
11記載のトポロジー修正方式は、請求項1記載のトポ
ロジー修正方式において、接続通知箇所決定ステップ
で、ノードグループ内で、局所的ルートノードを決定
し、局所的ルートノードに対して接続要求を行い、局所
的ルートノードが接続許可の送信を開始することを特徴
とする。
In the system according to the tenth aspect, in the connection notification location determination step, a difference in a waiting time from the observation of the conflict of the selected connection request to the restart of the connection request is determined between the communication nodes farthest apart on the bus. The time sufficient to repeat the signal back and forth ensures that the winning or losing of the competition is determined when the selection result of the waiting time is different. In the topology correction method according to the eleventh aspect, in the topology correction method according to the first aspect, in the connection notification point determination step, a local root node is determined in the node group, and a connection request is issued to the local root node. Perform the transmission of the connection permission by the local root node.

【0018】請求項11記載の方式では、接続通知箇所
決定ステップで、ノードグループ内での局所的なルート
ノードを決定することにより、多数の通信ノードからの
接続要求の調停を高速に行う。請求項12記載のトポロ
ジー修正方式は、請求項4記載のトポロジー修正方式に
おいて、接続通知箇所決定ステップで、接続通知可能に
なった場合、接続通知を行うポートを、ループを構成す
るポートで、まだ接続可能な状態にないポートから、乱
数発生手段によって与えられる乱数に基づいて選択する
ことを特徴とする。
In the system according to the eleventh aspect, the connection notification location determining step determines a local root node in the node group, thereby arbitrating connection requests from a large number of communication nodes at a high speed. In the topology correction method according to the twelfth aspect, in the topology correction method according to the fourth aspect, when the connection notification is enabled in the connection notification location determination step, the port that performs the connection notification is a port constituting a loop, and It is characterized in that selection is made from a port that is not in a connectable state based on a random number given by a random number generating means.

【0019】請求項12記載の方式では、接続ステップ
で、接続通知を送信するポートを、まだ接続可能な隣接
通信ノードのないループを構成するポートのなかから、
乱数発生手段を用いてランダムに決定することにより、
接続通知ポートとして選ばれるポートの規則性をなく
す。請求項13記載のトポロジー修正方式は、請求項1
記載のトポロジー修正方式において、待機ステップでの
待機時間を、乱数発生手段によって与えられる乱数に基
づいて複数の時間の中から決定することを特徴とする。
According to the twelfth aspect of the present invention, in the connecting step, the port for transmitting the connection notification is selected from among ports constituting a loop having no connectable adjacent communication node.
By randomly determining using random number generation means,
Eliminates the regularity of the port selected as the connection notification port. The topology correction method according to the thirteenth aspect is directed to the first aspect.
In the above described topology modification method, the waiting time in the waiting step is determined from a plurality of times based on a random number given by the random number generating means.

【0020】請求項13記載の方式では、待機ステップ
で、待機する時間を乱数発生手段用いてランダムに決定
することにより、接続通知ノードとして選ばれるノード
の規則性をなくす。請求項14記載のトポロジー修正方
式は、請求項1記載のトポロジー修正方式において、接
続ステップの直後に、接続確認ステップを有し、接続確
認ステップで隣接通信ノードと接続可能であるかの判定
を行い、直前の接続ステップで隣接通信ノードと接続可
能と判定された場合には、隣接通信ノードが自らと接続
可能と判断させる接続確認を送信することを特徴とす
る。
In the method according to the thirteenth aspect, in the waiting step, the waiting time is randomly determined by using a random number generating means, thereby eliminating the regularity of the node selected as the connection notification node. According to a fourteenth aspect of the present invention, there is provided the topology modification method according to the first aspect, further comprising a connection confirmation step immediately after the connection step, wherein the connection confirmation step determines whether connection with an adjacent communication node is possible. When it is determined in the immediately preceding connection step that connection with the adjacent communication node is possible, the adjacent communication node transmits a connection confirmation for determining that connection with itself is possible.

【0021】請求項14記載の方式では、隣接通信ノー
ドと接続可能と判定されたポートから接続確認を送信
し、接続確認ステップでも隣接通信ノードと接続可能か
を判定することにより、各通信ノード間のクロックの位
相のずれによる、接続可能性の判断の食い違いをなく
す。請求項15記載のトポロジー修正方式は、請求項1
記載のトポロジー修正方式において、ループ検出ステッ
プでループが検出されてから、トポロジー修正に必要な
時間が経過していたら、トポロジー修正の処理を終了す
ることを特徴とする。
In the method according to the fourteenth aspect, a connection confirmation is transmitted from a port determined to be connectable to an adjacent communication node, and it is determined in the connection confirmation step whether connection with the adjacent communication node is possible. Of the possibility of connection due to the phase shift of the clocks. The topology correction method according to claim 15 is a method according to claim 1.
In the described topology correction method, if a time required for the topology correction has elapsed since the loop was detected in the loop detection step, the process of the topology correction is terminated.

【0022】請求項15記載の方式では、ループ検出時
から一定時間経過後にトポロジー修正の処理を終了する
ことにより、離れた通信ノード間で情報をやりとりする
ことなく処理を完了させる。
In the system according to the fifteenth aspect, by terminating the topology correction processing after a lapse of a predetermined time from the time of detecting the loop, the processing is completed without exchanging information between distant communication nodes.

【0023】[0023]

【発明の実施の形態】本発明の実施の形態について図1
から図13を用いて説明する。以下では、今回のトポロ
ジー修正方式をIEEE1394の規定によるケーブル
物理層で実現される場合を前提に、IEEE1394の
制約を考慮して説明する。
FIG. 1 shows an embodiment of the present invention.
This will be described with reference to FIG. The following description is given on the assumption that the current topology correction method is realized by the cable physical layer defined by IEEE 1394, taking into account the restrictions of IEEE 1394.

【0024】まず、図2〜図8の順で本発明のトポロジ
ー修正方式によりトポロジーが再構築されていく過程を
示す。図2は通信ノード100,101,102がルー
プ配置された状態を示している。103〜108はそれ
ぞれポート、110〜112は伝送路である。図3は各
通信ノード100,101,102がループ配置されて
いることを検出し、ノード間を接続している各伝送路1
10,111,112についての接続を論理的に無効に
した状態を示している。このようにいったん、ループ内
の全ての接続を無効にしてしまうのは、IEEE139
4の規定がホストを必要としない、全てのノードが対等
なインターフェースであるため、部分的に無効な箇所を
作って通信を行おうとすると、複数の通信ノードが同様
な動作をして、他の通信ノードと切り離された孤立した
通信ノードができてしまう可能性があるからである。
First, the process of reconstructing the topology by the topology correction method of the present invention will be described in the order of FIGS. FIG. 2 shows a state in which the communication nodes 100, 101, and 102 are arranged in a loop. 103 to 108 are ports, and 110 to 112 are transmission lines. FIG. 3 shows that each of the communication nodes 100, 101, and 102 detects that they are arranged in a loop, and that each of the transmission lines 1 connecting the nodes is connected.
This shows a state in which connections for 10, 111, and 112 are logically invalidated. In this way, once all connections in the loop are invalidated, the IEEE 139
Because all the nodes do not require a host and all the nodes have the same interface, if an attempt is made to communicate by making a partially invalid portion, a plurality of communication nodes operate in the same way, This is because there is a possibility that an isolated communication node separated from the communication node may be formed.

【0025】図4は通信ノード100と通信ノード10
1が、それぞれポート104,ポート106から接続通
知115,116を送信している状態を示している。こ
のように隣接する通信ノード同士が同一伝送路で接続通
知を送信してはいない段階ではまだ、論理的に接続可能
とは判断されない。図5は通信ノード100と通信ノー
ド101のうち、通信ノード101が接続通知を送信す
るポートを変え、それぞれポート104、ポート105
から接続通知117,118を送信している状態を示し
ている。このように隣接する通信ノード同士が同一伝送
路で接続通知を送信している段階で、隣接する通信ノー
ド100と通信ノード101はループを形成することな
く接続可能と判断する。このような箇所、ここでは伝送
路110は実線で表示する。
FIG. 4 shows the communication nodes 100 and 10
1 shows a state in which connection notifications 115 and 116 are transmitted from the ports 104 and 106, respectively. Thus, at the stage where the adjacent communication nodes have not transmitted the connection notification on the same transmission path, it is not yet determined that the connection is logically possible. FIG. 5 shows that the communication node 101 of the communication node 100 and the communication node 101 changes the port for transmitting the connection notification, and the port 104 and the port 105 respectively.
Shows a state in which connection notifications 117 and 118 are being transmitted from. Thus, at the stage where the adjacent communication nodes are transmitting the connection notification on the same transmission path, the adjacent communication nodes 100 and 101 determine that connection is possible without forming a loop. Such a portion, here, the transmission line 110 is indicated by a solid line.

【0026】図6は接続可能と判断された通信ノード1
00と通信ノード101が、1つのノードグループ11
3を形成した状態を示している。もちろん、このノード
グループは、バス全体を観察した時の論理的なもので、
実際には各通信ノードはどの隣接する通信ノードと接続
可能かという情報しか持たない。図7は通信ノード10
1がさらに接続可能な通信ノードを増やすため、通信ノ
ード102と接続通知119,120の送受信を行って
いる状態である。1つのノードグループから送信される
接続通知は1つでなくてはならない。これは、同じノー
ドグループ内で接続を行ってループが形成される危険性
をなくすためである。
FIG. 6 shows a communication node 1 determined to be connectable.
00 and the communication node 101 are one node group 11
3 shows a state in which 3 is formed. Of course, this node group is logical when you look at the whole bus,
Actually, each communication node has only information on which adjacent communication node can be connected. FIG. 7 shows the communication node 10
1 is transmitting and receiving connection notifications 119 and 120 with the communication node 102 in order to further increase the number of communication nodes that can be connected. There must be one connection notification sent from one node group. This is to eliminate the risk that a loop is formed by connecting within the same node group.

【0027】図8はバス全体の通信ノード100,10
1,102が同一のノードグループ114を形成した状
態を示している。ノードグループ114はディジーチェ
ーン配置になっているので、この状態で論理的な接続関
係を決定すればデータ転送を行うことが可能となる。こ
れ以降もポート103かポート108から接続通知が送
信されるが、同時に送信されることがないため、接続を
行ってループを形成してしまうという問題は発生しな
い。
FIG. 8 shows the communication nodes 100 and 10 of the entire bus.
1 and 102 have formed the same node group 114. Since the node groups 114 are arranged in a daisy chain, data transfer can be performed by determining a logical connection relationship in this state. After this, the connection notification is transmitted from the port 103 or the port 108, but is not transmitted at the same time, so that the problem of making a connection and forming a loop does not occur.

【0028】以下では、以上のような処理を行うための
各通信ノードの制御方法について述べる。図1に各通信
ノードの制御方法についての本発明の実施の形態におけ
るフローチャートを示す。ループ検出ステップ1は、I
EEE1394の規定の物理層のステートのTree−
ID Startに対応する。ここでは、バスリセット
後、一定時間以上経っても物理的にケーブルと接続され
ているポート全て、もしくはそのうち1つを除いた全て
のポートでRX_PARENT_NOTIFYと呼ばれ
る信号を受信しない場合、通信ノードがループ配置され
ていることを検知することが決められている。
In the following, a control method of each communication node for performing the above processing will be described. FIG. 1 shows a flowchart of a control method of each communication node in the embodiment of the present invention. The loop detection step 1 is based on I
Tree- of the state of the physical layer specified by EEE1394
Corresponds to ID Start. In this case, if a signal called RX_PARENT_NOTIFY is not received by all ports physically connected to the cable or all ports except one after a bus reset for a certain period of time or longer, the communication node may be placed in a loop. It is decided to detect that it is being done.

【0029】ループ検出の判断ステップ6でループ検出
されたかどうかを判定し、ループ検出ステップ1でルー
プ配置が検出されない場合は、そのまま規格で定められ
た初期化動作を継続する(初期化フェーズ)。ループが
検出された場合は、以下に述べるトポロジー修正フェー
ズ10に入る。トポロジー修正フェーズ10に遷移する
際、各ポートの物理的な接続に基づいてセットされた接
続フラグをクリアして、論理的に接続を無効にする。ま
た、ループ検出ステップ1で物理的に接続されていなが
ら、RX_PARENT_NOTIFYを受信しなかっ
たポートについては、ループを構成するポートとみな
し、以降トポロジー修正フェーズ10での信号のやりと
りはこのポートを通じてのみ行われ、その他のポートで
観測された信号は無視される。
It is determined whether or not a loop has been detected in the loop detection determining step 6. If no loop arrangement is detected in the loop detecting step 1, the initialization operation specified by the standard is continued (initialization phase). If a loop is detected, the process enters the topology modification phase 10 described below. At the time of transition to the topology modification phase 10, the connection flag set based on the physical connection of each port is cleared and the connection is logically invalidated. Ports that have not received RX_PARENT_NOTIFY while being physically connected in the loop detection step 1 are regarded as ports constituting a loop, and signal exchange in the topology modification phase 10 is performed only through this port. , Signals observed at other ports are ignored.

【0030】トポロジー修正フェーズ10は、接続ステ
ップ2、接続確認ステップ3、待機ステップ4および接
続通知箇所決定ステップ5と、修正完了時間の判断ステ
ップ7および接続通知の判断ステップ8から成る。接続
ステップ2は、他の通信ノードとの論理的な接続関係を
構築していくステップであり、ここでは各通信ノード
は、ループを構成しているポートのうちいずれか1つか
ら接続通知(TX_CONNECT_NOTIFY)を
送信する。このポートについては、複数候補がある場
合、できるだけランダムに選ばれるのが望ましい。これ
は、接続通知を行う順番に規則性があると、双方の接続
通知箇所が一致しないような無限ループに陥る可能性が
あるからである。そこで、例えば乱数発生手段によって
与えられる乱数のモジュロ(乱数を未接続なループを構
成するポート数で割った余り)をとってポートを決定す
る。
The topology correction phase 10 includes a connection step 2, a connection confirmation step 3, a standby step 4, a connection notification location determination step 5, a correction completion time determination step 7, and a connection notification determination step 8. The connection step 2 is a step of establishing a logical connection relationship with another communication node. Here, each communication node transmits a connection notification (TX_CONNECT_NOTIFY) from any one of the ports constituting the loop. ). When there are a plurality of candidates for this port, it is desirable to select the port as randomly as possible. This is because if there is a regularity in the order of performing the connection notification, there is a possibility that an infinite loop in which both connection notification locations do not match. Therefore, the port is determined by, for example, taking the modulo of the random number given by the random number generating means (the remainder obtained by dividing the random number by the number of ports constituting an unconnected loop).

【0031】IEEE1394の規定のケーブル物理層
では、信号はAB2組のツイストペアケーブルを伝送路
としてやりとりされる。AB各組は1,0,Z(ハイイ
ンピーダンス)の3つの状態をとり、一方の通信ノード
のAポートと他方の通信ノードのBポートとが接続され
るようになっている。そのため、一方の通信ノードから
送信された信号は、AB反転して他方の通信ノードで受
信される。
In the cable physical layer defined by IEEE 1394, signals are exchanged using two twisted pair cables of AB as a transmission path. Each set of AB takes three states of 1, 0, and Z (high impedance), and the A port of one communication node is connected to the B port of the other communication node. Therefore, the signal transmitted from one communication node is AB-inverted and received by the other communication node.

【0032】ここでいう接続通知(TX_CONNEC
T_NOTIFY)はA=Z,B=0のラインステート
で表現することができる。接続ステップ2では、この接
続通知を送信するとともに、接続通知を行っているポー
トでケーブルの接続によって隣接している通信ノードと
接続可能であるかを接続有効(RX_CONNECT)
を受信したかで判断する。接続有効(RX_CONNE
CT)はA=0,B=0のラインステートのことであ
り、接続通知を行っているポートで、隣接する通信ノー
ドも接続通知もしくは後述する接続確認(TX_CON
NECT_CONFIRM,A=0,B=0)を送信し
た結果観測される状態である。接続通知を行っているポ
ートで接続有効を受信したら、その後接続ステップ2と
接続確認ステップ3の間、接続確認(TX_CONNE
CT_CONFIRM)を送信する。そして、接続有効
を受信したかしないにかかわらず、接続ステップ2から
一定時間経過したら接続確認ステップ3に遷移する。
The connection notification (TX_CONNECT) referred to here
T_NOTIFY) can be represented by a line state of A = Z, B = 0. In the connection step 2, this connection notification is transmitted, and it is determined whether or not the port performing the connection notification can connect to the adjacent communication node by connecting the cable (RX_CONNECT).
Is determined by whether or not received. Connection valid (RX_CONNE
CT) is a line state of A = 0, B = 0, and is a port that is performing connection notification, and an adjacent communication node is also notified of connection or connection confirmation (TX_CON) described later.
(NECT_CONFIRM, A = 0, B = 0). When the connection validity is received at the port that has performed the connection notification, the connection confirmation (TX_CONNE) is performed between the connection step 2 and the connection confirmation step 3 thereafter.
CT_CONFIRM). Then, irrespective of whether or not the connection validity is received, the process proceeds to the connection confirmation step 3 after a lapse of a predetermined time from the connection step 2.

【0033】なお、接続ステップ2と接続確認ステップ
3における、接続確認(TX_CONNECT_CON
FIRM)の送信動作については、基本的に同じもので
あり、両ステップは、接続ステップ2では接続通知の送
信を行い、接続確認ステップ3では接続通知を行わない
点で相違するのみである。接続確認ステップ3は、各通
信ノードの位相のずれによって、同一箇所の接続可能性
についてその両端の通信ノードで食い違う判断が生じる
のを防止するためのステップである。ここでは、直前の
接続ステップ2で隣接通信ノードと接続可能と判断され
た場合には接続確認を送信する。これにより、接続可能
と判断された隣接通信ノードが、こちらとは接続可能と
判断できないままになってしまう危険を防止している。
図9に示す例では、通信ノード0が接続可能と判断して
接続確認ステップ121で接続確認を送信している。な
お、図9において、120は通信ノード0の接続ステッ
プを示し、122は通信ノード0の待機ステップを示し
ている。また、123は通信ノード1の接続ステップを
示している。
In the connection step 2 and the connection confirmation step 3, the connection confirmation (TX_CONNECT_CON
The FIRM) transmission operation is basically the same, and the only difference between the two steps is that the connection notification is transmitted in the connection step 2 and the connection notification is not performed in the connection confirmation step 3. The connection confirmation step 3 is a step for preventing a possibility that the communication nodes at both ends of the communication node may determine that the connection is possible at the same location due to a phase shift between the communication nodes. Here, if it is determined in the immediately preceding connection step 2 that connection with the adjacent communication node is possible, a connection confirmation is transmitted. This prevents a risk that an adjacent communication node determined to be connectable cannot remain determined to be connectable to this node.
In the example shown in FIG. 9, the communication node 0 determines that connection is possible, and transmits a connection confirmation in the connection confirmation step 121. In FIG. 9, reference numeral 120 denotes a connection step of the communication node 0, and reference numeral 122 denotes a standby step of the communication node 0. Reference numeral 123 denotes a connection step of the communication node 1.

【0034】直前の接続ステップ2で隣接通信ノードと
接続可能と判断されなかった場合は、何も送信しない
(A=Z,B=Z)。また、直前の接続ステップ2で接
続通知を行っていたポートで隣接通信ノードと接続可能
かの判断は引続き行っており、隣接通信ノードが接続可
能と判断していながら、自らは判断できずに接続確認ス
テップに遷移してしまった場合でも判断ミスが生じな
い。図10に示す例では、接続確認ステップ125で、
通信ノード1の送信している接続確認を受信して接続可
能と判断している。なお、図10において、124は通
信ノード0の接続ステップを示し、126は通信ノード
0の待機ステップ、127は通信ノード1の接続ステッ
プを示している。
If it is not determined in the immediately preceding connection step 2 that connection with the adjacent communication node is possible, nothing is transmitted (A = Z, B = Z). Further, the determination as to whether or not the connection was possible with the adjacent communication node at the port for which the connection notification was performed in the immediately preceding connection step 2 is continuously performed, and although the adjacent communication node has determined that the connection is possible, the connection cannot be determined by itself. No misjudgment occurs even in the case of transition to the confirmation step. In the example shown in FIG. 10, in the connection confirmation step 125,
The connection confirmation transmitted by the communication node 1 is received, and it is determined that the connection is possible. In FIG. 10, reference numeral 124 denotes a connection step of the communication node 0, 126 denotes a standby step of the communication node 0, and 127 denotes a connection step of the communication node 1.

【0035】接続確認ステップ3からは一定時間経過し
たら待機ステップ4へ遷移する。この遷移時に乱数発生
手段によって与えられる乱数の奇偶をみることにより、
次の待機ステップ4で待機する時間を長短2通りで選
ぶ。待機ステップ4では、接続確認ステップ3で決めら
れた時間待機して接続通知箇所決定ステップ5へ遷移す
る。ここで待機時間を複数設定するのは、次のステップ
で接続通知を行う通信ノードを決定する際、決定がラン
ダムに行われるようにするためである。
After a certain time has passed from the connection confirmation step 3, the process proceeds to the waiting step 4. By seeing the odd or even number of the random number given by the random number generation means at this transition,
The waiting time in the next waiting step 4 is selected in two ways, long and short. In the standby step 4, the process waits for the time determined in the connection confirmation step 3 and transitions to a connection notification location determination step 5. The reason why a plurality of standby times are set here is that when a communication node to be notified of a connection is determined in the next step, the determination is made at random.

【0036】接続通知箇所決定ステップ5は、接続可能
な関係にあるノードグループの中から接続通知を送信す
る通信ノードを1つに決定するためのステップである。
この接続通知箇所決定ステップ5をフローチャートを図
11に示す。図11において、ステップ20で接続可能
な隣接通信ノードがまだ存在しない場合は、接続通知の
判断ステップ8を経由して接続ステップ2へ遷移する。
The connection notification location determination step 5 is a step for determining one communication node to which a connection notification is to be transmitted from among the connectable node groups.
FIG. 11 shows a flowchart of the connection notification portion determination step 5. In FIG. 11, if there is no connectable adjacent communication node in step 20, the process proceeds to the connection step 2 via the connection notification determination step 8.

【0037】接続可能な隣接通信ノードが存在し、かつ
他の通信ノードからの接続要求(RX_CONNECT
_REQUEST)を受信していない場合(ステップ2
1)には、接続可能な関係にある隣接通信ノード全てに
対して、接続要求(TX_CONNECT_REQUE
ST)を送信する(ステップ22)。接続要求(TX_
CONNECT_REQUEST)はA=0,B=Zの
ラインステートで表現される。接続要求を送信した全て
のポートで接続許可(RX_CONNECT_GRAN
T,A=0,B=1)を受信したら(ステップ23)、
接続通知を行う通信ノードは送信するポートを前述のよ
うにランダムに決定し、接続ステップ2に遷移する。
There is a connectable adjacent communication node, and a connection request (RX_CONNECT) from another communication node
_REQUEST) has not been received (step 2
In 1), a connection request (TX_CONNECT_REQUEST) is sent to all adjacent communication nodes that can be connected.
ST) is transmitted (step 22). Connection request (TX_
CONNECT_REQUEST) is represented by a line state where A = 0 and B = Z. Connection permission (RX_CONNECT_GRAN) at all ports that transmitted the connection request
T, A = 0, B = 1) (step 23),
The communication node that performs the connection notification randomly determines the port to be transmitted as described above, and transitions to connection step 2.

【0038】通信ノードが接続要求を送信する前に、隣
接通信ノードからの接続要求を受信した(ステップ2
1)通信ノードは、要求をリピートするために(ステッ
プ27)、要求を行ってきたノード以外の接続可能な隣
接通信ノードに接続要求を送信する(ステップ28)。
そして、接続要求を送信した全てのポートで接続許可
(RX_CONNECT_GRANT)を受信したら
(ステップ29)、接続要求を受信したポートから接続
許可(TX_CONNECT_GRANT,A=1,B
=Z)を送信してリピートする(ステップ36)。
Before the communication node transmits a connection request, it receives a connection request from an adjacent communication node (step 2).
1) The communication node transmits a connection request to a connectable adjacent communication node other than the requesting node to repeat the request (step 27) (step 28).
Then, when connection permission (RX_CONNECT_GRANT) is received by all ports that have transmitted the connection request (step 29), connection permission (TX_CONNECT_GRANT, A = 1, B) is received from the port that received the connection request.
= Z) and repeats (step 36).

【0039】接続可能な隣接通信ノードが接続要求して
きたものしかない場合(ステップ27)は、要求をして
きた隣接通信ノードに対して接続許可を送信する(ステ
ップ37)。接続許可を送信した通信ノードは、待機時
間を前述のように決定して待機ステップ4へ遷移する。
接続許可を受信しなかった場合、接続要求を複数同時に
受信したかを判断し(ステップ30)、複数受信の場合
は、接続要求を行ってきた隣接通信ノードに対して、接
続要求を送信し、要求の競合状態を作り出すことで、複
数受信による競合を通知する(ステップ38)。そし
て、競合通知終了(RX_CONTEND_END,A
=0,B=Zのラインステート)受信により(ステップ
39)、再び接続要求を送信もしくはリピート可能な状
態に戻る。
If there is only a connection request from a connectable adjacent communication node (step 27), a connection permission is transmitted to the requesting adjacent communication node (step 37). The communication node that has transmitted the connection permission determines the standby time as described above, and transitions to standby step 4.
If no connection permission has been received, it is determined whether a plurality of connection requests have been received simultaneously (step 30). If a plurality of connection requests have been received, a connection request is transmitted to the adjacent communication node that has issued the connection request, By creating a contention state of the request, a contention due to a plurality of receptions is notified (step 38). Then, the conflict notification ends (RX_CONTEND_END, A
= 0, B = Z line state) Upon reception (step 39), the connection request returns to a state where transmission or repeat is possible.

【0040】複数受信しなかった場合、接続要求競合
(RX_REQUEST_CONTEND,A=0,B
=0のラインステート)を受信したかを判断し(ステッ
プ31)、受信していなければ要求のリピートを続け、
受信した場合には接続要求の送信を停止する(ステップ
32)。また、競合を接続要求の送信を開始したノード
に通知するため、接続要求を行ってきた隣接通信ノード
に対して、接続要求を送信し、要求の競合状態を作り出
すことで、複数受信による競合を通知する(ステップ3
3)。そして、競合状態通知終了受信により(ステップ
34)、再び接続要求を送信もしくはリピート可能な状
態に戻る。
If not received, a connection request conflict (RX_REQUEST_CONTEND, A = 0, B
= 0 (line state of 0) is received (step 31), and if not received, the request is repeated.
If received, the transmission of the connection request is stopped (step 32). In addition, in order to notify the node that has started transmitting the connection request of the contention, a connection request is transmitted to the adjacent communication node that has issued the connection request, and a contention state of the request is created, so that contention due to multiple receptions can be performed. Notify (Step 3
3). Then, upon reception of the race condition notification end (step 34), the state returns to the state in which the connection request can be transmitted or repeated again.

【0041】ステップ22で接続要求を自分から始めた
通信ノードが要求競合を受信した場合は(ステップ2
4)、競合に打ち勝つノードの決定をできるだけランダ
ムに行うために、待機時間を乱数発生手段によって与え
られる乱数の最下位ビットをみて長短2通りから選択し
(ステップ25)、選択した待機時間、要求競合を受信
したポートからの送信を停止する(ステップ26)。そ
して、待機中に接続要求を受信した場合は、競合に敗れ
たと判断し(ステップ27)、その他の隣接通信ノード
に接続要求をリピートする(ステップ30)。待機時間
経過しても接続要求を受信しない場合は、再び接続要求
を行う(ステップ22)。この待機時間の長いものと短
いものとの差は、要求を行っている通信ノード間で、要
求競合と接続要求をリピートする時間の合計以上にする
必要がある。これは、待機時間に長短の差が出たにもか
かわらず、接続要求をリピートしている間に他方も接続
要求を開始して、競合の勝敗が決まらなくなることを避
けるためである。
If the communication node that has initiated the connection request in step 22 receives a request conflict (step 2)
4) In order to determine the node that can overcome the competition as randomly as possible, the waiting time is selected from two types of long and short according to the least significant bit of the random number given by the random number generating means (step 25), and the selected waiting time and request The transmission from the port receiving the conflict is stopped (step 26). If a connection request is received during standby, it is determined that the contention has been lost (step 27), and the connection request is repeated to other adjacent communication nodes (step 30). If no connection request is received after the elapse of the standby time, a connection request is made again (step 22). The difference between the long waiting time and the short waiting time needs to be equal to or more than the sum of the request contention and the time for repeating the connection request between the requesting communication nodes. This is to prevent the other party from starting the connection request while the connection request is being repeated, even if there is a difference in the length of the waiting time, so that the winning or losing of the competition cannot be determined.

【0042】接続通知箇所決定ステップ5については、
図12および図13のフローチャートに示すような実現
方法もある。この方法は、IEEE1394の規定でル
ートノードを決める方法に従い、ノードグループ内での
局所的なルートノードを決定し、接続通知を行う箇所の
候補を持つ通信ノードが、この局所的ルートノードに対
して接続要求を行い、これに対して局所的ルートノード
が接続許可を行う方法である。
Regarding the connection notification point determination step 5,
There is also an implementation method as shown in the flowcharts of FIGS. According to this method, a local node in a node group is determined according to a method of determining a root node in accordance with the IEEE 1394 standard, and a communication node having a candidate for a location to perform a connection notification is assigned to this local node. This is a method in which a connection request is made, and a local root node grants a connection to the request.

【0043】局所的なルートノードの決定過程は、接続
通知箇所決定ステップ5で、論理的に接続されているポ
ートが1つしかないとステップ50で判断した通信ノー
ドは、隣接通信ノードに対してPARENT_NOTI
FYという信号を送信する。各通信ノードはステップ5
1でこのPARENT_NOTIFYをいくつのポート
で受信したかをカウントし、これが論理的に接続されて
いるポートの数から1引いたもの以上ならば、PARE
NT_NOTIFYを送信してきた通信ノードにCHI
LD_NOTIFYを送信するChild hands
hakeを行って、それらが自分の局所的子ノードであ
ることを確定する(ステップ52)。
In the process of determining the local root node, the communication node that determines in step 50 that there is only one port logically connected in the connection notification point determination step 5 PARENT_NOTI
The signal FY is transmitted. Step 5 of each communication node
The number of ports that received this PARENT_NOTIFY at 1 is counted, and if this is greater than or equal to the number of logically connected ports minus one, PARE
CHI to the communication node that sent NT_NOTIFY
Child hands sending LD_NOTIFY
Perform a hake to determine that they are their local child nodes (step 52).

【0044】PARENT_NOTIFYを送信してき
た通信ノードがPARENT_NOTIFYの送信を停
止したら、PARENT_NOTIFYをいくつのポー
トで受信したかのカウントが、論理的に接続されている
ポートの数と同じであれば局所的ルートノードになった
と判断し(ステップ53)、そうでなければParen
t Handshakeのステップ54に移る。ここで
は、論理的に接続されているポートでPARENT_N
OTIFYを受信しなかったポートからPARENT_
NOTIFYを送信し、これに対し隣接通信ノードがC
HILD_NOTIFYを送信してきたら、この隣接通
信ノードが局所的親ノードであると確定し、PAREN
T_NOTIFYの送信を停止する。隣接通信ノードも
PARENT_NOTIFYを送信してきた場合(ステ
ップ55)には乱数発生手段を用いて待機時間を選択し
(ステップ70)、待機後(ステップ71)にPARE
NT_NOTIFYを受信したらChild Hand
shakeを行って局所的ルートノードとなり、そうで
なければParent Handshakeを再試行す
る(ステップ72)。以上のようにして局所的ルートノ
ードは決められる。
When the communication node that has transmitted PARENT_NOTIFY stops transmitting PARENT_NOTIFY, if the count of the number of ports that received PARENT_NOTIFY is the same as the number of logically connected ports, the local root node Is determined (step 53), otherwise Paren
Move to step 54 of t Handshake. Here, PARENT_N is used for logically connected ports.
PARENT_ from the port that did not receive OTIFY
NOTIFY, and the adjacent communication node
When HILD_NOTIFY is transmitted, it is determined that this adjacent communication node is a local parent node, and PAREN
The transmission of T_NOTIFY is stopped. If the adjacent communication node has also transmitted PARENT_NOTIFY (step 55), a standby time is selected using random number generation means (step 70), and after standby (step 71), PARE is performed.
Child Hand when receiving NT_NOTIFY
Perform a shake to become the local root node, otherwise retry the Parent Handshake (step 72). The local root node is determined as described above.

【0045】局所的ルートノードが決定したら、これを
ノードグループ内に知らせるため、局所的ルートノード
はルート決定通知を送信し(ステップ73)、これを受
信したノードはこれをリピートする(ステップ58)。
この後、各ノードは乱数発生手段を用いて待機時間を選
択(ルートはステップ74、その他はステップ59)し
た後、待機(ルートはステップ75、その他はステップ
60)する。このように待機時間を乱数で選ばせるの
は、接続要求時に局所的ルートノードに近い通信ノード
ばかりが選ばれるのを防ぐためである。
When the local root node is determined, the local root node transmits a route determination notification to notify the node group within the node group (step 73), and the node receiving the notification repeats the notification (step 58). .
After that, each node selects a standby time using the random number generation means (step 74 for the route, step 59 for the others), and then waits (step 75 for the route, step 60 for the others). The reason why the waiting time is selected by a random number is to prevent a communication node close to the local root node from being selected only when a connection is requested.

【0046】待機時間経過後は、接続要求を受信してい
れば(ステップ76)、局所的ルートノードは接続許可
を接続要求を受信したポートから送信し(ステップ7
9)、それ以外の論理的に接続されたポートで接続通知
箇所決定通知を送信する(ステップ81)。それ以外の
ノードは接続要求を局所的親ノードに対してリピート
し、それ以外の論理的に接続されたポートで接続通知箇
所決定通知を送信する(ステップ66)。接続要求をリ
ピートした通信ノードが、接続許可を受信したら(ステ
ップ67)、接続要求を行ってきた局所的子ノードに接
続許可をリピートし(ステップ68)、それ以外の論理
的に接続されたポートで接続通知箇所決定通知を送信す
る(ステップ69)。
After the elapse of the waiting time, if a connection request has been received (step 76), the local root node transmits a connection permission from the port that received the connection request (step 7).
9), a connection notification location determination notification is transmitted on the other logically connected ports (step 81). The other nodes repeat the connection request to the local parent node, and transmit a connection notification location determination notification on the other logically connected ports (step 66). When the communication node that has repeated the connection request receives the connection permission (step 67), the communication node repeats the connection permission to the local child node that has issued the connection request (step 68), and the other logically connected ports Transmits a connection notification location determination notification (step 69).

【0047】接続通知箇所決定通知を受信した場合は全
ての論理的に接続されたポートで接続通知箇所決定通知
を送信する(ステップ69)。局所的ルートノードが待
機時間経過後に、接続要求を受信しない場合は、接続通
知を行えるポートを持つ通信ノードのうち、局所的ルー
トノードは接続通知箇所決定通知を受信した場合は、受
信した以外の全ての論理的に接続されたポートで接続通
知箇所決定通知を送信し(ステップ81)、接続ステッ
プ2へ遷移する。それ以外の通信ノードが接続要求を受
信しない場合は接続要求を局所的親ノードに対して送信
し(ステップ63)、接続許可を受信したら、接続ステ
ップ2へ、接続通知箇所決定通知を受信したら待機ステ
ップ4へ遷移する。
When the connection notification location determination notification is received, the connection notification location determination notification is transmitted from all logically connected ports (step 69). If the local root node does not receive the connection request after the elapse of the waiting time, among the communication nodes having ports that can perform the connection notification, the local root node receives the connection notification location determination notification, The connection notification location determination notification is transmitted from all logically connected ports (step 81), and the process proceeds to the connection step 2. If the other communication nodes do not receive the connection request, the connection request is transmitted to the local parent node (step 63). If the connection permission is received, the process proceeds to connection step 2. If the connection notification location determination notification is received, the process waits. Transition to step 4.

【0048】局所的ルートノード以外の通信ノードが待
機時間経過後に、接続要求を受信しない場合には、接続
通知を行えるポートを持たない通信ノードは、接続通知
箇所決定通知を受信したら(ステップ62,65)受信
した以外の全ての論理的に接続されたポートで接続通知
箇所決定通知を送信し(ステップ69)、待機ステップ
4へ遷移する。接続通知を受信したらこれをリピートす
る。以上のようにして接続通知を行う通信ノードは決め
られる。
If the communication nodes other than the local root node do not receive the connection request after the elapse of the standby time, the communication node having no port capable of performing the connection notification receives the connection notification location determination notification (step 62, 65) A connection notification location determination notification is transmitted on all logically connected ports other than the received port (step 69), and the process proceeds to the standby step 4. When the connection notification is received, repeat this. As described above, the communication node that performs the connection notification is determined.

【0049】この後者の方法は接続要求を行う通信ノー
ドが多数の場合、調停が高速に行われる。以上のような
処理を繰り返し行うことにより充分な時間が経った状態
では、バス上の通信ノード全てが1つのノードグループ
を形成していることになる。待機ステップ4では、トポ
ロジー修正フェーズ10を開始してからの時間がトポロ
ジー修正時間を超えていれば(ステップ7)、接続に関
する情報を固定して、トポロジー修正フェーズ10を終
了し、通常の初期化フェーズに戻る。
In the latter method, arbitration is performed at high speed when there are a large number of communication nodes requesting connection. When a sufficient time has passed by repeating the above processing, all the communication nodes on the bus have formed one node group. In the waiting step 4, if the time since the start of the topology correction phase 10 exceeds the topology correction time (step 7), the information on the connection is fixed, the topology correction phase 10 is terminated, and normal initialization is performed. Return to phase.

【0050】IEEE1394の規定のケーブル物理層
は、一般的にポート、レシーバ、トランスミッタ、ステ
ートマシン、リンクインターフェース、乱数発生手段に
より構成されるが、以上のトポロジー修正方式は、ソフ
トウェア処理に頼ることなくハードロジックで構成され
たステートマシンについて変更を加えるだけで、接続関
係の構築が実現可能である。
The cable physical layer defined by IEEE 1394 is generally composed of ports, receivers, transmitters, state machines, link interfaces, and random number generating means. However, the above-described topology modification method does not rely on software processing but hardware. The connection relation can be constructed only by changing the state machine configured by logic.

【0051】ここで、ノードの接続関係を論理的に無効
にすること、および接続関係を再構築するということ
と、現実のハードウェア構成上の配線との関係について
説明する。接続関係を無効にするというのは、具体的に
はステートマシンのポートの接続に関するフラグをクリ
アすることであり、これを再構築するというのは、必要
箇所のフラグをセットしていく作業に相当する。このよ
うな処理を実現するのには、ポート等のアナログ回路の
変更は不要で、ステートマシンのロジックを変更するだ
けでよい。
Here, a description will be given of the relation between logically invalidating the connection relation of the nodes and reconstructing the connection relation, and the wiring in the actual hardware configuration. Disabling the connection is to clear the flag related to the connection of the port of the state machine, and rebuilding it is equivalent to setting the necessary flag. I do. In order to realize such processing, it is not necessary to change an analog circuit such as a port, but only to change the logic of the state machine.

【0052】以上説明したように、この実施の形態によ
れば、いったん接続関係を論理的に無効にして、論理的
に接続関係を再構築することにより、物理的にループ配
置されたバスを、ツリーもしくはディジーチェーンとし
て認識することで、通信可能にする効果がある。また、
隣接する通信ノードとの信号のやりとりによってのみ処
理が行われるため、ハードウェアのみで実現することが
できる。また、隣接通信ノードとの接続可能性を、双方
とも接続通知を行っているかどうかで判断することによ
り、シリアルケーブルのように限られた情報の伝達しか
できない伝送路でも実現できる。また、接続可能と判断
された通信ノード同士が同一のノードグループに属し、
1つのノードグループからは1ポートからしか接続通知
を行わないことで、離れたノードと情報をやりとりする
ことなく、トポロジーが再構成される過程でループが形
成されるのを防ぐことができる。また、接続通知箇所決
定ステップで、まだ隣接通信ノードと接続可能でないル
ープを形成するポートを持つループ内ノードが接続要求
を送信することにより、短時間でノードグループ内で接
続通知を行うノードの候補を決めることができる。ま
た、接続通知箇所決定ステップで、先に接続要求を行っ
た通信ノードの要求を優先して、他の隣接通信ノードに
リピートすることにより、情報の多くのせられない伝送
路上で、高速に要求の伝搬、調停を行うことができる。
また、接続通知箇所決定ステップで、接続要求をリピー
トした方向の通信ノード全ての接続許可を得て、接続通
知を行うことで、ルートなどを決めずに接続通知を行う
ノードを決定することができる。
As described above, according to this embodiment, once the connection relation is logically invalidated and the connection relation is logically reconstructed, the bus physically arranged in a loop is Recognition as a tree or a daisy chain has the effect of enabling communication. Also,
Since processing is performed only by exchanging signals with an adjacent communication node, it can be realized only by hardware. Further, by judging whether the connection with the adjacent communication node is possible or not based on whether or not both have notified the connection, a transmission path such as a serial cable which can transmit only limited information can be realized. Also, communication nodes determined to be connectable belong to the same node group,
By notifying the connection from only one port from one node group, it is possible to prevent a loop from being formed in the process of reconfiguring the topology without exchanging information with a remote node. Also, in the connection notification location determination step, a node in a loop having a port forming a loop that is not yet connectable to an adjacent communication node transmits a connection request, and thus a candidate for a node that performs connection notification within a short time in a node group Can be determined. Also, in the connection notification location determination step, the request of the communication node that has made the connection request first is prioritized and repeated to other adjacent communication nodes, so that the request can be sent at high speed on a transmission path where much information cannot be given. Propagation and arbitration can be performed.
Also, in the connection notification location determination step, by obtaining connection permission for all communication nodes in the direction in which the connection request was repeated and performing connection notification, it is possible to determine a node that performs connection notification without determining a route or the like. .

【0053】また、接続通知箇所決定ステップで、接続
要求をリピートする先のない通信ノードから接続許可を
開始することで、ルートなどを決めずに、接続通知を行
うノードを決定することができる。また、接続通知箇所
決定ステップで、同時に接続要求をしてきた通信ノード
に対して、接続要求を送信して、要求の競合状態を作り
出すことにより、要求を再試行させることができる。
Also, by starting connection permission from a communication node having no destination to repeat a connection request in the connection notification location determination step, it is possible to determine a node for which connection notification is to be performed without determining a route or the like. In addition, in the connection notification location determination step, the request can be retried by transmitting the connection request to the communication node that has made the connection request at the same time and creating a contention state of the request.

【0054】また、接続通知箇所決定ステップで、乱数
発生手段により、接続要求の競合の観測から、接続要求
再開までの待機時間をランダムに決定することで、接続
要求の調停結果の規則性をなくすことができる。また、
接続通知箇所決定ステップで、選択される接続要求の競
合の観測から、接続要求再開までの待機時間の差が、バ
ス上で最も離れた通信ノード間で信号を往復してリピー
トさせるのに充分な時間であることにより、待機時間の
選択結果が異なる場合に、確実に競合の勝敗を決定する
ことができる。また、接続通知箇所決定ステップで、ノ
ードグループ内での局所的なルートノードを決定するこ
とにより、多数の通信ノードからの接続要求の調停を高
速に行うことができる。
In the connection notification location determination step, the random number generating means randomly determines the waiting time until the connection request is resumed from the observation of the conflict of the connection request, thereby eliminating the regularity of the arbitration result of the connection request. be able to. Also,
In the connection notification point determination step, the difference in the waiting time until resuming the connection request from the observation of the conflict of the selected connection request is sufficient to cause the signal to reciprocate between the farthest communication nodes on the bus. Due to the time, when the selection result of the standby time is different, it is possible to reliably determine the winning or losing of the competition. In addition, by determining a local root node in the node group in the connection notification location determination step, arbitration of connection requests from a large number of communication nodes can be performed at high speed.

【0055】また、接続ステップで、接続通知を送信す
るポートを、まだ接続可能な隣接通信ノードのないルー
プを構成するポートのなかから、ランダムに決定するこ
とにより、接続通知ポートとして選ばれるポートの規則
性をなくすことができる。また、待機ステップで、待機
する時間を乱数発生手段を用いてランダムに決定するこ
とにより、接続通知ノードとして選ばれるノードの規則
性をなくすことで、接続可能なパターンが出現しないよ
うな無限ループに陥るのを防ぐことができる。
In the connection step, the port for transmitting the connection notification is determined at random from the ports constituting the loop having no connectable adjacent communication node, so that the port selected as the connection notification port is determined. Regularity can be eliminated. In the waiting step, the waiting time is determined at random using random number generating means, thereby eliminating the regularity of the node selected as the connection notification node, thereby forming an infinite loop in which no connectable pattern appears. It can be prevented from falling.

【0056】また、隣接通信ノードと接続可能と判定さ
れたポートから接続確認を送信し、接続確認ステップで
も隣接通信ノードと接続可能かを判定することにより、
各通信ノード間のクロックの位相のずれによる、接続可
能性の判断の食い違いをなくすことができる。また、ル
ープ検出時から一定時間経過後にトポロジー修正の処理
を終了することにより、離れた通信ノード間で情報をや
りとりすることなく処理を完了させることができる。
Also, a connection confirmation is transmitted from a port determined to be connectable to the adjacent communication node, and it is determined in the connection confirmation step whether connection with the adjacent communication node is possible.
It is possible to eliminate a discrepancy in the determination of the connection possibility due to the clock phase shift between the communication nodes. Further, by ending the topology correction processing after a lapse of a predetermined time from the detection of the loop, the processing can be completed without exchanging information between distant communication nodes.

【0057】[0057]

【発明の効果】請求項1記載のトポロジー修正方式によ
れば、いったん接続関係を論理的に無効にして、論理的
に接続関係を再構築することにより、物理的にループ配
置されたバスを、ツリーもしくはディジーチェーンとし
て認識することで、通信可能にする効果がある。また、
隣接する通信ノードとの信号のやりとりによってのみ処
理が行われるため、ハードウェアのみで実現することが
できる。
According to the topology correction method according to the first aspect of the present invention, by temporarily invalidating the connection relation and logically reconstructing the connection relation, the bus physically arranged in a loop can be replaced. Recognition as a tree or a daisy chain has the effect of enabling communication. Also,
Since processing is performed only by exchanging signals with an adjacent communication node, it can be realized only by hardware.

【0058】請求項2記載のトポロジー修正方式によれ
ば、隣接通信ノードとの接続可能性を、双方とも接続通
知を行っているかどうかで判断することにより、シリア
ルケーブルのように限られた情報の伝達しかできない伝
送路でも実現できる。請求項3記載のトポロジー修正方
式によれば、接続可能と判断された通信ノード同士が同
一のノードグループに属し、1つのノードグループから
は1ポートからしか接続通知を行わないことで、離れた
ノードと情報をやりとりすることなく、トポロジーが再
構成される過程でループが形成されるのを防ぐことがで
きる。
According to the topology correction method of the second aspect, the possibility of connection with an adjacent communication node is determined based on whether or not both have sent connection notices, so that limited information such as a serial cable can be obtained. It can be realized even with a transmission path that can only transmit. According to the topology correction method of the third aspect, the communication nodes determined to be connectable belong to the same node group, and the connection notification is performed only from one port from one node group, so that the remote nodes are separated. It is possible to prevent a loop from being formed in the process of reconfiguring the topology without exchanging information.

【0059】請求項4記載のトポロジー修正方式によれ
ば、接続通知箇所決定ステップで、まだ隣接通信ノード
と接続可能でないループを形成するポートを持つループ
内ノードが接続要求を送信することにより、短時間でノ
ードグループ内で接続通知を行うノードの候補を決める
ことができる。請求項5記載のトポロジー修正方式によ
れば、接続通知箇所決定ステップで、先に接続要求を行
った通信ノードの要求を優先して、他の隣接通信ノード
にリピートすることにより、情報の多くのせられない伝
送路上で、高速に要求の伝搬、調停を行うことができ
る。
According to the topology correction method of the fourth aspect, in the connection notification point determination step, the node in the loop having a port forming a loop that is not yet connectable to an adjacent communication node transmits a connection request. It is possible to determine a candidate for a node that performs a connection notification within a node group in time. According to the topology correction method according to the fifth aspect, in the connection notification location determination step, the request of the communication node which has made the connection request first is prioritized and repeated to other adjacent communication nodes, thereby increasing the amount of information. Request transmission and arbitration can be performed at high speed on a transmission path that cannot be used.

【0060】請求項6記載のトポロジー修正方式によれ
ば、接続通知箇所決定ステップで、接続要求をリピート
した方向の通信ノード全ての接続許可を得て、接続通知
を行うことで、ルートなどを決めずに接続通知を行うノ
ードを決定することができる。請求項7記載のトポロジ
ー修正方式によれば、接続通知箇所決定ステップで、接
続要求をリピートする先のない通信ノードから接続許可
を開始することで、ルートなどを決めずに、接続通知を
行うノードを決定することができる。
According to the topology correction method of the sixth aspect, in the connection notification location determination step, the connection is permitted by all the communication nodes in the direction in which the connection request is repeated, and the connection notification is performed to determine a route or the like. The node that performs the connection notification can be determined without the need. According to the topology correction method of the seventh aspect, in the connection notification location determining step, the connection is started from a communication node having no destination to repeat the connection request, so that the node that performs the connection notification without determining a route or the like. Can be determined.

【0061】請求項8記載のトポロジー修正方式によれ
ば、接続通知箇所決定ステップで、同時に接続要求をし
てきた通信ノードに対して、接続要求を送信して、要求
の競合状態を作り出すことにより、要求を再試行させる
ことができる。請求項9記載のトポロジー修正方式によ
れば、接続通知箇所決定ステップで、乱数発生手段によ
り、接続要求の競合の観測から、接続要求再開までの待
機時間をランダムに決定することで、接続要求の調停結
果の規則性をなくすことができる。
According to the topology correction method of the present invention, the connection request is transmitted to the communication node that has simultaneously requested the connection in the connection notification point determination step, thereby creating a request conflict state. The request can be retried. According to the topology correction method of the ninth aspect, in the connection notification location determining step, the random number generation means randomly determines the waiting time from the observation of the contention of the connection request to the restart of the connection request, so that the connection request is determined. The regularity of the arbitration result can be eliminated.

【0062】請求項10記載のトポロジー修正方式によ
れば、接続通知箇所決定ステップで、選択される接続要
求の競合の観測から、接続要求再開までの待機時間の差
が、バス上で最も離れた通信ノード間で信号を往復して
リピートさせるのに充分な時間であることにより、待機
時間の選択結果が異なる場合に、確実に競合の勝敗を決
定することができる。
According to the topology correction method of the present invention, in the connection notification point determination step, the difference in the waiting time from the observation of the conflict of the selected connection request to the restart of the connection request is the longest on the bus. Since the time is long enough to reciprocate the signal between the communication nodes and repeat, when the selection result of the standby time is different, it is possible to reliably determine the winning or losing of the competition.

【0063】請求項11記載のトポロジー修正方式によ
れば、接続通知箇所決定ステップで、ノードグループ内
での局所的なルートノードを決定することにより、多数
の通信ノードからの接続要求の調停を高速に行うことが
できる。請求項12記載のトポロジー修正方式によれ
ば、接続ステップで、接続通知を送信するポートを、ま
だ接続可能な隣接通信ノードのないループを構成するポ
ートのなかから、ランダムに決定することにより、接続
通知ポートとして選ばれるポートの規則性をなくすこと
ができる。
According to the topology correction method of the present invention, by arbitrating connection requests from a large number of communication nodes by determining a local root node in the node group in the connection notification point determining step. Can be done. According to the topology correction method according to the twelfth aspect, in the connection step, the port for transmitting the connection notification is determined at random from the ports constituting the loop having no connectable adjacent communication node, thereby establishing the connection. The regularity of the port selected as the notification port can be eliminated.

【0064】請求項13記載のトポロジー修正方式によ
れば、待機ステップで、待機する時間を乱数発生手段を
用いてランダムに決定することにより、接続通知ノード
として選ばれるノードの規則性をなくすことで、接続可
能なパターンが出現しないような無限ループに陥るのを
防ぐことができる。請求項14記載のトポロジー修正方
式によれば、隣接通信ノードと接続可能と判定されたポ
ートから接続確認を送信し、接続確認ステップでも隣接
通信ノードと接続可能かを判定することにより、各通信
ノード間のクロックの位相のずれによる、接続可能性の
判断の食い違いをなくすことができる。
According to the topology correction method of the thirteenth aspect, in the waiting step, the waiting time is determined randomly by using the random number generation means, thereby eliminating the regularity of the node selected as the connection notification node. It is possible to prevent an infinite loop in which a connectable pattern does not appear. According to the topology correction method according to claim 14, each communication node is transmitted by transmitting a connection confirmation from a port determined to be connectable to the adjacent communication node and determining whether connection is possible with the adjacent communication node in the connection confirmation step. It is possible to eliminate a discrepancy in the determination of connection possibility due to a phase difference between clocks.

【0065】請求項15記載のトポロジー修正方式によ
れば、ループ検出時から一定時間経過後にトポロジー修
正の処理を終了することにより、離れた通信ノード間で
情報をやりとりすることなく処理を完了させることがで
きる。
According to the topology correction method of the present invention, the processing of the topology correction is terminated after a lapse of a predetermined time from the detection of the loop, thereby completing the processing without exchanging information between distant communication nodes. Can be.

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

【図1】本発明の実施の形態のトポロジー修正方式を説
明するためのフローチャートである。
FIG. 1 is a flowchart for explaining a topology correction method according to an embodiment of the present invention.

【図2】通信ノードがループ配置されている状態を示す
概略図である。
FIG. 2 is a schematic diagram showing a state where communication nodes are arranged in a loop.

【図3】通信ノード間の論理的な接続が無効になった状
態を示す概略図である。
FIG. 3 is a schematic diagram showing a state in which a logical connection between communication nodes has been invalidated.

【図4】接続通知が送信されている状態を示す概略図で
ある。
FIG. 4 is a schematic diagram showing a state in which a connection notification is being transmitted.

【図5】接続通知によって接続可能と判断された状態を
示す概略図である。
FIG. 5 is a schematic diagram showing a state where connection is determined to be possible by a connection notification.

【図6】接続可能と判断された通信ノード同士がノード
グループを形成する状態を示す概略図である。
FIG. 6 is a schematic diagram showing a state in which communication nodes determined to be connectable form a node group.

【図7】ノードグループが構成要素を増やしていく状態
を示す概略図である。
FIG. 7 is a schematic diagram showing a state in which a node group increases the number of components.

【図8】バス全体が1つのノードグループとなった状態
を示す概略図である。
FIG. 8 is a schematic diagram showing a state in which the entire bus is in one node group.

【図9】通信ノード0が先に接続可能と判断した場合を
示す模式図である。
FIG. 9 is a schematic diagram showing a case where the communication node 0 first determines that connection is possible.

【図10】通信ノード1が先に接続可能と判断した場合
を示す模式図である。
FIG. 10 is a schematic diagram illustrating a case where the communication node 1 first determines that connection is possible.

【図11】局所的ルートノードを決定しない方法による
接続通知箇所決定ステップの具体例を示すフローチャー
トである。
FIG. 11 is a flowchart illustrating a specific example of a connection notification location determination step by a method that does not determine a local root node.

【図12】局所的ルートノードを決定する方法による接
続通知箇所決定ステップの具体例の上半分を示すフロー
チャートである。
FIG. 12 is a flowchart illustrating an upper half of a specific example of a connection notification point determination step according to a method of determining a local root node.

【図13】局所的ルートノードを決定する方法による接
続通知箇所決定ステップの具体例の下半分を示すフロー
チャートである。
FIG. 13 is a flowchart illustrating a lower half of a specific example of a connection notification point determination step according to a method of determining a local root node.

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

1 ループ検出ステップ 2 接続ステップ 3 接続確認ステップ 4 待機ステップ 5 接続通知箇所決定ステップ 100〜102 通信ノード 103〜108 ポート 110〜112 伝送路 113,114 ノードグループ 115〜119 接続通知 1 Loop detection step 2 Connection step 3 Connection confirmation step 4 Standby step 5 Connection notification location determination step 100-102 Communication node 103-108 Port 110-112 Transmission path 113,114 Node group 115-119 Connection notification

Claims (15)

【特許請求の範囲】[Claims] 【請求項1】 複数の通信ノードと前記通信ノード間を
接続する伝送路により構成されるバスにおいて、前記通
信ノードが前記伝送路によってループを含む配置で接続
された場合、各前記通信ノードはループ検出ステップで
ループに含まれるかを判定し、ループを構成する前記通
信ノードであるループ内通信ノードは、いったん前記伝
送路の接続を論理的に無効にし、接続ステップで、前記
伝送路によって接続された前記通信ノードのうち、ルー
プを構成しているものである隣接通信ノードに対して接
続通知を送信し、かつ論理的にループを形成せずに前記
隣接通信ノードと接続可能かを判定し、接続可能と判定
された箇所で論理的な接続を有効とすることを特徴とす
るトポロジー修正方式。
In a bus configured by a plurality of communication nodes and a transmission path connecting the communication nodes, when the communication nodes are connected in an arrangement including a loop by the transmission path, each of the communication nodes is connected to a loop. In the detection step, it is determined whether the communication node is included in the loop, and the communication node in the loop, which is the communication node configuring the loop, temporarily invalidates the connection of the transmission path, and is connected by the transmission path in the connection step. Among the communication nodes, a connection notification is transmitted to an adjacent communication node that constitutes a loop, and it is determined whether or not the adjacent communication node can be connected without forming a logical loop, A topology correction method characterized in that a logical connection is made valid at a location determined to be connectable.
【請求項2】 接続ステップで、ループ内通信ノードが
接続通知を送信している伝送路で、隣接通信ノードも前
記接続通知を送信している場合に、論理的にループを形
成せずに前記隣接通信ノードと接続可能であると判定す
ることを特徴とする請求項1記載のトポロジー修正方
式。
2. The method according to claim 2, wherein, in the connecting step, when the adjacent communication node also transmits the connection notification on the transmission path on which the communication node in the loop is transmitting the connection notification, the loop does not logically form a loop. 2. The topology correction method according to claim 1, wherein it is determined that connection with an adjacent communication node is possible.
【請求項3】 接続ステップで、ループ内通信ノードが
論理的にループを形成せずに新たに隣接通信ノードと接
続可能と判定した場合、既に前記ループ内通信ノードが
形成している、接続可能な前記通信ノード同士で構成さ
れるノードグループと、新たに接続可能と判定した前記
隣接通信ノードが形成している前記ノードグループと
が、新たに同一の前記ノードグループを形成し、1つの
前記ノードグループからは最大1ポートで接続通知を送
信することを特徴とする請求項1記載のトポロジー修正
方式。
3. In the connecting step, if the in-loop communication node determines that it can newly connect to an adjacent communication node without logically forming a loop, the in-loop communication node has already formed the connectable communication node. A new node group formed by the communication nodes and the node group formed by the adjacent communication node newly determined to be connectable form the same node group, and the one node 2. The topology correction method according to claim 1, wherein a connection notification is transmitted from a group at a maximum of one port.
【請求項4】 接続通知箇所決定ステップで、ループ内
通信ノードが、隣接通信ノードとまだ接続可能でないポ
ートが1箇所以上ある場合、接続通知を行う通信ノード
となることを要求する接続要求を行い、前記接続要求の
送信後、接続通知可能と判断したら、接続ステップに遷
移することを特徴とする請求項1記載のトポロジー修正
方式。
4. In the connection notification location determination step, when there is at least one port that is not yet connectable to an adjacent communication node, the in-loop communication node issues a connection request requesting that the communication node be a communication node that performs connection notification. 2. The topology correction method according to claim 1, wherein, after transmitting the connection request, if it is determined that a connection notification is possible, the process proceeds to a connection step.
【請求項5】 接続通知箇所決定ステップで、ループ内
通信ノードが接続要求を送信しないうちに前記接続要求
を受信した場合、前記接続要求を受信した以外のループ
を構成するポートで前記接続要求を送信することを特徴
とする請求項4記載のトポロジー修正方式。
5. When the connection request is received before the in-loop communication node transmits the connection request in the connection notification location determination step, the connection request is transmitted to a port constituting a loop other than the connection request. The topology modification method according to claim 4, wherein the transmission is performed.
【請求項6】 接続通知箇所決定ステップで、ループ内
通信ノードが接続要求を送信した全てのポートで接続許
可を受信した場合、前記接続要求を送信するよりも先に
前記隣接通信ノードからの前記接続要求を受信していな
ければ、接続通知可能と判断して、接続ステップに遷移
し、受信していれば、前記接続要求を受信したポートで
前記接続許可を送信することを特徴とする請求項4記載
のトポロジー修正方式。
6. In the connection notification point determining step, when the in-loop communication node receives connection permission at all ports to which the connection request has been transmitted, the loop communication node receives the connection request from the adjacent communication node before transmitting the connection request. If a connection request has not been received, it is determined that a connection notification is possible, and the process proceeds to a connection step.If the connection request has been received, the connection permission is transmitted at a port that has received the connection request. 4. The topology correction method according to 4.
【請求項7】 接続通知箇所決定ステップで、接続要求
を受信したポートが1つで、かつそれ以外にループを構
成するポートがない場合、前記接続要求を受信したポー
トで接続許可を送信することを特徴とする請求項4記載
のトポロジー修正方式。
7. In a connection notification location determining step, when one port has received a connection request and there are no other ports constituting a loop, transmitting a connection permission at the port receiving the connection request. 5. The topology correction method according to claim 4, wherein:
【請求項8】 接続通知箇所決定ステップで、複数の接
続要求を同時に受信したと判断した場合に、前記接続要
求を受信したポートで前記接続要求を送信することを特
徴とする請求項4記載のトポロジー修正方式。
8. The method according to claim 4, wherein in the connection notification location determining step, when it is determined that a plurality of connection requests have been received at the same time, the connection request is transmitted from a port that has received the connection request. Topology modification method.
【請求項9】 接続通知箇所決定ステップで、接続要求
を送信したポートで前記接続要求の競合が観測された場
合、前記接続要求の送信を自ら開始したループ内通信ノ
ードが、乱数発生手段によって与えられる乱数に基づい
て選択された待機時間、前記接続要求を送信したポート
での送信を停止することを特徴とする請求項4記載のト
ポロジー修正方式。
9. In the connection notification location determining step, when a conflict of the connection request is observed at the port that has transmitted the connection request, the communication node in the loop that has started transmitting the connection request by itself is provided with random number generation means. 5. The topology correction method according to claim 4, wherein transmission at the port that transmitted the connection request is stopped for a standby time selected based on the random number obtained.
【請求項10】 接続通知箇所決定ステップで、乱数発
生手段によって与えられる乱数に基づいて選択される待
機時間同士の差が、バスの最長経路に対応する長さの伝
送路で信号を往復させるのに必要な時間以上であること
を特徴とする請求項9記載のトポロジー修正方式。
10. The connection notification point determining step, wherein a difference between standby times selected based on a random number given by a random number generating means causes a signal to reciprocate on a transmission path having a length corresponding to the longest path of a bus. 10. The topology correction method according to claim 9, wherein the time is equal to or longer than a time required for the topology.
【請求項11】 接続通知箇所決定ステップで、ノード
グループ内で、局所的ルートノードを決定し、前記局所
的ルートノードに対して接続要求を行い、前記局所的ル
ートノードが接続許可の送信を開始することを特徴とす
る請求項1記載のトポロジー修正方式。
11. A connection notification location determining step, in which a local root node is determined in the node group, a connection request is made to the local root node, and the local root node starts transmitting a connection permission. 2. The topology correction method according to claim 1, wherein
【請求項12】 接続通知箇所決定ステップで、接続通
知可能になった場合、接続通知を行うポートを、ループ
を構成するポートで、まだ接続可能な状態にないポート
から、乱数発生手段によって与えられる乱数に基づいて
選択することを特徴とする請求項4記載のトポロジー修
正方式。
12. When the connection notification becomes possible in the connection notification location determination step, the port for performing the connection notification is given by the random number generation means from the ports constituting the loop and not yet in a connectable state. 5. The topology correction method according to claim 4, wherein the selection is made based on a random number.
【請求項13】 待機ステップでの待機時間を、乱数発
生手段によって与えられる乱数に基づいて複数の時間の
中から決定することを特徴とする請求項1記載のトポロ
ジー修正方式。
13. The topology correction method according to claim 1, wherein the waiting time in the waiting step is determined from a plurality of times based on a random number given by the random number generating means.
【請求項14】 接続ステップの直後に、接続確認ステ
ップを有し、前記接続確認ステップで隣接通信ノードと
接続可能であるかの判定を行い、直前の前記接続ステッ
プで前記隣接通信ノードと接続可能と判定された場合に
は、前記隣接通信ノードが自らと接続可能と判断させる
接続確認を送信することを特徴とする請求項1記載のト
ポロジー修正方式。
14. A connection confirmation step immediately after the connection step, wherein the connection confirmation step determines whether connection with an adjacent communication node is possible, and the connection step immediately before the connection step allows connection with the adjacent communication node. 2. The topology correction method according to claim 1, wherein when it is determined that the adjacent communication node determines that the adjacent communication node can connect to itself, the connection confirmation is transmitted.
【請求項15】 ループ検出ステップでループが検出さ
れてから、トポロジー修正に必要な時間が経過していた
ら、トポロジー修正の処理を終了することを特徴とする
請求項1記載のトポロジー修正方式。
15. The topology correction method according to claim 1, wherein if the time required for the topology correction has elapsed since the loop was detected in the loop detection step, the topology correction processing is terminated.
JP23194097A 1997-08-28 1997-08-28 Topology correction method Expired - Fee Related JP3938806B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23194097A JP3938806B2 (en) 1997-08-28 1997-08-28 Topology correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23194097A JP3938806B2 (en) 1997-08-28 1997-08-28 Topology correction method

Publications (2)

Publication Number Publication Date
JPH1174889A true JPH1174889A (en) 1999-03-16
JP3938806B2 JP3938806B2 (en) 2007-06-27

Family

ID=16931454

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23194097A Expired - Fee Related JP3938806B2 (en) 1997-08-28 1997-08-28 Topology correction method

Country Status (1)

Country Link
JP (1) JP3938806B2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000341279A (en) * 1999-04-27 2000-12-08 Hewlett Packard Co <Hp> How to prevent loops in your network
WO2000079736A1 (en) * 1999-06-18 2000-12-28 Sony Corporation Electronic device, data communication method and data processing method for electronic device
EP1249974A1 (en) * 2001-04-13 2002-10-16 Matsushita Electric Industrial Co., Ltd. Method and communication node for topology correction
JP2007200355A (en) * 2007-04-16 2007-08-09 Fujitsu Ltd Information processing system, information processing apparatus, access distribution method, and program
JP2007249988A (en) * 2007-04-16 2007-09-27 Fujitsu Ltd Information processing system, information processing apparatus, access distribution method, and program
JP2010051033A (en) * 2009-12-01 2010-03-04 Fujitsu Microelectronics Ltd Network construction method
JP2010136012A (en) * 2008-12-03 2010-06-17 Yamaha Corp Method of detecting topology in audio network system, and audio network system
US8675649B2 (en) 2008-11-18 2014-03-18 Yamaha Corporation Audio network system and method of detecting topology in audio signal transmitting system
JP2018194913A (en) * 2017-05-12 2018-12-06 株式会社東芝 Electronic apparatus and method

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000341279A (en) * 1999-04-27 2000-12-08 Hewlett Packard Co <Hp> How to prevent loops in your network
EP1054530A3 (en) * 1999-04-27 2002-12-18 Hewlett-Packard Company, A Delaware Corporation Loop prevention in networks
US6778506B1 (en) 1999-04-27 2004-08-17 Hewlett-Packard Development Company, L.P. Loop prevention in networks
WO2000079736A1 (en) * 1999-06-18 2000-12-28 Sony Corporation Electronic device, data communication method and data processing method for electronic device
KR100725604B1 (en) * 1999-06-18 2007-06-08 소니 가부시끼 가이샤 Electronic device, data communication method and data processing method of electronic device
EP1249974A1 (en) * 2001-04-13 2002-10-16 Matsushita Electric Industrial Co., Ltd. Method and communication node for topology correction
JP2007200355A (en) * 2007-04-16 2007-08-09 Fujitsu Ltd Information processing system, information processing apparatus, access distribution method, and program
JP2007249988A (en) * 2007-04-16 2007-09-27 Fujitsu Ltd Information processing system, information processing apparatus, access distribution method, and program
US8675649B2 (en) 2008-11-18 2014-03-18 Yamaha Corporation Audio network system and method of detecting topology in audio signal transmitting system
US8761208B2 (en) 2008-11-18 2014-06-24 Yamaha Corporation Audio network system and method of detecting topology in audio signal transmitting system
US8804968B2 (en) 2008-11-18 2014-08-12 Yamaha Corporation Audio network system and method of detecting topology in audio signal transmitting system
JP2010136012A (en) * 2008-12-03 2010-06-17 Yamaha Corp Method of detecting topology in audio network system, and audio network system
JP2010051033A (en) * 2009-12-01 2010-03-04 Fujitsu Microelectronics Ltd Network construction method
JP2018194913A (en) * 2017-05-12 2018-12-06 株式会社東芝 Electronic apparatus and method

Also Published As

Publication number Publication date
JP3938806B2 (en) 2007-06-27

Similar Documents

Publication Publication Date Title
CA1300276C (en) System for data arbitration and collision detection on a data bus
US4750109A (en) Method and system for expediting multi-packet messages in a computer network
US5404461A (en) Broadcast/switching apparatus for executing broadcast/multi-cast transfers over unbuffered asynchronous switching networks
US5604735A (en) High speed network switch
US5935208A (en) Incremental bus reconfiguration without bus resets
US4719458A (en) Method of data arbitration and collision detection in a data bus
JP2536915B2 (en) A computer mutual coupling coupler for use in a data processor cluster.
JPH05276175A (en) Data communication method and communication system
KR950014178B1 (en) Input/output network for computer system
US5365228A (en) SYNC-NET- a barrier synchronization apparatus for multi-stage networks
JP2500973B2 (en) Exchange connection system
JP3663385B2 (en) Communication method between components connected in non-cycle directed graph
JP3604727B2 (en) Multi-master serial bus system
JPH03136424A (en) Recomposition system for high-speed mesh connetion type local area network
JPH08507623A (en) Method and apparatus for converting an arbitrary topology collection of nodes into an acyclic directed graph
JPH08505722A (en) Method and apparatus for unique address assignment, node self-identification and topology mapping for acyclic directed graphs
EP0230549B1 (en) Linear-space signalling for a circuit-switched network
JPH1174889A (en) Topology modification method
US5167019A (en) Apparatus and method for interconnecting a plurality of devices to a single node in a node-limited serial data bus computer network
KR100391024B1 (en) Two-pin distributed ethernet bus architecture
JP2001313646A (en) Electronic device and method for controlling state of its physical layer circuit
EP0237839B1 (en) Serial data bus for intermodule data communications and method of data arbitration and collision detection on a data bus
JPH11177595A (en) Topology modification method
JP3437688B2 (en) Bus type serial communication control method
KR0170495B1 (en) Media access control device of virtual token bus network and its method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040817

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060817

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060822

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061023

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070320

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070326

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

Free format text: PAYMENT UNTIL: 20110406

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120406

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees