CN101771705B - Processing method based on RRPP and device - Google Patents
Processing method based on RRPP and device Download PDFInfo
- Publication number
- CN101771705B CN101771705B CN 201010103147 CN201010103147A CN101771705B CN 101771705 B CN101771705 B CN 101771705B CN 201010103147 CN201010103147 CN 201010103147 CN 201010103147 A CN201010103147 A CN 201010103147A CN 101771705 B CN101771705 B CN 101771705B
- Authority
- CN
- China
- Prior art keywords
- rrpp
- ring
- sub
- edge node
- edge
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 12
- 238000000034 method Methods 0.000 claims description 17
- 230000002457 bidirectional effect Effects 0.000 claims description 2
- 230000006855 networking Effects 0.000 abstract description 16
- 238000013138 pruning Methods 0.000 description 31
- 208000032825 Ring chromosome 2 syndrome Diseases 0.000 description 15
- 230000007246 mechanism Effects 0.000 description 13
- 208000035217 Ring chromosome 1 syndrome Diseases 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000001514 detection method Methods 0.000 description 7
- 208000032826 Ring chromosome 3 syndrome Diseases 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 238000002156 mixing Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 101150093240 Brd2 gene Proteins 0.000 description 2
- 101150007742 RING1 gene Proteins 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a processing method based on RRPP, comprising the following steps: obtaining the priority level of each RRPP subring in the RRPP primary ring part through a broder node and an auxiliary broder node; and opening a jammed edge port through the broder node RRPP subring with the optimal priority in the RRPP primary ring part. In the invention, connectivity of RRPP networking is ensured and the reliability of the RRPP treaty is strengthened.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a processing method and apparatus based on RRPP.
Background
In network planning and actual networking applications of metropolitan area networks and enterprise networks, ring network technology is generally adopted to improve the reliability of the networks, and the ring network technology realizes mutual communication by connecting some network devices together through the shape of a ring. In order to avoid the broadcast storm in the Ring network, an STP (spanning tree Protocol) loop protection mechanism or an RRPP (Rapid Ring protection Protocol) loop protection mechanism is adopted to avoid the broadcast storm, wherein the broadcast storm means that a large amount of network bandwidth is consumed by excessive broadcast packets, so that normal packets cannot be transmitted in the network.
In practical application, the convergence time of the STP protocol is affected by network topology, and is longer when the network diameter is larger, so that the requirement for data when the transmission quality is higher cannot be met, while the RRPP protocol shortens the convergence time of the ring network, and eliminates the influence of the network size, thereby being widely used. The RRPP is a link layer protocol specially applied to an Ethernet ring, can prevent a broadcast storm caused by a data loop when the Ethernet ring is complete, and can quickly start a backup link when one link on the Ethernet ring is disconnected, so that the connectivity of a ring network is ensured. The RRPP protocol has the following advantages: the topology convergence speed is fast (less than 50 ms); the convergence time is irrelevant to the number of nodes on the ring network; in the intersecting ring topology, the change of one ring topology can not cause the topology oscillation of other rings, the data transmission is more stable, the load sharing of the RRPP looped network is supported, and the bandwidth of a physical link is fully utilized.
As shown in fig. 1, an RRPP interworking ring networking type and fig. 2, in the RRPP protocol, the components of the RRPP include: RRPP Ring, master node, transport node, edge node, auxiliary edge node, etc., where Ring1 is configured as a master Ring and Ring2 and Ring3 are configured as sub-rings.
Specifically, in the RRPP networking in which multiple subrings intersect with a main ring, a protocol packet of the subring needs to be transmitted between an edge node and an edge port of an auxiliary edge node through a channel provided by the main ring, and at this time, the entire main ring is a node on the subring. When the link of the main ring fails and the channel of the protocol packet of the sub-ring between the edge node and the auxiliary edge node is interrupted (i.e. the common link between the main ring and the sub-ring fails and more than one non-common link fails), the main node of the sub-ring cannot receive the Hello packet sent by the main node of the sub-ring (used for detecting the integrity of the network loop), so that the Fail timer is overtime, the main node of the sub-ring is shifted to a Failed state, and the auxiliary port of the main node of the sub-ring is released.
For the RRPP inter-ring networking shown in fig. 1, the above processing procedure (the procedure of releasing its own secondary port) can ensure that no broadcast loop is formed and the backup link plays its proper role. However, for the RRPP dual-homed Ring network shown in fig. 2, the dual-homed two sub-rings Ring2 and Ring3 need to be connected with each other by an edge node and an auxiliary edge node, so that a Ring is formed, and when the main Ring1 fails, all the main node sub-ports of the sub-rings are released, and a broadcast loop must be formed between the sub-rings.
In order to solve the problem in the dual-homing ring networking, in the prior art, a sub-ring protocol message channel state detection mechanism on a main ring is introduced, the detection mechanism needs to be completed by matching an edge node and an auxiliary edge node, and the aim is to block an edge port of the edge node before a secondary port of a main node of the sub-ring is released, so that a data loop is prevented from being formed between the sub-rings. In the detection mechanism, the edge nodes are an initiator and a decision maker of the detection mechanism, the auxiliary edge nodes are listeners of the channel state, and are responsible for notifying the change information of the channel state to the edge nodes in time, and the process of the detection mechanism includes:
(1) and detecting the state of a subring protocol message channel on the main ring.
Specifically, the EDGE node of the sub-ring periodically sends an EDGE-HELLO packet (SRPT state check packet) to the main ring through two RRPP ports of the main ring, and sequentially sends the EDGE packet to the auxiliary EDGE node through each node on the main ring, if the auxiliary EDGE node can receive the EDGE-HELLO packet within a specified time, it indicates that the packet channel is normal, otherwise, if the EDGE-HELLO packet cannot be received, it indicates that the packet channel is interrupted.
(2) The channel-interrupting edge node blocks the edge port.
Specifically, after the auxiliary edge node detects that the sub-ring protocol message channel is interrupted, the MAJOR-FAULT message is sent from the edge port to the edge node through the sub-ring link, and after the edge node receives the MAJOR-FAULT, the edge port of the edge node is blocked.
(3) And the sub-ring main node releases the auxiliary port when time is out.
Specifically, after the edge node blocks the edge port, the subring protocol message channel is interrupted due to the failure of the main ring, and the subring main node cannot receive the HELLO message sent by itself within a specified time, so that the subring main node is migrated to a Failed state, and the auxiliary port is released.
(4) And recovering the sub-ring protocol message channel.
Specifically, when the communication between the edge node and the auxiliary edge node is restored due to the restoration of the link of the primary ring, the subring protocol message channel is restored to normal, and at this time, the subring master node receives the HELLO message sent by itself from the secondary port again, and switches to Complete state, so as to block the secondary port. And because the main node sends the COMPLETE-FLUSH-FDB message from the main port, the edge node releases the edge port after receiving the COMPLETE-FLUSH-FDB message.
In summary, it can be seen that through the mechanism for detecting the status of the sub-ring protocol message channel on the main ring, the problem of forming a broadcast loop between sub-rings in the RRPP dual-homing-ring networking shown in fig. 2 can be effectively avoided.
However, in the mechanism for detecting the state of the sub-ring protocol packet channel on the main ring, no matter what networking is adopted, when the main ring link fails and the sub-ring HELLO packet is not communicated, the edge ports of the edge nodes of all the related sub-rings are blocked, so that some nodes on the sub-rings are isolated and the connectivity cannot be ensured, as shown in fig. 3. When a main ring link fails, the HELLO packet of the subring cannot return to the subring main node, and at this time, the corresponding secondary port is opened, and because of a subring protocol packet channel state detection mechanism on the main ring, the edge port of the edge node is blocked, that is, other nodes except the edge node still maintain connectivity, and the edge node is isolated, and before the failure cannot be recovered, the traffic passing through the edge node cannot be forwarded.
In summary, it can be seen that in the case that the sub-ring loop is not closed due to the failure of the main ring, the edge ports of the edge nodes will be blocked, and although the generation of the broadcast loop is effectively prevented, too many blocked edge ports cause some nodes to be isolated (e.g. the edge nodes in fig. 3). Before the primary ring fails to clear, communication with the orphan node cannot be restored.
Disclosure of Invention
The invention provides a processing method and a processing device based on RRPP (RRPP), which are used for opening a blocked edge port and ensuring the connectivity of an RRPP subring.
In order to achieve the above object, the present invention provides a processing method based on a fast ring protection protocol RRPP, which is applied to an RRPP network including an RRPP main ring and at least one RRPP sub-ring, where each RRPP sub-ring has a priority, when the RRPP main ring fails, the RRPP main ring is divided into at least two RRPP main ring portions, an edge node and an auxiliary edge node of each RRPP sub-ring are located in different RRPP main ring portions, and an edge port of an edge node in each RRPP sub-ring is blocked; the method comprises the following steps:
the edge node or the auxiliary edge node in each RRPP main ring part acquires the priority of each RRPP sub-ring in the RRPP main ring part;
the edge node of the RRPP sub-ring with the optimal priority in the RRPP main ring part opens the blocked edge port, or,
and the auxiliary edge node of the RRPP subring with the optimal priority in the RRPP main ring part informs the corresponding edge node to open the blocked edge port.
Further comprising:
setting a priority for each RRPP sub-ring according to the relation between the protection virtual local area network VLAN of each RRPP sub-ring and the RRPP main ring protection VLAN; such that the more intersections between the protection VLANs of the RRPP sub-ring and the RRPP main ring protection VLANs, the better the RRPP sub-ring has priority.
The step of acquiring the priority of each RRPP sub-ring in the RRPP main ring portion by the edge node or the auxiliary edge node in each RRPP main ring portion specifically includes:
edge nodes or auxiliary edge nodes in each RRPP main ring part send election messages on the RRPP main ring in a bidirectional mode through a main port and an auxiliary port of the RRPP main ring, and the election messages carry the priority of RRPP sub-rings;
and the edge node or the auxiliary edge node in each RRPP main ring part receives the election message and acquires the priority of each RRPP sub-ring in the RRPP main ring part from the election message.
The opening of the blocked edge port by the edge node of the RRPP sub-ring with the optimal priority in the RRPP main ring part specifically includes:
when the edge node obtains the priority of the corresponding RRPP sub-ring in the RRPP main ring part to be optimal, the edge node directly opens the blocked edge port of the edge node;
the notifying, by the auxiliary edge node of the RRPP sub-ring with the optimal priority in the RRPP main ring portion, the corresponding edge node to open the blocked edge port specifically includes:
when the auxiliary edge node obtains the optimal priority of the RRPP sub-ring corresponding to the auxiliary edge node in the RRPP main ring part, the auxiliary edge node sends an open message to the corresponding edge node through the RRPP sub-ring, and the edge node is informed of opening the blocked edge port through the open message.
When the RRPP primary loop is restored, the method further comprises:
and the edge node of the RRPP sub-ring with the optimal priority in each RRPP main ring part keeps the edge port of the edge node in an opening state, and the edge nodes of other RRPP sub-rings open the edge ports blocked by the edge nodes.
An RRPP-based processing apparatus applied in an RRPP network comprising an RRPP main ring and at least one RRPP sub-ring, each RRPP sub-ring having a priority, the RRPP main ring being split into at least two RRPP main ring parts when the RRPP main ring fails, edge nodes and auxiliary edge nodes of each RRPP sub-ring being to be located in different RRPP main ring parts, and edge ports of edge nodes in each RRPP sub-ring being blocked; the device is used as an edge node or an auxiliary edge node of the RRPP sub-ring and comprises an acquisition module and a processing module, wherein the acquisition module is connected with the processing module,
when the apparatus is acting as an edge node of the RRPP sub-ring,
the acquiring module is used for acquiring the priority of each RRPP subring in the RRPP main ring part;
the processing module is used for opening the blocked edge port when the RRPP subring with the optimal priority is obtained in the RRPP main ring part;
when the apparatus is acting as an auxiliary edge node for the RRPP sub-ring,
the acquiring module is used for acquiring the priority of each RRPP subring in the RRPP main ring part;
and the processing module is used for notifying the corresponding edge node to open the blocked edge port when the RRPP sub-ring with the optimal priority is acquired to correspond to the RRPP main ring part.
The obtaining module is specifically configured to, when the device serves as an edge node or an auxiliary edge node of the RRPP sub-ring, and the edge node or the auxiliary edge node in each RRPP main ring portion bi-directionally sends an election packet carrying the priority of the RRPP sub-ring on the RRPP main ring through the primary and secondary ports of the RRPP main ring,
and receiving the election message, and acquiring the priority of each RRPP sub-ring in the RRPP main ring part from the election message.
The processing module is specifically configured to use the apparatus as an edge node of the RRPP sub-ring, and directly open a blocked edge port of the edge node when the edge node obtains that a priority of the RRPP sub-ring corresponding to the edge node in the RRPP main ring portion is optimal; or,
the device is used as an auxiliary edge node of the RRPP sub-ring, when the auxiliary edge node obtains the optimal priority of the corresponding RRPP sub-ring in the RRPP main ring part, an open message is sent to the corresponding edge node through the RRPP sub-ring, and the edge node is informed to open the blocked edge port through the open message.
When the RRPP main loop is restored,
the processing module is further configured to, when the apparatus is used as an edge node of the RRPP sub-ring with the optimal priority in the RRPP main ring portion, maintain an edge port of the apparatus in an open state;
when the device is used as an edge node of the RRPP sub-ring with the non-optimal priority in the RRPP main ring part, opening the self-blocked edge port.
Compared with the prior art, the invention has the following advantages:
under the condition that the main ring fails and the connectivity cannot be ensured, the segmented main ring is connected by using the sub-ring with the optimal priority, so that the connectivity of the RRPP networking is ensured, and the reliability of the RRPP protocol is enhanced.
Drawings
FIG. 1 is a schematic diagram of a RRPP intersecting ring networking type in the prior art;
FIG. 2 is a diagram illustrating a RRPP dual homing ring networking type in the prior art;
FIG. 3 is a diagram illustrating a prior art situation in which a node is isolated;
FIG. 4 is a flow chart of a RRPP-based processing method according to the present invention;
FIGS. 5A-5C are schematic diagrams of a specific application scenario proposed by the present invention;
FIG. 6 is a flowchart of a RRPP-based processing method proposed in a specific application scenario;
FIG. 7 is a schematic diagram of another exemplary application scenario proposed in the present invention;
FIG. 8 is a diagram illustrating a situation where subring edge nodes and auxiliary edge nodes are nested with each other according to the present invention;
fig. 9 is a structural diagram of a processing apparatus based on RRPP according to the present invention.
Detailed Description
The basic idea of the invention is that under the condition that the main ring fails and connectivity cannot be ensured, the blocked edge port is opened by the edge node of the subring with the optimal priority, the divided main ring is connected, the broadcast loop is ensured not to be formed, the connectivity of RRPP networking is ensured, and the reliability of the RRPP protocol is enhanced.
The RRPP-based processing method is applied to an RRPP network comprising an RRPP main ring and at least one RRPP sub ring, wherein each RRPP sub ring has priority, when the RRPP main ring fails, the RRPP main ring is divided into at least two RRPP main ring parts, an edge node and an auxiliary edge node of each RRPP sub ring are located in different RRPP main ring parts, and an edge port of the edge node in each RRPP sub ring is blocked; as shown in fig. 4, the method comprises the steps of:
in step 401, the edge node or the auxiliary edge node in each RRPP main ring portion obtains the priority of each RRPP sub-ring in the RRPP main ring portion.
In order to more clearly illustrate the RRPP-based processing method provided by the present invention, the present invention is described in detail with application scenarios shown in fig. 5A to 5C. In this embodiment, for a Virtual Local Area Network (VLAN), a topology change situation may be equivalent to that shown in fig. 5A, and a case of four sub-rings and one main ring is taken as an example for explanation. That is, subring1 (subring 1) constitutes a loop by master ring, subring2 constitutes a loop by master ring, subring3 constitutes a loop by master ring, and subring4 constitutes a loop by master ring. The protection VLAN is used for transmitting data messages, the protection VLAN can comprise an RRPP port and a non-RRPP port, and the forwarding state of the protection VLAN is controlled by the corresponding RRPP domain.
In fig. 5A, when the master ring fails, the sub-ring (sub 1, sub 2, sub 3, sub 4, etc.) loop will be disabled, as shown in fig. 5B. When the master ring fails, the master ring is divided into two parts, namely a master ring1 part and a master ring2 part.
When a mechanism for detecting the status of the sub-ring protocol packet channel on the main ring is introduced, that is, when the mechanism for detecting the status of the sub-ring protocol packet channel on the main ring is enabled on the sub-ring, corresponding edge ports need to be blocked on edge nodes of the subring1, the subring2, the subring3, and the subring4, as shown in fig. 5C. Before the master ring fails, taking the example that the edge nodes of subring1 and subring2 are located in the master ring2 part, and the edge nodes of subring3 and subring4 are located in the master ring1 part, after the master ring fails, the edge nodes of subring1, subring2, subring3 and subring4 all need to block the corresponding edge ports, and since the edge ports of subring1 and subring2 edge nodes are blocked, subring1 and subring2 cannot communicate with master ring2, that is subring1 and subring2 are disconnected from master ring2, and similarly subring3 and subring4 are disconnected from master ring 1.
In summary, master ring1 and master ring2 belong to the same master ring (master ring) and are split into two blocks due to a master ring failure. The edge nodes and auxiliary edge nodes of pruning 1, pruning 2, pruning 3 and pruning 4 are sub-rings on two divided main rings respectively, for example, when the edge node of pruning 1 is located in master ring1, then the auxiliary edge node of pruning 1 will be located in master ring 2. When the sub-ring protocol message channel state detection mechanism on the main ring is started, the edge port of the edge node is blocked, that is, each sub-ring can be regarded as a link derived from the main ring.
Based on the application scenario, as shown in fig. 6, the processing method based on RRPP provided by the present invention includes the following steps:
Specifically, in the invention, priority needs to be set for each RRPP sub-ring according to the relationship between the protection VLAN of each RRPP sub-ring and the protection VLAN of the RRPP main ring; that is, as the intersection between the protection VLANs of the RRPP sub-rings (pruning 1, pruning 2, pruning 3, and pruning 4) and the RRPP main ring (master) protection VLAN is more, higher priority may be set for the RRPP sub-rings.
In practical networking application, when the VLAN protected by the sub-ring is only a subset of the VLAN protected by the main ring, the corresponding sub-ring is not suitable for communicating the main ring, and the priority should be set to be smaller; and when the VLAN protected by the sub-ring includes most of the main ring protection VLANs or is the same as the main ring protection VLAN, the corresponding sub-ring is suitable for communicating with the main ring, and the priority should be set to be larger.
For example, when the protection VLAN of the master ring is VLAN1, VLAN2, VLAN3, and VLAN4, the protection VLAN of subring1 is VLAN1, the protection VLAN of subring2 is VLAN1 and VLAN2, the protection VLAN of subring3 is VLAN1, VLAN2, and VLAN3, and the protection VLAN of subring4 is VLAN1, VLAN2, VLAN3, and VLAN4, when setting the priority, the priority of subring4 is optimal (taking the case that the priority value is greater and the priority is greater as the example), the priority of subring4 may be set to 4, the priority of subring3 may be set to 3, the priority of subring2 may be set to 2, and the priority of subring1 may be set to 1. In addition, when the VLAN protected by the sub-ring is the same as the subset of the VLAN protected by the main ring, for example, the VLAN protected by subring2 is VLAN1 and VLAN2, and the VLAN protected by subring3 is VLAN1 and VLAN3, the priority may be differentiated according to the size of the ringID, for example, the priority of subring2 is set to 2, and the priority of subring3 is set to 3.
In step 602, when the primary ring fails, the primary ring is divided into several parts, the secondary ports of the sub-rings are opened, and the edge ports of the edge nodes are blocked.
As shown in fig. 5A-5C, the split procedure when master ring fails is described by taking an example that the main ring is split into two parts, and it is necessary to open the sub-ports of the splitting 1, the splitting 2, the splitting 3 and the splitting 4, and block the edge ports corresponding to the splitting 1, the splitting 2, the splitting 3 and the splitting 4.
When the main ring fails, the edge node or the auxiliary edge node on each sub-ring sends an election message, and the election message carries the priority of the corresponding sub-ring. For example, when an edge node or an auxiliary edge node of pruning 1 sends an election packet, the election packet will carry the priority of pruning 1. Of course, in practical applications, the election packet is not limited to carry the priority, and all manners capable of carrying the priority are within the scope of the present invention.
Specifically, the edge node or the auxiliary edge node on each sub-ring sends the election packet bidirectionally on the main ring through the main port and the auxiliary port of the main ring, and the edge node or the auxiliary edge node on each sub-ring also needs to send the election packet bidirectionally on the main ring part where the edge node or the auxiliary edge node is located by using the control VLAN of the main ring.
Further, in each main ring part (e.g., master ring 1), the edge node or the auxiliary edge node on each sub-ring receives election messages corresponding to other sub-rings, and acquires priorities of other sub-rings from the election messages. For example, for an edge node or an auxiliary edge node of pruning 1, election messages corresponding to pruning 2, pruning 3, and pruning 4 are received, so that priorities of pruning 2, pruning 3, and pruning 4 are obtained.
It should be noted that, at the nodes of each sub-ring, only the edge node and the auxiliary edge node of the sub-ring obtain the priority of other sub-rings according to the election packet, and the other nodes in the sub-ring only need to forward the election packet.
In the RRPP main ring portion, because the edge node or the auxiliary edge node on the sub-ring can obtain the priority of each sub-ring, if the edge node learns that the priority of the sub-ring corresponding to the edge node is the highest, the edge node needs to execute a process of opening the blocked edge port. If the auxiliary edge node learns that the priority of the corresponding sub-ring is the highest, the auxiliary edge node needs to notify the corresponding edge node to open the blocked edge port.
Specifically, the edge node or the auxiliary edge node may obtain the priority of each sub-ring according to preset election time (arbitrarily selected according to actual needs, for example, set to reference for 3 seconds), and after the election time arrives, determine whether the priority of the sub-ring corresponding to the edge node or the auxiliary edge node is the highest according to an obtained result, that is, all the edge nodes or the auxiliary edge nodes know whether the priority of the edge node or the auxiliary edge node is the highest.
It can be seen that when the RRPP ring enters the networking shown in fig. 5A-5C due to the failure of the main ring, each of the divided main ring parts will pick up the sub-ring with the highest priority, wherein each of the divided main ring parts will pick up one and only one node (edge node or auxiliary edge node). For example, when the priority of the subring4 is the highest, the edge node of subring4 is located in master ring1, and the auxiliary edge node of subring4 is located in master ring2, in the master ring1 part, the edge node of subring4 can obtain the highest priority of subring4, and the edge node will directly open its own blocked edge port. In the master ring2 part, an auxiliary edge node of the pruning 4 can acquire the highest priority of the pruning 4, and the auxiliary edge node needs to send an open message to the edge node of the pruning 4 and notify the edge node of the pruning 4 to open the self blocked edge port by using the open message. Of course, in practical application, the method is not limited to using the open message to notify the corresponding edge node to open the edge port that is blocked, and all the manners having the notification capability are within the protection scope of the present invention.
Specifically, the auxiliary edge node sends an open message to the corresponding edge node through the corresponding sub-ring and using the sub-ring control VLAN, that is, the auxiliary edge node of the pruning 4 sends the open message to the edge node of the pruning 4 through the pruning 4.
In summary, in the application scenario of the present invention, if a sub-ring is selected from four sub-rings, and the corresponding blocked edge port is reopened, the networking shown in fig. 7 can be formed, and the example of fig. 7 is described with the highest priority of the pruning 2. It can be seen that when the edge node of subbing 2 opens the blocked edge port, the originally disconnected main ring can be reconnected via subbing 2, and the nodes on the two main rings, i.e. master ring1 and master ring2, can also access each other via subbing 2.
Meanwhile, because other sub-rings and the main ring only have one connecting point, a loop cannot be formed. The above solution can be derived from the situation that the main ring is broken down and divided into a plurality of parts, assuming that the main ring is divided into N parts, and the two parts are connected by sub-rings, because the edge node of the sub-ring with the highest priority and the auxiliary edge node are in different main ring parts, the edge node with the highest priority and the auxiliary edge node are both selected, and the N main ring parts only open N-1 edge nodes, that is, only N-1 edge ports need to be opened, so that the connectivity of the whole RRPP ring can be ensured on the premise that a broadcast loop is not formed, and details are not repeated in the present invention.
In the invention, when the main ring is recovered, the edge node of the RRPP sub-ring with the highest priority keeps the edge port of the edge node in an open state, and the edge nodes of other RRPP sub-rings open the edge ports blocked by the edge node.
The solution provided by the invention has universality, and when the network is relatively complex, not only can no loop be formed, but also the connectivity of the whole network can be ensured to the greatest extent. For example, in the case where the complex sub-ring edge nodes and the auxiliary edge nodes are nested with each other as shown in fig. 8, the connectivity of the entire network can be ensured.
In practical application, of course, for the simple networking shown in fig. 2, any edge port may also be directly set, so that the edge port is still opened when the main ring failure receives the MAJOR-FAULT packet. For example, in fig. 2, edge nodes of ring2 and ring3 and auxiliary edge nodes are the same pair of nodes, when a primary ring fails, connectivity is guaranteed only by opening one port, that is, the auxiliary edge node of ring2 can be set, and when a MAJOR-FAULT message of ring2 and ring3 is received, only the edge port of ring3 is blocked, and the edge port of ring2 is not blocked, so that connectivity is maintained, no loop exists, and corresponding change can be performed quickly.
The invention also provides a processing device based on RRPP, which is applied to an RRPP network comprising an RRPP main ring and at least one RRPP sub ring, wherein each RRPP sub ring has priority, when the RRPP main ring fails, the RRPP main ring is divided into at least two RRPP main ring parts, an edge node and an auxiliary edge node of each RRPP sub ring are located in different RRPP main ring parts, and an edge port of the edge node in each RRPP sub ring is blocked; as shown in fig. 9, the apparatus is used as an edge node or an auxiliary edge node of the RRPP sub-ring, and includes a setting module 91, an obtaining module 92, and a processing module 93, where the obtaining module 92 is connected to the processing module 93, and the setting module 91 is connected to the obtaining module 92 and the processing module 93, respectively.
A setting module 91, configured to set a priority for each RRPP sub-ring according to a relationship between a protection VLAN of each RRPP sub-ring and the RRPP main ring protection VLAN when the apparatus is used as an edge node or an auxiliary edge node of the RRPP sub-ring; such that the more intersections between the protection VLANs of the RRPP sub-ring and the RRPP main ring protection VLANs, the better the RRPP sub-ring has priority.
An obtaining module 92, configured to obtain a priority of each RRPP sub-ring in the RRPP main ring portion when the apparatus is used as an edge node or an auxiliary edge node of the RRPP sub-ring.
The obtaining module 92 is specifically configured to, when the edge node or the auxiliary edge node in each RRPP main ring portion bi-directionally sends an election packet carrying the priority of the RRPP sub-ring on the RRPP main ring through the primary and secondary ports of the RRPP main ring, receive the election packet, and obtain the priority of each RRPP sub-ring in the RRPP main ring portion from the election packet, where the device serves as the edge node or the auxiliary edge node of the RRPP sub-ring.
A processing module 93, configured to, when the apparatus is used as an edge node of the RRPP sub-ring, open a blocked edge port when the apparatus acquires that the RRPP sub-ring with the optimal priority corresponds to the RRPP sub-ring in the RRPP main ring portion. When the device is used as an auxiliary edge node of the RRPP sub-ring, when the device acquires that the RRPP sub-ring with the optimal priority is corresponding to the RRPP main ring part, the device informs the corresponding edge node to open the blocked edge port.
The processing module 93 is specifically configured to, when the edge node obtains that the priority of the RRPP sub-ring corresponding to the edge node in the RRPP main ring portion is optimal, directly open the blocked edge port of the edge node; or, the device is used as an auxiliary edge node of the RRPP sub-ring, and when the auxiliary edge node obtains that the priority of the RRPP sub-ring corresponding to the auxiliary edge node in the RRPP main ring part is optimal, the auxiliary edge node sends an open message to the corresponding edge node through the RRPP sub-ring, and notifies the edge node to open the blocked edge port through the open message.
In addition, when the RRPP main ring is recovered, the processing module 93 is further configured to keep its edge port in an open state when the priority of the RRPP sub-ring corresponding to the edge node in each RRPP main ring is optimal; and when the priority of the RRPP sub-ring corresponding to the edge node in each RRPP main ring part is not optimal, opening the self-blocked edge port.
The modules of the device can be integrated into a whole or can be separately deployed. The modules can be combined into one module, and can also be further split into a plurality of sub-modules.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by hardware, or by software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
Those skilled in the art will appreciate that the drawings are merely schematic representations of one preferred embodiment and that the blocks or flow diagrams in the drawings are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, and may be correspondingly changed in one or more devices different from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
The above-mentioned serial numbers of the present invention are for description only and do not represent the merits of the embodiments.
The above disclosure is only for a few specific embodiments of the present invention, but the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.
Claims (9)
1. A processing method based on a Rapid Ring Protection Protocol (RRPP) is applied to an RRPP network comprising an RRPP main ring and at least one RRPP sub ring, wherein each RRPP sub ring has a priority, when the RRPP main ring fails, the RRPP main ring is divided into at least two RRPP main ring parts, an edge node and an auxiliary edge node of each RRPP sub ring are located in different RRPP main ring parts, and an edge port of the edge node in each RRPP sub ring is blocked; the method comprises the following steps:
the edge node or the auxiliary edge node in each RRPP main ring part acquires the priority of each RRPP sub-ring in the RRPP main ring part;
the edge node of the RRPP sub-ring with the optimal priority in the RRPP main ring part opens the blocked edge port, or,
and the auxiliary edge node of the RRPP subring with the optimal priority in the RRPP main ring part informs the corresponding edge node to open the blocked edge port.
2. The method of claim 1, further comprising:
setting a priority for each RRPP sub-ring according to the relation between the protection virtual local area network VLAN of each RRPP sub-ring and the RRPP main ring protection VLAN; such that the more intersections between the protection VLANs of the RRPP sub-ring and the RRPP main ring protection VLANs, the better the RRPP sub-ring has priority.
3. The method of claim 1, wherein the edge node or the secondary edge node in each RRPP main loop portion obtaining the priority of each RRPP sub-loop in the RRPP main loop portion specifically comprises:
edge nodes or auxiliary edge nodes in each RRPP main ring part send election messages on the RRPP main ring in a bidirectional mode through a main port and an auxiliary port of the RRPP main ring, and the election messages carry the priority of RRPP sub-rings;
and the edge node or the auxiliary edge node in each RRPP main ring part receives the election message and acquires the priority of each RRPP sub-ring in the RRPP main ring part from the election message.
4. The method of claim 3, wherein the opening of the blocked edge port by the edge node of the priority-optimized RRPP sub-ring within the RRPP main ring portion specifically comprises:
when the edge node obtains the priority of the corresponding RRPP sub-ring in the RRPP main ring part to be optimal, the edge node directly opens the blocked edge port of the edge node;
the notifying, by the auxiliary edge node of the RRPP sub-ring with the optimal priority in the RRPP main ring portion, the corresponding edge node to open the blocked edge port specifically includes:
when the auxiliary edge node obtains the optimal priority of the RRPP sub-ring corresponding to the auxiliary edge node in the RRPP main ring part, the auxiliary edge node sends an open message to the corresponding edge node through the RRPP sub-ring, and the edge node is informed of opening the blocked edge port through the open message.
5. The method of any of claims 1-4, wherein when the RRPP primary loop is restored, the method further comprises:
and the edge node of the RRPP sub-ring with the optimal priority in each RRPP main ring part keeps the edge port of the edge node in an opening state, and the edge nodes of other RRPP sub-rings open the edge ports blocked by the edge nodes.
6. An RRPP-based processing apparatus, applied in an RRPP network comprising an RRPP main ring and at least one RRPP sub-ring, each RRPP sub-ring having a priority, wherein when the RRPP main ring fails, the RRPP main ring is divided into at least two RRPP main ring parts, an edge node and an auxiliary edge node of each RRPP sub-ring are to be located in different RRPP main ring parts, and an edge port of an edge node in each RRPP sub-ring is blocked; the device is used as an edge node or an auxiliary edge node of the RRPP sub-ring and comprises an acquisition module and a processing module, wherein the acquisition module is connected with the processing module,
when the apparatus is acting as an edge node of the RRPP sub-ring,
the acquiring module is used for acquiring the priority of each RRPP subring in the RRPP main ring part;
the processing module is used for opening the blocked edge port when the RRPP subring with the optimal priority is obtained in the RRPP main ring part;
when the apparatus is acting as an auxiliary edge node for the RRPP sub-ring,
the acquiring module is used for acquiring the priority of each RRPP subring in the RRPP main ring part;
and the processing module is used for notifying the corresponding edge node to open the blocked edge port when the RRPP sub-ring with the optimal priority is acquired to correspond to the RRPP main ring part.
7. The apparatus of claim 6,
the obtaining module is specifically configured to, when the device serves as an edge node or an auxiliary edge node of the RRPP sub-ring, and the edge node or the auxiliary edge node in each RRPP main ring portion bi-directionally sends an election packet carrying the priority of the RRPP sub-ring on the RRPP main ring through the primary and secondary ports of the RRPP main ring,
and receiving the election message, and acquiring the priority of each RRPP sub-ring in the RRPP main ring part from the election message.
8. The apparatus of claim 7,
the processing module is specifically configured to use the apparatus as an edge node of the RRPP sub-ring, and directly open a blocked edge port of the edge node when the edge node obtains that a priority of the RRPP sub-ring corresponding to the edge node in the RRPP main ring portion is optimal; or,
the device is used as an auxiliary edge node of the RRPP sub-ring, when the auxiliary edge node obtains the optimal priority of the corresponding RRPP sub-ring in the RRPP main ring part, an open message is sent to the corresponding edge node through the RRPP sub-ring, and the edge node is informed to open the blocked edge port through the open message.
9. The apparatus of any of claims 6-8, wherein when the RRPP primary loop is restored,
the processing module is further configured to, when the apparatus is used as an edge node of the RRPP sub-ring with the optimal priority in the RRPP main ring portion, keep an edge port of the apparatus in an open state;
when the device is used as an edge node of the RRPP sub-ring with the non-optimal priority in the RRPP main ring part, opening the self-blocked edge port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010103147 CN101771705B (en) | 2010-02-01 | 2010-02-01 | Processing method based on RRPP and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010103147 CN101771705B (en) | 2010-02-01 | 2010-02-01 | Processing method based on RRPP and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101771705A CN101771705A (en) | 2010-07-07 |
CN101771705B true CN101771705B (en) | 2013-01-16 |
Family
ID=42504296
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010103147 Active CN101771705B (en) | 2010-02-01 | 2010-02-01 | Processing method based on RRPP and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101771705B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102664785A (en) * | 2012-04-23 | 2012-09-12 | 中兴通讯股份有限公司 | Method and system for protecting intersecting ring |
CN103067274A (en) * | 2012-12-19 | 2013-04-24 | 中兴通讯股份有限公司 | Spanning tree back-up port quick recovery method and device |
CN103746912B (en) * | 2014-01-03 | 2017-04-12 | 杭州华三通信技术有限公司 | Data message transmission method and equipment based on subring link |
CN108900404B (en) * | 2018-07-11 | 2020-12-25 | 智强通达科技(北京)有限公司 | Super ring network structure for redundancy backup |
CN109218183A (en) * | 2018-08-03 | 2019-01-15 | 南京理工大学 | A method of overcoming RRPP fringe node flow interrupt |
CN114584421A (en) * | 2022-02-18 | 2022-06-03 | 新华三技术有限公司 | Communication method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1909496A (en) * | 2006-08-24 | 2007-02-07 | 杭州华为三康技术有限公司 | Intersecting Ether ring net and its automatic protecting method, node device for Ether ring net |
CN101075934A (en) * | 2007-03-06 | 2007-11-21 | 中兴通讯股份有限公司 | Method and apparatus for ensuring Ethernet reliable operation in transmission node fault |
CN101247306A (en) * | 2008-03-13 | 2008-08-20 | 华为技术有限公司 | Edge port blocking method in Ethernet ring network, Ethernet ring network system and equipment |
CN101631060A (en) * | 2009-08-18 | 2010-01-20 | 杭州华三通信技术有限公司 | Method and device for managing edge port |
-
2010
- 2010-02-01 CN CN 201010103147 patent/CN101771705B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1909496A (en) * | 2006-08-24 | 2007-02-07 | 杭州华为三康技术有限公司 | Intersecting Ether ring net and its automatic protecting method, node device for Ether ring net |
CN101075934A (en) * | 2007-03-06 | 2007-11-21 | 中兴通讯股份有限公司 | Method and apparatus for ensuring Ethernet reliable operation in transmission node fault |
CN101247306A (en) * | 2008-03-13 | 2008-08-20 | 华为技术有限公司 | Edge port blocking method in Ethernet ring network, Ethernet ring network system and equipment |
CN101631060A (en) * | 2009-08-18 | 2010-01-20 | 杭州华三通信技术有限公司 | Method and device for managing edge port |
Also Published As
Publication number | Publication date |
---|---|
CN101771705A (en) | 2010-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8588060B2 (en) | E-spring (G.8032) interworking to provide access protection | |
US6717922B2 (en) | Network configuration protocol and method for rapid traffic recovery and loop avoidance in ring topologies | |
US8724519B2 (en) | Technique for dual homing interconnection between communication networks | |
US7394758B2 (en) | Method for supporting SDH/SONET APS on Ethernet | |
EP2436154B1 (en) | Transient loop prevention in a hybrid layer-2 network | |
CN101854283B (en) | Communication method and equipment of RPR (Resilient Packet Ring) looped network | |
US20090003313A1 (en) | Activating a Tunnel upon Receiving a Control Packet | |
CN101771705B (en) | Processing method based on RRPP and device | |
CN101873244B (en) | Automatic multi-loop protection method | |
US20110292833A1 (en) | Port table flushing in ethernet networks | |
US20130039170A1 (en) | Method and apparatus for providing an uplink over an access ring | |
US9641396B2 (en) | Packet processing method and system | |
CN104079462B (en) | Looped network configures detection method and device | |
US20100254257A1 (en) | Method for processing failure of slave port of master node in ethernet ring network system | |
US9705701B2 (en) | Method for protecting an Ethernet ring from a superloop going through the Ethernet ring | |
US20140301185A1 (en) | Handling a fault in an ethernet ring network | |
CN103078777B (en) | Be applied to loop removing method and device in elastic packet loop network | |
WO2012139531A1 (en) | Handling a fault in an ethernet ring network | |
CN103746912B (en) | Data message transmission method and equipment based on subring link | |
US20120314565A1 (en) | Method for protection against superloops in an ethernet ring | |
US9923731B1 (en) | Seamless migration from multiple spanning tree protocol to ethernet ring protection switching protocol | |
EP1672847B1 (en) | Ring rapid spanning tree protocol | |
CN209313855U (en) | A kind of nuclear power security system based on rapid ring protection protocol | |
JP2011223172A (en) | Ring-type network system, communication apparatus and failure detection method | |
CN111464436B (en) | Method for solving single-port loop of RSTP (remote station transfer protocol) |
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 | ||
CP03 | Change of name, title or address |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Patentee after: Xinhua three Technology Co., Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Patentee before: Huasan Communication Technology Co., Ltd. |
|
CP03 | Change of name, title or address |