JP6445408B2 - Communication system and setting method - Google Patents

Communication system and setting method Download PDF

Info

Publication number
JP6445408B2
JP6445408B2 JP2015158288A JP2015158288A JP6445408B2 JP 6445408 B2 JP6445408 B2 JP 6445408B2 JP 2015158288 A JP2015158288 A JP 2015158288A JP 2015158288 A JP2015158288 A JP 2015158288A JP 6445408 B2 JP6445408 B2 JP 6445408B2
Authority
JP
Japan
Prior art keywords
router
terminal
routers
information
setting
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
JP2015158288A
Other languages
Japanese (ja)
Other versions
JP2017038218A (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 Corp
Original Assignee
Nippon Telegraph and Telephone 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 Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2015158288A priority Critical patent/JP6445408B2/en
Publication of JP2017038218A publication Critical patent/JP2017038218A/en
Application granted granted Critical
Publication of JP6445408B2 publication Critical patent/JP6445408B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、通信システムおよび設定方法に関する。   The present invention relates to a communication system and a setting method.

従来、各端末にVLAN(Virtual Local Area Network)を一つ割り当てて、他のユーザからのパケットの影響を抑止し、無断使用を防止する通信システムが知られている。また、このような通信システムの冗長化構成として、例えば、図13に例示するように、ACT(Active) のルータとSBY(standby)のルータにY字型にVLANを張ることが知られている。   2. Description of the Related Art Conventionally, there has been known a communication system that allocates one VLAN (Virtual Local Area Network) to each terminal, suppresses the influence of packets from other users, and prevents unauthorized use. As a redundant configuration of such a communication system, for example, as illustrated in FIG. 13, it is known to extend a Y-shaped VLAN to an ACT (Active) router and an SBY (standby) router. .

例えば、図13の例では、端末30Aは、ACTのルータ200AとSBYのルータ200Cと「VLAN1」を経由して接続されており、端末30Bは、ACTのルータ200BとSBYのルータ200Cと「VLAN2」を経由して接続されている。   For example, in the example of FIG. 13, the terminal 30A is connected to the ACT router 200A and the SBY router 200C via “VLAN1”, and the terminal 30B is connected to the ACT router 200B and the SBY router 200C and “VLAN2”. Is connected via.

このような構成において、ACTのルータが故障した場合には、SBYのルータのIPアドレスをデフォルトゲートウェイとして払い出し直す。例えば、図13の例では、ACTのルータ200Aに故障が発生した場合には、DHCP(Dynamic Host Configuration Protocol)サーバ100は、端末30Aに対して再設定を指示するメッセージであるDHCP FORCERENEWを送信し、DHCPサーバ100の探索メッセージであるDHCP DISCOVERからやり直すことで、SBYのルータ200CのIPアドレスをデフォルトゲートウェイとして払い出し直す。   In such a configuration, when the ACT router fails, the IP address of the SBY router is reassigned as the default gateway. For example, in the example of FIG. 13, when a failure occurs in the ACT router 200A, the DHCP (Dynamic Host Configuration Protocol) server 100 transmits a DHCP FORCERENEW which is a message for instructing the terminal 30A to perform reconfiguration. By redoing from the DHCP DISCOVER which is the search message of the DHCP server 100, the IP address of the SBY router 200C is re-assigned as the default gateway.

また、ルータ負荷の是正やファイル更新などの工事のために収容替えを行う場合にも、DHCPサーバ100がユーザ端末30Aに対してDHCP FORCERENEWを送信し、DHCP DISCOVERからやり直して、収容先のルータを変更する。   In addition, even when the accommodation is changed for the purpose of correcting the router load or updating the file, the DHCP server 100 transmits DHCP FORCERENEW to the user terminal 30A and starts again from the DHCP DISCOVER to set the accommodation destination router. change.

”Dynamic Host Configuration Protocol”、[online]、[2015年8月4日検索]、インターネット<http://www.ietf.org/rfc/rfc2131.txt.pdf/>"Dynamic Host Configuration Protocol", [online], [searched August 4, 2015], Internet <http://www.ietf.org/rfc/rfc2131.txt.pdf/>

しかしながら、従来の技術では、ACTのルータの故障時等には、SBYのルータのIPアドレスをデフォルトゲートウェイとして払い出し直すために、DHCPサーバ100がユーザ端末30Aに対してDHCP FORCERENEWを送信し、DHCP DISCOVERからやり直すので、サービス停止時間が長いという課題があった。   However, in the prior art, when the ACT router fails, the DHCP server 100 transmits DHCP FORCERENEW to the user terminal 30A in order to reissue the IP address of the SBY router as the default gateway, and DHCP DISCOVER. There was a problem that the service stop time was long.

上述した課題を解決し、目的を達成するために、本発明の通信システムは、端末ごとに異なるVLANが割り当てられた各端末と、該各端末とそれぞれ接続される複数のルータとを有する通信システムであって、端末ごとに異なるVLANが割り当てられ、該VLANを介して前記複数のルータのうちの全てのルータと接続される端末と、同一のVLAN上において同一のIPアドレスが割り当てられた複数のルータと、を有し、前記端末と接続された全てのルータのうち、一つのルータがマスタのルータとして、接続された端末を送信元または送信先とするパケットを中継し、該マスタのルータが故障した場合には、他のルータが新しいマスタのルータに切り替わることを特徴とする。   In order to solve the above-described problems and achieve the object, the communication system of the present invention includes a communication terminal having each terminal to which a different VLAN is assigned for each terminal and a plurality of routers connected to each terminal. A different VLAN is assigned to each terminal, and a plurality of terminals that are connected to all routers of the plurality of routers via the VLAN and that are assigned the same IP address on the same VLAN. A router that relays packets that have the connected terminal as a source or destination, and is connected to the terminal, and the master router In the case of a failure, another router is switched to a new master router.

また、本発明の通信システムは、端末ごとに異なるVLANが割り当てられた各端末と接続される複数のルータと、該複数のルータを制御するサーバとを有する通信システムであって、前記サーバは、各ルータの負荷を監視する監視部と、所定の契機に、前記監視部によって監視された各ルータの負荷に応じて、各ルータに対して優先度に関するPriority情報を含むパケットを送信する送信部と、を有し、同一のVLAN上において同一のIPアドレスが割り当てられた各ルータは、前記サーバから前記Priority情報を含むパケットを受信すると、該Priority情報に基づいて、自身の優先度を設定する設定部と、前記端末から接続先のルータのMACアドレスを問い合わせるアドレス要求を受信する受信部と、前記設定部によって設定された自身の優先度が、前記複数のルータのなかで最も高い場合には、マスタのルータとして、前記受信部によって受信された前記アドレス要求の送信元の端末に対して、自ルータのMACアドレスを応答する応答部と、前記応答部によって前記MACアドレスが応答された端末を送信元または送信先とするパケットを中継する中継部と、を有することを特徴とする。   The communication system of the present invention is a communication system having a plurality of routers connected to each terminal to which a different VLAN is assigned for each terminal, and a server for controlling the plurality of routers, A monitoring unit that monitors the load of each router; and a transmission unit that transmits a packet including priority information about priority to each router according to the load of each router monitored by the monitoring unit at a predetermined opportunity. And each router assigned the same IP address on the same VLAN receives a packet including the Priority information from the server, and sets its own priority based on the Priority information. A reception unit that receives an address request for inquiring about a MAC address of a connection destination router from the terminal; and When the priority set by the fixed unit is the highest among the plurality of routers, as a master router, the self-priority is set to the transmission source terminal of the address request received by the receiving unit. A response unit that responds to the MAC address of the router; and a relay unit that relays a packet whose source or destination is the terminal to which the MAC address is responded by the response unit.

また、本発明の設定方法は、端末ごとに異なるVLANが割り当てられた各端末と接続される複数のルータと、該複数のルータを制御するサーバとを有する通信システムにより実行される設定方法であって、前記サーバが、各ルータの負荷を監視する監視工程と、前記サーバが、所定の契機に、前記監視工程によって監視された各ルータの負荷に応じて、各ルータに対して優先度に関するPriority情報を含むパケットを送信する送信工程と、同一のVLAN上において同一のIPアドレスが割り当てられた各ルータが、前記サーバから前記Priority情報を含むパケットを受信すると、該Priority情報に基づいて、自身の優先度を設定する設定工程と、前記各ルータが、前記端末から接続先のルータのMACアドレスを問い合わせるアドレス要求を受信する受信工程と、前記各ルータが、前記設定工程によって設定された自身の優先度が、前記複数のルータのなかで最も高い場合には、マスタのルータとして、前記受信工程によって受信された前記アドレス要求の送信元の端末に対して、自ルータのMACアドレスを応答する応答工程と、前記マスタのルータが、前記応答工程によって前記MACアドレスが応答された端末を送信元または送信先とするパケットを中継する中継工程と、を含んだことを特徴とする。   The setting method of the present invention is a setting method executed by a communication system having a plurality of routers connected to each terminal to which a different VLAN is assigned for each terminal and a server that controls the plurality of routers. A monitoring step in which the server monitors the load of each router, and a priority on the priority for each router according to the load of each router monitored by the monitoring step at a predetermined timing. A transmission step of transmitting a packet including information, and when each router assigned the same IP address on the same VLAN receives a packet including the Priority information from the server, based on the Priority information, A setting step for setting priority, and each router is connected to the MAC address of the router to which the terminal is connected A receiving step of receiving an address request to be inquired, and each router having the highest priority set by the setting step among the plurality of routers, as a master router, by the receiving step A response step of responding to the MAC address of the own router to the terminal of the transmission source of the received address request, and the master router sending or transmitting the terminal to which the MAC address is responded by the response step And a relaying step of relaying the previous packet.

本発明によれば、ルータの故障時であってもサービス停止時間を短くすることが可能である。   According to the present invention, it is possible to shorten the service stop time even when a router malfunctions.

図1は、第一の実施の形態に係る通信システムの構成の一例を示す図である。FIG. 1 is a diagram illustrating an example of a configuration of a communication system according to the first embodiment. 図2は、第一の実施の形態に係る通信システムにおける各ルータについて説明する図である。FIG. 2 is a diagram illustrating each router in the communication system according to the first embodiment. 図3は、第一の実施の形態に係るDHCPサーバの構成を示すブロック図である。FIG. 3 is a block diagram showing the configuration of the DHCP server according to the first embodiment. 図4は、第一の実施の形態に係るルータ負荷情報記憶部が記憶する情報の一例を示す図である。FIG. 4 is a diagram illustrating an example of information stored in the router load information storage unit according to the first embodiment. 図5は、DHCP OFFERメッセージのパケット構成を示す図である。FIG. 5 is a diagram showing a packet configuration of the DHCP OFFER message. 図6は、第一の実施の形態に係るルータの構成を示すブロック図である。FIG. 6 is a block diagram illustrating a configuration of the router according to the first embodiment. 図7は、第一の実施の形態に係るPRIO情報記憶部が記憶する情報の一例を示す図である。FIG. 7 is a diagram illustrating an example of information stored in the PRIO information storage unit according to the first embodiment. 図8は、第一の実施の形態に係るアドレス情報記憶部が記憶する情報の一例を示す図である。FIG. 8 is a diagram illustrating an example of information stored in the address information storage unit according to the first embodiment. 図9は、第一の実施の形態に係る通信システムのアドレス払い出し時の処理を説明する図である。FIG. 9 is a diagram for explaining processing at the time of address delivery in the communication system according to the first embodiment. 図10は、第一の実施の形態に係るDHCPサーバのPRIO情報送信処理の流れを示すフローチャートである。FIG. 10 is a flowchart showing a flow of PRIO information transmission processing of the DHCP server according to the first embodiment. 図11は、第一の実施の形態に係るルータのPRIO情報設定処理の流れを示すフローチャートである。FIG. 11 is a flowchart showing a flow of PRIO information setting processing of the router according to the first embodiment. 図12は、設定プログラムを実行するコンピュータを示す図である。FIG. 12 is a diagram illustrating a computer that executes a setting program. 図13は、従来の通信システムを説明する図である。FIG. 13 is a diagram for explaining a conventional communication system.

以下に、本願に係る通信システムおよび設定方法の実施形態を図面に基づいて詳細に説明する。なお、この実施形態により本願に係る通信システムおよび設定方法が限定されるものではない。   Embodiments of a communication system and a setting method according to the present application will be described below in detail with reference to the drawings. The communication system and the setting method according to the present application are not limited by this embodiment.

[第一の実施の形態]
以下の実施の形態では、第一の実施の形態に係る通信システムの構成、DHCPサーバの構成、ルータの構成、DHCPサーバおよびルータの処理の流れを順に説明し、最後に第一の実施の形態による効果を説明する。
[First embodiment]
In the following embodiments, the configuration of the communication system according to the first embodiment, the configuration of the DHCP server, the configuration of the router, the processing flow of the DHCP server and the router will be described in order, and finally the first embodiment The effect of will be described.

[通信システムの構成]
図1は、第一の実施の形態に係る通信システムの構成の一例を示す図である。第一の実施の形態に係る通信システムは、DHCPサーバ10、複数のルータ20A〜20Cおよび複数の端末30A、30Bを有する。また、図1に示すように、第一の実施の形態に係る通信システムでは、複数のルータ20A〜20CにVLANを張るシステムが構築されている。なお、図1に示す各装置や機能の数は、あくまで一例であり、これに限られるものではない。また、複数のルータ20A〜20Cおよび複数の端末30A、30Bについて、特に区別なく説明する場合には、適宜ルータ20、端末30と記載する。
[Configuration of communication system]
FIG. 1 is a diagram illustrating an example of a configuration of a communication system according to the first embodiment. The communication system according to the first embodiment includes a DHCP server 10, a plurality of routers 20A to 20C, and a plurality of terminals 30A and 30B. Further, as shown in FIG. 1, in the communication system according to the first embodiment, a system is established in which VLANs are set up in a plurality of routers 20A to 20C. In addition, the number of each apparatus and function shown in FIG. 1 is an example to the last, and is not restricted to this. In addition, when a plurality of routers 20A to 20C and a plurality of terminals 30A and 30B are described without particular distinction, they are appropriately referred to as a router 20 and a terminal 30.

DHCPサーバ10は、同一セグメント内の端末30A、30Bに対しネットワーク設定情報を送信する。このネットワーク設定情報は、端末30がデータ通信を行うための設定情報であり、端末30に割り当てるIPアドレス、端末30の利用するデフォルトゲートウェイのIPアドレスなどを含む。   The DHCP server 10 transmits network setting information to the terminals 30A and 30B in the same segment. This network setting information is setting information for the terminal 30 to perform data communication, and includes an IP address assigned to the terminal 30, an IP address of a default gateway used by the terminal 30, and the like.

また、DHCPサーバ10は、DHCP DISCOVERの受信時等を契機に、負荷の小さいルータ20がマスタになるようにVRRPのPriority(以下、適宜PRIOと記載する)情報を変更する。具体的には、DHCPサーバ10は、DHCP DISCOVERを受信した場合に、DHCP OFFERメッセージのoption code 43(Vender-Specific-Information)にPRIO情報を設定して、ルータ20に送信する。   Further, the DHCP server 10 changes VRRP Priority (hereinafter referred to as PRIO as appropriate) information so that the router 20 with a small load becomes the master when receiving DHCP DISCOVER. Specifically, when receiving the DHCP DISCOVER, the DHCP server 10 sets PRIO information in option code 43 (Vender-Specific-Information) of the DHCP OFFER message and transmits it to the router 20.

ルータ20は、VLANで接続された端末30の通信を中継する。また、端末30は、端末ごとに異なるVLANが割り当てられ、該VLANを介して複数のルータ20のうちの全てのルータ20と接続される。ルータ20には、接続するVLANごとに、実IPアドレス、実MACアドレス、VRRPにおいて同一の仮想IPアドレスが割り振られたルータ20のグループを識別するVRID(Virtual Router ID)、マスタ(アクティブ)またはスレーブ(スタンバイ)になるのかを決めるための情報であるPRIO情報、仮想IPアドレス、仮想MACアドレスが設定されている。   The router 20 relays communication of the terminal 30 connected by the VLAN. The terminal 30 is assigned a different VLAN for each terminal, and is connected to all the routers 20 among the plurality of routers 20 via the VLAN. The router 20 includes a real IP address, a real MAC address, a VRID (Virtual Router ID) that identifies a group of the router 20 to which the same virtual IP address is allocated in VRRP, a master (active), or a slave for each connected VLAN. PRIIO information, virtual IP address, and virtual MAC address, which are information for determining whether to enter (standby), are set.

例えば、図2に例示するように、ルータ20Aは、VLAN1について、実IPアドレス「10.1.1.1」、実MACアドレス「70:58:12:27:B7:17」、VRID「1」、PRIO「200→50」と、仮想IPアドレス「10.1.1.5」、仮想MACアドレス「00:00:5E:00:01:01」が設定されている。   For example, as illustrated in FIG. 2, for the VLAN 1, the router 20 </ b> A has an actual IP address “10.1.1.1”, an actual MAC address “70: 58: 12: 27: B7: 17”, and a VRID “1”. ”, PRIO“ 200 → 50 ”, virtual IP address“ 10.1.1.5 ”, and virtual MAC address“ 00: 00: 5E: 00: 00: 01 ”are set.

また、ルータ20Aは、DHCPサーバ10からPRIO情報を受け付けると、該PRIO情報からPRIO情報を設定する。具体的には、ルータ20Aは、DHCP OFFERメッセージを受信し、DHCP OFFERメッセージのoption code 43(Vender-Specific-Information)に設定されたPRIO情報を設定する。例えば、図2の例では、ルータ20Aは、PRIO情報「200」が設定されていたが、DHCP OFFERメッセージを受信し、DHCP OFFERメッセージのoption code 43(Vender-Specific-Information)に設定されたPRIO情報が「50」であったため、PRIO情報が200から50に更新される(図2では「200→50」と記載)。   Further, when receiving the PRIO information from the DHCP server 10, the router 20A sets the PRIO information from the PRIO information. Specifically, the router 20A receives the DHCP OFFER message, and sets PRIO information set in option code 43 (Vender-Specific-Information) of the DHCP OFFER message. For example, in the example of FIG. 2, the PRIOR information “200” is set in the router 20A. However, the router 20A receives the DHCP OFFER message, and the PRIO set in option code 43 (Vender-Specific-Information) of the DHCP OFFER message. Since the information is “50”, the PRIO information is updated from 200 to 50 (described as “200 → 50” in FIG. 2).

このように、DHCPサーバ10は、各ルータ20の負荷に応じて、PRIO情報を変更する。そして、各ルータのなかで最もPRIO情報の値が大きいルータがマスタになる。例えば、図2の例では、ルータ20AのPRIO情報が「200」から「50」に変更され、ルータ20BのPRIO情報が「100」から「200」に変更され、ルータ20CのPRIO情報が「50」から「100」に変更されたので、ルータ20Aからルータ20Bにマスタが変更される。   Thus, the DHCP server 10 changes PRIO information according to the load of each router 20. The router having the largest PRIO information value among the routers becomes the master. For example, in the example of FIG. 2, the PRIO information of the router 20A is changed from “200” to “50”, the PRIO information of the router 20B is changed from “100” to “200”, and the PRIO information of the router 20C is “50”. ”To“ 100 ”, the master is changed from the router 20A to the router 20B.

マスタのルータ20Bとなった後、端末30は、DHCP REQUESTをDHCPサーバ10に送信する。そして、DHCPサーバ10は、DHCP ACKを端末30に応答する。   After becoming the master router 20 </ b> B, the terminal 30 transmits a DHCP REQUEST to the DHCP server 10. Then, the DHCP server 10 responds to the terminal 30 with a DHCP ACK.

その後、各ルータ20A〜20Cは、端末30から各ARP(Address Resolution Protocol)要求を受け付けた場合には、ルータ20BのみがARP応答として、ルータ20Bの仮想MACアドレスを応答する。そして、図示しないスイッチは、ARP応答により学習することで、該端末30を宛先とするパケット、または、端末30を送信元とするパケットを受信した場合に、ルータ20Bへ転送する。これにより、ルータ20Bがマスタとして動作することになる。   Thereafter, when each of the routers 20A to 20C receives an ARP (Address Resolution Protocol) request from the terminal 30, only the router 20B responds with the virtual MAC address of the router 20B as an ARP response. A switch (not shown) learns from the ARP response, and transfers a packet destined for the terminal 30 or a packet destined for the terminal 30 to the router 20B when receiving the packet destined for the terminal 30. As a result, the router 20B operates as a master.

ここで、通信システムでは、同一VLAN上の各ルータ20A〜20Cの仮想IPアドレスは同一であるため、マスタのルータ20Bが故障した時は、DHCP DISCOVERからやり直す必要はなく、新マスタのルータがGARP(Gratuitous ARP)メッセージを送信することにより、スイッチが学習して、即時にマスタのルータが切り替わる。   Here, in the communication system, since the virtual IP addresses of the routers 20A to 20C on the same VLAN are the same, when the master router 20B fails, it is not necessary to start over from the DHCP DISCOVER, and the new master router By sending a (Gratuitous ARP) message, the switch learns and the master router switches immediately.

[DHCPサーバの構成]
次に、図3を用いて、図1に示したDHCPサーバ10の構成を説明する。図3は、第一の実施の形態に係るDHCPサーバ10の構成を示すブロック図である。図3に示すように、このDHCPサーバ10は、通信処理部11、制御部12および記憶部13を有する。以下にこれらの各部の処理を説明する。
[Configuration of DHCP server]
Next, the configuration of the DHCP server 10 shown in FIG. 1 will be described with reference to FIG. FIG. 3 is a block diagram showing a configuration of the DHCP server 10 according to the first embodiment. As illustrated in FIG. 3, the DHCP server 10 includes a communication processing unit 11, a control unit 12, and a storage unit 13. The processing of each of these units will be described below.

通信処理部11は、ルータ20との間でやり取りする各種情報に関する通信を制御する。例えば、通信処理部11は、ルータ20に対してPRIO情報を設定したDHCP OFFERメッセージを送信する。   The communication processing unit 11 controls communication related to various information exchanged with the router 20. For example, the communication processing unit 11 transmits a DHCP OFFER message in which PRIO information is set to the router 20.

記憶部13は、制御部12による各種処理に必要なデータおよびプログラムを格納するが、特に本発明に密接に関連するものとしては、ルータ負荷情報記憶部13aを有する。例えば、記憶部13は、RAM(Random Access Memory)、フラッシュメモリ(Flash Memory)等の半導体メモリ素子、又は、ハードディスク、光ディスク等の記憶装置などである。   The storage unit 13 stores data and programs necessary for various types of processing by the control unit 12, and has a router load information storage unit 13a particularly closely related to the present invention. For example, the storage unit 13 is a semiconductor memory device such as a RAM (Random Access Memory) or a flash memory, or a storage device such as a hard disk or an optical disk.

ルータ負荷情報記憶部13aは、接続された各ルータ20の負荷に関する情報を記憶する。例えば、ルータ負荷情報記憶部13aは、負荷に関する情報として、各ルータ20における加入者の収容数を記憶する。図4の例を挙げて説明すると、ルータ負荷情報記憶部13aは、ルータ20を識別する「ルータ名」と各ルータ20の収容数を示す「負荷」とを対応付けて記憶する。図4の例では、ルータ負荷情報記憶部13aは、例えば、ルータ名「ルータ1」と負荷「2000」とを対応付けて記憶する。これは、「ルータ1」の収容数が「2000」であることを意味する。なお、負荷に関する情報として、収容数に限定されるものではなく、例えば、各ルータ20のCPUやメモリに関する情報を記憶してもよい。   The router load information storage unit 13a stores information related to the load of each connected router 20. For example, the router load information storage unit 13a stores the number of subscribers accommodated in each router 20 as information related to the load. Referring to the example of FIG. 4, the router load information storage unit 13 a stores a “router name” that identifies the router 20 and a “load” that indicates the number of accommodated routers 20 in association with each other. In the example of FIG. 4, the router load information storage unit 13a stores, for example, the router name “Router 1” and the load “2000” in association with each other. This means that the accommodation number of “router 1” is “2000”. Note that the information regarding the load is not limited to the accommodation number, and for example, information regarding the CPU and memory of each router 20 may be stored.

制御部12は、各種の処理手順などを規定したプログラムおよび所要データを格納するための内部メモリを有し、これらによって種々の処理を実行するが、特に本発明に密接に関連するものとしては、監視部12aおよび送信部12bを有する。   The control unit 12 has an internal memory for storing a program that defines various processing procedures and necessary data, and performs various processes using them, and particularly as closely related to the present invention, It has a monitoring unit 12a and a transmission unit 12b.

監視部12aは、各ルータ20の負荷を監視する。例えば、監視部12aは、所定の時間間隔で、各ルータ20に対して現在の収容数の情報を要求し、取得した収容数の情報をルータ負荷情報記憶部13aに格納する。なお、監視部12aは、外部の装置から各ルータ20の負荷に関する情報を取得するようにしてもよい。   The monitoring unit 12a monitors the load on each router 20. For example, the monitoring unit 12a requests the current accommodation number information from each router 20 at a predetermined time interval, and stores the acquired accommodation number information in the router load information storage unit 13a. In addition, you may make it the monitoring part 12a acquire the information regarding the load of each router 20 from an external apparatus.

送信部12bは、所定の契機に、監視部12aによって監視された各ルータ20の負荷に応じて、各ルータ20に対して優先度に関するPRIO情報を含むパケットを送信する。例えば、送信部12bは、端末30からDHCP DISCOVERを受信した際に、各ルータ20の負荷が小さいほど、大きい値をPRIO情報として、DHCP OFFERメッセージのoption code 43(Vender-Specific-Information)に設定する。   The transmission unit 12b transmits a packet including PRIO information regarding priority to each router 20 according to the load of each router 20 monitored by the monitoring unit 12a at a predetermined opportunity. For example, when receiving the DHCP DISCOVER from the terminal 30, the transmitting unit 12b sets the larger value as PRIO information in option code 43 (Vender-Specific-Information) of the DHCP OFFER message as the load on each router 20 decreases. To do.

また、送信部12bは、DHCP FORCERENEWメッセージを送る際に、DHCP FORCERENEWメッセージにPRIO情報を設定してもよい。具体的には、送信部12bは、監視部12aによって監視された各ルータの負荷に応じて、PRIO情報をDHCP FORCERENEWメッセージのオプションフィールド(Option field)におけるVender-Specific-Informationに設定し、該DHCP FORCERENEWメッセージを送信する。   Further, when sending the DHCP FORCERENEW message, the transmitting unit 12b may set PRIO information in the DHCP FORCERENEW message. Specifically, the transmission unit 12b sets PRIO information to Vender-Specific-Information in an option field (Option field) of the DHCP FORCERENE message according to the load of each router monitored by the monitoring unit 12a. Send FORCERENEW message.

ここで、図5に示すように、DHCP OFFERメッセージのパケット構成について説明する。図5は、DHCP OFFERメッセージのパケット構成を示す図である。図5に示すように、DHCP OFFERメッセージでは、オプションフィールド(Option field)におけるベンダ固有情報を設定するためのフィールドであるoption code 43(Vender-Specific-Information)に、PRIO情報を設定する。   Here, as shown in FIG. 5, the packet structure of the DHCP OFFER message will be described. FIG. 5 is a diagram showing a packet configuration of the DHCP OFFER message. As shown in FIG. 5, in the DHCP OFFER message, PRIO information is set in option code 43 (Vender-Specific-Information), which is a field for setting vendor-specific information in an option field.

[ルータの構成]
次に、図6を用いて、図1に示したルータ20の構成を説明する。図6は、第一の実施の形態に係るルータ20の構成を示すブロック図である。図6に示すように、このルータ20は、通信処理部21、制御部22および記憶部23を有する。以下にこれらの各部の処理を説明する。
[Router configuration]
Next, the configuration of the router 20 shown in FIG. 1 will be described with reference to FIG. FIG. 6 is a block diagram showing a configuration of the router 20 according to the first embodiment. As illustrated in FIG. 6, the router 20 includes a communication processing unit 21, a control unit 22, and a storage unit 23. The processing of each of these units will be described below.

通信処理部21は、DHCPサーバ10や端末30等との間でやり取りする各種情報に関する通信を制御する。例えば、通信処理部21は、DHCPサーバ10からDHCP OFFERメッセージを受信する。   The communication processing unit 21 controls communication related to various information exchanged with the DHCP server 10, the terminal 30, and the like. For example, the communication processing unit 21 receives a DHCP OFFER message from the DHCP server 10.

記憶部23は、制御部22による各種処理に必要なデータおよびプログラムを格納するが、特に本発明に密接に関連するものとしては、PRIO情報記憶部23aおよびアドレス情報記憶部23bを有する。   The storage unit 23 stores data and programs necessary for various types of processing by the control unit 22. The storage unit 23 includes a PRIO information storage unit 23 a and an address information storage unit 23 b that are particularly closely related to the present invention.

PRIO情報記憶部23aは、自装置に設定されたPRIO情報の値を記憶する。例えば、図7に例示するように、PRIO情報記憶部23aは、「VRID」と「PRIO」とを対応付けて記憶する。図7の例では、例えば、VRID「VRID1」とPRIO情報「200」とが対応付けて記憶されている。   The PRIO information storage unit 23a stores the value of PRIO information set in the own device. For example, as illustrated in FIG. 7, the PRIO information storage unit 23 a stores “VRID” and “PRIO” in association with each other. In the example of FIG. 7, for example, VRID “VRID1” and PRIO information “200” are stored in association with each other.

アドレス情報記憶部23bは、自装置のアドレスに関する情報を記憶する。例えば、図8に例示するように、VRIDに対応付けて、「実IPアドレス」、「実MACアドレス」、「仮想IPアドレス」および「仮想MACアドレス」を記憶する。図8の例では、例えば、アドレス情報記憶部23bは、「VRID1」に対応付けて、実IPアドレス「10.1.1.1」、実MACアドレス「70:58:12:27:B7:17」、仮想IPアドレス「10.1.1.5」および、仮想MACアドレス「00:00:5E:00:01:01」を記憶する。   The address information storage unit 23b stores information related to the address of the own device. For example, as illustrated in FIG. 8, “real IP address”, “real MAC address”, “virtual IP address”, and “virtual MAC address” are stored in association with VRID. In the example of FIG. 8, for example, the address information storage unit 23 b associates with “VRID 1” and associates the real IP address “10.1.1.1” and the real MAC address “70: 58: 12: 27: B7: 17 ”, virtual IP address“ 10.1.1.5 ”, and virtual MAC address“ 00: 00: 5E: 0: 01: 01 ”are stored.

制御部22は、各種の処理手順などを規定したプログラムおよび所要データを格納するための内部メモリを有し、これらによって種々の処理を実行するが、特に本発明に密接に関連するものとしては、設定部22a、受信部22b、応答部22cおよび中継部22dを有する。   The control unit 22 has an internal memory for storing a program that defines various processing procedures and the necessary data, and executes various processes using these programs. Particularly, as closely related to the present invention, A setting unit 22a, a receiving unit 22b, a response unit 22c, and a relay unit 22d are included.

設定部22aは、DHCPサーバ10からPRIO情報を含むパケットを受信すると、該PRIO情報に基づいて、自身の優先度を設定する。例えば、設定部22aは、DHCPサーバ10からPRIO情報を含むDHCP OFFERメッセージを受信すると、該DHCP OFFERメッセージのoption code 43(Vender-Specific-Information)に設定されたPRIO情報を抽出し、PRIO情報記憶部23aに格納する。そして、設定部22aは、VRRP手順に基づき他のルータ20と互いのPRIO情報を交換し、自装置のPRIO情報の値が最も高い場合には、自装置をマスタとして設定する。   When the setting unit 22a receives a packet including PRIO information from the DHCP server 10, the setting unit 22a sets its own priority based on the PRIO information. For example, when receiving a DHCP OFFER message including PRIO information from the DHCP server 10, the setting unit 22a extracts PRIO information set in option code 43 (Vender-Specific-Information) of the DHCP OFFER message and stores the PRIO information. Stored in the unit 23a. Then, the setting unit 22a exchanges PRIIO information with other routers 20 based on the VRRP procedure, and sets the own device as a master when the value of the PRIIO information of the own device is the highest.

受信部22bは、端末30から接続先のルータ20のMACアドレスを問い合わせるARP要求を受信する。具体的には、受信部22bは、端末30からARP要求を受信した場合に、応答部22cにARP要求を受信した旨を通知する。   The receiving unit 22b receives an ARP request for inquiring about the MAC address of the connection destination router 20 from the terminal 30. Specifically, when receiving the ARP request from the terminal 30, the receiving unit 22b notifies the response unit 22c that the ARP request has been received.

応答部22cは、設定部22aによって設定された自身のPRIO情報の値が、複数のルータ20のなかで最も高い場合には、受信部22bによって受信されたARP要求の送信元の端末30に対して、自装置の仮想MACアドレスを応答する。具体的には、応答部22cは、受信部22bからARP要求を受信した旨の通知をした場合に、自装置がマスタであれば、ARP要求の送信元の端末30に対して、アドレス情報記憶部23bを参照し、自装置の仮想MACアドレスを応答する。また、自装置がマスタでない場合には、受信したARP要求を破棄する。   When the value of its own PRIO information set by the setting unit 22a is the highest among the plurality of routers 20, the response unit 22c responds to the terminal 30 that is the transmission source of the ARP request received by the reception unit 22b. To respond with its own virtual MAC address. Specifically, when the response unit 22c notifies that the ARP request has been received from the reception unit 22b, if the own device is a master, the response unit 22c stores address information in the terminal 30 that is the transmission source of the ARP request. Refers to the unit 23b, and responds with the virtual MAC address of its own device. If the device itself is not the master, the received ARP request is discarded.

中継部22dは、応答部22cによってMACアドレスが応答された端末30を送信元または送信先とするパケットを中継する。例えば、中継部22dは、接続対象となった端末30を宛先とするパケット、または、接続対象となった端末30を送信元とするパケットを受信した場合に、NAT(Network Address Translation)変換等を行って当該パケットを宛先に送信する。   The relay unit 22d relays a packet whose source or destination is the terminal 30 to which the response unit 22c responds the MAC address. For example, the relay unit 22d performs NAT (Network Address Translation) conversion or the like when receiving a packet whose destination is the terminal 30 to be connected or a packet whose source is the terminal 30 to be connected. And send the packet to the destination.

図9に示すように、第一の実施の形態に係る通信システムのアドレス払い出し時の処理を説明する。図9は、第一の実施の形態に係る通信システムのアドレス払い出し時の処理を説明する図である。図9に示すように、端末30は、スイッチ(SW)40を介して、DHCP DISCOVERを各ルータ20A〜20C経由でDHCPサーバ10に送信する(図9の(1)参照)。そして、DHCPサーバ10は、DHCP OFFERメッセージのoption code 43(Vender-Specific-Information)にPRIO情報を設定し、各ルータ20A〜20CにDHCP OFFERメッセージを送信する(図9の(2)参照)。   As shown in FIG. 9, the process at the time of address payout of the communication system according to the first embodiment will be described. FIG. 9 is a diagram for explaining processing at the time of address delivery in the communication system according to the first embodiment. As shown in FIG. 9, the terminal 30 transmits DHCP DISCOVER to the DHCP server 10 via the routers 20A to 20C via the switch (SW) 40 (see (1) in FIG. 9). Then, the DHCP server 10 sets PRIO information in option code 43 (Vender-Specific-Information) of the DHCP OFFER message, and transmits a DHCP OFFER message to each of the routers 20A to 20C (see (2) in FIG. 9).

そして、各ルータ20A〜20Cは、DHCPサーバ10からPRIO情報を含むDHCP OFFERメッセージを受信すると、該DHCP OFFERメッセージのoption code 43(Vender-Specific-Information)に設定されたPRIO情報を抽出し、PRIO情報記憶部23aに格納する。そして、設定部22aは、VRRP手順に基づき他のルータ20と互いのPRIO情報を交換し、自装置のPRIO情報の値が最も高い場合には、自装置をマスタとして設定する。図9の例では、ルータ20AのPRIOが「200」から「50」に変更され、ルータ20BのPRIOが「100」から「200」に変更され、ルータ20CのPRIOが「50」から「100」に変更されたので、ルータ20Aからルータ20Bにマスタが変更される。   When each of the routers 20A to 20C receives the DHCP OFFER message including PRIO information from the DHCP server 10, the routers 20A to 20C extract the PRIO information set in option code 43 (Vender-Specific-Information) of the DHCP OFFER message. The information is stored in the information storage unit 23a. Then, the setting unit 22a exchanges PRIIO information with other routers 20 based on the VRRP procedure, and sets the own device as a master when the value of the PRIIO information of the own device is the highest. In the example of FIG. 9, the PRIO of the router 20A is changed from “200” to “50”, the PRIO of the router 20B is changed from “100” to “200”, and the PRIO of the router 20C is changed from “50” to “100”. Therefore, the master is changed from the router 20A to the router 20B.

そして、新マスタであるルータ20BのみがDHCP OFFERメッセージをリレーして端末30に送信し、他のルータ20A、20CについてはDHCP OFFERメッセージをリレーしないこととする。このようにして、VRRPのPRIO情報の変更を利用して負荷の小さいルータ20Bをマスタにするので、VRRPを冗長化だけでなく、負荷平準化を実現することが可能である。   Then, only the router 20B which is the new master relays the DHCP OFFER message and transmits it to the terminal 30, and the other routers 20A and 20C do not relay the DHCP OFFER message. In this way, since the router 20B having a small load is made the master by using the change of the VRRP PRIO information, it is possible to realize not only the redundancy of the VRRP but also the load leveling.

また、上記の説明では、端末20が収容先のルータを決める際のアドレス払い出し時の処理を例に説明したが、収容先のルータを変更する際の収容替時にも、同様の手順でマスタを変更することが可能である。例えば、DHCP10が、端末30A対して再設定を指示するメッセージであるDHCP FORCERENEWメッセージのoption code 43(Vender-Specific-Information)にPRIO情報を設定し、各ルータ20A〜20CにDHCP FORCERENEWメッセージを送信する。   Further, in the above description, the processing at the time of address delivery when the terminal 20 determines the accommodation destination router has been described as an example. However, the master is assigned in the same procedure when the accommodation router is changed when the accommodation destination router is changed. It is possible to change. For example, the DHCP 10 sets PRIO information in option code 43 (Vender-Specific-Information) of the DHCP FORCERENEW message, which is a message for instructing the terminal 30A to perform reconfiguration, and transmits a DHCP FORCERENEW message to each of the routers 20A to 20C. .

そして、各ルータ20A〜20Cは、DHCPサーバ10からPRIO情報を含むDHCP FORCERENEWメッセージを受信すると、該DHCP FORCERENEWメッセージのoption code 43(Vender-Specific-Information)に設定されたPRIO情報を抽出し、PRIO情報記憶部23aに格納する。そして、設定部22aは、VRRP手順に基づき他のルータ20と互いのPRIO情報を交換し、自装置のPRIO情報の値が最も高い場合には、自装置をマスタとして設定する。   When each of the routers 20A to 20C receives the DHCP FORCERENEW message including the PRIO information from the DHCP server 10, the routers 20A to 20C extract the PRIO information set in option code 43 (Vender-Specific-Information) of the DHCP FORCERENEW message. The information is stored in the information storage unit 23a. Then, the setting unit 22a exchanges PRIIO information with other routers 20 based on the VRRP procedure, and sets the own device as a master when the value of the PRIIO information of the own device is the highest.

そして、新マスタであるルータ20BのみがDHCP FORCERENEWメッセージをリレーして端末30に送信し、他のルータ20A、20CについてはDHCP FORCERENEWメッセージをリレーしないこととする。   Then, only the router 20B as the new master relays the DHCP FORCERENE message and transmits it to the terminal 30, and the other routers 20A and 20C do not relay the DHCP FORCERENEW message.

その後、端末30は、DHCP REQUESTをDHCPサーバ10に送信する。そして、DHCPサーバ10は、DHCP ACKを端末30に応答する。   Thereafter, the terminal 30 transmits DHCP REQUEST to the DHCP server 10. Then, the DHCP server 10 responds to the terminal 30 with a DHCP ACK.

[DHCPサーバの処理流れ]
次に、図10を用いて、第一の実施の形態に係るDHCPサーバ10の処理の流れを説明する。図10は、第一の実施の形態に係るDHCPサーバのPRIO情報送信処理の流れを示すフローチャートである。
[Processing flow of DHCP server]
Next, a processing flow of the DHCP server 10 according to the first embodiment will be described with reference to FIG. FIG. 10 is a flowchart showing a flow of PRIO information transmission processing of the DHCP server according to the first embodiment.

図10に示すように、DHCPサーバ10は、端末30からDHCP DISCOVERを受信すると(ステップS101肯定)、各ルータ20の負荷に基づいて、DHCP OFFERメッセージのoption code 43(Vender-Specific-Information)にPRIO情報を設定する(ステップS102)。そして、DHCPサーバ10は、各ルータ20にDHCP OFFERメッセージを送信する(ステップS103)。   As shown in FIG. 10, when the DHCP server 10 receives the DHCP DISCOVER from the terminal 30 (Yes in step S101), the DHCP server 10 sets the option code 43 (Vender-Specific-Information) of the DHCP OFFER message based on the load of each router 20. PRIO information is set (step S102). Then, the DHCP server 10 transmits a DHCP OFFER message to each router 20 (step S103).

例えば、送信部12bは、端末30からDHCP DISCOVERを受信した際に、各ルータ20の負荷が小さいほど、大きい値をPRIO情報として、DHCP OFFERメッセージのoption code 43(Vender-Specific-Information)に設定する。   For example, when receiving the DHCP DISCOVER from the terminal 30, the transmitting unit 12b sets the larger value as PRIO information in option code 43 (Vender-Specific-Information) of the DHCP OFFER message as the load on each router 20 decreases. To do.

[ルータの処理流れ]
次に、図11を用いて、第一の実施の形態に係るルータ20の処理の流れを説明する。図11は、第一の実施の形態に係るルータのPRIO情報設定処理の流れを示すフローチャートである。
[Router processing flow]
Next, a processing flow of the router 20 according to the first embodiment will be described with reference to FIG. FIG. 11 is a flowchart showing a flow of PRIO information setting processing of the router according to the first embodiment.

図11に示すように、ルータ20は、DHCPサーバ10からPRIO情報を含むDHCP OFFERメッセージを受信すると(ステップS201肯定)、該DHCP OFFERメッセージのoption code 43(Vender-Specific-Information)に設定されたPRIO情報を抽出する(ステップS202)。   As shown in FIG. 11, when the router 20 receives a DHCP OFFER message including PRIO information from the DHCP server 10 (Yes in step S201), the router 20 is set to option code 43 (Vender-Specific-Information) of the DHCP OFFER message. PRIO information is extracted (step S202).

そして、ルータ20は、VRRP手順に基づき他のルータ20と互いのPRIO情報を交換し(ステップS203)、自装置のPRIO情報の値が最も高いか否かを判定する(ステップS204)。この結果、ルータ20は、自装置のPRIO情報の値が最も高い場合には(ステップS204肯定)、自装置をマスタとして設定する(ステップS205)。   Then, the router 20 exchanges PRIIO information with the other routers 20 based on the VRRP procedure (step S203), and determines whether the value of the PRIIO information of its own device is the highest (step S204). As a result, when the value of the PRIIO information of the own device is the highest (Yes at Step S204), the router 20 sets the own device as a master (Step S205).

[第一の実施形態の効果]
このように、第一の実施形態に係る通信システムでは、各ルータ20について同一VLAN上での仮想IPアドレスは同一であるため、マスタルータ故障時は、DHCP DISCOVERからやり直す必要はなく、新マスタが発するGARPによりスイッチが学習して即時にマスタのルータを切り替えることができる。また、VRRPのPRIO情報の変更を利用して負荷の小さいルータ20をマスタにするので、VRRPを冗長化だけでなく、ルータの負荷を平準化することができる。このため、ルータの負荷を平準化するとともに、ルータ20の故障時であってもサービス停止時間を短くすることが可能である。
[Effect of the first embodiment]
Thus, in the communication system according to the first embodiment, since the virtual IP address on the same VLAN is the same for each router 20, it is not necessary to redo from DHCP DISCOVER when the master router fails, and the new master The switch learns from the issued GARP and can immediately switch the master router. In addition, since the router 20 having a small load is made a master by using the change of the PRIRP information of the VRRP, it is possible not only to make the VRRP redundant, but also to equalize the load on the router. For this reason, the load on the router can be leveled and the service stop time can be shortened even when the router 20 fails.

また、DHCP DISCOVER等を契機に、DHCP OFFERを用いてPRIO情報を変更して、マスタを切り替えることにより、負荷平準化を実現でき、また、ファイル更新などの工事に伴う収容替時も、DHCP FORCERENEWまたはDHCP ACKを用いてPRIO情報の変更によりディフォルトGWの仮想IPアドレスを変えることなく、新マスタからのGARPによるSWの学習テーブル変更のみであるから、サービス停止時間は短い。さらに、各ルータをACTとして使用するため、リソースの無駄が小さく、ルータ故障時の切り替え時の切り替え先が故障しているリスクが小さいという効果を奏する。   In addition, the load leveling can be realized by changing the PRIIO information using DHCP OFFER and switching the master by using DHCP DISCOVER, etc., and also during the DHCP FORCERENE Alternatively, the service stop time is short because only the SW learning table is changed by GARP from the new master without changing the virtual IP address of the default GW by changing the PRIIO information using DHCP ACK. Furthermore, since each router is used as an ACT, there is an effect that resource waste is small and there is a small risk that the switching destination at the time of switching at the time of router failure is broken.

[システム構成等]
また、図示した各装置の各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。すなわち、各装置の分散・統合の具体的形態は図示のものに限られず、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。さらに、各装置にて行なわれる各処理機能は、その全部または任意の一部が、CPUおよび当該CPUにて解析実行されるプログラムにて実現され、あるいは、ワイヤードロジックによるハードウェアとして実現され得る。
[System configuration, etc.]
Further, each component of each illustrated apparatus is functionally conceptual, and does not necessarily need to be physically configured as illustrated. In other words, the specific form of distribution / integration of each device is not limited to that shown in the figure, and all or a part thereof may be functionally or physically distributed or arbitrarily distributed in arbitrary units according to various loads or usage conditions. Can be integrated and configured. Further, all or any part of each processing function performed in each device may be realized by a CPU and a program analyzed and executed by the CPU, or may be realized as hardware by wired logic.

また、本実施形態において説明した各処理のうち、自動的におこなわれるものとして説明した処理の全部または一部を手動的におこなうこともでき、あるいは、手動的におこなわれるものとして説明した処理の全部または一部を公知の方法で自動的におこなうこともできる。この他、上記文書中や図面中で示した処理手順、制御手順、具体的名称、各種のデータやパラメータを含む情報については、特記する場合を除いて任意に変更することができる。   In addition, among the processes described in the present embodiment, all or part of the processes described as being automatically performed can be manually performed, or the processes described as being manually performed can be performed. All or a part can be automatically performed by a known method. In addition, the processing procedure, control procedure, specific name, and information including various data and parameters shown in the above-described document and drawings can be arbitrarily changed unless otherwise specified.

[プログラム]
図12は、設定プログラムを実行するコンピュータを示す図である。コンピュータ1000は、例えば、メモリ1010、CPU(Central Processing Unit)1020を有する。また、コンピュータ1000は、ハードディスクドライブインタフェース1030、ディスクドライブインタフェース1040、シリアルポートインタフェース1050、ビデオアダプタ1060、ネットワークインタフェース1070を有する。これらの各部は、バス1080によって接続される。
[program]
FIG. 12 is a diagram illustrating a computer that executes a setting program. The computer 1000 includes, for example, a memory 1010 and a CPU (Central Processing Unit) 1020. The computer 1000 also includes a hard disk drive interface 1030, a disk drive interface 1040, a serial port interface 1050, a video adapter 1060, and a network interface 1070. These units are connected by a bus 1080.

メモリ1010は、ROM(Read Only Memory)1011及びRAM(Random Access Memory)1012を含む。ROM1011は、例えば、BIOS(Basic Input Output System)等のブートプログラムを記憶する。ハードディスクドライブインタフェース1030は、ハードディスクドライブ1031に接続される。ディスクドライブインタフェース1040は、ディスクドライブ1041に接続される。例えば磁気ディスクや光ディスク等の着脱可能な記憶媒体が、ディスクドライブ1041に挿入される。シリアルポートインタフェース1050は、例えばマウス1051、キーボード1052に接続される。ビデオアダプタ1060は、例えばディスプレイ1061に接続される。   The memory 1010 includes a ROM (Read Only Memory) 1011 and a RAM (Random Access Memory) 1012. The ROM 1011 stores a boot program such as BIOS (Basic Input Output System). The hard disk drive interface 1030 is connected to the hard disk drive 1031. The disk drive interface 1040 is connected to the disk drive 1041. For example, a removable storage medium such as a magnetic disk or an optical disk is inserted into the disk drive 1041. The serial port interface 1050 is connected to a mouse 1051 and a keyboard 1052, for example. The video adapter 1060 is connected to the display 1061, for example.

ハードディスクドライブ1031は、例えば、OS1091、アプリケーションプログラム1092、プログラムモジュール1093、プログラムデータ1094を記憶する。すなわち、DHCPサーバ10やルータ20の各処理を規定するプログラムは、コンピュータにより実行可能なコードが記述されたプログラムモジュール1093として実装される。プログラムモジュール1093は、例えばハードディスクドライブ1031に記憶される。例えば、装置における機能構成と同様の処理を実行するためのプログラムモジュール1093が、ハードディスクドライブ1031に記憶される。なお、ハードディスクドライブ1031は、SSD(Solid State Drive)により代替されてもよい。   The hard disk drive 1031 stores, for example, an OS 1091, an application program 1092, a program module 1093, and program data 1094. That is, a program that defines each process of the DHCP server 10 and the router 20 is implemented as a program module 1093 in which a code executable by a computer is described. The program module 1093 is stored in the hard disk drive 1031, for example. For example, a program module 1093 for executing processing similar to the functional configuration in the apparatus is stored in the hard disk drive 1031. The hard disk drive 1031 may be replaced by an SSD (Solid State Drive).

また、上述した実施形態の処理で用いられる設定データは、プログラムデータ1094として、例えばメモリ1010やハードディスクドライブ1031に記憶される。そして、CPU1020が、メモリ1010やハードディスクドライブ1031に記憶されたプログラムモジュール1093やプログラムデータ1094を必要に応じてRAM1012に読み出して実行する。   The setting data used in the processing of the above-described embodiment is stored as program data 1094 in, for example, the memory 1010 or the hard disk drive 1031. Then, the CPU 1020 reads the program module 1093 and the program data 1094 stored in the memory 1010 and the hard disk drive 1031 to the RAM 1012 as necessary, and executes them.

なお、プログラムモジュール1093やプログラムデータ1094は、ハードディスクドライブ1031に記憶される場合に限らず、例えば着脱可能な記憶媒体に記憶され、ディスクドライブ1041等を介してCPU1020によって読み出されてもよい。あるいは、プログラムモジュール1093及びプログラムデータ1094は、ネットワーク(LAN(Local Area Network)、WAN(Wide Area Network)等)を介して接続された他のコンピュータに記憶されてもよい。そして、プログラムモジュール1093及びプログラムデータ1094は、他のコンピュータから、ネットワークインタフェース1070を介してCPU1020によって読み出されてもよい。   Note that the program module 1093 and the program data 1094 are not limited to being stored in the hard disk drive 1031, but may be stored in, for example, a removable storage medium and read out by the CPU 1020 via the disk drive 1041 or the like. Alternatively, the program module 1093 and the program data 1094 may be stored in another computer connected via a network (LAN (Local Area Network), WAN (Wide Area Network), etc.). Then, the program module 1093 and the program data 1094 may be read by the CPU 1020 from another computer via the network interface 1070.

10 DHCPサーバ
11、21 通信処理部
12、22 制御部
12a 監視部
12b 送信部
13、23 記憶部
13a ルータ負荷情報記憶部
20、20A〜20C ルータ
22a 設定部
22b 受信部
22c 応答部
22d 中継部
23a PRIO情報記憶部
23b アドレス情報記憶部
30、30A、30B 端末
40 スイッチ
DESCRIPTION OF SYMBOLS 10 DHCP server 11, 21 Communication processing part 12, 22 Control part 12a Monitoring part 12b Transmission part 13, 23 Storage part 13a Router load information storage part 20, 20A-20C Router 22a Setting part 22b Receiving part 22c Response part 22d Relay part 23a PRIO information storage unit 23b Address information storage unit 30, 30A, 30B Terminal 40 Switch

Claims (4)

端末ごとに異なるVLANが割り当てられた各端末と接続される複数のルータと、該複数のルータを制御するサーバとを有する通信システムであって、
前記サーバは、
各ルータの負荷を監視する監視部と、
前記端末からDHCP DISCOVERメッセージを受信した場合に、前記監視部によって監視された各ルータの負荷に応じて、各ルータに対して優先度に関するPriority情報をDHCP OFFERメッセージのオプションフィールドにおけるベンダ固有情報を設定するためのフィールドに設定し、該DHCP OFFERメッセージのパケットを送信する送信部と、
を有し、
同一のVLAN上において同一のIPアドレスが割り当てられた各ルータは、
前記サーバから前記Priority情報を含むパケットを受信すると、該Priority情報に基づいて、自身の優先度を設定する設定部と、
前記端末から接続先のルータのMACアドレスを問い合わせるアドレス要求を受信する受信部と、
前記設定部によって設定された自身の優先度が、前記複数のルータのなかで最も高い場合には、マスタのルータとして、前記受信部によって受信された前記アドレス要求の送信元の端末に対して、自ルータのMACアドレスを応答する応答部と、
前記応答部によって前記MACアドレスが応答された端末を送信元または送信先とするパケットを中継する中継部と、
を有し、
前記端末と接続された全てのルータのうち、一つのルータがマスタのルータとして、接続された端末を送信元または送信先とするパケットを中継し、該マスタのルータが故障した場合には、他のルータが新しいマスタのルータに切り替わることを特徴とする通信システム。
A communication system having a plurality of routers connected to each terminal to which a different VLAN is assigned for each terminal, and a server for controlling the plurality of routers,
The server
A monitoring unit that monitors the load on each router;
When a DHCP DISCOVER message is received from the terminal , priority information about priority is set for each router according to the load of each router monitored by the monitoring unit, and vendor-specific information in the option field of the DHCP OFFER message is set. A transmission unit configured to transmit the DHCP OFFER message packet,
Have
Each router assigned the same IP address on the same VLAN
When receiving a packet including the Priority information from the server, a setting unit for setting its own priority based on the Priority information;
A receiving unit for receiving an address request for inquiring about a MAC address of a connection destination router from the terminal;
When the priority set by the setting unit is the highest among the plurality of routers, as a master router, for the terminal of the source of the address request received by the receiving unit, A response unit that responds to the MAC address of the router;
A relay unit that relays a packet whose source or destination is a terminal to which the MAC address is responded by the response unit;
Have
Of all the routers connected to the terminal, one router acts as the master router, relays the packet with the connected terminal as the source or destination, and if the master router fails, the other A communication system, characterized in that a router of a new one is switched to a new master router.
端末ごとに異なるVLANが割り当てられた各端末と接続される複数のルータと、該複数のルータを制御するサーバとを有する通信システムであって、
前記サーバは、
各ルータの負荷を監視する監視部と、
所定の契機に、前記監視部によって監視された各ルータの負荷に応じて、各ルータに対して優先度に関するPriority情報をDHCP FORCERENEWメッセージのオプションフィールドにおけるベンダ固有情報を設定するためのフィールドに設定し、該DHCP FORCERENEWメッセージのパケットを送信する送信部と、
を有し、
同一のVLAN上において同一のIPアドレスが割り当てられた各ルータは、
前記サーバから前記Priority情報を含むパケットを受信すると、該Priority情報に基づいて、自身の優先度を設定する設定部と、
前記端末から接続先のルータのMACアドレスを問い合わせるアドレス要求を受信する受信部と、
前記設定部によって設定された自身の優先度が、前記複数のルータのなかで最も高い場合には、マスタのルータとして、前記受信部によって受信された前記アドレス要求の送信元の端末に対して、自ルータのMACアドレスを応答する応答部と、
前記応答部によって前記MACアドレスが応答された端末を送信元または送信先とするパケットを中継する中継部と、
を有し、
前記端末と接続された全てのルータのうち、一つのルータがマスタのルータとして、接続された端末を送信元または送信先とするパケットを中継し、該マスタのルータが故障した場合には、他のルータが新しいマスタのルータに切り替わることを特徴とする通信システム。
A communication system having a plurality of routers connected to each terminal to which a different VLAN is assigned for each terminal, and a server for controlling the plurality of routers,
The server
A monitoring unit that monitors the load on each router;
At a predetermined opportunity, priority information about priority is set for each router in the field for setting vendor-specific information in the option field of the DHCP FORCERENEW message according to the load of each router monitored by the monitoring unit. A transmission unit for transmitting a packet of the DHCP FORCERENE message ;
Have
Each router assigned the same IP address on the same VLAN
When receiving a packet including the Priority information from the server, a setting unit for setting its own priority based on the Priority information;
A receiving unit for receiving an address request for inquiring about a MAC address of a connection destination router from the terminal;
When the priority set by the setting unit is the highest among the plurality of routers, as a master router, for the terminal of the source of the address request received by the receiving unit, A response unit that responds to the MAC address of the router;
A relay unit that relays a packet whose source or destination is a terminal to which the MAC address is responded by the response unit;
Have
Of all the routers connected to the terminal, one router acts as the master router, relays the packet with the connected terminal as the source or destination, and if the master router fails, the other A communication system, characterized in that a router of a new one is switched to a new master router.
端末ごとに異なるVLANが割り当てられた各端末と接続される複数のルータと、該複数のルータを制御するサーバとを有する通信システムにより実行される設定方法であって、
前記サーバが、各ルータの負荷を監視する監視工程と、
前記サーバが、前記端末からDHCP DISCOVERメッセージを受信した場合に、前記監視工程によって監視された各ルータの負荷に応じて、各ルータに対して優先度に関するPriority情報をDHCP OFFERメッセージのオプションフィールドにおけるベンダ固有情報を設定するためのフィールドに設定し、該DHCP OFFERメッセージのパケットを送信する送信工程と、
同一のVLAN上において同一のIPアドレスが割り当てられた各ルータが、前記サーバから前記Priority情報を含むパケットを受信すると、該Priority情報に基づいて、自身の優先度を設定する設定工程と、
前記各ルータが、前記端末から接続先のルータのMACアドレスを問い合わせるアドレス要求を受信する受信工程と、
前記各ルータが、前記設定工程によって設定された自身の優先度が、前記複数のルータのなかで最も高い場合には、マスタのルータとして、前記受信工程によって受信された前記アドレス要求の送信元の端末に対して、自ルータのMACアドレスを応答する応答工程と、
前記マスタのルータが、前記応答工程によって前記MACアドレスが応答された端末を送信元または送信先とするパケットを中継する中継工程と、
前記複数のルータのうち前記マスタのルータ以外の一つの他のルータが、前記端末と接続された全てのルータのうちの一つのマスタのルータであって、接続された端末を送信元または送信先とするパケットを中継するマスタのルータが故障した場合には、前記他のルータを新しいマスタのルータに切り替える切替工程と、
を含んだことを特徴とする設定方法。
A setting method executed by a communication system having a plurality of routers connected to each terminal to which a different VLAN is assigned for each terminal, and a server that controls the plurality of routers,
A monitoring step in which the server monitors the load of each router;
When the server receives a DHCP DISCOVER message from the terminal , priority information about priority is given to each router according to the load of each router monitored by the monitoring step, and the vendor in the option field of the DHCP OFFER message. A transmission step of setting a field for setting unique information and transmitting a packet of the DHCP OFFER message ;
When each router to which the same IP address is assigned on the same VLAN receives a packet including the Priority information from the server, a setting step of setting its own priority based on the Priority information;
A receiving step in which each router receives an address request for inquiring about a MAC address of a connection destination router from the terminal;
When each of the routers has the highest priority set in the setting step among the plurality of routers, as a master router, the source of the address request received in the receiving step A response step of responding to the terminal with the MAC address of the own router;
A relay step in which the master router relays a packet whose source or destination is the terminal to which the MAC address is responded in the response step;
One of the plurality of routers other than the master router is a master router of all the routers connected to the terminal, and the connected terminal is a source or a destination. When the master router that relays the packet fails, a switching step of switching the other router to a new master router;
The setting method characterized by including.
端末ごとに異なるVLANが割り当てられた各端末と接続される複数のルータと、該複数のルータを制御するサーバとを有する通信システムにより実行される設定方法であって、  A setting method executed by a communication system having a plurality of routers connected to each terminal to which a different VLAN is assigned for each terminal, and a server that controls the plurality of routers,
前記サーバが、各ルータの負荷を監視する監視工程と、  A monitoring step in which the server monitors the load of each router;
前記サーバが、所定の契機に、前記監視工程によって監視された各ルータの負荷に応じて、各ルータに対して優先度に関するPriority情報をDHCP FORCERENEWメッセージのオプションフィールドにおけるベンダ固有情報を設定するためのフィールドに設定し、該DHCP FORCERENEWメッセージのパケットを送信する送信工程と、  For the server to set priority information regarding priority for each router according to the load of each router monitored by the monitoring step, and vendor-specific information in the option field of the DHCP FORCERENE message at a predetermined opportunity A transmission step of setting the field and transmitting the packet of the DHCP FORCERENE message;
同一のVLAN上において同一のIPアドレスが割り当てられた各ルータが、前記サーバから前記Priority情報を含むパケットを受信すると、該Priority情報に基づいて、自身の優先度を設定する設定工程と、  When each router to which the same IP address is assigned on the same VLAN receives a packet including the Priority information from the server, a setting step of setting its own priority based on the Priority information;
前記各ルータが、前記端末から接続先のルータのMACアドレスを問い合わせるアドレス要求を受信する受信工程と、  A receiving step in which each router receives an address request for inquiring about a MAC address of a connection destination router from the terminal;
前記各ルータが、前記設定工程によって設定された自身の優先度が、前記複数のルータのなかで最も高い場合には、マスタのルータとして、前記受信工程によって受信された前記アドレス要求の送信元の端末に対して、自ルータのMACアドレスを応答する応答工程と、  When each of the routers has the highest priority set in the setting step among the plurality of routers, as a master router, the source of the address request received in the receiving step A response step of responding to the terminal with the MAC address of the own router;
前記マスタのルータが、前記応答工程によって前記MACアドレスが応答された端末を送信元または送信先とするパケットを中継する中継工程と、  A relay step in which the master router relays a packet whose source or destination is the terminal to which the MAC address is responded in the response step;
前記複数のルータのうち前記マスタのルータ以外の一つの他のルータが、前記端末と接続された全てのルータのうちの一つのマスタのルータであって、接続された端末を送信元または送信先とするパケットを中継するマスタのルータが故障した場合には、前記他のルータを新しいマスタのルータに切り替える切替工程と、  One of the plurality of routers other than the master router is a master router of all the routers connected to the terminal, and the connected terminal is a source or a destination. When the master router that relays the packet fails, a switching step of switching the other router to a new master router;
を含んだことを特徴とする設定方法。  The setting method characterized by including.
JP2015158288A 2015-08-10 2015-08-10 Communication system and setting method Active JP6445408B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015158288A JP6445408B2 (en) 2015-08-10 2015-08-10 Communication system and setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015158288A JP6445408B2 (en) 2015-08-10 2015-08-10 Communication system and setting method

Publications (2)

Publication Number Publication Date
JP2017038218A JP2017038218A (en) 2017-02-16
JP6445408B2 true JP6445408B2 (en) 2018-12-26

Family

ID=58047994

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015158288A Active JP6445408B2 (en) 2015-08-10 2015-08-10 Communication system and setting method

Country Status (1)

Country Link
JP (1) JP6445408B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6795527B2 (en) * 2018-02-14 2020-12-02 日本電信電話株式会社 Communication system and server switching method
WO2021152670A1 (en) * 2020-01-27 2021-08-05 日本電信電話株式会社 Communication device, switching control method, and program
EP4007218A4 (en) * 2020-08-18 2022-10-12 NEC Corporation Server device, wireless base station, monitoring device, communication control method, non-transitory computer-readable medium, and communication system
JP7251872B2 (en) * 2020-12-24 2023-04-04 Necプラットフォームズ株式会社 Communication control device, system, method, and program

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3896897B2 (en) * 2002-05-24 2007-03-22 株式会社日立製作所 Router setting method and router
CN1208929C (en) * 2002-06-23 2005-06-29 华为技术有限公司 Method for realfizing router interface backup utilizing virtual router redundancy procotol
JP4100353B2 (en) * 2003-02-19 2008-06-11 松下電器産業株式会社 Arbitration method between routers, router priority calculation device, and router device
JP4405941B2 (en) * 2005-05-26 2010-01-27 日本電信電話株式会社 Line redundancy method and relay apparatus used therefor
JP5703848B2 (en) * 2011-03-03 2015-04-22 富士通株式会社 Communication method, communication system, router and server
JP2014003451A (en) * 2012-06-18 2014-01-09 Alaxala Networks Corp Communication device and communication method
JP5941887B2 (en) * 2013-09-19 2016-06-29 日本電信電話株式会社 Edge router switching method and system, edge router and redundancy management device

Also Published As

Publication number Publication date
JP2017038218A (en) 2017-02-16

Similar Documents

Publication Publication Date Title
US10171567B2 (en) Load balancing computer device, system, and method
US10091274B2 (en) Method, device, and system for controlling network device auto-provisioning
CN109937401B (en) Live migration of load-balancing virtual machines via traffic bypass
JP5331163B2 (en) IP address assignment system, DHCP server, and IP address assignment method
EP2654268B1 (en) Address allocation processing method and apparatus
US11895092B2 (en) Network access controller operation
US11855809B2 (en) Resilient zero touch provisioning
CN114070723B (en) Virtual network configuration method and system of bare metal server and intelligent network card
JP2011507426A (en) Method, system, and program for failover in a host that simultaneously supports multiple virtual IP addresses across multiple adapters
JP6445408B2 (en) Communication system and setting method
CN101316236A (en) VRRP backup group load sharing method and router
JP2018530256A (en) User migration
US8887237B2 (en) Multimode authentication
JP2010239591A (en) Network system, relay device, and method of controlling network
CN105847143B (en) Load balancing method and system based on VRRP
US20150229520A1 (en) Network monitoring system, communication device, network management method
US20200274799A1 (en) Multi-vrf and multi-service insertion on edge gateway virtual machines
JP6360012B2 (en) Network integration system and network integration method
US11729140B2 (en) Method and system for managing DHCP servers
US20070008970A1 (en) Packet data router apparatus and method
US20200274791A1 (en) Multi-vrf and multi-service insertion on edge gateway virtual machines
JP6600606B2 (en) Server device and network system
CN107295113B (en) Network configuration method, switch and server
US20130159549A1 (en) Device communications over unnumbered interfaces
JP2018038001A (en) Communication system, selection method, authentication device, and selection program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170828

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180614

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180619

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180802

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180918

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181105

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181129

R150 Certificate of patent or registration of utility model

Ref document number: 6445408

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150