[go: up one dir, main page]

JP6062394B2 - Relay device and relay method - Google Patents

Relay device and relay method Download PDF

Info

Publication number
JP6062394B2
JP6062394B2 JP2014110699A JP2014110699A JP6062394B2 JP 6062394 B2 JP6062394 B2 JP 6062394B2 JP 2014110699 A JP2014110699 A JP 2014110699A JP 2014110699 A JP2014110699 A JP 2014110699A JP 6062394 B2 JP6062394 B2 JP 6062394B2
Authority
JP
Japan
Prior art keywords
relay
base
packet
gateway
communication
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
JP2014110699A
Other languages
Japanese (ja)
Other versions
JP2015226230A (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.)
THE FURUKAW ELECTRIC CO., LTD.
Original Assignee
THE FURUKAW ELECTRIC CO., 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 THE FURUKAW ELECTRIC CO., LTD. filed Critical THE FURUKAW ELECTRIC CO., LTD.
Priority to JP2014110699A priority Critical patent/JP6062394B2/en
Publication of JP2015226230A publication Critical patent/JP2015226230A/en
Application granted granted Critical
Publication of JP6062394B2 publication Critical patent/JP6062394B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

本発明は、中継装置および中継方法に関するものである。   The present invention relates to a relay device and a relay method.

通信システムでは、通信経路を冗長化することで、障害が発生した場合でも通信が不能になることを回避する技術がある。   In a communication system, there is a technique for preventing communication from being disabled even when a failure occurs by making a communication path redundant.

このような技術としては、例えば、特許文献1がある。特許文献1に開示された技術では、IPsec監視手段112が現用経路のIPsec通信の異常を検知すると、ブリッジテーブル113から自装置のイーサネット(登録商標)インタフェースに関連付くMACアドレスを抽出し、このMACアドレスを、予備経路を介して対向拠点に送信するブリッジ制御手段111とを備えることで、通信経路を予備経路に切り換えることができる。   An example of such a technique is Patent Document 1. In the technique disclosed in Patent Document 1, when the IPsec monitoring unit 112 detects an abnormality in IPsec communication on the working path, the MAC address associated with the Ethernet (registered trademark) interface of its own device is extracted from the bridge table 113 and this MAC is extracted. The communication path can be switched to the backup path by including the bridge control unit 111 that transmits the address to the opposite base via the backup path.

特開2012−231368号公報JP 2012-231368 A

ところで、特許文献1に開示された技術では、経路を切り換えるためのパケットは、インターネット701を介して送信されることから、インターネット701の帯域を狭めるとともに、通信システムによっては課金が生じる場合があるという問題点がある。   By the way, in the technique disclosed in Patent Document 1, since a packet for switching a route is transmitted via the Internet 701, the bandwidth of the Internet 701 is narrowed, and charging may occur depending on the communication system. There is a problem.

本発明は、帯域を狭めたり、課金を生じたりすることなく、通信経路を切り換えることが可能な中継装置および中継方法を提供することを目的としている。   An object of the present invention is to provide a relay device and a relay method capable of switching a communication path without narrowing a band or generating a charge.

上記課題を解決するために、本発明は、他の拠点と冗長化された通信経路を介して接続される拠点に配置され、前記冗長化された通信経路のそれぞれに対して備えられた中継装置であって、当該拠点内に配置される通信装置に対してデータリンク層を参照して経路を選択する経路選択装置を介して接続されるL2透過型の中継装置において、前記通信経路の切り換えによって、新たに現用系となることが通知された場合には、前記他の拠点が有する通信装置のMACアドレスを送信元とするパケットを当該中継装置が生成し、前記経路選択装置を介して当該拠点内の他の装置に対して送信することで、前記経路選択装置によって選択される経路を変更することを特徴とする。
このような構成によれば、帯域を狭めたり、課金を生じたりすることなく、通信経路を切り換えることが可能となる。
In order to solve the above-described problems, the present invention provides a relay device that is disposed at a base connected to another base via a redundant communication path, and is provided for each of the redundant communication paths. In an L2-transparent relay device connected via a route selection device that selects a route with reference to the data link layer with respect to a communication device arranged in the base, the communication route is switched. When it is notified that the network is to be newly used, the relay device generates a packet having the MAC address of the communication device of the other base as a transmission source, and the base via the route selection device The route selected by the route selection device is changed by transmitting to the other device.
According to such a configuration, it is possible to switch communication paths without narrowing the bandwidth or incurring charges.

また、本発明は、新たに現用系になることが通知された以外の中継装置は、前記他の拠点が有する通信装置のMACアドレスを送信元とするパケットを受信した場合には、前記他の拠点に対しては当該パケットを転送しないことを特徴とする。
このような構成によれば、他の拠点に対して、パケットが転送されてしまうことを確実に防ぐことができる。
また、本発明は、前記通信経路の切り換えによって、新たに現用系となる通知は、前記他の拠点から送信されることを特徴とする。
In addition, in the present invention, when a relay device other than that notified to become a new active system receives a packet whose source is the MAC address of the communication device of the other base, the other device The packet is not transferred to the base.
According to such a configuration, it is possible to reliably prevent a packet from being transferred to another base.
In addition, the present invention is characterized in that a notification that becomes a new active system is transmitted from the other base by switching the communication path.

また、本発明は、他の拠点と冗長化された通信経路を介して接続される拠点に配置され、前記冗長化された通信経路のそれぞれに対して備えられた中継装置の中継方法であって、当該拠点内に配置される通信装置に対してデータリンク層を参照して経路を選択する経路選択装置を介して接続されるL2透過型の中継装置の中継方法において、前記通信経路の切り換えによって、新たに現用系となることが通知された場合には、前記他の拠点が有する通信装置のMACアドレスを送信元とするパケットを当該中継装置が生成し、前記経路選択装置を介して当該拠点内の他の装置に対して送信することで、前記経路選択装置によって選択される経路を変更することを特徴とする。
このような方法によれば、帯域を狭めたり、課金を生じたりすることなく、通信経路を切り換えることが可能となる。
Further, the present invention is a relay method of a relay device that is disposed at a base connected to another base via a redundant communication path and provided for each of the redundant communication paths. In the relay method of the L2 transmission type relay device connected via a route selection device that selects a route with reference to the data link layer with respect to the communication device arranged in the base, by switching the communication route When it is notified that the network is to be newly used, the relay device generates a packet having the MAC address of the communication device of the other base as a transmission source, and the base via the route selection device The route selected by the route selection device is changed by transmitting to the other device.
According to such a method, it is possible to switch the communication path without narrowing the bandwidth or charging.

本発明によれば、帯域を狭めたり、課金を生じたりすることなく、通信経路を切り換えることが可能な中継装置および中継方法を提供することが可能となる。   According to the present invention, it is possible to provide a relay device and a relay method capable of switching a communication path without narrowing a bandwidth or charging.

本発明の実施形態に係る通信システムの構成例を示す図である。It is a figure which shows the structural example of the communication system which concerns on embodiment of this invention. 図1に示す通信システムの動作を説明するためのシグナルフロー図である。It is a signal flow figure for demonstrating operation | movement of the communication system shown in FIG. 図1に示す通信システムの各通信装置に格納されている中継用学習テーブルの例である。It is an example of the learning table for relay stored in each communication apparatus of the communication system shown in FIG. クライアントからパケットが送信される状態を示す図である。It is a figure which shows the state from which a packet is transmitted from a client. 図4の後の各中継用学習テーブルの状態を示す図である。It is a figure which shows the state of each learning table for relay after FIG. CPEから切り換え通知がなされる状態を示す図である。It is a figure which shows the state in which switching notification is made from CPE. 切り換え通知を行うための情報の一例を示す図である。It is a figure which shows an example of the information for performing switching notification. 切り換え通知を受けた後に、ゲートウエイXがブロードキャストパケットを送信する状態を示す図である。It is a figure which shows the state which the gateway X transmits a broadcast packet after receiving the notification of switching. 図8の後の各中継用学習テーブルの状態を示す図である。It is a figure which shows the state of each learning table for relay after FIG. クライアントからのパケットを受信する状態を示す図である。It is a figure which shows the state which receives the packet from a client. 図10の後の各中継用学習テーブルの状態を示す図である。It is a figure which shows the state of each learning table for relay after FIG. サーバからクライアントへのパケットの流れを示す図である。It is a figure which shows the flow of the packet from a server to a client. 本発明の実施形態に係る通信システムの他の構成例を示す図である。It is a figure which shows the other structural example of the communication system which concerns on embodiment of this invention.

次に、本発明の実施形態について説明する。   Next, an embodiment of the present invention will be described.

(A)実施形態の構成の説明
図1は、本発明の実施形態に係る通信システムの構成例を示す図である。この図1に示す例では、通信システムは、拠点10,20を有しており、これらの拠点10,20は、冗長化された通信経路31,32によって接続されている。
(A) Description of Configuration of Embodiment FIG. 1 is a diagram illustrating a configuration example of a communication system according to an embodiment of the present invention. In the example shown in FIG. 1, the communication system has bases 10 and 20, and these bases 10 and 20 are connected by redundant communication paths 31 and 32.

拠点10は、ゲートウエイX11(以下、単に「ゲートウエイX」と称する)、ゲートウエイY12(以下、単に「ゲートウエイY」と称する)、L2(Layer 2)スイッチ13、および、サーバ14を有している。ここで、ゲートウエイXは、インタフェースIF11,IF12を有し、通信経路31とL2スイッチ13を接続する。また、ゲートウエイXは、L2を透過する構成とされている。なお、インタフェースIF12にはMAC(Media Access Control)アドレスとして「X」が付与されている。ゲートウエイYは、インタフェースIF21,IF22を有し、通信経路32とL2スイッチ13を接続する。また、ゲートウエイYは、L2を透過する構成とされている。なお、インタフェースIF22にはMACアドレスとして「Y」が付与されている。L2スイッチ13は、インタフェースIF31,IF32,IF33を有し、OSI(Open Systems Interconnection)参照モデルの第2層(データリンク層)で扱われるMACアドレスに基づいて、受信したパケットの伝送先を選択して出力する。サーバ14は、サーバクライアントモデルのサーバに該当し、クライアント23からの要求に基づいて、所定の情報の取得または所定の処理を実行し、その結果として得られたデータを送信する。なお、サーバ14にはMACアドレスとして「B」が付与されている。   The base 10 includes a gateway X11 (hereinafter simply referred to as “gateway X”), a gateway Y12 (hereinafter simply referred to as “gateway Y”), an L2 (Layer 2) switch 13, and a server 14. Here, the gateway X has interfaces IF11 and IF12, and connects the communication path 31 and the L2 switch 13. Further, the gateway X is configured to transmit L2. The interface IF 12 is assigned “X” as a MAC (Media Access Control) address. The gateway Y has interfaces IF21 and IF22, and connects the communication path 32 and the L2 switch 13. Further, the gateway Y is configured to transmit L2. The interface IF 22 is assigned “Y” as the MAC address. The L2 switch 13 has interfaces IF31, IF32, and IF33, and selects the transmission destination of the received packet based on the MAC address handled in the second layer (data link layer) of the OSI (Open Systems Interconnection) reference model. Output. The server 14 corresponds to a server of the server client model, acquires predetermined information or executes predetermined processing based on a request from the client 23, and transmits data obtained as a result. The server 14 is assigned “B” as the MAC address.

拠点20は、CPE(Customer Premises Equipment)21、LAN(Local Area Network)22、および、クライアント23を有している。CPE21は、例えば、ルーターやスイッチ等によって構成され、拠点20内に配置される通信装置である。LAN22は、拠点20内に配設された局所的なネットワークである。クライアント23は、サーバクライアントモデルのクライアントに該当し、サーバ14に対して所定の情報の送信または処理の実行を要求し、その結果として送信される情報を受信する。なお、クライアント23にはMACアドレスとして「A」が付与されている。   The base 20 has a CPE (Customer Premises Equipment) 21, a LAN (Local Area Network) 22, and a client 23. The CPE 21 is a communication device that is configured by a router, a switch, and the like and is arranged in the base 20. The LAN 22 is a local network arranged in the base 20. The client 23 corresponds to a client of the server client model, requests the server 14 to transmit predetermined information or execute processing, and receives information transmitted as a result. The client 23 is assigned “A” as the MAC address.

通信経路31は、CPE21とゲートウエイXを接続し、これらの間でデータの授受を可能とする。通信経路32は、CPE21とゲートウエイYを接続し、これらの間でデータの授受を可能とする。なお、通信経路31,32は、物理的な線路として構成されてもよいし、あるいは、論理的な線路(例えば、トンネル経路)として構成されてもよい。   The communication path 31 connects the CPE 21 and the gateway X so that data can be exchanged between them. The communication path 32 connects the CPE 21 and the gateway Y, and enables data exchange between them. Note that the communication paths 31 and 32 may be configured as physical lines, or may be configured as logical lines (for example, tunnel paths).

(B)実施形態の動作の説明
つぎに、図1に示す実施形態の動作について説明する。図2は、図1に示す実施形態の動作を説明するためのシグナルフロー図である。例えば、図1に示す通信システムに、ゲートウエイX,Yが接続された後にシステムが起動されたとする。このとき、ゲートウエイX、ゲートウエイY、および、L2スイッチ13にそれぞれ格納されている中継用学習テーブルの状態の一例を図3に示す。図3(A)は、ゲートウエイXに格納されている中継用学習テーブルを示している。中継用学習テーブルは、通信装置のMACアドレスと、その通信装置が接続されているインタフェースとを対応付けて格納するテーブルである。なお、図3(A)の例では、ゲートウエイXは接続された直後の状態であるので、中継用学習テーブルは空「−」の状態とされている。図3(B)は、ゲートウエイYに格納されている中継用学習テーブルを示しており、ゲートウエイYも接続された直後の状態であるので、中継用学習テーブルは空「−」の状態とされている。図3(C)は、L2スイッチ13に格納されている中継用学習テーブルを示しており、この例では、サーバ14のMACアドレスである「B」と、サーバ14が接続されているインタフェースである「IF33」が対応付けされて格納されている。
(B) Description of Operation of Embodiment Next, the operation of the embodiment shown in FIG. 1 will be described. FIG. 2 is a signal flow diagram for explaining the operation of the embodiment shown in FIG. For example, assume that the system is started after gateways X and Y are connected to the communication system shown in FIG. At this time, an example of the state of the relay learning table stored in the gateway X, the gateway Y, and the L2 switch 13 is shown in FIG. FIG. 3A shows a relay learning table stored in the gateway X. The relay learning table is a table that stores a MAC address of a communication device in association with an interface to which the communication device is connected. In the example of FIG. 3A, since the gateway X is in a state immediately after being connected, the relay learning table is in an empty “-” state. FIG. 3B shows the relay learning table stored in the gateway Y, which is in a state immediately after the gateway Y is connected, so that the relay learning table is in an empty “-” state. Yes. FIG. 3C shows the learning table for relay stored in the L2 switch 13. In this example, “B” which is the MAC address of the server 14 and the interface to which the server 14 is connected. “IF33” is stored in association with each other.

このような状態において、通信経路31が現用系(メイン系)に、通信経路32が予備系(バックアップ系)に設定されたとする。そして、図2に示すタイミングT1において、図4に示すように、クライアント23が、サーバ14に向けてパケットを送信すると、図2に示すようにCPE21はこのパケットを、通信経路31を介して送信する。この結果、ゲートウエイ(GW)Xは、このパケットを受信する。このパケットの送信元MACアドレスは「A」とされ、送信先MACアドレスは「B」とされている。ところで、ゲートウエイX(ゲートウエイYも同様)は、前述したようにL2透過型である。このため、このようなパケットをゲートウエイXが受信すると、送信元MACアドレスは「A」のままで、タイミングT2においてこのパケットをL2スイッチ13に対して転送するとともに、テーブル更新処理P1を実行する。テーブル更新処理P1が実行されると、図5(A)に示すように、ゲートウエイXの中継用学習テーブルには、MACアドレスとして「A」(クライアント23のMACアドレス)が格納されるとともに、インタフェースとして「IF11」(クライアント23からのパケットを受信したインタフェース)が格納される。   In such a state, it is assumed that the communication path 31 is set to the active system (main system) and the communication path 32 is set to the backup system (backup system). Then, at the timing T1 shown in FIG. 2, when the client 23 transmits a packet to the server 14 as shown in FIG. 4, the CPE 21 transmits this packet via the communication path 31 as shown in FIG. To do. As a result, the gateway (GW) X receives this packet. The source MAC address of this packet is “A”, and the destination MAC address is “B”. Incidentally, the gateway X (same as the gateway Y) is the L2 transmission type as described above. Therefore, when the gateway X receives such a packet, the transmission source MAC address remains “A”, the packet is transferred to the L2 switch 13 at the timing T2, and the table update process P1 is executed. When the table update process P1 is executed, “A” (the MAC address of the client 23) is stored as the MAC address in the relay learning table of the gateway X as shown in FIG. "IF11" (the interface that received the packet from the client 23) is stored.

ゲートウエイXのIF12から出力されたパケットは、L2スイッチ13のIF31から入力される。L2スイッチ13は、パケットを受信すると、図2に示すテーブル更新処理P2を実行する。なお、前述したように、ゲートウエイXは(ゲートウエイYも同様に)、L2透過型のゲートウエイであるので、送信元アドレスは「A」のままとされる。テーブル更新処理P2が実行されると、図5(C)に示すように、L2スイッチ13の中継用学習テーブルには、MACアドレスとして「A」(クライアント23のMACアドレス)が格納されるとともに、インタフェースとして「IF31」(クライアント23からのパケットを受信したインタフェース)が対応付けされて格納される。   The packet output from the IF 12 of the gateway X is input from the IF 31 of the L2 switch 13. When receiving the packet, the L2 switch 13 executes a table update process P2 shown in FIG. As described above, since the gateway X (as well as the gateway Y) is an L2 transmission type gateway, the source address remains “A”. When the table update process P2 is executed, as shown in FIG. 5C, the relay learning table of the L2 switch 13 stores “A” (the MAC address of the client 23) as the MAC address. As an interface, “IF31” (the interface that received the packet from the client 23) is associated and stored.

以上の処理が完了した後に、サーバ14からクライアント23に向けてパケットが送信されると、このパケットはL2スイッチ13によって受信される。L2スイッチ13は、パケットの送信先MACアドレスである「A」を取得し、図5(C)に示す中継用学習テーブルからインタフェースである「IF31」を取得し、受信したパケットを、インタフェースIF31から出力する。ゲートウエイXは、IF12を介して入力したパケットから、送信先MACアドレスである「A」を取得し、図5(A)に示す中継用学習テーブルからインタフェースの「IF11」を取得し、入力したパケットを、インタフェースIF11から出力する。この結果、サーバ14から送信されたパケットはL2スイッチ13、ゲートウエイX、CPE21を介してクライアント23に伝送される。これにより、サーバ14とクライアント23の間の通信が可能になる。   When a packet is transmitted from the server 14 to the client 23 after the above processing is completed, the packet is received by the L2 switch 13. The L2 switch 13 acquires “A” that is the transmission destination MAC address of the packet, acquires “IF31” that is the interface from the learning table for relay shown in FIG. 5C, and receives the received packet from the interface IF31 Output. The gateway X acquires “A” that is the transmission destination MAC address from the packet input via the IF 12, acquires “IF11” of the interface from the relay learning table shown in FIG. 5A, and receives the input packet. Are output from the interface IF11. As a result, the packet transmitted from the server 14 is transmitted to the client 23 via the L2 switch 13, gateway X, and CPE 21. Thereby, communication between the server 14 and the client 23 becomes possible.

つぎに、以上のような状態において、通信経路31に障害が発生したとする。そのような場合には、例えば、CPE21が障害を検出し、通信経路31から通信経路32に現用系を切り換える処理を実行する。より詳細には、CPE21は、図6に示すように、ゲートウエイYに対して切り換え通知(予備系から現用系に切り換える通知)を行う。図2では、切り換え通知は、タイミングT3において実行されている。なお、切り換え通知を行うための具体的な方法としては、例えば、図7に示すようなCircuit Status AVP(Attribute Value Pair)(RFC 3931に規定)を用いることができる。図7は、16ビットの信号を示し、切り換え通知を行う情報としては、第Fビット目の「A」を用いることができる。このビットが「1」である場合にはActiveを示し、このビットが「0」である場合にはInactiveを示す。Activeの場合には、予備系から現用系になることが示される。Inactiveの場合には、現用系から予備系になることが示される。なお、通信経路31が通信可能である場合には、ゲートウエイXに対して、図7に示す第Fビットを「0」に設定した信号を送ることで、現用系から予備系に切り換えることを通知するようにしてもよい。   Next, it is assumed that a failure has occurred in the communication path 31 in the above state. In such a case, for example, the CPE 21 detects a failure and executes a process of switching the active system from the communication path 31 to the communication path 32. More specifically, as shown in FIG. 6, the CPE 21 notifies the gateway Y of switching (notification of switching from the standby system to the active system). In FIG. 2, the switching notification is executed at timing T3. As a specific method for performing the switching notification, for example, Circuit Status AVP (Attribute Value Pair) (specified in RFC 3931) as shown in FIG. 7 can be used. FIG. 7 shows a 16-bit signal, and “A” of the F-th bit can be used as information for switching notification. When this bit is “1”, it indicates Active, and when this bit is “0”, it indicates Inactive. In the case of Active, it is indicated that the active system is changed from the standby system. In the case of Inactive, it is indicated that the active system becomes the standby system. When the communication path 31 is communicable, the gateway X is notified of switching from the active system to the standby system by sending a signal in which the F-th bit shown in FIG. 7 is set to “0”. You may make it do.

CPE21から、切り換え通知を受けたゲートウエイYは、図2に示す切り換え処理P3を実行する。より詳細には、ゲートウエイYは、図8に示すように、送信元(SRC:Source)MACアドレスを「A」(新たに現用系となる通信経路の先に存在する通信装置のMACアドレス)とし、送信先(DST:Destination)を拠点10内の他の装置(図8の例では他の全ての装置を示す「ALL」)とするパケット(図8ではブロードキャストパケット)を生成し、図2に示すタイミングT4において、L2スイッチ13が接続されるインタフェースIF22から出力する。ここで、正常時であれば、ゲートウエイYが送信するパケットの送信元MACアドレスは「Y」とすべきであるが、本実施形態では、このときに送信するパケットに対して、新たに現用系となる通信経路32の先に存在する通信装置(クライアント23)のMACアドレスを付加する。なお、切り換え通知がなされた際に、付加するべき送信元MACアドレスは、例えば、Config情報として、ゲートウエイY(およびゲートウエイX)に予め格納しておくことができる。   The gateway Y that receives the switching notification from the CPE 21 executes the switching process P3 shown in FIG. More specifically, as shown in FIG. 8, the gateway Y sets the source (SRC: Source) MAC address to “A” (the MAC address of the communication device existing at the end of the communication path to be newly used). , A packet (broadcast packet in FIG. 8) is generated with the transmission destination (DST: Destination) as another device in the base 10 (“ALL” indicating all other devices in the example of FIG. 8). At timing T4 shown, the data is output from the interface IF 22 to which the L2 switch 13 is connected. Here, if it is normal, the source MAC address of the packet transmitted by the gateway Y should be “Y”, but in this embodiment, a new active system is newly added to the packet transmitted at this time. The MAC address of the communication device (client 23) existing ahead of the communication path 32 is added. Note that the transmission source MAC address to be added when the switching notification is made can be stored in advance in the gateway Y (and gateway X) as Config information, for example.

ゲートウエイYから図8に示すようなブロードキャストパケットが送信されると、L2スイッチ13はインタフェースIF32を介して受信する。L2スイッチ13は、受信したパケットがブロードキャストパケットである(送信先が「ALL」である)ことから、図2に示すようにタイミングT5にてゲートウエイXに対してこのパケットを転送する。また、L2スイッチ13は、図2に示すように、テーブル更新処理P4を実行する。より詳細には、L2スイッチ13は、受信したパケットの送信元MACアドレスが「A」であることから、MACアドレスが「A」の通信装置がインタフェースIF32に接続されていると判断し、図5(C)に示すMACアドレス「A」に対応づけられているインタフェース「IF31」を、図9(C)に示すように、インタフェース「IF32」に変更する。この結果、これ以降は、L2スイッチ13が受信した、送信先MACアドレスが「A」であるパケットは、インタフェースIF32から出力されることになる。   When a broadcast packet as shown in FIG. 8 is transmitted from the gateway Y, the L2 switch 13 receives it via the interface IF 32. Since the received packet is a broadcast packet (the transmission destination is “ALL”), the L2 switch 13 transfers this packet to the gateway X at timing T5 as shown in FIG. Further, the L2 switch 13 executes a table update process P4 as shown in FIG. More specifically, since the source MAC address of the received packet is “A”, the L2 switch 13 determines that the communication device with the MAC address “A” is connected to the interface IF 32, and FIG. The interface “IF31” associated with the MAC address “A” shown in (C) is changed to the interface “IF32” as shown in FIG. 9C. As a result, thereafter, the packet received by the L2 switch 13 and having the transmission destination MAC address “A” is output from the interface IF 32.

L2スイッチ13からブロードキャストパケットを受信したゲートウエイXは、図2に示すようにテーブル更新処理P5を実行する。より詳細には、ゲートウエイXは、受信したパケットの送信元MACアドレスが「A」であり、インタフェースが「IF12」であるが、その時点での中継用学習テーブルには、図5(A)に示すように、MACアドレス「A」はインタフェース「IF11」に対応付けられていることから、これらが一致しないため、システムの構成が変化したと判断し、中継用学習テーブルを、図9(A)に示すように、MACアドレス「A」に対応付けられたインタフェースを「IF11」から「IF12」に更新する。この結果、これ以降は、ゲートウエイXは、送信先MACアドレスとして「A」が格納されているパケットを、インタフェースIF12から出力する。通信経路31は障害が発生しているので、ゲートウエイXが受信したブロードキャストパケットは、通信経路31に送出されることはない。なお、前述したように、ゲートウエイXは、CPE21から予備系になる旨の通知を受けた後に受信したパケットについては、拠点20に対して転送しないようにしてもよい。そのような構成によれば、ゲートウエイXから通信経路31に対してパケットが送信され、帯域が制限されたり、課金が生じたりすることを確実に防止できる。   The gateway X that has received the broadcast packet from the L2 switch 13 executes the table update process P5 as shown in FIG. More specifically, in the gateway X, the transmission source MAC address of the received packet is “A” and the interface is “IF12”. The relay learning table at that time is shown in FIG. As shown, since the MAC address “A” is associated with the interface “IF11”, these do not match, so it is determined that the configuration of the system has changed, and the relay learning table is displayed as shown in FIG. As shown, the interface associated with the MAC address “A” is updated from “IF11” to “IF12”. As a result, thereafter, the gateway X outputs from the interface IF 12 a packet in which “A” is stored as the destination MAC address. Since a failure has occurred in the communication path 31, the broadcast packet received by the gateway X is not sent to the communication path 31. Note that, as described above, the gateway X may not transfer the packet received after receiving the notification from the CPE 21 that it becomes a standby system to the base 20. According to such a configuration, it is possible to reliably prevent a packet from being transmitted from the gateway X to the communication path 31 to limit the bandwidth or charge.

以上の処理によって、ゲートウエイXとL2スイッチ13の中継用学習テーブルが更新された後、図10に示すように、クライアント23からサーバ14に向けてパケットが送信されたとする(送信元MACアドレスが「A」のパケットが送信されたとする)。図2では、タイミングT6において、CPE21を介してパケットが送信されている。ゲートウエイYがこのようなパケットを受信すると、テーブル更新処理P6を実行する。より詳細には、ゲートウエイYは、MACアドレスが「A」である通信装置がインタフェースIF21に接続されていると判断し、図11(B)に示すように、中継用学習テーブルのMACアドレスに「A」を格納するとともに、インタフェースに「IF21」を対応付けて格納する。   As a result of the above processing, after the relay learning table of the gateway X and the L2 switch 13 is updated, a packet is transmitted from the client 23 to the server 14 as shown in FIG. 10 (the source MAC address is “ A "packet is transmitted). In FIG. 2, the packet is transmitted via the CPE 21 at the timing T6. When the gateway Y receives such a packet, the table update process P6 is executed. More specifically, the gateway Y determines that the communication device with the MAC address “A” is connected to the interface IF 21, and, as shown in FIG. A ”is stored, and“ IF21 ”is stored in association with the interface.

以上の処理が実行され、中継用学習テーブルが図11の状態に更新された後に、図12に示すように、サーバ14からクライアント23に向けてパケット(送信元MACアドレスが「B」であり、送信先MACアドレスが「A」であるパケット)が送信されたとする。L2スイッチ13は、図11(C)に示す中継用学習テーブルを参照して、このパケットを、インタフェースIF32から出力し、ゲートウエイYに供給する。ゲートウエイYは、図11(B)に示す中継用学習テーブルを参照し、インタフェースIF21からパケットを出力し、通信経路32およびCPE21を介してクライアント23に供給する。これにより、通信経路31から通信経路32への切り換えが完了する。   After the above processing is executed and the relay learning table is updated to the state of FIG. 11, as shown in FIG. 12, the packet (source MAC address is “B”) from the server 14 to the client 23, Assume that a packet whose destination MAC address is “A” is transmitted. The L2 switch 13 refers to the relay learning table shown in FIG. 11C, outputs this packet from the interface IF 32, and supplies it to the gateway Y. The gateway Y refers to the relay learning table shown in FIG. 11B, outputs a packet from the interface IF 21, and supplies the packet to the client 23 via the communication path 32 and the CPE 21. Thereby, the switching from the communication path 31 to the communication path 32 is completed.

以上に説明したように、本発明の実施形態では、通信経路の切り換えを行う際には、図8に示すように、新たに現用系となるゲートウエイYが、通信経路32に接続されている通信装置(クライアント23)のMACアドレス(「A」)を送信元とするパケットを送信するようにした。これにより、拠点10内の装置の中継用学習テーブルを確実に書き換えることができる。また、本実施形態では、ゲートウエイYがこのようなパケットを送信することから、このようなパケットを拠点20側が送信する場合に比較すると、拠点20から拠点10に向けてパケットが伝送されなくなるので、帯域が制限されたり、課金が発生したりすることを防ぐことができる。   As described above, in the embodiment of the present invention, when the communication path is switched, as shown in FIG. 8, the gateway Y newly used as the active system is connected to the communication path 32. A packet whose source is the MAC address (“A”) of the device (client 23) is transmitted. Thereby, the relay learning table of the apparatus in the base 10 can be rewritten reliably. In the present embodiment, since the gateway Y transmits such a packet, the packet is not transmitted from the base 20 to the base 10 as compared with the case where the base 20 transmits such a packet. It is possible to prevent the bandwidth from being limited or charged.

また、本実施形態では、図8に示すパケットとしてブロードキャストパケットを用いるようにしたので、拠点10内の全ての通信装置に対して情報を確実に伝えることができる。   In the present embodiment, since broadcast packets are used as the packets shown in FIG. 8, information can be reliably transmitted to all communication devices in the base 10.

また、本実施形態では、新たに予備系となるゲートウエイXについては、通信経路31に障害が発生しているため、ゲートウエイXが受信したブロードキャストパケットは、通信経路31には送出されない。また、前述したように、予備系になるゲートウエイXに対してCPE21が通知を行い、通知を受けたゲートウエイXは、それ以降はパケットを拠点20に対して転送しないようにすることで、パケットが通信経路31に送出され、帯域が制限されたり、課金が発生したりすることを確実に防止できる。   In the present embodiment, for the gateway X that newly becomes the standby system, a failure has occurred in the communication path 31, so that the broadcast packet received by the gateway X is not sent out to the communication path 31. Further, as described above, the CPE 21 notifies the standby gateway X, and the gateway X that has received the notification prevents the packet from being forwarded to the base 20 thereafter. It is transmitted to the communication path 31 and it is possible to reliably prevent the bandwidth from being limited or charged.

(C)変形実施形態の説明
以上の実施形態は一例であって、本発明が上述したような場合のみに限定されるものでないことはいうまでもない。例えば、以上の各実施形態では、図8に示すブロードキャストパケットの送信元MACアドレスを取得する方法としては、Config情報として予め格納しておく方法を採用したが、これ以外の方法を採用してもよい。具体的には、CPE21から通知するようにするか、あるいは、管理者がマニュアル操作で通知するようにしてもよい。また、以上の実施形態では、ブロードキャストパケットを用いるようにしたが、特定の相手に対して送信するマルチキャストパケットを用いるようにしてもよい。
(C) Description of Modified Embodiment It goes without saying that the above embodiment is merely an example, and the present invention is not limited to the case described above. For example, in each of the above embodiments, as a method of acquiring the transmission source MAC address of the broadcast packet shown in FIG. 8, a method of storing in advance as Config information is adopted, but other methods may be adopted. Good. Specifically, notification from the CPE 21 may be performed, or the administrator may notify by manual operation. In the above embodiment, a broadcast packet is used. However, a multicast packet transmitted to a specific partner may be used.

また、以上の実施形態では、現用系と予備系が1つずつの場合を例に挙げて説明したが、予備系が2つ以上存在するようにしてもよい。図13は予備系が2つ存在する場合の構成例である。この図13の例では、通信経路33とゲートウエイZが新たに追加されている。このような構成において、ゲートウエイXからゲートウエイZに現用系を切り換える場合には、前述したゲートウエイYを現用系に切り換える場合と同様の動作を、ゲートウエイZに実行させるようにすればよい。また、ゲートウエイXからゲートウエイYに現用系を切り換える場合には、ゲートウエイXおよびゲートウエイYは前述と同様の動作を実行させることはいうまでもないが、ゲートウエイZについては、ゲートウエイYから受信したブロードキャストパケットに基づいて、中継用学習テーブルにMACアドレスとして「A」を格納するとともに、インタフェースとして「IF42」を対応付けて格納するようにすればよい。なお、新たに現用系になることが通知された以外のゲートウエイは、他の拠点20が有する通信装置であるクライアント23のMACアドレスを送信元とするパケットを受信した場合には、拠点20に対しては当該パケットを転送しないようにすることで、通信経路に対してパケットが送出されることを防ぐことができる。   In the above embodiment, the case where there is one active system and one standby system has been described as an example, but two or more standby systems may exist. FIG. 13 shows a configuration example in the case where two standby systems exist. In the example of FIG. 13, a communication path 33 and a gateway Z are newly added. In such a configuration, when the working system is switched from the gateway X to the gateway Z, the gateway Z may be made to perform the same operation as that when the gateway Y is switched to the working system. In addition, when switching the working system from the gateway X to the gateway Y, the gateway X and the gateway Y need not execute the same operation as described above, but for the gateway Z, the broadcast packet received from the gateway Y Based on the above, “A” is stored as the MAC address in the relay learning table, and “IF42” is stored in association with the interface. In addition, when a gateway other than that which has been notified of becoming a new active system receives a packet whose source is the MAC address of the client 23 which is a communication device of another base 20, the gateway 20 Therefore, by not transferring the packet, it is possible to prevent the packet from being sent to the communication path.

また、以上の実施形態では、拠点20にはクライアントが1つだけの構成としたが、複数のクライアントを配置するようにしてもよい。その場合、図8に示すブロードキャストパケットを、クライアントの数だけ繰り返して送信するようにすればよい。例えば、拠点20内にクライアントA,C,Dが存在する場合には、新たに現用系になるゲートウエイが、送信元MACアドレスが「A」、「C」、「D」の3つのパケットを送信するようにすればよい。   In the above embodiment, the base 20 has only one client, but a plurality of clients may be arranged. In that case, the broadcast packet shown in FIG. 8 may be repeatedly transmitted by the number of clients. For example, when the clients A, C, and D exist in the base 20, the gateway that newly becomes the active system transmits three packets with source MAC addresses “A”, “C”, and “D”. You just have to do it.

また、以上の実施形態では、拠点10にはサーバが1つだけの構成としたが、複数のサーバを配置するようにしてもよい。その場合、L2スイッチ13のポートをサーバの数に応じて増設するとともに、中継用学習テーブルに対して各サーバに応じた情報を格納するようにすればよい。   In the above embodiment, the base 10 has only one server, but a plurality of servers may be arranged. In that case, the number of ports of the L2 switch 13 may be increased according to the number of servers, and information corresponding to each server may be stored in the relay learning table.

また、以上の実施形態では、現用系および予備系の切り換えの際には、図7に示す情報を用いるようにしたが、これ以外の情報を用いて実行するようにしてもよい。   In the above embodiment, the information shown in FIG. 7 is used when switching between the active system and the standby system, but the information may be executed using other information.

また、以上の実施形態では、拠点10にはサーバを配置し、拠点20にはクライアントを配置するようにしたが、拠点10にクライアントを配置し、拠点20にサーバを配置するようにしたり、あるいは、これ以外の通信装置を配置したりするようにしてもよい。すなわち、請求の範囲に記載されている「通信装置」は、サーバおよびクライアントのいずれでもよい。   In the above embodiment, the server is arranged at the base 10 and the client is arranged at the base 20. However, the client is arranged at the base 10 and the server is arranged at the base 20, or Other communication devices may be arranged. That is, the “communication device” described in the claims may be either a server or a client.

10 拠点
11,12 ゲートウエイ(中継装置)
13 L2スイッチ(経路選択装置)
14 サーバ(通信装置)
20 拠点(他の拠点)
21 CPE
22 LAN
23 クライアント(通信装置)
10 locations 11, 12 Gateway (relay equipment)
13 L2 switch (route selection device)
14 Server (communication device)
20 locations (other locations)
21 CPE
22 LAN
23 Client (communication device)

Claims (4)

他の拠点と冗長化された通信経路を介して接続される拠点に配置され、前記冗長化された通信経路のそれぞれに対して備えられた中継装置であって、当該拠点内に配置される通信装置に対してデータリンク層を参照して経路を選択する経路選択装置を介して接続されるL2透過型の中継装置において、
前記通信経路の切り換えによって、新たに現用系となることが通知された場合には、前記他の拠点が有する通信装置のMACアドレスを送信元とするパケットを当該中継装置が生成し、前記経路選択装置を介して当該拠点内の他の装置に対して送信することで、前記経路選択装置によって選択される経路を変更することを特徴とする中継装置。
A relay device that is disposed at a base connected to another base via a redundant communication path, and is provided for each of the redundant communication paths, the communication being disposed within the base. In an L2 transmission type relay device connected to a device via a route selection device that selects a route with reference to the data link layer,
When it is notified by switching the communication path that the network is newly used, the relay apparatus generates a packet whose source is the MAC address of the communication apparatus of the other base, and the path selection A relay device, wherein a route selected by the route selection device is changed by transmitting to another device in the base via the device.
新たに現用系になることが通知された以外の中継装置は、前記他の拠点が有する通信装置のMACアドレスを送信元とするパケットを受信した場合には、前記他の拠点に対しては当該パケットを転送しないことを特徴とする請求項1に記載の中継装置。   When a relay device other than that which has been newly notified of becoming the active system receives a packet whose source is the MAC address of the communication device of the other base, the relay base The relay apparatus according to claim 1, wherein no packet is transferred. 前記通信経路の切り換えによって、新たに現用系となる通知は、前記他の拠点から送信されることを特徴とする請求項1または2に記載の中継装置。The relay apparatus according to claim 1 or 2, wherein a notification that becomes a new active system is transmitted from the other base by switching the communication path. 他の拠点と冗長化された通信経路を介して接続される拠点に配置され、前記冗長化された通信経路のそれぞれに対して備えられた中継装置の中継方法であって、当該拠点内に配置される通信装置に対してデータリンク層を参照して経路を選択する経路選択装置を介して接続されるL2透過型の中継装置の中継方法において、A relay device relay method provided at each base connected to another base via a redundant communication path and provided for each of the redundant communication paths, wherein the relay apparatus is provided in the base. In a relay method of an L2 transmission type relay device connected via a route selection device that selects a route with reference to the data link layer for a communication device to be
前記通信経路の切り換えによって、新たに現用系となることが通知された場合には、前記他の拠点が有する通信装置のMACアドレスを送信元とするパケットを当該中継装置が生成し、前記経路選択装置を介して当該拠点内の他の装置に対して送信することで、前記経路選択装置によって選択される経路を変更することを特徴とする中継装置の中継方法。When it is notified by switching the communication path that the network is newly used, the relay apparatus generates a packet whose source is the MAC address of the communication apparatus of the other base, and the path selection A relay method of a relay device, wherein the route selected by the route selection device is changed by transmitting to another device in the base via the device.
JP2014110699A 2014-05-28 2014-05-28 Relay device and relay method Active JP6062394B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014110699A JP6062394B2 (en) 2014-05-28 2014-05-28 Relay device and relay method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014110699A JP6062394B2 (en) 2014-05-28 2014-05-28 Relay device and relay method

Publications (2)

Publication Number Publication Date
JP2015226230A JP2015226230A (en) 2015-12-14
JP6062394B2 true JP6062394B2 (en) 2017-01-18

Family

ID=54842709

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014110699A Active JP6062394B2 (en) 2014-05-28 2014-05-28 Relay device and relay method

Country Status (1)

Country Link
JP (1) JP6062394B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20240064097A1 (en) 2021-01-13 2024-02-22 Nippon Telegraph And Telephone Corporation Transfer device, transfer method, transfer system, and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005175591A (en) * 2003-12-08 2005-06-30 Hitachi Cable Ltd Switching hub
WO2008111128A1 (en) * 2007-03-14 2008-09-18 Fujitsu Limited Edge switch and forwarding table rewrite method
EP2242215B1 (en) * 2009-04-16 2017-01-11 Alcatel Lucent Method for client data transmission through a packet switched provider network
JP5288505B2 (en) * 2011-04-27 2013-09-11 Necアクセステクニカ株式会社 Communication apparatus, communication system, communication path switching method, and communication path switching program

Also Published As

Publication number Publication date
JP2015226230A (en) 2015-12-14

Similar Documents

Publication Publication Date Title
US10728094B2 (en) Control traffic in software defined networks
EP3122004B1 (en) Traffic switching method, device, and system
CN105281947B (en) For Legacy network to be transformed into the technology for having the network of SDN ability
US10027574B2 (en) Redundant pathways for network elements
US9455916B2 (en) Method and system for changing path and controller thereof
JP2017500819A (en) Multi-domain source route selective forwarding based on cooperating network controllers
JP2015122640A (en) Relay system and switch device
KR20150051107A (en) Method for fast flow path setup and failure recovery
JPWO2014132967A1 (en) Communication system, switch, control device, control channel construction method and program
US7860027B2 (en) Extending an IP everywhere network over a plurality of flooding domains
JP2019145877A (en) Route information transfer device, route information transfer method, and route information transfer program
JP6064989B2 (en) Control device, communication system, node control method, and program
CN109347674B (en) Data transmission method and device and electronic equipment
CN103107942B (en) The tracking of a kind of static routing and equipment
JP6062394B2 (en) Relay device and relay method
WO2014102993A1 (en) Packet repeater, packet transfer method, and communication system
JP6362424B2 (en) Relay device and relay method
CN103905338B (en) The method and device that a kind of IP backbone merges
JP5880701B2 (en) Communication system, communication control method, communication relay system, and communication relay control method
JP2018107744A (en) Communication node, communication system, communication method, and program
JP2015159457A (en) network controller
Essah et al. Performance Comparison of OSPFV3 and EIGRP with IPv6 Network
JP2017022579A (en) Communication system, communication node and substitution processing method for communication system
JP2002077266A (en) Logic router and its routing information setting method
JP2017183925A (en) Communication system and control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20151115

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160829

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160907

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161027

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161214

R150 Certificate of patent or registration of utility model

Ref document number: 6062394

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250