WO2008028392A1 - A loop avoidance method after the recovery from the rpr faults - Google Patents

A loop avoidance method after the recovery from the rpr faults Download PDF

Info

Publication number
WO2008028392A1
WO2008028392A1 PCT/CN2007/002082 CN2007002082W WO2008028392A1 WO 2008028392 A1 WO2008028392 A1 WO 2008028392A1 CN 2007002082 W CN2007002082 W CN 2007002082W WO 2008028392 A1 WO2008028392 A1 WO 2008028392A1
Authority
WO
WIPO (PCT)
Prior art keywords
ring
bridge
packet data
fault
cross
Prior art date
Application number
PCT/CN2007/002082
Other languages
French (fr)
Chinese (zh)
Inventor
Eloong Zhang
Yanchun Liu
Original Assignee
Huawei Technologies 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2008028392A1 publication Critical patent/WO2008028392A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a loop avoidance method after a fault recovery of an RPR (Resilient Packet Ring) bridge.
  • RPR Resilient Packet Ring
  • RPR technology is a new network architecture and technology designed to meet the requirements of packet metropolitan area networks. It is a ring network composed of packet switching nodes. Adjacent nodes are connected by a pair of optical fibers. The network topology is based on Two rings transmitted in opposite directions. RPR has the following technical features: 1. Effective reuse of transmission bandwidth; 2. Fast loop bridge protection switching function; 3. Automatic discovery of topology.
  • a ring network composed of RPR technology is called an RPR ring network and can be simply referred to as an RPR ring.
  • a packet switching device on a ring network is called an RPR device.
  • the RPR device uses the 48-bit MAC address used in the Ethernet as the address identifier to uniquely identify the RPR device and carries Layer 2 Ethernet packets through the Ethernet Over RPR, the RPR ring can also be called the RPR bridge ring. Or bridge mode RPR ring.
  • the device on the RPR bridge ring can also be called an RPR bridge device.
  • the MAC address on the RPR bridge device can also be called the RPR MAC address. As shown in Figure 1, the structure of the two RPR bridge rings intersects the two RPR bridge devices.
  • RPR bridge rings there are two RPR bridge rings, which are RPR bridge ring 1 and RPR bridge ring 2, respectively.
  • the cross-ring bridge device is an RPR bridge device that is connected to two RPR bridge rings at the same time and is responsible for forwarding data packets between two RPR bridge rings.
  • the RPR cross-ring bridge device is simply referred to as a cross-loop bridge device in the following description.
  • the RPR bridge ring On the RPR bridge ring, the RPR bridge ring carries Layer 2 Ethernet packets, and the packets between the RPR bridges are forwarded through the Address Resolution Protocol (MAC). Therefore, The RPR cross-loop bridge device where the two RPR bridge rings intersect generates a loop, that is, a loop occurs between the RPR cross-bridge device 1 and the RPR cross-bridge device 2 as shown in FIG. 1, and a broadcast storm occurs.
  • MAC Address Resolution Protocol
  • the current method is through the Spanning Tree Protocol (STP), or Rapid Spanning Tree Protocol (RSTP) protocol performs link reduction, generates a minimum spanning tree without loops, and then forwards packets on Layer 2 Ethernet according to the minimum spanning tree to prevent Layer 2 network communication from forming. Loop.
  • STP Spanning Tree Protocol
  • RSTP Rapid Spanning Tree Protocol
  • STP or RSTP re-calculates the minimum spanning tree and obtains a new forwarding tree to ensure that the fault can occur after the fault occurs.
  • this method can solve the problems that may occur between the cross-ring bridge devices, this method is slow because the STP and RSTP convergence speed is slow. Even if the RSTP can only reach the convergence speed level of the second-level, the network communication time is prolonged. Increase the load of network communication.
  • a RPR bridge redundancy protection method is also available. The method is to enter a new protocol type. With the interaction of the protocol and the triggering of the single-loop RPR protection switching, the protection switching capability of 100 ms can be achieved.
  • an object of embodiments of the present invention is to provide an RPR bridge.
  • the loop avoidance method after the fault recovery the method solves the broadcast loop problem that may occur when one fault point recovers after two fault points occur on one RPR bridge loop in the application scenario of the RPR intersecting loop.
  • an embodiment of the present invention provides a loop avoiding method after RPR bridge fault recovery, and the method includes the following steps:
  • Each RPR cross-ring bridge device in the RPR bridge ring receives the notification message sent by the fault recovery node, detects the working status of the respective RPR cross-ring bridge device, and only maintains one of the primary RPR cross-bridge devices. Main state.
  • the step A further includes:
  • the normal maximum transmission unit value of the failure recovery node is recorded.
  • the method further includes:
  • the network topology convergence is initiated, and after the topology is converged, the maximum transmission unit value of the fault recovery node is restored to the recorded normal maximum transmission unit value.
  • the step A further includes:
  • the operational state of the fault recovery node is set to a normal state.
  • the predetermined value of the maximum transmission unit value is a value that can ensure that the protocol message passes, and the data message cannot pass, and the value is between 30 and 81.
  • the step B further includes:
  • step A it is known that the fault of the fault point in the RPR bridge loop has returned to normal: when the fault point is the RPR bridge device in the RPR bridge ring, the fault point itself is known. Its The fault has returned to normal;
  • the fault recovery node in the RPR bridge ring is an RPR bridge device or an RPR span bridge device.
  • the notification message is a type of message that is extended on the basis of the existing message, or is a newly defined message.
  • step B when a cross-ring bridge device detects that its working state is a standby state, the received notification message is not processed.
  • step B when a cross-ring bridge device detects that its working state is the active state, but does not have other cross-ring bridge devices connected to it in the active state; or when a cross-bridge device If the working status of the working state is detected as the active state, but the priority is higher than the priority of other cross-ring bridge devices connected to the active state, the received notification message will not be processed. .
  • step B when a cross-ring bridge device detects that its working state is in the active state, and the other cross-ring bridge devices connected to the active state have a higher priority cross-ring bridge When the device is in use, the low-priority cross-ring bridge device exits the active state.
  • the fault recovery node sends a notification message to the cross-ring bridge device.
  • the cross-loop bridge device works according to its working status/priority and other cross-ring bridge devices. Status/Priority, for subsequent actions (such as maintaining the active state or exiting the active state). In this way, after the fault at the fault point is restored, only one cross-ring bridge device is in the active state, ensuring correct forwarding of the cross-ring service, and solving the loop problem occurring in the information transmission after the fault point is recovered, and there is no service in the ring. Impact, while having no effect on the convergence of the single-ring protocol.
  • FIG. 1 is a schematic diagram of a topology structure of an RPR bridge ring network in the prior art
  • 2 is a schematic diagram of communication in the case where two faults occur simultaneously on one RPR bridge ring in the RPR bridge ring network in the prior art
  • 3 is a schematic diagram of a broadcast loop generated when one fault occurs simultaneously on one RPR bridge ring in the RPR bridge ring network in the prior art
  • FIG. 4 is a flowchart of a method for avoiding a broadcast loop by a fault recovery node when a non-cross-bridge device fails to recover in the RPR bridge according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for avoiding a broadcast loop of a cross-loop bridge device when a non-cross-bridge device fails to recover in the RPR bridge according to an embodiment of the present invention.
  • the embodiment of the invention provides a loop avoidance method after the RPR bridge is faulty.
  • the method solves the problem that in the application scenario of the RPR intersecting ring, when two fault points occur simultaneously on one RPR bridge ring, at one fault point A broadcast loop problem that may occur when recovering.
  • the loop avoidance method after the fault recovery of the RPR bridge is to control the passage of data packets on the RPR ring through the cooperation of the fault recovery node and the cross-ring bridge device to avoid loop phenomenon on the RPR ring.
  • an RPR bridge ring network in which there are two intersecting RPR bridge rings, and the two RPR bridge rings include RPR bridge device 1, RPR bridge device 2, and RPR bridge device 3.
  • the working modes of the RPR bridge device 1 and the RPR bridge device 2 are in the protection mode, that is, the wrap state, and no packet will pass at the fault point 1, and there will be no The emergence of a broadcast loop.
  • the working status of the RPR cross-bridge device 1 and the RPR2 cross-ring bridge device are both in the master state and the cross-ring in the active state.
  • the bridge device can be responsible for forwarding the cross-ring service, that is, the data service can be forwarded in different RPR bridge rings, so that any node in the two RPR bridge rings can access each other.
  • FIG. 4 is a main flowchart of processing a fault recovery node according to an embodiment of the present invention.
  • the fault recovery node referred to herein refers to a device adjacent to the fault point, and for the fault point 1 , the fault recovery node Refers to RPR bridge device 1 or RPR bridge device 2 adjacent to fault point 1.
  • the recovery point 1 in Figure 3 is taken as an example.
  • the process flow includes the following steps:
  • Step 40 After learning that the fault of the fault point 1 in the RPR bridge ring has returned to normal, triggering a topology convergence process; in the RPR bridge ring, the fault point may be an RPR bridge device or a chain connecting the RPR bridge devices. road.
  • the fault point 1 is a link
  • the fault recovery node RPR bridge device 1 or RPR bridge device 2
  • the point of failure is an RPR bridge device in the RPR bridge ring, in which case the point of failure itself can be informed whether its fault has returned to normal.
  • Step 41 After the topology changes, determine the fault recovery node (RPR bridge device 1 or RPR bridge device 2) or the fault point (when the fault point is a device in the RPR bridge ring) before completing topology convergence. Whether the working status has changed;
  • Step 42 The fault recovery node (the RPR bridge device 1 or the RPR bridge device 2) detects whether its own working state changes from a protected state (wrap state) to a normal state. If the detection result is yes, the fault is recovered. When the node has changed to the normal state, go to step 43. If the detection result is no, that is, the fault recovery node is still in the wrap state, wait for a predetermined time (such as 1 ⁇ 3 seconds). Go to step 41 to continue the test;
  • step 41 if the fault point is an RPR bridge device, it is detected whether the working state of the fault point changes from the protection state to the normal state. Similarly, when the detection result is yes, go to step 43; when the detection result is no Wait for a predetermined time, go to step 41 to continue the test;
  • Step 43 The fault recovery node sends a notification message on the two RPR bridge rings, and notifies the RPR cross-bridge device 1 and the RPR cross-bridge device 2 that the fault at the fault point 1 has returned to normal;
  • the notification message sent by the fault recovery node may be a packet that is extended based on an existing packet, or may be a packet that uses a new packet type;
  • Step 44 Record the current normal value of the Maximum Transmission Unit (MTU) of the fault recovery node; and set the MTU value of the fault recovery node to a predetermined value.
  • the predetermined value is in the range of 30-81 words. The value between the sections;
  • Step 46 After the topology convergence, restore the MTU value of the fault recovery node to the normal value of the MTU recorded in step 44; further, the working state of the fault recovery node may be set to a normal state;
  • Step 47 The program ends.
  • the fault recovery node is RPR cross-loop bridge device 1 or RPR cross-loop bridge device 2, when the fault point 2 is restored, the fault recovery node can easily perceive that the fault point 2 has returned to normal. According to the change of its own working state, to avoid the occurrence of a loop, the process of changing its own state will be described with reference to FIG.
  • a cross-ring bridge device When a cross-ring bridge device receives the notification message indicating that the fault point 1 has been recovered in step 43 of FIG. 4 described above, or when it detects that the fault of the adjacent fault point 2 has been recovered, then the cross-ring The bridge device should perform the corresponding data processing process according to its own working state and priority.
  • the main purpose is to keep only one cross-ring bridge device in all cross-ring bridge devices in the active state and to forward data packets across the ring. Other cross-ring bridge devices exit the active state and become standby.
  • the data packets are forwarded across the ring to avoid the loop in Figure 3.
  • the priority described herein refers to an attribute value set for each cross-bridge device according to a certain rule in advance.
  • the priority setting of the cross-bridge device can be Configure it yourself as needed, for example, the device ID number, IP address, MAC address, custom identifier, or custom serial number of the cross-ring bridge device.
  • Step 51 The cross-ring bridge device (for example, the cross-ring bridge device 1 or the cross-ring bridge device 2) receives the notification message sent from the fault recovery node, or detects that the adjacent fault point has been restored;
  • Step 52 The cross-ring bridge device determines whether its own working state is in the active state at this time. If it is in the standby state, the received notification message is not processed, and the process proceeds to step 56; if it is the primary use State, go to step 53;
  • Step 53 Determine whether the cross-ring bridge device has other cross-ring bridge devices connected to the RPR bridge ring in the active state. If not, the cross-ring bridge device remains in the active state, and receives the notification. " ⁇ " is not processed, and proceeds to step 56; if there are other cross-bridge devices in its active state connected to it, then go to step 54;
  • Step 54 Determine whether the priority of the cross-ring bridge device is lower than the priority of other cross-ring bridge devices connected to the primary state. If the judgment result is no, the cross-ring bridge device remains in the active state. And the received notification message is not processed, and proceeds to step 56, if the determination result is yes, then proceeds to step 55;
  • Step 55 The cross-ring bridge device exits the active state and is no longer responsible for forwarding the cross-ring service.
  • Step 56 The process ends.
  • the embodiment of the present invention sends a notification message to the cross-ring bridge device through the fault recovery node.
  • the cross-ring bridge device 1 and the cross-ring bridge device 2 both according to their own Work status/priority and other working status/priority of the cross-bridge device to perform subsequent actions (such as maintaining the active state or exiting the active state).
  • subsequent actions such as maintaining the active state or exiting the active state.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

A loop avoidance method after the recovery from the RPR faults, comprises: setting the maximum transmission unit value of a fault recovery node as a predetermined value after acquiring the recovery from the fault of a fault node in the RPR, transmitting the notifying message to the cross ring device in the RPR which notifies that the fault node has been recovered; each the cross ring device in the RPR receiving the notifying message transmitted by the fault recovery node device in the RPR, detecting the work state of each the cross ring device in the RPR, and maintaining only one of the cross ring devices in the RPR as the master.

Description

弹性分组数据桥环故障恢复后的环路避免方法  Loop avoidance method after elastic packet data bridge ring failure recovery
技术领域 Technical field
本发明涉及网络通信技术领域,尤其涉及一种 RPR( Resilient Packet Ring, 弹 性分组数据环)桥的故障恢复后的环路避免方法。 背景技术  The present invention relates to the field of network communication technologies, and in particular, to a loop avoidance method after a fault recovery of an RPR (Resilient Packet Ring) bridge. Background technique
RPR技术是为了满足基于分组城域网的要求而设计的新型网络体系结构和 技术; 是一种由分组交换节点组成的环形网络, 相邻的节点通过一对光纤连接; 其网络拓朴是基于两个相反方向传输的环。 RPR具有以下几个方面的技术特点: 1、 传输带宽的有效复用; 2、 快速的环桥保护倒换功能; 3、 拓朴的自动发现。  RPR technology is a new network architecture and technology designed to meet the requirements of packet metropolitan area networks. It is a ring network composed of packet switching nodes. Adjacent nodes are connected by a pair of optical fibers. The network topology is based on Two rings transmitted in opposite directions. RPR has the following technical features: 1. Effective reuse of transmission bandwidth; 2. Fast loop bridge protection switching function; 3. Automatic discovery of topology.
应用 RPR技术组成的环形网络称为 RPR环网络, 可以简称为 RPR环; 环形网 络上的分组交换设备称为 RPR设备。 当 RPR设备采用以太网中用到的 48位 MAC 地址作为地址标识用于唯一标识 RPR设备,并通过 Ethernet Over RPR的方式承载 二层以太网报文时, 则 RPR环还可以称为 RPR桥环或桥模式 RPR环。 RPR桥环 上的设备还可以称为 RPR桥设备, RPR桥设备上的 MAC地址又可以称为 RPR MAC地址。 如图 1所示, 为两个 RPR桥环相交于两个 RPR桥设备的结构示意图。  A ring network composed of RPR technology is called an RPR ring network and can be simply referred to as an RPR ring. A packet switching device on a ring network is called an RPR device. When the RPR device uses the 48-bit MAC address used in the Ethernet as the address identifier to uniquely identify the RPR device and carries Layer 2 Ethernet packets through the Ethernet Over RPR, the RPR ring can also be called the RPR bridge ring. Or bridge mode RPR ring. The device on the RPR bridge ring can also be called an RPR bridge device. The MAC address on the RPR bridge device can also be called the RPR MAC address. As shown in Figure 1, the structure of the two RPR bridge rings intersects the two RPR bridge devices.
在图 1中存在两个 RPR桥环, 分别为 RPR桥环 1和 RPR桥环 2。 在每个 RPR桥 环上分别存在 4个 RPR桥设备, 同时 RPR桥环 1和 RPR桥环 2相交于 RPR跨环桥设 备 1和跨环桥设备 2。 其中, 所述的跨环桥设备为同时跨接于两个 RPR桥环上, 负 责两个 RPR桥环之间数据报文转发的 RPR桥设备。 为了简化描述, 在下面的描述 中将 RPR跨环桥设备简称为跨环桥设备。  In Figure 1, there are two RPR bridge rings, which are RPR bridge ring 1 and RPR bridge ring 2, respectively. There are four RPR bridge devices on each RPR bridge ring, and the RPR bridge ring 1 and the RPR bridge ring 2 intersect at the RPR cross-bridge device 1 and the cross-ring bridge device 2. The cross-ring bridge device is an RPR bridge device that is connected to two RPR bridge rings at the same time and is responsible for forwarding data packets between two RPR bridge rings. To simplify the description, the RPR cross-ring bridge device is simply referred to as a cross-loop bridge device in the following description.
在 RPR桥环上, 由于 RPR桥环上承载的是二层以太网报文, 并且 RPR桥环之 间的报文是通过地址解析协议 MAC ( Media Access Control, 媒体访问控制 )进 行转发, 因此在两个 RPR桥环相交的 RPR跨环桥设备就会产生回路, 也即在如图 1所示的 RPR跨环桥设备 1和 RPR跨环桥设备 2之间产生回路,出现广播风暴现象。  On the RPR bridge ring, the RPR bridge ring carries Layer 2 Ethernet packets, and the packets between the RPR bridges are forwarded through the Address Resolution Protocol (MAC). Therefore, The RPR cross-loop bridge device where the two RPR bridge rings intersect generates a loop, that is, a loop occurs between the RPR cross-bridge device 1 and the RPR cross-bridge device 2 as shown in FIG. 1, and a broadcast storm occurs.
当前已有的方法是通过生成树协议(Spanning Tree Protocol , STP ) 、 或者 快速生成树协议 (Rapid Spanning Tree Protocol , RSTP )协议进行链路裁减, 生成无环路的最小生成树, 然后依据最小生成树来转发在二层以太网上的报文, 以防止二层网络通信形成环路。 当二层网络上出现设备或者链路故障的时候, STP或者 RSTP会重新进行最小生成树计算, 获得一个新的转发树, 从而确保了 故障发生之后能够正常工作。 The current method is through the Spanning Tree Protocol (STP), or Rapid Spanning Tree Protocol (RSTP) protocol performs link reduction, generates a minimum spanning tree without loops, and then forwards packets on Layer 2 Ethernet according to the minimum spanning tree to prevent Layer 2 network communication from forming. Loop. When a device or link fails on the Layer 2 network, STP or RSTP re-calculates the minimum spanning tree and obtains a new forwarding tree to ensure that the fault can occur after the fault occurs.
上述方法虽然可以解决跨环桥设备之间可能出现的问题, 但是这种方法却 因为 STP、 RSTP的收敛速度比较慢 ,即使 RSTP也只能达到秒级的收敛速度水平 , 使得网络通信时间延长, 加重网络通信的负荷。  Although the above method can solve the problems that may occur between the cross-ring bridge devices, this method is slow because the STP and RSTP convergence speed is slow. Even if the RSTP can only reach the convergence speed level of the second-level, the network communication time is prolonged. Increase the load of network communication.
现在也出了一种 RPR桥冗余保护方法,该方法是通过 1入了一种新的协议类 型, 利用该协议的交互以及单环 RPR保护倒换的触发, 可以达到 100ms级的保护 倒换能力。  A RPR bridge redundancy protection method is also available. The method is to enter a new protocol type. With the interaction of the protocol and the triggering of the single-loop RPR protection switching, the protection switching capability of 100 ms can be achieved.
但是当一个环中在两个 RPR跨环桥设备之间出现两处故障时且分别出现在 一 RPR跨环桥设备的两侧, 如图 2所示的情况下, 为确保两个桥环 (RPR桥环 1 和 RPR桥环 2 )之间任意点都是可达的, 两个 RPR跨环桥设备都需要负责跨环业 务的转发(均处于主用状态) 。 在这种情况下, 当其中一个节点故障 (如故障 点 1 ) 恢复后, RPR桥设备 1和 RPR桥设备 2相邻区间没有故障点存在, RPR桥设 备 1和 RPR桥设备 2的工作模式都会变化为正常(normal )状态, 恢复后故障点就 可以转发数据报文。但由于 RPR跨环桥设备不能立即感知到这个变化而不能够立 即改变自身的工作状态,该两个 RPR跨环桥设备仍然均处于主用(Master )状态, 同时负责跨环桥的数据业务的转发, 这样就会发生广播环路问题, 如图 3所示。  However, when two faults occur between two RPR cross-bridge devices in a ring and appear on both sides of an RPR cross-loop bridge device, as shown in Figure 2, to ensure two bridge rings ( Any point between the RPR bridge ring 1 and the RPR bridge ring 2) is reachable. Both RPR cross-ring bridge devices are responsible for forwarding the cross-ring service (both in the active state). In this case, when one of the node failures (such as fault point 1) is restored, there is no fault point in the adjacent section of RPR bridge device 1 and RPR bridge device 2, and the working modes of RPR bridge device 1 and RPR bridge device 2 will The change is in the normal state, and the data point can be forwarded after the recovery point. However, since the RPR cross-ring bridge device cannot immediately perceive this change and cannot change its working state immediately, the two RPR cross-ring bridge devices are still in the master state and are responsible for the data service of the cross-ring bridge. Forwarding, this will cause a broadcast loop problem, as shown in Figure 3.
在前面提到的 RPR桥冗余保护方法中,在只有一点发生故障时,在故障恢复 后,通过使 RPR环上刚恢复正常的原故障点延迟一段时间再进行报文转发或者进 行广播数据报文的转发来避免广播环路。 而对于当出现两个故障点的情形, 现 有的这种方案中没有提出一个明确的解决措施。 发明内容  In the above-mentioned RPR bridge redundancy protection method, when only one fault occurs, after the fault is recovered, the original fault point just returned to normal on the RPR ring is delayed for a period of time before the packet is forwarded or broadcast data is reported. Forwarding of text to avoid broadcast loops. For the case of two failure points, there is no clear solution in the current scheme. Summary of the invention
鉴于上述现有技术所存在的问题,本发明实施例的目的是提供一种 RPR桥故 障恢复后的环路避免方法, 该方法解决在 RPR相交环的应用场景下, 一个 RPR 桥环上同时出现了两个故障点的情况后其中一个故障点恢复时可能产生的广播 环路问题。 In view of the above problems in the prior art, an object of embodiments of the present invention is to provide an RPR bridge. The loop avoidance method after the fault recovery, the method solves the broadcast loop problem that may occur when one fault point recovers after two fault points occur on one RPR bridge loop in the application scenario of the RPR intersecting loop.
为了实现上述目的,本发明实施例提供了一种 RPR桥故障恢复后的环路避免 方法, 该方法包括以下步骤:  In order to achieve the above object, an embodiment of the present invention provides a loop avoiding method after RPR bridge fault recovery, and the method includes the following steps:
A. 在获知 RPR桥环中的故障点的故障恢复后, 将故障恢复节点的最大传输 单元值设为一个预定值,并向所述 RPR桥环中跨环桥设备发送用于通知该故障点 的故障已恢复的通知报文;  A. After learning the fault recovery of the fault point in the RPR bridge loop, setting the maximum transmission unit value of the fault recovery node to a predetermined value, and sending the cross-bridge device in the RPR bridge ring to notify the fault point The notification message that the fault has been recovered;
B. 所述 RPR桥环中的每一 RPR跨环桥设备接收故障恢复节点所发送的通知 报文, 检测各自 RPR跨环桥设备的工作状态, 仅使其中一个主用 RPR跨环桥设备 保持为主用状态。  B. Each RPR cross-ring bridge device in the RPR bridge ring receives the notification message sent by the fault recovery node, detects the working status of the respective RPR cross-ring bridge device, and only maintains one of the primary RPR cross-bridge devices. Main state.
较佳的, 所述步骤 A还包括:  Preferably, the step A further includes:
在对故障恢复节点的最大传输单元值进行设定前, 记录所述故障恢复节点 的正常的最大传输单元值。  Before the maximum transmission unit value of the failover node is set, the normal maximum transmission unit value of the failure recovery node is recorded.
较佳的, 在所述步骤 A之后还包括:  Preferably, after the step A, the method further includes:
启动网络拓朴收敛, 并在拓朴收敛之后, 将所述故障恢复节点的最大传输 单元值恢复成所记录的正常的最大传输单元值。  The network topology convergence is initiated, and after the topology is converged, the maximum transmission unit value of the fault recovery node is restored to the recorded normal maximum transmission unit value.
较佳的, 所述步骤 A还包括:  Preferably, the step A further includes:
将最大传输单元值设为所述预定值之后, 设定所述故障恢复节点的工作状 态为正常状态。  After the maximum transmission unit value is set to the predetermined value, the operational state of the fault recovery node is set to a normal state.
较佳的, 所述最大传输单元值的预定值为能够保证协议报文通过, 而数据 报文不能通过的值, 其值在 30至 81之间。  Preferably, the predetermined value of the maximum transmission unit value is a value that can ensure that the protocol message passes, and the data message cannot pass, and the value is between 30 and 81.
较佳的, 所述步骤 B还包括:  Preferably, the step B further includes:
比较各 RPR跨环桥设备的优先级,使最高优先级的 RPR跨环桥设备保持为主 用状态。  Compare the priority of each RPR cross-bridge device to keep the highest-priority RPR cross-bridge device in the active state.
较佳的, 所述步骤 A中获知 RPR桥环中的故障点的故障已恢复至正常为: 当所述故障点为所述 RPR桥环中的 RPR桥设备时,由所述故障点自身获知其 故障已恢复正常; Preferably, in step A, it is known that the fault of the fault point in the RPR bridge loop has returned to normal: when the fault point is the RPR bridge device in the RPR bridge ring, the fault point itself is known. Its The fault has returned to normal;
当所述故障点不为所述 RPR桥环中的 RPR桥设备时,由与所述故障点邻近的 所述故障恢复节点来获知所述故障点的故障已恢复正常。  When the fault point is not the RPR bridge device in the RPR bridge ring, it is known by the fault recovery node adjacent to the fault point that the fault of the fault point has returned to normal.
较佳的, 所述 RPR桥环中的故障恢复节点为 RPR桥设备或 RPR跨环桥设备。 较佳的, 所述通知报文是在现有的报文基础上进行扩充实现的一种报文, 或者是新定义的一种报文。  Preferably, the fault recovery node in the RPR bridge ring is an RPR bridge device or an RPR span bridge device. Preferably, the notification message is a type of message that is extended on the basis of the existing message, or is a newly defined message.
较佳的, 所述步骤 B中, 当一跨环桥设备检测到自身工作状态为备用状态, 则对其所接收到的所述通知报文不进行处理。  Preferably, in step B, when a cross-ring bridge device detects that its working state is a standby state, the received notification message is not processed.
较佳的, 所述步骤 B中, 当一跨环桥设备检测到自身工作状态为主用状态, 但没有与其连接的处于主用状态的其他跨环桥设备时; 或者当一跨环桥设备检 测到自身工作状态为主用状态, 但其优先级均高于与其连接的处于主用状态的 其他跨环桥设备的优先级时, 则对其所接收到的所述通知报文不进行处理。  Preferably, in the step B, when a cross-ring bridge device detects that its working state is the active state, but does not have other cross-ring bridge devices connected to it in the active state; or when a cross-bridge device If the working status of the working state is detected as the active state, but the priority is higher than the priority of other cross-ring bridge devices connected to the active state, the received notification message will not be processed. .
较佳的, 所述步骤 B中, 当一跨环桥设备检测到自身工作状态为主用状态, 且与其连接的处于主用状态的其他跨环桥设备中存在优先级更高的跨环桥设备 时, 所述优先级低的跨环桥设备退出主用状态。  Preferably, in the step B, when a cross-ring bridge device detects that its working state is in the active state, and the other cross-ring bridge devices connected to the active state have a higher priority cross-ring bridge When the device is in use, the low-priority cross-ring bridge device exits the active state.
本发明实施例具有如下有益效果:  The embodiments of the present invention have the following beneficial effects:
本发明实施例通过故障恢复节点发送通知报文给跨环桥设备, 跨环桥设备 收到通知报文后, 跨环桥设备会根据自己的工作状态 /优先级及其他跨环桥设备 的工作状态 /优先极, 来进行后续的动作 (如保持主用状态或退出主用状态) 。 这样能够在故障点的故障恢复后, 只有一个跨环桥设备处于主用状态, 确保跨 环业务的正确转发, 解决了故障点恢复后信息传递中出现的环路问题, 对环内 业务也没有影响, 同时对单环协议收敛没有任何影响。 附图说明  In the embodiment of the present invention, the fault recovery node sends a notification message to the cross-ring bridge device. After the cross-ring bridge device receives the notification packet, the cross-loop bridge device works according to its working status/priority and other cross-ring bridge devices. Status/Priority, for subsequent actions (such as maintaining the active state or exiting the active state). In this way, after the fault at the fault point is restored, only one cross-ring bridge device is in the active state, ensuring correct forwarding of the cross-ring service, and solving the loop problem occurring in the information transmission after the fault point is recovered, and there is no service in the ring. Impact, while having no effect on the convergence of the single-ring protocol. DRAWINGS
图 1为现有技术中所述 RPR桥环网络拓朴结构示意图;  1 is a schematic diagram of a topology structure of an RPR bridge ring network in the prior art;
图 2为现有技术中所述 RPR桥环网络中一个 RPR桥环上同时出现了两个故 障的情况下的通信示意图; 图 3为现有技术中所述 RPR桥环网络中一个 RPR桥环上同时出现了两个故 障的情况下并且当一个故障恢复时产生广播环路的示意图; 2 is a schematic diagram of communication in the case where two faults occur simultaneously on one RPR bridge ring in the RPR bridge ring network in the prior art; 3 is a schematic diagram of a broadcast loop generated when one fault occurs simultaneously on one RPR bridge ring in the RPR bridge ring network in the prior art;
图 4为本发明实施例中所述 RPR桥中非跨环桥设备故障恢复时故障恢复节 点避免产生广播环路的方法流程图;  4 is a flowchart of a method for avoiding a broadcast loop by a fault recovery node when a non-cross-bridge device fails to recover in the RPR bridge according to an embodiment of the present invention;
图 5为本发明实施例中所述 RPR桥中非跨环桥设备故障恢复时跨环桥设备 避免产生广播环路的方法流程图。 具体实施方式  FIG. 5 is a flowchart of a method for avoiding a broadcast loop of a cross-loop bridge device when a non-cross-bridge device fails to recover in the RPR bridge according to an embodiment of the present invention. detailed description
下面结合附图对本发明的具体实施方式进行说明。  Specific embodiments of the present invention will be described below with reference to the accompanying drawings.
本发明实施例提供一种 RPR桥故障恢复后的环路避免方法, 该方法解决在 RPR相交环的应用场景下, 一个 RPR桥环上同时出现了两个故障点的情况下, 在一个故障点恢复时可能产生的广播环路问题。 RPR桥故障恢复后的环路避免 方法是通过故障恢复节点和跨环桥设备相互之间的配合, 控制 RPR环上数据报 文的通过, 避免 RPR环出现环路现象。  The embodiment of the invention provides a loop avoidance method after the RPR bridge is faulty. The method solves the problem that in the application scenario of the RPR intersecting ring, when two fault points occur simultaneously on one RPR bridge ring, at one fault point A broadcast loop problem that may occur when recovering. The loop avoidance method after the fault recovery of the RPR bridge is to control the passage of data packets on the RPR ring through the cooperation of the fault recovery node and the cross-ring bridge device to avoid loop phenomenon on the RPR ring.
首先请再参阅图 2 , 例中举了一个 RPR桥环网络, 其中有两个相交的 RPR 桥环, 该两个 RPR桥环中包括 RPR桥设备 1、 RPR桥设备 2、 RPR桥设备 3、 RPR桥设备 4以及 RPR跨环桥设备 1和 RPR跨环桥设备 2。在故障点 1和故障 点 2同时存在的情况下, RPR桥设备 1和 RPR桥设备 2的工作模式都为保护模 式, 即 wrap状态, 在故障点 1不会有报文通过, 也不会有广播环路的出现。 而 为确保两个 RPR桥环上任意点之间都可以互相访问, RPR跨环桥设备 1 及 RPR2跨环桥设备的工作状态均都为主用 (Master )状态, 处于主用状态的跨环 桥设备, 可负责跨环业务的转发, 即可以将数据业务在不同的 RPR桥环中进行 转发, 这样两个 RPR桥环中任意节点之间可以相互访问。  First, please refer to FIG. 2 again. In the example, an RPR bridge ring network is provided, in which there are two intersecting RPR bridge rings, and the two RPR bridge rings include RPR bridge device 1, RPR bridge device 2, and RPR bridge device 3. RPR bridge device 4 and RPR cross-bridge device 1 and RPR cross-bridge device 2. In the case where both the fault point 1 and the fault point 2 exist, the working modes of the RPR bridge device 1 and the RPR bridge device 2 are in the protection mode, that is, the wrap state, and no packet will pass at the fault point 1, and there will be no The emergence of a broadcast loop. To ensure that the two RPR bridges can access each other at any point, the working status of the RPR cross-bridge device 1 and the RPR2 cross-ring bridge device are both in the master state and the cross-ring in the active state. The bridge device can be responsible for forwarding the cross-ring service, that is, the data service can be forwarded in different RPR bridge rings, so that any node in the two RPR bridge rings can access each other.
当故障点 1恢复后, RPR桥设备 1和 RPR桥设备 2相邻区间没有故障点存 在, RPR桥设备 1和 RPR桥设备 2的工作模式都会变化为正常状态。 在 RPR 桥设备 1和 RPR桥设备 2的工作模式变为正常状态后, 数据报文就可以通过该 故障点了。 由于 RPR跨环桥设备不能立即感知到这个变化而不会进行状态的迁 移, 就会如图 3所示, 可能发生广播环路问题。 下面结合附图 4和附图 5 , 来说 明本发明实施例中, 在故障点 1或故障点 2恢复时, 如何通过对故障恢复节点 和跨环桥设备进行相应的配合处理, 来避免图 3中环路现象的出现。 When the fault point 1 is restored, there is no fault point in the adjacent section of the RPR bridge device 1 and the RPR bridge device 2. The working modes of the RPR bridge device 1 and the RPR bridge device 2 will change to the normal state. After the working mode of RPR bridge device 1 and RPR bridge device 2 becomes normal, the data packet can pass the fault point. Since the RPR cross-loop bridge device cannot immediately perceive this change and does not move the state Move, as shown in Figure 3, a broadcast loop problem may occur. In the following, in conjunction with FIG. 4 and FIG. 5, in the embodiment of the present invention, when the fault point 1 or the fault point 2 is restored, how to cooperate with the fault recovery node and the cross-ring bridge device to avoid the FIG. 3 The emergence of the phenomenon of the middle ring.
请参阅图 4 , 该图为本发明实施例中对故障恢复节点处理的主流程图, 此处 所称故障恢复节点, 指与该故障点邻近的设备, 对于故障点 1 来说, 其故障恢 复节点指与故障点 1邻近的 RPR桥设备 1或 RPR桥设备 2。 以图 3中的故障点 1恢复时为例进行说明 , 该处理流程包括以下步骤:  Please refer to FIG. 4 , which is a main flowchart of processing a fault recovery node according to an embodiment of the present invention. The fault recovery node referred to herein refers to a device adjacent to the fault point, and for the fault point 1 , the fault recovery node Refers to RPR bridge device 1 or RPR bridge device 2 adjacent to fault point 1. The recovery point 1 in Figure 3 is taken as an example. The process flow includes the following steps:
步骤 40: 当获知 RPR桥环中的故障点 1的故障已恢复正常后 , 触发一次拓 朴收敛过程; 在 RPR桥环中, 故障点可以是 RPR桥设备, 也可以是连接 RPR 桥设备的链路。 此处, 由于故障点 1是一条链路, 其故障恢复后, 相邻的 RPR 桥设备边状态消失, 故障恢复节点 (RPR桥设备 1或 RPR桥设备 2 ) 可以获知 该故障点 1的故障已经恢复正常。在另外的一些情况下,例如,该故障点为 RPR 桥环中的一个 RPR桥设备, 在这种情况下, 该故障点自身就可以获知其故障是 否已恢复至正常。  Step 40: After learning that the fault of the fault point 1 in the RPR bridge ring has returned to normal, triggering a topology convergence process; in the RPR bridge ring, the fault point may be an RPR bridge device or a chain connecting the RPR bridge devices. road. Here, since the fault point 1 is a link, after the fault is recovered, the state of the adjacent RPR bridge device disappears, and the fault recovery node (RPR bridge device 1 or RPR bridge device 2) can know that the fault of the fault point 1 has been Back to normal. In other cases, for example, the point of failure is an RPR bridge device in the RPR bridge ring, in which case the point of failure itself can be informed whether its fault has returned to normal.
步骤 41 : 在拓朴发生变化之后, 完成拓朴收敛之前, 判断该故障恢复节点 ( RPR桥设备 1或 RPR桥设备 2 )或故障点(当该故障点为 RPR桥环中的设备 时) 的工作状态是否发生变化;  Step 41: After the topology changes, determine the fault recovery node (RPR bridge device 1 or RPR bridge device 2) or the fault point (when the fault point is a device in the RPR bridge ring) before completing topology convergence. Whether the working status has changed;
步骤 42: 该故障恢复节点 ( RPR桥设备 1或 RPR桥设备 2 )检测其自身的 工作状态是否从保护状态(wrap )状态变化为正常(normal )状态, 如果检测结 果为是时, 即故障恢复节点已变为正常 (normal ) 状态时, 则转至步骤 43 ; 如 果检测结果为否时, 即故障恢复节点仍处于保护 (wrap ) 状态时, 则等待预定 时间 (如 1~3秒), 转至步骤 41继续进行检测;  Step 42: The fault recovery node (the RPR bridge device 1 or the RPR bridge device 2) detects whether its own working state changes from a protected state (wrap state) to a normal state. If the detection result is yes, the fault is recovered. When the node has changed to the normal state, go to step 43. If the detection result is no, that is, the fault recovery node is still in the wrap state, wait for a predetermined time (such as 1~3 seconds). Go to step 41 to continue the test;
在此步骤中, 如果故障点为 RPR桥设备时, 则检测该故障点的工作状态是 否从保护状态变化为正常状态, 同样, 当检测结果为是时, 转至步骤 43; 当检 测结果为否时, 等待预定时间, 转至步骤 41继续进行检测;  In this step, if the fault point is an RPR bridge device, it is detected whether the working state of the fault point changes from the protection state to the normal state. Similarly, when the detection result is yes, go to step 43; when the detection result is no Wait for a predetermined time, go to step 41 to continue the test;
步骤 43: 该故障恢复节点在两个 RPR桥环上发送通知报文, 将该故障点 1 处的故障已恢复正常的信息通知给 RPR跨环桥设备 1及 RPR跨环桥设备 2; 故障恢复节点所发送的所述通知报文, 可以是在现有的报文基础上进行扩 充的报文, 也可以是釆用新的报文类型的报文; Step 43: The fault recovery node sends a notification message on the two RPR bridge rings, and notifies the RPR cross-bridge device 1 and the RPR cross-bridge device 2 that the fault at the fault point 1 has returned to normal; The notification message sent by the fault recovery node may be a packet that is extended based on an existing packet, or may be a packet that uses a new packet type;
步骤 44:记录该故障恢复节点的最大传输单元( Maximum Transmission Unit, MTU ) 的当前正常值; 并将该故障恢复节点的 MTU值设置一个预定值, 优选 地, 该预定值为处于 30-81字节之间的值;  Step 44: Record the current normal value of the Maximum Transmission Unit (MTU) of the fault recovery node; and set the MTU value of the fault recovery node to a predetermined value. Preferably, the predetermined value is in the range of 30-81 words. The value between the sections;
设置该 MTU预定值的目的在于保证 TP、 TC等协议 文可以通过该故障点 1, 而数据报文不能通过。 因为 TP报文的长度为 26字节, TC报文的长度为 29 字节, 该 MTU的值要求大于等于 30字节, 而包含 4广展数据的 RPR报文长度至 少为 18 + 64字节 (以太网最小长度为 64字节) = 82字节, 所以该 MTU值可 设置的范围为 30到 81字节。 比如可以设置为 64字节,在 RPR桥环中进行信息 传递时, 由于将 MTU修改为预定值之后, 数据报文无法通过所述故障点, 可以 有效避免环路。  The purpose of setting the MTU predetermined value is to ensure that the protocol texts such as TP and TC can pass the fault point 1, and the data packet cannot pass. Because the length of the TP packet is 26 bytes, the length of the TC packet is 29 bytes, the value of the MTU is required to be greater than or equal to 30 bytes, and the length of the RPR packet containing 4 wide data is at least 18 + 64 bytes. (The minimum Ethernet length is 64 bytes) = 82 bytes, so the MTU value can be set from 30 to 81 bytes. For example, it can be set to 64 bytes. When the information is transmitted in the RPR bridge ring, the data packet cannot pass the fault point after the MTU is modified to a predetermined value, which can effectively avoid the loop.
步骤 46: 在拓朴收敛之后, 将该故障恢复节点的 MTU值恢复成步骤 44所 记录的 MTU的正常值; 进一步地, 可将该故障恢复节点的工作状态设置为正常 状态;  Step 46: After the topology convergence, restore the MTU value of the fault recovery node to the normal value of the MTU recorded in step 44; further, the working state of the fault recovery node may be set to a normal state;
步骤 47: 程序结束。  Step 47: The program ends.
同理, 对于故障点 2, 其故障恢复节点分别为 RPR跨环桥设备 1或 RPR跨 环桥设备 2, 当故障点 2恢复时, 故障恢复节点能很容易地感知到故障点 2已恢 复正常, 并可据之更改自身的工作状态, 以避免出现环路, 该更改自身状态的 过程将结合附图 5进行说明。  Similarly, for fault point 2, the fault recovery node is RPR cross-loop bridge device 1 or RPR cross-loop bridge device 2, when the fault point 2 is restored, the fault recovery node can easily perceive that the fault point 2 has returned to normal. According to the change of its own working state, to avoid the occurrence of a loop, the process of changing its own state will be described with reference to FIG.
当某一跨环桥设备收到上述的图 4的步骤 43中的告知故障点 1 已恢复的通 知报文时, 或者当其检测到邻近的故障点 2 的故障已经恢复时, 则该跨环桥设 备要根据自己本身的工作状态及优先级来进行相应的数据处理过程。 主要目的 是使所有的跨环桥设备中仅有一个跨环桥设备保持主用状态并进行数据报文的 跨环转发, 其他的跨环桥设备退出主用状态, 变为备用状态, 不能进行数据报 文的跨环转发, 从而避免图 3 中的环路。 此处所述的优先级是指预先根据一定 规则为每一跨环桥设备所设置的一个属性值, 跨环桥设备的优先级的设置可以 根据需要自行配置, 例如, 跨环桥设备的设备 ID号、 IP地址、 MAC地址、 自 定义的标识符或自定义的序列号等等。 When a cross-ring bridge device receives the notification message indicating that the fault point 1 has been recovered in step 43 of FIG. 4 described above, or when it detects that the fault of the adjacent fault point 2 has been recovered, then the cross-ring The bridge device should perform the corresponding data processing process according to its own working state and priority. The main purpose is to keep only one cross-ring bridge device in all cross-ring bridge devices in the active state and to forward data packets across the ring. Other cross-ring bridge devices exit the active state and become standby. The data packets are forwarded across the ring to avoid the loop in Figure 3. The priority described herein refers to an attribute value set for each cross-bridge device according to a certain rule in advance. The priority setting of the cross-bridge device can be Configure it yourself as needed, for example, the device ID number, IP address, MAC address, custom identifier, or custom serial number of the cross-ring bridge device.
下面结合流程图 5来说明跨环桥设备的处理过程:  The processing of the cross-ring bridge device will be described below with reference to flowchart 5:
步骤 51 : 跨环桥设备(例如跨环桥设备 1或跨环桥设备 2 )接收到从故障 恢复节点发送过来的通知报文, 或者检测到邻近的故障点已恢复;  Step 51: The cross-ring bridge device (for example, the cross-ring bridge device 1 or the cross-ring bridge device 2) receives the notification message sent from the fault recovery node, or detects that the adjacent fault point has been restored;
步骤 52: 跨环桥设备判断此时其本身的工作状态是否处于主用状态, 如果 其为备用状态, 则对所接收的通知报文不进行处理, 并转至步骤 56; 如果其为 主用状态, 则转到步骤 53;  Step 52: The cross-ring bridge device determines whether its own working state is in the active state at this time. If it is in the standby state, the received notification message is not processed, and the process proceeds to step 56; if it is the primary use State, go to step 53;
步骤 53: 判断该跨环桥设备在 RPR桥环上是否有与其相连处于主用状态的 其他跨环桥设备, 如果没有, 则该跨环桥设备仍保持主用状态, 并对所接收的 通知 "^文不进行处理, 并转至步骤 56; 如果有与其相连的处于主用状态的其他 跨环桥设备, 则转到步骤 54;  Step 53: Determine whether the cross-ring bridge device has other cross-ring bridge devices connected to the RPR bridge ring in the active state. If not, the cross-ring bridge device remains in the active state, and receives the notification. "^" is not processed, and proceeds to step 56; if there are other cross-bridge devices in its active state connected to it, then go to step 54;
步骤 54: 判断本跨环桥设备的优先级是否低于与其相连的处于主用状态的 其他跨环桥设备的优先级, 如果判断结果为否, 则该跨环桥设备仍保持主用状 态, 并对所接收的通知报文不进行处理, 并转步骤 56, 如果判断结果为是, 则 转至步骤 55;  Step 54: Determine whether the priority of the cross-ring bridge device is lower than the priority of other cross-ring bridge devices connected to the primary state. If the judgment result is no, the cross-ring bridge device remains in the active state. And the received notification message is not processed, and proceeds to step 56, if the determination result is yes, then proceeds to step 55;
步骤 55: 该跨环桥设备退出主用状态, 不再负责跨环业务的转发; 步骤 56: 流程结束。  Step 55: The cross-ring bridge device exits the active state and is no longer responsible for forwarding the cross-ring service. Step 56: The process ends.
综上所述, 本发明实施例通过故障恢复节点发送通知报文给跨环桥设备, 跨环桥设备收到通知报文后, 跨环桥设备 1和跨环桥设备 2均会根据自己的工 作状态 /优先级及其他跨环桥设备的工作状态 /优先极, 来进行后续的动作(如保 持主用状态或退出主用状态)。 这样能够在故障点的故障恢复后, 只有一个跨环 桥设备仍处于主用状态, 确保跨环业务的正确转发, 解决了故障点恢复后信息 传递中出现的环路问题, 对环内业务也没有影响, 同时对单环协议收敛没有任 何影响。  In summary, the embodiment of the present invention sends a notification message to the cross-ring bridge device through the fault recovery node. After the cross-ring bridge device receives the notification packet, the cross-ring bridge device 1 and the cross-ring bridge device 2 both according to their own Work status/priority and other working status/priority of the cross-bridge device to perform subsequent actions (such as maintaining the active state or exiting the active state). In this way, after the fault at the fault point is restored, only one cross-ring bridge device is still in the active state, ensuring correct forwarding of the cross-ring service, and solving the loop problem occurring in the information transmission after the fault point is recovered, and the service in the ring is also There is no impact, and there is no impact on the convergence of the single-ring protocol.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于 此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围 应该以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and any person skilled in the art can easily think of within the technical scope disclosed by the present invention. Changes or substitutions are intended to be included within the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权 利 要 求 Rights request
1、 一种弹性分组数据桥环故障恢复后的环路避免方法, 其特征在于, 所述 方法包括以下步骤:  A loop avoidance method after an elastic packet data bridge ring fault recovery, characterized in that the method comprises the following steps:
在获知弹性分组数据桥环中的故障点的故障恢复正常后, 将故障恢复节点 的最大传输单元值设为一个预定值, 并向所述弹性分组数据桥环中的跨环桥设 备发送用于通知该故障点的故障已恢复的通知报文;  After learning that the fault of the fault point in the elastic packet data bridge loop is restored to normal, the maximum transmission unit value of the fault recovery node is set to a predetermined value, and is sent to the cross-loop bridge device in the elastic packet data bridge ring for Notifying the fault message that the fault has been recovered;
所述弹性分组数据桥环中的各弹性分组数据环跨环桥设备接收故障恢复节 点所发送的通知报文, 检测自身与其它弹性分组数据环跨环桥设备的工作状态, 使其中仅有一个主用弹性分组数据环跨环桥设备保持为主用状态。  Each elastic packet data ring in the elastic packet data bridge ring receives the notification message sent by the fault recovery node across the ring bridge device, and detects the working state of itself and other elastic packet data ring bridge devices, so that only one of them The primary resilient packet data ring maintains the primary state across the ring bridge device.
2、 如权利要求 1所述的弹性分组数据桥环故障恢复后的环路避免方法, 其 特征在于, 还包括:  2. The loop avoidance method after the resilient packet data bridge ring fault recovery according to claim 1, further comprising:
在将故障恢复节点的最大传输单元值设为一个预定值之前, 记录所述故障 恢复节点的正常的最大传输单元值;  Recording a normal maximum transmission unit value of the fault recovery node before setting a maximum transmission unit value of the fault recovery node to a predetermined value;
在发送用于通知该故障点的故障已恢复的通知报文后, 触发网络拓朴收敛, 并在拓朴收敛之后, 将所述故障恢复节点的最大传输单元值恢复成所记录的正 常的最大传输单元值。  After transmitting the notification message for notifying that the failure of the fault point has been restored, the network topology convergence is triggered, and after the topology convergence, the maximum transmission unit value of the fault recovery node is restored to the recorded normal maximum. Transfer unit value.
3、如权利要求 1或 2所述的弹性分组数据桥环故障恢复后的环路避免方法, 其特征在于: 所述最大传输单元值的预定值为 30至 81字节之间的值。  The loop avoidance method after the resilient packet data bridge ring fault recovery according to claim 1 or 2, wherein: the predetermined value of the maximum transmission unit value is a value between 30 and 81 bytes.
4、 如权利要求 3所述的弹性分组数据桥环故障恢复后的环路避免方法, 其 特征在于, 所述获知弹性分组数据桥环中的故障点的故障恢复正常具体为: 当所述故障点为所述弹性分组数据桥环中的弹性分组数据环桥设备时, 由 所述故障点自身获知其故障已恢复正常;  The loop avoidance method after the fault recovery of the elastic packet data bridge ring according to claim 3, wherein the fault recovery of the fault point in the learned elastic packet data bridge ring is normal: When the point is the elastic packet data ring bridge device in the elastic packet data bridge ring, the fault point itself knows that the fault has returned to normal;
当所述故障点不为所述弹性分组数据桥环中的弹性分组数据环桥设备时, 由与所述故障点邻近的故障恢复节点来获知所述故障点的故障已恢复正常。  When the fault point is not the elastic packet data ring bridge device in the elastic packet data bridge ring, it is learned by the fault recovery node adjacent to the fault point that the fault of the fault point has returned to normal.
5、 如权利要求 4所述的弹性分组数据桥环故障恢复后的环路避免方法, 其 特征在于, 所述弹性分组数据桥环中的故障恢复节点为弹性分组数据环桥设备 或弹性分组数据环跨环桥设备。 The loop avoidance method after the resilient packet data bridge ring fault recovery according to claim 4, wherein the fault recovery node in the elastic packet data bridge ring is an elastic packet data ring bridge device or elastic packet data. Ring spanning bridge equipment.
6、如权利要求 1或 2所述的弹性分组数据桥环故障恢复后的环路避免方法, 其特征在于, 还包括: The loop avoidance method after the fault recovery of the elastic packet data bridge ring according to claim 1 or 2, further comprising:
比较各弹性分组数据环跨环桥设备的优先级, 使最高优先级的弹性分组数 据环跨环桥设备保持为主用状态。  The priority of each elastic packet data ring across the ring bridge device is compared, so that the highest priority resilient packet data ring maintains the primary state across the ring bridge device.
7、 如权利要求 6所述的弹性分组数据桥环故障恢复后的环路避免方法, 其 特征在于, 还包括:  The loop avoidance method after the resilient packet data bridge ring fault recovery according to claim 6, further comprising:
当一跨环桥设备检测到自身工作状态为主用状态, 但没有与其连接的处于 主用状态的其他跨环桥设备时; 或者当一跨环桥设备检测到自身工作状态为主 用状态, 但其优先级均高于与其连接的处于主用状态的其他跨环桥设备的优先 级时, 则对其所接收到的所述通知艮文不进行处理。  When a cross-ring bridge device detects that its working state is the active state, but does not have other cross-ring bridge devices connected to it in the active state; or when a cross-loop bridge device detects its own working state as the active state, However, if the priority is higher than the priority of other cross-ring bridge devices connected to it in the active state, the notification message received will not be processed.
8、 如权利要求 6所述的弹性分组数据桥环故障恢复后的环路避免方法, 其 特征在于, 还包括:  The loop avoidance method after the resilient packet data bridge ring fault recovery according to claim 6, further comprising:
当一跨环桥设备检测到自身工作状态为主用状态, 且与其连接的处于主用 状态的其他跨环桥设备中存在优先级更高的跨环桥设备时, 所述优先级低的跨 环桥设备退出主用状态。  When a cross-ring bridge device detects that its own working state is the active state, and there is a higher priority cross-ring bridge device among other cross-ring bridge devices connected to the active state, the low-priority cross-span The ring bridge device exits the active state.
9、如权利要求 1或 2所述的弹性分组数据桥环故障恢复后的环路避免方法, 其特征在于, 所述通知报文是在现有的报文基础上进行扩充实现的报文, 或者 是新定义的报文。  The loop avoidance method after the fault recovery of the elastic packet data bridge ring according to claim 1 or 2, wherein the notification packet is a packet that is extended and implemented on the basis of the existing packet. Or a newly defined message.
10、 如权利要求 1或 2所述的弹性分组数据桥环故障恢复后的环路避免方 法, 其特征在于, 还包括:  The loop avoidance method after the fault recovery of the elastic packet data bridge ring according to claim 1 or 2, further comprising:
当一跨环桥设备检测到自身工作状态为备用状态, 则对其所接收到的所述 通知艮文不进行处理。  When a cross-loop bridge device detects that its working state is the standby state, the notification message received by the device does not process the message.
11、 一种弹性分组数据桥环故障恢复后的环路避免系统, 包括跨环桥设备, 其特征在于, 还包括:  A loop avoidance system after a resilient packet data bridge ring fault recovery, including a cross-ring bridge device, further comprising:
最大传输单元值设置模块, 用于在获知弹性分组数据桥环中的故障点的故 障恢复正常后, 将故障恢复节点的最大传输单元值设为一个预定值;  a maximum transmission unit value setting module, configured to set a maximum transmission unit value of the fault recovery node to a predetermined value after the fault of the fault point in the elastic packet data bridge loop is recovered;
发送模块, 用于在获知弹性分组数据桥环中的故障点的故障恢复正常后, 向所述弹性分组数据桥环中的跨环桥设备发送用于通知该故障点的故障已恢复 的通知报文; a sending module, after the fault of the fault point in the elastic packet data bridge is recovered, Sending, to the cross-ring bridge device in the elastic packet data bridge ring, a notification message for notifying that the fault point has been recovered;
主用状态设置模块, 与跨环桥设备相连, 用于在所述弹性分组数据桥环中 的各弹性分组数据环跨环桥设备接收到所述发送模块发送的通知报文后, 检测 自身与其它弹性分组数据环跨环桥设备的工作状态, 使其中仅有一个主用弹性 分组数据环跨环桥设备保持为主用状态。  The primary state setting module is connected to the cross-loop bridge device, and is configured to detect, after the elastic packet data ring bridge device in the elastic packet data bridge ring receives the notification message sent by the sending module, Other resilient packet data loops work across the ring bridge device, such that only one of the primary resilient packet data loops remains in the primary state across the ring bridge device.
12、 如权利要求 11所述的弹性分组数据桥环故障恢复后的环路避免系统, 其特征在于, 还包括记录模块, 用于在将故障恢复节点的最大传输单元值设为 一个预定值之前, 记录所述故障恢复节点的正常的最大传输单元值;  12. The loop avoidance system after resilient packet bridgeback fault recovery according to claim 11, further comprising a recording module, configured to: before setting a maximum transmission unit value of the fault recovery node to a predetermined value Recording a normal maximum transmission unit value of the fault recovery node;
所述最大传输单元值设置模块进一步用于在发送用于通知该故障点的故障 已恢复的通知报文后, 触发网络拓朴收敛, 并在拓朴收敛之后, 将所述故障恢 复节点的最大传输单元值恢复成所记录的正常的最大传输单元值。  The maximum transmission unit value setting module is further configured to trigger network topology convergence after transmitting a notification message for notifying that the fault has been recovered, and after the topology convergence, the fault recovery node is maximized. The transmission unit value is restored to the recorded normal maximum transmission unit value.
13、 如权利要求 11或 12所述的弹性分组数据桥环故障恢复后的环路避免 系统, 其特征在于: 所述最大传输单元值的预定值为 30至 81字节之间的值。  The loop avoidance system after the resilient packet data bridge ring fault recovery according to claim 11 or 12, wherein: the predetermined value of the maximum transmission unit value is a value between 30 and 81 bytes.
14、 如权利要求 11或 12所述的弹性分组数据桥环故障恢复后的环路避免 系统, 其特征在于, 所述主用状态设置模块包括优先级判断单元、 设置单元, 其中:  The loop avoidance system after the fault recovery of the elastic packet data bridge ring according to claim 11 or 12, wherein the main state setting module comprises a priority judging unit and a setting unit, wherein:
优先级判断单元, 用于比较各弹性分组数据环跨环桥设备的优先级; 设置单元, 用于使根据所述优先级判断单元判断的最高优先级的弹性分组 数据环跨环桥设备保持为主用状态。  a priority determining unit, configured to compare priority of each elastic packet data ring across the ring bridge device; and a setting unit, configured to keep the highest priority resilient packet data ring that is determined according to the priority determining unit as a cross-bridge device Main state.
15、 如权利要求 14所述的弹性分组数据桥环故障恢复后的环路避免系统, 其特征在于, 所述跨环桥设备进一步用于当检测到自身工作状态为主用状态, 但没有与其连接的处于主用状态的其他跨环桥设备时; 或者当检测到自身工作 状态为主用状态, 但其优先级均高于与其连接的处于主用状态的其他跨环桥设 备的优先级时, 则对其所接收到的所述通知报文不进行处理。  The loop avoidance system after the fault recovery of the elastic packet data bridge ring according to claim 14, wherein the cross-loop bridge device is further configured to detect the active state of the working state, but not When connecting other cross-loop bridge devices in the active state; or when detecting that their own working state is active, but their priority is higher than the priority of other cross-ring bridge devices connected to them in the active state , the received notification message is not processed.
16、 如权利要求 15所述的弹性分组数据桥环故障恢复后的环路避免系统, 其特征在于, 还包括: 所述跨环桥设备进一步用于当检测到自身工作状态为主用状态, 且与其连 接的处于主用状态的其他跨环桥设备中存在优先级更高的跨环桥设备时, 退出 主用状态。 The loop avoidance system after the resilient packet data bridge ring fault recovery according to claim 15, further comprising: The cross-ring bridge device is further configured to exit the primary device when a cross-ring bridge device with a higher priority exists in the other cross-ring bridge devices connected to the active state in which the active state is detected as the active state. status.
PCT/CN2007/002082 2006-09-01 2007-07-06 A loop avoidance method after the recovery from the rpr faults WO2008028392A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2006100374378A CN101136830B (en) 2006-09-01 2006-09-01 Loop prevention method after RPR bridge fault recovery
CN200610037437.8 2006-09-01

Publications (1)

Publication Number Publication Date
WO2008028392A1 true WO2008028392A1 (en) 2008-03-13

Family

ID=39156829

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/002082 WO2008028392A1 (en) 2006-09-01 2007-07-06 A loop avoidance method after the recovery from the rpr faults

Country Status (2)

Country Link
CN (1) CN101136830B (en)
WO (1) WO2008028392A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547331A (en) * 2017-09-25 2018-01-05 新华三技术有限公司 The forwarding state control method and device of RPR nodes in RPR intersecting rings

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050002392A1 (en) * 2000-06-30 2005-01-06 Nader Vijeh Per-flow rate control for an asynchronous metro packet transport ring
JP2005130049A (en) * 2003-10-21 2005-05-19 Fujitsu Ltd Node
CN1941730A (en) * 2005-09-26 2007-04-04 华为技术有限公司 Method for protecting RPR bridge redundancy

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE68921373T2 (en) * 1988-06-27 1995-10-19 Digital Equipment Corp Transparent load sharing for parallel networks.
CN1266896C (en) * 2002-08-29 2006-07-26 华为技术有限公司 Fast replacing method of elastic group loop network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050002392A1 (en) * 2000-06-30 2005-01-06 Nader Vijeh Per-flow rate control for an asynchronous metro packet transport ring
JP2005130049A (en) * 2003-10-21 2005-05-19 Fujitsu Ltd Node
CN1941730A (en) * 2005-09-26 2007-04-04 华为技术有限公司 Method for protecting RPR bridge redundancy

Also Published As

Publication number Publication date
CN101136830B (en) 2011-01-12
CN101136830A (en) 2008-03-05

Similar Documents

Publication Publication Date Title
EP2194676B1 (en) Ethernet ring system, its main node and intialization method
JP5508289B2 (en) Network recovery system and method from multilink failure
JP4454516B2 (en) Fault detection device
US7440397B2 (en) Protection that automatic and speedily restore of Ethernet ring network
CN100409634C (en) Fast ring network protecting method and system
US7940645B2 (en) Protection switching method based on change in link status in ethernet link aggregation sublayer
CN103843286B (en) For the method and apparatus based on the triggering router state change of exchanger connectivity
WO2010045832A1 (en) Method and apparatus for protecting link aggregation group of ethernet ring
EP2204947A1 (en) Method and node device of ethernet failure detecting and converging
WO2008089701A1 (en) Method, device and system for ring protection
WO2008046358A1 (en) A method and device to realize punch-through of point-to-multipoint network link status
JP2005260927A (en) Ethernet automatic protection switching
WO2012065435A1 (en) Path switch-back method and apparatus in transport network
WO2011095101A1 (en) Linear 1: n protection method, device and system for packet transport network
WO2010031296A1 (en) Control method for protecting failure recovery of ethernet ring and ethernet ring nodes
WO2009046591A1 (en) Method for processing failure of slave port of master node in ethernet ring network system
WO2010031295A1 (en) Control method for ethernet failure recovery
WO2012171380A1 (en) Far-end failure processing method and device for ethernet
WO2011017900A1 (en) Segment protection method and system for ethernet tunnel
CN102238067B (en) Switching method and device on Rapid Ring Protection Protocol (RRPP) ring
CN110635940B (en) Main/standby switching method of EAPS Ethernet ring network
US8811157B2 (en) Protection switching method and system for ethernet dual-homed link
CN101883038A (en) Method for protecting and switching EAPS (Ethernet Automatic Protection Switching) looped network and main node in EAPS looped network
JP5012485B2 (en) Redundancy method and switch device
WO2008028377A1 (en) Redundant protecting method and system of ring-across bridge devices of bridge mode resilient packet ring

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07800680

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 07800680

Country of ref document: EP

Kind code of ref document: A1