JP6591828B2 - Relay device and relay system - Google Patents

Relay device and relay system Download PDF

Info

Publication number
JP6591828B2
JP6591828B2 JP2015159152A JP2015159152A JP6591828B2 JP 6591828 B2 JP6591828 B2 JP 6591828B2 JP 2015159152 A JP2015159152 A JP 2015159152A JP 2015159152 A JP2015159152 A JP 2015159152A JP 6591828 B2 JP6591828 B2 JP 6591828B2
Authority
JP
Japan
Prior art keywords
lag
port
failure
recovery
relay
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
JP2015159152A
Other languages
Japanese (ja)
Other versions
JP2017038282A (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.)
Apresia Systems Ltd
Original Assignee
Apresia Systems 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 Apresia Systems Ltd filed Critical Apresia Systems Ltd
Priority to JP2015159152A priority Critical patent/JP6591828B2/en
Publication of JP2017038282A publication Critical patent/JP2017038282A/en
Application granted granted Critical
Publication of JP6591828B2 publication Critical patent/JP6591828B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、中継装置および中継システムに関し、例えば、LAG(Link Aggregation Group)を適用した中継装置および中継システムに関する。   The present invention relates to a relay device and a relay system, for example, a relay device and a relay system to which LAG (Link Aggregation Group) is applied.

例えば、特許文献1には、LACP(Link Aggregation Control Protocol)に基づくLAGを適用した通信システムにおいて、LACPDU(LACP Data Unit)内の同期ビット等を操作することで、現用リンクと予備リンクからなるN+1冗長を実現する方式が示される。   For example, in Patent Document 1, in a communication system to which LAG based on LACP (Link Aggregation Control Protocol) is applied, by operating a synchronization bit or the like in a LAC PDU (LACP Data Unit), N + 1 consisting of a working link and a protection link. A scheme for realizing redundancy is shown.

特開2008−160227号公報JP 2008-160227 A

例えば、LAGを設定するためのプロトコルとして、IEEE802.1AX、IEEE802.3adに規定されるLACPが知られている。LACPを用いると、例えば、障害が発生したポートをLAGから除外する処理や、当該障害から復旧したポートにLAGを再度設定する処理を自動的に行うことができる。   For example, LACP defined in IEEE802.1AX and IEEE802.3ad is known as a protocol for setting LAG. When LACP is used, for example, a process of excluding a failed port from the LAG and a process of setting the LAG again to a port recovered from the failure can be automatically performed.

しかし、例えば、障害発生と障害復旧とを短時間で繰り返す不安定な障害の場合、ポートをLAGから除外する処理と、当該ポートにLAGを再度設定する処理とが頻繁に繰り返される事態が生じ得る。実際上、ポートに障害が発生してから当該ポートをLAGから除外するまでには、ある程度の期間が必要となる。この期間では、データ通信を正常に行うことができない(例えばユーザフレームの損失が生じる)ため、前述した処理が繰り返されると、データ通信の異常期間が長期化する恐れがある。   However, for example, in the case of an unstable failure in which failure occurrence and failure recovery are repeated in a short time, there may occur a situation where the process of excluding a port from the LAG and the process of resetting the LAG for the port are frequently repeated. . In practice, a certain period of time is required after a failure occurs in a port until the port is excluded from the LAG. During this period, data communication cannot be performed normally (for example, a user frame is lost). Therefore, if the above-described processing is repeated, the abnormal period of data communication may be prolonged.

本発明は、このようなことに鑑みてなされたものであり、その目的の一つは、データ通信の異常期間を短縮可能な中継装置および中継システムを提供することにある。   The present invention has been made in view of the above, and an object of the present invention is to provide a relay device and a relay system that can shorten an abnormal period of data communication.

本発明の前記並びにその他の目的と新規な特徴は、本明細書の記述及び添付図面から明らかになるであろう。   The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.

本願において開示される発明のうち、代表的な実施の形態の概要を簡単に説明すれば、次のとおりである。   Of the inventions disclosed in the present application, the outline of a typical embodiment will be briefly described as follows.

本実施の形態による中継装置は、複数のポートと、複数のポートのそれぞれに対する障害発生および障害復旧を検出する障害検出部と、所定のプロトコルに基づき複数のポートの中の所定のポートにLAG(Link Aggregation Group)を設定するLAG制御部とを有する。LAG制御部は、障害発生の検出に応じてLAGから除外したポートに対して障害復旧が検出された場合、ユーザの指示に基づくイベントが発生するまで当該ポートにLAGを設定しない。   The relay apparatus according to the present embodiment includes a plurality of ports, a failure detection unit that detects a failure occurrence and a failure recovery for each of the plurality of ports, a LAG ( And a LAG control unit for setting a Link Aggregation Group. When a failure recovery is detected for a port excluded from the LAG in response to detection of a failure occurrence, the LAG control unit does not set a LAG for the port until an event based on a user instruction occurs.

本願において開示される発明のうち、代表的な実施の形態によって得られる効果を簡単に説明すると、中継装置および中継システムにおいて、データ通信の異常期間を短縮することが可能になる。   The effects obtained by the representative embodiments of the invention disclosed in the present application will be briefly described. In the relay device and the relay system, it is possible to shorten the abnormal period of data communication.

(a)および(b)は、本発明の一実施の形態による中継システムにおいて、その構成例および障害復旧時の動作例を示す概略図である。(A) And (b) is the schematic which shows the structural example and the operation example at the time of failure recovery in the relay system by one embodiment of this invention. 図1(a)および図1(b)の中継システムにおいて、中継装置の主要部の概略構成例を示すブロック図である。FIG. 2 is a block diagram illustrating a schematic configuration example of a main part of a relay device in the relay system of FIGS. 1 (a) and 1 (b). (a)は、図2におけるFDBの構造例を示す概略図であり、(b)は、図2におけるLAG中継テーブルの構造例を示す概略図であり、(c)は、図2におけるLAG管理テーブルの構造例を示す概略図である。(A) is a schematic diagram showing an example of the structure of the FDB in FIG. 2, (b) is a schematic diagram showing an example of the structure of the LAG relay table in FIG. 2, and (c) is a LAG management in FIG. It is the schematic which shows the structural example of a table. (a)は、図3(c)のLAG管理テーブルにおいて、復旧フラグが使用無しに設定された際の復旧フラグの動作例を示す状態遷移図であり、(b)は、図3(c)のLAG管理テーブルにおいて、復旧フラグが使用有りに設定された際の復旧フラグの動作例を示す状態遷移図である。(A) is a state transition diagram showing an operation example of a recovery flag when the recovery flag is set to “not used” in the LAG management table of FIG. 3 (c), and (b) is a state transition diagram of FIG. FIG. 10 is a state transition diagram illustrating an operation example of a recovery flag when the recovery flag is set to use in the LAG management table of FIG. 図2の中継装置において、LAG制御部がLAG設定を行う際の処理内容の一例を示すフロー図である。FIG. 3 is a flowchart showing an example of processing contents when a LAG control unit performs LAG setting in the relay device of FIG. 2. 図2〜図5のLAG制御部において、障害発生時の具体的な動作例を示す説明図である。FIG. 6 is an explanatory diagram illustrating a specific operation example when a failure occurs in the LAG control unit of FIGS. 図2〜図5のLAG制御部において、障害復旧時の具体的な動作例を示す説明図である。FIG. 6 is an explanatory diagram illustrating a specific operation example at the time of failure recovery in the LAG control unit of FIGS. 図7に続く動作例を示す説明図である。It is explanatory drawing which shows the operation example following FIG. (a)、(b)および(c)は、本発明の前提として検討した中継システムにおいて、その構成例および障害発生時の動作例を示す概略図である。(A), (b) and (c) are schematic diagrams showing a configuration example and an operation example when a failure occurs in the relay system studied as a premise of the present invention. (a)および(b)は、図9(c)の中継システムにおける障害復旧時の動作例を示す概略図である。(A) And (b) is the schematic which shows the operation example at the time of the failure recovery in the relay system of FIG.9 (c). (a)および(b)は、制御フレーム(LACPDU)の主要部のフォーマット構成例を示す概略図である。(A) And (b) is the schematic which shows the format structural example of the principal part of a control frame (LACPDU).

以下の実施の形態においては便宜上その必要があるときは、複数のセクションまたは実施の形態に分割して説明するが、特に明示した場合を除き、それらは互いに無関係なものではなく、一方は他方の一部または全部の変形例、詳細、補足説明等の関係にある。また、以下の実施の形態において、要素の数等(個数、数値、量、範囲等を含む)に言及する場合、特に明示した場合および原理的に明らかに特定の数に限定される場合等を除き、その特定の数に限定されるものではなく、特定の数以上でも以下でも良い。   In the following embodiment, when it is necessary for the sake of convenience, the description will be divided into a plurality of sections or embodiments. However, unless otherwise specified, they are not irrelevant, and one is the other. Some or all of the modifications, details, supplementary explanations, and the like are related. Further, in the following embodiments, when referring to the number of elements (including the number, numerical value, quantity, range, etc.), especially when clearly indicated and when clearly limited to a specific number in principle, etc. Except, it is not limited to the specific number, and may be more or less than the specific number.

さらに、以下の実施の形態において、その構成要素(要素ステップ等も含む)は、特に明示した場合および原理的に明らかに必須であると考えられる場合等を除き、必ずしも必須のものではないことは言うまでもない。同様に、以下の実施の形態において、構成要素等の形状、位置関係等に言及するときは、特に明示した場合および原理的に明らかにそうでないと考えられる場合等を除き、実質的にその形状等に近似または類似するもの等を含むものとする。このことは、上記数値および範囲についても同様である。   Further, in the following embodiments, the constituent elements (including element steps and the like) are not necessarily indispensable unless otherwise specified and apparently essential in principle. Needless to say. Similarly, in the following embodiments, when referring to the shapes, positional relationships, etc. of the components, etc., the shapes are substantially the same unless otherwise specified, or otherwise apparent in principle. And the like are included. The same applies to the above numerical values and ranges.

以下、本発明の実施の形態を図面に基づいて詳細に説明する。なお、実施の形態を説明するための全図において、同一の部材には原則として同一の符号を付し、その繰り返しの説明は省略する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Note that components having the same function are denoted by the same reference symbols throughout the drawings for describing the embodiment, and the repetitive description thereof will be omitted.

《中継システム(前提)の概略構成および概略動作》
図9(a)、図9(b)および図9(c)は、本発明の前提として検討した中継システムにおいて、その構成例および障害発生時の動作例を示す概略図である。図9(a)に示す中継システムは、2台の中継装置10a,10bを有する。中継装置10a,10bのそれぞれは、複数(ここでは3個)のポートP1〜P3と、LAG制御部11’と、中継処理部12とを備える。中継装置10aのポートP1〜P3は、それぞれ、通信回線(例えばイーサネット(登録商標)回線)を介して中継装置10bのポートP1〜P3に接続される。
<< Schematic configuration and outline of relay system (premise) >>
FIG. 9A, FIG. 9B, and FIG. 9C are schematic diagrams illustrating a configuration example and an operation example when a failure occurs in the relay system studied as a premise of the present invention. The relay system shown in FIG. 9A includes two relay devices 10a and 10b. Each of the relay devices 10a and 10b includes a plurality (here, three) of ports P1 to P3, a LAG control unit 11 ′, and a relay processing unit 12. The ports P1 to P3 of the relay device 10a are connected to the ports P1 to P3 of the relay device 10b via communication lines (for example, Ethernet (registered trademark) lines), respectively.

LAG制御部11’は、所定のプロトコル(ここではLACP)に基づきポートP1〜P3の中の所定のポートにLAGを設定する。ここでは、LACPに基づき、中継装置10aはアクティブモードで動作し、中継装置10bはパッシブモードで動作する場合を例とする。アクティブモードで動作する中継装置10a(そのLAG制御部11’)は、LACPに基づく制御フレーム(すなわちLACPDU)を自発的に送信する。一方、パッシブモードで動作する中継装置10b(そのLAG制御部11’)は、制御フレームを受信した場合に、それに応答する形で制御フレームを送信する。なお、中継装置10bは、パッシブモードに限らず、アクティブモードであってもよい。   The LAG control unit 11 'sets the LAG to a predetermined port among the ports P1 to P3 based on a predetermined protocol (here LACP). Here, based on LACP, the relay device 10a operates in the active mode, and the relay device 10b operates in the passive mode. The relay apparatus 10a (its LAG control unit 11 ') that operates in the active mode spontaneously transmits a control frame based on LACP (that is, LACPDU). On the other hand, when receiving a control frame, the relay device 10b (the LAG control unit 11 ') operating in the passive mode transmits the control frame in response to the control frame. The relay device 10b is not limited to the passive mode but may be in the active mode.

図9(a)の例では、中継装置10aは、ポートP1,P2,P3からそれぞれ制御フレームCF1ab,CF2ab,CF3abを送信し、中継装置10bは、これらの制御フレームに応答して、ポートP1,P2,P3からそれぞれ制御フレームCF1ba,CF2ba,CF3baを送信する。ここで、LACPでは、予め、LAGの設定候補のポートと、LAGを構成する最大ポート数と、各ポートの優先度を設定できる。図9(a)の例では、LAGの設定候補のポートはポートP1〜P3であり、最大ポート数は2であり、各ポートの優先度は高優先度順にポートP1,P2,P3である。   In the example of FIG. 9A, the relay device 10a transmits control frames CF1ab, CF2ab, and CF3ab from the ports P1, P2, and P3, respectively, and the relay device 10b responds to these control frames in response to the ports P1, P2, and P3. Control frames CF1ba, CF2ba, and CF3ba are transmitted from P2 and P3, respectively. Here, in LACP, the LAG setting candidate ports, the maximum number of ports constituting the LAG, and the priority of each port can be set in advance. In the example of FIG. 9A, the LAG setting candidate ports are ports P1 to P3, the maximum number of ports is 2, and the priority of each port is ports P1, P2, and P3 in order of high priority.

中継装置10aのLAG制御部11’は、LAGの設定候補のポートの中から各ポートの優先度に基づき最大ポート数のポートを選択し、当該選択したポート(ここではP1,P2)にLAGを設定するための処理を開始する。その処理の中で、当該LAG制御部11’は、選択したポートP1,P2から同期ビットおよび集約化ビットの両方がTRUE(‘1’)である制御フレーム(LACPDU)CF1ab,CF2abを送信する。また、当該LAG制御部11’は、LAGの設定候補のポートであり非選択であるポートP3から同期ビットおよび集約化ビットの少なくとも一方がFALSE(‘0’)である制御フレームCF3abを送信する。   The LAG control unit 11 ′ of the relay device 10a selects a port with the maximum number of ports from the LAG setting candidate ports based on the priority of each port, and applies the LAG to the selected ports (here, P1 and P2). The process for setting is started. In the process, the LAG control unit 11 'transmits control frames (LACPDU) CF1ab and CF2ab whose synchronization bits and aggregation bits are both TRUE (' 1 ') from the selected ports P1 and P2. Further, the LAG control unit 11 ′ transmits a control frame CF 3 ab in which at least one of the synchronization bit and the aggregation bit is FALSE (“0”) from the non-selected port P 3 which is a LAG setting candidate port.

障害が発生していない場合、図9(a)に示すように、中継装置10bのLAG制御部11’は、当該制御フレームCF1ab,CF2abに応答して、ポートP1,P2から、同じく同期ビットおよび集約化ビットの両方が‘1’である制御フレーム(LACPDU)CF1ba,CF2baを送信する。中継装置10a,10bのLAG制御部11’は、同期ビットおよび集約化ビットの両方が‘1’である制御フレームを送信かつ受信したポートにLAGを設定する。   When no failure has occurred, as shown in FIG. 9 (a), the LAG control unit 11 ′ of the relay apparatus 10b responds to the control frames CF1ab and CF2ab from the ports P1 and P2 in the same manner. Control frames (LACPDU) CF1ba and CF2ba whose aggregation bits are both “1” are transmitted. The LAG control unit 11 ′ of the relay apparatuses 10 a and 10 b sets LAG to the port that has transmitted and received the control frame in which both the synchronization bit and the aggregation bit are “1”.

その結果、中継装置10a,10bのLAG制御部11’は、共に、ポートP1,P2にLAG(ここではLAG1とする)を設定する。一方、当該LAG制御部11’は、同期ビットおよび集約化ビットの少なくも一方が‘0’である制御フレームを送信または受信したポートP3にはLAGを設定せず、ポートP1,P2よりも優性度が低いポートP3を障害が発生した場合の予備リンクとして取り扱うことができる。   As a result, the LAG control unit 11 'of the relay devices 10a and 10b sets LAG (here, LAG1) to the ports P1 and P2. On the other hand, the LAG control unit 11 ′ does not set LAG in the port P3 that has transmitted or received the control frame in which at least one of the synchronization bit and the aggregation bit is “0”, and is superior to the ports P1 and P2. The port P3 having a low degree can be handled as a backup link when a failure occurs.

中継装置10a,10bの中継処理部12は、図示しないポートで受信したユーザフレームUFの宛先ポートがLAG1であった場合、当該フレームを、所定の分散規則に基づいてポートP1,P2の中から選択したポートに中継する。当該分散規則として、例えば、ユーザフレームUFの送信元MACアドレスおよび宛先MACアドレスを用いてハッシュ演算を行う方式等が挙げられる。   When the destination port of the user frame UF received at a port (not shown) is LAG1, the relay processing unit 12 of the relay apparatuses 10a and 10b selects the frame from the ports P1 and P2 based on a predetermined distribution rule Relay to the specified port. Examples of the distribution rule include a method of performing a hash operation using the source MAC address and the destination MAC address of the user frame UF.

図11(a)および図11(b)は、制御フレーム(LACPDU)の主要部のフォーマット構成例を示す概略図である。制御フレーム(LACPDU)CFは、図11(a)に示すように、ヘッダ情報25、アクター情報26およびパートナー情報27を含んでいる。ヘッダ情報25は、宛先MACアドレス(DMAC)、送信元MACアドレス(SMAC)、タイプおよびサブタイプを含む。宛先MACアドレスには、所定のマルチキャストアドレスが格納され、タイプおよびサブタイプには、それぞれ、LACPDUであることを表す固有値(0x8809および0x01)が格納される。   FIG. 11A and FIG. 11B are schematic diagrams illustrating a format configuration example of a main part of a control frame (LACPDU). The control frame (LACPDU) CF includes header information 25, actor information 26, and partner information 27 as shown in FIG. The header information 25 includes a destination MAC address (DMAC), a source MAC address (SMAC), a type, and a subtype. A predetermined multicast address is stored in the destination MAC address, and eigenvalues (0x8809 and 0x01) representing LACPDU are stored in the type and subtype, respectively.

制御フレームを送信する中継装置(例えば10a)は、アクター情報26に自装置の各種情報を格納し、パートナー情報27に対向装置(中継装置10b)の各種情報を格納する。パートナー情報27は、対向装置から受信した制御フレームのアクター情報26に基づき定められる。アクター情報26およびパートナー情報27のそれぞれは、LAG(例えばLAG1)の識別子に該当するキーと、ポートの優先度と、ポート識別子と、ポートのステート28,29とを含む。   The relay apparatus (for example, 10a) that transmits the control frame stores various information of the own apparatus in the actor information 26, and stores various information of the opposite apparatus (relay apparatus 10b) in the partner information 27. The partner information 27 is determined based on the actor information 26 of the control frame received from the opposite device. Each of the actor information 26 and the partner information 27 includes a key corresponding to an identifier of LAG (for example, LAG1), a port priority, a port identifier, and port states 28 and 29.

アクターのステート28およびパートナーのステート29のそれぞれは、図11(b)に示すように、リンク集約が構成可能か否かを表す集約化ビット30と、同期の可否(例えば、ポートをキー(LAG識別子)で管理・運用するための条件が揃ったか否か等)を表す同期ビット31とを含む。リンク集約が構成可能な場合、集約化ビット30はTRUE(‘1’)となり、同期が可能な場合、同期ビット31はTRUE(‘1’)となる。LAGは、ステート28,29の両方における集約化ビット30および同期ビット31が共にTRUE(‘1’)となるポートに設定される。   As shown in FIG. 11B, each of the actor state 28 and the partner state 29 includes an aggregation bit 30 indicating whether or not link aggregation can be configured, and whether or not synchronization is possible (for example, a port is a key (LAG And a synchronization bit 31 indicating whether or not conditions for management and operation are met. When link aggregation can be configured, the aggregation bit 30 is TRUE ('1'), and when synchronization is possible, the synchronization bit 31 is TRUE ('1'). LAG is set to a port in which the aggregation bit 30 and the synchronization bit 31 in both states 28 and 29 are both TRUE ('1').

図9(b)に示す中継システムでは、図9(a)の場合と異なり、ポートP1のリンク(ここでは、ポートP1に接続される通信回線)に障害が発生している。この場合、中継装置10a,10bの中継処理部12がユーザフレームUFをポートP1側に分散した場合、当該フレームに損失が生じ得る。   In the relay system shown in FIG. 9B, unlike the case of FIG. 9A, a failure has occurred in the link of the port P1 (here, the communication line connected to the port P1). In this case, when the relay processing unit 12 of the relay apparatuses 10a and 10b distributes the user frame UF to the port P1 side, a loss may occur in the frame.

図9(c)に示す中継システムでは、図9(b)の場合と異なり、ポートP1の障害発生が検出され(ステップS101)、これに応じてLAG1の設定変更が行われている(ステップS102)。具体的には、中継装置10aのLAG制御部11’は、ポートP1に対する障害発生の検出に応じて、前述した予備リンクであるポートP3にLAG1を設定するための処理を開始する。   In the relay system shown in FIG. 9C, unlike the case of FIG. 9B, the occurrence of a failure in the port P1 is detected (step S101), and the LAG1 setting is changed accordingly (step S102). ). Specifically, the LAG control unit 11 'of the relay device 10a starts the process for setting LAG1 to the port P3 that is the above-described backup link in response to the detection of the failure occurrence for the port P1.

この際に、当該LAG制御部11’は、ポートP2,P3から、同期ビット31および集約化ビット30の両方が‘1’である制御フレーム(LACPDU)CF2ab,CF3abを送信する。一方、当該LAG制御部11’は、ポートP1をLAG1から除外すると共に、ポートP1から、同期ビット31および集約化ビット30の少なくとも一方が‘0’である制御フレームCF1abを送信する。   At this time, the LAG control unit 11 ′ transmits control frames (LACPDU) CF 2 ab and CF 3 ab in which both the synchronization bit 31 and the aggregation bit 30 are “1” from the ports P 2 and P 3. On the other hand, the LAG control unit 11 ′ excludes the port P 1 from the LAG 1 and transmits a control frame CF 1 ab in which at least one of the synchronization bit 31 and the aggregation bit 30 is “0” from the port P 1.

当該LAG制御部11’は、このような制御フレームCF2ab,CF3abを送信し、同じく同期ビット31および集約化ビット30の両方が‘1’である制御フレームCF2ba,CF3baを受信することで、ポートP2,P3にLAG1を設定する。同様に、中継装置10bのLAG制御部11’も、ポートP2,P3で、同期ビット31および集約化ビット30の両方が‘1’である制御フレームを送信および受信することでポートP2,P3にLAG1を設定する。その結果、中継装置10a,10bの中継処理部12は、受信したユーザフレームUFをポートP2,P3に分散して中継する。   The LAG control unit 11 ′ transmits such control frames CF2ab and CF3ab, and receives the control frames CF2ba and CF3ba in which both the synchronization bit 31 and the aggregation bit 30 are “1”, so that the port P2 , P3 is set to LAG1. Similarly, the LAG control unit 11 ′ of the relay device 10b also transmits and receives control frames in which the synchronization bit 31 and the aggregation bit 30 are both “1” at the ports P2 and P3, so that the ports P2 and P3 Set LAG1. As a result, the relay processing unit 12 of the relay apparatuses 10a and 10b distributes and relays the received user frame UF to the ports P2 and P3.

図10(a)および図10(b)は、図9(c)の中継システムにおける障害復旧時の動作例を示す概略図である。図10(a)に示す中継システムでは、図9(c)の場合と異なり、ポートP1のリンクの障害が復旧している。LAG1は、図9(c)の場合と同様に、依然としてポートP2,P3に設定されており、ユーザフレームUFの損失は特に生じない。   FIG. 10A and FIG. 10B are schematic diagrams showing an operation example at the time of failure recovery in the relay system of FIG. 9C. In the relay system shown in FIG. 10A, unlike the case of FIG. 9C, the link failure of the port P1 is recovered. Similarly to the case of FIG. 9C, LAG1 is still set to the ports P2 and P3, and there is no particular loss of the user frame UF.

図10(b)に示す中継システムでは、図10(a)の場合と異なり、ポートP1の障害復旧が検出され(ステップS201)、これに応じてLAG1の設定変更が行われている(ステップS202)。具体的には、中継装置10aのLAG制御部11’は、ポートP1に対する障害復旧の検出に応じて、ポートP3よりも優先度が高いポートP1にLAG1を再度設定するための処理を開始する。   In the relay system shown in FIG. 10B, unlike the case of FIG. 10A, the failure recovery of the port P1 is detected (step S201), and the setting change of LAG1 is performed accordingly (step S202). ). Specifically, the LAG control unit 11 'of the relay device 10a starts a process for setting LAG1 again to the port P1 having a higher priority than the port P3 in response to detection of failure recovery for the port P1.

この際に、当該LAG制御部11’は、ポートP1,P2から、同期ビット31および集約化ビット30の両方が‘1’である制御フレーム(LACPDU)CF1ab,CF2abを送信する。一方、当該LAG制御部11’は、ポートP3をLAG1から除外すると共に、ポートP3から、同期ビット31および集約化ビット30の少なくとも一方が‘0’である制御フレームCF3abを送信する。   At this time, the LAG control unit 11 ′ transmits control frames (LACPDU) CF 1 ab and CF 2 ab in which both the synchronization bit 31 and the aggregation bit 30 are “1” from the ports P 1 and P 2. On the other hand, the LAG control unit 11 ′ excludes the port P 3 from LAG 1 and transmits a control frame CF 3 ab in which at least one of the synchronization bit 31 and the aggregation bit 30 is “0” from the port P 3.

当該LAG制御部11’は、このような制御フレームCF1ab,CF2abを送信し、同じく同期ビット31および集約化ビット30の両方が‘1’である制御フレームCF1ba,CF2baを受信することで、ポートP1,P2にLAG1を設定する。同様に、中継装置10bのLAG制御部11’も、ポートP1,P2で、同期ビット31および集約化ビット30の両方が‘1’である制御フレームを送信および受信することでポートP1,P2にLAG1を設定する。その結果、中継装置10a,10bの中継処理部12は、受信したユーザフレームUFをポートP1,P2に分散して中継する。   The LAG control unit 11 ′ transmits such control frames CF1ab and CF2ab, and receives the control frames CF1ba and CF2ba in which both the synchronization bit 31 and the aggregation bit 30 are “1”. , P2 is set to LAG1. Similarly, the LAG control unit 11 ′ of the relay apparatus 10b also transmits and receives a control frame in which both the synchronization bit 31 and the aggregation bit 30 are “1” at the ports P1 and P2, to the ports P1 and P2. Set LAG1. As a result, the relay processing unit 12 of the relay apparatuses 10a and 10b distributes and relays the received user frame UF to the ports P1 and P2.

《中継システム(前提)の問題点》
ここで、例えば、図9(b)に示したポートP1のリンクの障害が、障害発生と障害復旧とを短時間に繰り返す不安定な障害であった場合を想定する。この場合、状態が、図9(b)→図9(c)→図10(a)→図10(b)→図9(b)→…、の順でループ状に切り替わる。
<< Problems of relay system (premise) >>
Here, for example, a case is assumed where the link failure of the port P1 shown in FIG. 9B is an unstable failure in which failure occurrence and failure recovery are repeated in a short time. In this case, the state is switched to a loop in the order of FIG. 9 (b) → FIG. 9 (c) → FIG. 10 (a) → FIG. 10 (b) → FIG. 9 (b) →.

また、図9(b)の状態から図9(c)の状態に切り替わるまでには、ある程度の期間を要し得る。特に、LACPに基づき、中継装置10a,10bの少なくとも一方が制御フレーム(LACPDU)CFの未受信によって障害発生を検出する場合で、制御フレームの定期的な送信間隔が30秒に設定された場合、LAG制御部11’は、当該送信間隔の3倍(90秒)の期間で障害発生を検出できない場合がある。障害発生を検出できない期間は、図9(b)に示したように、ユーザフレームUFの損失が生じ得る期間であり、データ通信の異常期間となる。したがって、不安定な障害が発生すると、データ通信の異常期間が高頻度に発生し、全体としてデータ通信の異常期間が長期化する恐れがある。   In addition, it may take a certain period of time to switch from the state of FIG. 9B to the state of FIG. 9C. In particular, based on LACP, when at least one of the relay apparatuses 10a and 10b detects the occurrence of a failure by not receiving the control frame (LACPDU) CF, and the periodic transmission interval of the control frame is set to 30 seconds, The LAG control unit 11 ′ may not be able to detect a failure occurrence in a period three times (90 seconds) of the transmission interval. As shown in FIG. 9B, the period during which failure occurrence cannot be detected is a period during which loss of the user frame UF can occur, and is an abnormal period of data communication. Therefore, when an unstable failure occurs, an abnormal period of data communication occurs frequently, and the abnormal period of data communication may be prolonged as a whole.

《中継システム(本実施の形態)の概略構成および概略動作》
図1(a)および図1(b)は、本発明の一実施の形態による中継システムにおいて、その構成例および障害復旧時の動作例を示す概略図である。図1(a)に示す中継システムは、図10(b)の中継システムと比較して、中継装置10aにLAG制御部11’とは処理内容が異なるLAG制御部11が設けられる点が異なっている。中継装置10aのLAG制御部11は、図10(b)等の場合と同様に、所定のプロトコル(ここではLACP)に基づき複数のポートP1〜P3の中の所定のポートにLAGを設定する。
<< Schematic configuration and schematic operation of relay system (this embodiment) >>
FIG. 1A and FIG. 1B are schematic diagrams illustrating a configuration example and an operation example at the time of failure recovery in a relay system according to an embodiment of the present invention. The relay system shown in FIG. 1A is different from the relay system shown in FIG. 10B in that a LAG control unit 11 having a different processing content from the LAG control unit 11 ′ is provided in the relay device 10a. Yes. Similarly to the case of FIG. 10B and the like, the LAG control unit 11 of the relay device 10a sets the LAG to a predetermined port among the plurality of ports P1 to P3 based on a predetermined protocol (here LACP).

ただし、当該LAG制御部11は、図10(b)の場合と異なり、障害発生の検出に応じてLAGから除外したポートに対して障害復旧が検出された場合、ユーザの指示に基づくイベントが発生するまで当該ポートにLAGを設定しない。図1(a)の例では、当該LAG制御部11は、ポートP1のリンクの障害復旧を検出しているが(ステップS201)、図10(b)の場合と異なり、ポートP2,P3へのLAG1の設定をそのまま維持している(ステップS201a)。この期間では、当該LAG制御部11は、図10(a)の場合と同様に、LAG1から除外したポートP1から、同期ビット31または集約化ビット30の少なくとも一方が‘0’である制御フレーム(LACPDU)CF1abを送信する。   However, unlike the case of FIG. 10B, the LAG control unit 11 generates an event based on a user instruction when failure recovery is detected for a port excluded from the LAG in response to detection of the failure occurrence. Do not set LAG to the port until In the example of FIG. 1A, the LAG control unit 11 detects the link failure recovery of the port P1 (step S201), but unlike the case of FIG. The setting of LAG1 is maintained as it is (step S201a). During this period, the LAG control unit 11 controls the control frame in which at least one of the synchronization bit 31 or the aggregation bit 30 is “0” from the port P1 excluded from LAG1, as in the case of FIG. LACPDU) CF1ab is transmitted.

その後、図1(b)では、ユーザの指示に基づくイベントが発生している(ステップS201b)。当該イベントは、例えば、ユーザによるコマンド入力や、または、タイマの出力である。当該タイマは、障害復旧が検出されてからユーザによって指示された時間を計測する。当該LAG制御部11は、障害復旧が検出された場合で、かつ、ユーザの指示に基づくイベントが発生した場合に、LAG1の設定変更を開始する(ステップS202)。   Thereafter, in FIG. 1B, an event based on a user instruction has occurred (step S201b). The event is, for example, a command input by a user or an output of a timer. The timer measures the time instructed by the user after failure recovery is detected. The LAG control unit 11 starts changing the setting of LAG1 when failure recovery is detected and an event based on a user instruction occurs (step S202).

すなわち、当該LAG制御部11は、図10(b)の場合と同様に、ポートP1,P2から、同期ビット31および集約化ビット30の両方が‘1’である制御フレーム(LACPDU)CF1ab,CF2abを送信する。一方、当該LAG制御部11は、ポートP3をLAG1から除外すると共に、ポートP3から、同期ビット31および集約化ビット30の少なくとも一方が‘0’である制御フレームCF3abを送信する。   That is, the LAG control unit 11 controls the control frames (LACPDU) CF1ab and CF2ab from the ports P1 and P2 in which both the synchronization bit 31 and the aggregation bit 30 are “1” as in the case of FIG. Send. On the other hand, the LAG control unit 11 excludes the port P3 from the LAG1, and transmits a control frame CF3ab from the port P3 in which at least one of the synchronization bit 31 and the aggregation bit 30 is “0”.

当該LAG制御部11は、このような制御フレームCF1ab,CF2abを送信し、同じく同期ビット31および集約化ビット30の両方が‘1’である制御フレームCF1ba,CF2baを受信することで、ポートP1,P2にLAG1を設定する。同様に、中継装置10bのLAG制御部11’も、ポートP1,P2で、同期ビット31および集約化ビット30の両方が‘1’である制御フレームを送信および受信することでポートP1,P2にLAG1を設定する。   The LAG control unit 11 transmits such control frames CF1ab and CF2ab, and similarly receives the control frames CF1ba and CF2ba in which both the synchronization bit 31 and the aggregation bit 30 are “1”, so that the ports P1, LAG1 is set to P2. Similarly, the LAG control unit 11 ′ of the relay apparatus 10b also transmits and receives a control frame in which both the synchronization bit 31 and the aggregation bit 30 are “1” at the ports P1 and P2, to the ports P1 and P2. Set LAG1.

これにより、代表的には、データ通信の異常期間を短縮することが可能になる。具体的には、例えば、図1(a)のように障害復旧が検出された場合(ステップS201)、ユーザは、ポートP1の障害復旧が一時的なものでないことを確認し、それが確認できた段階で図1(b)のようなイベントを発生させればよい(ステップS201b)。その結果、前述したように、図9(b)の状態が高頻度に発生する事態を防止でき、ユーザフレームUFの損失が生じ得る期間を短縮できる。   Thereby, typically, it is possible to shorten the abnormal period of data communication. Specifically, for example, when failure recovery is detected as shown in FIG. 1A (step S201), the user can confirm that the failure recovery of the port P1 is not temporary and can confirm it. At this stage, an event as shown in FIG. 1B may be generated (step S201b). As a result, as described above, the situation in which the state of FIG. 9B occurs frequently can be prevented, and the period during which the loss of the user frame UF can occur can be shortened.

《中継装置の概略構成および概略動作》
図2は、図1(a)および図1(b)の中継システムにおいて、中継装置の主要部の概略構成例を示すブロック図である。図2に示す中継装置10(例えば図1(a)の中継装置10a)は、複数のポートP1,P2,P3,…,Pnと、インタフェース部15と、中継処理部12と、FDB(Forwarding DataBase)と、LAG制御部11と、LAG中継テーブル16と、LAG管理テーブル17と、装置管理部18とを備える。ここでは、中継装置10は、レイヤ2(L2)スイッチである場合を例とするが、例えば、レイヤ3(L3)スイッチまたはそれよりも上層の処理機能を持つスイッチ等であってもよい。
<< Schematic configuration and operation of relay device >>
FIG. 2 is a block diagram illustrating a schematic configuration example of a main part of the relay device in the relay system of FIGS. 1 (a) and 1 (b). 2 includes a plurality of ports P1, P2, P3,..., Pn, an interface unit 15, a relay processing unit 12, an FDB (Forwarding DataBase). ), The LAG control unit 11, the LAG relay table 16, the LAG management table 17, and the device management unit 18. Here, the relay device 10 is a layer 2 (L2) switch as an example, but may be a layer 3 (L3) switch or a switch having a higher layer processing function, for example.

複数のポートP1〜Pnのそれぞれは、フレームの送信または受信を行う。インタフェース部15は、フレーム識別部19と、受信ポート識別子付加部20と、障害監視部21とを備える。受信ポート識別子付加部20は、所定のポートでフレームを受信した場合に、当該受信したポートの識別子(受信ポート識別子と呼ぶ)を当該フレームに付加する。   Each of the plurality of ports P1 to Pn transmits or receives a frame. The interface unit 15 includes a frame identification unit 19, a reception port identifier addition unit 20, and a failure monitoring unit 21. When a frame is received at a predetermined port, the reception port identifier adding unit 20 adds the received port identifier (referred to as a reception port identifier) to the frame.

フレーム識別部19は、例えば、所定のポートで受信したフレームがユーザフレームUFであるか制御フレーム(例えばLACPDU)CFであるかといった各種フレームの識別を行う。この識別は、例えば、図11(a)のヘッダ情報25におけるタイプやサブタイプ等の値を判別することで行われる。フレーム識別部19は、受信したフレームがユーザフレームUFの場合には、当該フレームを中継処理部12へ送信し、制御フレーム(LACPDU)CFの場合には、当該フレームをLAG制御部11へ送信する。なお、中継処理部12やLAG制御部11へ送信されるフレームには受信ポート識別子が付加されている。   The frame identifying unit 19 identifies various frames, for example, whether a frame received at a predetermined port is a user frame UF or a control frame (for example, a LACPDU) CF. This identification is performed, for example, by determining values such as type and subtype in the header information 25 in FIG. The frame identification unit 19 transmits the frame to the relay processing unit 12 when the received frame is the user frame UF, and transmits the frame to the LAG control unit 11 when the received frame is the control frame (LACPDU) CF. . A reception port identifier is added to the frame transmitted to the relay processing unit 12 and the LAG control unit 11.

障害監視部21は、ハードウェアによって複数のポート毎の障害有無(リンクアップ/リンクダウン)を検出する。障害監視部21は、例えば、受信した光信号レベルを監視し、光信号レベルの不足といった異常状態が所定の期間継続する場合にリンクダウンと判別する。あるいは、障害監視部21は、受信した信号から、アイドル状態で生成されるリンクパルス信号の有無や非アイドル状態でのデータ信号の有無を監視し、リンクパルス信号およびデータ信号が共に無しといった異常状態が所定の期間継続する場合にリンクダウンと判別する。   The failure monitoring unit 21 detects the presence or absence of a failure (link up / link down) for each of a plurality of ports by hardware. For example, the failure monitoring unit 21 monitors the received optical signal level, and determines that the link is down when an abnormal state such as an insufficient optical signal level continues for a predetermined period. Alternatively, the failure monitoring unit 21 monitors the presence / absence of the link pulse signal generated in the idle state and the presence / absence of the data signal in the non-idle state from the received signal, and the abnormal state such that both the link pulse signal and the data signal are absent. Is determined to be link-down when it continues for a predetermined period.

LAG制御部11は、制御フレーム(例えばLACPDU)CFの送信または受信を行う制御フレーム処理部23を備え、所定のプロトコル(例えばLACP)に基づき複数のポートP1〜Pnの中の所定のポートにLAGを設定する。この際に、LAG制御部11は、詳細は後述するが、LAG管理テーブル17に基づきLAGを設定し、当該LAGの設定内容(すなわちどのポートにLAGを設定したか)をLAG中継テーブル16に格納する。   The LAG control unit 11 includes a control frame processing unit 23 that transmits or receives a control frame (for example, LACPDU) CF. Based on a predetermined protocol (for example, LACP), the LAG control unit 11 transmits a LAG to a predetermined port among the plurality of ports P1 to Pn. Set. At this time, the LAG control unit 11 sets the LAG based on the LAG management table 17 and stores the setting contents of the LAG (that is, to which port the LAG is set) in the LAG relay table 16 as will be described in detail later. To do.

制御フレーム処理部23は、予め定めた間隔(例えば1秒毎または30秒毎)に基づき所定のポートで定期的に制御フレーム(LACPDU)CFの送信または受信を行う。この際に、制御フレーム処理部23は、所定のポートで制御フレームCFを所定の期間(例えば予め定めた間隔の3倍の期間)受信できない場合や、受信した制御フレームCFの同期ビット31および集約化ビット30の両方が‘1’でない場合に、当該ポートの障害発生を検出する。このように、制御フレーム処理部23は、前述した障害監視部21と共に、複数のポートP1〜Pnのそれぞれに対する障害発生および障害復旧を検出する障害検出部として機能する。   The control frame processing unit 23 periodically transmits or receives a control frame (LACPDU) CF at a predetermined port based on a predetermined interval (for example, every 1 second or every 30 seconds). At this time, the control frame processing unit 23 is unable to receive the control frame CF at a predetermined port for a predetermined period (for example, a period of three times a predetermined interval), or when the control frame processing unit 23 receives the synchronization bit 31 and the aggregation of the received control frame CF. When both of the control bits 30 are not “1”, the occurrence of a failure in the port is detected. As described above, the control frame processing unit 23 functions as a failure detection unit that detects the occurrence of failure and recovery from failure of each of the plurality of ports P1 to Pn together with the failure monitoring unit 21 described above.

図3(a)は、図2におけるFDBの構造例を示す概略図であり、図3(b)は、図2におけるLAG中継テーブルの構造例を示す概略図であり、図3(c)は、図2におけるLAG管理テーブルの構造例を示す概略図である。FDBは、図3(a)に示すように、MACアドレスおよびVLAN(Virtual Local Area Network)識別子(VID)と、ポート識別子/LAG識別子との対応関係を保持する。   3A is a schematic diagram illustrating an example of the structure of the FDB in FIG. 2, FIG. 3B is a schematic diagram illustrating an example of the structure of the LAG relay table in FIG. 2, and FIG. FIG. 3 is a schematic diagram showing a structural example of a LAG management table in FIG. 2. As shown in FIG. 3A, the FDB holds a correspondence relationship between a MAC address, a VLAN (Virtual Local Area Network) identifier (VID), and a port identifier / LAG identifier.

図3(a)の例では、例えば、MACアドレスMA1およびVID「xxx」を持つ端末等がLAG1(図2の例ではポートP1,P2)の先に存在し、また、MACアドレスMA3およびVID「xxx」を持つ端末等がポートPnの先に存在している。図3(a)において、例えば、{LAG1}はLAG1の識別子(ID)を表し、以降同様にして、本明細書では、例えば{AA}は「AA」の識別子を表すものとする。   In the example of FIG. 3A, for example, a terminal or the like having the MAC address MA1 and VID “xxx” exists ahead of LAG1 (ports P1 and P2 in the example of FIG. 2), and the MAC address MA3 and VID “ A terminal having “xxx” exists at the end of the port Pn. In FIG. 3A, for example, {LAG1} represents an identifier (ID) of LAG1, and in the same manner, in the present specification, for example, {AA} represents an identifier of “AA”.

LAG管理テーブル17は、図3(c)に示すように、LAGIDと、当該LAGIDを設定する最大ポート数と、当該LAGIDの設定候補のポートを表すポートIDと、各ポートID毎の各種情報とを保持する。当該各種情報の中には、優先度と、復旧フラグ(詳細は後述)の使用有無を定める設定ビットと、復旧のOK/NGを定める復旧フラグと、リンク状態および制御フレーム(CF)の受信有無からなる障害状態とが含まれる。   As shown in FIG. 3C, the LAG management table 17 includes a LAGID, a maximum number of ports for setting the LAGID, a port ID representing a port that is a candidate for setting the LAGID, and various information for each port ID. Hold. The various information includes a priority, a setting bit for determining whether or not to use a recovery flag (details will be described later), a recovery flag for determining recovery OK / NG, and whether or not a link status and control frame (CF) are received. And a failure state consisting of

図3(c)の例では、LAG1は、最大ポート数が2であり、ポートP1,P2,P3がLAG1の設定候補のポートとなっている。また、各ポートP1,P2,P3は、ポートP1,P2,P3の順に優性度が高く設定され、共に復旧フラグが使用有りに設定され、共に障害無しの状態となっている。障害無しの状態とは、障害監視部21でリンクアップが検出され、かつ制御フレーム処理部23で同期ビット31および集約化ビット30の両方が‘1’である制御フレームが所定の期間内に受信されている状態である。なお、ここでは、中継装置10に1個のLAGを設定する場合を例としているが、勿論、複数個のLAGを設定することも可能である。   In the example of FIG. 3C, the maximum number of ports of LAG1 is 2, and ports P1, P2, and P3 are LAG1 setting candidate ports. The ports P1, P2, and P3 are set to have higher dominance in the order of the ports P1, P2, and P3, and the recovery flags are both set to use, and both are in a state of no failure. The failure-free state means that a link up is detected by the failure monitoring unit 21 and a control frame in which both the synchronization bit 31 and the aggregation bit 30 are “1” is received within a predetermined period by the control frame processing unit 23. It is a state that has been. Here, a case where one LAG is set in the relay apparatus 10 is taken as an example, but it is of course possible to set a plurality of LAGs.

LAG管理テーブル17の内、LAGID、最大ポート数、ポートID、優先度、および設定ビット(復旧フラグの使用有無)は、ユーザによって予め設定される。特に限定はされないが、例えば、ユーザは管理用端末等を用いて中継装置10の装置管理部18と通信を行いながら各種設定を行い、装置管理部18は、LAG制御部11を介してLAG管理テーブル17に当該設定情報を格納する。装置管理部18は、このような装置外部との間の通信を含めて、中継装置10全体の設定や状態等を管理する。   In the LAG management table 17, the LAGID, the maximum number of ports, the port ID, the priority, and the setting bit (whether or not the recovery flag is used) are set in advance by the user. Although not particularly limited, for example, the user performs various settings while communicating with the device management unit 18 of the relay device 10 using a management terminal or the like, and the device management unit 18 performs LAG management via the LAG control unit 11. The setting information is stored in the table 17. The device management unit 18 manages settings, states, and the like of the entire relay device 10 including such communication with the outside of the device.

LAG中継テーブル16は、図3(b)に示すように、LAGIDと、当該LAGIDの設定候補のポートを表すポートIDと、各ポートIDの中のどれが有効/無効かを表す有効/無効ビットとを保持する。LAG制御部11は、LAG管理テーブル17に基づきLAG中継テーブル16のLAGIDおよびポートIDを定める。さらに、LAG制御部11は、LAG管理テーブル17を参照しながら、LAGIDの設定候補のポートの中から所定のプロトコル(例えばLACP)に基づき所定のポートを選択し、LAG中継テーブル16において、当該選択したポートを有効に定める。図3(b)の例では、ポートP1,P2が有効に設定され、その結果、LAG1は、ポートP1,P2に設定される。   As shown in FIG. 3 (b), the LAG relay table 16 includes a LAGID, a port ID representing a setting candidate port of the LAGID, and a valid / invalid bit representing which of the port IDs is valid / invalid. And hold. The LAG control unit 11 determines the LAGID and port ID of the LAG relay table 16 based on the LAG management table 17. Further, the LAG control unit 11 selects a predetermined port based on a predetermined protocol (for example, LACP) from the LAGID setting candidate ports while referring to the LAG management table 17, and the LAG relay table 16 selects the selected port. Set the valid ports. In the example of FIG. 3B, the ports P1 and P2 are set to be valid, and as a result, LAG1 is set to the ports P1 and P2.

図2において、中継処理部12は、LAG分散部22を備え、フレームを受信した場合にFDBの学習および検索を行う。例えば、送信元MACアドレス「MA3」および宛先MACアドレス「MA1」を含むフレームをポートPnで受信した場合を想定する。この場合、中継処理部12は、例えば、送信元MACアドレス「MA3」(およびそのVID)を、当該フレームに付加されている受信ポート識別子{Pn}に対応付けてFDBに学習する。また、中継処理部12は、宛先MACアドレス「MA1」(およびそのVID)を検索キーとしてFDBを検索し、当該フレームの宛先となるポートの識別子(宛先ポート識別子と呼ぶ){LAG1}を取得する。   In FIG. 2, the relay processing unit 12 includes a LAG distribution unit 22 and performs FDB learning and search when a frame is received. For example, it is assumed that a frame including the source MAC address “MA3” and the destination MAC address “MA1” is received at the port Pn. In this case, for example, the relay processing unit 12 learns the transmission source MAC address “MA3” (and its VID) in the FDB in association with the reception port identifier {Pn} added to the frame. Also, the relay processing unit 12 searches the FDB using the destination MAC address “MA1” (and its VID) as a search key, and acquires the identifier of the port that is the destination of the frame (referred to as the destination port identifier) {LAG1}. .

LAG分散部22は、宛先ポート識別子がLAGID(ここでは{LAG1})であった場合、LAG中継テーブル16を参照し、LAG1が設定されているポート(ここではP1,P2)の中のいずれかのポートを選択する。この際に、LAG分散部22は、特に限定はされないが、送信元MACアドレスおよび宛先MACアドレスを用いたハッシュ演算を行うことで、いずれかのポートを選択する。   When the destination port identifier is LAGID (in this case, {LAG1}), the LAG distribution unit 22 refers to the LAG relay table 16 and selects one of the ports (in this case, P1 and P2) in which LAG1 is set. Select the port. At this time, although not particularly limited, the LAG distribution unit 22 selects one of the ports by performing a hash operation using the transmission source MAC address and the destination MAC address.

LAG分散部22は、この選択したポートのポート識別子(例えば{P1})を宛先ポート識別子に定め、当該宛先ポート識別子を付加したフレームをインタフェース部15へ送信する。インタフェース部15は、当該宛先ポート識別子が表すポート(P1)にフレームを中継する。なお、中継処理部12は、例えば、LAG1が設定されたポート(例えばP2)でフレームを受信した場合には、LAG中継テーブル16に基づき、そのLAGIDを取得し、当該フレームの送信元MACアドレスを当該LAGIDに対応付けてFDBに学習する。   The LAG distribution unit 22 determines the port identifier (for example, {P1}) of the selected port as the destination port identifier, and transmits the frame with the destination port identifier added thereto to the interface unit 15. The interface unit 15 relays the frame to the port (P1) indicated by the destination port identifier. For example, when receiving a frame at a port (for example, P2) where LAG1 is set, the relay processing unit 12 acquires the LAGID based on the LAG relay table 16, and sets the transmission source MAC address of the frame. The FDB learns in association with the LAGID.

ここで、必ずしも限定はされないが、図2におけるインタフェース部15および中継処理部12は、ASIC(Application Specific Integrated Circuit)またはFPGA(Field Programmable Gate Array)等を単数または複数用いることで構成される。FDBは、CAM(Content Addressable Memory)等によって構成される。LAG制御部11および装置管理部18は、CPU(Central Processing Unit)を用いたプログラム処理等によって構成される。LAG中継テーブル16およびLAG管理テーブル17は、RAM(Random Access Memory)等で構成される。なお、LAG中継テーブル16は、中継処理部12と同一チップ内のRAM等で構成されてもよい。   Here, although not necessarily limited, the interface unit 15 and the relay processing unit 12 in FIG. 2 are configured by using one or a plurality of ASIC (Application Specific Integrated Circuit) or FPGA (Field Programmable Gate Array). The FDB is configured by a CAM (Content Addressable Memory) or the like. The LAG control unit 11 and the device management unit 18 are configured by program processing using a CPU (Central Processing Unit). The LAG relay table 16 and the LAG management table 17 are composed of a RAM (Random Access Memory) or the like. The LAG relay table 16 may be composed of a RAM or the like in the same chip as the relay processing unit 12.

《復旧フラグの詳細》
図4(a)は、図3(c)のLAG管理テーブルにおいて、復旧フラグが使用無しに設定された際の復旧フラグの動作例を示す状態遷移図であり、図4(b)は、図3(c)のLAG管理テーブルにおいて、復旧フラグが使用有りに設定された際の復旧フラグの動作例を示す状態遷移図である。図4(a)および図4(b)の状態遷移は、図2のLAG制御部11によって制御される。
<Details of recovery flag>
FIG. 4A is a state transition diagram showing an operation example of the recovery flag when the recovery flag is set to “not used” in the LAG management table of FIG. 3C, and FIG. FIG. 3C is a state transition diagram illustrating an operation example of a recovery flag when the recovery flag is set to use in the LAG management table of 3 (c). The state transitions in FIGS. 4A and 4B are controlled by the LAG control unit 11 in FIG.

図4(a)において、LAG管理テーブル17における復旧フラグは、OK/NGの2つの状態を採る。LAG制御部11は、障害発生の検出に応じて、復旧フラグを現在の状態に関わらずNGに遷移させ、障害復旧の検出に応じて、復旧フラグを現在の状態に関わらずOKに遷移させる。LAGの設定候補のポートにおいて、障害発生は、前述したように障害監視部21によってリングダウンが検出された時か、または制御フレーム処理部23によって制御フレームが正常に受信できなくなった時に検出される。障害復旧は、障害監視部21によってリングアップが検出された時か、または制御フレーム処理部23によって制御フレームが正常に受信できるようになった時に検出される。   In FIG. 4A, the recovery flag in the LAG management table 17 takes two states of OK / NG. The LAG control unit 11 changes the recovery flag to NG regardless of the current state according to the detection of the occurrence of the failure, and changes the recovery flag to OK regardless of the current state according to the detection of the failure recovery. In the LAG setting candidate port, the occurrence of a failure is detected when the ring monitoring is detected by the failure monitoring unit 21 as described above or when the control frame cannot be normally received by the control frame processing unit 23. . Failure recovery is detected when a ringup is detected by the failure monitoring unit 21 or when a control frame can be normally received by the control frame processing unit 23.

一方、図4(b)において、復旧フラグは、OK/NGに加えてWaitの3つの状態を採る。LAG制御部11は、図4(a)の場合と同様に、障害発生の検出に応じて、復旧フラグを現在の状態に関わらずNGに遷移させる。一方、LAG制御部11は、図4(a)の場合と異なり、復旧フラグがNGの状態での障害復旧の検出に応じて、復旧フラグを一旦Waitに遷移させ、その状態でのイベントの発生に応じて復旧フラグをOKに遷移させる。   On the other hand, in FIG. 4B, the recovery flag takes three states of Wait in addition to OK / NG. As in the case of FIG. 4A, the LAG control unit 11 changes the recovery flag to NG regardless of the current state in response to the detection of the failure occurrence. On the other hand, unlike the case of FIG. 4A, the LAG control unit 11 temporarily changes the recovery flag to Wait in response to detection of failure recovery when the recovery flag is NG, and an event is generated in that state. In response to this, the recovery flag is shifted to OK.

《LAG制御部のLAG設定処理》
図5は、図2の中継装置において、LAG制御部がLAG設定を行う際の処理内容の一例を示すフロー図である。図5において、LAG制御部11は、LAG管理テーブル17において、復旧フラグにOK/NGへの変化(すなわち他の状態からOKへの変化または他の状態からNGへの変化)が発生したか否かを監視する(ステップS301)。OK/NGへの変化が発生した場合、LAG制御部11は、LAGの設定候補のポート(例えばポートP1〜P3)であり、復旧フラグがOKのポートの中から、優先度に基づき最大ポート数(例えば2個)のポートを選択する(ステップS302)。
<< LAG control unit LAG setting process >>
FIG. 5 is a flowchart showing an example of processing contents when the LAG control unit performs LAG setting in the relay apparatus of FIG. In FIG. 5, the LAG control unit 11 determines whether or not the recovery flag has changed to OK / NG (that is, change from another state to OK or change from another state to NG) in the LAG management table 17. Is monitored (step S301). When a change to OK / NG occurs, the LAG control unit 11 is a LAG setting candidate port (for example, ports P1 to P3), and the maximum number of ports is selected based on the priority from the ports whose recovery flag is OK. (For example, two ports) are selected (step S302).

次いで、LAG制御部11(具体的には制御フレーム処理部23)は、選択したポートから同期ビット31および集約化ビット30の両方が‘1’である制御フレーム(LACPDU)CFを送信する(ステップS303)。これと並行して、制御フレーム処理部23は、LAGの設定候補のポートであるが、非選択であるポートから同期ビット31および集約化ビット30の少なくとも一方が‘0’である制御フレームCFを送信する(ステップS303)。   Next, the LAG control unit 11 (specifically, the control frame processing unit 23) transmits a control frame (LACPDU) CF in which both the synchronization bit 31 and the aggregation bit 30 are “1” from the selected port (step) S303). In parallel with this, the control frame processing unit 23 selects a control frame CF in which at least one of the synchronization bit 31 and the aggregation bit 30 is “0” from a non-selected port, which is a LAG setting candidate port. Transmit (step S303).

続いて、LAG制御部11は、同期ビット31および集約化ビット30の両方が‘1’である制御フレーム(LACPDU)CFを送信および受信したポートにLAGを設定する(ステップS304)。すなわち、LAG制御部11は、LAG中継テーブル16において、このLAGを設定したポートを有効に定める。   Subsequently, the LAG control unit 11 sets LAG to the port that has transmitted and received the control frame (LACPDU) CF in which both the synchronization bit 31 and the aggregation bit 30 are “1” (step S304). That is, the LAG control unit 11 effectively determines the port in which this LAG is set in the LAG relay table 16.

その後、LAG制御部11(具体的には制御フレーム処理部23)は、LAG中継テーブル16に基づき、有効のポートから同期ビット31および集約化ビット30の両方が‘1’である制御フレーム(LACPDU)CFを送信する(ステップS305)。これと並行して、制御フレーム処理部23は、LAG中継テーブル16に基づき、無効のポート(すなわち、LAGの設定対象のポートであるがLAGが非設定であるポート)から同期ビット31および集約化ビット30の少なくとも一方が‘0’である制御フレームCFを送信する(ステップS305)。なお、ステップS301において、LAG制御部11は、復旧フラグの変化が無い場合も、当該ステップS305の処理を実行する。   Thereafter, the LAG control unit 11 (specifically, the control frame processing unit 23), based on the LAG relay table 16, controls frames (LACPDU) in which both the synchronization bit 31 and the aggregation bit 30 are “1” from the valid port. ) CF is transmitted (step S305). In parallel with this, the control frame processing unit 23, based on the LAG relay table 16, starts synchronization bits 31 and aggregation from an invalid port (that is, a port for which LAG is set but LAG is not set). A control frame CF in which at least one of the bits 30 is “0” is transmitted (step S305). In step S301, the LAG control unit 11 executes the processing in step S305 even when there is no change in the recovery flag.

図6は、図2〜図5のLAG制御部において、障害発生時の具体的な動作例を示す説明図である。図7は、図2〜図5のLAG制御部において、障害復旧時の具体的な動作例を示す説明図であり、図8は、図7に続く動作例を示す説明図である。ここでは、復旧フラグが使用有りに設定されている場合を例とする。   FIG. 6 is an explanatory diagram illustrating a specific operation example when a failure occurs in the LAG control unit of FIGS. FIG. 7 is an explanatory diagram illustrating a specific operation example at the time of failure recovery in the LAG control unit illustrated in FIGS. 2 to 5, and FIG. 8 is an explanatory diagram illustrating an operation example subsequent to FIG. 7. Here, a case where the recovery flag is set to use is taken as an example.

図6では、中継装置10aのポートP1のリンクに障害が発生している。中継装置10aのLAG制御部11は、障害検出部となる障害監視部21および/または制御フレーム処理部23によって当該障害を検出する(ステップS101)。ここでは、障害監視部21と制御フレーム処理部23の両方が障害を検出したものとする。これに応じて、当該LAG制御部11は、LAG管理テーブル17において、ポートP1のリンク状態をリンクダウンとし、制御フレームCFの受信有無を受信無しとし、当該障害発生の検出を受けて、図4(b)に示したように、復旧フラグをNGに遷移させる(ステップS101a)。   In FIG. 6, a failure has occurred in the link of the port P1 of the relay apparatus 10a. The LAG control unit 11 of the relay device 10a detects the failure by the failure monitoring unit 21 and / or the control frame processing unit 23 serving as a failure detection unit (step S101). Here, it is assumed that both the failure monitoring unit 21 and the control frame processing unit 23 have detected a failure. In response to this, the LAG control unit 11 sets the link state of the port P1 to link down, sets whether the control frame CF is received or not in the LAG management table 17, receives the detection of the failure, and receives the detection of the failure. As shown in (b), the recovery flag is changed to NG (step S101a).

次いで、当該LAG制御部11は、復旧フラグがNGに遷移したため、図5のステップS302に基づき、復旧フラグがOKのポートの中から優先度に基づき最大ポート数(ここでは2)のポート(ここではポートP2,P3)を選択する。以降、当該LAG制御部11は、図5のステップS303,S304の処理を経て、ポートP2,P3にLAG1を設定する。すなわち、当該LAG制御部11は、LAG中継テーブル16において、ポートP1を無効とし、ポートP2,P3を有効とする(ステップS102)。   Next, since the recovery flag has transitioned to NG, the LAG control unit 11 determines the maximum number of ports (here, 2) based on the priority among the ports whose recovery flag is OK based on step S302 in FIG. Then, the ports P2 and P3) are selected. Thereafter, the LAG control unit 11 sets LAG1 to the ports P2 and P3 through the processing of steps S303 and S304 in FIG. That is, the LAG control unit 11 invalidates the port P1 and validates the ports P2 and P3 in the LAG relay table 16 (step S102).

図7では、中継装置10aのポートP1のリンクの障害が復旧している。中継装置10aのLAG制御部11は、障害監視部21および/または制御フレーム処理部23によって当該障害復旧を検出する(ステップS201)。ここでは、障害監視部21が障害復旧を検出したものとする。これに応じて、当該LAG制御部11は、LAG管理テーブル17において、ポートP1のリンク状態をリンクアップとし、当該障害復旧の検出を受けて、図4(b)に示したように、復旧フラグをWaitに遷移させる(ステップS201a)。   In FIG. 7, the failure of the link of the port P1 of the relay device 10a has been recovered. The LAG control unit 11 of the relay apparatus 10a detects the failure recovery by the failure monitoring unit 21 and / or the control frame processing unit 23 (step S201). Here, it is assumed that the failure monitoring unit 21 detects failure recovery. In response to this, the LAG control unit 11 sets the link state of the port P1 to link up in the LAG management table 17, receives the detection of the failure recovery, and as shown in FIG. Is shifted to Wait (step S201a).

図8では、復旧フラグがWaitの状態で、ユーザ指示に基づくイベントが発生している(ステップS201b)。当該イベントは、前述したように、ユーザによるコマンド入力、または、タイマの出力等である。前者の場合、前提として、例えば図2の装置管理部18は、当該LAG制御部11が障害発生を検出した場合や障害復旧を検出した場合に、ユーザ(ユーザの端末等)へ通知を行う。ユーザは、障害復旧の検出通知を受けた場合、例えば、その直後に障害発生の検出通知を受けない(すなわち不安定な障害でない)ことを確認し、それが確認できた段階で、装置管理部18へコマンド入力を行う。装置管理部18は、当該コマンド入力が行われたことを当該LAG制御部11へ通知する。   In FIG. 8, an event based on a user instruction has occurred with the recovery flag set to Wait (step S201b). As described above, the event is a command input by a user, a timer output, or the like. In the former case, as a premise, for example, the device management unit 18 in FIG. 2 notifies the user (user terminal or the like) when the LAG control unit 11 detects occurrence of a failure or detects failure recovery. When the user receives a failure recovery detection notification, for example, immediately after that, the user confirms that the failure occurrence detection notification is not received (that is, is not an unstable failure). A command is input to 18. The device management unit 18 notifies the LAG control unit 11 that the command input has been performed.

一方、後者の場合、前提として、例えば当該LAG制御部11は、タイマを備える。当該タイマは、復旧フラグのWaitへの遷移をトリガとして、予め装置管理部18を介してユーザによって指示された時間を計測したのち所定の信号を出力する。当該LAG制御部11は、前述したように装置管理部18からのコマンド入力の通知を受けた場合や、あるいは、タイマ出力を受けた場合に、LAG管理テーブル17における復旧フラグをOKに遷移させる(ステップS202a)。   On the other hand, in the latter case, as a premise, for example, the LAG control unit 11 includes a timer. The timer outputs a predetermined signal after measuring the time instructed by the user via the device management unit 18 in advance using the transition of the recovery flag to Wait as a trigger. The LAG control unit 11 transitions the recovery flag in the LAG management table 17 to OK when receiving a command input notification from the device management unit 18 as described above or when receiving a timer output ( Step S202a).

次いで、当該LAG制御部11は、復旧フラグがOKに遷移したため、図5のステップS302に基づき、復旧フラグがOKのポートの中から優先度に基づき最大ポート数(ここでは2)のポート(ここではポートP1,P2)を選択する。以降、当該LAG制御部11は、図5のステップS303によって当該ポートP1,P2にLAG1を設定するための処理を開始する。その過程で、LAG管理テーブル17における制御フレームCFの受信有無は、受信有りとなる(ステップS202b)。そして、当該LAG制御部11は、図5のステップS304の処理を経て、ポートP1,P2にLAG1を設定する。すなわち、当該LAG制御部11は、LAG中継テーブル16において、ポートP3を無効とし、ポートP1,P2を有効とする(ステップS203)。   Next, since the recovery flag has transitioned to OK, the LAG control unit 11 determines the maximum number of ports (here, 2) based on the priority from the ports whose recovery flag is OK based on step S302 in FIG. Then, the ports P1 and P2) are selected. Thereafter, the LAG control unit 11 starts processing for setting LAG1 to the ports P1 and P2 in step S303 of FIG. In the process, whether or not the control frame CF is received in the LAG management table 17 is received (step S202b). And the said LAG control part 11 sets LAG1 to port P1, P2 through the process of step S304 of FIG. That is, the LAG control unit 11 invalidates the port P3 and validates the ports P1 and P2 in the LAG relay table 16 (step S203).

以上のように、LAG制御部11は、所定のポートにおいて、少なくとも復旧フラグがOKとなるまでは当該ポートにLAGを設定しない(ステップS302)。復旧フラグは、図4(b)に示したように、障害復旧の検出かつイベントの発生に応じてOKとなる。このような復旧フラグを設けることで、図1(a)および図1(b)に示したような動作を容易に実現可能になる。   As described above, the LAG control unit 11 does not set a LAG for a predetermined port until at least the recovery flag is OK (step S302). As shown in FIG. 4B, the recovery flag is OK according to the detection of failure recovery and the occurrence of an event. By providing such a recovery flag, the operations as shown in FIGS. 1A and 1B can be easily realized.

また、ここでは、図3(c)に示したように、復旧フラグの使用有無を定める設定ビットが設けられる。例えば、復旧フラグが使用無しに設定された場合、障害復旧時には図10(a)および図10(b)の場合と同様の動作が行われる。すなわち、LAG制御部11は、障害復旧を検出した場合、図4(a)に基づき障害復旧フラグをOKに遷移させ、これに応じて、図5に基づき所定のポート(例えばP1,P2)にLAG1を設定するための処理を即座に開始する(図5のステップS302)。   Here, as shown in FIG. 3C, a setting bit for determining whether or not the recovery flag is used is provided. For example, when the recovery flag is set to “not used”, the same operation as in FIGS. 10A and 10B is performed at the time of failure recovery. That is, when detecting the failure recovery, the LAG control unit 11 shifts the failure recovery flag to OK based on FIG. 4A, and in response to this, the predetermined port (for example, P1, P2) is changed based on FIG. The process for setting LAG1 is immediately started (step S302 in FIG. 5).

ユーザは、例えば、フレームの損失をある程度許容できるような場合等で、LAGまたはポートによっては、図1(a)および図1(b)に示したようような復旧方式ではなく、障害復旧を検出して即座に復旧を行う図10(a)および図10(b)に示したような復旧方式を適用したい場合がある。また、例えば、図9(a)等において、予備リンクとなるポートP3に関しては、特に図1(a)および図1(b)に示したようような復旧方式が必要とされない場合がある。そこで、復旧フラグの使用有無を定める設定ビットが設けることが有益となる。なお、当該設定ビットは、図3(c)等の例では、ポート単位で設けたが、LAG単位で設けることも可能である。   For example, when the user can tolerate frame loss to some extent, the LAG or port detects failure recovery instead of the recovery method as shown in FIG. 1 (a) and FIG. 1 (b). Then, there are cases where it is desired to apply a recovery method as shown in FIGS. Further, for example, in FIG. 9A and the like, there is a case where a recovery method as shown in FIG. 1A and FIG. Therefore, it is useful to provide a setting bit that determines whether or not the recovery flag is used. The setting bits are provided in units of ports in the example of FIG. 3C or the like, but can be provided in units of LAGs.

また、本実施の形態では、図5の処理を復旧フラグの使用有無に関わらず共通で用いるため、図4(a)に示したように、復旧フラグが使用無しの場合でも、本来の機能(すなわち図4(b))とは異なる機能で便宜的に復旧フラグを用いている。ただし、復旧フラグが使用無しの場合、単に、LAG制御部11に一般的な動作を行わせればよいため、復旧フラグを全く使用しないようにLAG制御部11を構成することも可能である。   Further, in the present embodiment, since the process of FIG. 5 is commonly used regardless of whether or not the recovery flag is used, as shown in FIG. 4A, even when the recovery flag is not used, the original function ( In other words, the restoration flag is used for the sake of convenience with a function different from that shown in FIG. However, when the recovery flag is not used, the LAG control unit 11 may be configured not to use the recovery flag at all because the LAG control unit 11 may simply perform a general operation.

以上、本発明者によってなされた発明を実施の形態に基づき具体的に説明したが、本発明は前記実施の形態に限定されるものではなく、その要旨を逸脱しない範囲で種々変更可能である。例えば、前述した実施の形態は、本発明を分かり易く説明するために詳細に説明したものであり、必ずしも説明した全ての構成を備えるものに限定されるものではない。また、ある実施の形態の構成の一部を他の実施の形態の構成に置き換えることが可能であり、また、ある実施の形態の構成に他の実施の形態の構成を加えることも可能である。また、各実施の形態の構成の一部について、他の構成の追加・削除・置換をすることが可能である。   As mentioned above, although the invention made by the present inventor has been specifically described based on the embodiments, the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the scope of the invention. For example, the above-described embodiments have been described in detail for easy understanding of the present invention, and are not necessarily limited to those having all the configurations described. Further, a part of the configuration of one embodiment can be replaced with the configuration of another embodiment, and the configuration of another embodiment can be added to the configuration of one embodiment. . Further, it is possible to add, delete, and replace other configurations for a part of the configuration of each embodiment.

例えば、LAG用のプロトコルとしてLACPを用いる場合を例としたが、必ずしもLACPに限定されるものではなく、その他のプロトコルに対しても同様に適用することが可能である。また、ここでは、予備リンクを設ける構成例および動作例を示したが、予備リンクを設けない構成であっても同様に適用可能である。すなわち、例えば、図9(b)において、ポートP3が設けられない場合、ポートP2での縮退運転が行われ、ポートP1の障害が復旧した際にポートP1にLAGが再度設定されるが、この際に、本実施の形態の方式を適用することができる。   For example, although the case where LACP is used as a protocol for LAG has been described as an example, the present invention is not necessarily limited to LACP, and can be similarly applied to other protocols. In addition, here, a configuration example and an operation example in which a spare link is provided are shown, but the present invention can be similarly applied to a configuration in which a spare link is not provided. That is, for example, in FIG. 9B, when the port P3 is not provided, the degenerate operation at the port P2 is performed, and when the failure of the port P1 is recovered, the LAG is set to the port P1 again. In this case, the method of this embodiment can be applied.

10,10a,10b 中継装置
11,11’ LAG制御部
12 中継処理部
15 インタフェース部
16 LAG中継テーブル
17 LAG管理テーブル
18 装置管理部
19 フレーム識別部
20 受信ポート識別子付加部
21 障害監視部
22 LAG分散部
23 制御フレーム処理部
25 ヘッダ情報
26 アクター情報
27 パートナー情報
28,29 ステート
30 集約化ビット
31 同期ビット
CF,CF1ab〜CF3ab,CF1ba〜CF3ba 制御フレーム
P1〜Pn ポート
UF ユーザフレーム
10, 10a, 10b Relay device 11, 11 ′ LAG control unit 12 Relay processing unit 15 Interface unit 16 LAG relay table 17 LAG management table 18 Device management unit 19 Frame identification unit 20 Receive port identifier addition unit 21 Fault monitoring unit 22 LAG distribution Unit 23 Control frame processing unit 25 Header information 26 Actor information 27 Partner information 28, 29 State 30 Aggregation bit 31 Synchronization bit CF, CF1ab to CF3ab, CF1ba to CF3ba Control frame P1 to Pn Port UF User frame

Claims (4)

複数のポートと、
前記複数のポートのそれぞれに対する障害発生および障害復旧を検出する障害検出部と、
LACP(Link Aggregation Control Protocol)に基づき前記複数のポートの中の所定のポートにLAG(Link Aggregation Group)を設定するLAG制御部と、
を有する中継装置であって、
前記LAG制御部は、復旧のOK/NGを定める復旧フラグを有し、前記障害発生の検出に応じてLAGから除外したポートに対して前記障害復旧が検出された場合、前記復旧フラグがOKとなるまで当該ポートにLAGを設定せず、
前記復旧フラグは、前記障害発生の検出に応じてNGとなり、前記障害復旧の検出かつユーザによるコマンド入力の発生に応じてOKとなり、
前記LAG制御部は、
前記障害復旧が検出されてから前記コマンド入力が発生するまでの期間で、前記LAGから除外したポートから、ステートの同期ビットまたは集約化ビットの少なくとも一方が‘0’であるLACPDU(LACP Data Unit)を送信し、
前記コマンド入力が発生したのちに、前記同期ビットおよび前記集約化ビットの両方が‘1’であるLACPDUを送信する、
中継装置。
Multiple ports,
A failure detection unit for detecting a failure occurrence and a failure recovery for each of the plurality of ports;
A LAG controller configured to set a LAG (Link Aggregation Group) to a predetermined port among the plurality of ports based on LACP (Link Aggregation Control Protocol) ;
A relay device having
The LAG control unit has a recovery flag that determines OK / NG for recovery, and when the failure recovery is detected for a port excluded from LAG in response to the detection of the failure occurrence, the recovery flag is OK. without setting the LAG to the port until,
The recovery flag becomes NG in response to the detection of the failure occurrence, and becomes OK in response to the detection of the failure recovery and the occurrence of a command input by the user,
The LAG control unit
A LACPDU (LACP Data Unit) in which at least one of a synchronization bit or an aggregation bit of a state is “0” from a port excluded from the LAG in a period from detection of the failure recovery to generation of the command. Send
After the command input occurs, send a LACPDU in which both the synchronization bit and the aggregation bit are '1'.
Relay device.
請求項記載の中継装置において、
前記LAG制御部は、さらに、ユーザに前記復旧フラグの使用有無を設定させる設定ビットを有し、前記復旧フラグが使用無しに設定された場合で前記LAGから除外したポートに対して前記障害復旧が検出された場合、当該ポートにLAGを設定するための処理を即座に開始する、
中継装置。
The relay device according to claim 1 ,
The LAG control unit further includes a setting bit that allows a user to set whether or not the recovery flag is used. When the recovery flag is set to no use, the failure recovery can be performed for a port excluded from the LAG. If detected, immediately start processing to set LAG for the port,
Relay device.
互いに複数の通信回線を介して接続される2台の中継装置を有する中継システムであって、
前記2台の中継装置の一方は、
前記複数の通信回線にそれぞれ接続される複数のポートと、
前記複数のポートのそれぞれに対する障害発生および障害復旧を検出する障害検出部と、
LACP(Link Aggregation Control Protocol)に基づき前記複数のポートの中の所定のポートにLAG(Link Aggregation Group)を設定するLAG制御部と、
を有し、
前記LAG制御部は、復旧のOK/NGを定める復旧フラグを有し、前記障害発生の検出に応じてLAGから除外したポートに対して前記障害復旧が検出された場合、前記復旧フラグがOKとなるまで当該ポートにLAGを設定せず、
前記復旧フラグは、前記障害発生の検出に応じてNGとなり、前記障害復旧の検出かつユーザによるコマンド入力の発生に応じてOKとなり、
前記LAG制御部は、
前記障害復旧が検出されてから前記コマンド入力が発生するまでの期間で、前記LAGから除外したポートから、ステートの同期ビットまたは集約化ビットの少なくとも一方が‘0’であるLACPDU(LACP Data Unit)を送信し、
前記コマンド入力が発生したのちに、前記同期ビットおよび前記集約化ビットの両方が‘1’であるLACPDUを送信する、
中継システム。
A relay system having two relay devices connected to each other via a plurality of communication lines,
One of the two relay devices is
A plurality of ports respectively connected to the plurality of communication lines;
A failure detection unit for detecting a failure occurrence and a failure recovery for each of the plurality of ports;
A LAG controller configured to set a LAG (Link Aggregation Group) to a predetermined port among the plurality of ports based on LACP (Link Aggregation Control Protocol) ;
Have
The LAG control unit has a recovery flag that determines OK / NG for recovery, and when the failure recovery is detected for a port excluded from LAG in response to the detection of the failure occurrence, the recovery flag is OK. without setting the LAG to the port until,
The recovery flag becomes NG in response to the detection of the failure occurrence, and becomes OK in response to the detection of the failure recovery and the occurrence of a command input by the user,
The LAG control unit
A LACPDU (LACP Data Unit) in which at least one of a synchronization bit or an aggregation bit of a state is “0” from a port excluded from the LAG in a period from detection of the failure recovery to generation of the command. Send
After the command input occurs, send a LACPDU in which both the synchronization bit and the aggregation bit are '1'.
Relay system.
請求項記載の中継システムにおいて、
前記LAG制御部は、さらに、ユーザに前記復旧フラグの使用有無を設定させる設定ビットを有し、前記復旧フラグが使用無しに設定された場合で前記LAGから除外したポートに対して前記障害復旧が検出された場合、当該ポートにLAGを設定するための処理を即座に開始する、
中継システム。
The relay system according to claim 3 ,
The LAG control unit further includes a setting bit that allows a user to set whether or not the recovery flag is used. When the recovery flag is set to no use, the failure recovery can be performed for a port excluded from the LAG. If detected, immediately start processing to set LAG for the port,
Relay system.
JP2015159152A 2015-08-11 2015-08-11 Relay device and relay system Active JP6591828B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015159152A JP6591828B2 (en) 2015-08-11 2015-08-11 Relay device and relay system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015159152A JP6591828B2 (en) 2015-08-11 2015-08-11 Relay device and relay system

Publications (2)

Publication Number Publication Date
JP2017038282A JP2017038282A (en) 2017-02-16
JP6591828B2 true JP6591828B2 (en) 2019-10-16

Family

ID=58048009

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015159152A Active JP6591828B2 (en) 2015-08-11 2015-08-11 Relay device and relay system

Country Status (1)

Country Link
JP (1) JP6591828B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7342611B2 (en) * 2019-10-25 2023-09-12 住友電気工業株式会社 Communication device, control method for communication device, and communication system

Also Published As

Publication number Publication date
JP2017038282A (en) 2017-02-16

Similar Documents

Publication Publication Date Title
US9608903B2 (en) Systems and methods for recovery from network changes
CA2861984C (en) Technique for handling a status change in an interconnect node
US9071513B2 (en) Path switch-back method and apparatus in transport network
US20150288559A1 (en) Relay System and Switching Device
JP6278818B2 (en) Relay system and switch device
US10862735B2 (en) Method and apparatus for implementing operation, administration, and maintenance function
US20140071810A1 (en) Communication system and processing method therefor
JP6308534B2 (en) Network protection method, network protection device, off-ring node, and system
JP2009303092A (en) Network equipment and line switching method
JP5678678B2 (en) Provider network and provider edge device
CN111585797A (en) Ethernet link switching method, device, equipment and computer readable storage medium
CN103220189A (en) Multi-active detection (MAD) backup method and equipment
US9692636B2 (en) Relay system and relay device
WO2017036165A1 (en) Link fault detection method and apparatus
JP6341764B2 (en) Relay device
JP6591828B2 (en) Relay device and relay system
US20170070410A1 (en) System and method for providing redundant ethernet network connections
WO2016138705A1 (en) Method and device for managing link in load sharing
US9634937B2 (en) Relay system and relay device
JP6359914B2 (en) Relay system and relay device
US20110235506A1 (en) Network-connection redundant system for devices with cascade networking capability and method applied on the system
WO2016061943A1 (en) Method and apparatus for implementing spanning tree protocol protection switching, and computer storage medium
JP2016092780A (en) Relay system and switch device
JP5579637B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND CONNECTION STATE DETECTION METHOD
CN117319128A (en) Method for recovering single ring network topology and network exchanger system

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20170512

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180530

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190529

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190611

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190729

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190919

R150 Certificate of patent or registration of utility model

Ref document number: 6591828

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