CN114584421A - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN114584421A
CN114584421A CN202210150439.7A CN202210150439A CN114584421A CN 114584421 A CN114584421 A CN 114584421A CN 202210150439 A CN202210150439 A CN 202210150439A CN 114584421 A CN114584421 A CN 114584421A
Authority
CN
China
Prior art keywords
ring
sub
edge
node
edge node
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.)
Pending
Application number
CN202210150439.7A
Other languages
Chinese (zh)
Inventor
金煜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN202210150439.7A priority Critical patent/CN114584421A/en
Publication of CN114584421A publication Critical patent/CN114584421A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure

Abstract

The application provides a communication method and a device, the method is applied to an auxiliary edge node, the auxiliary edge node is in an RRPP (ring rapid peer protocol) networking, the RRPP networking comprises a main ring and a plurality of sub-rings, the main ring and the plurality of sub-rings simultaneously comprise the auxiliary edge node and an edge node, and the method comprises the following steps: when determining that at least two links included in the main ring are failed, determining the minimum value of the domain identifier from the healthy ring list; determining the first subring corresponding to the minimum value as a selection ring, and not sending a Major-Fault message in the first subring; and determining a second sub-ring corresponding to other domain identifiers except the minimum value as a non-selected ring, and sending the Major-Fault message in the second sub-ring, so that after an edge node on the second sub-ring receives the Major-Fault message, a corresponding edge port is blocked.

Description

Communication method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method and apparatus.
Background
Metropolitan area networks and enterprise networks are generally constructed by using ring networks (e.g., RPR, ethernet ring, etc.), so as to provide high reliability, but if any node on the ring network fails, the service will be affected. RPR requires dedicated hardware construction and is therefore costly. The ethernet ring technology is becoming mature and low cost, and the trend of adopting ethernet ring in metropolitan area networks and enterprise networks is becoming more and more obvious.
The fast Ring Protection Protocol (RRPP) is a link layer Protocol specially applied to ethernet rings, and the convergence time of RRPP is irrelevant to the number of nodes on the Ring network, and can be applied to networks with larger network diameters.
As shown in fig. 1, fig. 1 is a schematic diagram of a conventional RRPP networking multi-sub-ring. In fig. 1, the RRPP networking includes one Master ring (Master ring) and two sub rings (sub rings). The main ring includes node a, node B, node C, and node D. Node a is a master node, node B, node C, and node D are transmission nodes, node B may also be referred to as an edge node, and node D may also be referred to as an auxiliary edge node. One sub-ring includes a node E, a node B, and a node D, where the node E is a master node, and the node B and the node D are transmission nodes. The other sub-ring comprises a node F, a node B and a node D, wherein the node F is a main node, and the node B and the node D are transmission nodes.
And every 0.5s, the node B sends Edge-Hello messages to the node D through links in two directions (B-A-C-D direction and B-D direction). Node B detects the links in both directions between itself and node D. And if the node D does not receive the Edge-Hello message from the links in the two directions within 2s, the node D determines that the links in the two directions between the node B and the node D have faults. The node D will send a Major error (Major-Fault) message to the node B along each sub-ring direction, respectively. After receiving the Major-Fault message, the node B blocks the edge port in the direction of each sub-ring in the node B, so that the sub-rings can be prevented from being looped.
In the RRPP networking, when multiple links in a main ring fail and multiple sub-rings exist, an auxiliary edge node sends a Major-Fault message in each sub-ring, and an edge port of an edge node blocks an edge port of each sub-ring after receiving the Major-Fault message. Therefore, the link failure of the main port and the auxiliary port of the edge node is not communicated, the edge port blocks the flow and is not communicated, and the edge node becomes an isolated island and cannot communicate with the outside.
Disclosure of Invention
In view of this, the present application provides a communication method and apparatus, so as to solve the problem that, in the existing RRPP networking, when two links of a main ring fail and there are multiple sub-rings, the link failure of a primary port and a secondary port of an edge node is not through, and the edge port blocks different flows, so that the edge node cannot communicate with the outside.
In a first aspect, the present application provides a communication method, where the method is applied to an auxiliary edge node, where the auxiliary edge node is in an RRPP networking, where the RRPP networking includes a main ring and a plurality of sub-rings, and the main ring and the plurality of sub-rings include the auxiliary edge node and an edge node at the same time, and the method includes:
when determining that at least two links included in the main ring are failed, determining the minimum value of the domain identifier from the healthy ring list;
determining the first subring corresponding to the minimum value as a selection ring, and not sending a Major-Fault message in the first subring;
and determining a second sub-ring corresponding to other domain identifiers except the minimum value as a non-selected ring, and sending the Major-Fault message in the second sub-ring, so that after an edge node on the second sub-ring receives the Major-Fault message, a corresponding edge port is blocked.
In a second aspect, the present application provides a communications apparatus, the apparatus is applied to an auxiliary edge node, the auxiliary edge node is in an RRPP networking, the RRPP networking includes a main ring and a plurality of sub-rings, the main ring and the plurality of sub-rings include the auxiliary edge node and an edge node at the same time, the apparatus includes:
a determining unit, configured to determine, when it is determined that at least two links included in the primary ring are failed, a minimum value of the domain identifier from the healthy ring list;
the processing unit is used for determining the first sub-ring corresponding to the minimum value as the selection ring and not sending the Major-Fault message in the first sub-ring;
and the sending unit is used for determining a second sub-ring corresponding to the domain identifier except the minimum value as a non-selected ring, and sending the Major-Fault message in the second sub-ring, so that after the edge node on the second sub-ring receives the Major-Fault message, a corresponding edge port is blocked.
In a third aspect, the present application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to perform the method provided by the first aspect of the present application.
Therefore, by applying the communication method and the communication device provided by the application, when at least two links included in the main ring are determined to be in failure, the auxiliary edge node determines the minimum value of the domain identifier from the healthy ring list; the auxiliary edge node determines a first sub-ring corresponding to the minimum value as a selection ring, and does not send a Major-Fault message in the first sub-ring; and the auxiliary edge node determines a second sub-ring corresponding to other domain identifications except the minimum value as a non-selected ring, and sends a Major-Fault message in the second sub-ring, so that the edge node on the second sub-ring blocks a corresponding edge port after receiving the Major-Fault message.
Therefore, when the main ring has multiple link faults, the auxiliary edge node determines the sub-ring corresponding to the minimum domain identifier value as the selected ring, so that the edge node does not receive the Major-Fault message sent in the selected ring and does not block the edge port corresponding to the selected ring. The method solves the problem that in the existing RRPP networking, when two links of a main ring have faults and a plurality of subrings exist, the links of the main port and the auxiliary port of an edge node have faults and are not communicated, and the edge port blocks different flow, so that the edge node cannot communicate with the outside. When a plurality of links in the main ring are in fault, the auxiliary edge node flexibly selects and refreshes one of the sub-rings to be in an open state, and the edge node is ensured not to become an island.
Drawings
FIG. 1 is a schematic diagram of a conventional RRPP networking multi-subring;
fig. 2 is a flowchart of a communication method provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a RRPP networking multi-subring according to an embodiment of the present disclosure;
fig. 4 is a structural diagram of a communication device according to an embodiment of the present application;
fig. 5 is a hardware structure of a network device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the corresponding listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The following describes the communication method provided in the embodiments of the present application in detail. Referring to fig. 2, fig. 2 is a flowchart of a communication method according to an embodiment of the present disclosure. The method is applied to the auxiliary edge node. The communication method provided by the embodiment of the application can comprise the following steps.
Step 210, when it is determined that at least two links included in the primary ring are failed, determining a minimum value of the domain identifier from the list of healthy rings.
Specifically, the RRPP networking comprises a main ring and a plurality of sub-rings, wherein the main ring and each sub-ring simultaneously comprise an auxiliary edge node and an edge node.
In the main ring, the edge node establishes a connection with the auxiliary edge node through links in two directions. Generally, an Edge node sends an Edge-Hello packet to an auxiliary Edge node through links in two directions in a main ring respectively. The edge node detects links in two directions in a main ring between the edge node and the auxiliary edge node.
If the Edge-Hello message is not received by the auxiliary Edge node from the links in the two directions in the main ring within 2s, the auxiliary Edge node determines that at least two links in the main ring between the Edge node and the auxiliary Edge node have faults.
When it is determined that at least two links within the primary ring fail, the secondary edge node determines the minimum value of the domain identification from a locally stored list of healthy rings.
It should be noted that in the health ring table, the domain identifier of at least one sub-ring is stored.
Step 220, determining the first sub-ring corresponding to the minimum value as the selection ring, and not sending the Major-Fault message in the first sub-ring.
Specifically, according to the description of step 210, after the auxiliary edge node determines the minimum value of the domain identifier from the healthy ring list, the first sub-ring corresponding to the minimum value is determined as the selected ring. The auxiliary edge node does not send the Major-Fault message in the first subring any more.
Therefore, the edge port belonging to the first sub-ring in the edge node cannot receive the Major-Fault message. Because the edge port belonging to the first sub-ring in the edge node does not receive the Major-Fault message, the edge node does not block the edge port any more, and the edge port is kept in an open state.
Step 230, determining a second sub-ring corresponding to the other domain identifiers except the minimum value as a non-selected ring, and sending the Major-Fault message in the second sub-ring, so that after receiving the Major-Fault message, an edge node on the second sub-ring blocks a corresponding edge port.
Specifically, according to the description of step 210, after the auxiliary edge node determines the minimum value of the domain identifier from the healthy ring list, the second sub-ring (the number of the second sub-rings may be multiple) corresponding to the domain identifier other than the minimum value is determined as the non-selected ring.
Aiming at the non-selected ring, the auxiliary edge node sends a Major-Fault message in the cost selected ring. Thus, the edge port belonging to the second sub-ring in the edge node receives the Major-Fault message. Because the edge port belonging to the second sub-ring in the edge node receives the Major-Fault message, the edge node blocks the edge port and keeps the edge port in a blocking state.
Therefore, by applying the communication method provided by the application, when determining that at least two links included in the primary ring are failed, the auxiliary edge node determines the minimum value of the domain identifier from the healthy ring list; the auxiliary edge node determines a first sub-ring corresponding to the minimum value as a selection ring, and does not send a Major-Fault message in the first sub-ring; and the auxiliary edge node determines a second sub-ring corresponding to other domain identifications except the minimum value as a non-selected ring, and sends a Major-Fault message in the second sub-ring, so that the edge node on the second sub-ring blocks a corresponding edge port after receiving the Major-Fault message.
Therefore, when the main ring has multiple link faults, the auxiliary edge node determines the sub-ring corresponding to the minimum domain identifier value as the selected ring, so that the edge node does not receive the Major-Fault message sent in the selected ring and does not block the edge port corresponding to the selected ring. The method solves the problem that in the existing RRPP networking, when two links of a main ring have faults and a plurality of sub-rings exist, the links of a main port and an auxiliary port of an edge node have faults and the edge ports have different blocking flows, so that the edge node cannot communicate with the outside. When a plurality of links in the main ring are in fault, the auxiliary edge node flexibly selects and refreshes one of the sub-rings to be in an open state, and the edge node is ensured not to become an island.
Optionally, in this embodiment of the present application, the method further includes assisting a processing procedure of the edge node when the health ring list includes one domain identifier.
Specifically, if the health ring list includes a domain identifier, the auxiliary edge node determines a third sub-ring corresponding to the domain identifier as the selection ring. The auxiliary edge node does not send the Major-Fault message in the third subring any more. Therefore, the edge port belonging to the third sub-ring in the edge node cannot receive the Major-Fault message. Because the edge port belonging to the third sub-ring in the edge node does not receive the Major-Fault message, the edge node does not block the edge port any more, and the edge port is kept in an open state.
Optionally, in this embodiment of the present application, a processing procedure of the auxiliary edge node when the sub-ring is deleted is further included.
Specifically, when it is determined that the fourth sub-ring is deleted and at least two links included in the main ring fail, the auxiliary edge node determines whether the fourth sub-ring is a selected ring; if so, the auxiliary edge node deletes the domain identifier corresponding to the fourth sub-ring from the healthy ring list; the auxiliary edge node determines the minimum value of the domain identifier from the healthy ring list again; the auxiliary edge node determines a fifth sub-ring corresponding to the minimum value as a selected ring; the auxiliary edge node sends a Link recovery (Link recovery) message in the fifth sub-ring, so that after the edge port on the fifth sub-ring receives the Link recovery message, the corresponding edge port is opened, and the edge port corresponding to the fourth sub-ring is blocked.
In the embodiment of the application, the Link recovery message is used for assisting the edge node to reselect the scene of the selected middle ring when the selected middle ring is deleted.
It will be appreciated that the fifth sub-ring is previously the non-selected ring and the edge ports within the edge node belonging to the fifth sub-ring are previously in the blocked state.
Optionally, in this embodiment of the present application, a processing procedure of assisting the edge node when adding the sub-ring is further included.
Specifically, when it is determined that a sixth sub-ring is added in the RRPP networking and at least two links included in the main ring are failed, the auxiliary edge node determines the sixth sub-ring as a non-selected ring, and sends a Major-Fault message in the sixth sub-ring, so that an edge port on the sixth sub-ring blocks a corresponding edge port after receiving the Major-Fault message.
It can be understood that when a new sub-ring is added in the RRPP networking, if the auxiliary edge node selects a ring from the healthy ring list in advance, the added new sub-ring is determined to be a non-selected ring.
Optionally, in this embodiment of the present application, a process of assisting the edge node to create the healthy ring list and update the healthy ring list is further included.
In particular, the auxiliary edge node comprises at least one edge port. E.g., edge port 1, edge port 2, edge port 3. Each edge port belongs to a sub-ring. For example, edge port 1 belongs to sub-ring 1, edge port 2 belongs to sub-ring 2, and edge port 3 belongs to sub-ring 3.
Secondary edge node before performing step 210, the secondary edge node creates a list of health rings. And according to the number of the edge ports, the auxiliary edge node starts a corresponding number of timers, and each timer is configured with the same preset time. For example, in this example, the secondary edge node starts 3 timers, each configured with a preset time of 3 s.
It should be noted that the edge node also includes at least one edge port, and each edge port belongs to one sub-ring. The number of edge ports included in the edge node is the same as the number of edge ports included in the auxiliary edge node. For example, the edge node includes edge ports of edge port 4, edge port 5, and edge port 6; edge port 4 belongs to sub-ring 1, edge port 5 belongs to sub-ring 2, and edge port 6 belongs to sub-ring 3.
The edge node also starts a corresponding number of timers, and each timer is configured with the same preset time. For example, in this example, the edge node starts 3 timers, each configured with a preset time of 1 s.
And every 1s, the edge node sends a Sub-Hello message in the corresponding Sub-ring through the edge port. In the embodiment of the application, the Sub-Hello message is received and terminated at the auxiliary edge node, and is used for monitoring whether each Sub-ring is in a healthy state.
In each 3s, the auxiliary edge node judges whether each edge port receives a Sub-Hello message sent by the edge node; in 3s, if an edge port belonging to a certain Sub-ring receives a Sub-Hello message, the auxiliary edge node adds a domain identifier of the Sub-ring belonging to the edge port receiving the Sub-Hello message into the health ring list; and the auxiliary edge node refreshes a timer started for the edge port receiving the Sub-Hello message.
For example, in 3s, when the edge port 1 receives a Sub-Hello packet sent by the edge port 4, the auxiliary edge node adds the domain identifier of the Sub-ring 1 to the health ring list, and refreshes the timer started for the edge port 1. In 3s or outside 3s, if the edge port 2 does not receive the Sub-Hello packet sent by the edge port 5, the auxiliary edge node does not add the domain identifier of the Sub-ring 2 to the health ring list, and refreshes the timer started for the edge port 2.
Optionally, in this embodiment of the present application, a process of assisting the edge node to update the health ring list is further included.
In particular, the auxiliary edge node comprises a first edge interface belonging to the seventh sub-ring. The secondary edge node starts a timer configured with a preset time of 3 s.
It should be noted that the edge node includes a second edge port, and the second edge port belongs to the seventh sub-ring. The edge node also starts a timer configured with a preset time of 1 s.
And every 1s, the edge node sends a Sub-Hello message in the seventh Sub-ring through the second edge port.
In 3s, the auxiliary edge node judges whether the first edge port receives a Sub-Hello message sent by the edge node; and outside 3s, if the first edge port does not receive the Sub-Hello message and the domain identifier of the seventh Sub-ring already exists in the healthy ring list, the auxiliary edge node determines that the seventh Sub-ring has a fault and deletes the domain identifier of the seventh Sub-ring from the healthy ring list.
Optionally, in this embodiment of the present application, if all failed links in the main ring are recovered to be normal, the main node in each sub-ring receives a Hello packet sent by itself, then the main node in each sub-ring blocks an auxiliary port of itself, and sends a Complete-Flush-forward Database (english: Complete-Flush-Forwarding Database, abbreviated as Complete-Flush-FDB) packet in each sub-ring through the main port of itself, after receiving the Complete-Flush-FDB packet, the edge node releases the currently blocked edge port, and all links in the RRPP group network are recovered to be normal.
The following describes the communication method provided in the embodiments of the present application in detail. Referring to fig. 3, fig. 3 is a schematic diagram of a RRPP networking multi-subring according to an embodiment of the present application.
In fig. 3, the RRPP networking includes a main ring and three sub-rings. The main ring consists of a node A, a node B, a node C and a node D; the sub-ring 1 is composed of a node E, a node B, and a node D; the sub-ring 2 is composed of a node F, a node B, and a node D; the sub-ring 3 is composed of a node G, a node B, and a node D.
Wherein, the node A, the node E, the node F and the node G are main nodes of each ring; node B, node C and node D are transmission nodes. Node B may also be referred to as an edge node and node D may also be referred to as an auxiliary edge node, since node B and node D are on the primary ring and the respective sub-rings simultaneously.
Typically, node B detects links in both directions within the main ring between itself and node D, i.e., the B-a-C-D direction and the B-D direction. And the node B sends Edge-Hello messages to the node D through the links in the two directions respectively.
If the node D does not receive the Edge-Hello packet from the links in the two directions within 2s, the node D determines that at least two links in the main ring have a failure, that is, the links in the two directions have failed. As shown in fig. 3, a-C segment link failure, B-D segment link failure.
When it is determined that multiple links within the primary ring fail, node D determines the minimum value of the domain identification from the locally stored list of healthy rings. In the embodiment of the present application, the health ring list includes the domain identifier of sub-ring 1, the domain identifier of sub-ring 2, and the domain identifier of sub-ring 3. For example, the minimum value is the domain identification of sub-ring 1.
And after determining the minimum value of the domain identifier from the healthy ring list, the node D determines the sub-ring 1 as the selected ring. The node D does not send a Major-Fault message in the subring 1. Thus, the edge port a1 belonging to the sub-ring 1 in the node B cannot receive the Major-Fault message. Because the edge port a1 belonging to sub-ring 1 in the node B does not receive the Major-Fault message, the node B does not block the edge port a1 any more, and keeps the edge port a1 in an open state.
Meanwhile, the node D determines the sub-ring 2 and the sub-ring 3 as non-selected rings, and sends a Major-Fault message in the sub-ring 2 and the sub-ring 3. Thus, the edge port a2 belonging to the sub-ring 2 and the edge port A3 belonging to the sub-ring 3 in the node B receive the Major-Fault message. Because the edge port a2 belonging to the sub-ring 2 and the edge port A3 belonging to the sub-ring 3 in the node B receive the Major-Fault message, the node B blocks the edge port a2 and the edge port A3, and keeps the edge port a2 and the edge port A3 in a blocking state.
Further, if only one domain id is included in the healthy ring list, for example, the domain id of sub-ring 1, node D determines sub-ring 1 as the selected ring. The node D does not send a Major-Fault message in the subring 1. Thus, the edge port a1 belonging to the sub-ring 1 in the node B cannot receive the Major-Fault message. Because the edge port a1 belonging to sub-ring 1 in the node B does not receive the Major-Fault message, the node B does not block the edge port a1 any more, and keeps the edge port a1 in an open state.
Further, when it is determined that the sub-ring 1 is deleted and the plurality of links in the main ring are still in failure, the node D determines whether the sub-ring 1 is the selected ring. If yes, the node D deletes the domain identifier corresponding to the sub-ring 1 from the healthy ring list. Node D determines the minimum value of the domain identifier again from the healthy ring list, for example, the domain identifier of sub-ring 2 is the minimum value; node D determines sub-ring 2 as the selected ring. And the node D sends a Link Recover message in the subring 2, so that the edge port A2 belonging to the subring 2 in the node B receives the Link Recover message. Thus, node B no longer blocks edge port A2, leaving edge port A2 open.
Further, when it is determined that the subring 4 is added in the RRPP networking and multiple links in the main ring are still in fault, the node D first determines whether a selected ring currently exists. If the sub-ring 4 exists, the node D determines the sub-ring 4 as a non-selected ring, and sends a Major-Fault message in the sub-ring 4. Thus, the edge port a4 belonging to the sub-ring 4 in the node B receives the Major-Fault message. Thus, node B blocks edge port a 4.
Further, the process of node D creating a list of health rings and updating the list of health rings is briefly described below.
Also included within node D are a plurality of edge ports. For example, edge port B1, edge port B2, edge port B3. Each edge port belongs to a sub-ring. For example, edge port B1 belongs to subring 1, edge port B2 belongs to subring 2, and edge port B3 belongs to subring 3.
Node D creates a list of health rings. And starting corresponding number of timers by the node D according to the number of the edge ports, wherein each timer is configured with the same preset time. For example, in this example, node D starts 3 timers, each configured with a preset time of 3 s.
It should be noted that the node B also starts a corresponding number of timers, and each timer is configured with the same preset time. For example, in this example, the node B starts 3 timers, each configured with a preset time of 1 s.
Every 1s, the node B sends a Sub-Hello message in the corresponding Sub-ring through the edge ports A1, A2 and A3.
In each 3s, the node D judges whether each edge port receives a Sub-Hello message sent by the node B. In 3s, if the edge port belonging to a certain Sub-ring receives a Sub-Hello message, the node D adds the domain identifier of the Sub-ring to which the edge port receiving the Sub-Hello message belongs to the healthy ring list. And the node D refreshes a timer started for the edge port receiving the Sub-Hello message.
For example, in 3s, when the edge port B1 receives the Sub-Hello packet sent by the edge port a1, the node D adds the domain identifier of the Sub-ring 1 to the health ring list, and refreshes the timer started for the edge port B1. In 3s or outside 3s, if the edge port B2 does not receive the Sub-Hello packet sent by the edge port a2, the node D does not add the domain identifier of the Sub-ring 2 to the health ring list, and refreshes the timer started for the edge port 2.
Further, within 3s, the node D judges whether the edge port receives a Sub-Hello message sent by the node B; outside 3s, if the edge port B1 does not receive the Sub-Hello packet and the domain identifier of Sub-ring 1 already exists in the healthy ring list, node D determines that Sub-ring 1 is faulty and deletes the domain identifier of Sub-ring 1 from the healthy ring list.
Further, if the failed links in the main ring are all restored to normal, the main node in each sub-ring receives a Hello message sent by the main node, then the main node in each sub-ring blocks the auxiliary port of the main node, and sends a Complete-Flush-FDB message in each sub-ring through the main port of the main node, after receiving the Complete-Flush-FDB message, the node B releases the currently blocked edge port, and all links in the RRPP group network are restored to normal.
Based on the same inventive concept, the embodiment of the application also provides a communication device corresponding to the communication method. Referring to fig. 4, fig. 4 is a communication apparatus provided in this embodiment, the apparatus is applied to an auxiliary edge node, the auxiliary edge node is in an RRPP networking, the RRPP networking includes a main ring and a plurality of sub-rings, and the main ring and the plurality of sub-rings include the auxiliary edge node and an edge node at the same time, the apparatus includes:
a first determining unit 410, configured to determine, when it is determined that at least two links included in the primary ring are failed, a minimum value of the domain identifier from the healthy ring list;
a processing unit 420, configured to determine the first sub-ring corresponding to the minimum value as a middle selection ring, and not send a Major-Fault message in the first sub-ring;
a sending unit 430, configured to determine a second sub-ring corresponding to the domain identifier other than the minimum value as a non-selected ring, and send the Major-Fault packet in the second sub-ring, so that after receiving the Major-Fault packet, an edge node on the second sub-ring blocks a corresponding edge port.
Optionally, the processing unit 420 is further configured to, if the health ring list includes a domain identifier, determine a third sub-ring corresponding to the domain identifier as a selection ring, and not send the Major-Fault packet in the third sub-ring.
Optionally, the apparatus further comprises:
a first judging unit (not shown in the figure) configured to judge whether a fourth sub-ring is a selected ring when it is determined that the fourth sub-ring is deleted and at least two links included in the main ring fail;
a first deleting unit (not shown in the figure), configured to delete the domain identifier corresponding to the fourth sub-ring from the healthy ring list if the first sub-ring is detected to be the first sub-ring;
the first determining unit 410 is further configured to determine again a minimum value of the domain identifier from the list of health rings;
the processing unit 420 is further configured to determine a fifth sub-ring corresponding to the minimum value as the selected ring;
the sending unit 430 is further configured to send a Link recovery message in the fifth sub-ring, so that after the edge node on the fifth sub-ring receives the Link recovery message, a corresponding edge port is opened.
Optionally, the sending unit 430 is further configured to, when it is determined that a sixth sub-ring is added in the RRPP networking and at least two links included in the main ring are failed, determine the sixth sub-ring as a non-selected ring, and send the Major-Fault packet in the sixth sub-ring, so that after receiving the Major-Fault packet, an edge node on the sixth sub-ring blocks a corresponding edge port.
Optionally, the auxiliary edge node comprises at least one edge port, each edge port belonging to one sub-ring;
the device further comprises:
a creating unit (not shown in the figure) for creating the health ring list;
a starting unit (not shown in the figure) for starting a corresponding number of timers according to the number of the edge ports, wherein each timer is configured with the same preset time;
a second determining unit (not shown in the figure), configured to determine, within each preset time, whether each edge port receives a Sub-Hello packet sent by the edge node;
an adding unit (not shown in the figure), configured to add, if the Sub-ring is received within the preset time, a domain identifier of a Sub-ring to which an edge port that receives the Sub-Hello packet belongs to the health ring list;
and a refreshing unit (not shown in the figure) configured to refresh a timer started for the edge port that receives the Sub-Hello packet.
Optionally, the auxiliary edge node includes a first edge interface, and the first edge interface belongs to a seventh sub-ring; the device further comprises:
a third determining unit (not shown in the figure), configured to determine whether the first edge interface receives a Sub-Hello packet sent by the edge node within a preset time;
a second determining unit (not shown in the figure) for determining that the seventh sub-ring is failed if the domain identifier of the seventh sub-ring is not received outside the preset time and already exists in the healthy ring list;
a second deleting unit (not shown in the figure) for deleting the domain identification of the seventh sub-ring from the list of healthy rings.
Therefore, by applying the communication method and the communication device provided by the application, when at least two links included in the main ring are determined to be in failure, the auxiliary edge node determines the minimum value of the domain identifier from the healthy ring list; the auxiliary edge node determines a first sub-ring corresponding to the minimum value as a selection ring, and does not send a Major-Fault message in the first sub-ring; and the auxiliary edge node determines a second sub-ring corresponding to other domain identifications except the minimum value as a non-selected ring, and sends a Major-Fault message in the second sub-ring, so that the edge node on the second sub-ring blocks a corresponding edge port after receiving the Major-Fault message.
Therefore, when the main ring has multiple link faults, the auxiliary edge node determines the sub-ring corresponding to the minimum domain identifier value as the selected ring, so that the edge node does not receive the Major-Fault message sent in the selected ring and does not block the edge port corresponding to the selected ring. The method solves the problem that in the existing RRPP networking, when two links of a main ring have faults and a plurality of sub-rings exist, the links of a main port and an auxiliary port of an edge node have faults and the edge ports have different blocking flows, so that the edge node cannot communicate with the outside. When a plurality of links in the main ring are in fault, the auxiliary edge node flexibly selects and refreshes one of the sub-rings to be in an open state, and the edge node is ensured not to become an island.
Based on the same inventive concept, the embodiment of the present application further provides a network device, as shown in fig. 5, including a processor 510, a transceiver 520, and a machine-readable storage medium 530, where the machine-readable storage medium 530 stores machine-executable instructions capable of being executed by the processor 510, and the processor 510 is caused by the machine-executable instructions to perform the communication method provided by the embodiment of the present application. The communication apparatus shown in fig. 4 can be implemented by using the hardware structure of the network device shown in fig. 5.
The computer-readable storage medium 530 may include a Random Access Memory (RAM) or a Non-volatile Memory (NVM), such as at least one disk Memory. Alternatively, the computer-readable storage medium 530 may also be at least one storage device located remotely from the processor 510.
The Processor 510 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the system can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components.
In the embodiment of the present application, the processor 510, by reading the machine executable instructions stored in the machine readable storage medium 530, is caused by the machine executable instructions to implement the processor 510 itself and the call transceiver 520 to perform the communication method described in the foregoing embodiment of the present application.
Additionally, embodiments of the present application provide a machine-readable storage medium 530, the machine-readable storage medium 530 storing machine-executable instructions that, when invoked and executed by the processor 510, cause the processor 510 itself and the invoking transceiver 520 to perform the communication methods described in embodiments of the present application.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
As for the embodiments of the communication apparatus and the machine-readable storage medium, since the contents of the related methods are substantially similar to those of the foregoing embodiments of the methods, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the embodiments of the methods.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (12)

1. A communication method applied to a secondary edge node, wherein the secondary edge node is in a RRPP networking, and wherein the RRPP networking includes a primary ring and a plurality of sub-rings, and wherein the primary ring and the plurality of sub-rings include the secondary edge node and an edge node at the same time, the method comprising:
when determining that at least two links included in the main ring are failed, determining the minimum value of the domain identifier from the healthy ring list;
determining the first subring corresponding to the minimum value as a selection ring, and not sending a Major-Fault message in the first subring;
and determining a second sub-ring corresponding to other domain identifiers except the minimum value as a non-selected ring, and sending the Major-Fault message in the second sub-ring, so that after an edge node on the second sub-ring receives the Major-Fault message, a corresponding edge port is blocked.
2. The method of claim 1, further comprising:
and if the health ring list comprises a domain identifier, not sending the Major-Fault message in a third subring corresponding to the domain identifier.
3. The method of claim 1, further comprising:
when it is determined that a fourth sub-ring is deleted and at least two links included in the main ring fail, judging whether the fourth sub-ring is a selected ring;
if yes, deleting the domain identifier corresponding to the fourth sub-ring from the healthy ring list;
determining the minimum value of the domain identifier again from the health ring list;
determining a fifth sub-ring corresponding to the minimum value as a selected ring;
and sending a Link Recover message in the fifth sub-ring, so that after the edge node on the fifth sub-ring receives the Link Recover message, the corresponding edge port is opened, and the edge port corresponding to the fourth sub-ring is blocked.
4. The method of claim 1, further comprising:
when determining that a sixth sub-ring is added in the RRPP networking and at least two links included in the main ring have faults, determining the sixth sub-ring as a non-selected ring, and sending the Major-Fault message in the sixth sub-ring, so that an edge node on the sixth sub-ring blocks a corresponding edge port after receiving the Major-Fault message.
5. The method of claim 1, wherein the auxiliary edge node comprises at least one edge port, each edge port belonging to a sub-ring;
before determining the minimum value of the domain identifier from the healthy ring list when determining that at least two links included in the primary ring are failed, the method further includes:
creating the health ring list;
starting a corresponding number of timers according to the number of the edge ports, wherein each timer is configured with the same preset time;
judging whether each edge port receives a Sub-Hello message sent by the edge node within each preset time;
if the Sub-ring is received within the preset time, adding the domain identifier of the Sub-ring to which the edge port receiving the Sub-Hello message belongs into the health ring list;
and refreshing a timer started for the edge port receiving the Sub-Hello message.
6. The method of claim 1, wherein the auxiliary edge node comprises a first edge interface, and wherein the first edge interface belongs to a seventh sub-ring; the method further comprises the following steps:
judging whether the first edge interface receives a Sub-Hello message sent by the edge node or not within a preset time;
if the domain identifier of the seventh sub-ring does not exist in the healthy ring list after the preset time, determining that the seventh sub-ring has a fault;
deleting the domain identification of the seventh sub-ring from the list of healthy rings.
7. A communications apparatus, the apparatus being applied to a secondary edge node, the secondary edge node being in a RRPP networking, the RRPP networking including a primary ring and a plurality of sub-rings, the primary ring and the plurality of sub-rings including the secondary edge node and an edge node at the same time, the apparatus comprising:
a first determining unit, configured to determine, when it is determined that at least two links included in the primary ring are failed, a minimum value of the domain identifier from the healthy ring list;
the processing unit is used for determining the first sub-ring corresponding to the minimum value as the selection ring and not sending the Major-Fault message in the first sub-ring;
and the sending unit is used for determining a second sub-ring corresponding to the domain identifier except the minimum value as a non-selected ring, and sending the Major-Fault message in the second sub-ring, so that after the edge node on the second sub-ring receives the Major-Fault message, a corresponding edge port is blocked.
8. The apparatus according to claim 7, wherein the processing unit is further configured to, if the health ring list includes a domain identifier, determine a third sub-ring corresponding to the domain identifier as a selection ring, and not send the Major-Fault packet in the third sub-ring.
9. The apparatus of claim 7, further comprising:
a first judging unit, configured to judge whether a fourth sub-ring is a selected ring when it is determined that the fourth sub-ring is deleted and at least two links included in the main ring are failed;
a first deleting unit, configured to delete, if yes, the domain identifier corresponding to the fourth sub-ring from the healthy ring list;
the first determining unit is further configured to determine the minimum value of the domain identifier again from the health ring list;
the processing unit is further configured to determine a fifth sub-ring corresponding to the minimum value as a selected ring;
the sending unit is further configured to send a Link recovery message in the fifth sub-ring, so that after the edge node on the fifth sub-ring receives the Link recovery message, the corresponding edge port is opened, and the edge port corresponding to the fourth sub-ring is blocked.
10. The apparatus of claim 7, wherein the sending unit is further configured to, when it is determined that a sixth sub-ring is added to the RRPP networking and at least two links included in the main ring are failed, determine the sixth sub-ring as a non-selected ring, and send the Major-Fault packet in the sixth sub-ring, so that an edge node on the sixth sub-ring blocks a corresponding edge port after receiving the Major-Fault packet.
11. The apparatus of claim 7, wherein the auxiliary edge node comprises at least one edge port, each edge port belonging to a sub-ring;
the device further comprises:
a creating unit configured to create the health ring list;
the starting unit is used for starting corresponding number of timers according to the number of the edge ports, and each timer is configured with the same preset time;
a second judging unit, configured to judge, within each preset time, whether each edge port receives a Sub-Hello packet sent by the edge node;
an adding unit, configured to add, if the Sub-ring is received within the preset time, a domain identifier of a Sub-ring to which an edge port that receives the Sub-Hello packet belongs to the health ring list;
and the refreshing unit is used for refreshing a timer started for the edge port receiving the Sub-Hello message.
12. The apparatus of claim 7, wherein the auxiliary edge node comprises a first edge interface, the first edge interface belonging to a seventh sub-ring; the device further comprises:
a third determining unit, configured to determine whether the first edge interface receives a Sub-Hello packet sent by the edge node within a preset time;
a second determining unit, configured to determine that the seventh sub-ring has a fault if the domain identifier of the seventh sub-ring does not exist in the healthy ring list after the preset time;
a second deleting unit, configured to delete the domain identifier of the seventh sub-ring from the healthy ring list.
CN202210150439.7A 2022-02-18 2022-02-18 Communication method and device Pending CN114584421A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210150439.7A CN114584421A (en) 2022-02-18 2022-02-18 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210150439.7A CN114584421A (en) 2022-02-18 2022-02-18 Communication method and device

Publications (1)

Publication Number Publication Date
CN114584421A true CN114584421A (en) 2022-06-03

Family

ID=81770919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210150439.7A Pending CN114584421A (en) 2022-02-18 2022-02-18 Communication method and device

Country Status (1)

Country Link
CN (1) CN114584421A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960310A (en) * 2006-11-01 2007-05-09 华为技术有限公司 Method and system of realizing rig network protection
CN101247306A (en) * 2008-03-13 2008-08-20 华为技术有限公司 Method for edge port block in ethernet ring, ethernet ring system and device
CN101631060A (en) * 2009-08-18 2010-01-20 杭州华三通信技术有限公司 Method and device for managing edge port
CN101771705A (en) * 2010-02-01 2010-07-07 杭州华三通信技术有限公司 Processing method based on RRPP and device
CN109218183A (en) * 2018-08-03 2019-01-15 南京理工大学 A method of overcoming RRPP fringe node flow interrupt

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960310A (en) * 2006-11-01 2007-05-09 华为技术有限公司 Method and system of realizing rig network protection
CN101247306A (en) * 2008-03-13 2008-08-20 华为技术有限公司 Method for edge port block in ethernet ring, ethernet ring system and device
CN101631060A (en) * 2009-08-18 2010-01-20 杭州华三通信技术有限公司 Method and device for managing edge port
CN101771705A (en) * 2010-02-01 2010-07-07 杭州华三通信技术有限公司 Processing method based on RRPP and device
CN109218183A (en) * 2018-08-03 2019-01-15 南京理工大学 A method of overcoming RRPP fringe node flow interrupt

Similar Documents

Publication Publication Date Title
US9276767B2 (en) Ring node, an ethernet ring and methods for loop protection in an ethernet ring
US20090016214A1 (en) Method and system for network recovery from multiple link failures
JP5508289B2 (en) Network recovery system and method from multilink failure
US6717922B2 (en) Network configuration protocol and method for rapid traffic recovery and loop avoidance in ring topologies
US8583833B2 (en) Ring topology discovery
RU2423008C2 (en) METHOD AND SYSTEM FOR AUTOMATIC PROTECTION OF Ethernet NETWORK
US8411690B2 (en) Preventing data traffic connectivity between endpoints of a network segment
US8520507B1 (en) Ethernet automatic protection switching
US8699380B2 (en) Port table flushing in ethernet networks
CN101741673B (en) Address refreshing method of Ethernet ring
CN100493006C (en) Loop fault detecting method, subring main node and subring
CN111817881B (en) Fault processing method and related device
US7606240B1 (en) Ethernet automatic protection switching
KR20090050933A (en) Failure recovery method in non revertive mode of ethernet ring netwrok
WO2009111969A1 (en) Method for blocking the edge port in the ethernet, ethernet loop network system and apparatus
US9509523B2 (en) Method for protection switching in ethernet ring network
CN101483571B (en) RRPP configuring method, system and device
CN109462533B (en) Link switching method, link redundancy backup network and computer readable storage medium
JP5491623B2 (en) Address refresh method and system
CN101986615B (en) Multiple-ring Ethernet and protection method thereof
CN102025584A (en) G.8032-based ring network protecting method and system
CN114584421A (en) Communication method and device
KR20120035943A (en) Method and system for blocking protocol messages at a sub-ring control channel without virtual channel
CN107196832B (en) Rapid ring network protection method
CN103414591A (en) Method and system for fast converging when port failure is recovered

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination