JP3275957B2 - Automatic IP address generation method - Google Patents

Automatic IP address generation method

Info

Publication number
JP3275957B2
JP3275957B2 JP17300098A JP17300098A JP3275957B2 JP 3275957 B2 JP3275957 B2 JP 3275957B2 JP 17300098 A JP17300098 A JP 17300098A JP 17300098 A JP17300098 A JP 17300098A JP 3275957 B2 JP3275957 B2 JP 3275957B2
Authority
JP
Japan
Prior art keywords
node
address
nodes
ring
network
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
JP17300098A
Other languages
Japanese (ja)
Other versions
JP2000013436A (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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP17300098A priority Critical patent/JP3275957B2/en
Publication of JP2000013436A publication Critical patent/JP2000013436A/en
Application granted granted Critical
Publication of JP3275957B2 publication Critical patent/JP3275957B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、リングネットワー
クを含むネットワークにおけるIPアドレスの自動生成
方法に関し、特に、リングネットワーク上の各ノードに
割り付けられるノードアドレスと、ノード−ノード間の
サブネットワークアドレスとを自動的に生成する方法に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for automatically generating an IP address in a network including a ring network, and more particularly, to a method for storing a node address allocated to each node on a ring network and a sub-network address between nodes. How to automatically generate.

【0002】[0002]

【従来の技術】ネットワーク上に新たな端末装置(ノー
ド)を接続することを予定するネットワークシステムで
は、新規に導入されたノードへのIPアドレスの情報を
生成して割り付けを行うようにする必要がある。例え
ば、特開平9−162887号公報「方法およびネット
ワークシステム」には、新規導入端末装置の電源ONと
同時に行われるBOOTPによりダウンロード要求を行
うことはホスト計算機に受付けられないので、入力装置
から端末IPアドレス、接続先のホストIPアドレス及
びサーバ名称を入力してダウンロード要求を行い、ダウ
ンロード要求を受信したホスト計算機は、アドレス解決
情報生成手段において端末装置とARPによるやりとり
を行い、ARPテーブルに端末IPアドレスと物理アド
レスの組を設定し、該当するサーバプログラムを端末装
置にダウンロードするようにしたシステムが記載されて
いる。このシステムのホスト計算機は、上記動作におい
てARPリプライ後に起動されるセットアップ情報生成
手段において、新規のセットアップ情報(端末IPアド
レス、端末物理アドレス、ホストIPアドレス、サーバ
名称)を格納ファイルに登録するように構成されてい
る。
2. Description of the Related Art In a network system in which a new terminal device (node) is to be connected to a network, it is necessary to generate and assign IP address information to a newly introduced node. is there. For example, Japanese Unexamined Patent Publication No. Hei 9-1628787 entitled "Method and Network System" discloses that a host computer cannot accept a download request by BOOTP performed simultaneously with turning on a newly installed terminal device. The host computer receives the download request by inputting the address, the host IP address of the connection destination, and the server name. The host computer that has received the download request exchanges with the terminal device by ARP in the address resolution information generation means, and the terminal IP address is stored in the ARP table. And a physical address set, and a corresponding server program is downloaded to a terminal device. The host computer of this system registers the new setup information (terminal IP address, terminal physical address, host IP address, server name) in the storage file in the setup information generating means started after the ARP reply in the above operation. It is configured.

【0003】この種のIPアドレスの割り付けでは、ネ
ットワークの規模が大きくなるにしたがいノード数が増
えて割り付け操作が複雑化することから、IPアドレス
の割り付けを自動的に行えるようにすることが重要であ
る。
In this type of IP address assignment, it is important to automatically assign an IP address because the number of nodes increases and the assignment operation becomes complicated as the size of the network increases. is there.

【0004】IPアドレスを自動的に生成する方法とし
て、ネットワーク上の各ノードのノードアドレスとノー
ド−ノード間のサブネットワークアドレスを生成するた
めのアドレス生成ルールを決めておき、このアドレス生
成ルールに従ってノードアドレス及びサブネットワーク
アドレスを自動的に生成する方法が特許第271322
6号「ネットワークにおけるIPアドレス自動生成方
法」に記載されている。
As a method of automatically generating an IP address, an address generation rule for generating a node address of each node on a network and a sub-network address between nodes is determined in advance, and a node is generated according to the address generation rule. Patent No. 271322 for automatically generating addresses and sub-network addresses
No. 6, "Method of Automatically Generating IP Address in Network".

【0005】[0005]

【発明が解決しようとする課題】特許第2713226
号における従来のIPアドレス自動生成方法は、IPア
ドレス決定ルールに基づきリングネットワーク上のIP
アドレスを自動生成して各ノードに割り付ける方法に関
するものであるが、リングネットワークにつながるリン
グネットワーク外のノードを含むノードに対するIPア
ドレスの値の割り付け自動生成を行うことは可能ではな
かった。
SUMMARY OF THE INVENTION Patent No. 2713226
In the conventional method for automatically generating an IP address in the network, the IP address on the ring network is
The present invention relates to a method of automatically generating an address and assigning it to each node. However, it has not been possible to automatically generate an IP address value for a node including a node outside a ring network connected to a ring network.

【0006】(目的)本発明の目的は、リングネットワ
ークを構成するノード及び該ノードにつながるノードを
含めてIPアドレスを自動的に生成するためのIPアド
レス自動生成方法を提供することにある。
(Object) It is an object of the present invention to provide an automatic IP address generation method for automatically generating an IP address including a node constituting a ring network and a node connected to the node.

【0007】[0007]

【課題を解決するための手段】本発明のIPアドレス自
動生成システムは、リング状に接続された複数のノード
と、前記リング上のノードのうち少なくとも1つのノー
ドにリング外のノードが接続されたネットワークにおけ
る各ノードの複数桁でなるIPアドレスとして、ノード
毎のノードアドレスとノード−ノード間のサブネットワ
ークアドレスとを生成するIPアドレス自動生成方法に
おいて、各ノードに予め割り付けられているノードID
に基づいて、前記ノードアドレスは、所定の桁にノード
IDを割り付けることにより生成し、リング状に接続さ
れたノード−ノード間のサブネットワークアドレスは、
前記前記桁にノードIDとネットワーク上のノードの数
との加算値を割り付けることにより生成し、前記リング
上のノード−前記リング上外のノード間のサブネットワ
ークアドレスは、前記桁にノードIDとネットワーク上
のノードの数のm倍(m:2以上の自然数)+1の数と
の加算値からの連番により割り付けることにより生成す
ることを特徴とする。
An automatic IP address generation system according to the present invention comprises a plurality of nodes connected in a ring, and a node outside the ring is connected to at least one of the nodes on the ring. In an IP address automatic generation method for generating a node address for each node and a sub-network address between nodes as a multi-digit IP address of each node in the network, a node ID previously assigned to each node
The node address is generated by assigning a node ID to a predetermined digit, and a sub-network address between nodes connected in a ring shape is
A sub-network address between a node on the ring and a node on and outside the ring is generated by allocating an addition value of a node ID and the number of nodes on a network to the digit. It is characterized by being generated by assigning a serial number from the sum of m times (m: a natural number of 2 or more) +1 and the number of the above nodes.

【0008】また、前記IPアドレスは、4桁の値から
なり上位の1、2桁目はネットワークにより決定される
値を割り付け、下位の3桁目は前記ノードIDに基づく
値を割り付け、下位の4桁目はノードアドレスでは固定
値を割り付け、前記サブネットワークアドレスでは、ノ
ード−ノード間の方向を表す値を割り付けることを特徴
とする。前記サブネットワークアドレスにおける4桁目
の値は、リング上のノードでは時計回りか反時計回りか
により異なる値を割り付け、リング上のノード−前記リ
ング上外のノード間のサブネットワークアドレスではリ
ング上のノード方向か否かにより異なる値を割り付け
る。
The IP address is composed of a four-digit value, and the first and second digits are assigned a value determined by the network, the third digit is assigned a value based on the node ID, The fourth digit is characterized in that a fixed value is assigned for the node address and a value indicating the direction between nodes is assigned for the sub-network address. The value of the fourth digit in the subnetwork address is assigned different values depending on whether the node on the ring is clockwise or counterclockwise, and the subnetwork address between a node on the ring and a node outside the ring is on the ring. Different values are assigned depending on whether the direction is the node direction or not.

【0009】更に、前記連番の順序は、リング上のノー
ドの時計回り又は反時計回りの順又はノードの導入順で
あることを特徴とする。
Further, the order of the serial numbers is clockwise or counterclockwise of the nodes on the ring or the order of introducing the nodes.

【0010】(作用)IPアドレスは、複数桁の値によ
り構成されたアドレスであり、ユーザーが使用する共通
の値を持つ桁以外の所定の桁にノード毎の識別可能な値
が割り付けられる。また、IPアドレスは、ノード毎の
ノードアドレスとノード−ノード間のサブネットワーク
アドレスからなる。各ノードに予め付与されているノー
ドIDを利用することにより、リング状に接続された複
数のノードと、前記リング上のノードのうち少なくとも
1つのノードにリング外のノードが接続されたネットワ
ークにおける全てのノードのIPアドレスを自動的に割
り付けることを可能とする。ノード−ノード間のサブネ
ットワークアドレスの前記所定の桁の値は他のIPアド
レスと重複を回避可能な割り付けルールが必要である。
(Operation) An IP address is an address composed of a plurality of digits, and an identifiable value for each node is assigned to a predetermined digit other than a digit having a common value used by a user. The IP address includes a node address for each node and a subnetwork address between nodes. By using a node ID assigned to each node in advance, a plurality of nodes connected in a ring and all nodes in a network in which at least one of the nodes on the ring is connected to a node outside the ring Automatically assign the IP address of the node. The value of the predetermined digit of the node-to-node sub-network address needs an allocation rule that can avoid duplication with other IP addresses.

【0011】前記桁の値として、ノードアドレスではノ
ードIDを、ノード−ノード間のサブネットワークアド
レスではノードID+ノード数を、前記リング上のノー
ド−前記リング上外のノード間のサブネットワークアド
レスでは、ノードID+ネットワーク上のノードの数の
2倍+1から連番を、それぞれ前記割り付けることによ
り、IPアドレスの割り付けを自動的に誤りなく行う。
[0011] As the digit value, a node ID is a node ID, a node-node subnetwork address is a node ID + the number of nodes, and a subnetwork address between a node on the ring and a node on and outside the ring is: By serially assigning the node ID + twice the number of nodes on the network + 1 sequentially, the IP address is automatically assigned without error.

【0012】[0012]

【発明の実施の形態】(実施の形態の構成)本発明のネ
ットワークにおけるIPアドレス自動生成方法の一実施
の形態について説明する。
BEST MODE FOR CARRYING OUT THE INVENTION (Structure of Embodiment) An embodiment of a method for automatically generating an IP address in a network according to the present invention will be described.

【0013】図1は、本発明を実現するIPアドレス自
動生成システムの一例を示す図である。本IPアドレス
自動生成システムは、キーボードなどの入力装置1と、
プログラム制御により動作するデータ処理装置2と、情
報を記憶する記憶装置3と、IPアドレスの情報をディ
スプレイ装置や印刷装置に出力し、また、各ノードへの
通知し又は設定するようにネットワーク上などに出力す
る出力装置4とを有している。また、データ処理装置2
はアドレス生成部21を備えており、記憶装置3はアド
レス記憶部31を備えている。
FIG. 1 is a diagram showing an example of an automatic IP address generation system for realizing the present invention. The automatic IP address generation system includes an input device 1 such as a keyboard,
A data processing device 2 that operates under program control, a storage device 3 that stores information, and outputs IP address information to a display device or a printing device, and notifies or sets each node on a network or the like. And an output device 4 for outputting the same. Also, the data processing device 2
Has an address generation unit 21, and the storage device 3 has an address storage unit 31.

【0014】本システムの前記各装置はそれぞれ概略つ
ぎのように動作する。
Each device of the present system operates as follows.

【0015】先ず、ネットワークに接続されている既存
の端末装置(ノード)は連続番号のノードIDが付与さ
れており、新規に導入されたノードが生じると、その都
度、当該ノードに次の番号のノードIDが指定され、入
力装置1から当該ノードを含めたシステム内のノード総
数が入力される。記憶部3のアドレス記憶部31には、
ノードの新規導入前の各ノードのノードID、ノードア
ドレス及びサブネットワークアドレスの各アドレスが記
憶されている。アドレス生成部21は、入力装置1から
入力されたノード総数に基づいて記憶装置のアドレス記
憶部31のデータを元に各ノードのノードアドレスとサ
ブネットワークアドレスの所定の桁の数値を以下詳述す
る生成ルールにより算出してアドレス記憶部31の各桁
を書き換える。
First, existing terminal devices (nodes) connected to the network are provided with serial node IDs. Whenever a newly introduced node occurs, the next number of the node is assigned to the node. A node ID is specified, and the total number of nodes in the system including the node is input from the input device 1. In the address storage unit 31 of the storage unit 3,
The node ID, node address, and subnetwork address of each node before the new introduction of the node are stored. The address generation unit 21 uses the data in the address storage unit 31 of the storage device based on the total number of nodes input from the input device 1 to determine the node address of each node and the numerical value of a predetermined digit of the subnetwork address in detail below. Each digit in the address storage unit 31 is rewritten by calculation according to the generation rule.

【0016】このような動作は、ノードの追加毎に行わ
れ、アドレス生成部21で求められた各ノードとノード
アドレス及びサブネットワークアドレスはアドレス記憶
部31に記憶され、常に最新のアドレス情報が保存され
る。
Such an operation is performed every time a node is added. Each node, node address, and subnetwork address obtained by the address generation unit 21 are stored in the address storage unit 31, and the latest address information is always stored. Is done.

【0017】(実施の形態の動作)次に、図1及び図2
を参照して本実施の形態のIPアドレス生成動作につい
て詳細に説明する。
(Operation of Embodiment) Next, FIGS. 1 and 2
The IP address generation operation of the present embodiment will be described in detail with reference to FIG.

【0018】本実施の形態では、ネットワークの基本構
成として、複数のノードがリングネットワークを構成
し、更に、前記複数のノードにはリング外の別のノード
が接続されているネットワーク構成を有している。
In the present embodiment, as a basic configuration of a network, a plurality of nodes constitute a ring network, and the plurality of nodes have a network configuration in which another node outside the ring is connected. I have.

【0019】図2は、本実施の形態にかかるネットワー
クの一構成例を示す図である。このネットワークの例で
は、第1から第4のノード1〜4がリング状に接続さ
れ、更に、リング上の第2及び第4のノード1、4には
それぞれ第5及び第6のノード5、6が接続されて構成
されている。このようなネットワークにおいて、各ノー
ドには連続番号のノードIDが付与されており、この各
ノードに対してIPアドレスを割り付ける。割り付ける
IPアドレスには、各ノードに割り付けられるノードア
ドレスと、ノード−ノード間の方向毎のサブネットワー
クアドレスとがある。
FIG. 2 is a diagram showing a configuration example of the network according to the present embodiment. In the example of this network, first to fourth nodes 1 to 4 are connected in a ring shape, and second and fourth nodes 1 and 4 on the ring are connected to fifth and sixth nodes 5, 5 respectively. 6 are connected. In such a network, each node is given a node ID of a serial number, and an IP address is assigned to each node. The assigned IP address includes a node address assigned to each node and a subnetwork address for each direction between the nodes.

【0020】図3は、アドレス生成ルールを示す図であ
る。本実施の形態では、IPアドレスとサブネットワー
クアドレスとを、図3に示すアドレス生成ルールに従っ
て自動的に決定する。
FIG. 3 is a diagram showing an address generation rule. In the present embodiment, the IP address and the subnetwork address are automatically determined according to the address generation rule shown in FIG.

【0021】ネットワーク上の全てのノードにはそれぞ
れノードIDという番号が予め割り付けられる。図2に
おいては、第1から第6のノードにはそれぞれ、
“1”、“2”、“3”、...“6”のノードIDが
割り付けられている。ここで、リング上の各ノードにお
いて、時計回り側のラインをライン1側、反時計回り側
のラインをライン2側と呼ぶことにする。前記サブネッ
トワークアドレスは、ライン1側の第1のサブネットワ
ークアドレスとライン2側の第2のサブネットワークア
ドレスとから成る。
Each node on the network is assigned a number called a node ID in advance. In FIG. 2, the first to sixth nodes respectively include:
"1", "2", "3",. . . The node ID “6” is assigned. Here, in each node on the ring, the clockwise line is referred to as line 1 and the counterclockwise line is referred to as line 2. The sub-network address comprises a first sub-network address on line 1 and a second sub-network address on line 2.

【0022】本例では、IPアドレスは、図3に示すよ
うに各々4桁で表され、上位の1、2桁目をAとBで示
し、下位の3、4桁目をCとDで示している。
In this example, the IP address is represented by four digits as shown in FIG. 3, the upper first and second digits are indicated by A and B, and the lower third and fourth digits are indicated by C and D. Is shown.

【0023】IPアドレスの上位1、2桁目(図3のA
とB)は、ネットワークにより決定される上位アドレス
であり、これはユーザにより任意に決定される。本実施
の形態では図2に示すように“130.1.X.X”と
いう形で上位アドレスがネットワークに割り付けられて
いる。
The first and second digits of the IP address (A in FIG. 3)
And B) are upper addresses determined by the network, which are arbitrarily determined by the user. In the present embodiment, as shown in FIG. 2, an upper address is assigned to the network in the form of “130.1.XX”.

【0024】次に、IPアドレスの下位3、4桁目(図
3のCとD)は、ノードアドレスの場合は、Cをノード
IDとし、Dを任意の値、例えば“1”とすることでノ
ードアドレスを決定する。また、ノード−ノード間のサ
ブネットワークアドレスの場合は、Cをライン1側では
ノードID+n(nはネットワーク上の全てのノードの
数)とし、ライン2側では反対時計回りの隣接ノードの
ライン1側と同じとする。Dとしてはライン1側を、例
えば“1”とし、ライン2側を“2”とする。リング上
のノードにつながる別のノードとの間のサブネットワー
クアドレス(図3のLS)の場合は、リング上のノード
は、Cは2×n+1から連番とし、Dを、例えば“1”
とする。リング上のノードにつながる別のノードの場合
は、Dを“2”とする。
Next, in the third and fourth digits (C and D in FIG. 3) of the IP address, in the case of a node address, C is a node ID and D is an arbitrary value, for example, "1". Determines the node address. In the case of a sub-network address between nodes, C is the node ID + n (n is the number of all nodes on the network) on the line 1 side, and C is the counterclockwise adjacent node on the line 1 side on the line 2 side. And the same as As D, the line 1 side is, for example, “1”, and the line 2 side is “2”. In the case of a subnetwork address (LS in FIG. 3) with another node connected to a node on the ring, the nodes on the ring have C as a serial number starting from 2 × n + 1 and set D to, for example, “1”.
And In the case of another node connected to a node on the ring, D is set to “2”.

【0025】図2において、第1のノード1に着目する
と、第1のノード1のノードIDが“1”であるため、
第1のノード1のノードアドレスは“130.1.1.
1”となる。第1のノード1のサブネットワークアドレ
スに関しては、ライン1側はCの値が、ノードIDが
“1”でネットワーク上のノードの数nが“6”である
ので“7”となり、ライン1側の第1のサブネットワー
クアドレスは“130.1.7.1”となる。同様に、
例えば第4のノード4のライン1側の第1のサブネット
ワークアドレスは場合は、Cは6+4であるから“13
0.1.10.1”となる。
In FIG. 2, focusing on the first node 1, since the node ID of the first node 1 is "1",
The node address of the first node 1 is “130.1.1.
As for the subnetwork address of the first node 1, the value of C on the line 1 side is "7" because the node ID is "1" and the number n of nodes on the network is "6". And the first sub-network address on the line 1 side is “130.1.7.1”.
For example, in the case of the first sub-network address on the line 1 side of the fourth node 4, since C is 6 + 4, "13"
0.1.10.1 ".

【0026】また、第1のノード1におけるライン2側
の第2のサブネットワークアドレスは、反対時計回りの
隣接ノード4のライン1側の第1のサブネットワークア
ドレスが“130.1.10.1”となっていることか
ら“130.1.8.2”となる。
The second sub-network address on the line 2 side of the first node 1 is “130.1.10.1” when the first sub-network address on the line 1 side of the counterclockwise adjacent node 4 is “130.1.10.1”. ”, It becomes“ 130.1.8.2 ”.

【0027】次に、ノード2に着目すると、ノード2は
ノード5とつながっており、ノード2−5間のサブネッ
トワークアドレスは、ノード2側のサブネットワークア
ドレスのCは、ノードの数6×2+1となり、“13
0.1.13.1”となる。ノード5側はノード2側の
アドレスのDを“2”として、“130.1.13.
2”となる。同様に、第4のノード4のサブネットワー
クアドレスはCが連番の14となり、“130.1.1
4.1”となる。ノード4につながるノード6サブネッ
トワークアドレスは、Dが2となり“130.1.1
4.2”となる。
Next, focusing on the node 2, the node 2 is connected to the node 5, and the sub-network address between the nodes 2 and 5 is the sub-network address C of the node 2 by the number of nodes 6 × 2 + 1. "13
On the node 5 side, the address D on the node 2 side is set to “2” and “130.13.
Similarly, the subnetwork address of the fourth node 4 is C, which is a serial number 14, and “130.1.1”.
In the subnetwork address of the node 6 connected to the node 4, D becomes 2 and “130.1.1” is obtained.
4.2 ".

【0028】図4、5は、図2に示すIPアドレスが記
憶装置のアドレス記憶部31に記憶されている状態にお
いて、新たなノードが新規に導入された場合の各ノード
のIPアドレスの生成及びアドレス記憶部への書き換え
内容を示す図である。
FIGS. 4 and 5 show the generation of the IP address of each node when a new node is newly introduced while the IP address shown in FIG. 2 is stored in the address storage unit 31 of the storage device. FIG. 6 is a diagram illustrating the contents of rewriting to an address storage unit.

【0029】図4は、リング上の既存のノード3に新た
にリング外のノード7が導入された場合のIPアドレス
の変更例を示している。既存のノード2−5、4−6の
サブネットワークアドレスの連番の順序を変更すること
なく新規ノード7を含む各ノードのIPアドレスを割り
付けている。新規ノード7のノードアドレスは130.
1.7.1となり、ノード3−7間のサブネットワーク
アドレスのCは17(7×2+3)となる。
FIG. 4 shows an example of changing the IP address when a node 7 outside the ring is newly introduced into the existing node 3 on the ring. The IP addresses of the nodes including the new node 7 are allocated without changing the order of the sequential numbers of the subnetwork addresses of the existing nodes 2-5 and 4-6. The node address of the new node 7 is 130.
1.7.1, and the C of the subnetwork address between the nodes 3-7 is 17 (7 × 2 + 3).

【0030】このように連番の順序を変更しない場合に
はリング上のノード1、2、3、4のサブネットワーク
アドレスは、時計回り及び反時計回り共にCは元の値に
+1するだけでよく、また、ノード2−5間、ノード4
−6間のサブネットワークアドレスはCをもとの値に+
2するだけでよい。
If the order of the serial numbers is not changed in this way, the subnetwork addresses of nodes 1, 2, 3, and 4 on the ring can be obtained by simply increasing C by +1 to the original value both clockwise and counterclockwise. Well, between nodes 2-5, node 4
The subnetwork address between −6 is obtained by adding C to the original value +
You only need to do 2.

【0031】図5は、図2に示す構成からリング上に新
規ノード7を導入し、続いて該ノード7に新規ノード8
を接続した場合のアドレス生成例を示すものである。ノ
ード7、8のノードIDをそれぞれ7、8とすると、各
々のノードアドレスはCがそれぞれ7、8となり、ノー
ド2−5間、4−6間及び7−8間のサブネットワーク
アドレスのCは17から連番となる。本例では連番の順
序をリング上の時計回り方向としている。ノード7−8
間のサブネットワークアドレスのCは18となり、既存
ノードのノードアドレスのCの変更はなくい。
FIG. 5 shows that a new node 7 is introduced on the ring from the configuration shown in FIG.
4 shows an example of address generation in the case where is connected. Assuming that the node IDs of the nodes 7 and 8 are 7 and 8, respectively, the node addresses C are 7 and 8, respectively, and the subnetwork addresses C between the nodes 2-5, 4-6 and 7-8 are C It becomes a serial number from 17. In this example, the order of the serial numbers is clockwise on the ring. Node 7-8
The C of the subnetwork address in between becomes 18, and there is no change in the C of the node address of the existing node.

【0032】以上の実施の形態では、IPアドレス生成
ルールにおいて、リング上のノードにつながる別のノー
ドとの間のサブネットワークアドレス(LS)の場合、
サブネットワークアドレスのCをノード数nの2倍とし
たが、これは2以上の自然数m倍でよいことは明らかで
ある。また、本発明は、ネットワーク構成としてリング
上のノードに接続されたリング上のノード以外のノード
に更に他のノードが接続されるようなシステムにも適用
することが可能である。また、ノードのIPアドレスの
生成はノードの追加時のみでなく削除時にも行うことが
可能である。
In the above embodiment, in the IP address generation rule, in the case of a subnetwork address (LS) between another node connected to a node on the ring,
Although C of the subnetwork address is twice the number n of nodes, it is obvious that this may be a natural number m times 2 or more. Further, the present invention can be applied to a system in which another node is further connected to a node other than the node on the ring connected to the node on the ring as a network configuration. Further, the generation of the IP address of the node can be performed not only when the node is added but also when the node is deleted.

【0033】[0033]

【発明の効果】本発明によれば、リング上のノードと該
ノードにつながるノードを含む各ノードに予め割り付け
られているノードIDに基づいて、容易にかつ自動的に
IPアドレスを誤りなく決定することができる。したが
って、ユーザがIPアドレスを1つ1つ決定しなくて
も、機械的にIPアドレスを割り付けることが可能であ
る。
According to the present invention, an IP address can be easily and automatically determined without error based on a node ID assigned to each node including a node on the ring and a node connected to the node. be able to. Therefore, it is possible to mechanically assign the IP address without the user having to determine the IP address one by one.

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

【図1】本発明の一実施の形態にかかる構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing a configuration according to an embodiment of the present invention.

【図2】本実施の形態のネットワークの構成及び生成さ
れたIPアドレスの例を示す図である。
FIG. 2 is a diagram illustrating an example of a network configuration and a generated IP address according to the embodiment;

【図3】アドレス生成ルールを示す図である。FIG. 3 is a diagram showing an address generation rule.

【図4】ノードの新規導入により生成されたIPアドレ
スの例を示す図である。
FIG. 4 is a diagram illustrating an example of an IP address generated by newly introducing a node;

【図5】異なるノードの新規導入により生成されたIP
アドレスの例を示す図である。
FIG. 5: IP generated by new introduction of a different node
FIG. 4 is a diagram illustrating an example of an address.

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

1、2、3、4、5、6、7、8 ノード 10 入力装置 20 データ処理装置 21 アドレス生成部 30 記憶装置 31 アドレス記憶部 40 出力装置 1, 2, 3, 4, 5, 6, 7, 8 node 10 input device 20 data processing device 21 address generation unit 30 storage device 31 address storage unit 40 output device

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04L 12/56 H04L 12/28 H04L 12/40 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) H04L 12/56 H04L 12/28 H04L 12/40

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 リング状に接続された複数のノードと、
前記リング上のノードのうち少なくとも1つのノードに
リング外のノードが接続されたネットワークにおける各
ノードの複数桁でなるIPアドレスとして、ノード毎の
ノードアドレスとノード−ノード間のサブネットワーク
アドレスとを生成するIPアドレス自動生成方法におい
て、 各ノードに予め割り付けられているノードIDに基づい
て、 前記ノードアドレスは、所定の桁にノードIDを割り付
けることにより生成し、 リング状に接続されたノード−ノード間のサブネットワ
ークアドレスは、前記前記桁にノードIDとネットワー
ク上のノードの数との加算値を割り付けることにより生
成し、 前記リング上のノード−前記リング上外のノード間のサ
ブネットワークアドレスは、前記桁にノードIDとネッ
トワーク上のノードの数のm倍(m:2以上の自然数)
+1の数との加算値からの連番により割り付けることに
より生成することを特徴とするIPアドレス自動生成シ
ステム
1. A plurality of nodes connected in a ring,
A node address for each node and a sub-network address between nodes are generated as an IP address having a plurality of digits of each node in a network in which a node outside the ring is connected to at least one of the nodes on the ring. In the automatic IP address generation method, the node address is generated by assigning a node ID to a predetermined digit based on a node ID assigned to each node in advance, so that a node between nodes connected in a ring shape Is generated by allocating an addition value of a node ID and the number of nodes on a network to the digit, and a subnetwork address between a node on the ring and a node on and outside the ring is Digit is the node ID and m times the number of nodes on the network (M: natural number of 2 or more)
An automatic IP address generation system, wherein the IP address is generated by assigning a serial number from a value added to the number +1.
【請求項2】 IPアドレスは、4桁の値からなり上位
の1、2桁目はネットワークにより決定される値を割り
付け、下位の3桁目は前記ノードIDに基づく値を割り
付け、位の4桁目はノードアドレスでは固定値を割り付
け、前記サブネットワークアドレスでは、ノード−ノー
ド間の方向を表す値を割り付けることを特徴とする請求
項1記載のIPアドレス自動生成システム。
2. The IP address is made up of a four-digit value, the upper first and second digits are assigned a value determined by the network, the lower third digit is assigned a value based on the node ID, and the fourth digit is assigned. 2. The IP address automatic generation system according to claim 1, wherein a fixed value is assigned to a digit in the node address, and a value indicating a direction between nodes is assigned to the subnetwork address.
【請求項3】 前記サブネットワークアドレスにおける
4桁目の値は、リング上のノードでは時計回りか反時計
回りかにより異なる値を割り付け、リング上のノード−
前記リング上外のノード間のサブネットワークアドレス
ではリング上のノード方向か否かにより異なる値を割り
付けることを特徴とする請求項2記載のIPアドレス自
動生成システム。
3. The value of the fourth digit in the sub-network address is assigned differently depending on whether the node on the ring is clockwise or counterclockwise.
3. The automatic IP address generation system according to claim 2, wherein different values are assigned to the subnetwork addresses between the nodes on and outside the ring depending on whether or not the direction is toward the node on the ring.
【請求項4】 リング上のノード−前記リング上外のノ
ード間のサブネットワークアドレスの前記加算値からの
連番の順序は、リング上のノードの時計回り又は反時計
回りの順であることを特徴とする請求項1、2又は3記
載のIPアドレス自動生成システム。
4. The order of serial numbers from the added value of the subnetwork addresses between the nodes on the ring and the nodes on and outside the ring is clockwise or counterclockwise of the nodes on the ring. The IP address automatic generation system according to claim 1, 2 or 3, wherein:
【請求項5】 リング上のノード−前記リング上外のノ
ード間のサブネットワークアドレスの前記加算値からの
連番の順序はノードの導入順であることを特徴とする請
求項1、2又は3記載のIPアドレス自動生成システ
ム。
5. The sequence of serial numbers from the added value of the subnetwork address between a node on a ring and nodes on and outside the ring is the order of introduction of the nodes. An automatic IP address generation system as described above.
JP17300098A 1998-06-19 1998-06-19 Automatic IP address generation method Expired - Fee Related JP3275957B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17300098A JP3275957B2 (en) 1998-06-19 1998-06-19 Automatic IP address generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17300098A JP3275957B2 (en) 1998-06-19 1998-06-19 Automatic IP address generation method

Publications (2)

Publication Number Publication Date
JP2000013436A JP2000013436A (en) 2000-01-14
JP3275957B2 true JP3275957B2 (en) 2002-04-22

Family

ID=15952338

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17300098A Expired - Fee Related JP3275957B2 (en) 1998-06-19 1998-06-19 Automatic IP address generation method

Country Status (1)

Country Link
JP (1) JP3275957B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4727062B2 (en) * 2001-05-01 2011-07-20 三菱電機株式会社 Elevator communication control device
US20060259672A1 (en) * 2005-01-26 2006-11-16 Nokia Corporation Method, apparatus and computer program product providing device identification via configurable ring/multi-drop bus architecture
KR102227841B1 (en) * 2014-07-07 2021-03-15 현대모비스 주식회사 Sensor module for a vehicle and method for assigning sensor id using the system
WO2019167175A1 (en) * 2018-02-28 2019-09-06 三菱電機株式会社 Communication system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
R.Hinden and S.Deering,RFC 1884

Also Published As

Publication number Publication date
JP2000013436A (en) 2000-01-14

Similar Documents

Publication Publication Date Title
JP4671306B2 (en) Broadcast messaging in peer-to-peer overlay networks
JP2713226B2 (en) Automatic IP address generation method in network
US5815664A (en) Address reporting device and method for detecting authorized and unauthorized addresses in a network environment
US7349392B2 (en) Assigning IP addresses in an internet data center
CN109254729B (en) Object storage method and device
US7860980B2 (en) Information processing device, server, communication system, address decision method, address modification method, and program
CN109194525B (en) Network node configuration method and management node
JP2008099251A (en) Network device
CN110519406B (en) Virtual address allocation method and device, CTDB cluster and storage medium
JP3275957B2 (en) Automatic IP address generation method
US6621820B1 (en) Method and system for updating routes in a route table on a client computer
JP2000252986A (en) Communication apparatus and communication method
US20090003244A1 (en) Information communication system, information communication method, node device included in information communication system and recording medium recording information process program
CN116566830A (en) Network configuration method, device, system, edge equipment and storage medium
JP3305279B2 (en) IP address dynamic allocation device
JP3965774B2 (en) Network system
CN111225072B (en) Dynamic addressing method and system based on block chain
JP2005277623A (en) Method and device for managing address for ip telephone address assignment server
CN112383594B (en) Cross-host communication method and device based on hyper-directory Fabric network
EP1500251B1 (en) Method for address conversion in heterogeneous networks
CN113938467A (en) Machine node address allocation and state confirmation method and related equipment
CN117221288A (en) Method and device for processing signaling, nonvolatile storage medium and electronic equipment
CN117201456A (en) Local area network cluster address self-discovery algorithm and device based on distribution
CN115242749A (en) IPv6 address planning method, device, medium and equipment
JP5432346B1 (en) Address information management apparatus and program

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees