JP2010062598A - Load sharing method and dhcp server device - Google Patents
Load sharing method and dhcp server device Download PDFInfo
- Publication number
- JP2010062598A JP2010062598A JP2008223025A JP2008223025A JP2010062598A JP 2010062598 A JP2010062598 A JP 2010062598A JP 2008223025 A JP2008223025 A JP 2008223025A JP 2008223025 A JP2008223025 A JP 2008223025A JP 2010062598 A JP2010062598 A JP 2010062598A
- Authority
- JP
- Japan
- Prior art keywords
- service providing
- address
- communication terminal
- providing device
- addresses
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
Description
本発明は、DHCPサーバで通信端末のネットワーク設定を管理するIPネットワークにおける負荷分散方法に関し、特にDHCPサーバによるサービス提供機器の負荷分散方法およびDHCPサーバ装置に関する。 The present invention relates to a load distribution method in an IP network in which network settings of communication terminals are managed by a DHCP server, and more particularly to a load distribution method of a service providing device using a DHCP server and a DHCP server device.
TCP/IPに基づくインターネット等のIPネットワークには、IPパケットの送受信を行う多数の通信端末に加えて、これらの通信端末に各種のサービスを提供する機器が接続されている。代表的なサービス提供機器に、DNS(Domain Name System)サーバ、デフォルトルータがある。DNSサーバは、IPアドレスとドメイン名との間の変換サービスを提供する。また、デフォルトルータは、ネットワークと他のネットワークとの間に設けられ、一方のネットワークのIPパケットを他方のネットワークへ中継するサービスを提供する。 In addition to a large number of communication terminals that transmit and receive IP packets, devices that provide various services to these communication terminals are connected to an IP network such as the Internet based on TCP / IP. Typical service providing devices include a DNS (Domain Name System) server and a default router. The DNS server provides a conversion service between an IP address and a domain name. The default router is provided between the network and another network, and provides a service for relaying an IP packet of one network to the other network.
このようなサービス提供機器は、多数の通信端末で共有されるために、サービス提供機器自身の性能がボトルネックとなる可能性がある。そこで、負荷分散を目的に、サービス提供機器を多重化することがしばしば行われている。 Since such a service providing device is shared by many communication terminals, the performance of the service providing device itself may become a bottleneck. Thus, it is often performed to multiplex service providing devices for the purpose of load distribution.
サービス提供機器を多重化して負荷分散を行う方法の一つに、ロードバランサーというネットワーク機器を用いる方法がある。しかし、ロードバランサー自身の処理能力がボトルネックになる上、ネットワーク機器が増加し管理コストが高くなる。そこで、ロードバランサーを使わずに、多重化されたサービス提供機器の負荷分散を行う方法が、特許文献1に記載されている。
One method for distributing the load by multiplexing service providing devices is to use a network device called a load balancer. However, the processing capacity of the load balancer itself becomes a bottleneck, and network devices increase and management costs increase. Therefore,
特許文献1に記載される負荷分散方法(以下、関連技術と言う)は、デフォルトルータを負荷分散の対象とし、DHCP(Dynamic Host Configuration Protocol)サーバを用いて複数のデフォルトルータの負荷分散を行う。具体的には、まず、ネットワーク間を接続する複数のルータは互いに負荷情報を交換することによって最も負荷の低いルータを検出する。通信端末が、起動時または再設定時に、自アドレスおよびデフォルトルータのアドレスを含む設定パラメータを獲得するためのDHCPメッセージを、当該通信端末が接続されたネットワークへブロードキャストすると、複数のルータのうちの所定のルータが、DHCPメッセージに、検出された最も負荷の低いルータを識別する情報を付加してDHCPサーバへ転送する。DHCPサーバは、受信したDHCPサーバに付加された最も負荷の低いルータを識別する情報に基づいて、最も負荷の低いルータをデフォルトルータとする設定パラメータを通信端末に割り当てる。
The load distribution method (hereinafter referred to as related technology) described in
上述した関連技術によれば、既存のDHCPサーバの機能を変更することなく、通信端末において、ルータの負荷を反映したデフォルトルータの分散による負荷分散が可能になる。 According to the related art described above, it is possible to distribute the load by distributing the default router reflecting the load of the router in the communication terminal without changing the function of the existing DHCP server.
しかしながら、上述した関連技術では、通信端末から送信されたDHCPメッセージがルータを経由してDHCPサーバに転送されるネットワーク構成であることが前提になるため、通信端末とDHCPサーバとが同じネットワークに接続される構成のネットワークへの適用は困難であり、適用可能なネットワーク構成に制限が多い。 However, in the related technology described above, since it is assumed that the DHCP message transmitted from the communication terminal is transferred to the DHCP server via the router, the communication terminal and the DHCP server are connected to the same network. Therefore, it is difficult to apply the configuration to the network, and there are many restrictions on the applicable network configuration.
また、上述した関連技術は、デフォルトルータの負荷分散に関する技術であり、デフォルトルータ以外のサービス提供機器の負荷分散には適用が困難である。 Further, the related technique described above is a technique related to load distribution of the default router, and is difficult to apply to load distribution of service providing devices other than the default router.
本発明はこのような事情に鑑みて提案されたものであり、その目的は、適用可能なネットワーク構成およびサービス提供機器の種類に対する制限が少なく、汎用的に利用可能な、DHCPサーバを用いたサービス提供機器の負荷分散方法およびDHCPサーバ装置を提供することにある。 The present invention has been proposed in view of such circumstances, and its purpose is to provide a service using a DHCP server that can be used universally with few restrictions on the types of network configurations and service providing devices that can be applied. The object is to provide a load balancing method for a providing device and a DHCP server device.
本発明の第1のDHCPサーバ装置は、通信端末に通知するサービス提供機器のアドレスを記憶する記憶手段であって、同種のサービス提供機器について、複数のサービス提供機器のアドレスを記憶する記憶手段と、通信端末が送信した、自通信端末のアドレス及びサービス提供機器のアドレスを含む設定情報を獲得するためのDHCPメッセージの受信時、均等に選択する選択アルゴリズムを用いて、同種のサービス提供機器について記憶手段に記憶された複数のサービス提供機器のアドレスのうちから通信端末に通知するサービス提供機器のアドレスを選択し、選択したサービス提供機器のアドレスを含む設定情報を、DHCPメッセージを送信した通信端末に送信するデータ処理手段とを備える。 The first DHCP server device of the present invention is storage means for storing the address of a service providing device to be notified to a communication terminal, and for the same type of service providing device, storage means for storing the addresses of a plurality of service providing devices. When a DHCP message for acquiring setting information including the address of the own communication terminal and the address of the service providing device transmitted by the communication terminal is received, the same type of service providing device is stored using a selection algorithm that is selected evenly. The address of the service providing device notified to the communication terminal is selected from the addresses of the plurality of service providing devices stored in the means, and the setting information including the address of the selected service providing device is sent to the communication terminal that has transmitted the DHCP message. Data processing means for transmission.
本発明によれば、適用可能なネットワーク構成およびサービス提供機器の種類に対する制限が少なく、汎用的に利用可能な、DHCPサーバを用いたサービス提供機器の負荷分散方法およびDHCPサーバ装置が得られる。 ADVANTAGE OF THE INVENTION According to this invention, there are few restrictions with respect to the network configuration and the kind of service provision apparatus which can be applied, and the load distribution method and DHCP server apparatus of the service provision apparatus using a DHCP server which can be used universally are obtained.
[第1の実施の形態]
図1を参照すると、本発明の第1の実施の形態は、DHCPサーバ1と、ネットワーク上のサービスを使用する通信端末2、3と、ネットワーク上の通信端末2、3へDNSのサービスを提供するDNSサーバ4、5と、それらを接続するネットワーク機器で構成されたネットワーク、例えばLAN6とを含む。
[First Embodiment]
Referring to FIG. 1, the first embodiment of the present invention provides a
図2を参照すると、DHCPサーバ1は、DHCPの処理を実行するデータ処理装置11と、DHCPの設定情報を記憶する記憶装置12とから構成される。
Referring to FIG. 2, the DHCP
記憶装置12は、通知情報記憶部121とDNSサーバアドレス記憶部122とを有する。
The
通知情報記憶部121は、通信端末自身に割り当てるIPアドレスの情報をあらかじめ記憶する。図3を参照すると、通知情報記憶部121に記憶されている端末アドレス管理テーブル1210の一例は、それぞれ異なるIPアドレスを記憶する複数のエントリ1211、1212、…から構成され、各エントリは、割り当て済みフラグ、通信端末に割り当てるIPアドレス、サブネットマスクから構成される。割り当て済みフラグは、当該エントリ中のIPアドレスが何れかの通信端末に既に割り当てられているか否かを示し、例えば値0で未割り当て、値1で割り当て済みを示す。
The notification
DNSサーバアドレス記憶部122は、通信端末に通知するサービス提供機器のアドレスをあらかじめ記憶する。本実施の形態において、通信端末にアドレスを通知するサービス提供機器の種類は1種類であり、その種類はDNSサーバである。また、本実施の形態は、優先的に使用するDNSサーバのアドレスと、そのDNSサーバからサービスの提供を受けることができない場合にその代替として使用するDNSサーバのアドレスとの組を通信端末に通知する。図4を参照すると、DNSサーバアドレス記憶部122に記憶されているDNSサーバアドレス管理テーブル1220の一例は、2つのエントリ1221、1222から構成され、各エントリには、優先DNSサーバおよび代替DNSサーバのアドレスが記憶される。具体的には、一方のエントリ1221には、優先DNSサーバとしてDNSサーバ4のアドレスが記憶され、代替DNSサーバとしてDNSサーバ5のアドレスが記憶されている。他方のエントリ1222には、エントリ1221とは反対に、優先DNSサーバとしてDNSサーバ5のアドレスが記憶され、代替DNSサーバとしてDNSサーバ4のアドレスが記憶されている。
The DNS server
再び図2を参照すると、データ処理装置11は、通知情報決定手段111とDNSサーバアドレス決定手段112とを有する。
Referring again to FIG. 2, the
通知情報決定手段111は、通信端末自身に設定するIPアドレスおよびサブネットマスクの情報を、通知情報記憶部122に記憶された図3の端末アドレス管理テーブル1210に基づいて決定する機能を有する。具体的には、割り当て済みフラグが未割り当ての値0を示すエントリを1つ選択し、その選択したエントリ中のIPアドレスとサブネットマスクを通信端末自身に設定するIPアドレスおよびサブネットマスクとして決定する。なお、通知情報決定手段111は、割り当てたIPアドレスに対応する割り当て済みフラグは、値1に更新する。
The notification information determination unit 111 has a function of determining the IP address and subnet mask information set for the communication terminal itself based on the terminal address management table 1210 of FIG. 3 stored in the notification
DNSサーバアドレス決定手段112は、通信端末に設定するDNSサーバアドレスの情報を、DNSサーバアドレス記憶部122の図4のDNSサーバアドレス管理テーブル1220に基づいて決定する機能を有する。具体的には、均等に選択する選択アルゴリズムを用いて、エントリ1221とエントリ1222を均等に選択し、この選択したエントリ中の優先DNSサーバおよび代替DNSサーバのアドレスを、通信端末に設定するDNSサーバアドレスとして決定する。選択アルゴリズムとしては、例えば、ラウンドロビン方式、ランダム選択方式などを使用することができる。
The DNS server
ラウンドロビン方式は、選択するエントリを順番に変えていく方法である。図4のDNSサーバアドレス管理テーブル1220の場合、前回にエントリ1221を選択したならば、今回はエントリ1222を選択し、その次は再びエントリ1221を選択する。
The round robin method is a method in which entries to be selected are changed in order. In the case of the DNS server address management table 1220 of FIG. 4, if the
ランダム選択方式は、選択するエントリを毎回、無作為に決定する方法である。無作為にエントリを選択する具体例としては、乱数を用いる方法がある。図4のDNSサーバアドレス管理テーブル1220の場合、発生した乱数が例えば奇数ならばエントリ1221を選択し、偶数ならばエントリ1222を選択する。また、乱数の代わりに、通知情報決定手段11で通信端末に割り当てることが決定した端末アドレスを用いて、端末アドレスが例えば奇数ならばエントリ1221を選択し、偶数ならばエントリ1222を選択する如く、端末に割り当てることになるIPアドレスを元に演算で、選択するエントリを決定するようにしてもよい。
The random selection method is a method of randomly determining entries to be selected each time. A specific example of selecting an entry at random is a method using a random number. In the case of the DNS server address management table 1220 of FIG. 4, for example, if the generated random number is an odd number, the
次に本実施の形態の動作を説明する。 Next, the operation of the present embodiment will be described.
通信端末2が自身のネットワーク設定を行うためにDHCPリクエストメッセージをLAN6にブロードキャストすると(図5の501)、このDHCPリクエストメッセージを受信識別したDHCPサーバ1のデータ処理装置11がメッセージの処理を開始する。
When the communication terminal 2 broadcasts a DHCP request message to the
最初にDHCPサーバ1のデータ処理装置11は、通知情報決定手段111の機能を利用して、通知情報記憶部121に記憶された情報の中から通信端末2自身に割り当てるIPアドレスとサブネットマスクを決定する(図5の502)。ここでは、図3の1行目のエントリ1211が選択され、IPアドレスとして(10.0.0.11)、サブネットマスクとして(255.0.0.0)が決定されたものとする。
First, the
次にデータ処理装置11は、DNSサーバアドレス決定手段112の機能を利用して、DNSサーバアドレス記憶部122に記憶された情報の中から通信端末2に割り当てるDNSサーバのアドレスを決定する(図5の503)。ここでは、ラウンドロビン方式によって、図4の1行目のエントリ1221が選択され、優先DNSサーバのIPアドレスとしてDNSサーバ4のIPアドレスが決定され、代替DNSサーバのIPアドレスとしてDNSサーバ5のIPアドレスが決定されたものとする。
Next, the
次にDHCPサーバ1のデータ処理装置11は、ここまでの処理で決定した通信端末2自身に割り当てるIPアドレスとサブネットマスク、通信端末2に割り当てる優先DNSサーバおよび代替DNSサーバのIPアドレスをネットワーク設定内容としてDHCPリプライメッセージに格納し、通信端末2へ送信する(図5の504)。
Next, the
通信端末2は、DHCPサーバ1から送信されたDHCPリプライメッセージを受信し、このメッセージに基づいて自通信端末のネットワーク設定を行う(図5の505)。具体的には、自通信端末2のIPアドレスとして(10.0.0.11)を設定し、サブネットマスクとして(255.0.0.0)を設定する。また、自通信端末2が使用する優先DNSサーバのIPアドレスとして、DNSサーバ4のIPアドレスを設定し、代替DNSサーバのIPアドレスとして、DNSサーバ5のIPを設定する。これにより、通信端末2がDNSのサービスを利用する際には、図5の506に示すように、優先DNSサーバとして設定されたDNSサーバ4を最初にアクセスすることになる。
The communication terminal 2 receives the DHCP reply message transmitted from the
その後、通信端末3が自身のネットワーク設定を行うためにDHCPリクエストメッセージをLAN6にブロードキャストすると(図5の511)、このDHCPリクエストメッセージを受信識別したDHCPサーバ1のデータ処理装置11がメッセージの処理を再び開始する。
Thereafter, when the communication terminal 3 broadcasts a DHCP request message to the
最初にDHCPサーバ1のデータ処理装置11は、通知情報決定手段111の機能を利用して、通知情報記憶部121に記憶された情報の中から通信端末3自身に割り当てるIPアドレスとサブネットマスクを決定する(図5の512)。ここでは、図3の2行目のエントリ1212が選択され、IPアドレスとして(10.0.0.12)、サブネットマスクとして(255.0.0.0)が決定されたものとする。
First, the
次にデータ処理装置11は、DNSサーバアドレス決定手段112の機能を利用して、DNSサーバアドレス記憶部122に記憶された情報の中から通信端末3に割り当てるDNSサーバのアドレスを決定する(図5の513)。ここでは、ラウンドロビン方式によって、図4の2行目のエントリ1221が選択され、優先DNSサーバのIPアドレスとしてDNSサーバ5のIPアドレスが決定され、代替DNSサーバのIPアドレスとしてDNSサーバ4のIPアドレスが決定されたものとする。
Next, the
次にDHCPサーバ1のデータ処理装置11は、ここまでの処理で決定した通信端末3自身に割り当てるIPアドレスとサブネットマスク、通信端末3に割り当てる優先DNSサーバおよび代替DNSサーバのIPアドレスをネットワーク設定内容としてDHCPリプライメッセージに格納し、通信端末3へ送信する(図5の514)。
Next, the
通信端末3は、DHCPサーバ1から送信されたDHCPリプライメッセージを受信し、このメッセージに基づいて自通信端末3のネットワーク設定を行う(図5の515)。具体的には、自通信端末3のIPアドレスとして(10.0.0.12)を設定し、サブネットマスクとして(255.0.0.0)を設定する。また、自通信端末3が使用する優先DNSサーバのIPアドレスとして、DNSサーバ5のIPアドレスを設定し、代替DNSサーバのIPアドレスとして、DNSサーバ4のIPアドレスを設定する。これにより、通信端末3がDNSのサービスを利用する際には、図5の516に示すように、優先DNSサーバとして設定されたDNSサーバ5を最初にアクセスすることになる。
The communication terminal 3 receives the DHCP reply message transmitted from the
以上のようにして、DNSのサービスを利用する際は通信端末2、3毎に異なるDNSサーバが利用されることになり、DNSサーバの負荷分散が実現される。 As described above, when the DNS service is used, a different DNS server is used for each of the communication terminals 2 and 3, and load distribution of the DNS server is realized.
次に本実施の形態の効果を説明する。 Next, the effect of this embodiment will be described.
本実施の形態によれば、DHCPサーバ1を用いてDNSサーバの負荷分散を実現することができる。
According to the present embodiment, it is possible to achieve DNS server load distribution using the
また本実施の形態によれば、通信端末とDHCPサーバ間でメッセージの授受が可能であればネットワークの構成は任意で良いため、通信端末が接続されたネットワークとDHCPサーバが接続されるネットワークとがルータで接続されているネットワークや、通信端末とDHCPサーバとが同じネットワークに接続される構成のネットワークなど、任意のネットワークに対して汎用的に適用可能である。 In addition, according to the present embodiment, the network configuration may be arbitrary as long as the message can be exchanged between the communication terminal and the DHCP server. Therefore, the network to which the communication terminal is connected and the network to which the DHCP server is connected are determined. The present invention can be applied universally to any network such as a network connected by a router or a network configured such that a communication terminal and a DHCP server are connected to the same network.
また本実施の形態によれば、各通信端末が優先的に使用するDNSサーバの負荷分散を図りつつ、優先DNSサーバの代替となるDNSサーバのIPアドレスのネットワーク設定も同時に行うことが可能である。但し、別の実施の形態として、優先DNSサーバのアドレスだけを通信端末に通知するようにしてもよい。この場合、図4のDNSサーバアドレス管理テーブル1220から代替DNSサーバの項目を削除した図6に示すようなDNSサーバアドレス管理テーブル1220Aを使用するようにしてもよい。 In addition, according to the present embodiment, it is possible to simultaneously set the network of the IP address of the DNS server as an alternative to the priority DNS server while distributing the load of the DNS server used preferentially by each communication terminal. . However, as another embodiment, only the address of the priority DNS server may be notified to the communication terminal. In this case, a DNS server address management table 1220A as shown in FIG. 6 in which the item of the alternative DNS server is deleted from the DNS server address management table 1220 in FIG. 4 may be used.
なお、本実施の形態は、通信端末にアドレスを通知するサービス提供機器の種類を1種類とし、その種類をDNSサーバとした。しかし、DNSサーバに限定されず、他の種類のサービス提供機器の負荷分散に対しても適用可能である。他の種類のサービス提供機器としては、NTPサーバ、デフォルトルータ、ディレクトリサーバ、ベンダーオプションとして定義されるサービスを提供する機器などが挙げられる。 In the present embodiment, one type of service providing device that notifies an address to a communication terminal is one type, and the type is a DNS server. However, the present invention is not limited to the DNS server, and can be applied to load distribution of other types of service providing devices. Other types of service providing devices include NTP servers, default routers, directory servers, and devices that provide services defined as vendor options.
[第2の実施の形態]
図7を参照すると、本発明の第2の実施の形態は、LAN6に4台のルータ7A〜7Dを介して別のネットワーク8が接続されており、DHCPサーバ1を用いて、DNSサーバとデフォルトルータの2種類のサービス提供機器の負荷分散を同時に行うようにしている点で、図1の第1の実施の形態と相違する。
[Second Embodiment]
Referring to FIG. 7, in the second embodiment of the present invention, another network 8 is connected to the
図8を参照すると、第2の実施の形態におけるDHCPサーバ1は、第1の実施の形態におけるDHCPサーバ1と比較して、DNSサーバアドレス決定手段112およびDNSサーバアドレス記憶部123の代わりに、サービス提供機器アドレス決定手段113およびサービス提供機器アドレス記憶部123を有する点で相違する。
Referring to FIG. 8, the
サービス提供機器アドレス記憶部123は、通信端末に通知するサービス提供機器のアドレスをあらかじめ記憶する。本実施の形態において、通信端末にアドレスを通知するサービス提供機器の種類は2種類であり、その種類はDNSサーバとデフォルトルータである。また、本実施の形態は、優先的に使用するDNSサーバのアドレスと、そのDNSサーバからサービスの提供を受けることができない場合にその代替として使用するDNSサーバのアドレスとの組を通信端末に通知する。
The service providing device
図9を参照すると、サービス提供機器アドレス記憶部123に記憶されているサービス提供機器アドレス管理テーブル1230の一例は、4つのエントリ1231〜1234から構成され、各エントリには、優先DNSサーバおよび代替DNSサーバのIPアドレス、デフォルトルータのIPアドレスが記憶される。具体的には、1行目のエントリ1231には、優先DNSサーバとしてDNSサーバ4のアドレスが記憶され、代替DNSサーバとしてDNSサーバ5のアドレスが記憶され、デフォルトルータとしてルータ7Aのアドレスが記憶されている。2行目のエントリ1232には、優先DNSサーバとしてDNSサーバ5のアドレスが記憶され、代替DNSサーバとしてDNSサーバ4のアドレスが記憶され、デフォルトルータとしてルータ7Bのアドレスが記憶されている。3行目のエントリ1233には、優先DNSサーバおよび代替DNSサーバに関しては1行目のエントリと同じ内容が重複して記憶され、デフォルトルータとしてはルータ7Cのアドレスが記憶されている。4行目のエントリ1234には、優先DNSサーバおよび代替DNSサーバに関しては2行目のエントリと同じ内容が重複して記憶され、デフォルトルータとしてはルータ7Dのアドレスが記憶されている。
Referring to FIG. 9, an example of the service providing device address management table 1230 stored in the service providing device
サービス提供機器アドレス決定手段113は、通信端末に設定するDNSサーバおよびデフォルトルータのアドレスの情報を、サービス提供機器アドレス記憶部123の図9のサービス提供機器アドレス管理テーブル1230に基づいて決定する機能を有する。具体的には、均等に選択する選択アルゴリズムを用いて、エントリ1231〜1234から1つのエントリを選択し、この選択したエントリ中の優先DNSサーバおよび代替DNSサーバのアドレスならびにデフォルトルータのアドレスを、通信端末に設定するDNSサーバアドレスならびにデフォルトルータアドレスとして決定する。選択アルゴリズムとしては、第1の実施の形態と同様にラウンドロビン方式、ランダム選択方式などを使用することができる。
The service providing device
次に本実施の形態の動作を説明する。 Next, the operation of the present embodiment will be described.
何れかの通信端末、例えば通信端末2が自身のネットワーク設定を行うためにDHCPリクエストメッセージをLAN6にブロードキャストすると(図10の1001)、このDHCPリクエストメッセージを受信識別したDHCPサーバ1のデータ処理装置11がメッセージの処理を開始する。
When any one of the communication terminals, for example, the communication terminal 2 broadcasts a DHCP request message to the
最初にDHCPサーバ1のデータ処理装置11は、通知情報決定手段111の機能を利用して、通知情報記憶部121に記憶された情報の中から通信端末2自身に割り当てるIPアドレスとサブネットマスクを決定する(図10の1002)。ここでは、図3の1行目のエントリ1211が選択され、IPアドレスとして(10.0.0.11)、サブネットマスクとして(255.0.0.0)が決定されたものとする。
First, the
次にデータ処理装置11は、サービス提供機器アドレス決定手段113の機能を利用して、サービス提供機器アドレス記憶部123に記憶された情報の中から通信端末2に割り当てるDNSサーバおよびデフォルトルータのアドレスを決定する(図10の1003)。ここでは、ラウンドロビン方式によって、図10のサービス提供機器アドレス管理テーブル1230の4つのエントリ1231〜1234から1つのエントリを選択するものとする。この場合、前回にエントリ1231を選択していたのであれば、今回はエントリ1232を選択する。また、前回にエントリ1232を選択していたのであれば、今回はエントリ1233を選択する。また、前回にエントリ1233を選択していたのであれば、今回はエントリ1234を選択する。また、前回にエントリ1234を選択していたのであれば、今回はエントリ1231を選択する。ここでは、1行目のエントリ1231が選択され、優先DNSサーバのIPアドレスとしてDNSサーバ4のIPアドレスが決定され、代替DNSサーバのIPアドレスとしてDNSサーバ5のIPアドレスが決定され、デフォルトルータのIPアドレスとしてルータ7AのIPアドレスが決定されたものとする。
Next, the
次にDHCPサーバ1のデータ処理装置11は、ここまでの処理で決定した通信端末2自身に割り当てるIPアドレスとサブネットマスク、通信端末2に割り当てる優先DNSサーバおよび代替DNSサーバのIPアドレス、ならびにデフォルトルータのIPアドレスをネットワーク設定内容としてDHCPリプライメッセージに格納し、通信端末2へ送信する(図10の1004)。
Next, the
通信端末2は、DHCPサーバ1から送信されたDHCPリプライメッセージを受信し、このメッセージに基づいて自通信端末2のネットワーク設定を行う(図10の1005)。具体的には、自通信端末2のIPアドレスとして(10.0.0.11)を設定し、サブネットマスクとして(255.0.0.0)を設定する。また、自通信端末2が使用する優先DNSサーバのIPアドレスとして、DNSサーバ4のIPアドレスを設定し、代替DNSサーバのIPアドレスとして、DNSサーバ5のIPアドレスを設定する。さらに、自通信端末2が使用するデフォルトルータとしてルータ7AのIPアドレスを設定する。これにより、通信端末2がDNSのサービスを利用する際には、優先DNSサーバとして設定されたDNSサーバ4を最初にアクセスすることになる。また、通信端末2がネットワーク8に接続された図示しない通信端末をアクセスする際には、ルータ7Aがデフォルトルータとして使用されることになる。
The communication terminal 2 receives the DHCP reply message transmitted from the
通信端末2以外の通信端末が自身のネットワーク設定を行うためにDHCPリクエストメッセージをLAN6にブロードキャストした場合、通信端末2がDHCPリクエストメッセージを送信したときと同様の動作が行われる。但し、サービス提供機器アドレス管理テーブル1230におけるエントリの選択がラウンドロビン方式で行われるため、2番目の通信端末にはエントリ1232に記憶されている内容が、3番目の通信端末にはエントリ1233に記憶されている内容が、4番目の通信端末にはエントリ1234に記憶されている内容が、それぞれ通知されることになる。これにより、DNSのサービスを利用する際は使用するDNSサーバが分散され、また、ネットワーク8に接続された通信端末と通信する際に使用するデフォルトルータが分散されることになる。
When a communication terminal other than the communication terminal 2 broadcasts a DHCP request message to the
次に本実施の形態の効果を説明する。 Next, the effect of this embodiment will be described.
本実施の形態によれば、DHCPサーバ1を用いてDNSサーバおよびデフォルトルータの負荷分散を実現することができる。
According to the present embodiment, it is possible to realize load distribution of the DNS server and the default router using the
また本実施の形態によれば、通信端末とDHCPサーバ間でメッセージの授受が可能であればネットワークの構成は任意で良いため、通信端末が接続されたネットワークとDHCPサーバが接続されるネットワークとがルータで接続されているネットワークや、通信端末とDHCPサーバとが同じネットワークに接続される構成のネットワークなど、任意のネットワークに対して汎用的に適用可能である。 In addition, according to the present embodiment, the network configuration may be arbitrary as long as the message can be exchanged between the communication terminal and the DHCP server. Therefore, the network to which the communication terminal is connected and the network to which the DHCP server is connected are determined. The present invention can be applied universally to any network such as a network connected by a router or a network configured such that a communication terminal and a DHCP server are connected to the same network.
また本実施の形態によれば、各通信端末が優先的に使用するDNSサーバの負荷分散を図りつつ、優先DNSサーバの代替となるDNSサーバのIPアドレスのネットワーク設定も同時に行うことが可能である。但し、別の実施の形態として、優先DNSサーバのアドレスだけを通信端末に通知するようにしてもよい。この場合、図9のサービス提供機器アドレス管理テーブル1230から代替DNSサーバの項目を削除した図11に示すようなサービス提供機器アドレス管理テーブル1230Aを使用するようにしてもよい。 In addition, according to the present embodiment, it is possible to simultaneously set the network of the IP address of the DNS server as an alternative to the priority DNS server while distributing the load of the DNS server used preferentially by each communication terminal. . However, as another embodiment, only the address of the priority DNS server may be notified to the communication terminal. In this case, a service providing device address management table 1230A as shown in FIG. 11 in which the item of the alternative DNS server is deleted from the service providing device address management table 1230 in FIG. 9 may be used.
さらに本実施の形態によれば、図9に示したようなサービス提供機器アドレス管理テーブル1230を用いることにより、DNSサーバとデフォルトルータという2種類のサービス提供機器のアドレスを均等に選択する処理をまとめて一度に行うことができ、DHCPサーバ1における処理効率を高めることができる。
Furthermore, according to the present embodiment, by using the service providing device address management table 1230 as shown in FIG. 9, the processing for equally selecting the addresses of two types of service providing devices, the DNS server and the default router, is summarized. The processing efficiency in the
なお、本実施の形態は、通信端末にアドレスを通知するサービス提供機器の種類を2種類とし、その種類をDNSサーバとデフォルトルータとした。しかし、通信端末にアドレスを通知するサービス提供機器の種類は、DNSサーバ、デフォルトルータ、NTPサーバ、デフォルトルータ、ディレクトリサーバ、ベンダーオプションとして定義されるサービスを提供する機器などから任意に選択した2つ或いは3つ以上の任意の組み合わせとすることができる。この場合、サービス提供機器アドレス管理テーブル1230は一般的に次にように構成すればよい。 In this embodiment, there are two types of service providing devices for notifying addresses to communication terminals, and the types are a DNS server and a default router. However, two types of service providing devices for notifying addresses to communication terminals are arbitrarily selected from a DNS server, a default router, an NTP server, a default router, a directory server, a device that provides a service defined as a vendor option, and the like. Alternatively, any combination of three or more can be used. In this case, the service providing device address management table 1230 may generally be configured as follows.
まず、テーブルのエントリ数は、各種類のサービス提供機器のアドレス数の最小公倍数に等しい数とする。例えば、サービス提供機器を3種類とし、それぞれの種類のサービス提供機器の台数が2台、3台、4台の場合、エントリ数は12になる。次に、各エントリに、サービス提供機器の種類に1対1に対応する領域を割り当て、各種類のサービス提供機器ごとに、先頭のエントリから最後のエントリまで順に、そのサービス提供機器の種類に対応する領域に複数のサービス提供機器のアドレスを記憶していく。このとき、エントリ数がサービス提供機器のアドレス数の倍数となる種類のサービス提供機器については、複数のサービス提供機器のアドレスを重複して記憶する。例えば、前記の例で台数が2台のサービス提供機器については、同じアドレスの並びのパターンが6回繰り返し記憶される。 First, the number of entries in the table is equal to the least common multiple of the number of addresses of each type of service providing device. For example, if there are three types of service providing devices and the number of service providing devices of each type is two, three or four, the number of entries is twelve. Next, each entry is assigned a one-to-one area corresponding to the type of service providing device, and each type of service providing device corresponds to the type of service providing device in order from the first entry to the last entry. The addresses of a plurality of service providing devices are stored in the area to be used. At this time, for service providing devices of a type in which the number of entries is a multiple of the number of addresses of the service providing devices, the addresses of a plurality of service providing devices are stored redundantly. For example, for the service providing device having two units in the above example, the same address arrangement pattern is repeatedly stored six times.
以上、本発明を幾つかの実施の形態を挙げて説明したが、本発明は上記の実施の形態にのみ限定されず、その他各種の付加変更が可能である。また、前述した通知情報決定手段111、DNSサーバアドレス決定手段112およびサービス提供機器アドレス決定手段113は、その有する機能をハードウェア的に実現することは勿論、コンピュータとプログラムとで実現することができる。プログラムは、磁気ディスクや半導体メモリ等のコンピュータ可読記録媒体に記録されて提供され、コンピュータの立ち上げ時などにコンピュータに読み取られ、そのコンピュータの動作を制御することにより、そのコンピュータを前述した通知情報決定手段111、DNSサーバアドレス決定手段112およびサービス提供機器アドレス決定手段113として機能させる。
Although the present invention has been described with reference to some embodiments, the present invention is not limited to the above-described embodiments, and various other additions and modifications can be made. Further, the notification information determining unit 111, the DNS server
1…DHCPサーバ
2、3…通信端末
4、5…DNSサーバ
6…LAN
7A〜7D…ルータ
8…ネットワーク
11…データ処理装置
12…記憶装置
111…通知情報決定手段
112…DNSサーバアドレス決定手段
113…サービス提供機器アドレス決定手段
121…通知情報記憶部
122…DNSサーバアドレス記憶部
123…サービス提供機器アドレス記憶部
DESCRIPTION OF
7A to 7D ... Router 8 ...
Claims (7)
前記通信端末が送信した、自通信端末のアドレス及び前記サービス提供機器のアドレスを含む設定情報を獲得するためのDHCPメッセージの受信時、均等に選択する選択アルゴリズムを用いて、同種のサービス提供機器について前記記憶手段に記憶された複数のサービス提供機器のアドレスのうちから前記通信端末に通知するサービス提供機器のアドレスを選択し、該選択したサービス提供機器のアドレスを含む設定情報を、前記DHCPメッセージを送信した前記通信端末に送信するデータ処理手段とを備えることを特徴とするDHCPサーバ装置。 Storage means for storing addresses of service providing devices to be notified to a communication terminal, the storage means storing addresses of a plurality of service providing devices for the same type of service providing devices;
Regarding a service providing device of the same type using a selection algorithm that is selected evenly upon reception of a DHCP message for acquiring setting information including the address of the own communication terminal and the address of the service providing device transmitted by the communication terminal The address of the service providing device to be notified to the communication terminal is selected from among the addresses of the plurality of service providing devices stored in the storage means, and setting information including the address of the selected service providing device is stored in the DHCP message. A DHCP server apparatus comprising: data processing means for transmitting to the transmitted communication terminal.
前記データ処理手段は、同種のサービス提供機器について前記記憶手段に記憶された複数のアドレスの組のうちから前記通信端末に通知するアドレスの組を選択し、該選択したアドレスの組を含む設定情報を、前記DHCPメッセージを送信した前記通信端末に送信することを特徴とする請求項1に記載のDHCPサーバ装置。 The storage means stores a plurality of address sets of a service providing device used preferentially and a service providing device used as an alternative for the same type of service providing device,
The data processing unit selects a set of addresses to be notified to the communication terminal from among a plurality of sets of addresses stored in the storage unit for the same type of service providing device, and setting information including the selected set of addresses The DHCP server apparatus according to claim 1, wherein the DHCP server apparatus transmits the DHCP message to the communication terminal that has transmitted the DHCP message.
前記データ処理手段は、複数種類のサービス提供機器のそれぞれについて、同種のサービス提供機器について前記記憶手段に記憶された複数のサービス提供機器のアドレスのうちから前記通信端末に通知するサービス提供機器のアドレスを選択し、該選択したサービス提供機器のアドレスを含む設定情報を、前記DHCPメッセージを送信した前記通信端末に送信することを特徴とする請求項1または2に記載のDHCPサーバ装置。 The storage means stores the addresses of a plurality of service providing devices for each of a plurality of types of service providing devices,
For each of a plurality of types of service providing devices, the data processing unit notifies the communication terminal of the addresses of the plurality of service providing devices stored in the storage unit for the same type of service providing device. The DHCP server apparatus according to claim 1, wherein setting information including an address of the selected service providing device is transmitted to the communication terminal that has transmitted the DHCP message.
前記データ処理手段は、前記選択アルゴリズムを用いて、前記サービス提供機器アドレス管理テーブルの複数のエントリから1つのエントリを選択することを特徴とする請求項3に記載のDHCPサーバ装置。 The storage means has a number of entries equal to the least common multiple of the number of addresses of service providing devices for each of a plurality of types of service providing devices, and each entry has a divided area equal to the number of types of service providing devices, For each type of service providing device, the addresses of a plurality of service providing devices are stored in the divided area corresponding to the type of the service providing device in order from the first entry to the last entry. A service providing device address management table in which addresses of a plurality of service providing devices are stored in duplicate.
4. The DHCP server device according to claim 3, wherein the data processing means selects one entry from a plurality of entries in the service providing device address management table using the selection algorithm.
b)前記DHCPメッセージを受信識別したDHCPサーバが、均等に選択する選択アルゴリズムを用いて、同種のサービス提供機器について記憶された複数のサービス提供機器のアドレスのうちから前記通信端末に通知するサービス提供機器のアドレスを選択し、該選択したサービス提供機器のアドレスを含む設定情報を、前記DHCPメッセージを送信した前記通信端末に送信するステップと、
を含むことを特徴とする負荷分散方法。 a) a communication terminal sending a DHCP message for acquiring setting information including its own address and the address of a service providing device to the network;
b) Service provision in which the DHCP server that has received and identified the DHCP message notifies the communication terminal from among the addresses of a plurality of service providing devices stored for the same type of service providing device, using a selection algorithm that selects equally. Selecting a device address, and transmitting setting information including the address of the selected service providing device to the communication terminal that has transmitted the DHCP message;
A load balancing method comprising:
前記通信端末が送信した、自通信端末のアドレス及び前記サービス提供機器のアドレスを含む設定情報を獲得するためのDHCPメッセージの受信時、均等に選択する選択アルゴリズムを用いて、同種のサービス提供機器について前記記憶手段に記憶された複数のサービス提供機器のアドレスのうちから前記通信端末に通知するサービス提供機器のアドレスを選択し、該選択したサービス提供機器のアドレスを含む設定情報を、前記DHCPメッセージを送信した前記通信端末に送信するデータ処理手段として機能させるためのプログラム。 A storage unit for storing the address of a service providing device to be notified to a communication terminal, the computer constituting the DHCP server device having a storage unit for storing the addresses of a plurality of service providing devices for the same type of service providing device,
Regarding a service providing device of the same type using a selection algorithm that is selected evenly upon reception of a DHCP message for acquiring setting information including the address of the own communication terminal and the address of the service providing device transmitted by the communication terminal The address of the service providing device to be notified to the communication terminal is selected from among the addresses of the plurality of service providing devices stored in the storage means, and setting information including the address of the selected service providing device is stored in the DHCP message. A program for functioning as a data processing means for transmitting to the communication terminal that has transmitted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008223025A JP4962451B2 (en) | 2008-09-01 | 2008-09-01 | Load balancing method and DHCP server device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008223025A JP4962451B2 (en) | 2008-09-01 | 2008-09-01 | Load balancing method and DHCP server device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010062598A true JP2010062598A (en) | 2010-03-18 |
JP4962451B2 JP4962451B2 (en) | 2012-06-27 |
Family
ID=42188982
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008223025A Expired - Fee Related JP4962451B2 (en) | 2008-09-01 | 2008-09-01 | Load balancing method and DHCP server device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4962451B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011125883A1 (en) * | 2010-03-31 | 2011-10-13 | 株式会社エヌ・ティ・ティ・ドコモ | Mobile communication method and gateway apparatus |
JP2012029261A (en) * | 2010-07-28 | 2012-02-09 | Ntt Docomo Inc | Terminal device, address information providing system, and name resolution method |
JP2014511085A (en) * | 2012-03-14 | 2014-05-01 | ▲ホア▼▲ウェイ▼技術有限公司 | Method, switch, server, and system for sending a connection establishment request |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000293496A (en) * | 1999-04-08 | 2000-10-20 | Nec Corp | Decentralizing device for service load of network |
JP2003198583A (en) * | 2001-12-27 | 2003-07-11 | Fuji Xerox Co Ltd | Setting information assignment method for external network connection |
JP2006180095A (en) * | 2004-12-21 | 2006-07-06 | Matsushita Electric Ind Co Ltd | Gateway, and access control method of web server |
JP2007189540A (en) * | 2006-01-13 | 2007-07-26 | Nippon Telegr & Teleph Corp <Ntt> | Device, method, and program for dns server selection, and name resolution system |
-
2008
- 2008-09-01 JP JP2008223025A patent/JP4962451B2/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000293496A (en) * | 1999-04-08 | 2000-10-20 | Nec Corp | Decentralizing device for service load of network |
JP2003198583A (en) * | 2001-12-27 | 2003-07-11 | Fuji Xerox Co Ltd | Setting information assignment method for external network connection |
JP2006180095A (en) * | 2004-12-21 | 2006-07-06 | Matsushita Electric Ind Co Ltd | Gateway, and access control method of web server |
JP2007189540A (en) * | 2006-01-13 | 2007-07-26 | Nippon Telegr & Teleph Corp <Ntt> | Device, method, and program for dns server selection, and name resolution system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011125883A1 (en) * | 2010-03-31 | 2011-10-13 | 株式会社エヌ・ティ・ティ・ドコモ | Mobile communication method and gateway apparatus |
JP2011217114A (en) * | 2010-03-31 | 2011-10-27 | Ntt Docomo Inc | Mobile communication method and gateway device |
JP2012029261A (en) * | 2010-07-28 | 2012-02-09 | Ntt Docomo Inc | Terminal device, address information providing system, and name resolution method |
JP2014511085A (en) * | 2012-03-14 | 2014-05-01 | ▲ホア▼▲ウェイ▼技術有限公司 | Method, switch, server, and system for sending a connection establishment request |
US9386047B2 (en) | 2012-03-14 | 2016-07-05 | Huawei Technologies Co., Ltd. | Method, switch, server and system for sending connection establishment request |
Also Published As
Publication number | Publication date |
---|---|
JP4962451B2 (en) | 2012-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100984384B1 (en) | System, network device, method, and computer program product for active load balancing using clustered nodes as authoritative domain name servers | |
KR101464452B1 (en) | Processing method, proxy processing agent, system and method for filling a routing table of a dht client node, router and dht client node | |
US7046666B1 (en) | Method and apparatus for communicating between divergent networks using media access control communications | |
US8458303B2 (en) | Utilizing a gateway for the assignment of internet protocol addresses to client devices in a shared subset | |
WO2010064644A1 (en) | Cluster control system, cluster control method, and program | |
KR20090069312A (en) | A resource delivery method, system and edge server | |
JP2014504484A (en) | State synchronization between load balancer components | |
KR20110036573A (en) | Providing access over an ip network to a server application program | |
TW200952516A (en) | Load distribution system, load distribution method and authentication server | |
JP5255035B2 (en) | Failover system, storage processing apparatus, and failover control method | |
JP2013090072A (en) | Service provision system | |
CN111182022A (en) | Data transmission method and device, storage medium and electronic device | |
US9697173B2 (en) | DNS proxy service for multi-core platforms | |
WO2010141450A2 (en) | Method for extending the use of single ipv4 addresses to multiple network end-hosts | |
JP4962451B2 (en) | Load balancing method and DHCP server device | |
JP2004356920A (en) | Dhcp server system | |
US20130254425A1 (en) | Dns forwarder for multi-core platforms | |
CN107172229B (en) | Router configuration method and device | |
CN108632173B (en) | Resource access system and resource access method based on local area network | |
JP2006209465A (en) | Load distribution system, load distribution device, server, load distribution program and load distribution method | |
JP6406712B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM | |
US7392318B1 (en) | Method and system for balancing a traffic load in a half-duplex environment | |
US11190484B2 (en) | Enhanced large scale network address translation (NAT) system for processing packets between router and transmission control protocol/internet protocol (TCP/IP) network | |
KR102043031B1 (en) | Server and method for load balancing of using the same | |
JP2004064379A (en) | Router and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111125 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111129 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120127 |
|
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: 20120228 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120312 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4962451 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150406 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |