JP2003258878A - Method for deciding address for network system, and network terminal - Google Patents

Method for deciding address for network system, and network terminal

Info

Publication number
JP2003258878A
JP2003258878A JP2002176273A JP2002176273A JP2003258878A JP 2003258878 A JP2003258878 A JP 2003258878A JP 2002176273 A JP2002176273 A JP 2002176273A JP 2002176273 A JP2002176273 A JP 2002176273A JP 2003258878 A JP2003258878 A JP 2003258878A
Authority
JP
Japan
Prior art keywords
address
network
server
node
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002176273A
Other languages
Japanese (ja)
Inventor
Akira Toba
彰 鳥羽
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 Carrier Corp
Original Assignee
Toshiba Carrier 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 Carrier Corp filed Critical Toshiba Carrier Corp
Priority to JP2002176273A priority Critical patent/JP2003258878A/en
Publication of JP2003258878A publication Critical patent/JP2003258878A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To enable new nodes to automatically and selectively cope with both of a server system and a distribution system and to obtain a network address by either of the systems to participate in a network. <P>SOLUTION: In this network system consisting of a plurality of nodes Ni and Nx, each node simultaneously has the address obtaining functions of a server system for accepting the network address to be imparted from an address server 1 and a distribution system for allowing the network-participating nodes Ni and Nx to autonomously decide the network address. When the new node Nx participates in the network, an address request message is multi-addressed, and a subsequent address obtaining system is decided alternatively and autonomously from the server system or the distribution system depending on the content of a response and the presence/absence of the response within a prescribed time to obtain address decision or address decision information from the content of the response and the presence/absence of the response. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、ネットワークにネ
ットワーク端末がノードとして新規参入するとき、個々
のノードを識別する際に必要なネットワークアドレスを
取得する際、アドレスサーバから配布を受けるサーバ方
式と、ネットワーク端末各々が自律的にネットワークア
ドレスを決定する分散方式とのいずれかをネットワーク
の状態に応じて自動的に選択し、かつネットワークアド
レスを決定するネットワークシステムのアドレス決定方
法及びネットワーク端末に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a server system in which, when a network terminal newly joins a network as a node, the network address necessary for identifying each node is acquired, and the network address is distributed from an address server. The present invention relates to a network system address determination method and a network terminal that automatically selects either a distributed method in which each network terminal autonomously determines a network address according to the state of the network, and determines the network address.

【0002】[0002]

【従来の技術】従来、アドレスサーバからネットワーク
アドレスの配布を受けるサーバ方式と、各々のノードが
自律的にネットワークアドレスを決める分散方式との自
動選択方法は、IPネットワークでIPアドレス配布時
に実現されている。
2. Description of the Related Art Conventionally, an automatic selection method of a server method in which a network address is distributed from an address server and a distributed method in which each node autonomously determines a network address has been realized at the time of IP address distribution in an IP network. There is.

【0003】[0003]

【発明が解決しようとする課題】ところが、従来のネッ
トワークシステムのアドレス決定方法では、互いにアド
レス体系の異なるネットワークアドレスが使用されてい
るサーバ方式と分散方式との間で切り替えようとすると
ネットワークがダウンしてしまう問題点があった。ま
た、IPネットワークは元々の使用ノード数に対してア
ドレス空間が広いので、アドレス重複に対して殆ど留意
しないアドレス選択方法がとられていて、小規模ネット
ワークに応用するには無駄が多い問題点もあった。
However, in the conventional method for determining the address of the network system, the network goes down when switching between the server system and the distributed system in which network addresses having different address systems are used. There was a problem that caused it. In addition, since the IP network has a wide address space with respect to the number of nodes originally used, an address selection method that takes almost no attention to address duplication is adopted, and there is a problem in that it is wasteful when applied to a small-scale network. there were.

【0004】図1はアドレスサーバ1が新規ノードNx
にネットワークアドレスを配布するサーバ方式を示して
いる。このサーバ方式では、各ノードNiとアドレスサ
ーバ1との間の通信が保証されていれば新規ノードNx
に対して競合することなくネットワークアドレスを配布
することができる。図2は分散方式を示している。この
分散方式では、既存ノードNi各々と新規参入するノー
ドNxとの間の通信が保証されていることが必要であ
る。
In FIG. 1, the address server 1 is a new node Nx.
Shows a server method for distributing network addresses. In this server system, if the communication between each node Ni and the address server 1 is guaranteed, the new node Nx
Network addresses can be distributed without conflict with. FIG. 2 shows a distributed system. In this distributed method, it is necessary to ensure communication between each existing node Ni and the newly joining node Nx.

【0005】したがって、サーバ方式では、1つの新規
ノードNxがネットワークアドレスを取得するのに要す
る時間は短く、分散方式ではそれが長くかかる。しか
し、後者の場合、アドレスサーバ1は不要のメリットが
ある。このような各方式の特性から、ビルのような大規
模ネットワークではサーバ方式、小規模な家庭用では分
散方式の採用が望ましい。
Therefore, in the server system, the time required for one new node Nx to acquire the network address is short, and in the distributed system it is long. However, in the latter case, there is an advantage that the address server 1 is unnecessary. Due to the characteristics of each system, it is desirable to use the server system for large-scale networks such as buildings and the distributed system for small-scale homes.

【0006】本発明は、新規ノードがサーバ方式、分散
方式の両方に自動的に選択して対応し、そのいずれの方
式でもネットワークアドレスを取得できる機能を搭載
し、しかもその使い分けが簡単に行なえるネットワーク
システムのアドレス決定技術を提供することを目的とす
る。
According to the present invention, the new node automatically selects and supports both the server system and the distributed system, and is equipped with the function of acquiring the network address in any of the systems, and the usage can be easily selected. It is intended to provide an address determination technology for a network system.

【0007】本発明はまた、サーバ方式と分散方式での
ネットワークアドレス体系を同じとし、サーバ方式と分
散方式との切り替え時に、ネットワークアドレスを不変
にしてアドレス配布方式のスムーズな切り替えが可能で
あり、また使用ノード数とアドレス空間とが等しく、従
来ならばアドレス競合が頻発するような条件下でもアド
レス重複を少なくできるネットワークシステムのアドレ
ス決定技術を提供することを目的とする。
Further, according to the present invention, the same network address system is used in the server system and the distributed system, and when switching between the server system and the distributed system, the network address is not changed and the address distribution system can be smoothly switched. Another object of the present invention is to provide an address determination technique for a network system in which the number of nodes used is equal to the address space, and the address duplication can be reduced even under the condition that address competition frequently occurs in the conventional case.

【0008】[0008]

【課題を解決するための手段】請求項1の発明のネット
ワークシステムのアドレス決定方法は、複数のノードか
ら成るネットワークシステムであって、アドレスサーバ
から付与されるネットワークアドレスを受け入れるサー
バ方式と、ネットワーク参加ノード各々が自律的にネッ
トワークアドレスを決める分散方式とのアドレス取得機
能を各ノードが同時に搭載し、各ノードは、ネットワー
ク参加時に、アドレス要求メッセージを同報し、所定時
間内の応答内容と応答有無により以後のアドレス取得方
式を前記サーバ方式と分散方式との2者択一に自律的に
決定し、前記応答内容と応答有無よりアドレス決定又は
アドレス決定情報を得ることを特徴とする。
An address determining method for a network system according to a first aspect of the present invention is a network system comprising a plurality of nodes, which accepts a network address given from an address server, and network participation. Each node is equipped with an address acquisition function, which is a distributed method in which each node autonomously determines a network address. Each node broadcasts an address request message when participating in the network, and responds within a predetermined time and whether there is a response or not. According to the method, the subsequent address acquisition method is autonomously determined in the alternative of the server method and the distributed method, and the address determination or the address determination information is obtained from the response content and the response presence / absence.

【0009】請求項2の発明は、請求項1のネットワー
クシステムのアドレス決定方法において、新規ノードが
ネットワーク参加時に同報するアドレス要求メッセージ
には、各ノードの固有情報であるメディアアドレスと保
持ネットワークアドレスを付加したデータとを含むこと
を特徴とする。
According to a second aspect of the present invention, in the address determination method of the network system according to the first aspect, in the address request message broadcasted by the new node when joining the network, the media address and the holding network address which are the unique information of each node. And data to which is added.

【0010】請求項3の発明は、請求項2のネットワー
クシステムのアドレス決定方法において、アドレス要求
メッセージを受け取ったアドレスサーバは、メディアア
ドレスをキーに、自己の保持するテーブルに書きこまれ
たメディアアドレスとペアに保持された配布済みネット
ワークアドレスを検索し、受け取ったネットワークアド
レスが該当メディアアドレス以外で未使用であればこれ
をデータとし、該当メディアアドレスで保持値が既に有
る時は保持値をデータとし、そうでなければ空きアドレ
スを選定してこれをデータとし、前記いずれかの1つを
データとして含むアドレス要求応答メッセージとして送
信元に返し、アドレス要求メッセージを受け取った分散
方式で稼動している既存ノード各々は、自己のメディア
アドレスと自己の保持ネットワークアドレスとをアドレ
ス要求応答メッセージとして送信元に返すことを特徴と
する。
According to a third aspect of the present invention, in the address determination method of the network system according to the second aspect, the address server which receives the address request message writes the media address written in a table held by the address server using the media address as a key. The distributed network address stored in the pair is searched, and if the received network address is not used other than the corresponding media address and is unused, this is taken as the data, and if the holding value already exists at the applicable media address, the held value is taken as the data. , If it is not, select an empty address, use this as data, return to the sender as an address request response message containing one of the above as data, and receive the address request message and operate in a distributed system Each node has its own media address and its own And wherein the return to the sender a lifting network address as the address request response message.

【0011】請求項4の発明は、請求項3のネットワー
クシステムのアドレス決定方法において、前記自己の保
持ネットワークアドレスは、自己の上位アドレスに含ま
せて送信元に返すことを特徴とする。
According to a fourth aspect of the present invention, in the address determination method of the network system according to the third aspect, the self-maintained network address is included in a higher address of the self and returned to the transmission source.

【0012】請求項5の発明は、請求項3又は4のネッ
トワークシステムのアドレス決定方法において、新規に
ネットワークに参加するノードは、アドレス要求メッセ
ージの送信からアドレス要求応答メッセージ受信まで待
ち受け時間の上限を、サブネット内最大保証ノード数が
全て参加している時の最大応答時間とし、この時間を超
えて応答のない時は、以後、分散方式として振舞うこと
を特徴とする。
According to a fifth aspect of the present invention, in the address determination method of the network system according to the third or fourth aspect, a node newly joining the network sets an upper limit of the waiting time from the transmission of the address request message to the reception of the address request response message. The maximum response time is when the maximum number of guaranteed nodes in the subnet is all participating, and when there is no response after this time, the system behaves as a distributed system thereafter.

【0013】請求項6の発明は、請求項5のネットワー
クシステムのアドレス決定方法において、新規にネット
ワークに参加するノードは、アドレス要求応答として前
記待ち受け時間内にアドレスサーバからアドレス要求応
答メッセージを受け取ったときには、以後、サーバ方式
として振舞い、前記待ち受け時間内にアドレスサーバと
既存ノードとの両方からアドレス要求応答メッセージを
受け取ったときには、エラー停止とすることを特徴とす
る。
According to a sixth aspect of the present invention, in the address determination method for a network system according to the fifth aspect, a node newly joining the network receives an address request response message from the address server within the waiting time as an address request response. In some cases, thereafter, it behaves as a server method, and when an address request response message is received from both the address server and the existing node within the waiting time, the error stop is performed.

【0014】請求項7の発明は、請求項6のネットワー
クシステムのアドレス決定方法において、新規ノード
は、分散方式に決定したとき、前記待ち受け時間の上限
内に受信したアドレス要求応答メッセージに含まれる保
持ネットワークアドレスに含まれていない自己保持ネッ
トワークアドレスを第1候補として仮アドレスに決定す
ることを特徴とする。
According to a seventh aspect of the present invention, in the address determination method for the network system according to the sixth aspect, when the new node determines to the distributed system, the new node holds the address request response message received within the upper limit of the waiting time. It is characterized in that a self-holding network address not included in the network address is determined as a temporary address as the first candidate.

【0015】請求項8の発明は、請求項2〜7のネット
ワークシステムのアドレス決定方法において、アドレス
サーバは、分散方式で稼働しているネットワークに参加
したときは、サーバ通知同報メッセージを送信し、前記
サーバ通知同報メッセージを受信した既存ノードは、保
持している自己のメディアアドレスとネットワークアド
レスをデータとするアドレス要求メッセージをサーバ宛
てに送り、サーバ方式として振舞うことを特徴とする。
According to an eighth aspect of the present invention, in the address determination method for a network system according to the second to seventh aspects, when the address server participates in a network operating in a distributed system, it sends a server notification broadcast message. The existing node that has received the server notification broadcast message sends an address request message having its own media address and network address as data to the server and behaves as a server system.

【0016】請求項9の発明は、請求項1〜8のネット
ワークシステムのアドレス決定方法において、各ノード
は、プラグアンドプレー時、アドレス要求メッセージの
送信とアドレス要求応答メッセージの受信のみ可能な強
制サーバ方式にて稼動することを特徴とする。
According to a ninth aspect of the present invention, in the address determination method for a network system according to the first to eighth aspects, each node is a forced server capable of only transmitting an address request message and receiving an address request response message during plug and play. It is characterized by operating in a system.

【0017】請求項10の発明は、請求項9のネットワ
ークシステムのアドレス決定方法において、新規にネッ
トワークに参加するノードは、アドレス要求メッセージ
の送信からアドレス要求応答メッセージ受信まで待ち受
け時間の上限を、サブネット内最大保証ノード数が全て
参加している時の最大応答時間とし、この時間を超えて
応答のない場合、各ノードが強制サーバ方式で稼動して
いる時には、以後、エラー停止とすることを特徴とす
る。
According to a tenth aspect of the present invention, in the address determination method for a network system according to the ninth aspect, a node newly joining the network sets an upper limit of a waiting time from transmission of an address request message to reception of an address request response message as a subnet. It is the maximum response time when the maximum guaranteed number of nodes is all participating, and if there is no response after this time, when each node is operating with the forced server method, it will be stopped after that as an error And

【0018】請求項11の発明のネットワーク端末は、
アドレスサーバから付与されるネットワークアドレスを
受け入れるサーバ方式と、アドレスサーバが存在しない
ときに自律的に同一ネットワークに参加している他のノ
ードと識別できる自己のネットワークアドレスを決定す
る分散方式との両方式のアドレス取得機能を搭載し、ネ
ットワーク参加時に、アドレス要求メッセージを同報
し、所定時間内の応答内容と応答有無により以後のアド
レス取得方式を前記サーバ方式と分散方式との2者択一
に自律的に決定し、前記応答内容と応答有無よりアドレ
ス決定又はアドレス決定情報を得る機能を備えたもので
ある。
A network terminal according to the invention of claim 11 is
Both the server method that accepts the network address given by the address server and the distributed method that decides its own network address that can be distinguished from other nodes autonomously participating in the same network when the address server does not exist. It is equipped with an address acquisition function, and broadcasts an address request message at the time of network participation, and the subsequent address acquisition method is autonomous between the server method and the distributed method depending on the response content within a predetermined time and the presence or absence of a response. The address determination information or the address determination information based on the response content and the presence or absence of the response.

【0019】請求項12の発明は、請求項11のネット
ワーク端末において、プラグアンドプレー時、アドレス
要求メッセージの送信とアドレス要求応答メッセージの
受信のみ可能な強制サーバ方式にて稼動する設定手段を
備えたことを特徴とするものである。
According to the twelfth aspect of the invention, in the network terminal of the eleventh aspect, at the plug-and-play time, there is provided a setting means which operates in a forced server system capable of only transmitting the address request message and receiving the address request response message. It is characterized by that.

【0020】[0020]

【発明の実施の形態】以下、本発明の実施の形態を図に
基づいて詳説する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described in detail below with reference to the drawings.

【0021】図3(a),(b)は各ノードのOSIレ
イヤ図である。同図(a)のモデルは、アプリケーショ
ン層L1、上位ミドルウェア層L2、TCP/IP層L
3、下位メディア層L4から構成されている。また同図
(b)のモデルは、同図((a)のモデルから、TCP
/IP層L3を省略したものである。
3A and 3B are OSI layer diagrams of each node. The model shown in FIG. 9A includes an application layer L1, an upper middleware layer L2, and a TCP / IP layer L.
3, the lower media layer L4. In addition, the model shown in (b) of FIG.
/ IP layer L3 is omitted.

【0022】レイヤの分け方がいずれであっても、レイ
ヤ毎に個別のアドレスを持つことが必要であるが、下位
メディア層L4のメディアアドレスは、ネットワーク端
末に組み込まれているネットワーク通信機器に予め埋め
込んでおくのが一般的である。またTCP/IP層L3
のIPアドレスは、各クライアントに動的にIPアドレ
スを割当てるDHCPサーバや自律的に取得する方法が
RFC(Request ForComments)に定義されており、そ
れらがシステムによって採用されているものとする。そ
して、本発明は、アプリケーション層L1が使用する上
位アドレスの取得技術に関連する。
Regardless of how the layers are divided, it is necessary to have an individual address for each layer, but the media address of the lower media layer L4 is previously stored in the network communication device incorporated in the network terminal. It is common to embed it. Also, TCP / IP layer L3
The IP address of is defined in RFC (Request For Comments) as a DHCP server that dynamically assigns an IP address to each client or a method of autonomously acquiring the IP address, and these are adopted by the system. Then, the present invention relates to a technique of acquiring a higher-order address used by the application layer L1.

【0023】上位アドレスは、単一のアドレス体系で定
義されたメディアを扱う場合には不要であるが、多様な
異なるアドレス体系のメディアを同時に用いたアプリケ
ーションで、各ノードを統一的に扱うためには必須であ
る。またIPアドレスのような大きなアドレス空間では
なく、数バイト程度のアドレス空間しか用意できない場
合には、上位アドレスにマッピングすることで見かけ上
IPアドレスが使用できるという理由で上位アドレスの
概念は有益である。
The upper address is not necessary when handling media defined by a single address system, but in order to handle each node in a unified manner in an application that uses media of various different address systems at the same time. Is mandatory. In addition, when an address space of only a few bytes can be prepared instead of a large address space such as an IP address, the concept of the upper address is useful because the IP address can be apparently used by mapping to the upper address. .

【0024】図4は上位アドレスの構成であり、Net
IDとNodeIDより成る。これらは各1バイト程度
のデータ列で、NetIDはサブネット識別用コード、
NodeIDはサブネット内の個別ノード識別用コード
として定義される保持ネットワークアドレスである。図
中で、NetIDは、例えば「0x01」のようなもの
であり、NodeIDは、「0x9E」のようなもので
ある。
FIG. 4 shows the structure of the upper address, which is Net.
It consists of ID and NodeID. Each of these is a data string of about 1 byte, NetID is a subnet identification code,
NodeID is a holding network address defined as a code for identifying an individual node in the subnet. In the figure, NetID is something like "0x01", and NodeID is something like "0x9E".

【0025】このNetIDは、NodeIDが取得さ
れてからサブネット毎に存在するルータにより配布され
るので、本説明では省略する。また、MAC_AはNo
deIDに変換されるアドレス(いわゆる、MACアド
レスではない)であり、立ち上げ時はMAC_Aがサー
バなり自律的なり何らかの方法で取得され、予め定めら
れた線形変換にてNodeIDに変換する。通常はNo
deIDとMAC_Aは同じ値がとられる。
Since this NetID is distributed by the routers existing in each subnet after the NodeID is acquired, it will be omitted in this description. MAC_A is No
It is an address (not a so-called MAC address) that is converted into a deID, and MAC_A is a server at the time of startup and autonomously acquired by some method and converted into a NodeID by a predetermined linear conversion. Normally No
The same value is taken for deID and MAC_A.

【0026】図5は、図3の各レイヤで生成されるパケ
ットの形式を示しており、各レイヤで処理用ヘッダが付
加されている。上位ミドルウェア層L2からTCP/I
P層L3に渡されると、TCP/IP層L3ではUDP
ヘッダとIPヘッダを付加して下位メディア層L4に渡
す。下位メディア層L4ではこれに下位ヘッダを付加
し、ネットワーク伝送路に送り出す。
FIG. 5 shows a format of a packet generated in each layer of FIG. 3, and a processing header is added to each layer. TCP / I from upper middleware layer L2
When passed to the P layer L3, the UDP is used in the TCP / IP layer L3.
A header and an IP header are added and passed to the lower media layer L4. In the lower media layer L4, a lower header is added to this and sent out to the network transmission line.

【0027】図6は各ノードとなるネットワーク端末2
のハードウェア構成を示しており、CPU21、ROM
22、RAM23、通信メディア処理ブロック24より
構成されている。通信メディア処理ブロック24は物理
的な伝送路(無線も含む)25との間で信号の受け渡し
を行う部分である。
FIG. 6 shows a network terminal 2 serving as each node.
2 shows the hardware configuration of the CPU 21, the ROM
22, a RAM 23, and a communication media processing block 24. The communication media processing block 24 is a part that exchanges signals with a physical transmission path (including wireless) 25.

【0028】ROM22は例えば、フラッシュROM、
EEPROM、ハードディスク等の不揮発性メモリであ
り、RAM23はDRAMである。これらのROM2
2、RAM23の内に上述したNetID、NodeI
D、MAC_A、IPアドレス、メディアアドレスなど
のアドレスデータが格納されている。図7はそのアドレ
ステーブルの一例を示している。
The ROM 22 is, for example, a flash ROM,
The RAM 23 is a DRAM, which is a non-volatile memory such as an EEPROM or a hard disk. These ROM2
2. The above NetID and NodeI in the RAM 23
Address data such as D, MAC_A, IP address, and media address are stored. FIG. 7 shows an example of the address table.

【0029】ネットワーク端末2の詳細は、次の通りで
ある。CPU21は既に記述したアプリケーション層処
理、上位ミドルウェア層処理、TCP/IP層処理、下
位メディア層処理を行い、処理の結果取得した上位自己
アドレス・DBテーブル、上位他ノードアドレス・DB
テーブル、下位自己アドレステーブル、下位他ノードア
ドレステーブルの各値をRAM23に書き込み、また必
要に応じて読み出しを行う。RAM23にはalive
アドレスバッファもおく。またRAM23に書き込んだ
値をROM22に書き込み、また必要に応じて読み出し
を行う。
Details of the network terminal 2 are as follows. The CPU 21 performs the application layer processing, the upper middleware layer processing, the TCP / IP layer processing, and the lower media layer processing, which have already been described, and acquires the upper self address / DB table and the upper other node address / DB acquired as a result of the processing.
The respective values of the table, the lower self address table, and the lower other node address table are written in the RAM 23 and read as necessary. Alive in RAM23
Address buffer is also set. Further, the value written in the RAM 23 is written in the ROM 22 and read out as necessary.

【0030】下位メディア層ハード処理ブロック24
は、CPU21内の下位メディア層処理により生成され
たパケットを受け取り、変調して適切なタイミングで無
線、電灯線、専用線(イーサネット(登録商標)など)
等の伝送路25上に送出する。また下位メディア層ハー
ド処理ブロック24は、伝送路25により送られてくる
他ノードからの無線、電灯線、専用線(イーサネットな
ど)のパケットを適切に復調し、CPU21内の下位メ
ディア層処理に受け渡す。
Lower media layer hardware processing block 24
Receives a packet generated by lower media layer processing in the CPU 21, modulates the packet, and wirelessly, power line, leased line (Ethernet (registered trademark), etc.) at appropriate timing.
And the like on the transmission path 25. Further, the lower media layer hardware processing block 24 appropriately demodulates packets of the wireless, power line, and leased line (such as Ethernet) sent from another node by the transmission path 25, and receives the packets in the lower media layer processing in the CPU 21. hand over.

【0031】上記のROM22、RAM23に保持され
るアドレステーブルについて説明する。
The address table stored in the ROM 22 and RAM 23 will be described.

【0032】<上位自己アドレス・DBテーブル>上位
自己アドレスと自己メディアアドレスの組みが格納され
ている。
<Upper Self Address / DB Table> A set of upper self address and self media address is stored.

【0033】<上位他ノードアドレス・DBテーブル>
自身のノードではなく、通信対象となる機器の各種デー
タが格納されている。通信対象機器毎に相手の上位アド
レスとメディアアドレスの組みが格納されている。
<Higher Other Node Address / DB Table>
It stores various data of the device to be communicated, not its own node. A pair of a higher address and a media address of the other party is stored for each communication target device.

【0034】<下位自己アドレステーブル>下位メディ
ア層が通信する時に必要な自己のMAC_A、IPアド
レス、メディアアドレスが保存されている。
<Lower self address table> The self lower MAC_A, IP address and media address required for communication are stored.

【0035】<下位他ノードアドレステーブル>下位メ
ディア層が通信する時に必要な相手のMAC_A、IP
アドレス、メディアアドレスが保存されている。
<Lower Other Node Address Table> MAC_A, IP of the other party required when the lower media layer communicates
Address and media address are stored.

【0036】<aliveアドレスバッファ>新規立上
げノードや、重複NodeIDを送信したノードが、ア
ドレス要求応答メッセージにて返してくる上位アドレ
ス、メディアアドレス、IPアドレスを一旦プールして
おくバッファである。処理が終わるとクリアされる。
<Alive Address Buffer> This is a buffer for temporarily pooling the high-order address, media address, and IP address returned in the address request response message by the new startup node or the node that has transmitted the duplicate NodeID. Cleared when processing is complete.

【0037】<上位アドレス>上述したNetID、N
odeIDより構成されていて、NodeIDはサブネ
ット内でユニークな値、NetIDはサブネット毎に割
り当てられるユニークな値である。上位ミドルウェア層
L2は上位アドレスを指定してネットワーク上のノード
を識別し操作する。この値はメディアアドレス、IPア
ドレス、NodeID、上位アドレスとある不定期間に
おいてのみ対応付けされている。すなわち、メディアア
ドレスに対するIPアドレス、NodeID、上位アド
レスの組みは変動値である。
<Higher Address> NetID, N mentioned above
The node ID is a unique value within the subnet, and the NetID is a unique value assigned to each subnet. The upper middleware layer L2 specifies a higher address to identify and operate a node on the network. This value is associated with the media address, the IP address, the NodeID, and the upper address only during a certain indefinite period. That is, the set of the IP address, the NodeID, and the upper address with respect to the media address is a variable value.

【0038】<IPアドレス>いわゆるインタネットア
ドレスである。IPv4は32ビット、IPv6は12
8ビットである。
<IP address> A so-called internet address. 32 bits for IPv4, 12 for IPv6
It is 8 bits.

【0039】<メディアアドレス>通信ノードの固有値
である。場合によってはメディア種別(無線、イーサネ
ット、電灯線等)を示すハードウェアIDとの組みの値
を指す。少なくともメディア種別ごとに世界ユニークな
値である。
<Media Address> This is a unique value of the communication node. In some cases, it refers to a value in combination with a hardware ID indicating the type of media (wireless, Ethernet, power line, etc.). At least, it is a globally unique value for each media type.

【0040】次に、上記の構成のネットワークシステム
が実施するアドレスデータの決定方法について、図8の
シーケンス図を用いて動作を説明する。図8のシーケン
ス図は、既定のネットワークシステムとして、サーバ1
とアドレス取得済みの既定ノードN1,N2,…,Nm
が存在し、このネットワークシステムに新規ノードNx
が参入する場合の新規参入ノードNxのネットワークア
ドレス取得の手順を示している。なお、サーバ1が存在
する場合(1)と存在しない場合(2)とがあるが、本
シーケンス図では、両方の場合を一度に示してある。ま
た、図8の縦軸は時間推移を示している。
Next, the operation of the address data determination method implemented by the network system having the above configuration will be described with reference to the sequence diagram of FIG. The sequence diagram of FIG. 8 shows the server 1 as the default network system.
And the default nodes N1, N2, ..., Nm whose addresses have been acquired
Exists, and a new node Nx exists in this network system.
Shows a procedure for acquiring a network address of a newly-entry node Nx in the case of joining. There are cases where the server 1 exists (1) and cases where it does not exist (2), but in this sequence diagram, both cases are shown at once. Further, the vertical axis of FIG. 8 shows the time transition.

【0041】また、サーバ1、ノードとなるネットワー
ク端末Ni(i=1〜m)、Nx各々は、図7に示した
アドレステーブルをデータベースとして保持している。
このアドレステーブルは、サーバ1内にはMAC_A配
布管理用として保持され、一般ノードNi内にはノード
の宛先テーブル、自己アドレス管理用として保持されて
いる。
Each of the server 1, the network terminals Ni (i = 1 to m) and Nx serving as nodes holds the address table shown in FIG. 7 as a database.
This address table is held in the server 1 for MAC_A distribution management, and in the general node Ni for node destination table and self address management.

【0042】さらに、本実施の形態のネットワークシス
テムにおいては、図9に示すサーバ/サーバ型動作ノー
ド/分散型動作ノードへの遷移と帰属メッセージを採用
している。これによれば、ネットワーク端末は動作決定
トリガにて、サーバ方式、分散方式いずれにも動作遷移
可能であり、サーバ設置有り無しにて自動的に選択でき
る。ただし、サーバが存在しても、通信不良のためにM
AC_A応答を受信しない場合に勝手に分散方式で動か
ないように、サーバ方式固定とする。すなわち、応答義
務受信メッセージとしてMAC_A応答、送信義務メッ
セージとしてアドレス要求のみを強制的に行わせる設定
である。また、サーバ方式で稼働中のネットワーク中に
サーバを追加参加させた場合は、新規サーバはアドレス
要求を送信したとき、MAC_A応答を受信したなら通
常のサーバ方式の一般ノードNiとして振舞うようにし
ている。また分散方式のネットワーク中にサーバを追加
したときには、サーバにサーバ通知を同報させることに
より、これを受けた分散方式で動作中の既存ノードNi
各々はMAC_A要求にて自己メディアアドレスと保持
MAC_Aをサーバに返し、MAC_A応答にてMAC
_Aを受け取り、サーバ方式に切り替えて動作するよう
にしてある。
Further, in the network system of this embodiment, the transition to the server / server type operation node / distributed type operation node and the attribution message shown in FIG. 9 are adopted. According to this, the network terminal can perform the operation transition to either the server method or the distributed method by the operation determination trigger, and can automatically select whether or not the server is installed. However, even if the server exists, M
The server system is fixed so as not to operate in a distributed system without receiving an AC_A response. That is, the MAC_A response is set as the response obligation reception message, and only the address request is set as the transmission obligation message. Further, when a server is additionally joined in the network operating in the server system, the new server behaves as a general server Ni in the normal server system if it receives a MAC_A response when sending an address request. . When a server is added to a distributed network, the server is broadcast a server notification so that the existing node Ni operating in the distributed system can receive the notification.
Each returns its own media address and retained MAC_A to the server in the MAC_A request, and the MAC in the MAC_A response
It receives _A and switches to the server system to operate.

【0043】<1.サーバ方式>新規ノードNxが参入
すると、メディアアドレスと以前ネットワークに参加し
たとき付与されたMAC_Aがあれば、これを図5に示
すメッセージ内データとして、図10の表のコード01
のアドレス要求メッセージをサブネット同報する(ステ
ップS1)。このアドレス要求メッセージは、サーバ1
に対しては同表のコード02のMAC_A要求となり、
ネットワークにサーバ1が参加しておれば、当該サーバ
1はこのメッセージを受け取ったならMAC_Aを決定
し、要求元の新規ノードNxに同表のコード03のMA
C_A応答のペイロードデータとして渡す(ステップS
2)。
<1. Server method> When a new node Nx joins, if there is a media address and MAC_A given when joining the network before, if this is the data in the message shown in FIG. 5, this is code 01 in the table of FIG.
The address request message is broadcast to the subnet (step S1). This address request message is sent to the server 1
To the MAC_A request of code 02 in the table,
If the server 1 participates in the network, the server 1 determines the MAC_A when it receives this message, and the requesting new node Nx transmits the MA of code 03 in the table.
Pass as payload data of C_A response (step S
2).

【0044】ここでサーバ1は図7に示したようなアド
レスリストのデータベースを有しており、メディアアド
レスをキーにMAC_Aを管理している。そしてサーバ
1は、同一メディアアドレスを含んだアドレス要求メッ
セージを受信した時には必ず同じMAC_Aを付与す
る。またアドレス要求メッセージ内のメディアアドレス
とMAC_Aの値で、サーバ1内でのメディアアドレス
に対応する値がブランクであれば、アドレス要求メッセ
ージ内のMAC_Aと等しい値を決定値として新規ノー
ドNxに付与する。
Here, the server 1 has a database of address lists as shown in FIG. 7, and manages MAC_A using the media address as a key. Then, the server 1 always gives the same MAC_A when receiving the address request message including the same media address. Further, if the value corresponding to the media address in the server 1 is blank among the media address and the MAC_A value in the address request message, a value equal to MAC_A in the address request message is given to the new node Nx as a decision value. .

【0045】サーバ方式での新規ノードNxは、この動
作でMAC_Aを獲得し、結果的にNodeIDも決定
される(ステップS3)。新規参入ノードNxは以後、
サーバ方式として振るまい、アドレス要求及び後述する
サーバ通知同報を受信しても応答しない。
The new node Nx in the server system acquires MAC_A by this operation, and consequently the NodeID is also determined (step S3). The new entry node Nx is
It behaves as a server system, and does not respond even if it receives an address request and a server notification broadcast described later.

【0046】<2.分散方式>ステップS1で、新規ノ
ードNxが図10のアドレス要求メッセージをサブネッ
ト同報しても、サーバ1が存在せず、MAC_A応答が
所定時間Tmax(図8のシーケンス図中のタイムアウ
ト時間。詳しくは後述する)の間に受信できない場合
は、既定ノードNiが分散方式で稼働しているものとみ
なす。この場合、既に立ち上がっている既定ノードNi
は分散方式として稼動しているので、分散方式ノードの
通信規則としてアドレス要求メッセージを受信したこと
で、図10のコード04のアドレス要求応答を上位アド
レス、メディアアドレス、IPアドレスとともに要求元
に返却する(ステップS4)。
<2. Distributed method> In step S1, even if the new node Nx broadcasts the address request message of FIG. 10 to the subnet, the server 1 does not exist and the MAC_A response has a predetermined time Tmax (timeout time in the sequence diagram of FIG. 8. If it cannot be received during the period (see below), it is considered that the default node Ni is operating in the distributed mode. In this case, the default node Ni that has already started up
Is operating as a distributed system, the address request message is received as the communication rule of the distributed system node, and the address request response of code 04 in FIG. 10 is returned to the request source together with the upper address, media address, and IP address. (Step S4).

【0047】新規ノードNxは、アドレス要求メッセー
ジをサブネット同報した直後より、受信するメッセージ
は(1)各既定ノードNiからのアドレス要求応答か、
(2)サーバ1から送られるMAC_A応答か、又は
(3)受信データがないかの3ケースに分けられるが、
それらのいずれかのはずであり、サーバ1あるいは既定
ノードNiから返されるデータをバッファに保存する。
Tmax時間後までにMAC_A応答が返らなかった
ら、このタイムアップイベントをトリガにして分散方式
と判定する。
Immediately after the subnet broadcast of the address request message, the new node Nx receives the message (1) is an address request response from each predetermined node Ni, or
It is divided into three cases: (2) MAC_A response sent from the server 1 or (3) no received data.
It should be one of them and saves the data returned from the server 1 or the default node Ni in a buffer.
If the MAC_A response is not returned by the time Tmax, the time-up event is used as a trigger to determine the distributed method.

【0048】新規ノードNxは、アドレス要求応答なし
のときには、MAC_A自己保持値があればこの値を、
保持値がなければ自己メディアアドレス下位1バイトを
使用し、アドレス要求応答ありのときには、受け取った
NodeIDの逆変換値から求めたMAC_A全ての中
から、空いているMAC_Aの中に自己保持MAC_A
値があればその値を、保持値がないなら自己メディアア
ドレス下位1バイトが空きアドレスに含まれるならばこ
れを選択し、空きアドレスに含まれないならば空きアド
レスの中から乱数的に選択し、仮MAC_Aを決定する
(ステップS5)。そして新規ノードNxは、図10の
表のコード05のノード確認として仮MAC_Aを含む
データをサブネット内同報で通知する(ステップS
6)。
When there is no address request response, the new node Nx, if there is a MAC_A self-holding value,
If there is no holding value, the lower 1 byte of the self-media address is used, and if there is an address request response, the self-holding MAC_A is stored in the vacant MAC_A from all MAC_A obtained from the inverse conversion value of the received NodeID.
If there is a value, select that value. If there is no hold value, select this if the lower 1 byte of the self media address is included in the empty address. If not, select it randomly from the empty addresses. , Temporary MAC_A is determined (step S5). Then, the new node Nx notifies the data including the temporary MAC_A as the node confirmation of the code 05 in the table of FIG.
6).

【0049】受け取った分散方式稼動中の既定ノードN
i各々は、自分のMAC_Aと受け取った仮MAC_A
とを比較し、一致しているならば同表のコード06のノ
ード確認応答を新規ノードNxに返却する(ステップS
7)。ノード確認応答を受け取った新規ノードNxは、
これを除外し、空きを調べ、再度仮MAC_Aを決定
し、サブネット内同報で通知する。これを所定回数繰り
返し、ノード確認応答が返らないことを確認し、仮値を
正式MAC_Aとし、NodeIDに変換する(ステッ
プS8)。
Received default node N in operation in the distributed system
Each i has its own MAC_A and the received temporary MAC_A
Are compared, and if they match, the node confirmation response of code 06 in the table is returned to the new node Nx (step S
7). The new node Nx that received the node confirmation response
This is excluded, the vacancy is checked, the temporary MAC_A is determined again, and the notification is sent by the broadcast in the subnet. This is repeated a predetermined number of times, it is confirmed that the node confirmation response is not returned, the provisional value is set to the official MAC_A, and it is converted to the NodeID (step S8).

【0050】なお、空きアドレスなしと判定したなら
ば、エラー停止とする。また、ステップS1のアドレス
要求送信からステップS6のノード確認送信までの間に
ノード確認電文を他ノードから受信したなら、受信した
仮MAC_Aは使用済みとみなし、自己の選択候補から
除外する。さらに、ステップS1のアドレス要求同報か
らアドレス要求応答の待ち受けを中止する(分散方式の
場合は仮アドレスを決定する直前)までの時間は前述し
た最大応答時間Tmaxとし、最大ノード数がサブネッ
トに接続された場合の全ノードの最大応答時間に設定す
る。そしてこの時間を超えたら分散方式として仮MAC
_Aを決め、ノード確認メッセージを送信する。
If it is determined that there are no free addresses, error stop is determined. If a node confirmation message is received from another node between the address request transmission in step S1 and the node confirmation transmission in step S6, the received temporary MAC_A is regarded as used and is excluded from its own selection candidates. Further, the time from the address request broadcast in step S1 until the waiting of the address request response is stopped (in the case of the distributed system, immediately before the provisional address is determined) is the above-mentioned maximum response time Tmax, and the maximum number of nodes is connected to the subnet. Set to the maximum response time of all nodes in the event of a breach. And if this time is exceeded, the temporary MAC is used as a distributed method.
_A is decided and a node confirmation message is transmitted.

【0051】分散方式で稼動中の既定ノードNi各々
は、後にサーバ1が追加され、ステップS10でサーバ
1が発したコード07のサーバ通知同報を受信した際、
メディアアドレスとMAC_Aを含むMAC_A要求を
サーバ1に行ない(ステップS11)、MAC_A応答
にてサーバ1からMAC_A配布を受け、以降、サーバ
方式に切り替えて動作する(ステップS12)。
When the server 1 is added later to each of the default nodes Ni operating in the distributed mode and the server notification broadcast of the code 07 issued by the server 1 is received in step S10,
A MAC_A request including the media address and MAC_A is sent to the server 1 (step S11), the MAC_A is distributed from the server 1 in the MAC_A response, and then the server system is switched to operate (step S12).

【0052】新規ノードNxは以上の手順でMAC_A
をサーバ方式又は分散方式で取得すると、ルータ宛てに
NetIDを要求し、ルータからNetIDを取得して
上位アドレスを決定することになる。
The new node Nx is MAC_A
Is acquired by the server method or the distributed method, the NetID is requested to the router, the NetID is acquired from the router, and the upper address is determined.

【0053】こうして、本実施の形態のネットワークシ
ステムのアドレス決定方法では、ステップS11におけ
るMAC_A要求に含まれる分散方式で稼動中のノード
Niの保持自己MAC_Aがサーバ1内で未使用(新規
サーバNxは当然未予約であり、すべて未使用となる)
であればこれが付与されるため、システムが分散式から
サーバ方式に切り替わってもMAC_A、すなわちNo
deID、すなわち上位アドレスが変わることがないの
で、ネットワークが遮断することはない。
As described above, in the address determination method of the network system according to the present embodiment, the holding self MAC_A of the node Ni operating in the distributed system included in the MAC_A request in step S11 is not used in the server 1 (the new server Nx is Of course, it is unreserved and all unused.)
If so, this will be added, so even if the system switches from the distributed system to the server system, MAC_A, that is, No.
Since the deID, that is, the upper address does not change, the network is not interrupted.

【0054】また、サーバ方式と分散方式でのネットワ
ークアドレス体系を同じとしたことにより、サーバ方式
と分散方式との切り替え時に、ネットワークアドレスを
不変にしてアドレス配布方式のスムーズな切り替えが可
能であり、また使用ノード数とアドレス空間とが等し
く、従来ならばアドレス競合が頻発するような条件下で
もアドレス重複を少なくできる。
Further, by using the same network address system for the server system and the distributed system, when switching between the server system and the distributed system, it is possible to change the network address and smoothly switch the address distribution system. Further, the number of used nodes is equal to the address space, and in the conventional case, address duplication can be reduced even under the condition that address conflict frequently occurs.

【0055】次に、本発明の第2の実施の形態のネット
ワークシステムのアドレス決定方法について、図11の
シーケンス図を用いて説明する。第2の実施の形態は、
ノードとなるネットワーク端末Nxが新規にネットワー
クに参加する際にアドレス要求を同報し(ステップS
1)、サーバ1がサーバ応答を返したら(ステップS1
A)、ノードNxはMAC_A要求をサーバ1に送信し
(ステップS1B)、MAC_A応答を貰えばそれをM
AC_Aと決定する(ステップS2)ことを特徴とす
る。
Next, an address determining method for the network system according to the second embodiment of this invention will be described with reference to the sequence diagram of FIG. The second embodiment is
When the network terminal Nx serving as a node newly joins the network, an address request is broadcast (step S
1) If the server 1 returns a server response (step S1)
A), the node Nx sends a MAC_A request to the server 1 (step S1B), and if it receives a MAC_A response, sends it to M
It is characterized in that it is determined to be AC_A (step S2).

