JP2007096863A - Client device, server device, and communication system - Google Patents
Client device, server device, and communication system Download PDFInfo
- 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
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
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
以下、従来例に係る通信システムにおける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
拡張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
拡張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
拡張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
拡張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
拡張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
しかしながら、従来例の方法では、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
図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
図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
(A) an
(B) an
(C) an
(D) an IP
These processing units 14-17 are connected to each other via the
また、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
(A) an
(B) an
(C) an
(D) an IP
These processing units 24-27 are connected to each other via the
図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
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サーバ装置20の処理について図4を参照して説明する。
Next, processing of the next
図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 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
次いで、次のDHCPクライアント装置10の処理について以下に説明する。
Next, processing of the next
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クライアント送信処理部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
次いで、次のDHCPサーバ装置20の処理について以下に説明する。
Next, processing of the next
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 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
次いで、次のDHCPクライアント装置10の処理について以下に説明する。
Next, processing of the next
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メッセージのオプションフィールドを利用して割り当てる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.
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サーバ装置から送信されてくる、上記クライアント装置に割り当てるべきネットワークアドレスと、上記サーバ装置のサーバ識別子とを含むアドレス応答メッセージを受信する受信手段と、
上記受信されたアドレス応答メッセージに含まれるサーバ識別子と、上記記憶手段に記憶されたサーバ識別子とが一致しているか否かを判断し、一致しているとき、上記アドレス応答メッセージに含まれるネットワークアドレスを当該クライアント装置に設定する制御手段とを備えたことを特徴とするクライアント装置。 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.
自装置のネットワークアドレス体系を表すサーバ識別子と、それに対応するクライアント識別子とを記憶する記憶手段と、
上記クライアント装置から送信されてくるアドレス要求メッセージに設けられたオプションフィールドに挿入されたクライアント識別子を含むアドレス要求メッセージを受信する受信手段と、
上記受信されたアドレス要求メッセージのオプションフィールドに含まれるクライアント識別子と、上記記憶手段に記憶されたクライアント識別子とが一致しているか否かを判断し、一致しているとき、上記サーバ識別子を上記アドレス応答メッセージに設けられたオプションフィールドに挿入し、上記クライアント識別子のネットワークアドレス体系に属し、上記クライアント装置に割り当てるべきネットワークアドレスが挿入された上記アドレス応答メッセージを上記クライアント装置に送信する送信手段とを備えたことを特徴とするサーバ装置。 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.
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.
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)
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003174449A (en) * | 2001-12-06 | 2003-06-20 | Nef:Kk | Communication control system |
-
2005
- 2005-09-29 JP JP2005284600A patent/JP4745008B2/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003174449A (en) * | 2001-12-06 | 2003-06-20 | Nef:Kk | Communication control system |
Cited By (3)
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 |