JP2002237816A - Automatic address assigning method - Google Patents

Automatic address assigning method

Info

Publication number
JP2002237816A
JP2002237816A JP2001032794A JP2001032794A JP2002237816A JP 2002237816 A JP2002237816 A JP 2002237816A JP 2001032794 A JP2001032794 A JP 2001032794A JP 2001032794 A JP2001032794 A JP 2001032794A JP 2002237816 A JP2002237816 A JP 2002237816A
Authority
JP
Japan
Prior art keywords
address
network
host
automatic
assignment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2001032794A
Other languages
Japanese (ja)
Other versions
JP3892235B2 (en
Inventor
Ayako Oono
亜矢子 大野
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2001032794A priority Critical patent/JP3892235B2/en
Publication of JP2002237816A publication Critical patent/JP2002237816A/en
Application granted granted Critical
Publication of JP3892235B2 publication Critical patent/JP3892235B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an automatic address assigning method by which an effec tive address can be assigned by avoiding addresses using undesirable network numbers, by discriminating whether or not the automatic assignment of an IP address is to be performed based on the network number of a network of a connecting destination. SOLUTION: When a DHCP-Offer is not able to be received in a step 12, a host discriminates whether or not the automatic assignment of the IP address is to be performed in a step 13, because no DHCP server exists. This discrimination is performed by monitoring an IP packet flowing on a network and checking whether or not the IP address of the connecting destination belongs to the network number '169.254' for automatic assignment. When the IP address does not belong to the number '169.254', the host computer discriminates that the execution of the automatic assignment is inappropriate and terminates the processing. In this case, the host computer can assign its own address by using the network number of an address contained in the IP pack flowing on the network.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、アドレスの割り当
て方法に係り、特に、LAN等のネットワークに接続さ
れるパソコンやプリンタ等の装置に自動的にアドレスを
割り当てることを可能にしたアドレス割り当て方法に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an address allocating method, and more particularly to an address allocating method capable of automatically allocating an address to a device such as a personal computer or a printer connected to a network such as a LAN. .

【0002】[0002]

【従来の技術】近年、インターネットの普及に伴い、多
くの機器にネットワークプロトコルとしてTCP/IP
が搭載されるようになっている。TCP/IPのひとつ
の課題は、機器をネットワークに接続する際に必ずネッ
トワーク上で一意となるアドレス(以下、IPアドレ
ス)の設定が要求されることである。IPアドレスの設
定は、通常、ユーザがIPアドレスを手動で入力する
か、または、RFC2131に決められている手順に従
って機器がDHCPサーバから自動取得するか、いずれ
かの方法が用いられている。しかし、ネットワークの専
門知識を持たない一般ユーザがIPアドレスを入力した
り、DHCPサーバを設置したりするのは非常に困難で
ある。
2. Description of the Related Art In recent years, with the spread of the Internet, many devices have been using TCP / IP as a network protocol.
Is to be installed. One problem with TCP / IP is that when a device is connected to a network, it is necessary to set an address (hereinafter, an IP address) that is unique on the network. The setting of the IP address is usually performed by either manually inputting the IP address by the user or automatically acquiring the IP address from the DHCP server by a device according to a procedure determined by RFC2131. However, it is very difficult for a general user without network expertise to enter an IP address or install a DHCP server.

【0003】前述した課題を解決する技術の1つとし
て、例えば、「draft-ietf-dhc-ipv4-autoconfig-05.tx
t 」で提案されているIPアドレスの自動割り当て技術
が知られている。
As one of the techniques for solving the above-mentioned problem, for example, “draft-ietf-dhc-ipv4-autoconfig-05.tx”
There is known an automatic IP address assignment technique proposed in "t".

【0004】図5は従来技術によるIPアドレス自動割
り当て処理を説明するフローチャートであり、以下、図
5に示すフローを参照して、従来技術によるアドレス自
動割り当てについて説明する。
FIG. 5 is a flowchart for explaining an IP address automatic assignment process according to the prior art. Hereinafter, the automatic address assignment according to the prior art will be described with reference to the flow shown in FIG.

【0005】(1)IPアドレスを要求する機器は、ネ
ットワークに接続されると、まず、ネットワーク上のD
HCPサーバを探すためにDHCP−Discoverパケット
を送出する(ステップ51)。
(1) When a device requesting an IP address is connected to a network, first, a device on the network
A DHCP-Discover packet is sent to search for an HCP server (step 51).

【0006】(2)DHCP−Discoverの応答としてD
HCP−Offer を受信することができたか否かを判定
し、DHCP−Offer を受信することができた場合、D
HCPサーバが存在するので、DHCPサーバからIP
アドレスを取得する(ステップ52、59)。
(2) As a response of DHCP-Discover, D
It is determined whether the HCP-Offer can be received. If the DHCP-Offer can be received, D
Since the DHCP server exists, the IP address from the DHCP server
An address is obtained (steps 52 and 59).

【0007】(3)ステップ2で、DHCP−Offer を
受信できなかった場合、DHCPサーバが存在しないの
で、IPアドレスの自動割り当てを行う処理を開始す
る。まず、ネットワーク番号として、自動割り当て用に
予め予約された番号を選択する。ネットワーク番号「16
9.254」がこの目的のために、国際機関(Internet Assi
gned Numbers Authority)により(cf.draft-manning-d
sua-03.txt)、割り当てられている(ステップ53)。
[0007] (3) If the DHCP-Offer cannot be received in step 2, since there is no DHCP server, processing for automatically assigning an IP address is started. First, a number reserved in advance for automatic assignment is selected as a network number. Network number "16
9.254 "was created by an international organization (Internet Assi
gned Numbers Authority) (cf.draft-manning-d
sua-03.txt) and assigned (step 53).

【0008】(4)次に、ランダムなホスト番号を1つ
選択する。例えば、「218.43」を選択したとする。続い
て、選択したアドレスが他の機器によって使用されてい
るか否かを検出するため、「169.254.218.43」に対する
アドレス解決(ARP)要求を送信する。ARPパケッ
トは、RFC826により規定されており、IPアドレ
スに対応する物理アドレスを取得するために使用される
(ステップ54、55)。
(4) Next, one random host number is selected. For example, assume that “218.43” is selected. Subsequently, an address resolution (ARP) request for “169.254.218.43” is transmitted to detect whether or not the selected address is being used by another device. The ARP packet is defined by RFC 826 and is used to obtain a physical address corresponding to an IP address (steps 54 and 55).

【0009】(5)ARP要求に対する応答を受信する
ことができたか否かをチェックし、応答を受信できなか
った場合、上記IPアドレスを使用している機器はない
ものと判断し、そのアドレスを自アドレスとして決定し
て処理を終了する(ステップ56、57)。
(5) It is checked whether or not a response to the ARP request has been received, and if no response has been received, it is determined that no device uses the IP address, and the address is determined. The address is determined as the own address, and the process ends (steps 56 and 57).

【0010】(6)一方、ステップ56で、アドレス解
決要求に対する応答を受信した場合、前述で選択したI
Pアドレスは、他の機器によって使用されていることを
意味するので、別のホスト番号を選択し、ステップ55
の処理に戻ってその後の処理を繰り返す(ステップ5
8)。
(6) On the other hand, if a response to the address resolution request is received in step 56,
Since the P address means that it is being used by another device, another host number is selected.
And the subsequent processing is repeated (step 5).
8).

【0011】前述した従来技術によるIPアドレスの自
動割り当ての技術は、DHCPサーバが存在しない環境
であっても、人手を介さずにIPアドレスを自動取得す
ることができるという利点がある。
The above-described technology for automatically assigning an IP address according to the prior art has an advantage that an IP address can be automatically acquired without manual intervention even in an environment where there is no DHCP server.

【0012】なお、IPアドレスの自動割り当てに関す
る他の従来技術として、例えば、特開平8−22320
6号公報、特開平8−223169号公報等に記載され
た技術が知られている。
As another prior art relating to automatic assignment of an IP address, for example, Japanese Unexamined Patent Publication No. Hei.
No. 6, JP-A-8-223169 and the like are known.

【0013】[0013]

【発明が解決しようとする課題】しかし、前述した従来
技術によるアドレスの自動割り当ての技術は、自動割り
当て用のネットワーク番号以外で運用されているがDH
CPサーバが設置されていないネットワークの場合、D
HCPサーバは設置されているがたまたま割り当てられ
るアドレスがなかった場合、または、DHCPサーバが
登録された機器にだけアドレスを配布し、他の機器には
アドレスを配布しないように設定されている場合等に、
機器が、自ネットワーク番号を含むアドレスでなく、自
動割り当て用に定められている望まれないネットワーク
番号を含むアドレスで動作してしまうという問題点を有
している。
However, the above-mentioned technology of automatic address assignment according to the prior art is operated with a network number other than the network number for automatic assignment.
For a network without a CP server, D
When the HCP server is installed but no address is assigned by chance, or when the DHCP server is set to distribute the address only to the registered device and not to distribute the address to other devices, etc. To
There is a problem that the device operates not at the address including the own network number but at the address including the undesired network number defined for the automatic assignment.

【0014】本発明の目的は、IPアドレスの自動割り
当てを行うか否かを、接続先ネットワークのネットワー
ク番号に基づいて判定することにより、望まれないネッ
トワーク番号を使用したアドレスを避け、有効なアドレ
スを割り当てることができるアドレス自動割り当て方法
を提供することにある。
An object of the present invention is to determine whether or not to automatically assign an IP address based on the network number of a connection destination network, thereby avoiding an address using an undesired network number and enabling an effective address. It is an object of the present invention to provide an automatic address assignment method which can assign an address.

【0015】[0015]

【課題を解決するための手段】本発明によれば前記目的
は、ネットワーク番号部とホスト番号部とからなるアド
レスを使用するネットワークに接続されるホストが、自
動割り当て用に予め予約されたネットワーク番号とネッ
トワーク上で一意となる任意のホスト番号とを自アドレ
スとして自動的に割り当てるアドレス自動割り当て方法
において、前記ホストが、接続されたネットワークが自
動割り当て用に予め予約されたネットワーク番号を使用
している場合に、自アドレスを自動的に割り当てること
により達成される。
According to the present invention, it is an object of the present invention to provide a network system in which a host connected to a network using an address comprising a network number part and a host number part has a network number reserved in advance for automatic assignment. And an arbitrary host number that is unique on a network, wherein the host uses a network number that is connected to a connected network and that is reserved in advance for automatic allocation. In some cases, this is achieved by automatically allocating the own address.

【0016】また、前記目的は、前記ホストが、ネット
ワーク上を流れるパケットまたはブロードキャストパケ
ット内の送信元のIPアドレスまたは宛先のIPアドレ
スに含まれるネットワーク番号を使用して、自アドレス
を決定することにより達成される。
Further, the object is that the host determines its own address using a network number included in a source IP address or a destination IP address in a packet or a broadcast packet flowing on a network. Achieved.

【0017】[0017]

【発明の実施の形態】図1は本発明の一実施形態による
IPアドレス自動割り当て処理を説明するフローチャー
トであり、以下、図1に示すフローを参照して、本発明
によるアドレス自動割り当てについて説明する。なお、
ここでは、IPアドレス自動割り当て機能を備えたホス
トがネットワークに接続されたものとして説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a flowchart for explaining an IP address automatic assignment process according to an embodiment of the present invention. Hereinafter, the automatic address assignment according to the present invention will be described with reference to the flow shown in FIG. . In addition,
Here, a description will be given assuming that a host having an IP address automatic assignment function is connected to a network.

【0018】(1)IPアドレスを要求するホストは、
ネットワークに接続されると、まず、ネットワーク上の
DHCPサーバを探すためにDHCP−Discoverパケッ
トを送出する(ステップ11)。
(1) The host requesting the IP address is:
When connected to the network, first, a DHCP-Discover packet is sent to search for a DHCP server on the network (step 11).

【0019】(2)DHCP−Discoverの応答としてD
HCP−Offer を受信することができたか否かを判定
し、DHCP−Offer を受信することができた場合、D
HCPサーバが存在するので、DHCPサーバからIP
アドレスを取得する(ステップ12、20)。
(2) As a response of DHCP-Discover, D
It is determined whether the HCP-Offer can be received. If the DHCP-Offer can be received, D
Since the DHCP server exists, the IP address from the DHCP server
An address is obtained (steps 12 and 20).

【0020】(3)ステップ12で、DHCP−Offer
を受信できなかった場合、DHCPサーバが存在しない
ので、ホストは、IPアドレスの自動割り当てを行って
もよいか否か判定する。なお、判定方法の詳細は後述す
る。ここでの判定で、自動割り当てを行うべきではない
と判定された場合、アドレスの自動選択を行わずに処理
を終了する(ステップ13)。
(3) In step 12, DHCP-Offer
Has not been received, the DHCP server does not exist, and the host determines whether or not automatic assignment of an IP address may be performed. The details of the determination method will be described later. If it is determined that automatic assignment should not be performed, the process ends without performing automatic address selection (step 13).

【0021】(4)ステップ13で、自動割り当てが可
能と判断された場合、ホストは、ネットワーク番号とし
て、従来技術で説明したと同様に、自動割り当て用に予
め予約された番号「169.254」 を選択し、次に、ランダ
ムなホスト番号を1つ選択する(ステップ14、1
5)。
(4) If it is determined in step 13 that automatic assignment is possible, the host selects a number "169.254" reserved in advance for automatic assignment as the network number, as described in the background art. Then, one random host number is selected (steps 14, 1).
5).

【0022】(5)続いて、選択したアドレスが他の機
器によって使用されているかどうかを検出するためのア
ドレス解決(ARP)要求を送信する(ステップ1
6)。
(5) Subsequently, an address resolution (ARP) request for detecting whether the selected address is being used by another device is transmitted (step 1).
6).

【0023】(6)ARP要求に対する応答を受信する
ことができたか否かをチェックし、応答を受信できなか
った場合、上記IPアドレスを使用している機器はない
ものと判断し、そのアドレスを自アドレスとして決定し
て処理を終了する(ステップ17、18)。
(6) It is checked whether or not a response to the ARP request has been received, and if no response has been received, it is determined that there is no device using the IP address, and the address is determined. The address is determined as the own address, and the process is terminated (steps 17 and 18).

【0024】(6)一方、ステップ18で、アドレス解
決要求に対する応答を受信した場合、前述で選択したI
Pアドレスは、他の機器によって使用されていることを
意味するので、別のホスト番号を選択し、ステップ16
の処理に戻ってその後の処理を繰り返す(ステップ1
9)。
(6) On the other hand, if a response to the address resolution request is received in step 18, the I
Since the P address means that it is being used by another device, another host number is selected and step 16 is performed.
And the subsequent processing is repeated (step 1).
9).

【0025】図2は図1により説明したようなIPアド
レスの自動割り当て機能を備えたホストCをネットワー
クに新たに接続する状態を示す図、図3はTCP/IP
ネットワークでのデータ転送の基本単位であるIPパケ
ットのフォーマットを示す図である。以下、図2、図3
を参照して、ホストCをネットワークに接続する場合の
図1により説明した処理のステップ13でのIPアドレ
スの自動割り当てを行ってもよいか否か判定方法を具体
的に説明する。
FIG. 2 is a diagram showing a state in which a host C having the function of automatically assigning an IP address as described with reference to FIG. 1 is newly connected to a network, and FIG.
FIG. 2 is a diagram showing a format of an IP packet which is a basic unit of data transfer on a network. Hereinafter, FIGS. 2 and 3
The method for determining whether the automatic assignment of the IP address may be performed in step 13 of the processing described with reference to FIG. 1 when the host C is connected to the network will be specifically described with reference to FIG.

【0026】図示ネットワーク1には、ホストAとホス
トBとがすでに接続されており、DHCPサーバは接続
されていないものとする。また、ネットワーク1のネッ
トワーク番号は、「192.168.100 」であり、ホストAは
「192.168.100.3 」、ホストBは「192.168.100.5 」が
IPアドレスとして管理者によって設定されているもの
とする。
It is assumed that a host A and a host B are already connected to the illustrated network 1, and a DHCP server is not connected. It is also assumed that the network number of the network 1 is “192.168.100”, the host A has “192.168.100.3” as the IP address, and the host B has “192.168.100.5” as the IP address.

【0027】(1)ホストCは、ネットワークに接続さ
れると、まず、図1に示したフローに従い、ネットワー
ク上のDHCPサーバを探すためにDHCP−Discover
パケットを送出し、DHCP−Offer の受信を待つが、
ネットワーク上にはDHCPサーバが存在しないためD
HCP−Offer が受信できない(ステップ11、1
2)。
(1) When the host C is connected to the network, first, according to the flow shown in FIG. 1, the host C searches for a DHCP server on the network by DHCP-Discover.
It sends out packets and waits for DHCP-Offer,
Since there is no DHCP server on the network,
HCP-Offer cannot be received (steps 11, 1
2).

【0028】(2)このため、ホストCは、IPアドレ
スの自動割り当てを行っても構わないか否かを判定す
る。この判定は、ホストCがネットワーク1上に流れて
いるIPパケットを監視して行う(ステップ13)。
(2) For this reason, the host C determines whether it is OK to automatically assign an IP address. This determination is made by the host C monitoring the IP packets flowing on the network 1 (step 13).

【0029】以下、このIPパケットを監視することに
よる判定の方法について説明する。
Hereinafter, a method of determination by monitoring the IP packet will be described.

【0030】TCP/IPネットワークでのデータ転送
の基本単位であるIPパケットのフォーマットは、よく
知られているように、図3に示すように構成されてい
る。IPパケットには、送信元のIPアドレスや宛先の
IPアドレス等の情報が含まれ、各情報が位置する場所
が予め決まっている。ホストCは、ネットワーク上を流
れるIPパケットを監視して、送信元のIPアドレスが
自動割り当て用のネットワーク番号「169.254 」に属す
るかどうかを調べる。この場合、ホストCは、ネットワ
ーク1を流れるIPパケットの送信元IPアドレスが、
「192.168.100.3」や「192.168.100.5 」であることを
知ることができる。このため、ホストCは、接続しよう
としているネットワークが「169.254 」には属さないこ
とがわかるので、IPアドレスの自動割り当てを行うの
は適切ではないと判断する。そして、ホストCは、IP
アドレスの自動割り当てを行わずにアドレス割り当ての
処理を終了する。
As is well known, the format of an IP packet, which is a basic unit of data transfer in a TCP / IP network, is configured as shown in FIG. The IP packet includes information such as a source IP address and a destination IP address, and the location where each piece of information is located is determined in advance. The host C monitors the IP packets flowing on the network and checks whether or not the source IP address belongs to the network number “169.254” for automatic assignment. In this case, the host C determines that the source IP address of the IP packet flowing through the network 1 is
"192.168.100.3" and "192.168.100.5". For this reason, since the host C knows that the network to be connected does not belong to "169.254", it determines that it is not appropriate to automatically assign an IP address. Then, the host C receives the IP
The process of address assignment ends without performing automatic address assignment.

