CN109450764B - Ring network protection method and device and ring network - Google Patents

Ring network protection method and device and ring network Download PDF

Info

Publication number
CN109450764B
CN109450764B CN201811287931.9A CN201811287931A CN109450764B CN 109450764 B CN109450764 B CN 109450764B CN 201811287931 A CN201811287931 A CN 201811287931A CN 109450764 B CN109450764 B CN 109450764B
Authority
CN
China
Prior art keywords
mpls
ring network
protocol message
aps protocol
service
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
Application number
CN201811287931.9A
Other languages
Chinese (zh)
Other versions
CN109450764A (en
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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology 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 Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201811287931.9A priority Critical patent/CN109450764B/en
Publication of CN109450764A publication Critical patent/CN109450764A/en
Application granted granted Critical
Publication of CN109450764B publication Critical patent/CN109450764B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Abstract

The invention discloses a ring network protection method, a ring network protection device and a ring network, and relates to the technical field of communication. In the embodiment of the invention, according to the connected state of the MPLS service channel between adjacent node equipment and the received first MPLS-R-APS protocol message which is sent by other node equipment and transmitted in the ring network, the MPLS service of the corresponding ring network interface is blocked and/or released, and the second MPLS-R-APS protocol message which needs to be generated by the node equipment is determined and transmitted in the ring network, so that the G.8032 protocol is expanded, the method can adapt to the MPLS service scene on the original basis, and the ring network protection of the MPLS service is realized.

Description

Ring network protection method and device and ring network
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for protecting a ring network, and a ring network.
Background
In the actual networking application of an operator, MPLS (Multiprotocol Label Switching) service is a very common service type. The resulting need for MPLS traffic protection is also quite common in networking. Because the MPLS service has horizontal segmentation, the ring can not be formed theoretically under the condition that the horizontal segmentation function is started, and the neglect of the ring protection function of the MPLS service is promoted.
For the conventional ring network protection, it is generally applied to ethernet services, that is, a g.8032 protocol is used to perform ring network protection on an ethernet ring network. Therefore, how to implement ring network protection for MPLS services by using g.8032 protocol is a technical problem to be urgently solved by those skilled in the art.
Disclosure of Invention
The embodiment of the invention provides a ring network protection method, a ring network protection device and a ring network, which are used for realizing ring network protection of MPLS (multi-protocol label switching) services by adopting a G.8032 protocol.
In a first aspect, an embodiment of the present invention provides a ring network protection method, where the ring network protection method is used to perform ring network protection on a multi-protocol label switching MPLS service transmitted in a ring network, where the ring network includes at least three node devices, and a horizontal splitting function of each node device is turned off; the method comprises the following steps:
for each of the node devices, performing the following operations:
detecting the communication state of an MPLS service channel between the MPLS service channel and adjacent node equipment;
according to the connected state and the received first MPLS-R-APS protocol message which is sent by other node equipment and transmitted in the ring network, blocking and/or releasing the MPLS service of the corresponding ring network interface, determining a second MPLS-R-APS protocol message which needs to be generated by the node equipment and transmitting the second MPLS-R-APS protocol message in the ring network so as to perform ring network protection on the MPLS service;
and the first MPLS-R-APS protocol message and the second MPLS-R-APS protocol message are encapsulated G.8032 standard R-APS protocol messages.
In a second aspect, an embodiment of the present invention further provides a ring network protection device, where the ring network protection device is configured to perform ring network protection on a multi-protocol label switching MPLS service transmitted in a ring network, and each node device in at least three node devices included in the ring network includes: a detection unit and a protection unit; wherein a horizontal split function of the node device is turned off;
the detection unit is used for detecting the communication state of the MPLS service channel between the detection unit and the adjacent node equipment;
the protection unit is configured to block and/or release an MPLS service of a corresponding ring network interface according to the connected state and a received first MPLS-R-APS protocol packet that is sent by another node device and is transmitted in the ring network, and determine a second MPLS-R-APS protocol packet that needs to be generated by the node device and is transmitted in the ring network, so as to perform ring network protection on the MPLS service;
and the first MPLS-R-APS protocol message and the second MPLS-R-APS protocol message are encapsulated G.8032 standard R-APS protocol messages.
In a third aspect, an embodiment of the present invention further provides a ring network, including: at least three node devices, the horizontal split function of each of the node devices being turned off;
the node equipment comprises the ring network protection device provided by the embodiment of the invention.
The invention has the following beneficial effects:
according to the ring network protection method, device and ring network provided by the embodiment of the invention, the second MPLS-R-APS protocol message which needs to be generated by the node equipment is determined and transmitted in the ring network according to the communication state of the MPLS service channel between the ring network and the adjacent node equipment and the received first MPLS-R-APS protocol message which is sent by other node equipment and transmitted in the ring network, so that the G.8032 protocol is expanded, the ring network protection method, device and ring network can adapt to the MPLS service scene on the original basis, and the ring network protection of the MPLS service is realized.
Drawings
Fig. 1 is a schematic structural diagram of a first ring network provided in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a second ring network provided in the embodiment of the present invention;
fig. 3 is a flowchart of a ring network protection method provided in an embodiment of the present invention;
fig. 4 is a schematic diagram of a connected state of MPLS traffic channels in a ring network after a protection switching process according to an embodiment of the present invention;
fig. 5 is one of schematic diagrams of a connectivity state of an MPLS traffic channel in a ring network during a failure recovery process of the MPLS traffic channel provided in the embodiment of the present invention;
fig. 6 is a second schematic diagram illustrating a connectivity status of MPLS traffic channels in a ring network during a failure recovery process of the MPLS traffic channels according to the embodiment of the present invention;
fig. 7 is a ring network topology structure configured with multiple logical levels simultaneously in a physical topology structure provided in the embodiment of the present invention;
FIG. 8 is a schematic structural diagram of an intersecting ring provided in an embodiment of the present invention;
fig. 9 is a schematic diagram of a service transmission process provided in an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a ring network protection device provided in an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a third ring network provided in the embodiment of the present invention.
Detailed Description
The following describes in detail specific embodiments of a ring network protection method, a ring network protection device, and a ring network according to embodiments of the present invention with reference to the accompanying drawings. It should be noted that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The inventor finds in research that the ring network protection of the Ethernet ring network service can be realized by adopting the current G.8032 protocol. Specifically, in the g.8032 protocol, in a normal state, a blocking Link needs to be set in a Ring network to prevent looping, when other links fail, the blocking Link is opened, and a service is switched to another path on the Ring to perform transmission, so as to implement Ring network Protection, where the blocking Link is generally called a Ring Protection Link (RPL, Ring Protection Link), a node connected to one end of the RPL is called an RPL master node device (RPL Owner), a node device connected to the other end of the RPL is a neighbor node device, and other node devices in the Ring network may be called ordinary node devices.
MPLS (Multiprotocol Label Switching) originated from IPv4 (Internet Protocol version 4), originally proposed to increase forwarding speed, and its core technology is extendable to a variety of Network protocols, including IPv6(Internet Protocol version 6), IPX (Internet Packet Exchange), CLNP (Connectionless Network Protocol), and the like. The "M" in MPLS refers to support for multiple network protocols.
However, in an actual networking application, a horizontal splitting function of the MPLS Service based on a VPLS (Virtual Private LAN Service) type is disabled (i.e., turned off), and in this application scenario, if there is no ring network protection method, an E-LAN model cannot be established.
Therefore, the embodiment of the present invention provides a ring network protection method, which can still utilize the current g.8032 protocol to realize ring network protection of MPLS service based on a VPLS E-LAN model.
The ring network protection method is explained in detail below.
In specific implementation, the ring network protection method provided in the embodiment of the present invention is used for performing ring network protection on an MPLS service transmitted in a ring network, where the ring network includes at least three node devices, a horizontal splitting function of each node device is turned off, and a specific structure of the ring network may be as shown in fig. 1 and fig. 2, where SPE-A, SPE-B, SPE-C and SPE-D represent four node devices, CE-a represents a user device connected to SPE-a, CE-B represents a user device connected to SPE-B, CE-C represents a user device connected to SPE-C, and CE-D represents a user device connected to SPE-D. The looped network protection method comprises the following steps:
referring to fig. 3, for each node device, the following operations are performed:
s301, detecting the communication state of an MPLS service channel between the MPLS service channel and adjacent node equipment;
specifically, the communication state of the MPLS service channel with the adjacent node device may be detected by using an MPLS-tp (transport profile) -oam (operation administration and maintenance) cc (connectivity check) detection method.
The specific detection method comprises the following steps:
the node equipment (represented by A) sends an MPLS-TP-OAM CCM message to adjacent node equipment (represented by B);
after receiving the MPLS-TP-OAM CCM message, the adjacent node device B directly terminates the MPLS-TP-OAM CCM message, and judges whether an MPLS service channel between the adjacent node device B and a transmitting end A of the MPLS-TP-OAM CCM message has a fault or not according to a preset rule;
if not, determining that the MPLS service channel between the transmitting end A and the transmitting end is normal;
if yes, determining that the MPLS service channel between the transmitting end A and the transmitting end A has a fault.
The above-mentioned rules for determining whether a failure occurs may be defined in "T-REC-g.8113", "T-REC-y.1731" and "IEEE Standard for Local and metric Area Networks-virtual Local Area Networks evaluation 5: Connectivity Fault Management", but it is not limited thereto, and other rules may be used to determine the Connectivity status of the MPLS traffic channel between two adjacent node devices.
It should be noted that, after determining the connection state of the MPLS service channel between the adjacent node device B and the transmitting end a, the node device B transmits a feedback message to the transmitting end a of the MPLS-TP-OAM CCM message to notify the transmitting end a of the connection state of the MPLS service channel between the node device B and the transmitting end a; certainly, if the MPLS service channel is normal, the sending end a may receive the feedback message, and the sending end a may determine that the communication state of the MPLS service channel between the sending end a and the adjacent node device B is normal; if the MPLS service channel is not normal, the sending end a cannot receive the feedback message, so that the sending end a can determine that the communication state of the MPLS service channel therebetween is a failure.
Of course, when detecting the connected state of the MPLS traffic channel with the adjacent node device, the detection method is not limited to the aforementioned MPLS-TP-OAM CC detection method, and may be other methods that can achieve the purpose, and is not limited herein.
In the embodiment of the present invention, for the MPLS-TP-OAM CC detection mode, the MPLS-TP-OAM at which level is specifically adopted to detect the MPLS service channel between adjacent node devices needs to be determined by the service to be protected.
For example, for a Label Switched Path (LSP) layer, if all VPLS is required on a channel and protection is required, MPLS-TP-OAM of the LSP layer may be used for detection. Since one LSP service is likely to span multiple node devices, the state of the ring network interface cannot be used simply to detect the connectivity of the service, and MPLS-TP-OAM is needed for detection, and the detected CCM message is transmitted through the protocol channel.
For another example, for a Pseudo Wire (PW) layer, if MPLS traffic carried on a VPLS-type PW is protected, MPLS-TP-OAM of the PW layer may be used for detection. Moreover, the MPLS service loaded on the detected PW may be an MPLS service loaded on one PW or an MPLS service loaded on a group of PWs, and accordingly, the MPLS service loaded on the protected PW, that is, an MPLS service loaded on one PW and an MPLS service loaded on a group of PWs.
When only protecting MPLS traffic carried on one PW, MPLS-TP-OAM may be configured based on the one PW. If protecting the MPLS service carried on a group of PWs, one PW may be fixedly selected to configure MPLS-TP-OAM, and the selected PW may represent the connection state of the group of PWs, that is, if the selected MPLS-TP-OAM of the PW layer is interrupted, it may be considered that all the group of PWs have a link failure, that is, the connection state of the MPLS service channel of the group of PW layers is a failure.
Then, how to select a PW in a group of PWs that can represent the connected state of the group can be determined according to the service requirement.
For example, but not limited to, if MPLS traffic carried over a group of PWs is protected and the group of PWs includes 8 PWs, the priorities of the 8 PWs (which may be understood as the levels of MPLS traffic carried over the PWs) may be set to 0-7, respectively, where MPLS traffic carried over PWs with priorities of 0-3 is non-important traffic and quality may not be guaranteed in case of congestion, and MPLS traffic carried over PWs with priorities of 4-7 is important traffic and quality guarantee is required. Then, the user can select to use the PW with priority 4 to configure MPLS-TP-OAM of the PW layer as a detection mode of the connected state of the MPLS service channel in the ring network protection. Therefore, an acceptable balance point is selected, so that not only can frequent switching caused by poor network environment be prevented, but also the requirement that the important service is communicated with the service priority can be met.
Therefore, in this embodiment of the present invention, if the ring network protects the MPLS traffic carried over a set of PWs, before detecting a connectivity status of an MPLS traffic channel between the ring network and an adjacent node device, the method further includes:
determining the grade of MPLS service loaded on each PW in each group of PWs connected with adjacent node equipment;
and determining the connected state of the PW with the highest bearing MPLS service level in a group of PWs as the connected state of the group of PWs.
The determination of the grade of the MPLS service loaded on the PW may be directly implemented in a preconfigured manner, or may first find the category to which the MPLS service belongs through a mapping relationship between a plurality of service identifiers and a plurality of service types that are established in advance, then find the stored transmission performance requirement parameter of the category, and determine the grade of the service.
For the transmission performance requirement parameter, at least one of the following may be included: packet loss rate, network transmission delay, throughput, etc.; the lower the packet loss rate, the lower the network transmission delay, the higher the throughput, and the higher the service level.
Specifically, when the transmission performance requirement parameter includes the above 3 types, in the embodiment of the present invention, determining the level of the MPLS service carried on each PW in each group of PWs connected to the adjacent node device may specifically include:
determining the grade of MPLS service loaded on each PW in each group of PWs by adopting the following formula;
P=k1×(1/LT)+k2×(C/Δt)
wherein P represents the level of the MPLS traffic carried on the PW, the larger P represents the higher level of the MPLS traffic carried on the PW, LT represents the maximum acceptable value of the packet loss rate corresponding to the category to which the MPLS traffic belongs, Δ t represents the maximum acceptable value of the network transmission delay corresponding to the category to which the MPLS traffic belongs, C represents the minimum acceptable value of the throughput corresponding to the category to which the MPLS traffic belongs, and k1 and k2 both represent preset weight coefficients.
Specifically, for the settings of k1 and k2, the sum of the two may be 1, the magnitude relationship between the two is determined by the importance of LT and (C, Δ t) to MPLS traffic, the greater the importance, the greater the value, which may be determined empirically by those skilled in the art, and may be set to k1 greater than k2, for example, k1 is 0.8, k2 is 0.2, and also k1 is 0.7, and k2 is 0.3, but is not limited thereto, and this is only an example.
Alternatively, P ═ C/(LT × Δ t) is directly set without taking into account the weight coefficients k1 and k 2.
Of course, P may also be set to relate only to LT and Δ t. The larger LT, the smaller P; the larger Δ t, the smaller P. For example, P ═ k3 × (1/LT) + k4 × (1/Δ t), or P ═ 1/(LT × Δ t), where the settings of k3 and k4 are the same as those of k1 and k2 described above, and will not be described again here.
S302, according to the connected state and the received first MPLS-R-APS protocol message which is sent by other node equipment and transmitted in the ring network, the MPLS service of the corresponding ring network interface is blocked and/or released, and a second MPLS-R-APS protocol message which needs to be generated by the node equipment is determined and transmitted in the ring network, so that the ring network protection is carried out on the MPLS service.
Wherein, the first MPLS-R-APS protocol message and the second MPLS-R-APS protocol message can be both encapsulated G.8032 standard R-APS protocol messages;
therefore, in the embodiment of the present invention, in order to perform ring network protection on the MPLS service, the blocked and released objects are set as the MPLS service of the corresponding ring network interface, and the original g.8032 standard R-APS protocol packet is also improved, so that when the original g.8032 protocol is utilized, the ring network protection of the MPLS service can still be implemented, and the application scenario of the g.8032 protocol is expanded.
Aiming at the first MPLS-R-APS protocol message and the second MPLS-R-APS protocol message, the original G.8032 standard R-APS protocol message is a pure Ethernet message and cannot pass through an MPLS network, and after the original G.8032 standard R-APS protocol message is expanded and packaged, the first MPLS-R-APS protocol message and the second MPLS-R-APS protocol message can be transmitted in the MPLS network, so that the ring network protection of MPLS services is favorably realized.
Taking the second MPLS-R-APS protocol packet as an example, the method for explaining an extended encapsulation process performed on the original g.8032 standard R-APS protocol packet, that is, determining and transmitting the second MPLS-R-APS protocol packet that needs to be generated by the node device in the ring network may specifically include:
when the node equipment needs to generate a second MPLS-R-APS protocol message, acquiring a G.8032 standard R-APS protocol message corresponding to the second MPLS-R-APS protocol message;
and encapsulating the G.8032 standard R-APS protocol message by using the label information of the virtual logic VC (virtual Circuit), the label information of the link TUNNEL and the outermost layer Ethernet two-layer header information to generate a second MPLS-R-APS protocol message, and transmitting the second MPLS-R-APS protocol message in the ring network through an MPLS service channel between the second MPLS-R-APS protocol message and the adjacent node equipment.
Therefore, the g.8032 standard R-APS protocol packet is regarded as a common service packet to perform MPLS encapsulation correspondingly, and then transmitted to other node devices on the ring network through the multiplexing service channel, thereby finally realizing ring network protection of the MPLS service.
The encapsulation method of the g.8032 standard R-APS protocol packet can be seen in table 1, where an MPLS VC label is a label of a PW in an MPLS service channel between the node device and an adjacent node device, and an MPLS TUNNEL label is a label of an LSP in the MPLS service channel; the second-layer head of the outermost layer is the second-layer head of the LSP in the MPLS service channel and is the Ethernet frame head of an operator; the two-layer header belongs to a part of the 8032 protocol message, and the payload of an ethernet message inside the MPLS is the ethernet frame header of the client.
TABLE 1
Second layer head of outermost layer
MPLS Tunnel Label
MPLS VC Lable
Two-layer head
8032 protocol messages
Certainly, for the first MPLS-R-APS protocol packet, the expanding and encapsulating process performed on the original g.8032 standard R-APS protocol packet is the same as that performed on the second MPLS-R-APS protocol packet, and repeated parts are not repeated.
It should be noted that, in order to be able to transmit different state information of MPLS service channels in a ring network through MPLS-R-APS protocol packets, the MPLS-R-APS protocol packets may carry different contents, but regardless of the contents carried, the MPLS-R-APS protocol packets are formed by expanding and encapsulating g.8032 standard R-APS protocol packets carrying the same contents.
For example, when the g.8032 standard R-APS protocol message is an R-APS (FS) message, it indicates that the g.8032 standard R-APS protocol message carries FS information, and the FS may be used to indicate forced switching, and correspondingly, the MPLS-R-APS protocol message after being extended and encapsulated is an MPLS-R-APS (FS) message, and the FS information is carried therein.
For another example, the g.8032 standard R-APS protocol message is an R-APS (MS) message, which indicates that the g.8032 standard R-APS protocol message carries MS information, and the MS may be used to indicate manual switching, and correspondingly, the MPLS-R-APS protocol message is an MPLS-R-APS (MS) message, and carries MS information.
For each node device, the node device includes a private network side (AC) and a public network side (PW), as shown in fig. 1 and fig. 2, where the AC side is configured to be connected to a customer edge router (CE) (i.e., a user device), and is responsible for accessing a user service of the CE to a VPLS networking for transmission on one hand, and for issuing the service in the VPLS networking to the CE on the other hand. And the PW side is connected with other node equipment through the loaded MPLS service channel to finish the transparent data transmission between the PW side and other node equipment.
It should be noted that, in the embodiment of the present invention, the g.8032 standard R-APS protocol packet is extended and encapsulated, and then is transmitted by multiplexing the MPLS service channel, so for each node device on the ring network, since the packet is a broadcast packet, if not controlled, the packet is not only transmitted in the ring network, but also flooded to the AC side.
Therefore, in this embodiment of the present invention, when the first MPLS-R-APS protocol packet and the second MPLS-R-APS protocol packet are both broadcast packets, and each node device is connected to a user device (e.g., a CE connected to the node device in fig. 1 and fig. 2), the manner of transmitting the first MPLS-R-APS protocol packet and the second MPLS-R-APS protocol packet in the ring network may specifically be:
for each node device:
when receiving the MPLS-R-APS protocol message transmitted by other node equipment in the ring network, determining to hit the multicast group, terminating the broadcast of the MPLS-R-APS protocol message, and forwarding the received MPLS-R-APS protocol message to members in the multicast group so as to transmit the message to corresponding downstream adjacent node equipment;
the MPLS service channels connected with the ring network interface of the node equipment are all added into the same multicast group in advance according to configuration; the MPLS-R-APS protocol message is as follows: and the first MPLS-R-APS protocol message and/or the second MPLS-R-APS protocol message are transmitted in the ring network.
That is, the multicast group is a multicast function provided by the chip, and the behavior is that if a message hits the multicast group in a certain way, the forwarding behavior is to forward the message only to the members in the multicast group; therefore, as the MPLS service channels of the ring network interface connected to the node device are all added to the same multicast group in advance, when receiving the first MPLS-R-APS protocol packet and/or the second MPLS-R-APS protocol packet, the packet hits the multicast group, and the protocol packet is forwarded to other node devices in the multicast group without broadcast forwarding, thereby avoiding the received protocol packet from flooding to the AC side and ensuring the received protocol packet to be transmitted at the PW side.
Furthermore, in the embodiment of the present invention, after the above step S301 is executed and before the step S302, the following operations are also executed:
for the AC side and the CE side, respectively, Media Access Control (MAC) address learning of VPLS based on L2VPN (Layer 2Virtual Private Network ) is performed to establish an MAC address forwarding table entry for determining a protocol packet transmission path.
The process of MAC address learning comprises the following two parts:
first, remote MAC address learning associated with the PW.
A PW consists of a pair of unidirectional VC LSPs (only VC LSPs in both directions are up (i.e., activated) is considered an up PW). When an original unknown MAC address is learned on a VC LSP in the ingress direction, a PW is required to form a mapping relationship between the MAC address and the VC LSP in the egress direction.
And a second part, learning the local MAC address of the port directly connected to the user equipment.
For a protocol packet transmitted by a CE side, a source MAC address in the protocol packet needs to be learned to a corresponding port of a VSI (Virtual Switch Interface).
For the above mentioned MAC address learning method, any MAC address learning method based on VPLS type L2VPN in the prior art may be used, and the specific learning process may refer to the prior art and is not described herein again.
In specific implementation, in the embodiment of the present invention, in the ring network protection process, in order to implement ring network protection on the MPLS service, for each node device, a state machine is configured, and the processes of blocking, releasing, and generating the first or second MPLS-R-APS protocol packet mentioned in step S302 are implemented by the state machine.
Next, the state machine will be explained.
The state machines comprise five state machines which are respectively in a suspension state, an idle state, a protection state, a forced switching state and a manual switching state; after the node equipment is started, initializing a state machine, and then entering a suspension state; after the node device receives the first MPLS-R-APS protocol message sent by other node devices, the protocol message is used as the input information of the state machine, so that the state machine can correspondingly perform actions and update the state.
Of course, the input information of the state machine may be not only an MPLS-R-APS protocol packet (refer to the first or second MPLS-R-APS protocol packet), but also an instruction sent to the state machine by the node device to which the state machine belongs, so that the state machine performs corresponding operations and performs state updating according to the instruction.
The state machine executes corresponding actions according to the input information and updates the state, which is specifically as follows:
after initializing the state machine, the state machine enters the suspended state.
Stopping the guard timing, the WTR (wait to restore) timing and the WTB (wait to Block) timing respectively; and clearing the MAC address forwarding table entry under the VSI corresponding to the MPLS service protected by the state machine which is dynamically learned.
Wherein, the effect of guard timing can be understood as: the problem that ring network protection cannot be formed due to complete ring formation of services is avoided. The role of WTR timing can be understood as: after the failure of the MPLS service channel which has failed, the network oscillation caused by the looped network interface connected with the RPL is immediately blocked, thereby improving the stability of the looped network. The role of WTB can be understood as: when the state machine receives a clearing command (namely clearing a forced switching command or clearing a manual switching command), the WTB timing is started, and the clearing operation is only started after the timer is overtime, so that the network oscillation caused by immediately blocking a ring network interface connected with the RPL can be prevented, and the stability of the ring network is improved.
If the node equipment is the main node equipment, the following steps are executed:
blocking MPLS service of a ring network interface connected with the RPL; releasing MPLS service of a ring network interface connected with the non-RPL; generating MPLS-R-APS (NR) protocol message and transmitting the MPLS-R-APS protocol message in a ring network to inform other node equipment that the main node equipment completes initialization configuration at present; if the state machine is set to return mode, the WTB timing is started.
If the node equipment is the neighbor node equipment, executing the following steps:
blocking MPLS service of a ring network interface connected with the RPL; releasing MPLS service of a ring network interface connected with the non-RPL; and generating an MPLS-R-APS (NR) protocol message and sending the MPLS-R-APS protocol message to the adjacent node equipment to inform other node equipment that the neighbor node equipment completes initialization configuration currently.
If the node equipment is common node equipment, executing the following steps:
blocking MPLS service of the ring network interface at one side; releasing the MPLS service of the ring network interface at the other side; and generating an MPLS-R-APS (NR) protocol message and transmitting the MPLS-R-APS protocol message in the ring network to inform other node equipment that the common node equipment completes initialization configuration currently.
It should be noted that, whether the node device is a master node device, a neighbor node device, or a common node device, the node device is adjacent to the two node devices. Taking a common node device as an example, if one side is adjacent to a master node device and the other side is adjacent to a neighbor node device, then the MPLS service of the ring network interface at the side connected to the master node device may be referred to as the MPLS service of the ring network interface at one side, and the MPLS service of the ring network interface at the side connected to the neighbor node device may be referred to as the MPLS service of the ring network interface at the other side; alternatively, the MPLS service of the ring network interface on one side connected to the neighboring node device may be referred to as the MPLS service of the ring network interface on one side, and the MPLS service of the ring network interface on one side connected to the host node device may be referred to as the MPLS service of the ring network interface on the other side, which is not limited herein.
When the state machine is in a suspended state:
(1) if the clear command operation is received, the following steps are executed, and the idle state is entered:
if the node device is the main node device: a. stopping the WTR timing and the WTB timing; b. if the MPLS service of the ring network interface connected with the RPL is blocked, generating an MPLS-R-APS (NR, RB, DNF (Do Not Flush)) protocol message and transmitting the message in the ring network to inform other node equipment that the MPLS service of the ring network interface connected with the RPL is blocked by the main node equipment at present; and releasing the MPLS service of the ring network interface connected with the non-RPL.
If the node equipment is the neighbor node equipment: blocking MPLS service of a ring network interface connected with the RPL; generating MPLS-R-APS (NR, RB) protocol messages and sending the MPLS-R-APS protocol messages in a ring network to inform other node equipment that MPLS services of a ring network interface connected with RPL are blocked by the neighbor node equipment at present; releasing MPLS service of a ring network interface connected with the non-RPL; and clearing the MAC address forwarding table entry under the VSI corresponding to the MPLS service protected by the state machine which is dynamically learned.
(2) If a Forced Switch (FS) command operation of a local request is received, executing the following steps to enter a Forced Switch state:
the following steps are executed for any node device in the ring network:
if the MPLS service of the requested ring network interface is blocked, generating an MPLS-R-APS (FS, DNF) protocol message and sending the message in the ring network to inform other node equipment that the MPLS service of the ring network interface requested currently is blocked; releasing the MPLS service of the ring network interface which is not requested;
if the MPLS service of the requested ring network interface is not blocked, the MPLS service of the requested ring network interface is blocked; generating MPLS-R-APS (FS) protocol message and transmitting the message on the ring to inform other node equipment that the MPLS service of the ring network interface requested currently is blocked; releasing the MPLS service of the ring network interface which is not requested; and clearing the MAC address forwarding table entry under the VSI corresponding to the MPLS service protected by the state machine which is dynamically learned.
If the node device is the master node device, the WTR timing and the WTB timing are also stopped.
(3) If the protocol message received from the MPLS service channel between the adjacent node device is detected to be an MPLS-R-aps (fs) protocol message, it indicates that a forced switching process is currently required, so the following steps are executed to enter a forced switching state:
and releasing the MPLS service of the ring network interface currently used for transmitting the MPLS service aiming at any node equipment in the ring network, and stopping transmitting the MPLS-R-APS protocol message.
If the node device is a master node device, the WTR timing and the WTB timing are also stopped.
(4) If the MPLS service channel between the MPLS service channel and the adjacent node equipment is detected to be in fault, the state machine generates the input of local end Signal Failure (SF), the following steps are executed, and the MPLS service channel enters a protection state:
the following steps are executed for any node device in the ring network:
if the MPLS service of the ring network interface connected with the failed MPLS service channel is blocked, generating an MPLS-R-APS (SF, DNF) protocol message and sending the message in a ring network to inform other node equipment that the MPLS service of the ring network interface connected with the failed MPLS service channel is blocked at present; releasing MPLS service of a ring network interface connected with the MPLS service channel which is not in failure;
if the MPLS service of the ring network interface connected with the failed MPLS service channel is not blocked, the MPLS service of the ring network interface connected with the failed MPLS service channel is blocked, and an MPLS-R-APS (SF) protocol message is generated and transmitted in the ring network to inform other node equipment that the MPLS service of the ring network interface connected with the failed MPLS service channel is blocked at present; releasing MPLS service of a ring network interface connected with the MPLS service channel which is not in failure; and clearing the MAC address forwarding table entry under the VSI corresponding to the MPLS service protected by the state machine which is dynamically learned.
If the node device is the master node device, the WTR timing and the WTB timing are also stopped.
(5) And if the fault recovery of the MPLS service channel between the state machine and the adjacent node equipment is detected, the state machine generates the input of the local terminal clearing SF and keeps the input in a suspension state.
(6) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (SF) protocol message, the MPLS service channel which has a fault is recovered to be normal, so the following steps are executed to enter a protection state:
and for any node equipment in the ring network, the MPLS service of the ring network interface connected with the non-fault MPLS service channel needs to be released, and the MPLS-R-APS protocol message is stopped from being sent.
It should be noted that, when the transmission of the MPLS-R-APS protocol packet is stopped, the transmission needs to be stopped regardless of which protocol packet is used.
If the node device is the master node device and is in the non-DNF state, the DNF state also needs to be cleared, and the WTR timing and the WTB timing are stopped.
(7) If detecting the message MPLS-R-aps (MS) protocol message received from the MPLS service channel between the neighboring node device, it indicates that a Manual Switch (MS) process is currently required, so the following steps are executed to enter the Manual Switch state:
and for any node equipment in the ring network, the MPLS service of the ring network interface connected with the non-fault MPLS service channel needs to be released, and the MPLS-R-APS protocol message is stopped from being sent.
It should be noted that, when the transmission of the MPLS-R-APS protocol packet is stopped, the transmission needs to be stopped regardless of which protocol packet is used.
If the node device is the master node device, the WTR timing and the WTB timing are also stopped.
(8) If the manual switching MS command operation of the local request is received, it indicates that the manual switching process is required at present, so the following steps are executed to enter the manual switching state:
the following steps are executed for any node device in the ring network:
if the MPLS service of the requested ring network interface is blocked, generating an MPLS-R-APS (MS, DNF) protocol message and transmitting the message in the ring network to inform other node equipment that the MPLS service of the ring network interface which is requested to be blocked is blocked; releasing the MPLS service of the ring network interface which is not requested;
if the MPLS service of the requested ring network interface is not blocked, the MPLS service of the requested ring network interface is blocked, an MPLS-R-APS (MS) protocol message is generated and transmitted in the ring network, so as to inform other node equipment that the MPLS service of the ring network interface which is requested to be blocked at present is blocked; releasing the MPLS service of the ring network interface which is not requested; and clearing the MAC address forwarding table entry under the VSI corresponding to the MPLS service protected by the state machine which is dynamically learned.
If the node device is the master node device, the WTR timing and the WTB timing are also stopped.
(9) If the timing of the WTR is finished, the following steps are executed, and the idle state is entered:
if the node equipment is the main node equipment, the following steps are executed:
stopping the WTR timer;
if the MPLS service of the ring network interface connected with the RPL is blocked, generating MPLS-R-APS (NR, RB, DNF) protocol message and transmitting in the ring network, and releasing the MPLS service of the ring network interface connected with the non-RPL.
And if the MPLS service of the ring network interface connected with the RPL is not blocked, the MPLS service of the ring network interface connected with the RPL is blocked.
If the state is in DNF state, it is not necessary to modify the dynamically learned MAC address forwarding table entry under the VSI corresponding to the MPLS service protected by the state machine, and (NR, RB, DNF) protocol messages of MPLS-R-APS are generated and transmitted in the ring network.
If not, generating MPLS-R-APS (NR, RB) protocol message and transmitting in the ring network, clearing the MAC address forwarding table item under VSI corresponding to MPLS service protected by the state machine, releasing MPLS service of the ring network interface connected with the non-RPL, and clearing the DNF state.
(10) If the WTR is in timed operation, the system is kept in a suspension state.
(11) If the timing of the WTB is finished, the following steps are executed, and the idle state is entered:
if the node device is the main node device:
stopping WTB timing;
if the MPLS service of the ring network interface connected with the RPL is blocked, generating MPLS-R-APS (NR, RB, DNF) protocol message and transmitting in the ring network, and releasing the MPLS service of the ring network interface connected with the non-RPL.
If the MPLS service of the ring network interface connected with the RPL is not blocked, the MPLS service of the ring network interface connected with the RPL is blocked, and an MPLS-R-APS (NR, RB) protocol message is generated and transmitted in the ring network; releasing MPLS service of a ring network interface connected with the non-RPL; and clearing the MAC address forwarding table entry under the VSI corresponding to the MPLS service protected by the state machine which is dynamically learned.
(12) If the WTB is in the timing operation, the suspension state is kept.
(13) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (NR, RB) protocol message, executing the following steps and entering an idle state:
and if the node equipment is the main node equipment, stopping the WTR timing and the WTB timing.
If the node equipment is the neighbor node equipment, the MPLS service of the ring network interface connected with the RPL is blocked; releasing MPLS service of a ring network interface connected with the non-RPL; stopping sending the MPLS-R-APS protocol message;
if the node equipment is common node equipment, the MPLS service of the ring network interface is released; and stopping sending the MPLS-R-APS protocol message.
It should be noted that, when the transmission of the MPLS-R-APS protocol packet is stopped, the transmission needs to be stopped regardless of which protocol packet is used.
(14) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (NR) protocol message, executing the following steps and keeping the message in a suspension state:
if the source MAC address in the received protocol message is larger than the MAC address of the node equipment, the MPLS service of the ring network interface connected with the fault-free MPLS service channel is released; and stopping sending the MPLS-R-APS protocol message.
It should be noted that, when the transmission of the MPLS-R-APS protocol packet is stopped, the transmission needs to be stopped regardless of which protocol packet is used.
When the state machine is in an idle state:
(1) if a clear command operation is received, no action is performed and the state is kept in an idle state.
(2) If FS forced switching command operation of the local request is received, executing the following steps to enter a forced switching state:
the following steps are executed for any node device in the ring network:
if the MPLS service of the requested ring network interface is blocked, generating an MPLS-R-APS (FS, DNF) protocol message and transmitting the message in the ring network, and releasing the MPLS service of the ring network interface which is not requested;
if the MPLS service of the requested ring network interface is not blocked, the MPLS service of the requested ring network interface is blocked, an MPLS-R-APS (FS) protocol message is generated and transmitted in the ring network, and the MPLS service of the ring network interface which is not requested is released; and clearing the MAC address forwarding table entry under the VSI corresponding to the MPLS service protected by the state machine which is dynamically learned.
(3) If the message received from the MPLS service channel between the adjacent node device is detected to be an MPLS-R-aps (fs) protocol message, it indicates that a forced switching process is required at present, so the following steps are executed to enter a forced switching state:
and for any node equipment in the ring network, blocking the MPLS service of the ring network interface currently used for transmitting the MPLS service and stopping transmitting the MPLS-R-APS protocol message.
It should be noted that, when the transmission of the MPLS-R-APS protocol packet is stopped, the transmission needs to be stopped regardless of which protocol packet is used.
(4) If the MPLS service channel between the local terminal SF and the adjacent node equipment is detected to be out of order, triggering the input of the local terminal SF, executing the following steps, and entering a protection state:
if the MPLS service of the ring network interface connected with the failed MPLS service channel is blocked, generating MPLS-R-APS (SF, DNF) protocol message and transmitting in the ring network, and releasing the MPLS service of the ring network interface connected with the non-failed MPLS service channel;
if the MPLS service of the ring network interface connected with the failed MPLS service channel is not blocked, the MPLS service of the ring network interface connected with the failed MPLS service channel is blocked, an MPLS-R-APS (SF) protocol message is generated and transmitted in a ring network, and the MPLS service of the ring network interface connected with the non-failed MPLS service channel is released; and clearing the MAC address forwarding table entry under the VSI corresponding to the MPLS service protected by the state machine which is dynamically learned.
(5) And if the fault recovery of the MPLS service channel between the local terminal and the adjacent node equipment is detected, triggering the local terminal to clear the input of the SF, not executing any operation, and keeping in an idle state.
(6) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (SF) protocol message, the ring network protection is required at present, so the following steps are executed, and the protection state is entered:
the following steps are executed for any node device in the ring network:
releasing MPLS service of a ring network interface connected with the MPLS service channel which is not in fault, and stopping sending MPLS-R-APS protocol messages;
it should be noted that, when the transmission of the MPLS-R-APS protocol packet is stopped, the transmission needs to be stopped regardless of which protocol packet is used.
If the value of DNF bit in the received MPLS-R-APS (SF) protocol message is 0, removing the MAC address forwarding table item under VSI corresponding to the MPLS service protected by the state machine which is dynamically learned;
if the value of DNF bit in the received MPLS-R-APS (SF) protocol message is 0 and the node equipment is the neighbor node equipment, generating and continuously sending 3 MPLS-R-APS (SF) protocol messages to the ring network;
if the value of DNF bit in the received MPLS-R-APS (SF) protocol message is 0 and the node equipment is the main node equipment, generating and continuously sending 3 MPLS-R-APS (SF) protocol messages to the ring network, and clearing DNF state by the node equipment;
and if the value of the DNF bit in the received MPLS-R-APS (SF) protocol message is 1 and the node equipment is the main node equipment, setting the DNF state of the node equipment.
The value of the DNF bit indicates whether the dynamically learned MAC address forwarding entry needs to be cleared, that is, the value of the DNF bit is 1, the MAC address forwarding entry does not need to be cleared, that is, flooding is not needed, and the value of the DNF bit is 0, the MAC address forwarding entry needs to be cleared, that is, flooding is needed. Of course, the meaning and the setting of the value corresponding to the value of the DNF bit are not limited to the above embodiments, as long as whether the dynamically learned MAC address forwarding entry needs to be cleared can be indicated by the value of the DNF bit, and the setting is not limited herein.
(7) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (MS) protocol message, the manual switching process is required at present, the following steps are executed, and the manual switching state is entered:
and releasing the MPLS service of the ring network interface connected with the non-faulty MPLS service channel aiming at any node equipment in the ring network, and stopping sending the MPLS-R-APS protocol message.
It should be noted that, when the transmission of the MPLS-R-APS protocol packet is stopped, the transmission needs to be stopped regardless of which protocol packet is used.
(8) If receiving the MS manual switching command operation of the local request, executing the following steps to enter a manual switching state:
the following steps are executed for any node device in the ring network:
if the MPLS service of the requested ring network interface is blocked, generating an MPLS-R-APS (MS, DNF) protocol message and transmitting the message in the ring network, and releasing the MPLS service of the ring network interface which is not requested;
if the MPLS service of the requested ring network interface is not blocked, the MPLS service of the requested ring network interface is blocked, an MPLS-R-APS (MS) protocol message is generated and transmitted in the ring network, and the MPLS service of the ring network interface which is not requested is released; and clearing the MAC address forwarding table entry under the VSI corresponding to the MPLS service protected by the state machine which is dynamically learned.
(9) If the WTR timing is over, no action is performed and the state is kept idle.
(10) If the WTR is in timing operation, no action is performed and the state is kept in an idle state.
(11) If the WTB timing is over, no action is performed and the state is kept in an idle state.
(12) If the WTB is in timing operation, no action is performed and the state is kept in an idle state.
(13) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (NR, RB) protocol message, the following actions are executed and kept in an idle state:
and (3) blocking the MPLS service of the ring network interface connected with the non-RPL aiming at any node equipment in the ring network.
If the node equipment is not the main node equipment, the transmission of the MPLS-R-APS protocol message is also required to be stopped.
It should be noted that, when the transmission of the MPLS-R-APS protocol packet is stopped, the transmission needs to be stopped regardless of which protocol packet is used.
(14) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (NR) protocol message, the following actions are executed and kept in an idle state:
if the node equipment is common node equipment and the source MAC address of the received protocol message is larger than the MAC address of the node equipment, the MPLS service of the ring network interface connected with the fault-free MPLS service channel is released, and the MPLS-R-APS protocol message is stopped being sent.
It should be noted that, when the transmission of the MPLS-R-APS protocol packet is stopped, the transmission needs to be stopped regardless of which protocol packet is used.
When the state machine is in the protection state:
(1) if a clear command operation is received, no action is performed and the operation is kept in a protection state.
(2) If receiving the forced switching command operation of the local request, executing the following actions to enter a forced switching state:
for any node device in the ring network, performing the following steps:
if the MPLS service of the requested ring network interface is blocked, generating an MPLS-R-APS (FS, DNF) protocol message and transmitting the message in the ring network, and releasing the MPLS service of the ring network interface which is not requested;
if the requested ring network interface MPLS service is not blocked, the requested ring network interface MPLS service is blocked, an MPLS-R-APS (FS) protocol message is generated and transmitted in the ring network, and the unrequested ring network interface MPLS service is released; and clearing the MAC address forwarding table entry under the VSI corresponding to the MPLS service protected by the state machine which is dynamically learned.
(3) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (FS) protocol message, executing the following actions, and entering a forced switching state:
and releasing the current ring network interface MPLS service used for transmitting the MPLS service and stopping transmitting the MPLS-R-APS protocol message aiming at any node equipment in the ring network.
It should be noted that, when the transmission of the MPLS-R-APS protocol packet is stopped, the transmission needs to be stopped regardless of which protocol packet is used.
(4) If the failure of the MPLS service channel between the MPLS service channel and the adjacent node equipment is detected, the input of the local terminal SF is generated, the following actions are executed, and the protection state is kept:
for any node device in the ring network, performing the following steps:
if the MPLS service of the ring network interface connected with the failed MPLS service channel is blocked, generating MPLS-R-APS (SF, DNF) protocol message and transmitting in the ring network, and releasing the MPLS service of the ring network interface connected with the non-failed MPLS service channel;
if the MPLS service of the ring network interface connected with the failed MPLS service channel is not blocked, the MPLS service of the ring network interface connected with the failed MPLS service channel is blocked, an MPLS-R-APS (SF) protocol message is generated and transmitted in the ring network, and the MPLS service of the ring network interface connected with the non-failed MPLS service channel is released; and clearing the MAC address forwarding table entry under the VSI corresponding to the MPLS service protected by the state machine which is dynamically learned.
(5) If the failure recovery of the MPLS service channel between the MPLS service channel and the adjacent node equipment is detected, triggering the local terminal to clear the input of SF, executing the following operation, and entering a suspension state:
for any node device in the ring network, performing the following steps:
starting protection timing;
generating MPLS-R-APS (NR) protocol messages and transmitting the MPLS-R-APS protocol messages in the ring network;
if the node device is the master node device and is in the return mode, the WTR timing is also started.
(6) And if the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (SF protocol) message, no action is executed, and the message is kept in a protection state.
(7) And if the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (MS) protocol message, no action is executed, and the message is kept in a protection state.
(8) If the MS manual switching command operation of the local request is received, no action is executed, and the MS manual switching command operation is kept in a protection state.
(9) If the WTR timing is over, no action is performed and the system is kept in a protection state.
(10) If the WTR is in timing operation, no action is executed and the protection state is kept.
(11) If the WTB timing is over, no action is performed and the state is kept in a protection state.
(12) If the WTB is in the timing running state, no action is executed and the protection state is kept.
(13) And if the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (NR, RB) protocol message, no action is executed, and the suspension state is entered.
(14) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (NR) protocol message, executing the following actions, and entering a suspension state:
if the node equipment is the main node equipment and is in the return mode, starting the WTR timing.
When the state machine is in the manual switching state:
(1) if the clear command operation is received, the state machine executes the following actions to enter a suspension state:
aiming at any node equipment in the ring network, if the MPLS service of any ring network interface is blocked, starting protection timing, generating MPLS-R-APS (NR) protocol message and transmitting in the ring network.
If the node device is the master node device and in the return mode, the WTB timing is also started.
(2) If the FS forced switching command operation of the local request is received, the following actions are executed, and the forced switching state is entered:
for any node device in the ring network, performing the following steps:
if the MPLS service of the requested ring network interface is blocked, generating an MPLS-R-APS (FS, DNF) protocol message and transmitting the message in the ring network, and releasing the MPLS service of the ring network interface which is not requested;
if the requested ring network interface MPLS service is not blocked, the requested ring network interface MPLS service is blocked; generating MPLS-R-APS (FS) protocol message and transmitting in the ring network, and releasing the MPLS service of the ring network interface which is not requested; and clearing the MAC address forwarding table entry under the VSI corresponding to the MPLS service protected by the state machine which is dynamically learned.
(3) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (FS) protocol message, executing the following actions, and entering a forced switching state:
and releasing the MPLS service of the ring network interface currently used for transmitting the MPLS service aiming at any node equipment in the ring network, and stopping transmitting the MPLS-R-APS protocol message.
It should be noted that, when the transmission of the MPLS-R-APS protocol packet is stopped, the transmission needs to be stopped regardless of which protocol packet is used.
(4) If the failure of the MPLS service channel between the MPLS service channel and the adjacent node equipment is detected, triggering the input of the local terminal SF, executing the following actions, and entering a protection state:
for any node device in the ring network, performing the following steps:
if the MPLS service of the ring network interface connected with the failed MPLS service channel is blocked, generating MPLS-R-APS (SF, DNF) protocol message and transmitting in the ring network, and releasing the MPLS service of the ring network interface connected with the non-failed MPLS service channel;
if the MPLS service of the ring network interface connected with the failed MPLS service channel is not blocked, the MPLS service of the ring network interface connected with the failed MPLS service channel is blocked, an MPLS-R-APS (SF) protocol message is generated and transmitted in the ring network, and the MPLS service of the ring network interface connected with the non-failed MPLS service channel is released; and clearing the MAC address forwarding table entry under the VSI corresponding to the MPLS service protected by the state machine which is dynamically learned.
(5) If the fault recovery of the MPLS service channel between the local terminal and the adjacent node equipment is detected, the local terminal is triggered to clear the input of the SF, no operation is executed, and the local terminal is kept in a manual switching state.
(6) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (SF) protocol message, executing the following actions, and entering a protection state:
and releasing the MPLS service of the ring network interface connected with the non-faulty MPLS service channel aiming at any node equipment in the ring network, and stopping sending the MPLS-R-APS protocol message.
(7) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (MS) protocol message, executing the following actions, and entering a suspension state:
aiming at any node equipment in the ring network, if the MPLS service of any ring network interface is blocked, starting protection timing, generating MPLS-R-APS (NR) protocol message and transmitting in the ring network.
(8) If the MS manual switching command operation of the local request is received, no action is executed, and the MS manual switching command operation is kept in a manual switching state.
(9) If the WTR timing is finished, no action is executed, and the state is kept in the manual switching state.
(10) If the WTR is in the timing operation, no action is executed and the state is kept in the manual switching state.
(11) If the WTB timing is finished, no action is executed, and the state is kept in the manual switching state.
(12) If the WTB is in the timing operation, no action is executed, and the state is kept in the manual switching state.
(13) And if the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (NR, RB) protocol message, no action is executed, and the suspension state is entered.
(14) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (NR) protocol message, executing the following actions, and entering a suspension state:
if the node equipment is the main node equipment and is in the return mode, starting the WTB timing.
When the state machine is in the forced switching state:
(1) if a clear command operation is received, the following actions are executed, and the suspension state is entered:
aiming at any node equipment in the ring network, if the MPLS service of any interface is blocked, starting protection timing, generating MPLS-R-APS (NR) protocol message and transmitting in the ring network.
If the node device is the master node device and in the return mode, the WTB timing is also started.
(2) If the FS forced switching command operation of the local request is received, the following actions are executed and kept in the forced switching state:
and blocking the MPLS service of the requested ring network interface aiming at any node equipment in the ring network, generating an MPLS-R-APS (FS) protocol message and transmitting the message in the ring network, and clearing the MAC address forwarding table entry under the VSI corresponding to the MPLS service protected by the dynamically learned state machine.
(3) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (FS) protocol message, no action is executed, and the state is kept in a forced switching state.
(4) If the failure of the MPLS service channel between the MPLS service channel and the adjacent node equipment is detected, the input of the local terminal SF is triggered, no action is executed, and the forced switching state is kept.
(5) If the failure recovery of the MPLS service channel between the local terminal and the adjacent node equipment is detected, the local terminal is triggered to clear the input of SF, no operation is executed, and the local terminal is kept in a forced switching state.
(6) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (SF) protocol message, no operation is executed, and the forced switching state is kept.
(7) If the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (MS) protocol message, no operation is executed, and the forced switching state is kept.
(8) If receiving the local request MS manual switching command operation, not executing any action and keeping in the forced switching state.
(9) If the WTR timing is over, no action is executed and the state is kept in the forced switching state.
(10) If the WTR is in the timing operation, no action is executed and the state is kept in the forced switching state.
(11) If the WTB timing is finished, the state does not execute any action and is kept in a forced switching state.
(12) If the WTB is in the timing operation, no action is executed, and the state is kept in a forced switching state.
(13) And if the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (NR, RB) protocol message, no action is executed, and the suspension state is entered.
(14) And if the message received from the MPLS service channel between the adjacent node equipment is detected to be an MPLS-R-APS (NR) protocol message, executing the following actions and entering a suspension state.
It should be noted that, in the actions performed by the state machine in each state described above, besides the blocked and released objects, the cleared objects, and the involved MPLS-R-APS protocol messages, other processes and input information of the state machine can be referred to the working process of the state machine in the prior art, and will not be described in detail herein.
In the embodiment of the invention, because the blocked and released object is the protected MPLS service, the MAC address forwarding table entry under VSI corresponding to the MPLS service protected by the state machine is removed through dynamic learning, namely the MAC address information of VPLS based on L2VPN and the expansion of a G.8032 protocol message are removed, so that the G.8032 protocol can still adapt to the service scene of MPLS, and the ring network protection of the MPLS service is realized.
In a specific implementation, when performing ring network protection on the MPLS service, the step S302 of blocking and/or releasing the MPLS service of the corresponding ring network interface according to the connected state and the received first MPLS-R-APS protocol packet sent by the other node device and transmitted in the ring network, and determining that a second MPLS-R-APS protocol packet generated by the node device is needed and transmitted in the ring network may specifically include:
determining whether a failure of an MPLS service channel between the MPLS service channel and adjacent node equipment is detected;
if yes, blocking the MPLS service of the ring network interface connected with the MPLS service channel with the fault, releasing the MPLS service of the ring network interface connected with the MPLS service channel without the fault, determining that the node equipment needs to generate a second MPLS-R-APS protocol message carrying the state information of the MPLS service channel with the fault in the current ring network, and transmitting the second MPLS-R-APS protocol message in the ring network;
if not, when a first MPLS-R-APS protocol message which is sent by other node equipment and carries the state information of the MPLS service channel with the fault in the current ring network is determined to be received, the MPLS service of the ring network interface connected with the MPLS service channel without the fault is released;
and clearing the MAC address forwarding table entry under the VSI corresponding to the established MPLS service.
The following describes, with reference to specific embodiments, an MPLS service configuration process of a ring network, a protection configuration process of an MPLS service, a protection switching process of an MPLS service channel, and a failure recovery switching process of an MPLS service channel, respectively.
Referring to the ring network shown in fig. 1, SPE-A, SPE-B and SPE-C represent three node devices, CE-a represents a user device connected to SPE-a, CE-B represents a user device connected to SPE-B, and CE-C represents a user device connected to SPE-C.
And MPLS service configuration process:
the specific requirements are as follows: three user equipment, CE-A, CE-B and CE-C, are required to be able to communicate; pure two-layer forwarding cannot be used.
The reason why pure two-layer forwarding cannot be used is: since other devices exist in the Network and use the same VLAN (Virtual Local Area Network), it is necessary to separate the communication domain from the service layer, and it is necessary to forward the protocol packet according to the destination MAC, so that pure two-layer forwarding cannot be used. Also, it is noted that the ring network is a L2VPN based on VPLS.
The specific configuration process is as follows:
the same L2VPN is established on three node devices of SPE-A, SPE-B and SPE-C, namely the three node devices belong to the same L2 VPN;
respectively creating an MPLS service channel between SPE-A to SPE-B, SPE-C to SPE-B, SPE-A to SPE-C, and respectively distributing corresponding information such as LSP labels and the like;
and respectively configuring an AC for service extraction and a PW for service encapsulation in the L2VPN on three node devices of SPE-A, SPE-B and SPE-C, and binding each PW with a respective correct MPLS service channel.
After the above process is completed, the three user equipments of CE-A, CE-B, CE-C can communicate with each other. Moreover, as the horizontal division function is started, the intercommunication between the three node devices can only be realized through the MPLS service channel among the three node devices, but the intercommunication across the service channels cannot be realized, for example, SPE-A to SPE-B to SPE-C can not be generated.
Protection configuration process of MPLS service:
and on three node devices of SPE-A, SPE-B and SPE-C, the horizontal division of each node device is closed respectively, so that the mutual forwarding of the MPLS service between one node device and one PW in the L2VPN is realized.
In addition, in this embodiment, the SPE-a is configured as a master node device, the SPE-C is configured as a neighbor node device, the SPE-B is configured as a common node device, and a link between the SPE-a and the SPE-C is configured as an RPL, which may be specifically shown in fig. 1. According to the specification of the G.8032 protocol, under the condition that the ring network has no fault, the RPL is blocked, so that a communication path between the SPE-A and the SPE-C is SPE-A-SPE-B-SPE-C, a communication path between the SPE-A and the SPE-B is SPE-A-SPE-B, and a communication path between the SPE-B and the SPE-C is SPE-B-SPE-C.
It should be noted that SPE-a-SPE-B-SPE-C indicates that the MPLS service is forwarded from SPE-a to SPE-C via SPE-B, and the meaning indicated by the following representation manner of the communication path is similar, and repeated details are omitted.
Protection switching process of MPLS service channel:
when there is no fault in the ring network, all node devices in the ring network are in an idle state.
When the MPLS service channel between SPE-B and SPE-C is in fault, the event obtained by SPE-B and SPE-C is the local SF, namely the fault is detected locally.
SPE-C is a neighbor node device, wherein the action executed by the state machine is as follows: blocking MPLS service of a ring network interface connected to an MPLS service channel with a fault, releasing MPLS service of a ring network interface connected to an MPLS service channel without a fault (i.e., RPL), sending MPLS-R-aps (sf) protocol packets to SPE-B and SPE-a, clearing a dynamic VSI-based MAC address forwarding table entry, and entering a protection state.
The action of blocking and releasing is used for protection switching, the sending of an MPLS-R-aps (sf) protocol packet is used for notifying other node devices that the node device detects that an MPLS service channel fails, and the clearing of the dynamic VSI-based MAC address forwarding table entry is performed to relearn the MAC address and find a new forwarding path.
SPE-B is common node equipment, wherein the action executed by the state machine is as follows: blocking MPLS service of a ring network interface connected with a failed MPLS service channel, releasing MPLS service of a ring network interface connected with an MPLS service channel not failed, sending MPLS-R-aps (sf) protocol packets to SPE-C and SPE-a, respectively, clearing a dynamic VSI-based MAC address forwarding table entry, and entering a protection state.
The SPE-A is main node equipment, and the failed MPLS service channel is not connected with the SPE-A, so the SPE-A cannot detect local failure; however, after receiving the MPLS-R-aps (sf) protocol packet sent by SPE-B and/or SPE-C, it can be determined through the protocol packet that a certain MPLS service channel in the ring network fails, so at this time, the input information of the state machine in SPE-a is the MPLS-R-aps (sf) protocol packet, and further, the action executed by the state machine in SPE-a is: the method comprises the steps of releasing MPLS services of a ring network interface connected with RPL, firstly sending 3 MPLS-R-APS (SF) protocol messages, preventing the MPLS-R-APS (SF) protocol messages from being discarded, then stopping sending any protocol message, clearing a dynamic MAC address forwarding table item based on VSI and entering a protection state.
After the protection switching process is completed, the status of each node device in the ring network is shown in fig. 4, wherein, as the MPLS service channel between SPE-B and SPE-C is failed (the failure is indicated by cross), before protection switching, the communication path between SPE-A and SPE-C SPE-A-SPE-B-SPE-C can not complete communication, the communication path between SPE-a and SPE-C is switched to SPE-a-SPE-C, and the communication path between the SPE-A and the SPE-B is kept unchanged, and similarly, the communication path between the SPE-B and the SPE-C is changed from SPE-B-SPE-C to SPE-B-SPE-A-SPE-C.
The failure recovery switching-back process of the MPLS service channel:
referring to fig. 5, a single-direction arrow in the figure indicates the direction of the transmitted protocol packet. When the fault of the MPLS service channel between the SPE-B and the SPE-C is recovered, the SPE-B and the SPE-C both obtain input information of a local terminal for clearing SF, then state machines in the SPE-B and the SPE-C both start protection timing and respectively send MPLS-R-APS (NR) protocol messages to two adjacent node devices in an annular network, and the state machines in the SPE-B and the SPE-C both enter a suspension state.
SPE-A is a main node device, receives MPLS-R-APS (NR) protocol message, and then a state machine therein starts a WTR timer, and the state machine enters a suspension state.
After SPE-B and SPE-C both enter a suspension state, the SPE-B and SPE-C can mutually receive MPLS-R-APS (NR) protocol messages sent by the other party, and if the MAC address of SPE-B is larger than that of SPE-C, the state machine in SPE-B still continues to send MPLS-R-APS (NR) protocol messages. And for SPE-C, the state machine stops sending MPLS-R-APS (NR) protocol message and releases MPLS service of the ring network interface connected with the fault-free MPLS service channel.
When determining whether the MAC address of the SPE-B is greater than the MAC address of the SPE-C, the MAC addresses of the two node devices may be directly compared, for example, but not limited to, when the MAC address of the SPE-B is 00002 and the MAC address of the SPE-C is 00001, the MAC address of the SPE-B is greater than the MAC address of the SPE-C because 00002 is greater than 00001.
The SPE-A is a main node device, when a WTR timer of the SPE-A is up, the WTR timer stops, and because the MPLS service of the ring network interface connected with the RPL is not blocked at present, a state machine in the SPE-A blocks the MPLS service of the ring network interface connected with the RPL; since the current state is not in the DNF state, the state machine in the SPE-a respectively sends an MPLS-R-APS (NR, RB) protocol packet to the SPE-B and the SPE-C, clears all the dynamically learned MAC address information under the VSI, releases the MPLS service of the ring network interface connected to the non-RPL, clears the dynamic VSI-based MAC address forwarding table entry, and enters the idle state, which is shown in fig. 6, where a single-direction arrow in the figure indicates the direction of the sent protocol packet.
And then, the SPE-B and the SPE-C in the suspension state both receive MPLS-R-APS (NR and RB) protocol messages sent by the SPE-A.
SPE-C is a neighbor node device, wherein the action executed by the state machine is as follows: blocking MPLS service of the ring network interface connected with the RPL, releasing MPLS service of the ring network interface connected with the non-RPL, stopping sending any MPLS-R-APS protocol message, and entering into an idle state.
SPE-B is common node equipment, wherein the action executed by the state machine is as follows: releasing MPLS service of any ring network interface, stopping sending any MPLS-R-APS protocol message, and entering into idle state.
At this point, the failure is recovered and the back-off process is finished, and the ring network is recovered to the state before the protection switching.
The embodiments described above are described with respect to the ring network protection switching process of MPLS services on one logical ring, but in the embodiments of the present invention, multiple logical rings may be configured for the same physical ring network topology structure, and each logical ring protects different MPLS services, and at the same time, each logical ring may be distinguished by a ring identifier.
Wherein, for any node device, if the node device belongs to a plurality of logic rings, each logic ring has its own independent state machine. For example, when a node device belongs to two logical rings, two independent state machines are configured in the node device, and the two state machines respectively operate in different logical rings to avoid mutual interference between the logical rings.
In an actual application scenario, one physical ring may carry multiple services, and these services may take different paths during transmission, for example, if SPE-a and SPE-B are not physically directly connected but span a large transmission network, the transmission path of the transmission network may not be visible for the protected service, and different services are likely to have different connectivity in the transmission network. So if two completely unrelated services are to be protected, even if the two services have the same outgoing interface between SPE-a and SPE-B, different logical rings need to be configured for protection. That is, services with different connectivity need to be protected by independent ring networks.
Therefore, in the embodiment of the present invention, a plurality of logical level ring network protections may be configured simultaneously, for example, two VPLS E-LAN models are established in one physical topology structure, each model belongs to different VPNs, and different MPLS ring network protection groups are distinguished by different ring identifiers.
Referring to the ring network topology shown in fig. 7, a ring network topology physically includes three node devices (e.g., SPE-A, SPE-B and SPE-C), but two logical rings (e.g., L2VPN-1 and L2VPN-2) may exist at the same time, and the ring network protection of MPLS services under different logical rings is completely independent, and the node roles, the hierarchy levels and the types of the MPLS services to be protected may be the same or different. The logical ring 1 may be corresponding to protection of MPLS service a of the PW layer, and the logical ring 2 may be corresponding to protection of MPLS service B of the LSP layer.
Of course, in the embodiment of the present invention, the present invention is also applicable to an intersecting logical ring (hereinafter, referred to as an intersecting ring), as shown in fig. 8, where SPE-A, SPE-B, SPE-C, SPE-D, SPE-E and SPE-F represent six node devices, CE represents a user device connected to each node device, SPE-A, SPE-B, SPE-C and SPE-D form a main logical ring, and a link between SPE-a and SPE-B is RPL; SPE-C, SPE-D, SPE-E and SPE-F form a sub-logical ring, and a link between SPE-D and SPE-E is RPL.
In specific implementation, when there are multiple logical rings for a physical topology and an intersecting ring, the receiving, in step S302 in this embodiment of the present invention, a first MPLS-R-APS protocol packet that is sent by another node device and is transmitted in a ring network may specifically include:
step one, a hardware forwarding chip in a node device receives a first MPLS-R-APS protocol message sent by an adjacent node device through an MPLS service channel, and performs matching processing on the first MPLS-R-APS protocol message according to a preset rule to determine that the first MPLS-R-APS protocol message is an MPLS-R-APS protocol message under a logic ring to which the node device belongs;
the matching process may be a field matching process, and the preset rule may be an Access Control List (ACL) rule.
Specifically, the field matching processing procedure is as follows: matching the VC label, the TUNNEL label, the 8032 destination multicast dMAC address and the inner two-layer header VLAN information carried in the first MPLS-R-APS protocol message with the preset conditions in the ACL rule; if the matching is successful, determining that the first MPLS-R-APS protocol message is the MPLS-R-APS protocol message under a logic ring to which the node equipment belongs; and if the matching is unsuccessful, the matching is carried out again.
In addition, in this embodiment, a corresponding ACL rule and a multicast group may be set in advance for each logical ring, so as to process the received first MPLS-R-APS protocol packet.
In addition, the preset conditions in the ACL rules may include: VC label, TUNNEL label, destination multicast dMAC address of 8032, and inner two-layer header VLAN information. Moreover, one ACL rule uniquely corresponds to one logic ring, the preset conditions in the ACL rules of different logic rings are different, and the multicast groups hit by the protocol messages are also different. The multicast group comprises MPLS service channels of ring network interfaces connected with the node equipment on the corresponding logic ring.
Step two, the hardware forwarding chip submits the first MPLS-R-APS protocol message to a processor (such as a Central processing Unit, CPU) in the node equipment;
step three, the CPU analyzes the first MPLS-R-APS protocol message, determines a corresponding logic ring management entity according to a VLAN in an internal two-layer header and a ring identifier carried in a destination multicast dMAC address of 8032 in the internal two-layer header, and then processes the first MPLS-R-APS protocol message according to the current state of each MPLS service channel in the ring network by using a ring state machine in the logic ring management entity;
wherein, the logical ring management entity can be understood as: the management entity includes at least a state machine, and other structures for implementing the logical ring management function are also included in the logical management entity, and will not be described in detail herein.
And step four, the hardware forwarding chip forwards the first MPLS-R-APS protocol message only to other node equipment except the node equipment which sends the first MPLS-R-APS protocol message in the hit multicast group.
In practical situations, for the ring network shown in fig. 1, there is a need for:
requirement 1: and the CE-A is used as a multicast source to carry out multicast service transmission to the CE-B and the CE-C.
Requirement 2: in the transmission process, only 1 part of bandwidth can be occupied between adjacent node devices, and the bandwidth in other directions cannot be occupied.
Requirement 3: and the ring network topology realizes the protection function.
If the traditional VPLS E-LAN model is used, the service can be transmitted to CE-B and CE-C through VPLS multicast to meet the requirement 1; the requirement 2 can be met because one part of bandwidth is occupied by the CE-A to the CE-B and one part of bandwidth is occupied by the CE-A to the CE-C; however, since ring network protection cannot be established, requirement 3 cannot be satisfied.
If a point-to-point E-LINE model is used, if the requirement 1 is to be met, the establishment of MPLS service channels from the SPE-A point to point is equivalent. If the requirement 3 is to be met, a detection mechanism can be established point-to-point one by one, for example, if an MPLS service channel between the SPE-A and the SPE-B fails, another channel SPE-A-SPE-C-SPE-B is used. However, the network is equivalent to SPE-A-SPE-B establishing an MPLS service channel to occupy one bandwidth, and SPE-A-SPE-B-SPE-C reestablishing an MPLS service channel to occupy one bandwidth, which is equivalent to SPE-A-SPE-B occupying double bandwidth, and the multicast service occupies large bandwidth in demand, so that the network is unrealistic and complex in configuration, and cannot meet the demand 2.
If the g.8132 protocol is used, requirements 1 and 3 can be satisfied, but requirement 2 still cannot be satisfied, and the network still has the problem of extra bandwidth occupation when the number of node devices is larger than 3.
For example, see fig. 9, where SPE-a to SPE-F respectively represent six node devices, and since a failure occurs in an MPLS service channel between SPE-B and SPE-C, when a service goes from SPE-a to SPE-D, the service cannot go from SPE-a directly to SPE-D, that is, cannot be SPE-a- - -SPE-B- - -SPE-C- - -SPE-D, but is to be forwarded from SPE-B to SPE-F, that is, the service transmission path is SPE-a- - -SPE-B- - -SPE-a- - -SPE-F- - -SPE-E- - -SPE-D- - -SPE-C- - -SPE-D, this results in additional bandwidth being used in the middle.
Therefore, the three requirements cannot be satisfied simultaneously by using the current model and protocol. In the embodiment of the invention, aiming at the VPLS E-LAN scene, ring formation can be carried out when the horizontal segmentation function of each node device is closed, so that the ring network protection of MPLS service can be realized.
For example, referring to the ring network shown in fig. 1, after ring network protection is configured, communication may be performed between CE-a and CE-C, and the communication path is: CE-A- - -SPE-B- - -SPE-C- - -CE-C. That is, the requirement of intercommunication in requirement 1 can be met through the ring network, the requirement of protection in requirement 3 can be met through ring network protection, the requirement of not occupying extra bandwidth in requirement 2 can be met through SPE-B multicast replication and forwarding, and the behavior is similar to MS-PW behavior. Thus, the ring network and the ring network protection method of the ring network provided by the embodiment of the invention can simultaneously meet the three requirements, and realize the ring network protection scheme of the MPLS service based on the VPLS E-LAN model.
Based on the same inventive concept, embodiments of the present invention further provide a ring network protection device, and since the working principle of the ring network protection device is similar to that of the above ring network protection method, the specific implementation manner of the ring network protection device may refer to the specific implementation manner of the above ring network protection method, and repeated details are omitted.
Specifically, in the ring network protection apparatus provided in the embodiment of the present invention, the ring network protection apparatus is configured to perform ring network protection on a multi-protocol label switching MPLS service transmitted in a ring network, and each node device of at least three node devices included in the ring network includes: a detection unit 1001 and a protection unit 1002, see fig. 10; wherein the horizontal segmentation function of the node device is closed;
a detecting unit 1001, configured to detect a connection state of an MPLS service channel with an adjacent node device;
a protection unit 1002, configured to block and/or release an MPLS service of a corresponding ring network interface according to a connected state and a received first MPLS-R-APS protocol packet that is sent by another node device and is transmitted in a ring network, and determine that a second MPLS-R-APS protocol packet that needs to be generated by the node device is transmitted in the ring network, so as to perform ring network protection on the MPLS service;
and the first MPLS-R-APS protocol message and the second MPLS-R-APS protocol message are both encapsulated G.8032 standard R-APS protocol messages.
In specific implementation, in the embodiment of the present invention, the protection unit 1002 is specifically configured to:
when the node equipment needs to generate a second MPLS-R-APS protocol message, acquiring a G.8032 standard R-APS protocol message corresponding to the second MPLS-R-APS protocol message;
and encapsulating the G.8032 standard R-APS protocol message by using the virtual logic VC label information, the link TUNNEL label information and the outermost layer Ethernet two-layer header information to generate a second MPLS-R-APS protocol message, and transmitting the second MPLS-R-APS protocol message in the ring network through an MPLS service channel between the second MPLS-R-APS protocol message and adjacent node equipment.
In specific implementation, in the embodiment of the present invention, the first MPLS-R-APS protocol packet and the second MPLS-R-APS protocol packet are broadcast packets, and each node device is connected to a user device;
the protection unit 1002 is further specifically configured to:
for each node device:
when receiving the MPLS-R-APS protocol message transmitted by other node equipment in the ring network, determining to hit the multicast group, terminating the broadcast of the MPLS-R-APS protocol message, and forwarding the received MPLS-R-APS protocol message to members in the multicast group so as to transmit the message to corresponding downstream adjacent node equipment;
the MPLS service channels connected with the ring network interface of the node equipment are all added into the same multicast group in advance according to configuration; the MPLS-R-APS protocol message is as follows: and the first MPLS-R-APS protocol message and/or the second MPLS-R-APS protocol message are transmitted in the ring network.
In specific implementation, in the embodiment of the present invention, the ring network protects MPLS services carried on a set of pseudo wires PW;
before detecting the connected state of the MPLS traffic channel with the adjacent node device, the detecting unit 1001 is further configured to:
determining the grade of MPLS service loaded on each PW in each group of PWs connected with adjacent node equipment;
and determining the connected state of the PW with the highest bearing MPLS service level in a group of PWs as the connected state of the group of PWs.
In specific implementation, in the embodiment of the present invention, the detecting unit 1001 is specifically configured to:
determining the grade of the MPLS service loaded on each PW in each group of PW by adopting the following formula;
P=k1×(1/LT)+k2×(C/Δt)
wherein P represents a level of the MPLS traffic carried on the PW, LT represents a maximum acceptable value of a packet loss rate corresponding to a category to which the MPLS traffic belongs, Δ t represents a maximum acceptable value of a network transmission delay corresponding to a category to which the MPLS traffic belongs, C represents a minimum acceptable value of a throughput corresponding to a category to which the MPLS traffic belongs, and k1 and k2 both represent preset weight coefficients.
In specific implementation, in the embodiment of the present invention, the protection unit 1002 is a state machine.
Based on the same inventive concept, an embodiment of the present invention further provides a ring network, as shown in fig. 11, which may include: at least three node devices, the horizontal division function of each node device being closed;
the node device comprises the ring network protection device m provided by the embodiment of the invention.
Of course, only the ring network including three node devices is shown in fig. 11, but the number of node devices to be provided is not limited thereto.
In specific implementation, in the embodiment of the present invention, at least three node devices include: the system comprises a main node device, a neighbor node device and at least one common node device; and a link between the main node equipment and the neighbor node is a ring network protection link RPL.
For example, referring to fig. 11, SPE-a represents a primary node device, SPE-B represents a normal node device, SPE-C represents a neighbor node device, and a link between SPE-a and SPE-C is RPL.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
The embodiment of the invention provides a ring network protection method, a device and a ring network, wherein a second MPLS-R-APS protocol message which needs to be generated by the node equipment is determined and transmitted in the ring network according to the communication state of an MPLS service channel between the ring network protection device and adjacent node equipment and the received first MPLS-R-APS protocol message which is sent by other node equipment and transmitted in the ring network, so that the G.8032 protocol is expanded, the G.8032 protocol can adapt to MPLS service scenes on the original basis, and the ring network protection of the MPLS service is realized.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (12)

1. A ring network protection method is characterized in that the ring network protection method is used for performing ring network protection on a multi-protocol label switching (MPLS) service transmitted in a ring network, the ring network comprises at least three node devices, and the horizontal segmentation function of each node device is closed; the method comprises the following steps:
for each of the node devices, performing the following operations:
detecting the communication state of an MPLS service channel between the MPLS service channel and adjacent node equipment;
according to the connected state and the received first MPLS-R-APS protocol message which is sent by other node equipment and transmitted in the ring network, blocking and/or releasing the MPLS service of the corresponding ring network interface, determining a second MPLS-R-APS protocol message which needs to be generated by the node equipment and transmitting the second MPLS-R-APS protocol message in the ring network so as to perform ring network protection on the MPLS service;
when the first MPLS-R-APS protocol packet and the second MPLS-R-APS protocol packet are broadcast packets and each node device is connected to a user device, a manner of transmitting the first MPLS-R-APS protocol packet and the second MPLS-R-APS protocol packet in the ring network specifically includes:
for each of the node devices:
when receiving the MPLS-R-APS protocol message transmitted by other node equipment in the ring network, determining to hit the multicast group, terminating the broadcast of the MPLS-R-APS protocol message, and forwarding the received MPLS-R-APS protocol message to members in the multicast group so as to transmit the message to corresponding downstream adjacent node equipment;
the first MPLS-R-APS protocol message and the second MPLS-R-APS protocol message are both encapsulated G.8032 standard R-APS protocol messages; MPLS service channels connected with the ring network interface of the node equipment are all added into the same multicast group in advance according to configuration; the MPLS-R-APS protocol message is as follows: and the first MPLS-R-APS protocol message and/or the second MPLS-R-APS protocol message are transmitted in the ring network.
2. The ring network protection method according to claim 1, wherein determining that the second MPLS-R-APS protocol packet generated by the node device is required to be transmitted in the ring network specifically includes:
when the node equipment is required to generate the second MPLS-R-APS protocol message, acquiring a G.8032 standard R-APS protocol message corresponding to the second MPLS-R-APS protocol message;
and encapsulating the G.8032 standard R-APS protocol message by using virtual logic VC label information, link TUNNEL label information and outermost layer Ethernet two-layer header information to generate a second MPLS-R-APS protocol message, and transmitting the second MPLS-R-APS protocol message in the ring network through an MPLS service channel between the second MPLS-R-APS protocol message and adjacent node equipment.
3. The ring network protection method according to any one of claims 1-2, wherein if the ring network protects MPLS traffic carried on a set of pseudo wires PW, before detecting a connectivity status of an MPLS traffic channel with an adjacent node device, the method further comprises:
determining the grade of MPLS service loaded on each PW in each group of PWs connected with adjacent node equipment;
and determining the connected state of the PW with the highest bearing MPLS service level in a group of PWs as the connected state of the group of PWs.
4. The ring network protection method according to claim 3, wherein determining the level of the MPLS service carried over each PW in each group of PWs connected to the neighboring node device specifically includes:
determining the grade of MPLS service loaded on each PW in each group of PWs by adopting the following formula;
P=k1×(1/LT)+k2×(C/Δt)
wherein P represents a level of the MPLS traffic carried on the PW, LT represents a maximum acceptable value of a packet loss rate corresponding to a category to which the MPLS traffic belongs, Δ t represents a maximum acceptable value of a network transmission delay corresponding to a category to which the MPLS traffic belongs, C represents a minimum acceptable value of a throughput corresponding to a category to which the MPLS traffic belongs, and k1 and k2 both represent preset weight coefficients.
5. The ring network protection method according to any one of claims 1-2, wherein the determining, according to the connected state and the received first MPLS-R-APS protocol packet that is sent by another node device and is transmitted in the ring network, that a corresponding ring network interface MPLS service is blocked and/or released, a second MPLS-R-APS protocol packet that needs to be generated by the node device is determined and transmitted in the ring network, specifically includes:
determining whether a failure of an MPLS service channel between the MPLS service channel and adjacent node equipment is detected;
if yes, blocking the MPLS service of the ring network interface connected with the MPLS service channel with the fault, releasing the MPLS service of the ring network interface connected with the MPLS service channel without the fault, determining that the node equipment needs to generate a second MPLS-R-APS protocol message carrying the state information of the MPLS service channel with the fault in the current ring network, and transmitting the second MPLS-R-APS protocol message in the ring network;
if not, when a first MPLS-R-APS protocol message which is sent by other node equipment and carries the state information of the MPLS service channel with the fault in the current ring network is determined to be received, the MPLS service of the ring network interface connected with the MPLS service channel without the fault is released;
and clearing the media access control MAC address forwarding table entry under the virtual switching interface VSI corresponding to the established MPLS service.
6. The ring network protection device is characterized in that the ring network protection device is used for performing ring network protection on a multi-protocol label switching (MPLS) service transmitted in a ring network, and aiming at any node device in at least three node devices included in the ring network, the ring network protection device comprises: a detection unit and a protection unit; wherein a horizontal split function of the node device is turned off;
the detection unit is used for detecting the communication state of the MPLS service channel between the detection unit and the adjacent node equipment;
the protection unit is configured to block and/or release an MPLS service of a corresponding ring network interface according to the connected state and a received first MPLS-R-APS protocol packet that is sent by another node device and is transmitted in the ring network, and determine a second MPLS-R-APS protocol packet that needs to be generated by the node device and is transmitted in the ring network, so as to perform ring network protection on the MPLS service;
the first MPLS-R-APS protocol message and the second MPLS-R-APS protocol message are broadcast messages, and each node device is connected with a user device;
the protection unit is further specifically configured to:
for each of the node devices:
when receiving the MPLS-R-APS protocol message transmitted by other node equipment in the ring network, determining to hit the multicast group, terminating the broadcast of the MPLS-R-APS protocol message, and forwarding the received MPLS-R-APS protocol message to members in the multicast group so as to transmit the message to corresponding downstream adjacent node equipment;
the first MPLS-R-APS protocol message and the second MPLS-R-APS protocol message are both encapsulated G.8032 standard R-APS protocol messages; MPLS service channels connected with the ring network interface of the node equipment are all added into the same multicast group in advance according to configuration; the MPLS-R-APS protocol message is as follows: and the first MPLS-R-APS protocol message and/or the second MPLS-R-APS protocol message are transmitted in the ring network.
7. The ring network protection device as claimed in claim 6, wherein the protection unit is specifically configured to:
when the node equipment is required to generate the second MPLS-R-APS protocol message, acquiring a G.8032 standard R-APS protocol message corresponding to the second MPLS-R-APS protocol message;
and encapsulating the G.8032 standard R-APS protocol message by using virtual logic VC label information, link TUNNEL label information and outermost layer Ethernet two-layer header information to generate a second MPLS-R-APS protocol message, and transmitting the second MPLS-R-APS protocol message in the ring network through an MPLS service channel between the second MPLS-R-APS protocol message and adjacent node equipment.
8. The ring network protection device as claimed in any one of claims 6-7, wherein the ring network protects MPLS traffic carried over a set of pseudo wires PW;
before detecting a connected state of the MPLS traffic channel with the adjacent node device, the detecting unit is further configured to:
determining the grade of MPLS service loaded on each PW in each group of PWs connected with adjacent node equipment;
and determining the connected state of the PW with the highest bearing MPLS service level in a group of PWs as the connected state of the group of PWs.
9. The ring network protection device as claimed in claim 8, wherein the detection unit is specifically configured to:
determining the grade of the MPLS service loaded on each PW in each group of PW by adopting the following formula;
P=k1×(1/LT)+k2×(C/Δt)
wherein P represents a level of the MPLS traffic carried on the PW, LT represents a maximum acceptable value of a packet loss rate corresponding to a category to which the MPLS traffic belongs, Δ t represents a maximum acceptable value of a network transmission delay corresponding to a category to which the MPLS traffic belongs, C represents a minimum acceptable value of a throughput corresponding to a category to which the MPLS traffic belongs, and k1 and k2 both represent preset weight coefficients.
10. The ring network protection device as claimed in any one of claims 6-7, wherein the protection unit is a state machine.
11. A torus network, comprising: at least three node devices, the horizontal split function of each of the node devices being turned off;
the node arrangement comprises the ring network protection device as claimed in any one of claims 6-10.
12. The ring network of claim 11, wherein at least three node devices comprise: the system comprises a main node device, a neighbor node device and at least one common node device;
and the link between the main node equipment and the neighbor node is a ring network protection link RPL.
CN201811287931.9A 2018-10-31 2018-10-31 Ring network protection method and device and ring network Active CN109450764B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811287931.9A CN109450764B (en) 2018-10-31 2018-10-31 Ring network protection method and device and ring network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811287931.9A CN109450764B (en) 2018-10-31 2018-10-31 Ring network protection method and device and ring network

Publications (2)

Publication Number Publication Date
CN109450764A CN109450764A (en) 2019-03-08
CN109450764B true CN109450764B (en) 2021-04-16

Family

ID=65550382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811287931.9A Active CN109450764B (en) 2018-10-31 2018-10-31 Ring network protection method and device and ring network

Country Status (1)

Country Link
CN (1) CN109450764B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110011839B (en) * 2019-03-26 2022-04-08 新华三技术有限公司 Message forwarding method and device, SPE (solid phase extraction) and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534234A (en) * 2009-04-20 2009-09-16 杭州华三通信技术有限公司 Interworking Ethernet ring network protection method and system
CN101702658A (en) * 2009-11-24 2010-05-05 中兴通讯股份有限公司 Implement method of ring network protection and system thereof
CN102025584A (en) * 2010-11-30 2011-04-20 迈普通信技术股份有限公司 G.8032-based ring network protecting method and system
CN102946341A (en) * 2012-12-12 2013-02-27 盛科网络(苏州)有限公司 MPLS-TP (Multi-Protocol Label Switching-Transport Profile) ring network protection method and MPLS-TP ring network protection system based on G8032 protocol
CN106685783A (en) * 2016-12-29 2017-05-17 瑞斯康达科技发展股份有限公司 Ring network protection method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534234A (en) * 2009-04-20 2009-09-16 杭州华三通信技术有限公司 Interworking Ethernet ring network protection method and system
CN101702658A (en) * 2009-11-24 2010-05-05 中兴通讯股份有限公司 Implement method of ring network protection and system thereof
CN102025584A (en) * 2010-11-30 2011-04-20 迈普通信技术股份有限公司 G.8032-based ring network protecting method and system
CN102946341A (en) * 2012-12-12 2013-02-27 盛科网络(苏州)有限公司 MPLS-TP (Multi-Protocol Label Switching-Transport Profile) ring network protection method and MPLS-TP ring network protection system based on G8032 protocol
CN106685783A (en) * 2016-12-29 2017-05-17 瑞斯康达科技发展股份有限公司 Ring network protection method and system

Also Published As

Publication number Publication date
CN109450764A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
EP3041179B1 (en) A method and apparatus for use in network management
US9178795B2 (en) Method and ethernet switching device for detecting loop position in ethernet
US7564779B2 (en) Ring rapid spanning tree protocol
EP3267637B1 (en) Hash-based multi-homing
KR101503629B1 (en) Differential forwarding in address-based carrier networks
AU2007247560B8 (en) Automatic packet protection forwarding to an MPLS network by a dual-homed ethernet bridge
US8761048B2 (en) Managing hierarchical ethernet segments
US20120236730A1 (en) Method, device and system for processing service traffic based on pseudo wires
US9641396B2 (en) Packet processing method and system
CN104956628A (en) Using Ethernet ring protection switching with computer networks
US10965594B2 (en) Pseudo wire load sharing method and device
WO2012028029A1 (en) Switching method and system
EP1672847B1 (en) Ring rapid spanning tree protocol
CN105471599B (en) Protection switching method and network equipment
US20130003532A1 (en) Protection switching method and system
CN107592259A (en) A kind of flow switch method in VRRP protections scene
WO2008095360A1 (en) Method and system for switching rapidly when there is a failure of virtual private network link path
CN109450764B (en) Ring network protection method and device and ring network
CN104426777A (en) Routing updating method and routing equipment
CN113794656A (en) Message forwarding method and device
KR20230093015A (en) Information processing method, node and computer readable storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100094 First to Fifth Floors of Building 11, East Yard, No. 10 Wangdong Road, Northwest Haidian District, Beijing

Applicant after: Raisecom Technology Inc.

Address before: 100085 No. 2 Building, No. 28 Shangdi Sixth Street, Haidian District, Beijing

Applicant before: Raisecom Technology Inc.

GR01 Patent grant
GR01 Patent grant