JP2008061146A - Communication equipment and communication method - Google Patents

Communication equipment and communication method Download PDF

Info

Publication number
JP2008061146A
JP2008061146A JP2006238355A JP2006238355A JP2008061146A JP 2008061146 A JP2008061146 A JP 2008061146A JP 2006238355 A JP2006238355 A JP 2006238355A JP 2006238355 A JP2006238355 A JP 2006238355A JP 2008061146 A JP2008061146 A JP 2008061146A
Authority
JP
Japan
Prior art keywords
address
node
unit
communication
assigned
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
JP2006238355A
Other languages
Japanese (ja)
Other versions
JP4868991B2 (en
Inventor
Hidenori Ishii
秀教 石井
Daisaku Komiya
大作 小宮
Ming Qiang Xu
明強 徐
Yuichi Tsukamoto
有一 塚本
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 JP2006238355A priority Critical patent/JP4868991B2/en
Publication of JP2008061146A publication Critical patent/JP2008061146A/en
Application granted granted Critical
Publication of JP4868991B2 publication Critical patent/JP4868991B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide communication equipment and a communication method for properly selecting a server function and a client function even when a plurality of communication equipment are continuously started. <P>SOLUTION: When any DHCP server which assigns an IP address in response to a request from another node operating as a DHCP client does not exist within a communication available range, a generalization assignment part 260 makes a DHCP serve initialization part 220 create an address pool, and makes an autonomous assignment part 230 perform the address assignment of its own device based on an APIPA. A generalization assignment part 260 makes a DHCP server part 210 perform a DHCP server operation in parallel with the address assignment of its own device. In the case of performing address assignment to another node before deciding the IP address of its own device, the generalization assignment part 260 makes the DHCP server part 210 notify the assignment destination of the address that the address is temporary. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、無線アドホックネットワークなど、通信の中継を行わずに1ホップの通信のみを行うIP(internet protocol)ネットワークで用いられる通信装置および通信方法に係り、特に、IPアドレスをユーザの操作なしに自律的に設定する通信装置および通信方法に関する。   The present invention relates to a communication apparatus and a communication method used in an IP (internet protocol) network that performs only one-hop communication without relaying communication, such as a wireless ad hoc network, and in particular, an IP address without a user operation. The present invention relates to a communication device and a communication method that are set autonomously.

インターネットなど、IPを用いた多くの通信ネットワークでは、特定の通信装置が他の通信装置にIPアドレスを動的に割り当てる通信プロトコルであるDHCP(dynamic host configuration protocol、非特許文献1参照)が多く用いられている。このような通信ネットワークでは、通信サービス利用側の通信装置に対して、IPアドレスの設定を含むIP通信を開始するのに必要な各種初期設定(以下、単に「初期設定」という)を行う装置(以下、「DHCPサーバ」という)を、通信サービス提供側に配置している。   In many communication networks using IP such as the Internet, DHCP (dynamic host configuration protocol, see Non-Patent Document 1), which is a communication protocol in which a specific communication device dynamically assigns an IP address to another communication device, is often used. It has been. In such a communication network, an apparatus (hereinafter simply referred to as “initial setting”) that performs various initial settings (hereinafter simply referred to as “initial settings”) necessary to start IP communication including IP address settings with respect to a communication apparatus that uses a communication service (Hereinafter referred to as “DHCP server”) is arranged on the communication service provider side.

一方、近年、ネットワーク技術の伸展により、従来では通信サービスにおいて普及していたIP通信機能を、テレビジョン、ビデオデッキ、ゲーム機器など、家庭内やオフィス内の電子機器に搭載させることが注目されている。このような電子機器は、互いに通信装置として機能してPAN(personal area network)を形成し、他の電子機器との連携動作を容易ならしめるだけでなく、電子機器の拡張性や配置の自由度を高めることができる。   On the other hand, in recent years, due to the expansion of network technology, it has been noted that IP communication functions that have been widely used in communication services in the past have been installed in electronic devices in homes and offices such as televisions, video decks, and game machines. Yes. Such electronic devices not only function as communication devices with each other to form a PAN (personal area network) and facilitate cooperation with other electronic devices, but also expandability of electronic devices and the degree of freedom of arrangement. Can be increased.

ところが、このようなPANでは、DHCPサーバを配置した通信サービスを利用しないため、PAN内で各通信装置の初期設定を行わなければならない。   However, since such a PAN does not use a communication service in which a DHCP server is arranged, each communication apparatus must be initialized in the PAN.

特に、家庭内でPANを構築する場合、ユーザがネットワークに関する専門的知識を持たないことが多い。このようなユーザにとって、初期設定を行うことは困難であり、ユーザへの負担が大きい。また、電子機器が、パーソナルコンピュータのようにキーボードやマウスなどの優れたユーザインタフェースを搭載しているとは限らない。したがって、ユーザが専門的知識を持っていたとしても、初期設定を行うのに多大な労力を伴う恐れがある。   In particular, when building a PAN at home, the user often does not have specialized knowledge about the network. For such a user, it is difficult to perform the initial setting, and the burden on the user is large. In addition, an electronic device does not always have an excellent user interface such as a keyboard or a mouse, as in a personal computer. Therefore, even if the user has specialized knowledge, there is a possibility that a great deal of labor is involved in performing the initial setting.

また、最近では無線LAN(local area network)やBluetooth(登録商標)、UWB(ultra wideband)に代表される無線IPネットワーク技術の進歩により、IP通信機能は、ディジタルカメラやプリンタなど、さらに多種多様な電子機器に搭載されるようになってきている。したがって、PANを構成する通信装置の数は、将来、さらに増大することが考えられる。そのような多くの通信装置に対して手作業で1つ1つ初期設定を行い、動作確認を行うのは、ユーザに大きな手間となる。   Recently, with the advancement of wireless IP network technology represented by wireless local area network (LAN), Bluetooth (registered trademark), and ultra wideband (UWB), the IP communication function has become more diverse, including digital cameras and printers. It has come to be installed in electronic devices. Therefore, the number of communication devices constituting the PAN can be further increased in the future. It is troublesome for the user to perform initial settings one by one for such a large number of communication devices and check the operation.

このようなユーザへの負担を軽減するために、PAN内にDHCPサーバを配置することも考えられる。しかしながら、DHCPサーバに異常が発生した場合、特にネットワークに関する専門的知識を持たないユーザにとっては、復旧が困難であるという問題がある。   In order to reduce such a burden on the user, a DHCP server may be arranged in the PAN. However, when an abnormality occurs in the DHCP server, there is a problem that recovery is difficult particularly for a user who does not have specialized knowledge about the network.

そこで、各通信装置自身で自装置のIPアドレスの割り当てを行う技術であり、Auto IPとも呼ばれるAPIPA(automatic private IP addressing、非特許文献2参照)を、DHCPと組み合わせることが、従来より行われている(たとえば、特許文献1および特許文献2参照)。   Therefore, each communication device itself is a technology for assigning its own IP address, and it has been conventionally performed to combine APIPA (automatic private IP addressing, see Non-Patent Document 2), also called Auto IP, with DHCP. (For example, see Patent Document 1 and Patent Document 2).

ここで、PANの一例を用いて、DHCPとAPIPAとの組み合わせにより初期設定を行う従来の通信装置について説明する。   Here, a conventional communication apparatus that performs initial setting by a combination of DHCP and APIPA will be described using an example of PAN.

図14は、従来の通信装置を配置したPANの構成の一例を示すシステム構成図である。無線PAN10には、相互にIP通信が可能な従来の通信装置としての第1のノード20−1および第2のノード20−2が存在している。すなわち、第1のノード20−1と第2のノード20−2との間には、無線通信路30が存在している。また、第1のノード20−1と第2のノード20−2は、同一の構成を有している。   FIG. 14 is a system configuration diagram showing an example of the configuration of a PAN in which a conventional communication device is arranged. The wireless PAN 10 includes a first node 20-1 and a second node 20-2 as conventional communication devices capable of mutual IP communication. That is, the wireless communication path 30 exists between the first node 20-1 and the second node 20-2. Further, the first node 20-1 and the second node 20-2 have the same configuration.

図15は、図14に示す従来の通信装置としてのノード20の構成を示すブロック図である。以下、説明の対象となるノード以外のノードを、「他ノード」というものとする。   FIG. 15 is a block diagram showing the configuration of the node 20 as the conventional communication apparatus shown in FIG. Hereinafter, nodes other than the node to be described are referred to as “other nodes”.

図15において、ノード20は、DHCPサーバ部21、自律割当部22、DHCPアドレス取得部23、統括割当部24、および通信部25を有する。   In FIG. 15, the node 20 includes a DHCP server unit 21, an autonomous allocation unit 22, a DHCP address acquisition unit 23, a general allocation unit 24, and a communication unit 25.

DHCPサーバ部21は、他ノードからの要求に応じてIPアドレスの割り当て(以下、単に「アドレス割り当て」という)を行う。自律割当部22は、自装置のアドレス割り当てにおいて、APIPAの動作を実施する。DHCPアドレス取得部23は、自装置のアドレス割り当てにおいて、DHCPサーバからIPアドレスを含めた初期設定情報を取得するDHCPクライアントとして、IPアドレスの取得処理を実施する。統括割当部24は、自装置のアドレス割り当てに、APIPAとDHCPのいずれを使用するか、つまり自律割当部22とDHCPアドレス取得部23のいずれを用いるかを選択する。これらDHCPサーバ部21、自律割当部22、DHCPアドレス取得部23、および統括割当部24は、それぞれプロトコルスタックのソフトウェアの機能である。通信部25は、IP通信を行うネットワークインタフェースであり、自装置のIPアドレスなどのIP通信に必要なパラメータが設定される。ノード20は、電源が投入されると、IP通信を開始するための初期設定を行う。   The DHCP server unit 21 performs IP address allocation (hereinafter simply referred to as “address allocation”) in response to a request from another node. The autonomous allocation unit 22 performs the operation of APIPA in the address allocation of its own device. The DHCP address acquisition unit 23 performs an IP address acquisition process as a DHCP client that acquires initial setting information including an IP address from a DHCP server in the address assignment of the own device. The overall allocation unit 24 selects which one of APIPA and DHCP is used for address allocation of its own device, that is, which of the autonomous allocation unit 22 and the DHCP address acquisition unit 23 is used. The DHCP server unit 21, the autonomous allocation unit 22, the DHCP address acquisition unit 23, and the overall allocation unit 24 are software functions of the protocol stack. The communication unit 25 is a network interface for performing IP communication, and parameters necessary for IP communication such as an IP address of the own apparatus are set. When the power is turned on, the node 20 performs an initial setting for starting IP communication.

図16は、図14に示すPAN10における初期設定の動作の流れを示すフローチャートである。   FIG. 16 is a flowchart showing a flow of initial setting operation in the PAN 10 shown in FIG.

DHCPサーバとして機能するノードは、DHCPDISCOVERメッセージを他ノードから受信した場合、そのノードに対して割り当てるIPアドレスを提示するDHCPOFFERメッセージを送出するようになっている。したがって、ステップS41において、統括割当部24は、DHCPアドレス取得部23で生成したDHCPのDHCPDISCOVERメッセージをブロードキャスト出力し、周囲のノードを検索する。   When a node that functions as a DHCP server receives a DHCPDISCOVER message from another node, it sends out a DHCPOFFER message that presents an IP address to be assigned to that node. Accordingly, in step S41, the overall allocation unit 24 broadcasts the DHCP DHCPDISCOVER message generated by the DHCP address acquisition unit 23 and searches for surrounding nodes.

ステップS42において、統括割当部24は、DHCPOFFERメッセージの受信の有無によって、周囲(通信可能範囲内)にDHCPサーバが存在しているか否かを、判断する。周囲にDHCPサーバが存在している場合には(S42:YES)、統括割当部24は、自装置が他ノードからIPアドレスを割り当てられるDHCPクライアントとして動作することを決定し、ステップS43へ進む。周囲にDHCPサーバが存在していない場合には(S42:NO)、統括割当部24は、自装置が他ノードに対してIPアドレスを割り当てるDHCPサーバとして動作することを決定し、ステップS44へ進む。   In step S42, the overall allocation unit 24 determines whether there is a DHCP server in the vicinity (within the communicable range) based on whether a DHCPOFFER message has been received. If a DHCP server exists in the surrounding area (S42: YES), the overall allocation unit 24 determines that the own apparatus operates as a DHCP client to which an IP address is allocated from another node, and proceeds to step S43. If there is no DHCP server in the vicinity (S42: NO), the overall allocation unit 24 determines that its own device operates as a DHCP server that allocates an IP address to another node, and proceeds to step S44. .

ステップS43において、DHCPアドレス取得部23は、DHCPクライアントとして、IPアドレスを取得する。具体的には、DHCPアドレス取得部23は、DHCPサーバから提示されたIPアドレスを自装置で使用することを要求するDHCPREQUESTメッセージを送信する。DHCPサーバは、DHCPREQUESTメッセージの受信に対応して、その要求に対する承認を示すDHCPACKメッセージを返すようになっている。そして、ノード20は、初期設定を終了し、DHCPクライアントとしての動作を継続する。   In step S43, the DHCP address acquisition unit 23 acquires an IP address as a DHCP client. Specifically, the DHCP address acquisition unit 23 transmits a DHCPREQUEST message requesting that the IP address presented from the DHCP server be used by the own device. In response to receiving the DHCPREQUEST message, the DHCP server returns a DHCPACK message indicating approval for the request. Then, the node 20 finishes the initial setting and continues to operate as a DHCP client.

一方、ステップ44において、自律割当部22は、APIPAにより、自装置のIPアドレスを決定する。具体的には、自律割当部22は、たとえば乱数を使用してIPアドレスを生成し、生成したIPアドレスが他ノードで使用されているかを問い合わせる状況確認のARP Probeメッセージをブロードキャスト出力する。そして、自律割当部22は、他ノードからの応答が無い場合には、生成したIPアドレスを取得する。   On the other hand, in step 44, the autonomous allocation unit 22 determines its own IP address by APIPA. Specifically, the autonomous allocation unit 22 generates an IP address using, for example, a random number, and broadcast-outputs an ARP Probe message for confirming a situation as to whether the generated IP address is used by another node. And the autonomous allocation part 22 acquires the produced | generated IP address, when there is no response from another node.

次に、ステップS45において、DHCPサーバ部21は、DHCPサーバとして起動し、周囲のDHCPクライアントに割り当てるIPアドレスの定義範囲を示すアドレスプールを作成する。そして、ノード20は、初期設定を終了し、DHCPクライアントから送出されるDHCPDISCOVERメッセージに応答するなど、DHCPサーバとして動作する。   Next, in step S45, the DHCP server unit 21 starts as a DHCP server, and creates an address pool indicating the definition range of IP addresses assigned to surrounding DHCP clients. Then, the node 20 operates as a DHCP server such as completing the initial setting and responding to the DHCPDISCOVER message sent from the DHCP client.

このようにして、従来の通信装置は、周囲の状況に応じて、DHCPクライアントとしての動作と、DHCPサーバとしての動作を切り替えることができる。したがって、いずれかの通信装置に異常が発生しても、常にDHCPサーバが配置されることになり、PANを機能させることができる。
特開2005−277937号公報 特開2005−348337号公報 R. Droms、”Dynamic Host Configuration Protocol”、IETF RFC2131、1997 S. Cheshire、B. Aboba and E. Guttman、”Dynamic Configuration of IPv4 Link−Local Addresses”、IETF RFC3927、2005
In this way, the conventional communication apparatus can switch between the operation as the DHCP client and the operation as the DHCP server according to the surrounding situation. Therefore, even if an abnormality occurs in any of the communication devices, a DHCP server is always arranged, and the PAN can function.
JP 2005-277937 A JP 2005-348337 A R. Droms, “Dynamic Host Configuration Protocol”, IETF RFC2131, 1997 S. Cheshire, B.M. Aboba and E.M. Guttman, “Dynamic Configuration of IPv4 Link-Local Addresses”, IETF RFC 3927, 2005.

ところが、上記した従来の通信装置を配置したPANでは、たとえば複数の通信装置を立て続けに起動させたときに、問題が発生する恐れがある。   However, in the PAN in which the above-described conventional communication device is arranged, for example, a problem may occur when a plurality of communication devices are activated in succession.

図17は、図14に示すPAN10の各ノード20が初期設定を行う際の、各ノード20の動作および信号の様子の一例を示すシーケンス図である。ここでは、第1のノード20−1が先に電源投入されたものの、第1のノード20−1の初期設定が完了していない段階で、第2のノード20−2が電源投入された場合の例を図示している。   FIG. 17 is a sequence diagram illustrating an example of the operation of each node 20 and the state of signals when each node 20 of the PAN 10 illustrated in FIG. 14 performs initial setting. Here, the first node 20-1 is powered on first, but the second node 20-2 is powered on when the initial setting of the first node 20-1 has not been completed. An example of this is illustrated.

ステップS51において、時刻tに、第1のノード20−1は電源オン(ON)状態になり、第2のノード20−2は電源オフ(OFF)状態のままであったとする。 In step S51, the time t 0, the first node 20-1 is turned power-on (ON) state, the second node 20-2 remained power-off (OFF) state.

ステップS52において、第1のノード20−1は、時刻tの直後に、DHCPDISCOVERメッセージをブロードキャスト出力する。ただし、この時点で、第2のノード20−2はOFF状態であるため、第1のノード20−1に応答は返ってこない。 In step S52, the first node 20-1, immediately after time t 0, broadcasts outputs a DHCPDISCOVER message. However, since the second node 20-2 is in an OFF state at this time, no response is returned to the first node 20-1.

ステップS53において、第1のノード20−1は、ステップS52のDHCPDISCOVERメッセージに対する応答が返ってこないことから、自律設定状態に入る。   In step S53, the first node 20-1 enters the autonomous setting state because no response is returned to the DHCPDISCOVER message in step S52.

ステップS54において、ステップS53で第1のノード20−1が自律設定状態に入った直後に、第2のノード20−2がON状態になったとする。   In step S54, it is assumed that the second node 20-2 is turned on immediately after the first node 20-1 enters the autonomous setting state in step S53.

ステップS55において、第2のノード20−2は、DHCPDISCOVERメッセージをブロードキャスト出力する。ただし、この時点で、第1のノード20−1はまだサーバとして起動していないため、第2のノード20−2に応答は返ってこない。   In step S55, the second node 20-2 broadcasts a DHCPDISCOVER message. However, at this time, since the first node 20-1 has not yet been activated as a server, no response is returned to the second node 20-2.

ステップS56において、第1のノード20−1は、自装置に割り当てるIPアドレスを選択し、選択したIPアドレスを指定した状況確認のARP Probeメッセージを、1〜2秒の間隔を置いて3回、ブロードキャスト出力する。第1のノード20−1は、たとえば「192.168.1.1」を、自装置に割り当てるIPアドレスとして選択する。   In step S56, the first node 20-1 selects an IP address to be allocated to the own device, and sends an ARP Probe message for confirming the status specifying the selected IP address three times at intervals of 1 to 2 seconds. Broadcast output. The first node 20-1 selects, for example, “192.168.1.1” as the IP address assigned to the own device.

各ノード20は、既に使用されているIPアドレスを指定したARP Probeメッセージを受信した場合には、その旨を通知するようになっている。ただし、ステップS56の時点では、第2のノード20−2はまだIPアドレスを割り当てられていないことから、ステップS56の状況確認のARP Probeメッセージに対する応答は、第1のノード20−1に返ってこない。   When each node 20 receives an ARP Probe message designating an already used IP address, it notifies that fact. However, since the IP address has not yet been assigned to the second node 20-2 at the time of step S56, the response to the ARP Probe message of the status confirmation at step S56 is returned to the first node 20-1. Not come.

ステップS57において、第2のノード20−2は、ステップS55のDHCPDISCOVERメッセージに対する応答が返ってこないことから、自律設定状態に入る。   In step S57, the second node 20-2 enters the autonomous setting state because the response to the DHCPDISCOVER message in step S55 is not returned.

ステップS58において、第2のノード20−2は、自装置に割り当てるIPアドレスを選択し、選択したIPアドレスを指定した状況確認のARP Probeメッセージを、ブロードキャスト出力する。ここで、第2のノード20−2は、たとえば「192.168.2.1」を、自装置に割り当てるIPアドレスとして選択する。ただし、この時点で、第1のノード20−1はまだサーバとしての動作を開始していないため、第2のノード20−2に応答は返ってこない。   In step S58, the second node 20-2 selects an IP address to be allocated to the own device, and broadcasts an ARP Probe message for confirming the status specifying the selected IP address. Here, the second node 20-2 selects, for example, “192.168.2.1” as the IP address assigned to the own device. However, at this time, since the first node 20-1 has not yet started the operation as a server, no response is returned to the second node 20-2.

ステップS59において、第1のノード20−1は、ステップS56で送出した状況確認のARP Probeメッセージが、いずれも応答が返ってこないままタイムアウトになったとする。このタイムアウトにより、第1のノード20−1は、要求したIPアドレスの自装置での使用に問題が無いものとして、自装置のIPアドレスを確定し、DHCPサーバ動作状態に遷移する。   In step S59, it is assumed that the first node 20-1 has timed out without receiving any response to the status confirmation ARP Probe message sent in step S56. Due to this timeout, the first node 20-1 determines that there is no problem in using the requested IP address in the own device, determines the IP address of the own device, and shifts to the DHCP server operating state.

ステップS60において、第1のノード20−1は、選択したIPアドレスの使用開始を通知する使用要求のARP Probeメッセージをブロードキャスト出力するとともに、アドレスプールを生成する。ただし、この時点で、第2のノード20−2にはまだサーバとしての動作を開始しておらず、自装置のIPアドレスを確定していないため、第1のノード20−1には応答は返ってこない。   In step S60, the first node 20-1 broadcasts and outputs an ARP Probe message of a usage request notifying the start of use of the selected IP address, and generates an address pool. However, at this time, since the second node 20-2 has not yet started the operation as a server and the IP address of its own device has not been determined, the response to the first node 20-1 is not received. I will not return.

ステップS61において、第2のノード20−2は、ステップS58で送出したARP Probeメッセージが、いずれも応答が返ってこないままタイムアウトになったことにより、第1のノード20−1と同様にDHCPサーバ動作状態に遷移する。   In step S61, the second node 20-2 determines that the ARP Probe message sent in step S58 has timed out without any response, and thus the DHCP server as in the first node 20-1. Transition to the operating state.

そして、ステップS62において、第2のノード20−2は、使用要求のARP Probeメッセージをブロードキャスト出力し、アドレスプールを生成する。   In step S62, the second node 20-2 broadcasts an ARP Probe message requesting use, and generates an address pool.

この結果、図17からも明らかなように、第1のノード20−1と第2のノード20−2の両方が、サーバとして動作し、それぞれ独立して自装置のIPアドレスとアドレスプールを設定する。このような状態では、これらのIPアドレスおよびアドレスプールが重複し、たとえば、同じIPアドレスが、異なる複数のノードに割り当てられ、それらのノード間でIP通信が不能となるなどの問題が発生する恐れがある。   As a result, as is clear from FIG. 17, both the first node 20-1 and the second node 20-2 operate as servers, and set their own IP address and address pool independently of each other. To do. In such a state, these IP addresses and address pools overlap, and for example, the same IP address may be assigned to different nodes, and problems such as IP communication being disabled between those nodes may occur. There is.

このような事態を回避するために、最初に電源投入を行った通信装置が完全にサーバとしての機能を開始してから、他の通信装置の電源投入を行うようにすることも考えられる。ところが、ARP Probeメッセージの状況確認には、通常で4秒以上の時間を要するため、2つ目の通信装置に電源を投入するまでに比較的長い時間を置かなければならない。一方で、特に家庭内などのごく狭い範囲にPANを形成する場合、通常の操作として、複数の通信装置に立て続けに電源が投入されることが行われている。したがって、不自然な操作をユーザに強いることになり、使い勝手の面で問題が生じる。   In order to avoid such a situation, it is also conceivable that the communication apparatus that is first turned on starts the server function completely and then the other communication apparatus is turned on. However, since confirmation of the status of the ARP Probe message normally requires a time of 4 seconds or more, it takes a relatively long time to turn on the power of the second communication apparatus. On the other hand, particularly when a PAN is formed in a very narrow range such as in a home, as a normal operation, power is continuously turned on to a plurality of communication devices. Therefore, the user is forced to perform an unnatural operation, and a problem arises in terms of usability.

本発明は、かかる点に鑑みてなされたものであり、複数の通信装置が立て続けに起動された場合であっても、サーバ機能とクライアント機能とを適切に選択できる通信装置および通信方法を提供することを目的とする。   The present invention has been made in view of such a point, and provides a communication device and a communication method capable of appropriately selecting a server function and a client function even when a plurality of communication devices are activated in succession. For the purpose.

本発明の通信装置は、他ノードに対してIPアドレスを割り当てるノードが通信可能範囲内に存在するとき、当該ノードに対して、自装置へのIPアドレスの割り当てを要求するクライアント動作部と、他ノードに対してIPアドレスを割り当てるノードが通信可能範囲内に存在しないとき、自装置に対して自律的にIPアドレスを割り当て、当該IPアドレスに基づき、他ノードに対してIPアドレスを割り当てるサーバ動作部と、前記サーバ動作部が自装置に割り当てたIPアドレスと同一のアドレスが他ノードに既に割り当てられているか否かを判断する割当判断部と、前記割当判断部が、前記サーバ動作部が自装置に割り当てたIPアドレスと同一のアドレスが他ノードに既に割り当てられていないと判断する前に、前記サーバ動作部が他ノードに対してIPアドレスの割り当てを行うとき、その割り当て先に対して当該IPアドレスの割り当てが仮のものであることを通知する仮設定通知部とを具備する構成を採る。   The communication device according to the present invention includes a client operation unit that requests the node to assign an IP address to the own device when the node to which the IP address is assigned to the other node is within the communication range, Server operation unit that autonomously assigns an IP address to its own device and assigns an IP address to another node based on the IP address when a node that assigns an IP address to the node does not exist within the communicable range And an assignment determination unit for determining whether the same address as the IP address assigned to the own device by the server operation unit is already assigned to another node, the assignment determination unit, and the server operation unit Before determining that the same address as the IP address assigned to the server is not already assigned to another node. There when allocating the IP address to another node, a configuration in which allocation of the IP address includes a temporary setting notifying unit that notifies that this is the temporary for the assignee.

本発明の通信方法は、他ノードに対してIPアドレスを割り当てるノードが通信可能範囲内に存在するか否かを判断するサーバ有無判断ステップと、他ノードに対してIPアドレスを割り当てるノードが通信可能範囲内に存在しないと判断したとき、自装置に対して自律的にIPアドレスを割り当て、他ノードに対してIPアドレスを割り当てるノードが通信可能範囲内に存在すると判断したとき、当該ノードに対して自装置へのIPアドレスの割り当てを要求するアドレス取得ステップと、自装置に対して自律的にIPアドレスを割り当てたとき、当該IPアドレスに基づき他ノードに対してIPアドレスを割り当てる処理を開始するとともに、自装置に割り当てられたIPアドレスと同一のアドレスが他ノードに既に割り当てられているか否かを判断する処理を開始する処理開始ステップと、自装置に割り当てられたIPアドレスと同一のアドレスが他ノードに既に割り当てられていないと判断する前に、他ノードに対してIPアドレスの割り当てを行うとき、その割り当て先に対して当該IPアドレスの割り当てが仮のものであることを通知する仮設定通知ステップとを有するようにした。   In the communication method of the present invention, a server presence / absence determining step for determining whether or not a node to which an IP address is assigned to another node exists within a communicable range, and a node to which an IP address is assigned to another node can communicate When it is determined that the node does not exist within the range, the IP address is autonomously assigned to the own device, and when it is determined that the node to which the IP address is assigned to another node is within the communicable range, An address acquisition step for requesting assignment of an IP address to the own device and a process of assigning an IP address to another node based on the IP address when the IP address is autonomously assigned to the own device The same address as the IP address assigned to the local device has already been assigned to another node A process start step for starting a process for determining whether or not an IP address is assigned to another node before determining that the same address as the IP address assigned to the own device has not already been assigned to another node. When performing, the provisional setting notification step of notifying that the assignment of the IP address is provisional to the assignment destination is provided.

本発明によれば、自装置のIPアドレスが確定する前であっても、他ノードに対して、IPアドレスの割り当ての重複や変更の可能性を通知した上で、仮のアドレス割当を行うことができ、複数の通信装置が立て続けに電源投入された場合でも、DHCPサーバ機能とDHCPクライアント機能とを適切に選択できるので、使い勝手を向上させることができる。さらに、自装置のIPアドレスが確定する前という早い段階で、他ノードに対してIPアドレスを割り当てるため、PANの立ち上がりを高速化することができる。   According to the present invention, even before the IP address of the own device is determined, provisional address assignment is performed after notifying other nodes of duplication of IP address assignment or the possibility of change. Even when a plurality of communication devices are turned on in succession, the DHCP server function and the DHCP client function can be appropriately selected, so that the usability can be improved. Furthermore, since the IP address is assigned to another node at an early stage before the IP address of the own device is determined, the rising speed of the PAN can be increased.

以下、本発明の一実施の形態について、図面を参照して詳細に説明する。   Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

図1は、本発明の一実施の形態に係る通信装置を配置した無線PANの構成を示すシステム構成図である。   FIG. 1 is a system configuration diagram showing a configuration of a wireless PAN in which a communication device according to an embodiment of the present invention is arranged.

図1において、無線PAN100は、第1のノード200−1、第2のノード200−2を有する。第1のノード200−1および第2のノード200−2は、相互に無線IP通信が可能となっており、これらの間には無線通信路300が形成されている。また、第1のノード200−1と第2のノード200−2の通信に関する部分は、同一の構成を採っている。   In FIG. 1, the wireless PAN 100 includes a first node 200-1 and a second node 200-2. The first node 200-1 and the second node 200-2 are capable of wireless IP communication with each other, and a wireless communication path 300 is formed between them. Further, the parts related to the communication between the first node 200-1 and the second node 200-2 have the same configuration.

第1のノード200−1と第2のノード200−2は、たとえば、テレビジョンとハードディスクレコーダであり、テレビジョンで受信する映像データをハードディスクレコーダへ転送することによって、映像データを記録するものである。映像データは無線通信路300により伝送されるため、ハードディスクレコーダの設置場所をより自由に選択することが可能となっている。   The first node 200-1 and the second node 200-2 are, for example, a television and a hard disk recorder, and record video data by transferring video data received by the television to the hard disk recorder. is there. Since the video data is transmitted through the wireless communication path 300, the installation location of the hard disk recorder can be selected more freely.

以下、各ノード200の構成および動作について説明する。説明の対象となるノード以外のノードを、「他ノード」というものとする。   Hereinafter, the configuration and operation of each node 200 will be described. Nodes other than the node to be described are referred to as “other nodes”.

図2は、本実施の形態に係る通信装置としてのノード200の構成を示すブロック図である。   FIG. 2 is a block diagram showing a configuration of node 200 as a communication apparatus according to the present embodiment.

図2において、ノード200は、通信部210、DHCPサーバ部220、DHCPサーバ初期設定部230、自律割当部240、DHCPアドレス取得部250、PAN指定判定部260、統括割当部270、アプリケーション部280、およびアプリケーション通信部290を有する。   In FIG. 2, the node 200 includes a communication unit 210, a DHCP server unit 220, a DHCP server initial setting unit 230, an autonomous allocation unit 240, a DHCP address acquisition unit 250, a PAN designation determination unit 260, a general allocation unit 270, an application unit 280, And an application communication unit 290.

通信部210は、無線によるIP通信を行うためのネットワークインタフェースであり、自装置のIPアドレスなどのIP通信に必要なパラメータが設定される。   The communication unit 210 is a network interface for performing wireless IP communication, and parameters necessary for IP communication such as an IP address of the own apparatus are set.

DHCPサーバ部220は、DHCPクライアントとして動作する他ノードからの要求に応じてアドレス割り当てを行う。具体的には、DHCPサーバ部220は、通信部210でDHCPREQUESTメッセージが受信されると、通信部210を介して、そのメッセージの送信元に対しIPアドレスを割り当てる。   The DHCP server unit 220 performs address assignment in response to a request from another node operating as a DHCP client. Specifically, when the DHCP REQUEST message is received by the communication unit 210, the DHCP server unit 220 assigns an IP address to the transmission source of the message via the communication unit 210.

DHCPサーバ初期設定部230は、自装置の周囲にDHCPサーバが存在しない場合に、自装置をDHCPサーバとして機能させるために、DHCPサーバ部220に対して初期設定を行う。   The DHCP server initial setting unit 230 performs an initial setting for the DHCP server unit 220 in order to cause the own device to function as a DHCP server when there is no DHCP server around the own device.

自律割当部240は、自装置に対するアドレス割り当てにおいて、APIPAの動作を実施する。具体的には、自律割当部240は、自装置に対するアドレス割り当てを行うとともに、統括割当部270および通信部210を介して、割り当てたIPアドレスが他ノードで既に使用されているか否かの確認を行う。   The autonomous allocation unit 240 performs the operation of APIPA in address allocation for the own device. Specifically, the autonomous assignment unit 240 assigns an address to the own device, and checks whether the assigned IP address is already used by another node via the general assignment unit 270 and the communication unit 210. Do.

DHCPアドレス取得部250は、自装置に対するアドレス割り当てにおいて、DHCPクライアントとして、DHCPサーバとして動作する他ノード200にIPアドレスの割り当てを要求する。具体的には、DHCPアドレス取得部250は、統括割当部270および通信部210を介して、DHCPREQUESTメッセージを送出するなどして、DHCPサーバとして動作する他ノード200からIPアドレスを取得し、取得したIPアドレスを自装置に対して割り当てる。   The DHCP address acquisition unit 250 requests the other node 200 operating as a DHCP server to assign an IP address as a DHCP client in address assignment to the own device. Specifically, the DHCP address acquisition unit 250 acquires and acquires an IP address from the other node 200 that operates as a DHCP server, for example, by sending a DHCPREQUEST message via the overall allocation unit 270 and the communication unit 210. An IP address is assigned to the own device.

PAN指定判定部260は、DHCPアドレス取得部250が取得したIPアドレスと、周囲のノードのIPアドレスとの比較を行い、両者が重複する可能性があるか否かを判定する。具体的には、PAN指定判定部260は、通信部210で受信されたIPパケットの送信元IPアドレスを取得し、DHCPアドレス取得部250が取得したIPアドレスとの比較を行い、一致する場合には、当該IPアドレスに対する処理を行う。   The PAN designation determination unit 260 compares the IP address acquired by the DHCP address acquisition unit 250 with the IP addresses of the surrounding nodes, and determines whether or not there is a possibility that both are duplicated. Specifically, the PAN designation determination unit 260 acquires the transmission source IP address of the IP packet received by the communication unit 210, compares the IP address acquired by the DHCP address acquisition unit 250, and if they match. Performs processing for the IP address.

統括割当部270は、自装置の各部を統括するとともに、自装置に対するアドレス割り当てに用いる手法を選択する。   The overall allocation unit 270 controls each unit of the own device and selects a method used for address allocation to the own device.

アプリケーション部280は、IP通信を使用するアプリケーションソフトウェアであり、たとえば、通信部210を介して、映像データを送受信する機能を有している。また、アプリケーション部280は、IP通信を行う場合にはアプリケーション通信部290を使用して、通信部210を制御する。   The application unit 280 is application software that uses IP communication, and has a function of transmitting and receiving video data via the communication unit 210, for example. Further, the application unit 280 controls the communication unit 210 using the application communication unit 290 when performing IP communication.

アプリケーション通信部290は、DHCPアドレス取得部250の状況をアプリケーション部280に通知するともに、アプリケーション通信部290からの指示に応じて通信部210を制御する。   The application communication unit 290 notifies the application unit 280 of the status of the DHCP address acquisition unit 250 and controls the communication unit 210 according to an instruction from the application communication unit 290.

また、ノード200は、図示しないが、CPU(central processing unit)、制御プログラムを格納したROM(read only memory)などの記憶媒体、RAM(random access memory)などの作業用メモリ、および通信回路などでも実現できる。CPUが制御プログラムを実行することで、上記した各部の機能は実現される。   Further, although not shown, the node 200 may be a CPU (central processing unit), a storage medium such as a ROM (read only memory) storing a control program, a working memory such as a RAM (random access memory), and a communication circuit. realizable. The function of each unit described above is realized by the CPU executing the control program.

ノード200は、初期状態ではDHCPクライアントとして動作し、周囲の状況に応じて、DHCPサーバとして動作するモードに切り替わる。統括割当部270は、他の各部との連携により、ノード200の動作状態の制御および切り替えを行う。以下、ノード200の各部の動作について詳細に説明を行う。   The node 200 operates as a DHCP client in an initial state, and switches to a mode in which it operates as a DHCP server according to surrounding conditions. The overall allocation unit 270 controls and switches the operation state of the node 200 in cooperation with other units. Hereinafter, the operation of each part of the node 200 will be described in detail.

図3は、ノード200の動作状態の遷移を示すフローチャートである。   FIG. 3 is a flowchart showing the transition of the operation state of the node 200.

ノード200は、初期状態では、電源が投入されていない電源OFF状態1000にある。この状態で電源が投入されると、ノード200は、DHCPクライアントとして動作するDHCPクライアント動作状態2000へ遷移する。   In an initial state, the node 200 is in a power-off state 1000 where power is not turned on. When the power is turned on in this state, the node 200 transits to a DHCP client operation state 2000 that operates as a DHCP client.

DHCPクライアント動作状態2000において、ノード200は、まず、DHCPを用いて、DHCPサーバとして動作する他ノードからのIPアドレスの取得を試みる。そして、IPアドレスの取得が成功した場合には、そのままDHCPクライアント動作状態2000を継続し、クライアント初期設定処理と、仮設定解除判定処理とを実行する。   In the DHCP client operating state 2000, the node 200 first attempts to acquire an IP address from another node operating as a DHCP server using DHCP. If the acquisition of the IP address is successful, the DHCP client operation state 2000 is continued as it is, and the client initial setting process and the temporary setting cancellation determination process are executed.

クライアント初期設定処理は、サーバから取得したIPアドレスを、自装置に設定する処理である。仮設定解除判定処理は、自装置のIPアドレスの設定が仮設定であった場合に、DHCPサーバから受信するパケットを基に仮設定の解除を判定する処理である。これらクライアント初期設定処理および仮設定解除判定処理については、後にそれぞれ図11および図12を参照して詳しく説明する。   The client initial setting process is a process of setting the IP address acquired from the server in the own apparatus. The temporary setting cancellation determination process is a process of determining cancellation of the temporary setting based on a packet received from the DHCP server when the IP address setting of the own apparatus is the temporary setting. The client initial setting process and the temporary setting cancellation determination process will be described in detail later with reference to FIGS. 11 and 12, respectively.

一方、ノードからのIPアドレスの取得が失敗した場合には、ノード200は、DHCPサーバとして動作するDHCPサーバ動作状態3000のへ遷移する。   On the other hand, when the acquisition of the IP address from the node fails, the node 200 transitions to a DHCP server operating state 3000 that operates as a DHCP server.

DHCPサーバ動作状態3000において、ノード200は、サーバ初期設定処理と、IPアドレス割当処理とを実行する。   In the DHCP server operating state 3000, the node 200 executes a server initial setting process and an IP address assignment process.

サーバ初期設定処理は、自装置のIPアドレスやアドレスプールを設定する処理である。IPアドレス割当処理は、DHCPクライアントとして動作する他ノードからの要求に応じてIPアドレスの割り当てを行う処理である。これらサーバ初期設定処理およびIPアドレス割当処理についても、後にそれぞれ図4および図10を参照して詳しく説明する。   The server initial setting process is a process for setting the IP address and address pool of the own apparatus. The IP address assignment process is a process for assigning an IP address in response to a request from another node operating as a DHCP client. The server initial setting process and the IP address assignment process will be described later in detail with reference to FIGS. 4 and 10, respectively.

DHCPサーバとして動作するノード200は、サーバ初期設定処理と並行してIPアドレス割当処理を実行することにより、サーバ初期設定処理が完了する前に、DHCPクライアントとして動作する他ノード200に対してアドレス割り当てを行うことを可能にする。ただし、アドレス割り当ての対象となるノード200に対して、そのアドレス割り当てが仮設定であることを通知する。   The node 200 that operates as a DHCP server executes an IP address assignment process in parallel with the server initial setting process, thereby assigning an address to another node 200 that operates as a DHCP client before the server initial setting process is completed. Makes it possible to do. However, it notifies the address assignment target node 200 that the address assignment is temporary.

なお、DHCPクライアント動作状態2000あるいはDHCPサーバ動作状態3000にあるときに、ノード200の電源が落とされたり、ノード200の通信機能のリセット操作が行われた場合には、電源OFF状態1000へ戻ることになる。したがって、一旦DHCPサーバとしての動作を開始したものの、同一無線PAN100内の他ノード200にDHCPサーバ機能を移したい場合には、双方の電源を落とし、DHCPサーバとして機能させたい側のノード200に先に電源を投入するようにすればよい。また、このような電源遮断と電源投入のタイミングを、自動で制御するようにしてもよい。   When the node 200 is turned off or the communication function of the node 200 is reset while in the DHCP client operation state 2000 or the DHCP server operation state 3000, the process returns to the power-off state 1000. become. Therefore, when the DHCP server function is once transferred to the other node 200 in the same wireless PAN 100 after the operation as the DHCP server is started, both powers are turned off, and the node 200 on the side that wants to function as the DHCP server is connected first. The power may be turned on. Further, the timing of turning off the power and turning on the power may be controlled automatically.

図4は、図3のDHCPサーバ動作状態3000において実行されるサーバ初期設定処理の流れを示すフローチャートである。   FIG. 4 is a flowchart showing the flow of the server initial setting process executed in the DHCP server operation state 3000 of FIG.

ステップS3110において、DHCPサーバ初期設定部230は、統括割当部270からの要求に応じて、アドレスプールを生成するとともに、生成したアドレスプールの最初のIPアドレスを、自装置のIPアドレスに決定する。   In step S3110, the DHCP server initial setting unit 230 generates an address pool in response to a request from the overall allocation unit 270, and determines the first IP address of the generated address pool as the IP address of the own device.

図5は、図1に示す無線PAN100におけるIPアドレスの体系の一例およびIPアドレスの一例を示す説明図である。   FIG. 5 is an explanatory diagram showing an example of an IP address system and an example of an IP address in the wireless PAN 100 shown in FIG.

無線PAN100において、各ノード200は、通信プロトコルとして、IPv4(IP version 4)を採用している。そして、各ノード200は、IPアドレス310を、ネットワークアドレス301、PAN指定部302、およびノード指定部303の、3つのビット列に分けて扱う。PAN指定部302とノード指定部303を設定しているのは、ノード間でIPアドレスが重複して割り当てられた場合に、このことを検出し易くするためである。これについては、後に詳しく説明する。ここでは、IPアドレス310の一例を、8ビットごとの10進表記311、2進表記312、および下位16ビットをPAN指定部302とノード指定部303で区切った10進表記313で記述している。   In the wireless PAN 100, each node 200 employs IPv4 (IP version 4) as a communication protocol. Each node 200 handles the IP address 310 by dividing it into three bit strings of a network address 301, a PAN specifying unit 302, and a node specifying unit 303. The reason why the PAN specifying unit 302 and the node specifying unit 303 are set is to make it easier to detect this when an IP address is assigned redundantly between nodes. This will be described in detail later. Here, an example of the IP address 310 is described in decimal notation 311, binary notation 312 every 8 bits, and decimal notation 313 in which the lower 16 bits are separated by the PAN specifying part 302 and the node specifying part 303. .

ネットワークアドレス301は、同一の無線PAN100に属するすべてのノード200に共通であり、所与の値が割り当てられるビット列である。ネットワークアドレス301が同一のノード同士は、通信が可能となっている。ここでは、ネットワークアドレス301は、16ビットであり、たとえば10進表記313で「192.168」が指定される。ネットマスクはネットワークアドレス301のビット数と対応しており、ここでは「255.255.0.0」となる。   The network address 301 is a bit string that is common to all the nodes 200 belonging to the same wireless PAN 100 and to which a given value is assigned. Nodes having the same network address 301 can communicate with each other. Here, the network address 301 is 16 bits, and for example, “192.168.” Is specified in decimal notation 313. The netmask corresponds to the number of bits of the network address 301, which is “255.255.0.0” here.

無線PAN100における無線インタフェースの到達距離は、比較的短い。このため、比較的近い距離で、複数の無線PAN100が形成され、ノード200の移動によって、これら複数の無線PAN100の無線通信エリアが重なり合うことがある。すると、異なる無線PAN100に属するはずのノード200同士が、接続し無線通信を行ってしまう可能性がある。この場合に、異なった場所で構成された無線PAN100のノード200同士が通信を開始した時に、ネットワークアドレス301が異なると、ルーティング設定などを変更する必要が生じる可能性がある。したがって、本実施の形態では、全ての無線PAN100のノード200に、共通のネットワークアドレスを使用している。   The reach of the wireless interface in the wireless PAN 100 is relatively short. For this reason, a plurality of wireless PANs 100 are formed at relatively close distances, and wireless communication areas of the plurality of wireless PANs 100 may overlap due to the movement of the node 200. Then, nodes 200 that should belong to different wireless PANs 100 may connect and perform wireless communication. In this case, when the nodes 200 of the wireless PANs 100 configured in different places start communication, if the network address 301 is different, it may be necessary to change the routing setting or the like. Therefore, in this embodiment, a common network address is used for the nodes 200 of all the wireless PANs 100.

PAN指定部302は、IPアドレス310において、無線PAN100を指定するためのビット列である。ここでは、PAN指定部302は、12ビットであり、たとえば10進表記313で「32」が指定される。したがって、2の12乗(=4,096)個の無線PAN100を指定することができる。   The PAN specifying unit 302 is a bit string for specifying the wireless PAN 100 in the IP address 310. Here, the PAN specifying unit 302 is 12 bits, and for example, “32” is specified in decimal notation 313. Therefore, 2 12 (= 4,096) wireless PANs 100 can be designated.

ノード指定部303は、IPアドレス310において、ノード200を指定するためのビット列である。ここでは、ノード指定部303は、4ビットであり、たとえば10進表記313で「1」が指定される。このように、ノード指定部303のビット数は少ないため、同一の無線PAN100におけるIPアドレス310の重複を、容易に検出することができる。   The node specifying unit 303 is a bit string for specifying the node 200 in the IP address 310. Here, the node designating unit 303 is 4 bits, and for example, “1” is designated by decimal notation 313. Thus, since the number of bits of the node designating unit 303 is small, it is possible to easily detect duplication of the IP address 310 in the same wireless PAN 100.

なお、ネットワークアドレス301、PAN指定部302、およびノード指定部303のそれぞれの配置およびビット長は、上記内容に限定されるものではない。また、IPv6(IP version 6)など、他の通信プロトコルのアドレスを適用してもよい。さらに、「10.x.x.x」のようなクラスAのプライベートアドレスを用いることも可能である。この場合は、PAN指定部302とノード指定部303を合わせて24ビット取ることができる。   Note that the arrangement and bit length of each of the network address 301, the PAN specifying unit 302, and the node specifying unit 303 are not limited to the above contents. Also, an address of another communication protocol such as IPv6 (IP version 6) may be applied. Furthermore, it is also possible to use a class A private address such as “10.x.x.x”. In this case, the PAN designation unit 302 and the node designation unit 303 can take 24 bits.

図6は、DHCPサーバ初期設定部230が生成するアドレスプールの構成の一例を示す説明図である。アドレスプール350は、IPアドレス310、割当状態351、およびMAC(media access control)アドレス352をそれぞれ記述する複数のフィールドにより構成される。ここでは、IPアドレス310のネットワークアドレスおよびPAN指定部の値が、図5と同様である場合を図示している。   FIG. 6 is an explanatory diagram showing an example of the configuration of the address pool generated by the DHCP server initial setting unit 230. The address pool 350 includes a plurality of fields describing an IP address 310, an allocation state 351, and a MAC (media access control) address 352, respectively. Here, a case where the network address of the IP address 310 and the value of the PAN specifying unit are the same as those in FIG. 5 is illustrated.

ネットワークアドレス301とPAN指定部302が同じであるIPアドレスは、「192.168.1.0〜192.168.1.15」である。したがって、これらのIPアドレス310のうち、ノード200に割り当てることができないブロードキャストアドレス「192.168.1.0」を除いた、「192.168.1.1〜192.168.1.15」が、IPアドレス310のフィールドに記述される。   An IP address in which the network address 301 and the PAN specifying unit 302 are the same is “192.168.1.0 to 192.168.1.15”. Therefore, among these IP addresses 310, except for the broadcast address “192.168.1.0” that cannot be assigned to the node 200, “192.168.1.1 to 192.168.1.15” Are described in the field of the IP address 310.

割当状態351には、対応するIPアドレス310の割り当て状態を示す情報が記述される。「空き」は、対応するIPアドレス310が、いずれのノード200にも割り当てが行われていないことを示す。「予約中」は、対応するIPアドレス310が、いずれかのノード200に予約されているが、割り当ては完了していないことを示す。「使用中」は、いずれかのノード200に割り当てされており、使用されていることを示す。   In the assignment state 351, information indicating the assignment state of the corresponding IP address 310 is described. “Free” indicates that the corresponding IP address 310 is not assigned to any node 200. “Reserving” indicates that the corresponding IP address 310 is reserved in one of the nodes 200 but has not been assigned yet. “In use” indicates that it is assigned to any node 200 and is being used.

MACアドレス352には、対応するIPアドレス310が予約あるいは割り当てられているノード200のMACアドレスが記述される。   The MAC address 352 describes the MAC address of the node 200 to which the corresponding IP address 310 is reserved or assigned.

DHCPサーバとして機能するノード200ごとにPAN指定302の値が異なれば、それぞれのアドレスプール350の間でIPアドレス310は重複しない。また、PAN指定部302の値は、DHCPサーバとして機能するノード200のIPアドレス310にも使用される。したがって、DHCPサーバとして機能するノード200のIPアドレス310のPAN指定部302を比較するだけで、それぞれのアドレスプール350に記述されるIPアドレス310が重複しているか否かを判定することができる。   If the value of the PAN designation 302 is different for each node 200 functioning as a DHCP server, the IP address 310 does not overlap between the address pools 350. The value of the PAN specifying unit 302 is also used for the IP address 310 of the node 200 that functions as a DHCP server. Therefore, it is possible to determine whether or not the IP addresses 310 described in the respective address pools 350 are duplicated only by comparing the PAN specifying unit 302 of the IP address 310 of the node 200 functioning as a DHCP server.

図4のステップS3110において、DHCPサーバ初期設定部230は、乱数で図5に示すPAN指定部302の値を選択決定し、所与のネットワークアドレス301と組み合わせて、図6に示すアドレスプール350を生成し、DHCPサーバ部220に保持させる。そして、DHCPサーバ初期設定部230は、生成したアドレスプール350の最初のIPアドレスを、自装置のIPアドレスに決定する。そして、DHCPサーバ初期設定部230は、決定したIPアドレス(以下「仮サーバアドレス」という)を、統括割当部270を介して、通信部210に設定する。すなわち、仮サーバアドレスを、自装置に対して割り当てる。   In step S3110 of FIG. 4, the DHCP server initial setting unit 230 selects and determines the value of the PAN specifying unit 302 shown in FIG. 5 with a random number, and combines the given network address 301 with the address pool 350 shown in FIG. It is generated and held in the DHCP server unit 220. Then, the DHCP server initial setting unit 230 determines the first IP address of the generated address pool 350 as the IP address of the own device. Then, the DHCP server initial setting unit 230 sets the determined IP address (hereinafter referred to as “temporary server address”) in the communication unit 210 via the overall allocation unit 270. That is, a temporary server address is assigned to the own device.

次に、ステップS3120において、自律割当部240は、仮サーバアドレスが周囲のノードで使用されていないことを確認するための要求である状況確認のARP Probeメッセージを、統括割当部270および通信部210を介してブロードキャスト出力する。   Next, in step S3120, the autonomous allocation unit 240 sends a status confirmation ARP Probe message, which is a request for confirming that the temporary server address is not used in the surrounding nodes, to the overall allocation unit 270 and the communication unit 210. Broadcast output via

図7は、状況確認のARP Probeメッセージの構成を示す説明図である。   FIG. 7 is an explanatory diagram showing the configuration of an ARP Probe message for status confirmation.

ARPで使用されるパケットは、メッセージの種類を記述するための「Opcode」フィールド401を有している。また、ARPで使用されるパケットは、送信元のハードウェアアドレスを記述するための「sender hardware address」フィールド402、送信元のIPアドレスを記述するための「sender IP address」フィールド403、処理の対象となるハードウェアアドレスを記述するための「target hardware address」フィールド404、および処理の対象となるIPアドレスを記述するための「target IP address」フィールド405とを有している。   A packet used in ARP has an “Opcode” field 401 for describing the type of message. The packet used in the ARP includes a “sender hardware address” field 402 for describing the hardware address of the transmission source, a “sender IP address” field 403 for describing the IP address of the transmission source, and a processing target. A “target hardware address” field 404 for describing a hardware address to be processed, and a “target IP address” field 405 for describing an IP address to be processed.

状況確認のARP Probeメッセージ410の場合、図7に示すように、「Opcode」フィールド401に、ARP要求であることを示す値「1」が記述される。また、「sender hardware address」フィールド402に、自装置のMACアドレスが記述され、「sender IP address」フィールド403および「target hardware address」フィールド404には、それぞれ値「0」が記述される。そして、「target IP address」フィールド405には、ステップS3110で決定した仮サーバアドレスが記述される。   In the case of the ARP Probe message 410 for status confirmation, as shown in FIG. 7, a value “1” indicating an ARP request is described in the “Opcode” field 401. Further, the MAC address of the device itself is described in the “sender hardware address” field 402, and the value “0” is described in the “sender IP address” field 403 and the “target hardware address” field 404. In the “target IP address” field 405, the temporary server address determined in step S3110 is described.

図4のステップS3130において、自律割当部240は、ステップS3120で出力した状況確認のARP Probeメッセージに対する応答が入力されるのを監視する。   In step S3130 of FIG. 4, the autonomous allocation unit 240 monitors the input of a response to the status confirmation ARP Probe message output in step S3120.

各ノード200は、自装置に既にIPアドレスが割り当てられているとき、そのIPアドレスと同一のIPアドレスが「target IP address」フィールド405に記述された状況確認のARP Probeメッセージ410を受信すると、IPアドレスの重複を示すARP応答をブロードキャスト出力するようになっている。具体的には、ARP Probeメッセージ410の「sender IP address」フィールド403の記述と一致するIPアドレスが割り当てられ、状況確認のARP Probeメッセージ410の「sender hardware address」フィールド402の記述と異なるMACアドレスを有するノード200から、ARP応答が出力される。   When each node 200 has already assigned an IP address to its own device and receives the status confirmation ARP Probe message 410 in which the same IP address is described in the “target IP address” field 405, the IP address An ARP response indicating address duplication is broadcasted. Specifically, an IP address that matches the description of the “sender IP address” field 403 of the ARP Probe message 410 is assigned, and a MAC address different from the description of the “sender hardware address” field 402 of the ARP Probe message 410 of the status confirmation is assigned. The ARP response is output from the node 200 having the same.

図8は、ARP応答の構成を示す説明図であり、図7に対応するものである。   FIG. 8 is an explanatory diagram showing the structure of the ARP response, and corresponds to FIG.

ARP応答420の場合、「Opcode」フィールド401に、ARP要求に対する応答であることを示す値「2」が記述される。また、状況確認のARP Probeメッセージ410とは異なり、「sender IP address」フィールド403に、ARP応答420の送信元のIPアドレスが記述される。また、「sender hardware address」フィールド402には、ARP応答420の送信元のMACアドレスが記述される。   In the case of the ARP response 420, the “Opcode” field 401 describes a value “2” indicating a response to the ARP request. Unlike the ARP Probe message 410 for status confirmation, the “sender IP address” field 403 describes the IP address of the transmission source of the ARP response 420. In the “sender hardware address” field 402, the MAC address of the transmission source of the ARP response 420 is described.

図4のステップ3120で、状況確認のARP Probeメッセージ410を出力したノード200は、他ノード200から図8に示すARP応答420を受信すると、ARP応答420の「sender IP address」フィールド403の記述に含まれる他ノードのIPアドレス310のPAN指定部302の値と、自装置に割り当てられたIPアドレス310のPAN指定部302の値とを比較する。一致する場合には、直接には通信できないものの、ステップS3110で決定した仮サーバアドレスと同一のIPアドレスを使用するノード200が周囲に存在していることになる。   When the node 200 that has output the status confirmation ARP Probe message 410 in Step 3120 of FIG. 4 receives the ARP response 420 illustrated in FIG. 8 from the other nodes 200, the node 200 describes the “sender IP address” field 403 in the ARP response 420. The value of the PAN designation unit 302 of the IP address 310 of the other node included is compared with the value of the PAN designation unit 302 of the IP address 310 assigned to the own device. If they match, the node 200 that uses the same IP address as the temporary server address determined in step S3110 is present in the surroundings although it cannot communicate directly.

したがって、自律割当部240は、タイムアウトになる前に状況確認のARP応答420の入力があった場合には、ステップS3110へ戻り、自装置のIPアドレスの選択をやり直す。タイムアウトになった場合には、ステップS3140へ進む。タイムアウトの時間としては、たとえば1秒が設定される。   Therefore, if there is an input of the status confirmation ARP response 420 before the timeout occurs, the autonomous allocation unit 240 returns to step S3110 and reselects the IP address of the own device. If the timeout has occurred, the process proceeds to step S3140. For example, 1 second is set as the timeout time.

ステップS3140において、自律割当部240は、IPアドレスの状況確認において、3回以上連続してタイムアウトとなったか否かを判断する。3回未満の場合には(S3140:NO)、ステップS3120へ戻り、状況確認のARP Probeメッセージ410を再び出力する。タイムアウトが3回以上となった場合には(S3140:YES)、ステップS3110で決定した仮サーバアドレスと同一のIPアドレスを使用するノードは周囲に存在しないとして、仮サーバアドレスを自装置で使用するIPアドレスとして選択し、ステップS3150へ進む。   In step S3140, the autonomous allocation unit 240 determines whether a timeout has occurred for three or more consecutive times in the status confirmation of the IP address. If it is less than three times (S3140: NO), the process returns to step S3120, and the status confirmation ARP Probe message 410 is output again. If the timeout is 3 times or more (S3140: YES), the temporary server address is used by the own device, assuming that there is no node using the same IP address as the temporary server address determined in step S3110. The IP address is selected and the process proceeds to step S3150.

ステップS3150において、自律割当部240は、仮サーバアドレスを自装置で利用することを通知する使用要求のARP Probeメッセージ(ARP Announcement)を生成し、統括割当部270および通信部210を介して出力する。   In step S3150, the autonomous allocation unit 240 generates an ARP Probe message (ARP Announcement) of a usage request for notifying that the temporary server address is used by the own device, and outputs the generated ARP Probe message via the overall allocation unit 270 and the communication unit 210. .

図9は、使用要求のARP Probeメッセージの構成を示す説明図であり、図7に対応するものである。   FIG. 9 is an explanatory diagram showing the configuration of the ARP Probe message for use request, and corresponds to FIG.

使用要求のARP Probeメッセージ430の場合、「Opcode」フィールド401に、ARP要求であることを示す値「1」が記述される。また、状況確認のARP Probeメッセージ410とは異なり、「sender IP address」フィールド403に、使用要求のARP Probeメッセージ430の送信元のIPアドレスが記述される。また、「target IP address」フィールド405には、使用要求のARP Probeメッセージ430の送信元で使用することが決定されたIPアドレスが記述される。   In the case of the use request ARP Probe message 430, a value “1” indicating an ARP request is described in the “Opcode” field 401. Further, unlike the ARP Probe message 410 for status confirmation, the “sender IP address” field 403 describes the IP address of the transmission source of the ARP Probe message 430 for use request. In the “target IP address” field 405, an IP address determined to be used by the transmission source of the ARP Probe message 430 of the use request is described.

図4のステップS3160において、自律割当部240は、3回以上連続して図9に示す使用要求のARP Probeメッセージ430を出力したか否かを判断する。自律割当部240は、3回未満の場合には(S3160:NO)、ステップS3150へ戻り、使用要求のARP Probeメッセージ430を再び出力する。使用要求のARP Probeメッセージ430の出力回数が3回以上となった場合には(S3160:YES)、ノード200は、自装置のIPアドレスを確定し、一連の処理を終了する。   In step S3160 of FIG. 4, the autonomous allocation unit 240 determines whether or not the use request ARP Probe message 430 shown in FIG. If it is less than three times (S3160: NO), the autonomous allocation unit 240 returns to step S3150 and outputs the use request ARP Probe message 430 again. When the output count of the use request ARP Probe message 430 is three times or more (S3160: YES), the node 200 determines the IP address of the own device and ends the series of processes.

このようにして、DHCPサーバ動作を開始したノード200は、サーバ初期設定処理を終了し、アドレスプールと自装置のIPアドレスの設定が完了する。   In this way, the node 200 that has started the DHCP server operation ends the server initial setting process, and the setting of the address pool and the IP address of the own device is completed.

ノード200は、サーバ初期設定処理のうち、ステップS3110の処理が完了し、アドレスプールを生成した時点で、上記したIPアドレス割当処理を開始する。   The node 200 starts the above-described IP address assignment process when the process of step S3110 is completed in the server initial setting process and the address pool is generated.

図10は、図3のDHCPサーバ動作状態3000において実行されるIPアドレス割当処理の流れを示すフローチャートである。DHCPサーバとして機能するノード200を検索するノード200は、従来技術で説明したように、DHCPDISCOVERメッセージをブロードキャスト出力する。   FIG. 10 is a flowchart showing a flow of IP address assignment processing executed in the DHCP server operation state 3000 of FIG. The node 200 that searches for the node 200 that functions as a DHCP server broadcasts a DHCPDISCOVER message as described in the related art.

ステップS3210において、通信部210は、DHCPクライアントとして動作する他ノード200から、DHCPDISCOVERメッセージが入力されると、DHCPサーバ部220に対し、そのDHCPDISCOVERメッセージを通知する。   In step S3210, when the DHCPDISCOVER message is input from the other node 200 operating as a DHCP client, the communication unit 210 notifies the DHCP server unit 220 of the DHCPDISCOVER message.

次に、ステップS3220において、DHCPサーバ部220は、通知されたDHCPDISCOVERメッセージに対して、図4のステップS3110で生成されたアドレスプール350から、割り当ての対象となるIPアドレス310を選択する。ただし、このとき、DHCPサーバ部220は、割当状態351が「空き」となっているIPアドレス310を選択する。そして、DHCPサーバ部220は、選択したIPアドレス310の割当状態351を、「予約中」に書き替えるとともに、通信部210から通知されたDHCPDISCOVERメッセージに含まれるMACアドレスを、対応するMACアドレス352のフィールドに記述する。   Next, in step S3220, the DHCP server unit 220 selects an IP address 310 to be allocated from the address pool 350 generated in step S3110 of FIG. 4 for the notified DHCPDISCOVER message. However, at this time, the DHCP server unit 220 selects the IP address 310 whose allocation state 351 is “free”. Then, the DHCP server unit 220 rewrites the allocation state 351 of the selected IP address 310 as “reserved” and changes the MAC address included in the DHCPDISCOVER message notified from the communication unit 210 to the corresponding MAC address 352. Describe in the field.

次に、ステップS3230において、統括割当部270は、自装置が既に使用要求のARP Probeメッセージ430を出力しているか、つまり自装置のアドレスプールが確定したか否かを判断する。具体的には、統括割当部270は、自律割当部240の状態を監視し、自装置が実行する上記IPアドレス割当処理が、既に図4のS3150の処理に到達しているか否かを判断する。まだ自律割当部240が使用要求のARP Probeメッセージ430を出力していない場合には(S3230:NO)、ステップS3240へ進む。   Next, in step S3230, the overall allocation unit 270 determines whether the own device has already output the use request ARP Probe message 430, that is, whether the address pool of the own device has been determined. Specifically, the overall allocation unit 270 monitors the state of the autonomous allocation unit 240 and determines whether or not the IP address allocation process executed by the own apparatus has already reached the process of S3150 in FIG. . If the autonomous allocation unit 240 has not yet output the use request ARP Probe message 430 (S3230: NO), the process proceeds to step S3240.

ステップS3240において、統括割当部270は、DHCPサーバ部220に対し、ステップS3220で行ったIPアドレス310の設定が仮のものであることを示す仮設定フラグを、DHCPOFFERメッセージに設定させる。DHCPOFFERメッセージは、DHCPDISCOVERメッセージに対する応答として、ステップS3220で選択したIPアドレス310を格納して当該IPアドレス310を提示するための信号である。   In step S3240, the overall allocation unit 270 causes the DHCP server unit 220 to set a temporary setting flag indicating that the setting of the IP address 310 performed in step S3220 is temporary in the DHCPOFFER message. The DHCPOFFER message is a signal for storing the IP address 310 selected in step S3220 and presenting the IP address 310 as a response to the DHCPDISCOVER message.

DHCPOFFERメッセージに仮設定フラグを設定するのは、IPアドレス割当処理が、図4のステップS3110へ戻り、アドレスプールが変更されて別のIPアドレスを提示し直す可能性があるためである。すなわち、仮設定フラグは、DHCPOFFERメッセージの受け取り側に対して、割り当てを行うIPアドレスが仮のものであることを通知するためである。仮設定フラグは、たとえばDHCPのフラグフィールドや、IPのオプションフィールドを使用すればよい。   The temporary setting flag is set in the DHCPOFFER message because the IP address assignment processing may return to step S3110 in FIG. 4 to change the address pool and present another IP address. That is, the temporary setting flag is for notifying the receiving side of the DHCPOFFER message that the IP address to be assigned is temporary. As the temporary setting flag, for example, a DHCP flag field or an IP option field may be used.

次に、ステップS3250において、DHCPサーバ部220は、通信部210を介して、DHCPOFFERメッセージをブロードキャスト出力する。   Next, in step S3250, the DHCP server unit 220 broadcasts a DHCPOFFER message via the communication unit 210.

一方、自装置から使用要求のARP Probeメッセージ430を既に出力している場合には(S3230:YES)、IPアドレス割当処理は図4のステップS3110へ戻らない。したがって、アドレスプール350は確定していることから、DHCPサーバ部220は、仮設定フラグの設定は行わずに、そのままステップS3250へ進み、DHCPOFFERメッセージを出力する。   On the other hand, if the ARP Probe message 430 requesting use has already been output from the own apparatus (S3230: YES), the IP address assignment processing does not return to step S3110 in FIG. Accordingly, since the address pool 350 has been determined, the DHCP server unit 220 proceeds to step S3250 without setting the temporary setting flag, and outputs a DHCPOFFER message.

ステップS3260において、DHCPサーバ部220は、ステップS3250で出力したDHCPOFFERメッセージに対する応答として、DHCPREQUESTメッセージが通信部210で受信されるのを監視する。DHCPREQUESTメッセージは、DHCPOFFERメッセージを受け取ったノード200が、そのDHCPOFFERメッセージが提示するIPアドレスを使用することを要求するための信号である。また、DHCPREQUESTメッセージには、要求先として選択されたノード200のIPアドレスである選択サーバIPアドレスが含まれている。ここで監視の対象となるのは、自装置のIPアドレスが、選択サーバIPアドレスとして指定され、かつ使用を要求するIPアドレスの割当状態351が「予約中」のものである。   In step S3260, the DHCP server unit 220 monitors the reception of the DHCPREQUEST message by the communication unit 210 as a response to the DHCPOFFER message output in step S3250. The DHCPREQUEST message is a signal for requesting that the node 200 that has received the DHCPOFFER message uses the IP address provided by the DHCPOFFER message. The DHCPREQUEST message includes a selected server IP address that is the IP address of the node 200 selected as the request destination. In this case, the IP address of the own device is designated as the selected server IP address, and the IP address assignment state 351 that is requested to be used is “reserved”.

DHCPサーバ部220は、タイムアウトになる前に該当するDHCPREQUESTメッセージが自装置に到着した場合には(S3260:YES)、ステップS3270へ進む。一方、該当するDHCPREQUESTメッセージが自装置に到着しないままタイムアウトになった場合には(S3260:NO)、ステップS3280へ進む。   If the corresponding DHCPREQUEST message arrives at the own device before the timeout occurs (S3260: YES), the DHCP server unit 220 proceeds to step S3270. On the other hand, when the corresponding DHCPREQUEST message times out without arriving at the own apparatus (S3260: NO), the process proceeds to step S3280.

ステップS3270において、DHCPサーバ部220は、アドレスプール350のうち、DHCPREQUESTメッセージが使用を要求するIPアドレス310に対応する割当状態351を、「予約中」から「使用中」へと書き替える。   In step S3270, the DHCP server unit 220 rewrites the allocation state 351 corresponding to the IP address 310 requested to be used by the DHCPREQUEST message in the address pool 350 from “reserved” to “in use”.

次に、ステップS3290において、統括割当部270は、再び、自装置が既に使用要求のARP Probeメッセージ430を出力しているかを判断する。まだ自律割当部240が使用要求のARP Probeメッセージ430を出力していない場合には(S3290:NO)、ステップS3300へ進む。   Next, in step S3290, the overall allocation unit 270 determines again whether or not the own device has already output the use request ARP Probe message 430. If the autonomous allocation unit 240 has not yet output the use request ARP Probe message 430 (S3290: NO), the process proceeds to step S3300.

ステップS3300において、統括割当部270は、DHCPサーバ部220に対して、仮設定フラグを、今度はDHCPACKメッセージに設定させる。DHCPACKメッセージは、周囲のノード200に対して、IPアドレス310の割り当てが成功したことを通知する信号であり、その割り当ての対象となるIPアドレス310を格納している。   In step S3300, the overall allocation unit 270 causes the DHCP server unit 220 to set the temporary setting flag this time in the DHCPACK message. The DHCPACK message is a signal for notifying the surrounding nodes 200 that the assignment of the IP address 310 is successful, and stores the IP address 310 to be assigned.

次に、ステップS3310において、DHCPサーバ部220は、通信部210を介して、DHCPACKメッセージをブロードキャスト出力する。   In step S <b> 3310, the DHCP server unit 220 broadcasts a DHCPACK message via the communication unit 210.

そして、ステップS3320において、DHCPサーバ部220は、自装置のDHCPサーバ動作を終了するか否かを判断する。DHCPサーバ動作を継続する場合には(S3320:NO)、再びステップS3210へ戻り、新たなDHCPDISCOVERメッセージがクライアントとして動作する他ノード200から入力されるのを監視する。ユーザ操作により無線通信の停止が指示されるなどして、DHCPサーバ動作を終了する場合には(S3320:YES)、一連の処理を終了する。   In step S3320, the DHCP server unit 220 determines whether to end the DHCP server operation of the own device. If the DHCP server operation is to be continued (S3320: NO), the process returns to step S3210 again to monitor the input of a new DHCPDISCOVER message from the other node 200 operating as a client. When the DHCP server operation is terminated due to an instruction to stop wireless communication by a user operation (S3320: YES), a series of processes is terminated.

一方、ステップS3280では、DHCPOFFERメッセージを出力したものの、対応するDHCPREQUESTメッセージが到着しないことから、DHCPサーバ部220は、ノード200に対して提示したIPアドレス310の解放を設定する。すなわち、DHCPサーバ部220は、アドレスプール350のうち、ステップS3220で選択したIPアドレス310の割当状態351を、「予約中」から「空き」に書き替える。そして、ステップS3320へ進む。   On the other hand, in step S3280, although the DHCPOFFER message is output, the corresponding DHCPREQUEST message does not arrive, so the DHCP server unit 220 sets the release of the IP address 310 presented to the node 200. That is, the DHCP server unit 220 rewrites the allocation state 351 of the IP address 310 selected in step S3220 in the address pool 350 from “reserved” to “free”. Then, the process proceeds to step S3320.

また、ステップS3270を終えた段階で、自装置から使用要求のARP Probeメッセージ430を既に出力している場合は(S3290:YES)、アドレスプール350は確定していることから、仮設定フラグの設定は行わずに、そのままステップS3310へ進み、DHCPACKメッセージを出力する。   If the ARP Probe message 430 requesting use has already been output from the own device at the stage where step S3270 is completed (S3290: YES), the address pool 350 has been determined, so the provisional setting flag is set. Without proceeding to step S3310, and a DHCPACK message is output.

このようにして、ノード200は、DHCPサーバ動作の状態にあるときに、クライアントとして動作する他ノード200からの要求に応じて、アドレス割り当てを行う。また、そのアドレス割り当てを行う段階でアドレスプールがまだ確定していない場合には、アドレス割り当てが仮のものであることを通知する。したがって、アドレス割り当てを受ける側では、DHCPサーバ動作を開始したノード200が初期設定を完了していないような早い段階で、DHCPクライアントとして動作するための初期設定を開始し、IP通信を開始することができる。なお、統括割当部270は、自装置のアドレスプールが確定した時点で、ステップS3230、S3240、S3290、S3300の処理を省略するようにしてもよい。   In this way, when the node 200 is in the DHCP server operation state, the node 200 performs address assignment in response to a request from another node 200 operating as a client. If the address pool has not yet been determined at the stage of the address assignment, it is notified that the address assignment is temporary. Therefore, the address receiving side starts the initial setting for operating as a DHCP client and starts IP communication at an early stage where the node 200 that has started the DHCP server operation has not completed the initial setting. Can do. The overall allocation unit 270 may omit the processes in steps S3230, S3240, S3290, and S3300 when the address pool of the own device is determined.

図11は、図3のDHCPクライアント動作状態2000において実行されるクライアント初期設定処理の流れを示すフローチャートである。   FIG. 11 is a flowchart showing the flow of client initial setting processing executed in the DHCP client operation state 2000 of FIG.

ステップS2110において、統括割当部270は、DHCPアドレス取得部250に対してDHCPDISCOVERメッセージを生成させ、通信部210を介してブロードキャスト出力し、DHCPサーバの検索を行う。   In step S2110, the overall allocation unit 270 causes the DHCP address acquisition unit 250 to generate a DHCPDISCOVER message, broadcasts it via the communication unit 210, and searches for a DHCP server.

ステップS2120において、統括割当部270は、ステップS2110でDHCPDISCOVERメッセージに対する応答として、DHCPOFFERメッセージが通信部210で受信されるのを一定時間監視する。このDHCPOFFERメッセージは、DHCPサーバとして動作する他ノード200が、図10に示すIPアドレス割当処理を行うとき、図10のステップS3250で出力するものである。すなわち、DHCPOFFERメッセージが自装置に到着する場合には、通信可能範囲内にDHCPサーバとして機能する他ノード200が存在している。   In step S2120, the overall allocation unit 270 monitors for a predetermined time that the DHCPOFFER message is received by the communication unit 210 as a response to the DHCPDISCOVER message in step S2110. This DHCPOFFER message is output in step S3250 of FIG. 10 when the other node 200 operating as the DHCP server performs the IP address assignment process shown in FIG. That is, when the DHCPOFFER message arrives at its own device, another node 200 functioning as a DHCP server exists within the communicable range.

統括割当部270は、DHCPOFFERメッセージが自装置に到着した場合には(図11、S2120:YES)、DHCPアドレス取得部250に対してDHCPOFFERメッセージを渡し、ステップS2130へ進む。そして、統括割当部270は、自装置のDHCPクライアント動作状態を継続させる。このとき、通信可能範囲内にDHCPサーバとして機能する他ノード200が複数存在している場合には、複数のDHCPOFFERメッセージが到着する。   If the DHCPOFFER message has arrived at its own device (FIG. 11, S2120: YES), the overall allocation unit 270 passes the DHCPOFFER message to the DHCP address acquisition unit 250, and proceeds to step S2130. Then, the overall allocation unit 270 continues the DHCP client operation state of its own device. At this time, if there are a plurality of other nodes 200 functioning as a DHCP server within the communicable range, a plurality of DHCPOFFER messages arrive.

一方、該当するDHCPOFFERメッセージが到着しないままタイムアウトになった場合には(S2120:NO)、ステップS3100へ進む。そして、統括割当部270は、通信可能範囲内にDHCPサーバとして機能する他ノード200が存在していないものとして、自装置を図3のDHCPサーバ動作状態3000に遷移させる。そして、ノード200は、図4および図10で説明したサーバ初期設定処理およびIPアドレス割当処理を実行する。   On the other hand, if the corresponding DHCPOFFER message has timed out without arriving (S2120: NO), the process proceeds to step S3100. Then, the overall allocation unit 270 transitions its own apparatus to the DHCP server operation state 3000 in FIG. 3 on the assumption that there is no other node 200 functioning as a DHCP server within the communicable range. Then, the node 200 executes the server initial setting process and the IP address assignment process described with reference to FIGS.

ステップS2130において、DHCPアドレス取得部250は、入力されたそれぞれのDHCPOFFERメッセージから、提示されるIPアドレス310を取得するとともに、各DHCPOFFERメッセージに仮設定フラグが設定されているか否かを判別する。この仮設定フラグは、DHCPサーバとして動作する他ノード200が、図10のステップS3240で設定するものである。すなわち、仮設定フラグが設定されているか否かによって、そのDHCPOFFERメッセージで提示されるIPアドレスが、後で変更される可能性があるか否かを判断することができる。   In step S2130, the DHCP address acquisition unit 250 acquires the presented IP address 310 from each input DHCPOFFER message, and determines whether or not a temporary setting flag is set in each DHCPOFFER message. This temporary setting flag is set by the other node 200 operating as the DHCP server in step S3240 in FIG. That is, whether or not the IP address presented in the DHCPOFFER message is likely to be changed later can be determined based on whether or not the temporary setting flag is set.

仮設定フラグが設定されているDHCPOFFERメッセージについては、(S2130:YES)、ステップS2140へ進む。仮設定フラグが設定されていないDHCPOFFERメッセージについては、(S2130:NO)、ステップS2140を経ることなく、ステップS2140の次のステップS2150へ進む。   For the DHCPOFFER message in which the temporary setting flag is set (S2130: YES), the process proceeds to step S2140. For a DHCPOFFER message in which the temporary setting flag is not set (S2130: NO), the process proceeds to step S2150 after step S2140 without passing through step S2140.

ステップS2140において、DHCPアドレス取得部250は、該当するIPアドレスに対して、内部的に仮設定フラグを立てる。   In step S2140, the DHCP address acquisition unit 250 internally sets a temporary setting flag for the corresponding IP address.

ステップS2150において、DHCPアドレス取得部250は、DHCPOFFERメッセージによって提示されたIPアドレスの中から、自装置で使用することを要求するIPアドレスを選択する。このとき、DHCPアドレス取得部250は、仮設定フラグが立っていないIPアドレスが存在する場合には、仮設定フラグが立っていないIPアドレスの中から選択を行う。また、DHCPアドレス取得部250は、提示されたIPアドレスが複数である場合には、例えば最初に提示されたDHCPOFFERメッセージの相手先から提示されたIPアドレスを、優先的に選択する。   In step S2150, the DHCP address acquisition unit 250 selects an IP address that is requested to be used by the own device from among the IP addresses presented by the DHCPOFFER message. At this time, when there is an IP address for which the temporary setting flag is not set, the DHCP address acquisition unit 250 selects the IP address for which the temporary setting flag is not set. Further, when there are a plurality of presented IP addresses, the DHCP address acquiring unit 250 preferentially selects the IP address presented from the other party of the DHCPOFFER message presented first, for example.

次に、ステップS2160において、DHCPアドレス取得部250は、DHCPREQUESTメッセージを生成し、統括割当部270および通信部210を介してブロードキャスト出力する。このとき、DHCPアドレス取得部250は、DHCPREQUESTメッセージに、ステップS2150で選択したIPアドレスを、要求IPアドレスとして指定するとともに、当該IPアドレスを提示したノード200のIPアドレスを、選択サーバIPアドレスとして指定する。   Next, in step S <b> 2160, the DHCP address acquisition unit 250 generates a DHCPREQUEST message and broadcasts it via the overall allocation unit 270 and the communication unit 210. At this time, the DHCP address acquisition unit 250 specifies the IP address selected in step S2150 as the request IP address in the DHCPREQUEST message, and also specifies the IP address of the node 200 that presented the IP address as the selected server IP address. To do.

次に、ステップS2170において、DHCPアドレス取得部250は、ステップS2160で送出したDHCPREQUESTメッセージに対する応答として、DHCPACKメッセージを受信する。このDHCPACKメッセージは、DHCPサーバとして動作する他のノード200が、図10のステップS3310で出力するものである。   Next, in step S2170, the DHCP address acquisition unit 250 receives a DHCPACK message as a response to the DHCPREQUEST message sent in step S2160. This DHCPACK message is output in step S3310 of FIG. 10 by another node 200 operating as a DHCP server.

次に、ステップS2180において、DHCPアドレス取得部250は、入力されたDHCPACKメッセージに仮設定フラグが設定されているか否かを判別する。この仮設定フラグは、DHCPサーバとして動作する他ノード200が、図10のステップS3300で設定するものである。すなわち、仮設定フラグが設定されている場合には、そのDHCPACKメッセージによって割り当てられるIPアドレスは、後で変更される可能性があるということが分かる。仮設定フラグが設定されている場合には、(S2180:YES)、ステップS2190へ進む。仮設定フラグが設定されていない場合には、(S2180:NO)、ステップS2190を経ることなく、ステップS2190の次のステップS2200へ進む。   Next, in step S2180, the DHCP address acquisition unit 250 determines whether or not a temporary setting flag is set in the input DHCPACK message. This temporary setting flag is set by the other node 200 operating as the DHCP server in step S3300 in FIG. That is, when the temporary setting flag is set, it can be seen that the IP address assigned by the DHCPACK message may be changed later. If the temporary setting flag is set (S2180: YES), the process proceeds to step S2190. If the temporary setting flag is not set (S2180: NO), the process proceeds to step S2200 after step S2190 without passing through step S2190.

ステップS2190において、DHCPアドレス取得部250は、ステップS2140と同様に、該当するIPアドレスに対して、内部的に仮設定フラグを立てる。ただし、既に該当するIPアドレスに仮設定フラグが立っている場合には、そのままとする。   In step S2190, the DHCP address acquisition unit 250 internally sets a temporary setting flag for the corresponding IP address, similarly to step S2140. However, if the temporary setting flag is already set at the corresponding IP address, it is left as it is.

ステップS2200において、DHCPアドレス取得部250は、ステップS2150で選択し、ステップS2170で自装置に割り当てられたIPアドレスを、統括割当部270を介して通信部210に設定する。通信部210は、IPアドレスの設定に対応して、ネットマスク、デフォルトのゲートウェイのアドレス、DNS(domain name system)サーバのアドレスなど、DHCPで取得できる各種情報を取得し、自装置に設定する。そして、一連の処理を終了する。   In step S2200, the DHCP address acquisition unit 250 sets the IP address selected in step S2150 and assigned to the own device in step S2170 to the communication unit 210 via the overall allocation unit 270. Corresponding to the setting of the IP address, the communication unit 210 acquires various information that can be acquired by DHCP, such as a netmask, a default gateway address, and a DNS (domain name system) server address, and sets them in its own apparatus. Then, a series of processing ends.

このようにして、ノード200は、DHCPクライアントとして、IP通信が可能な状態となる。なお、ステップS2130とステップS2180の2段階で仮設定の有無をチェックするため、複数のサーバから提示される複数のIPアドレスの中に仮設定ではないIPアドレスが存在している場合に、迅速にこれを選択することができる。   In this way, the node 200 becomes a state capable of IP communication as a DHCP client. In addition, since the presence / absence of temporary setting is checked in two steps of step S2130 and step S2180, when there is an IP address that is not temporarily set among a plurality of IP addresses presented from a plurality of servers, This can be selected.

ただし、自装置に割り当てられたIPアドレスが仮設定の場合、そのIPアドレスは変更される可能性があるだけでなく、他のノード200と重複して設定されている可能性がある。   However, when the IP address assigned to the own device is provisionally set, the IP address may not only be changed, but may be set redundantly with other nodes 200.

そこで、アプリケーション通信部290は、DHCPアドレス取得部250に仮設定フラグが立っているか否かを監視し、仮設定フラグが立っている状態にあるときには、これをアプリケーション部280に通知する。アプリケーション部280は、この通知を受けると、重要な情報の送信を差し控えるなどして、自己が行う通信を制限したり、アプリケーション通信部290に、通信部210に対して受信を制限させるなどの制御を行わせる。   Therefore, the application communication unit 290 monitors whether or not the temporary setting flag is set in the DHCP address acquisition unit 250, and notifies the application unit 280 when the temporary setting flag is set. Upon receiving this notification, the application unit 280 refrains from transmitting important information to limit communication performed by the application unit 280, or cause the application communication unit 290 to restrict reception by the communication unit 210. Let control take place.

一方で、DHCPサーバがアドレスプールを確定した場合には、自装置に割り当てられたIPアドレスも確定される。このとき、上記した通信の制限は、速やかに解除されるべきである。そこで、DHCPクライアントとして動作するノード200は、図11のステップS2120でDHCPOFFERメッセージによりIPアドレスの提示を受けた時点で、仮設定指定を適宜解除して通常のIP通信を開始するための仮設定解除判定処理を開始する。   On the other hand, when the DHCP server determines the address pool, the IP address assigned to the own device is also determined. At this time, the communication restriction described above should be released promptly. Therefore, the node 200 operating as a DHCP client cancels the temporary setting designation to start normal IP communication by appropriately canceling the temporary setting designation at the time when the IP address is presented by the DHCPOFFER message in step S2120 of FIG. Judgment processing is started.

図12は、図3のDHCPクライアント動作状態2000において実行される仮設定解除判定処理の流れを示すフローチャートである。   FIG. 12 is a flowchart showing the flow of temporary setting release determination processing executed in the DHCP client operation state 2000 of FIG.

ステップS2310において、通信部210は、他ノード200から自装置宛てに送信されるIPパケットを入力する。   In step S2310, the communication unit 210 inputs an IP packet transmitted from the other node 200 to the own device.

ステップS2320において、統括割当部270は、受信したIPパケットの送信元がDHCPサーバであるか否かを判断する。具体的には、統括割当部270は、IPパケットの宛先IPアドレス310からノード指定部303に記述された値を抽出し、抽出した値が「1」であるか否かを判別する。IPパケットの送信元がDHCPサーバである場合には(S2320:YES)、ステップS2330へ進む。   In step S2320, the overall allocation unit 270 determines whether or not the transmission source of the received IP packet is a DHCP server. Specifically, the overall allocation unit 270 extracts a value described in the node designation unit 303 from the destination IP address 310 of the IP packet, and determines whether or not the extracted value is “1”. If the source of the IP packet is a DHCP server (S2320: YES), the process proceeds to step S2330.

ステップS2330において、統括割当部270は、自装置に割り当てられたIPアドレス310に対して仮設定フラグが設定されているか否かを判別する。仮設定フラグが設定されている場合には(S2330:YES)、ステップS2340へ進む。仮設定フラグが設定されていない場合には(S2330:NO)、仮設定の解除の判定を行う必要が無いため、そのまま処理を終了する。   In step S2330, the overall assignment unit 270 determines whether or not a temporary setting flag is set for the IP address 310 assigned to the own device. If the temporary setting flag is set (S2330: YES), the process proceeds to step S2340. If the temporary setting flag is not set (S2330: NO), it is not necessary to determine whether to cancel the temporary setting, and thus the process ends.

ステップS2340において、統括割当部270は、受信したIPパケットに、仮設定フラグが設定されているか否かを判別する。本実施の形態では、上記したように、DHCPOFFERメッセージおよびDHCPACKメッセージに設定することが可能となっている。仮設定フラグが設定されていない場合には(S2340:NO)、ステップS2350へ進む。   In step S2340, the overall allocation unit 270 determines whether or not a temporary setting flag is set in the received IP packet. In the present embodiment, as described above, it can be set in the DHCPOFFER message and the DHCPACK message. If the temporary setting flag is not set (S2340: NO), the process proceeds to step S2350.

ステップS2350において、PAN指定判定部260は、受信したIPパケットの送信元IPアドレス310のPAN指定部302に記述された値を抽出する。そして、PAN指定判定部260は、受信したIPパケットから抽出した値と、DHCPアドレス取得部250が図11のステップS2200でDHCPによって取得したIPアドレス310のPAN指定部302に記述された値とを比較する。これらの値が一致する場合には(S2350:YES)、ステップS2360へ進む。   In step S2350, the PAN designation determination unit 260 extracts the value described in the PAN designation unit 302 of the source IP address 310 of the received IP packet. Then, the PAN designation determination unit 260 obtains the value extracted from the received IP packet and the value described in the PAN designation unit 302 of the IP address 310 acquired by the DHCP address acquisition unit 250 through DHCP in step S2200 of FIG. Compare. If these values match (S2350: YES), the process proceeds to step S2360.

ステップS2360において、PAN指定判定部260は、DHCPサーバとして動作し、自装置に対してIPアドレスを提示した他ノード200が、アドレスプールを確定してIP通信を開始したものとして、DHCPアドレス取得部250に対して、対応する仮設定フラグを削除させる。そして、一連の処理を終了する。   In step S2360, the PAN designation determination unit 260 operates as a DHCP server, and determines that the other node 200 that has presented the IP address to its own device has confirmed the address pool and started IP communication. 250, the corresponding temporary setting flag is deleted. Then, a series of processing ends.

また、受信したIPパケットの送信元がDHCPサーバではない場合や(S2320:NO)、受信したIPパケットに仮設定フラグが設定されている場合(S2340:YES)、および受信したIPパケットの送信元アドレスと自装置で取得したIPアドレス310とでPAN指定部302の値が異なる場合は(S2350:NO)、ステップS2310へ戻る。   Further, when the source of the received IP packet is not a DHCP server (S2320: NO), when the temporary setting flag is set in the received IP packet (S2340: YES), and the source of the received IP packet If the value of the PAN specifying unit 302 differs between the address and the IP address 310 acquired by the own device (S2350: NO), the process returns to step S2310.

このようにして、ノード200は、DHCPクライアントとして動作するとき、DHCPサーバとして動作する他ノード200から割り当てられたIPアドレスが仮設定であったとしても、その他ノード200から自装置宛てのIPパケットを受信したときに、この仮設定を速やかに解除することができる。   In this way, when the node 200 operates as a DHCP client, even if the IP address assigned from the other node 200 operating as the DHCP server is provisionally set, the node 200 sends an IP packet addressed to itself from the other node 200. This temporary setting can be canceled promptly when received.

たとえば、あるノード200から、仮設定フラグが立てられたDHCPOFFERメッセージを受信した後、仮設定フラグが立てられていないDHCPACKメッセージを受信した場合、DHCPACKメッセージを受信した時点で仮設定指定が解除されることになる。   For example, after receiving a DHCPOFFER message with a provisional setting flag set from a certain node 200 and receiving a DHCPACK message without a provisional setting flag, the provisional setting designation is canceled when the DHCPACK message is received. It will be.

なお、たとえば、DHCPACKメッセージの後、DHCPサーバとして機能するノード200から、特にパケットが送られてこない場合もある。そこで、このような場合には、能動的にIPアドレスの仮設定の解除の可否を問い合わせ、適宜IPアドレスの取得を再試行する異常系処理を行うことが望ましい。この異常系処理としては、たとえば、仮設定が解除されないまま所定の時間が経過してタイムアウトとなった場合に、自装置のIPアドレスを問い合わせるARP要求を出力するようにし、ARP応答が受信されないままタイムアウトになった場合には、IPアドレスの仮設定が継続しているものとして、再びクライアント初期設定処理を実行しなおすようにすればよい。   For example, after the DHCPACK message, there is a case where no packet is sent from the node 200 functioning as the DHCP server. Therefore, in such a case, it is desirable to perform an abnormal process of actively inquiring whether or not the temporary setting of the IP address can be canceled and retrying acquisition of the IP address as appropriate. As this abnormal processing, for example, when a predetermined time elapses without canceling the temporary setting and a timeout occurs, an ARP request for inquiring about the IP address of the own device is output, and an ARP response is not received. When the time-out occurs, the initial setting of the IP address is assumed to be continued, and the client initial setting process may be executed again.

また、このような事態を避けるために、統括割当部270は、自装置がDHCPサーバとして動作する際には、自装置のアドレスプールが確定した時点で、アドレス割り当てを行った他ノード200に対して、仮設定フラグの設定されていないパケットを送るようにしてもよい。   Further, in order to avoid such a situation, the overall allocation unit 270, when the own device operates as a DHCP server, with respect to the other node 200 that has performed address assignment when the address pool of the own device is determined. Thus, a packet in which the temporary setting flag is not set may be sent.

さらに、本実施の形態においては、PAN指定判定部260を仮設定の削除の判定時に用いるが、移動して無線PAN100エリア内に進入した他の装置と自装置のIPアドレスが重複する可能性を判定する場合にも使用することは可能である。   Furthermore, in this embodiment, the PAN designation determination unit 260 is used when determining temporary setting deletion, but there is a possibility that the IP address of the own device overlaps with another device that has moved into the wireless PAN 100 area. It can also be used for determination.

以下、図1に示す無線PAN100における各ノード200の起動タイミングの具体例を用いて、各ノード200の動作および信号の様子について説明する。   Hereinafter, the operation of each node 200 and the state of signals will be described using a specific example of the activation timing of each node 200 in the wireless PAN 100 shown in FIG.

図13は、図1に示す無線PAN100の各ノード200が初期設定を行う際の、各ノード200の動作および信号の様子の一例を示すシーケンス図である。ここでは、第1のノード200−1が先に電源投入され、その直後の第1のノード200−1の初期設定が完了していない段階で、第2のノード200−2が電源投入された場合の例を図示している。   FIG. 13 is a sequence diagram illustrating an example of operations and signal states of each node 200 when each node 200 of the wireless PAN 100 illustrated in FIG. 1 performs initial setting. Here, the first node 200-1 is powered on first, and the second node 200-2 is powered on at the stage where the initial setting of the first node 200-1 is not completed immediately thereafter. An example of the case is illustrated.

ステップS5100において、時刻tに、第1のノード200−1は電源オン(ON)状態となり、第2のノード200−2は電源オフ(OFF)状態のままであったとする。 In step S5100, the time t 0, the first node 200-1 is turned power-on (ON) state, the second node 200-2 remained power-off (OFF) state.

ステップS5200において、第1のノード200−1は、時刻tの直後に、DHCPDISCOVERメッセージをブロードキャスト出力する(図11のステップS2110)。ただし、この時点で、第2のノード200−2はOFF状態であるため、第1のノード200−1に応答は返ってこない(図11のステップS2120:NO)。 In step S5200, the first node 200-1, immediately after time t 0, broadcasts outputs a DHCPDISCOVER message (step S2110 in FIG. 11). However, at this time, since the second node 200-2 is in the OFF state, no response is returned to the first node 200-1 (step S2120 in FIG. 11: NO).

ステップS5300において、第1のノード200−1は、DHCPサーバ動作状態に入る(図11のステップS3100)。   In step S5300, the first node 200-1 enters the DHCP server operating state (step S3100 in FIG. 11).

ステップS5400において、ステップS5300で第1のノード200−1がDHCPサーバ動作状態に入った直後に、第2のノード200−2がON状態になったとする。   In step S5400, it is assumed that the second node 200-2 is turned on immediately after the first node 200-1 enters the DHCP server operation state in step S5300.

ステップS5500において、第2のノード200−2は、DHCPDISCOVERメッセージをブロードキャスト出力する(図11のステップS2110)。   In step S5500, the second node 200-2 broadcasts a DHCPDISCOVER message (step S2110 in FIG. 11).

ステップS5600において、第1のノード200−1は、既にサーバ初期設定処理およびIPアドレス割当処理を開始していることから、第2のノード200−2からのDHCPDISCOVERメッセージの入力に対応して、割り当ての対象となるIPアドレスを選択する(図10のステップS3220)。そして、第1のノード200−1は、DHCPOFFERメッセージを送出する(図10のステップS3250)。   In step S5600, since the first node 200-1 has already started the server initial setting process and the IP address assignment process, the assignment is performed in response to the input of the DHCPDISCOVER message from the second node 200-2. Is selected (step S3220 in FIG. 10). Then, the first node 200-1 transmits a DHCPOFFER message (step S3250 in FIG. 10).

ここでは、第1のノード200−1は、図6に示すアドレスプール350を生成し、自装置の仮サーバアドレスとして「192.168.1.1」を、第2のノード200−2のIPアドレスとして「192.168.1.2」を、それぞれ選択したものとする。   Here, the first node 200-1 generates the address pool 350 shown in FIG. 6, sets “192.168.1.1” as the temporary server address of the own device, and the IP of the second node 200-2. It is assumed that “192.168.1.2” is selected as the address.

また、この時点で、第1のノード200−1のサーバ初期設定処理が、図4のステップS3120に到達していなかったとする(図10のステップS3230:NO)。この場合、上記したように、第1のノード200−1は、送出するDHCPOFFERメッセージに、仮設定フラグを設定する(図10のステップS3240)。したがって、第2のノード200−2には、仮設定フラグが立てられたIPアドレス「192.168.1.2」が提供される(図11のステップS2140)。   Further, at this time, it is assumed that the server initial setting process of the first node 200-1 has not reached Step S3120 in FIG. 4 (Step S3230 in FIG. 10: NO). In this case, as described above, the first node 200-1 sets a temporary setting flag in the DHCPOFFER message to be transmitted (step S3240 in FIG. 10). Therefore, the IP address “192.168.1.2” in which the temporary setting flag is set is provided to the second node 200-2 (step S2140 in FIG. 11).

ステップS5700において、第1のノード200−1は、サーバ初期設定処理を継続し、状況確認のARP Probeメッセージ410を出力する(図4のステップS3120)。ただし、この時点で第2のノード200−2は、提供されたIPアドレスを使用することを決定していないため、第1のノード200−1に応答は返ってこない。なお、第2のノード200−2が提供されたIPアドレスを使用することを既に決定していたとしても、第1のノード200−1とは異なるIPアドレスであるため、やはり応答は返ってこない。   In step S5700, the first node 200-1 continues the server initial setting process, and outputs a status confirmation ARP Probe message 410 (step S3120 in FIG. 4). However, since the second node 200-2 has not decided to use the provided IP address at this time, no response is returned to the first node 200-1. Even if the second node 200-2 has already decided to use the provided IP address, since it is an IP address different from that of the first node 200-1, no response is returned. .

ステップS5800において、第2のノード200−2は、クライアント初期設定処理を継続し、DHCPREQUESTメッセージを出力する(図11のステップS2160)。   In step S5800, the second node 200-2 continues the client initial setting process and outputs a DHCPREQUEST message (step S2160 in FIG. 11).

ステップS5900において、第1のノード200−1は、ステップS5800のDHCPREQUESTメッセージに対する応答として、DHCPACKメッセージを出力する(図10のステップS3310)。これにより、第2のノード200−2は、IPアドレス「192.168.1.2」が割り当てられ、IP通信が可能な状態となる。   In step S5900, the first node 200-1 outputs a DHCPACK message as a response to the DHCPREQUEST message in step S5800 (step S3310 in FIG. 10). As a result, the second node 200-2 is assigned the IP address “192.168.1.2” and is ready for IP communication.

この時点で、第1のノード200−1が、図4に示すサーバ初期設定処理において、状況確認のARP Probeメッセージ410をまだ1回しか出力していなかったとする(図10のステップS3230:NO)。この場合、上記したように、第1のノード200−1は、送出するDHCPACKメッセージに仮設定フラグを設定する(図10のステップS3300)。したがって、第2のノード200−2のIPアドレスには、仮設定フラグが立てられたままとなる(図11のステップS2190)。   At this time, it is assumed that the first node 200-1 has output the status confirmation ARP Probe message 410 only once in the server initial setting process shown in FIG. 4 (step S3230 in FIG. 10: NO). . In this case, as described above, the first node 200-1 sets a temporary setting flag in the DHCPACK message to be transmitted (step S3300 in FIG. 10). Therefore, the temporary setting flag remains set for the IP address of the second node 200-2 (step S2190 in FIG. 11).

ステップS6000において、第1のノード200−1は、サーバ初期設定処理を継続し、状況確認のARP Probeメッセージ410をさらに2回出力する(図4のステップS3120)。ただし、第2のノード200−2には第1のノード200−1とは異なるIPアドレスが割り当てられているため、第1のノード200−1に応答は返ってこない(図4のステップS3140:YES)。   In step S6000, the first node 200-1 continues the server initial setting process and outputs the status confirmation ARP Probe message 410 two more times (step S3120 in FIG. 4). However, since an IP address different from that of the first node 200-1 is assigned to the second node 200-2, no response is returned to the first node 200-1 (step S3140 in FIG. 4: YES).

ステップS6100において、第1のノード200−1は、使用要求のARP Probeメッセージ430を出力し(図4のステップS3140)、やがてサーバ初期設定処理を終了する。また、第2のノード200−2は、IPアドレスに仮設定フラグが立っているものの、やがてクライアント初期設定処理を終了する。   In step S6100, the first node 200-1 outputs an ARP Probe message 430 requesting use (step S3140 in FIG. 4), and finally ends the server initial setting process. Also, the second node 200-2 ends the client initial setting process before the temporary setting flag is set in the IP address.

この結果、第1のノード200−1のサーバ初期設定処理および第2のノード200−2のクライアント初期設定処理が終了した後の時刻tには、第1のノード200−1は、DHCPサーバとして動作し、第2のノード200−2は、DHCPクライアントとして動作する。 As a result, at time t 1 after the server initial setting process of the first node 200-1 and the client initial setting process of the second node 200-2 are completed, the first node 200-1 is the DHCP server. The second node 200-2 operates as a DHCP client.

従来技術では、正常に通信を行うためには、いずれかのノードがDHCPサーバ動作状態になってから他のノードをON状態にしなければならないが、本実施の形態のノード200では、第1のノード200−1がDHCPサーバ動作状態になる前に、第2のノード200−2をON状態としている。すなわち、本実施の形態では、複数のノード200に立て続けに電源を投入しても、各ノード200がサーバ機能とクライアント機能とを適切に選択でき、正常に通信を行うことが可能であることが分かる。また、DHCPサーバとして動作するノード200がアドレスプールを確定する前に、DHCPクライアントとして動作するノード200は、IPアドレスを取得し、IP通信を開始することができる。すなわち、2つ目以降に電源が投入されたノード200は、電源投入後、速やかにIP通信を開始することができる。   In the prior art, in order to perform normal communication, one of the nodes must be in the DHCP server operating state and then the other node must be turned on. In the node 200 of the present embodiment, the first node Before the node 200-1 enters the DHCP server operating state, the second node 200-2 is turned on. In other words, in this embodiment, even if the power is continuously turned on to a plurality of nodes 200, each node 200 can appropriately select the server function and the client function, and can communicate normally. I understand. In addition, before the node 200 operating as a DHCP server determines an address pool, the node 200 operating as a DHCP client can acquire an IP address and start IP communication. That is, the node 200 that is powered on for the second time and thereafter can start IP communication immediately after the power is turned on.

以上説明したように、本実施の形態によれば、ノードは、IPアドレスの割り当てを行うDHCPサーバとして動作する他ノードが通信範囲内に存在しないとき、DHCPサーバ動作状態に遷移する。そして、ノードは、DHCPサーバとして動作するための初期設定処理と並行して、DHCPクライアントとして動作する他ノードからの要求に応じてアドレス割り当てを行う処理を実行する。これにより、最初に電源投入が行われたノード200は、完全にサーバとしての機能を開始していなくても、DHCPクライアントとして動作する他ノードに対して、IPアドレスを割り当てることができる。すなわち、複数のノードに立て続けに電源の投入を行っても、各ノードでサーバ機能とクライアント機能とを適切に選択することができ、無線PAN全体の立ち上がりを高速化することができる。   As described above, according to the present embodiment, the node transitions to the DHCP server operating state when there is no other node operating as a DHCP server that assigns an IP address within the communication range. Then, in parallel with the initial setting process for operating as a DHCP server, the node executes a process of assigning addresses in response to a request from another node operating as a DHCP client. As a result, the node 200 to which power is first turned on can assign an IP address to another node operating as a DHCP client even if the function as a server is not completely started. That is, even if the power is turned on in succession for a plurality of nodes, the server function and the client function can be appropriately selected in each node, and the start-up of the entire wireless PAN can be speeded up.

ただし、DHCPサーバ動作状態に遷移したノードは、自装置に割り当てたIPアドレスと同一のアドレスが他ノードに既に割り当てられていないと判断する前、つまり自装置のアドレスプールを確定する前に、アドレス割り当てを行う場合には、その割り当て先に対して、アドレス割り当てが仮のものであることを通知する。すなわち、DHCPサーバ動作状態に遷移したノードは、自己が割り当てたIPアドレスが変更される可能性があることを、その割り当て先に通知する。これにより、アドレス割り当てを受ける側では、割り当てられたIPアドレスが他のノード200と重複していたり、変更される可能性があるということを知ることができ、重要度の高い情報の送信を禁止するというように、通信に適切な制限を加えることができる。   However, the node that has transitioned to the DHCP server operating state has an address before determining that the same address as the IP address assigned to the own device has not already been assigned to another node, that is, before determining the address pool of the own device. When the allocation is performed, the allocation destination is notified that the address allocation is temporary. That is, the node that has transitioned to the DHCP server operating state notifies the allocation destination that the IP address allocated by the node may be changed. As a result, the address receiving side can know that the assigned IP address is duplicated with another node 200 or may be changed, and prohibits transmission of highly important information. As such, appropriate restrictions can be added to the communication.

また、IPアドレスを、ネットワークアドレスと、PAN指定部と、ノード指定部とに分け、ノード200ごとに、ネットワークアドレスとPAN指定部とを共通にしてアドレスプールを生成する。これにより、DHCPサーバごとに異なるPAN指定部を設定することで、簡単にDHCPサーバ間でアドレスプールのIPアドレスの重複が発生しないようにすることができる。   Further, the IP address is divided into a network address, a PAN designation unit, and a node designation unit, and an address pool is generated for each node 200 by using the network address and the PAN designation unit in common. Thus, by setting a different PAN specifying unit for each DHCP server, it is possible to easily prevent duplication of the IP address of the address pool between the DHCP servers.

さらに、DHCPサーバ及び周囲のデバイスでは、原則としてネットワークアドレスとPAN指定部が共通であることを利用して、PAN指定部を比較することにより、IPアドレスのチェックを行う。これにより、より簡単にDHCPサーバ間におけるIPアドレスやアドレスプールの重複の有無を判定することができ、IPアドレスのチェックの処理を高速化することができる。   Furthermore, in principle, the DHCP server and the surrounding devices check the IP address by comparing the PAN designation part using the common network address and PAN designation part. Accordingly, it is possible to more easily determine whether or not there is duplication of IP addresses or address pools between DHCP servers, and the IP address check process can be speeded up.

なお、相互に無線通信を行うことができない環境下で立ち上がった複数のノードに、同一のIPアドレスが割り当てられ、ノードの移動によって、後で相互に無線通信を行うことができるようになる場合も考えられる。この場合には、DHCPサーバは、図12のステップS2350と同様に、自装置のIPアドレスのPAN指定部と、受信データの送信元のIPアドレスのPAN指定部とを比較することにより、自装置と同じアドレスプールを持つDHCPサーバの有無を調査することができる。具体的には、自己のアドレスプールに登録されていないMACアドレスを有するノードからデータを受信したときに、その送信元のIPアドレスのPAN指定部が、自装置のIPアドレスのPAN指定部と一致する場合には、自装置と同じアドレスプールを持つDHCPサーバが存在すると判断できる。この場合には、再び図4に示すサーバ初期設定処理を実行するようにすればよい。   In some cases, the same IP address is assigned to a plurality of nodes that have started up in an environment where they cannot perform wireless communication with each other, and wireless communication can be performed later by moving the nodes. Conceivable. In this case, as in step S2350 in FIG. 12, the DHCP server compares the PAN specifying unit of the IP address of the own device with the PAN specifying unit of the IP address of the transmission source of the received data. The existence of a DHCP server having the same address pool can be investigated. Specifically, when data is received from a node having a MAC address that is not registered in its own address pool, the PAN specification part of the IP address of the transmission source matches the PAN specification part of the IP address of its own device In this case, it can be determined that there is a DHCP server having the same address pool as the own device. In this case, the server initial setting process shown in FIG. 4 may be executed again.

また、以上説明した実施の形態では、本発明をテレビジョンおよびハードディスクレコーダに適用した例を説明したが、固定電話機、携帯電話機、ビデオデッキ、スピーカ、ゲーム機器など、他の各種電子機器に対して適用できることは勿論である。特に、たとえば、現金決済など、個人情報が含まれた重要な通信を行う可能性がある電子機器では、仮設定の間は重要な情報の送信は抑止することができる。また、仮設定の間は、重要な情報の送信を抑止する一方で、ウエブ(web)アクセスやストリーミングなど、IPアドレスの変更による途切れや情報の流出がある程度許容されるような通信については通常通り行う、というように、通信の可否を適切に使い分けることができる。すなわち、PANの立ち上がりの高速化と、安全性の確保とを、両立させることができる。   In the embodiment described above, the example in which the present invention is applied to a television and a hard disk recorder has been described. However, the present invention is applied to various other electronic devices such as a fixed phone, a mobile phone, a video deck, a speaker, and a game device. Of course, it can be applied. In particular, for example, in electronic devices that may perform important communication including personal information such as cash settlement, transmission of important information can be suppressed during temporary setting. In addition, during temporary settings, transmission of important information is suppressed, while communications that allow some interruption or information leakage due to IP address changes, such as web access and streaming, are performed as usual. It is possible to properly use whether or not communication is possible. That is, it is possible to achieve both high speed of PAN rise and ensuring safety.

本発明に係る通信装置および通信方法は、周囲の状況に応じてサーバ機能とクライアント機能を切り替えることができるとともに、より使い勝手の向上させることができ、固定電話機、携帯電話機、テレビジョン、ビデオデッキ、ハードディスクレコーダ、スピーカ、ゲーム機器など、他の各種電子機器などに有用である。   The communication device and the communication method according to the present invention can switch the server function and the client function according to the surrounding situation, and can further improve usability, such as a fixed telephone, a mobile phone, a television, a video deck, It is useful for various other electronic devices such as a hard disk recorder, a speaker, and a game device.

本発明の一実施の形態に係る通信装置を配置した無線PANの構成を示すシステム構成図The system block diagram which shows the structure of the wireless PAN which has arrange | positioned the communication apparatus which concerns on one embodiment of this invention 本実施の形態に係る通信装置の構成を示すブロック図The block diagram which shows the structure of the communication apparatus which concerns on this Embodiment 本実施の形態に係る通信装置の動作状態の遷移を示すフローチャートThe flowchart which shows the transition of the operation state of the communication apparatus which concerns on this Embodiment 本実施の形態に係る通信装置におけるサーバ初期設定処理の流れを示すフローチャートThe flowchart which shows the flow of the server initial setting process in the communication apparatus which concerns on this Embodiment. 本実施の形態に係る通信装置を配置した無線PANにおけるIPアドレスの体系の一例およびIPアドレスの一例を示す説明図Explanatory drawing showing an example of an IP address system and an example of an IP address in a wireless PAN in which a communication apparatus according to the present embodiment is arranged 本実施の形態に係る通信装置が生成するアドレスプールの構成の一例を示す説明図Explanatory drawing which shows an example of a structure of the address pool which the communication apparatus which concerns on this Embodiment produces | generates 本実施の形態に係る状況確認のARP Probeメッセージの構成を示す説明図Explanatory drawing which shows the structure of the ARP Probe message for status confirmation according to the present embodiment 本実施の形態に係る状況確認のARP応答の構成を示す説明図Explanatory drawing which shows the structure of the ARP response of the situation confirmation which concerns on this Embodiment 本実施の形態に係る使用要求のARP Probeメッセージの構成を示す説明図Explanatory drawing which shows the structure of the ARP Probe message of the use request which concerns on this Embodiment 本実施の形態に係る通信装置におけるIPアドレス割当処理の流れを示すフローチャートThe flowchart which shows the flow of the IP address allocation process in the communication apparatus which concerns on this Embodiment 本実施の形態に係る通信装置におけるクライアント初期設定処理の流れを示すフローチャートThe flowchart which shows the flow of the client initial setting process in the communication apparatus which concerns on this Embodiment 本実施の形態に係る通信装置における仮設定解除判定処理の流れを示すフローチャートThe flowchart which shows the flow of the temporary setting cancellation | release determination processing in the communication apparatus which concerns on this Embodiment 本実施の形態に係る通信装置が初期設定を行う際の、各通信装置の動作および信号の様子の一例を示すシーケンス図Sequence diagram showing an example of the operation of each communication device and the state of signals when the communication device according to the present embodiment performs initial setting 従来の通信装置を用いたPANの構成の一例を示すシステム構成図System configuration diagram showing an example of the configuration of a PAN using a conventional communication device 従来の通信装置の構成を示すブロック図Block diagram showing the configuration of a conventional communication device 従来の通信装置を用いたPANにおける初期設定の動作の流れを示すフローチャートThe flowchart which shows the flow of the operation | movement of the initial setting in PAN using the conventional communication apparatus. 従来の通信装置が初期設定を行う際の、各通信装置の動作および信号の様子の一例を示すシーケンス図Sequence diagram showing an example of operation and signal behavior of each communication device when a conventional communication device performs initial setting

符号の説明Explanation of symbols

100 無線PAN
200 ノード
210 通信部
220 DHCPサーバ部
230 DHCPサーバ初期設定部
240 自律割当部
250 DHCPアドレス取得部
260 PAN指定判定部
270 統括割当部
280 アプリケーション部
290 アプリケーション通信部
300 無線通信路
100 wireless PAN
200 nodes 210 communication unit 220 DHCP server unit 230 DHCP server initial setting unit 240 autonomous allocation unit 250 DHCP address acquisition unit 260 PAN designation determination unit 270 overall allocation unit 280 application unit 290 application communication unit 300 wireless communication path

Claims (5)

他ノードに対してIPアドレスを割り当てるノードが通信可能範囲内に存在するとき、当該ノードに対して、自装置へのIPアドレスの割り当てを要求するクライアント動作部と、
他ノードに対してIPアドレスを割り当てるノードが通信可能範囲内に存在しないとき、自装置に対して自律的にIPアドレスを割り当て、当該IPアドレスに基づき、他ノードに対してIPアドレスを割り当てるサーバ動作部と、
前記サーバ動作部が自装置に割り当てたIPアドレスと同一のアドレスが他ノードに既に割り当てられているか否かを判断する割当判断部と、
前記割当判断部が、前記サーバ動作部が自装置に割り当てたIPアドレスと同一のアドレスが他ノードに既に割り当てられていないと判断する前に、前記サーバ動作部が他ノードに対してIPアドレスの割り当てを行うとき、その割り当て先に対して当該IPアドレスの割り当てが仮のものであることを通知する仮設定通知部と、
を有する通信装置。
When a node that assigns an IP address to another node exists in the communicable range, a client operation unit that requests the node to assign an IP address to the own device;
Server operation that assigns an IP address autonomously to its own device and assigns an IP address to another node based on the IP address when a node that assigns an IP address to another node does not exist within the communicable range And
An assignment determination unit for determining whether the same address as the IP address assigned to the own device by the server operation unit is already assigned to another node;
Before the allocation determining unit determines that the same address as the IP address allocated to the device by the server operating unit is not already allocated to the other node, the server operating unit sets the IP address to the other node. A temporary setting notification unit that notifies the allocation destination that the allocation of the IP address is provisional when performing the allocation;
A communication device.
前記サーバ動作部は、
割り当ての対象となるIPアドレスを格納した所定のメッセージを前記他ノードへ送信することにより、前記他ノードに対してIPアドレスを割り当て、
前記仮設定通知部は、
前記所定のメッセージに仮設定フラグを立てることにより、当該所定のメッセージによるIPアドレスの割り当てが仮のものであることを通知する、
請求項1記載の通信装置。
The server operating unit is
Assigning an IP address to the other node by sending a predetermined message storing the IP address to be assigned to the other node;
The temporary setting notification unit
By setting a temporary setting flag in the predetermined message, it is notified that the IP address assignment by the predetermined message is temporary.
The communication apparatus according to claim 1.
自装置に割り当てられたIPアドレスを使用してIP通信を行う通信部と、
自装置に対するIPアドレスの割り当てが仮のものであることを通知されたとき、前記通信部によるIP通信を制限する通信制限部と、
をさらに有する請求項1記載の通信装置。
A communication unit that performs IP communication using an IP address assigned to the own device;
A communication restriction unit that restricts IP communication by the communication unit when notified that the assignment of the IP address to the own device is temporary;
The communication device according to claim 1, further comprising:
前記割当判断部が、前記サーバ動作部が自装置に割り当てたIPアドレスと同一のアドレスが他ノードに既に割り当てられていないと判断したとき、前記サーバ動作部によるIPアドレスの割り当て先に対して当該IPアドレスの割り当ての確定を通知する設定確定通知部と、
前記通信部が、IP通信を制限した状態で自装置に対するIPアドレスの割り当ての確定を通知されたとき、前記通信制限部によるIP通信の制限を解除する制限解除部と、
をさらに有する請求項3記載の通信装置。
When the allocation determining unit determines that the same address as the IP address allocated to the own device by the server operating unit has not already been allocated to another node, the allocation to the IP address allocation destination by the server operating unit A setting confirmation notifying unit for notifying the confirmation of the assignment of the IP address;
When the communication unit is notified of the assignment of the IP address to the own device in a state in which the IP communication is restricted, a restriction release unit for releasing the restriction of the IP communication by the communication restriction unit;
The communication device according to claim 3, further comprising:
他ノードに対してIPアドレスを割り当てるノードが通信可能範囲内に存在するか否かを判断するサーバ有無判断ステップと、
他ノードに対してIPアドレスを割り当てるノードが通信可能範囲内に存在しないと判断したとき、自装置に対して自律的にIPアドレスを割り当て、他ノードに対してIPアドレスを割り当てるノードが通信可能範囲内に存在すると判断したとき、当該ノードに対して自装置へのIPアドレスの割り当てを要求するアドレス取得ステップと、
自装置に対して自律的にIPアドレスを割り当てたとき、当該IPアドレスに基づき他ノードに対してIPアドレスを割り当てる処理を開始するとともに、自装置に割り当てられたIPアドレスと同一のアドレスが他ノードに既に割り当てられているか否かを判断する処理を開始する処理開始ステップと、
自装置に割り当てられたIPアドレスと同一のアドレスが他ノードに既に割り当てられていないと判断する前に、他ノードに対してIPアドレスの割り当てを行うとき、その割り当て先に対して当該IPアドレスの割り当てが仮のものであることを通知する仮設定通知ステップと、
を有する通信方法。
A server presence / absence determining step for determining whether or not a node to which an IP address is assigned to another node exists within a communicable range;
When it is determined that a node that assigns an IP address to another node does not exist within the communicable range, the node that autonomously assigns an IP address to its own device and assigns an IP address to the other node is in a communicable range An address acquisition step for requesting the node to assign an IP address to the own device when it is determined that
When an IP address is autonomously assigned to the own device, a process of assigning an IP address to another node based on the IP address is started, and the same address as the IP address assigned to the own device is assigned to the other node. A process start step for starting a process for determining whether or not the process has already been assigned,
When assigning an IP address to another node before determining that the same address as the IP address assigned to the own device has not already been assigned to the other node, A temporary setting notification step for notifying that the assignment is temporary;
A communication method.
JP2006238355A 2006-09-01 2006-09-01 Communication apparatus and communication method Expired - Fee Related JP4868991B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006238355A JP4868991B2 (en) 2006-09-01 2006-09-01 Communication apparatus and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006238355A JP4868991B2 (en) 2006-09-01 2006-09-01 Communication apparatus and communication method

Publications (2)

Publication Number Publication Date
JP2008061146A true JP2008061146A (en) 2008-03-13
JP4868991B2 JP4868991B2 (en) 2012-02-01

Family

ID=39243350

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006238355A Expired - Fee Related JP4868991B2 (en) 2006-09-01 2006-09-01 Communication apparatus and communication method

Country Status (1)

Country Link
JP (1) JP4868991B2 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010062812A (en) * 2008-09-03 2010-03-18 Japan Radio Co Ltd Wireless access network system
JP2010093430A (en) * 2008-10-06 2010-04-22 Ricoh Co Ltd Radio communication device and image information processor
JP2011135607A (en) * 2011-03-02 2011-07-07 Buffalo Inc Wireless lan device
JP2011166353A (en) * 2010-02-08 2011-08-25 Nec Access Technica Ltd Communication repeater, communication repeating method, communication repeating program
WO2013145045A1 (en) * 2012-03-30 2013-10-03 Necカシオモバイルコミュニケーションズ株式会社 Wireless device, address determination method, communication system, and wireless terminal
JP2014033312A (en) * 2012-08-02 2014-02-20 Sumitomo Electric Networks Inc Communication apparatus, communication method, and communication program
JP2014096630A (en) * 2012-11-07 2014-05-22 Toyota Motor Corp In-vehicle communication device, in-vehicle communication system, and communication method
JP2014175748A (en) * 2013-03-07 2014-09-22 Nec Access Technica Ltd Network device and control method therefor
JP2014183390A (en) * 2013-03-18 2014-09-29 Canon Inc Communication apparatus, control method of the same, and program
US20150281947A1 (en) * 2014-03-26 2015-10-01 Qualcomm Incorporated Method and apparatus for fast ip address assignment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010062812A (en) * 2008-09-03 2010-03-18 Japan Radio Co Ltd Wireless access network system
JP2010093430A (en) * 2008-10-06 2010-04-22 Ricoh Co Ltd Radio communication device and image information processor
JP2011166353A (en) * 2010-02-08 2011-08-25 Nec Access Technica Ltd Communication repeater, communication repeating method, communication repeating program
JP2011135607A (en) * 2011-03-02 2011-07-07 Buffalo Inc Wireless lan device
WO2013145045A1 (en) * 2012-03-30 2013-10-03 Necカシオモバイルコミュニケーションズ株式会社 Wireless device, address determination method, communication system, and wireless terminal
JP2014033312A (en) * 2012-08-02 2014-02-20 Sumitomo Electric Networks Inc Communication apparatus, communication method, and communication program
JP2014096630A (en) * 2012-11-07 2014-05-22 Toyota Motor Corp In-vehicle communication device, in-vehicle communication system, and communication method
JP2014175748A (en) * 2013-03-07 2014-09-22 Nec Access Technica Ltd Network device and control method therefor
JP2014183390A (en) * 2013-03-18 2014-09-29 Canon Inc Communication apparatus, control method of the same, and program
US20150281947A1 (en) * 2014-03-26 2015-10-01 Qualcomm Incorporated Method and apparatus for fast ip address assignment

Also Published As

Publication number Publication date
JP4868991B2 (en) 2012-02-01

Similar Documents

Publication Publication Date Title
JP4868991B2 (en) Communication apparatus and communication method
JP4728792B2 (en) IP communication apparatus, IP communication system including the same, and IP address setting method of IP communication apparatus
KR100908320B1 (en) Method for protecting and searching host in internet protocol version 6 network
US20050246431A1 (en) Method and apparatus for selecting forwarding modes
US20070133539A1 (en) Routing apparatus for supporting IPv6 anycast service and method thereof
WO2011150720A1 (en) Method, network device and system for automatically configuring network device in internet protocol version 6 network
US20120182994A1 (en) Address compatibility in a network device reload
JP2007520970A (en) Tunneling service method and system
KR20060057503A (en) System and method for a distributed server for peer-to-peer networks
JP2002094558A (en) Packet transfer method, mobile terminal and router device
US10255621B2 (en) Services advertisement in a wireless mesh
JP2006086800A (en) Communication apparatus for selecting source address
JP2008017254A (en) Router device
US20070239860A1 (en) Information processing device, network connection method, and program recording medium
CN110365557B (en) Network interconnection method and device
JP2003298635A (en) Source address selection system, router equipment, communication node and source address selection method
JP2008015880A (en) Network system, image processor and computer program
CN112654049B (en) Method, system, node and medium for configuring a wireless communication coverage extension system
JP2004260463A (en) Router, communication apparatus, network address management system, network address managing method and network address management program
WO2016177185A1 (en) Method and apparatus for processing media access control (mac) address
JP2005341287A (en) Network device, and network connection setting program
JP5845964B2 (en) Communication apparatus and program
JP2008227663A (en) Ip communication device, ip communication system equipped with the same, and ip address setting method
JP3864397B2 (en) User edge router, gateway router, multihoming communication system, multihoming communication method, and multihoming communication program
JP2005136718A (en) Network access managing method, network access managing device, network service providing method, network service providing system, its program, and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090617

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111013

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4868991

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20141125

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees