Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5839742B2 - Relay device, relay system, setting method, and computer program - Google Patents
[go: Go Back, main page]

JP5839742B2 - Relay device, relay system, setting method, and computer program - Google Patents

Relay device, relay system, setting method, and computer program Download PDF

Info

Publication number
JP5839742B2
JP5839742B2 JP2014111433A JP2014111433A JP5839742B2 JP 5839742 B2 JP5839742 B2 JP 5839742B2 JP 2014111433 A JP2014111433 A JP 2014111433A JP 2014111433 A JP2014111433 A JP 2014111433A JP 5839742 B2 JP5839742 B2 JP 5839742B2
Authority
JP
Japan
Prior art keywords
hgw
relay
parent
child
unit
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.)
Active
Application number
JP2014111433A
Other languages
Japanese (ja)
Other versions
JP2015226258A (en
Inventor
剛 寶満
剛 寶満
泰明 金田
泰明 金田
悠輝 伊勢
悠輝 伊勢
真也 崎野
真也 崎野
哲平 黒田
哲平 黒田
勝希 明石
勝希 明石
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.)
Nippon Telegraph and Telephone West Corp
Original Assignee
Nippon Telegraph and Telephone West Corp
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 Nippon Telegraph and Telephone West Corp filed Critical Nippon Telegraph and Telephone West Corp
Priority to JP2014111433A priority Critical patent/JP5839742B2/en
Publication of JP2015226258A publication Critical patent/JP2015226258A/en
Application granted granted Critical
Publication of JP5839742B2 publication Critical patent/JP5839742B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、中継装置の接続に関する設定の制御技術に関する。   The present invention relates to a setting control technique related to connection of a relay device.

近年、無線LAN(Local Area Network;例えばWi−Fi(登録商標)(Wireless Fidelity))の利用シーンが増加している(例えば、特許文献1参照)。
また、現在では、無線LAN(Local Area Network)機能が内蔵されたHGW(Home Gate Way:ホームゲートウェイ)が普及している。このようなHGWは、BBR(Broad Band Router)機能と、無線LAN機能とを有しているため、別途無線LANルータを購入しなくても1台のHGWで無線LANを利用してネットワークに接続することができる。
In recent years, usage scenes of wireless LAN (Local Area Network; for example, Wi-Fi (registered trademark) (Wireless Fidelity)) are increasing (for example, see Patent Document 1).
At present, HGW (Home Gate Way) with a built-in wireless LAN (Local Area Network) function is widespread. Since such an HGW has a BBR (Broad Band Router) function and a wireless LAN function, a single HGW can be connected to a network using a wireless LAN without purchasing a separate wireless LAN router. can do.

特開2005−094656号公報JP 2005-094656 A

ところで、オフィスなどの広い空間においては、1台のHGWでは十分に範囲をカバーすることができない。そのため、オフィス内で無線LANを利用する場合には、HGWとは別の無線LANルータを複数台用意してHGWに多段接続することが行われている。このような場合、各無線LANルータの設定を一括で管理するコントローラを用意して、コントローラにより各無線LANルータの設定を手動で行う必要がある。そのため、オフィス内で中継装置を多段接続する場合には、上述したような手間が生じてしまう。このような問題は、オフィス内で多段接続される無線LANルータやHGWなどの中継装置全般に共通する問題である。   By the way, in a wide space such as an office, a single HGW cannot sufficiently cover the range. For this reason, when a wireless LAN is used in an office, a plurality of wireless LAN routers different from the HGW are prepared and connected to the HGW in multiple stages. In such a case, it is necessary to prepare a controller that collectively manages the settings of the wireless LAN routers, and to manually set the wireless LAN routers using the controller. For this reason, when the relay devices are connected in multiple stages in the office, the trouble as described above is generated. Such a problem is common to all relay devices such as wireless LAN routers and HGWs connected in multiple stages in an office.

上記事情に鑑み、本発明は、オフィス内で中継装置を多段接続する際に生じる手間を軽減することができる技術の提供を目的としている。   In view of the above circumstances, an object of the present invention is to provide a technique that can reduce the trouble that occurs when a relay device is connected in multiple stages in an office.

本発明の一態様は、外部ネットワークが位置する上流側と、通信装置が位置する下流側との間で通信の中継を行う中継装置であって、他の装置から受信された情報に基づいて、自装置を親中継装置又は子中継装置のいずれかに設定する設定部と、自装置が親中継装置である場合、上流側に位置する前記外部ネットワークと、自装置より下流側に位置する子中継装置との間で行われる通信を中継し、自装置が子中継装置である場合、自装置に帰属する通信装置と親中継装置との間で行われる通信を中継する中継部と、を備える中継装置である。   One aspect of the present invention is a relay device that relays communication between an upstream side where an external network is located and a downstream side where a communication device is located, and based on information received from another device, A setting unit for setting the own device as either a parent relay device or a child relay device, and when the own device is a parent relay device, the external network located on the upstream side and the child relay located on the downstream side from the own device A relay that relays communications performed between the devices and, when the own device is a child relay device, a relay unit that relays communications performed between the communication device belonging to the own device and the parent relay device Device.

本発明の一態様は、上記の中継装置であって、前記設定部は、IPv6の識別情報を他の装置から取得した場合に自装置を親中継装置に設定し、IPv6の識別情報を自装置で生成した場合に自装置を子中継装置に設定する。   One aspect of the present invention is the relay device described above, wherein the setting unit sets the own device as a parent relay device when IPv6 identification information is acquired from another device, and sets the IPv6 identification information as the own device. If it is generated in step 1, set its own device as a child relay device.

本発明の一態様は、上記の中継装置であって、自装置が親中継装置である場合に他の中継装置から前記他の中継装置の動作設定を確認するための要求が受信されると、前記要求に対する応答として子中継装置として動作する旨の情報を含む通知を前記要求の送信元である他の中継装置に通知する通知部をさらに備え、前記設定部は、IPv6の識別情報を他の装置から取得した場合に自装置を親中継装置に設定し、前記通知が受信された場合に自装置を子中継装置に設定する。   One aspect of the present invention is the relay device described above, and when the own device is a parent relay device, when a request for confirming the operation setting of the other relay device is received from another relay device, A notification unit for notifying another relay device that is a transmission source of the request as a response to the request, the notification including the information indicating that it operates as a child relay device; When it is acquired from the device, the device is set as a parent relay device, and when the notification is received, the device is set as a child relay device.

本発明の一態様は、外部ネットワークが位置する上流側と、通信装置が位置する下流側との間で通信の中継を行う複数の中継装置と、前記複数の中継装置のうち、いずれかの中継装置との間で通信を行うDHCPv6サーバとを備える中継システムであって、前記中継装置は、他の装置から受信された情報に基づいて、自装置を親中継装置又は子中継装置のいずれかに設定する設定部と、自装置が親中継装置である場合、上流側に位置する前記外部ネットワークと、自装置より下流側に位置する子中継装置との間で行われる通信を中継し、自装置が子中継装置である場合、自装置に帰属する通信装置と親中継装置との間で行われる通信を中継する中継部と、を備え、前記DHCPv6サーバは、前記中継装置から送信されるIPv6の識別情報の要求の応答として、前記応答に親中継装置として動作する旨の情報を含めて送信する送信部を備える中継システムである。   One embodiment of the present invention includes a plurality of relay devices that relay communication between an upstream side where an external network is located and a downstream side where a communication device is located, and any one of the relay devices A relay system comprising a DHCPv6 server that communicates with a device, wherein the relay device determines whether it is a parent relay device or a child relay device based on information received from another device. When the setting unit to be set and the own device is a parent relay device, relay the communication performed between the external network located on the upstream side and the child relay device located on the downstream side from the own device, Is a child relay device, a relay unit that relays communication performed between the communication device belonging to the own device and the parent relay device, and the DHCPv6 server transmits an IPv6 packet transmitted from the relay device. Identification As a response to the request, a relay system comprising a transmission unit for transmitting including information indicating operating as a master repeater in the response.

本発明の一態様は、外部ネットワークが位置する上流側と、通信装置が位置する下流側との間で通信の中継を行う中継装置における設定方法であって、他の装置から受信された情報に基づいて、自装置を親中継装置又は子中継装置のいずれかに設定する設定ステップと、自装置が親中継装置である場合、上流側に位置する前記外部ネットワークと、自装置より下流側に位置する子中継装置との間で行われる通信を中継し、自装置が子中継装置である場合、自装置に帰属する通信装置と親中継装置との間で行われる通信を中継する中継ステップと、を有する設定方法である。   One aspect of the present invention is a setting method in a relay device that relays communication between an upstream side where an external network is located and a downstream side where a communication device is located, and includes information received from other devices. Based on the setting step of setting the own device as either the parent relay device or the child relay device, and when the own device is the parent relay device, the external network located on the upstream side and the downstream side from the own device Relaying the communication performed between the slave relay device and the own device is the slave relay device, the relay step of relaying the communication performed between the communication device belonging to the own device and the parent relay device; Is a setting method.

本発明の一態様は、外部ネットワークが位置する上流側と、通信装置が位置する下流側との間で通信の中継を行う中継装置としてコンピュータを動作させるためのコンピュータプログラムであって、他の装置から受信された情報に基づいて、自装置を親中継装置又は子中継装置のいずれかのモードに設定する設定ステップと、自装置が親中継装置である場合、上流側に位置する前記外部ネットワークと、自装置より下流側に位置する子中継装置との間で行われる通信を中継し、自装置が子中継装置である場合、自装置に帰属する通信装置と親中継装置との間で行われる通信を中継する中継ステップと、をコンピュータに実行させるためのコンピュータプログラムである。   One aspect of the present invention is a computer program for operating a computer as a relay device that relays communication between an upstream side where an external network is located and a downstream side where a communication device is located. A setting step of setting the own device to either the parent relay device or the child relay device based on the information received from the mobile station, and if the own device is the parent relay device, the external network located upstream Relays communication performed between a child relay device located downstream from the own device, and when the own device is a child relay device, the communication is performed between the communication device belonging to the own device and the parent relay device. A computer program for causing a computer to execute a relay step of relaying communication.

本発明により、オフィス内で中継装置を多段接続する際に生じる手間を軽減することが可能となる。   According to the present invention, it is possible to reduce time and effort required when connecting relay devices in multiple stages in an office.

本発明における中継システム100のシステム構成を示す図である。It is a figure which shows the system configuration | structure of the relay system 100 in this invention. 第1実施形態におけるHGWの機能構成を表す概略ブロック図である。It is a schematic block diagram showing the function structure of HGW in 1st Embodiment. 第1実施形態におけるHGW情報データベースの具体例を示す図である。It is a figure which shows the specific example of the HGW information database in 1st Embodiment. 第1実施形態におけるHGWの親子設定処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the parent-child setting process of HGW in 1st Embodiment. 第1実施形態における親HGW10の応答処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the response process of parent HGW10 in 1st Embodiment. 第1実施形態における中継システム100の動作を示すシーケンス図である。It is a sequence diagram which shows operation | movement of the relay system 100 in 1st Embodiment. 第2実施形態におけるHGWの機能構成を表す概略ブロック図である。It is a schematic block diagram showing the function structure of HGW in 2nd Embodiment. 第2実施形態におけるHGW情報データベースの具体例を示す図である。It is a figure which shows the specific example of the HGW information database in 2nd Embodiment. 第2実施形態におけるHGWの親子設定処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the parent-child setting process of HGW in 2nd Embodiment. 第2実施形態における親HGW10aの応答処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the response process of parent HGW10a in 2nd Embodiment. 第2実施形態における中継システム100の動作を示すシーケンス図である。It is a sequence diagram which shows operation | movement of the relay system 100 in 2nd Embodiment.

以下、本発明の一実施形態を、図面を参照しながら説明する。
図1は、本発明における中継システム100のシステム構成を示す図である。中継システム100は、親HGW10、複数の子HGW20−1及び20−2、中継器30、DHCPv6(Dynamic Host Configuration Protocol version 6)サーバ40及び制御サーバ50を備える。中継システム100には、通信装置60が接続される。親HGW10とDHCPv6サーバ40及び制御サーバ50とは、第1ネットワーク70を介して通信可能に接続される。親HGW10とDHCPv6サーバ40及び制御サーバ50とは、IPv6 IPoE(IP over Ethernet(登録商標))接続によって通信を行う。
なお、以下の説明では、子HGW20−1及び20−2について特に区別しない場合には、子HGW20と記載する。また、以下の説明では、親HGW10及び子HGW20について特に区別しない場合には、単にHGW(中継装置)と記載する。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram showing a system configuration of a relay system 100 according to the present invention. The relay system 100 includes a parent HGW 10, a plurality of child HGWs 20-1 and 20-2, a repeater 30, a DHCPv6 (Dynamic Host Configuration Protocol version 6) server 40, and a control server 50. A communication device 60 is connected to the relay system 100. The parent HGW 10, the DHCPv6 server 40, and the control server 50 are connected via a first network 70 so that they can communicate with each other. The parent HGW 10, the DHCPv6 server 40, and the control server 50 communicate with each other by IPv6 IPoE (IP over Ethernet (registered trademark)) connection.
In the following description, child HGWs 20-1 and 20-2 will be referred to as child HGW 20 unless otherwise distinguished. Further, in the following description, the parent HGW 10 and the child HGW 20 are simply referred to as HGW (relay device) unless otherwise distinguished.

親HGW10は、中継器30を介して子HGW20との間で通信を行う。また、親HGW10は、第1ネットワーク70を介して、DHCPv6サーバ40及び制御サーバ50との間で通信を行う。例えば、親HGW10は、IPv6アドレス(IPv6の識別情報)の取得時にDHCPv6サーバ40に対してRS(router solicitation)パケットを送信し、RSパケットの応答としてRA(router advertisement)パケットを受信する。
RSパケットは、プレフィックス情報を要求するために送信されるパケットである。RAパケットは、RSパケットに対する応答パケットである。また、親HGW10は、通信装置60に対して第2ネットワーク80への接続を提供する。
The parent HGW 10 communicates with the child HGW 20 via the repeater 30. In addition, the parent HGW 10 communicates with the DHCPv6 server 40 and the control server 50 via the first network 70. For example, the parent HGW 10 transmits an RS (router solicitation) packet to the DHCPv6 server 40 when acquiring an IPv6 address (IPv6 identification information), and receives an RA (router advertisement) packet as a response to the RS packet.
The RS packet is a packet transmitted to request prefix information. The RA packet is a response packet to the RS packet. Further, the parent HGW 10 provides the communication device 60 with a connection to the second network 80.

子HGW20は、親HGW10と、自装置(子HGW20)に帰属する通信装置60との間で行われる通信を中継する。子HGW20は、無線LAN接続によって通信装置60との間で通信を行う。無線LAN接続には、例えばWi−Fiが用いられる。また、子HGW20は、中継器30、親HGW10及び第1ネットワーク70を介して制御サーバ50との間で通信を行う。   The child HGW 20 relays communication performed between the parent HGW 10 and the communication device 60 belonging to the own device (child HGW 20). The child HGW 20 communicates with the communication device 60 by wireless LAN connection. For example, Wi-Fi is used for the wireless LAN connection. The child HGW 20 communicates with the control server 50 via the repeater 30, the parent HGW 10, and the first network 70.

中継器30は、親HGW10と子HGW20との間における通信を中継する中継装置である。中継器30は、例えばL2スイッチやL2ブリッジなどである。中継器30は、親HGW10と子HGW20との間における通信を中継する。また、中継器30は、子HGW20と子HGW20との間における通信を中継する。図1の場合、中継器30は、子HGW20−1と子HGW20−2との間における通信を中継する。   The repeater 30 is a relay device that relays communication between the parent HGW 10 and the child HGW 20. The repeater 30 is, for example, an L2 switch or an L2 bridge. The repeater 30 relays communication between the parent HGW 10 and the child HGW 20. Moreover, the repeater 30 relays communication between the child HGW 20 and the child HGW 20. In the case of FIG. 1, the repeater 30 relays communication between the child HGW 20-1 and the child HGW 20-2.

DHCPv6サーバ40は、親HGW10からRSパケットを受信すると、RAパケットを生成する。この際、DHCPv6サーバ40は、RAパケット内のMフラグのフィールドに、ステートフルモードでIPv6アドレスを取得することを示す情報(例えば、“1”の値)を格納する。つまり、DHCPv6サーバ40は、RAパケット内のMフラグのフィールドに、DHCPv6を利用してIPv6アドレスを取得することを示す情報(例えば、“1”の値)を格納する。また、DHCPv6サーバ40は、親HGW10からの要求に応じて、IPv6アドレス、ひかり電話用のIPv4アドレス、電話番号の情報などを含む情報(以下、「アドレス情報」という。)を提供する。   When receiving the RS packet from the parent HGW 10, the DHCPv6 server 40 generates an RA packet. At this time, the DHCPv6 server 40 stores information (for example, a value of “1”) indicating that an IPv6 address is acquired in the stateful mode in the field of the M flag in the RA packet. That is, the DHCPv6 server 40 stores information (for example, a value of “1”) indicating that an IPv6 address is acquired using DHCPv6 in the M flag field in the RA packet. Further, the DHCPv6 server 40 provides information (hereinafter referred to as “address information”) including an IPv6 address, an IPv4 address for Hikari Denwa, telephone number information, and the like in response to a request from the parent HGW 10.

制御サーバ50は、各HGW(親HGW10及び子HGW20)の制御を行う。例えば、制御サーバ50は、子HGW20のSSID(Service Set Identifier)、チャネル、コマンドなどの設定変更の制御を行う。
通信装置60は、例えばスマートフォン、タブレット端末、携帯電話、パーソナルコンピュータ、ノートパソコン、ゲーム機器等の情報処理装置を用いて構成される。通信装置60は、子HGW20との間で通信を行う。また、通信装置60は、ユーザの操作に応じてひかり電話を利用することが可能である。
The control server 50 controls each HGW (parent HGW 10 and child HGW 20). For example, the control server 50 controls setting changes such as SSID (Service Set Identifier), channel, and command of the child HGW 20.
The communication device 60 is configured using an information processing device such as a smartphone, a tablet terminal, a mobile phone, a personal computer, a notebook computer, or a game device. The communication device 60 communicates with the child HGW 20. Further, the communication device 60 can use a hikari phone in accordance with a user operation.

第1ネットワーク70は、どのように構成されたネットワークでもよい。例えば、第1ネットワーク70はNGN(Next Generation Network)を用いて構成されてもよい。
第2ネットワーク80は、どのように構成されたネットワークでもよい。例えば、第2ネットワーク80はインターネットを用いて構成されてもよい。
以下、本発明における中継システム100の具体的な構成例(第1実施形態及び第2実施形態)について説明する。
The first network 70 may be a network configured in any way. For example, the first network 70 may be configured using NGN (Next Generation Network).
The second network 80 may be a network configured in any way. For example, the second network 80 may be configured using the Internet.
Hereinafter, a specific configuration example (first embodiment and second embodiment) of the relay system 100 according to the present invention will be described.

[第1実施形態]
図2は、第1実施形態におけるHGWの機能構成を表す概略ブロック図である。親HGW10と子HGW20とは、同様の構成を有している。また、HGWは、後述するHGWの起動時や動作中の処理によって親HGW10、子HGW20のいずれかとして動作する。なお、HGWは、IPv4及びIPv6の双方に対応している。
HGWは、バスで接続されたCPU(Central Processing Unit)やメモリや補助記憶装置などを備え、中継プログラムを実行する。中継プログラムの実行によって、HGWは、パケット生成部101、第1通信部102、通信制御部103、判定部104、アドレス取得部105、設定部106、HGW情報記憶部107、親機能部108、子機能部109、第2通信部110を備える装置として機能する。また、親機能部108は、親中継部1081、IPv4情報記憶部1082、ひかり電話機能部1083、通知部1084、DHCPv4サーバ機能部1085として機能する。また、子機能部109は、子中継部1091、接続制御部1092として機能する。なお、HGWの各機能の全て又は一部は、ASIC(Application Specific Integrated Circuit)やPLD(Programmable Logic Device)やFPGA(Field Programmable Gate Array)等のハードウェアを用いて実現されてもよい。また、中継プログラムは、コンピュータ読み取り可能な記録媒体に記録されてもよい。コンピュータ読み取り可能な記録媒体とは、例えばフレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置である。また、中継プログラムは、電気通信回線を介して送受信されてもよい。
[First Embodiment]
FIG. 2 is a schematic block diagram showing the functional configuration of the HGW in the first embodiment. The parent HGW 10 and the child HGW 20 have the same configuration. In addition, the HGW operates as either the parent HGW 10 or the child HGW 20 when the HGW described later is activated or during processing. The HGW is compatible with both IPv4 and IPv6.
The HGW includes a CPU (Central Processing Unit), a memory, an auxiliary storage device, and the like connected by a bus, and executes a relay program. By executing the relay program, the HGW can generate the packet generation unit 101, the first communication unit 102, the communication control unit 103, the determination unit 104, the address acquisition unit 105, the setting unit 106, the HGW information storage unit 107, the parent function unit 108, It functions as a device including the function unit 109 and the second communication unit 110. The parent function unit 108 functions as a parent relay unit 1081, an IPv4 information storage unit 1082, a Hikari Telephone function unit 1083, a notification unit 1084, and a DHCPv4 server function unit 1085. Further, the child function unit 109 functions as a child relay unit 1091 and a connection control unit 1092. Note that all or part of the functions of the HGW may be realized by using hardware such as an application specific integrated circuit (ASIC), a programmable logic device (PLD), or a field programmable gate array (FPGA). The relay program may be recorded on a computer-readable recording medium. The computer-readable recording medium is, for example, a portable medium such as a flexible disk, a magneto-optical disk, a ROM, a CD-ROM, or a storage device such as a hard disk built in the computer system. Further, the relay program may be transmitted / received via a telecommunication line.

パケット生成部101は、各種パケットを生成する。パケット生成部101が生成するパケットは、例えばRSパケットである。
第1通信部102は、他の装置(中継器30又はDHCPv6サーバ40)との間で通信を行う。第1通信部102は、IPv4インターフェース1021及びIPv6インターフェース1022を備える。IPv4インターフェース1021は、他の装置との間でIPv4によるデータの入出力を行う。IPv6インターフェース1022は、他の装置との間でIPv6によるデータの入出力を行う。例えば、パケット生成部101によって生成されたRSパケットは、IPv6インターフェース1022を介して他の装置(中継器30又はDHCPv6サーバ40)に送信される。例えば、他の装置(中継器30又はDHCPv6サーバ40)から送信されたRAパケットは、IPv6インターフェース1022を介して受信される。
The packet generator 101 generates various packets. The packet generated by the packet generation unit 101 is, for example, an RS packet.
The first communication unit 102 communicates with another device (the repeater 30 or the DHCPv6 server 40). The first communication unit 102 includes an IPv4 interface 1021 and an IPv6 interface 1022. The IPv4 interface 1021 inputs / outputs data with other devices using IPv4. The IPv6 interface 1022 inputs / outputs data with other devices using IPv6. For example, the RS packet generated by the packet generation unit 101 is transmitted to another device (the repeater 30 or the DHCPv6 server 40) via the IPv6 interface 1022. For example, an RA packet transmitted from another device (the repeater 30 or the DHCPv6 server 40) is received via the IPv6 interface 1022.

通信制御部103は、第1通信部102によって受信されたパケットに応じた制御を行う。例えば、受信されたパケットが自装置宛てのRAパケットである場合、通信制御部103は受信されたRAパケットを判定部104に出力する。
判定部104は、第1通信部102によって受信されたRAパケット内のMフラグのフィールドの値がステートレスモードでIPv6アドレスを取得することを示す情報(例えば、“0”の値)であるか否か判定する。つまり、判定部104は、RAパケット内のMフラグのフィールドに、IPv6アドレスを自装置で自動生成することを示す情報(例えば、“0”の値)が格納されているか否か判定する。
The communication control unit 103 performs control according to the packet received by the first communication unit 102. For example, when the received packet is an RA packet addressed to the own apparatus, the communication control unit 103 outputs the received RA packet to the determination unit 104.
The determination unit 104 determines whether the value of the M flag field in the RA packet received by the first communication unit 102 is information (for example, a value of “0”) indicating that an IPv6 address is acquired in the stateless mode. To determine. That is, the determination unit 104 determines whether or not information (for example, a value of “0”) indicating that the IPv6 address is automatically generated by the own device is stored in the field of the M flag in the RA packet.

アドレス取得部105は、判定部104の判定結果に応じて、自装置が使用するIPv6アドレスを取得する。具体的には、RAパケット内のMフラグのフィールドに、ステートレスモードでIPv6アドレスを取得することを示す情報(例えば、“0”の値)が格納されていると判定された場合、アドレス取得部105はRAパケットに格納されているプレフィックスの情報と、自装置のMACアドレスとに基づいて自装置が使用するIPv6アドレスを生成する。一方、RAパケット内のMフラグのフィールドに、ステートレスモードでIPv6アドレスを取得することを示す情報(例えば、“0”の値)が格納されていないと判定された場合、アドレス取得部105はDHCPv6を利用してDHCPv6サーバ40からIPv6アドレスを含むアドレス情報を取得する。RAパケット内のMフラグのフィールドには、“0”か“1”のいずれかの値が格納される。つまり、RAパケット内のMフラグのフィールドの値が0ではないと判定された場合、RAパケット内のMフラグのフィールドには1の値が格納されている。アドレス取得部105は、IPv6アドレスを取得した後、RAパケット内のMフラグのフィールドの値に関する情報(0であるか1であるかを示す情報)を設定部106に出力する。   The address acquisition unit 105 acquires an IPv6 address used by the own device according to the determination result of the determination unit 104. Specifically, when it is determined that information (for example, a value of “0”) indicating that an IPv6 address is acquired in the stateless mode is stored in the M flag field in the RA packet, the address acquisition unit 105 generates an IPv6 address used by the own device based on the prefix information stored in the RA packet and the MAC address of the own device. On the other hand, if it is determined that the information (for example, “0” value) indicating that the IPv6 address is acquired in the stateless mode is not stored in the M flag field in the RA packet, the address acquiring unit 105 determines that the DHCPv6 Is used to obtain address information including an IPv6 address from the DHCPv6 server 40. A value of “0” or “1” is stored in the field of the M flag in the RA packet. That is, when it is determined that the value of the M flag field in the RA packet is not 0, a value of 1 is stored in the M flag field in the RA packet. After acquiring the IPv6 address, the address acquisition unit 105 outputs information on the value of the M flag field in the RA packet (information indicating whether it is 0 or 1) to the setting unit 106.

設定部106は、他の装置から受信された情報に基づいて自装置の設定を行う。具体的には、アドレス取得部105からRAパケット内のMフラグのフィールドの値が0であることを示す情報が出力された場合、設定部106は自装置を子HGW20に設定する。また、アドレス取得部105からRAパケット内のMフラグのフィールドの値が1であることを示す情報が出力された場合、設定部106は自装置を親HGW10に設定する。
HGW情報記憶部107は、磁気ハードディスク装置や半導体記憶装置などの記憶装置を用いて構成される。HGW情報記憶部107は、HGW情報データベースを記憶している。HGW情報データベースは、自装置を含むHGW毎の動作設定に関する情報が登録されたデータベースである。
The setting unit 106 sets the own apparatus based on information received from another apparatus. Specifically, when the information indicating that the value of the field of the M flag in the RA packet is 0 is output from the address acquisition unit 105, the setting unit 106 sets the own device to the child HGW 20. When the address acquisition unit 105 outputs information indicating that the value of the M flag field in the RA packet is 1, the setting unit 106 sets the own device as the parent HGW 10.
The HGW information storage unit 107 is configured using a storage device such as a magnetic hard disk device or a semiconductor storage device. The HGW information storage unit 107 stores an HGW information database. The HGW information database is a database in which information related to operation settings for each HGW including its own device is registered.

親機能部108は、自装置が親HGW10である場合に機能する機能部である。すなわち、自装置が子HGW20である場合には、親機能部108は機能しない。以下、親機能部108の具体的な構成について説明する。
親中継部1081は、第1通信部102と第2通信部110との間で中継処理を行う。 IPv4情報記憶部1082は、磁気ハードディスク装置や半導体記憶装置などの記憶装置を用いて構成される。IPv4情報記憶部1082は、アドレス取得部105によって取得されたアドレス情報のうち、ひかり電話用のIPv4アドレス及び電話番号の情報を記憶している。
The parent function unit 108 is a function unit that functions when the own device is the parent HGW 10. That is, when the own device is the child HGW 20, the parent function unit 108 does not function. Hereinafter, a specific configuration of the parent function unit 108 will be described.
The parent relay unit 1081 performs a relay process between the first communication unit 102 and the second communication unit 110. The IPv4 information storage unit 1082 is configured using a storage device such as a magnetic hard disk device or a semiconductor storage device. The IPv4 information storage unit 1082 stores IPv4 address and phone number information for Hikari Denwa among the address information acquired by the address acquisition unit 105.

ひかり電話機能部1083は、通信装置60からの要求に応じて、IPv4情報記憶部1082に記憶されているひかり電話用のIPv4アドレス及び電話番号の情報を利用してIP電話接続サービスを提供する。
通知部1084は、RSパケットが受信されると、RAパケットを、第2通信部110及び中継器30を介してRSパケットの送信元である子HGW20に送信する。なお、通知部1084は、RAパケット内のMフラグのフィールドに、ステートレスモードでIPv6アドレスを取得することを示す情報(例えば、“0”の値)を格納する。
DHCPv4サーバ機能部1085は、通信装置60からの要求に応じて、通信装置60にIPv4アドレスを割り当てる。
In response to a request from the communication device 60, the Hikari Telephone function unit 1083 provides an IP telephone connection service using the information of the IPv4 address and telephone number for Hikari Telephone stored in the IPv4 information storage unit 1082.
When the RS packet is received, the notification unit 1084 transmits the RA packet to the child HGW 20 that is the transmission source of the RS packet via the second communication unit 110 and the relay 30. Note that the notification unit 1084 stores information (for example, a value of “0”) indicating that the IPv6 address is acquired in the stateless mode in the field of the M flag in the RA packet.
The DHCPv4 server function unit 1085 assigns an IPv4 address to the communication device 60 in response to a request from the communication device 60.

子機能部109は、自装置が子HGW20である場合に機能する機能部である。すなわち、自装置が親HGW10である場合には、子機能部109は機能しない。以下、子機能部109の具体的な構成について説明する。
子中継部1091は、第1通信部102と第2通信部110との間で中継処理を行う。
接続制御部1092は、自装置(子HGW20)と制御サーバ50との接続を制御する。より具体的には、接続制御部1092は、自発パケットを通信制御部103、第1通信部102、中継器30及び親HGW10を介して制御サーバ50に送信する。また、接続制御部1092は、制御サーバ50からの制御に従って自装置の設定変更を行う。
第2通信部110は、他の装置(中継器30又は通信装置60)との間で通信を行う。第2通信部110は、IPv4インターフェース1101及びIPv6インターフェース1102を備える。IPv4インターフェース1101は、他の装置(中継器30又は通信装置60)との間でIPv4によるデータの入出力を行う。IPv6インターフェース1102は、他の装置(中継器30又は通信装置60)との間でIPv6によるデータの入出力を行う。
The child function unit 109 is a function unit that functions when the own device is the child HGW 20. That is, when the own device is the parent HGW 10, the child function unit 109 does not function. Hereinafter, a specific configuration of the child function unit 109 will be described.
The child relay unit 1091 performs a relay process between the first communication unit 102 and the second communication unit 110.
The connection control unit 1092 controls connection between the own device (child HGW 20) and the control server 50. More specifically, the connection control unit 1092 transmits the spontaneous packet to the control server 50 via the communication control unit 103, the first communication unit 102, the repeater 30, and the parent HGW 10. Further, the connection control unit 1092 changes the setting of the own device according to the control from the control server 50.
The second communication unit 110 performs communication with other devices (the repeater 30 or the communication device 60). The second communication unit 110 includes an IPv4 interface 1101 and an IPv6 interface 1102. The IPv4 interface 1101 inputs / outputs data with IPv4 from / to other devices (the repeater 30 or the communication device 60). The IPv6 interface 1102 performs input / output of data by IPv6 with other devices (the repeater 30 or the communication device 60).

図3は、第1実施形態におけるHGW情報データベースの具体例を示す図である。
HGW情報データベースは、HGW毎の動作設定に関する情報を表すレコード90を複数有する。レコード90は、MAC_HGW、Mフラグ及びステータスの各値を有する。MAC_HGWの値は、自装置の同一ネットワーク上に存在するHGW(自装置を含む)のMACアドレスを表す。Mフラグの値は、同じレコード90のHGWに通知されたMフラグの値を表す。ステータスの値は、同じレコード90のHGWが親HGW10であるか子HGW20であるかを表す。
FIG. 3 is a diagram illustrating a specific example of the HGW information database according to the first embodiment.
The HGW information database has a plurality of records 90 representing information related to operation settings for each HGW. The record 90 has MAC_HGW, M flag, and status values. The value of MAC_HGW represents the MAC address of the HGW (including the own device) existing on the same network of the own device. The value of the M flag represents the value of the M flag notified to the HGW of the same record 90. The status value indicates whether the HGW of the same record 90 is a parent HGW 10 or a child HGW 20.

図3に示される例では、HGW情報データベースには複数のMAC_HGWが記録されている。これらのMAC_HGWは、“AAA”、“BBB”、“CCC”である。図3において、HGW情報データベースの最上段に記録されているレコード90は、MAC_HGWの値が“AAA”、Mフラグの値が“1”、ステータスの値が“親”である。すなわち、MACアドレス“AAA”で識別されるHGWに通知されたMフラグの値が“1”であり、当該HGWが親HGW10であることが表されている。   In the example shown in FIG. 3, a plurality of MAC_HGWs are recorded in the HGW information database. These MAC_HGWs are “AAA”, “BBB”, and “CCC”. In FIG. 3, the record 90 recorded at the top of the HGW information database has the MAC_HGW value “AAA”, the M flag value “1”, and the status value “parent”. That is, the value of the M flag notified to the HGW identified by the MAC address “AAA” is “1”, indicating that the HGW is the parent HGW 10.

また、図3において、HGW情報データベースの2段目に記録されているレコード90は、MAC_HGWの値が“BBB”、Mフラグの値が“0”、ステータスの値が“子”である。すなわち、MACアドレス“BBB”で識別されるHGWに通知されたMフラグの値が“0”であり、当該HGWが子HGW20であることが表されている。   In FIG. 3, the record 90 recorded in the second row of the HGW information database has a MAC_HGW value of “BBB”, an M flag value of “0”, and a status value of “child”. That is, the value of the M flag notified to the HGW identified by the MAC address “BBB” is “0”, indicating that the HGW is a child HGW 20.

図4は、第1実施形態におけるHGWの親子設定処理の流れを示すフローチャートである。親子設定処理とは、自装置を親HGW10又は子HGW20のいずれかに設定するための処理である。
パケット生成部101は、所定のタイミングでRSパケットを生成する(ステップS101)。通信制御部103は、IPv6インターフェース1022を介して他の装置にRSパケットを送信する(ステップS102)。通信制御部103は、RAパケットが受信されたか否か判定する(ステップS103)。RAパケットが受信されていない場合(ステップS103−NO)、通信制御部103はRSパケットを所定回数(例えば、3回)送信したか否か判定する(ステップS104)。RSパケットを所定回数送信した場合(ステップS104−YES)、HGWはタイムアウトと判定して処理を終了する。
一方、RSパケットを所定回数送信していない場合(ステップS104−NO)、HGWはステップS101以降の処理を繰り返し実行する。
FIG. 4 is a flowchart showing a flow of HGW parent-child setting processing in the first embodiment. The parent-child setting process is a process for setting the own apparatus as either the parent HGW 10 or the child HGW 20.
The packet generator 101 generates an RS packet at a predetermined timing (step S101). The communication control unit 103 transmits an RS packet to another device via the IPv6 interface 1022 (step S102). The communication control unit 103 determines whether an RA packet has been received (step S103). When the RA packet has not been received (step S103—NO), the communication control unit 103 determines whether or not the RS packet has been transmitted a predetermined number of times (for example, three times) (step S104). When the RS packet is transmitted a predetermined number of times (step S104—YES), the HGW determines that a timeout has occurred and ends the process.
On the other hand, when the RS packet has not been transmitted a predetermined number of times (step S104—NO), the HGW repeatedly executes the processing after step S101.

また、ステップS103の処理において、RAパケットが受信された場合(ステップS103−YES)、通信制御部103はRAパケットを判定部104に出力する。判定部104は、出力されたRAパケット内のMフラグのフィールドの値が0であるか否か判定する(ステップS105)。Mフラグのフィールドの値が0である場合(ステップS105−YES)、アドレス取得部105はRAパケットに格納されているプレフィックスの情報と、自装置のMACアドレスとに基づいてIPv6アドレスを生成する(ステップS106)。これにより、アドレス取得部105は、自装置が使用するIPv6アドレスを取得する。アドレス取得部105は、Mフラグのフィールドの値に関する情報を設定部106に出力する。この場合、設定部106は、自装置を子HGW20に設定する(ステップS107)。   In the process of step S103, when an RA packet is received (step S103-YES), the communication control unit 103 outputs the RA packet to the determination unit 104. The determination unit 104 determines whether the value of the M flag field in the output RA packet is 0 (step S105). When the value of the field of the M flag is 0 (step S105—YES), the address acquisition unit 105 generates an IPv6 address based on the prefix information stored in the RA packet and the MAC address of the own device ( Step S106). Thereby, the address acquisition unit 105 acquires an IPv6 address used by the own device. The address acquisition unit 105 outputs information related to the value of the M flag field to the setting unit 106. In this case, the setting unit 106 sets its own device as the child HGW 20 (step S107).

また、ステップS105の処理において、Mフラグのフィールドの値が0ではない場合(ステップS105−NO)、アドレス取得部105は通信制御部103及びIPv6インターフェース1022を介してDHCPv6サーバ40にIPv6アドレスを要求する(ステップS108)。通信制御部103は、IPv6インターフェース1022を介して、DHCPv6サーバ40から送信されたIPv6アドレスの情報を含むアドレス情報を受信する(ステップS109)。通信制御部103は、受信したアドレス情報をアドレス取得部105に出力する。これにより、アドレス取得部105は、自装置が使用するIPv6アドレスを取得する。この場合、設定部106は、自装置を親HGW10に設定する(ステップS110)。   In the process of step S105, if the value of the M flag field is not 0 (step S105-NO), the address acquisition unit 105 requests the IPv6 address from the DHCPv6 server 40 via the communication control unit 103 and the IPv6 interface 1022. (Step S108). The communication control unit 103 receives the address information including the IPv6 address information transmitted from the DHCPv6 server 40 via the IPv6 interface 1022 (step S109). The communication control unit 103 outputs the received address information to the address acquisition unit 105. Thereby, the address acquisition unit 105 acquires an IPv6 address used by the own device. In this case, the setting unit 106 sets its own device as the parent HGW 10 (step S110).

図5は、第1実施形態における親HGW10の応答処理の流れを示すフローチャートである。
親HGW10は、IPv6インターフェース1102を介して、他のHGWから送信されたRSパケットを受信する(ステップS201)。通知部1084は、RSパケットが受信されるとRAパケットを生成する(ステップS202)。この際、通知部1084は、RAパケット内のMフラグのフィールドに0の値を格納する。通知部1084は、IPv6インターフェース1102及び中継器30を介してRSパケットの送信元である子HGW20にRAパケットを送信する(ステップS203)。
FIG. 5 is a flowchart showing a response process flow of the parent HGW 10 in the first embodiment.
The parent HGW 10 receives an RS packet transmitted from another HGW via the IPv6 interface 1102 (step S201). The notification unit 1084 generates an RA packet when an RS packet is received (step S202). At this time, the notification unit 1084 stores a value of 0 in the M flag field in the RA packet. The notification unit 1084 transmits the RA packet to the child HGW 20 that is the transmission source of the RS packet via the IPv6 interface 1102 and the relay 30 (step S203).

図6は、第1実施形態における中継システム100の動作を示すシーケンス図である。なお、図6では、HGWの台数が2台(HGW1及びHGW2)、通信装置60の台数が1台の場合について説明する。処理開始時には、HGW1及びHGW2のどちらも起動されていない。
HGW2が起動されると、HGW2のパケット生成部101はRSパケットを生成する(ステップS301)。パケット生成部101は、生成したRSパケットを通信制御部103に出力する。通信制御部103は、IPv6インターフェース1022を介してDHCPv6サーバ40にRSパケットを送信する(ステップS302)。
DHCPv6サーバ40は、HGW2から送信されたRSパケットを受信する。DHCPv6サーバ40は、受信したRSパケットの応答として、RAパケットを生成する。この際、DHCPv6サーバ40は、RAパケット内のMフラグのフィールドに1の値を格納する。DHCPv6サーバ40は、生成したRAパケットをHGW2に送信する(ステップS303)。
FIG. 6 is a sequence diagram illustrating an operation of the relay system 100 according to the first embodiment. FIG. 6 illustrates a case where the number of HGWs is two (HGW1 and HGW2) and the number of communication devices 60 is one. At the start of processing, neither HGW1 nor HGW2 is activated.
When the HGW 2 is activated, the packet generation unit 101 of the HGW 2 generates an RS packet (step S301). The packet generation unit 101 outputs the generated RS packet to the communication control unit 103. The communication control unit 103 transmits an RS packet to the DHCPv6 server 40 via the IPv6 interface 1022 (step S302).
The DHCPv6 server 40 receives the RS packet transmitted from the HGW 2. The DHCPv6 server 40 generates an RA packet as a response to the received RS packet. At this time, the DHCPv6 server 40 stores a value of 1 in the M flag field in the RA packet. The DHCPv6 server 40 transmits the generated RA packet to the HGW 2 (step S303).

HGW2の通信制御部103は、IPv6インターフェース1022を介して、DHCPv6サーバ40から送信されたRAパケットを受信する。通信制御部103は、受信したRAパケットを判定部104に出力する。判定部104は、RAパケット内のMフラグのフィールドの値を確認する(ステップS304)。Mフラグのフィールドの値が1(Mフラグがオン)であるため、アドレス取得部105はDHCPv6を利用してDHCPv6サーバ40にIPv6アドレスを要求する(ステップS305)。   The communication control unit 103 of the HGW 2 receives the RA packet transmitted from the DHCPv6 server 40 via the IPv6 interface 1022. The communication control unit 103 outputs the received RA packet to the determination unit 104. The determination unit 104 checks the value of the M flag field in the RA packet (step S304). Since the value of the M flag field is 1 (M flag is on), the address acquiring unit 105 requests the IPv6 address from the DHCPv6 server 40 using DHCPv6 (step S305).

DHCPv6サーバ40は、HGW2からの要求に応じてIPv6アドレスを含むアドレス情報をHGW2に送信する(ステップS306)。
HGW2の通信制御部103は、IPv6インターフェース1102を介して、DHCPv6サーバ40から送信されたアドレス情報を受信する。アドレス取得部105は、受信されたアドレス情報からIPv6アドレスを取得する。この場合、設定部106は自装置を親HGW10に設定する(ステップS307)。
The DHCPv6 server 40 transmits address information including an IPv6 address to the HGW 2 in response to a request from the HGW 2 (step S306).
The communication control unit 103 of the HGW 2 receives the address information transmitted from the DHCPv6 server 40 via the IPv6 interface 1102. The address acquisition unit 105 acquires an IPv6 address from the received address information. In this case, the setting unit 106 sets the own device as the parent HGW 10 (step S307).

その後、設定部106は、設定した内容に関する情報をHGW情報記憶部107に記録する。具体的には、まず設定部106は、HGW情報記憶部107に記憶されているHGW情報データベースを読み出す。次に、設定部106は、自装置のMACアドレス、RAパケット内のMフラグの値及びステータス(親HGW10であることを示す文字列(例えば、親))の情報を含むレコード90を生成する。そして、設定部106は、生成したレコード90を、読み出したHGW情報データベースに新たに追加する。   Thereafter, the setting unit 106 records information regarding the set contents in the HGW information storage unit 107. Specifically, the setting unit 106 first reads the HGW information database stored in the HGW information storage unit 107. Next, the setting unit 106 generates a record 90 including information on the MAC address of the own device, the value of the M flag in the RA packet, and the status (a character string indicating the parent HGW 10 (for example, parent)). Then, the setting unit 106 newly adds the generated record 90 to the read HGW information database.

次に、HGW1が中継器30(図6では、不図示)を介してHGW2に接続され、起動されると、HGW1のパケット生成部101はRSパケットを生成する(ステップS308)。通信制御部103は、IPv6インターフェース1022を介してHGW2にRSパケットを送信する(ステップS309)。
HGW2は、IPv6インターフェース1102を介して、HGW1から送信されたRSパケットを受信する。HGW2は親HGW10として動作しているため、第2通信部110は受信したRSパケットを親機能部108に出力する。通知部1084は、RAパケットを生成する。この際、通知部1084は、RAパケット内のMフラグのフィールドに0の値を格納する。その後、通知部1084は、IPv6インターフェース1102を介してRSパケットの送信元であるHGW1にRAパケットを送信する(ステップS310)
Next, when the HGW 1 is connected to the HGW 2 via the repeater 30 (not shown in FIG. 6) and activated, the packet generation unit 101 of the HGW 1 generates an RS packet (step S308). The communication control unit 103 transmits an RS packet to the HGW 2 via the IPv6 interface 1022 (step S309).
The HGW 2 receives the RS packet transmitted from the HGW 1 via the IPv6 interface 1102. Since the HGW 2 operates as the parent HGW 10, the second communication unit 110 outputs the received RS packet to the parent function unit 108. The notification unit 1084 generates an RA packet. At this time, the notification unit 1084 stores a value of 0 in the M flag field in the RA packet. Thereafter, the notification unit 1084 transmits the RA packet to the HGW 1 that is the transmission source of the RS packet via the IPv6 interface 1102 (step S310).

その後、通知部1084は、RSパケットの送信元であるHGW1の設定内容に関する情報をHGW情報記憶部107に記録する。具体的には、まず通知部1084は、HGW情報記憶部107に記憶されているHGW情報データベースを読み出す。次に、通知部1084は、HGW1のMACアドレス、HGW1に対して自身が送信したRAパケット内のMフラグの値(つまり、0の値)及びステータス(子HGW20であることを示す文字列(例えば、子))の情報を含むレコード90を生成する。そして、通知部1084は、生成したレコード90を、読み出したHGW情報データベースに新たに追加する。   Thereafter, the notification unit 1084 records information on the setting content of the HGW 1 that is the transmission source of the RS packet in the HGW information storage unit 107. Specifically, the notification unit 1084 first reads the HGW information database stored in the HGW information storage unit 107. Next, the notification unit 1084 receives the MAC address of the HGW 1, the value of the M flag (that is, the value of 0) and the status (child HGW 20) in the RA packet transmitted to the HGW 1 by itself (for example, , Child)) is generated. Then, the notification unit 1084 newly adds the generated record 90 to the read HGW information database.

HGW1の通信制御部103は、IPv6インターフェース1022を介して、HGW2から送信されたRAパケットを受信する。通信制御部103は、受信したRAパケットを判定部104に出力する。判定部104は、RAパケット内のMフラグのフィールドの値を確認する。(ステップS311)。Mフラグのフィールドの値が0(Mフラグがオフ)であるため、アドレス取得部105はRAパケットに格納されているプレフィックスの情報と、自装置のMACアドレスとに基づいてIPv6アドレスを生成する(ステップS312)。この場合、設定部106は自装置を子HGW20に設定する(ステップS313)。   The communication control unit 103 of the HGW 1 receives the RA packet transmitted from the HGW 2 via the IPv6 interface 1022. The communication control unit 103 outputs the received RA packet to the determination unit 104. The determination unit 104 confirms the value of the M flag field in the RA packet. (Step S311). Since the value of the field of the M flag is 0 (M flag is off), the address acquisition unit 105 generates an IPv6 address based on the prefix information stored in the RA packet and the MAC address of the own device ( Step S312). In this case, the setting unit 106 sets its own device to the child HGW 20 (step S313).

その後、設定部106は、設定した内容に関する情報をHGW情報記憶部107に記録する。具体的には、まず設定部106は、HGW情報記憶部107に記憶されているHGW情報データベースを読み出す。次に、設定部106は、自装置のMACアドレス、RAパケット内のMフラグの値及びステータス(子HGW20であることを示す文字列(例えば、子))の情報を含むレコード90を生成する。そして、設定部106は、生成したレコード90を、読み出したHGW情報データベースに新たに追加する。   Thereafter, the setting unit 106 records information regarding the set contents in the HGW information storage unit 107. Specifically, the setting unit 106 first reads the HGW information database stored in the HGW information storage unit 107. Next, the setting unit 106 generates a record 90 including information on the MAC address of the own device, the value of the M flag in the RA packet, and the status (a character string (for example, a child) indicating the child HGW 20). Then, the setting unit 106 newly adds the generated record 90 to the read HGW information database.

また、設定部106は、Mフラグのフィールドの値が0である旨が出力されると、RAパケットの送信元である他の装置(例えば、HGW2)の設定内容に関する情報をHGW情報記憶部107に記録する。具体的には、まず設定部106は、HGW情報記憶部107に記憶されているHGW情報データベースを読み出す。次に、設定部106は、RAパケットの送信元である他の装置のMACアドレス、RAパケットの送信元である他の装置のMフラグの値(つまり、1の値)及びステータス(親HGW10であることを示す文字列(例えば、親))の情報を含むレコード90を生成する。そして、設定部106は、生成したレコード90を、読み出したHGW情報データベースに新たに追加する。   Further, when the fact that the value of the field of the M flag is 0 is output, the setting unit 106 displays information regarding the setting contents of another device (for example, HGW 2) that is the transmission source of the RA packet as the HGW information storage unit 107. To record. Specifically, the setting unit 106 first reads the HGW information database stored in the HGW information storage unit 107. Next, the setting unit 106 sets the MAC address of the other device that is the source of the RA packet, the value of the M flag of the other device that is the source of the RA packet (that is, a value of 1), and the status (in A record 90 including information on a character string (for example, a parent) indicating that there is a record is generated. Then, the setting unit 106 newly adds the generated record 90 to the read HGW information database.

HGW1は、HGW2を介して制御サーバ50との間で通信を行う(ステップS314)。例えば、HGW1の第1通信部102は、制御サーバ50から送信された設定変更の情報を受信する。接続制御部1092は、設定変更の情報に従って自装置の設定を変更する。
通信装置60は、自装置(通信装置60)が帰属しているHGW1にIPv4アドレスを要求する(ステップS315)。HGW1は、IPv4インターフェース1101を介して、通信装置60から送信された要求を受信する。HGW1は子HGW20として動作しているため、受信された要求は子機能部109に出力される。子機能部109が備える子中継部1091は、出力された要求を、IPv4インターフェース1021を介してHGW2に送信する(ステップS316)。
The HGW 1 communicates with the control server 50 via the HGW 2 (Step S314). For example, the first communication unit 102 of the HGW 1 receives setting change information transmitted from the control server 50. The connection control unit 1092 changes the setting of the own device according to the setting change information.
The communication device 60 requests the IPv4 address from the HGW 1 to which the own device (communication device 60) belongs (step S315). The HGW 1 receives the request transmitted from the communication device 60 via the IPv4 interface 1101. Since the HGW 1 operates as the child HGW 20, the received request is output to the child function unit 109. The child relay unit 1091 included in the child function unit 109 transmits the output request to the HGW 2 via the IPv4 interface 1021 (step S316).

HGW2は、IPv4インターフェース1101を介して、HGW1から送信された要求を受信する。HGW2は親HGW10として動作しているため、受信された要求は親機能部108に出力される。DHCPv4サーバ機能部1085は、出力された要求に応じてIPv4アドレスの要求元である通信装置60にIPv4アドレスを割り当てる。DHCPv4サーバ機能部1085は、IPv4インターフェース1101を介して、割り当てたIPv4アドレスの情報をHGW1に送信する(ステップS317)。
HGW1の通信制御部103は、IPv4インターフェース1021を介して、HGW2から送信されたIPv4アドレスの情報を受信する。通信制御部103は、受信したIPv4アドレスの情報を、子中継部1091及びIPv4インターフェース1101を介してIPv4アドレスの要求元である通信装置60に送信する(ステップS318)。
The HGW 2 receives the request transmitted from the HGW 1 via the IPv4 interface 1101. Since the HGW 2 operates as the parent HGW 10, the received request is output to the parent function unit 108. The DHCPv4 server function unit 1085 assigns an IPv4 address to the communication device 60 that is the request source of the IPv4 address in response to the output request. The DHCPv4 server function unit 1085 transmits the assigned IPv4 address information to the HGW 1 via the IPv4 interface 1101 (step S317).
The communication control unit 103 of the HGW 1 receives the IPv4 address information transmitted from the HGW 2 via the IPv4 interface 1021. The communication control unit 103 transmits the received IPv4 address information to the communication device 60 that is the request source of the IPv4 address via the child relay unit 1091 and the IPv4 interface 1101 (step S318).

通信装置60は、ユーザの操作に応じて、ひかり電話の利用を要求する(ステップS319)。具体的には、通信装置60は、ユーザから入力された電話番号の情報を自装置が帰属しているHGW1に送信する。HGW1は、IPv4インターフェース1101を介して、通信装置60から送信された電話番号の情報を受信する。HGW1は、子中継部1091、通信制御部103及びIPv4インターフェース1021を介してHGW2に電話番号の情報を送信する(ステップS320)。
HGW2は、IPv4インターフェース1101を介して、HGW1から送信された電話番号の情報を受信する。ひかり電話機能部1083は、受信された電話番号の情報と、IPv4情報記憶部1082に記憶されているひかり電話用のIPv4アドレスとを用いてIP電話接続サービスを提供する(ステップS321)。
The communication device 60 requests the use of the Hikari phone according to the user's operation (step S319). Specifically, the communication device 60 transmits the telephone number information input from the user to the HGW 1 to which the own device belongs. The HGW 1 receives the telephone number information transmitted from the communication device 60 via the IPv4 interface 1101. The HGW 1 transmits the telephone number information to the HGW 2 via the child relay unit 1091, the communication control unit 103, and the IPv4 interface 1021 (step S320).
The HGW 2 receives the telephone number information transmitted from the HGW 1 via the IPv4 interface 1101. The Hikari phone function unit 1083 provides an IP phone connection service using the received phone number information and the IPv4 address for Hikari phone stored in the IPv4 information storage unit 1082 (step S321).

以上のように構成されたHGWによれば、RAパケットのMフラグの値に基づいて、親HGW10又は子HGW20のいずれかに設定される。そして、自装置が親HGW10である場合には、通信装置60に対してネットワークへの接続を提供するブロードバンドルータとして機能し、自装置が子HGW20である場合には、親HGW10と通信装置60との間で行われる通信などを中継する中継器として機能する。そのため、オフィス内で中継装置を多段接続する際に生じる手間を軽減することが可能になる。   According to the HGW configured as described above, it is set to either the parent HGW 10 or the child HGW 20 based on the value of the M flag of the RA packet. When the own device is the parent HGW 10, the device functions as a broadband router that provides the communication device 60 with connection to the network. When the own device is the child HGW 20, the parent HGW 10 and the communication device 60 It functions as a repeater that relays communications performed between the two. For this reason, it is possible to reduce the labor required when connecting the relay devices in multiple stages in the office.

また、同一構成のHGWを利用することができるため、本システムを提供する事業者は、オフィス向けの無線LANルータとしてHGWを販売することができる。また、本システムを提供する事業者は、HGWの調達台数の増大に伴い、HGW1台あたりの筐体費用を安価にする価格交渉が可能になる。
また、子HGW20は、通信装置60のユーザからの要求に応じてひかり電話の利用要求を親HGW10に転送し、親HGW10が通信装置60に対してIP電話接続サービスを提供する。つまり、子HGW20がブリッジとして機能し、親HGW10が通信装置60のユーザにIP電話接続サービスを提供する。そのため、同一構成のHGWを多段接続した場合であっても、HGW本来が備えている電話機能が利用させることができる。
In addition, since an HGW having the same configuration can be used, an operator providing this system can sell the HGW as a wireless LAN router for office use. In addition, with the increase in the number of HGWs procured, businesses that provide this system can negotiate prices that reduce the housing cost per HGW.
Further, the child HGW 20 transfers a request for using the Hikari phone to the parent HGW 10 in response to a request from the user of the communication device 60, and the parent HGW 10 provides the IP phone connection service to the communication device 60. That is, the child HGW 20 functions as a bridge, and the parent HGW 10 provides the IP telephone connection service to the user of the communication device 60. Therefore, even when the HGWs having the same configuration are connected in multiple stages, the telephone function that the HGW originally has can be used.

<変形例>
本実施形態では、中継システム100が2台の子HGW20を備える構成を示したが、中継システム100は1台の子HGW20を備えるように構成されてもよいし、3台以上の子HGW20を備えるように構成されてもよい。
本実施形態では、パケット生成部101がHGWの起動時にRSパケットを生成する例を示したが、パケット生成部101は所定のタイミングでRSパケットを生成してもよい。所定のタイミングとは、例えばHGWが他の装置と接続された(例えば、物理的に接続された)場合にRSパケットを生成してもよいし、所定の時間が経過する度にRSパケットを生成してもよい。
本実施形態では、HGWを例に説明したが、HGWに限定される必要はない。例えば、ブロードバンドルータ機能付きのアクセスポイントがHGWと同様の構成を備えるように構成されてもよい。
<Modification>
In the present embodiment, the configuration in which the relay system 100 includes two child HGWs 20 has been described. However, the relay system 100 may be configured to include one child HGW 20 or may include three or more child HGWs 20. It may be configured as follows.
In the present embodiment, an example in which the packet generation unit 101 generates an RS packet when the HGW is activated has been described, but the packet generation unit 101 may generate an RS packet at a predetermined timing. For example, when the HGW is connected to another device (for example, physically connected), an RS packet may be generated, or an RS packet is generated every time a predetermined time elapses. May be.
In the present embodiment, the HGW has been described as an example, but it is not necessary to be limited to the HGW. For example, an access point with a broadband router function may be configured to have the same configuration as the HGW.

[第2実施形態]
図7は、第2実施形態におけるHGWの機能構成を表す概略ブロック図である。親HGW10aと子HGW20aとは、同様の構成を有している。また、HGWは、後述するHGWの起動時や動作中の処理によって親HGW10a、子HGW20aのいずれかとして動作する。なお、HGWは、IPv4及びIPv6の双方に対応している。
HGWは、バスで接続されたCPUやメモリや補助記憶装置などを備え、中継プログラムを実行する。中継プログラムの実行によって、HGWは、パケット生成部101、第1通信部102、通信制御部103、判定部104、アドレス取得部105a、設定部106a、HGW情報記憶部107a、親機能部108a、子機能部109、第2通信部110を備える装置として機能する。また、親機能部108aは、親中継部1081、IPv4情報記憶部1082、ひかり電話機能部1083、通知部1084a、DHCPv4サーバ機能部1085として機能する。また、子機能部109は、子中継部1091、接続制御部1092として機能する。なお、HGWの各機能の全て又は一部は、ASICやPLDやFPGA等のハードウェアを用いて実現されてもよい。また、中継プログラムは、コンピュータ読み取り可能な記録媒体に記録されてもよい。コンピュータ読み取り可能な記録媒体とは、例えばフレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置である。また、中継プログラムは、電気通信回線を介して送受信されてもよい。
[Second Embodiment]
FIG. 7 is a schematic block diagram showing the functional configuration of the HGW in the second embodiment. The parent HGW 10a and the child HGW 20a have the same configuration. Further, the HGW operates as either the parent HGW 10a or the child HGW 20a at the time of starting up the HGW or a process during operation described later. The HGW is compatible with both IPv4 and IPv6.
The HGW includes a CPU, a memory, an auxiliary storage device, and the like connected by a bus and executes a relay program. By executing the relay program, the HGW generates a packet generation unit 101, a first communication unit 102, a communication control unit 103, a determination unit 104, an address acquisition unit 105a, a setting unit 106a, an HGW information storage unit 107a, a parent function unit 108a, a child It functions as a device including the function unit 109 and the second communication unit 110. The parent function unit 108a functions as a parent relay unit 1081, an IPv4 information storage unit 1082, a Hikari Telephone function unit 1083, a notification unit 1084a, and a DHCPv4 server function unit 1085. Further, the child function unit 109 functions as a child relay unit 1091 and a connection control unit 1092. All or some of the functions of the HGW may be realized using hardware such as an ASIC, PLD, or FPGA. The relay program may be recorded on a computer-readable recording medium. The computer-readable recording medium is, for example, a portable medium such as a flexible disk, a magneto-optical disk, a ROM, a CD-ROM, or a storage device such as a hard disk built in the computer system. Further, the relay program may be transmitted / received via a telecommunication line.

第2実施形態におけるHGWは、アドレス取得部105、設定部106、HGW情報記憶部107及び親機能部108に代えてアドレス取得部105a、設定部106a、HGW情報記憶部107a及び親機能部108aを備える点で第1実施形態におけるHGWと構成が異なる。第2実施形態におけるHGWは、他の構成については第1実施形態におけるHGWと同様である。そのため、第2実施形態におけるHGW全体の説明は省略し、アドレス取得部105a、設定部106a、HGW情報記憶部107a及び親機能部108aについて説明する。   The HGW in the second embodiment includes an address acquisition unit 105a, a setting unit 106a, an HGW information storage unit 107a, and a parent function unit 108a instead of the address acquisition unit 105, setting unit 106, HGW information storage unit 107, and parent function unit 108. The configuration differs from the HGW in the first embodiment in that it is provided. The HGW in the second embodiment is the same as the HGW in the first embodiment with respect to other configurations. Therefore, the description of the entire HGW in the second embodiment is omitted, and the address acquisition unit 105a, the setting unit 106a, the HGW information storage unit 107a, and the parent function unit 108a will be described.

アドレス取得部105aは、判定部104の判定結果に応じて、自装置が使用するIPv6アドレスを取得する。また、アドレス取得部105aは、自装置でIPv6アドレスを生成した後、DHCPv6−IR(Information Request)を生成し、生成したDHCPv6−IRを通信制御部103及びIPv6インターフェース1022を介して他のHGWに送信する。DHCPv6−IRとは、HGWが自装置の動作設定(ステータス)を確認するために送信されるメッセージである。   The address acquisition unit 105 a acquires an IPv6 address used by the own device according to the determination result of the determination unit 104. Further, the address acquisition unit 105a generates an IPv6 address by itself, generates a DHCPv6-IR (Information Request), and sends the generated DHCPv6-IR to another HGW via the communication control unit 103 and the IPv6 interface 1022. Send. DHCPv6-IR is a message sent by the HGW to confirm its own operation setting (status).

設定部106aは、他の装置から受信された情報に基づいて自装置の設定を行う。具体的には、アドレス取得部105からRAパケット内のMフラグのフィールドの値がであることを示す情報が出力された場合、設定部106は自装置を親HGW10aに設定する。また、他のHGWから送信されたDHCPv6−IR−Replyに、自装置が子HGW20aであることを示す情報(以下、「子動作指示情報」)が付与されている場合、設定部106は自装置を子HGW20aに設定する。DHCPv6−IR−Replyとは、DHCPv6−IRに対する応答メッセージである。子動作指示情報には、例えば“子”などの文字列が含まれる。 The setting unit 106a sets its own device based on information received from another device. Specifically, when information indicating that the value of the field of the M flag in the RA packet is 1 is output from the address acquisition unit 105, the setting unit 106 sets the own apparatus as the parent HGW 10a. When the DHCPv6-IR-Reply transmitted from another HGW is provided with information indicating that the own device is a child HGW 20a (hereinafter, “child operation instruction information”), the setting unit 106 determines that the own device Is set to the child HGW 20a. DHCPv6-IR-Reply is a response message to DHCPv6-IR. The child operation instruction information includes a character string such as “child”, for example.

HGW情報記憶部107aは、磁気ハードディスク装置や半導体記憶装置などの記憶装置を用いて構成される。HGW情報記憶部107aは、HGW情報データベースを記憶している。HGW情報データベースは、自装置を含むHGW毎の動作設定の情報が登録されたデータベースである。   The HGW information storage unit 107a is configured using a storage device such as a magnetic hard disk device or a semiconductor storage device. The HGW information storage unit 107a stores an HGW information database. The HGW information database is a database in which operation setting information for each HGW including its own device is registered.

親機能部108aは、自装置が親HGW20aである場合に機能する機能部である。すなわち、自装置が子HGW20aである場合には、親機能部108aは機能しない。以下、親機能部108aの具体的な構成について説明する。なお、親中継部1081、IPv4情報記憶部1082、ひかり電話機能部1083及びDHCPv4サーバ機能部1085については、第1実施形態における同名の機能部と同様の処理を行うため、説明を省略する。   The parent function unit 108a is a function unit that functions when the own device is the parent HGW 20a. That is, when the own device is the child HGW 20a, the parent function unit 108a does not function. Hereinafter, a specific configuration of the parent function unit 108a will be described. The parent relay unit 1081, the IPv4 information storage unit 1082, the Hikari Telephone function unit 1083, and the DHCPv4 server function unit 1085 perform the same processing as the function unit of the same name in the first embodiment, and thus description thereof is omitted.

通知部1084aは、RSパケットが受信されると、RAパケットを、IPv6インターフェース1102及び中継器30を介してRSパケットの送信元である子HGW20aに送信する。また、通知部1084aは、子HGW20aからDHCPv6−IRが受信されると、DHCPv6−IR−Replyを生成し、生成したDHCPv6−IR−ReplyをDHCPv6−IRの送信元である子HGW20aにIPv6インターフェース1102を介して送信する。なお、通知部1084aは、DHCPv6−IR−Replyに規定されたIE(Information Element)のうち、Vendor-Specific-contentに子動作指示情報を付与する。また、DHCPv6−IR−Replyには、子動作指示情報の他に、他のHGWの設定内容に関する情報が含まれる。他のHGWの設定内容に関する情報は、HGW情報データベースに記憶されている全ての情報であってもよいし、特定のHGWに関する情報であってもよい。   When the RS packet is received, the notification unit 1084a transmits the RA packet to the child HGW 20a that is the transmission source of the RS packet via the IPv6 interface 1102 and the relay 30. In addition, when the DHCPv6-IR is received from the child HGW 20a, the notification unit 1084a generates DHCPv6-IR-Reply, and the generated DHCPv6-IR-Reply is transmitted to the child HGW 20a that is the transmission source of the DHCPv6-IR IPv6 interface 1102. To send through. Note that the notification unit 1084a adds child operation instruction information to Vendor-Specific-content among IEs (Information Elements) defined in DHCPv6-IR-Reply. In addition, the DHCPv6-IR-Reply includes information related to the setting contents of other HGWs in addition to the child operation instruction information. The information related to the setting contents of other HGWs may be all the information stored in the HGW information database, or may be information related to a specific HGW.

図8は、第2実施形態におけるHGW情報データベースの具体例を示す図である。
HGW情報データベースは、HGWに関する情報を表すレコード91を複数有する。レコード91は、MAC_HGW、Reply結果及びステータスの各値を有する。MAC_HGWの値は、自装置の同一ネットワーク上に存在するHGW(自装置を含む)のMACアドレスを表す。Reply結果の値は、同じレコード91のHGWに通知されたDHCPv6−IRに対する応答結果の値を表す。なお、HGWが親HGW10aである場合には、DHCPv6−IRに対する応答結果の値は存在しない。そのため、HGWが親HGW10aである場合には、HGW情報データベースのReply結果の項目には“−”の値が登録される。ステータスの値は、同じレコード91のHGWが親HGW10であるか子HGW20であるかを表す。
FIG. 8 is a diagram illustrating a specific example of the HGW information database according to the second embodiment.
The HGW information database has a plurality of records 91 representing information related to the HGW. The record 91 has each value of MAC_HGW, Reply result, and status. The value of MAC_HGW represents the MAC address of the HGW (including the own device) existing on the same network of the own device. The value of the Reply result represents the value of the response result to DHCPv6-IR notified to the HGW of the same record 91. When the HGW is the parent HGW 10a, there is no response result value for DHCPv6-IR. Therefore, when the HGW is the parent HGW 10a, a value of “-” is registered in the Reply result item of the HGW information database. The status value indicates whether the HGW of the same record 91 is a parent HGW 10 or a child HGW 20.

図8に示される例では、HGW情報データベースには複数のMAC_HGWが記録されている。これらのMAC_HGWは、“AAA”、“BBB”、“CCC”である。図8において、HGW情報データベースの最上段に記録されているレコード91は、MAC_HGWの値が“AAA”、Reply結果の値が“−”、ステータスの値が“親”である。すなわち、MACアドレス“AAA”で識別されるHGWが親HGW10aであることが表されている。   In the example shown in FIG. 8, a plurality of MAC_HGWs are recorded in the HGW information database. These MAC_HGWs are “AAA”, “BBB”, and “CCC”. In FIG. 8, the record 91 recorded at the top of the HGW information database has the MAC_HGW value “AAA”, the Reply result value “−”, and the status value “parent”. That is, it is indicated that the HGW identified by the MAC address “AAA” is the parent HGW 10a.

図9は、第2実施形態におけるHGWの親子設定処理の流れを示すフローチャートである。なお、図4と同様の処理については、図9において図4と同様の符号を付して説明を省略する。
ステップS106までの処理が終了すると、アドレス取得部105aはDHCP−IRを生成し、生成したDHCP−IRを、通信制御部103及びIPv6インターフェース1022を介して他の装置に送信する(ステップS401)。設定部106aは、ステップS401の処理で送信したDHCP−IRの応答として受信されたDHCP−IR−Replyに子動作指示情報が格納されているか否か判定する(ステップS402)。
FIG. 9 is a flowchart showing a flow of HGW parent-child setting processing in the second embodiment. In addition, about the process similar to FIG. 4, the code | symbol similar to FIG. 4 is attached | subjected in FIG. 9, and description is abbreviate | omitted.
When the processing up to step S106 is completed, the address acquisition unit 105a generates DHCP-IR, and transmits the generated DHCP-IR to another apparatus via the communication control unit 103 and the IPv6 interface 1022 (step S401). The setting unit 106a determines whether the child operation instruction information is stored in the DHCP-IR-Reply received as the DHCP-IR response transmitted in the process of Step S401 (Step S402).

子動作指示情報が格納されていない場合(ステップS402−NO)、HGWは親子設定処理を終了する。
一方、子動作指示情報が格納されている場合(ステップS402−YES)、設定部106aは自装置を子HGW20aに設定する(ステップS403)。
また、ステップS105の処理において、受信されたRAパケット内のMフラグの値が0ではない場合(ステップS105−NO)、ステップS108以降の処理が実行される。
When the child operation instruction information is not stored (step S402—NO), the HGW ends the parent-child setting process.
On the other hand, when the child operation instruction information is stored (YES in step S402), the setting unit 106a sets the own apparatus as the child HGW 20a (step S403).
Further, in the process of step S105, when the value of the M flag in the received RA packet is not 0 (step S105-NO), the processes after step S108 are executed.

図10は、第2実施形態における親HGW10aの応答処理の流れを示すフローチャートである。
親HGW10aは、IPv6インターフェース1102を介して、他のHGWから送信されたDHCPv6−IRを受信する(ステップS501)。通知部1084aは、DHCPv6−IRが受信されると、DHCPv6−IR−Replyを生成する(ステップS502)。この際、通知部1084aは、DHCPv6−IR−Replyに子動作指示情報を付与する。通知部1084aは、IPv6インターフェース1102及び中継器30を介してDHCPv6−IRの送信元である子HGW20にDHCPv6−IR−Replyを送信する(ステップS503)。
FIG. 10 is a flowchart illustrating a response process flow of the parent HGW 10a according to the second embodiment.
The parent HGW 10a receives DHCPv6-IR transmitted from another HGW via the IPv6 interface 1102 (step S501). When the DHCPv6-IR is received, the notification unit 1084a generates DHCPv6-IR-Reply (Step S502). At this time, the notification unit 1084a gives child operation instruction information to DHCPv6-IR-Reply. The notification unit 1084a transmits DHCPv6-IR-Reply to the child HGW 20 that is the transmission source of DHCPv6-IR via the IPv6 interface 1102 and the relay 30 (step S503).

図11は、第2実施形態における中継システム100の動作を示すシーケンス図である。なお、図11の説明では、HGWの台数が2台(HGW1a及びHGW2a)、通信装置60の台数が1台の場合について説明する。また、図6と同様の処理については、図11において図6と同様の符号を付して説明を省略する。
ステップS312までの処理が終了すると、アドレス取得部105aはDHCPv6−IRを生成する(ステップS601)。この際、アドレス取得部105aはDHCPv6−IRに子動作指示情報を付与する。その後、アドレス取得部105aは、生成したDHCPv6−IRを、通信制御部103及びIPv6インターフェース1022を介してHGW2aに送信する(ステップS602)。
FIG. 11 is a sequence diagram illustrating the operation of the relay system 100 according to the second embodiment. In the description of FIG. 11, a case will be described in which the number of HGWs is two (HGW 1a and HGW 2a) and the number of communication devices 60 is one. Also, the processing similar to that in FIG. 6 is denoted by the same reference numerals as those in FIG.
When the processing up to step S312 is completed, the address acquisition unit 105a generates DHCPv6-IR (step S601). At this time, the address acquisition unit 105a gives child operation instruction information to DHCPv6-IR. Thereafter, the address acquisition unit 105a transmits the generated DHCPv6-IR to the HGW 2a via the communication control unit 103 and the IPv6 interface 1022 (step S602).

HGW2aは、IPv6インターフェース1102を介して、HGW1aから送信されたDHCPv6−IRを受信する。HGW2aは親HGW10aとして動作しているため、受信されたDHCPv6−IRは親機能部108に出力される。通知部1084aは、DHCPv6−IRの応答としてDHCPv6−IR−Replyを生成する(ステップS603)。この際、通知部1084は、DHCPv6−IR−Replyに子動作指示情報を付与する。また、通知部1084aは、HGW情報データベースに記憶されているHGWの設定内容に関する情報をDHCPv6−IR−Replyに付与する。その後、通知部1084aは、生成したDHCPv6−IR−Replyを、IPv6インターフェース1102を介してHGW1aに送信する(ステップS604)。   The HGW 2a receives the DHCPv6-IR transmitted from the HGW 1a via the IPv6 interface 1102. Since the HGW 2a operates as the parent HGW 10a, the received DHCPv6-IR is output to the parent function unit 108. The notification unit 1084a generates DHCPv6-IR-Reply as a response of DHCPv6-IR (step S603). At this time, the notification unit 1084 gives child operation instruction information to DHCPv6-IR-Reply. In addition, the notification unit 1084a gives information regarding the setting contents of the HGW stored in the HGW information database to DHCPv6-IR-Reply. Thereafter, the notification unit 1084a transmits the generated DHCPv6-IR-Reply to the HGW 1a via the IPv6 interface 1102 (step S604).

HGW1aの通信制御部103は、HGW2から送信されたDHCPv6−IR−Replyを受信する。通信制御部103は、受信したDHCPv6−IR−Replyを設定部106aに出力する。DHCPv6−IR−Replyには子動作指示情報が付与されているため、設定部106aは、自装置を子HGW20aに設定する(ステップS605)。   The communication control unit 103 of the HGW 1a receives DHCPv6-IR-Reply transmitted from the HGW 2. The communication control unit 103 outputs the received DHCPv6-IR-Reply to the setting unit 106a. Since DHCPv6-IR-Reply is assigned with child operation instruction information, the setting unit 106a sets its own device as the child HGW 20a (step S605).

その後、設定部106aは、設定した内容に関する情報をHGW情報記憶部107aに記録する。具体的には、まず設定部106aは、自装置のMACアドレス、Reply結果及びステータス(子HGW20aであることを示す文字列(例えば、子))の情報を含むレコード91を生成する。そして、設定部106aは、生成したレコード91を、読み出したHGW情報データベースに新たに追加する。   Thereafter, the setting unit 106a records information regarding the set contents in the HGW information storage unit 107a. Specifically, the setting unit 106a first generates a record 91 including information on the MAC address of the own device, a reply result, and a status (a character string (for example, a child) indicating that it is a child HGW 20a). Then, the setting unit 106a newly adds the generated record 91 to the read HGW information database.

また、設定部106aは、受信されたDHCPv6−IR−Replyに含まれるHGWの設定内容に関する情報をHGW情報記憶部107aに記録する。具体的には、まず設定部106aは、HGW情報記憶部107aに記憶されているHGW情報データベースを読み出す。次に、設定部106aは、HGWの設定内容に関する情報に含まれる他のHGWのMACアドレス、Reply結果及びステータスの情報を含むレコード91を、情報に含まれるHGWの台数分生成する。そして、設定部106aは、生成したレコード91を、読み出したHGW情報データベースに新たに追加する。その後、ステップS314以降の処理が実行される。   Also, the setting unit 106a records information on the setting content of the HGW included in the received DHCPv6-IR-Reply in the HGW information storage unit 107a. Specifically, first, the setting unit 106a reads the HGW information database stored in the HGW information storage unit 107a. Next, the setting unit 106a generates as many records 91 as the number of HGWs included in the information including MAC addresses, Reply results, and status information of other HGWs included in the information related to the setting contents of the HGW. Then, the setting unit 106a newly adds the generated record 91 to the read HGW information database. Thereafter, the processing after step S314 is executed.

以上のように構成されたHGWによれば、他の装置から受信された情報に基づいて、親HGW10a又は子HGW20aのいずれかに設定される。具体的には、DHCPサーバ40から送信されたRAパケット内のMフラグの値が1である場合、HGWは親HGW10aに設定され、他のHGWから子動作指示情報が含まれるDHCPv6−IR−Replyが受信された場合、HGWは子HGW20aに設定される。そして、自装置が親HGW10aである場合には、通信装置60に対してネットワークへの接続を提供するブロードバンドルータとして機能し、自装置が子HGW20aである場合には、親HGW10aと通信装置60との間で行われる通信などを中継する中継器として機能する。つまり、接続された状況によって自動的に自装置の動作設定が変更される。そのため、オフィス内で中継装置を多段接続する際に生じる手間を軽減することが可能になる。   According to the HGW configured as described above, it is set to either the parent HGW 10a or the child HGW 20a based on information received from another device. Specifically, when the value of the M flag in the RA packet transmitted from the DHCP server 40 is 1, the HGW is set as the parent HGW 10a, and DHCPv6-IR-Reply including child operation instruction information from other HGWs. Is received, the HGW is set to the child HGW 20a. When the own device is the parent HGW 10a, it functions as a broadband router that provides the communication device 60 with connection to the network. When the own device is the child HGW 20a, the parent HGW 10a and the communication device 60 It functions as a repeater that relays communications performed between the two. That is, the operation setting of the own apparatus is automatically changed according to the connected state. For this reason, it is possible to reduce the labor required when connecting the relay devices in multiple stages in the office.

また、同一構成のHGWを利用することができるため、本システムを提供する事業者は、オフィス向けの無線LANルータとしてHGWを販売することができる。また、本システムを提供する事業者は、HGWの調達台数の増大に伴い、HGW1台あたりの筐体費用を安価にする価格交渉が可能になる。
また、子HGW20aは、通信装置60のユーザからの要求に応じてひかり電話の利用要求を親HGW10aに転送し、親HGW10aが通信装置60に対してIP電話接続サービスを提供する。つまり、子HGW20aがブリッジとして機能し、親HGW10aが通信装置60のユーザにIP電話接続サービスを提供する。そのため、同一構成のHGWを多段接続した場合であっても、HGW本来が備えている電話機能が利用させることができる。
In addition, since an HGW having the same configuration can be used, an operator providing this system can sell the HGW as a wireless LAN router for office use. In addition, with the increase in the number of HGWs procured, businesses that provide this system can negotiate prices that reduce the housing cost per HGW.
Further, the child HGW 20a transfers a request for using the Hikari Telephone to the parent HGW 10a in response to a request from the user of the communication apparatus 60, and the parent HGW 10a provides the IP telephone connection service to the communication apparatus 60. That is, the child HGW 20a functions as a bridge, and the parent HGW 10a provides the IP telephone connection service to the user of the communication device 60. Therefore, even when the HGWs having the same configuration are connected in multiple stages, the telephone function that the HGW originally has can be used.

<変形例>
第2実施形態は、第1実施形態と同様に変形されてもよい。
<Modification>
The second embodiment may be modified in the same manner as the first embodiment.

以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。   The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes designs and the like that do not depart from the gist of the present invention.

10、10a…親HGW, 20(20−1、20−2)、20a…子HGW, 30…中継器, 40…DHCPv6サーバ, 50…制御サーバ, 60…通信装置, 70…第1ネットワーク, 80…第2ネットワーク, 101…パケット生成部, 102…第1通信部, 1021…IPv4インターフェース, 1022…IPv6インターフェース, 103…通信制御部, 104…判定部, 105、105a…アドレス取得部, 106、106a…設定部, 107、107a…HGW情報記憶部, 108、108a…親機能部, 1081…親中継部, 1082…IPv4情報記憶部, 1083…ひかり電話機能部, 1084、1084a…通知部, 1085…DHCPv4サーバ機能部, 109…子機能部, 1091…子中継部, 1092…接続制御部, 110…第2通信部, 1101…IPv4インターフェース, 1102…IPv6インターフェース DESCRIPTION OF SYMBOLS 10, 10a ... Parent HGW, 20 (20-1, 20-2), 20a ... Child HGW, 30 ... Repeater, 40 ... DHCPv6 server, 50 ... Control server, 60 ... Communication apparatus, 70 ... First network, 80 2nd network 101 101 Packet generation unit 102 1st communication unit 1021 IPv4 interface 1022 IPv6 interface 103 Communication control unit 104 Determination unit 105 105a Address acquisition unit 106 106a ... Setting unit 107, 107a ... HGW information storage unit 108, 108a ... Parent function unit 1081 ... Parent relay unit 1082 ... IPv4 information storage unit 1083 ... Hikari phone function unit 1084, 1084a ... Notification unit 1085 ... DHCPv4 server function unit, 109 ... child function unit, 10 1 ... child relay unit, 1092 ... connection control unit, 110 ... second communication unit, 1101 ... IPv4 interface, 1102 ... IPv6 Interface

Claims (6)

外部ネットワークが位置する上流側と、通信装置が位置する下流側との間で通信の中継を行う中継装置であって、他の装置から受信された情報に基づいて、自装置を親中継装置又は子中継装置のいずれかに設定する設定部と、
自装置が親中継装置である場合、上流側に位置する前記外部ネットワークと、自装置より下流側に位置する子中継装置との間で行われる通信を中継し、自装置が子中継装置である場合、自装置に帰属する通信装置と親中継装置との間で行われる通信を中継する中継部と、
を備え
前記設定部は、自装置が送信するIPv6の識別情報の要求の応答として、前記他の装置から受信された前記応答に親中継装置として動作する旨を示す情報が含まれている場合に自装置を親中継装置に設定する中継装置。
A relay device that relays communication between the upstream side where the external network is located and the downstream side where the communication device is located, and based on the information received from other devices, A setting unit that is set to one of the child relay devices;
When the own device is a parent relay device, it relays communication performed between the external network located on the upstream side and the child relay device located on the downstream side of the own device, and the own device is the child relay device A relay unit that relays communication performed between the communication device belonging to the own device and the parent relay device;
Equipped with a,
If the information received from the other device includes information indicating that the setting unit operates as a parent relay device as a response to the IPv6 identification information request transmitted by the own device, the relay device to be set to the parent relay device.
前記設定部は、IPv6の識別情報を自装置で生成した場合に自装置を子中継装置に設定する、請求項1に記載の中継装置。 The setting section sets the own apparatus to the child relaying device when generated by the self device identification information I IPv6, the relay device according to claim 1. 自装置が親中継装置である場合に他の中継装置から前記他の中継装置の動作設定を確認するための要求が受信されると、前記要求に対する応答として子中継装置として動作する旨の情報を含む通知を前記要求の送信元である他の中継装置に通知する通知部をさらに備え、
前記設定部は、IPv6の識別情報を他の装置から取得した場合に自装置を親中継装置に設定し、前記通知が受信された場合に自装置を子中継装置に設定する、請求項1に記載の中継装置。
When the own apparatus is a parent relay apparatus, when a request for confirming the operation setting of the other relay apparatus is received from another relay apparatus, information indicating that the apparatus operates as a child relay apparatus as a response to the request. A notification unit for notifying other relay devices that are transmission sources of the request including the notification,
The said setting part sets an own apparatus to a parent relay apparatus when the identification information of IPv6 is acquired from another apparatus, and sets the own apparatus to a child relay apparatus when the said notification is received. The relay device described.
外部ネットワークが位置する上流側と、通信装置が位置する下流側との間で通信の中継を行う複数の中継装置と、前記複数の中継装置のうち、いずれかの中継装置との間で通信を行うDHCPv6サーバとを備える中継システムであって、
前記中継装置は、
他の装置から受信された情報に基づいて、自装置を親中継装置又は子中継装置のいずれかに設定する設定部と、
自装置が親中継装置である場合、上流側に位置する前記外部ネットワークと、自装置より下流側に位置する子中継装置との間で行われる通信を中継し、自装置が子中継装置である場合、自装置に帰属する通信装置と親中継装置との間で行われる通信を中継する中継部と、
を備え、
前記DHCPv6サーバは、
前記中継装置から送信されるIPv6の識別情報の要求の応答として、前記応答に親中継装置として動作する旨の情報を含めて送信する送信部を備える中継システム。
Communication between a plurality of relay devices that relay communication between the upstream side where the external network is located and the downstream side where the communication device is located, and any one of the plurality of relay devices A relay system comprising a DHCPv6 server to perform,
The relay device is
Based on information received from other devices, a setting unit that sets the own device to either the parent relay device or the child relay device;
When the own device is a parent relay device, it relays communication performed between the external network located on the upstream side and the child relay device located on the downstream side of the own device, and the own device is the child relay device A relay unit that relays communication performed between the communication device belonging to the own device and the parent relay device;
With
The DHCPv6 server is
A relay system comprising: a transmission unit that transmits, as a response to a request for identification information of IPv6 transmitted from the relay device, information indicating that it operates as a parent relay device in the response.
外部ネットワークが位置する上流側と、通信装置が位置する下流側との間で通信の中継を行う中継装置における設定方法であって、
他の装置から受信された情報に基づいて、自装置を親中継装置又は子中継装置のいずれかに設定する設定ステップと、
自装置が親中継装置である場合、上流側に位置する前記外部ネットワークと、自装置より下流側に位置する子中継装置との間で行われる通信を中継し、自装置が子中継装置である場合、自装置に帰属する通信装置と親中継装置との間で行われる通信を中継する中継ステップと、
を有し、
前記設定ステップにおいて、自装置が送信するIPv6の識別情報の要求の応答として、前記他の装置から受信された前記応答に親中継装置として動作する旨を示す情報が含まれている場合に自装置を親中継装置に設定する設定方法。
A setting method in a relay device that relays communication between an upstream side where an external network is located and a downstream side where a communication device is located,
Based on information received from other devices, a setting step for setting the own device as either a parent relay device or a child relay device;
When the own device is a parent relay device, it relays communication performed between the external network located on the upstream side and the child relay device located on the downstream side of the own device, and the own device is the child relay device A relay step for relaying communication performed between the communication device belonging to the own device and the parent relay device;
I have a,
In the setting step, if the response received from the other device includes information indicating that the device operates as a parent relay device as a response to the IPv6 identification information request transmitted by the own device A setting method to set to the parent relay device .
外部ネットワークが位置する上流側と、通信装置が位置する下流側との間で通信の中継を行う中継装置としてコンピュータを動作させるためのコンピュータプログラムであって、
他の装置から受信された情報に基づいて、自装置を親中継装置又は子中継装置のいずれかに設定する設定ステップと、
自装置が親中継装置である場合、上流側に位置する前記外部ネットワークと、自装置より下流側に位置する子中継装置との間で行われる通信を中継し、自装置が子中継装置である場合、自装置に帰属する通信装置と親中継装置との間で行われる通信を中継する中継ステップと、
をコンピュータに実行させ
前記設定ステップにおいて、自装置が送信するIPv6の識別情報の要求の応答として、前記他の装置から受信された前記応答に親中継装置として動作する旨を示す情報が含まれている場合に自装置を親中継装置に設定させるためのコンピュータプログラム。
A computer program for operating a computer as a relay device that relays communication between an upstream side where an external network is located and a downstream side where a communication device is located,
Based on information received from other devices, a setting step for setting the own device as either a parent relay device or a child relay device;
When the own device is a parent relay device, it relays communication performed between the external network located on the upstream side and the child relay device located on the downstream side of the own device, and the own device is the child relay device A relay step for relaying communication performed between the communication device belonging to the own device and the parent relay device;
To the computer ,
In the setting step, if the response received from the other device includes information indicating that the device operates as a parent relay device as a response to the IPv6 identification information request transmitted by the own device the order of the computer program is set to the parent relay device.
JP2014111433A 2014-05-29 2014-05-29 Relay device, relay system, setting method, and computer program Active JP5839742B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014111433A JP5839742B2 (en) 2014-05-29 2014-05-29 Relay device, relay system, setting method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014111433A JP5839742B2 (en) 2014-05-29 2014-05-29 Relay device, relay system, setting method, and computer program

Publications (2)

Publication Number Publication Date
JP2015226258A JP2015226258A (en) 2015-12-14
JP5839742B2 true JP5839742B2 (en) 2016-01-06

Family

ID=54842730

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014111433A Active JP5839742B2 (en) 2014-05-29 2014-05-29 Relay device, relay system, setting method, and computer program

Country Status (1)

Country Link
JP (1) JP5839742B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4977221B2 (en) * 2010-02-24 2012-07-18 株式会社バッファロー Wireless LAN system, wireless LAN device and program thereof
JP5690008B1 (en) * 2014-05-29 2015-03-25 西日本電信電話株式会社 Relay device, setting method, and computer program

Also Published As

Publication number Publication date
JP2015226258A (en) 2015-12-14

Similar Documents

Publication Publication Date Title
JP6402583B2 (en) Relay device, relay system, relay method, and program
US20140181172A1 (en) Offloading tethering-related communication processing
CN103974376A (en) Network connection assisting system and method
JP5895678B2 (en) Wireless communication system and wireless communication method
JP5820106B2 (en) Communication apparatus and control method thereof
JP2016208513A (en) Relay method and corresponding communication network device, system, computer program, and computer-readable storage medium
JP6213491B2 (en) Wireless communication apparatus, wireless communication system, and program
CN108076025B (en) Method and device for registering network equipment
CN107534585A (en) Communication means and terminal
JP6728745B2 (en) Server and system
WO2018105406A1 (en) Communication system, relay server, communication method, and program
CN101986647A (en) VRRP compatible method and device thereof
JP5839742B2 (en) Relay device, relay system, setting method, and computer program
JP5915314B2 (en) Communication device
JP6219363B2 (en) Mobile terminal test equipment and test system verification method
JP5690008B1 (en) Relay device, setting method, and computer program
JP5570463B2 (en) Wireless relay device, virtual machine creation server, wireless relay method, and virtual machine creation method
JP2006054707A (en) Communication device, setting program, and connection method in ad hoc mode of wireless LAN
JP6036978B2 (en) Network system, communication terminal, method, program, and recording medium
US9485801B1 (en) Mobile communication device connected to home digital network
JP3154679U (en) Relay device and network system
JP4885810B2 (en) Wireless terminal adapter
JP5853972B2 (en) Network system, communication terminal, method, program, and recording medium
JP2006197060A (en) Wireless network system and wireless setting information setting method in wireless network system
EP3249875B1 (en) Wireless communication method, remote user equipment and relay user equipment

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151013

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151109

R150 Certificate of patent or registration of utility model

Ref document number: 5839742

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250