【0056】新規ノードNxからのアドレス要求の同報
に対して、サーバ1が存在しないために待ち受け最大時
間Tmaxの内にサーバから応答がない場合には分散方
式で稼働中とみなし、分散方式のアドレス決定を実施す
ることになるが、この分散方式でのアドレス決定手順
は、図8のシーケンス図に示した第1の実施の形態と同
様である。
In response to the address request broadcast from the new node Nx, if there is no response from the server within the maximum standby time Tmax because the server 1 does not exist, it is considered to be operating in the distributed system, and the Although the address determination is performed, the address determination procedure in this distributed system is the same as that of the first embodiment shown in the sequence diagram of FIG.

【0057】この第2の実施の形態の場合、メッセージ
種別は図12に示すものであり、ネットワーク端末Ni
各々が最初に同報するアドレス要求メッセージはサーバ
検索メッセージと兼用する。したがって、第1の実施の
形態の図10のメッセージ種別に対して、図12に示し
たように、サーバ1からのサーバ応答メッセージが追加
されたものとなる。この第2の実施の形態によれば、サ
ーバのネットワーク参加をより確実に判断することがで
き、またアドレス配布もより強固にできる利点がある。
In the case of the second embodiment, the message type is as shown in FIG. 12, and the network terminal Ni
The address request message that each broadcasts first also serves as the server search message. Therefore, as shown in FIG. 12, the server response message from the server 1 is added to the message type of FIG. 10 of the first embodiment. According to the second embodiment, there is an advantage that the server participation in the network can be determined more surely and the address distribution can be made more robust.

【0058】なお、上記の実施の形態では、新規ノード
からのアドレス要求メッセージに対して、規定ノードが
上位アドレス全体を送信するようにしたが、この上位ア
ドレス中の自己の保持ネットワークアドレスであるNo
deIDのみを送信する構成にしてもよい。この場合、
NodeIDはMAC_Aが線形変換されたコードであ
ることからNodeIDとMAC_Aとは1対1対応と
なるため、自己の保持ネットワークアドレスと見なせる
MAC_AをNodeIDに代えて送信するようにして
もよい。
In the above embodiment, the specified node transmits the entire upper address in response to the address request message from the new node. However, in this upper address, the own network address No.
The configuration may be such that only the deID is transmitted. in this case,
Since the NodeID has a one-to-one correspondence between the NodeID and the MAC_A because the MAC_A is a linearly converted code, the MAC_A that can be regarded as its own holding network address may be transmitted instead of the NodeID.

【0059】[0059]

【発明の効果】以上のように本発明によれば、新規参入
ノードがアドレス決定方式として、サーバの存在の有無
によりサーバ方式と分散方式のいずれかを自動的に選択
して対応し、そのいずれの方式でもネットワークアドレ
スを取得できる。
As described above, according to the present invention, the new entrant node automatically selects either the server method or the distributed method as the address determination method according to the presence or absence of the server, and whichever method is selected. You can also get the network address with this method.

【0060】本発明はまた、サーバ方式と分散方式での
ネットワークアドレス体系を同じとし、サーバ方式と分
散方式との切り替え時にネットワークアドレスを不変に
してアドレス配布方式のスムーズな切り替えが可能であ
る。
In the present invention, the network address system is the same between the server system and the distributed system, and when switching between the server system and the distributed system, the network address is not changed and the address distribution system can be smoothly switched.

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

【図1】一般的なサーバ方式のネットワークシステムの
ブロック図。
FIG. 1 is a block diagram of a general server-type network system.

【図2】一般的な分散方式のネットワークシステムのブ
ロック図。
FIG. 2 is a block diagram of a general distributed network system.

【図3】本発明の一実施の形態のネットワーク端末のO
SIレイヤモデルの説明図。
FIG. 3 is a diagram of the network terminal O according to the embodiment of the present invention.
Explanatory drawing of SI layer model.

【図4】上記の実施の形態で使用する上位アドレスデー
タの構成を示す説明図。
FIG. 4 is an explanatory diagram showing a configuration of upper address data used in the above embodiment.

【図5】上記の実施の形態で送受信するメッセージの各
層のデータの構成を示す説明図。
FIG. 5 is an explanatory diagram showing a data structure of each layer of a message transmitted and received in the above embodiment.

【図6】上記の実施の形態のネットワーク端末のハード
ウェア構成を示すブロック図。
FIG. 6 is a block diagram showing a hardware configuration of the network terminal according to the above embodiment.

【図7】上記の実施の形態で使用するアドレステーブル
例の説明図。
FIG. 7 is an explanatory diagram of an example of an address table used in the above embodiment.

【図8】上記の実施の形態によるアドレス決定手順のシ
ーケンス図。
FIG. 8 is a sequence diagram of an address determination procedure according to the above embodiment.

【図9】上記の実施の形態によるサーバ、ノード各々の
サーバ方式動作、分散方式動作の決定及び遷移の判断、
初期化時の応答義務受信メッセージ、送信義務メッセー
ジを示すテーブル。
FIG. 9 is a diagram illustrating a server system operation of each of the server and the node according to the above-described embodiment, determination of a distributed system operation and determination of transition
A table showing the response obligation reception message and the transmission obligation message at initialization.

【図10】上記の実施の形態で使用するメッセージの種
類とそれに含まれるアドレスデータを示すテーブル。
FIG. 10 is a table showing the types of messages used in the above embodiments and the address data contained therein.

【図11】本発明の第2の実施の形態によるアドレス決
定手順のシーケンス図。
FIG. 11 is a sequence diagram of an address determination procedure according to the second embodiment of the present invention.

【図12】上記の実施の形態で使用するメッセージの種
類とそれに含まれるアドレスデータのテーブル。
FIG. 12 is a table of message types used in the above embodiment and address data included therein.

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

1 サーバ 2 ネットワーク端末 21 CPU 22 ROM 23 RAM 24 下位メディア層処理ブロック 25 伝送路 1 server 2 network terminals 21 CPU 22 ROM 23 RAM 24 Lower Media Layer Processing Block 25 transmission lines

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 複数のノードから成るネットワークシス
テムであって、アドレスサーバから付与されるネットワ
ークアドレスを受け入れるサーバ方式と、ネットワーク
参加ノード各々が自律的にネットワークアドレスを決め
る分散方式とのアドレス取得機能を各ノードが同時に搭
載し、 各ノードは、ネットワーク参加時に、アドレス要求メッ
セージを同報し、所定時間内の応答内容と応答有無によ
り以後のアドレス取得方式を前記サーバ方式と分散方式
との2者択一に自律的に決定し、前記応答内容と応答有
無よりアドレス決定又はアドレス決定情報を得ることを
特徴とするネットワークシステムのアドレス決定方法。
1. A network system composed of a plurality of nodes, comprising an address acquisition function of a server system that accepts a network address assigned from an address server and a distributed system in which each network participating node autonomously determines a network address. Each node is installed at the same time, each node broadcasts an address request message when participating in the network, and the subsequent address acquisition method is selected from the server method and the distributed method depending on the response content within a predetermined time and the presence or absence of response. First, an address determining method for a network system, which autonomously determines and obtains an address or address determining information from the response content and the presence or absence of the response.
【請求項2】 新規ノードがネットワーク参加時に同報
するアドレス要求メッセージには、各ノードの固有情報
であるメディアアドレスと保持ネットワークアドレスを
付加したデータとを含むことを特徴とする請求項1に記
載のネットワークシステムのアドレス決定方法。
2. The address request message broadcasted by a new node when participating in a network includes a media address, which is unique information of each node, and data to which a holding network address is added. Method of network system address determination.
【請求項3】 アドレス要求メッセージを受け取ったア
ドレスサーバは、メディアアドレスをキーに、自己の保
持するテーブルに書きこまれたメディアアドレスとペア
に保持された配布済みネットワークアドレスを検索し、
受け取ったネットワークアドレスが該当メディアアドレ
ス以外で未使用であればこれをデータとし、該当メディ
アアドレスで保持値が既にある時には保持値をデータと
し、そうでなければ空きアドレスを選定してこれをデー
タとし、前記いずれかの1つをデータとして含むアドレ
ス要求応答メッセージとして送信元に返し、 アドレス要求メッセージを受け取った分散方式で稼動し
ている既存ノード各々は、自己のメディアアドレスと自
己の保持ネットワークアドレスとをアドレス要求応答メ
ッセージとして送信元に返すことを特徴とする請求項2
に記載のネットワークシステムのアドレス決定方法。
3. The address server receiving the address request message searches for the distributed network address held in pair with the media address written in the table held by itself, using the media address as a key,
If the received network address is other than the corresponding media address and is not used, this is used as the data, if the holding value already exists at the corresponding media address, the holding value is used as the data, and if not, an empty address is selected and used as the data. , Each of the existing nodes operating in the distributed system that returns the address request response message including one of the above as data to the transmission source and receives the address request message has its own media address and its own holding network address. Is returned to the transmission source as an address request response message.
The method for determining the address of the network system described in.
【請求項4】 前記自己の保持ネットワークアドレス
は、自己の上位アドレスに含ませて送信元に返すことを
特徴とする請求項3に記載のネットワークシステムのア
ドレス決定方法。
4. The address determination method for a network system according to claim 3, wherein the own-held network address is included in an upper address of the own and returned to the transmission source.
【請求項5】 新規にネットワークに参加するノード
は、アドレス要求メッセージの送信からアドレス要求応
答メッセージ受信まで待ち受け時間の上限を、サブネッ
ト内最大保証ノード数が全て参加している時の最大応答
時間とし、この時間を超えて応答のない時は、以後、分
散方式として振舞うことを特徴とする請求項3又は4に
記載のネットワークシステムのアドレス決定方法。
5. A node newly joining the network sets the upper limit of the waiting time from the transmission of the address request message to the reception of the address request response message as the maximum response time when all the maximum guaranteed nodes in the subnet are participating. 5. The address determination method for a network system according to claim 3, wherein when there is no response after this time, the system behaves as a distributed system.
【請求項6】 新規にネットワークに参加するノード
は、アドレス要求応答として前記待ち受け時間内にアド
レスサーバからアドレス要求応答メッセージを受け取っ
たときには、以後、サーバ方式として振舞い、前記待ち
受け時間内にアドレスサーバと既存ノードとの両方から
アドレス要求応答メッセージを受け取ったときには、エ
ラー停止とすることを特徴とする請求項5に記載のネッ
トワークシステムのアドレス決定方法。
6. When a node newly joining the network receives an address request response message from the address server within the waiting time as an address request response, it behaves as a server system thereafter and becomes an address server within the waiting time. 6. The address determination method for a network system according to claim 5, wherein when the address request response message is received from both the existing node, the error stop is performed.
【請求項7】 新規ノードは、分散方式に決定したと
き、前記待ち受け時間の上限内に受信したアドレス要求
応答メッセージに含まれる保持ネットワークアドレスに
含まれていない自己保持ネットワークアドレスを第1候
補として仮アドレスに決定することを特徴とする請求項
6に記載のネットワークシステムのアドレス決定方法。
7. The new node tentatively determines, as a first candidate, a self-holding network address that is not included in the holding network address included in the address request response message received within the upper limit of the waiting time when the distribution method is determined. The address determination method for a network system according to claim 6, wherein the address is determined.
【請求項8】 アドレスサーバは、分散方式で稼働して
いるネットワークに参加したときは、サーバ通知同報メ
ッセージを送信し、 前記サーバ通知同報メッセージを受信した既存ノード
は、保持している自己のメディアアドレスとネットワー
クアドレスをデータとするアドレス要求メッセージをサ
ーバ宛てに送り、サーバ方式として振舞うことを特徴と
する請求項2〜7のいずれかに記載のネットワークシス
テムのアドレス決定方法。
8. The address server sends a server notification broadcast message when participating in a network operating in a distributed mode, and an existing node receiving the server notification broadcast message retains its own node. 8. An address determining method for a network system according to claim 2, wherein an address request message having the media address and the network address as the data is sent to the server to act as a server system.
【請求項9】 各ノードは、プラグアンドプレー時、ア
ドレス要求メッセージの送信とアドレス要求応答メッセ
ージの受信のみ可能な強制サーバ方式にて稼動すること
を特徴とする請求項1〜8のいずれかに記載のネットワ
ークシステムのアドレス決定方法。
9. The node according to claim 1, wherein each node operates in a forced server system capable of only transmitting an address request message and receiving an address request response message during plug and play. A method for determining the address of the described network system.
【請求項10】 新規にネットワークに参加するノード
は、アドレス要求メッセージの送信からアドレス要求応
答メッセージ受信まで待ち受け時間の上限を、サブネッ
ト内最大保証ノード数が全て参加している時の最大応答
時間とし、この時間を超えて応答のない場合、各ノード
が強制サーバ方式で稼動している時には、以後、エラー
停止とすることを特徴とする請求項9に記載のネットワ
ークシステムのアドレス決定方法。
10. A node newly joining the network sets the upper limit of the waiting time from the transmission of the address request message to the reception of the address request response message as the maximum response time when all the maximum guaranteed nodes in the subnet are participating. 10. The method for determining an address of a network system according to claim 9, wherein when there is no response after this time, when each node is operating by the forced server method, an error stop is performed thereafter.
【請求項11】 アドレスサーバから付与されるネット
ワークアドレスを受け入れるサーバ方式と、アドレスサ
ーバが存在しないときに自律的に同一ネットワークに参
加している他のノードと識別できる自己のネットワーク
アドレスを決定する分散方式との両方式のアドレス取得
機能を搭載し、 ネットワーク参加時に、アドレス要求メッセージを同報
し、所定時間内の応答内容と応答有無により以後のアド
レス取得方式を前記サーバ方式と分散方式との2者択一
に自律的に決定し、前記応答内容と応答有無よりアドレ
ス決定又はアドレス決定情報を得る機能を備えたネット
ワーク端末。
11. A server method for accepting a network address given from an address server, and a distribution for determining its own network address that can be distinguished from other nodes autonomously participating in the same network when the address server does not exist. It is equipped with an address acquisition function of both the system and the system, broadcasts an address request message at the time of network participation, and depending on the response content within a predetermined time and the presence or absence of a response, the subsequent address acquisition methods are the server method and the distributed method. A network terminal having a function of autonomously making an alternative decision and obtaining an address decision or address decision information from the response content and the presence or absence of a response.
【請求項12】 プラグアンドプレー時、アドレス要求
メッセージの送信とアドレス要求応答メッセージの受信
のみ可能な強制サーバ方式にて稼動する設定手段を備え
たことを特徴とする請求項11に記載のネットワーク端
末。
12. The network terminal according to claim 11, further comprising setting means that operates in a forced server system capable of only transmitting an address request message and receiving an address request response message during plug and play. .
JP2002176273A 2001-12-27 2002-06-17 Method for deciding address for network system, and network terminal Pending JP2003258878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002176273A JP2003258878A (en) 2001-12-27 2002-06-17 Method for deciding address for network system, and network terminal

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2001398302 2001-12-27
JP2001-398302 2001-12-27
JP2002176273A JP2003258878A (en) 2001-12-27 2002-06-17 Method for deciding address for network system, and network terminal

Publications (1)

Publication Number Publication Date
JP2003258878A true JP2003258878A (en) 2003-09-12

Family

ID=28677327

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002176273A Pending JP2003258878A (en) 2001-12-27 2002-06-17 Method for deciding address for network system, and network terminal

Country Status (1)

Country Link
JP (1) JP2003258878A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006086816A (en) * 2004-09-16 2006-03-30 Canon Inc Communication control program and imaging device
JP2007235858A (en) * 2006-03-03 2007-09-13 Toyota Motor Corp Communication system, mobile terminal, and communication method
JP2010171990A (en) * 2010-02-22 2010-08-05 Canon Inc Communication equipment
WO2013165443A1 (en) * 2012-05-03 2013-11-07 Itron, Inc. Authentication using dhcp services in mesh networks
US8755385B2 (en) 2012-05-03 2014-06-17 Itron, Inc. Authentication using DHCP services in mesh networks
US9591525B2 (en) 2012-05-03 2017-03-07 Itron Global Sarl Efficient device handover/migration in mesh networks
CN113746647A (en) * 2020-05-27 2021-12-03 中国联合网络通信集团有限公司 Data transmission method, node, electronic device and readable storage medium

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006086816A (en) * 2004-09-16 2006-03-30 Canon Inc Communication control program and imaging device
US7453823B2 (en) 2004-09-16 2008-11-18 Canon Kabushiki Kaisha Communication apparatus and control method thereof
JP4579629B2 (en) * 2004-09-16 2010-11-10 キヤノン株式会社 Communication device
JP2007235858A (en) * 2006-03-03 2007-09-13 Toyota Motor Corp Communication system, mobile terminal, and communication method
JP4635911B2 (en) * 2006-03-03 2011-02-23 トヨタ自動車株式会社 Communication system, terminal, and communication method
JP2010171990A (en) * 2010-02-22 2010-08-05 Canon Inc Communication equipment
WO2013165443A1 (en) * 2012-05-03 2013-11-07 Itron, Inc. Authentication using dhcp services in mesh networks
US8755385B2 (en) 2012-05-03 2014-06-17 Itron, Inc. Authentication using DHCP services in mesh networks
US9161326B2 (en) 2012-05-03 2015-10-13 Itron, Inc. Authentication using DHCP services in mesh networks
US9591525B2 (en) 2012-05-03 2017-03-07 Itron Global Sarl Efficient device handover/migration in mesh networks
US9894631B2 (en) 2012-05-03 2018-02-13 Itron Global Sarl Authentication using DHCP services in mesh networks
US10567997B2 (en) 2012-05-03 2020-02-18 Itron Global Sarl Efficient device handover/migration in mesh networks
CN113746647A (en) * 2020-05-27 2021-12-03 中国联合网络通信集团有限公司 Data transmission method, node, electronic device and readable storage medium
CN113746647B (en) * 2020-05-27 2023-12-19 中国联合网络通信集团有限公司 Data transmission method, node, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
US8103784B2 (en) Communication device and communication control method using efficient echonet address determination scheme
US7339895B2 (en) Gateway device and control method for communication with IP and IPV6 protocols
CN1839585B (en) Plug and play networking architecture with enhanced scalability and reliability
US20020169886A1 (en) Communication device and communication control device for enabling operation of control protocol for one network on other types of networks
US7869433B2 (en) Home network connection management system using UPnP and VLAN multicast
CN100471148C (en) Apparatus and method for establishing network
JP2000261505A5 (en)
JP2003348116A (en) Address automatic setting system for in-home network
CN112654049B (en) Method, system, node and medium for configuring a wireless communication coverage extension system
JP2008017315A (en) Wireless bridge communication device
CN102143164A (en) Message relaying method, message relaying device and base station
JP2003258878A (en) Method for deciding address for network system, and network terminal
KR20050107070A (en) Method and apparatus for communicating with outer system in link local address system
US7701873B2 (en) Method for the discovery of devices connected to an IP network and device to carry out said method
JP2005033250A (en) Relaying apparatus and port forward setting method
CN111163463A (en) Method, device, equipment and storage medium for accessing wireless equipment to router
JP2007081456A (en) Converter
JP2006129283A (en) Equipment management system and gateway device
US7227859B1 (en) Method for ensuring VLAN integrity for voice over internet protocol telephones
JP2007096539A (en) Conversion apparatus
CN107172229A (en) The collocation method and device of router
CN116018785A (en) Method for operating a network
CN114430391A (en) Method, network system, device and storage medium for creating network domain
JP5691612B2 (en) Communication system, router, switching hub, and program
KR101415978B1 (en) System and method for configurating and managing dhcp server of a subnet in a data transfer apparatus using virtual lan