【0031】図4は図1により説明したようなIPアド
レスの自動割り当て機能を備えたホストCを前述とは異
なる構成のネットワークに新たに接続する状態を示す図
であり、以下、図4を参照して、ホストCをネットワー
クに接続する場合の図1により説明した処理のステップ
13でのIPアドレスの自動割り当てを行ってもよいか
否か判定方法を具体的に説明する。
FIG. 4 is a diagram showing a state in which the host C having the function of automatically assigning an IP address as described with reference to FIG. 1 is newly connected to a network having a configuration different from that described above. Then, a method of determining whether or not the automatic assignment of the IP address may be performed in step 13 of the process described with reference to FIG. 1 when the host C is connected to the network will be specifically described.

【0032】図4に示すネットワークは、ルータを介し
てネットワーク1とネットワーク2とが接続されて構成
され、ネットワーク1には、ホストAとホストBとがす
でに接続され、ルータを介した別のネットワーク2に
は、ホストDとホストEとが接続されており、DHCP
サーバは接続されていないものとする。そして、ネット
ワーク1のネットワーク番号は、「192.168.100 」であ
り、ホストAは「192.168.100.3 」、ホストBは「192.
168.100.5 」をIPアドレスとして管理者によって設定
されており、また、ネットワーク2のネットワーク番号
は「192.168.101」であり、ホストDは「192.168.101.2
0」、ホストEは「192.168.101.25」をIPアドレスと
して管理者によって設定されているものとする。
The network shown in FIG. 4 is configured by connecting a network 1 and a network 2 via a router, and a host A and a host B are already connected to the network 1 and another network via a router is connected to the network 1. 2 is connected to a host D and a host E,
It is assumed that the server is not connected. The network number of the network 1 is “192.168.100”, the host A is “192.168.100.3”, and the host B is “192.168.100.3”.
168.100.5 "is set as the IP address by the administrator, the network number of the network 2 is" 192.168.101 ", and the host D is" 192.168.101.2 ".
0 ", and the host E has been set by the administrator with" 192.168.101.25 "as the IP address.

【0033】(1)ホストCは、ネットワークに接続さ
れると、まず、図1に示したフローに従い、ネットワー
ク上のDHCPサーバを探すためにDHCP−Discover
パケットを送出し、DHCP−Offer の受信を待つが、
ネットワーク上にはDHCPサーバが存在しないためD
HCP−Offer が受信できない(ステップ11、1
2)。
(1) When the host C is connected to the network, the host C first searches for a DHCP server on the network according to the flow shown in FIG.
It sends out packets and waits for DHCP-Offer,
Since there is no DHCP server on the network,
HCP-Offer cannot be received (steps 11, 1
2).

【0034】(2)このため、ホストCは、IPアドレ
スの自動割り当てを行っても構わないか否かを判定す
る。この判定は、ホストCがネットワーク1上に流れて
いるIPブロードキャストパケットを監視して行う(ス
テップ13)。
(2) For this reason, the host C determines whether it is OK to automatically assign an IP address. This determination is made by the host C monitoring the IP broadcast packet flowing on the network 1 (step 13).

【0035】以下、このIPブロードキャストパケット
を監視することによる判定の方法について説明する。
Hereinafter, a method of making a determination by monitoring the IP broadcast packet will be described.

【0036】ホストCは、ネットワーク上を流れるIP
ブロードキャストパケットを監視して、送信元のIPア
ドレスが自動割り当て用のネットワーク番号「169.254
」に属するか否かを調べる。ブロードキャストパケッ
トは、宛先IPアドレスとしてブロードキャストアドレ
スを指定したパケットであり、IPアドレスを構成する
ホスト部の全ビットを1にすることにより指定されてい
る。ブロードキャストパケットは、同一ネットワーク上
の全ホストへ送信されるが、異なるネットワークへはル
ーティングされない。
The host C receives the IP address flowing on the network.
The broadcast packet is monitored, and the IP address of the transmission source is set to the network number "169.254" for automatic assignment.
To see if it belongs to A broadcast packet is a packet in which a broadcast address is specified as a destination IP address, and is specified by setting all bits of the host unit constituting the IP address to 1. Broadcast packets are sent to all hosts on the same network, but are not routed to different networks.

【0037】さて、ネットワーク1は、ルータを介して
ネットワーク2に接続されているので、ネットワーク1
を流れるIPパケットには、ホストA、Bから送信され
たものだけではなく、ホストD、Eからのものもある。
しかし、ホストCは、ブロードキャストパケットのみを
監視するので、ホストAやホストBの送信したパケット
のみを監視することになり、無駄なパケットを処理する
ことがなく、効率よく判定を行うことができる。ホスト
Cは、前述のようにして、ブロードキャストパケットを
監視し、接続しようとしているネットワークが「169.25
4 」には属さないことを知り、IPアドレスの自動割り
当てを行うのは適切ではないと判断する。その結果ホス
トCは、IPアドレスの自動割り当てを行わずにアドレ
ス割り当ての処理を終了する。
Now, since the network 1 is connected to the network 2 via the router, the network 1
Are not only those transmitted from the hosts A and B, but also those transmitted from the hosts D and E.
However, since the host C monitors only the broadcast packet, the host C monitors only the packet transmitted by the host A or the host B, and the determination can be efficiently performed without processing useless packets. As described above, the host C monitors the broadcast packet, and if the network to be connected is "169.25
4 ", and judges that it is not appropriate to automatically assign an IP address. As a result, the host C ends the address assignment processing without automatically assigning the IP address.

【0038】前述した本発明の実施形態の説明におい
て、図2、図3に示すようなネットワークに接続される
ホストCは、接続されるネットワーク上を流れるパケッ
トまたはブロードキャストパケットを監視して、パケッ
ト内の送信元のIPアドレスまたは宛先のIPアドレス
に含まれるネットワーク番号が自動割り当て用のネット
ワーク番号「169.254 」と一致しない場合、アドレスの
自動割り当てを行わないとして説明したが、本発明は、
ホストCがパケット内の送信元のIPアドレスまたは宛
先のIPアドレスに含まれるネットワーク番号を使用し
て、自アドレスを決定するようにしてもよい。
In the above description of the embodiment of the present invention, the host C connected to the network shown in FIGS. 2 and 3 monitors a packet or a broadcast packet flowing on the connected network and When the network number included in the source IP address or the destination IP address does not match the network number "169.254" for automatic assignment, it has been described that the address is not automatically assigned.
The host C may determine its own address using the network number included in the source IP address or the destination IP address in the packet.

【0039】この場合、アドレス決定後、ARP要求を
送出して、アドレスが重複していないことを確認する必
要がある。また、ARP要求を送出しても、ネットワー
ク上に立ち上がっていない機器が接続されいる場合、そ
れらの機器とのアドレスの重複を確認することができな
い。この場合、それらの機器が立ち上がったときに、そ
れらの機器が、まず、自アドレスに対して、ARP要求
を送出して、アドレスが重複していないことを確認し、
重複が検出されたときにアドレスの変更を行うようにし
ておけばよい。
In this case, after the address is determined, it is necessary to send an ARP request to confirm that the addresses are not duplicated. Also, even if an ARP request is sent out, if devices that have not started up on the network are connected, it is not possible to confirm duplication of addresses with those devices. In this case, when those devices start up, they first send an ARP request to their own addresses to confirm that the addresses are not duplicated,
The address may be changed when duplication is detected.

【0040】[0040]

【発明の効果】請求項1に記載した発明によれば、接続
されたネットワークが自動割当用に予め予約されたネッ
トワーク番号を使用している場合にのみ、自アドレスを
自動的に割り当てるので、自動割り当てを行うのが適切
な場合にのみアドレス自動割り当てを行うことができ
る。
According to the first aspect of the present invention, the own address is automatically assigned only when the connected network uses a network number reserved in advance for automatic assignment. Automatic address assignment can be performed only when the assignment is appropriate.

【0041】請求項2、3に記載の発明によれば、ホス
トは、ネットワーク上を流れるパケットを監視すること
により、接続されたネットワークがどのネットワーク番
号を使用しているかを判定して、自アドレスを自動的に
割り当てるか否かを決定することができるので、自動割
り当てを行うのが適切な場合にのみアドレス自動割り当
てを行うことができ、また、ネットワーク上を流れるパ
ケット内の送信元のIPアドレスまたは宛先のIPアド
レスに含まれるネットワーク番号を使用して、自アドレ
スを決定することができるので、有効なIPアドレスを
自アドレスとして割り当てることができる。
According to the second and third aspects of the present invention, the host monitors a packet flowing on the network to determine which network number the connected network uses, and Can be determined automatically or not, so that the address can be automatically allocated only when it is appropriate to perform the automatic allocation, and the source IP address in the packet flowing on the network can be determined. Alternatively, since the own address can be determined using the network number included in the destination IP address, a valid IP address can be assigned as the own address.

【0042】請求項4、5に記載の本発明によれば、前
記ホストは、ネットワーク上を流れるブロードキャスト
パケットを監視することにより、接続されたネットワー
クがどのネットワーク番号を使用しているかを判定し
て、自アドレスを自動的に割り当てるか否かを決定する
ことができるので、効率的に判定を行うことができ、ま
た、ネットワーク上を流れるブロードキャストパケット
内の送信元のIPアドレスに含まれるネットワーク番号
を使用して、自アドレスを決定することができるので、
有効なIPアドレスを自アドレスとして割り当てること
ができる。
According to the present invention, the host monitors broadcast packets flowing on the network to determine which network number is used by the connected network. Since it is possible to determine whether or not to automatically assign its own address, it is possible to make an efficient determination, and to determine the network number included in the source IP address in the broadcast packet flowing on the network. And use it to determine your own address.
A valid IP address can be assigned as the own address.

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

【図1】本発明の一実施形態によるIPアドレス自動割
り当て処理を説明するフローチャートである。
FIG. 1 is a flowchart illustrating an IP address automatic assignment process according to an embodiment of the present invention.

【図2】IPアドレスの自動割り当て機能を備えたホス
トをネットワークに新たに接続する状態を示す図であ
る。
FIG. 2 is a diagram illustrating a state in which a host having an automatic IP address assignment function is newly connected to a network.

【図3】TCP/IPネットワークでのデータ転送の基
本単位であるIPパケットのフォーマットを示す図であ
る。
FIG. 3 is a diagram showing a format of an IP packet which is a basic unit of data transfer in a TCP / IP network.

【図4】IPアドレスの自動割り当て機能を備えたホス
トCを前述とは異なる構成のネットワークに新たに接続
する状態を示す図である。
FIG. 4 is a diagram showing a state in which a host C having an automatic IP address assignment function is newly connected to a network having a configuration different from that described above.

【図5】従来技術によるIPアドレス自動割り当て処理
を説明するフローチャートである。
FIG. 5 is a flowchart illustrating an IP address automatic assignment process according to the related art.

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

1、2 ネットワーク A〜E ホスト 1, 2 Network A to E Host

フロントページの続き Fターム(参考) 5B089 GA01 GB02 JB14 KA04 KB04 KB06 KC59 MB01 5K030 GA08 GA11 HA08 HC01 HC14 HD03 HD09 KA04 KA05 KA13 MA04 MD04 MD09 5K033 AA03 CB01 CB13 CC01 DA05 EA03 EA06 EA07 EC01 EC03Continued on the front page F term (reference) 5B089 GA01 GB02 JB14 KA04 KB04 KB06 KC59 MB01 5K030 GA08 GA11 HA08 HC01 HC14 HD03 HD09 KA04 KA05 KA13 MA04 MD04 MD09 5K033 AA03 CB01 CB13 CC01 DA05 EA03 EA06 EA07 EC03

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 ネットワーク番号部とホスト番号部とか
らなるアドレスを使用するネットワークに接続されるホ
ストが、自動割り当て用に予め予約されたネットワーク
番号とネットワーク上で一意となる任意のホスト番号と
を自アドレスとして自動的に割り当てるアドレス自動割
り当て方法において、 前記ホストは、接続されたネットワークが自動割り当て
用に予め予約されたネットワーク番号を使用している場
合に、自アドレスを自動的に割り当てることを特徴とす
るアドレス自動割り当て方法。
1. A host connected to a network using an address consisting of a network number part and a host number part determines a network number reserved in advance for automatic allocation and an arbitrary host number unique on the network. In the address auto-assignment method for automatically assigning a self-address, the host automatically assigns a self-address when a connected network uses a network number reserved in advance for automatic assignment. Address automatic assignment method.
【請求項2】 前記ホストは、ネットワーク上を流れる
パケットを監視することにより、接続されたネットワー
クがどのネットワーク番号を使用しているかを判定し
て、自アドレスを自動的に割り当てるか否かを決定する
ことを特徴とする請求項1記載のアドレス自動割り当て
方法。
2. The host monitors packets flowing on the network to determine which network number the connected network uses, and determines whether to automatically assign its own address. 2. The method according to claim 1, further comprising the step of:
【請求項3】 前記ホストは、ネットワーク上を流れる
パケット内の送信元のIPアドレスまたは宛先のIPア
ドレスに含まれるネットワーク番号を使用して、自アド
レスを決定することを特徴とする請求項2記載のアドレ
ス自動割り当て方法。
3. The host according to claim 2, wherein the host determines its own address using a network number included in a source IP address or a destination IP address in a packet flowing on the network. Address automatic assignment method.
【請求項4】 前記ホストは、ネットワーク上を流れる
ブロードキャストパケットを監視することにより、接続
されたネットワークがどのネットワーク番号を使用して
いるかを判定して、自アドレスを自動的に割り当てるか
否かを決定することを特徴とする請求項1記載のアドレ
ス自動割り当て方法。
4. The host monitors a broadcast packet flowing on the network to determine which network number the connected network uses, and determines whether or not to automatically allocate its own address. The method according to claim 1, wherein the address is determined.
【請求項5】 前記ホストは、ネットワーク上を流れる
ブロードキャストパケット内の送信元のIPアドレスに
含まれるネットワーク番号を使用して、自アドレスを決
定することを特徴とする請求項4記載のアドレス自動割
り当て方法。
5. The automatic address allocation according to claim 4, wherein the host determines its own address using a network number included in a source IP address in a broadcast packet flowing on a network. Method.
JP2001032794A 2001-02-08 2001-02-08 Automatic address assignment method Expired - Fee Related JP3892235B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001032794A JP3892235B2 (en) 2001-02-08 2001-02-08 Automatic address assignment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001032794A JP3892235B2 (en) 2001-02-08 2001-02-08 Automatic address assignment method

Publications (2)

Publication Number Publication Date
JP2002237816A true JP2002237816A (en) 2002-08-23
JP3892235B2 JP3892235B2 (en) 2007-03-14

Family

ID=18896662

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001032794A Expired - Fee Related JP3892235B2 (en) 2001-02-08 2001-02-08 Automatic address assignment method

Country Status (1)

Country Link
JP (1) JP3892235B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005217975A (en) * 2004-01-30 2005-08-11 Canon Inc Communication device, image pickup device and control method thereof
JP2006246412A (en) * 2005-03-07 2006-09-14 Canon Inc Information processing apparatus, information processing method, and program
JP2007251873A (en) * 2006-03-20 2007-09-27 Meidensha Corp Ip address allocation method
US7979553B2 (en) 2004-01-30 2011-07-12 Canon Kabushiki Kaisha Electronic device and control method therefor
JP2015012603A (en) * 2013-06-26 2015-01-19 モダコム カンパニー リミテッド Network mode selection method and apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101365002B (en) * 2007-08-07 2012-11-21 友讯科技股份有限公司 Method for obtaining double network protocol address by plug and use network apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005217975A (en) * 2004-01-30 2005-08-11 Canon Inc Communication device, image pickup device and control method thereof
US7925772B2 (en) 2004-01-30 2011-04-12 Canon Kabushiki Kaisha Communication apparatus, image sensing apparatus, and control method therefor
US7979553B2 (en) 2004-01-30 2011-07-12 Canon Kabushiki Kaisha Electronic device and control method therefor
JP2006246412A (en) * 2005-03-07 2006-09-14 Canon Inc Information processing apparatus, information processing method, and program
JP2007251873A (en) * 2006-03-20 2007-09-27 Meidensha Corp Ip address allocation method
JP2015012603A (en) * 2013-06-26 2015-01-19 モダコム カンパニー リミテッド Network mode selection method and apparatus

Also Published As

Publication number Publication date
JP3892235B2 (en) 2007-03-14

Similar Documents

Publication Publication Date Title
JP4664143B2 (en) Packet transfer apparatus, communication network, and packet transfer method
US6925079B2 (en) IP address duplication detection method using address resolution protocol
US6061739A (en) Network address assignment using physical address resolution protocols
KR100544395B1 (en) Apparatus connected to network, storage medium and address determination method
US5922049A (en) Method for using DHCP and marking to override learned IP addesseses in a network
JP4142960B2 (en) System and method for searching for devices on a local area network
US7152099B1 (en) Friend configuration and method for network devices
US6195706B1 (en) Methods and apparatus for determining, verifying, and rediscovering network IP addresses
JP2002368763A (en) Network system, server unit and client unit, and method and program for providing network ip address
US8605582B2 (en) IP network system and its access control method, IP address distributing device, and IP address distributing method
US7467405B2 (en) Method and apparatus for detecting an unauthorized client in a network of computer systems
KR101352852B1 (en) Method for allocating IP address using DHCP in an image forming apparatus, Image forming apparatus thereof, and System for allocating IP address using DHCP
US20080028071A1 (en) Communication load reducing method and computer system
US20030056008A1 (en) Automatic remote assignment of internet protocol address information to a network device
JP2006033830A (en) Power saving in wireless packet based network
US20060193330A1 (en) Communication apparatus, router apparatus, communication method and computer program product
JP3892235B2 (en) Automatic address assignment method
JP6134954B1 (en) Network security device, network management method, and program
Cisco AppleTalk Commands
Cisco AppleTalk Commands
KR20030093428A (en) Apparatus for assignment of DHCP dynamic IP address and Method therefor
JP2003296208A (en) Server system, service providing method using server system, program for receiving service from server system, and recording medium recorded with the program
KR100513296B1 (en) Apparatus, system and method for controlling network access
KR100470422B1 (en) Illegal dhcp server control method
JP2004207788A (en) Access control method, access controller, and access control system using the same

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041216

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060703

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060711

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060911

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20061128

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061206

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

Free format text: PAYMENT UNTIL: 20101215

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101215

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111215

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111215

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121215

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20131215

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees