JP2000316016A - Dhcp server - Google Patents

Dhcp server

Info

Publication number
JP2000316016A
JP2000316016A JP11124776A JP12477699A JP2000316016A JP 2000316016 A JP2000316016 A JP 2000316016A JP 11124776 A JP11124776 A JP 11124776A JP 12477699 A JP12477699 A JP 12477699A JP 2000316016 A JP2000316016 A JP 2000316016A
Authority
JP
Japan
Prior art keywords
address
source
registered
network
dhcp server
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
JP11124776A
Other languages
Japanese (ja)
Inventor
Kiyonobu Terada
清伸 寺田
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.)
Hitachi Cable Ltd
Original Assignee
Hitachi Cable 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 Hitachi Cable Ltd filed Critical Hitachi Cable Ltd
Priority to JP11124776A priority Critical patent/JP2000316016A/en
Publication of JP2000316016A publication Critical patent/JP2000316016A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To obtain a DHCP(dynamic host configuration protocol) with an excellent function of preventing double assignment. SOLUTION: The DHCP server 101 is a server that has a port connected to a network, registers a plurality of IP addresses available on the network in an assignment information table in advance and assigns the IP address registered in the assignment information table to a communication terminal on the network. In this case, the server extracts a sender IP address in a frame received at a port, registers the address to a sender IP address database and does not assign the IP address registered in the sender IP address database when assigning the IP address to a communication terminal.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ネットワーク上の
通信端末にIPアドレスを割り当てるDHCPサーバに
係り、特に、二重割り当ての防止機能に優れたDHCP
サーバに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DHCP server which assigns an IP address to a communication terminal on a network, and more particularly to a DHCP server which has a function of preventing double assignment.
It is about the server.

【0002】[0002]

【従来の技術】DHCP(Dynamic Host Configration P
rotocol,RFS2131)サーバは、予め割り当て用に登録され
た複数個のIP(Internet Protocol) アドレスを有し、
DHCPクライアントである端末から要求を受信する
と、そのクライアントにIPアドレスを割り当てる機能
を備えている。
2. Description of the Related Art DHCP (Dynamic Host Configuration P
rotocol, RFS2131) server has a plurality of IP (Internet Protocol) addresses registered for allocation in advance,
When a request is received from a terminal which is a DHCP client, the terminal has a function of assigning an IP address to the client.

【0003】割り当て処理の手順を説明すると、まず、
DHCPサーバは、サーバ内部に登録してあるIPアド
レス群の中から未だどのクライアントにも割り当ててな
いIPアドレスを選択する。次に、選択したIPアドレ
スが既にネットワーク上で使用されているかどうかを知
るために、そのIPアドレス宛てにICMP(Internet
Control Massage Protocol) エコー要求を送信する。そ
の後、一定時間内にこの要求に対する応答が得られなか
った場合は、そのIPアドレスを使用している端末がネ
ットワーク上に存在しないと判断し、そのIPアドレス
を要求のあったクライアントに割り当てる。一定時間内
に応答があった場合には、そのIPアドレスは割り当て
ずに、別のIPアドレスを選択して同様にICMPエコ
ーチェックを行う。以上のような処理がクライアントか
らの要求に応じて繰り返し行われる。
[0003] The procedure of the allocation process will be described first.
The DHCP server selects an IP address that has not been assigned to any client yet from a group of IP addresses registered inside the server. Next, in order to know whether or not the selected IP address is already used on the network, an ICMP (Internet
Control Massage Protocol) Sends an echo request. Thereafter, if a response to this request is not obtained within a predetermined time, it is determined that the terminal using the IP address does not exist on the network, and the IP address is assigned to the requesting client. If there is a response within a certain period of time, another IP address is selected without assigning the IP address, and the ICMP echo check is similarly performed. The above processing is repeatedly performed in response to a request from the client.

【0004】[0004]

【発明が解決しようとする課題】従来技術において、D
HCPサーバはIPアドレスの二重割り当ての防止のた
めにICMPエコーチェックを行っているが、割り当て
ようとしているIPアドレスが既に他の端末で使用され
ており、かつ一時的にその端末がダウン状態にある場合
は、ICMPエコー要求に対する応答がないので、その
IPアドレスを要求のあったクライアントに割り当てて
しまう。この後、ダウン状態だった端末が復帰した場
合、ネットワーク上に同じIPアドレスを持つ複数の端
末が存在することになり、ネットワーク上の端末間の通
信が正常に行われなくなる。
SUMMARY OF THE INVENTION In the prior art, D
The HCP server performs an ICMP echo check to prevent duplicate assignment of IP addresses, but the IP address to be assigned is already used by another terminal, and that terminal temporarily goes down. In some cases, since there is no response to the ICMP echo request, the IP address is assigned to the requesting client. Thereafter, when the terminal in the down state returns, a plurality of terminals having the same IP address exist on the network, and communication between the terminals on the network cannot be performed normally.

【0005】そこで、本発明の目的は、上記課題を解決
し、二重割り当ての防止機能に優れたDHCPサーバを
提供することにある。
Accordingly, an object of the present invention is to solve the above-mentioned problems and to provide a DHCP server having an excellent function of preventing double assignment.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に本発明は、ネットワークに接続するポートを有し、ネ
ットワーク上で使用可能な複数個のIPアドレスを予め
割り当て情報テーブルに登録し、割り当て情報テーブル
に登録してあるIPアドレスをネットワーク上の通信端
末に割り当てるDHCPサーバにおいて、ポートで受信
されるフレームの送信元IPアドレスを抽出して送信元
IPアドレスデータベースに登録し、通信端末にIPア
ドレスを割り当てるときに、送信元IPアドレスデータ
ベースに登録されているIPアドレスは割り当てないも
のである。
SUMMARY OF THE INVENTION In order to achieve the above object, according to the present invention, a plurality of IP addresses having a port connected to a network and usable on the network are registered in advance in an assignment information table, and assigned. In a DHCP server that assigns an IP address registered in the information table to a communication terminal on a network, a source IP address of a frame received at a port is extracted and registered in a source IP address database, and the IP address is assigned to the communication terminal. Is assigned, the IP address registered in the source IP address database is not assigned.

【0007】送信元IPアドレスデータベースに登録さ
れているIPアドレスがポートで受信されるフレームか
ら一定時間抽出されないときには、そのIPアドレスを
送信元IPアドレスデータベースから削除し、送信元I
Pアドレスデータベースに登録されているIPアドレス
がポートで受信されるフレームから抽出されたときに
は、そのIPアドレスの削除を延期してもよい。
When an IP address registered in the source IP address database is not extracted from a frame received at a port for a certain period of time, the IP address is deleted from the source IP address database and the source I address is deleted.
When an IP address registered in the P address database is extracted from a frame received at a port, the deletion of the IP address may be postponed.

【0008】[0008]

【発明の実施の形態】以下、本発明の一実施形態を添付
図面に基づいて詳述する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the accompanying drawings.

【0009】図1に示されるように、本発明に係るDH
CPサーバ101がネットワークに接続されている。こ
のネットワークに端末111,112,113,11
4,121,122が接続されるものとする。
As shown in FIG. 1, the DH according to the present invention
The CP server 101 is connected to a network. The terminals 111, 112, 113, 11
4, 121, 122 are connected.

【0010】DHCPサーバ101は、割り当て用のI
Pアドレスを内部の割り当て情報テーブルに予め登録し
ており、クライアントから要求を受信したときには、そ
のクライアントにIPアドレスを割り当てる機能を備え
ている。
[0010] The DHCP server 101 sends an I
The P address is registered in the internal assignment information table in advance, and has a function of assigning an IP address to the client when a request is received from the client.

【0011】この機能において、DHCPサーバ101
は、内部に送信元IPアドレスデータベースを備え、常
にポートで受信するフレームから送信元IPアドレスを
抽出し、そのIPアドレスが送信元IPアドレスデータ
ベースに登録されていなければ登録する。その後、一定
時間経過しても同じ送信元IPアドレスを持つフレーム
が受信されなければ、そのIPアドレスは送信元IPア
ドレスデータベースから削除する。一定時間経過する前
に、同じ送信元IPアドレスを持つフレームが受信され
た場合は、さらに一定時間まで延長してその登録を維持
する。
In this function, the DHCP server 101
Has a source IP address database inside, always extracts a source IP address from a frame received at a port, and registers the IP address if it is not registered in the source IP address database. Thereafter, if a frame having the same source IP address is not received even after a certain period of time, the IP address is deleted from the source IP address database. If a frame having the same transmission source IP address is received before the fixed time has elapsed, the registration is further extended to a certain time and maintained.

【0012】DHCPサーバ101は、IPアドレスを
割り当てる際には、割り当て情報テーブルから未割り当
てのIPアドレスを選択し、さらに、送信元IPアドレ
スデータベースを参照し、そのIPアドレスが送信元I
Pアドレスデータベースに登録されていれば割り当て情
報テーブルからの選択をやり直し、送信元IPアドレス
データベースに登録していないIPアドレスが選択され
るようにする。DHCPサーバ101は、そのIPアド
レスについてICMPエコー要求チェックを行って重複
がないことを確認し、確認されたIPアドレスをクライ
アントに割り当てる。
When assigning an IP address, the DHCP server 101 selects an unassigned IP address from an assignment information table, further refers to a source IP address database, and determines that the IP address is
If the IP address is registered in the P address database, the selection from the assignment information table is repeated, so that an IP address not registered in the transmission source IP address database is selected. The DHCP server 101 performs an ICMP echo request check on the IP address to confirm that there is no overlap, and allocates the confirmed IP address to the client.

【0013】ここで、DHCPサーバ101のIPアド
レスを172.17.51.1とし、DHCPクライア
ント機能を持たない端末121,122のIPアドレス
をそれぞれ172.17.51.102,172.1
7.51.103とする。また、DHCPサーバ101
には割り当て用IPアドレスとして172.17.5
1.100〜172.17.51.199が登録されて
おり、既にDHCPクライアント機能を持つ端末11
1,112には、DHCPサーバ101からIPアドレ
ス172.17.51.100,172.17.51.
101が割り当てられているものとする。
Here, the IP address of the DHCP server 101 is 172.17.51.1, and the IP addresses of the terminals 121 and 122 having no DHCP client function are 172.17.5.102 and 172.1, respectively.
It is 7.51.103. Also, the DHCP server 101
172.17.5 as the IP address for assignment
1.100 to 172.17.51.199 are registered, and the terminal 11 already has a DHCP client function.
1, 112, the IP addresses 172.17.51.100, 172.17.51.
It is assumed that 101 is assigned.

【0014】このときのDHCPサーバ101内部の割
り当て情報テーブルの内容を図2に示す。図2は、IP
アドレス172.17.51.100,172.17.
51.101が割り当て済みであり、それ以外のIPア
ドレスが未割り当てであることを示している。
FIG. 2 shows the contents of the assignment information table inside the DHCP server 101 at this time. Figure 2 shows the IP
Address 172.17.51.100, 172.17.
51.101 has been assigned, and other IP addresses have not been assigned.

【0015】端末111,112,121,122は動
作中であるものとする。これらの端末111,112,
113は互いにフレームを送信しあうため、DHCPサ
ーバ101内部の送信元IPアドレスデータベースは図
3のようになる。即ち、IPアドレス172.17.5
1.100,172.17.51.101,172.1
7.51.102,172.17.51.103が登録
される。この送信元IPアドレスデータベースにおける
登録期限は30秒であるから、登録残り時間は登録時点
で30秒であり、1秒経過毎に登録残り時間が1づつ減
算され、登録残り時間が0になると登録が削除される。
登録残り時間が残っているときに同じ送信元IPアドレ
スを持つフレームが受信された場合には、登録残り時間
は30秒に初期化される。
It is assumed that the terminals 111, 112, 121 and 122 are operating. These terminals 111, 112,
113 transmit frames to each other, the source IP address database inside the DHCP server 101 is as shown in FIG. That is, the IP address 172.17.5
1.100, 172.17.5.101, 172.1
7.5.102, 172.17.5.103 are registered. Since the registration deadline in the source IP address database is 30 seconds, the remaining registration time is 30 seconds at the time of registration, and the remaining registration time is decremented by one every elapse of one second. Is deleted.
If a frame having the same source IP address is received when the remaining registration time remains, the remaining registration time is initialized to 30 seconds.

【0016】ここで、端末121にマシントラブルが発
生し、端末121の再起動処理が行われているものとす
る。又は、端末121が高負荷状態のため、ICMPエ
コー応答を返せない状況にあるものとする。このとき端
末113が起動され、DHCPサーバ101にアドレス
割り当て要求を送信したとする。
Here, it is assumed that a machine trouble has occurred in the terminal 121 and the terminal 121 is being restarted. Alternatively, it is assumed that the terminal 121 is in a state of being unable to return an ICMP echo response due to a high load state. At this time, it is assumed that the terminal 113 is activated and transmits an address assignment request to the DHCP server 101.

【0017】従来技術の場合、もしIPアドレス17
2.17.51.102が割り当て情報テーブルから選
択されると、IPアドレス172.17.51.102
宛てにICMPエコー要求が送信され、この要求に対す
る応答が一定時間内に得られないため、端末121がネ
ットワーク上に存在しないと判断される。このようにI
CMPエコーチェックによりIPアドレス172.1
7.51.102の割り当てが可と判断されるため、端
末113にこのIPアドレス172.17.51.10
2が割り当てられてしまう。
In the case of the prior art, if the IP address 17
When 2.17.5.102 is selected from the assignment information table, the IP address 172.17.5.102 is selected.
Since an ICMP echo request is transmitted to the address and a response to this request cannot be obtained within a predetermined time, it is determined that the terminal 121 does not exist on the network. Thus I
IP address 172.1 by CMP echo check
Since it is determined that the assignment of 7.51.102 is possible, this IP address 172.17.5.10.
2 is assigned.

【0018】これに対し本発明では、図4に示されるよ
うに、DHCPサーバ101が図2の割り当て情報テー
ブルから未割り当てのIPアドレスを選択し、さらに図
3の送信元IPアドレスデータベースに登録されていな
いIPアドレスを選択するので、例えば、IPアドレス
172.17.51.104が選択される。次に、DH
CPサーバ101は、IPアドレス172.17.5
1.104についてICMPエコーチェックを行う。即
ち、割り当てが可と判断されれば端末113にこのIP
アドレス172.17.51.104を割り当てる。
On the other hand, in the present invention, as shown in FIG. 4, the DHCP server 101 selects an unassigned IP address from the assignment information table shown in FIG. 2, and is registered in the source IP address database shown in FIG. Since an IP address that has not been selected is selected, for example, the IP address 172.17.5.104 is selected. Next, DH
The CP server 101 has an IP address of 172.17.5.
Perform ICMP echo check for 1.104. That is, if it is determined that the assignment is possible, the terminal 113
Assign the address 172.17.5.104.

【0019】また、DHCPクライアントである端末を
一時停止させ、その端末のIPアドレスを直ちに別の端
末に割り当てる場合を考慮し、そのような場合にはDH
CPサーバ101がIPアドレス割り当て時に図3の送
信元IPアドレスデータベースを参照しないように設定
し、従来技術を使用することも可能である。
Considering a case where a terminal which is a DHCP client is temporarily stopped and the IP address of the terminal is immediately assigned to another terminal, in such a case, the DHCP
It is also possible to set the CP server 101 so as not to refer to the source IP address database of FIG. 3 at the time of IP address assignment, and to use a conventional technique.

【0020】[0020]

【発明の効果】本発明は次の如き優れた効果を発揮す
る。
The present invention exhibits the following excellent effects.

【0021】(1)一時的に端末がダウン状態にあって
も、それ以前の正常時に通信を行っていればその端末の
IPアドレスは割り当てに使用されないことになり、二
重割り当てが従来よりいっそうよく防止され、ネットワ
ーク上の通信障害が防止されることになる。
(1) Even if the terminal is temporarily in a down state, if communication is performed at a normal time before that, the IP address of the terminal will not be used for allocation, and double allocation will be more difficult than before. It is well prevented and communication failure on the network is prevented.

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

【図1】本発明の一実施形態を示すDHCPサーバを接
続したネットワークの構成図である。
FIG. 1 is a configuration diagram of a network to which a DHCP server according to an embodiment of the present invention is connected.

【図2】本発明のDHCPサーバの割り当て情報テーブ
ルを示す図である。
FIG. 2 is a diagram showing an assignment information table of a DHCP server according to the present invention.

【図3】本発明のDHCPサーバの送信元IPアドレス
データベースを示す図である。
FIG. 3 is a diagram showing a source IP address database of the DHCP server of the present invention.

【図4】本発明のDHCPサーバがアドレス割り当て要
求を受信したときの処理の流れ図である。
FIG. 4 is a flowchart of a process when the DHCP server of the present invention receives an address assignment request.

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

101 DHCPサーバ 111,112,113,114 端末(DHCPクラ
イアント) 121,122 端末(非DHCPクライアント)
101 DHCP server 111, 112, 113, 114 Terminal (DHCP client) 121, 122 Terminal (non-DHCP client)

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ネットワークに接続するポートを有し、
ネットワーク上で使用可能な複数個のIPアドレスを予
め割り当て情報テーブルに登録し、割り当て情報テーブ
ルに登録してあるIPアドレスをネットワーク上の通信
端末に割り当てるDHCPサーバにおいて、ポートで受
信されるフレームの送信元IPアドレスを抽出して送信
元IPアドレスデータベースに登録し、通信端末にIP
アドレスを割り当てるときに、送信元IPアドレスデー
タベースに登録されているIPアドレスは割り当てない
ことを特徴とするDHCPサーバ。
1. A device having a port connected to a network,
Transmission of a frame received by a port in a DHCP server that registers a plurality of IP addresses usable on a network in advance in an assignment information table and assigns the IP addresses registered in the assignment information table to communication terminals on the network. The source IP address is extracted and registered in the source IP address database, and the IP
A DHCP server, wherein when assigning an address, an IP address registered in a source IP address database is not assigned.
【請求項2】 送信元IPアドレスデータベースに登録
されているIPアドレスがポートで受信されるフレーム
から一定時間抽出されないときには、そのIPアドレス
を送信元IPアドレスデータベースから削除し、送信元
IPアドレスデータベースに登録されているIPアドレ
スがポートで受信されるフレームから抽出されたときに
は、そのIPアドレスの削除を延期することを特徴とす
る請求項1記載のDHCPサーバ。
2. When an IP address registered in a source IP address database is not extracted from a frame received at a port for a certain period of time, the IP address is deleted from the source IP address database, and is deleted from the source IP address database. 2. The DHCP server according to claim 1, wherein when a registered IP address is extracted from a frame received at the port, deletion of the IP address is postponed.
JP11124776A 1999-04-30 1999-04-30 Dhcp server Pending JP2000316016A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11124776A JP2000316016A (en) 1999-04-30 1999-04-30 Dhcp server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11124776A JP2000316016A (en) 1999-04-30 1999-04-30 Dhcp server

Publications (1)

Publication Number Publication Date
JP2000316016A true JP2000316016A (en) 2000-11-14

Family

ID=14893841

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11124776A Pending JP2000316016A (en) 1999-04-30 1999-04-30 Dhcp server

Country Status (1)

Country Link
JP (1) JP2000316016A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007093100A1 (en) * 2006-02-17 2007-08-23 Huawei Technologies Co., Ltd. A method for binding the address of the user terminal in the access equipment
WO2009104482A1 (en) * 2008-02-19 2009-08-27 日本電気株式会社 Apparatus for determining address, communication system, method and program for determining the address

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007093100A1 (en) * 2006-02-17 2007-08-23 Huawei Technologies Co., Ltd. A method for binding the address of the user terminal in the access equipment
US8812691B2 (en) 2006-02-17 2014-08-19 Huawei Technologies Co., Ltd. Method for binding an address of a user terminal in an access equipment
WO2009104482A1 (en) * 2008-02-19 2009-08-27 日本電気株式会社 Apparatus for determining address, communication system, method and program for determining the address
JP5392097B2 (en) * 2008-02-19 2014-01-22 日本電気株式会社 Address determining apparatus, communication system, address determining method and program
US9497067B2 (en) 2008-02-19 2016-11-15 Nec Corporation Address determination apparatus, communication system, address determination method, and program

Similar Documents

Publication Publication Date Title
USRE42078E1 (en) Method for preventing IP address cheating in dynamic address allocation
Droms Dynamic host configuration protocol
Droms RFC2131: Dynamic Host Configuration Protocol
US9847967B2 (en) DHCP proxy in a subscriber environment
US9800457B2 (en) Network management
US8125993B2 (en) Network element having a DHCP lease timer
US6128664A (en) Address-translating connection device
US7318101B2 (en) Methods and apparatus supporting configuration in a network
US20030126262A1 (en) Method for assigning setting information for conection to external network
JPH11308273A (en) Mobile computer device, device and method for mobile computer management and communication control method
US20050271049A1 (en) DHCP cache method and apparatus
US7239643B2 (en) Method for assigning setting information for connection to external network
US7529815B2 (en) Methods and apparatus supporting configuration in a network
Droms RFC1541: Dynamic Host Configuration Protocol
JP2003273896A (en) Ddns server, ddns client terminal and ddns system
JP2000316016A (en) Dhcp server
KR100355288B1 (en) Apparatus and method for providing service server functionality to the hosts of a private network
JP2001189761A (en) Remote access server device
JP3775378B2 (en) Firewall system that supports dynamic IP address assignment
JP2000316002A (en) Dynamic host configuration server and dynamic host configuration method
EP1355476A1 (en) Processing device for address allocation
JP2004193643A (en) Ip address automatic assignment method / program, and terminal
WO2001086908A1 (en) Method for an automatic allocation of ip addresses
JPH1188434A (en) Method for setting ip address
JP2002164904A (en) Dhcp server