JPH08237285A - Automatic setting method for inter-net protocol address - Google Patents

Automatic setting method for inter-net protocol address

Info

Publication number
JPH08237285A
JPH08237285A JP7036718A JP3671895A JPH08237285A JP H08237285 A JPH08237285 A JP H08237285A JP 7036718 A JP7036718 A JP 7036718A JP 3671895 A JP3671895 A JP 3671895A JP H08237285 A JPH08237285 A JP H08237285A
Authority
JP
Japan
Prior art keywords
address
terminals
terminal
host
packet
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
JP7036718A
Other languages
Japanese (ja)
Inventor
Takayuki Hasegawa
隆之 長谷川
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP7036718A priority Critical patent/JPH08237285A/en
Publication of JPH08237285A publication Critical patent/JPH08237285A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To reduce the number of times of the transmission of a packet attached with a multiple address when automatically setting of the inter-net protocol address (hereafter abbreviated to IP address) of plural terminals located in a LAN system. CONSTITUTION: This system is constituted of the terminals 1 to N and a host 10, and when the host 10 transmits an ARP request packet 30 attached with the multiple address once, each of the terminals 1 to N having received this ARP request packet 30 transmits an ARP answer packet to the host 10. The host 10 having received the ARP answer packet from the terminals 1 to N determines the IP addresses of the terminals 1 to N on the basis of the contents of these ARP answer packets, and informs each terminal 1 to N of the IP address determined separately.

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 setting an internet protocol address (hereinafter abbreviated as IP address) for each of these connected terminals when a plurality of terminals are connected to a network. is there.

【0002】[0002]

【従来の技術】複数の端末を接続するローカルエリアネ
ットワーク(以下、LANと略する)システムにおい
て、各々の端末が有するIPアドレスを設定する方法と
しては、これら各々の端末に対しマニュアルで直接設定
を行うのが一般的であったが、この方法ではLANシス
テムに接続する端末が増加するに伴い、IPアドレスを
重複させる等の人的ミスが発生しやすくなっていた。そ
のため、自動的にIPアドレスを設定する方法として、
後述するRARPによるIPアドレス自動設定方法が用
いられてきた。以下に、このRARPによって端末に対
しIPアドレスを自動設定する方法を説明する。
2. Description of the Related Art In a local area network (hereinafter abbreviated as LAN) system connecting a plurality of terminals, a method of setting an IP address of each terminal is to manually set each terminal manually. Generally, this method is used, but as the number of terminals connected to the LAN system is increased, human error such as duplication of IP addresses is likely to occur. Therefore, as a method to automatically set the IP address,
The IP address automatic setting method by RARP, which will be described later, has been used. A method of automatically setting an IP address for a terminal by this RARP will be described below.

【0003】尚、説明の前にLANシステム内の端末間
通信に使用するデータフォーマットに付いての説明を行
う。図10はLANシステムで一般的に使用される、例
えばイーサネットフレームのフレーム構成図であり、1
00はレイヤ2(データリンク層)フレームでフレーム
ヘッダ110とレイヤ3(ネットワーク層)データ部1
20から構成される。フレームヘッダ110は、宛先物
理アドレス111、送信元物理アドレス112、及びレ
イヤ3データ部120のデータの識別をするETYPE
113より構成される。またレイヤ3データ部120
は、このレイヤ3データがパケットの時(本明細書で使
用するパケットの種類は、後述するARPパケット、R
ARPパケット、及びUDPパケットである)のパケッ
トヘッダ121、及びパケットデータ122より構成さ
れる。また、図11はパケットヘッダ121の内容に相
当し、本明細書で使用するARPパケット、又はRAR
Pパケットのパケットヘッダ121の構成図である。
Before the explanation, a data format used for communication between terminals in the LAN system will be explained. FIG. 10 is a frame structure diagram of, for example, an Ethernet frame generally used in a LAN system.
00 is a layer 2 (data link layer) frame, which is a frame header 110 and a layer 3 (network layer) data section 1
It consists of 20. The frame header 110 is an ETYPE that identifies the destination physical address 111, the source physical address 112, and the data of the layer 3 data section 120.
It is composed of 113. Also, the layer 3 data section 120
When this layer 3 data is a packet (the types of packets used in this specification are ARP packet, R
It is composed of a packet header 121 (which is an ARP packet and a UDP packet) and packet data 122. Further, FIG. 11 corresponds to the contents of the packet header 121, and is an ARP packet or RAR used in this specification.
It is a block diagram of the packet header 121 of P packet.

【0004】また、本明細書で使用する語句の意味をこ
こで説明し、以下これら語句に対する説明を省略する。 ・TCP/IPとは、Transmission Control Protocol
/Internet Protocolの略で、異機種のコンピュータの
接続を実現するプロトコルである。 ・IPアドレスとは、4バイトで構成され、ネットワー
ク内の端末、又はホストを識別するためのアドレスであ
る。また、このIPアドレスはAA.BB.CC.DD
という形式で表され、この内、AA.BB.CCはネッ
トワークの識別をおこなうネットワークアドレス、ま
た、DDは同一ネットワーク内の端末、又はホストの識
別を行うホストアドレスである。 ・物理アドレスとは、6バイトで構成され、端末、又は
端末を管理するホストの固有のアドレスである。 ・ブロードキャストアドレスとは、ネットワークに接続
している端末、又はホストが送信したレイヤ2フレーム
を、同一ネットワークに接続している他の全ての端末、
又はホストに同報するために使用するアドレスである。
具体的には、宛先物理アドレス111に0xFFFFF
FFFFFFF(物理アドレスは16進数で表現される
が、簡略のため以後0xを省略する)と書き込んだアド
レスのことを言う。尚、簡略のために以後このアドレス
を、同報アドレスと記載することとする。 ・ARPとは、Address Resolution Protocolの略で、
ある端末の物理アドレスを、その端末が有するIPアド
レスから知るため使用するネットワーク層のプロトコル
であり、このプロトコルで使用するパケットをARPパ
ケットという。 ・RARPとは、Reverse ARPの略で、ある端末のI
Pアドレスを、その端末が有する物理アドレスから知る
ために使用するネットワーク層のプロトコルであり、こ
のプロトコルで使用するパケットをRARPパケットと
いう。尚、このRARPを使用する場合、IPアドレス
を通知するRARPサーバ(本明細書ではホストに相当
する)が必要である。 ・UDPとは、User Datagram Protocolの略で、コネク
ションレス型のレイヤ4(トランスポート層)のプロト
コルであり、本明細書ではホストが端末にIPアドレス
を通知するときに、このUDPパケットを用いて通知し
ている。 ・インターネットとは、TCP/IP通信によって形成
する全世界的なネットワークである。 ・JPNICとは、Japan Network Infomation Center
の略で、日本においてインターネットに加入するため
に、IPアドレス内の正式なネットワークアドレスを割
り当てる機関のことである。このJPNICより割り当
てられたネットワークアドレスにより、インターネット
内の全ての端末との通信が可能となる。
Further, the meanings of the terms used in this specification will be described here, and the description of these terms will be omitted below. -TCP / IP is Transmission Control Protocol
/ Internet Protocol, which is a protocol for connecting different types of computers. The IP address consists of 4 bytes and is an address for identifying the terminal or host in the network. This IP address is AA. BB. CC. DD
The format is AA. BB. CC is a network address for identifying a network, and DD is a host address for identifying a terminal or a host in the same network. The physical address is composed of 6 bytes and is a unique address of the terminal or the host that manages the terminal. -A broadcast address is a terminal connected to a network, or a layer 2 frame transmitted by a host to all other terminals connected to the same network,
Or the address used to broadcast to the host.
Specifically, 0xFFFFFF is set to the destination physical address 111.
The address written as FFFFFFF (physical address is represented by hexadecimal number, but 0x is omitted for simplification). For simplification, this address will be referred to as a broadcast address hereinafter.・ ARP stands for Address Resolution Protocol,
This is a network layer protocol used to learn the physical address of a certain terminal from the IP address of the terminal, and the packet used in this protocol is called an ARP packet.・ RARP is an abbreviation for Reverse ARP, which means I
This is a network layer protocol used to learn the P address from the physical address of the terminal, and the packet used in this protocol is called RARP packet. When using this RARP, an RARP server (corresponding to a host in this specification) that notifies the IP address is required. -UDP is an abbreviation for User Datagram Protocol, which is a connectionless layer 4 (transport layer) protocol, and in this specification, when a host notifies a terminal of an IP address, this UDP packet is used. Notifying. -The Internet is a worldwide network formed by TCP / IP communication.・ What is JPNIC? Japan Network Information Center
Is an organization that assigns a formal network address within an IP address for joining the Internet in Japan. The network address assigned by this JPNIC enables communication with all terminals on the Internet.

【0005】図12はTCP/IPにより接続される一
般的なLANシステムの構成図であり、このLANシス
テムが使用するネットワークアドレスを、10.0.0
とする。図において、1〜NはこのLANシステムに接
続されている端末、10はこのLANシステム全体の制
御を行うホスト、20は端末1が送信するRARP要求
パケットである。また、図12におけるホスト10のI
Pアドレスは10.0.0.10、物理アドレスは08
0070210001と設定されている。また、端末1
の物理アドレスは080070000001と設定され
ており、以降、端末2の物理アドレスは0800700
00002、・・・端末Nの物理アドレスは08007
000000Nと設定されている。尚、端末1〜NのI
Pアドレスについては未設定である。また、図13は実
施例1におけるホスト10と端末1の動作の流れを説明
する説明図である。
FIG. 12 is a block diagram of a general LAN system connected by TCP / IP. The network address used by this LAN system is 10.0.0.
And In the figure, 1 to N are terminals connected to this LAN system, 10 is a host that controls the entire LAN system, and 20 is a RARP request packet transmitted by the terminal 1. In addition, I of the host 10 in FIG.
P address is 10.0.0.10, physical address is 08
It is set to 0070210001. Also, terminal 1
Is set to 080070000001, and thereafter, the physical address of the terminal 2 is 0800700.
0000 2, ... Physical address of terminal N is 08007
It is set to 000000N. In addition, I of terminal 1-N
The P address has not been set. Further, FIG. 13 is an explanatory diagram for explaining the operation flow of the host 10 and the terminal 1 in the first embodiment.

【0006】次に、端末1がホスト10に対してRAR
PによるIPアドレスの設定を要求し、これによりホス
ト10が端末1に対してIPアドレスを設定するまでの
動作を図について説明する。ステップ200では、ホス
ト10からIPアドレスが割り当てられていない端末1
が、RARP要求パケット20を送出する。このRAR
P要求パケット20のヘッダの内容を図14に示す。こ
の端末1はホスト10のIPアドレス、及び物理アドレ
スを認識していないため、同報アドレスのついたレイヤ
2フレーム上に、図14に示すようなヘッダをつけたR
ARP要求パケット20を送出する。ステップ201に
おいて、端末1が送出したRARP要求パケット20を
受信したホスト10は、ステップ202において、ホス
ト10が受信したRARP要求パケット20内の端末1
の物理アドレスと、ホスト10が既に登録しているか検
索し、登録していない場合は、新たにこの端末1の物理
アドレスの登録を行うとともに、この登録した端末1の
物理アドレスに対応させるためのIPアドレスを検索す
る。次にホスト10は、ステップ203において、ステ
ップ202で検索したIPアドレスを1つ選択し、端末
1のIPアドレスとして決定する。次にホスト10は、
ステップ204において、図15に示すように決定した
端末1のIPアドレスを宛先IPアドレスに設定したR
ARP応答パケットを端末1に対して送出する。ステッ
プ205において、ホスト10が送出したRARP応答
パケットを受信した端末1は、ステップ206におい
て、このRARP応答パケットにより通知されたIPア
ドレスを設定するとともに、ホスト10の物理アドレス
を登録し、以後この設定したIPアドレスにより、他の
端末2〜N、ホスト10、及びその他のネットワーク
(図示せず)との通信を行う。
Next, the terminal 1 sends the RAR to the host 10.
The operation of requesting the setting of the IP address by P and thereby causing the host 10 to set the IP address to the terminal 1 will be described with reference to the drawings. In step 200, the terminal 1 to which an IP address is not assigned by the host 10
Sends the RARP request packet 20. This RAR
FIG. 14 shows the contents of the header of the P request packet 20. Since this terminal 1 does not recognize the IP address and physical address of the host 10, the header shown in FIG. 14 is attached to the layer 2 frame with the broadcast address.
The ARP request packet 20 is transmitted. The host 10 having received the RARP request packet 20 sent by the terminal 1 in step 201, the terminal 1 in the RARP request packet 20 received by the host 10 in step 202.
Of the physical address of the terminal 1 is searched, and if the host 10 has not already registered, the physical address of the terminal 1 is newly registered, and the physical address of the registered terminal 1 is associated. Search for an IP address. Next, in step 203, the host 10 selects one of the IP addresses searched in step 202 and determines it as the IP address of the terminal 1. Next, the host 10
In step 204, the IP address of the terminal 1 determined as shown in FIG. 15 is set as the destination IP address R
The ARP response packet is sent to the terminal 1. The terminal 1, which receives the RARP response packet sent by the host 10 in step 205, sets the IP address notified by this RARP response packet in step 206, registers the physical address of the host 10, and thereafter sets this. The communication with the other terminals 2 to N, the host 10, and other networks (not shown) is performed using the IP address.

【0007】また、端末2〜Nに対するIPアドレスの
設定も上述の動作と同様に行われる。つまり、端末1〜
Nの全てのIPアドレスを設定するためには、合計N個
の同報アドレスのついたRARP要求パケットが送出さ
れることになる。
The setting of IP addresses for the terminals 2 to N is also performed in the same manner as the above-mentioned operation. That is, terminals 1 to
To set all N IP addresses, RARP request packets with a total of N broadcast addresses will be sent.

【0008】[0008]

【発明が解決しようとする課題】以上のように、従来の
LANシステムにおける端末1〜NのIPアドレスの設
定を上述のようにRARPを用いて行うと、合計でN個
の同報アドレスのついたRARP要求パケットが送出さ
れる。このため、以下のような問題が発生していた。 (1)N個のRARP要求パケットは、ホスト10以外
にも送出した端末以外の全ての端末が受信するため、L
ANシステム内のトラヒックが増大し、これによりRA
RPで使用するパケット同士の衝突が発生することで、
データ転送性能が低下する。特に運用中のLANシステ
ム内において、例えば新規に接続した端末に対し上述の
ようなRARPによりIPアドレスの設定を行うと、他
の運用中の端末及びホストで行われている業務を妨げる
恐れがある。 (2)例えば、新規にインターネットに加入するためJ
PNICよりIPアドレスを取得した場合等、変更すべ
きIPアドレスを、各端末内に設定しているIPアドレ
スと変更するときに、上述の方法で行うと(1)に記載
したような問題点が発生する。
As described above, when the IP addresses of the terminals 1 to N in the conventional LAN system are set using RARP as described above, a total of N broadcast addresses are set. RARP request packet is sent. Therefore, the following problems have occurred. (1) Since N RARP request packets are received by all terminals other than the terminal that sent the host 10 other than the host 10,
Traffic in the AN system increases, which causes RA
Due to the collision of packets used in RP,
Data transfer performance deteriorates. Especially, in an operating LAN system, if an IP address is set to the newly connected terminal by RARP as described above, there is a risk that the operations performed by other operating terminals and hosts will be disturbed. . (2) For example, in order to newly join the Internet, J
When the IP address to be changed is changed to the IP address set in each terminal when the IP address is acquired from the PNIC, if the above method is used, the problem described in (1) may occur. appear.

【0009】本発明は上述のような問題点を解消するた
めになされたもので、同報アドレスのついたパケットを
なるべく送出しないでIPアドレスの設定を行うことと
もに、ネットワーク体系の変更等でIPアドレスの再設
定を行うときには、簡単にこのIPアドレスの再設定を
行えるようなIPアドレスの自動設定方法を提供するこ
とを目的とする。
The present invention has been made in order to solve the above-mentioned problems, and it is possible to set an IP address without sending a packet with a broadcast address as much as possible, and to change the IP by changing the network system or the like. An object of the present invention is to provide an IP address automatic setting method that enables easy resetting of an IP address when resetting the address.

【0010】[0010]

【課題を解決するための手段】この発明に係わるインタ
ーネットプロトコルアドレスの自動設定方法は、複数の
端末と、これら複数の端末の各々を接続するネットワー
クと、このネットワークに接続されて上記複数の端末の
管理を行う制御端末と、上記複数の端末、及び上記制御
端末の各々に固有に設定した第1のアドレスと、上記複
数の端末、及び上記制御端末の各々の所在を示す第2の
アドレスと、上記複数の端末の各々の上記第1のアドレ
スと上記第2のアドレスとの対応を記憶する記憶手段と
を設け、上記制御端末が同報発信により、上記複数の端
末に対して第1のアドレスを要求する第1のアドレス要
求ステップと、上記同報発信を受信した複数の端末の各
々が、上記制御端末に対する応答として、上記第1のア
ドレスを上記制御端末のみに送信する第1のアドレス送
信ステップと、上記制御端末は、受信した上記第1のア
ドレスと対応する上記第2のアドレスを決定して上記記
憶手段に記憶するとともに、決定した上記第2のアドレ
スに対応する上記第1のアドレスを有する端末に個別に
上記決定した第2のアドレスを通知する第2のアドレス
通知ステップとを備えたものである。
SUMMARY OF THE INVENTION A method of automatically setting an Internet protocol address according to the present invention includes a plurality of terminals, a network connecting each of the plurality of terminals, and a plurality of terminals connected to the network. A control terminal for managing, a plurality of terminals, and a first address uniquely set for each of the control terminals, a plurality of terminals, and a second address indicating the whereabouts of each of the control terminals, Storage means for storing the correspondence between the first address and the second address of each of the plurality of terminals is provided, and the control terminal broadcasts the first address to the plurality of terminals. Requesting a first address, and each of the plurality of terminals receiving the broadcast transmission controls the first address as a response to the control terminal. A first address transmitting step of transmitting only to the end, and the control terminal determines the second address corresponding to the received first address, stores the second address in the storage means, and determines the second address. Second address notifying step of individually notifying the determined second address to the terminal having the first address corresponding to the address.

【0011】また、次の発明に係わるインターネットプ
ロトコルアドレスの自動設定方法は、同報発信は、複数
の端末の特定の集団に対して発信するものである。
Further, in the method for automatically setting an Internet protocol address according to the next invention, the broadcast transmission is to a specific group of a plurality of terminals.

【0012】また、次の発明に係わるインターネットプ
ロトコルアドレスの自動設定方法は、記憶手段に記憶さ
れた第1のアドレスと第2のアドレスとの対応を変更す
るアドレス変更ステップと、この変更した第2のアドレ
スに対応する第1のアドレスを有する端末に対して、変
更した第2のアドレスを個別に通知する変更アドレス通
知ステップとを備えたものである。
Further, according to the method of automatically setting an Internet protocol address according to the next invention, an address changing step for changing the correspondence between the first address and the second address stored in the storage means, and the changed second The changed address notifying step of individually notifying the changed second address to the terminal having the first address corresponding to the above address.

【0013】[0013]

【作用】この発明におけるインターネットプロトコルア
ドレスの自動設定方法は、制御端末が同報発信により、
複数の端末に対して第1のアドレスを要求する第1のア
ドレス要求ステップと、同報発信を受信した複数の端末
の各々が、制御端末に対する応答として、第1のアドレ
スを上記制御端末のみに送信する第1のアドレス送信ス
テップと、制御端末は、受信した第1のアドレスと対応
する第2のアドレスを決定して記憶手段に記憶するとと
もに、決定した第2のアドレスに対応する第1のアドレ
スを有する端末に個別に決定した第2のアドレスを通知
する第2のアドレス通知ステップにより、複数の端末の
各々にIPアドレスを設定する場合に、同報アドレスの
ついたパケットの送出する回数は1回で済む。
In the automatic setting method of the Internet protocol address according to the present invention, the control terminal transmits the broadcast
A first address requesting step of requesting the first address to the plurality of terminals, and each of the plurality of terminals receiving the broadcast transmission sends the first address only to the control terminal as a response to the control terminal. The first address transmission step of transmitting and the control terminal determines the second address corresponding to the received first address and stores the second address in the storage means, and at the same time, the first address corresponding to the determined second address. When the IP address is set to each of the plurality of terminals by the second address notifying step of notifying the individually determined second address to the terminal having the address, the number of times the packet with the broadcast address is transmitted is determined. It only needs to be done once.

【0014】また、次の発明におけるインターネットプ
ロトコルアドレスの自動設定方法は、同報発信が、複数
の端末の特定の集団に対して発信するので、IPアドレ
スの設定が必要な端末を対象にできる。
Further, in the method for automatically setting the Internet protocol address according to the next invention, since the broadcast transmission is made to a specific group of a plurality of terminals, it is possible to target the terminals which need the IP address setting.

【0015】更に、次の発明におけるインターネットプ
ロトコルアドレスの自動設定方法は、記憶手段に記憶さ
れた第1のアドレスと第2のアドレスとの対応を変更す
るアドレス変更ステップと、この変更した第2のアドレ
スに対応する第1のアドレスを有する端末に対して、変
更した第2のアドレスを個別に通知する変更アドレス通
知ステップにより、同報アドレスのついたパケットを送
出しなくともIPアドレスの変更は可能となる。
Further, in the method for automatically setting an Internet protocol address according to the next invention, an address changing step for changing the correspondence between the first address and the second address stored in the storage means and the changed second address. The IP address can be changed without sending the packet with the broadcast address by the change address notification step that individually notifies the changed second address to the terminal having the first address corresponding to the address. Becomes

【0016】[0016]

【実施例】【Example】

実施例1.以下、この発明の一実施例を図について説明
する。尚、LANシステムにおけるハードウエアの構成
は従来例と変わらないものとする。また、このLANシ
ステムに接続されているホスト10のIPアドレスも従
来例と変わらないものとする。更に、ホスト10、及び
端末1〜Nの各々に登録されている物理アドレスも従来
例と変わらないものとする。但し、端末1〜NのIPア
ドレスにはデフォルトとして10.0.0.12が設定
されているものとする。
Example 1. An embodiment of the present invention will be described below with reference to the drawings. The hardware configuration of the LAN system is the same as that of the conventional example. Also, the IP address of the host 10 connected to this LAN system is assumed to be the same as the conventional example. Further, the physical address registered in each of the host 10 and the terminals 1 to N is assumed to be the same as the conventional example. However, it is assumed that the IP addresses of the terminals 1 to N are set to 10.0.0.12 as a default.

【0017】図1は、実施例1においてホスト10がA
RP要求パケット30を送出したときの動作を説明する
説明図、図2はこのARP要求パケット30のヘッダ内
の内容を示す説明図である。また、図3はホスト10か
らARP要求パケット30を受信した各々の端末1〜N
がARP応答パケット41〜4Nを送出したときの動作
を説明する説明図、図4は例えばARP応答パケット4
1のヘッダ内の内容を示す説明図である。さらに、図5
はホスト10が各々の端末1〜Nに対して割り当てたI
Pアドレスを通知する、UDPからなる通知パケット5
1〜5Nを送出したときの動作を説明する説明図であ
る。また、図6はホスト10が有する物理アドレスとI
Pアドレスとの対応テーブル、図7はホスト10が有す
るIPアドレスの管理テーブルである。更に、図8は実
施例1におけるホスト10と各端末との動作の流れを説
明する説明図である。
In FIG. 1, the host 10 is A in the first embodiment.
FIG. 2 is an explanatory diagram for explaining the operation when the RP request packet 30 is transmitted, and FIG. 2 is an explanatory diagram showing the contents in the header of this ARP request packet 30. Further, FIG. 3 shows each of the terminals 1 to N that received the ARP request packet 30 from the host 10.
Is an explanatory view for explaining the operation when the ARP response packets 41 to 4N are transmitted. FIG.
It is explanatory drawing which shows the content in the header of 1. Furthermore, FIG.
Is the I assigned by the host 10 to each of the terminals 1 to N.
Notification packet 5 composed of UDP for notifying P address
It is explanatory drawing explaining the operation | movement at the time of sending out 1-5N. Further, FIG. 6 shows the physical address and I of the host 10.
FIG. 7 is a management table of the IP address of the host 10, which corresponds to the P address. Further, FIG. 8 is an explanatory diagram for explaining the operation flow between the host 10 and each terminal in the first embodiment.

【0018】次に、図に基づいて動作を説明する。ステ
ップ300において、ホスト10は同報アドレスのつい
たARP要求パケット30を送出する。また、このAR
P要求パケット30のヘッダ内の宛先アドレスには、デ
フォルトで設定したIPアドレス(本例では10.0.
0.12)が書き込まれているため、図1に示すように
接続されている端末1〜Nの全てが上記ARP要求パケ
ット30を受信する。ステップ301において、上記ホ
スト10が送出したARP要求パケット30を受信した
各端末は、ステップ302において、図3に示すように
ホスト1に対してARP応答パケット41〜4Nを送出
する。このARP応答パケット41〜4Nのヘッダは図
4のように変化し、各端末の物理アドレス及びIPアド
レスを、このヘッダ内に挿入して送出する。ステップ3
03において、各端末が送出したARP応答パケット4
1〜4Nを受信したホスト10は、ステップ304にお
いて、受信したARP応答パケット41〜4N内に設定
された各端末の物理アドレスが、図6に示す物理アドレ
スとIPアドレスの対応テーブルに既に登録しているか
検索し、既に登録しているときは、この登録している物
理アドレスに対応しているIPアドレスを割り当てるこ
とを決定する。また、物理アドレスが未登録の端末に対
しては、図7のIPアドレス管理テーブルを検索するこ
とにより、未使用のIPアドレスを検出して対応する端
末の物理アドレスを割り当てる。また、この未登録の物
理アドレスとこの物理アドレスに対応させたIPアドレ
スを図6に登録し、この登録したIPアドレスを図7に
おいて使用済とすることにより、ステップ305におい
て、各端末のIPアドレスの決定を行う。
Next, the operation will be described with reference to the drawings. In step 300, the host 10 sends out an ARP request packet 30 with a broadcast address. Also, this AR
As the destination address in the header of the P request packet 30, the IP address set by default (10.0.
Since 0.12) is written, all of the connected terminals 1 to N receive the ARP request packet 30 as shown in FIG. Each terminal receiving the ARP request packet 30 sent from the host 10 in step 301 sends ARP reply packets 41 to 4N to the host 1 in step 302 as shown in FIG. The headers of the ARP response packets 41 to 4N change as shown in FIG. 4, and the physical address and IP address of each terminal are inserted into this header and transmitted. Step 3
03, ARP response packet 4 sent by each terminal
The host 10 having received 1 to 4N has already registered in step 304 the physical addresses of the respective terminals set in the received ARP response packets 41 to 4N in the correspondence table of physical addresses and IP addresses shown in FIG. If it is already registered, it is decided to allocate an IP address corresponding to the registered physical address. Further, for a terminal whose physical address is not registered, the unused IP address is detected by searching the IP address management table of FIG. 7, and the physical address of the corresponding terminal is assigned. Further, by registering the unregistered physical address and the IP address corresponding to this physical address in FIG. 6 and making the registered IP address used in FIG. 7, the IP address of each terminal in step 305. Make a decision.

【0019】次に、ホスト10はステップ306におい
て、ステップ305で決定したIPアドレスを各端末に
通知するために、例えばUDPのフォーマットに準じて
生成した通知パケット51〜5Nを各端末に対して個別
に送出する。ステップ307において、各端末はホスト
10が送出した通知パケット51〜5Nを受信し、ステ
ップ308において、受信した通知パケット51〜5N
により通知されたIPアドレスを各端末が所有するIP
アドレス格納テーブル(図示せず)の中に設定するとと
もに、ホスト10の物理アドレスを登録し、以後この設
定したIPアドレスにより通信を行う。
Next, in step 306, the host 10 individually notifies each terminal of the notification packets 51 to 5N generated according to the UDP format in order to notify each terminal of the IP address determined in step 305. Send to. In step 307, each terminal receives the notification packets 51 to 5N transmitted by the host 10, and in step 308, the received notification packets 51 to 5N.
IP that each terminal owns the IP address notified by
The IP address is set in an address storage table (not shown), the physical address of the host 10 is registered, and thereafter, communication is performed using the set IP address.

【0020】以上の動作により、ホスト10が複数の端
末に対して新規にIPアドレスを設定する動作におい
て、同報アドレスの付いたパケットを1回使用すれば、
上記動作は実現できる。そのため、LANシステム内の
トラヒックが、従来例と比べて低くなり、データ転送性
能は向上する。さらに、デフォルトで設定するIPアド
レスによって稼働中の端末とは区別されることにより、
稼働中の端末はARP要求パケットを受信しないので、
IPアドレス設定が必要な端末のみを選択して設定する
ことができるようになる。尚、本実施例においては、各
端末にデフォルトで設定するIPアドレスは10.0.
0.12としたが、上述の動作が達成できれば、このI
Pアドレス内のホストアドレスの値は、別の値としても
構わないことは言うまでもない。
With the above operation, if the host 10 uses the packet with the broadcast address once in the operation of newly setting the IP address for the plurality of terminals,
The above operation can be realized. Therefore, the traffic in the LAN system is lower than that in the conventional example, and the data transfer performance is improved. Furthermore, by distinguishing it from the operating terminal by the IP address set by default,
Since the operating terminal does not receive the ARP request packet,
Only the terminal that needs the IP address setting can be selected and set. In this embodiment, the IP address set by default for each terminal is 10.0.
Although 0.12 is set, if the above operation can be achieved, this I
It goes without saying that the value of the host address in the P address may be another value.

【0021】実施例2.実施例1ではIPアドレスが設
定されていない端末に対して、IPアドレスの自動設定
方法に付いて述べた。本実施例では既にIPアドレスの
設定が済んで稼働中の端末のIPアドレスが、例えば新
規にJPNICに加入したことで、ホスト10及び端末
のIPアドレスをJPNICより割り当てられたネット
ワークアドレス体系に変更する場合においての自動設定
方法に付いて述べる。
Example 2. In the first embodiment, the method for automatically setting the IP address has been described for the terminal to which the IP address is not set. In the present embodiment, the IP address of the terminal which is already in operation after the IP address has already been set, for example, when the JPNIC is newly joined, the IP addresses of the host 10 and the terminal are changed to the network address system assigned by the JPNIC. The automatic setting method in the case will be described.

【0022】図9は実施例2におけるホスト10と各端
末との動作の流れを示す説明図である。尚、実施例2に
おけるLANシステムの構成は実施例1と同じである
が、端末1〜Nは実施例1により、ホスト10からIP
アドレスを設定され、既に稼働中のものであるとする。
FIG. 9 is an explanatory diagram showing the operation flow between the host 10 and each terminal in the second embodiment. The configuration of the LAN system according to the second embodiment is the same as that of the first embodiment, but the terminals 1 to N are connected to the IP from the host 10 according to the first embodiment.
It is assumed that the address has been set and is already in operation.

【0023】次に、動作を図について説明する。ステッ
プ400において、例えばオペレータがマニュアル等で
ホスト10に対しネットワークアドレス体系を変更した
IPアドレスの変更内容を入力する。ステップ401に
おいては、ホスト10がこの入力された変更内容に沿っ
て、図10に示した物理アドレスとIPアドレスの対応
テーブル、及び図11に示したIPアドレス管理テーブ
ルの内容を変更する。次に、ステップ402において、
ホスト10は変更したIPアドレスの内容を、例えば実
施例1で使用したUDPに準じた通知パケット51〜5
Nを用いて、各端末に対しIPアドレスの変更通知を行
う。ステップ403において、ホスト10が送信した通
知パケット51〜5Nを受信した各端末1〜Nは、ステ
ップ404において、この通知パケット51〜5N内に
記載されているIPアドレスを参照し、各端末が所有す
るIPアドレス格納テーブル内のIPアドレスの更新を
行う。
Next, the operation will be described with reference to the drawings. In step 400, for example, the operator manually inputs the change contents of the IP address, which has changed the network address system, to the host 10. In step 401, the host 10 changes the contents of the physical address / IP address correspondence table shown in FIG. 10 and the IP address management table shown in FIG. 11 according to the input change contents. Next, in step 402,
The host 10 uses the changed contents of the IP address as the notification packets 51 to 5 according to the UDP used in the first embodiment, for example.
N is used to notify each terminal of an IP address change. In step 403, each of the terminals 1 to N that has received the notification packets 51 to 5N transmitted by the host 10 refers to the IP address described in the notification packets 51 to 5N in step 404 and is owned by each terminal. The IP address in the IP address storage table is updated.

【0024】以上の動作により、IPアドレスの変更時
も比較的簡単に自動設定を行うことができるようにな
る。
With the above operation, automatic setting can be performed relatively easily even when the IP address is changed.

【0025】[0025]

【発明の効果】以上のように、この発明によれば、イン
ターネットプロトコルアドレスの自動設定方法は、制御
端末が同報発信により、複数の端末に対して第1のアド
レスを要求する第1のアドレス要求ステップと、同報発
信を受信した複数の端末の各々が、制御端末に対する応
答として、第1のアドレスを上記制御端末のみに送信す
る第1のアドレス送信ステップと、制御端末は、受信し
た第1のアドレスと対応する第2のアドレスを決定して
記憶手段に記憶するとともに、決定した第2のアドレス
に対応する第1のアドレスを有する端末に個別に決定し
た第2のアドレスを通知する第2のアドレス通知ステッ
プにより、複数の端末の各々にIPアドレスを設定する
場合に、同報アドレスのついたパケットを送出する回数
は1回で済むので、LANシステム内のトラヒックは従
来例より少なくなり、データ転送性能は従来例よりも向
上する。
As described above, according to the present invention, in the method for automatically setting the Internet protocol address, the control terminal requests the first address from a plurality of terminals by broadcast transmission. A request step, a first address transmitting step in which each of the plurality of terminals receiving the broadcast transmission transmits a first address to only the control terminal as a response to the control terminal, and the control terminal receives the first address. A second address corresponding to the first address is determined and stored in the storage means, and a second address individually determined is notified to the terminal having the first address corresponding to the determined second address. When the IP address is set to each of the plurality of terminals by the address notification step of 2, the number of times the packet with the broadcast address is transmitted is only one. Traffic in the LAN system is less than the conventional example, data transfer performance is improved than the conventional example.

【0026】また、次の発明によれば、インターネット
プロトコルアドレスの自動設定方法は、同報発信が、複
数の端末の特定の集団に対して発信するので、IPアド
レスの設定が必要な端末を対象にできるため、運用中の
端末が存在するLANシステムにおいても、これら運用
中の端末及びホストで行われている業務を妨げる恐れは
なくなる。
Further, according to the following invention, in the automatic setting method of the Internet protocol address, since the broadcast transmission is transmitted to a specific group of a plurality of terminals, the terminal which needs the IP address setting is targeted. Therefore, even in a LAN system in which there are operating terminals, there is no fear of hindering the work performed by these operating terminals and hosts.

【0027】更に、次の発明によれば、インターネット
プロトコルアドレスの自動設定方法は、記憶手段に記憶
された第1のアドレスと第2のアドレスとの対応を変更
するアドレス変更ステップと、この変更した第2のアド
レスに対応する第1のアドレスを有する端末に対して、
変更した第2のアドレスを個別に通知する変更アドレス
通知ステップにより、同報アドレスのついたパケットを
送出しなくともIPアドレスの変更は可能となり、従来
例よりも簡単にIPアドレスの変更が出来るようにな
る。
Further, according to the following invention, the method for automatically setting the Internet protocol address includes an address changing step for changing the correspondence between the first address and the second address stored in the storage means, and this changing step. For a terminal having a first address corresponding to a second address,
By the change address notifying step of notifying the changed second address individually, the IP address can be changed without sending the packet with the broadcast address, and the IP address can be changed more easily than the conventional example. become.

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

【図1】この発明の実施例1において、ホストが同報ア
ドレスのARP要求パケットを送出したときの動作を説
明する説明図である。
FIG. 1 is an explanatory diagram illustrating an operation when a host sends out an ARP request packet of a broadcast address in Embodiment 1 of the present invention.

【図2】図1において、ホストが送出したARP要求パ
ケットの内容を示す説明図である。
FIG. 2 is an explanatory diagram showing the contents of an ARP request packet sent by a host in FIG.

【図3】この発明の実施例1において、各々の端末がA
RP応答パケットを送出したときの動作を説明する説明
図である。
FIG. 3 is a block diagram showing a configuration of each terminal according to the first embodiment of the present invention.
It is explanatory drawing explaining the operation | movement when sending out a RP reply packet.

【図4】図3において、各々の端末が送出したARP応
答パケットの内容を示す説明図である。
FIG. 4 is an explanatory diagram showing the contents of an ARP response packet sent from each terminal in FIG.

【図5】この発明の実施例1において、ホストが各々の
端末に対して個別に通知パケットを送出したときの動作
を説明する説明図である。
FIG. 5 is an explanatory diagram illustrating an operation when the host individually sends a notification packet to each terminal in the first embodiment of the present invention.

【図6】この発明のホストが有する物理アドレスとIP
アドレスを対応して記憶するアドレス対応テーブルであ
る。
FIG. 6 is a physical address and IP of the host of the present invention
It is an address correspondence table that stores addresses in association with each other.

【図7】この発明のホストが有するIPアドレス管理テ
ーブルである。
FIG. 7 is an IP address management table possessed by the host of the present invention.

【図8】この発明の実施例1の動作の流れを説明する説
明図である。
FIG. 8 is an explanatory diagram illustrating a flow of operations according to the first embodiment of the present invention.

【図9】この発明の実施例2の動作の流れを説明する説
明図である。
FIG. 9 is an explanatory diagram illustrating a flow of operations according to the second embodiment of the present invention.

【図10】イーサネットフレームのフレーム構成図であ
る。
FIG. 10 is a frame configuration diagram of an Ethernet frame.

【図11】ARPパケット、及びRARPパケットのヘ
ッダの構成を示す構成図である。
FIG. 11 is a configuration diagram showing configurations of headers of ARP packets and RARP packets.

【図12】従来例において、端末より同報アドレスのつ
いたRARP要求パケットを送出したときの動作を説明
する説明図である。
FIG. 12 is an explanatory diagram illustrating an operation when a RARP request packet with a broadcast address is transmitted from a terminal in a conventional example.

【図13】従来例の動作の流れを説明する説明図であ
る。
FIG. 13 is an explanatory diagram illustrating a flow of operations of a conventional example.

【図14】図12において、各々の端末が送出したRA
RP要求パケットの内容を示す説明図である。
FIG. 14 is an RA transmitted from each terminal in FIG. 12;
It is explanatory drawing which shows the content of the RP request packet.

【図15】図12において、各々の端末が送出したRA
RP要求パケットの応答としてホストが送出するRAR
P応答パケットの内容を示す説明図である。
FIG. 15 is an RA transmitted from each terminal in FIG. 12;
RAR sent by host in response to RP request packet
It is explanatory drawing which shows the content of the P response packet.

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

1、2・・・N 端末 10 ホスト 30 ARP要求パケット 41、42・・・4N ARP応答パケット 51、52・・・5N 通知パケット 1, 2 ... N terminal 10 host 30 ARP request packet 41, 42 ... 4N ARP response packet 51, 52 ... 5N notification packet

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数の端末と、 これら複数の端末の各々を接続するネットワークと、 このネットワークに接続されて上記複数の端末の管理を
行う制御端末と、 上記複数の端末、及び上記制御端末の各々に固有に設定
した第1のアドレスと、 上記複数の端末、及び上記制御端末の各々の所在を示す
第2のアドレスと、 上記複数の端末の各々の上記第1のアドレスと上記第2
のアドレスとの対応を記憶する記憶手段とを設け、 上記制御端末が同報発信により、上記複数の端末に対し
て第1のアドレスを要求する第1のアドレス要求ステッ
プと、 上記同報発信を受信した複数の端末の各々が、上記制御
端末に対する応答として、上記第1のアドレスを上記制
御端末のみに送信する第1のアドレス送信ステップと、 上記制御端末は、受信した上記第1のアドレスと対応す
る上記第2のアドレスを決定して上記記憶手段に記憶す
るとともに、決定した上記第2のアドレスに対応する上
記第1のアドレスを有する端末に個別に上記決定した第
2のアドレスを通知する第2のアドレス通知ステップと
を備えたことを特徴とするインターネットプロトコルア
ドレスの自動設定方法。
1. A plurality of terminals, a network connecting each of the plurality of terminals, a control terminal connected to the network for managing the plurality of terminals, a plurality of terminals, and a control terminal of the plurality of terminals. A first address uniquely set for each, a second address indicating the whereabouts of each of the plurality of terminals and the control terminal, the first address of each of the plurality of terminals, and the second
And a storage means for storing the correspondence with the address of the control terminal, and the control terminal broadcasts a first address requesting step for requesting the first address to the plurality of terminals, and the broadcast transmission. A first address transmitting step in which each of the plurality of received terminals transmits the first address to only the control terminal as a response to the control terminal; and the control terminal receives the received first address. The corresponding second address is determined and stored in the storage means, and the terminal having the first address corresponding to the determined second address is individually notified of the determined second address. A method for automatically setting an Internet protocol address, comprising a second address notifying step.
【請求項2】 同報発信は、複数の端末の特定の集団に
対して発信することを特徴とする請求項第1項記載のイ
ンターネットプロトコルアドレスの自動設定方法。
2. The method for automatically setting an Internet protocol address according to claim 1, wherein the broadcast transmission is made to a specific group of a plurality of terminals.
【請求項3】 記憶手段に記憶された第1のアドレスと
第2のアドレスとの対応を変更するアドレス変更ステッ
プと、 この変更した第2のアドレスに対応する第1のアドレス
を有する端末に対して、変更した第2のアドレスを個別
に通知する変更アドレス通知ステップとを備えたことを
特徴とする請求項第1項記載のインターネットプロトコ
ルアドレスの自動設定方法。
3. An address changing step for changing the correspondence between the first address and the second address stored in the storage means, and a terminal having a first address corresponding to the changed second address. 2. A method of automatically setting an Internet protocol address according to claim 1, further comprising: a changed address notifying step of individually notifying the changed second address.
JP7036718A 1995-02-24 1995-02-24 Automatic setting method for inter-net protocol address Pending JPH08237285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7036718A JPH08237285A (en) 1995-02-24 1995-02-24 Automatic setting method for inter-net protocol address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7036718A JPH08237285A (en) 1995-02-24 1995-02-24 Automatic setting method for inter-net protocol address

Publications (1)

Publication Number Publication Date
JPH08237285A true JPH08237285A (en) 1996-09-13

Family

ID=12477539

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7036718A Pending JPH08237285A (en) 1995-02-24 1995-02-24 Automatic setting method for inter-net protocol address

Country Status (1)

Country Link
JP (1) JPH08237285A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7024486B2 (en) 2000-02-01 2006-04-04 Nec Corporation System for directly transmitting an image data signal from a scanner device to a computer terminal via a network without using a server
JP2006166083A (en) * 2004-12-08 2006-06-22 Mitsubishi Electric Corp Network system
WO2007043296A1 (en) * 2005-10-04 2007-04-19 Matsushita Electric Industrial Co., Ltd. Control device, and controlled device
FR2918232A1 (en) * 2007-06-28 2009-01-02 Airbus France Sas METHODS AND DEVICES FOR THE COMMUNICATION OF DIAGNOSTIC DATA IN A REAL-TIME COMMUNICATION NETWORK
JP2012186678A (en) * 2011-03-07 2012-09-27 Nec Corp Network connection setting system, connection device, network setting method, and network setting program
JP2014120801A (en) * 2012-12-13 2014-06-30 Toshiba Lighting & Technology Corp Management device and address management method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7024486B2 (en) 2000-02-01 2006-04-04 Nec Corporation System for directly transmitting an image data signal from a scanner device to a computer terminal via a network without using a server
JP2006166083A (en) * 2004-12-08 2006-06-22 Mitsubishi Electric Corp Network system
JP4584809B2 (en) * 2005-10-04 2010-11-24 パナソニック株式会社 Control device and controlled device
JP2007104341A (en) * 2005-10-04 2007-04-19 Matsushita Electric Ind Co Ltd Control device and controlled device
US7685326B2 (en) 2005-10-04 2010-03-23 Panasonic Corporation Control device, and controlled device
WO2007043296A1 (en) * 2005-10-04 2007-04-19 Matsushita Electric Industrial Co., Ltd. Control device, and controlled device
FR2918232A1 (en) * 2007-06-28 2009-01-02 Airbus France Sas METHODS AND DEVICES FOR THE COMMUNICATION OF DIAGNOSTIC DATA IN A REAL-TIME COMMUNICATION NETWORK
WO2009007570A2 (en) 2007-06-28 2009-01-15 Airbus France Methods and devices for communicating diagnosis data in a real time communication network
WO2009007570A3 (en) * 2007-06-28 2009-11-05 Airbus France Methods and devices for communicating diagnosis data in a real time communication network
JP2010531602A (en) * 2007-06-28 2010-09-24 エアバス オペラシオン Method and apparatus for communication of diagnostic data in a real-time communication network
US8868708B2 (en) 2007-06-28 2014-10-21 Airbus Operations S.A.S. Methods and devices for communicating diagnosis data in a real time communication network
JP2012186678A (en) * 2011-03-07 2012-09-27 Nec Corp Network connection setting system, connection device, network setting method, and network setting program
JP2014120801A (en) * 2012-12-13 2014-06-30 Toshiba Lighting & Technology Corp Management device and address management method

Similar Documents

Publication Publication Date Title
US6249814B1 (en) Method and apparatus for identifying devices on a network
US7181503B2 (en) Apparatus and method of searching for DNS server in outernet
US6424654B1 (en) Network system and DHCP server selection method
US7139818B1 (en) Techniques for dynamic host configuration without direct communications between client and server
JP5069356B2 (en) Techniques for address resolution in data transmission networks.
US6101528A (en) Method and apparatus for discovering server applications by a client application in a network of computer systems
JP2637901B2 (en) Routing method of information packet to mobile host
KR100310652B1 (en) Method and System for Improving Communications in Data Communications Networks that provide Network Emulation
US7225243B1 (en) Device discovery methods and systems implementing the same
EP0946027A2 (en) A method and apparatus for configuring a network node to be its own gateway
EP0909062A1 (en) Methods and apparatus for accelerating OSI layer 3 routers
US7673061B2 (en) Method and apparatus for neighborhood discovery across disparate point-to-point networks
KR100811890B1 (en) Anycast routing method and apparatus for supporting service flow in internet system
KR100538223B1 (en) System and method for deleting tunnelling in the connection between mobile node and correspondent node
JP2004530335A (en) Method and system for multi-host anycast routing
US20050195817A1 (en) Switching device and multicast packet processing method therefor
AU2007225380A1 (en) Connecting multi-hop mesh networks using MAC Bridge
GB2283645A (en) Digital communication systems
US6625658B1 (en) End equipment and router
CN105227466A (en) Communication processing method and device
US11936614B2 (en) Method and apparatus for sending reply packet, computing device, and storage medium
US7920577B2 (en) Power saving in wireless packet based networks
US7876757B2 (en) Router-assisted fast processing of packet termination in host
US6701375B1 (en) Ultra-low bandwidth intra-network routing method
US7330896B1 (en) Correlating data streams of different protocols