JP5169992B2 - Network, network device, and load balancing method used therefor - Google Patents

Network, network device, and load balancing method used therefor Download PDF

Info

Publication number
JP5169992B2
JP5169992B2 JP2009127119A JP2009127119A JP5169992B2 JP 5169992 B2 JP5169992 B2 JP 5169992B2 JP 2009127119 A JP2009127119 A JP 2009127119A JP 2009127119 A JP2009127119 A JP 2009127119A JP 5169992 B2 JP5169992 B2 JP 5169992B2
Authority
JP
Japan
Prior art keywords
network
port
address
vrid
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2009127119A
Other languages
Japanese (ja)
Other versions
JP2010278584A (en
Inventor
信博 中段
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Platforms Ltd
Original Assignee
NEC Platforms Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Platforms Ltd filed Critical NEC Platforms Ltd
Priority to JP2009127119A priority Critical patent/JP5169992B2/en
Publication of JP2010278584A publication Critical patent/JP2010278584A/en
Application granted granted Critical
Publication of JP5169992B2 publication Critical patent/JP5169992B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

本発明はネットワーク、ネットワーク装置及びそれらに用いる負荷分散方法に関し、特にNAT(Network Address Translation)/NAPT(Network Address Port Translation)装置の負荷分散方法に関する。   The present invention relates to a network, a network device, and a load distribution method used therefor, and more particularly, to a load distribution method of a NAT (Network Address Translation) / NAPT (Network Address Port Translation) device.

ネットワーク間の接続に用いられるルータにおいては、負荷分散する手段としてVRRP(Virtual Router Redundancy Protocol)を利用する手段が広く知られている。   In routers used for connection between networks, means using VRRP (Virtual Router Redundancy Protocol) is widely known as means for distributing loads.

VRRPは、ルータの多重化を行うためのプロトコルである。このプロトコルでは、VRRPに対応した複数のルータを1つのグループに所属させ、通常、それらのルータのうちの1つが通信を行うが、そのルータに障害が発生した場合、同じグループに属するルータが自動的にその通信を受け継いでいる。   VRRP is a protocol for multiplexing routers. In this protocol, a plurality of routers corresponding to VRRP belong to one group, and usually one of those routers communicates. When a failure occurs in that router, the routers belonging to the same group are automatically Inherit the communication.

同一グループにおいて、通信を行うルータは1台に限られるが、1つのルータが複数のグループに属することもできるため、その設定によって負荷分散を同時に実現することも可能である。VRRPについては、下記の非特許文献1に記載されている。   In the same group, the number of routers that perform communication is limited to one. However, since one router can belong to a plurality of groups, load distribution can be realized at the same time by the setting. VRRP is described in Non-Patent Document 1 below.

“Virtual Router Redundancy Protocol”[RFC(Request For Comments)2338,April 1998]“Virtual Router Redundancy Protocol” [RFC (Request For Comments) 2338, April 1998].

上述した本発明に関連するルータでは、NAPTを利用している場合、アドレスが1つに集約されてしまうため、VRRPでは負荷分散することができないという課題がある。   In the router related to the present invention described above, when NAPT is used, addresses are aggregated into one, so that there is a problem that load distribution cannot be performed with VRRP.

ここで、NAPTは、プライベートアドレスを利用したいLAN上の複数の端末が、端末数より少ないグローバルアドレスで、同時にインタネットにアクセスしたい場合に利用する機能である。通信の各セッションは、ゲートウェイが端末のプライベートアドレス毎にTCP/UDPのポート番号を変換することで区別される。   Here, NAPT is a function used when a plurality of terminals on a LAN that want to use private addresses want to access the Internet at the same time with a global address that is smaller than the number of terminals. Each communication session is distinguished by the gateway converting the TCP / UDP port number for each private address of the terminal.

本発明に関連するVRRPの仕組みでは、冗長構成を組んでいるルータの両方で同じNAPTアドレスに変換するようにしても、通信の戻りのパケットがNAPTアドレスがマスタとなっているルータしか受信できないため、変換テーブルを共有化するシステムがないと動作しない。   In the VRRP mechanism related to the present invention, even if both routers in a redundant configuration convert to the same NAPT address, only the router having the NAPT address as the master can receive the communication return packet. It does not work without a system that shares the conversion table.

そこで、本発明の目的は上記の問題点を解消し、他方のルータのNAT/NAPT変換テーブルを全く意識することなく、NAT/NAPT変換を実行することができるネットワーク、ネットワーク装置及びそれらに用いる負荷分散方法を提供することにある。   SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to solve the above-described problems and to perform a NAT / NAPT conversion without being aware of the NAT / NAPT conversion table of the other router, and a load used for them. It is to provide a dispersion method.

本発明によるネットワークは、第1及び第2のネットワーク間を接続し、NAT(Network Address Translation)/NAPT(Network Address Port Translation)を実行する第1及び第2のネットワーク装置を含むネットワークであって、
前記第1及び第2のネットワーク装置に対して、前記第1のネットワーク側と前記第2のネットワーク側とにそれぞれ異なる第1及び第2のVRID(Virtual Router IDentifier)を設定し、前記第1のネットワーク側において前記第1及び第2のVRID各々に対して共通の第1の仮想IP(Internet Protocol)アドレスを設定し、前記第2のネットワーク側において前記第1及び第2のVRID各々に対して前記第1の仮想IPアドレスとは異なりかつ共通の第2の仮想IPアドレスを設定し、
前記第1及び第2のネットワーク装置各々において、VRRP(Virtual Router Redundancy Protocol)のバックアップ状態であってもパケットを受信するように動作し、
ポート変換対象のポート番号が偶数のパケットだけを処理する手段を前記第1のVRIDがマスタのネットワーク装置に備え、
前記ポート変換対象のポート番号が奇数のパケットだけを処理する手段を前記第2のVRIDがマスタのネットワーク装置に備えている。
A network according to the present invention is a network including first and second network devices that connect between a first network and a second network and execute NAT (Network Address Translation) / NAPT (Network Address Port Translation),
For the first and second network devices, different first and second VRIDs (Virtual Router IDentifiers) are set on the first network side and the second network side, respectively. A common first virtual IP (Internet Protocol) address is set for each of the first and second VRIDs on the network side, and for each of the first and second VRIDs on the second network side. Setting a second virtual IP address different from and common to the first virtual IP address;
Each of the first and second network devices operates to receive a packet even in a VRRP (Virtual Router Redundancy Protocol) backup state,
The first VRID has a means for processing only a packet having an even port number to be port-converted in the master network device,
The second VRID has a means for processing only packets having an odd port number for port conversion in the master network device.

本発明によるネットワーク装置は、第1及び第2のネットワーク間を接続し、NAT(Network Address Translation)/NAPT(Network Address Port Translation)を実行するネットワーク装置であって、
前記第1のネットワーク側と前記第2のネットワーク側とにそれぞれ異なる第1及び第2のVRID(Virtual Router IDentifier)を設定し、前記第1のネットワーク側において前記第1及び第2のVRID各々に対して共通の第1の仮想IP(Internet Protocol)アドレスを設定し、前記第2のネットワーク側において前記第1及び第2のVRID各々に対して前記第1の仮想IPアドレスとは異なりかつ共通の第2の仮想IPアドレスを設定し、
VRRP(Virtual Router Redundancy Protocol)のバックアップ状態であってもパケットを受信するように動作し、
前記第1のVRIDがマスタの場合にポート変換対象のポート番号が偶数のものだけを処理する手段と、前記第2のVRIDがマスタの場合に前記ポート変換対象のポート番号が奇数のものだけを処理する手段とのうちの少なくとも一方を備えている。
A network device according to the present invention is a network device that connects between a first network and a second network, and executes NAT (Network Address Translation) / NAPT (Network Address Port Translation),
Different first and second VRIDs (Virtual Router IDentifiers) are set on the first network side and the second network side, respectively, and each of the first and second VRIDs is set on the first network side. A common first virtual IP (Internet Protocol) address is set for each of the first and second VRIDs on the second network side, which is different from and common to the first virtual IP address. Set the second virtual IP address,
It operates to receive packets even in the VRRP (Virtual Router Redundancy Protocol) backup state,
When the first VRID is a master, only the port conversion target port number is processed, and when the second VRID is the master, only the port conversion target port number is an odd number. At least one of processing means.

本発明による負荷分散方法は、第1及び第2のネットワーク間を接続し、NAT(Network Address Translation)/NAPT(Network Address Port Translation)を実行する第1及び第2のネットワーク装置を含むネットワークに用いる負荷分散方法であって、
前記第1及び第2のネットワーク装置に対して、前記第1のネットワーク側と前記第2のネットワーク側とにそれぞれ異なる第1及び第2のVRID(Virtual Router IDentifier)を設定し、前記第1のネットワーク側において前記第1及び第2のVRID各々に対して共通の第1の仮想IP(Internet Protocol)アドレスを設定し、前記第2のネットワーク側において前記第1及び第2のVRID各々に対して前記第1の仮想IPアドレスとは異なりかつ共通の第2の仮想IPアドレスを設定し、
前記第1及び第2のネットワーク装置各々において、VRRP(Virtual Router Redundancy Protocol)のバックアップ状態であってもパケットを受信するように動作し、
ポート変換対象のポート番号が偶数のものだけを処理する処理を前記第1のVRIDがマスタのネットワーク装置に備え、
前記ポート変換対象のポート番号が奇数のものだけを処理する処理を前記第2のVRIDがマスタのネットワーク装置に備えている。
The load distribution method according to the present invention is used for a network including first and second network devices that connect between a first network and a second network and execute NAT (Network Address Translation) / NAPT (Network Address Port Translation). A load balancing method,
For the first and second network devices, different first and second VRIDs (Virtual Router IDentifiers) are set on the first network side and the second network side, respectively. A common first virtual IP (Internet Protocol) address is set for each of the first and second VRIDs on the network side, and for each of the first and second VRIDs on the second network side. Setting a second virtual IP address different from and common to the first virtual IP address;
Each of the first and second network devices operates to receive a packet even in a VRRP (Virtual Router Redundancy Protocol) backup state,
The first VRID has a process for processing only the port number to be converted into an even number in the master network device,
The second VRID has a process of processing only the odd port number of the port conversion target in the master network device.

本発明は、上記のような構成及び動作とすることで、他方のルータのNAT/NAPT変換テーブルを全く意識することなく、NAT/NAPT変換を実行することができるという効果が得られる。   By adopting the configuration and operation as described above, the present invention provides an effect that NAT / NAPT conversion can be executed without being conscious of the NAT / NAPT conversion table of the other router.

本発明の第1の実施の形態によるネットワークの構成例を示すブロック図である。It is a block diagram which shows the structural example of the network by the 1st Embodiment of this invention. 図1に示すルータ1の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the router 1 shown in FIG. (a)は図2に示すプライベート側受信条件記憶部114の構成例を示す図、(b)は図2に示すグローバル側受信条件記憶部124の構成例を示す図である。(A) is a figure which shows the structural example of the private side receiving condition memory | storage part 114 shown in FIG. 2, (b) is a figure which shows the structural example of the global side receiving condition memory | storage part 124 shown in FIG. 図1に示す端末3から送信されるパケットのヘッダの一例を示す図である。It is a figure which shows an example of the header of the packet transmitted from the terminal 3 shown in FIG. 図1に示すルータ1での変換後のパケットのヘッダの一例を示す図である。It is a figure which shows an example of the header of the packet after conversion in the router 1 shown in FIG. 図5に示すパケットに対する応答パケットのヘッダの一例を示す図である。It is a figure which shows an example of the header of the response packet with respect to the packet shown in FIG. 図1に示すルータ1での変換後の応答パケットのヘッダの一例を示す図である。It is a figure which shows an example of the header of the response packet after the conversion in the router 1 shown in FIG.

次に、本発明の実施の形態について図面を参照して説明する。まず、本発明によるネットワークについて説明する。本発明によるネットワークは、NAT(Network Address Translation)/NAPT(Network Address Port Translation)を実行しているルータにおいて、VRRP(Virtual Router Redundancy Protocol)による負荷分散を可能にすることを特徴とする。   Next, embodiments of the present invention will be described with reference to the drawings. First, a network according to the present invention will be described. The network according to the present invention is characterized in that load distribution by VRRP (Virtual Router Redundancy Protocol) is enabled in a router executing NAT (Network Address Translation) / NAPT (Network Address Port Translation).

以下、本発明によるネットワークについて、2台のルータで負荷分散する場合を説明する。   Hereinafter, a case where the load distribution is performed by two routers in the network according to the present invention will be described.

本発明によるネットワークでは、2台のルータ各々において、LAN(Local Area Network)側とWAN(Wide Area Network)側とにそれぞれVRID(Virtual Router IDentifier)#1とVRID#2とを設定し、それぞれの側で同じ仮想IP(Internet Protocol)アドレスを設定する。つまり、2台のルータ各々においては、LAN側とWAN側とで同じ仮想IPアドレスが設定される。   In the network according to the present invention, VRID (Virtual Router IDentifier) # 1 and VRID # 2 are set on each of two routers on the LAN (Local Area Network) side and WAN (Wide Area Network) side, respectively. The same virtual IP (Internet Protocol) address is set on the side. That is, in each of the two routers, the same virtual IP address is set on the LAN side and the WAN side.

VRRPは、バックアップ状態であってもパケットを受信するように動作を変更し、その代わりにVRID#1がマスタのルータは、ポート変換対象のポート番号(LAN側端末から見た送信元ポート番号)が偶数のものだけを処理するように動作を変更する。また、VRID#2がマスタのルータは、ポート変換対象のポート番号が奇数のものだけを処理するように動作を変更する。   VRRP changes its operation to receive packets even in the backup state. Instead, the router whose VRID # 1 is the master port number for port conversion (source port number as seen from the LAN side terminal) Change the behavior so that only processes even numbers. Also, the router whose master is VRID # 2 changes the operation so that only the port conversion target port number is an odd number.

本発明によるネットワークは、NAPTのポート変換も偶数、奇数を変更しないようにポート変換を行うことで、アドレスが1つしかなくてもポート番号が偶数か奇数かで処理されるルータが変更され、負荷分散が行われる。   The network according to the present invention performs port conversion so that the port conversion of NAPT does not change even number and odd number, so that even if there is only one address, the router to be processed is changed depending on whether the port number is even or odd, Load balancing is performed.

上記の条件は、任意に変更可能なため、3台以上やTCP(Transmission Control Protocol)/UDP(User Datagram Protocol)以外の通信がある環境での負荷分散も、上記と同様に可能である。   Since the above conditions can be arbitrarily changed, load distribution in an environment where there is communication other than three or more than TCP (Transmission Control Protocol) / UDP (User Datagram Protocol) is also possible as described above.

図1は本発明の第1の実施の形態によるネットワークの構成例を示すブロック図である。図1において、本発明の第1の実施の形態によるネットワークは、ルータ1,2と、プライベートネットワーク100(上記のLAN側)と、グローバルネットワーク200(上記のWAN側)とから構成されている。プライベートネットワーク100には端末3,4が属し、グローバルネットワーク200には端末5が属している。   FIG. 1 is a block diagram showing a configuration example of a network according to the first embodiment of the present invention. In FIG. 1, the network according to the first embodiment of the present invention includes routers 1 and 2, a private network 100 (the LAN side), and a global network 200 (the WAN side). Terminals 3 and 4 belong to the private network 100, and terminal 5 belongs to the global network 200.

ルータ1,2は、グローバルアドレス側に共通のNAPTアドレスであるIPアドレスAを持ち、プライベートアドレス側にプライベート端末(端末3,4)のゲートウェイアドレスとなる共通のIPアドレスBを持っているものとする。   The routers 1 and 2 have an IP address A that is a common NAPT address on the global address side, and a common IP address B that serves as a gateway address for the private terminals (terminals 3 and 4) on the private address side. To do.

VRRPの設定は、以下のように設定される。まず、グローバル側のVRID#1及びVRID#2は、仮想IPアドレスがIPアドレスAで設定され、VRID#1はルータ1がマスタ、ルータ2がバックアップとなるように、VRID#2はルータ2がマスタ、ルータ1がバックアップとなるように設定される。   The VRRP is set as follows. First, VRID # 1 and VRID # 2 are set with IP address A as the virtual IP address, VRID # 1 is the master for router 1, and VRID # 2 is the router 2 for backup. The master and router 1 are set to be backup.

また、同様にプライベート側のVRID#1及びVRID#2は、仮想IPアドレスがIPアドレスBで設定され、VRID#1はルータ1がマスタ、ルータ2がバックアップとなるように、VRID#2はルータ2がマスタ、ルータ1がバックアップとなるように設定される。   Similarly, VRID # 1 and VRID # 2 on the private side have a virtual IP address set by IP address B. VRID # 1 is a router, and router 2 is a backup, and VRID # 2 is a router. 2 is set as a master and router 1 is set as a backup.

アドレスが同じであることを除けば、広く知られているVRRPの負荷分散の設定であるので、マスタとバックアップとの設定方法についてはその説明を省略する。   Except for the fact that the addresses are the same, the VRRP load distribution setting is well known, and therefore the description of the setting method for the master and the backup is omitted.

複数のVRIDで同じアドレスを設定するため、本実施の形態におけるVRRP機能はいくつか動作を変更すべき点が生じる。まず、異なるVRIDに同じアドレスが付与できる必要があり、さらに仮想MAC(Media Access Control)アドレスに対するARP(Address Resolution Protocol)応答は、特定のVRIDだけ応答させるようにできることが好ましい。   Since the same address is set with a plurality of VRIDs, the VRRP function in the present embodiment has some points that should be changed. First, it is necessary to be able to assign the same address to different VRIDs, and it is preferable that an ARP (Address Resolution Protocol) response to a virtual MAC (Media Access Control) address can be made to respond only to a specific VRID.

但し、これらは必須用件ではなく、異なるVRIDに同じアドレスを付与できない場合は、ダミーの利用しない任意のアドレスを設定することにしても良い。この場合は、利用する仮想IPアドレスを持っているVRIDのみがARP応答をするので、特定のVRIDのみARP応答させる機能を用意する必要はない。   However, these are not essential requirements. If the same address cannot be assigned to different VRIDs, an arbitrary address not used as a dummy may be set. In this case, since only the VRID having the virtual IP address to be used makes an ARP response, it is not necessary to prepare a function for making an ARP response only to a specific VRID.

さらに、通常、VRRPは、仮想MACアドレスに対応するVRIDがマスタの場合のみパケットを受信するが、本実施の形態によるVRRP機能は、マスタ及びバックアップの条件ではなく、別のパケット受信条件が設定できなければならない。   Furthermore, VRRP normally receives a packet only when the VRID corresponding to the virtual MAC address is the master, but the VRRP function according to this embodiment can set different packet reception conditions instead of the master and backup conditions. There must be.

別の条件とは、VRID#1がマスタのルータにおいてポート変換対象のポート番号(LAN側端末から見た送信元ポート番号)が偶数のものだけを受信し、同様にVRID#2がマスタのルータにおいてポート変換対象のポート番号が奇数のものだけ受信する、というように動作させることである。   Another condition is that VRID # 1 is a master router that receives only port conversion target port numbers (source port numbers viewed from the LAN side terminal), and VRID # 2 is the master router. In FIG. 4, the operation is performed so that only the port numbers subject to port conversion are odd numbers.

図2は図1に示すルータ1の内部構成を示すブロック図である。図2において、ルータ1は、プライベート側インタフェース11と、グローバル側インタフェース12とを備えている。尚、図示していないが、図1に示すルータ2の内部構成は、図2に示すルータ1の内部構成と同様の構成となっている。   FIG. 2 is a block diagram showing an internal configuration of the router 1 shown in FIG. In FIG. 2, the router 1 includes a private side interface 11 and a global side interface 12. Although not shown, the internal configuration of the router 2 shown in FIG. 1 is the same as the internal configuration of the router 1 shown in FIG.

プライベート側インタフェース11は、受信部111と、送信部112と、受信判定部113と、プライベート側受信条件記憶部114と、VRRP状態記憶部115とを備えている。   The private side interface 11 includes a receiving unit 111, a transmitting unit 112, a reception determining unit 113, a private side receiving condition storage unit 114, and a VRRP state storage unit 115.

グローバル側インタフェース12は、受信部121と、送信部122と、受信判定部123と、グローバル側受信条件記憶部124と、VRRP状態記憶部125と、NAPT変換記憶部126とを備え、受信部121及び送信部122には、それぞれNAPT処理部1211,1221を備えている。   The global side interface 12 includes a reception unit 121, a transmission unit 122, a reception determination unit 123, a global side reception condition storage unit 124, a VRRP state storage unit 125, and a NAPT conversion storage unit 126. The transmission unit 122 includes NAPT processing units 1211 and 1221, respectively.

受信判定部113,123は、本発明に特有のものである。受信判定部113は、プライベート側受信条件記憶部114とVRRP状態記憶部115とを参照する。受信判定部123は、グローバル側受信条件記憶部124とVRRP状態記憶部125とを参照する。   The reception determination units 113 and 123 are unique to the present invention. The reception determination unit 113 refers to the private-side reception condition storage unit 114 and the VRRP state storage unit 115. The reception determination unit 123 refers to the global side reception condition storage unit 124 and the VRRP state storage unit 125.

図3(a)は図2に示すプライベート側受信条件記憶部114の構成例を示す図であり、図3(b)は図2に示すグローバル側受信条件記憶部124の構成例を示す図である。   3A is a diagram illustrating a configuration example of the private-side reception condition storage unit 114 illustrated in FIG. 2, and FIG. 3B is a diagram illustrating a configuration example of the global-side reception condition storage unit 124 illustrated in FIG. is there.

図3(a)において、プライベート側受信条件記憶部114は、受信パケット種別毎に処理条件を記憶している。TCPの場合は、送信元ポートが奇数であればVRID#1がマスタ、送信元ポートが偶数であればVRID#2がマスタであり、UDPの場合は、送信元ポートが奇数であればVRID#1がマスタ、送信元ポートが偶数であればVRID#2がマスタである。また、TCP/UDP以外のプロトコルの場合は、VRID#1がマスタである。   In FIG. 3A, the private-side reception condition storage unit 114 stores processing conditions for each received packet type. In the case of TCP, VRID # 1 is the master if the source port is odd, and VRID # 2 is the master if the source port is even. In the case of UDP, VRID # 1 is the VRID # 2 if the source port is odd. If 1 is the master and the source port is an even number, VRID # 2 is the master. In the case of a protocol other than TCP / UDP, VRID # 1 is the master.

図3(b)において、グローバル側受信条件記憶部124は、受信パケット種別毎に処理条件を記憶している。TCPの場合は、送信先ポートが奇数であればVRID#1がマスタ、送信先ポートが偶数であればVRID#2がマスタであり、UDPの場合は、送信先ポートが奇数であればVRID#1がマスタ、送信先ポートが偶数であればVRID#2がマスタである。TCP/UDP以外のプロトコルの場合は、VRID#1がマスタである。   In FIG. 3B, the global-side reception condition storage unit 124 stores a processing condition for each received packet type. In the case of TCP, VRID # 1 is the master if the destination port is an odd number, and VRID # 2 is the master if the destination port is an even number. In the case of UDP, the VRID # 1 is an odd number if the destination port is an odd number. If 1 is the master and the destination port is an even number, VRID # 2 is the master. In the case of a protocol other than TCP / UDP, VRID # 1 is the master.

受信判定部113は、上記のプライベート側受信条件記憶部114を参照して動作を行い、受信判定部123は、上記のグローバル側受信条件記憶部124を参照して動作を行う。   The reception determination unit 113 operates by referring to the private side reception condition storage unit 114, and the reception determination unit 123 operates by referring to the global side reception condition storage unit 124.

また、本実施の形態によるNAT/NAPT機能にも必要な条件がある。図2に示す通り、NAPT処理部1211,1221は、それぞれ受信部121及び送信部122で動作しており、NAPT変換記憶部126を参照して動作する。この構成は通常のNAPTのものである。   There are also necessary conditions for the NAT / NAPT function according to the present embodiment. As shown in FIG. 2, the NAPT processing units 1211 and 1221 are operated by the reception unit 121 and the transmission unit 122, respectively, and operate by referring to the NAPT conversion storage unit 126. This configuration is that of a normal NAPT.

但し、NAPTは、ポート変換の際に、変換後のポート番号も、図3に示すVRRPの受信条件を維持させなければならない。具体的には、図3に示す例の場合、NAPTが偶数ポートを変換する場合は変換後のポート番号も必ず偶数になるように、奇数ポートを変換する場合は必ず奇数となるようにする必要がある。これは、同一セッションのパケットが必ず同じルータを通るようにするための必須の条件である。   However, the NAPT must maintain the VRRP reception conditions shown in FIG. 3 for the port number after conversion at the time of port conversion. Specifically, in the example shown in FIG. 3, it is necessary that the port number after conversion is always an even number when NAPT converts an even number port, and an odd number when converting an odd number port. There is. This is an essential condition for ensuring that packets of the same session pass through the same router.

本実施の形態では、VRRP機能とNAT/NAPT機能とに上記の特徴を付与することで、NAPT環境であってもVRRPによる負荷分散が可能となる。尚、NAT/NAPT及びVRRPの動作については、当業者にとってよく知られており、詳細な構成や動作の説明は省略する。   In the present embodiment, by providing the above features to the VRRP function and the NAT / NAPT function, load distribution by VRRP is possible even in a NAPT environment. The operations of NAT / NAPT and VRRP are well known to those skilled in the art, and detailed description of the configuration and operation will be omitted.

図4は図1に示す端末3から送信されるパケットのヘッダの一例を示す図であり、図5は図1に示すルータ1での変換後のパケットのヘッダの一例を示す図であり、図6は図5に示すパケットに対する応答パケットのヘッダの一例を示す図であり、図7は図1に示すルータ1での変換後の応答パケットのヘッダの一例を示す図である。これら図1〜図7を参照してパケットが負荷分散される例について説明する。   4 is a diagram showing an example of a header of a packet transmitted from the terminal 3 shown in FIG. 1, and FIG. 5 is a diagram showing an example of a header of a packet after conversion by the router 1 shown in FIG. 6 is a diagram showing an example of a response packet header for the packet shown in FIG. 5, and FIG. 7 is a diagram showing an example of a response packet header after conversion by the router 1 shown in FIG. An example in which packets are load-balanced will be described with reference to FIGS.

図1に示すルータ1,2は、グローバルネットワーク200側とプライベートネットワーク100側ともにVRID#1,VRID#2を設定する。   The routers 1 and 2 shown in FIG. 1 set VRID # 1 and VRID # 2 on both the global network 200 side and the private network 100 side.

グローバルアドレス側のVRID#1は、仮想IPアドレスAと、VRIDから決定される仮想MACアドレスCとが設定される。グローバルアドレス側のVRID#2は、仮想IPアドレスAと、VRIDから決定される仮想MACアドレスDとが設定される。   VRID # 1 on the global address side is set with a virtual IP address A and a virtual MAC address C determined from the VRID. In VRID # 2 on the global address side, virtual IP address A and virtual MAC address D determined from VRID are set.

通常のVRRPは、異なるVRRPで同じ仮想IPアドレスを設定して正しく動作させることはできない(ARP解決の際に応答するMACアドレスが決定できないため)が、ここでは設定可能としておく必要がある。1つの仮想IPアドレスAに複数の仮想MACアドレスC,Dを設定した場合にARP応答が1つのMACアドレスになるようにするためには、例えば特定のVRID以外のARP応答動作を止めれば良い。ここでは、ARP応答をVRID#1のマスタのルータ1のみが行うものとする。   Ordinary VRRP cannot be operated correctly by setting the same virtual IP address with different VRRPs (because the MAC address that responds when ARP is resolved cannot be determined), but it needs to be settable here. In order to make an ARP response become one MAC address when a plurality of virtual MAC addresses C and D are set for one virtual IP address A, for example, an ARP response operation other than a specific VRID may be stopped. Here, it is assumed that only the master router 1 with VRID # 1 makes an ARP response.

同様に、プライベートアドレス側のVRID#1は、仮想IPアドレスBと、VRIDから決定される仮想MACアドレスEとが設定される。プライベートアドレス側のVRID#2は、仮想IPアドレスBと、VRIDから決定される仮想MACアドレスFとが設定される。こちらも、ARP応答をVRID#1のマスタのルータ1のみが行うものとする。   Similarly, VRID # 1 on the private address side is set with virtual IP address B and virtual MAC address E determined from VRID. In VRID # 2 on the private address side, virtual IP address B and virtual MAC address F determined from VRID are set. Here again, it is assumed that only the master router 1 of VRID # 1 makes an ARP response.

また、仮想IPアドレスAは、NAPTアドレスとして利用する。ルータ1とルータ2とで同じNAPTアドレスが設定されることになる。   The virtual IP address A is used as a NAPT address. The same NAPT address is set in the router 1 and the router 2.

端末3は、IPアドレスaを持ち、デフォルトゲートウェイにIPアドレスBが設定されている。端末4は、IPアドレスbを持ち、デフォルトゲートウェイにIPアドレスBが設定されている。端末5は、IPアドレスcを持ち、デフォルトゲートウェイにIPアドレスAが設定されている。   The terminal 3 has an IP address a, and the IP address B is set as the default gateway. The terminal 4 has an IP address b, and an IP address B is set as a default gateway. The terminal 5 has an IP address c, and the IP address A is set as the default gateway.

ここで、端末3から端末5に通信を行う場合について述べる。プロトコルはTCPでもUDPでも良い。送信先MACアドレスは、端末3のデフォルトゲートウェイとして設定されているIPアドレスBに対するARP解決で決定される。IPアドレスBに対するARPの応答は、上述した通り、VRID#1のマスタルータが行うと決めているので、ルータ1が仮想MACアドレスEを応答する。   Here, a case where communication is performed from the terminal 3 to the terminal 5 will be described. The protocol may be TCP or UDP. The destination MAC address is determined by ARP resolution for the IP address B set as the default gateway of the terminal 3. Since the ARP response to the IP address B is determined to be performed by the master router of VRID # 1, as described above, the router 1 responds with the virtual MAC address E.

端末3が端末5宛てに送信したパケットは、送信先のMACアドレスが仮想MACアドレスEになる。このため、通常のVRRPでは、仮想MACアドレスEを持つVRID#1がマスタのルータ1でのみ受信処理されるが、本実施の形態では、このパケットをVRID#1がマスタかバックアップかではなく、ルータ1及びルータ2ともに受信部111でパケットを受信し、受信判定部113がプライベート側受信条件記憶部114及びVRRP状態記憶部115の情報[図3(a)に示す条件]を参照して受信処理を継続するか廃棄するかを決定する。   In the packet transmitted from the terminal 3 to the terminal 5, the destination MAC address is the virtual MAC address E. Therefore, in normal VRRP, VRID # 1 having a virtual MAC address E is received and processed only by the master router 1, but in this embodiment, this packet is not whether VRID # 1 is a master or a backup, Both the router 1 and the router 2 receive the packet at the reception unit 111, and the reception determination unit 113 receives the packet by referring to the information [conditions shown in FIG. 3A] in the private-side reception condition storage unit 114 and the VRRP state storage unit 115. Decide whether you want to continue processing or discard.

ここでは、図4に示すように、送信元ポート番号「5001」と奇数のパケットを送信しているため、図3に示す条件により、このパケットはVRID#1がマスタのルータ1でのみ受信処理される。ルータ2では、VRID#1がマスタではないので、パケットを廃棄して何も処理を行わない。   In this example, as shown in FIG. 4, since the transmission source port number “5001” and an odd-numbered packet are transmitted, this packet is received only by the router 1 whose VRID # 1 is the master according to the conditions shown in FIG. Is done. In the router 2, since VRID # 1 is not the master, the packet is discarded and no processing is performed.

ルータ1は、パケットを通常どおり処理し、グローバル側インタフェース12でNAPT処理部1221がNAPT変換してパケットを送信する。その時の変換後のパケットは、図5に示すようになるものとする。NAT/NAPT変換の詳細な説明については省略するが、本実施の形態によるNAPT処理部1221は、ポート番号を変換する必要がある場合、ルータ1では必ずポート番号が奇数になるように処理する必要がある(ここでは、仮に「50001」としている)。   The router 1 processes the packet as usual, and the NAPT processing unit 1221 performs NAPT conversion on the global side interface 12 and transmits the packet. The converted packet at that time is as shown in FIG. Although detailed description of NAT / NAPT conversion is omitted, the NAPT processing unit 1221 according to the present embodiment needs to process the port number to be an odd number in the router 1 when it is necessary to convert the port number. (Here, “50001” is assumed).

これは、ルータ1で変換したパケットの応答パケット(図6に示すヘッダ参照)が必ずNAPT処理したルータに戻ってくるようにするためである。そして、ルータ1で図4に示すヘッダのパケットを図5に示すヘッダのパケットに変換した情報は、ルータ1のNAPT変換記憶部126に記録される。   This is to ensure that the response packet of the packet converted by the router 1 (see the header shown in FIG. 6) always returns to the NAPT-processed router. Information obtained by converting the header packet shown in FIG. 4 into the header packet shown in FIG. 5 by the router 1 is recorded in the NAPT conversion storage unit 126 of the router 1.

NAPT変換された図5に示すヘッダのパケットは、通常どおり、端末5に送信され、端末5は図6に示すヘッダの応答パケットを生成して送信する。   The NAPT-converted header packet shown in FIG. 5 is transmitted to the terminal 5 as usual, and the terminal 5 generates and transmits a header response packet shown in FIG.

この図6に示すヘッダの送信先MACアドレスは、上述したプライベート側と同様のARP解決によりVRID#1の仮想MACアドレスCとなる。グローバル側インタフェース12でもプライベート側インタフェース11の場合と同様に、ルータ1及びルータ2ともに応答パケットを受信し、それぞれの受信判定部123がグローバル側受信条件記憶部124及びVRRP状態記憶部125の情報[図3(b)に示す条件]を参照して受信処理を継続するか、廃棄するかを決定する。   The transmission destination MAC address of the header shown in FIG. 6 becomes the virtual MAC address C of VRID # 1 by the ARP resolution similar to that of the private side described above. As in the case of the private side interface 11, both the router 1 and the router 2 receive the response packet in the global side interface 12, and each reception determination unit 123 receives information in the global side reception condition storage unit 124 and the VRRP state storage unit 125 [ With reference to the conditions shown in FIG. 3B, it is determined whether to continue the reception process or discard it.

図3に示す条件はNAPTに使用されていないプライベートネットワーク側のVRRPは送信元ポート番号を、NAPTに使用されているグローバルネットワーク側のVRRPは送信先ポート番号で、処理するルータが決定されることに注意する。   The condition shown in FIG. 3 is that VRRP on the private network side not used for NAPT is the source port number, and VRRP on the global network side used for NAPT is the destination port number, and the router to be processed is determined. Be careful.

図6に示すヘッダの応答パケットをNAPT変換できるのは、NAPT記憶部126に変換情報が記憶されているルータ1である。このため、端末5が送信する応答パケットは、送信パケットと同じルータに処理させる必要があるが、どちらもNAPTで変換に利用されるポート番号となっており、上述したように、NAPTがポート番号の偶数奇数の条件を保存しておくことで、これを実現することができる。   It is the router 1 whose conversion information is stored in the NAPT storage unit 126 that can NAPT-convert the response packet in the header shown in FIG. For this reason, the response packet transmitted from the terminal 5 needs to be processed by the same router as the transmission packet, but both are port numbers used for conversion by NAPT. As described above, NAPT is the port number. This can be realized by storing even-numbered and odd-numbered conditions.

図6に示すヘッダの応答パケットの送信先ポート番号は「50001」と奇数のため、ルータ2では何も処理を行わない。ルータ1は、応答パケットを通常どおり処理し、NAPT処理部1221がNAPT記憶部126を参照してNAPT変換を行う。この変換は、通常のNAPT変換であるため、その説明は省略する。変換後のパケットのヘッダは、図7に示す通りである。   Since the transmission destination port number of the response packet in the header shown in FIG. 6 is an odd number “50001”, the router 2 does not perform any processing. The router 1 processes the response packet as usual, and the NAPT processing unit 1221 refers to the NAPT storage unit 126 and performs NAPT conversion. Since this conversion is a normal NAPT conversion, its description is omitted. The header of the packet after conversion is as shown in FIG.

また、端末3から送信したパケットの送信元ポート番号が偶数だった場合、端末5宛ての通信がルータ2を通り、端末5からの応答パケットもルータ2を通ることは、上述した送信元ポート番号が奇数だった場合の説明から明らかである。   Further, when the transmission source port number of the packet transmitted from the terminal 3 is an even number, the communication addressed to the terminal 5 passes through the router 2 and the response packet from the terminal 5 also passes through the router 2. It is clear from the explanation when is an odd number.

これにより、NAPT変換に利用されるポート番号が奇数であればルータ1が、偶数であればルータ2が処理し、端末3と端末5との通信は成立する。ポート番号が偶数か奇数かで処理するルータが切り替わり、奇数ポートのみを処理するルータは、偶数ポートの変換テーブルを持つ必要がないことから、負荷分散が実現されている。   Thereby, if the port number used for the NAPT conversion is an odd number, the router 1 processes, and if it is an even number, the router 2 processes, and communication between the terminal 3 and the terminal 5 is established. The router for processing is switched depending on whether the port number is even or odd, and the router that processes only the odd port does not need to have an even port conversion table, so load distribution is realized.

尚、ルータ1やルータ2が障害となった場合は、他方がVRID#1,VRID#2ともにマスタルータとなるので、一方のみでも継続して変換処理は行うことができる。但し、障害発生時に通信していたセッションは、この方式では通信継続が保証されないので、注意が必要である。   If router 1 or router 2 becomes faulty, both VRID # 1 and VRID # 2 become master routers, so that only one of them can continue the conversion process. However, it is necessary to pay attention to the session that was communicating at the time of the failure because communication continuation is not guaranteed with this method.

このように、本実施の形態では、以下に記載するような効果を奏する。通常、NAPTの負荷分散では、複数のルータの変換テーブルが競合しないように、互いの変換テーブルを監視したり、同一の変換テーブルを参照したりする必要があるが、本実施の形態では、予め処理するパケットを固定的な条件で分離しているため、他方のルータのNAT/NAPT変換テーブルを全く意識することなく、NAT/NAPT変換を実行することができる。このため、安価なルータでも容易に負荷分散を実現することが可能となる。   As described above, the present embodiment has the following effects. Normally, in NAPT load distribution, it is necessary to monitor each other's conversion tables or refer to the same conversion table so that the conversion tables of a plurality of routers do not compete with each other. Since packets to be processed are separated under a fixed condition, NAT / NAPT conversion can be executed without being aware of the NAT / NAPT conversion table of the other router. For this reason, it is possible to easily realize load distribution even with an inexpensive router.

本発明は、上記の説明のように、2台のルータ1,2の場合について述べているが、n台(nは3以上の整数)のルータで実施した場合も、ポート番号がnで割った余りに応じて処理を行う等のルールに変更すれば、上記の実施の形態と同様に対応可能である。   In the present invention, as described above, the case of two routers 1 and 2 has been described. However, even when implemented with n routers (n is an integer of 3 or more), the port number is divided by n. If the rules are changed such as processing according to the remainder, the same manner as in the above embodiment can be applied.

また、本発明は、プライベートネットワーク側の端末から見て送信元ポート番号を利用して負荷分散を実行しているが、送信先ポートや送信先アドレスを条件に含めても良い。送信元ポートを条件に含めない場合は、NAPTの変換ポートに特殊な条件(偶数/奇数を保存する等)を付与する必要はないが、送信元ポート利用よりも負荷分散に偏りが生じやすい。   In the present invention, load distribution is performed using a source port number when viewed from a terminal on the private network side. However, a destination port and a destination address may be included in the condition. When the source port is not included in the condition, it is not necessary to give a special condition (such as storing even / odd number) to the NAPT conversion port, but the load distribution is more likely to be biased than when the source port is used.

1,2 ルータ
3〜5 端末
11 プライベート側インタフェース
12 グローバル側インタフェース
100 プライベートネットワーク
111,121 受信部
112,122 送信部
113,123 受信判定部
114 プライベート側受信条件記憶部
115,125 VRRP状態記憶部
124 グローバル側受信条件記憶部
126 NAPT変換記憶部
200 グローバルネットワーク
1211,1221 NAPT処理部
1, 2 routers
3-5 terminals
11 Private side interface
12 Global interface
100 Private network 111, 121 Receiving unit 112, 122 Transmitting unit 113, 123 Reception determining unit
114 Private-side reception condition storage unit 115, 125 VRRP state storage unit
124 Global-side reception condition storage unit
126 NAPT conversion storage unit
200 Global Network 1211, 1221 NAPT Processing Unit

Claims (15)

第1及び第2のネットワーク間を接続し、NAT(Network Address Translation)/NAPT(Network Address Port Translation)を実行する第1及び第2のネットワーク装置を含むネットワークであって、
前記第1及び第2のネットワーク装置に対して、前記第1のネットワーク側と前記第2のネットワーク側とにそれぞれ異なる第1及び第2のVRID(Virtual Router IDentifier)を設定し、前記第1のネットワーク側において前記第1及び第2のVRID各々に対して共通の第1の仮想IP(Internet Protocol)アドレスを設定し、前記第2のネットワーク側において前記第1及び第2のVRID各々に対して前記第1の仮想IPアドレスとは異なりかつ共通の第2の仮想IPアドレスを設定し、
前記第1及び第2のネットワーク装置各々において、VRRP(Virtual Router Redundancy Protocol)のバックアップ状態であってもパケットを受信するように動作し、
ポート変換対象のポート番号が偶数のパケットだけを処理する手段を前記第1のVRIDがマスタのネットワーク装置に有し、
前記ポート変換対象のポート番号が奇数のパケットだけを処理する手段を前記第2のVRIDがマスタのネットワーク装置に有することを特徴とするネットワーク。
A network including first and second network devices that connect between a first network and a second network and execute NAT (Network Address Translation) / NAPT (Network Address Port Translation),
For the first and second network devices, different first and second VRIDs (Virtual Router IDentifiers) are set on the first network side and the second network side, respectively. A common first virtual IP (Internet Protocol) address is set for each of the first and second VRIDs on the network side, and for each of the first and second VRIDs on the second network side. Setting a second virtual IP address different from and common to the first virtual IP address;
Each of the first and second network devices operates to receive a packet even in a VRRP (Virtual Router Redundancy Protocol) backup state,
The first VRID has a means for processing only a packet having an even port number to be port-converted in the master network device,
The network characterized in that the second VRID has a means for processing only a packet having an odd port number for port conversion in the master network device.
前記第1のVRIDがマスタのネットワーク装置において前記ポート変換対象のポート番号が偶数のパケットだけを受信し、前記第2のVRIDがマスタのネットワーク装置において前記ポート変換対象のポート番号が奇数のパケットだけを受信することを特徴とする請求項1記載のネットワーク。   In the network device whose first VRID is the master, only the packets whose port number to be converted is an even number are received, and in the network device whose second VRID is the master, only the packets whose port number to be converted is an odd number The network according to claim 1, wherein the network is received. 前記第1及び第2のネットワーク装置各々は、NAPTのポート変換においてポート番号の偶数及び奇数を変更しないようにポート変換を行うことを特徴とする請求項1または請求項2記載のネットワーク。   3. The network according to claim 1, wherein each of the first and second network devices performs port conversion so that even numbers and odd numbers of port numbers are not changed in port conversion of NAPT. 前記第1及び第2のネットワーク装置各々は、前記第1のネットワーク側の端末からのパケットの送信元ポート番号、送信先ポート、送信先アドレスのうちの少なくとも一つを利用して前記パケットの処理の負荷分散を行うことを特徴とする請求項1から請求項3のいずれか記載のネットワーク。 Each of the first and second network devices processes the packet using at least one of a transmission source port number, a transmission destination port, and a transmission destination address of the packet from the terminal on the first network side. The network according to claim 1 , wherein load distribution is performed. 前記第1のネットワークがLAN(Local Area Network)であり、前記第2のネットワークがWAN(Wide Area Network)であることを特徴とする請求項1から請求項4のいずれか記載のネットワーク。   5. The network according to claim 1, wherein the first network is a LAN (Local Area Network), and the second network is a WAN (Wide Area Network). 6. 第1及び第2のネットワーク間を接続し、NAT(Network Address Translation)/NAPT(Network Address Port Translation)を実行するネットワーク装置であって、
前記第1のネットワーク側と前記第2のネットワーク側とにそれぞれ異なる第1及び第2のVRID(Virtual Router IDentifier)を設定し、前記第1のネットワーク側において前記第1及び第2のVRID各々に対して共通の第1の仮想IP(Internet Protocol)アドレスを設定し、前記第2のネットワーク側において前記第1及び第2のVRID各々に対して前記第1の仮想IPアドレスとは異なりかつ共通の第2の仮想IPアドレスを設定し、
VRRP(Virtual Router Redundancy Protocol)のバックアップ状態であってもパケットを受信するように動作し、
前記第1のVRIDがマスタの場合にポート変換対象のポート番号が偶数のものだけを処理する手段と、前記第2のVRIDがマスタの場合に前記ポート変換対象のポート番号が奇数のものだけを処理する手段とのうちの少なくとも一方を有することを特徴とするネットワーク装置。
A network device that connects between a first network and a second network and executes NAT (Network Address Translation) / NAPT (Network Address Port Translation),
Different first and second VRIDs (Virtual Router IDentifiers) are set on the first network side and the second network side, respectively, and each of the first and second VRIDs is set on the first network side. A common first virtual IP (Internet Protocol) address is set for each of the first and second VRIDs on the second network side, which is different from and common to the first virtual IP address. Set the second virtual IP address,
It operates to receive packets even in the VRRP (Virtual Router Redundancy Protocol) backup state,
When the first VRID is a master, only the port conversion target port number is processed, and when the second VRID is the master, only the port conversion target port number is an odd number. A network apparatus comprising at least one of processing means.
前記第1のVRIDがマスタの場合において前記ポート変換対象のポート番号が偶数のものだけを受信する手段と、前記第2のVRIDがマスタの場合において前記ポート変換対象のポート番号が奇数のものだけを受信する手段とのうちの少なくとも一方を含むことを特徴とする請求項6記載のネットワーク装置。   Means for receiving only the port conversion target port number when the first VRID is a master, and only the odd port conversion target port number when the second VRID is a master The network apparatus according to claim 6, further comprising at least one of: NAPTのポート変換においてポート番号の偶数及び奇数を変更しないようにポート変換を行うことを特徴とする請求項6または請求項7記載のネットワーク装置。   8. The network device according to claim 6, wherein port conversion is performed so that even numbers and odd numbers of port numbers are not changed in NAPT port conversion. 前記第1のネットワーク側の端末からのパケットの送信元ポート番号、送信先ポート、送信先アドレスのうちの少なくとも一つを利用して前記パケットの処理の負荷分散を行うことを特徴とする請求項6から請求項8のいずれか記載のネットワーク装置。 The load distribution of the packet processing is performed using at least one of a transmission source port number, a transmission destination port, and a transmission destination address of a packet from a terminal on the first network side. The network device according to any one of claims 6 to 8. 前記第1のネットワークがLAN(Local Area Network)であり、前記第2のネットワークがWAN(Wide Area Network)であることを特徴とする請求項6から請求項9のいずれか記載のネットワーク装置。   10. The network device according to claim 6, wherein the first network is a LAN (Local Area Network) and the second network is a WAN (Wide Area Network). 11. 第1及び第2のネットワーク間を接続し、NAT(Network Address Translation)/NAPT(Network Address Port Translation)を実行する第1及び第2のネットワーク装置を含むネットワークに用いる負荷分散方法であって、
前記第1及び第2のネットワーク装置に対して、前記第1のネットワーク側と前記第2のネットワーク側とにそれぞれ異なる第1及び第2のVRID(Virtual Router IDentifier)を設定し、前記第1のネットワーク側において前記第1及び第2のVRID各々に対して共通の第1の仮想IP(Internet Protocol)アドレスを設定し、前記第2のネットワーク側において前記第1及び第2のVRID各々に対して前記第1の仮想IPアドレスとは異なりかつ共通の第2の仮想IPアドレスを設定し、
前記第1及び第2のネットワーク装置各々において、VRRP(Virtual Router Redundancy Protocol)のバックアップ状態であってもパケットを受信するように動作し、
ポート変換対象のポート番号が偶数のものだけを処理する処理を前記第1のVRIDがマスタのネットワーク装置に有し、
前記ポート変換対象のポート番号が奇数のものだけを処理する処理を前記第2のVRIDがマスタのネットワーク装置に有することを特徴とする負荷分散方法。
A load distribution method used for a network including first and second network devices that connect between a first network and a second network and execute NAT (Network Address Translation) / NAPT (Network Address Port Translation),
For the first and second network devices, different first and second VRIDs (Virtual Router IDentifiers) are set on the first network side and the second network side, respectively. A common first virtual IP (Internet Protocol) address is set for each of the first and second VRIDs on the network side, and for each of the first and second VRIDs on the second network side. Setting a second virtual IP address different from and common to the first virtual IP address;
Each of the first and second network devices operates to receive a packet even in a VRRP (Virtual Router Redundancy Protocol) backup state,
The first VRID has a process for processing only an even number port conversion target port number in the master network device,
The load distribution method, wherein the second VRID has a process for processing only an odd number of port numbers to be port-converted in a master network device.
前記第1のVRIDがマスタのネットワーク装置において前記ポート変換対象のポート番号が偶数のものだけを受信し、前記第2のVRIDがマスタのネットワーク装置において前記ポート変換対象のポート番号が奇数のものだけを受信することを特徴とする請求項11記載の負荷分散方法。   The first VRID is received only when the port number to be port-converted is an even number in the master network device, and the second VRID is only the port number to be port-converted is an odd number in the master network device. The load distribution method according to claim 11, wherein the load distribution method is received. 前記第1及び第2のネットワーク装置各々が、NAPTのポート変換においてポート番号の偶数及び奇数を変更しないようにポート変換を行うことを特徴とする請求項11または請求項12記載の負荷分散方法。   13. The load distribution method according to claim 11 or 12, wherein each of the first and second network devices performs port conversion so as not to change even and odd port numbers in NAPT port conversion. 前記第1及び第2のネットワーク装置各々が、前記第1のネットワーク側の端末からのパケットの送信元ポート番号、送信先ポート、送信先アドレスのうちの少なくとも一つを利用して前記パケットの処理の負荷分散を行うことを特徴とする請求項11から請求項13のいずれか記載の負荷分散方法。 Each of the first and second network devices processes the packet using at least one of a transmission source port number, a transmission destination port, and a transmission destination address of the packet from the terminal on the first network side. The load distribution method according to claim 11 , wherein the load distribution is performed. 前記第1のネットワークがLAN(Local Area Network)であり、前記第2のネットワークがWAN(Wide Area Network)であることを特徴とする請求項11から請求項14のいずれか記載の負荷分散方法。   15. The load distribution method according to claim 11, wherein the first network is a LAN (Local Area Network) and the second network is a WAN (Wide Area Network).
JP2009127119A 2009-05-27 2009-05-27 Network, network device, and load balancing method used therefor Active JP5169992B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009127119A JP5169992B2 (en) 2009-05-27 2009-05-27 Network, network device, and load balancing method used therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009127119A JP5169992B2 (en) 2009-05-27 2009-05-27 Network, network device, and load balancing method used therefor

Publications (2)

Publication Number Publication Date
JP2010278584A JP2010278584A (en) 2010-12-09
JP5169992B2 true JP5169992B2 (en) 2013-03-27

Family

ID=43425159

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009127119A Active JP5169992B2 (en) 2009-05-27 2009-05-27 Network, network device, and load balancing method used therefor

Country Status (1)

Country Link
JP (1) JP5169992B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5589866B2 (en) 2011-01-24 2014-09-17 富士通株式会社 Address translation method, address translation proxy response method, address translation device, and address translation proxy response device
JP5678769B2 (en) * 2011-03-30 2015-03-04 沖電気工業株式会社 Communication system, network address processing device, path control unit, and packet processing program for network address processing device
JP5817299B2 (en) 2011-08-01 2015-11-18 富士通株式会社 Address translation apparatus, communication system, and address translation method
JP5741312B2 (en) * 2011-08-12 2015-07-01 富士通株式会社 Address translation device, communication system, address translation program, and address translation method
CN104247342A (en) * 2012-03-30 2014-12-24 日本电气株式会社 Network appliance redundancy system, control device, network appliance redundancy method and program
JP5980724B2 (en) * 2013-05-24 2016-08-31 日本電信電話株式会社 Network device, relay management method, relay management program, and communication system
JP6571400B2 (en) * 2015-06-05 2019-09-04 Necプラットフォームズ株式会社 Router device, redundancy method and redundancy program
CN109547354B (en) * 2018-11-21 2022-08-30 广州市百果园信息技术有限公司 Load balancing method, device, system, core layer switch and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3809882B2 (en) * 1997-03-14 2006-08-16 株式会社日立コミュニケーションテクノロジー Communication system between LANs
JP2000209278A (en) * 1999-01-12 2000-07-28 Fujitsu Ltd Router and packet relay system using the router
JP3956685B2 (en) * 2001-05-31 2007-08-08 古河電気工業株式会社 Network connection method, virtual network connection device, and network connection system using the device
JP2003023444A (en) * 2001-07-06 2003-01-24 Fujitsu Ltd Dynamic load distribution system utilizing virtual router
JP3637893B2 (en) * 2001-11-26 2005-04-13 日本電気株式会社 Separation method and separation method for network address translation device
JP2003163689A (en) * 2001-11-28 2003-06-06 Hitachi Ltd Network linkage information processing system and method for moving access between load distributors

Also Published As

Publication number Publication date
JP2010278584A (en) 2010-12-09

Similar Documents

Publication Publication Date Title
JP5169992B2 (en) Network, network device, and load balancing method used therefor
US9923812B2 (en) Triple-tier anycast addressing
US9363167B2 (en) Link aggregation based on port and protocol combination
CN103155500B (en) For the method and system of the stateless load balance of network service flow
US8166187B2 (en) Distributed IP gateway based on sharing a MAC address and IP address concurrently between a first network switching device and a second network switching device
US11436111B2 (en) Highly-available distributed network address translation (NAT) architecture with failover solutions
US8300647B2 (en) Intelligent load balancing and failover of network traffic
US9553805B2 (en) Method, device, and system for quickly informing CGN exception
CN108924272B (en) Port resource allocation method and device
EP2087711A1 (en) Method and apparatus for ip network interfacing
US9401865B2 (en) Network appliance redundancy system, control apparatus, network appliance redundancy method and program
US20160173334A1 (en) Configuration of forwarding rules using the address resolution protocol
US7003581B1 (en) System and method for improved load balancing and high availability in a data processing system having an IP host with a MARP layer
US10237157B1 (en) Managing host failures in a traffic forwarding system
CN111182022B (en) Data transmission method and device, storage medium and electronic device
US20080310319A1 (en) Server, network system, and network connection method used for the same
CN105847143B (en) Load balancing method and system based on VRRP
US7535902B2 (en) Traffic distribution device, traffic distribution method and packet relay method
US9838302B1 (en) Managing loss of network connectivity in traffic forwarding systems
JP4718638B2 (en) TCP / IP-based address changing method and apparatus
KR101356152B1 (en) Network Address Translation Device
US20200274791A1 (en) Multi-vrf and multi-service insertion on edge gateway virtual machines
US10298458B2 (en) Distributed system partition
JP2014195164A (en) Packet transfer device, delivery system, packet transfer method, program, and recording medium
CN117857257A (en) Method and system for intercommunication between cloud virtual machine and traditional network

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110908

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120803

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120918

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121112

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121217

R150 Certificate of patent or registration of utility model

Ref document number: 5169992

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350