JP2012209901A - Communication system, network address processing device, route control device, and reception packet processing program for network address processing device - Google Patents
Communication system, network address processing device, route control device, and reception packet processing program for network address processing device Download PDFInfo
- Publication number
- JP2012209901A JP2012209901A JP2011075975A JP2011075975A JP2012209901A JP 2012209901 A JP2012209901 A JP 2012209901A JP 2011075975 A JP2011075975 A JP 2011075975A JP 2011075975 A JP2011075975 A JP 2011075975A JP 2012209901 A JP2012209901 A JP 2012209901A
- Authority
- JP
- Japan
- Prior art keywords
- mac address
- network address
- network
- address
- address processing
- 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
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
本発明は、通信システム、ネットワークアドレス処理装置、経路制御装置、及び、ネットワークアドレス処理装置の受信パケット処理プログラムに関し、例えば、レイヤ2スイッチやレイヤ3スイッチ等のネットワークスイッチと接続するNAT(Network Address Translator)装置が冗長システムを構成している場合に適用し得るものである。
The present invention relates to a communication system, a network address processing device, a route control device, and a received packet processing program of the network address processing device, for example, a NAT (Network Address Translator) connected to a network switch such as a
従来、端末や通信装置等を収容するレイヤ2スイッチやレイヤ3スイッチなどのネットワークスイッチ(経路制御装置)と接続するNAT装置を、運用系及び待機系の冗長システムで構成することが行われている。一般に、NAT装置は、異なるアドレス帯を持つ網の間に配置し、ある網から受信したパケットのアドレスを変換して、他の網へ送信する装置である。NAT装置が冗長化される場合、NAT装置がパケットを受信するために自身に付与するアドレスはフローティングIPアドレス(常に、運用系を示すアドレス)とする。NAT装置は多くのアドレス変換を制御するため、フローティングIPアドレスの数は非常に多くなる(例えば、10000個以上)。
Conventionally, a NAT device connected to a network switch (route control device) such as a
上述した冗長システムにおいて、運用系のNAT装置に障害などが発生し、今までの待機系のNAT装置が新運用系のNAT装置に切り替わった場合、新運用系のNAT装置は、接続しているネットワークスイッチのARP(Address Resolution Protocol)テーブルにおけるMAC(Media Access Control)アドレスを、自己(新運用系のNAT装置)のMACアドレスに更新させることを行う。新運用系のNAT装置は、「フローティングIPアドレスと自己のMACアドレス」の組み合わせのGARP(Gratuitous ARP;余計なARP(リクエスト))パケットを全てのフローティングIPアドレスについて送信し、ネットワークスイッチのARPテーブルやMACアドレステーブルを更新させる(GARPを利用したARPテーブルの更新については、例えば、特許文献1に記載されている)。 In the above-described redundant system, when a failure occurs in the active NAT device, and the conventional standby NAT device is switched to the new active NAT device, the new active NAT device is connected. The MAC (Media Access Control) address in the ARP (Address Resolution Protocol) table of the network switch is updated to the MAC address of its own (new operational NAT device). The newly-operated NAT device transmits a GARP (Gritituous ARP) packet with a combination of “floating IP address and own MAC address” for all floating IP addresses, and the ARP table of the network switch The MAC address table is updated (for example, the update of the ARP table using GARP is described in Patent Document 1).
新運用系のNAT装置は、フローティングIPアドレスとして付与可能な数のGARPを送信することになる。 The newly operating NAT device transmits the number of GARPs that can be assigned as floating IP addresses.
しかしながら、新運用系のNAT装置からネットワークスイッチに対し、多量のGARPパケット(例えば、10000パケット)を一気に送受信すると、ネットワークスイッチにおける処理が追い付かず、ARPテーブル及びMACアドレステーブルを完全には更新できず、テーブルの一部しか更新できない。そのため、更新を完了できなかったARPテーブルやMACアドレステーブルには、旧運用系のNAT装置のMACアドレスを有するエントリや新運用系のNAT装置のMACアドレスを有するエントリが混在し、旧運用系のNAT装置のMACアドレスを有するエントリに係るアクセスが不可能となる。 However, if a large amount of GARP packets (for example, 10000 packets) are sent / received from the newly-operated NAT device to the network switch all at once, the processing in the network switch cannot catch up and the ARP table and the MAC address table cannot be completely updated. Only a part of the table can be updated. Therefore, the ARP table or MAC address table that could not be updated contains a mixture of entries having the MAC address of the old NAT system and entries having the MAC address of the new NAT system. Access to the entry having the MAC address of the NAT device becomes impossible.
このような不都合を回避するため、2つの送信フェーズで、GARPパケットを送信することも考えられている。すなわち、図8に示すように、新運用系のNAT装置に切り替わった直後では(第1のフェーズ)、ごく短時間(例えば1秒以内)の間で所定数(フローティングIPアドレス数)のGARPパケットを送信し、その後(第2のフェーズ)、十数秒(例えば15秒)間隔で1回ずつの計2回、所定数のGARPパケットを再送信する。このようなGARPパケットの再送信により、第1のフェーズで更新できなかったテーブルのエントリを更新することができる。 In order to avoid such an inconvenience, it is considered to transmit a GARP packet in two transmission phases. That is, as shown in FIG. 8, immediately after switching to the new active NAT device (first phase), a predetermined number (the number of floating IP addresses) of GARP packets in a very short time (for example, within one second). After that (second phase), a predetermined number of GARP packets are retransmitted twice at a time interval of several tens of seconds (for example, 15 seconds). By retransmitting such a GARP packet, an entry in the table that could not be updated in the first phase can be updated.
しかしながら、第2のフェーズにおける2回目の送信終了頃まで(30秒程度経過するまで)、アクセスが不可能なテーブルのエントリが生じる恐れはある。 However, until the end of the second transmission in the second phase (until about 30 seconds have passed), there is a possibility that an inaccessible table entry may occur.
そのため、運用系のネットワークアドレス処理装置が切り替わった際でも、接続している装置のARPテーブルを迅速にアクセス可能な状態することができる、通信システム、ネットワークアドレス処理装置、経路制御装置、及び、ネットワークアドレス処理装置の受信パケット処理プログラムが望まれている。 Therefore, a communication system, a network address processing device, a route control device, and a network that can quickly access the ARP table of the connected device even when the active network address processing device is switched. A received packet processing program for an address processing device is desired.
第1の本発明は、フローティングIPアドレスとネットワークアドレス処理装置のMACアドレスとでなるエントリを複数記述したARPテーブルを備えた第1の経路制御装置と、上記第1の経路制御装置との間でIPパケットを授受し得る、冗長系を構成している複数のネットワークアドレス処理装置とを有する通信システムにおいて、(1)上記ARPテーブルの各エントリにおけるネットワークアドレス処理装置のMACアドレスとして、いずれの上記ネットワークアドレス処理装置に固有なMACアドレスとは異なる仮想的なMACアドレスを記述しておくと共に、(2)その時点で、運用系となっている上記ネットワークアドレス処理装置は、少なくとも上記仮想的なMACアドレスを有効なMACアドレスとして処理し、新運用系となった直後には、上記ARPテーブルの更新のためのパケット送信を実行しないことを特徴とする。 According to a first aspect of the present invention, there is provided between the first route control device having an ARP table in which a plurality of entries including floating IP addresses and MAC addresses of network address processing devices are described, and the first route control device. In a communication system having a plurality of network address processing devices constituting a redundant system capable of sending and receiving IP packets, (1) any of the networks as a MAC address of the network address processing device in each entry of the ARP table A virtual MAC address different from the MAC address unique to the address processing device is described, and (2) at that time, the network address processing device that is in operation is at least the virtual MAC address As a valid MAC address Immediately after became, characterized in that it does not perform the packet transmission for updating the ARP table.
第2の本発明は、フローティングIPアドレスとネットワークアドレス処理装置のMACアドレスとでなるエントリを複数記述したARPテーブルを備えた経路制御装置との間でIPパケットを授受し得る、冗長系を構成しているネットワークアドレス処理装置において、(1)上記ARPテーブルが、各エントリにおけるネットワークアドレス処理装置のMACアドレスとして、いずれの上記ネットワークアドレス処理装置に固有なMACアドレスとは異なる仮想的なMACアドレスを記述しているものであり、(2)自己が運用系となっているときに、少なくとも上記仮想的なMACアドレスを有効なMACアドレスとして処理し、新運用系となった直後には、上記ARPテーブルの更新のためのパケット送信を実行しないことを特徴とする。 The second aspect of the present invention configures a redundant system that can exchange IP packets with a routing control device having an ARP table in which a plurality of entries including floating IP addresses and MAC addresses of network address processing devices are described. (1) The ARP table describes a virtual MAC address different from the MAC address unique to any of the network address processing devices as the MAC address of the network address processing device in each entry. (2) When the self is an active system, at least the virtual MAC address is processed as a valid MAC address, and immediately after becoming a new active system, the ARP table It does not execute packet transmission for updating That.
第3の本発明は、フローティングIPアドレスと、冗長システムを構成しているネットワークアドレス処理装置に係るMACアドレスとでなるエントリを複数記述したARPテーブルを備えた経路制御装置において、上記ARPテーブルの各エントリにおけるネットワークアドレス処理装置に係るMACアドレスとして、いずれの上記ネットワークアドレス処理装置に固有なMACアドレスとは異なる仮想的なMACアドレスを記述していることを特徴とする。 According to a third aspect of the present invention, there is provided a routing control apparatus including an ARP table in which a plurality of entries including a floating IP address and a MAC address related to a network address processing apparatus constituting a redundant system are described. As the MAC address related to the network address processing device in the entry, a virtual MAC address different from the MAC address unique to any of the network address processing devices is described.
第4の本発明は、フローティングIPアドレスとネットワークアドレス処理装置のMACアドレスとでなるエントリを複数記述したARPテーブルを備えた経路制御装置との間でIPパケットを授受し得る、冗長系を構成しているネットワークアドレス処理装置に搭載されるコンピュータを、(1)到来したIPパケットの宛先MACアドレスを判別する手段と、(2)判別されたMACアドレスが、冗長系を構成している全ての上記ネットワークアドレス処理装置に固有なMACアドレスとは異なる仮想的なMACアドレスの場合に、当該コンピュータが搭載されているネットワークアドレス処理装置が運用系か待機系かを判別する手段と、(3)運用系と判別したときに、到来したIPパケットに対して、受信処理する手段として機能させることを特徴とする。 The fourth aspect of the present invention configures a redundant system that can exchange IP packets with a route control device having an ARP table in which a plurality of entries including floating IP addresses and MAC addresses of network address processing devices are described. (1) means for discriminating the destination MAC address of the incoming IP packet, and (2) all the above-mentioned computers in which the determined MAC address constitutes a redundant system. Means for determining whether the network address processing apparatus on which the computer is mounted is an active system or a standby system in the case of a virtual MAC address different from the MAC address unique to the network address processing apparatus; Function as a means to receive and process incoming IP packets. And wherein the Rukoto.
本発明によれば、運用系のネットワークアドレス処理装置が切り替わった際でも、接続している装置におけるARPテーブルを迅速にアクセス可能な状態することができる、通信システム、ネットワークアドレス処理装置、ネットワークスイッチ、及び、ネットワークアドレス処理装置の受信パケット処理プログラムを提供することができる。 According to the present invention, a communication system, a network address processing device, a network switch, which can quickly access an ARP table in a connected device even when an active network address processing device is switched, In addition, a received packet processing program of the network address processing device can be provided.
(A)第1の実施形態
以下、本発明による通信システム、ネットワークアドレス処理装置、ネットワークスイッチ、及び、ネットワークアドレス処理装置の受信パケット処理プログラムの第1の実施形態を、図面を参照しながら説明する。
(A) First Embodiment Hereinafter, a first embodiment of a communication system, a network address processing device, a network switch, and a received packet processing program of the network address processing device according to the present invention will be described with reference to the drawings. .
(A−1)第1の実施形態の構成
図1は、第1の実施形態に係る通信システムの構成を示すブロック図である。
(A-1) Configuration of First Embodiment FIG. 1 is a block diagram showing a configuration of a communication system according to the first embodiment.
図1において、第1の実施形態に係る通信システム1は、冗長システムを構成している2つのNAT装置2A、2Bを有する。各NAT装置2A、2Bは、例えば、異なるアドレス帯を持つA網及びB網の間に配置され、A網から受信したパケットのアドレスを変換してB網へ送信すると共に、B網から受信したパケットのアドレスを変換して、A網へ送信するものである。
In FIG. 1, the
図1では、A網の通信装置(例えば、SIP(Session Initiation Protocol)サーバ)3がレイヤ3スイッチ4、レイヤ2スイッチ5を順次介してNAT装置2A及び2Bに接続され、B網の通信装置(例えば、SIPサーバ)6がレイヤ3スイッチ7、レイヤ2スイッチ8を順次介してNAT装置2A及び2Bに接続されている場合を示している。なお、図1とは異なり、通信装置がレイヤ3スイッチだけを介してNAT装置に接続されていても良く、また、通信装置が複数のレイヤ2スイッチ、レイヤ3スイッチを介してNAT装置に接続されていても良く、通信装置とNAT装置との経路は任意であって良い。
In FIG. 1, a network A communication device (for example, a SIP (Session Initiation Protocol) server) 3 is connected to
NAT装置2A及び2Bは、同一構成を有して冗長系を構成しているものであり、一方が運用系になっているときに他方が待機系となっているものである。
The
NAT装置2A及び2Bのネットワークインタフェースカード(NIC;Network Interface Card)はそれぞれ、固有のMACアドレスMACa、MACj、MACb、MACkを有する。NAT装置2A及び2Bはそれぞれ、例えば、ネットワークインタフェースカードを搭載し、このネットワークインタフェースカードを介してレイヤ2スイッチ5、8と接続している。図1に記載のNAT装置2A及び2Bの固有のMACアドレスは、例えば、ネットワークインタフェースカードの固有のMACアドレスである。
The network interface cards (NICs) of the
この第1の実施形態の場合、いずれが運用系になっているか否かを問わず、運用系のNAT装置に係る仮想的なMACアドレスMACcが導入されている。また、第1の実施形態の場合、B網が仮想的なMACアドレスMACcを適用する網となっており、A網が仮想的なMACアドレスを適用しない網となっている。例えば、NAT装置2Aが運用系になっている場合には、NAT装置2Aは、仮想MAC適用のB網については固有のMACアドレスMACa及び仮想的MACアドレスMACcを、自己のMACアドレスとして扱うこととなり、仮想MAC非適用のA網については固有のMACアドレスMACjを、自己のMACアドレスとして扱うこととなる。また例えば、NAT装置2Bが運用系になっている場合には、NAT装置2Bは、仮想MAC適用のB網については固有のMACアドレスMACb及び仮想的MACアドレスMACcを、自己のMACアドレスとして扱うこととなり、仮想MAC非適用のA網については固有のMACアドレスMACkを、自己のMACアドレスとして扱うこととなる。
In the case of the first embodiment, a virtual MAC address MACc related to an active NAT device is introduced regardless of which one is active. In the case of the first embodiment, the B network is a network to which a virtual MAC address MACc is applied, and the A network is a network to which a virtual MAC address is not applied. For example, when the
図2は、NAT装置2(2A又は2B)の内部構成例を示すブロック図である。 FIG. 2 is a block diagram illustrating an internal configuration example of the NAT device 2 (2A or 2B).
図2において、NAT装置2は、通信ポート10、受信処理部11、送信処理部12、アドレス変換制御部13、パラメータ記憶部14、運用系監視部15及び運用系切替部16を有する。
In FIG. 2, the
通信ポート10は、外部装置(ネットワークスイッチや他系のNAT装置等)を接続させるものである。
The
受信処理部11は、例えば、外部装置から到来したIPパケットの受信処理を行うものであり、受信IPパケットを分解して得た情報をアドレス変換制御部13に与えるものである。
For example, the
送信処理部12は、例えば、アドレス変換制御部13の制御下で与えられた情報を含む送信IPパケットを組み立てて外部装置へ送信するものである。
For example, the
アドレス変換制御部13は、例えば、ソフトウェア処理により、A網の通信装置から、当該NAT装置2向けのパケットを受信し、アドレスを変換した上でスB網の通信装置へ送信する。また、アドレス変換制御部13は、B網からA網への通信に対しても同様にアドレス変換を実施する。
The address
アドレス変換制御部13は、後述する図5に示すようなパケット受信時の処理プログラム(受信パケット処理プログラム)13aを実行するものである。
The address
パラメータ記憶部14は、アドレス変換制御部13が登録したり利用したりする各種のパラメータ(処理段階の情報を含む)を記録しているものである。パラメータ記憶部14は、例えば、A網側に係る全てのフローティングIPアドレスやB網側に係る全てのフローティングIPアドレスを記憶している。パラメータ記憶部14は、例えば、各網が仮想的なMACアドレスに対応できる網であるか否かを記憶している。
The
パラメータ記憶部14は、自系が運用系のときには記憶し、待機系のときは空であって運用系に切り替えられたときにそれまでの運用系からパラメータを取り込んで格納するものであっても良い。また、パラメータ記憶部14は、自系が待機系のときにも、定期的に運用系からパラメータを取り込んでできるだけ最新のパラメータを記憶するものであっても良い。
The
運用系監視部15は、自系が待機系で機能するものであり、そのときの運用系のNAT装置に、障害など、系の切替えが必要な事象が生じたか否かを定期的に監視するものである。運用系監視部15は、例えば、運用系のNAT装置にpingを送信し、その所定時間内の応答の有無によって、系の切替えが必要か否かを判断する。
The active
運用系切替部16は、運用系監視部15が系の切替えが必要と判断したときに、自系を運用系に、他系を待機系に切り替えると共に、系切り替えに伴う所定のパケットを配下のスイッチなどに送信させるものである。
When the active
レイヤ2スイッチ5、8やレイヤ3スイッチ4、7はそれぞれ、IPパケットの交換を実行するものである。図1では、A網及びB網についてそれぞれ1個ずつ示しているが、各網について、複数のスイッチがあっても良いことは勿論である。また、レイヤ2スイッチ5、8やレイヤ3スイッチ4、7も、冗長システムを構成するものであっても良い。各種のスイッチを有する各網は、例えば、通信キャリアの相違を表している。網によって、運用系のNAT装置に係る仮想的なMACアドレスMACを適用できるものであっても良く、適用できないものであっても良い。上述したように、A網が運用系のNAT装置に係る仮想的なMACアドレスに適用できないものであり、B網が運用系のNAT装置に係る仮想的なMACアドレスに適用できるものであるとする。
Each of the
レイヤ2スイッチ5、8の通信ポート(PortA、PortB)は、外部装置(NAT装置2A、2Bや端末等)を接続させるものであり、複数の入出力ポートを備え、各入出力ポートには固有のポート番号が付与されている。NAT装置2A及び2Bは、当然に、異なる入出力ポートに接続されており、以下では、NAT装置2Aが接続されている入出力ポートのポート番号がPortA、NAT装置2Bが接続されている入出力ポートのポート番号がPortBであるとして説明する。
The communication ports (Port A, Port B) of the
レイヤ2スイッチ5、8は、レイヤ2(データリンク層)のデータでパケットの行先を判断してスイッチングを行うものである。レイヤ2スイッチ5、8は、MACアドレスと入出力ポートとの組(エントリ)を複数組記述したMACアドレステーブル5a、8aを内蔵している。この第1の実施形態の場合、2つのNAT装置2A及び2Bについては、MACアドレステーブル8aに2組の情報が記述されているのではなく、1組の情報だけが記述されている。記述されている1組の情報におけるMACアドレスは、上述した仮想的なMACアドレスMACcであり、記述されている1組の情報におけるポート番号は、その時点で運用系となっているNAT装置2A又は2Bを接続しているポート番号portA又はportBである。図3(A)は、その時点で運用系となっているNAT装置がNAT装置2Bである場合のMACアドレステーブル8aを示している。
The
レイヤ3スイッチ4、7は、レイヤ3(ネットワーク層)のデータでパケットの行先を判断してスイッチングを行うものである。レイヤ3スイッチ4、7は、フローティングIPアドレスとMACアドレスとの組をフローティングIPアドレスの数だけ記述したARPテーブル4a、7aを内蔵している。この第1の実施形態の場合、ARPテーブル7aにおいて、NAT装置2A及び2Bに係る各フローティングIPアドレスに対応するMACアドレスは全て、仮想的なMACアドレスMACcとなっている。図3(B)は、その時点で運用系となっているNAT装置がNAT装置2Bである場合のARPテーブル7aを示している。
The layer 3 switches 4 and 7 perform switching by determining the destination of the packet based on the data of the layer 3 (network layer). The layer 3 switches 4 and 7 have built-in ARP tables 4a and 7a that describe sets of floating IP addresses and MAC addresses as many as the number of floating IP addresses. In the case of the first embodiment, in the ARP table 7a, the MAC addresses corresponding to the floating IP addresses related to the
A網は、仮想的なMACアドレスに対応できない網であるため、MACアドレステーブル5aにおいて、2つのNAT装置2A及び2Bについて1組だけ記述されている情報におけるMACアドレスは、その時点で運用系となっているNAT装置2A又は2BのMACアドレスMACj又はMACkであり、ポート番号は、その時点で運用系となっているNAT装置2A又は2Bの保有するネットワークインタフェースカードに接続しているポート番号portA又はportBである。また、A網に係るARPテーブル4aにおいて、NAT装置2A及び2Bに係る各フローティングIPアドレスに対応するMACアドレスは全て、その時点で運用系となっているNAT装置2A又は2BのMACアドレスMACj又はMACkである。
Since the network A is a network that cannot support a virtual MAC address, the MAC address in the information described in the MAC address table 5a for only one set of the two
(A−2)第1の実施形態の動作
第1の実施形態に係る通信システム1の動作を、図面を参照しながら説明する。以下では、NAT装置2Aが運用系でNAT装置2Bが待機系の状態から切り替える場合を説明する。
(A-2) Operation of First Embodiment The operation of the
運用系のNAT装置2Aに障害が発生すると、待機系のNAT装置2Bにおける運用系監視部15によってそのことが検出され、運用系切替部16による、当該NAT装置2Bを運用系に、他系のNAT装置2Aを待機系に切り替える処理が実行される。
When a failure occurs in the
このとき、運用系切替部16は、例えば、図4のフローチャートに示すように、他系のNAT装置2Aから所定のパラメータを取り込んで引継ぎ(ステップ100)、他系のNAT装置2Aの処理を停止させると共に(ステップ101)、系切替え直後に必要な処理を実行する(ステップ102)。系切替え直後に必要な処理として、MACアドレステーブルやARPテーブルを更新させる処理が含まれている。
At this time, for example, as shown in the flowchart of FIG. 4, the active
仮想的なMACアドレスに対応できない網のレイヤ2スイッチ4やレイヤ3スイッチ5に対しては、運用系切替部16は、従来と同様なGARPパケットの送信(図8参照)によって、MACアドレステーブル5aやARPテーブル4aを更新させる(ステップ102a)。
For the
これに対して、仮想的なMACアドレスMACcに対応できる網のレイヤ2スイッチ8に対しては、運用系切替部16は、GARPパケットを1回だけ送信させ、MACアドレステーブル8aだけを更新させる(ステップ102b)。レイヤ3スイッチ7のARPテーブル7aは、NAT装置に係る各フローティングIPアドレスに対応するMACアドレスは全て、仮想的なMACアドレスMACcとなっているので、運用系がNAT装置2AからNAT装置2Bに切り替わったとしても、その記述内容を変更する必要はない。MACアドレステーブル8aは、MACアドレスとポート番号との対応付けであり、MACアドレスは運用系のNAT装置が切り替わっても仮想的なMACアドレスMACcであり、変更する必要がないが、ポート番号は、NAT装置2AとNAT装置2Bとで異なっているので、新運用系のNAT装置2Bのポート番号portBに書き換えなければならない。そのため、運用系切替部16は、GARPパケットを1回だけ送信させ、レイヤ2スイッチ8に、MACアドレスMACcに対応するポート番号がportBであることを知得させ、MACアドレステーブル8aを更新させる。このときのGARPパケットにおける送信元のフローティングIPアドレスは、いずれのフローティングIPアドレスを適用しても良い。なお、このように送信するパケットはGARPパケットに限定されず、ARPパケットであっても良い。
On the other hand, for the
MACアドレステーブル8aの更新のために、意図的にGARPパケットを送信することなく、処理の中で必要となった、系が切り替わってから最初のB網へのIPパケットの送信に、MACアドレステーブル8aの更新を委ねるようにしても良い。 In order to update the MAC address table 8a, without intentionally transmitting a GARP packet, the MAC address table is used for transmission of an IP packet to the first B network after the system is switched, which is necessary in the process. You may make it entrust the update of 8a.
なお、上述とは異なり、A網が、仮想的なMACアドレス(例えばMACc)に対応できるものであれば、新運用系のNAT装置2Bの運用系切替部16は、A網側に対してもGARPパケットを1回だけ送信させることになる。
Unlike the above, if the network A can cope with a virtual MAC address (for example, MACc), the operation
上述のように、仮想的なMACアドレスMACcに対応できるB網の通信装置6などは、新運用系のNAT装置2BへのIPパケットにおける宛先MACアドレスとして、仮想的なMACアドレスMACcを挿入することになる。なお、NAT装置2Aが運用系のときにも、B網の通信装置6などは、NAT装置2AへのIPパケットにおける宛先MACアドレスとして、仮想的なMACアドレスMACcを挿入することになる。一方、仮想的なMACアドレスMACcに対応できないA網の通信装置3などは、新運用系のNAT装置2BへのIPパケットにおける宛先MACアドレスとして、NAT装置2Bに固有なMACアドレスMACkを挿入することになる。
As described above, the B network communication device 6 or the like that can support the virtual MAC address MACc inserts the virtual MAC address MACc as the destination MAC address in the IP packet to the new
図5は、運用系のNAT装置2B(のアドレス変換制御部13若しくは受信処理部11)がIPパケットを受信したときの処理の特徴部分を示すフローチャートである。
FIG. 5 is a flowchart showing a characteristic part of processing when the
NAT装置2Bは、IPパケットを受信すると、図5に示す処理を開始し、まず、宛先MACアドレスを判別する(ステップ150)。
When receiving the IP packet, the
宛先MACアドレスが、当該NAT装置2Bに固有なMACアドレスMACbの場合には、NAT装置2Bは、具体的な受信処理を実行する(ステップ151)。
When the destination MAC address is the MAC address MACb unique to the
宛先MACアドレスが仮想的なMACアドレスMACcの場合には、NAT装置2Bは、自系が運用系か待機系かを判別する(ステップ152)。自系が運用系であれば、NAT装置2Bは、宛先MACアドレスが仮想的なMACアドレスMACcのIPパケットに対して、具体的な受信処理を実行する(ステップ151)。一方、自系が待機系であれば、NAT装置2Bは、宛先MACアドレスが仮想的なMACアドレスMACcのIPパケットを廃棄する(ステップ153)。このように、仮想的なMACアドレスMACcは、NAT装置2Bが運用系のときにのみ機能するMACアドレスである。
If the destination MAC address is the virtual MAC address MACc, the
受信したIPアドレスの宛先MACアドレスが、当該NAT装置2Bに固有なMACアドレスMACbでもなく、仮想的なMACアドレスMACcでもない場合には、NAT装置2Bは、受信したIPパケットを廃棄する(ステップ153)。
If the destination MAC address of the received IP address is neither the MAC address MACb unique to the
フローチャートの図示は省略するが、NAT装置2Bは、B網側へ送信するフローティングIPを利用した通信におけるIPパケットの送信元MACアドレスのフィールドには仮想的なMACアドレスMACcを挿入し、A網側へ送信するフローティングIPを利用した通信におけるIPパケットの送信元MACアドレスのフィールドには自己に固有なMACアドレスMACbを挿入する。
Although illustration of the flowchart is omitted, the
(A−3)第1の実施形態の効果
第1の実施形態によれば、運用系が切り替わっても、レイヤ3スイッチ7のARPテーブル7aの更新を不要とすることができ、また、レイヤ2スイッチ8のMACアドレステーブル8aの更新のために、意図的な若しくは意図しない1つのIPパケットの送信で済むので、運用系の切替えに要する時間を短縮でき、端末等を速やかにアクセス可能な状態にすることができる。
(A-3) Effect of First Embodiment According to the first embodiment, it is not necessary to update the ARP table 7a of the layer 3 switch 7 even when the active system is switched. Only one intentional or unintentional transmission of an IP packet is required for updating the MAC address table 8a of the switch 8, so that the time required for switching the operation system can be shortened and the terminal or the like can be quickly accessed. can do.
(B)第2の実施形態
次に、本発明による通信システム、ネットワークアドレス処理装置、ネットワークスイッチ、及び、ネットワークアドレス処理装置の受信パケット処理プログラムの第2の実施形態を、図面を参照しながら説明する。
(B) Second Embodiment Next, a communication system, a network address processing device, a network switch, and a received packet processing program for the network address processing device according to a second embodiment of the present invention will be described with reference to the drawings. To do.
第2の実施形態の通信システム(1)も、その全体構成は、第1の実施形態の説明で用いた図1で表すことができる。 The overall configuration of the communication system (1) of the second embodiment can also be represented by FIG. 1 used in the description of the first embodiment.
第2の実施形態の場合、仮想的なMACアドレスMACcに対応できるB網は、VLAN(Virtual Local Area Network)構成を採用している。そのため、仮想的なMACアドレスMACcに対応できるB網のレイヤ2スイッチ8におけるMACアドレステーブル8a−2の1エントリは、図6に示すように、VLANの識別番号(ID)とMACアドレスと入出力ポートとでなり、仮想的なMACアドレスMACcに対する、MACアドレステーブルのエントリ数はVLANの数(例えば1000程度)に等しい。
In the case of the second embodiment, the B network that can support the virtual MAC address MACc employs a VLAN (Virtual Local Area Network) configuration. Therefore, as shown in FIG. 6, one entry of the MAC address table 8a-2 in the
なお、B網がVLAN構成を採用していても、ARPテーブル7aが、フローティングIPアドレスとMACアドレスとの組を記述している点は、第1の実施形態と同様である。 Even if the B network adopts the VLAN configuration, the point that the ARP table 7a describes the combination of the floating IP address and the MAC address is the same as in the first embodiment.
そのため、第2の実施形態の場合も、新運用系のNAT装置(以下、2Bであるとする)は、レイヤ2スイッチ8のMACアドレステーブル8a−2の更新のためにGARPパケットを送信することになる。MACアドレステーブル8a−2のVLAN毎の全てのエントリを更新するため、GARPパケットには、VLANの識別番号も盛り込まれ、少なくともVLAN数のGARPパケットを送信することを要する。
Therefore, also in the case of the second embodiment, the newly operating NAT device (hereinafter referred to as 2B) transmits a GARP packet for updating the MAC address table 8a-2 of the
図7は、新運用系のNAT装置2BによるGARPパケットの送信方法を示す説明図である。
FIG. 7 is an explanatory diagram showing a GARP packet transmission method by the new
新運用系のNAT装置2Bは、新運用系のNAT装置に切り替わった直後では(第1のフェーズ)、ごく短時間(例えば1秒以内)の間で所定数(VLAN数)のGARPパケットを送信することを例えば3回繰り返し、その後(第2のフェーズ)、1分程度の間隔を掛けて所定数(VLAN数)のGARPパケットを送信すること計2回実行する。第2のフェーズの再送信は念のための送信であり、第1のフェーズの後半2回の繰返し送信も念のための送信であり、第1のフェーズの第1回目の送信で、MACアドレステーブル8a−2の全てのエントリが更新されることが期待できる。
The new
なお、以上のようなMACアドレステーブル8a−2を更新させるためのGARPパケットに挿入されるフローティングIPアドレスは、どのようなアドレスであっても良い。また、この目的で送信されるパケットはGARPパケットでなくても良い。 The floating IP address inserted into the GARP packet for updating the MAC address table 8a-2 as described above may be any address. Further, a packet transmitted for this purpose may not be a GARP packet.
第2の実施形態によっても、どちらのNAT装置2A、2Bが運用系であっても適用される仮想的なMACアドレスMACcを適用し、運用系の切替り時に、ARPテーブル7aの更新と不要とし、MACアドレステーブル8a−2の更新だけを実行させるためにGARPパケットを送信するようにしたので、送信が必要なGARPパケット数を押さえることができ、MACアドレステーブルの更新を速やかに実行できて、端末等を速やかにアクセス可能な状態にすることができる。
Also in the second embodiment, the virtual MAC address MACc that is applied regardless of which
(C)他の実施形態
上記各実施形態においては、NAT装置が2重の冗長システムを示したが、冗長系はこれに限定されるものではない。例えば、1運用系2待機系の3重の冗長システムであっても良い。また、例えば、N台の運用系のNAT装置に共通な1台の待機系のNAT装置を用意しておく冗長システムであっても良い。
(C) Other Embodiments In each of the above embodiments, the NAT device shows a double redundant system, but the redundant system is not limited to this. For example, a triple redundant system of one active system and two standby systems may be used. In addition, for example, a redundant system in which one standby NAT device common to N active NAT devices is prepared may be used.
また、上記各実施形態においては、NAT装置2A、2Bが処理し得る網が2つの網の場合を示したが、処理し得る網の数は2つに限定されず、1つでも3つ以上であっても良い。ここで、仮想的なMACアドレスMACcに対応できる網が1つでも含まれていれば良く、当然に、全ての網が仮想的なMACアドレスMACcに対応できる網であっても良い。
In each of the above embodiments, the case where the
さらにまた、上記各実施形態においては、レイヤ2スイッチ及びレイヤ3スイッチが対を構成しているように説明したが、レイヤ2スイッチを備えず、レイヤ3スイッチだけがNAT装置の配下にあっても、本発明を適用することができる。
Furthermore, in each of the above embodiments, the
上記各実施形態においては、新運用系のNAT装置が固有のMACアドレスと仮想的なMACアドレスの双方を有効なMACアドレスとして処理するものを示したが、外部のスイッチが全て仮想的なMACアドレスに対応できるものである場合には、運用系のときに、仮想的なMACアドレスだけを有効として扱い、待機系のときのみ固有のMACアドレスを有効として扱うようにしても良い。 In each of the embodiments described above, the new operating NAT device has shown that both the unique MAC address and the virtual MAC address are processed as valid MAC addresses. However, all the external switches have virtual MAC addresses. In the case of the active system, only the virtual MAC address may be treated as valid, and the unique MAC address may be treated as valid only in the standby system.
また、上記各実施形態においては、経路制御装置及びネットワークアドレス処理装置がレイヤ3スイッチ及びNAT装置である場合を示したが、本発明の経路制御装置及びネットワークアドレス処理装置はこれに限定されないものである。要は、経路制御装置が、フローティングIPアドレスとネットワークアドレス処理装置のMACアドレスとでなるエントリを複数(例えばフローティングIPアドレスの数)記述したARPテーブルを備え、ネットワークアドレス処理装置が冗長構成を採用していれば、本発明の技術思想を適用することができる。 In each of the above embodiments, the case where the route control device and the network address processing device are the layer 3 switch and the NAT device has been described. However, the route control device and the network address processing device of the present invention are not limited to this. is there. In short, the routing control device has an ARP table in which a plurality of entries (for example, the number of floating IP addresses) including floating IP addresses and network address processing device MAC addresses are described, and the network address processing device adopts a redundant configuration. If so, the technical idea of the present invention can be applied.
1…通信システム、2A、2B…NAT装置、3、6…通信装置、4、7…レイヤ3スイッチ、4a、7a…ARPテーブル、5、8…レイヤ2スイッチ、5a、8a…MACアドレステーブル、11…受信処理部、12…送信処理部、13…アドレス変換制御部、14…パラメータ記憶部、15…運用系監視部、16…運用系切替部。
DESCRIPTION OF
Claims (6)
上記ARPテーブルの各エントリにおけるネットワークアドレス処理装置のMACアドレスとして、いずれの上記ネットワークアドレス処理装置に固有なMACアドレスとは異なる仮想的なMACアドレスを記述しておくと共に、
その時点で、運用系となっている上記ネットワークアドレス処理装置は、少なくとも上記仮想的なMACアドレスを有効なMACアドレスとして処理し、新運用系となった直後には、上記ARPテーブルの更新のためのパケット送信を実行しない
ことを特徴とする通信システム。 IP packets can be exchanged between the first route control device having an ARP table in which a plurality of entries including floating IP addresses and MAC addresses of network address processing devices are described, and the first route control device. In a communication system having a plurality of network address processing devices constituting a redundant system,
As a MAC address of the network address processing device in each entry of the ARP table, a virtual MAC address different from the MAC address unique to any of the network address processing devices is described,
At that time, the network address processing device that is the active system processes at least the virtual MAC address as a valid MAC address, and immediately after becoming the new active system, for updating the ARP table. A communication system characterized by not performing packet transmission.
新運用系となった上記通信装置収容サーバは、上記MACアドレステーブルを更新させるためのパケット送信を実行する
ことを特徴とする請求項1に記載の通信システム。 The network including the first path control device has a MAC address table having an entry in which the MAC address of the network address processing device is associated with an input / output port that exchanges information with the network address processing device. 2 route control devices,
The communication system according to claim 1, wherein the communication apparatus accommodation server that has become a new operational system executes packet transmission for updating the MAC address table.
上記ARPテーブルが、各エントリにおけるネットワークアドレス処理装置のMACアドレスとして、いずれの上記ネットワークアドレス処理装置に固有なMACアドレスとは異なる仮想的なMACアドレスを記述しているものであり、
自己が運用系となっているときに、少なくとも上記仮想的なMACアドレスを有効なMACアドレスとして処理し、新運用系となった直後には、上記ARPテーブルの更新のためのパケット送信を実行しないことを特徴とするネットワークアドレス処理装置。 In a network address processing apparatus constituting a redundant system capable of sending and receiving IP packets to and from a route control apparatus having an ARP table in which a plurality of entries including floating IP addresses and MAC addresses of network address processing apparatuses are described. ,
The ARP table describes a virtual MAC address different from the MAC address unique to any of the network address processing devices as the MAC address of the network address processing device in each entry,
When the device itself is active, at least the virtual MAC address is processed as a valid MAC address, and packet transmission for updating the ARP table is not performed immediately after becoming a new active device. A network address processing device.
上記ARPテーブルの各エントリにおけるネットワークアドレス処理装置に係るMACアドレスとして、いずれの上記ネットワークアドレス処理装置に固有なMACアドレスとは異なる仮想的なMACアドレスを記述していることを特徴とする経路制御装置。 In a routing control device provided with an ARP table in which a plurality of entries including floating IP addresses and MAC addresses related to network address processing devices constituting a redundant system are described,
A path control device in which a virtual MAC address different from a MAC address unique to any of the network address processing devices is described as a MAC address related to the network address processing device in each entry of the ARP table .
到来したIPパケットの宛先MACアドレスを判別する手段と、
判別されたMACアドレスが、冗長系を構成している全ての上記ネットワークアドレス処理装置に固有なMACアドレスとは異なる仮想的なMACアドレスの場合に、当該コンピュータが搭載されているネットワークアドレス処理装置が運用系か待機系かを判別する手段と、
運用系と判別したときに、到来したIPパケットに対して、受信処理する手段と
して機能させることを特徴とするネットワークアドレス処理装置の受信パケット処理プログラム。 To a network address processing apparatus constituting a redundant system capable of transferring IP packets to and from a path control apparatus having an ARP table in which a plurality of entries including a floating IP address and a MAC address of the network address processing apparatus are described. Install the computer
Means for determining the destination MAC address of the incoming IP packet;
When the determined MAC address is a virtual MAC address different from the MAC addresses unique to all the network address processing devices constituting the redundant system, the network address processing device on which the computer is mounted is A means for discriminating between an active system and a standby system;
A received packet processing program for a network address processing device, which functions as a means for receiving processing for an incoming IP packet when it is determined to be an active system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011075975A JP5678769B2 (en) | 2011-03-30 | 2011-03-30 | Communication system, network address processing device, path control unit, and packet processing program for network address processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011075975A JP5678769B2 (en) | 2011-03-30 | 2011-03-30 | Communication system, network address processing device, path control unit, and packet processing program for network address processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012209901A true JP2012209901A (en) | 2012-10-25 |
JP5678769B2 JP5678769B2 (en) | 2015-03-04 |
Family
ID=47189267
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011075975A Active JP5678769B2 (en) | 2011-03-30 | 2011-03-30 | Communication system, network address processing device, path control unit, and packet processing program for network address processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5678769B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018135428A1 (en) | 2017-01-17 | 2018-07-26 | 日本電気株式会社 | Gateway device, network address translation device, communication system, communication method, and program |
CN110011914A (en) * | 2019-03-15 | 2019-07-12 | 北京星网锐捷网络技术有限公司 | Manage the retransmission method and device of message |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002232448A (en) * | 2001-02-02 | 2002-08-16 | Mitsubishi Electric Corp | Network system and network connection device |
JP2005086256A (en) * | 2003-09-04 | 2005-03-31 | Kddi Corp | Tunnel gateway apparatus |
JP2005167435A (en) * | 2003-12-01 | 2005-06-23 | Hitachi Ltd | Vrrp technology sustaining confidentiality of vr |
JP2010278584A (en) * | 2009-05-27 | 2010-12-09 | Nec Infrontia Corp | Network, network device and load distribution method used therefor |
-
2011
- 2011-03-30 JP JP2011075975A patent/JP5678769B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002232448A (en) * | 2001-02-02 | 2002-08-16 | Mitsubishi Electric Corp | Network system and network connection device |
JP2005086256A (en) * | 2003-09-04 | 2005-03-31 | Kddi Corp | Tunnel gateway apparatus |
JP2005167435A (en) * | 2003-12-01 | 2005-06-23 | Hitachi Ltd | Vrrp technology sustaining confidentiality of vr |
JP2010278584A (en) * | 2009-05-27 | 2010-12-09 | Nec Infrontia Corp | Network, network device and load distribution method used therefor |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018135428A1 (en) | 2017-01-17 | 2018-07-26 | 日本電気株式会社 | Gateway device, network address translation device, communication system, communication method, and program |
CN110011914A (en) * | 2019-03-15 | 2019-07-12 | 北京星网锐捷网络技术有限公司 | Manage the retransmission method and device of message |
CN110011914B (en) * | 2019-03-15 | 2021-08-17 | 北京星网锐捷网络技术有限公司 | Management message forwarding method and device |
Also Published As
Publication number | Publication date |
---|---|
JP5678769B2 (en) | 2015-03-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2109962B1 (en) | Triple-tier anycast addressing | |
JP5131651B2 (en) | Load distribution system, load distribution method, and program | |
WO2012127886A1 (en) | Network system, and policy route configuration method | |
US8938521B2 (en) | Bi-directional synchronization enabling active-active redundancy for load-balancing switches | |
JP5861772B2 (en) | Network appliance redundancy system, control device, network appliance redundancy method and program | |
US20140003427A1 (en) | Network system, and management apparatus and switch thereof | |
WO2014087591A1 (en) | Communication system, control apparatus, communication control method, transfer control method, and transfer control program | |
JP5169992B2 (en) | Network, network device, and load balancing method used therefor | |
WO2013141191A1 (en) | Control apparatus, communication system, node control method and program | |
US9596129B2 (en) | Communication system, control apparatus, communication apparatus, information-relaying method, and program | |
JP5678769B2 (en) | Communication system, network address processing device, path control unit, and packet processing program for network address processing device | |
US11218338B2 (en) | Communication system and server switching method | |
US10374834B2 (en) | Modular industrial automation appliance and method for transmitting messages via a backplane bus system of the modular industrial automation appliance | |
JP2015231212A (en) | Data transfer system, data transfer server, data transfer method, and program | |
JP2004274112A (en) | Route switching device | |
JP6362424B2 (en) | Relay device and relay method | |
JP6062394B2 (en) | Relay device and relay method | |
WO2021156983A1 (en) | Communication device, communication system, communication method, and program | |
JP2011239082A (en) | Communication apparatus and address conversion method | |
JP2004056465A (en) | Network management device and computer program | |
JP4805708B2 (en) | Data transfer device | |
JP2011049924A (en) | Internetwork device | |
JP2011166338A (en) | Network and network band control method | |
KR20070061068A (en) | Router and method for processing ipv4 packet egregating between outer traffic and inner traffic thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20120813 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130920 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140502 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140617 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140724 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20140724 |
|
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: 20141209 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20141222 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5678769 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |