JP3057119B2 - Identifier assignment method and apparatus - Google Patents

Identifier assignment method and apparatus

Info

Publication number
JP3057119B2
JP3057119B2 JP3298984A JP29898491A JP3057119B2 JP 3057119 B2 JP3057119 B2 JP 3057119B2 JP 3298984 A JP3298984 A JP 3298984A JP 29898491 A JP29898491 A JP 29898491A JP 3057119 B2 JP3057119 B2 JP 3057119B2
Authority
JP
Japan
Prior art keywords
identifier
site
communication line
communication
sites
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
JP3298984A
Other languages
Japanese (ja)
Other versions
JPH04363934A (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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP3298984A priority Critical patent/JP3057119B2/en
Publication of JPH04363934A publication Critical patent/JPH04363934A/en
Application granted granted Critical
Publication of JP3057119B2 publication Critical patent/JP3057119B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えばイーサネットに
代表される放送通信が基本となるLANを用いた分散シ
ステムに適用される識別子割当て方法及びその装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an identifier assigning method applied to a distributed system using a LAN based on broadcast communication represented by, for example, Ethernet and an apparatus therefor.

【0002】[0002]

【従来の技術】従来より、複数の計算機による分散処理
や並列処理を実現するシステムの代表として、ローカル
エリアネットワーク(LAN)を用いた分散システムが
ある。こうした分散システムでは、システムを構成する
計算機(サイト)間の物理的距離が比較的近距離に限定
される。しかし、このような分散システムは、十分な容
量の通信回線を利用でき、しかも既存技術を大部分利用
することができるため、システム構築が容易である。こ
のため、各所でLANを用いた分散システムの開発がな
され、実用化されている。
2. Description of the Related Art Conventionally, a distributed system using a local area network (LAN) is a representative system for realizing distributed processing and parallel processing by a plurality of computers. In such a distributed system, the physical distance between computers (sites) constituting the system is limited to a relatively short distance. However, since such a distributed system can use a communication line having a sufficient capacity and can use most of existing technologies, the system construction is easy. For this reason, distributed systems using LANs have been developed in various places and have been put to practical use.

【0003】このような分散システムにおいては、各サ
イトの認識には当該サイトに割当てられた一意な番号で
あるサイト番号等の識別子を用いるのが一般的である。
こうした各サイトの認識に識別子を用いた場合、システ
ムに対し新たにサイトが参入したとき、かかるサイトに
新たな識別子を割当てることが必要とされる。
In such a distributed system, each site is generally recognized by using an identifier such as a site number which is a unique number assigned to the site.
When an identifier is used for recognizing each site, when a new site enters the system, it is necessary to assign a new identifier to the site.

【0004】このため、上記識別子を割当てるための各
種の方式が、従来より提唱されている。これら従来の識
別子割当て方式は、各サイト間は同数のラインによって
相互に物理的に接続されており、例えばサイトiからサ
イトjへの通信は、サイトiにおいてラインを介してサ
イトjの通信用ポートを指定することによって、サイト
jのみに伝えるのが可能であることを前提としている。
For this reason, various schemes for assigning the above-mentioned identifiers have been conventionally proposed. In these conventional identifier assignment schemes, each site is physically connected to each other by the same number of lines. For example, communication from site i to site j is performed at site i via a communication port of site j via a line. Is assumed to be transmitted only to site j.

【0005】しかし、イーサネットに代表される放送通
信が基本となるLANを用いた分散システムでは、各サ
イトが他の複数のサイトに同報送信を行うことから上記
前提は成立しない。このため、LANを用いた分散シス
テムには従来の識別子割当て方式を適用することができ
ないという問題がある。すなわち、かかる分散システム
においては、識別子の割当てられていない新たなサイト
がほぼ同時に参入したとき、これら新たなサイトに対し
割当てられた識別子を各サイト毎に個別に通信回線を介
して知らせることができないからである。換言するなら
ば、従来の識別子割当て方式では、識別子の割当てられ
ていない1つのサイトしか同時に分散システム中に存在
できない。
However, in a distributed system using a LAN based on broadcast communication represented by Ethernet, the above assumption is not satisfied because each site broadcasts to a plurality of other sites. For this reason, there is a problem that a conventional identifier assignment method cannot be applied to a distributed system using a LAN. That is, in such a distributed system, when new sites to which no identifier has been assigned enter at almost the same time, the identifiers assigned to these new sites cannot be individually notified for each site via the communication line. Because. In other words, in the conventional identifier assignment scheme, only one site to which no identifier is assigned can exist in the distributed system at the same time.

【0006】このため、放送通信が基本となるLANを
用いたシステムにおいては、例えば新たにシステムに参
入するサイトに対し予め識別子を割当てておき、利用者
がその識別子より各サイトを起動する方法が採られてい
る。
For this reason, in a system using a LAN based on broadcast communication, for example, an identifier is previously assigned to a site newly joining the system, and a user activates each site based on the identifier. Has been adopted.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記説
明の従来の識別子割当て方法では、識別子の割当てに過
大な手間を要し、また、重複して識別子を発行したり、
不正加入が行われるいう問題がある。
However, in the above-described conventional method of assigning identifiers, it takes too much time to assign identifiers.
There is a problem that unauthorized subscription is performed.

【0008】本発明は、かかる従来の事情に対処してな
されたもので、同じ送受信機能を有する複数のサイトか
ら成るシステムを運用中に、新たなサイトがほぼ同時に
複数参入した場合にも、識別子の割当てを行うことので
きる識別子割当て方法及びその装置を提供することを目
的としている。
[0008] The present invention has been made in view of such a conventional situation. Even when a new site enters a plurality of sites almost simultaneously while operating a system including a plurality of sites having the same transmission / reception function, an identifier is used. It is an object of the present invention to provide an identifier assigning method and an identifier assigning method capable of assigning an identifier.

【0009】[0009]

【課題を解決するための手段】すなわち、本発明の識別
子割当て方法は、通信回線を介して複数のサイトが接続
され、各サイトに割当てられた固有の識別子を用いて相
手サイトを特定し、前記通信回線を専有してデータの通
信を行う通信システムにおいて前記固有の識別子を各サ
イトに割当てるにあたり、前記通信システムに新たに参
入する各サイトが前記通信回線上に識別子発番要求を同
報送信し、前記通信回線上の前記識別子発番要求を受信
した既参入サイトの1つが、まだ割当てられていない一
意な識別子を受信順に構成した識別子列を前記通信回線
上に同報送信し、前記新たに参入する各サイトは、前記
識別子発番要求を同報送信後前記識別子列を受信するま
での間に、他の新たに参入するサイトが同報送信した識
別子発番要求の数を計数し、計数値により前記識別子列
中から自己のサイトに割当てられた一意の識別子を決定
することを特徴とする。
That is, according to the identifier assigning method of the present invention, a plurality of sites are connected via a communication line, and a partner site is specified by using a unique identifier assigned to each site. In allocating the unique identifier to each site in a communication system that occupies a communication line and performs data communication, each site newly joining the communication system broadcasts an identifier numbering request on the communication line. One of the participating sites that has received the identifier numbering request on the communication line broadcasts, on the communication line, an identifier sequence in which unique identifiers that have not been assigned yet are arranged in the order in which they are received, Each site that joins, after broadcasting the identifier numbering request and before receiving the identifier sequence, receives the number of identifier numbering requests broadcasted by other newly joining sites. Counted, and determines the unique identifier assigned to its site from in the identifier column by count.

【0010】また、本発明の識別子割当て方法は、通信
回線を介して複数のサイトが接続され、各サイトに割当
てられた固有の識別子を用いて相手サイトを特定し、前
記通信回線を専有してデータの通信を行う通信システム
において前記固有の識別子を各サイトに割当てるにあた
り、前記通信システムに新たに参入する各サイトが前記
通信回線上に識別子発番要求を同報送信し、前記通信回
線上の前記識別子発番要求を受信した既参入サイトの1
つが、まだ割当てられていない一意な識別子を受信順に
構成した第1の識別子列を前記通信回線上に同報送信
し、前記識別子発行要求を受信後前記第1の識別子列を
送信するまでの間に、他の新たに参入するサイトから識
別子発番要求を受信した場合には該識別子発行要求の数
を計数し、計数値に応じた数の識別子を受信順に第1の
識別子列に付加した第2の識別子列を構成し前記通信回
線上に同報送信し、前記新たに参入する各サイトは、前
記識別子発番要求を同報送信後前記第2の識別子列を受
信するまでの間に、他の新たに参入するサイトが同報送
信した識別子発番要求の数を計数し、計数値により前記
第2の識別子列中から自己のサイトに割当てられた一意
の識別子を決定することを特徴とする。
Further, according to the identifier assigning method of the present invention, a plurality of sites are connected via a communication line, a partner site is specified using a unique identifier assigned to each site, and the communication line is exclusively used. In allocating the unique identifier to each site in a communication system for performing data communication, each site newly joining the communication system broadcasts an identifier number request on the communication line, and One of the participating sites that received the identifier numbering request
One is to broadcast on the communication line a first identifier sequence in which unique identifiers that have not been assigned are arranged in the order of reception, and to transmit the first identifier sequence after receiving the identifier issuance request. In the case where an identifier numbering request is received from another newly joining site, the number of identifier issuing requests is counted, and the number of identifiers according to the counted value is added to the first identifier column in the order of reception. 2 and broadcast the same on the communication line, each of the newly joining sites, after broadcasting the identifier numbering request until receiving the second identifier sequence, Counting the number of identifier issuing requests broadcast by other newly joining sites, and determining a unique identifier assigned to the own site from the second identifier sequence based on the counted value. I do.

【0011】また、本発明の識別子割当て装置は、通信
回線を介して複数のサイトが接続され、各サイトに割当
てられた固有の識別子を用いて相手サイトを特定し、前
記通信回線を専有してデータの通信を行う通信システム
に使用する識別子割当て装置であって、各サイトを前記
通信回線に接続し前記通信回線上の通信を傍受しかつ必
要なデータを送受する手段と、前記送受手段を介して前
記通信回線上にサイトの識別子の発番要求を送出する手
段と、前記識別子の発番要求が送出された後割当てられ
た識別子メッセージを受信するまでの間に、他のサイト
が送出した識別子の発番要求数を受信し計数する計数手
段と、前記識別子の発番要求が前記通信回線上に送出さ
れた順序を確認する確認手段と、前記確認手段の制御の
下に識別子メッセージを構成し、前記通信回線上に発行
する手段と、前記計数手段の制御の下に前記通信回線か
ら受信した識別子メッセージの中からそのサイトに必要
な識別子を選択し決定する手段とを具備したことを特徴
とする。
Further, the identifier assigning apparatus of the present invention is connected to a plurality of sites via a communication line, specifies a partner site using a unique identifier assigned to each site, and occupies the communication line exclusively. An identifier allocating device used for a communication system for performing data communication, wherein each site is connected to the communication line to intercept communication on the communication line and transmit / receive necessary data; and Means for transmitting a request for issuing an identifier of a site on the communication line, and an identifier transmitted by another site after the request for transmitting the identifier is transmitted and before receiving an assigned identifier message. Counting means for receiving and counting the number of the numbering requests, confirmation means for confirming the order in which the numbering requests for the identifier are transmitted on the communication line, and identifier message under the control of the confirmation means. And a means for selecting and determining an identifier required for the site from identifier messages received from the communication line under the control of the counting means. It is characterized by the following.

【0012】[0012]

【作用】本発明では、識別子を発行するサイトが新たに
参入するサイトから識別子発番要求を受信してから一意
の識別子を送信するまでの間に他の新たなサイトから識
別子発番要求を受信したとき、当該識別子発番要求の数
を計数し、かつ計数された数に応じた各一意の識別子を
回線に対して送信すると共に、新たに参入するサイト
は、識別子発行要求を送信してから一意の識別子を受信
するまでの間に他の新たなサイトから識別子発行要求を
受信したとき当該識別子発行要求の数を計数し、計数さ
れた数に基づき自己に割当てられた一意の識別子を決定
しているので、システム運用中に新たなサイトがほぼ同
時に複数参入した場合にも識別子の割当てが可能であ
る。
According to the present invention, an identifier issuing request is received from another new site during a period from when an identifier issuing site receives an identifier issuing request from a newly joining site to when a unique identifier is transmitted. At that time, the number of the identifier numbering request is counted, and each unique identifier corresponding to the counted number is transmitted to the line, and the newly joining site transmits the identifier issuing request, When an identifier issuance request is received from another new site until a unique identifier is received, the number of the identifier issuance requests is counted, and a unique identifier assigned to the self is determined based on the counted number. Therefore, it is possible to assign an identifier even when a plurality of new sites almost simultaneously enter during system operation.

【0013】[0013]

【実施例】以下、本発明の識別子割当て方法及びその装
置の実施例について図面を参照して詳細に説明する。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of an identifier assigning method and apparatus according to the present invention.

【0014】図1は本発明の識別子割当て装置の一実施
例の構成の一部を示すブロック図である。本発明が適用
される通信システムでは、イーサネットのように通信の
際にサイト番号を指定しない場合は放送通信となる通信
方式が適用され、またある通信が行われている間はその
通信が通信回線を専有しその通信以外のいかなる通信も
行うことができない通信方式が適用されるものとする。
従って、通信回線上の通信の衝突防止は行われているも
のとする。また、本発明では以下にサイト識別子として
サイト番号を考えるものとする。
FIG. 1 is a block diagram showing a part of the configuration of an embodiment of an identifier assigning apparatus according to the present invention. In a communication system to which the present invention is applied, when a site number is not specified at the time of communication, such as Ethernet, a communication method of broadcast communication is applied, and during a certain communication, the communication is performed on a communication line. And a communication method that cannot perform any communication other than that communication is applied.
Therefore, it is assumed that the communication collision on the communication line is prevented. In the present invention, a site number is considered below as a site identifier.

【0015】図1に示すように、通信回線(バス)1に
夫々が同等の送受信機能を有する複数のサイト2aが接
続されている。サイト2aは既に識別子である一意のサ
イト番号が割当てられており、通信システムに参加して
いるサイトである(以下、被参加サイトという)。一
方、サイト2bはまだ自身のサイト番号を有しておら
ず、これから通信システムに参加しようとしているサイ
トである(以下、参加サイトいう)。図1では簡単のた
めに被参加サイト2a及び参加サイト2b共に各1個ず
つ図示している。
As shown in FIG. 1, a communication line (bus) 1 is connected to a plurality of sites 2a each having the same transmission / reception function. The site 2a has already been assigned a unique site number as an identifier and is a site participating in the communication system (hereinafter referred to as a participating site). On the other hand, the site 2b does not yet have its own site number, and is a site that is about to participate in the communication system (hereinafter, referred to as a participating site). In FIG. 1, for simplicity, one each of the participating site 2a and the participating site 2b is shown.

【0016】被参加サイト2aは、新たにサイト番号を
発行する機能を有する識別子発行部20aと、新しいサ
イト番号の発行を要求する機能を有する識別子発行要求
部20bとを具備している。識別子発行部20aは、各
サイトを通信回線1に接続し通信回線1上の通信を常時
傍受する通信部21a、参加サイト2bのサイト番号メ
ッセージを構成し発行するサイト番号発行部21b、及
び複数の参加サイト2bが識別子発行要求を通信回線1
上に出力した場合にその順序を認識し記憶する通信順序
確認部21cから構成されている。
The participating site 2a includes an identifier issuing unit 20a having a function of issuing a new site number, and an identifier issuing request unit 20b having a function of requesting the issuance of a new site number. The identifier issuing unit 20a includes a communication unit 21a that connects each site to the communication line 1 and constantly intercepts communication on the communication line 1, a site number issuing unit 21b that constructs and issues a site number message of the participating site 2b, and a plurality of identifiers. Participating site 2b sends identifier issuing request to communication line 1
It comprises a communication order confirmation unit 21c that recognizes and stores the order when it is output above.

【0017】一方、識別子発行要求部20bは、前述し
た通信部21a、自身のサイトへのサイト番号の発番要
求を通信回線1上に送出する発番要求送出部21d、自
身のサイトが発番要求を通信回線1上に出力した後、識
別子のメッセージを受信するまでの間に他のサイトが出
力した発番要求の数をカウントする他サイト発番要求計
数部21e、及び受信した識別子列の順序から他サイト
発番要求計数部21eの出力により自身のサイト番号を
選択し決定するサイト番号決定部21fから構成されて
いる。
On the other hand, the identifier issuance requesting unit 20b includes a communication unit 21a, a numbering request transmitting unit 21d for transmitting a request for issuing a site number to its own site on the communication line 1, and After the request is output on the communication line 1 and before the message of the identifier is received, the other site issue request counting unit 21e that counts the number of issue requests output by other sites, and the received identifier sequence It comprises a site number determining unit 21f which selects and determines its own site number based on the output of the other site number request counting unit 21e.

【0018】LANによるデータの送受信に必要な他の
構成については簡単のために説明を省略する。参加サイ
ト2bは被参加サイト2aと全く同じ構成であるが、被
参加サイト2aでは識別子発行部20aが動作し、参加
サイト2bでは識別子発行要求部20bが動作する。
Description of other components required for data transmission / reception via the LAN is omitted for simplicity. The participating site 2b has exactly the same configuration as the participating site 2a, but the identifier issuing unit 20a operates at the participating site 2a, and the identifier issuing requesting unit 20b operates at the participating site 2b.

【0019】発番要求を受けた被参加サイト2aのう
ち、例えばサイト番号(アドレス)の一番小さいものが
自身の識別子発行部20aによりサイト番号を発行させ
るようにできる。また、図1では、どの被参加サイト2
aも同じ構成であり、どれも発番機能を有しているが、
特定の1個の被参加サイト2aだけが論理上、サイト番
号発番機能を有するようにしてもよい。
Among the participating sites 2a that have received the numbering request, the one having the smallest site number (address), for example, can be made to issue a site number by its own identifier issuing unit 20a. Also, in FIG.
a has the same configuration, and each has a numbering function,
Only one specific participant site 2a may logically have a site number issuing function.

【0020】図2及び図3は、図1の被参加サイト2a
の識別子割当てにおける一連の処理を説明するためのフ
ローチャートである。以下、これらのフローチャートを
参照して被参加サイト2aの識別子割当て処理について
説明する。なお、発番方法としては、通信システム中の
他のサイトに現在割当てられている番号以外の番号を発
行できればどのような方法でもよく、例えば順次数を1
つずつ増分する方法がある。
FIGS. 2 and 3 show the participating site 2a of FIG.
3 is a flowchart for explaining a series of processes in the identifier assignment. Hereinafter, the identifier assignment processing of the participating site 2a will be described with reference to these flowcharts. As a numbering method, any method can be used as long as it can issue a number other than the number currently assigned to another site in the communication system.
There is a way to increment by one.

【0021】図2において、システム起動後、被参加サ
イト2aでは通信部21aが通信回線1上の通信を常時
傍受している(S201)。
In FIG. 2, after the system is started, the communication section 21a of the participating site 2a constantly intercepts the communication on the communication line 1 (S201).

【0022】サイト番号発行部21bは、傍受した通信
がサイト番号発番要求であるか、否か判断し(S20
2)、発番要求でない場合には、通信部21aが引き続
いて通信回線1上の通信の傍受を続ける(S201)。
The site number issuing section 21b determines whether or not the intercepted communication is a site number issuing request (S20).
2) If it is not a numbering request, the communication unit 21a continues to intercept the communication on the communication line 1 (S201).

【0023】一方、通信部21aが傍受した通信が発番
要求である場合には、サイト番号発行部21bがサイト
番号を発番し返答の準備をする(S203)。
On the other hand, if the communication intercepted by the communication unit 21a is a numbering request, the site number issuing unit 21b issues a site number and prepares a reply (S203).

【0024】次に、例えば、図6に示すように、i番目
の参加サイト2bがステップS202で発番要求(図中
下方から上方へ斜めに向かう矢印で示す)を行った後、
被参加サイト2aから新たなサイト番号が発番されるま
での間に、被参加サイト2aの通信部21aが、通信シ
ステムに追加された他の新たなr個の参加サイト2bか
ら発番要求を受信したか否か判断する(S204)。
Next, for example, as shown in FIG. 6, after the i-th participating site 2b issues a numbering request (indicated by an arrow pointing obliquely upward from below in the figure) in step S202,
Before the new site number is issued from the participant site 2a, the communication unit 21a of the participant site 2a issues a numbering request from the other r new participating sites 2b added to the communication system. It is determined whether or not it has been received (S204).

【0025】新たな発番要求を受信した場合には、被参
加サイト2aのサイト番号発行部21bが通信順序確認
部21cの制御の下にそれらの発番要求に対するサイト
番号の発番を行う(S205)。
When a new numbering request is received, the site number issuing unit 21b of the participant site 2a issues a site number in response to the numbering request under the control of the communication order confirmation unit 21c ( S205).

【0026】一方、ステップS204において新たな発
番要求を受信しなかった場合には、次の処理に移行する
が、以下の説明では、合計i+r個の発番要求を受信し
た場合について説明する。サイト番号発行部21bは受
信した順にサイト番号を発行し、合計i+r個のサイト
番号を要素とする識別子の列を生成し、続けて、図8に
示すように、サイト番号の列の最初と最後にサイト番号
の仮決定フェイズであることを示すフェイズフラグ1
(つまり、フェイズ1)を夫々付加したi+r+2エレ
メント・メッセージ( element message)を返答として
送出する(S206)。
On the other hand, if no new numbering request has been received in step S204, the process proceeds to the next processing. The following description will be made on the case where i + r total numbering requests have been received. The site number issuing unit 21b issues site numbers in the order received, generates a sequence of identifiers having a total of i + r site numbers as elements, and then, as shown in FIG. Phase flag 1 indicating that the site number is provisionally determined
An i + r + 2 element message to which (ie, phase 1) is added is sent as a reply (S206).

【0027】ここで、i+r+2エレメント・メッセー
ジは、識別子の数i+rと2個のフェイズフラグとの和
から成るメッセージと定義される。このメッセージは通
信部21aにより通信回線1上に同報送信される。
Here, the i + r + 2 element message is defined as a message comprising the sum of the number i + r of identifiers and two phase flags. This message is broadcast on the communication line 1 by the communication unit 21a.

【0028】次に、図3を参照して、被参加サイト2a
のサイト番号発行部21bがi+r+2エレメント・メ
ッセージの送信要求を通信部21aに依頼してから、こ
のメッセージが通信回線1上に送出されるまでの間に、
図7に示すように、更にm個の新たな参加サイト2bか
ら発番要求があり、参加サイト2bの発番要求(図中下
方から上方へ斜めに向かう矢印で示す)と、被参加サイ
ト2aのサイト番号発行(図中上方から下方へ斜めに向
かう矢印で示す)とが被参加サイト2a中で衝突した場
合について説明する。
Next, referring to FIG. 3, the participating site 2a
Between the time when the site number issuing unit 21b requests the transmission of the i + r + 2 element message to the communication unit 21a and the time when this message is sent out on the communication line 1,
As shown in FIG. 7, there is a numbering request from m new participating sites 2 b, and a numbering request for the participating site 2 b (indicated by an arrow diagonally upward from the bottom in the figure) and the participating site 2 a (Indicated by an arrow diagonally from top to bottom in the figure) collides with the site number issuance in the participating site 2a.

【0029】図3において、i+r個の参加サイト2b
の発番要求後に、更にm個の新たな参加サイト2bから
発番要求があった場合に、このm個の発番要求が原因と
なる衝突により通信部21aによる通信回線1上へのi
+r+2エレメント・メッセージの送信が失敗したか否
かが判断される(S207)。
In FIG. 3, i + r participating sites 2b
Is issued from the m new participating sites 2b after the numbering request, the collision caused by the m number of requesting requests causes the communication unit 21a to send i to the communication line 1.
It is determined whether the transmission of the + r + 2 element message has failed (S207).

【0030】m個の発番要求が原因となって送信を失敗
した場合には、前述と同様の手順で新たなサイト番号が
発番される(S208、S209、S210)。この結
果、被参加サイト2aのサイト番号発行部21bが通信
順序確認部21cの制御の下に、図9に示すように、前
述のi+r個のサイト番号列に今回のm個のサイト番号
の列を付加し、更にこのサイト番号の列の前後にフェイ
ズフラグ2を付加して、i+r+m+2エレメント・メ
ッセージを返答として送出し、通信部21aがこのメッ
セージを通信回線1上に再送出する(S211)。
If the transmission fails due to the m number of numbering requests, a new site number is issued in the same procedure as described above (S208, S209, S210). As a result, under the control of the communication order confirmation unit 21c, the site number issuing unit 21b of the participant site 2a adds the current m site number columns to the i + r site number columns as shown in FIG. Is added, and a phase flag 2 is added before and after the site number column, and an i + r + m + 2 element message is transmitted as a reply, and the communication unit 21a retransmits this message onto the communication line 1 (S211).

【0031】フェイズフラグ2は、サイト番号列中のサ
イト番号が各サイトに対して最終的に決定されたサイト
番号であることを示すフラグである。衝突の検出処理と
サイト番号列の再送処理は被参加サイト2aのハードウ
ェアで自動的に実行される。再送処理が行われたことは
参加サイト2bではフェイズフラグの値が「2」である
ことによって知ることができる。そして、ステップS2
11に続いて、あるいはステップS207において衝突
がなく送信を失敗しなかった場合には、サイト番号決定
通知を通信回線1上に同報送信して(S212)、被参
加サイト2aの識別子割当てにおける処理が完了する。
The phase flag 2 is a flag indicating that the site number in the site number sequence is the site number finally determined for each site. The collision detection processing and the site number sequence retransmission processing are automatically executed by the hardware of the participating site 2a. The fact that the retransmission processing has been performed can be known from the participation site 2b by the value of the phase flag being “2”. Then, step S2
Subsequent to step 11 or if the transmission has not failed due to no collision in step S207, a site number determination notification is broadcasted on the communication line 1 (S212), and the process of assigning the identifier of the participating site 2a is performed. Is completed.

【0032】図4及び図5は、図1の参加サイト2bの
識別子割当てにおける一連の処理を説明するフローチャ
ートである。以下、図4及び図5を参照して参加サイト
2bの処理について説明する。
FIGS. 4 and 5 are flowcharts for explaining a series of processes in assigning identifiers of the participating sites 2b in FIG. Hereinafter, the processing of the participating site 2b will be described with reference to FIGS.

【0033】図4において、参加サイト2bでは、発番
要求に先立って、自己の他サイト発番要求計数部21e
の計数値Xを「0」として初期化し、またサイト番号割
当てにおける処理の初期段階に入ったことを示すため
に、自身のフェイズフラグ(myphase)を「1」にセッ
トする(S301)。
In FIG. 4, prior to the issue request, the participating site 2b has its own other site issue request counting section 21e.
Is initialized to "0", and its own phase flag (myphase) is set to "1" to indicate that it has entered the initial stage of the process of site number assignment (S301).

【0034】この後、発番要求送出部21dが、通信部
21a及び通信回線1を介して被参加サイト2aに発番
要求を送出する(S302)。
Thereafter, the numbering request sending section 21d sends a numbering request to the participating site 2a via the communication section 21a and the communication line 1 (S302).

【0035】参加サイト2bの通信部21aは、被参加
サイト2aからの返答メッセージを受信するために通信
回線1上の通信の傍受を開始する(S303)。
The communication section 21a of the participating site 2b starts interception of communication on the communication line 1 to receive a reply message from the participating site 2a (S303).

【0036】通信部21aは傍受したメッセージ中に自
身の参加サイト2bの発番通知があるか否か判断する
(S304)。
The communication section 21a determines whether or not there is a number notification of its own participating site 2b in the intercepted message (S304).

【0037】自身への発番通知がない場合に、自身以外
の他の新たな参加サイト2bがサイト番号発番要求を送
出した時には(S305)、他サイト発番要求計数部2
1eがこのサイト番号発番要求の数をカウントし、計数
値XをX+1に順次置き換える(S306)。
When there is no issuing number notification to itself and another new participating site 2b other than itself sends a site number issuing request (S305), the other site issuing request counting section 2
1e counts the number of site number issuing requests, and sequentially replaces the count value X with X + 1 (S306).

【0038】他サイトから発番要求がない場合には自身
の参加サイト2bへの発番通知があるまで待つ(S30
4)。
If there is no issue request from another site, the process waits until there is an issue notice to its own participating site 2b (S30).
4).

【0039】発番通知を受け取ると、図5の処理に移行
する。まず、フェイズフラグ(my-phase)が「2」であ
り、かつ受信メッセージにサイト番号決定通知が含まれ
ているか判断される(S307)。
Upon receiving the issue notification, the flow shifts to the processing of FIG. First, it is determined whether the phase flag (my-phase) is “2” and the received message includes a site number determination notification (S307).

【0040】フェイズフラグ(my-phase)が「2」であ
り、かつ受信メッセージにサイト番号決定通知が含まれ
ていると処理を終了するが、ここでは、フェイズフラグ
(my-phase)が「1」であり、被参加サイト2aが図2
において説明した手順で仮に割当てたサイト番号を返答
してきた場合について説明する。この場合、受信メッセ
ージは、前述したように、自身を含む参加サイト2bへ
割当てたi+r個のサイト番号と2個のフェイズフラグ
「1」で構成されるi+r+2エレメント・メッセージ
とされる(S308)。
If the phase flag (my-phase) is "2" and the received message includes the site number determination notification, the process is terminated. In this case, the phase flag (my-phase) is set to "1". And the participating site 2a is shown in FIG.
In the following, a description will be given of a case where the temporarily assigned site number is returned according to the procedure described in (1). In this case, the received message is an i + r + 2 element message composed of i + r site numbers and two phase flags “1” allocated to the participating site 2b including itself, as described above (S308).

【0041】次に、受信メッセージのフェイズフラグと
自身のフェイズフラグ(my-phase)とが異なるかを判断
し(S309)、受信メッセージのフェイズフラグと自
身のフェイズフラグ(my-phase)とが異なる場合は、通
信回線1上の通信の傍受を続ける(S310)。
Next, it is determined whether the phase flag of the received message is different from its own phase flag (my-phase) (S309), and the phase flag of the received message is different from its own phase flag (my-phase). In this case, the communication on the communication line 1 is intercepted (S310).

【0042】ここでは、フェイズフラグ(my-phase)が
「1」であり、受信メッセージのフェイズフラグも
「1」であるため、次の処理に移行し、サイト番号決定
部21fが先にカウントした他サイトからの発番番号の
計数値Xから自身のサイト番号候補を探す(S31
1)。すなわち、図8に示すように、i+r+2エレメ
ント・メッセージの先頭からi+r−X+1番目、つま
り後方からX+2番目の要素の値が自身の参加サイト2
bに割当てられた仮のサイト番号であるとする。
Here, since the phase flag (my-phase) is "1" and the phase flag of the received message is also "1", the processing shifts to the next processing, and the site number determination unit 21f counts first. Search for own site number candidates from the count value X of the issue number from another site (S31)
1). That is, as shown in FIG. 8, the value of the (i + r−X + 1) th element from the head of the i + r + 2 element message, that is, the value of the (X + 2) th element from the back is the participating site 2 of the own message.
Let it be a temporary site number assigned to b.

【0043】次に、フェイズフラグ(my-phase)が
「1」であるか判断され(S312)、フェイズフラグ
(my-phase)が「1」でない場合(「2」の場合)は処
理を終了する。
Next, it is determined whether the phase flag (my-phase) is "1" (S312). If the phase flag (my-phase) is not "1" (if "2"), the process is terminated. I do.

【0044】ここでは、フェイズフラグが「1」である
ので、次に本決定を行う状態に入るため、自身のフェイ
ズフラグを「2」にセットし(S313)、再び通信部
21aが、通信回線1上の通信を傍受する(S31
4)。
In this case, since the phase flag is "1", to enter the state where the main decision is made next, the own phase flag is set to "2" (S313), and the communication section 21a again sets the communication line. 1 on the communication (S31)
4).

【0045】この状態で、次のメッセージを受信する
と、ステップS307に戻る。ここでは、既にフェイズ
フラグ(my-phase)が「2」にされていることから、被
参加サイト2aから受信メッセージ決定通知が来ると、
現在までに求めたサイト番号を自身のサイト番号と決定
し、処理を終了する。
When the next message is received in this state, the process returns to step S307. Here, since the phase flag (my-phase) has already been set to “2”, when the received message decision notification is received from the participating site 2a,
The site number obtained so far is determined as its own site number, and the process ends.

【0046】一方、決定通知が来ない場合、すなわち、
フェイズフラグが「2」の次のメッセージを受信する
と、上述したと同様に、ステップS307、S308、
S309、S311、S312の手順を繰り返し、新た
にサイト番号を求めて、処理を終了する。この場合は、
フェイズフラグが「1」のメッセージから求めた仮のサ
イト番号は無視する。
On the other hand, when no decision notice is received, that is,
When the next message with the phase flag of “2” is received, steps S307, S308,
The procedure of S309, S311, and S312 is repeated, a new site number is obtained, and the process ends. in this case,
The temporary site number obtained from the message whose phase flag is “1” is ignored.

【0047】以上のように、本実施例によれば、通信シ
ステム運用中に新たなサイトがほぼ同時に複数個参入し
た場合にもサイト番号を割当てることが可能である。ま
た、参加サイト及び被参加サイト双方で識別子をチェッ
クし、カウンタで加入数をチェックできることから参加
サイトの不正加入を防止できる。
As described above, according to this embodiment, it is possible to assign a site number even when a plurality of new sites almost simultaneously enter during the operation of the communication system. In addition, since the identifier can be checked at both the participating site and the participating site, and the number of subscriptions can be checked at the counter, unauthorized participation at the participating site can be prevented.

【0048】[0048]

【発明の効果】以上説明したように、本発明によれば、
同じ送受信機能を有する複数のサイトから成るシステム
を運用中に、新たなサイトがほぼ同時に複数参入した場
合にも、識別子の割当てを行うことができる。
As described above, according to the present invention,
When a system including a plurality of sites having the same transmission / reception function is in operation, a new site can be assigned an identifier even when a plurality of new sites almost simultaneously enter.

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

【図1】本発明の識別子割当て装置の一実施例の構成の
一部を示すブロック図。
FIG. 1 is a block diagram showing a part of the configuration of an embodiment of an identifier assigning apparatus according to the present invention.

【図2】図1の被参加サイトの識別子割当てにおける処
理を説明するフローチャート。
FIG. 2 is a flowchart for explaining processing in assigning identifiers of participating sites in FIG. 1;

【図3】図1の被参加サイトの識別子割当てにおける処
理を説明するフローチャート。
FIG. 3 is a flowchart for explaining processing in assigning identifiers of participating sites in FIG. 1;

【図4】図1の参加サイトの識別子割当てにおける処理
を説明するフローチャート。
FIG. 4 is a flowchart for explaining processing in assigning identifiers of participating sites in FIG. 1;

【図5】図1の参加サイトの識別子割当てにおける処理
を説明するフローチャート。
FIG. 5 is a flowchart for explaining processing in assigning identifiers of participating sites in FIG. 1;

【図6】識別子割当て処理を時間の経過に応じて説明す
るための図。
FIG. 6 is a diagram for explaining an identifier assignment process over time.

【図7】識別子割当て処理を時間の経過に応じて説明す
るための図。
FIG. 7 is a view for explaining an identifier assignment process as time passes.

【図8】被参加サイトから発行された識別子列を例示す
る図。
FIG. 8 is a diagram exemplifying an identifier sequence issued from a participating site;

【図9】被参加サイトから発行された識別子列を例示す
る図。
FIG. 9 is a diagram exemplifying an identifier sequence issued from a participating site;

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

1 通信回線(バス) 2a 被参加サイト 2b 参加サイト 20a 識別子発行部 20b 識別子発行要求部 21a 通信部 21b サイト番号発行部 21c 通信順序確認部 21d 発番要求送出部 21e 他サイト発番要求計数部 21f サイト番号決定部 1 Communication Line (Bus) 2a Participated Site 2b Participating Site 20a Identifier Issuing Unit 20b Identifier Issuing Request Unit 21a Communication Unit 21b Site Number Issuing Unit 21c Communication Order Checking Unit 21d Issuing Request Sending Unit 21e Other Site Issuing Request Counting Unit 21f Site number determination unit

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 通信回線を介して複数のサイトが接続さ
れ、各サイトに割当てられた固有の識別子を用いて相手
サイトを特定し、前記通信回線を専有してデータの通信
を行う通信システムにおいて前記固有の識別子を各サイ
トに割当てるにあたり、前記通信システムに新たに参入
する各サイトが前記通信回線上に識別子発番要求を同報
送信し、前記通信回線上の前記識別子発番要求を受信し
た既参入サイトの1つが、まだ割当てられていない一意
な識別子を受信順に構成した識別子列を前記通信回線上
に同報送信し、前記新たに参入する各サイトは、前記識
別子発番要求を同報送信後前記識別子列を受信するまで
の間に、他の新たに参入するサイトが同報送信した識別
子発番要求の数を計数し、計数値により前記識別子列中
から自己のサイトに割当てられた一意の識別子を決定す
ることを特徴とする識別子割当て方法。
1. A communication system in which a plurality of sites are connected via a communication line, a partner site is specified using a unique identifier assigned to each site, and data communication is performed exclusively by using the communication line. Upon assigning the unique identifier to each site, each site newly joining the communication system broadcasts an identifier numbering request on the communication line and receives the identifier numbering request on the communication line. One of the participating sites broadcasts, on the communication line, an identifier sequence in which the unique identifiers that have not been allocated are arranged in the order of reception, and each of the newly joining sites broadcasts the identifier numbering request. Until the identifier string is received after transmission, the number of identifier issuing requests broadcast by other newly joining sites is counted, and the counted value is used to change the identifier string to the own site from the identifier string. An identifier assignment method characterized by determining an assigned unique identifier.
【請求項2】 通信回線を介して複数のサイトが接続さ
れ、各サイトに割当てられた固有の識別子を用いて相手
サイトを特定し、前記通信回線を専有してデータの通信
を行う通信システムにおいて前記固有の識別子を各サイ
トに割当てるにあたり、前記通信システムに新たに参入
する各サイトが前記通信回線上に識別子発番要求を同報
送信し、前記通信回線上の前記識別子発番要求を受信し
た既参入サイトの1つが、まだ割当てられていない一意
な識別子を受信順に構成した第1の識別子列を前記通信
回線上に同報送信し、前記識別子発行要求を受信後前記
第1の識別子列を送信するまでの間に、他の新たに参入
するサイトから識別子発番要求を受信した場合には該識
別子発行要求の数を計数し、計数値に応じた数の識別子
を受信順に第1の識別子列に付加した第2の識別子列を
構成し前記通信回線上に同報送信し、前記新たに参入す
る各サイトは、前記識別子発番要求を同報送信後前記第
2の識別子列を受信するまでの間に、他の新たに参入す
るサイトが同報送信した識別子発番要求の数を計数し、
計数値により前記第2の識別子列中から自己のサイトに
割当てられた一意の識別子を決定することを特徴とする
識別子割当て方法。
2. A communication system in which a plurality of sites are connected via a communication line, a partner site is specified using a unique identifier assigned to each site, and data communication is performed exclusively using the communication line. Upon assigning the unique identifier to each site, each site newly joining the communication system broadcasts an identifier numbering request on the communication line and receives the identifier numbering request on the communication line. One of the participating sites broadcasts, on the communication line, a first identifier sequence in which unique identifiers that have not been allocated are arranged in the order of reception, and after receiving the identifier issuance request, transmits the first identifier sequence. If an identifier numbering request is received from another newly joining site before transmission, the number of the identifier issuing requests is counted, and the number of identifiers according to the counted value is determined as the first identification number in the receiving order. A second identifier string added to the separate string is configured and broadcasted on the communication line, and each of the newly joining sites broadcasts the identifier numbering request and then transmits the second identifier string. Until receiving, count the number of identifier numbering requests broadcast by other newly joining sites,
An identifier assigning method comprising: determining a unique identifier assigned to the own site from the second identifier sequence based on the count value.
【請求項3】 通信回線を介して複数のサイトが接続さ
れ、各サイトに割当てられた固有の識別子を用いて相手
サイトを特定し、前記通信回線を専有してデータの通信
を行う通信システムに使用する識別子割当て装置であっ
て、各サイトを前記通信回線に接続し前記通信回線上の
通信を傍受しかつ必要なデータを送受する手段と、前記
送受手段を介して前記通信回線上にサイトの識別子の発
番要求を送出する手段と、前記識別子の発番要求が送出
された後割当てられた識別子メッセージを受信するまで
の間に、他のサイトが送出した識別子の発番要求数を受
信し計数する計数手段と、前記識別子の発番要求が前記
通信回線上に送出された順序を確認する確認手段と、前
記確認手段の制御の下に識別子メッセージを構成し、前
記通信回線上に発行する手段と、前記計数手段の制御の
下に前記通信回線から受信した識別子メッセージの中か
らそのサイトに必要な識別子を選択し決定する手段とを
具備したことを特徴とする識別子割当て装置。
3. A communication system in which a plurality of sites are connected via a communication line, a partner site is specified using a unique identifier assigned to each site, and data communication is performed exclusively using the communication line. An identifier allocating device to be used, wherein each site is connected to the communication line to intercept communication on the communication line and transmit / receive necessary data. Means for transmitting an identifier numbering request, and receiving the identifier numbering request number transmitted by another site between the time when the identifier numbering request is transmitted and the time when the assigned identifier message is received. Counting means for counting, confirming means for confirming the order in which the request for issuing the identifier is transmitted on the communication line, and forming an identifier message under the control of the confirming means, and issuing the identifier message on the communication line And means for selecting and determining an identifier required for the site from identifier messages received from the communication line under the control of the counting means.
JP3298984A 1990-11-16 1991-11-14 Identifier assignment method and apparatus Expired - Fee Related JP3057119B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3298984A JP3057119B2 (en) 1990-11-16 1991-11-14 Identifier assignment method and apparatus

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP31119990 1990-11-16
JP2-311199 1990-11-16
JP3298984A JP3057119B2 (en) 1990-11-16 1991-11-14 Identifier assignment method and apparatus

Publications (2)

Publication Number Publication Date
JPH04363934A JPH04363934A (en) 1992-12-16
JP3057119B2 true JP3057119B2 (en) 2000-06-26

Family

ID=26561740

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3298984A Expired - Fee Related JP3057119B2 (en) 1990-11-16 1991-11-14 Identifier assignment method and apparatus

Country Status (1)

Country Link
JP (1) JP3057119B2 (en)

Also Published As

Publication number Publication date
JPH04363934A (en) 1992-12-16

Similar Documents

Publication Publication Date Title
US5304992A (en) Method of allocating identifiers and apparatus for the same
US8737366B2 (en) Method, network nodes and system for broadcast transmission of data
US5175727A (en) Communication system network interconnecting a plurality of communication systems
US7200654B2 (en) Method of constructing and managing overlay multicast tree on Internet
USRE43493E1 (en) Method for sharing hybrid resources in a wireless independent network, a station for the method, and a data format for the method and the station
JP2551304B2 (en) Broadcast link control method
US4972437A (en) Method of controlling limited resource sessions in a data communications network
KR20000037821A (en) Method for implementing multicast service using down-link shared channel in mobile communication system
CA2503597A1 (en) Method and apparatus for unique address assignment, node self-identification and topology mapping for a directed acyclic graph
JP2806466B2 (en) Data transmission control method
CN102130832B (en) Terminal registration method in coaxial network and system
DE69737017T2 (en) Use of energy bursts in cordless networks
JP3057119B2 (en) Identifier assignment method and apparatus
CA2066146A1 (en) Method for transmitting data to a plurality of data stations
JPH07203535A (en) Method and communication system for dynamic registration or canceling registration of station
US5093829A (en) Communication system network
US5613207A (en) Method for transmitting messages in a communication system
JP3207670B2 (en) Communication method
CN113038570B (en) Access control method, device, equipment and storage medium of user node
KR20190095126A (en) Method for service using multiple channel in wireless distributed communication systems
JP2638482B2 (en) Broadcast link control method
CN114866111B (en) Address binding method, system, main control node and equipment node
USRE43383E1 (en) Method for sharing hybrid resources in a wireless independent network, a station for the method, and a data format for the method and the station
Dai The scheduling to achieve optimized performance of randomly addressed polling protocol
JPH02114737A (en) Multiple address communication method

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: 20000328

LAPS Cancellation because of no payment of annual fees