JP2003348136A - Router setting method - Google Patents
Router setting methodInfo
- Publication number
- JP2003348136A JP2003348136A JP2002149969A JP2002149969A JP2003348136A JP 2003348136 A JP2003348136 A JP 2003348136A JP 2002149969 A JP2002149969 A JP 2002149969A JP 2002149969 A JP2002149969 A JP 2002149969A JP 2003348136 A JP2003348136 A JP 2003348136A
- Authority
- JP
- Japan
- Prior art keywords
- router
- routers
- master
- virtual
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
(57)【要約】
【課題】既存の通信端末とDHCPサーバに変更を加え
ることなく、ルータの負荷を考慮したデフォルトルータ
の分散による負荷分散を行う。
【解決手段】ルータ31、32は、現在のパケット転送
機能の負荷状態を交換することによって、最も負荷の低
いルータを認識する。そして、ルータ31、32のどち
らか一方によって、通信端末41〜44が、起動時また
は再設定時にネットワーク1へブロードキャストするD
HCPメッセージをDHCPサーバ5に転送する。ルー
タ31、32は、DHCPメッセージをDHCPサーバ
へ転送する際に、最も負荷の低いルータを認識するため
の付加情報を添付する。これによって、DHCPサーバ
は、最も負荷の低いルータをデフォルトルータとして選
択し、通信端末に割当てるアドレスとデフォルトルータ
のアドレスを決定する。また、ルータ31、32は、D
HCPサーバが送信するDHCPメッセージを通信端末
に転送する。
(57) [Summary] A load distribution is performed by distributing a default router in consideration of a router load without changing existing communication terminals and a DHCP server. A router recognizes a router with the lowest load by exchanging a current load state of a packet transfer function. Then, one of the routers 31 and 32 causes the communication terminals 41 to 44 to broadcast to the network 1 at the time of startup or resetting.
The HCP message is transferred to the DHCP server 5. When transferring the DHCP message to the DHCP server, the routers 31 and 32 attach additional information for identifying the router with the lowest load. As a result, the DHCP server selects the router with the lowest load as the default router, and determines the address to be assigned to the communication terminal and the address of the default router. In addition, the routers 31 and 32
The DHCP message transmitted by the HCP server is transferred to the communication terminal.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、ネットワーク間を
接続するルータに関し、特に、複数のルータ間で負荷分
散を行うルータおよび通信端末設定方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a router for connecting networks, and more particularly, to a router for distributing a load among a plurality of routers and a communication terminal setting method.
【0002】[0002]
【従来の技術】TCP/IPに基づくインターネット
は、IPパケットを中継するルータでネットワークを接
続することによって構成されている。インターネットに
おいては、負荷分散および冗長構成によるバックアップ
を行うことを目的として、二つのネットワーク間を複数
のルータで接続することがある。これらの複数のルータ
を用いた負荷分散および冗長構成によるバックアップに
関する従来技術には、以下の技術がある。2. Description of the Related Art The Internet based on TCP / IP is configured by connecting networks by a router that relays IP packets. In the Internet, two networks may be connected by a plurality of routers for the purpose of load balancing and backup with a redundant configuration. Conventional techniques relating to load distribution using these routers and backup by a redundant configuration include the following techniques.
【0003】(1)負荷分散
TCP/IPを用いるネットワークに属する通信端末
は、ネットワーク間を接続するルータを介して他のネッ
トワークと通信する。このとき、他のネットワークへの
中継ルータとして用いるルータをデフォルトルータまた
はデフォルトゲートウェイと呼ぶ。(1) Load distribution A communication terminal belonging to a network using TCP / IP communicates with another network via a router connecting the networks. At this time, a router used as a relay router to another network is called a default router or a default gateway.
【0004】複数の通信端末が接続されているネットワ
ークが、他のネットワークと複数のルータで接続されて
いる構成のネットワークにおいては、他のネットワーク
と通信する通信端末において、デフォルトルータと成り
得るルータが複数あることになる。したがって、デフォ
ルトルータとして選択するルータを、通信端末毎に分散
させることによって負荷分散を行うことが出来る。例え
ば、ルータAとルータBがデフォルトルータと成り得る
構成において、通信端末1のデフォルトルータをルータ
A、通信端末2のデフォルトルータをルータBとすれば
よい。In a network having a configuration in which a network to which a plurality of communication terminals are connected is connected to another network by a plurality of routers, a communication terminal that communicates with another network may have a router that can be a default router. There will be more than one. Therefore, load distribution can be performed by distributing the router selected as the default router for each communication terminal. For example, in a configuration in which the routers A and B can be default routers, the default router of the communication terminal 1 may be router A and the default router of the communication terminal 2 may be router B.
【0005】従来は、デフォルトルータの選択を手動ま
たはDHCP(RFC2131,Dynamic Host Configuration
Protocol)による自動設定によって行っていた。これら
の場合、ルータの負荷とは独立にそれぞれの通信端末に
デフォルトルータが割当てられることになり、効果的な
負荷分散を行うとが困難であった。また、OSPF(RF
C2328,OSPF Version 2)などのダイナミックルーティ
ングプロトコルによって、通信端末においてデフォルト
ルータを選択することも可能であるが、全ての通信端末
にルーティングプロトコルを実装することは現実的でな
い。Conventionally, selection of a default router is performed manually or using DHCP (RFC2131, Dynamic Host Configuration).
Protocol). In these cases, a default router is assigned to each communication terminal independently of the load on the router, making it difficult to perform effective load distribution. OSPF (RF
It is possible to select a default router in a communication terminal by a dynamic routing protocol such as C2328, OSPF Version 2), but it is not practical to implement a routing protocol in all communication terminals.
【0006】(2)冗長構成によるバックアップ
二つのネットワークを複数のルータで接続し、そのルー
タ間で冗長構成を取る方法に関しては、多くの提案が行
われており、その結果は、IETF(The Internet Eng
ineering Task Force)で、VRRP(RFC2338,Virtua
l Router Redundancy Protocol)として標準化されてい
る。VRRPでは、実際にルータとして機能し、パケッ
トの転送を行う役割を持つ一つのマスタールータと、マ
スタールータのバックアップとなる一つまたは複数のル
ータを、仮想的に一つのルータとみなし、それを仮想ル
ータと呼ぶ。マスタールータは仮想ルータに属する全て
のバックアップルータにADVERTISEメッセージ
を定期的に送信することによって、バックアップルータ
に装置の状態を通知する。これによって、バックアップ
ルータはマスタールータの状態を認識し、マスタールー
タの障害時のバックアップを行う。(2) Backup by Redundant Configuration Many proposals have been made regarding a method of connecting two networks by a plurality of routers and establishing a redundant configuration between the routers. The result is based on IETF (The Internet). Eng
ineering Task Force), VRRP (RFC2338, Virtua
l Router Redundancy Protocol). In VRRP, one master router that actually functions as a router and has a role of transferring a packet, and one or more routers serving as a backup of the master router are virtually regarded as one router, and it is regarded as a virtual router. Call it a router. The master router notifies the backup router of the status of the device by periodically transmitting an ADVERTISE message to all backup routers belonging to the virtual router. Thus, the backup router recognizes the state of the master router and performs backup when the master router fails.
【0007】複数の仮想ルータを構成し、それぞれの仮
想ルータが、他の仮想ルータでバックアップルータとし
て用いられているルータをマスタールータとする構成を
取ることによって、冗長構成によるバックアップと
(1)の負荷分散を同時に行うことも出来る。例えば、
二つのネットワークをルータAとルータBで接続する構
成のネットワークにおいて、仮想ルータ1が、ルータA
をマスタールータ、ルータBをバックアップルータと
し、仮想ルータ2が、ルータAをバックアップルータ、
ルータBをマスタールータとする。そして、通信端末に
おいて、デフォルトルータとするルータを、仮想ルータ
1と仮想ルータ2に分散することによって負荷分散がで
きる。[0007] By configuring a plurality of virtual routers, each of the virtual routers adopts a configuration in which a router used as a backup router by another virtual router is used as a master router, a backup by a redundant configuration and Load distribution can be performed simultaneously. For example,
In a network in which two networks are connected by a router A and a router B, the virtual router 1
Is the master router, router B is the backup router, virtual router 2 is router A, the backup router,
Let router B be the master router. Then, in the communication terminal, the load can be distributed by distributing the router to be the default router to the virtual router 1 and the virtual router 2.
【0008】VRRPを用いた冗長構成によるバックア
ップと負荷分散の両立方法を用いたネットワーク構成に
おいては、各ルータが常にマスタールータとして機能す
るため、アイドル状態となるルータが無く、さらに、障
害時においてもバックアップ機能によって、通信端末間
の可到達性を保証することができる。したがって、可到
達性を保証するが、通信品質はベストエフォートとして
通信コストを最小化するインターネットにおいて好まれ
るネットワーク構築方法である。In a network configuration using a method of balancing backup and load distribution using a redundant configuration using VRRP, since each router always functions as a master router, there is no router that becomes idle, and even when a failure occurs. With the backup function, reachability between communication terminals can be guaranteed. Therefore, the reachability is ensured, but the communication quality is the best-effort, which is the preferred network construction method in the Internet that minimizes the communication cost.
【0009】[0009]
【発明が解決しようとする課題】通信端末が使用するデ
フォルトルータを、複数の通信端末間で分散することに
よって実現する負荷分散を効果的に行うためには、ルー
タの負荷を反映して、通信端末にデフォルトルータを割
当てなければならない。また、通信端末におけるデフォ
ルトルータの設定は、自動設定であることが望ましい。
特に、TCP/IPに関する知識を持たないエンドユー
ザが通信端末を所有するようなオフィス環境やインター
ネットアクセスサービスにおいては、自動設定が必須で
ある。In order to effectively perform load distribution realized by distributing a default router used by a communication terminal among a plurality of communication terminals, communication is performed by reflecting the load of the router. A default router must be assigned to the terminal. Further, it is desirable that the setting of the default router in the communication terminal be an automatic setting.
Particularly, in an office environment or an Internet access service in which an end user who does not have knowledge of TCP / IP owns a communication terminal, automatic setting is essential.
【0010】通信端末に自アドレスおよびデフォルトル
ータのアドレスなどの設定パラメータを自動設定する標
準プロトコルとしてDHCPが現在、広く用いられてい
る。しかしながら、DHCPは、ルータの負荷を反映し
たデフォルトルータの割当機能を持たない。DHCP
は、既に広く用いられているため、ルータの負荷を反映
したデフォルトルータの割当を行う場合においても、通
信端末のDHCPクライアントおよびDHCPサーバに
変更を加えることは望ましくない。[0010] DHCP is currently widely used as a standard protocol for automatically setting setting parameters such as its own address and the address of a default router in a communication terminal. However, DHCP does not have a function of assigning a default router reflecting the load on the router. DHCP
Since is already widely used, it is not desirable to change the DHCP client and the DHCP server of the communication terminal even when assigning a default router reflecting the load of the router.
【0011】また、本発明が適用される二つのネットワ
ークを複数のルータで接続する構成のネットワークにお
いては、VRRPによって、ルータの冗長設置構成によ
るバックアップが用いられることが多い。したがって、
本発明は、VRRPを用いた環境においてもVRRPと
同時に適用できるものでなくてはならない。Further, in a network having a configuration in which two networks to which the present invention is applied are connected by a plurality of routers, a backup by a redundant installation of routers is often used by VRRP. Therefore,
The present invention must be applicable simultaneously with VRRP even in an environment using VRRP.
【0012】[0012]
【課題を解決するための手段】本発明は、通信端末を使
用するエンドユーザの利便性を考慮し、既存のDHCP
を変更することなく、通信端末において、ルータの負荷
を反映したデフォルトルータの設定を可能とする。DISCLOSURE OF THE INVENTION The present invention considers the convenience of an end user who uses a communication terminal, and uses an existing DHCP.
The setting of the default router that reflects the load of the router is possible in the communication terminal without changing the default router.
【0013】本発明によるルータは、現在のパケット転
送機能の負荷状態を複数のルータ間で交換する機能を持
ち、二つのネットワークを接続する複数のルータ間で、
最も負荷の低いルータを認識する手段を持つ。The router according to the present invention has a function of exchanging the load state of the current packet transfer function among a plurality of routers.
It has a means to recognize the router with the lowest load.
【0014】通信端末が、自アドレスやデフォルトルー
タのアドレスなどの設定パラメータ獲得のために送信す
るDHCPメッセージは、通信端末が接続されているネ
ットワークに対するブロードキャストであり、通常、ル
ータに位置するリレーエージェントによってDHCPサ
ーバに転送される。また、DHCPサーバからのDHC
Pメッセージもリレーエージェントを介して通信端末に
送信される。A DHCP message transmitted by a communication terminal to obtain setting parameters such as its own address and an address of a default router is a broadcast to a network to which the communication terminal is connected, and is usually transmitted by a relay agent located at the router. Forwarded to DHCP server. Also, DHCP from the DHCP server
The P message is also transmitted to the communication terminal via the relay agent.
【0015】本発明のルータは、二つのネットワークを
接続する複数のルータの中から一つのルータを選択し、
そのルータに位置するリレーエージェントのみによって
通信端末とDHCPサーバ間のメッセージ交換を中継す
ることによって、DHCPサーバでの複製メッセージ受
信を防止する。The router of the present invention selects one router from a plurality of routers connecting two networks,
By relaying the message exchange between the communication terminal and the DHCP server only by the relay agent located at the router, reception of the duplicate message at the DHCP server is prevented.
【0016】また、本発明のルータは、通信端末の送信
するDHCPメッセージをDHCPサーバへ転送する際
に、DHCPサーバにおいて、最も負荷の低いルータ
を、DHCPサーバにおいて認識するための付加情報を
添付することによって、DHCPサーバにおけるデフォ
ルトルータ選択を可能とする。付加情報としては、RF
C3046(DHCP Relay Agent Information Option)
で規定されているAgent Circuit IDな
どを用いる。Further, when the router of the present invention transfers the DHCP message transmitted by the communication terminal to the DHCP server, the DHCP server attaches additional information for identifying the router with the lowest load in the DHCP server. This allows the DHCP server to select a default router. As additional information, RF
C3046 (DHCP Relay Agent Information Option)
Agent Circuit ID specified in the above is used.
【0017】Agent Circuit IDは、本
来、リレーエージェントの位置するルータにおいて、D
HCPメッセージを受信した回線を示す識別子であり、
これによって、DHCPサーバでの通信端末に割当てる
パラメータ選択を補助する情報である。本発明では、こ
のAgent Circuit IDを最も負荷の軽い
ルータの回線を示す識別子として拡張して用いる。この
方法によって、通信端末のDHCPクライアントと、D
HCPサーバに特別な拡張を加える必要がなく、本発明
の実施においては、既存のソフトウェアおよび装置を使
うことができる。The Agent Circuit ID is originally assigned to the router where the relay agent is located.
An identifier indicating a line that has received the HCP message,
This is information that assists the DHCP server in selecting parameters to be assigned to communication terminals. In the present invention, this Agent Circuit ID is extended and used as an identifier indicating the line of the router with the lightest load. By this method, the DHCP client of the communication terminal and the D
There is no need to add any special extensions to the HCP server, and existing software and equipment can be used in the implementation of the present invention.
【0018】本発明が適用される二つのネットワークを
複数のルータで接続する構成のネットワークにおいて
は、VRRPによる冗長構成によるバックアップが用い
られることが多いが、本発明は、VRRPと独立に用い
ることが可能である。さらに、VRRPでマスタールー
タがバックアップルータに定期的に送信するADVER
TISEメッセージを用いてパケット転送機能の負荷状
態を複数のルータ間で交換することによって、ルータ間
で交換するメッセージ数を削減することもできる。In a network having a configuration in which two networks to which the present invention is applied are connected by a plurality of routers, backup by a redundant configuration by VRRP is often used, but the present invention may be used independently of VRRP. It is possible. In addition, the ADVER that the master router periodically sends to the backup router in VRRP
By exchanging the load state of the packet transfer function between a plurality of routers using the TISE message, the number of messages exchanged between the routers can also be reduced.
【0019】[0019]
【発明の実施の形態】以下で、本発明の実施の形態につ
いて説明する。Embodiments of the present invention will be described below.
【0020】図1は、本発明の一実施形態が適用される
ネットワークの概略図である。本実施の形態では、ネッ
トワークとしてIPネットワークを想定している。図1に
おいて、ネットワーク1とネットワーク2は、複数のル
ータ31とルータ32によって接続されている。ルータ
31は、回線11によってネットワーク1と接続され、
回線21によってネットワーク2と接続されている。ル
ータ32は、回線12によってネットワーク1と接続さ
れ、回線22によってネットワーク2に接続されてい
る。図1では2つのルータを図示しているが、本実施形
態において、ルータの台数に制限はない。FIG. 1 is a schematic diagram of a network to which an embodiment of the present invention is applied. In the present embodiment, an IP network is assumed as the network. In FIG. 1, a network 1 and a network 2 are connected by a plurality of routers 31 and 32. The router 31 is connected to the network 1 by the line 11,
It is connected to the network 2 by a line 21. The router 32 is connected to the network 1 via the line 12 and to the network 2 via the line 22. Although FIG. 1 illustrates two routers, in the present embodiment, the number of routers is not limited.
【0021】ネットワーク1に接続されている複数の通
信端末41〜44は、ルータ31またはルータ32を介
して、ネットワーク2に属する通信端末と通信する。D
HCPサーバ5は、ルータ31およびルータ32との通
信が可能なネットワーク2に接続されており、ネットワ
ーク1に接続されている通信端末41〜44に、それら
の通信端末が使用する自アドレスおよびネットワーク1
からネットワーク2への中継ルータとなるデフォルトル
ータのアドレスなどの設定パラメータを割当てる機能を
持つ。DHCPサーバ5は、アドレス割当データベース
51を持つ。図1では、DHCPサーバ5をネットワー
ク2に接続する構成としているが、DHCPサーバ5
は、ルータ31およびルータ32との通信が可能であれ
ば、どこに設置されても良い。The plurality of communication terminals 41 to 44 connected to the network 1 communicate with the communication terminals belonging to the network 2 via the router 31 or the router 32. D
The HCP server 5 is connected to the network 2 capable of communicating with the router 31 and the router 32, and provides the communication terminals 41 to 44 connected to the network 1 with their own addresses used by those communication terminals and the network 1.
Has a function of allocating setting parameters such as the address of a default router that is a relay router from the network 2 to the network 2. The DHCP server 5 has an address assignment database 51. In FIG. 1, the configuration is such that the DHCP server 5 is connected to the network 2.
May be installed anywhere as long as communication with the router 31 and the router 32 is possible.
【0022】通信端末41〜44は、DHCPクライア
ント機能を持っており、起動時にDHCPサーバから自
アドレスおよびデフォルトルータのアドレスなどの設定
パラメータを獲得することによって、ネットワーク1に
参加する。通信端末41〜44は、DHCPの規約にし
たがって、起動時または再設定時に、端末のアドレスお
よびデフォルトルータのアドレスなどの設定パラメータ
の割当要求メッセージをネットワーク1へ送信する。こ
の割当要求メッセージは、ネットワーク1内の全通信端
末およびルータが宛先となるブロードキャストのため、
ルータ31およびルータ32が割当要求メッセージを受
信することになる。ルータ31およびルータ32は、こ
の割当要求メッセージを一旦受信し、必要に応じて付加
情報を追加して、DHCPサーバ5に転送する。この割
当要求メッセージなどのDHCPメッセージを通信端末
とDHCPサーバの間で中継する機能をDHCPリレー
エージェント機能とよぶ。Each of the communication terminals 41 to 44 has a DHCP client function, and participates in the network 1 by acquiring setting parameters such as its own address and the address of a default router from a DHCP server at the time of startup. The communication terminals 41 to 44 transmit to the network 1 a request for assignment of setting parameters such as a terminal address and a default router address at the time of startup or resetting according to the rules of DHCP. Since this assignment request message is a broadcast addressed to all communication terminals and routers in the network 1,
The router 31 and the router 32 receive the assignment request message. The router 31 and the router 32 once receive the assignment request message, add additional information as needed, and transfer the message to the DHCP server 5. The function of relaying a DHCP message such as the allocation request message between the communication terminal and the DHCP server is called a DHCP relay agent function.
【0023】図9は、ネットワーク1の具体的な構成例
を示す図である。ここでは、ネットワーク1がLANス
イッチ11とLANスイッチ12によって構成され、端
末41〜42は、これらのLANスイッチによって、ル
ータ31とルータ32に接続されている。LANスイッ
チは、ブロードキャストネットワークを構成するため、
この構成によって、通信端末41〜44およびルータ3
1、ルータ32がブロードキャストネットワークに属す
ることになる。FIG. 9 is a diagram showing a specific configuration example of the network 1. Here, the network 1 includes a LAN switch 11 and a LAN switch 12, and the terminals 41 to 42 are connected to the router 31 and the router 32 by these LAN switches. The LAN switch configures a broadcast network,
With this configuration, the communication terminals 41 to 44 and the router 3
1. The router 32 belongs to the broadcast network.
【0024】なお、LANスイッチによって構成される
ネットワークでは、IEEE802.3Qによって規定
されるVLAN(Virtual LAN)機能によっ
て、論理的にブロードキャストネットワークを分割する
ことも可能である。この機能によって、各通信端末毎に
論理的にブロードキャストネットワークを分割したネッ
トワークを構成することがある。ここでは、通信端末4
1が、VLAN13によって、他の端末とは論理的に分
離されてルータ31とルータ32に接続されている例を
示している。In a network constituted by LAN switches, a broadcast network can be logically divided by a VLAN (Virtual LAN) function defined by IEEE802.3Q. With this function, a network in which a broadcast network is logically divided for each communication terminal may be configured. Here, the communication terminal 4
1 illustrates an example in which a VLAN 1 is logically separated from other terminals by a VLAN 13 and connected to a router 31 and a router 32.
【0025】図2に通信端末とルータとDHCPサーバ
間での設定パラメータ割当時のメッセージ交換シーケン
スを示している。図4は、DHCPメッセージのフォー
マットを示している。DHCPに関しては、IETFの
RFC2131で詳細に記述されている。FIG. 2 shows a message exchange sequence at the time of setting parameter assignment among the communication terminal, the router, and the DHCP server. FIG. 4 shows the format of the DHCP message. DHCP is described in detail in RFC2131 of IETF.
【0026】以下、図2にしたがって、通信端末の設定
パラメータ割当に関するDHCPメッセージの交換シー
ケンスを説明する。まず、通信端末がDHCPサーバを
探すためのDHCPDISCOVERメッセージをネッ
トワークにブロードキャストする。ルータは、そのDH
CPDISCOVERメッセージを受信し、DHCPサ
ーバへ転送する。DHCPサーバのアドレスは、ルータ
に固定的に設定されている。DHCPサーバは、通信端
末に割当可能なアドレスとデフォルトルータアドレスな
どの設定パラメータをDHCPOFFERメッセージに
よってルータへ送信する。ルータは、DHCPOFFE
Rメッセージを、DHCPDISCOVERメッセージ
を送信した通信端末に送信する。DHCPOFFERメ
ッセージを受信した通信端末は、DHCPOFFERメ
ッセージで示されるアドレスおよびデフォルトルータア
ドレスなどの設定パラメータを使用するならば、それら
を使用することをDHCPサーバへ通知するために、D
HCPREQUESTメッセージをネットワークにブロ
ードキャストする。ルータは、そのDHCPREQUE
STメッセージを受信し、DHCPサーバへ転送する。
DHCPサーバは、DHCPREQUESTメッセージ
を受信すると、それらの使用を許可するDHCPACK
メッセージをルータへ送信し、ルータがそのDHCPA
CKメッセージを、DHCPREQESTメッセージを
送信した通信端末に転送する。Hereinafter, the exchange sequence of the DHCP message related to the setting parameter assignment of the communication terminal will be described with reference to FIG. First, a communication terminal broadcasts a DHCPDISCOVER message for searching for a DHCP server to a network. The router sends its DH
Receive the CPDISCOVER message and forward it to the DHCP server. The address of the DHCP server is fixedly set in the router. The DHCP server transmits setting parameters such as an address that can be assigned to the communication terminal and a default router address to the router using a DHCPOFFER message. Router is DHCPOFFE
The R message is transmitted to the communication terminal that transmitted the DHCPDISCOVER message. If the communication terminal that has received the DHCPOFFER message uses the setting parameters such as the address and the default router address indicated by the DHCPOFFER message, the communication terminal uses the D in order to notify the DHCP server of the use.
Broadcast an HCPREQUEST message to the network. The router will send its DHCPREQ
The ST message is received and transferred to the DHCP server.
When the DHCP server receives the DHCPREQUEST messages, it grants them a DHCPACK
Sends a message to the router, and the router
The CK message is transferred to the communication terminal that transmitted the DHCPREQEST message.
【0027】DHCPサーバ5は、図3に示すアドレス
割当データベース51を持ち、端末に割当てるアドレ
ス、ネットワークマスクおよびデフォルトルータのアド
レスを決定する。なお、本例では示していないが、DH
CPにおいてはその他の設定パラメータの割当も可能で
ある。The DHCP server 5 has an address assignment database 51 shown in FIG. 3, and determines an address to be assigned to a terminal, a network mask, and an address of a default router. Although not shown in this example, DH
In the CP, other setting parameters can be assigned.
【0028】アドレス割当データベース51は、DHC
Pリレーエージェントのアドレス(リレーエージェント
の位置するルータのアドレス)を含むエージェントアド
レスフィールド511、DHCPメッセージを受信した
エージェントの回線識別子を含むエージェント回線ID
フィールド512、端末に通知するデフォルトルータの
アドレスを含むデフォルトルータアドレスフィールド5
13、端末に割当てるアドレスのプールを含むアドレス
プールフィールド514、ネットワークマスク長を含む
ネットワークマスク長フィールド515、および、端末
に割当てたIPアドレスを含む割当済アドレスフィールド
516から成る。ここでは、リレーエージェントのアド
レスがx.x.x.x、エージェント回線IDが1の場
合、通信端末に割当てるデフォルトルータのアドレスが
x.x.x.xであり、通信端末に割当てるIPアドレス
は、x.x.x.2からx.x.x.244の中から選択さ
れ、ネットワークマスク長は24であり、さらに、x.
x.x.2とx.x.x.3は既に割当済であることを示し
ている。The address assignment database 51 stores the DHC
Agent address field 511 containing the address of the P relay agent (address of the router where the relay agent is located), agent line ID containing the line identifier of the agent that received the DHCP message
Field 512, default router address field 5 containing the address of the default router to notify the terminal
13, an address pool field 514 containing a pool of addresses to be assigned to the terminal, a network mask length field 515 containing the network mask length, and an assigned address field 516 containing the IP address assigned to the terminal. Here, when the address of the relay agent is xxx.xx and the agent line ID is 1, the address of the default router assigned to the communication terminal is xxx.xx, and the IP address assigned to the communication terminal is , Xxx.2 to xxx.244. The network mask length is 24.
xxx.2 and xxx.3 indicate that they have already been allocated.
【0029】通信端末が、ネットワーク1においてDH
CPDISCOVERメッセージをブロードキャストで
送信するため、図1のようにネットワーク1に接続され
ているルータが複数存在する場合、これらのメッセージ
は、ルータ31とルータ32の両方で受信され、それら
のルータの両方が通常のDHCPリレーエージェント機
能を有する場合、DHCPサーバ5に対して二つのDH
CPDISCOVERメッセージが送信されることにな
る。つまり、通常のDHCPリレーエージェントを用い
た場合、DHCPサーバ5において、DHCODISC
OVERメッセージの送信者を識別し、同一の送信者か
らの複数のDHCPDISCOVERメッセージに対し
ては、DHCPOFFERメッセージを一つのみ送信す
るか、または、二つのDHCPOFFERメッセージを
送信し、端末側でどちらかのDHCPOFFERメッセ
ージに対するDHCPREQUESTメッセージを一つ
のみ送信する必要がある。When the communication terminal establishes a DH
In order to transmit the CPDISCOVER message by broadcast, when there are a plurality of routers connected to the network 1 as shown in FIG. 1, these messages are received by both the router 31 and the router 32, and both of the routers are used. In the case of having a normal DHCP relay agent function, two DHCPs are sent to the DHCP server 5.
A CPDISCOVER message will be sent. That is, when a normal DHCP relay agent is used, DHCP server 5
The sender of the OVER message is identified, and for a plurality of DHCPDISCOVER messages from the same sender, only one DHCPOFFER message is transmitted, or two DHCPOFFER messages are transmitted, and either It is necessary to send only one DHCPREQUEST message for the DHCPOFFER message.
【0030】本実施形態では、通信端末がブロードキャ
ストで送信するDHCPDISCOVERメッセージお
よびDHCPREQUESTメッセージを中継するDH
CPリレーエージェントをネットワーク内で一つ選択
し、さらに、選択したDHCPリレーエージェントによ
って、DHCPサーバにおいて適切なルータをデフォル
トゲートウェイとする設定パラメータを選択可能とする
付加情報をDHCPメッセージに追加する機能を提供す
る。適切なデフォルトゲートウェイとは、例えば、複数
のルータの中で、最も負荷の軽い状態のルータであり、
負荷とは、パケット転送負荷やそのルータをデフォルト
ゲートウェイとする端末数などによって規定することが
考えられる。これによって、ネットワーク1とネットワ
ーク2間の通信を複数のルータによって負荷分散でき
る。以下で本実施形態のDHCPリレーエージェントの
動作を説明する。In the present embodiment, the communication terminal relays a DHCPDISCOVER message and a DHCPREQUEST message transmitted by broadcast.
Provides a function to select one CP relay agent in the network, and to add to the DHCP message additional information that allows the DHCP server to select a configuration parameter that makes the appropriate router the default gateway in the DHCP server. I do. An appropriate default gateway is, for example, the router with the lightest load among multiple routers,
The load may be defined by a packet transfer load, the number of terminals whose router is the default gateway, and the like. Thus, communication between the network 1 and the network 2 can be load-balanced by a plurality of routers. Hereinafter, the operation of the DHCP relay agent of the present embodiment will be described.
【0031】図1において、ネットワーク1とネットワ
ーク2を接続する全ルータで、DHCPリレーエージェ
ントが機能している。本実施形態のDHCPリレーエー
ジェントは、通常のDHCPリレーエージェントの機能
に加えて、DHCPリレーエージェント間でルータの負
荷情報を交換する機能を持つ。さらに、DHCPリレー
エージェントとしてDHCPメッセージを中継する状態
であるマスター状態とDHCPメッセージを中継しない
状態であるスレーブ状態を持つ。以下では、本実施形態
のDHCPリレーエージェントをリレーエージェントと
呼び、マスター状態のリレーエージェントをマスターリ
レーエージェント、スレーブ状態のリレーエージェント
をスレーブリレーエージェントと呼ぶ。In FIG. 1, a DHCP relay agent functions in all routers connecting the networks 1 and 2. The DHCP relay agent of the present embodiment has a function of exchanging router load information between DHCP relay agents, in addition to the function of a normal DHCP relay agent. Further, it has a master state in which a DHCP message is relayed as a DHCP relay agent and a slave state in which no DHCP message is relayed. Hereinafter, the DHCP relay agent of the present embodiment is called a relay agent, a relay agent in a master state is called a master relay agent, and a relay agent in a slave state is called a slave relay agent.
【0032】図5は、ルータが、ルータ31とルータ3
2の二台の場合を用いて、リレーエージェントの動作を
説明するシーケンス図である。本例では、ルータ31の
リレーエージェントがマスター状態となり、ルータ2の
リレーエージェントがスレーブ状態となっている。初期
化後の状態がどちらになるかは、例えば、初期設定によ
って決めればよい。ただし、マスター状態となるリレー
エージェントは唯一であり、その他のリレーエージェン
トは全てスレーブ状態にならなければならない。そし
て、マスターリレーエージェントのみが、通信端末とD
HCPサーバ間のDHCPメッセージを中継する。FIG. 5 shows that the routers are the router 31 and the router 3
FIG. 9 is a sequence diagram illustrating the operation of the relay agent using two cases of two relay agents. In this example, the relay agent of the router 31 is in the master state, and the relay agent of the router 2 is in the slave state. Which state after initialization may be determined, for example, by initial setting. However, only one relay agent is in the master state, and all other relay agents must be in the slave state. Only the master relay agent communicates with the communication terminal
Relays DHCP messages between HCP servers.
【0033】マスターリレーエージェントは、図6に示
すリレーエージェント状態管理テーブルを持つ。リレー
エージェント状態管理テーブルは、ルータを識別するル
ータIDフィールド521、および、そのルータIDで
識別されるルータに関して、デフォルトルータとなるイ
ンタフェースを示す回線識別子を含むエージェント回線
IDフィールド522、パケット転送に関する負荷状態
を含むパケット転送負荷フィールド523、DHCPに
よる新規登録要求に対して、デフォルトルータとなるか
どうかの状態を示すデフォルトルータフラグフィールド
524から成る。デフォルトルータフラグがセットされ
るルータは、常に一つである。図6では、ルータIDが
1のルータがその時点の新規要求に対するデフォルトル
ータとなっている。The master relay agent has a relay agent status management table shown in FIG. The relay agent state management table includes a router ID field 521 for identifying a router, an agent line ID field 522 including a line identifier indicating an interface to be a default router for the router identified by the router ID, a load state for packet transfer. And a default router flag field 524 indicating whether or not to become a default router in response to a new registration request by DHCP. The default router flag is always set to one router. In FIG. 6, the router whose router ID is 1 is the default router for the new request at that time.
【0034】スレーブリレーエージェントは、図5のシ
ーケンス図に示すように、マスターリレーエージェント
に対して定期的にINFORMメッセージを送信する。
デフォルトルータの初期設定値は、任意のルータで良い
が、ここでは、マスターリレーエージェントの位置する
ルータをデフォルトルータとしている(553)。図7
にINFORMメッセージを示す。INFORMメッセ
ージは、マスターエージェントの位置するルータを宛先
とするアドレスを含み、メッセージをそのルータへ届け
るためのメッセージヘッダ530と、送信したスレーブ
リレーエージェントの位置するルータを示すルータID
531と、そのルータに関して、デフォルトルータとな
るときに使用する回線を収容するインタフェースを示す
エージェント回線ID532と、パケット転送に関する
負荷状態を含むパケット転送負荷533を含む。マスタ
ーリレーエージェントは、このINFORMメッセージ
を受信することによって、図5に示すようにルータ間の
負荷状態を比較し、デフォルトルータを決定する(55
4と555、および、556と557)。また、図6に
示すリレーエージェント状態管理テーブルを作成する。
この処理の詳細を、図8のフローチャートを用いて以下
で説明する。As shown in the sequence diagram of FIG. 5, the slave relay agent periodically sends an INFORM message to the master relay agent.
The default setting value of the default router may be any router, but here, the router where the master relay agent is located is set as the default router (553). FIG.
Shows an INFORM message. The INFORM message includes an address addressed to the router where the master agent is located, a message header 530 for delivering the message to the router, and a router ID indicating the router where the transmitted slave relay agent is located.
531, an agent line ID 532 indicating an interface accommodating a line used when the router becomes a default router, and a packet transfer load 533 including a load state related to packet transfer. By receiving this INFORM message, the master relay agent compares the load status between routers as shown in FIG. 5 and determines the default router (55).
4 and 555, and 556 and 557). Further, a relay agent status management table shown in FIG. 6 is created.
Details of this processing will be described below with reference to the flowchart of FIG.
【0035】図8は、デフォルトルータ決定手順のフロ
ーチャートである。マスターリレーエージェントは、I
NFORMメッセージを受信すると、INFORMメッ
セージに含まれるルータID531とパケット転送負荷
533によって、リレーエージェント状態管理テーブル
のパケット転送負荷フィールド523を更新する。ま
た、INFORMメッセージに含まれるエージェント回
線IDフィールド532の値とリレーエージェント状態
管理テーブルのエージェント回線IDフィールド522
の値が異なる場合、エージェント回線IDフィールド5
22の値をエージェント回線IDフィールド532の値
で更新する(541)。FIG. 8 is a flowchart of the default router determination procedure. The master relay agent has I
When the NFORM message is received, the packet transfer load field 523 of the relay agent status management table is updated with the router ID 531 and the packet transfer load 533 included in the INFORM message. Also, the value of the agent line ID field 532 included in the INFORM message and the agent line ID field 522 of the relay agent status management table
Are different, the agent line ID field 5
The value of 22 is updated with the value of the agent line ID field 532 (541).
【0036】続いて、リレーエージェント状態管理テー
ブルを参照し、デフォルトルータフラグの立っているル
ータのパケット転送負荷値をその他のルータのパケット
転送負荷値によって減算する(542)。減算結果の判
定には、マージン値Xを使用する。マージン値Xの値
は、任意の整数値であり、負荷のわずかな違いによるデ
フォルトルータの変更によって、デフォルトルータが過
度に変更されることを防止するものである。例えば、パ
ケット転送負荷値をそのルータのパケット転送能力に対
する使用率で示す場合、マージン値Xは、10%のよう
に規定できる。ここで、減算結果が、全ルータに関して
マージン値Xよりも小さい場合、つまり、現在のデフォ
ルトルータの負荷に対して、マージン値Xを超えて負荷
の低いルータが無い場合、そのまま終了する。一つでも
演算結果がマージン値Xよりも大きいものがあれば、最
も大きな値のルータ、つまり、最も負荷の低いルータを
デフォルトルータとし、リレーエージェント状態管理テ
ーブルのそのルータのデフォルトルータフラグをセット
する(543)。Subsequently, referring to the relay agent state management table, the packet transfer load value of the router with the default router flag set is subtracted by the packet transfer load value of the other routers (542). The margin value X is used to determine the result of the subtraction. The value of the margin value X is an arbitrary integer value, which prevents the default router from being excessively changed by the change of the default router due to a slight difference in load. For example, in the case where the packet transfer load value is indicated by the usage rate with respect to the packet transfer capability of the router, the margin value X can be specified as 10%. Here, if the subtraction result is smaller than the margin value X for all the routers, that is, if there is no router whose load exceeds the margin value X with respect to the current default router load, the process ends as it is. If at least one operation result is larger than the margin value X, the router with the largest value, that is, the router with the lowest load is set as the default router, and the default router flag of the router in the relay agent state management table is set. (543).
【0037】次に、本実施形態のマスターリレーエージ
ェントによるDHCPメッセージの中継と、DHCPサ
ーバによる端末のアドレス、ネットマスク長、デフォル
トルータのアドレスの割当方法を説明する。なお、マス
ターリレーエージェントの動作に関しては、通常のDH
CPリレーエージェントの動作と異なる部分のみを説明
する。通常のDHCPリレーエージェントの動作に関し
ては、IETFのRFC2131に詳しい記述がある。Next, a method of relaying a DHCP message by the master relay agent and assigning a terminal address, a netmask length, and a default router address by the DHCP server according to the present embodiment will be described. Incidentally, regarding the operation of the master relay agent, the normal DH
Only the part different from the operation of the CP relay agent will be described. The normal operation of the DHCP relay agent is described in detail in RFC2131 of IETF.
【0038】図2は、通信端末、ルータ、DHCPサー
バ間のDHCPメッセージ交換シーケンスを示した図で
あった。ここで、ルータにおいてDHCPメッセージを
中継する機能が本実施形態のマスターリレーエージェン
トである。図4は、DHCPメッセージのフォーマット
を示した図である。図中の数字はフィールドサイズ(バ
イト数)である。メッセージの種類は、op値561に
よって識別される。FIG. 2 is a diagram showing a DHCP message exchange sequence between a communication terminal, a router, and a DHCP server. Here, the function of relaying the DHCP message in the router is the master relay agent of the present embodiment. FIG. 4 is a diagram showing a format of a DHCP message. The numbers in the figure are the field sizes (the number of bytes). The message type is identified by the op value 561.
【0039】通信端末は、起動時または再設定時に、ブ
ロードキャストによってDHCPDISCOVERメッ
セージをネットワークに送信する。マスターリレーエー
ジェントは、そのDHCPDISCOVERメッセージ
を受信し、DHCPDISCOVERメッセージのgi
addrフィールド562にリレーエージェントのアド
レスを設定する。リレーエージェントのアドレスは、そ
のリレーエージェントが位置するルータの持つアドレス
であり、DHCPサーバによってリレーエージェントを
識別するアドレスである。このgiaddr値の設定
は、通常のDHCPリレーエージェントにおいても行わ
れる処理である。続いて、本実施形態のリレーエージェ
ントでは、リレーエージェント状態管理テーブルを参照
し、デフォルトルータフラグがセットされているルータ
のエージェント回線IDフィールド値522を、DHC
PDISCOVERメッセージのoptionフィール
ド562にAgent Circuit ID値として
設定し、DHCPサーバに転送する。The communication terminal transmits a DHCPDISCOVER message to the network by broadcast at the time of starting or resetting. The master relay agent receives the DHCPDISCOVER message and sends a gi of the DHCPDISCOVER message.
The address of the relay agent is set in the addr field 562. The address of the relay agent is an address of the router where the relay agent is located, and is an address for identifying the relay agent by the DHCP server. The setting of the giaddr value is a process that is also performed in a normal DHCP relay agent. Subsequently, the relay agent of the present embodiment refers to the relay agent status management table, and sets the agent line ID field value 522 of the router for which the default router flag is set to the DHCP address.
An Agent Circuit ID value is set in the option field 562 of the PDISCOVER message and transferred to the DHCP server.
【0040】Agent Circuit IDは、R
FC3046によって規定されているDHCPメッセー
ジのオプション情報である。本来は、DHCPリレーエ
ージェントにおいて、DHCPDISCOVERメッセ
ージなどを受信したインタフェースを示す情報であり、
DHCPサーバにおいて、通信端末に割当てるパラメー
タの細かい選択に用いるものである。例えば、図3に示
したアドレス割当てデータベースでは、エージェント回
線IDフィールドを持つことによって、DHCPリレー
エージェントを示すエージェントアドレス511に加え
て、AgentCircuit IDによる割当てパラ
メータの選択を可能にしている。本実施形態のリレーエ
ージェントでは、このAgent Circuit I
Dをデフォルトルータの識別情報として用いることによ
って、Agent Circuit IDに対応してい
る標準的なDHCPサーバによるネットワーク構築を可
能にしている。つまり、本実施の形態では、Agent
Circuit IDをマスターリレーエージェント
の位置するルータの回線識別子のみでなく、その他のル
ータの回線識別子としても利用している。The Agent Circuit ID is R
This is option information of a DHCP message defined by FC3046. Originally, it is information indicating the interface that received the DHCPDISCOVER message or the like in the DHCP relay agent,
The DHCP server is used for fine selection of parameters to be allocated to communication terminals. For example, in the address assignment database shown in FIG. 3, by having an agent line ID field, it is possible to select an assignment parameter by an AgentCircuit ID in addition to an agent address 511 indicating a DHCP relay agent. In the relay agent of the present embodiment, the Agent Circuit I
By using D as the identification information of the default router, it is possible to construct a network using a standard DHCP server corresponding to the Agent Circuit ID. That is, in the present embodiment, Agent
The Circuit ID is used not only as the line identifier of the router where the master relay agent is located, but also as the line identifier of other routers.
【0041】なお、Optionフィールド562に独
自の情報を付加することによって、DHCPサーバにお
ける通信端末の設定パラメータの選択を行うことも可能
である。ただし、その場合には、DHCPサーバにおい
ても、その独自情報への対応が必要である。By adding unique information to the Option field 562, it is also possible to select a communication terminal setting parameter in the DHCP server. However, in that case, it is necessary for the DHCP server to also deal with the unique information.
【0042】DHCPサーバは、DHCPDISCOV
ERメッセージを受信すると、アドレス割当データベー
ス51のリレーエージェント回線IDフィールド512
を参照し、DHCPDISCOVERメッセージのop
tionフィールド562のAgent Circui
t ID値に示された値と一致するエントリを選択す
る。そして、選択したエントリのアドレスプールフィー
ルド514と割当済アドレスフィールド516により端
末に割当て可能なアドレスを決定し、ネットマスク長フ
ィールド515によりネットマスクを決定し、デフォル
トルータアドレスフィールド513により、通信端末の
デフォルトルータのアドレスを決定する。The DHCP server is DHCPDISCOV
Upon receiving the ER message, the relay agent line ID field 512 of the address assignment database 51
And the op of the DHCPDISCOVER message
Agent Circuit of the tion field 562
Select an entry that matches the value indicated in the t ID value. The address that can be assigned to the terminal is determined by the address pool field 514 and the assigned address field 516 of the selected entry, the netmask is determined by the netmask length field 515, and the default of the communication terminal is determined by the default router address field 513. Determine the router address.
【0043】DHCPサーバは、決定した端末のIPア
ドレスをyiaddrフィールド563に設定し、ネッ
トマスクとデフォルトルータのIPアドレスをopti
onsフィールド564に設定したDHCPOFFER
メッセージを作成し、マスターリレーエージェントへ送
信する。マスターリレーエージェントは、そのDHCP
OFFERメッセージを端末に転送し、さらに、端末か
ら送信されるDHCPREQUESTメッセージをDH
CPサーバに転送し、DHCPサーバの送信するDHC
PACKメッセージを端末に転送する。The DHCP server sets the IP address of the determined terminal in the yaddr field 563, and sets the netmask and the IP address of the default router to opti.
DHCPOFFER set in the ons field 564
Create a message and send it to the master relay agent. The master relay agent has its DHCP
OFFER message to the terminal, and further transmits a DHCPREQUEST message transmitted from the terminal to DH
DHCP transferred to CP server and sent by DHCP server
Transfer the PACK message to the terminal.
【0044】以上、DHCPによって割当てられる通信
端末の設定パラメータを、ルータの負荷に応じて変更す
ることによる負荷分散方法の一実施例を説明した。以下
では、さらに、複数のルータがお互いにバックアップと
なることで、ルータ間での負荷分散とルータ間でのバッ
クアップを同時に行う実施例を説明する。The embodiment of the load distribution method by changing the setting parameter of the communication terminal assigned by the DHCP according to the load of the router has been described above. In the following, an embodiment will be described in which a plurality of routers serve as backups for each other so that load distribution between routers and backup between routers are simultaneously performed.
【0045】図1に示したネットワークのように、二つ
のネットワークを複数のルータで接続したネットワーク
において、複数のルータ間での負荷分散とバックアップ
を行うことを目的としたプロトコルにIETFで規定さ
れたVRRPがある。ただし、VRRPでは、通信端末
によるデフォルトルータの選択方法は規定されておら
ず、一般的には、通信端末に手動で設定することとな
り、効果的な負荷分散を行うことが困難である。また、
多くの通信端末の手動設定は、設定負荷が大きく、ま
た、不正設定の可能性があるなど管理上も好ましくな
い。As in the network shown in FIG. 1, in a network in which two networks are connected by a plurality of routers, a protocol intended for load distribution and backup between a plurality of routers is defined by IETF. There is VRRP. However, VRRP does not prescribe a method of selecting a default router by a communication terminal, and generally requires manual setting on the communication terminal, making it difficult to perform effective load distribution. Also,
Manual setting of many communication terminals is not preferable in terms of management because of a large setting load and a possibility of improper setting.
【0046】負荷に対応してデフォルトルータを切替え
る本実施形態をVRRPと同時に用いることにより、V
RRPを用いたネットワークにおける負荷分散を効率良
く、かつ、自動的に行えるようになる。以下では、VR
RPを用いた環境における本実施形態の実施の形態を説
明する。By using this embodiment for switching the default router according to the load simultaneously with VRRP,
It becomes possible to efficiently and automatically perform load distribution in a network using RRP. In the following, VR
An embodiment of the present embodiment in an environment using an RP will be described.
【0047】まず、VRRPの概要を説明する。図10
は、VRRPを用いたネットワーク構成を説明する図で
ある。ネットワーク1とネットワーク2は、ルータ33
とルータ34によって接続されている。VRRPでは、
これら二つのルータを、仮想的に一つの仮想ルータA3
5とみなす。ここで、ルータ33は、仮想ルータA35
のマスタールータであり、仮想ルータA35として実際
に動作するルータである。ルータ34は、仮想ルータA
35のバックアップルータであり、マスタールータの障
害に対するバックアップとなる。同様に、ルータ33と
ルータ34を、仮想的に一つの仮想ルータB36とみな
し、ルータ34を仮想ルータB36のマスタールータ、
ルータ33を仮想ルータB36のバックアップルータと
している。ここで、仮想ルータB36として実際に動作
するのはルータ34である。したがって、このネットワ
ークにおいては、仮想ルータA35として実際にパケッ
ト転送を行うルータ33と、仮想ルータB36として実
際にパケット転送を行うルータ34によって負荷分散が
行われている。さらに、ルータ33とルータ34が相互
にバックアップルータとなっている。First, the outline of VRRP will be described. FIG.
FIG. 1 is a diagram illustrating a network configuration using VRRP. Network 1 and network 2 are connected to router 33
And a router 34. In VRRP,
These two routers are virtually one virtual router A3
Assume 5 Here, the router 33 is a virtual router A35.
And a router that actually operates as the virtual router A35. The router 34 is a virtual router A
There are 35 backup routers that serve as backups for the failure of the master router. Similarly, the router 33 and the router 34 are virtually regarded as one virtual router B36, and the router 34 is a master router of the virtual router B36,
The router 33 is a backup router for the virtual router B36. Here, the router 34 actually operates as the virtual router B36. Therefore, in this network, load distribution is performed by the router 33 that actually transfers packets as the virtual router A 35 and the router 34 that actually transfers packets as the virtual router B 36. Further, the routers 33 and 34 are mutually backup routers.
【0048】図11は、図10に示した二台のルータに
よるネットワーク構成を例として、VRRPのメッセー
ジ交換シーケンスを示している。VRRPでは、マスタ
ールータが、マルチキャストによって、ADVERTI
SEメッセージを全てのバックアップルータへ定期的に
送信する。これによって、バックアップルータがマスタ
ールータの状態を監視し、マスタールータの障害発生時
にバックアップルータがマスタールータとなり、仮想ル
ータの処理を引継ぐ。FIG. 11 shows a VRRP message exchange sequence using the example of the network configuration of the two routers shown in FIG. In VRRP, the master router uses the ADVERTI
An SE message is periodically sent to all backup routers. As a result, the backup router monitors the status of the master router, and when a failure occurs in the master router, the backup router becomes the master router and takes over the processing of the virtual router.
【0049】図11では、仮想ルータAのマスタールー
タであるルータ33と仮想ルータBのマスタールータで
あるルータ34が、それぞれのバックアップルータであ
るルータ34とルータ33にADVERTISEメッセ
ージを送信している。そして、ルータ33の障害発生
(571)によって、仮想ルータAのマスタールータか
らのADVERTISEメッセージの送信が停止し、ル
ータ34で動作している仮想ルータAのバックアップル
ータのマスターダウンタイマがタイムアウトし、ルータ
34が仮想ルータAのマスタールータとなる状況(57
2)を示している。さらに、ルータ33が障害から復帰
し(573)、仮想ルータAのマスタールータとしての
動作を再開し、ADVERTISEメッセージを送信す
ることで、ルータ34が、仮想ルータAのバックアップ
ルータとなる状況(574)を示している。In FIG. 11, the router 33 which is the master router of the virtual router A and the router 34 which is the master router of the virtual router B transmit the ADVERTISE message to the respective routers 34 and 33 which are backup routers. Then, when the failure of the router 33 occurs (571), the transmission of the ADVERTISE message from the master router of the virtual router A stops, and the master down timer of the backup router of the virtual router A operating on the router 34 times out. 34 becomes the master router of virtual router A (57
2) is shown. Furthermore, the router 33 recovers from the failure (573), resumes the operation of the virtual router A as the master router, and transmits an ADVERTISE message, whereby the router 34 becomes the backup router of the virtual router A (574). Is shown.
【0050】図12は、VRRPと本実施形態の負荷分
散方法を組み合わせた場合のメッセージ交換シーケンス
の一例を示している。本実施形態のリレーエージェント
は、各仮想ルータのマスタールータで動作する。本例で
は、仮想ルータAがマスターリレーエージェントとな
り、仮想ルータBがスレーブリレーエージェントとなっ
ている。したがって、マスターリレーエージェントは、
仮想ルータAのマスタールータであるルータ33で動作
している。また、スレーブリレーエージェントは、仮想
ルータBのマスタールータであるルータ34で動作し、
仮想ルータAのマスタールータであるルータ33にIN
FORMメッセージを定期的に送信している。INFO
RMメッセージは、図中の破線で示している(57
5)。なお、同図では、VRRPのADVERTISE
メッセージの送信間隔とINFORMメッセージの送信
間隔を同じとしているが、本実施形態とVRRPは独立
であり、異なる送信間隔であってもよい。FIG. 12 shows an example of a message exchange sequence when VRRP and the load distribution method of the present embodiment are combined. The relay agent of this embodiment operates on the master router of each virtual router. In this example, the virtual router A is a master relay agent, and the virtual router B is a slave relay agent. Therefore, the master relay agent
The router 33 operates as the master router of the virtual router A. Also, the slave relay agent operates on the router 34 which is the master router of the virtual router B,
IN to router 33 which is the master router of virtual router A
The FORM message is transmitted periodically. INFO
The RM message is indicated by a broken line in the figure (57
5). In the figure, the ADVERTISE of VRRP is shown.
Although the message transmission interval and the INFORM message transmission interval are the same, the present embodiment and VRRP are independent and may have different transmission intervals.
【0051】本実施形態のリレーエージェントは、各仮
想ルータのマスタールータで動作している。マスターリ
レーエージェントは唯一であるため、一つの仮想ルータ
のマスタールータで動作し、その他の仮想ルータのマス
タールータで、スレーブリレーエージェントが動作する
ことになる。したがって、全てのルータが、どれかの仮
想ルータのマスタールータとなり、その他全てのルータ
をその仮想ルータのバックアップルータとするネットワ
ーク構成においては、マスターリレーエージェントの位
置するルータに対して、その他のルータには全てスレー
ブリレーエージェントが位置しており、それら全てのル
ータからVRRPのADVERTISEメッセージが定
期的に送信されることになる。The relay agent of this embodiment operates on the master router of each virtual router. Since there is only one master relay agent, it operates on the master router of one virtual router, and the slave relay agent operates on the master router of another virtual router. Therefore, in a network configuration where all routers are master routers for any virtual router and all other routers are backup routers for that virtual router, the router where the master relay agent is located is Are all slave relay agents, and a VRRP ADVERTISE message is periodically transmitted from all the routers.
【0052】このADVERTISEメッセージに本実
施形態のINFORMメッセージで伝達する情報を含ま
せることによって、ルータ間で交換するメッセージ数を
削減することができる。図13は、VRRPで規定され
ているADVERISEメッセージに、図7に示した本
実施形態で用いるINFORMメッセージで伝達する情
報を加えたメッセージを示している。図中の数値はフィ
ールドサイズ(バイト数)である。エージェント回線I
D534とパケット転送負荷535がオリジナルのAD
VERTISEメッセージに対して加えられたフィール
ドであり、その他のフィールドは、VRRPで規定され
ているものである。なお、図7で示したINFORMメ
ッセージのルータID531は、ルータを識別する情報
であり、ここでは、仮想ルータを識別するIDであるV
R ID536が使用できる。By including the information transmitted in the INFORM message of the present embodiment in the ADVERTISE message, the number of messages exchanged between routers can be reduced. FIG. 13 shows a message obtained by adding information transmitted in the INFORM message used in the present embodiment shown in FIG. 7 to the ADVERISE message specified by VRRP. Numerical values in the figure are field sizes (number of bytes). Agent Line I
D534 and the packet transfer load 535 are the original AD
This is a field added to the VERTISE message, and the other fields are specified by VRRP. Note that the router ID 531 of the INFORM message shown in FIG. 7 is information for identifying a router. In this example, V is an ID for identifying a virtual router.
R ID 536 can be used.
【0053】なお、VRRPによるマスタールータとバ
ックアップルータの切替時には、リレーエージェント状
態管理テーブルの情報が失われる。しかしながら、新し
いマスタールータにおいて、マスターリレーエージェン
トが初期化状態より起動することによって、マスターリ
レーエージェントの機能を再開することが出来る。ただ
し、一時的に最適でないデフォルトルータが選択される
可能性がある。この一時的な、最適でないデフォルトル
ータの選択を防止するためには、マスターリレーエージ
ェントの位置する仮想ルータのスレーブエージェントに
おいても、INFORMメッセージまたはINFORM
メッセージに含まれる情報を持つADVERTISEメ
ッセージを受信し、リレーエージェント管理テーブルを
作成しておけばよい。When switching between the master router and the backup router by VRRP, information in the relay agent status management table is lost. However, in the new master router, the function of the master relay agent can be resumed by starting the master relay agent from the initialization state. However, a default router that is not optimal may be temporarily selected. In order to prevent this temporary, non-optimal selection of the default router, the INFORM message or INFORM message is also sent to the slave agent of the virtual router where the master relay agent is located.
An ADVERTISE message having information included in the message may be received and a relay agent management table may be created.
【0054】図14は、本実施形態のリレーエージェン
ト機能を持ったルータの一構成例の概略図である。例と
して、図1に示したルータ31を用いている。ルータ3
1は、インターフェース311で回線11を介してネッ
トワーク1と接続し、インタフェース312で回線21
を介してネットワーク2に接続している。パケット転送
部313は、インタフェース部と接続されており、イン
タフェース間でのパケット転送を行う。パケット転送部
は、受信したパケットが、DHCPメッセージまたは本
実施形態のINFROMメッセージの場合、それをリレ
ーエージェント315へ転送する。またVRRPメッセ
ージも一旦リレーエージェント315へ転送し、本実施
形態の付加情報であるエージェント回線IDとパケット
転送負荷情報を用いた処理を行い、これらの情報を削除
して、VRRP機能部317へ転送する。FIG. 14 is a schematic diagram of a configuration example of a router having a relay agent function according to the present embodiment. As an example, the router 31 shown in FIG. 1 is used. Router 3
Reference numeral 1 denotes an interface 311 connected to the network 1 via the line 11, and an interface 312
Is connected to the network 2 via. The packet transfer unit 313 is connected to the interface unit, and performs packet transfer between the interfaces. When the received packet is the DHCP message or the INFROM message of the present embodiment, the packet transfer unit transfers the packet to the relay agent 315. Also, the VRRP message is once transferred to the relay agent 315, the process using the agent line ID and the packet transfer load information, which are additional information of the present embodiment, is performed, and the information is deleted and transferred to the VRRP function unit 317. .
【0055】リレーエージェント315は、リレーエー
ジェント状態管理テーブル316を持ち、上記のよう
に、INFORMメッセージやADVERTISEメッ
セージを用いてリレーエージェント状態管理テーブル3
16を作成する。そして、リレーエージェント状態管理
テーブル316にしたがって、通信端末から受信するD
HCP DISCOVERメッセージに情報を付加し、
DHCPサーバへ転送する。また、その他のDHCPメ
ッセージを通信端末のDHCPクライアントとDHCP
サーバで中継する。これらのリレーエージェント機能3
15およびVRRP機能317は、例えば、CPU31
4において処理されるソフトウェアによって実現する。The relay agent 315 has a relay agent status management table 316, and as described above, uses the INFORM message and the ADVERTISE message to store the relay agent status management table 316.
16 is created. Then, according to the relay agent status management table 316, D
Add information to the HCP DISCOVER message,
Transfer to DHCP server. Also, other DHCP messages are transmitted to the DHCP client of the communication terminal and the
Relay on the server. These relay agent functions 3
15 and the VRRP function 317 are, for example, the CPU 31
4 is realized by the software processed.
【0056】以上の例では、リレーエージェントが常に
特定のルータまたは仮想ルータで動作している。そし
て、リレーエージェント状態管理テーブルでデフォルト
ルータフラグとエージェント回線IDを管理することに
よって、他のルータまたは仮想ルータをデフォルトルー
タとして選択する設定パラメータをDHCPサーバにお
いて選択するための情報をDHCP DISCOVER
メッセージへ付加している。以下では、マスターリレー
エージェントの位置するルータまたは仮想ルータが、常
にその時点での新規加入者に対するデフォルトルータと
なる実施の形態を示す。In the above example, the relay agent always operates on a specific router or virtual router. Then, by managing the default router flag and the agent line ID in the relay agent state management table, information for selecting a setting parameter for selecting another router or a virtual router as the default router in the DHCP server is DHCP DISCOVER.
Attached to the message. In the following, an embodiment is described in which the router or virtual router where the master relay agent is located is always the default router for new subscribers at that time.
【0057】図15は、本実施の形態におけるルータ間
でのメッセージ交換シーケンス図である。ネットワーク
構成は、図1で示した構成を例としている。ここでは、
初期状態において、ルータ31がマスターリレーエージ
ェント。ルータ32がスレーブリレーエージェントとな
っている。どのルータがマスターリレーエージェントと
なるかの選択は、例えば、初期設定値決定してよい。た
だし、マスターリレーエージェントは唯一でなければな
らず、その他のリレーエージェントは全てスレーブ状態
にならなければならない。そして、マスターリレーエー
ジェントのみが、通信端末とDHCPサーバ間のDHC
Pメッセージを中継する。FIG. 15 is a message exchange sequence diagram between routers in the present embodiment. The network configuration exemplifies the configuration shown in FIG. here,
In an initial state, the router 31 is a master relay agent. The router 32 is a slave relay agent. The selection of which router will be the master relay agent may be determined, for example, by default. However, the master relay agent must be unique and all other relay agents must be in slave state. Then, only the master relay agent performs DHCP between the communication terminal and the DHCP server.
Relay the P message.
【0058】図15に示すように、スレーブリレーエー
ジェントとなったルータ32は、マスターリレーエージ
ェントとなったルータ31に定期的にINFORMメッ
セージを送信する。INFORMメッセージのフォーマ
ットは、図7と同様であるが、エージェント回線ID5
82は含まなくとも良い。なぜなら、マスターリレーエ
ージェントが常にその時点での新規設定に関するデフォ
ルトルータとなるため、常に自己の位置するルータの回
線IDをエージェント回線IDとして用いるからであ
る。As shown in FIG. 15, the router 32 that has become the slave relay agent periodically sends an INFORM message to the router 31 that has become the master relay agent. The format of the INFORM message is the same as that of FIG.
82 need not be included. This is because the master relay agent is always the default router for the new settings at that time, and therefore always uses the line ID of the router in which it is located as the agent line ID.
【0059】マスターリレーエージェントは、このIN
FORMメッセージを受信することによって、図15に
示すようにルータ間の負荷状態を比較し(581、58
4)、自ルータの負荷とINFORMメッセージを送信
したルータの負荷の差分がマージン値Xを超えた場合、
状態をマスターからスレーブに変更し、INFORMメ
ッセージを送信したルータにINDICATEメッセー
ジを送信する(582、585)。INDICATEメ
ッセージを受け取ったスレーブリレーエージェントは、
状態をマスターに変更し、マスターリレーエージェント
となる。INDICATEメッセージのフォーマット
は、マスターエージェントの位置するルータを宛先とす
るアドレスを含み、メッセージをそのルータへ届けるた
めのメッセージヘッダと負荷情報の比較に用いるマージ
ン値を含む。マージン値は、全リレーエージェントに対
する初期設定値とすることも出来るが、マスターリレー
エージェントにおいて、動的に変更される可能性を考慮
して、INDICATEメッセージによって、新規のマ
スターリレーエージェントへの通知を可能とする。The master relay agent sends the IN
By receiving the FORM message, the load states between the routers are compared as shown in FIG.
4) If the difference between the load on the own router and the load on the router that transmitted the INFORM message exceeds the margin value X,
The status is changed from the master to the slave, and an INDICATE message is transmitted to the router that transmitted the INFORM message (582, 585). The slave relay agent receiving the INDICATE message,
Change state to master and become master relay agent. The format of the INDICATE message includes an address addressed to the router where the master agent is located, and includes a message header for delivering the message to the router and a margin value used for comparing load information. The margin value can be set to the initial value for all relay agents, but it is possible to notify the new master relay agent by an INDICATE message in consideration of the possibility of dynamic change in the master relay agent. And
【0060】本実施の形態におけるデフォルトルータの
選択とリレーエージェントの状態変更処理手順を図16
のフローチャートを用いて以下で説明する。マスターリ
レーエージェントは、INFORMメッセージを受信す
ると、自ルータの現在の負荷とINFORMメッセージ
に含まれるINFORMメッセージを送信したルータの
負荷を比較する(591)。自ルータの負荷から情報通
知ルータの負荷を減算した値が、マージン値Xよりも大
きい場合、自己の状態をスレーブとしてスレーブリレー
エージェントとなり(592)、INFORMメッセー
ジを送信したルータへINDICATEメッセージを送
信する(593)。減算結果がマージンXよりも小さい
場合、そのまま終了する(594)。INDICATE
メッセージを受信するスレーブリレーエージェントは、
自己の状態をマスター状態として、マスターリレーエー
ジェントになる。また、負荷値の比較には、INDIC
ATEメッセージで通知されたマージン値を用いること
ができる。FIG. 16 shows a procedure for selecting a default router and changing a state of a relay agent in the present embodiment.
This will be described below with reference to the flowchart of FIG. Upon receiving the INFORM message, the master relay agent compares the current load of its own router with the load of the router that transmitted the INFORM message included in the INFORM message (591). When the value obtained by subtracting the load of the information notification router from the load of the own router is larger than the margin value X, the slave becomes the slave relay agent with its own state as a slave (592), and transmits an INDICATE message to the router that transmitted the INFO message. (593). If the subtraction result is smaller than the margin X, the process is terminated (594). INDICATE
The slave relay agent receiving the message
Becomes a master relay agent with its own state as the master state. In addition, in order to compare load values, INDIC
The margin value notified by the ATE message can be used.
【0061】本実施の形態も、前出の実施の形態と同様
に、VRRPと共に用いることができる。これによっ
て、VRRPを用いたネットワークにおける負荷分散を
効率良く、かつ、自動的に実現できる。前出の実施の形
態と異なる点は、前出の実施の形態におけるマスターリ
レーエージェントの位置する仮想ルータが、一つの仮想
ルータに固定されていたことに対して、本実施の形態に
おいては、起動または再設定を行う通信端末の設定要求
に対して、デフォルトルータとなる仮想ルータになるこ
とである。また、マスターリレーエージェントの位置す
るルータが、常に現在のデフォルトルータであるため、
リレーエージェント状態管理テーブルによって、デフォ
ルトルータの選択状態を示すデフォルトルータフラグ、
現在のデフォルトルータを初めとする各ルータの負荷状
態を管理する必要がないことも異なる点である。This embodiment can also be used together with VRRP, as in the previous embodiment. As a result, load distribution in a network using VRRP can be efficiently and automatically realized. The difference from the above embodiment is that the virtual router in which the master relay agent is located in the above embodiment is fixed to one virtual router. Alternatively, it becomes a virtual router that becomes a default router in response to a setting request of a communication terminal to be reset. Also, since the router where the master relay agent is located is always the current default router,
A default router flag indicating the selection state of the default router according to the relay agent state management table,
Another difference is that there is no need to manage the load status of each router including the current default router.
【0062】[0062]
【発明の効果】本発明によれば、既存の通信端末とDH
CPサーバに変更を加えることなく、ルータの負荷を考
慮したデフォルトルータの分散による負荷分散が可能に
なる。According to the present invention, the existing communication terminal and the DH
Without changing the CP server, the load can be distributed by distributing the default router in consideration of the load on the router.
【0063】[0063]
【図1】一実施形態におけるネットワークの一構成例で
ある。FIG. 1 is a configuration example of a network according to an embodiment.
【図2】DHCPによるメッセージ交換を示したシーケ
ンス図である。FIG. 2 is a sequence diagram showing message exchange by DHCP.
【図3】DHCPサーバのアドレス割当データベースの
登録内容を説明する図である。FIG. 3 is a diagram illustrating registered contents of an address assignment database of a DHCP server.
【図4】DHCPメッセージのフォーマットを示した図
である。FIG. 4 is a diagram showing a format of a DHCP message.
【図5】実施形態におけるリレーエージェントのメッセ
ージ交換を示すシーケンス図である。FIG. 5 is a sequence diagram illustrating message exchange of a relay agent in the embodiment.
【図6】リレーエージェント状態管理テーブルの登録内
容を説明する図である。FIG. 6 is a diagram illustrating registered contents of a relay agent status management table.
【図7】実施形態におけるリレーエージェントが用いる
INFORMメッセージのフォーマットを示した図であ
る。FIG. 7 is a diagram showing a format of an INFORM message used by a relay agent in the embodiment.
【図8】実施形態におけるリレーエージェントにおける
デフォルトルータ選択手順を説明するフローチャートで
ある。FIG. 8 is a flowchart illustrating a default router selection procedure in the relay agent according to the embodiment.
【図9】実施形態が適用されるネットワークの一構成例
である。FIG. 9 is a configuration example of a network to which the embodiment is applied;
【図10】VRRPが適用されるネットワークの一構成
例である。FIG. 10 is a configuration example of a network to which VRRP is applied;
【図11】VRRPによるルータ間のメッセージ交換と
マスター/バックアップ切替を示すシーケンス図であ
る。FIG. 11 is a sequence diagram showing message exchange between routers by VRRP and master / backup switching.
【図12】VRRPで交換するADVERTISEメッ
セージと一実施形態におけるリレーエージェントが用い
るINFORMメッセージの関係を説明するシーケンス
図である。FIG. 12 is a sequence diagram illustrating a relationship between an ADVERTISE message exchanged by VRRP and an INFORM message used by a relay agent in one embodiment.
【図13】一実施形態において拡張を加えたADVER
TISEメッセージのフォーマットを示した図である。FIG. 13 shows ADVER with extensions in one embodiment.
FIG. 4 is a diagram showing a format of a TISE message.
【図14】一実施形態におけるルータの一構成例を示す
図である。FIG. 14 is a diagram illustrating a configuration example of a router according to an embodiment.
【図15】一実施形態におけるリレーエージェントのメ
ッセージ交換を示すシーケンス図である。FIG. 15 is a sequence diagram illustrating message exchange of a relay agent in one embodiment.
【図16】一実施形態におけるリレーエージェントにお
けるデフォルトルータ選択手順を説明するフローチャー
トである。FIG. 16 is a flowchart illustrating a default router selection procedure in a relay agent according to an embodiment.
1…通信端末を収容するネットワーク、31〜34…ル
ータ、41〜44…通信端末、5…DHCPサーバ、5
1…アドレス割当データベース、35〜36…仮想ルー
タ、311〜312…インタフェース、313…パケッ
ト転送部、314…CPU、315…リレーエージェン
ト、316…リレーエージェント状態管理テーブル、3
17…VRRP機能DESCRIPTION OF SYMBOLS 1 ... Network accommodating communication terminal, 31-34 ... Router, 41-44 ... Communication terminal, 5 ... DHCP server, 5
DESCRIPTION OF SYMBOLS 1 ... Address allocation database, 35-36 ... Virtual router, 311-212 ... Interface, 313 ... Packet transfer part, 314 ... CPU, 315 ... Relay agent, 316 ... Relay agent status management table, 3
17… VRRP function
Claims (8)
とその他のネットワークを、複数のルータによって接続
する構成のネットワークで用いられるルータ設定方法で
あって、 前記複数のルータは互いに負荷情報を交換することによ
って複数のルータから最も負荷の低いルータを検出し、 いずれかの前記通信端末が、起動時または再設定時に、
自アドレスやデフォルトルータのアドレスなどの設定パ
ラメータを獲得するために、当該通信端末が接続された
ネットワークへDHCPメッセージをブロードキャスト
し、 前記通信端末毎に設定された所定のルータは、前記DH
CPメッセージに、検出された最も負荷の低い前記ルー
タを識別する情報を付加してDHCPサーバへ転送し、 前記DHCPサーバは、前記DHCPメッセージを送信
した通信端末が、最も負荷の低いルータをデフォルトル
ータとする設定パラメータを、通信端末に割当てること
を特徴とするルータ設定方法。1. A router setting method used in a network having a configuration in which a network to which a plurality of communication terminals are connected and another network are connected by a plurality of routers, wherein the plurality of routers exchange load information with each other. By detecting the router with the lowest load from a plurality of routers, one of the communication terminals is activated or reset,
In order to obtain setting parameters such as an own address and an address of a default router, a DHCP message is broadcast to a network to which the communication terminal is connected, and a predetermined router set for each of the communication terminals
Information that identifies the detected router with the lowest load is added to the CP message and transferred to a DHCP server. The DHCP server determines that the communication terminal that has transmitted the DHCP message specifies the router with the lowest load as the default router. A setting parameter to be assigned to a communication terminal.
前記DHCPメッセージを中継するリレーエージェント
手段において、DHCPメッセージを中継する状態であ
るマスター状態、または、DHCPメッセージを中継し
ない状態であるスレーブ状態のどちらかの状態を持ち、 前記複数のルータの一つはマスター状態にあり、その他
の前記ルータはスレーブ状態にあり、 スレーブ状態にある前記ルータは、そのリレーエージェ
ント機能が位置するルータの識別子、当該ルータをデフ
ォルトルータとする場合に用いるインタフェース識別
子、および、当該ルータの負荷状態を、マスター状態の
リレーエージェント機能に定期的に通知し、 マスター状態にある前記ルータは、前記ルータの識別
子、インタフェース識別子、および、負荷状態を記録す
ることによって、最も負荷の低いルータを認識し、 前記マスター状態にある前記ルータは、通信端末の送信
したDHCPメッセージをDHCPサーバに転送する際
に、DHCPメッセージに、最も負荷の低いルータをデ
フォルトルータとして用いる場合のインタフェース識別
子を付加することによって、 前記DHCPサーバに、前記通信端末に対して、最も負
荷の低いルータをデフォルトルータとして使用する設定
パラメータを選択させることを特徴とするルータ設定方
法。2. The router setting method according to claim 1, wherein the router is a master state in which relay agent means for relaying the DHCP message between the communication terminal and the DHCP server is a state for relaying a DHCP message. Alternatively, the router has one of a slave state in which it does not relay a DHCP message, one of the plurality of routers is in a master state, the other routers are in a slave state, and the router in the slave state is The relay agent function in the master state is periodically notified of the identifier of the router where the relay agent function is located, the interface identifier used when the router is set as the default router, and the load state of the router, and The router is the router By recording the identifier, interface identifier, and load state, the router with the lowest load is recognized, and the router in the master state transfers a DHCP message transmitted by a communication terminal to a DHCP server, By adding, to the DHCP message, an interface identifier when the router with the lowest load is used as the default router, the DHCP server has a setting parameter for the communication terminal that uses the router with the lowest load as the default router. A router setting method characterized by allowing the user to make a selection.
間で前記DHCPメッセージを中継するリレーエージェ
ント手段においてDHCPメッセージを中継する状態で
あるマスター状態、または、DHCPメッセージを中継
しない状態であるスレーブ状態のどちらかの状態を持
ち、 前記複数のルータの一つはマスター状態にあり、その他
の前記ルータはスレーブ状態にあり、 スレーブ状態にある前記ルータは、そのリレーエージェ
ント機能が位置するルータの識別子、および、当該ルー
タの負荷状態を、マスター状態のリレーエージェント機
能に定期的に通知し、 マスター状態にある前記ルータは、そのリレーエージェ
ント機能の位置するルータの負荷と前記スレーブ状態の
リレーエージェント機能が通知する負荷情報を比較し、
自ルータよりも負荷の低いルータを認識すると、自らは
スレーブ状態となり、負荷の低いルータに対して、マス
ター状態となる指示を送り、 前記マスター状態となる指示を受信したスレーブ状態に
ある前記ルータはマスター状態となり、 前記マスター状態にある前記ルータは、通信端末の送信
したDHCPメッセージをDHCPサーバに転送する際
に、当該リレーエージェント機能が位置するルータをデ
フォルトルータとして用いる場合のインタフェース識別
子を付加することによって、 前記DHCPサーバに、前記通信端末に対して、最も負
荷の低いルータをデフォルトルータとして使用する設定
パラメータを選択させることを特徴とするルータ設定方
法。3. The router setting method according to claim 1, wherein the relay agent means for relaying the DHCP message between the communication terminal provided in the router and the DHCP server relays the DHCP message, or , One of the plurality of routers is in a master state, the other of the plurality of routers is in a slave state, and the router in the slave state is a state in which the router is not relaying a DHCP message. The identifier of the router where the relay agent function is located, and the load state of the router are periodically notified to the relay agent function in the master state. Load and relay relay in the slave state Agent compares the load information notified by the
When recognizing a router with a lower load than its own router, the router itself becomes a slave state, sends an instruction to become a master state to a router with a lower load, and receives a command to become the master state, the router in a slave state receiving the instruction to become the master state When the router in the master state transfers the DHCP message transmitted by the communication terminal to the DHCP server, the router in the master state adds an interface identifier when the router in which the relay agent function is located is used as a default router. And causing the DHCP server to select a setting parameter for the communication terminal to use a router with the lowest load as a default router.
タールータと一つまたは複数のバックアップルータで構
成される仮想ルータであることを特徴とするルータ設定
方法。4. The router setting method according to claim 2, wherein each of the routers is a virtual router configured by VRRP with one master router and one or more backup routers. Method.
タールータと一つまたは複数のバックアップルータで構
成される仮想ルータであることを特徴とするルータ設定
方法。5. The router setting method according to claim 3, wherein each of said routers is a virtual router composed of one master router and one or more backup routers by VRRP.
てのルータがいずれかの仮想ルータのマスタールータと
なり、その他のルータをその仮想ルータのバックアップ
ルータとする構成においては、 仮想ルータのマスタールータは、VRRPで規定するA
DVERTISEメッセージを、当該仮想ルータの他の
バックアップルータに定期的に送信し、 スレーブ状態にある仮想ルータのマスタールータが、そ
のリレーエージェント機能が位置する仮想ルータの識別
子、当該仮想ルータをデフォルトルータとして用いる場
合のインタフェースの識別子、および、当該仮想ルータ
の負荷状態を、前記ADVERTISEメッセージに含
ませることによって、マスター状態のリレーエージェン
トが位置する仮想ルータのマスタールータに通知するこ
とを特徴とする仮想ルータおよび仮想ルータを構成する
ルータ。6. The router setting method according to claim 4, wherein the number of all routers and the number of virtual routers are the same, and all routers are master routers of one of the virtual routers, and the other routers are designated as virtual routers. In a configuration in which a router is used as a backup router, the master router of the virtual router uses the A specified by VRRP.
A DVERTISE message is periodically transmitted to another backup router of the virtual router, and the master router of the virtual router in the slave state uses the identifier of the virtual router where the relay agent function is located, and uses the virtual router as a default router. The virtual router and the virtual router, wherein the identifier of the interface in the case and the load state of the virtual router are included in the ADVERTISE message to notify the master router of the virtual router where the relay agent in the master state is located. The routers that make up the router.
てのルータがいずれかの仮想ルータのマスタールータと
なり、その他のルータをその仮想ルータのバックアップ
ルータとする構成において、 仮想ルータのマスタールータは、VRRPで規定するA
DVERTISEメッセージを、当該仮想ルータの他の
バックアップルータに定期的に送信し、 スレーブ状態にある仮想ルータのマスタールータが、そ
のリレーエージェント機能が位置する仮想ルータの識別
子、および、当該仮想ルータの負荷状態を、前記ADV
ERTISEメッセージに含ませることによって、マス
ター状態のリレーエージェントが位置する仮想ルータの
マスタールータに通知する仮想ルータおよび仮想ルータ
を構成するルータ。7. The router setting method according to claim 5, wherein the number of all routers and the number of virtual routers are the same, and all routers are master routers of one of the virtual routers, and the other routers are the virtual routers. In a configuration in which the router is used as a backup router, the master router of the virtual router uses the A specified by VRRP.
A DVERTISE message is periodically transmitted to another backup router of the virtual router, and the master router of the virtual router in the slave state determines the identifier of the virtual router in which the relay agent function is located, and the load state of the virtual router. With the ADV
A virtual router that notifies the master router of the virtual router where the relay agent in the master state is located by including it in the ERTISE message, and a router configuring the virtual router.
おいて、スレーブ状態にある仮想ルータのマスタールー
タが定期的に通知する、当該仮想ルータの識別子、当該
仮想ルータをデフォルトルータとして用いる場合のイン
タフェースの識別子、および、当該仮想ルータの負荷状
態を受信し、 マスター状態にある仮想ルータのマスタールータと同様
に、各仮想ルータの識別子、インタフェース識別子、お
よび、負荷状態を記録し、 マスター状態にある仮想ルータのマスタールータの障害
時に、VRRPによって、当該仮想ルータのバックアッ
プルータの一つが新しいマスタールータになった場合、
前記の各仮想ルータの識別子、インタフェース識別子、
および、負荷状態の記録を用いて、リレーエージェント
機能を初期化することなく起動することを特徴とするル
ータ設定方法。8. The router setting method according to claim 6, wherein in the backup router of the virtual router in the master state, the master router of the virtual router in the slave state periodically notifies the identifier of the virtual router, Receives the identifier of the interface when the router is used as the default router, and the load status of the virtual router, and, like the master router of the virtual router in the master status, identifies the identifier of each virtual router, the interface identifier, and the load status. When the master router of the virtual router in the master state fails, if one of the backup routers of the virtual router becomes a new master router by VRRP,
An identifier of each of the virtual routers, an interface identifier,
And a router setting method using a record of a load state to start the relay agent function without initializing it.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002149969A JP3896897B2 (en) | 2002-05-24 | 2002-05-24 | Router setting method and router |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002149969A JP3896897B2 (en) | 2002-05-24 | 2002-05-24 | Router setting method and router |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2003348136A true JP2003348136A (en) | 2003-12-05 |
| JP3896897B2 JP3896897B2 (en) | 2007-03-22 |
Family
ID=29767932
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2002149969A Expired - Fee Related JP3896897B2 (en) | 2002-05-24 | 2002-05-24 | Router setting method and router |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3896897B2 (en) |
Cited By (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2005101760A1 (en) * | 2004-04-15 | 2005-10-27 | Nec Corporation | Cluster system, cluster member, and program |
| JP2005341378A (en) * | 2004-05-28 | 2005-12-08 | Nippon Telegr & Teleph Corp <Ntt> | LOAD DISTRIBUTION METHOD FOR MULTICAST TRANSFER APPARATUS, LOAD DISTRIBUTION METHOD FOR MULTICAST BRANCH FUNCTION, DISTRIBUTION APPARATUS AND INFORMATION OUTPUT PROGRAM |
| JP2006261805A (en) * | 2005-03-15 | 2006-09-28 | Fujitsu Ltd | Load distribution apparatus and load distribution method |
| JP2007173990A (en) * | 2005-12-19 | 2007-07-05 | Fujitsu Ltd | Information processing apparatus, communication load distribution method, and communication load distribution program |
| JP2009500970A (en) * | 2005-07-13 | 2009-01-08 | アルカテル−ルーセント | Access device, routing device and method for supporting IPv6 stateless address configuration in communication network |
| JP2009303090A (en) * | 2008-06-17 | 2009-12-24 | Fujitsu Ltd | Load distribution server, network load distribution method and congestion avoidance method |
| JP2010530694A (en) * | 2007-06-21 | 2010-09-09 | テレフオンアクチーボラゲット エル エム エリクソン(パブル) | Method and system for assigning routers to hosts |
| JP2011186631A (en) * | 2010-03-05 | 2011-09-22 | Mitsubishi Electric Corp | File transfer system and file transfer method |
| JP2012175391A (en) * | 2011-02-21 | 2012-09-10 | Nippon Telegr & Teleph Corp <Ntt> | User terminal allocation method, communication system, and administrative server |
| JP2012186528A (en) * | 2011-03-03 | 2012-09-27 | Fujitsu Ltd | Communication method, communication system, router, and server |
| JP2012199838A (en) * | 2011-03-22 | 2012-10-18 | Fujitsu Ltd | Communication setting method, communication setting server, relay device, and communication setting program |
| JP2017033418A (en) * | 2015-08-04 | 2017-02-09 | 日本電信電話株式会社 | Transmission control system and transmission control method |
| JP2017038218A (en) * | 2015-08-10 | 2017-02-16 | 日本電信電話株式会社 | Communication system and setting method |
| JPWO2016121293A1 (en) * | 2015-01-28 | 2017-10-26 | 日本電気株式会社 | Network relay device, gateway redundancy system, program, and redundancy method |
| US10069709B2 (en) | 2013-05-17 | 2018-09-04 | Mitsubishi Electric Corporation | Communication apparatus and vehicle transmission system |
-
2002
- 2002-05-24 JP JP2002149969A patent/JP3896897B2/en not_active Expired - Fee Related
Cited By (20)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100593927C (en) * | 2004-04-15 | 2010-03-10 | 日本电气株式会社 | Cluster systems, cluster members, and programs |
| JPWO2005101760A1 (en) * | 2004-04-15 | 2008-07-31 | 日本電気株式会社 | Cluster system, cluster members, and programs |
| WO2005101760A1 (en) * | 2004-04-15 | 2005-10-27 | Nec Corporation | Cluster system, cluster member, and program |
| JP4524686B2 (en) * | 2004-04-15 | 2010-08-18 | 日本電気株式会社 | Cluster system, cluster member and program |
| JP2005341378A (en) * | 2004-05-28 | 2005-12-08 | Nippon Telegr & Teleph Corp <Ntt> | LOAD DISTRIBUTION METHOD FOR MULTICAST TRANSFER APPARATUS, LOAD DISTRIBUTION METHOD FOR MULTICAST BRANCH FUNCTION, DISTRIBUTION APPARATUS AND INFORMATION OUTPUT PROGRAM |
| JP2006261805A (en) * | 2005-03-15 | 2006-09-28 | Fujitsu Ltd | Load distribution apparatus and load distribution method |
| US7864750B2 (en) | 2005-03-15 | 2011-01-04 | Fujitsu Limited | Load distributing apparatus and load distributing method |
| JP2009500970A (en) * | 2005-07-13 | 2009-01-08 | アルカテル−ルーセント | Access device, routing device and method for supporting IPv6 stateless address configuration in communication network |
| JP2007173990A (en) * | 2005-12-19 | 2007-07-05 | Fujitsu Ltd | Information processing apparatus, communication load distribution method, and communication load distribution program |
| JP2010530694A (en) * | 2007-06-21 | 2010-09-09 | テレフオンアクチーボラゲット エル エム エリクソン(パブル) | Method and system for assigning routers to hosts |
| JP2009303090A (en) * | 2008-06-17 | 2009-12-24 | Fujitsu Ltd | Load distribution server, network load distribution method and congestion avoidance method |
| JP2011186631A (en) * | 2010-03-05 | 2011-09-22 | Mitsubishi Electric Corp | File transfer system and file transfer method |
| JP2012175391A (en) * | 2011-02-21 | 2012-09-10 | Nippon Telegr & Teleph Corp <Ntt> | User terminal allocation method, communication system, and administrative server |
| JP2012186528A (en) * | 2011-03-03 | 2012-09-27 | Fujitsu Ltd | Communication method, communication system, router, and server |
| JP2012199838A (en) * | 2011-03-22 | 2012-10-18 | Fujitsu Ltd | Communication setting method, communication setting server, relay device, and communication setting program |
| US10069709B2 (en) | 2013-05-17 | 2018-09-04 | Mitsubishi Electric Corporation | Communication apparatus and vehicle transmission system |
| JPWO2016121293A1 (en) * | 2015-01-28 | 2017-10-26 | 日本電気株式会社 | Network relay device, gateway redundancy system, program, and redundancy method |
| US10367680B2 (en) | 2015-01-28 | 2019-07-30 | Nec Corporation | Network relay apparatus, gateway redundancy system, program, and redundancy method |
| JP2017033418A (en) * | 2015-08-04 | 2017-02-09 | 日本電信電話株式会社 | Transmission control system and transmission control method |
| JP2017038218A (en) * | 2015-08-10 | 2017-02-16 | 日本電信電話株式会社 | Communication system and setting method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3896897B2 (en) | 2007-03-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4103816B2 (en) | Router setting method and router apparatus | |
| US6697360B1 (en) | Method and apparatus for auto-configuring layer three intermediate computer network devices | |
| JP5331163B2 (en) | IP address assignment system, DHCP server, and IP address assignment method | |
| EP1125423B1 (en) | Digital network modem with an integrated dhcp server | |
| US7797568B2 (en) | Relay agent device and proxy address leasing device | |
| US7152099B1 (en) | Friend configuration and method for network devices | |
| CN100334866C (en) | Method for realizing dynamic gateway load sharing and backup | |
| JP3185762B2 (en) | Network address setting method | |
| CN101600001B (en) | Method and device for acquiring configuration information based on dynamic host configuration protocol | |
| JP3896897B2 (en) | Router setting method and router | |
| US20070162575A1 (en) | Configuration of LAN hosts | |
| CN106161272B (en) | Realize the method and routing device of VRRP load balancing | |
| US20120182994A1 (en) | Address compatibility in a network device reload | |
| US20180006876A1 (en) | Network relay apparatus, gateway redundancy system, program, and redundancy method | |
| US20140317296A1 (en) | Allocating internet protocol (ip) addresses to nodes in communications networks which use integrated is-is | |
| US20150304274A1 (en) | Method and apparatus for configuring dhcp client | |
| US20130311624A1 (en) | Method, apparatus and system for configuring ip address | |
| WO2014169838A1 (en) | Management method and apparatus for dynamic host configuration protocol server and relay | |
| JP4644221B2 (en) | Network system | |
| CN106375210A (en) | Method for realizing VRRP (Virtual Router Redundancy Protocol) downlink load balancing and route devices | |
| JP2010062757A (en) | Dns proxy apparatus and dns relay method | |
| JP4570551B2 (en) | Distributed control communication system and method | |
| JPH10154980A (en) | Ip multi-cast service system and its address assignment method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050131 |
|
| RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20060419 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060711 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060905 |
|
| 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: 20061128 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20061211 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110105 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120105 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130105 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |