CN101136830B - Loop prevention method after RPR bridge fault recovery - Google Patents
Loop prevention method after RPR bridge fault recovery Download PDFInfo
- Publication number
- CN101136830B CN101136830B CN2006100374378A CN200610037437A CN101136830B CN 101136830 B CN101136830 B CN 101136830B CN 2006100374378 A CN2006100374378 A CN 2006100374378A CN 200610037437 A CN200610037437 A CN 200610037437A CN 101136830 B CN101136830 B CN 101136830B
- Authority
- CN
- China
- Prior art keywords
- rpr
- ring
- bridge
- cross
- fault
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/42—Loop networks
- H04L12/437—Ring fault isolation or reconfiguration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
本发明公开了一种RPR桥故障恢复后的环路避免方法,包括以下步骤:A.在获知RPR桥环中的故障点的故障恢复正常后,将故障恢复节点的最大传输单元值设为一个预定值,并向所述RPR桥环中跨环桥设备发送用于通知该故障点的故障已恢复的通知报文;B.所述RPR桥环中的各RPR跨环桥设备接收故障恢复节点所发送的通知报文,检测各自RPR跨环桥设备的工作状态,仅使其中一个主用RPR跨环桥设备保持为主用状态。本发明通过故障恢复节点和跨环桥设备的配合,确保跨环业务的正确转发,解决了故障点恢复后可能出现的环路问题。
The invention discloses a method for avoiding a loop after a RPR bridge fault recovers, comprising the following steps: A. After learning that the fault of the fault point in the RPR bridge ring returns to normal, set the maximum transmission unit value of the fault recovery node to one Predetermined value, and send a notification message for notifying the failure of the point of failure to the cross-ring bridge device in the RPR bridge ring; B. each RPR cross-ring bridge device in the RPR bridge ring receives the fault recovery node The sent notification message detects the working status of the respective RPR cross-ring bridge devices, and only keeps one of the active RPR cross-ring bridge devices in the active state. The invention ensures the correct forwarding of the cross-ring business through the cooperation of the fault recovery node and the cross-ring bridge equipment, and solves the loop problem that may occur after the fault point is restored.
Description
技术领域technical field
本发明涉及网络通信技术领域,尤其涉及一种RPR桥的故障恢复后的环路避免方法。 The invention relates to the technical field of network communication, in particular to a method for avoiding loops after fault recovery of an RPR bridge. the
背景技术Background technique
弹性分组数据环(Resilient Packet Ring,RPR)技术是为了满足基于分组城域网的要求而设计的新型网络体系结构和技术;是一种由分组交换节点组成的环形网络,相邻的节点通过一对光纤连接;其网络拓扑是基于两个相反方向传输的环。RPR具有以下几个方面的技术特点:1、传输带宽的有效复用;2、快速的环桥保护倒换功能;3、拓扑的自动发现。 Resilient Packet Ring (RPR) technology is a new network architecture and technology designed to meet the requirements of packet-based MAN; it is a ring network composed of packet switching nodes, and adjacent nodes pass through a For fiber optic connections; its network topology is based on two rings transmitting in opposite directions. RPR has the following technical characteristics: 1. Effective multiplexing of transmission bandwidth; 2. Fast ring-bridge protection switching function; 3. Automatic topology discovery. the
应用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 formed by applying the RPR technology is called an RPR ring network, which can be called an RPR ring for short. The packet switching devices on the ring network are called RPR devices. When the RPR device uses the 48-bit MAC address used in Ethernet as the address identifier to uniquely identify the RPR device and carries Layer 2 Ethernet packets through Ethernet Over RPR, the RPR ring can also be called an RPR bridge ring Or bridge mode RPR ring. The devices on the RPR bridge ring can also be called RPR bridge devices, and the MAC addresses on the RPR bridge devices can also be called RPR MAC addresses. As shown in FIG. 1 , a schematic structural diagram of two RPR bridge rings intersecting two RPR bridge devices is described. the
在图1中存在两个RPR桥环,分别为RPR桥环1和RPR桥环2。在每个RPR桥环上分别存在4个RPR桥设备,同时RPR桥环1和RPR桥环2相交于RPR跨环桥设备1和跨环桥设备2。其中,所述的跨环桥设备为同时跨接于两个RPR桥环上,负责两个RPR桥环之间数据报文的转发。为了简化描述,在下面的描述中将RPR跨环桥设备简称为跨环桥设备。In FIG. 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 RPR bridge ring 1 and RPR bridge ring 2 intersect at RPR cross-ring bridge device 1 and cross-ring bridge device 2 . Wherein, the cross-ring bridge device is connected to two RPR bridge rings at the same time, and is responsible for forwarding data messages between the two RPR bridge rings. In order to simplify the description, the RPR cross-ring bridge device is simply referred to as the cross-ring bridge device in the following description.
在RPR桥环上,由于RPR桥环上承载的是二层以太网报文,并且RPR桥环之间的报文是通过地址解析协议(MAC)进行转发,因此在两个RPR桥环相交的RPR跨环桥设备就会产生回路,也即在如图1所示的RPR跨环桥设备1和RPR跨环桥设备2之间产生回路,出现广播风暴现象。 On the RPR bridge ring, because the RPR bridge ring carries Layer 2 Ethernet packets, and the packets between the RPR bridge rings are forwarded through the Address Resolution Protocol (MAC), when two RPR bridge rings intersect The RPR cross-ring bridge device will generate a loop, that is, a loop will be generated between the RPR cross-ring bridge device 1 and the RPR cross-ring bridge device 2 as shown in FIG. 1 , and a broadcast storm phenomenon occurs. the
当前已有的方法是通过生成树协议(Spanning Tree Protocol,STP)、或者快速生成树协议(Rapid Spanning Tree Protocol,RSTP)协议进行链路裁减,生成无环路的最小生成树,然后依据最小生成树来转发在二层以太网上的报文,以防止二层网络通信形成环路。当二层网络上出现设备或者链路故障的时候,STP或者RSTP会重新进行最小生成树计算,获得一个新的转发树,从而确保了故障发生之后,保护业务正常工作。 The current existing method is to cut links through Spanning Tree Protocol (STP) or Rapid Spanning Tree Protocol (RSTP) to generate a loop-free minimum spanning tree, and then generate a minimum spanning tree based on the minimum Trees are used to forward packets on Layer 2 Ethernet to prevent loops in Layer 2 network communication. When a device or link fails on the Layer 2 network, STP or RSTP will recalculate the minimum spanning tree to obtain a new forwarding tree, thus ensuring normal operation of protection services after a failure occurs. the
上述方法虽然可以解决跨环桥设备之间可能出现的问题,但是这种方法却因为STP、RSTP的收敛速度比较慢,即使RSTP也只能达到秒级的收敛速度水平,使得网络通信时间延长,加重网络通信的负荷。 Although the above method can solve the problems that may occur between the cross-ring bridge devices, this method is because the convergence speed of STP and RSTP is relatively slow, and even RSTP can only reach the level of second-level convergence speed, which prolongs the network communication time. Increase the load of network communication. the
现在也出了一种RPR桥冗余保护方法,该方法是通过引入了一种新的协议类型,利用该协议的交互以及单环RPR保护倒换的触发,可以达到100ms级的保护倒换能力。 Now there is also a RPR bridge redundancy protection method. This method introduces a new protocol type and utilizes the interaction of the protocol and the triggering of single-ring RPR protection switching to achieve a protection switching capability of 100 ms. the
但是当一个环中在两个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-ring bridge devices in a ring, and respectively occur on both sides of an RPR cross-ring bridge device, as shown in Figure 2, in order to ensure that the two bridge rings Any point between (RPR bridge ring 1 and RPR bridge ring 2) is reachable, and both RPR cross-ring bridge devices need to be responsible for forwarding cross-ring services (both are in active state). In this case, when one of the node faults (such as fault point 1) recovers, 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 be Change to a normal state, and the faulty point can forward data packets after recovery. Since the RPR cross-ring bridge device cannot immediately perceive this change and cannot immediately change its working status, the two RPR cross-ring bridge devices are still in the master state and are responsible for forwarding data services across the ring bridge , so that the broadcast loop problem will occur, as shown in Figure 3. the
在前面提到的现有的一种RPR桥冗余保护方法中,其是采用对RPR环上刚恢复正常的原故障点,延迟一段时间再进行报文转发或者进行广播数据 报文的转发。而对于当出现两个故障点的情形,现有的这种方案中没有提出一个明确的解决措施。 In the aforementioned existing a kind of RPR bridge redundancy protection method, it is to adopt to the original point of failure that has just returned to normal on the RPR ring, delay a period of time and then carry out message forwarding or carry out the forwarding of broadcast data message. As for the situation when two failure points appear, there is no clear solution proposed in this existing solution. the
发明内容Contents of the invention
鉴于上述现有技术所存在的问题,本发明的目的是提供一种RPR桥故障恢复后的环路避免方法,该方法解决在RPR相交环的应用场景下,一个RPR桥环上同时出现了两个故障点的情况后其中一个故障点恢复时可能产生的广播环路问题。 In view of the problems existing in the above-mentioned prior art, the purpose of the present invention is to provide a method for avoiding loops after an RPR bridge failure recovers. The broadcast loop problem that may occur when one of the fault points recovers after the situation of two fault points. the
为了实现上述目的,本发明提供了一种RPR桥故障恢复后的环路避免方法,该方法包括以下步骤: In order to achieve the above object, the present invention provides a method for avoiding loops after RPR bridge fault recovery, the method may further comprise the steps:
A.在获知RPR桥环中的故障点的故障恢复后,将故障恢复节点的最大传输单元值设为一个预定值,并向所述RPR桥环中跨环桥设备发送用于通知该故障点的故障已恢复的通知报文;其中,所述最大传输单元值的预定值为能够保证协议报文通过,而数据报文不能通过的值,其值在30至81字节之间;所述故障恢复节点为与所述故障点邻近的设备; A. After knowing the fault recovery of the fault point in the RPR bridge ring, set the maximum transmission unit value of the fault recovery node to a predetermined value, and send a message to the span-ring bridge device in the RPR bridge ring to notify the fault point The notification message that the fault has been recovered; wherein, the predetermined value of the maximum transmission unit value can ensure that the protocol message passes, but the value of the data message cannot pass, and its value is between 30 and 81 bytes; The failure recovery node is a device adjacent to the failure point;
B.所述RPR桥环中的每一RPR跨环桥设备接收故障恢复节点所发送的通知报文,检测各自RPR跨环桥设备的工作状态,仅使其中一个主用RPR跨环桥设备保持为主用状态。 B. Each RPR cross-ring bridge device in the RPR bridge ring receives the notification message sent by the failure recovery node, detects the working status of each RPR cross-ring bridge device, and only keeps one of the active RPR cross-ring bridge devices active state. the
较佳的,所述步骤A还包括: Preferably, said step A also includes:
在对故障恢复节点的最大传输单元值进行设定前,记录所述故障恢复节点的正常的最大传输单元值。 Before setting the maximum transmission unit value of the failure recovery node, record the normal maximum transmission unit value of the failure recovery node. the
较佳的,在所述步骤A中RPR桥环中的故障点的故障恢复正常后,将故障恢复节点的最大传输单元值设为一个预定值之前,还包括: Preferably, after the failure of the failure point in the RPR bridge ring in the step A returns to normal, before setting the maximum transmission unit value of the failure recovery node to a predetermined value, it also includes:
触发网络拓扑收敛过程; Trigger the network topology convergence process;
在步骤A之后,还包括:在拓扑收敛之后,将所述故障恢复节点的最大传输单元值恢复成所记录的正常的最大传输单元值。 After step A, the method further includes: restoring the maximum transmission unit value of the failure recovery node to the recorded normal maximum transmission unit value after topology convergence. the
较佳的,所述步骤A还包括: Preferably, said step A also includes:
将最大传输单元值设为所述预定值之后,设定所述故障恢复节点的工作 状态为正常状态。 After the maximum transmission unit value is set to the predetermined value, the working state of the failure recovery node is set as a normal state. the
较佳的,所述最大传输单元值的预定值为能够保证协议报文通过,而数据报文不能通过的值,其值在30至81之间。 Preferably, the predetermined value of the maximum transmission unit value is a value that can ensure the passage of the protocol message but not the data message, and the value is between 30 and 81. the
较佳的,所述步骤B还包括:Preferably, said step B also includes:
比较各处于主用状态的RPR跨环桥设备的优先级,使最高优先级的RPR跨环桥设备保持为主用状态。 Compare the priorities of the RPR cross-ring bridge devices in the active state, and keep the RPR cross-ring bridge device with the highest priority in the active state. the
较佳的,所述步骤A中获知RPR桥环中的故障点的故障已恢复至正常为: Preferably, in the step A, it is known that the failure of the fault point in the RPR bridge ring has returned to normal as:
当所述故障点为所述RPR桥环中的RPR桥设备时,由所述故障点自身获知其故障已恢复正常; When the fault point is the RPR bridge device in the RPR bridge ring, it is known by the fault point itself that its fault has returned to normal;
当所述故障点为所述RPR桥环中的链路时,由与所述故障点邻近的所述故障恢复节点来获知所述故障点的故障已恢复正常。 When the fault point is a link in the RPR bridge ring, the fault recovery node adjacent to the fault point learns that the fault of the fault point has recovered to normal. the
较佳的,所述RPR桥环中的故障恢复节点为RPR桥设备或RPR跨环桥设备。 Preferably, the failure recovery node in the RPR bridge ring is an RPR bridge device or an RPR cross-ring bridge device. the
较佳的,所述通知报文是在现有的报文基础上进行扩充实现的一种报文,或者是新定义的一种报文。 Preferably, the notification message is a message implemented by extending an existing message, or is a newly defined message. the
较佳的,所述步骤B中,当一跨环桥设备检测到自身工作状态为备用状态,则对其所接收到的所述通知报文不进行处理。 Preferably, in the step B, when a ring-spanning bridge device detects that its working state is the standby state, it does not process the notification message it receives. the
较佳的,所述步骤B中,当一跨环桥设备检测到自身工作状态为主用状态,但没有与其连接的处于主用状态的其他跨环桥设备时;或者当一跨环桥设备检测到自身工作状态为主用状态,但其优先级均高于与其连接的处于主用状态的其他跨环桥设备的优先级时,则对其所接收到的所述通知报文不进行处理。 Preferably, in the step B, when a span-ring bridge device detects that its own working state is in the active state, but there are no other span-ring bridge devices connected to it in the active state; or when a span-ring bridge device When it detects that its own working state is active, but its priority is higher than that of other cross-ring bridge devices connected to it in active state, it will not process the notification message received by it . the
较佳的,所述步骤B中,当一跨环桥设备检测到自身工作状态为主用状态,且与其连接的处于主用状态的其他跨环桥设备中存在优先级更高的跨环桥设备时,优先级低的跨环桥设备退出主用状态。 Preferably, in the step B, when a span-ring bridge device detects that its working state is active, and there is a span-ring bridge with a higher priority among other span-ring bridge devices connected to it in the active state When the device is activated, the low-priority cross-ring bridge device exits the active state. the
实施本发明,具有如下有益效果:本发明通过故障恢复节点发送通知报文给跨环桥设备,跨环桥设备收到通知报文后,跨环桥设备会根据自己的工作状态/优先级及其他跨环桥设备的工作状态/优先极,来进行后续的动作(如 保持主用状态或退出主用状态)。这样能够在故障点的故障恢复后,只有一个跨环桥设备处于主用状态,确保跨环业务的正确转发,解决了故障点恢复后信息传递中出现的环路问题,对环内业务也没有影响,同时对单环协议收敛没有任何影响。 Implementing the present invention has the following beneficial effects: 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 message, the cross-ring bridge device will The working status/priority of other cross-ring bridge devices to perform subsequent actions (such as maintaining the active state or exiting the active state). In this way, after the failure point is recovered, only one cross-ring bridge device is in the active state, ensuring the correct forwarding of cross-ring services, solving the loop problem in information transmission after the fault point is restored, and there is no need for intra-ring business impact, and has no impact on the convergence of the single-ring protocol. the
附图说明Description of drawings
图1为现有技术RPR桥环网络拓扑结构示意图。 FIG. 1 is a schematic diagram of a prior art RPR bridge-ring network topology. the
图2为现有技术RPR桥环网络中一个RPR桥环上同时出现了两个故障的情况下的通信示意图。 FIG. 2 is a communication schematic diagram in the case of two faults occurring simultaneously on one RPR bridge ring in the prior art RPR bridge ring network. the
图3为现有技术RPR桥环网络中一个RPR桥环上同时出现了两个故障的情况下并且当一个故障恢复时产生广播环路的示意图。 Fig. 3 is a schematic diagram of a situation where two faults occur simultaneously on an RPR bridge ring in an RPR bridge ring network in the prior art and a broadcast loop is generated when one fault recovers. the
图4为本发明RPR桥中非跨环桥设备故障恢复时故障恢复节点避免产生广播环路的方法流程图。 FIG. 4 is a flow chart of a method for preventing a broadcast loop from being generated by a fault recovery node when a non-cross-ring bridge device in an RPR bridge of the present invention recovers from a fault. the
图5为本发明RPR桥中非跨环桥设备故障恢复时跨环桥设备避免产生广播环路的方法流程图。 FIG. 5 is a flowchart of a method for avoiding a broadcast loop by a cross-ring bridge device when a non-span-ring bridge device in an RPR bridge recovers from a fault according to the present invention. the
具体实施方式Detailed ways
下面结合附图详细说明本发明的优选实施例。 Preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. the
本发明提供一种RPR桥故障恢复后的环路避免方法,该方法解决在RPR相交环的应用场景下,一个RPR桥环上同时出现了两个故障点的情况下,在一个故障点恢复时可能产生的广播环路问题。RPR桥故障恢复后的环路避免方法是通过故障恢复节点和跨环桥设备相互之间的配合,控制RPR环上数据报文的通过,避免RPR环出现环路现象。 The present invention provides a method for avoiding loops after RPR bridge fault recovery. The method solves the problem of recovering one fault point when two fault points appear on an RPR bridge ring at the same time in the application scenario of RPR intersecting rings. Possible broadcast loop problems. The loop avoidance method after the RPR bridge fault recovers is to control the passage of data packets on the RPR ring through the cooperation between the fault recovery node and the cross-ring bridge device, so as to avoid the loop phenomenon on the RPR ring. the
首先请再参阅图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 Figure 2, which illustrates 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, RPR bridge device 3, and RPR bridge ring Bridge device 4 and RPR cross-ring bridge device 1 and RPR cross-ring bridge device 2 . When fault point 1 and fault point 2 exist at the same time, RPR bridge device 1 and RPR bridge device 2 work in protection mode, that is, in the wrap state. No packets will pass through fault point 1, and there will be no The emergence of a broadcast loop. In order to ensure that any point on the two RPR bridge rings can communicate with each other, the working status of RPR cross-ring bridge device 1 and RPR2 cross-ring bridge device are both master (Master) The bridge device is responsible for forwarding cross-ring services, that is, data services can be forwarded in different RPR bridge rings, so that any nodes 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中环路现象的出现。 After the fault point 1 recovers, there is no fault point in the adjacent section of the RPR bridge device 1 and the RPR bridge device 2, and the working modes of the RPR bridge device 1 and the RPR bridge device 2 will both change to the normal state. After the working modes of RPR bridge device 1 and RPR bridge device 2 become normal, data packets can pass through the fault point. Since the RPR cross-ring bridge device cannot immediately perceive this change and will not perform state transition, as shown in Figure 3, a broadcast loop problem may occur. Below in conjunction with accompanying drawing 4 and accompanying drawing 5, to illustrate in the present invention, when fault point 1 or fault point 2 recovers, how to avoid the loop in Fig. road phenomenon. the
请参阅图4,该图为本发明中对故障恢复节点处理的主流程图,此处所称故障恢复节点,指与该故障点邻近的设备,对于故障点1来说,其故障恢复节点指与故障点1邻近的RPR桥设备1或RPR桥设备2。以图3中的故障点1恢复时为例进行说明,该处理流程包括以下步骤: Please refer to Fig. 4, this figure is the main flowchart of the processing of the failure recovery node in the present invention, the failure recovery node referred to herein refers to the equipment adjacent to the failure point, for failure point 1, its failure recovery node refers to the RPR bridge device 1 or RPR bridge device 2 adjacent to fault point 1. Taking fault point 1 recovery in Figure 3 as an example for illustration, the processing flow includes the following steps:
步骤40:当获知RPR桥环中的故障点1的故障已恢复正常后,会触发一次拓扑收敛过程;在RPR桥环中,故障点可以是RPR桥设备,也可以是连接RPR桥设备的链路。此处,由于故障点1是一条链路,其故障恢复后,其边状态消失,故障恢复节点(RPR桥设备1或RPR桥设备2)可以获知该故障点1的故障已经恢复正常。在另外的一些情况下,例如,该故障点为RPR桥环中的一个RPR桥设备,在这种情况下,该故障点自身就可以获知其故障是否已恢复至正常。 Step 40: After learning that the failure point 1 in the RPR bridge ring has recovered, a topology convergence process will be triggered; in the RPR bridge ring, the fault point can be the RPR bridge device or the link connecting the RPR bridge device road. Here, since the fault point 1 is a link, after its fault recovers, its edge state 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 returned to normal. In some other cases, for example, the fault point is an RPR bridge device in the RPR bridge ring, in this case, the fault point itself can know whether its fault has recovered to normal. the
步骤41:在拓扑发生变化之后,完成拓扑收敛之前,需要判断该故障恢复节点(RPR桥设备1或RPR桥设备2)或故障点(当该故障点为RPR桥环中的设备时)的工作状态是否发生变化; Step 41: After the topology changes, before the topology convergence is completed, it is necessary to judge the work of the failure recovery node (RPR bridge device 1 or RPR bridge device 2) or the failure point (when the failure point is a device in the RPR bridge ring) whether the status has changed;
步骤42:该故障恢复节点(RPR桥设备1或RPR桥设备2)检测其自身的工作状态是否从保护状态(wrap)状态变化为正常(normal)状态?此处,如果检测结果为是时,即故障恢复节点已变为正常(normal)状态时,则转至步骤43;如果检测结果为否时,即故障恢复节点仍处于保护(wrap)状态时,则等待预定时间(如1~3秒),转至步骤41继续进行检测; Step 42: The failure recovery node (RPR bridge device 1 or RPR bridge device 2) detects whether its own working state has changed from a protection state (wrap) state to a normal (normal) state? Here, if the detection result is yes, that is, when the failure recovery node has become a normal (normal) state, then go to step 43; if the detection result is no, that is, when the failure recovery node is still in the protection (wrap) state, Then wait for a predetermined time (such as 1 to 3 seconds), and go to step 41 to continue testing;
在此步骤中,如果故障点为RPR桥设备时,则检测该故障点的工作状态是否从保护状态变化为正常状态,同样,当检测结果为是时,转至步骤43; 当检测结果为否时,等待预定时间,转至步骤41继续进行检测; In this step, if the point of failure is an RPR bridge device, then detect whether the working state of the point of failure changes from a protection state to a normal state, similarly, when the detection result is yes, go to step 43; when the detection result is no , wait for the predetermined time, and go to step 41 to continue testing;
步骤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-ring bridge device 1 and the RPR cross-ring bridge device 2 that the fault at the fault point 1 has returned to normal;
故障恢复节点所发送的所述通知报文,可以是在现有的报文基础上进行扩充来实现,也可以是采用新的报文类型来实现; The notification message sent by the failure recovery node can be implemented by expanding the existing message, or by using a new message type;
步骤44:记录该故障恢复节点的最大传输单元(Maximum TransmissionUnit,MTU)的当前正常值;并将该故障恢复节点的MTU值设置一个预定值,优选地,该定值为处于30-81之间的值; Step 44: Record the current normal value of the maximum transmission unit (Maximum TransmissionUnit, MTU) of the failure recovery node; and set a predetermined value for the MTU value of the failure recovery node, preferably, the fixed value is between 30-81 value;
该设置的MTU定值的目的在于保证TP、TC等协议报文可以通过该故障点1,而数据报文不能通过。因为TP报文的长度为26字节,TC报文的长度为29字节,该MTU的值要求大于等于30字节,而包含扩展数据的RPR报文长度至少为18+64字节(以太网最小长度为64字节)=82字节,所以该MTU的值要求小于或等于81字节,该MTU值可设置的范围为30到81字节。比如可以设置为64字节,在RPR桥环中进行信息传递时,由于将MTU修改为预定值之后,数据报文无法通过所述故障点,可以有效避免环路。 The purpose of this set MTU value is to ensure that protocol packets such as TP and TC can pass through the fault point 1, but data packets cannot pass through. Because the length of TP packets is 26 bytes and the length of TC packets is 29 bytes, the value of the MTU must be greater than or equal to 30 bytes, while the length of RPR packets containing extended data must be at least 18+64 bytes (Ethernet The minimum length of the network is 64 bytes) = 82 bytes, so the MTU value is required to be less than or equal to 81 bytes, and the MTU value can be set from 30 to 81 bytes. For example, it can be set to 64 bytes. When information is transmitted in the RPR bridge ring, since the data message cannot pass through the fault point after the MTU is modified to a predetermined value, a loop can be effectively avoided. the
步骤45:在拓扑收敛之后,将该故障恢复节点的MTU值恢复成上一步所记录的MTU的正常值;进一步地,可将该故障恢复节点的工作状态设置为正常状态; Step 45: After the topology converges, restore the MTU value of the failure recovery node to the normal value of the MTU recorded in the previous step; further, the working state of the failure recovery node can be set to a normal state;
步骤47:程序结束。 Step 47: The program ends. the
同理,对于故障点2,其故障恢复节点分别为RPR跨环桥设备1或RPR跨环桥设备2,当故障点2恢复时,故障恢复节点能很容易地感知到故障点2已恢复正常,并可据之更改自身的工作状态,以避免出现环路,该更改自身状态的过程将结合附图5进行说明。 Similarly, for the fault point 2, the fault recovery nodes are RPR cross-ring bridge device 1 or RPR cross-ring bridge device 2 respectively. When the fault point 2 recovers, the fault recovery node can easily perceive that the fault point 2 has returned to normal , and can change its own working state according to it, so as to avoid loops. The process of changing its own state will be described in conjunction with Fig. 5 . the
当某一跨环桥设备收到上述的图4的步骤43中的告知故障点1已恢复的通知报文时,或者当其检测到邻近的故障点2的故障已经恢复时,则该跨环桥设备要根据自己本身的工作状态及优先级来进行相应的数据处理过程。主要目的是使在所有的跨环桥设备中,使其中仅有一个跨环桥设备保持主用状态,进行数据报文的跨环转发,其他的跨环桥设备退出主用状态,变为备用 状态,不能进行数据报文的跨环转发,从而避免图3中的环路。此处所述的优先级是指预先根据一定规则为每一跨环桥设备所设置的一个属性值,跨环桥设备的优先级的设置可以根据需要自行配置,例如,跨环桥设备的设备ID号、IP地址、MAC地址、自定义的标识符或自定义的序列号等等。 When a cross-ring bridge device receives the notification message notifying that fault point 1 has recovered in the
下面结合流程图5来说明跨环桥设备的处理过程: The processing process of the cross-ring bridge equipment is described below in conjunction with flow chart 5:
步骤51:跨环桥设备(例如跨环桥设备1或跨环桥设备2)接收到从故障恢复节点发送过来的通知报文,或者检测到邻近的故障点已恢复; Step 51: The cross-ring bridge device (such as cross-ring bridge device 1 or cross-ring bridge device 2) receives the notification message sent from the fault recovery node, or detects that the adjacent fault point has recovered;
步骤52:判断此时其本身的工作状态是否处于主用状态,如果其不为主用状态,则对所接收的通知报文不进行处理,并转至步骤56;如果其为主用状态,则转到步骤53; Step 52: Judging whether its own working state is in the active state at this time, if it is not in the active state, then do not process the received notification message, and go to step 56; if it is in the active state, Then go to step 53;
步骤53:该跨环桥设备在RPR桥环上是否有与其相连处于主用状态的其他跨环桥设备,如果没有,则该跨环桥设备仍保持主用状态,并对所接收的通知报文不进行处理,并转至步骤56;如果有与其相连的处于主用状态的其他跨环桥设备,则转到步骤54; Step 53: Whether the cross-ring bridge device has other cross-ring bridge devices connected to it in the active state on the RPR bridge ring, if not, the cross-ring bridge device still maintains the active state, and reports the received notification The text is not processed, and go to step 56; if there are other cross-ring bridge devices connected to it in active state, then go to step 54;
步骤54:判断本跨环桥设备的优先级是否低于与其相连的处于主用状态的其他跨环桥设备的优先级,如果判断结果为否,则该跨环桥设备仍保持主用状态,并对所接收的通知报文不进行处理,并转步骤56,如果判断结果为是,则转至步骤55; Step 54: Determine whether the priority of the cross-ring bridge device is lower than that of other cross-ring bridge devices connected to it in the active state, if the judgment result is no, the cross-ring bridge device still maintains the active state, And do not process the received notification message, and go to step 56, if the judgment result is yes, then go to step 55;
步骤55:该跨环桥设备退出主用状态,不再负责跨环业务的转发; Step 55: The cross-ring bridge device exits the active state and is no longer responsible for the forwarding of cross-ring services;
步骤56:流程结束。 Step 56: the process ends. the
综上所述,本发明通过故障恢复节点发送通知报文给跨环桥设备,跨环桥设备收到通知报文后,跨环桥设备1和跨环桥设备2均会根据自己的工作状态/优先级及其他跨环桥设备的工作状态/优先极,来进行后续的动作(如保持主用状态或退出主用状态)。这样能够在故障点的故障恢复后,只有一个跨环桥设备仍处于主用状态,确保跨环业务的正确转发,解决了故障点恢复后信息传递中出现的环路问题,对环内业务也没有影响,同时对单环协议收敛没有任何影响。 In summary, 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 message, the cross-ring bridge device 1 and the cross-ring bridge device 2 will both /priority and the working status/priority of other cross-ring bridge devices to perform subsequent actions (such as maintaining the active state or exiting the active state). In this way, after the failure point is recovered, only one cross-ring bridge device is still in the active state, ensuring the correct forwarding of cross-ring services, solving the loop problem in the information transmission after the fault point is restored, and the ring business is also It has no effect, and has no effect on the convergence of the single-ring protocol. the
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不 局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, any changes or variations that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention Replacement should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (11)
Priority Applications (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 |
| PCT/CN2007/002082 WO2008028392A1 (en) | 2006-09-01 | 2007-07-06 | A loop avoidance method after the recovery from the rpr faults |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2006100374378A CN101136830B (en) | 2006-09-01 | 2006-09-01 | Loop prevention method after RPR bridge fault recovery |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101136830A CN101136830A (en) | 2008-03-05 |
| CN101136830B true CN101136830B (en) | 2011-01-12 |
Family
ID=39156829
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2006100374378A Expired - Fee Related CN101136830B (en) | 2006-09-01 | 2006-09-01 | Loop prevention method after RPR bridge fault recovery |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN101136830B (en) |
| WO (1) | WO2008028392A1 (en) |
Families Citing this family (1)
| 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 (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0349099A2 (en) * | 1988-06-27 | 1990-01-03 | Digital Equipment Corporation | Transparent load sharing for parallel networks |
| CN1479455A (en) * | 2002-08-29 | 2004-03-03 | 华为技术有限公司 | Fast Switchover Method for Resilient Packet Ring Network |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7792023B2 (en) * | 2000-06-30 | 2010-09-07 | Arris Group | 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 |
-
2006
- 2006-09-01 CN CN2006100374378A patent/CN101136830B/en not_active Expired - Fee Related
-
2007
- 2007-07-06 WO PCT/CN2007/002082 patent/WO2008028392A1/en not_active Ceased
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0349099A2 (en) * | 1988-06-27 | 1990-01-03 | Digital Equipment Corporation | Transparent load sharing for parallel networks |
| CN1479455A (en) * | 2002-08-29 | 2004-03-03 | 华为技术有限公司 | Fast Switchover Method for Resilient Packet Ring Network |
Non-Patent Citations (1)
| Title |
|---|
| JP特开2005-130049A 2005.05.19 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101136830A (en) | 2008-03-05 |
| WO2008028392A1 (en) | 2008-03-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8520507B1 (en) | Ethernet automatic protection switching | |
| WO2010045832A1 (en) | Method and apparatus for protecting link aggregation group of ethernet ring | |
| CN111817881B (en) | Fault processing method and related device | |
| CN101677267B (en) | Method for retransmitting protocol frames in transannular way and sharing nodes in multiple rings of Ethernet | |
| WO2008046358A1 (en) | A method and device to realize punch-through of point-to-multipoint network link status | |
| CN101227371B (en) | Method and apparatus of backup switch among same level switch equipments | |
| CN100461739C (en) | RPR bridge redundancy protection method and RPR bridge ring equipment | |
| CN101800774A (en) | Environmental-friendly accessing method and environmental-friendly accessing network | |
| CN101426031A (en) | Novel method and apparatus for Ether ring network address updating | |
| CN101714939A (en) | Fault treatment method for Ethernet ring network host node and corresponding Ethernet ring network | |
| WO2011095101A1 (en) | Linear 1: n protection method, device and system for packet transport network | |
| CN101436975B (en) | Method, apparatus and system for implementing rapid convergence in looped network | |
| JP4526423B2 (en) | Ring connection method and apparatus | |
| CN101626335B (en) | Data protection method of dual-connection network | |
| US20120087233A1 (en) | Address Refresh Method and System | |
| CN101986615A (en) | Multiple-ring Ethernet and protection method thereof | |
| CN102025561B (en) | Method and system for refreshing MAC (Medium Access Controller) in Ethernet ring | |
| CN100454880C (en) | A method and system for realizing ring network protection | |
| US7606240B1 (en) | Ethernet automatic protection switching | |
| CN101997748B (en) | Subring control channel without tunnel blocks the method and system of protocol massages | |
| CN100512220C (en) | Method for realizing service protection on elastic group ring | |
| CN101557333A (en) | Processing method of loop fault in dual-homing networking and node device | |
| CN101599853A (en) | A realization method of non-return mode in Ethernet dual-homing connection protection | |
| CN101136830B (en) | Loop prevention method after RPR bridge fault recovery | |
| WO2008064585A1 (en) | A method, system and resilient packet ring device for avoiding loop after fault recovery |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C17 | Cessation of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110112 Termination date: 20120901 |
