JP2007096863A - Client device, server device, and communication system - Google Patents

Client device, server device, and communication system Download PDF

Info

Publication number
JP2007096863A
JP2007096863A JP2005284600A JP2005284600A JP2007096863A JP 2007096863 A JP2007096863 A JP 2007096863A JP 2005284600 A JP2005284600 A JP 2005284600A JP 2005284600 A JP2005284600 A JP 2005284600A JP 2007096863 A JP2007096863 A JP 2007096863A
Authority
JP
Japan
Prior art keywords
identifier
client
dhcp
address
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.)
Granted
Application number
JP2005284600A
Other languages
Japanese (ja)
Other versions
JP4745008B2 (en
Inventor
Nobuhiko Arashin
伸彦 荒新
Tomonori Shiomi
智則 塩見
Osamu Tanaka
治 田中
Hiroyuki Watanabe
寛如 渡邊
Toyoo Yamada
豊士 山田
Masahiko Nagoshi
方彦 名越
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2005284600A priority Critical patent/JP4745008B2/en
Publication of JP2007096863A publication Critical patent/JP2007096863A/en
Application granted granted Critical
Publication of JP4745008B2 publication Critical patent/JP4745008B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To allocate IP address systems after easily dividing them even under an environment of no DHCP relay device. <P>SOLUTION: A client device inserts a client identifier into an option field provided to an address request message transmitted to a server device, and transmits the address request message to a DHCP server device. In response to it, the client device receives an address response message including a network address transmitted from the DHCP server device in response to the address request message and allocated to the client device, and a server identifier of the server device; judges whether or not the server identifier included in the received address response message is coincident with the server identifier stored in a storage means; and sets the network address included in the address response message into the client device when the server identifiers are coincident with each other. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、例えばDHCP(Dynamic Host Configuration Protocol)を用いたIPアドレスの要求、割り当て及び設定を行う、クライアント装置とサーバ装置とからなる通信システムに関する。 The present invention relates to a communication system including a client device and a server device that requests, assigns, and sets an IP address using, for example, DHCP (Dynamic Host Configuration Protocol).

例えば、特許文献1において、DHCPクライアント装置1が複数のインターフェースを持ち、またそれぞれのインターフェースが異なるIPサブネットワークに属する場合にも、単独のDHCPサーバ装置ですべてのインターフェースにIPアドレスを割り当てる方法(以下、従来例という。)が開示されている。   For example, in Patent Document 1, even when the DHCP client device 1 has a plurality of interfaces and each interface belongs to a different IP subnetwork, a method for assigning IP addresses to all the interfaces with a single DHCP server device (hereinafter referred to as the following) , Referred to as a conventional example).

図5は従来例に係る拡張DHCPクライアント装置101の構成を示すブロック図であり、図6は従来例に係る拡張DHCPサーバ装置103の構成を示すブロック図である。また、図7は図5の拡張DHCPクライアント装置101によって実行される処理を示すフローチャートであり、図8は図6の拡張DHCPサーバ装置103によって実行される処理を示すフローチャートである。   FIG. 5 is a block diagram showing a configuration of the extended DHCP client apparatus 101 according to the conventional example, and FIG. 6 is a block diagram showing a configuration of the extended DHCP server apparatus 103 according to the conventional example. 7 is a flowchart showing a process executed by the extended DHCP client apparatus 101 in FIG. 5, and FIG. 8 is a flowchart showing a process executed by the extended DHCP server apparatus 103 in FIG.

以下、従来例に係る通信システムにおけるIP割り当て動作について図5乃至図8を参照して説明する。   Hereinafter, an IP allocation operation in the communication system according to the conventional example will be described with reference to FIGS.

DHCPクライアント装置1が起動すると、まず最初に、IPアドレスを要求するためのDHCPメッセージであるDHCP DISCOVERメッセージをインターフェース部111,112,113から送信する。拡張DHCPクライアント処理手段123が起動すると、MAC処理部117のMACアドレスを取得し(図7のステップS101)、他のインターフェース部112,113のMAC処理部118,119のMACアドレスをそれぞれ取得する(図7のステップS102)。拡張DHCPクライアント処理手段123はDHCP DISCOVERメッセージを生成し(図7のステップS103)、MAC処理部117のMACアドレスをDHCPメッセージのchaddrフィールドに、MAC処理部115,116のMACアドレスをDHCPメッセージのoptionsフィールドにそれぞれ挿入し(図7のステップS104,S105)、UDP処理手段122、IP処理手段121、LLC処理手段120、MAC処理部117、フレーム入出力部114を経由して伝送路100にDHCP DISCOVERメッセージを送信する(図7のステップS106)。   When the DHCP client device 1 is activated, first, a DHCP DISCOVER message, which is a DHCP message for requesting an IP address, is transmitted from the interface units 111, 112, and 113. When the extended DHCP client processing means 123 is activated, the MAC address of the MAC processing unit 117 is acquired (step S101 in FIG. 7), and the MAC addresses of the MAC processing units 118 and 119 of the other interface units 112 and 113 are acquired ( Step S102 in FIG. 7). The extended DHCP client processing unit 123 generates a DHCP DISCOVER message (step S103 in FIG. 7), the MAC address of the MAC processing unit 117 is set to the chaddr field of the DHCP message, and the MAC addresses of the MAC processing units 115 and 116 are options of the DHCP message. Each is inserted into the field (steps S104 and S105 in FIG. 7), and the DHCP DISCOVER is transferred to the transmission line 100 via the UDP processing unit 122, the IP processing unit 121, the LLC processing unit 120, the MAC processing unit 117, and the frame input / output unit 114. A message is transmitted (step S106 in FIG. 7).

拡張DHCPクライアント処理手段123は使用できるIPアドレスが含まれるDHCPメッセージであるDHCP OFFERメッセージを受信するまで待機する(図7のステップS107)。インターフェース部112,113からDHCP DISCOVERメッセージを送信する場合も、上記と同様の手順で行われる。インターフェース部112から送信する場合には上記のMAC処理部117をMAC処理部118と読み替え、上記MAC処理部118,119をMAC処理部117,119と読み替える。また、インターフェース部113から送信する場合にはMAC処理部117をMAC処理部119と読み替え、MAC処理部118,119をそれぞれMAC処理部117,118と読み替える。   The extended DHCP client processing unit 123 waits until it receives a DHCP OFFER message that is a DHCP message including a usable IP address (step S107 in FIG. 7). When the DHCP DISCOVER message is transmitted from the interface units 112 and 113, the same procedure as described above is performed. When transmitting from the interface unit 112, the MAC processing unit 117 is replaced with the MAC processing unit 118, and the MAC processing units 118 and 119 are replaced with the MAC processing units 117 and 119. When transmitting from the interface unit 113, the MAC processing unit 117 is replaced with the MAC processing unit 119, and the MAC processing units 118 and 119 are replaced with the MAC processing units 117 and 118, respectively.

拡張DHCPサーバ処理手段137は伝送路100からフレーム入出力部132、MAC処理部133、LLC処理手段134、IP処理手段135、UDP処理手段136を経由してインターフェース部111から送信されたDHCP DISCOVERメッセージを受信する(図8のステップS121)。拡張DHCPサーバ処理手段137はIPアドレス記憶部138を参照し、chaddrフィールドに記述されたMAC処理部117のMACアドレスに対応する1個のIPアドレスを選択する(図8のステップS122)。拡張DHCPサーバ処理手段137は受信したDHCP DISCOVERメッセージのoptionsフィールドにMACアドレスが記述されているかを確認し(図8のステップS123)、IPアドレス記憶部138からoptionsフィールドに記述されたMAC処理部118,119のMACアドレスに対応するIPアドレスをそれぞれ1個(計2個)選択する(図8のステップS124)。拡張DHCPサーバ処理手段137はDHCP OFFERメッセージを生成し(図8のステップS125)、MAC処理部117のMACアドレスに対応するIPアドレスをyiaddrフィールドに、MAC処理部118,119のMACアドレスに対応するIPアドレスをoptionsフィールドにそれぞれ挿入する(図8のステップS126,S127)。   The extended DHCP server processing unit 137 transmits a DHCP DISCOVER message transmitted from the interface unit 111 from the transmission line 100 via the frame input / output unit 132, the MAC processing unit 133, the LLC processing unit 134, the IP processing unit 135, and the UDP processing unit 136. Is received (step S121 in FIG. 8). The extended DHCP server processing unit 137 refers to the IP address storage unit 138 and selects one IP address corresponding to the MAC address of the MAC processing unit 117 described in the chaddr field (step S122 in FIG. 8). The extended DHCP server processing means 137 checks whether or not the MAC address is described in the options field of the received DHCP DISCOVER message (step S123 in FIG. 8), and the MAC processing unit 118 described in the options field from the IP address storage unit 138. , 119, one IP address (two in total) corresponding to the MAC address is selected (step S124 in FIG. 8). The extended DHCP server processing unit 137 generates a DHCP OFFER message (step S125 in FIG. 8), and the IP address corresponding to the MAC address of the MAC processing unit 117 corresponds to the yiadr field and the MAC addresses of the MAC processing units 118 and 119. The IP address is inserted into the options field (steps S126 and S127 in FIG. 8).

拡張DHCPサーバ処理手段137はUDP処理手段136、IP処理手段135、LLC処理手段134、MAC処理部133、フレーム入出力部132を経由して伝送路100にDHCP OFFERメッセージを送信する(図8のステップS128)。拡張DHCPサーバ処理手段137は通知したIPアドレスを使用することを要求するDHCPメッセージであるDHCP REQUESTメッセージを受信するまで待機する(図8のステップS129)。インターフェース部112,113から送信されたDHCP DISCOVERメッセージは拡張DHCPサーバ装置がそれぞれ伝送路に接続されていないため、DHCP OFFERメッセージが返信されない。拡張DHCPクライアント処理手段123は伝送路100からフレーム入出力部114、MAC処理部117、LLC処理手段120、IP処理手段121、UDP処理手段122を経由してDHCP OFFERメッセージを受信する(図7のステップS107)。拡張DHCPクライアント処理手段123はDHCP REQUESTメッセージを生成し(図7のステップS108)、UDP処理手段122、IP処理手段121、LLC処理手段120、MAC処理部117、フレーム入出力部114を経由して伝送路100にDHCP REQUESTメッセージを送信する(図7のステップS109)。拡張DHCPクライアント処理手段123はIPアドレスの使用開始を許可するDHCPメッセージであるDHCP ACKメッセージを受信するまで待機する(図7のステップS110)。   The extended DHCP server processing unit 137 transmits a DHCP OFFER message to the transmission line 100 via the UDP processing unit 136, the IP processing unit 135, the LLC processing unit 134, the MAC processing unit 133, and the frame input / output unit 132 (FIG. 8). Step S128). The extended DHCP server processing unit 137 waits until receiving a DHCP REQUEST message that is a DHCP message requesting to use the notified IP address (step S129 in FIG. 8). The DHCP DISCOVER message transmitted from the interface units 112 and 113 does not return a DHCP OFFER message because the extended DHCP server device is not connected to the transmission path. The extended DHCP client processing means 123 receives the DHCP OFFER message from the transmission path 100 via the frame input / output unit 114, the MAC processing unit 117, the LLC processing means 120, the IP processing means 121, and the UDP processing means 122 (FIG. 7). Step S107). The extended DHCP client processing unit 123 generates a DHCP REQUEST message (step S108 in FIG. 7), and passes through the UDP processing unit 122, the IP processing unit 121, the LLC processing unit 120, the MAC processing unit 117, and the frame input / output unit 114. A DHCP REQUEST message is transmitted to the transmission line 100 (step S109 in FIG. 7). The extended DHCP client processing means 123 waits until it receives a DHCP ACK message that is a DHCP message permitting the start of use of the IP address (step S110 in FIG. 7).

拡張DHCPサーバ処理手段137は伝送路100からフレーム入出力部132、MAC処理部133、LLC処理手段134、IP処理手段135、UDP処理手段136を経由してDHCP REQUESTメッセージを受信する(図8のステップS129)。拡張DHCPサーバ処理手段137はDHCP ACKメッセージを生成し(図8のステップS130)、UDP処理手段136、IP処理手段135、LLC処理手段134、MAC処理部133、フレーム入出力部132を経由して伝送路100にDHCP ACKメッセージを送信し(図8のステップS131)、処理を終了する。   The extended DHCP server processing unit 137 receives the DHCP REQUEST message from the transmission line 100 via the frame input / output unit 132, the MAC processing unit 133, the LLC processing unit 134, the IP processing unit 135, and the UDP processing unit 136 (FIG. 8). Step S129). The extended DHCP server processing unit 137 generates a DHCP ACK message (step S130 in FIG. 8), and passes through the UDP processing unit 136, the IP processing unit 135, the LLC processing unit 134, the MAC processing unit 133, and the frame input / output unit 132. A DHCP ACK message is transmitted to the transmission line 100 (step S131 in FIG. 8), and the process ends.

拡張DHCPクライアント処理手段123は伝送路100からフレーム入出力部14、MAC処理部117、LLC処理手段120、IP処理手段121、UDP処理手段122を経由してDHCP ACKメッセージを受信する(図7のステップS110)。拡張DHCPクライアント処理手段123はyiaddrフィールドに記述されたIPアドレスをIP処理手段121のインターフェース部111用のIPアドレスとして、optionsフィールドに記述されたIPアドレスをそれぞれIP処理手段121のインターフェース部112,113用のIPアドレスとしてそれぞれ設定し(図7のステップS111,S112)、処理を終了する。   The extended DHCP client processing unit 123 receives the DHCP ACK message from the transmission path 100 via the frame input / output unit 14, the MAC processing unit 117, the LLC processing unit 120, the IP processing unit 121, and the UDP processing unit 122 (FIG. 7). Step S110). The extended DHCP client processing unit 123 uses the IP address described in the yaddr field as the IP address for the interface unit 111 of the IP processing unit 121 and uses the IP address described in the options field as the interface units 112 and 113 of the IP processing unit 121, respectively. Are set as IP addresses for use (steps S111 and S112 in FIG. 7), and the process is terminated.

特開2001−094599号公報。JP 2001-094599 A.

しかしながら、従来例の方法では、IPアドレスを割り当てられる通信装置のインターフェースが増設される度にDHCPサーバ装置の設定を変更する必要があり、また、DHCPリレー装置(DHCPリレーエージェントとも呼ばれる。)が無い環境で、異なるIPアドレス体系を割り振る場合、DHCPサーバ装置は接続されるすべての通信装置のIPアドレスとMACアドレスの組を記憶する必要があり、実用的ではない。   However, in the conventional method, it is necessary to change the setting of the DHCP server device every time an interface of a communication device to which an IP address is assigned is added, and there is no DHCP relay device (also called a DHCP relay agent). When allocating different IP address systems in the environment, the DHCP server device needs to store a set of IP addresses and MAC addresses of all communication devices to be connected, which is not practical.

本発明の目的は以上の問題点を解決し、DHCPリレー装置が無い環境下でも容易にIPアドレス体系を分けて割り当てることができるクライアント装置、サーバ装置及び通信システムを提供することにある。   An object of the present invention is to solve the above problems and provide a client device, a server device, and a communication system capable of easily assigning and assigning an IP address system even in an environment without a DHCP relay device.

第1の発明に係るクライアント装置は、DHCPクライアント機能を有するクライアント装置と、上記クライアント装置にネットワークを介して接続されかつDHCPサーバ機能を有するサーバ装置とを備えた通信システムのためのクライアント装置において、
自装置のネットワークアドレス体系を表すクライアント識別子と、それに対応するサーバ識別子とを記憶する記憶手段と、
上記サーバ装置に送信するアドレス要求メッセージに設けられたオプションフィールドに上記クライアント識別子を挿入し、当該アドレス要求メッセージを上記DHCPサーバ装置に送信する送信手段と、
上記アドレス要求メッセージに応答して上記DHCPサーバ装置から送信されてくる、上記クライアント装置に割り当てるべきネットワークアドレスと、上記サーバ装置のサーバ識別子とを含むアドレス応答メッセージを受信する受信手段と、
上記受信されたアドレス応答メッセージに含まれるサーバ識別子と、上記記憶手段に記憶されたサーバ識別子とが一致しているか否かを判断し、一致しているとき、上記アドレス応答メッセージに含まれるネットワークアドレスを当該クライアント装置に設定する制御手段とを備えたことを特徴とする。
A client device according to a first invention is a client device for a communication system including a client device having a DHCP client function and a server device connected to the client device via a network and having a DHCP server function.
Storage means for storing a client identifier representing the network address system of its own device and a corresponding server identifier;
Transmitting means for inserting the client identifier into an option field provided in an address request message to be transmitted to the server device, and transmitting the address request message to the DHCP server device;
Receiving means for receiving an address response message including a network address to be allocated to the client device and a server identifier of the server device, which is transmitted from the DHCP server device in response to the address request message;
It is determined whether or not the server identifier included in the received address response message matches the server identifier stored in the storage means. If they match, the network address included in the address response message is determined. And a control means for setting to the client device.

上記クライアント装置において、上記制御手段は、上記受信されたアドレス応答メッセージに含まれるサーバ識別子と、上記記憶手段に記憶されたサーバ識別子とが一致しているか否かを判断し、一致しないとき、上記アドレス応答メッセージに応答する処理を中止することを特徴とする。   In the client device, the control means determines whether or not the server identifier included in the received address response message matches the server identifier stored in the storage means. The process of responding to the address response message is stopped.

第2の発明に係るサーバ装置は、DHCPクライアント機能を有するクライアント装置と、上記クライアント装置にネットワークを介して接続されかつDHCPサーバ機能を有するサーバ装置とを備えた通信システムのためのサーバ装置において、
自装置のネットワークアドレス体系を表すサーバ識別子と、それに対応するクライアント識別子とを記憶する記憶手段と、
上記クライアント装置から送信されてくるアドレス要求メッセージに設けられたオプションフィールドに挿入されたクライアント識別子を含むアドレス要求メッセージを受信する受信手段と、
上記受信されたアドレス要求メッセージのオプションフィールドに含まれるクライアント識別子と、上記記憶手段に記憶されたクライアント識別子とが一致しているか否かを判断し、一致しているとき、上記サーバ識別子を上記アドレス応答メッセージに設けられたオプションフィールドに挿入し、上記クライアント識別子のネットワークアドレス体系に属し、上記クライアント装置に割り当てるべきネットワークアドレスが挿入された上記アドレス応答メッセージを上記クライアント装置に送信する送信手段とを備えたことを特徴とする。
A server device according to a second invention is a server device for a communication system comprising a client device having a DHCP client function and a server device connected to the client device via a network and having a DHCP server function.
Storage means for storing a server identifier representing the network address system of the own device and a corresponding client identifier;
Receiving means for receiving an address request message including a client identifier inserted in an option field provided in an address request message transmitted from the client device;
It is determined whether or not the client identifier included in the option field of the received address request message matches the client identifier stored in the storage means. If they match, the server identifier is set to the address. Transmission means for transmitting to the client device the address response message inserted in an option field provided in the response message, belonging to the network address system of the client identifier, and having the network address to be assigned to the client device inserted It is characterized by that.

上記サーバ装置において、上記受信されたアドレス要求メッセージのオプションフィールドにクライアント識別子が記述されていないとき、又は当該アドレス要求メッセージのオプションフィールドに挿入されたクライアント識別子が上記記憶手段に記憶されたクライアント識別子とが一致しているか否かを判断し一致してないとき、上記送信手段は、上記クライアント装置に割り当てるべき所定のネットワークアドレスを、上記アドレス応答メッセージに設けられたオプションフィールドに挿入し、当該アドレス応答メッセージを上記クライアント装置に送信することを特徴とする。   In the server device, when the client identifier is not described in the option field of the received address request message, or the client identifier inserted in the option field of the address request message is stored in the storage means Is not matched, the transmitting means inserts a predetermined network address to be allocated to the client device into an option field provided in the address response message, and the address response A message is transmitted to the client device.

とって代わって、上記サーバ装置において、上記受信されたアドレス要求メッセージのオプションフィールドにクライアント識別子が記述されていないとき、又は当該アドレス要求メッセージのオプションフィールドに挿入されたクライアント識別子が上記記憶手段に記憶されたクライアント識別子とが一致しているか否かを判断し一致してないとき、上記送信手段は、上記クライアント装置に割り当てるべき所定のネットワークアドレスを、上記アドレス応答メッセージに設けられたオプションフィールドに挿入し、サーバ識別子無しの当該アドレス応答メッセージを上記クライアント装置に送信することを特徴とする。   Instead, in the server device, when the client identifier is not described in the option field of the received address request message, or the client identifier inserted in the option field of the address request message is stored in the storage means. The transmission means inserts a predetermined network address to be allocated to the client device into an option field provided in the address response message. The address response message without a server identifier is transmitted to the client device.

第3の発明に係る通信システムは、上記クライアント装置と、上記サーバ装置とを備えたことを特徴とする。   A communication system according to a third aspect of the invention includes the client device and the server device.

従って、本発明に係る通信システムによれば、DHCPリレー装置が無い環境下でも容易にIPアドレス体系を分けて割り当てることができる。   Therefore, according to the communication system according to the present invention, the IP address system can be divided and assigned easily even in an environment without a DHCP relay device.

以下、本発明に係る実施形態について図面を参照して説明する。   Hereinafter, embodiments according to the present invention will be described with reference to the drawings.

図1は本発明の実施形態に係る通信システムの構成を示すブロック図である。図1において、DHCPクライアント機能を有するDHCPクライアント装置10と、DHCPサーバ機能を有するDHCPサーバ装置20とが、例えばインターネット又はLANなどのネットワーク30を介して接続されている。   FIG. 1 is a block diagram showing a configuration of a communication system according to an embodiment of the present invention. In FIG. 1, a DHCP client device 10 having a DHCP client function and a DHCP server device 20 having a DHCP server function are connected via a network 30 such as the Internet or a LAN.

図2は実施形態においてIPアドレス体系とサーバ装置識別子とクライアント装置識別子との関係を示す図である。本実施形態では、各IPアドレス体系毎に、サーバ識別子と、クライアント識別子とを予め決定し、DHCPクライアント装置10の識別子メモリ15には自装置のクライアント識別子が格納され、DHCPサーバ装置20の識別子メモリ25には自装置のサーバ識別子が格納されている。また、本実施形態では、あるIPアドレス体系として、サーバ識別子と、クライアント識別子とを決定せず、DHCPクライアント装置10の識別子メモリ15において空のデータを格納し、DHCPサーバ装置20の識別子メモリ25においても空のデータを格納することにより、図に示すように、第3のIPアドレス体系を形成してもよい。   FIG. 2 is a diagram illustrating a relationship among an IP address system, a server device identifier, and a client device identifier in the embodiment. In this embodiment, a server identifier and a client identifier are determined in advance for each IP address system, and the client identifier of the own device is stored in the identifier memory 15 of the DHCP client device 10, and the identifier memory of the DHCP server device 20 is stored. 25 stores the server identifier of the own apparatus. In the present embodiment, as a certain IP address system, the server identifier and the client identifier are not determined, empty data is stored in the identifier memory 15 of the DHCP client device 10, and the identifier memory 25 of the DHCP server device 20 is stored. By storing empty data, a third IP address system may be formed as shown in the figure.

図1において、DHCPクライアント装置10は例えばケーブルモデムであり、DHCPクライアントメッセージを送信するDHCPクライアント送信処理部12と、DHCPサーバメッセージを受信するDHCPクライアント受信処理部13と、当該装置10の動作制御を実行するコントローラ11とを備えて構成される。コントローラ11は、
(a)自装置がDHCPメッセージを送信するときに挿入する識別子と、DHCPサーバメッセージに挿入される識別子を記憶しておく識別子メモリ15と、
(b)送信するDHCPクライアントメッセージに識別子を挿入する識別子挿入部14と、
(c)受信したDHCPサーバメッセージのオプションフィールドに記述されている識別子を解析する識別子解析部16と、
(d)DHCPサーバ装置20から割り当てられたIPアドレスを自装置に設定するIPアドレス設定部17とを備え、
これらの処理部14−17はバス18を介して互いに接続されるとともに、DHCPクライアント送信処理部12及びDHCPクライアント受信処理部13に接続される。
In FIG. 1, a DHCP client device 10 is, for example, a cable modem. A DHCP client transmission processing unit 12 that transmits a DHCP client message, a DHCP client reception processing unit 13 that receives a DHCP server message, and operation control of the device 10 are performed. And a controller 11 to be executed. The controller 11
(A) an identifier memory 15 for storing an identifier to be inserted when the own device transmits a DHCP message, and an identifier to be inserted into the DHCP server message;
(B) an identifier inserting unit 14 for inserting an identifier into a DHCP client message to be transmitted;
(C) an identifier analyzing unit 16 that analyzes an identifier described in the option field of the received DHCP server message;
(D) an IP address setting unit 17 that sets the IP address assigned by the DHCP server device 20 to the own device,
These processing units 14-17 are connected to each other via the bus 18 and are also connected to the DHCP client transmission processing unit 12 and the DHCP client reception processing unit 13.

また、DHCPサーバ装置20は例えばルータ装置であり、DHCPサーバメッセージを送信するDHCPサーバ送信処理部22と、DHCPクライアントメッセージを受信するDHCPサーバ受信処理部23と、当該装置20の動作制御を実行するコントローラ21とを備えて構成される。コントローラ21は、
(a)自装置がDHCPメッセージを送信するときに挿入する識別子と、DHCPクライアントメッセージに挿入される識別子を記憶しておく識別子メモリ25と、
(b)送信するDHCPサーバメッセージに識別子を挿入する識別子挿入部24と、
(c)受信したDHCPクライアントメッセージのオプションフィールドに記述されている識別子を解析する識別子解析部26と、
(d)DHCPメッセージを送信してきたクライアント装置10に対してIPアドレスを割り当てるIPアドレス決定部27とを備え、
これらの処理部24−27はバス28を介して互いに接続されるとともに、DHCPサーバ送信処理部22及びDHCPサーバ受信処理部23に接続される。
Further, the DHCP server device 20 is, for example, a router device, and executes a DHCP server transmission processing unit 22 that transmits a DHCP server message, a DHCP server reception processing unit 23 that receives a DHCP client message, and operation control of the device 20. And a controller 21. The controller 21
(A) an identifier memory 25 that stores an identifier to be inserted when the device itself transmits a DHCP message, and an identifier to be inserted into the DHCP client message;
(B) an identifier insertion unit 24 for inserting an identifier into a DHCP server message to be transmitted;
(C) an identifier analyzing unit 26 that analyzes an identifier described in the option field of the received DHCP client message;
(D) an IP address determination unit 27 that assigns an IP address to the client device 10 that has transmitted the DHCP message,
These processing units 24-27 are connected to each other via the bus 28, and are also connected to the DHCP server transmission processing unit 22 and the DHCP server reception processing unit 23.

図3は図1のDHCPクライアント装置10のコントローラ11によって実行されるIPアドレス要求設定処理を示すフローチャートであり、図4は図1のDHCPサーバ装置20のコントローラ21によって実行されるIPアドレス割当処理を示すフローチャートである。本発明の実施形態に係るIPアドレスの割当処理方法について、図3及び図4のフローチャートを参照して以下に説明する。本実施形態においては、図2のIPアドレス体系A及びCを用いた一例(以下、実施例という。)について以下に説明する。本実施例では、DHCPクライアント装置10及びDHCPサーバ装置20が属するIPアドレス体系をIPアドレス体系Aとし、識別子メモリ15,25に対応する識別子が予め格納されているものとする。すなわち、DHCPクライアント装置10が挿入する識別子をMODEM−Aとし、DHCPサーバ装置20が挿入する識別子をCABLE−SYSTEM−Aとする。   3 is a flowchart showing an IP address request setting process executed by the controller 11 of the DHCP client apparatus 10 of FIG. 1, and FIG. 4 shows an IP address assignment process executed by the controller 21 of the DHCP server apparatus 20 of FIG. It is a flowchart to show. An IP address assignment processing method according to an embodiment of the present invention will be described below with reference to the flowcharts of FIGS. In the present embodiment, an example using the IP address systems A and C in FIG. 2 (hereinafter referred to as an example) will be described below. In this embodiment, it is assumed that the IP address system to which the DHCP client device 10 and the DHCP server device 20 belong is an IP address system A, and identifiers corresponding to the identifier memories 15 and 25 are stored in advance. That is, the identifier inserted by the DHCP client device 10 is MODEM-A, and the identifier inserted by the DHCP server device 20 is CABLE-SYSTEM-A.

DHCPクライアント装置10は、起動するとまず、DHCPクライアント送信処理部12はDHCP DISCOVERメッセージを送信する前に、識別子メモリ15から識別子を読み出し、識別子メモリ15から読み出したクライアント識別子を識別子挿入部14に出力する。識別子挿入部14はクライアント識別子を受信し、DHCP DISCOVERメッセージのDHCPのオプションフィールドのVendor−Class−Identifierにクライアント識別子(本実施例では、MODEM−Aである。)を挿入する(図3のステップS1)。次いで、オプションフィールドにクライアント識別子を挿入した後、DHCP DISCOVERメッセージを送信し(図3のステップS2)、DHCP OFFERメッセージを受信するのを待つ(図3のステップS3)。   When the DHCP client device 10 is activated, the DHCP client transmission processing unit 12 first reads the identifier from the identifier memory 15 and outputs the client identifier read from the identifier memory 15 to the identifier insertion unit 14 before transmitting the DHCP DISCOVER message. . The identifier inserting unit 14 receives the client identifier, and inserts the client identifier (MODEM-A in this embodiment) into the Vendor-Class-Identifier of the DHCP option field of the DHCP DISCOVER message (step S1 in FIG. 3). ). Next, after inserting the client identifier in the option field, a DHCP DISCOVER message is transmitted (step S2 in FIG. 3), and the reception of the DHCP OFFER message is waited (step S3 in FIG. 3).

次いで、次のDHCPサーバ装置20の処理について図4を参照して説明する。   Next, processing of the next DHCP server device 20 will be described with reference to FIG.

図4において、DHCPクライアント装置10からのDHCP DISCOVERメッセージをDHCPサーバ受信処理部23が受信する(図4のステップS11)と、DHCP DISCOVERメッセージのオプションフィールドのVendor−Class−Identifierにクライアント識別子が存在するか否かをまず判断する(図4のステップS12)。もし、DHCP DISCOVERメッセージのオプションフィールドのVendor−Class−Identifierにクライアント識別子が存在した場合は、DHCPサーバ装置20の識別子メモリ25に格納されているクライアント識別子とDHCPクライアント装置からのDHCPメッセージのオプションフィールドのVendor−Identifierに記述されてあったクライアント識別子が一致するか否かを識別子解析部26が判断する(図4のステップS13)。ここで、クライアント識別子が一致した場合は(図4のステップS13でYES)、クライアント識別子が一致した旨の情報をDHCPサーバ送信処理部22に出力する。これに応答して、DHCPサーバ送信処理部22は、クライアント識別子が一致した旨の情報を受信し、DHCP OFFERメッセージを送信する前に、識別子挿入部24は、識別子メモリ25に格納してあるDHCPサーバ装置のサーバ識別子(本実施例では、CABLE−SYSTEM−Aである。)をDHCP OFFERメッセージのオプションフィールドのVendor−Specificに挿入する(図4のステップS14)。DHCP OFFERメッセージにサーバ識別子を挿入したとき、IPアドレス決定部27からクライアント識別子(本実施例では、MODEM−Aである。)に対応するIPアドレス体系Aに属し、DHCPクライアント装置10に割り当てるべきIPアドレスを取得し、当該クライアント識別子の情報を挿入したDHCP DISCOVERメッセージを送信してきたDHCPクライアント装置10に対して、上記取得したIPアドレスと、サーバ識別子(本実施例では、CABLE−SYSTEM−Aである。)を含むDHCP OFFERメッセージを送信する(図4のステップS15)。   4, when the DHCP DISCOVER message from the DHCP client device 10 is received by the DHCP server reception processing unit 23 (step S11 in FIG. 4), the client identifier exists in the Vendor-Class-Identifier of the option field of the DHCP DISCOVER message. Is first determined (step S12 in FIG. 4). If the client identifier exists in the Vender-Class-Identifier of the option field of the DHCP DISCOVER message, the client identifier stored in the identifier memory 25 of the DHCP server device 20 and the option field of the DHCP message from the DHCP client device are displayed. The identifier analysis unit 26 determines whether or not the client identifiers described in the Vendor-Identifier match (step S13 in FIG. 4). If the client identifiers match (YES in step S13 in FIG. 4), information indicating that the client identifiers match is output to the DHCP server transmission processing unit 22. In response to this, the DHCP server transmission processing unit 22 receives the information that the client identifiers match, and before transmitting the DHCP OFFER message, the identifier inserting unit 24 stores the DHCP stored in the identifier memory 25. The server identifier of the server device (in this embodiment, CABLE-SYSTEM-A) is inserted into Vendor-Specific in the option field of the DHCP OFFER message (step S14 in FIG. 4). When the server identifier is inserted into the DHCP OFFER message, the IP address determining unit 27 belongs to the IP address system A corresponding to the client identifier (in this embodiment, MODEM-A), and the IP to be assigned to the DHCP client device 10 The acquired IP address and server identifier (in this embodiment, CABLE-SYSTEM-A) to the DHCP client device 10 that has acquired the address and has transmitted the DHCP DISCOVER message into which the client identifier information has been inserted. .)) Is transmitted (step S15 in FIG. 4).

もし、DHCP DISCOVERメッセージのオプションフィールドのVendor−Class−Identifierにおいてクライアント識別子が無い場合や、Vendor−Class−Identifierにクライアント識別子が存在するがDHCPサーバ装置20の識別子メモリ25内のクライアント識別子と一致しない場合は、クライアント識別子に割り当てられていないIPアドレス体系C(識別子無し)をIPアドレス決定部27から取得し、そのIPアドレス体系Cに対応するサーバ識別子(識別子なし)の情報を挿入したDHCP OFFERメッセージをDHCPクライアント装置10に送信し(図4のステップS16)、DHCP REQUESTを受信するのを待つ(図4のステップ17)。   If there is no client identifier in the Vendor-Class-Identifier of the option field of the DHCP DISCOVER message, or the client identifier exists in the Vendor-Class-Identifier but does not match the client identifier in the identifier memory 25 of the DHCP server device 20 Obtains an IP address system C (no identifier) assigned to the client identifier from the IP address determination unit 27, and receives a DHCP OFFER message in which information of a server identifier (no identifier) corresponding to the IP address system C is inserted. It transmits to the DHCP client device 10 (step S16 in FIG. 4) and waits to receive a DHCP REQUEST (step 17 in FIG. 4).

次いで、次のDHCPクライアント装置10の処理について以下に説明する。   Next, processing of the next DHCP client device 10 will be described below.

DHCPクライアント装置10が、MODEM−Aであるクライアント識別子を含むDHCP DISCOVERメッセージをDHCPサーバ装置20に送信したときに、DHCPクライアント装置10はDHCP OFFERメッセージの受信のために待機している(図3のステップS3)。DHCPクライント受信処理部13は、DHCP OFFERメッセージを受信したとき、DHCP OFFERメッセージのオプションフィールドのVendor−Specificにサーバ識別子が存在するか否かを判断する(図3のステップS4)。もし、存在しなければそのDHCP OFFERメッセージを処理せずに破棄し、図3のステップS3に戻る。一方、受信したDHCP OFFERメッセージのオプションフィールドのVendor−Specificにサーバ識別子が存在した場合は、DHCPクライアント受信処理部13は、識別子解析部16に対して受信したサーバ識別子について解析処理を指示する。これに応答して、識別子解析部16は、識別子メモリ15から格納されたサーバ識別子を取得し、DHCP OFFERに格納されたサーバ識別子(本実施例において、CABLE−SYSTEM−Aである。)と一致するか否かを判断する(図3のステップS5)。もし、一致しない場合は、ステップS3に戻る。一方、サーバ識別子(本実施例において、CABLE−SYSTEM−Aである。)が識別子メモリ15に格納されているサーバ識別子と一致した場合は、DHCP送信処理部12に送信処理を指示する。   When the DHCP client device 10 transmits a DHCP DISCOVER message including a client identifier of MODEM-A to the DHCP server device 20, the DHCP client device 10 is waiting for reception of the DHCP OFFER message (FIG. 3). Step S3). When the DHCP client reception processing unit 13 receives the DHCP OFFER message, the DHCP client reception processing unit 13 determines whether or not a server identifier exists in the Vendor-Specific of the option field of the DHCP OFFER message (step S4 in FIG. 3). If it does not exist, the DHCP OFFER message is discarded without being processed, and the process returns to step S3 in FIG. On the other hand, when a server identifier exists in the Vendor-Specific of the option field of the received DHCP OFFER message, the DHCP client reception processing unit 13 instructs the identifier analysis unit 16 to analyze the received server identifier. In response to this, the identifier analysis unit 16 acquires the server identifier stored from the identifier memory 15 and matches the server identifier stored in DHCP OFFER (in this embodiment, CABLE-SYSTEM-A). It is determined whether or not to perform (step S5 in FIG. 3). If not, the process returns to step S3. On the other hand, when the server identifier (in this embodiment, CABLE-SYSTEM-A) matches the server identifier stored in the identifier memory 15, the DHCP transmission processing unit 12 is instructed to perform transmission processing.

DHCPクライアント送信処理部12は、識別子メモリ15からDHCP REQUESTメッセージを送信する際に挿入するクライアント識別子(本実施例において、MODEM−Aである。)を取得して識別子挿入部14に出力する。クライアント識別子を受信した識別子挿入部14は、DHCP REQUETSTメッセージのDHCPのオプションフィールドのVendor−Class−Identifierにクライアント識別子(本実施例において、MODEM−Aである。)を挿入した後、当該DHCP REQUESTメッセージをDHCPサーバ装置20に送信し(図3のステップS6)、DHCPサーバ装置20からのDHCP ACKメッセージを受信するのを待つ(図3のステップS7)。   The DHCP client transmission processing unit 12 acquires a client identifier (in this example, MODEM-A) to be inserted when transmitting a DHCP REQUEST message from the identifier memory 15 and outputs the client identifier to the identifier insertion unit 14. Upon receiving the client identifier, the identifier insertion unit 14 inserts the client identifier (in this embodiment, MODE-A) into the Vendor-Class-Identifier of the DHCP option field of the DHCP REQUESTST message, and then the DHCP REQUEST message. Is transmitted to the DHCP server device 20 (step S6 in FIG. 3), and the reception of the DHCP ACK message from the DHCP server device 20 is awaited (step S7 in FIG. 3).

次いで、次のDHCPサーバ装置20の処理について以下に説明する。   Next, processing of the next DHCP server device 20 will be described below.

DHCPサーバ装置20は、サーバ識別子(本実施例において、CABLE−SYSTEM−Aである。)が挿入されたDHCP OFFERメッセージを送信した後、上述のように、DHCP REQUESTメッセージの受信で待機している(図4のステップS17)DHCPサーバ装置20は、DHCPクライアント装置10からのDHCP REQUESTメッセージをDHCPサーバ受信処理部23により受信する(図4のステップS17)と、DHCP REQUESTメッセージのオプションフィールドのVendor−Class−Identifierにおいてクライアント識別子が存在するかを判断する(図4のステップS18)。もし、DHCP REQUESTメッセージのオプションフィールドのVendor−Class−Identifierにクライアント識別子が存在した場合は、DHCPサーバ装置20の識別子メモリ25に格納されているクライアント識別子とDHCPクライアント装置10からのDHCPメッセージに記述されてあったクライアント識別子が一致するか否かを識別子解析部26が判断する(図4のステップS19)。ここで、一致した場合は、クライアント識別子が一致している旨の情報をDHCPサーバ送信処理部22に出力する。これに応答して、クライアント識別子が一致している旨の情報を受信したDHCPサーバ送信処理部22は、DHCP ACKメッセージを送信する前に、識別子挿入部24に対して、識別子メモリ25に格納してあるDHCPサーバ装置20のサーバ識別子(本実施例においては、CABLE−SYSTEM−Aである。)をDHCP ACKメッセージのオプションフィールドのVendor−Specificに挿入することを指示する(図4のステップS20)。ここで、DHCP ACKメッセージにサーバ識別子を挿入したとき、IPアドレス決定部27からクライアント識別子(本実施例において、MODEM−Aである。)に対応するIPアドレス体系Aに属し、DHCPクライアント装置10に割り当てるべきIPアドレスを取得し、当該クライアント識別子の情報を挿入したDHCP REQUESTメッセージを送信してきたDHCPクライアント装置10に対して、上記取得したIPアドレスと、サーバ識別子とを含むDHCP ACKメッセージを送信する(図4のステップS21)。   The DHCP server device 20 transmits a DHCP OFFER message in which a server identifier (in this embodiment, CABLE-SYSTEM-A) is inserted, and then waits for reception of a DHCP REQUEST message as described above. (Step S17 in FIG. 4) The DHCP server device 20 receives the DHCP REQUEST message from the DHCP client device 10 by the DHCP server reception processing unit 23 (Step S17 in FIG. 4), and Vendor− of the option field of the DHCP REQUEST message. It is determined whether a client identifier exists in the Class-Identifier (step S18 in FIG. 4). If the client identifier exists in the Vendor-Class-Identifier of the option field of the DHCP REQUEST message, it is described in the client identifier stored in the identifier memory 25 of the DHCP server device 20 and the DHCP message from the DHCP client device 10. The identifier analysis unit 26 determines whether the received client identifiers match (step S19 in FIG. 4). If they match, information indicating that the client identifiers match is output to the DHCP server transmission processing unit 22. In response to this, the DHCP server transmission processing unit 22 that has received the information that the client identifiers match matches the identifier insertion unit 24 and stores it in the identifier memory 25 before transmitting the DHCP ACK message. Is instructed to insert the server identifier of the DHCP server device 20 (in this embodiment, CABLE-SYSTEM-A) into the Vendor-Specific of the option field of the DHCP ACK message (step S20 in FIG. 4). . Here, when the server identifier is inserted into the DHCP ACK message, it belongs to the IP address system A corresponding to the client identifier (in this embodiment, MODEM-A) from the IP address determination unit 27 and is sent to the DHCP client device 10. The DHCP ACK message including the acquired IP address and the server identifier is transmitted to the DHCP client device 10 that has acquired the IP address to be allocated and has transmitted the DHCP REQUEST message in which the information of the client identifier is inserted ( Step S21 in FIG.

もし、DHCP REQUESTメッセージのオプションフィールドのVendor−Class−Identifierにおいてクライアント識別子が無い場合や、Vendor−Class−Identifierにクライアント識別子が存在するが、そのクライアント識別子がDHCPサーバ装置20の識別子メモリ25の識別子と一致しない場合は、IPアドレス決定部27からサーバ識別子に該当しないIPアドレス体系(本実施例では、IPアドレス体系Cである。)に属するIPアドレスを取得し、当該IPアドレスと、対応するサーバ識別子(空のサーバ識別子)の情報を挿入したDHCP ACKメッセージを送信する(図4のステップS22)。   If there is no client identifier in the Vendor-Class-Identifier of the option field of the DHCP REQUEST message, or there is a client identifier in the Vendor-Class-Identifier, the client identifier is the same as the identifier in the identifier memory 25 of the DHCP server device 20. If they do not match, an IP address belonging to an IP address system (in this embodiment, IP address system C) that does not correspond to the server identifier is acquired from the IP address determination unit 27, and the IP address and the corresponding server identifier are acquired. A DHCP ACK message in which information of (empty server identifier) is inserted is transmitted (step S22 in FIG. 4).

次いで、次のDHCPクライアント装置10の処理について以下に説明する。   Next, processing of the next DHCP client device 10 will be described below.

DHCPクライアント装置10は、クライアント識別子(本実施例において、MODEM−Aである。)を挿入したDHCP REQUESTメッセージを送信した後、DHCP ACKメッセージの受信を待機している(図3のステップS7)。DHCPクライント受信処理部13は、割り当てられたIPアドレスとサーバ識別子とを含むDHCP ACKメッセージを受信すると、DHCP ACKメッセージのオプションフィールドのVendor−Specificにおいてサーバ識別子が存在するか否かを判断する(図3のステップS8)。もし、存在しなければそのDHCP ACKメッセージは処理せずに破棄し、ステップS7に戻る。一方、DHCP ACKメッセージのオプションフィールドのVendor−Specificにおいてサーバ識別子が存在した場合は、DHCPクライアント受信処理部13は、識別子解析部16に対して受信したサーバ識別子についての解析処理を指示する。識別子解析部16は、識別子メモリ15から格納されたサーバ識別子を取得し、DHCP ACKのオプションフィールドのVendor−Specificに格納されたサーバ識別子(本実施例において、CABLE−SYSTEM−A)と一致するか否かを判断する(図3のステップS9)。もし、一致しない場合は、ステップS7に戻る。一方、サーバ識別子(本実施例において、CABLE−SYSTEM−Aである。)がDHCPクライアント装置10の識別子メモリ15に格納されているサーバ識別子と一致した場合は、自身の機器のインターフェースにDHCPサーバ装置20から割り当てられた、DHCP ACKメッセージに含まれる当該IPアドレス体系に属するIPアドレスをIPアドレス設定部17により当該装置10に設定して(図3のステップS10)、当該処理を終了する。   The DHCP client device 10 transmits a DHCP REQUEST message in which a client identifier (in this embodiment, MODEM-A) is inserted, and then waits for reception of a DHCP ACK message (step S7 in FIG. 3). When the DHCP client reception processing unit 13 receives the DHCP ACK message including the assigned IP address and the server identifier, the DHCP client reception processing unit 13 determines whether the server identifier exists in the Vendor-Specific of the option field of the DHCP ACK message (see FIG. 3 step S8). If it does not exist, the DHCP ACK message is discarded without being processed, and the process returns to step S7. On the other hand, when the server identifier exists in the Vender-Specific of the option field of the DHCP ACK message, the DHCP client reception processing unit 13 instructs the identifier analysis unit 16 to analyze the received server identifier. The identifier analysis unit 16 acquires the server identifier stored from the identifier memory 15, and whether it matches the server identifier (CABLE-SYSTEM-A in this embodiment) stored in the Vendor-Specific of the option field of DHCP ACK. It is determined whether or not (step S9 in FIG. 3). If not, the process returns to step S7. On the other hand, when the server identifier (in this embodiment, CABLE-SYSTEM-A) matches the server identifier stored in the identifier memory 15 of the DHCP client device 10, the DHCP server device is connected to the interface of its own device. The IP address assigned to 20 and belonging to the IP address system included in the DHCP ACK message is set in the device 10 by the IP address setting unit 17 (step S10 in FIG. 3), and the processing ends.

以上説明したように、DHCPメッセージのオプションフィールドを利用して割り当てるIPアドレス体系を容易に複数のIPアドレス体系に分けることが可能となる。すなわち、図2に示すように、3つ以上のIPアドレス体系A,B,Cや、IPアドレス体系AとCのごとく2つのIPアドレス体系に分割して設定してもよい。   As described above, the IP address system assigned using the option field of the DHCP message can be easily divided into a plurality of IP address systems. That is, as shown in FIG. 2, it may be set by dividing into two or more IP address systems A, B, and C, or two IP address systems such as IP address systems A and C.

以上詳述したように、本発明に係る通信システムによれば、DHCPリレー装置が無い環境下でも、容易にIPアドレス体系を分けて割り当てることができる。   As described above in detail, according to the communication system according to the present invention, the IP address system can be easily divided and assigned even in an environment without a DHCP relay device.

本発明の実施形態に係る通信システムの構成を示すブロック図である。It is a block diagram which shows the structure of the communication system which concerns on embodiment of this invention. 実施形態においてIPアドレス体系とサーバ装置識別子とクライアント装置識別子との関係を示す図である。It is a figure which shows the relationship between an IP address system, a server apparatus identifier, and a client apparatus identifier in embodiment. 図1のDHCPクライアント装置10によって実行されるIPアドレス要求設定処理を示すフローチャートである。It is a flowchart which shows the IP address request | requirement setting process performed by the DHCP client apparatus 10 of FIG. 図1のDHCPサーバ装置20によって実行されるIPアドレス割当処理を示すフローチャートである。It is a flowchart which shows the IP address allocation process performed by the DHCP server apparatus 20 of FIG. 従来例に係る拡張DHCPクライアント装置101の構成を示すブロック図である。It is a block diagram which shows the structure of the extended DHCP client apparatus 101 which concerns on a prior art example. 従来例に係る拡張DHCPサーバ装置103の構成を示すブロック図である。It is a block diagram which shows the structure of the extended DHCP server apparatus 103 which concerns on a prior art example. 図5の拡張DHCPクライアント装置101によって実行される処理を示すフローチャートである。6 is a flowchart illustrating processing executed by the extended DHCP client apparatus 101 in FIG. 5. 図6の拡張DHCPサーバ装置103によって実行される処理を示すフローチャートである。It is a flowchart which shows the process performed by the extended DHCP server apparatus 103 of FIG.

符号の説明Explanation of symbols

10…DHCPクライアント装置、
11…コントローラ、
12…DHCPクライアント送信処理部、
13…DHCPクライアント受信処理部、
14…識別子挿入部、
15…識別子メモリ、
16…識別子解析部、
17…IPアドレス設定部、
18…バス、
20…DHCPサーバ装置、
21…コントローラ、
22…DHCPサーバ送信処理部、
23…DHCPサーバ受信処理部、
24…識別子挿入部、
25…識別子メモリ、
26…識別子解析部、
27…IPアドレス決定部、
28…バス、
30…ネットワーク。
10: DHCP client device,
11 ... Controller,
12 ... DHCP client transmission processing unit,
13 ... DHCP client reception processing unit,
14 ... identifier insertion part,
15: identifier memory,
16 ... identifier analysis unit,
17 ... IP address setting section,
18 ... Bus,
20 ... DHCP server device,
21 ... Controller,
22 ... DHCP server transmission processing unit,
23 ... DHCP server reception processing unit,
24 ... identifier insertion part,
25 ... identifier memory,
26 ... identifier analysis unit,
27: IP address determination unit,
28 ... Bus,
30 ... Network.

Claims (6)

DHCPクライアント機能を有するクライアント装置と、上記クライアント装置にネットワークを介して接続されかつDHCPサーバ機能を有するサーバ装置とを備えた通信システムのためのクライアント装置において、
自装置のネットワークアドレス体系を表すクライアント識別子と、それに対応するサーバ識別子とを記憶する記憶手段と、
上記サーバ装置に送信するアドレス要求メッセージに設けられたオプションフィールドに上記クライアント識別子を挿入し、当該アドレス要求メッセージを上記DHCPサーバ装置に送信する送信手段と、
上記アドレス要求メッセージに応答して上記DHCPサーバ装置から送信されてくる、上記クライアント装置に割り当てるべきネットワークアドレスと、上記サーバ装置のサーバ識別子とを含むアドレス応答メッセージを受信する受信手段と、
上記受信されたアドレス応答メッセージに含まれるサーバ識別子と、上記記憶手段に記憶されたサーバ識別子とが一致しているか否かを判断し、一致しているとき、上記アドレス応答メッセージに含まれるネットワークアドレスを当該クライアント装置に設定する制御手段とを備えたことを特徴とするクライアント装置。
In a client device for a communication system comprising a client device having a DHCP client function and a server device connected to the client device via a network and having a DHCP server function,
Storage means for storing a client identifier representing the network address system of its own device and a corresponding server identifier;
Transmitting means for inserting the client identifier into an option field provided in an address request message to be transmitted to the server device, and transmitting the address request message to the DHCP server device;
Receiving means for receiving an address response message including a network address to be allocated to the client device and a server identifier of the server device, which is transmitted from the DHCP server device in response to the address request message;
It is determined whether or not the server identifier included in the received address response message matches the server identifier stored in the storage means. If they match, the network address included in the address response message is determined. And a control unit for setting the client device in the client device.
上記制御手段は、上記受信されたアドレス応答メッセージに含まれるサーバ識別子と、上記記憶手段に記憶されたサーバ識別子とが一致しているか否かを判断し、一致しないとき、上記アドレス応答メッセージに応答する処理を中止することを特徴とする請求項1記載のクライアント装置。   The control means determines whether or not the server identifier included in the received address response message matches the server identifier stored in the storage means, and responds to the address response message when they do not match. The client apparatus according to claim 1, wherein the processing to be performed is stopped. DHCPクライアント機能を有するクライアント装置と、上記クライアント装置にネットワークを介して接続されかつDHCPサーバ機能を有するサーバ装置とを備えた通信システムのためのサーバ装置において、
自装置のネットワークアドレス体系を表すサーバ識別子と、それに対応するクライアント識別子とを記憶する記憶手段と、
上記クライアント装置から送信されてくるアドレス要求メッセージに設けられたオプションフィールドに挿入されたクライアント識別子を含むアドレス要求メッセージを受信する受信手段と、
上記受信されたアドレス要求メッセージのオプションフィールドに含まれるクライアント識別子と、上記記憶手段に記憶されたクライアント識別子とが一致しているか否かを判断し、一致しているとき、上記サーバ識別子を上記アドレス応答メッセージに設けられたオプションフィールドに挿入し、上記クライアント識別子のネットワークアドレス体系に属し、上記クライアント装置に割り当てるべきネットワークアドレスが挿入された上記アドレス応答メッセージを上記クライアント装置に送信する送信手段とを備えたことを特徴とするサーバ装置。
In a server device for a communication system comprising a client device having a DHCP client function and a server device connected to the client device via a network and having a DHCP server function,
Storage means for storing a server identifier representing the network address system of the own device and a corresponding client identifier;
Receiving means for receiving an address request message including a client identifier inserted in an option field provided in an address request message transmitted from the client device;
It is determined whether or not the client identifier included in the option field of the received address request message matches the client identifier stored in the storage means. If they match, the server identifier is set to the address. Transmission means for transmitting to the client device the address response message inserted in an option field provided in the response message, belonging to the network address system of the client identifier, and having the network address to be assigned to the client device inserted A server device characterized by that.
上記受信されたアドレス要求メッセージのオプションフィールドにクライアント識別子が記述されていないとき、又は当該アドレス要求メッセージのオプションフィールドに挿入されたクライアント識別子が上記記憶手段に記憶されたクライアント識別子とが一致しているか否かを判断し一致してないとき、上記送信手段は、上記クライアント装置に割り当てるべき所定のネットワークアドレスを、上記アドレス応答メッセージに設けられたオプションフィールドに挿入し、当該アドレス応答メッセージを上記クライアント装置に送信することを特徴とする請求項3記載のサーバ装置。   When the client identifier is not described in the option field of the received address request message, or the client identifier inserted in the option field of the address request message matches the client identifier stored in the storage means When it is determined that they do not coincide with each other, the transmission means inserts a predetermined network address to be assigned to the client device into an option field provided in the address response message, and the address response message is inserted into the client device. The server device according to claim 3, wherein the server device is transmitted to the server. 上記受信されたアドレス要求メッセージのオプションフィールドにクライアント識別子が記述されていないとき、又は当該アドレス要求メッセージのオプションフィールドに挿入されたクライアント識別子が上記記憶手段に記憶されたクライアント識別子とが一致しているか否かを判断し一致してないとき、上記送信手段は、上記クライアント装置に割り当てるべき所定のネットワークアドレスを、上記アドレス応答メッセージに設けられたオプションフィールドに挿入し、サーバ識別子無しの当該アドレス応答メッセージを上記クライアント装置に送信することを特徴とする請求項3記載のサーバ装置。   When the client identifier is not described in the option field of the received address request message, or the client identifier inserted in the option field of the address request message matches the client identifier stored in the storage means If it is determined that there is no match, the transmission means inserts a predetermined network address to be assigned to the client device into an option field provided in the address response message, and the address response message without a server identifier. The server device according to claim 3, wherein the server device is transmitted to the client device. 請求項1又は2記載のクライアント装置と、請求項3乃至5のうちのいずれか1つに記載のサーバ装置とを備えたことを特徴とする通信システム。
A communication system comprising the client device according to claim 1 or 2 and the server device according to any one of claims 3 to 5.
JP2005284600A 2005-09-29 2005-09-29 Client device, server device, and communication system Expired - Fee Related JP4745008B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005284600A JP4745008B2 (en) 2005-09-29 2005-09-29 Client device, server device, and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005284600A JP4745008B2 (en) 2005-09-29 2005-09-29 Client device, server device, and communication system

Publications (2)

Publication Number Publication Date
JP2007096863A true JP2007096863A (en) 2007-04-12
JP4745008B2 JP4745008B2 (en) 2011-08-10

Family

ID=37982002

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005284600A Expired - Fee Related JP4745008B2 (en) 2005-09-29 2005-09-29 Client device, server device, and communication system

Country Status (1)

Country Link
JP (1) JP4745008B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330531B (en) * 2008-07-31 2011-01-19 杭州华三通信技术有限公司 Method for processing DHCP address allocation and DHCP relay
CN101577738B (en) * 2009-06-25 2011-08-31 杭州华三通信技术有限公司 Address distribution method and equipment thereof
CN114615234A (en) * 2022-03-11 2022-06-10 新华三工业互联网有限公司 Address allocation method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003174449A (en) * 2001-12-06 2003-06-20 Nef:Kk Communication control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003174449A (en) * 2001-12-06 2003-06-20 Nef:Kk Communication control system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330531B (en) * 2008-07-31 2011-01-19 杭州华三通信技术有限公司 Method for processing DHCP address allocation and DHCP relay
CN101577738B (en) * 2009-06-25 2011-08-31 杭州华三通信技术有限公司 Address distribution method and equipment thereof
CN114615234A (en) * 2022-03-11 2022-06-10 新华三工业互联网有限公司 Address allocation method and device

Also Published As

Publication number Publication date
JP4745008B2 (en) 2011-08-10

Similar Documents

Publication Publication Date Title
US7725594B2 (en) Assigning priority to network traffic at customer premises
US7443862B2 (en) Apparatus connected to network, and address determination program and method
US20080028071A1 (en) Communication load reducing method and computer system
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
US20030056008A1 (en) Automatic remote assignment of internet protocol address information to a network device
KR20050060045A (en) A fast handover method in dhcpv4, handover apparatus thereof and recording medium thereof
KR100689734B1 (en) method and apparatus for allocating address in wireless network
US20030225864A1 (en) Host-based automatic negotiation of an internet protocol address for a network connected device
US20070239860A1 (en) Information processing device, network connection method, and program recording medium
JP2002368763A (en) Network system, server unit and client unit, and method and program for providing network ip address
JP2006295532A (en) Information processor, network connection program and network connecting method
EP3267633B1 (en) Information processing system, proxy server, address duplication prevention method, and computer-readable recording medium
JP4745008B2 (en) Client device, server device, and communication system
US20050259600A1 (en) Translation bridge between ethernet and 1394A local links for consumer electronics devices
JP5983314B2 (en) Information processing apparatus and program
US20170222971A1 (en) Information processing apparatus and recording medium
WO2017202034A1 (en) Data packet sending and receiving method and device, and electronic apparatus
US20070283332A1 (en) Address allocation system and method
JP3780259B2 (en) Device connected to network, address determination program, and address determination method
CN107295113B (en) Network configuration method, switch and server
JP2002237816A (en) Automatic address assigning method
JP2011171793A (en) Network connection device, and method of controlling the same
EP1355476A1 (en) Processing device for address allocation
JP4516945B2 (en) Network system, access point, communication terminal, address determination method, and program
JP3971341B2 (en) Network information allocation apparatus and method, network information allocation program and recording medium recording the program, boot information allocation apparatus and method, boot information allocation program and recording medium recording the program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080926

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110114

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110125

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: 20110426

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110511

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

Free format text: PAYMENT UNTIL: 20140520

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4745008

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees