WO2008064585A1 - A method, system and resilient packet ring device for avoiding loop after fault recovery - Google Patents

A method, system and resilient packet ring device for avoiding loop after fault recovery Download PDF

Info

Publication number
WO2008064585A1
WO2008064585A1 PCT/CN2007/070438 CN2007070438W WO2008064585A1 WO 2008064585 A1 WO2008064585 A1 WO 2008064585A1 CN 2007070438 W CN2007070438 W CN 2007070438W WO 2008064585 A1 WO2008064585 A1 WO 2008064585A1
Authority
WO
WIPO (PCT)
Prior art keywords
cross
ring
node
ring node
fault recovery
Prior art date
Application number
PCT/CN2007/070438
Other languages
French (fr)
Chinese (zh)
Inventor
Yilong Zhang
Zhongkai Zhang
Zhifeng He
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 WO2008064585A1 publication Critical patent/WO2008064585A1/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

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a method, a system, and a Resilient Packet Ring (RPR) device for avoiding loops after failure recovery.
  • RPR Resilient Packet Ring
  • RPR technology has many advantages, gradually Into the field of metro transport networks, and become one of the hot spots.
  • RPR technology is a new network architecture designed to meet the requirements of packet metropolitan area networks.
  • RPR 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 A ring that transmits in the opposite direction.
  • the packet switching node on the ring network is further divided into a cross-ring node and a non-cross-ring node.
  • Non-cross-ring nodes when multiple RPR rings intersect, on the RPR ring, but there is no RPR device at the ring intersection.
  • a cross-ring node is an RPR device at the intersection of a ring when multiple RPR rings intersect. When the cross-ring node processes the cross-ring service forwarding, it is in the active master state.
  • RPR has many technical advantages such as effective bandwidth multiplexing, fast ring protection switching function, and automatic automatic discovery of topology, with the continuous development of science and technology, people have higher requirements for technology, and the current RPR communication There are still some shortcomings in the technology. These shortcomings will be explained below.
  • the RPR device carries Layer 2 Ethernet packets in the Ethernet Over RPR mode.
  • the RPR extension frame is forwarded on the RPR ring.
  • FIG. 1 is a schematic diagram of a prior art RPR ring network communication. Because the RPR carries Layer 2 Ethernet packets, if two cross-ring nodes are not controlled, loops will occur on the two cross-ring nodes, which is prone to broadcast storms.
  • STP Spanning Tree Protocol
  • RSTP Rapid Spanning Tree Protocol
  • the working modes of the non-cross-ring node 1 and the non-cross-ring node 2 are both wrap, and no packet will pass at the fault point, and no loop will appear. If the fault point 1 recovers, there is no fault point in the adjacent interval of the non-cross-ring node 1 and the non-cross-ring node 2, then the working modes of the non-cross-ring node 1 and the non-cross-ring node 2 will change to normal, and the recovered fault recovery The node can forward the data message.
  • the cross-ring node 1 and the cross-ring node 2 cannot immediately perceive this change without changing the state, they are still in the master state, the cross-ring node 1, the non-cross-ring node 1, the non-cross-ring node 2, and the cross-ring node 2
  • the non-cross-ring node 4 and the non-cross-ring node 3 form a loop, which easily causes broadcast packets to be cyclically transmitted in the loop, which causes broadcast storms and the like to occur.
  • non-cross-ring node 1 and non-cross-ring node 2 are failover nodes.
  • the embodiment of the present invention provides a method for avoiding a loop after a fault is recovered, and solves the problem that a loop is easily generated in the case where one of the two fault points located at both ends of the cross-ring node recovers.
  • the embodiment of the present invention further provides a system for avoiding loops after fault recovery, and solves the problem that loops are likely to occur in the case where one of two fault points located at both ends of the cross-ring node recovers.
  • the embodiment of the present invention further provides an RPR device that solves the problem that loops are likely to occur in the case where one of the two fault points located at both ends of the cross-ring node recovers.
  • a method for avoiding a loop after failure recovery characterized in that the method comprises the following steps:
  • the fault recovery node After the fault is recovered, the fault recovery node sets the delay time and sends a fault recovery notification message to the cross-ring node from the RPR ring. When the delay time expires, the fault recovery node sets the working state to normal.
  • the cross-ring node After receiving the fault recovery notification packet sent by the fault recovery node, the cross-ring node sets the working state of the cross-ring node according to the packet.
  • a system for avoiding loops after failure recovery characterized in that the system includes a fault recovery node and a cross-ring node;
  • Failback node used to set the delay time after failure recovery, and two from the RPR ring Sends a fault recovery notification message to the cross-ring node in one direction; when the delay time expires, sets its working state to normal;
  • the cross-ring node is configured to receive a fault recovery notification message sent by the fault recovery node, and set its working state according to the packet.
  • An RPR device the RPR device includes: a status module, a delay module, and a message sending module;
  • a status module configured to send a delay notification to the delay module, and send a trigger notification to the message sending module; set the working state to normal after receiving the arrival notification sent by the delay module;
  • a delay module configured to receive a delay notification sent by the status module, set a delay time, and send a notification to the status module when the delay time expires;
  • the packet sending module is configured to send a fault recovery notification message to the cross-ring node from the two directions of the RPR ring after receiving the trigger notification of the status module.
  • An RPR device includes: a message receiving module, and a status module; a message receiving module, configured to receive a fault recovery notification message sent by the fault recovery node, and then send a setting working state notification to the status module;
  • the status module is configured to receive a setting working state notification sent by the packet receiving module, and set a working state of the cross-ring node.
  • the fault recovery node sends a fault recovery notification message to the cross-ring node from the two RPR rings by setting the delay time. After the delay, the working state is set to normal; during the delay period, the cross-ring node Receives a fault recovery notification message sent by the fault recovery node, and sets the working status of the cross-ring node according to the status. Therefore, the problem that the loop is prone to occur when one of the two fault points located at both ends of the cross-ring node recovers is solved, thereby avoiding the occurrence of a broadcast storm or the like.
  • FIG. 1 is a schematic diagram of a prior art RPR ring network communication
  • Figure 2 is a schematic diagram of a fault point failure recovery loop
  • FIG. 3 is a structural diagram of a system in which a loop occurs after fault recovery is avoided in an RPR according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for avoiding a loop after a fault is recovered in an RPR according to an embodiment of the present invention
  • FIG. 5 is a detailed flowchart of a method for avoiding a loop after failure recovery in an RPR according to an embodiment of the present invention. Mode for carrying out the invention
  • FIG. 3 is a structural diagram of a system in which a loop occurs after failure recovery.
  • the system is mainly composed of: a fault recovery node 300 and a cross-ring node 310.
  • the fault recovery node that appears in the embodiment of the present invention is a non-cross-loop node.
  • the fault recovery node 300 sets a delay time after the fault is recovered, and then sends a fault recovery notification message to the cross-ring node from the two directions of the RPR ring; when the delay time expires, the working state is set to normal radicals
  • the cross-ring node 310 receives the fault recovery notification message sent by the fault recovery node, and sets its own working state according to the packet.
  • the failover node 300 and the cross-ring node 310 are not necessarily adjacent connections, and there may be other non-cross-ring nodes in between.
  • the fault recovery node 300 may include the following parts: a delay module 301, a text sending module 302, and a status module 303, where
  • the delay module 301 after receiving the delay notification sent by the status module, sets the delay time, and sends a notification to the status module 303 when the delay time expires.
  • the purpose of the set delay time is to ensure that the cross-ring node 310 can receive the fault recovery notification message sent by the fault recovery node 300 and process the corresponding state before the state of the fault recovery node is restored.
  • the length of the delay time can be set according to the number of hops that the fault recovery node is farthest from the two cross-ring nodes. For example, if the hop count is N, the delay time is N*10ms, where 10ms mainly considers the processing delay of each line and each node in the line, which is an empirical value. In addition, this value can also be based on the specific line condition. And different settings for each node device.
  • the message sending module 302 is configured to send a fault recovery notification message from two directions of the RPR ring after receiving the trigger notification of the status module 303, to notify the cross-ring node 310 that the fault has been recovered.
  • the fault recovery notification message can be extended based on the existing packet or a new packet type.
  • the status module 303 is configured to set the working status of the fault recovery node 300, send a delay notification to the delay module 301, and send a trigger notification to the message sending module 302; and receive the arrival notification sent by the delay module 301.
  • the fault recovery node 300 further includes:
  • the detecting module 304 is configured to: when the working state of the fault recovery node is to be changed to normal, the triggering state module 303 performs the operation of sending the delay notification and sending the trigger notification.
  • the state module 303 sends a delay notification to the delay module 301, and the delay module 301 starts to set the delay. Time, and the status module 303 sends a trigger notification to the message sending module 302.
  • the cross-ring node 310 can include the following parts: a message receiving module 311, and a state module 312, where
  • the message receiving module 311 is configured to receive the fault recovery notification message sent by the fault recovery node 300, and then send a setting working state notification to the status module 312.
  • the status module 312 receives the set working status notification sent by the message receiving module 311, and sets the working status of the cross-ring node 310.
  • cross-ring node 310 further includes a determining module 313:
  • the determining module 313 is configured to determine the working state of the cross-ring node 310, determine the working state of the cross-ring node connected thereto, and the priority of the two cross-ring nodes; and send the result of the judgment to the status module. 312.
  • the status module 312 sets the operational status of the cross-loop node 310 based on the result of the determination sent by the determination module 312.
  • the cross-ring node 310 If the cross-ring node 310 is not in the master state, the working state of the cross-ring node is not changed; if the cross-ring node 310 is in the master state, and there is only a cross-ring node of the connected master state on one RPR ring, and the cross-ring node If the priority is low, the cross-ring node is set to other states that are not in the master state;
  • cross-ring node 310 If the cross-ring node 310 is in the master state, and there is only a cross-ring node of the associated master state on one RPR ring, and the priority of the cross-ring node is high, the working state of the cross-ring node is not changed;
  • cross-ring node 310 If the cross-ring node 310 is in the master state, and there is no cross-ring node of the associated master state on the two RPR rings, the working state of the cross-ring node is not changed;
  • FIG. 4 is a flowchart of a method for avoiding a loop after failure recovery in an RPR.
  • the flow shown in FIG. 4 is adopted to avoid the loop problem that may be caused when one of the fault points is recovered, wherein the two The fault points are at each end of a cross-ring node.
  • the process mainly includes:
  • Step 401 After the fault is recovered, the fault recovery node sets the delay time, and then sends a fault recovery notification from the two directions of the RPR ring to the cross-ring node.
  • the purpose of setting the delay time is: ensuring that the cross-ring node 310 can receive the fault recovery notification message sent by the fault recovery node 300 and perform correspondingly before the state of the delay recovery node is restored. State processing.
  • the length of the delay time can be set according to the number of hops that the fault recovery node is farthest from the two cross-ring nodes. For example, if the hop count is N, the delay time is N*10ms, and 10ms here mainly considers the processing delay of the line and each node in the line, which is an empirical value.
  • the hop count of the distance cross-ring node may be determined according to the MAC address information of the cross-ring node and the non-cross-ring node on the RPR ring.
  • the delay time may also be manually configured in advance in each non-cross-ring node.
  • the fault recovery notification is used to notify the two cross-ring nodes that the fault is recovered. More preferably, during the delay, in order to avoid the lost fault recovery notification packet, the fault recovery notification packet may be sent multiple times. You can also ask the other party to respond.
  • the fault recovery notification message can be extended based on the existing packet or a new packet type.
  • Step 402 After receiving the fault recovery notification message sent by the fault recovery node, the cross-ring node sets the working state of the cross-ring node.
  • cross-ring node Because if the cross-ring node is not in the master state, it is not responsible for the forwarding of the cross-ring service, and thus no loop is formed, so the working state of the cross-ring node does not change.
  • this situation includes two situations: First, the cross-ring node is the master state, and the other cross-ring node is the other state of the non-master state, then there is no loop formation, so the cross-ring node is not changed. Working status. Second, the two cross-ring nodes are in the master state, but there are fault points between the two cross-ring nodes, that is, there are fault points on both ends of the cross-ring nodes on the two rings, that is, on the two rings. There are four fault points, then when there is a fault point recovery, no loop will be formed, so the working state of the cross-ring node will not be changed.
  • the working state of the cross-ring node is set to non- Other states of the master state.
  • Both cases have a faulty node between the two spanning nodes. Because both spanning nodes are in the master state, it is easy to form a loop as shown in Figure 2 on the ring, so The level sets one of the two cross-ring nodes to the master state, and the other sets the other states to the non-master state, and no loop is formed.
  • Step 403 After the delay time expires, the fault recovery node sets the working state to Normal
  • FIG. 5 is a detailed flowchart of a method for avoiding a loop after failure recovery. The process includes the following steps:
  • Step 501 After the fault is recovered, it is determined whether the working mode of the fault recovery node is to be set to normal. If yes, go to step 502; if no, end the process.
  • Step 502 The fault recovery node sets a delay time, and then sends a fault recovery notification message to the cross-ring node from two directions of the RPR ring to notify the cross-ring node that the fault has been recovered.
  • the purpose of the delay time is to ensure that the fault recovery notification message sent by the fault recovery node can be received by the cross-ring node in time and set the working state of the cross-ring node.
  • the fault recovery notification is used to notify the two cross-ring nodes that the fault is recovered. More preferably, during the delay, in order to avoid the lost fault recovery notification message, the fault recovery notification may be sent multiple times.
  • the fault recovery notification message can be extended on the existing message base or a new packet type.
  • Step 503 The cross-ring node receives the fault recovery notification message sent by the fault recovery node. This step is performed by the message receiving module 311 in the system of Fig. 3.
  • Step 504 Determine whether the cross-ring node is in the master state. If yes, go to step 505; if no, go to step 507.
  • Step 505 Determine whether the cross-ring node has a connected cross-ring node in the master state on only one RPR ring, and the cross-ring node has a low priority. If yes, go to step 506; if no, go to step 507.
  • step 507 if the cross-ring node does not have a connected cross-ring node in the master state on both RPR rings, step 507 is performed;
  • step 507 is performed;
  • cross-ring node has a cross-link point of the connected master state on only one RPR ring, and the cross-ring node has a low priority, if yes, go to step 506.
  • the device ID can be used to determine who exits the master state, and the sequence is performed according to regulations. .
  • Step 506 Set the working state of the cross-ring node to other states that are not in the master state.
  • Step 507 When the delay time expires, set the working state of the fault recovery node to normal.
  • the fault recovery node sends a fault recovery notification message to the cross-ring node from the two RPR rings by setting the delay time. After the delay, the working state is set to normal; during the delay, the cross-ring node receives the fault recovery.
  • the fault recovery notification message sent by the node, and the working state of the cross-ring node is set according to the status.

Landscapes

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

Abstract

A method, system and resilient packet ring device for avoiding loop appearance after fault recovery. The method includes: fault recovery node sets a delay time and transmits fault recovery notifying message to inter-ring node via two directions of RPR when the fault is recovered; the fault recovery node sets its work state as normal when the delay time has elapsed; inter-ring node sets its work state based on state condition after receiving fault recovery notifying message sent by fault recovery node within delay time, namely inter-ring node judges whether to change its own work state based on its state and other inter-ring nodes' state on RPR. The method, system and device resolves the loop problem when one of two fault positions situated at two sides of inter-ring node is recovered through cooperation between fault recovery node and inter-ring node.

Description

避免故障恢复后出现环路的方法、 系统和弹性分组环设备 技术领域  Method, system and elastic packet ring device for avoiding loop after failure recovery
本发明涉及网络通信技术领域, 特别涉及一种避免故障恢复后出现 环路的方法、 系统和弹性分组环 ( RPR, Resilient Packet Ring )设备。 发明背景  The present invention relates to the field of network communication technologies, and in particular, to a method, a system, and a Resilient Packet Ring (RPR) device for avoiding loops after failure recovery. Background of the invention
由于通信网络运营商的竟争重点已经从骨干网转向了城域网, 建立 高效经济的支持多业务的城域传送网已成为各大运营商的共同目标, RPR技术因其具有众多优势, 逐渐走进城域传送网的领域, 并成为热点 之一。  As the communication network operators' focus has shifted from the backbone network to the metropolitan area network, the establishment of an efficient and economical multi-service metropolitan transport network has become the common goal of major operators. RPR technology has many advantages, gradually Into the field of metro transport networks, and become one of the hot spots.
RPR技术是为了满足基于分组城域网的要求而设计的新型网络体系 结构; RPR是一种由分组交换节点组成的环形网络, 相邻的节点通过一 对光纤连接; 其网络拓朴是基于两个相反方向传输的环。  RPR technology is a new network architecture designed to meet the requirements of packet metropolitan area networks. RPR 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 A ring that transmits in the opposite direction.
其中, 环形网络上的分组交换节点又分为跨环节点和非跨环节点。 非跨环节点, 是多 RPR环相交时, 在 RPR环上, 但没有处于环交点的 RPR设备, 有三种工作状态: 正常状态 normal, 环回状态 wrap, 以及 直通状态 passthrough。 跨环节点, 是多 RPR环相交时, 处于环交点的 RPR设备, 当跨环节点处理跨环业务转发时处于主用 master状态。  The packet switching node on the ring network is further divided into a cross-ring node and a non-cross-ring node. Non-cross-ring nodes, when multiple RPR rings intersect, on the RPR ring, but there is no RPR device at the ring intersection. There are three working states: normal state, loopback state wrap, and pass-through state passthrough. A cross-ring node is an RPR device at the intersection of a ring when multiple RPR rings intersect. When the cross-ring node processes the cross-ring service forwarding, it is in the active master state.
虽然 RPR具有带宽的有效复用、 快速的环保护倒换功能、拓朴的自 动发现等很多的技术优点, 但是随着科学技术的不断发展, 人们对技术 的要求就更高, 在目前的 RPR通信技术中, 还有些不足之处, 下面将对 这些不足之处进行说明。  Although RPR has many technical advantages such as effective bandwidth multiplexing, fast ring protection switching function, and automatic automatic discovery of topology, with the continuous development of science and technology, people have higher requirements for technology, and the current RPR communication There are still some shortcomings in the technology. These shortcomings will be explained below.
RPR设备通过 Ethernet Over RPR的方式承载二层以太网报文,使用 RPR扩展帧在 RPR环上转发。 如图 1所示, 图 1为现有技术 RPR环网 络通信示意图。 由于 RPR上承载的是二层以太网报文,如果不对两个跨 环节点进行控制的话, 则在两个跨环节点会出现环路, 很容易出现广播 风暴。 The RPR device carries Layer 2 Ethernet packets in the Ethernet Over RPR mode. The RPR extension frame is forwarded on the RPR ring. As shown in FIG. 1, FIG. 1 is a schematic diagram of a prior art RPR ring network communication. Because the RPR carries Layer 2 Ethernet packets, if two cross-ring nodes are not controlled, loops will occur on the two cross-ring nodes, which is prone to broadcast storms.
当前已经存在防止二层网络形成环路的方法: 通过生成树协议 ( STP, Spanning Tree Protocol )、 或者快速生成树协议 ( RSTP, Rapid SpanningTree Protocol )进行链路裁减, 生成无环路的最小生成树, 然后 依据最小生成树来转发在二层以太网上的报文, 以防止二层网络通信形 成环路。  Currently, there is a method for preventing a loop from forming a Layer 2 network. The link is cut by the Spanning Tree Protocol (STP) or the Rapid Spanning Tree Protocol (RSTP) to generate a minimum spanning tree without loops. Then, the packets on the Layer 2 Ethernet are forwarded according to the minimum spanning tree to prevent the Layer 2 network communication from forming a loop.
但是, 目前还没有一种方法能够解决以下问题: 当两个 RPR环中的 一个环同时出现两个故障的情况下,其中, 两个故障分别在一个 RPR跨 环节点的两端, 为确保两个环之间任意点都是可达的, 两个 RPR跨环节 点都需要负责跨环业务的转发, 即都处于 master状态。 在这种情况下, 当其中有一个故障点恢复时, 容易形成环路。 下面对其成因进行说明, 如图 2所示。  However, there is currently no way to solve the following problems: When two rings in two RPR rings have two failures at the same time, two of them are at the two ends of an RPR cross-ring node, to ensure two Any point between the rings is reachable. Both RPR cross-ring nodes need to be responsible for forwarding the cross-ring service, that is, they are all in the master state. In this case, when one of the fault points is restored, it is easy to form a loop. The cause is explained below, as shown in Figure 2.
在故障点 1存在的情况下, 非跨环节点 1和非跨环节点 2的工作模 式都为 wrap, 在故障点不会有报文通过, 也不会有环路出现。 如果故障 点 1恢复, 非跨环节点 1和非跨环节点 2相邻区间没有故障点存在, 那 么非跨环节点 1和非跨环节点 2的工作模式都会变化为 normal, 恢复后 的故障恢复节点就可以转发数据报文了。 由于跨环节点 1和跨环节点 2 不能立即感知到这个变化而不会进行状态的改变,仍然处于 master状态, 跨环节点 1、 非跨环节点 1、 非跨环节点 2、 跨环节点 2、 非跨环节点 4、 以及非跨环节点 3就形成了一个环路, 就容易造成广播报文在环路中循 环地传递, 而导致广播风暴等危害发生。 需要说明的是, 当 RPR环上的 节点发生故障时, 发生故障的节点在故障恢复时作为故障恢复节点; 当 RPR环上的两节点之间的链路发生故障时, 离故障最近的能够感知故障 的两节点在链路故障恢复时作为故障恢复点。 在图 2中, 非跨环节点 1 和非跨环节点 2为故障恢复节点。 In the case where the fault point 1 exists, the working modes of the non-cross-ring node 1 and the non-cross-ring node 2 are both wrap, and no packet will pass at the fault point, and no loop will appear. If the fault point 1 recovers, there is no fault point in the adjacent interval of the non-cross-ring node 1 and the non-cross-ring node 2, then the working modes of the non-cross-ring node 1 and the non-cross-ring node 2 will change to normal, and the recovered fault recovery The node can forward the data message. Since the cross-ring node 1 and the cross-ring node 2 cannot immediately perceive this change without changing the state, they are still in the master state, the cross-ring node 1, the non-cross-ring node 1, the non-cross-ring node 2, and the cross-ring node 2 The non-cross-ring node 4 and the non-cross-ring node 3 form a loop, which easily causes broadcast packets to be cyclically transmitted in the loop, which causes broadcast storms and the like to occur. It should be noted that when a node on the RPR ring fails, the failed node acts as a failure recovery node when the fault is recovered; When the link between two nodes on the RPR ring fails, the two nodes that are aware of the fault closest to the fault are used as the fault recovery point when the link fails to recover. In FIG. 2, non-cross-ring node 1 and non-cross-ring node 2 are failover nodes.
由上所述, 在现有技术中并没有一种方案能够有效解决当位于跨环 节点两端的两个故障点中的一个恢复的情况下容易出现的环路问题。 发明内容  From the above, there is no solution in the prior art that can effectively solve the loop problem that is easy to occur when one of the two fault points located at both ends of the cross-ring node recovers. Summary of the invention
有鉴于此, 本发明实施例提供了避免故障恢复后出现环路的方法, 解决在位于跨环节点两端的两个故障点中的一个恢复的情况下容易出 现环路的问题。  In view of this, the embodiment of the present invention provides a method for avoiding a loop after a fault is recovered, and solves the problem that a loop is easily generated in the case where one of the two fault points located at both ends of the cross-ring node recovers.
本发明实施例还提供了避免故障恢复后出现环路的系统, 解决在位 于跨环节点两端的两个故障点中的一个恢复的情况下容易出现环路的 问题。  The embodiment of the present invention further provides a system for avoiding loops after fault recovery, and solves the problem that loops are likely to occur in the case where one of two fault points located at both ends of the cross-ring node recovers.
本发明实施例还提供了 RPR设备,解决在位于跨环节点两端的两个 故障点中的一个恢复的情况下容易出现环路的问题。  The embodiment of the present invention further provides an RPR device that solves the problem that loops are likely to occur in the case where one of the two fault points located at both ends of the cross-ring node recovers.
一种避免故障恢复后出现环路的方法, 其特征在于, 该方法包括以 下步骤:  A method for avoiding a loop after failure recovery, characterized in that the method comprises the following steps:
故障恢复后, 故障恢复节点设置延迟时间, 并从 RPR环的两个方向 发送故障恢复通知报文给跨环节点; 延迟时间到时, 故障恢复节点将工 作状态设置为 normal;  After the fault is recovered, the fault recovery node sets the delay time and sends a fault recovery notification message to the cross-ring node from the RPR ring. When the delay time expires, the fault recovery node sets the working state to normal.
跨环节点接收到故障恢复节点发来的故障恢复通知报文后, 根据该 报文设置跨环节点的工作状态。  After receiving the fault recovery notification packet sent by the fault recovery node, the cross-ring node sets the working state of the cross-ring node according to the packet.
一种避免故障恢复后出现环路的系统, 其特征在于, 该系统包括故 障恢复节点和跨环节点;  A system for avoiding loops after failure recovery, characterized in that the system includes a fault recovery node and a cross-ring node;
故障恢复节点, 用于在故障恢复后设置延迟时间, 并从 RPR环的两 个方向发送故障恢复通知报文给跨环节点; 延迟时间到时, 将自身的工 作状态设置为 normal; Failback node, used to set the delay time after failure recovery, and two from the RPR ring Sends a fault recovery notification message to the cross-ring node in one direction; when the delay time expires, sets its working state to normal;
跨环节点, 用于接收故障恢复节点发送来的故障恢复通知报文, 并 根据该报文设置自身的工作状态。  The cross-ring node is configured to receive a fault recovery notification message sent by the fault recovery node, and set its working state according to the packet.
一种 RPR设备, 该 RPR设备包括: 状态模块, 延时模块, 以及报 文发送模块;  An RPR device, the RPR device includes: a status module, a delay module, and a message sending module;
状态模块, 用于向延时模块发送延时通知, 并向报文发送模块发送 触发通知; 在接收到延迟模块发送的到时通知后将工作状态设置为 normal;  a status module, configured to send a delay notification to the delay module, and send a trigger notification to the message sending module; set the working state to normal after receiving the arrival notification sent by the delay module;
延时模块, 用于接收状态模块发送的延时通知后, 设置延迟时间, 并在延迟时间到时向状态模块发送到时通知;  a delay module, configured to receive a delay notification sent by the status module, set a delay time, and send a notification to the status module when the delay time expires;
报文发送模块, 用于接收到状态模块的触发通知后, 从 RPR环的两 个方向发送故障恢复通知报文给跨环节点。  The packet sending module is configured to send a fault recovery notification message to the cross-ring node from the two directions of the RPR ring after receiving the trigger notification of the status module.
一种 RPR设备, 该 RPR设备包括: 报文接收模块, 以及状态模块; 报文接收模块,用于接收故障恢复节点发送来的故障恢复通知报文, 然后向状态模块发送设置工作状态通知;  An RPR device, the RPR device includes: a message receiving module, and a status module; a message receiving module, configured to receive a fault recovery notification message sent by the fault recovery node, and then send a setting working state notification to the status module;
状态模块, 用于接收报文接收模块发来的设置工作状态通知, 设置 跨环节点的工作状态。  The status module is configured to receive a setting working state notification sent by the packet receiving module, and set a working state of the cross-ring node.
由以上技术方案可以看出, 故障恢复节点通过设置延迟时间, 从两 个 RPR环向发送故障恢复通知报文给跨环节点,延迟过后,将工作状态 设置为 normal; 在延迟期间, 跨环节点接收故障恢复节点发送的故障恢 复通知报文, 并根据状态情况设置跨环节点工作状态。 由此解决了在位 于跨环节点两端的两个故障点中的一个恢复的情况下容易出现环路的 问题, 避免因此造成的广播风暴等危害发生。 附图简要说明 It can be seen from the above technical solution that the fault recovery node sends a fault recovery notification message to the cross-ring node from the two RPR rings by setting the delay time. After the delay, the working state is set to normal; during the delay period, the cross-ring node Receives a fault recovery notification message sent by the fault recovery node, and sets the working status of the cross-ring node according to the status. Therefore, the problem that the loop is prone to occur when one of the two fault points located at both ends of the cross-ring node recovers is solved, thereby avoiding the occurrence of a broadcast storm or the like. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为现有技术 RPR环网络通信示意图;  1 is a schematic diagram of a prior art RPR ring network communication;
图 2为一个故障点故障恢复出现环路的示意图;  Figure 2 is a schematic diagram of a fault point failure recovery loop;
图 3为本发明实施例提供的 RPR中避免故障恢复后出现环路的系统 结构图;  FIG. 3 is a structural diagram of a system in which a loop occurs after fault recovery is avoided in an RPR according to an embodiment of the present invention;
图 4为本发明实施例提供的 RPR中避免故障恢复后出现环路的方法 流程图;  4 is a flowchart of a method for avoiding a loop after a fault is recovered in an RPR according to an embodiment of the present invention;
图 5为本发明实施例提供的 RPR中避免故障恢复后出现环路的方法 的详细流程图。 实施本发明的方式  FIG. 5 is a detailed flowchart of a method for avoiding a loop after failure recovery in an RPR according to an embodiment of the present invention. Mode for carrying out the invention
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合 具体实施例对本发明作进一步地详细描述。  The present invention will be further described in detail below in conjunction with the specific embodiments.
首先对本发明实施例所提供的系统做详细的说明, 如图 3所示, 图 3 为避免故障恢复后出现环路的系统结构图。 该系统主要由: 故障恢复 节点 300和跨环节点 310组成。  First, the system provided by the embodiment of the present invention is described in detail. As shown in FIG. 3, FIG. 3 is a structural diagram of a system in which a loop occurs after failure recovery. The system is mainly composed of: a fault recovery node 300 and a cross-ring node 310.
需要说明的是,本发明实施例中出现的故障恢复节点是非跨环节点。 故障恢复节点 300, 故障恢复后设置延迟时间, 然后从 RPR环的两 个方向发送故障恢复通知报文给跨环节点; 延迟时间到时, 将自身的工 作状态设置为 normal„  It should be noted that the fault recovery node that appears in the embodiment of the present invention is a non-cross-loop node. The fault recovery node 300 sets a delay time after the fault is recovered, and then sends a fault recovery notification message to the cross-ring node from the two directions of the RPR ring; when the delay time expires, the working state is set to normal„
跨环节点 310, 接收故障恢复节点发送来的故障恢复通知报文, 并 根据该报文设置自身的工作状态。  The cross-ring node 310 receives the fault recovery notification message sent by the fault recovery node, and sets its own working state according to the packet.
故障恢复节点 300和跨环节点 310之间并不一定是相邻连接的, 其 间可能有别的非跨环节点。  The failover node 300 and the cross-ring node 310 are not necessarily adjacent connections, and there may be other non-cross-ring nodes in between.
下面分别对故障恢复节点 300和跨环节点 310的结构进行说明。 故障恢复节点 300可以包括以下几部分: 延时模块 301、 文发送 模块 302、 和状态模块 303 , 其中, The structure of the failover node 300 and the cross-ring node 310 will be described below. The fault recovery node 300 may include the following parts: a delay module 301, a text sending module 302, and a status module 303, where
延时模块 301 , 接收到状态模块发送的延时通知后, 设置延迟时间, 并在延迟时间到时向状态模块 303发送到时通知。  The delay module 301, after receiving the delay notification sent by the status module, sets the delay time, and sends a notification to the status module 303 when the delay time expires.
所述设置延迟时间的目的是: 保证跨环节点 310能够在故障恢复节 点的状态恢复之前, 收到故障恢复节点 300发送的故障恢复通知报文并 #文相应状态处理。  The purpose of the set delay time is to ensure that the cross-ring node 310 can receive the fault recovery notification message sent by the fault recovery node 300 and process the corresponding state before the state of the fault recovery node is restored.
延迟时间的长度, 可以根据该故障恢复节点距离两个跨环节点最远 的跳数来设定。 例如, 如果所述跳数为 N, 则延迟时间为 N*10ms, 这 里的 10ms主要考虑了线路以及线路中各节点的处理延迟, 是一个经验 值, 另外, 此值也可以根据具体的线路情况以及各节点设备情况做不同 的设定。  The length of the delay time can be set according to the number of hops that the fault recovery node is farthest from the two cross-ring nodes. For example, if the hop count is N, the delay time is N*10ms, where 10ms mainly considers the processing delay of each line and each node in the line, which is an empirical value. In addition, this value can also be based on the specific line condition. And different settings for each node device.
报文发送模块 302,用于接收到状态模块 303的触发通知后,从 RPR 环的两个方向发送故障恢复通知报文,通知跨环节点 310故障已经恢复。  The message sending module 302 is configured to send a fault recovery notification message from two directions of the RPR ring after receiving the trigger notification of the status module 303, to notify the cross-ring node 310 that the fault has been recovered.
该故障恢复通知报文可以在现有的报文基础上进行扩充, 或者采用 新的报文类型。  The fault recovery notification message can be extended based on the existing packet or a new packet type.
状态模块 303 , 用于设置故障恢复节点 300的工作状态, 向延时模 块 301发送延时通知, 并向报文发送模块 302发送触发通知; 并且, 在 接收到延时模块 301发送的到时通知时, 将工作状态设置为 normal; 更进一步地, 故障恢复节点 300还包括:  The status module 303 is configured to set the working status of the fault recovery node 300, send a delay notification to the delay module 301, and send a trigger notification to the message sending module 302; and receive the arrival notification sent by the delay module 301. When the working state is set to normal; further, the fault recovery node 300 further includes:
检测模块 304 , 用于检测到故障恢复节点的工作状态将要变化为 normal时, 触发状态模块 303执行所述发送延时通知和发送触发通知的 操作。  The detecting module 304 is configured to: when the working state of the fault recovery node is to be changed to normal, the triggering state module 303 performs the operation of sending the delay notification and sending the trigger notification.
如果检测结果是故障恢复节点的工作状态将要变化为 normal, 则状 态模块 303向延时模块 301发送延时通知, 延时模块 301开始设置延迟 时间, 并且状态模块 303向报文发送模块 302发送触发通知。 If the detection result is that the working state of the fault recovery node is to be changed to normal, the state module 303 sends a delay notification to the delay module 301, and the delay module 301 starts to set the delay. Time, and the status module 303 sends a trigger notification to the message sending module 302.
跨环节点 310可以包括以下几部分: 报文接收模块 311、 和状态模 块 312, 其中,  The cross-ring node 310 can include the following parts: a message receiving module 311, and a state module 312, where
报文接收模块 311 , 用于接收故障恢复节点 300发送来的故障恢复 通知报文, 然后向状态模块 312发送设置工作状态通知。  The message receiving module 311 is configured to receive the fault recovery notification message sent by the fault recovery node 300, and then send a setting working state notification to the status module 312.
状态模块 312, 接收报文接收模块 311发送的设置工作状态通知, 设置跨环节点 310的工作状态。  The status module 312 receives the set working status notification sent by the message receiving module 311, and sets the working status of the cross-ring node 310.
更进一步地, 跨环节点 310还包括判断模块 313:  Further, the cross-ring node 310 further includes a determining module 313:
判断模块 313 , 用于判断跨环节点 310的工作状态, 并判断与它相 连的跨环节点的工作状态, 以及这两个跨环节点优先级的高低; 并将这 些判断的结果发送给状态模块 312。  The determining module 313 is configured to determine the working state of the cross-ring node 310, determine the working state of the cross-ring node connected thereto, and the priority of the two cross-ring nodes; and send the result of the judgment to the status module. 312.
状态模块 312根据判断模块 312发送过来的判断的结果, 设置跨环 节点 310的工作状态。  The status module 312 sets the operational status of the cross-loop node 310 based on the result of the determination sent by the determination module 312.
如果跨环节点 310不是 master状态,则不改变跨环节点的工作状态; 如果跨环节点 310是 master状态, 且只在一个 RPR环上有相连的 master状态的跨环节点, 并且该跨环节点的优先级低, 则将跨环节点设 置为非 master状态的其他状态;  If the cross-ring node 310 is not in the master state, the working state of the cross-ring node is not changed; if the cross-ring node 310 is in the master state, and there is only a cross-ring node of the connected master state on one RPR ring, and the cross-ring node If the priority is low, the cross-ring node is set to other states that are not in the master state;
如果该跨环节点 310是 master状态, 并且只在一个 RPR环上有相 连的 master状态的跨环节点, 并且该跨环节点的优先级高, 则不改变该 跨环节点的工作状态;  If the cross-ring node 310 is in the master state, and there is only a cross-ring node of the associated master state on one RPR ring, and the priority of the cross-ring node is high, the working state of the cross-ring node is not changed;
如果该跨环节点 310是 master状态, 并且在两个 RPR环上没有相 连的 master状态的跨环节点, 则不改变该跨环节点的工作状态;  If the cross-ring node 310 is in the master state, and there is no cross-ring node of the associated master state on the two RPR rings, the working state of the cross-ring node is not changed;
特殊地, 如果该跨环节点 310只在一个 RPR环上有相连的 master 状态的跨环节点, 且它们的优先级相同, 那么可以按照设备 ID来决定 将谁设置为非 master状态的其他工作状态, 其先后顺序按照规定进行。 以上是对本发明所提供的系统所进行的详细描述, 下面对本发明所 提供的方法进行描述。如图 4所示, 图 4为 RPR中避免故障恢复后出现 环路的方法流程图。在两个 RPR环上的一个环同时出现两个故障点的情 况下, 故障恢复后采用图 4所示的流程来避免当其中一个故障点恢复可 能引起的环路问题,其中,所述两个故障点分别在一个跨环节点的两端。 该流程主要包括: Specifically, if the cross-ring node 310 has only the connected master-state cross-ring nodes on one RPR ring, and their priorities are the same, then the device ID can be used to determine who is set to other non-master state. The sequence is in accordance with the regulations. The above is a detailed description of the system provided by the present invention, and the method provided by the present invention will be described below. As shown in FIG. 4, FIG. 4 is a flowchart of a method for avoiding a loop after failure recovery in an RPR. In the case where two rings on two RPR rings have two fault points at the same time, after the fault recovery, the flow shown in FIG. 4 is adopted to avoid the loop problem that may be caused when one of the fault points is recovered, wherein the two The fault points are at each end of a cross-ring node. The process mainly includes:
步骤 401: 故障恢复后, 故障恢复节点设置延迟时间, 然后从 RPR 环的两个方向发送故障恢复通知 ^¾文给跨环节点。  Step 401: After the fault is recovered, the fault recovery node sets the delay time, and then sends a fault recovery notification from the two directions of the RPR ring to the cross-ring node.
其中, 所述设置延迟时间的目的是: 保证跨环节点 310能够在所述 延迟时间内, 也就是故障恢复节点的状态恢复之前, 收到故障恢复节点 300发送的故障恢复通知报文并做相应状态处理。  The purpose of setting the delay time is: ensuring that the cross-ring node 310 can receive the fault recovery notification message sent by the fault recovery node 300 and perform correspondingly before the state of the delay recovery node is restored. State processing.
延迟时间的长度, 可以根据该故障恢复节点距离两个跨环节点最远 的跳数来设定。 例如, 如果所述跳数为 N, 则延迟时间为 N*10ms, 这 里的 10ms主要考虑了线路以及线路中各节点的处理延迟, 是一个经验 值。其中,所述距离跨环节点的跳数可以根据 RPR环上的跨环节点以及 非跨环节点的各 MAC地址信息来确定。 另外, 所述延迟时间也可以在 各非跨环节点中预先进行手工配置。  The length of the delay time can be set according to the number of hops that the fault recovery node is farthest from the two cross-ring nodes. For example, if the hop count is N, the delay time is N*10ms, and 10ms here mainly considers the processing delay of the line and each node in the line, which is an empirical value. The hop count of the distance cross-ring node may be determined according to the MAC address information of the cross-ring node and the non-cross-ring node on the RPR ring. In addition, the delay time may also be manually configured in advance in each non-cross-ring node.
其中, 该故障恢复通知^艮文是用来通知两个跨环节点故障恢复了; 更优地, 在延迟期间, 为了避免发送的故障恢复通知报文丢失, 可 以多次发送故障恢复通知报文, 还可以要求对方回复响应。  The fault recovery notification is used to notify the two cross-ring nodes that the fault is recovered. More preferably, during the delay, in order to avoid the lost fault recovery notification packet, the fault recovery notification packet may be sent multiple times. You can also ask the other party to respond.
该故障恢复通知报文可以在现有的报文基础上进行扩充, 或者采用 新的报文类型。  The fault recovery notification message can be extended based on the existing packet or a new packet type.
步骤 402: 在延迟期间内, 跨环节点接收到故障恢复节点发送来的 故障恢复通知报文后, 设置跨环节点的工作状态。  Step 402: After receiving the fault recovery notification message sent by the fault recovery node, the cross-ring node sets the working state of the cross-ring node.
所述设置跨环节点的工作状态为根据该跨环节点本身的状态, 与它 相连的其它跨环节点状态, 以及它们之间的优先级高低来设置跨环节点 的工作状态。 可以有以下几种情况: Setting the working state of the cross-ring node according to the state of the cross-ring node itself, and The status of other cross-ring nodes, and the priority between them, to set the working state of the cross-ring nodes. There are several situations:
1 )如果该跨环节点不是 master状态, 则不改变跨环节点的工作状 态。  1) If the cross-ring node is not in the master state, the working state of the cross-ring node is not changed.
因为如果该跨环节点不是 master状态, 就不负责跨环业务的转发, 也就不会形成环路, 所以该跨环节点的工作状态不发生改变。  Because if the cross-ring node is not in the master state, it is not responsible for the forwarding of the cross-ring service, and thus no loop is formed, so the working state of the cross-ring node does not change.
2 )如果该跨环节点状态是 master状态, 并且在两个 RPR环上都没 有相连的 master状态的跨环节点, 则不改变该跨环节点的工作状态。  2) If the state of the cross-ring node is the master state, and there is no cross-ring node of the connected master state on both RPR rings, the working state of the cross-ring node is not changed.
因为此种状况包括两种情况: 其一, 该跨环节点是 master状态, 另 一个跨环节点是非 master状态的其他状态,那么不会有形成环路的情况 发生, 所以不改变该跨环节点的工作状态。 其二, 两个跨环节点都是 master状态, 但是两个跨环节点之间都存在故障点, 也就是在两个环上 的跨环节点两端都存在故障点, 也就是两个环上有四个故障点, 那么有 一个故障点恢复时,不会形成环路,所以不改变该跨环节点的工作状态。  Because this situation includes two situations: First, the cross-ring node is the master state, and the other cross-ring node is the other state of the non-master state, then there is no loop formation, so the cross-ring node is not changed. Working status. Second, the two cross-ring nodes are in the master state, but there are fault points between the two cross-ring nodes, that is, there are fault points on both ends of the cross-ring nodes on the two rings, that is, on the two rings. There are four fault points, then when there is a fault point recovery, no loop will be formed, so the working state of the cross-ring node will not be changed.
3 )如果该跨环节点是 master状态, 并且只在一个 RPR环上有相连 的 master状态的跨环节点, 且该跨环节点的优先级高, 则不改变该跨环 节点的工作状态。  3) If the cross-ring node is in the master state and there is a cross-ring node with a connected master state on only one RPR ring, and the priority of the cross-ring node is high, the working state of the cross-ring node is not changed.
4 )如果该跨环节点是 master状态, 并且只在一个 RPR环上有相连 的 master状态的跨环节点, 且该跨环节点的优先级低, 则将该跨环节点 的工作状态设置为非 master状态的其他状态。  4) If the cross-ring node is in the master state and there is a cross-ring node with a connected master state on only one RPR ring, and the priority of the cross-ring node is low, the working state of the cross-ring node is set to non- Other states of the master state.
3 )和 4 )两种情况都是两跨环节点之间有一个故障节点, 因为两跨 环节点都是 master状态, 就容易在环上形成如图 2所示的环路, 所以就 按照优先级将两个跨环节点中的一个设置为 master状态, 另一个设置为 非 master状态的其他状态, 就不会形成环路了。  3) and 4) Both cases have a faulty node between the two spanning nodes. Because both spanning nodes are in the master state, it is easy to form a loop as shown in Figure 2 on the ring, so The level sets one of the two cross-ring nodes to the master state, and the other sets the other states to the non-master state, and no loop is formed.
步骤 403 : 延迟时间到时后, 故障恢复节点将工作状态设置为 normal Step 403: After the delay time expires, the fault recovery node sets the working state to Normal
以上是本发明所提供方法的主要流程,下面对该流程做详细的描述, 如图 5所示, 图 5为避免故障恢复后出现环路的方法的详细流程图。 该 流程包括以下步骤:  The above is the main flow of the method provided by the present invention. The flow is described in detail below. As shown in FIG. 5, FIG. 5 is a detailed flowchart of a method for avoiding a loop after failure recovery. The process includes the following steps:
步骤 501 : 故障恢复后, 判断故障恢复节点的工作模式是否将要设 置为 normal。 如果是, 执行步骤 502; 如果否, 则结束流程。  Step 501: After the fault is recovered, it is determined whether the working mode of the fault recovery node is to be set to normal. If yes, go to step 502; if no, end the process.
步骤 502: 故障恢复节点设置延迟时间, 然后从 RPR环的两个方向 发送故障恢复通知 文给跨环节点, 来通知跨环节点故障已经恢复。  Step 502: The fault recovery node sets a delay time, and then sends a fault recovery notification message to the cross-ring node from two directions of the RPR ring to notify the cross-ring node that the fault has been recovered.
其中, 所述延迟时间的目的是为了保证故障恢复节点发送的故障恢 复通知报文能够被跨环节点及时收到并设置跨环节点的工作状态。  The purpose of the delay time is to ensure that the fault recovery notification message sent by the fault recovery node can be received by the cross-ring node in time and set the working state of the cross-ring node.
其中, 该故障恢复通知^艮文是用来通知两个跨环节点故障恢复了; 更优地, 在延迟期间, 为了避免发送的故障恢复通知报文丢失, 可 以多次发送故障恢复通知 文。  The fault recovery notification is used to notify the two cross-ring nodes that the fault is recovered. More preferably, during the delay, in order to avoid the lost fault recovery notification message, the fault recovery notification may be sent multiple times.
该故障恢复通知报文可以在现有的报文基 上进行扩充, 或者采用 新的报文类型。  The fault recovery notification message can be extended on the existing message base or a new packet type.
步骤 503:跨环节点接收故障恢复节点发送来的故障恢复通知报文。 该步骤是由图 3系统中的报文接收模块 311完成的。  Step 503: The cross-ring node receives the fault recovery notification message sent by the fault recovery node. This step is performed by the message receiving module 311 in the system of Fig. 3.
步骤 504:判断跨环节点是否为 master状态,如果是,执行步骤 505; 如果否, 则执行步骤 507。  Step 504: Determine whether the cross-ring node is in the master state. If yes, go to step 505; if no, go to step 507.
步骤 505: 判断是否该跨环节点只在一个 RPR环上有相连的 master 状态的跨环节点, 且本跨环节点优先级低, 如果是, 执行步骤 506; 如 果否, 执行步骤 507。  Step 505: Determine whether the cross-ring node has a connected cross-ring node in the master state on only one RPR ring, and the cross-ring node has a low priority. If yes, go to step 506; if no, go to step 507.
在该步骤中有以下几种情况:如果该跨环节点在两个 RPR环上都没 有相连的 master状态的跨环节点, 则执行步骤 507;  In this step, there are the following cases: if the cross-ring node does not have a connected cross-ring node in the master state on both RPR rings, step 507 is performed;
如果该跨环节点只在一个 RPR环上有相连的 master状态的跨环节 点, 并且该跨环节点优先级高, 则执行步骤 507; If the cross-ring node has only a connected master state cross-link on one RPR ring Point, and the cross-ring node has a high priority, step 507 is performed;
如果该跨环节点只在一个 RPR环上有相连的 master状态的跨环节 点, 且本跨环节点优先级低, 如果是, 执行步骤 506。  If the cross-ring node has a cross-link point of the connected master state on only one RPR ring, and the cross-ring node has a low priority, if yes, go to step 506.
更进一步地, 如果该跨环节点只在一个 RPR环上有相连的 master 状态的跨环节点, 且它们的优先级相同, 那么可以按照设备 ID来决定 谁退出 master状态, 其先后顺序按照规定进行。  Further, if the cross-ring node has only the connected master state cross-ring nodes on one RPR ring, and their priorities are the same, then the device ID can be used to determine who exits the master state, and the sequence is performed according to regulations. .
步骤 506: 将该跨环节点的工作状态设置为非 master状态的其他状 态。  Step 506: Set the working state of the cross-ring node to other states that are not in the master state.
步骤 507 : 延迟时间到时, 将故障恢复节点的工作状态设置为 normal。  Step 507: When the delay time expires, set the working state of the fault recovery node to normal.
由以上描述可见, 故障恢复节点通过设置延迟时间, 从两个 RPR环 向发送故障恢复通知报文给跨环节点, 延迟过后, 将工作状态设置为 normal; 在延迟期间, 跨环节点接收故障恢复节点发送来的故障恢复通 知报文, 并根据状态情况设置跨环节点的工作状态。 本发明所提供的方 法和系统, 解决了在位于跨环节点两端的两个故障点中的一个恢复的情 况下容易出现的环路问题。  As can be seen from the above description, the fault recovery node sends a fault recovery notification message to the cross-ring node from the two RPR rings by setting the delay time. After the delay, the working state is set to normal; during the delay, the cross-ring node receives the fault recovery. The fault recovery notification message sent by the node, and the working state of the cross-ring node is set according to the status. The method and system provided by the present invention solves the loop problem that is prone to occur when one of the two fault points located at both ends of the cross-ring node recovers.
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡 在本发明的精神和原则之内所作的任何修改、 等同替换和改进等, 均应 包含在本发明的保护范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.

Claims

权利要求书 Claim
1、一种避免故障恢复后出现环路的方法,其特征在于,该方法包括: 故障恢复后, 故障恢复节点设置延迟时间, 并从弹性分组环 RPR环 的两个方向发送故障恢复通知报文给跨环节点; 延迟时间到时, 故障恢 复节点将工作状态设置为正常状态 normal;  A method for avoiding a loop after a fault is recovered, the method comprising: after the fault is recovered, the fault recovery node sets a delay time, and sends a fault recovery notification message from two directions of the RRP ring of the elastic packet ring. To the cross-ring node; when the delay time expires, the fault recovery node sets the working state to the normal state normal;
跨环节点接收到故障恢复节点发来的故障恢复通知报文后 , 设置跨 环节点的工作状态。  After receiving the fault recovery notification message sent by the fault recovery node, the cross-ring node sets the working status of the cross-ring node.
2、根据权利要求 1所述的方法, 其特征在于, 所述故障恢复节点设 置延迟时间之前进一步包括: 判断故障恢复节点是否要将工作状态设置 为 normal; 如果是, 则继续执行设置延迟时间的步骤。  The method according to claim 1, wherein the determining, by the fault recovery node, the delay time further comprises: determining whether the fault recovery node is to set the working state to normal; if yes, continuing to set the delay time step.
3、根据权利要求 1所述的方法, 其特征在于, 所述故障恢复节点所 在的 RPR环上存在两个跨环节点;  The method according to claim 1, wherein the fault recovery node has two cross-ring nodes on the RPR ring;
所述延迟时间根据所述故障恢复节点距离两个跨环节点最远的跳数 确定。  The delay time is determined according to the number of hops that the fault recovery node is furthest from the two cross-ring nodes.
4、 根据权利要求 1所述的方法, 其特征在于, 所述从 RPR环的两 个方向发送故障恢复通知 文给跨环节点为:从 RPR环的两个方向多次 发送故障恢复通知报文给跨环节点。  The method according to claim 1, wherein the sending the fault recovery notification message to the cross-ring node from the two directions of the RPR ring is: sending the fault recovery notification message multiple times from the two directions of the RPR ring. Give a cross-ring node.
5、根据权利要求 1所述的方法, 其特征在于, 所述设置跨环节点的 工作状态包括: 根据该跨环节点当前的自身状态设置该跨环节点的工作 状态。  The method according to claim 1, wherein the setting the working state of the cross-ring node comprises: setting an operating state of the cross-ring node according to a current state of the cross-ring node.
6、根据权利要求 5所述的方法, 其特征在于, 所述设置跨环节点的 工作状态进一步包括: 根据该跨环节点的优先级, 以及在 RPR环上与该 跨环节点相连的另一跨环节点的工作状态和优先级设置该跨环节点的 工作状态。  The method according to claim 5, wherein the setting the working state of the cross-ring node further comprises: according to the priority of the cross-ring node, and another one connected to the cross-ring node on the RPR ring The working state and priority of the cross-ring node sets the working state of the cross-ring node.
7、根据权利要求 5所述的方法, 其特征在于, 所述根据该跨环节点 当前的自身状态设置该跨环节点的工作状态包括: 如果该跨环节点不是 master状态, 则不改变该跨环节点的工作状态。 The method according to claim 5, wherein the according to the cross-ring node The current self state setting the working state of the cross-ring node includes: if the cross-ring node is not the master state, the working state of the cross-ring node is not changed.
8、根据权利要求 6所述的方法, 其特征在于, 所述根据该跨环节点 当前的自身状态设置该跨环节点的工作状态包括: 如果该跨环节点当前 是 master状态, 并且只在一个 RPR环上有相连的 master状态的跨环节 点, 并且该跨环节点的优先级低, 则该跨环节点退出 master状态;  The method according to claim 6, wherein the setting the working state of the cross-ring node according to the current state of the cross-ring node comprises: if the cross-ring node is currently in the master state, and only one A cross-ring node with a connected master state on the RPR ring, and the cross-ring node has a low priority, and the cross-ring node exits the master state;
如果该跨环节点当前是 master状态, 并且只在一个 RPR环上有相 连的 master状态的跨环节点, 并且该跨环节点的优先级高, 则该跨环节 点状态不发生改变;  If the cross-ring node is currently in the master state, and there is only a cross-ring node of the associated master state on one RPR ring, and the priority of the cross-ring node is high, the state of the cross-link point does not change;
如果该跨环节点当前是 master状态, 并且在两个 RPR环上没有相 连的 master状态的跨环节点, 则该跨环节点状态不发生改变;  If the cross-ring node is currently in the master state, and there is no cross-ring node of the associated master state on the two RPR rings, the state of the cross-ring node does not change;
如果该跨环节点当前是 master状态, 并且只在一个 RPR环上有相 连的 master状态的跨环节点, 并且该跨环节点的优先级相同, 则根据跨 环节点的设备 ID决定该跨环节点的状态。  If the cross-ring node is currently in the master state, and there is only a cross-ring node of the connected master state on one RPR ring, and the priority of the cross-ring node is the same, the cross-ring node is determined according to the device ID of the cross-ring node. status.
9、 一种 RPR中避免故障恢复后出现环路的系统, 其特征在于, 该 系统包括故障恢复节点和跨环节点;  9. A system for avoiding loops after failure recovery in an RPR, characterized in that the system comprises a fault recovery node and a cross-ring node;
所述故障恢复节点, 用于在故障恢复后设置延迟时间, 并从 RPR环 的两个方向发送故障恢复通知报文给跨环节点; 延迟时间到时, 将自身 的工作 态设置为 normal;  The fault recovery node is configured to set a delay time after the fault is recovered, and send a fault recovery notification message to the cross-ring node from two directions of the RPR ring; when the delay time expires, set the working state to normal;
所述跨环节点,用于接收故障恢复节点发送来的故障恢复通知报文, 并根据该报文设置自身的工作状态。  The cross-ring node is configured to receive a fault recovery notification message sent by the fault recovery node, and set a working state according to the packet.
10、 一种 RPR设备, 其特征在于, 该 RPR设备包括: 状态模块, 延时模块, 以及报文发送模块;  An RPR device, the RPR device includes: a status module, a delay module, and a message sending module;
所述状态模块, 用于向延时模块发送延时通知, 并向报文发送模块 发送触发通知; 在接收到延迟模块发送的到时通知后将工作状态设置为 normal; The status module is configured to send a delay notification to the delay module, and send a trigger notification to the message sending module; after receiving the arrival notification sent by the delay module, set the working status to Normal;
所述延时模块, 用于接收状态模块发送的延时通知后, 设置延迟时 间, 并在延迟时间到时向状态模块发送到时通知;  The delay module is configured to: after receiving the delay notification sent by the status module, set a delay time, and send a notification to the status module when the delay time expires;
所述报文发送模块, 用于接收到状态模块的触发通知后,从 RPR环 的两个方向发送故障恢复通知报文给跨环节点。  The packet sending module is configured to send a fault recovery notification message to the cross-ring node from the two directions of the RPR ring after receiving the trigger notification of the status module.
11、 根据权利要求 10所述的 RPR设备, 其特征在于, 所述 RPR设 备进一步包括: 检测模块;  The RPR device according to claim 10, wherein the RPR device further comprises: a detecting module;
所述检测模块, 用于检测到故障恢复节点的工作状态将要变化为 normal时,触发状态模块执行所述发送延时通知和发送触发通知的操作。  The detecting module is configured to: when the working state of the fault recovery node is to be changed to normal, the triggering state module performs the operation of sending the delay notification and sending the trigger notification.
12、 一种 RPR设备, 其特征在于, 该 RPR设备包括: 报文接收模 块, 以及状态模块;  An RPR device, the RPR device comprising: a message receiving module, and a status module;
所述报文接收模块, 用于接收故障恢复节点发送来的故障恢复通知 报文, 然后向状态模块发送设置工作状态通知;  The message receiving module is configured to receive a fault recovery notification message sent by the fault recovery node, and then send a setting working state notification to the status module;
所述状态模块, 用于接收报文接收模块发来的设置工作状态通知, 设置跨环节点的工作状态。  The status module is configured to receive a setting working state notification sent by the packet receiving module, and set a working state of the cross-ring node.
13、 根据权利要求 13所述的 RPR设备, 其特征在于, 所述 RPR设 备进一步包括: 判断模块;  The RPR device according to claim 13, wherein the RPR device further comprises: a determining module;
所述判断模块, 用于判断跨环节点的工作状态以及优先级, 并判断 与它相连的跨环节点的工作状态以及优先级的高低, 并将判断的结果发 送给状态模块;  The determining module is configured to determine a working state and a priority of the cross-ring node, determine a working state of the cross-ring node connected thereto, and a priority level, and send the result of the judgment to the status module;
所述状态模块, 用于根据判断模块发来的判断的结果, 设置跨环节 点的工作状态。  The status module is configured to set the working status of the cross-link point according to the result of the judgment sent by the determining module.
PCT/CN2007/070438 2006-11-27 2007-08-09 A method, system and resilient packet ring device for avoiding loop after fault recovery WO2008064585A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB2006101403556A CN100464528C (en) 2006-11-27 2006-11-27 Method and system for preventing circuit loop after failure recovery
CN200610140355.6 2006-11-27

Publications (1)

Publication Number Publication Date
WO2008064585A1 true WO2008064585A1 (en) 2008-06-05

Family

ID=38076733

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/070438 WO2008064585A1 (en) 2006-11-27 2007-08-09 A method, system and resilient packet ring device for avoiding loop after fault recovery

Country Status (2)

Country Link
CN (1) CN100464528C (en)
WO (1) WO2008064585A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217445B (en) * 2008-01-21 2011-07-06 杭州华三通信技术有限公司 A method of loop generation protection and Ethernet ring system
CN101615989A (en) * 2008-06-26 2009-12-30 中兴通讯股份有限公司 Ethernet dual-grouping network and mac address table method for refreshing thereof
CN101997753B (en) * 2009-08-20 2015-06-03 中兴通讯股份有限公司 Method and system for protecting double-transmission mechanism of ring network
US10007586B2 (en) 2016-01-08 2018-06-26 Microsoft Technology Licensing, Llc Deferred server recovery in computing systems

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030012129A1 (en) * 2001-07-10 2003-01-16 Byoung-Joon Lee Protection system and method for resilient packet ring (RPR) interconnection
US20030117946A1 (en) * 2001-12-26 2003-06-26 Alcatel Method to protect RPR networks of extended topology, in particular RPR ring-to-ring and meshed backbone networks, and relating RPR network
US20060209859A1 (en) * 2005-03-17 2006-09-21 Fujitsu Limited Inter-ring connection method and device
CN1863126A (en) * 2005-05-13 2006-11-15 中兴通讯股份有限公司 Method for determining resilient packet ring default ring

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ITMI20012088A1 (en) * 2001-10-10 2003-04-10 Cit Alcatel METHOD FOR PROPAGING FAULT INFORMATION IN A RPR NETWORK AND RELATED TYPE OF RPR PACKAGE
CN1266896C (en) * 2002-08-29 2006-07-26 华为技术有限公司 Fast replacing method of elastic group loop network
CN1773952A (en) * 2004-11-10 2006-05-17 华为技术有限公司 Bandwidth gurantee method for communication equipment or high-priority messaging during network at fault

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030012129A1 (en) * 2001-07-10 2003-01-16 Byoung-Joon Lee Protection system and method for resilient packet ring (RPR) interconnection
US20030117946A1 (en) * 2001-12-26 2003-06-26 Alcatel Method to protect RPR networks of extended topology, in particular RPR ring-to-ring and meshed backbone networks, and relating RPR network
US20060209859A1 (en) * 2005-03-17 2006-09-21 Fujitsu Limited Inter-ring connection method and device
CN1863126A (en) * 2005-05-13 2006-11-15 中兴通讯股份有限公司 Method for determining resilient packet ring default ring

Also Published As

Publication number Publication date
CN100464528C (en) 2009-02-25
CN1968174A (en) 2007-05-23

Similar Documents

Publication Publication Date Title
JP4899959B2 (en) VPN equipment
US7944815B2 (en) System and method for network recovery from multiple link failures
EP2458797B1 (en) Method, device and system for updating ring network topology information
CN100369436C (en) Looped network and its protecting method
WO2010045832A1 (en) Method and apparatus for protecting link aggregation group of ethernet ring
CN100450036C (en) Method and apparatus for preventing loop when RRPP and partial STP network damage recovery
CN101345683B (en) Protocol packet transmission control method of Ethernet automatic protection switch system
WO2008046358A1 (en) A method and device to realize punch-through of point-to-multipoint network link status
WO2008089701A1 (en) Method, device and system for ring protection
WO2012000234A1 (en) Method, apparatus and system for fast switching between links
WO2011120438A1 (en) Method, system and device for protecting multicast in communication network
WO2009082923A1 (en) Link fault processing method and data forwarding device
WO2014026512A1 (en) Processing method for applying rapid spanning tree protocol to single ring network topology
JP2009524332A (en) VPLS failure protection for ring networks
WO2008089633A1 (en) Method and apparatus for protecting ether ring net
JP2002330152A (en) Spanning tree controller and method at the time of trouble/increase
JP2007174119A (en) Layer 2 network
WO2012171378A1 (en) Method and router for preventing flow interruption caused by failover from vpls to l3
WO2011095101A1 (en) Linear 1: n protection method, device and system for packet transport network
WO2011076024A1 (en) Transmission multi-protocol label switching network system and link protection method
CN102238067B (en) Switching method and device on Rapid Ring Protection Protocol (RRPP) ring
WO2010031295A1 (en) Control method for ethernet failure recovery
WO2012000243A1 (en) Protection switching method for ethernet automatic protection switching (eaps) ring network and master node in eaps ring network
WO2008064585A1 (en) A method, system and resilient packet ring device for avoiding loop after fault recovery
WO2008106874A1 (en) Two node fault handling method and system for two loop-span rpr

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

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

Country of ref document: EP

Kind code of ref document: A1