WO2011038627A1 - Method, device and system for protecting multi-protocol label switching ring network - Google Patents

Method, device and system for protecting multi-protocol label switching ring network Download PDF

Info

Publication number
WO2011038627A1
WO2011038627A1 PCT/CN2010/076519 CN2010076519W WO2011038627A1 WO 2011038627 A1 WO2011038627 A1 WO 2011038627A1 CN 2010076519 W CN2010076519 W CN 2010076519W WO 2011038627 A1 WO2011038627 A1 WO 2011038627A1
Authority
WO
WIPO (PCT)
Prior art keywords
ring
packet
label
service
node
Prior art date
Application number
PCT/CN2010/076519
Other languages
French (fr)
Chinese (zh)
Inventor
陈建群
张海燕
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2011038627A1 publication Critical patent/WO2011038627A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • 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]

Definitions

  • Multi-protocol label switching ring network protection method, device and system wood application requirements were submitted to the Chinese Patent Office on September 29, 2009, application number 200910110718. 5, the invention name is "multi-protocol label switching ring protection method, device and The system is submitted to the Chinese Patent Office on November 30, 2009, and the application number is 200910252911. 2.
  • the present invention relates to the field of network communications, and in particular, to a ring network protection method, apparatus, and system for multi-protocol label switching.
  • MPLS BACKGROUND Multi-Protocol Label Switch
  • FRR Fast Reroute
  • APS linear automatic protection switching
  • LSP Label Switch Path
  • a closed-loop protection LSP is configured for each working LSP on the ring.
  • the link or node through which the working LSP passes is faulty, the service is switched to the corresponding protection LSP.
  • the configuration of the solution is complex.
  • Each working LSP needs to be configured and protected by LSPs.
  • the protection channel and the service channel are in a 1:1 relationship, and the network resources are expensive.
  • the shared bandwidth advantage of the traditional ring network protection is not reflected, and the protection switching cannot be effectively performed in the intersecting ring scenario.
  • a method for protecting a ring network of a multi-protocol label switching MPLS, when the outgoing interface of the packet is not protected includes: And forwarding the packet according to the configuration information corresponding to the valid service label of the packet: when the outer label of the packet is a valid ring working channel label, the packet received from the ring network interface is The ring working channel label is popped up, and the packet is forwarded on the ring working channel according to the corresponding configuration information of the valid inner layer service label of the packet; for the packet received from the ring network interface, when the packet is received When the outermost label of the label is a valid ring protection channel label, the packet is forwarded according to the corresponding configuration information of the ring protection channel label.
  • a ring-network protection device for a multi-protocol label switching MPLS includes a service-input interface, a service-out interface, a ring network interface, and a processing unit.
  • the service-input interface is configured to receive packets entering the ring network:
  • the service outgoing loop interface is configured to send a packet leaving the ring network;
  • the ring network interface is configured to receive or send a packet between the ring network nodes;
  • the processing unit is configured to The received packet is forwarded according to the configuration information of the valid service label of the packet.
  • the outer label of the packet is a valid ring.
  • a multi-protocol label switching MPLS ring network protection system includes an ingress ring node, a ring network node, and an egress ring node.
  • the ringing node is configured to receive a packet from a service ingress ring interface, according to the report. Effective business target And signing the corresponding configuration information to forward the packet; the ring network node is configured to receive a packet from the ringing node or another ring network node, and when the outermost label of the packet is a valid ring, When the channel label is used, the ring working channel label is popped up, and the packet is forwarded according to the corresponding configuration information of the valid inner service label of the packet, and the outer label of the packet is a valid ring protection channel label. When the outbound interface of the packet is not protected, the packet is forwarded to the ring interface of the ring protection channel label.
  • the ring protection channel label is popped up. And forwarding the packet according to the configuration information corresponding to the valid inner service label of the packet; the looping node is configured to pop the label of the working channel label or the ring protection channel, according to the validity of the packet
  • the inner service tag forwards the packet to the corresponding service outgoing ring interface.
  • FIG. 1 is a flowchart of a method for protecting a ring network of an MPLS according to an embodiment of the present invention
  • FIG. 2 is a block diagram of a ring network protection device for an MPLS according to another embodiment of the present invention
  • FIG. 3 is a ring network of an MPLS according to another embodiment of the present invention
  • FIG. 4 is a schematic diagram of a MPLS single-loop network protection system according to still another embodiment of the present invention
  • FIG. 5 is a schematic diagram of a MPLS tangential ring network protection system according to still another embodiment of the present invention
  • FIG. 7 is a schematic diagram of a MPLS multi-ring network protection system according to still another embodiment of the present invention.
  • the channel through which the message passes is layered into the corresponding label of the channel at the outermost part of the message.
  • the business of the clockwise working channel is protected by a counterclockwise protection channel, and the counterclockwise working channel is protected by a clockwise protection channel.
  • the above ring channel is a logical link, which can be carried on a physical two-fiber or four-fiber ring.
  • the ring network protection service can be an LSP or a Pseudo-Wire (PW). If the protected service is an LSP, the tunnel forms a logical ring channel: If the protected service is a PW, the LSP constitutes a logical ring channel. .
  • the user needs to specify the source node, the service working channel, and the sink node on the ring for the service, and according to this, the intermediate node that the service passes on the working channel can be obtained.
  • the user needs to specify the bandwidth information for the ring channel, and the four ring channels are consistent.
  • LSP or PW When a user configures a service (LSP or PW), the sum of the bandwidths of all services cannot exceed the bandwidth configured by the ring channel. Only the ring nodes passing through the service (LSP or PW) need the configuration information of the service, and the other nodes do not need the configuration information of the service.
  • the label switching process of the service is consistent with the label forwarding process of the existing standard.
  • the valid label that is identifiable in the forwarding entry is processed according to the forwarding entry of the label: For the label that is not recognized in the forwarding entry, the corresponding label is discarded. Message.
  • the ring channel label of the outer layer and the service label of the inner layer can be configured according to the network management or signaling, and label switching can be performed in the processing of each node on the ring, or label switching can be performed. If the service label of the inner layer is label-switched, all the downstream label information of the node on the service (LSP or PW) needs to be configured on each node of the service (LSP or PW) to ensure that after the protection switching Exchange the correct label based on the specific fault location (single or multipoint).
  • Fault detection between adjacent nodes on the ring network can be implemented by using the methods in the fast rerouting mechanism defined by the existing Internet Engineering Task Force (IETF) (such as link layer protocol and resource reservation protocol (Resource).
  • IETF Internet Engineering Task Force
  • the Hello protocol of the Reservation Protocol (RSVP), etc. can also be implemented according to the Operation, administration and maintenance (0AM) fault detection method defined by ITU-T.
  • Each node on the ring has full-ring topology information. The node learns the link or node failure and the specific fault location through the source and sink node information in the ring protection switching message.
  • the ring network protection switching notification mechanism and the existing Synchronous Digital Hierarchy (SDH) multiplex section protection ring The ring APS mechanism is similar.
  • FIG. 1 is a MPLS ring network protection method according to an embodiment of the present invention. flow chart. The method includes:
  • Receive a packet determine an interface for receiving the packet, and select a packet processing manner according to the interface that receives the packet. For the packet received from the service ringing interface, execute 104, and receive the packet received from the ring network interface. Text, execute 106.
  • the packet forwarding the packet according to the configuration information of the valid service label of the packet. If the packet is from the service-inbound interface, the outermost label of the packet is the LSP label. If the LSP label is valid, the node searches for the corresponding forwarding entry according to the LSP label of the outermost layer of the packet. If the outbound interface of the LSP label is a ring network interface, and the outgoing interface of the packet is not protected, the report is The packet is forwarded to the corresponding ring working channel label and forwarded to the corresponding ring network interface. For example, the packet needs to be forwarded to the next ring node in a clockwise direction, and the node receiving the packet presses the packet into the packet.
  • the clock ring working channel label is forwarded to the next ring network node in a clockwise direction. If the corresponding outbound interface of the LSP label is a ring network interface, and the outgoing interface of the packet performs protection switching, the packet is pressed. Enter the ring protection channel label in the opposite direction and forward it to the corresponding ring network interface in the reverse direction. For example, the packet needs to be forwarded clockwise to the next ring network node, but the corresponding outbound interface in the clockwise direction is faulty. If the outbound interface of the packet is protected and switched, the node pushes the counterclockwise protection channel label for the packet and forwards the packet counterclockwise on the counterclockwise protection channel. Give the next ring node.
  • the node is If the next hop ring network node is faulty, the node needs to exchange the LSP label of the packet to the egress label of the next hop ring network node to forward the packet, so that the LSP label of the label-switched packet can be hopped by the next hop. Recognized by the ring network node. 106. For the packet received from the ring network interface, select the packet processing mode according to the outermost label of the packet.
  • the outermost label of the packet When the outermost label of the packet is a valid ring working channel label, execute 108, and report the packet. When the outermost label of the text is a valid ring protection channel label, perform 110. If the packet is from the ring network, the outermost label of the packet is the ring working channel label or the ring protection channel. Label. The ring network node selects the packet processing mode based on the outermost label of the packet.
  • the ring working channel label is ejected, and the packet is forwarded according to the corresponding configuration information of the valid inner service label of the packet.
  • the ring node pops up the outer ring working channel label of the packet.
  • the ring network node searches for the corresponding forwarding entry according to the effective inner layer service label, that is, the LSP label of the second layer. If the corresponding outgoing interface of the LSP label is the service outgoing interface, the packet is forwarded according to the LSP label to the corresponding service outgoing ring.
  • the ring network node pushes the label of the ring working channel in the corresponding direction and forwards it to the corresponding ring network interface. That is, the packet is forwarded on the ring working channel, for example, the packet needs to be forwarded to the next ring network node in a clockwise direction, and the ring network node presses the clockwise ring working channel label for the packet, and the The packet is forwarded to the next ring network node in a clockwise direction.
  • the ring network node pushes the corresponding ring in the opposite direction.
  • the channel label is protected and forwarded to the corresponding ring network interface in the opposite direction, that is, the packet is forwarded on the ring protection channel.
  • the packet needs to be forwarded clockwise to the next.
  • a ring network node but the corresponding outbound interface in the clockwise direction is affected by the fault for protection switching.
  • the ring network node presses the counterclockwise ring protection channel label for the packet, and forwards the packet to the lower direction.
  • a ring network node is affected by the fault for protection switching.
  • the node is If the next hop ring network node is faulty, the node needs to exchange the LSP label of the packet to the egress label of the next hop ring network node to forward the packet, so that the LSP label of the label-switched packet can be hopped by the next hop. Recognized by the ring network node.
  • the packet is processed according to whether the outbound interface of the packet performs protection switching. If the packet is not protected, the packet is executed. The interface performs protection switching and executes 114.
  • the packet is forwarded to the ring-out interface of the ring protection channel label, that is, the packet is forwarded on the ring protection channel.
  • the ring protection channel label is ejected, and the packet is forwarded according to the configuration information corresponding to the valid inner service label of the packet. If the ring-out interface of the ring protection channel label of the packet is affected by the fault and the protection switchover occurs, the ring network node pops up the outer ring protection channel label of the packet. The ring network node is based on the effective inner layer service label, that is, the second layer LSP label. If the outbound interface of the LSP label is the ring-out interface, the corresponding outgoing interface of the LSP label is the ring-network interface.
  • the ring network node pushes the ring working channel label in the corresponding direction for the packet and forwards it to the corresponding ring network interface in the opposite direction, that is, forwards the packet on the ring working channel.
  • the packet needs to be forwarded to the next ring network node in the direction of the clock, but the corresponding outbound interface in the clockwise direction is affected by the fault for protection switching, and the ring network node presses the counterclockwise working channel for the message. Label, and forward the message to the next ring node in a counterclockwise direction.
  • the node is If the node of the hop-and-hop ring network is faulty, the node needs to exchange the LSP label of the packet with the egress label of the packet that the next hop ring network forwards. Recognized by the network node.
  • the ring network protection method of the foregoing MPLS can be applied to a specific application scenario of a single ring or multiple rings. The difference is that in a specific application scenario of a multi-ring, it may be necessary to forward information synchronously.
  • a service such as an LSP
  • the forwarding information of the LSP is synchronized to another intersection point, and activated at another intersection
  • the processing may be performed by refreshing the forwarding entry in the forwarding table or refreshing other processing that affects service forwarding.
  • the intersecting node that the cross-ring LSP passes is the source node of the forwarding information, which is called the synchronized node, and the other intersection point is called synchronization.
  • the node and the synchronization node need to change the outgoing interface direction of the LSP to the interface facing the synchronized node.
  • the ring working channel is the corresponding ring working channel of the other ring
  • the ring protection channel is the corresponding ring protection channel of the other ring.
  • the LSP label of the first ring is switched to the LSP label of the second ring, and the forwarding table of the intersecting node that performs the cross-ring transmission is forwarded by the LSP label that needs to store the first ring to the LSP label of the second ring.
  • the forwarding information of the LSP label of the second ring needs to be stored, and the forwarding information is consistent with the forwarding information of the LSP label of the second ring exchanged with the LSP label of the second ring. For example, referring to FIG.
  • the LSP forwarding information needs to be synchronized from the node Iw to the node Ie, and the forwarding information of the LSP on the node Ie is:
  • the forwarding table of Iw stores the lookup LSP1, and LSP1 is switched to LSP2, and then forwarded to the clockwise working channel of the ring where D2 is located.
  • the protection channel is the ring where D2 is located. Counterclockwise protection channel: then you need to store, look up LSP2, Then, LSP2 is forwarded to the clockwise ring working channel of the ring where D2 is located, and the protection channel is the counterclockwise ring protection channel of the ring where D2 is located. If the service is cross-ring transmission through two intersecting nodes, and the cross-ring transmission is performed at the next intersecting node through which the service passes, the previous intersecting node through which the service passes is called a synchronization node, and the service is discovered during synchronization, such as LSP, synchronization information. If the forwarding entry of the LSP already exists, the corresponding synchronization information is not activated immediately.
  • the activation may be to refresh the forwarding entry in the forwarding table or refresh other processing that affects service forwarding.
  • the system needs to detect whether the information synchronization node is completely topologically isolated from the first ring of the service through the fault detection mechanism (which may be the 0AM/APS notification mechanism or other protocol mechanism) (probably due to multiple links) The interrupt or the information is invalidated by the synchronization node. If the topology is completely isolated, the synchronization node changes the working outbound interface forwarded by the LSP in the forwarding table to the interface facing the synchronized node, and the ring working channel is the corresponding ring working channel of the other ring. Upper, the ring protection channel is the corresponding ring protection channel of the other ring.
  • LSP label switching is configured, for example, the LSP label of the first ring is switched to the LSP label of the first ring, and the forwarding table of the intersecting node (the next intersecting node through which the service passes) in the cross-ring transmission needs to store the first
  • the LSP label of the ring is also required to store the forwarding information of the LSP label of the second ring, and the forwarding information is exchanged with the LSP label of the ring to the second ring.
  • the forwarding information of the LSP label is consistent.
  • the service is cross-ring transmission through two intersecting nodes, and the previous intersecting node through which the service passes is cross-looped, it is not necessary to synchronize the service information.
  • the LSP needs to implement label switching during the forwarding process, the previous intersecting node that the service passes through the same LSP to the next intersecting node, so that the service (such as LSP) intersects after the passing of the LSP.
  • the same label switching is performed on the node at the previous intersecting node, and the forwarding action and forwarding direction are the same as the forwarding action and forwarding direction of the corresponding service configured by the latter intersecting node.
  • LSP1 For example, if LSP1 is switched to LSP2 on the previous intersecting node, the next intersecting node through which the service passes needs to be configured with a forwarding entry, and LSP1 is exchanged to LSP2.
  • the LSP1 is switched to the forwarding action and forwarding direction of LSP2.
  • the forwarding action and forwarding direction of the LSP2 service configured by the latter intersecting node are the same.
  • FIG. 2 is a block diagram of a ring network protection device for MPLS according to another embodiment of the present invention.
  • the device includes a service incoming interface 202, a service outgoing interface 204, a ring interface 206, and a processing unit 208;
  • the service ringing interface 202 is configured to receive a packet that enters the ring network.
  • the service outgoing interface 204 is configured to send a packet leaving the ring network.
  • the ring network interface 206 is configured to receive or send a message between the ring network nodes.
  • the processing unit 208 is configured to forward, according to the configuration information corresponding to the valid service label of the packet, the packet received from the service-input interface 202, and the packet received from the ring network interface.
  • the ring working channel label is popped up, and the packet is forwarded on the working channel according to the corresponding configuration information of the valid inner layer service label of the packet.
  • the configuration information is forwarded by the configuration information.
  • the ring protection channel label is popped up, and the packet is forwarded according to the configuration information corresponding to the valid inner layer service label of the packet.
  • the processing unit 208 searches for the corresponding forwarding entry according to the LSP label of the packet, and the corresponding outgoing interface of the LSP label, for the packet received from the service-input interface 202 and the packet that is marked with the working channel label. If the outgoing interface is a service outgoing interface, the packet is forwarded to the corresponding service outgoing ring interface according to the LSP label.
  • the processing unit 208 If the outgoing interface of the LSP label is a ring network interface, and the outgoing interface of the packet is not protected, the processing unit 208 is The packet is pushed into the ring working channel label in the corresponding direction and forwarded to the corresponding ring network interface. For example, the packet needs to be forwarded to the next ring network node in a clockwise direction, and the processing unit 208 presses the packet into the packet.
  • the time zone ring working channel label is forwarded to the next ring network node in a clockwise direction; if the corresponding outbound interface of the LSP label is a ring network interface, and the packet outbound interface performs protection switching, the processing unit 208 is The packet is pushed into the ring protection channel label in the opposite direction and forwarded to the corresponding ring network interface in the reverse direction. For example, the packet needs to be forwarded clockwise to the next one.
  • the network node but detecting a link failure between the next ring network node in the clockwise direction, the processing unit 208 pushes the counterclockwise protection channel label for the message, and forwards the message to the counterclockwise direction.
  • the next ring node if the corresponding outbound interface of the LSP label is a ring network interface, and the packet outbound interface performs protection switching, the processing unit 208 is The packet is pushed into the ring protection channel label in the opposite direction and forwarded to the corresponding ring network interface in the reverse direction. For example, the packet
  • the packet is forwarded to the corresponding ring network interface of the ring protection channel label.
  • the processing unit 208 pops up the ring protection channel label of the outermost layer of the packet. The processing unit 208 searches for the corresponding forwarding entry according to the LSP label of the second layer.
  • the packet is forwarded according to the LSP label to the corresponding service outgoing ring interface:
  • the outgoing interface is a ring network interface, and the processing unit 208 pushes the ring working channel label in the corresponding direction for the packet, and forwards the label to the corresponding ring network interface.
  • the LSP needs to implement label switching and the outbound interface performs protection switching, you need to exchange the correct label according to the fault location on the specific ring network. For example, the next hop ring node of the node is faulty.
  • FIG. 3 is a block diagram of a ring network protection system for MPLS according to still another embodiment of the present invention.
  • 4 to 7 are schematic diagrams of the system in different networking modes.
  • the system includes an ingress node 302, a ring node 304, and a ring node 306;
  • the ringing node 302 is configured to receive the packet from the service inbound interface and forward the packet according to the configuration information of the valid service tag of the packet.
  • the ringing node 302 is a node that enters the ring network protection system, for example, the node in FIG. 4, the node D; the node A1 in the FIG. 5, the node D2; the node A1 in the FIG. 6, and the node C2.
  • the outermost label is the LSP label
  • the ingress ring node 302 searches for the corresponding forwarding entry according to the outermost LSP label. If the corresponding outbound interface of the LSP label is a ring network interface, and the ring is If the network interface is not protected, the ringing node 302 pushes the ring working channel label in the corresponding direction and forwards the label to the corresponding ring network interface.
  • the packet needs to be forwarded clockwise to the next ring.
  • the ingress ring node 302 pushes the clockwise ring working channel label for the packet, and forwards the packet to the next ring network node in a clockwise direction; if the corresponding outbound interface of the LSP label is a ring network interface, If the ring network interface is affected by the fault and performs protection switching, the ingress ring node 302 pushes the ring protection channel label in the opposite direction to the packet and forwards it to the corresponding ring network interface in the reverse direction.
  • the packet needs to be Forwarding to the next ring network node in a clockwise direction, but the corresponding ring network interface is affected by the fault for protection switching, the ringing node 302 pushes the counterclockwise ring protection channel mark for the message. And forwards the packet to the next node the ring counterclockwise.
  • the ring network node 304 is configured to receive the packet from the ringing node or other ring network node. When the outermost label of the packet is a valid ring working channel label, the ring working channel label is popped up. The packet is forwarded according to the configuration information of the valid inner service tag of the packet.
  • the ring network node 304 is a node that passes through when the packet is forwarded in the ring network protection system, for example, the node B, the node C, the node E, and the node F in FIG. 4; the node B1, the node C1, the node D1 in FIG.
  • the outermost label is the ring working channel label or the ring protection channel label.
  • the ring network node 304 pops up the packet. Layer ring working channel label.
  • the ring network node 304 searches for the corresponding forwarding entry according to the LSP label of the second layer. If the corresponding outgoing interface of the LSP label is a ring network interface, and the ring network interface does not perform protection switching, the ring network node 304 presses the packet.
  • the packet needs to be forwarded to the next ring network node in a clockwise direction, and the ring network node 304 pushes the clockwise clock into the message.
  • Ring the working channel label, and forward the packet to the next ring network node in a clockwise direction If the corresponding outgoing interface of the LSP label is a ring network interface, and the ring network interface is affected by the fault for protection switching, the ring network node The packet is forwarded to the corresponding ring protection channel label in the opposite direction, and the packet is forwarded to the next ring network node in a clockwise direction, but the corresponding ring is forwarded.
  • the ring network node 304 pushes the counterclockwise protection channel label for the packet, and forwards the packet to the next ring network node in a counterclockwise direction. If the ring interface of the ring protection channel label of the packet does not perform protection switching, the packet is forwarded to the corresponding ring network interface of the ring protection channel label. If the ring interface of the ring protection channel label of the packet is affected by the fault and the protection switchover occurs, the ring network node 304 pops up the ring protection channel label of the outermost layer of the packet. The ring network node 304 searches for the corresponding forwarding entry according to the LSP label of the second layer.
  • the ring network node 304 pushes the ring working channel label in the corresponding direction for the packet, and Forwarding to the corresponding ring network interface. For example, if the packet received by the ring network node 304 needs to be forwarded to the next ring network node in a clockwise direction, the ring network node 304 pushes the clockwise ring into the message. The channel label, and forwards the message to the next ring node in a clockwise direction.
  • the egress node 306 is configured to eject the ring working channel label or the ring protection channel label, and forward the packet to the corresponding service outgoing ring interface according to the LSP label of the packet.
  • the outgoing node 306 is a node whose message leaves the ring protection system, for example, node 4, node D in FIG. 4; node A1, node D2 in FIG. 5: node A1, node C2 in FIG.
  • the outgoing node 306 pops up the ring working channel label of the outermost layer of the packet, and searches for the corresponding forwarding entry according to the LSP label of the first layer, and forwards according to the LSP label.
  • the packet is sent to the corresponding service outgoing interface.
  • the packet is forwarded to the corresponding ring network interface of the ring protection channel label.
  • the looping node 306 pops up the ring working channel label of the outermost layer of the packet. The packet is forwarded according to the LSP label to the corresponding service outgoing ring interface.
  • the system may further include a second intersecting node, the second intersecting node is one of two intersecting nodes between the two ring networks, and the packet is sent on the second intersecting node.
  • the corresponding configuration information of the cross-ring LSP tag is synchronized with the corresponding configuration information of another intersecting node, that is, the first intersecting node.
  • node Ie in Fig. 6 is a second intersecting node. If the LSP needs to implement label switching during the forwarding process, and the corresponding outbound interface of the packet is affected by the fault and performs protection switching, you need to exchange the correct label according to the fault location on the specific ring network. For example, the node is If the next hop ring network node is faulty, the node needs to exchange the LSP label of the packet to the egress label of the packet that the next hop ring network node forwards, so that the LSP label of the label-switched packet can be next-hopped. Recognized by the ring network node. It can be understood by those skilled in the art that the above-mentioned ringing node 302, ring network node 304 and outgoing ring node 306 are only logical concepts. In different specific implementations, the same physical node can assume different roles.
  • the LSP between the node A and the node D is node A -> node B -> node C -> node D, and the corresponding LSP label is 1001, and no label switching is performed; D -> Node C -> Node B -> Node A, the corresponding LSP label is 1002, and no label switching is performed.
  • the clockwise working channel is 101
  • the clockwise ring protection channel is 102
  • the counterclockwise ring working channel is 103
  • the counterclockwise ring protection channel is 104.
  • the inbound label is the label of the packet; the action includes a pop-up label (pop), a push-in label (push), and a label swap (swap); the main label indicates an object that does not need to protect the action when switching, and the backup label indicates that protection switching is required.
  • the object of the action is as shown in Table 1. Since all ring channel labels are determined once, the outbound interface on the node is determined accordingly, so the outbound interface is no longer listed in the following table and all subsequent similar tables: 102 Swap (if out 102
  • node A is the entry node of the counterclockwise working channel, it is not necessary to configure the action of the counterclockwise working channel label.
  • node 0 in Figure 4 node A1 in Figure 5 and The node A1 in Fig. 6 does not need to be configured with the action of the clockwise working channel label; the node D2 in Fig. 5 and the node C2 in Fig. 6 need not be configured to operate the counterclockwise working channel label.
  • nodes E and F The configuration of nodes E and F is shown in Table 4:
  • the interface If the interface detects a fault, it will directly pass through the obstacle.
  • the corresponding LSP forwarding entry does not need to be configured.
  • the nodes B1, Cl, Dl, C2, and Figure in Figure 5 are used.
  • the forwarding entries of the corresponding LSPs need not be configured on the nodes B1 and CI of the 6th. According to the above configuration, the forwarding action of a service packet under normal conditions and abnormal conditions after entering the ring is as follows. Under normal circumstances:
  • the service packet with the LSP label of 1001 enters from the A node. After the node searches for the forwarding table, the A node pushes the label 103 and forwards the label to the corresponding interface.
  • the above message enters from the Node B, searches for the label 103, and moves to Pop, and continues to look up the label 1001. The action is to push the label 103 and forward it to the corresponding interface.
  • the above message enters from the C node, searches for the tag 103, and moves as the Pop, and continues to search for the tag 1001. The action is to push the tag 103 and forward it to the corresponding interface.
  • the packet enters from the D node, searches for the label 103, and moves to the label 1001.
  • the action is to exchange the LSP label to the user configuration value and forward it to the service outgoing interface.
  • the service packet with the LSP label of 1001 enters from the A node. After the node searches for the forwarding table, the A node pushes the label 103 and forwards the label to the corresponding interface.
  • the packet enters the Node B, searches for the label 103, and acts as the Pop. Then, the label 1001 is continuously searched, and the label is pushed into the label 103 and forwarded to the corresponding interface.
  • the packet enters the C node, searches for the label 103, and acts as the Pop. Then, the label 1001 is continuously searched, and the label is pushed into the label 102 and forwarded to the corresponding interface.
  • the packet enters the Node B and searches for the label 102.
  • the action is to exchange the outer label to 102 and forward the packet to the corresponding interface.
  • the packet enters the A node and searches for the label 102.
  • the action is to exchange the outer label to 102 and forward the packet to the corresponding interface.
  • the packet enters the F node and searches for the label 102.
  • the action is to exchange the outer label to 102 and forward the packet to the corresponding interface.
  • the packet enters the E-Node and looks up the label 102.
  • the action is to exchange the outer label to 102 and forward the packet to the corresponding interface.
  • the packet enters the D node, searches for the label 102, and acts as the Pop, and continues to search for the label 1001.
  • the action is to exchange the LSP label into the user configuration value and forward it to the service outgoing interface.
  • the tangent node of the two guard rings is basically the same as that of the ordinary ring network node. The difference is that the node is a ring network node of two rings at the same time, so it needs to be configured at the same time.
  • the action of the labels on the two rings For example, in the system shown in Figure 5, the two rings are tangent.
  • the LSP between node A1 and node D2 is node Al->node Fl->node X->node A2->node F2->node E2->node D2 and node D2->node E2->node F2- >Node A2->Node X -> Node Fl -> Node Al.
  • the configuration of each node is basically the same as that of the system shown in Figure 4. The only difference is that the ring labels of the two rings (ring 1 and ring 2) are the same, and the node X needs to be configured with labels on both rings at the same time. action. Therefore, it will not be repeated. Taking the system shown in FIG.
  • the node A1, the node B1, the node C1, the node Iw, and the node Ie can be regarded as the ring 1
  • the node E2, the node D2, the node C2, the node Iw, and the node Ie can be regarded as the ring 2
  • the two rings intersect and have two intersection nodes Iw and nodes Ie.
  • the LSP between the node A1 and the node C2 is the node A1>the node Iw->the node E2_>the node D2_>the node C2, and the corresponding LSP label is 1001, and no label switching is performed.
  • Ring 1 clockwise ring working channel is 101, clockwise ring protection channel is 102, counterclockwise ring working channel is 103, counterclockwise ring protection channel is 104; ring 2 clockwise ring working channel is 201, cis The hour hand direction ring protection channel is 202, the counterclockwise ring working channel is 203, and the counterclockwise ring protection channel is 204.
  • the inbound label is the label of the packet; the action includes the popup label (pop). Pushing the label (push), label switching (swap); the main label indicates the object that does not need to protect the switching action, and the standby label indicates that the protection needs to be switched. The object of the action.
  • the configuration of node A1 is shown in Table 5: 102 Swap (if out 102 (no reason)
  • the interface If the interface detects a fault, it will directly pass through the fault.
  • the interface If the interface detects a fault, it will directly pass through the fault.
  • Push is 1002, then push is 1002, then push the upper ring label 201 upper ring label 204
  • the interface If the interface detects a fault, it will directly pass through the fault.
  • the interface If the interface detects a fault, it will directly pass through the fault.
  • node C2 The configuration of node C2 is shown in Table 8: Incoming label Action Main label Alternate label
  • the interface If the interface detects a fault, it will directly pass through the fault.
  • Table 9 The configuration of node le is shown in Table 10: Incoming label Action Main label Alternate label
  • the interface If the interface detects a fault, it will directly pass through the fault.
  • the interface If the interface detects a fault, it will directly pass through the fault.
  • Push is 1002, then push is 1002, then push
  • the upper ring label 201 is the ring label 204.
  • Table 10 According to the above configuration, the forwarding action of a service packet under normal conditions and abnormal conditions after entering the ring is as follows. Under normal circumstances:
  • the service packet with the LSP label of 1001 enters from the A1 node. After the A1 node searches the forwarding table, it pushes the 101 label into the packet and forwards it to the corresponding interface.
  • the packet enters from the Iw node, searches for the label 101, and acts as the Pop. Then, the label 1001 is continuously searched, and the LSP label is exchanged as 1002, and then the ring label 201 is pushed.
  • the above packet enters from the A2 node, searches for the tag 201, moves as the Pop, continues to search for the tag 1002, and acts as the pinned 201 tag and forwards it to the corresponding interface.
  • the above packet enters from the B2 node, searches for the tag 201, moves as the Pop, continues to search for the tag 1002, and acts as the pinned 201 tag and forwards it to the corresponding interface.
  • the packet enters from the C2 node, searches for the label 201, and acts as the Pop, and continues to search for the label 1002.
  • the action is to exchange the LSP label into the user configuration value and forward it to the service outgoing interface. If the Iw node fails, the packet forwarding path is switched to:
  • the service with the LSP label of 1001 enters from the A1 node. After the forwarding table is found, it is found that the outbound interface corresponding to the working ring label 101 detects the fault, and then the 104 label is pushed and forwarded to the corresponding interface.
  • the above packet enters from the B1 node, searches for the tag 104, moves the outer tag as 104, and forwards the message to the corresponding interface.
  • the above packet enters from the C1 node, searches for the tag 104, moves the outer tag as 104, and forwards the message to the corresponding interface.
  • the packet enters from the Ie node, searches for the label 104, and moves as the Pop. Then, the label 1001 is continuously searched, and the LSP label is exchanged as 1002, and then the ring label 204 is pushed and forwarded to the corresponding interface.
  • the above packet enters from the C2 node, searches for the tag 204, and acts as the exchange outer tag 204 and forwards the message to the corresponding interface.
  • the packet enters from the B2 node, finds the label 204, and acts as the outer label of the switch 204 and forwards the message to the corresponding interface.
  • the above packet enters from the A2 node, searches for the tag 204, and acts as the Pop, and continues to search for the tag 1002, and acts as the pinned ring tag 201 and forwards it to the corresponding interface.
  • the packet enters from the B2 node, searches for the label 201, and acts as the exchange outer label 201 and forwards the packet to the corresponding interface.
  • the packet enters from the C2 node, searches for the label 201, and acts as the Pop, and continues to search for the label 1002.
  • the action is to exchange the LSP label into the user configuration value and forward it to the service outgoing interface.
  • the second intersecting node Ie is not in the working channel when there is no fault, since the second intersecting node Ie is responsible for forwarding the packets of the inter-ring cross-ring service when the first intersecting node Iw is faulty, it should be The cross-ring LSP information of the Iw on the intersecting node is also synchronized to the forwarding table of the second intersecting node Ie. If label switching of the LSP label is required, the second intersecting node Ie should be the same as the first intersecting node Iw. Label exchange.
  • the first intersecting node is the previous intersecting node through which the service passes, and the label switching of the LSP label is required.
  • the label exchange of the same LSP label as that on the first intersecting node needs to be configured on the second intersecting node.
  • the forwarding operation and forwarding direction of the label switching of the LSP label are the same as the forwarding operation and forwarding direction of the label switching of the LSP label configured by the latter intersecting node.
  • the service without faults passes through two intersecting nodes at the same time, and the cross-ring forwarding is implemented on the first intersecting node, and the first intersecting node is the latter intersecting node through which the service passes, the service of the cross-ring service on the first intersecting node is forwarded.
  • the information is synchronized to the second intersecting node, but the sync letter is not activated immediately.
  • the synchronization information is activated after the first intersecting node and the second intersecting node are completely topologically isolated on the first ring through which the service passes.
  • the protection ring 1 and the protection ring 2 have a connection between the node D1 and the node D2 and the node E1 and the node E2.
  • the node D1 can be Node D2, node E2 and node E1 are configured as guard ring 3, so that there is protection for the entire network link.
  • the processing of each node on the protection ring is unified, and the outermost label of the packet is used. If the ring is protected by the ring label and the packet is not connected to the protection switch, the packet is forwarded to the ring interface of the ring protection channel label to provide the same protection channel for the packets with different LSP labels.
  • the forwarding table of the ring protection node and the ring protection channel label corresponding to the two rings on the intersecting node or the tangent node of the ring can provide protection of the intersecting ring or the tangent ring, and solve the existing ring protection scheme of MPLS.
  • the configuration is complicated and the network resource overhead is large.
  • a person skilled in the art can understand that all or part of the steps of implementing the above embodiments may be completed by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, and the storage medium may be a ROM. /RAM, disk or CD, etc.

Abstract

The aim of the embodiment of the present invention is to provide a method, device and system for protecting a multi-protocol label switching (MPLS) ring network, in order to solve the problems of complex configuration and high network resource overhead in the existing MPLS ring protection solutions. The system includes ingress -ring nodes, nodes on the ring network and egress-ring nodes. With the technical solution provided by the embodiment of the present invention, when the top label of a packet is a ring protection tunnel label and the outgoing interface for the packet does not perform the protection switching, the packet is forwarded according to the configuration information of the ring protection tunnel label rather than the configuration information of a service label, the same protection tunnel is provided for the packets with different service labels, and the problems of complex configuration and high network resource overhead in the existing MPLS ring protection solutions are solved.

Description

多协议标签交换的环网保护方法、 装置和系统 木申请要求于 2009年 9月 29日提交中国专利局、 申请号为 200910110718. 5、 发 明名称为 "多协议标签交换的环保护方法、 装置和系统"和 2009年 11月 30日提交中 国专利局、 申请号为 200910252911. 2、 发明名称为 "多协议标签交换的环网保护方法、 装置和系统"的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。  Multi-protocol label switching ring network protection method, device and system wood application requirements were submitted to the Chinese Patent Office on September 29, 2009, application number 200910110718. 5, the invention name is "multi-protocol label switching ring protection method, device and The system is submitted to the Chinese Patent Office on November 30, 2009, and the application number is 200910252911. 2. The priority of the Chinese patent application entitled "Multi-Protocol Label Switching Ring Network Protection Method, Apparatus and System", its entire contents This is incorporated herein by reference.
技术领域 本发明涉及网络通信领域, 尤其涉及一种多协议标签交换的环网保护方法、 装置 和系统。 背景技术 多协议标签交换 (Multi-Protocol Label Switch, MPLS ) 技术是一种采用标签交 换技术实现分组业务快速交换传输的技术。 传统上 MPLS 网络采用快速重路由 (Fast ReRoute, FRR), 线性自动保护倒换 (automatic protection switching, APS ) 以及之 前存在的一些 MPLS环网技术实现业务的保护。 然而, 这些技术配置复杂, 网络资源开 销很大, 无法很好满足大规模传输网络的保护需求。 现有的 MPLS的环保护方案基于物理环拓扑,在标签交换路径(Label Switch Path, LSP)层进行业务上下和保护倒换。 该方案中要求对环上的每条工作 LSP相应配置一条 闭环的保护 LSP, 当工作 LSP所经过的链路或者节点产生故障时, 则将业务倒换到对应 的保护 LSP上。 发明人在研究过程中发现, 该方案配置复杂, 每条工作 LSP需要相应配置 ·条保 护 LSP, 保护通道和业务通道成 1: 1关系, 网络资源开销很大。没有体现传统环网保护 的共享带宽优势, 并且在相交环场景下无法有效进行保护倒换。 发明内容 本发明实施例的目的是提供 _种多协议标签交换的环网保护方法、 装置和系统, 用以解决现有的 MPLS的环保护方案配置复杂, 网络资源开销大的问题。 本发明实施例的目的是通过以下技术方案实现的: 一种多协议标签交换 MPLS的环网保护方法, 当报文出接口不进行保护倒换时, 包 括: 对于从业务入环接口接收到的报文, 根据所述报文的有效业务标签相应的配置信 息转发所述报文: 对于从环网接口接收到的报文, 当所述报文的最外层标签为有效的环工作通道标 签时, 弹出所述环工作通道标签, 根据所述报文的有效内层业务标签相应的配置信息在 环工作通道上转发所述报文; 对于从环网接口接收到的报文, 当所述报文的最外层标签为有效的环保护通道标 签时, 根据所述环保护通道标签相应的配置信息转发所述报文。 The present invention relates to the field of network communications, and in particular, to a ring network protection method, apparatus, and system for multi-protocol label switching. BACKGROUND Multi-Protocol Label Switch (MPLS) technology is a technology for implementing fast switching transmission of packet services by using label switching technology. Traditionally, MPLS networks use Fast Reroute (FRR), linear automatic protection switching (APS), and some existing MPLS ring technologies to protect services. However, these technologies are complicated in configuration, and the network resources are expensive, which cannot meet the protection requirements of large-scale transmission networks. The existing MPLS ring protection scheme is based on the physical ring topology and performs service up and down protection switching on the Label Switch Path (LSP) layer. In this solution, a closed-loop protection LSP is configured for each working LSP on the ring. When the link or node through which the working LSP passes is faulty, the service is switched to the corresponding protection LSP. During the research, the inventor found that the configuration of the solution is complex. Each working LSP needs to be configured and protected by LSPs. The protection channel and the service channel are in a 1:1 relationship, and the network resources are expensive. The shared bandwidth advantage of the traditional ring network protection is not reflected, and the protection switching cannot be effectively performed in the intersecting ring scenario. SUMMARY OF THE INVENTION An object of the embodiments of the present invention is to provide a ring network protection method, apparatus, and system for multi-protocol label switching. The problem that the existing MPLS ring protection scheme is complicated to configure and the network resource overhead is large. The purpose of the embodiment of the present invention is achieved by the following technical solutions: A method for protecting a ring network of a multi-protocol label switching MPLS, when the outgoing interface of the packet is not protected, the method includes: And forwarding the packet according to the configuration information corresponding to the valid service label of the packet: when the outer label of the packet is a valid ring working channel label, the packet received from the ring network interface is The ring working channel label is popped up, and the packet is forwarded on the ring working channel according to the corresponding configuration information of the valid inner layer service label of the packet; for the packet received from the ring network interface, when the packet is received When the outermost label of the label is a valid ring protection channel label, the packet is forwarded according to the corresponding configuration information of the ring protection channel label.
一种多协议标签交换 MPLS的环网保护装置, 包括业务入环接口、 业务出环接口、 环网接口和处理单元; 其中, 所述业务入环接口, 用于接收进入环网的报文: 所述业务出环接口, 用于发送离开环网的报文; 所述环网接口, 用于接收或发送环网节点之间的报文; 所述处理单元, 用于对于从业务入环接口接收到的报文, 根据所述报文的有效业 务标签相应的配置信息转发所述报文, 对于从环网接口接收到的报文, 当所述报文的最 外层标签为有效的环工作通道标签时, 弹出所述环工作通道标签, 根据所述报文的有效 内层业务标签相应的配置信息在环工作通道上转发所述报文,对于从环网接口接收到的 报文, 当所述报文的最外层标签为有效的环保护通道标签时, 当报文出接口不进行保护 倒换时, 根据所述环保护通道标签相应的配置信息转发所述报文, 当报文出接口进行保 护倒换时, 弹出所述环保护通道标签, 根据所述报文的有效内层业务标签相应的配置信 息转发所述报文。 一种多协议标签交换 MPLS的环网保护系统,包括入环节点、环网节点和出环节点; 其中, 所述入环节点, 用于接收来自业务入环接口的报文, 根据所述报文的有效业务标 签相应的配置信息转发所述报文; 所述环网节点, 用于接收来自所述入环节点或其他环网节点的报文, 当所述报文 的最外层标签为有效的环工作通道标签时, 弹出所述环工作通道标签, 根据所述报文的 有效内层业务标签相应的配置信息转发所述报文, 当所述报文的最外层标签为有效的环 保护通道标签时, 当报文出接口不进行保护倒换时, 则将所述报文转发到所述环保护通 道标签相应的环网接口, 当报文出接口进行保护倒换时, 弹出所述环保护通道标签, 根 据所述报文的有效内层业务标签相应的配置信息转发所述报文; 所述出环节点, 用于弹出所述环工作通道标签或环保护通道标签, 根据所述报文 的有效内层业务标签转发所述报文到相应的业务出环接口。 采用本发明实施例提供的技术方案, 当报文的最外层标签为环保护通道标签且报 文出接口不进行保护倒换时, 根据环保护通道标签而非业务标签的配置信息转发报文, 为具有不同业务标签的报文提供相同的保护通道, 解决了现有的 MPLS的环保护方案配 置复杂, 网络资源开销大的问题。 附图说明 为了更清楚地说明木发明实施例或现有技术中的技术方案,下面将对实施例或现有 技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的 ·些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 图 1为本发明一个实施例中 MPLS的环网保护方法流程图; 图 2为本发明另一个实施例中 MPLS的环网保护装置框图; 图 3为本发明又一个实施例中 MPLS的环网保护系统框图; 图 4为本发明又一个实施例中 MPLS的单环网保护系统示意图; 图 5为本发明又一个实施例中 MPLS的相切环网保护系统示意图; 图 6为本发明又一个实施例中 MPLS的相交环网保护系统示意图; 图 7为本发明又一个实施例中 MPLS的多环网保护系统示意图。 具体实施方式 本发明实施例中一个环网中, 逻辑上存在四条环状通道, 分别是顺时针方向环工 作通道、 顺时针方向环保护通道、逆吋针方向环工作通道和逆时针方向环保护通道, 报 文经由哪个通道, 则在报文最外层压入该通道相应的标签。顺时针方向工作通道的业务 由逆时针方向保护通道进行保护,逆时针方向工作通道的业务由顺时针方向保护通道进 行保护。 上述环状通道为逻辑链路, 其可承载于物理的两纤或四纤环。 环网保护的业务可以是 LSP或伪线 (Pseudo-Wire, PW), 如果被保护业务是 LSP, 则由隧道构成逻辑环状通道: 如果被保护业务是 PW, 则由 LSP构成逻辑环状通道。 用户需要为业务指定环上的源节点 、 业务工作通道走向、宿节点, 并据此可以得 出业务在工作通道上经过的中间节点。 用户需要为环状通道指定带宽信息, 四个环状通道保持一致。用户配置业务(LSP 或 PW) 时, 所有业务的带宽之和不能超过环状通道配置的带宽。 只有业务(LSP或 PW)正常工作情况下所经过的环节点才需要该业务的配置信息, 其它节点无需业务的配置信总。 业务的标签交换处理与现有标准的标签转发处理一致, 即对于转发表项中可识别的有效标签, 根据该标签的转发表项进行相应处理: 对于转发 表项中无法识别的标签, 丢弃相应报文。 外层的环状通道标签和内层的业务标签都可以根据网管或信令配置, 在环上各个 节点的处理中可以进行标签交换, 也可以不进行标签交换。如果内层的业务标签进行标 签交换, 则需要在该业务(LSP或 PW)经由的每个节点配置好该节点在业务(LSP或 PW) 上的所有下游标签信息, 以保证在保护倒换后能够根据具体的故障位置 (单点或多点) 交换正确的标签。 环网上的相邻节点间进行故障检测,可以利用现有互联网工程工作小组( Internet Engineering Task Force , IETF ) 定义的快速重路由机制中的方法实现 (如链路层协 议、 资源预留协议 (Resource Reservation Protocol, RSVP ) 的 hello机制等), 也可 以按照 ITU-T定义的操作管理维护 (Operation, administration and maintenance, 0AM) 故障检测方法实现。 环上每个节点具备全环拓扑信息, 节点通过环网保护倒换消 息中的源、宿节点信息获知链路或节点故障, 及具体故障位置。其中环网保护倒换通告 机制与现有同步数字体系 (Synchronous Digital Hierarchy, SDH) 复用段保护环中的 环 APS机制类似。保护倒换消息不限于数据平面的 OAM报文、 控制平面的协议报文, 及 其它报文类型。 此处不再赘述。 以下结合图 1说明本发明一个实施例, 该实施例中被保护业务以 LSP为例, 被保 护业务为 PW时, 具体处理方式相同: 图 1为本发明一个实施例中 MPLS的环网保护方法流程图。 该方法包括: A ring-network protection device for a multi-protocol label switching MPLS includes a service-input interface, a service-out interface, a ring network interface, and a processing unit. The service-input interface is configured to receive packets entering the ring network: The service outgoing loop interface is configured to send a packet leaving the ring network; the ring network interface is configured to receive or send a packet between the ring network nodes; and the processing unit is configured to The received packet is forwarded according to the configuration information of the valid service label of the packet. For the packet received from the ring network interface, the outer label of the packet is a valid ring. When the working channel label is used, the ring working channel label is popped up, and the packet is forwarded on the ring working channel according to the configuration information of the valid inner layer service label of the packet. For the packet received from the ring network interface, When the outermost label of the packet is a valid ring protection channel label, when the outbound interface of the packet does not perform protection switching, the packet is forwarded according to the corresponding configuration information of the ring protection channel label. Text, when the outbound interface protection switching, the pop-up ring protection tunnel label, to forward the packet according to the packet service label corresponding to the effective inner configuration information. A multi-protocol label switching MPLS ring network protection system includes an ingress ring node, a ring network node, and an egress ring node. The ringing node is configured to receive a packet from a service ingress ring interface, according to the report. Effective business target And signing the corresponding configuration information to forward the packet; the ring network node is configured to receive a packet from the ringing node or another ring network node, and when the outermost label of the packet is a valid ring, When the channel label is used, the ring working channel label is popped up, and the packet is forwarded according to the corresponding configuration information of the valid inner service label of the packet, and the outer label of the packet is a valid ring protection channel label. When the outbound interface of the packet is not protected, the packet is forwarded to the ring interface of the ring protection channel label. When the outbound interface performs protection switching, the ring protection channel label is popped up. And forwarding the packet according to the configuration information corresponding to the valid inner service label of the packet; the looping node is configured to pop the label of the working channel label or the ring protection channel, according to the validity of the packet The inner service tag forwards the packet to the corresponding service outgoing ring interface. According to the technical solution provided by the embodiment of the present invention, when the outermost label of the packet is a ring protection channel label and the outgoing interface of the packet is not protected, the packet is forwarded according to the configuration information of the ring protection channel label instead of the service label. The same protection channel is provided for packets with different service labels, which solves the problem of complicated configuration of the existing MPLS ring protection scheme and large network resource overhead. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate a wood invention embodiment or a prior art solution, the drawings used in the embodiments or the prior art description will be briefly described below, and obviously, in the following description The drawings are only some of the embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor. 1 is a flowchart of a method for protecting a ring network of an MPLS according to an embodiment of the present invention; FIG. 2 is a block diagram of a ring network protection device for an MPLS according to another embodiment of the present invention; FIG. 3 is a ring network of an MPLS according to another embodiment of the present invention; FIG. 4 is a schematic diagram of a MPLS single-loop network protection system according to still another embodiment of the present invention; FIG. 5 is a schematic diagram of a MPLS tangential ring network protection system according to still another embodiment of the present invention; FIG. 7 is a schematic diagram of a MPLS multi-ring network protection system according to still another embodiment of the present invention. In a ring network of the embodiment of the present invention, there are four annular channels logically, which are a clockwise direction ring working channel, a clockwise direction ring protection channel, a reverse needle direction ring working channel, and a counterclockwise ring protection. Channel, the channel through which the message passes, is layered into the corresponding label of the channel at the outermost part of the message. The business of the clockwise working channel is protected by a counterclockwise protection channel, and the counterclockwise working channel is protected by a clockwise protection channel. The above ring channel is a logical link, which can be carried on a physical two-fiber or four-fiber ring. The ring network protection service can be an LSP or a Pseudo-Wire (PW). If the protected service is an LSP, the tunnel forms a logical ring channel: If the protected service is a PW, the LSP constitutes a logical ring channel. . The user needs to specify the source node, the service working channel, and the sink node on the ring for the service, and according to this, the intermediate node that the service passes on the working channel can be obtained. The user needs to specify the bandwidth information for the ring channel, and the four ring channels are consistent. When a user configures a service (LSP or PW), the sum of the bandwidths of all services cannot exceed the bandwidth configured by the ring channel. Only the ring nodes passing through the service (LSP or PW) need the configuration information of the service, and the other nodes do not need the configuration information of the service. The label switching process of the service is consistent with the label forwarding process of the existing standard. That is, the valid label that is identifiable in the forwarding entry is processed according to the forwarding entry of the label: For the label that is not recognized in the forwarding entry, the corresponding label is discarded. Message. The ring channel label of the outer layer and the service label of the inner layer can be configured according to the network management or signaling, and label switching can be performed in the processing of each node on the ring, or label switching can be performed. If the service label of the inner layer is label-switched, all the downstream label information of the node on the service (LSP or PW) needs to be configured on each node of the service (LSP or PW) to ensure that after the protection switching Exchange the correct label based on the specific fault location (single or multipoint). Fault detection between adjacent nodes on the ring network can be implemented by using the methods in the fast rerouting mechanism defined by the existing Internet Engineering Task Force (IETF) (such as link layer protocol and resource reservation protocol (Resource). The Hello protocol of the Reservation Protocol (RSVP), etc., can also be implemented according to the Operation, administration and maintenance (0AM) fault detection method defined by ITU-T. Each node on the ring has full-ring topology information. The node learns the link or node failure and the specific fault location through the source and sink node information in the ring protection switching message. The ring network protection switching notification mechanism and the existing Synchronous Digital Hierarchy (SDH) multiplex section protection ring The ring APS mechanism is similar. The protection switching message is not limited to the OAM packet of the data plane, the protocol packet of the control plane, and other packet types. I will not repeat them here. An embodiment of the present invention is described below with reference to FIG. 1. In this embodiment, the LSP is taken as an example, and the protected service is a PW. The specific processing manner is the same: FIG. 1 is a MPLS ring network protection method according to an embodiment of the present invention. flow chart. The method includes:
102、接收报文,确定接收报文的接口并根据接收报文的接口选择报文的处理方式, 对于从业务入环接口接收到的报文,执行 104,对于从环网接口接收到的报文,执行 106。 102. Receive a packet, determine an interface for receiving the packet, and select a packet processing manner according to the interface that receives the packet. For the packet received from the service ringing interface, execute 104, and receive the packet received from the ring network interface. Text, execute 106.
104、对于从业务入环接口接收到的报文, 根据报文的有效业务标签相应的配置信 息转发报文。 如果报文来自业务入环接口, 此时报文的最外层标签为 LSP标签。 若该 LSP标签 有效, 节点根据该报文最外层的 LSP标签査找相应的转发表项, 若 LSP标签相应的出接 口为环网接口,且报文出接口不进行保护倒换,则为该报文压入相应的环工作通道标签, 并转发到相应的环网接口, 例如, 该报文需要按顺时针方向转发给下一个环 节点, 则 该接收报文的节点为该报文压入顺时针环工作通道标签,并将该报文按顺时针方向转发 给下一个环网节点;若 LSP标签相应的出接口为环网接口,且报文出接口进行保护倒换, 则为该报文压入相应反方向的环保护通道标签, 并转发到反方向的相应的环网接口, 例 如, 该报文需要按顺时针方向转发给下一个环网节点, 但是顺时针方向相应的出接口受 故障影响报文出接口进行保护倒换, 则该节点为该报文压入逆时针环保护通道标签, 并 将该报文按逆时针方向在逆时针环保护通道上转发给下一个环网节点。 如果在转发过程中 LSP需要实现标签交换, 且报文在转发表项中对应的出接口受 故障影响进行保护倒换, 则需要根据具体的环网上的故障位置交换正确的标签, 例如, 该节点的下一跳环网节点故障,该节点需要将报文的 LSP标签交换为下一跳环网节点转 发报文时的出口标签,使进行标签交换后的报文的 LSP标签能够被下下一跳环网节点所 识别。 106、 对于从环网接口收到的报文, 根据报文的最外层标签选择报文的处理方式, 当报文的最外层标签为有效的环工作通道标签时, 执行 108, 当报文的最外层标签为有 效的环保护通道标签时, 执行 110。 如果报文来自环网接 Π, 此时报文的最外层标签为环工作通道标签或环保护通道 标签。 环网节点根据报文的最外层标签选择报文的处理方式。 104. Forwarding the packet according to the configuration information of the valid service label of the packet. If the packet is from the service-inbound interface, the outermost label of the packet is the LSP label. If the LSP label is valid, the node searches for the corresponding forwarding entry according to the LSP label of the outermost layer of the packet. If the outbound interface of the LSP label is a ring network interface, and the outgoing interface of the packet is not protected, the report is The packet is forwarded to the corresponding ring working channel label and forwarded to the corresponding ring network interface. For example, the packet needs to be forwarded to the next ring node in a clockwise direction, and the node receiving the packet presses the packet into the packet. The clock ring working channel label is forwarded to the next ring network node in a clockwise direction. If the corresponding outbound interface of the LSP label is a ring network interface, and the outgoing interface of the packet performs protection switching, the packet is pressed. Enter the ring protection channel label in the opposite direction and forward it to the corresponding ring network interface in the reverse direction. For example, the packet needs to be forwarded clockwise to the next ring network node, but the corresponding outbound interface in the clockwise direction is faulty. If the outbound interface of the packet is protected and switched, the node pushes the counterclockwise protection channel label for the packet and forwards the packet counterclockwise on the counterclockwise protection channel. Give the next ring node. If the LSP needs to implement label switching during the forwarding process, and the corresponding outbound interface of the packet is affected by the fault and performs protection switching, you need to exchange the correct label according to the fault location on the specific ring network. For example, the node is If the next hop ring network node is faulty, the node needs to exchange the LSP label of the packet to the egress label of the next hop ring network node to forward the packet, so that the LSP label of the label-switched packet can be hopped by the next hop. Recognized by the ring network node. 106. For the packet received from the ring network interface, select the packet processing mode according to the outermost label of the packet. When the outermost label of the packet is a valid ring working channel label, execute 108, and report the packet. When the outermost label of the text is a valid ring protection channel label, perform 110. If the packet is from the ring network, the outermost label of the packet is the ring working channel label or the ring protection channel. Label. The ring network node selects the packet processing mode based on the outermost label of the packet.
108、 当报文的最外层标签为有效的环工作通道标签时, 弹出环工作通道标签, 根 据报文的有效内层业务标签相应的配置信息转发报文。 当报文的最外层标签为有效的环工作通道标签时, 环网节点弹出报文最外层的环 工作通道标签。环网节点根据有效内层业务标签即笫二层的 LSP标签查找相应的转发表 项, 若 LSP标签相应的出接口为业务出环接口, 则根据该 LSP标签转发报文到相应的业 务出环接口; 若 LSP标签相应的接口为环网接口, 且报文出接口不进行保护倒换, 则环 网节点为该报文压入相应方向的环工作通道标签, 并转发到相应的环网接口, 即在环工 作通道上转发所述报文, 例如, 该报文需要按顺时针方向转发给下一个环网节点, 则环 网节点为该报文压入顺时针环工作通道标签,并将该报文按顺时针方向转发给下一个环 网节点: 若 LSP标签相应的出接口为环网接口, 且报文出接口进行保护倒换, 则环网节 点为该报文压入相应反方向的环保护通道标签, 并转发到反方向的相应的环网接口, 即 在环保护通道上转发所述报文,例如,该报文需要按顺时针方向转发给下一个环网节点, 但是顺时针方向相应的出接口受故障影响进行保护倒换,则环网节点为该报文压入逆时 针环保护通道标签, 并将该报文按逆吋针方向转发给下一个环网节点。 如果在转发过程中 LSP需要实现标签交换, 且报文在转发表项中对应的出接口受 故障影响进行保护倒换, 则需要根据具体的环网上的故障位置交换正确的标签, 例如, 该节点的下一跳环网节点故障,该节点需要将报文的 LSP标签交换为下一跳环网节点转 发报文时的出口标签,使进行标签交换后的报文的 LSP标签能够被下下一跳环网节点所 识别。 108. When the outermost label of the packet is a valid ring working channel label, the ring working channel label is ejected, and the packet is forwarded according to the corresponding configuration information of the valid inner service label of the packet. When the outermost label of the packet is a valid ring working channel label, the ring node pops up the outer ring working channel label of the packet. The ring network node searches for the corresponding forwarding entry according to the effective inner layer service label, that is, the LSP label of the second layer. If the corresponding outgoing interface of the LSP label is the service outgoing interface, the packet is forwarded according to the LSP label to the corresponding service outgoing ring. If the corresponding interface of the LSP label is a ring network interface, and the outbound interface of the packet is not protected, the ring network node pushes the label of the ring working channel in the corresponding direction and forwards it to the corresponding ring network interface. That is, the packet is forwarded on the ring working channel, for example, the packet needs to be forwarded to the next ring network node in a clockwise direction, and the ring network node presses the clockwise ring working channel label for the packet, and the The packet is forwarded to the next ring network node in a clockwise direction. If the outbound interface of the LSP label is the ring network interface and the outgoing interface of the packet is protected, the ring network node pushes the corresponding ring in the opposite direction. The channel label is protected and forwarded to the corresponding ring network interface in the opposite direction, that is, the packet is forwarded on the ring protection channel. For example, the packet needs to be forwarded clockwise to the next. A ring network node, but the corresponding outbound interface in the clockwise direction is affected by the fault for protection switching. The ring network node presses the counterclockwise ring protection channel label for the packet, and forwards the packet to the lower direction. A ring network node. If the LSP needs to implement label switching during the forwarding process, and the corresponding outbound interface of the packet is affected by the fault and performs protection switching, you need to exchange the correct label according to the fault location on the specific ring network. For example, the node is If the next hop ring network node is faulty, the node needs to exchange the LSP label of the packet to the egress label of the next hop ring network node to forward the packet, so that the LSP label of the label-switched packet can be hopped by the next hop. Recognized by the ring network node.
110、判断是否需要触发保护倒换。 当报文的最外层标签为有效的环保护通道标签 时, 根据报文出接口是否进行保护倒换选择报文的处理方式, 若报文出接口不进行保护 倒换, 执行 112, 若报文出接口进行保护倒换, 执行 114。 110. Determine whether it is necessary to trigger protection switching. If the outer label of the packet is a valid ring protection channel label, the packet is processed according to whether the outbound interface of the packet performs protection switching. If the packet is not protected, the packet is executed. The interface performs protection switching and executes 114.
112、若报文出接口不进行保护倒换, 则将报文转发到环保护通道标签相应的出环 网接口, 即在环保护通道上转发报文。  If the outgoing interface of the packet is not protected, the packet is forwarded to the ring-out interface of the ring protection channel label, that is, the packet is forwarded on the ring protection channel.
114、 若报文出接口进行保护倒换, 弹出环保护通道标签, 根据报文的有效内层业 务标签相应的配置信息转发报文。 若报文的环保护通道标签相应的出环网接口受故障影响进行保护倒换, 环网节点 弹出报文最外层的环保护通道标签。环网节点根据有效内层业务标签即第二层的 LSP标 签査找相应的转发表项, 若 LSP标签相应的出接口为业务出环接口, 则根据该 LSP标签 转发报文到相应的业务出环接口; 若 LSP标签相应的出接口为环网接口, 则环网节点为 该报文压入相应方向的环工作通道标签, 并转发到反方向相应的环网接口, 即在环工作 通道上转发报文。例如, 该报文需要按顺吋针方向转发给下 ·个环网节点, 但是顺时针 方向相应的出接口受故障影响进行保护倒换,则环网节点为该报文压入逆时针环工作通 道标签, 并将该报文按逆时针方向转发给下一个环网节点。 如果在转发过程中 LSP需要实现标签交换, 且报文在转发表项中对应的出接口受 故障影响进行保护倒换, 则需要根据具体的环网上的故障位置交换正确的标签, 例如, 该节点的下 -跳环网节点故障,该节点需要将报文的 LSP标签交换为下 跳环网节点转 发报文时的出口标签,使进行标签交换后的报文的 LSP标签能够被下下一跳环网节点所 识别。 本领域普通技术人员可以理解,上述 MPLS的环网保护方法可以应用于单环或多环 的具体应用场景中。 不同之处在于多环的具体应用场景中, 可能需要同步转发信息。 举例来说, 如果业务, 例如 LSP, 通过两个相交环的某一相交节点进行跨环传输, 则将该 LSP的转发信息同步到另一相交点, 并在另一相交点上激活, 该激活可以是刷新 转发表中的转发表项或刷新其它相应影响业务转发的处理,该跨环 LSP经过的相交节点 是该转发信息的来源节点, 称为被同步节点, 另一相交点则称为同步节点, 同步节点需 要将该 LSP转发的出接口方向改为朝向被同步节点的接口,环工作通道为另一个环的相 应环工作通道, 环保护通道为另一环的相应环保护通道。 如果配置了 LSP标签交换, 则 在进行跨环传输的相交节点的转发表, 配置一个业务正常跨环后的标签的转发表项, 所 述转发表项的转发动作和转发方向与业务跨环后该节点原有的转发动作及转发方向相 同。例如第一个环的 LSP标签交换到第二个环的 LSP标签, 进行跨环传输的相交节点的 转发表中除了需要存储第一个环的 LSP标签交换到第二个环的 LSP标签的转发信息外, 还需要存储第二个环的 LSP标签的转发信息,该转发信息与第 ·个环的 LSP标签交换到 第二个环的 LSP标签的转发信息一致。 例如, 参见图 6, 如果 LSP从节点 A1到 D2, 经 过节点 Iw而不经过节点 Ie, 该 LSP转发信息需要从节点 Iw同步到节点 Ie, 则节点 Ie 上该 LSP的转发信息为: 工作通道为 D2所在环的顺时针环工作通道, 保护通道为 D2所 在环的逆时针环保护通道。 如果 Iw配置了 LSP标签交换, 例如 LSP1交换到 LSP2 , Iw 的转发表中存储了査找 LSP1 , 并将 LSP1交换到 LSP2, 然后往 D2所在环的顺时针环工 作通道转发, 保护通道为 D2所在环的逆时针环保护通道: 则还需要存储, 査找 LSP2, 然后将 LSP2往 D2所在环的顺时针环工作通道转发, 保护通道为 D2所在环的逆时针环 保护通道。 如果业务通过两个相交节点进行跨环传输, 并且在业务经过的后一个相交节点进 行跨环传输, 则业务经过的前一个相交节点称为同步节点, 同步时发现该业务, 如 LSP, 同步信总在同步节点上已经存在, 即已存在该 LSP的转发表项, 则不立即激活相应同步 信息, 该激活可以是刷新转发表中的转发表项或刷新其它相应影响业务转发的处理。系 统需要通过故障检测机制(可以是 0AM/APS通告机制, 或其它协议机制)检测信息被同 步节点是否与本节点在业务经过的第一个环上已经完全拓扑隔离(可能是由于链路多处 中断或者信息被同步节点失效),如果已经完全拓扑隔离,则同步节点将转发表中该 LSP 转发的工作出接口改为朝向被同步节点的接口,环工作通道为另一个环的相应环工作通 道上, 环保护通道为另一环的相应环保护通道。 如果配置了 LSP标签交换, 例如第一个 环的 LSP标签交换到第—个环的 LSP标签, 进行跨环传输的相交节点(业务经过的后一 个相交节点)的转发表中除了需要存储第一个环的 LSP标签交换到第二个环的 LSP标签 的转发信息外, 还需要存储第二个环的 LSP标签的转发信息, 该转发信息与第 ·个环的 LSP标签交换到第二个环的 LSP标签的转发信息一致。 如果业务通过两个相交节点进行跨环传输, 并且在业务经过的前一个相交节点进 行跨环, 则无需同步该业务信息。 如果在转发过程中 LSP需要实现标签交换, 则业务经 过的前一个相交节点将该 LSP的转发信息同歩到业务经过的后一个相交节点,使得业务 (例如 LSP ),在其经过的后 个相交节点上进行和业务经过的前 个相交节点上相同的 标签交换,转发动作和转发方向与业务经过的后一个相交节点配置的相应业务的转发动 作及转发方向相同。 例如在业务经过的前一个相交节点上配置了 LSP1交换到 LSP2, 则 业务经过的后一个相交节点需要配置一个转发表项,将 LSP1交换为 LSP2 ,该 LSP1交换 为 LSP2的转发动作和转发方向与业务经过的后一个相交节点配置的 LSP2业务的转发动 作及转发方向相同。 114. If the outbound interface of the packet performs the protection switching, the ring protection channel label is ejected, and the packet is forwarded according to the configuration information corresponding to the valid inner service label of the packet. If the ring-out interface of the ring protection channel label of the packet is affected by the fault and the protection switchover occurs, the ring network node pops up the outer ring protection channel label of the packet. The ring network node is based on the effective inner layer service label, that is, the second layer LSP label. If the outbound interface of the LSP label is the ring-out interface, the corresponding outgoing interface of the LSP label is the ring-network interface. The ring network node pushes the ring working channel label in the corresponding direction for the packet and forwards it to the corresponding ring network interface in the opposite direction, that is, forwards the packet on the ring working channel. For example, the packet needs to be forwarded to the next ring network node in the direction of the clock, but the corresponding outbound interface in the clockwise direction is affected by the fault for protection switching, and the ring network node presses the counterclockwise working channel for the message. Label, and forward the message to the next ring node in a counterclockwise direction. If the LSP needs to implement label switching during the forwarding process, and the corresponding outbound interface of the packet is affected by the fault and performs protection switching, you need to exchange the correct label according to the fault location on the specific ring network. For example, the node is If the node of the hop-and-hop ring network is faulty, the node needs to exchange the LSP label of the packet with the egress label of the packet that the next hop ring network forwards. Recognized by the network node. A person skilled in the art can understand that the ring network protection method of the foregoing MPLS can be applied to a specific application scenario of a single ring or multiple rings. The difference is that in a specific application scenario of a multi-ring, it may be necessary to forward information synchronously. For example, if a service, such as an LSP, performs cross-ring transmission through an intersecting node of two intersecting rings, the forwarding information of the LSP is synchronized to another intersection point, and activated at another intersection, the activation The processing may be performed by refreshing the forwarding entry in the forwarding table or refreshing other processing that affects service forwarding. The intersecting node that the cross-ring LSP passes is the source node of the forwarding information, which is called the synchronized node, and the other intersection point is called synchronization. The node and the synchronization node need to change the outgoing interface direction of the LSP to the interface facing the synchronized node. The ring working channel is the corresponding ring working channel of the other ring, and the ring protection channel is the corresponding ring protection channel of the other ring. If the LSP label switching is configured, the forwarding table of the intersecting node that performs the cross-ring transmission is configured to configure the forwarding entry of the label after the service is normally circulated. The forwarding action and the forwarding direction of the forwarding entry are after the service cross-loop. The original forwarding action and forwarding direction of the node are the same. For example, the LSP label of the first ring is switched to the LSP label of the second ring, and the forwarding table of the intersecting node that performs the cross-ring transmission is forwarded by the LSP label that needs to store the first ring to the LSP label of the second ring. In addition to the information, the forwarding information of the LSP label of the second ring needs to be stored, and the forwarding information is consistent with the forwarding information of the LSP label of the second ring exchanged with the LSP label of the second ring. For example, referring to FIG. 6, if the LSP is from the node A1 to the D2, and the node Iw does not pass through the node Ie, the LSP forwarding information needs to be synchronized from the node Iw to the node Ie, and the forwarding information of the LSP on the node Ie is: The clockwise ring working channel of the ring where D2 is located, and the protection channel is the counterclockwise ring protection channel of the ring where D2 is located. If Iw is configured with LSP label switching, for example, LSP1 is switched to LSP2, the forwarding table of Iw stores the lookup LSP1, and LSP1 is switched to LSP2, and then forwarded to the clockwise working channel of the ring where D2 is located. The protection channel is the ring where D2 is located. Counterclockwise protection channel: then you need to store, look up LSP2, Then, LSP2 is forwarded to the clockwise ring working channel of the ring where D2 is located, and the protection channel is the counterclockwise ring protection channel of the ring where D2 is located. If the service is cross-ring transmission through two intersecting nodes, and the cross-ring transmission is performed at the next intersecting node through which the service passes, the previous intersecting node through which the service passes is called a synchronization node, and the service is discovered during synchronization, such as LSP, synchronization information. If the forwarding entry of the LSP already exists, the corresponding synchronization information is not activated immediately. The activation may be to refresh the forwarding entry in the forwarding table or refresh other processing that affects service forwarding. The system needs to detect whether the information synchronization node is completely topologically isolated from the first ring of the service through the fault detection mechanism (which may be the 0AM/APS notification mechanism or other protocol mechanism) (probably due to multiple links) The interrupt or the information is invalidated by the synchronization node. If the topology is completely isolated, the synchronization node changes the working outbound interface forwarded by the LSP in the forwarding table to the interface facing the synchronized node, and the ring working channel is the corresponding ring working channel of the other ring. Upper, the ring protection channel is the corresponding ring protection channel of the other ring. If LSP label switching is configured, for example, the LSP label of the first ring is switched to the LSP label of the first ring, and the forwarding table of the intersecting node (the next intersecting node through which the service passes) in the cross-ring transmission needs to store the first In addition to the forwarding information of the LSP label of the second ring, the LSP label of the ring is also required to store the forwarding information of the LSP label of the second ring, and the forwarding information is exchanged with the LSP label of the ring to the second ring. The forwarding information of the LSP label is consistent. If the service is cross-ring transmission through two intersecting nodes, and the previous intersecting node through which the service passes is cross-looped, it is not necessary to synchronize the service information. If the LSP needs to implement label switching during the forwarding process, the previous intersecting node that the service passes through the same LSP to the next intersecting node, so that the service (such as LSP) intersects after the passing of the LSP. The same label switching is performed on the node at the previous intersecting node, and the forwarding action and forwarding direction are the same as the forwarding action and forwarding direction of the corresponding service configured by the latter intersecting node. For example, if LSP1 is switched to LSP2 on the previous intersecting node, the next intersecting node through which the service passes needs to be configured with a forwarding entry, and LSP1 is exchanged to LSP2. The LSP1 is switched to the forwarding action and forwarding direction of LSP2. The forwarding action and forwarding direction of the LSP2 service configured by the latter intersecting node are the same.
以下结合图 2说明本发明另一个实施例, 该实施例中被保护业务以 LSP为例, 被 保护业务为 PW时, 具体处理方式相同。 图 2为本发明另一个实施例中 MPLS的环网保护装置框图。该装置包括业务入环接 口 202、 业务出环接口 204、 环网接口 206和处理单元 208; 其中, 业务入环接口 202, 用于接收进入环网的报文。 业务出环接口 204, 用于发送离开环网的报文。 环网接口 206, 用于接收或发送环网节点之间的报文。 处理单元 208,用于对于从业务入环接口 202接收到的报文,根据所述报文的有效 业务标签相应的配置信息转发所述报文, 对于从环网接口接收到的报文, 当所述报文的 最外层标签为有效的环工作通道标签时, 弹出所述环工作通道标签, 根据所述报文的有 效内层业务标签相应的配置信息在工作通道上转发所述报文,对于从环网接口接收到的 报文, 当所述报文的最外层标签为有效的环保护通道标签时, 当报文出接口不进行保护 倒换时, 根据所述环保护通道标签相应的配置信息转发所述报文, 当报文出接 U进行保 护倒换吋, 弹出所述环保护通道标签, 根据所述报文的有效内层业务标签相应的配置信 息转发所述报文。 用于对于从业务入环接口 202接收到的报文, 以及弹出环工作通道标签后的报文, 处理单元 208根据该报文的 LSP标签查找相应的转发表项,若 LSP标签相应的出接口为 业务出环接口, 则根据该 LSP标签转发报文到相应的业务出环接口; 若 LSP标签相应的 出接口为环网接口, 且报文出接口不进行保护倒换, 则处理单元 208为该报文压入相应 方向的环工作通道标签, 并转发到相应的环网接口, 例如, 该报文需要按顺时针方向转 发给下一个环网节点, 则处理单元 208为该报文压入顺时针环工作通道标签, 并将该报 文按顺时针方向转发给下一个环网节点; 若 LSP标签相应的出接口为环网接口, 且报文 出接口进行保护倒换, 则处理单元 208为该报文压入相应反方向的环保护通道标签, 并 转发到反方向的相应的环网接口, 例如, 该报文需要按顺时针方向转发给下一个环网节 点, 但是检测到与顺时针方向的下一个环网节点间的链路故障, 则处理单元 208为该报 文压入逆时针环保护通道标签, 并将该报文按逆时针方向转发给下一个环网节点。 当报文的最外层标签为环保护通道标签时, 若报文出接口不进行保护倒换, 则将 报文转发到环保护通道标签相应的环网接口。 当报文的最外层标签为环保护通道标签时, 若报文出接口进行保护倒换, 处理单 元 208弹出报文最外层的环保护通道标签。处理单元 208根据第二层的 LSP标签査找相 应的转发表项, 若 LSP标签相应的出接口为业务出环接口, 则根据该 LSP标签转发报文 到相应的业务出环接口: 若 LSP标签相应的出接口为环网接口, 则处理单元 208为该报 文压入相应方向的环工作通道标签, 并转发到相应的环网接口。 如果在转发过程中 LSP需要实现标签交换, 且报文出接口进行保护倒换, 则需要 根据具体的环网上的故障位置交换正确的标签, 例如, 该节点的下一跳环网节点故障, 该节点需要将报文的 LSP标签交换为下一跳环网节点转发报文时的出口标签,使进行标 签交换后的报文的 LSP标签能够被下下 ·跳环网节点所识别。 以下结合图 3至图 7说明本发明又一个实施例, 该实施例中被保护业务以 LSP为 例, 被保护业务为 PW时, 具体处理方式相同。 图 3为本发明又一个实施例中 MPLS的环网保护系统框图。图 4至图 7为不同组网 方式下该系统的示意图。 该系统包括, 入环节点 302、 环网节点 304和出环节点 306 ; 其中, Another embodiment of the present invention is described below with reference to FIG. 2. In this embodiment, when the LSP is used as an example, and the protected service is a PW, the specific processing manner is the same. 2 is a block diagram of a ring network protection device for MPLS according to another embodiment of the present invention. The device includes a service incoming interface 202, a service outgoing interface 204, a ring interface 206, and a processing unit 208; The service ringing interface 202 is configured to receive a packet that enters the ring network. The service outgoing interface 204 is configured to send a packet leaving the ring network. The ring network interface 206 is configured to receive or send a message between the ring network nodes. The processing unit 208 is configured to forward, according to the configuration information corresponding to the valid service label of the packet, the packet received from the service-input interface 202, and the packet received from the ring network interface. When the outermost label of the packet is a valid ring working channel label, the ring working channel label is popped up, and the packet is forwarded on the working channel according to the corresponding configuration information of the valid inner layer service label of the packet. For the packet received from the ring network interface, when the outermost label of the packet is a valid ring protection channel label, when the outgoing interface of the packet is not protected, the label according to the ring protection channel is corresponding. The configuration information is forwarded by the configuration information. When the packet is sent out to the U for protection switching, the ring protection channel label is popped up, and the packet is forwarded according to the configuration information corresponding to the valid inner layer service label of the packet. The processing unit 208 searches for the corresponding forwarding entry according to the LSP label of the packet, and the corresponding outgoing interface of the LSP label, for the packet received from the service-input interface 202 and the packet that is marked with the working channel label. If the outgoing interface is a service outgoing interface, the packet is forwarded to the corresponding service outgoing ring interface according to the LSP label. If the outgoing interface of the LSP label is a ring network interface, and the outgoing interface of the packet is not protected, the processing unit 208 is The packet is pushed into the ring working channel label in the corresponding direction and forwarded to the corresponding ring network interface. For example, the packet needs to be forwarded to the next ring network node in a clockwise direction, and the processing unit 208 presses the packet into the packet. The time zone ring working channel label is forwarded to the next ring network node in a clockwise direction; if the corresponding outbound interface of the LSP label is a ring network interface, and the packet outbound interface performs protection switching, the processing unit 208 is The packet is pushed into the ring protection channel label in the opposite direction and forwarded to the corresponding ring network interface in the reverse direction. For example, the packet needs to be forwarded clockwise to the next one. The network node, but detecting a link failure between the next ring network node in the clockwise direction, the processing unit 208 pushes the counterclockwise protection channel label for the message, and forwards the message to the counterclockwise direction. The next ring node. If the outer label of the packet is a ring protection channel label, if the outgoing interface of the packet does not perform protection switching, the packet is forwarded to the corresponding ring network interface of the ring protection channel label. When the outermost label of the packet is a ring protection channel label, if the outbound interface of the packet performs protection switching, the processing unit 208 pops up the ring protection channel label of the outermost layer of the packet. The processing unit 208 searches for the corresponding forwarding entry according to the LSP label of the second layer. If the corresponding outgoing interface of the LSP label is the service outgoing interface, the packet is forwarded according to the LSP label to the corresponding service outgoing ring interface: The outgoing interface is a ring network interface, and the processing unit 208 pushes the ring working channel label in the corresponding direction for the packet, and forwards the label to the corresponding ring network interface. If the LSP needs to implement label switching and the outbound interface performs protection switching, you need to exchange the correct label according to the fault location on the specific ring network. For example, the next hop ring node of the node is faulty. The LSP label of the packet is exchanged to the egress label of the next hop ring node to forward the packet, so that the LSP label of the label-switched packet can be identified by the next-hop/hop ring network node. A further embodiment of the present invention is described below with reference to FIG. 3 to FIG. 7. In this embodiment, when the protected service is an LSP, and the protected service is a PW, the specific processing manner is the same. FIG. 3 is a block diagram of a ring network protection system for MPLS according to still another embodiment of the present invention. 4 to 7 are schematic diagrams of the system in different networking modes. The system includes an ingress node 302, a ring node 304, and a ring node 306;
入环节点 302,用于接收来自业务入环接口的报文,根据报文的有效业务标签相应 的配置信息转发报文。  The ringing node 302 is configured to receive the packet from the service inbound interface and forward the packet according to the configuration information of the valid service tag of the packet.
入环节点 302为报文进入环网保护系统的节点, 例如, 图 4中的节点 、 节点 D; 图 5中的节点 Al、 节点 D2 ; 图 6中的节点 Al、 节点 C2。 报文进入环网保护系统时, 最外层标签为 LSP标签, 入环节点 302根据最外层的 LSP标签查找相应的转发表项, 若 LSP标签相应的出接口为环网接口, 且该环网接口没 有进行保护倒换, 则入环节点 302为该报文压入相应方向的环工作通道标签, 并转发到 相应的环网接口, 例如, 该报文需要按顺时针方向转发给下一个环网节点, 则入环节点 302为该报文压入顺时针环工作通道标签, 并将该报文按顺时针方向转发给下一个环网 节点; 若 LSP标签相应的出接口为环网接口, 且该环网接口受故障影响进行保护倒换, 则入环节点 302为该报文压入相应反方向的环保护通道标签,并转发到反方向的相应的 环网接口, 例如, 该报文需要按顺时针方向转发给下一个环网节点, 但是相应的环网接 口受故障影响进行保护倒换, 则入环节点 302为该报文压入逆时针环保护通道标签, 并 将该报文按逆时针方向转发给下一个环网节点。 环网节点 304,用于接收来自所述入环节点或其他环网节点的报文,当所述报文的 最外层标签为有效的环工作通道标签时, 弹出所述环工作通道标签, 根据所述报文的有 效内层业务标签相应的配置信息转发所述报文, 当所述报文的最外层标签为有效的环保 护通道标签时, 当报文出接口不进行保护倒换时, 则将所述报文转发到所述环保护通道 标签相应的环网接口, 当报文出接口进行保护倒换时, 弹出所述环保护通道标签, 根据 所述报文的有效内层业务标签相应的配置信息转发所述报文。 环网节点 304为报文在环网保护系统中转发时经过的节点,例如,图 4中的节点 B、 节点 C、 节点 E、 节点 F; 图 5中的节点 Bl、 节点 Cl、 节点 Dl、 节点 X、 节点 Fl、 节点 A2、 节点 C2、 节点 E2、 节点 F2; 图 6中的节点 Bl、 节点 Cl、 节点 D2、 节点 E2。 报文在环网保护系统中转发时,最外层标签为环工作通道标签或环保护通道标签, 当报文的最外层标签为环工作通道标签吋,环网节点 304弹出报文最外层的环工作通道 标签。环网节点 304根据第二层的 LSP标签查找相应的转发表项, 若 LSP标签相应的出 接口为环网接口, 且该环网接口没有进行保护倒换, 则环网节点 304为该报文压入相应 方向的环工作通道标签, 并转发到相应的环网接口, 例如, 该报文需要按顺时针方向转 发给下 -个环网节点, 则环网节点 304为该报文压入顺时针环工作通道标签, 并将该报 文按顺时针方向转发给下一个环网节点: 若 LSP标签相应的出接口为环网接口, 且该环 网接口受故障影响进行保护倒换,则环网节点 304为该报文压入相应反方向的环保护通 道标签, 并转发到反方向的相应的环网接口, 例如, 该报文需要按顺时针方向转发给下 一个环网节点, 但是相应的环网接 U受故障影响进行保护倒换, 则环网节点 304为该报 文压入逆时针环保护通道标签, 并将该报文按逆时针方向转发给下 ·个环网节点。 若报文的环保护通道标签相应的环网接口没有进行保护倒换, 则将报文转发到环 保护通道标签相应的环网接口。 若报文的环保护通道标签相应的环网接口受故障影响进行保护倒换,环网节点 304 弹出报文最外层的环保护通道标签。环网节点 304根据第二层的 LSP标签查找相应的转 发表项, 若 LSP标签相应的出接口为环网接口, 则环网节点 304为该报文压入相应方向 的环工作通道标签, 并转发到相应的环网接口, 举例来说, 若环网节点 304接收到的报 文需要按顺时针方向转发给下一个环网节点,则环网节点 304为该报文压入顺时针环工 作通道标签, 并将该报文按顺时针方向转发给下一个环网节点。 出环节点 306,用于弹出环工作通道标签或环保护通道标签,根据报文的 LSP标签 转发报文到相应的业务出环接口。 The ringing node 302 is a node that enters the ring network protection system, for example, the node in FIG. 4, the node D; the node A1 in the FIG. 5, the node D2; the node A1 in the FIG. 6, and the node C2. When the packet enters the ring network protection system, the outermost label is the LSP label, and the ingress ring node 302 searches for the corresponding forwarding entry according to the outermost LSP label. If the corresponding outbound interface of the LSP label is a ring network interface, and the ring is If the network interface is not protected, the ringing node 302 pushes the ring working channel label in the corresponding direction and forwards the label to the corresponding ring network interface. For example, the packet needs to be forwarded clockwise to the next ring. For the network node, the ingress ring node 302 pushes the clockwise ring working channel label for the packet, and forwards the packet to the next ring network node in a clockwise direction; if the corresponding outbound interface of the LSP label is a ring network interface, If the ring network interface is affected by the fault and performs protection switching, the ingress ring node 302 pushes the ring protection channel label in the opposite direction to the packet and forwards it to the corresponding ring network interface in the reverse direction. For example, the packet needs to be Forwarding to the next ring network node in a clockwise direction, but the corresponding ring network interface is affected by the fault for protection switching, the ringing node 302 pushes the counterclockwise ring protection channel mark for the message. And forwards the packet to the next node the ring counterclockwise. The ring network node 304 is configured to receive the packet from the ringing node or other ring network node. When the outermost label of the packet is a valid ring working channel label, the ring working channel label is popped up. The packet is forwarded according to the configuration information of the valid inner service tag of the packet. When the outer label of the packet is a valid ring protection channel label, when the outgoing interface of the packet is not protected, the packet is not protected. And forwarding the packet to the corresponding ring network interface of the ring protection channel label. When the outbound interface performs protection switching, the ring protection channel label is popped out, according to the valid inner layer service label of the packet. The corresponding configuration information forwards the message. The ring network node 304 is a node that passes through when the packet is forwarded in the ring network protection system, for example, the node B, the node C, the node E, and the node F in FIG. 4; the node B1, the node C1, the node D1 in FIG. 5, Node X, Node F1, Node A2, Node C2, Node E2, Node F2; Node B1, Node C1, Node D2, Node E2 in Figure 6. When the packet is forwarded in the ring network protection system, the outermost label is the ring working channel label or the ring protection channel label. When the outermost label of the packet is the ring working channel label, the ring network node 304 pops up the packet. Layer ring working channel label. The ring network node 304 searches for the corresponding forwarding entry according to the LSP label of the second layer. If the corresponding outgoing interface of the LSP label is a ring network interface, and the ring network interface does not perform protection switching, the ring network node 304 presses the packet. Enter the ring working channel label in the corresponding direction and forward it to the corresponding ring network interface. For example, the packet needs to be forwarded to the next ring network node in a clockwise direction, and the ring network node 304 pushes the clockwise clock into the message. Ring the working channel label, and forward the packet to the next ring network node in a clockwise direction: If the corresponding outgoing interface of the LSP label is a ring network interface, and the ring network interface is affected by the fault for protection switching, the ring network node The packet is forwarded to the corresponding ring protection channel label in the opposite direction, and the packet is forwarded to the next ring network node in a clockwise direction, but the corresponding ring is forwarded. When the network connection U is affected by the fault and performs protection switching, the ring network node 304 pushes the counterclockwise protection channel label for the packet, and forwards the packet to the next ring network node in a counterclockwise direction. If the ring interface of the ring protection channel label of the packet does not perform protection switching, the packet is forwarded to the corresponding ring network interface of the ring protection channel label. If the ring interface of the ring protection channel label of the packet is affected by the fault and the protection switchover occurs, the ring network node 304 pops up the ring protection channel label of the outermost layer of the packet. The ring network node 304 searches for the corresponding forwarding entry according to the LSP label of the second layer. If the corresponding outgoing interface of the LSP label is a ring network interface, the ring network node 304 pushes the ring working channel label in the corresponding direction for the packet, and Forwarding to the corresponding ring network interface. For example, if the packet received by the ring network node 304 needs to be forwarded to the next ring network node in a clockwise direction, the ring network node 304 pushes the clockwise ring into the message. The channel label, and forwards the message to the next ring node in a clockwise direction. The egress node 306 is configured to eject the ring working channel label or the ring protection channel label, and forward the packet to the corresponding service outgoing ring interface according to the LSP label of the packet.
出环节点 306为报文离开环网保护系统的节点, 例如, 图 4中的节点4、 节点 D; 图 5中的节点 Al、 节点 D2 : 图 6中的节点 Al、 节点 C2。 当报文的最外层标签为环工作通道标签时, 出环节点 306弹出报文最外层的环工 作通道标签, 根据第—层的 LSP标签査找相应的转发表项, 根据该 LSP标签转发报文到 相应的业务出环接口。 当报文的最外层标签为环保护通道标签时, 且环保护通道标签的 相应环网接口没有进行保护倒换, 则将报文转发到环保护通道标签相应的环网接口。 当 报文的最外层标签为环保护通道标签时,且报文的环保护通道标签相应的环网接口受故 障进行保护倒换, 出环节点 306弹出报文最外层的环工作通道标签, 根据该 LSP标签转 发报文到相应的业务出环接口。 当该环网保护系统为相交环系统吋, 该系统还可以包括第二相交节点, 第二相交 节点为两个环网之间的两个相交节点之一,且第二相交节点上报文的跨环 LSP标签相应 的配置信息与另一个相交节点即第一相交节点上相应的配置信息保持同步。当第一相交 节点故障, 业务在第二相交节点上实现跨环时, 第二相交节点为两个环网之间跨环即出 入环的节点, 因此第二相交节点具有入环节点、 环网节点和出环节点的功能。 The outgoing node 306 is a node whose message leaves the ring protection system, for example, node 4, node D in FIG. 4; node A1, node D2 in FIG. 5: node A1, node C2 in FIG. When the outermost label of the packet is a ring working channel label, the outgoing node 306 pops up the ring working channel label of the outermost layer of the packet, and searches for the corresponding forwarding entry according to the LSP label of the first layer, and forwards according to the LSP label. The packet is sent to the corresponding service outgoing interface. When the outermost label of the packet is a ring protection channel label, and the ring protects the channel label If the corresponding ring network interface does not perform protection switching, the packet is forwarded to the corresponding ring network interface of the ring protection channel label. When the outermost label of the packet is a ring protection channel label, and the corresponding ring network interface of the ring protection channel label of the packet is protected by the fault, the looping node 306 pops up the ring working channel label of the outermost layer of the packet. The packet is forwarded according to the LSP label to the corresponding service outgoing ring interface. When the ring network protection system is an intersecting ring system, the system may further include a second intersecting node, the second intersecting node is one of two intersecting nodes between the two ring networks, and the packet is sent on the second intersecting node. The corresponding configuration information of the cross-ring LSP tag is synchronized with the corresponding configuration information of another intersecting node, that is, the first intersecting node. When the first intersecting node fails and the service implements the cross-ring on the second intersecting node, the second intersecting node is a node that crosses the ring between the two ring networks, that is, the node that enters and exits the ring, so the second intersecting node has the ingress ring node and the ring network. The function of nodes and exit nodes.
例如, 图 6中的节点 Ie为第二相交节点。 如果在转发过程中 LSP需要实现标签交换, 且报文在转发表项中对应的出接口受 故障影响进行保护倒换, 则需要根据具体的环网上的故障位置交换正确的标签, 例如, 该节点的下一跳环网节点故障,该节点需要将报文的 LSP标签交换为下一跳环网节点转 发报文吋的出口标签,使进行标签交换后的报文的 LSP标签能够被下下一跳环网节点所 识别。 本领域普通技术人员可以理解, 上述入环节点 302、环网节点 304和出环节点 306 仅为逻辑上的概念, 在不同的具体实现中, 同一个物理节点可以承担不同的角色。  For example, node Ie in Fig. 6 is a second intersecting node. If the LSP needs to implement label switching during the forwarding process, and the corresponding outbound interface of the packet is affected by the fault and performs protection switching, you need to exchange the correct label according to the fault location on the specific ring network. For example, the node is If the next hop ring network node is faulty, the node needs to exchange the LSP label of the packet to the egress label of the packet that the next hop ring network node forwards, so that the LSP label of the label-switched packet can be next-hopped. Recognized by the ring network node. It can be understood by those skilled in the art that the above-mentioned ringing node 302, ring network node 304 and outgoing ring node 306 are only logical concepts. In different specific implementations, the same physical node can assume different roles.
以图 4所示的系统为例, 其中节点 A和节点 D之间的 LSP分别为节点 A -〉节点 B -〉节点 C -〉节点 D, 相应的 LSP标签为 1001, 不进行标签交换; 节点 D -〉节点 C -〉节点 B -〉节点 A, 相应的 LSP标签 为 1002,不进行标签交换。顺时针方向环工作通道为 101 ,顺时针方向环保护通道为 102, 逆时针方向环工作通道为 103, 逆时针方向环保护通道为 104。 入标签为报文所带的标 签; 动作包括弹出标签(pop)、 压入标签 〔push)、 标签交换(swap); 主标签表示不需 要保护倒换时动作的对象, 备标签表示需要保护倒换时动作的对象。 节点 A的转发表配置如表 1所示, 由于所有环通道标签一旦确定, 其在该节点上 的出接口也相应确定, 所以下表及后续所有类似表格中不再列出出接口:
Figure imgf000014_0001
102 Swap (如果出 102
Taking the system shown in FIG. 4 as an example, the LSP between the node A and the node D is node A -> node B -> node C -> node D, and the corresponding LSP label is 1001, and no label switching is performed; D -> Node C -> Node B -> Node A, the corresponding LSP label is 1002, and no label switching is performed. The clockwise working channel is 101, the clockwise ring protection channel is 102, the counterclockwise ring working channel is 103, and the counterclockwise ring protection channel is 104. The inbound label is the label of the packet; the action includes a pop-up label (pop), a push-in label (push), and a label swap (swap); the main label indicates an object that does not need to protect the action when switching, and the backup label indicates that protection switching is required. The object of the action. The forwarding table configuration of node A is as shown in Table 1. Since all ring channel labels are determined once, the outbound interface on the node is determined accordingly, so the outbound interface is no longer listed in the following table and all subsequent similar tables:
Figure imgf000014_0001
102 Swap (if out 102
接口检测到故障则  If the interface detects a fault,
改为 Pop)  Change to Pop)
104 Swap (如果出 104  104 Swap (if out 104
接口检测到故障则  If the interface detects a fault,
改为 Pop)  Change to Pop)
1001 Push 103 102  1001 Push 103 102
1002 交换 LSP标签  1002 exchange LSP label
为用户配置值并转  Configure values for users and turn
发到业务出环接口 表 1 因为节点 A为逆时针工作通道的入环节点, 所以可以无需配置逆时针工作通道标 签的动作, 同理, 图 4中的节点0、 图 5中的节点 A1和图 6中的节点 A1无需配置顺时 针工作通道标签的动作; 图 5中的节点 D2和图 6中的节点 C2, 无需配置逆时针工作通 道标签的动作。  Send to the service outgoing interface table 1 Because node A is the entry node of the counterclockwise working channel, it is not necessary to configure the action of the counterclockwise working channel label. Similarly, node 0 in Figure 4, node A1 in Figure 5 and The node A1 in Fig. 6 does not need to be configured with the action of the clockwise working channel label; the node D2 in Fig. 5 and the node C2 in Fig. 6 need not be configured to operate the counterclockwise working channel label.
节点 B, C的转发表配置如表 2所示: The forwarding table configuration of Node B and C is shown in Table 2:
Figure imgf000015_0001
1001 Push 103 102
Figure imgf000015_0001
1001 Push 103 102
1002 Push 101 104 表 2 1002 Push 101 104 Table 2
节点 D的转发表配置如表 3所示:  The forwarding table configuration of node D is shown in Table 3:
Figure imgf000016_0001
Figure imgf000016_0001
节点 E、 F的配置如表 4所示:  The configuration of nodes E and F is shown in Table 4:
Figure imgf000016_0002
接口检测到故障则 障情况下直接透
Figure imgf000016_0002
If the interface detects a fault, it will directly pass through the obstacle.
改为 Pop) 传)  Change to Pop)
表 4 对于节点E、 节点 F, _ιΗ常情况下相应 LSP不经过这两个节点, 所以可以无需配置 相应 LSP的转发表项, 同理, 图 5中的节点 Bl、 Cl、 Dl、 C2和图 6中的节点 Bl、 CI无 需配置相应 LSP的转发表项。 根据上述配置, 一个业务报文进入环之后在正常情况下和异常情况下的转发动作 如下所述。 正常情况下:  If the corresponding LSP does not pass through the two nodes, the corresponding LSP forwarding entry does not need to be configured. Similarly, the nodes B1, Cl, Dl, C2, and Figure in Figure 5 are used. The forwarding entries of the corresponding LSPs need not be configured on the nodes B1 and CI of the 6th. According to the above configuration, the forwarding action of a service packet under normal conditions and abnormal conditions after entering the ring is as follows. Under normal circumstances:
LSP标签为 1001的业务报文从 A节点进入, A节点查找转发表后为该报文压入 103 标签并转发到相应接口。  The service packet with the LSP label of 1001 enters from the A node. After the node searches for the forwarding table, the A node pushes the label 103 and forwards the label to the corresponding interface.
上述报文从 B节点进入, 查找标签 103 , 动作为 Pop, 则继续查找标签 1001 , 动作 为压入标签 103并转发到相应接口。 上述报文从 C节点进入, 查找标签 103 , 动作为 Pop, 则继续查找标签 1001 , 动作 为压入标签 103并转发到相应接口。  The above message enters from the Node B, searches for the label 103, and moves to Pop, and continues to look up the label 1001. The action is to push the label 103 and forward it to the corresponding interface. The above message enters from the C node, searches for the tag 103, and moves as the Pop, and continues to search for the tag 1001. The action is to push the tag 103 and forward it to the corresponding interface.
上述报文从 D节点进入, 查找标签 103 , 动作为 Pop, 则继续查找标签 1001 , 动作 是将 LSP标签交换为用户配置值并转发到业务出环接口。  The packet enters from the D node, searches for the label 103, and moves to the label 1001. The action is to exchange the LSP label to the user configuration value and forward it to the service outgoing interface.
C与 D节点之间的链路发生异常情况下: When the link between C and D nodes is abnormal:
LSP标签为 1001的业务报文从 A节点进入, A节点查找转发表后为该报文压入 103 标签并转发到相应接口。 The service packet with the LSP label of 1001 enters from the A node. After the node searches for the forwarding table, the A node pushes the label 103 and forwards the label to the corresponding interface.
上述报文进入 B节点, 査找标签 103, 动作为 Pop, 则继续査找标签 1001, 动作为 压入标签 103并转发到相应接口。 上述报文进入 C节点, 査找标签 103, 动作为 Pop, 则继续査找标签 1001, 动作为 压入标签 102并转发到相应接口。 上述报文进入 B节点,查找标签 102,动作为交换外层标签为 102并将报文转发到 相应接口。 上述报文进入 A节点,査找标签 102,动作为交换外层标签为 102并将报文转发到 相应接口。 上述报文进入 F节点,査找标签 102,动作为交换外层标签为 102并将报文转发到 相应接口。 The packet enters the Node B, searches for the label 103, and acts as the Pop. Then, the label 1001 is continuously searched, and the label is pushed into the label 103 and forwarded to the corresponding interface. The packet enters the C node, searches for the label 103, and acts as the Pop. Then, the label 1001 is continuously searched, and the label is pushed into the label 102 and forwarded to the corresponding interface. The packet enters the Node B and searches for the label 102. The action is to exchange the outer label to 102 and forward the packet to the corresponding interface. The packet enters the A node and searches for the label 102. The action is to exchange the outer label to 102 and forward the packet to the corresponding interface. The packet enters the F node and searches for the label 102. The action is to exchange the outer label to 102 and forward the packet to the corresponding interface.
上述报文进入 E节点,査找标签 102,动作为交换外层标签为 102并将报文转发到 相应接口。  The packet enters the E-Node and looks up the label 102. The action is to exchange the outer label to 102 and forward the packet to the corresponding interface.
上述报文进入 D节点, 査找标签 102, 动作为 Pop , 则继续查找标签 1001, 动作是 将 LSP标签交换为用户配置值并转发到业务出环接口。 对于图 5中的节点 X,为两个保护环的相切节点,配置方式和普通的环网节点基本 相同, 不同之处在于这类节点同时是两个环的环网节点, 因此需要同时配置两个环上的 标签的动作。 例如, 图 5所示的系统中, 两个环网相切。 其中节点 A1和节点 D2之间的 LSP分别为节点 Al->节点 Fl->节点 X->节点 A2->节点 F2-〉节点 E2->节点 D2和节点 D2-〉 节点 E2->节点 F2->节点 A2->节点 X -〉节点 Fl-〉节点 Al。其各个节点的配置方式与图 4 所示的系统基本相同, 差别仅在于两个环 (环 1和环 2 ) 的环通道标签小同, 并且节点 X, 需要同时配置两个环上的标签的动作。 因此不再赘述。 以图 6所示的系统为例, 其中节点 Al、 节点 Bl、 节点 Cl、 节点 Iw、 节点 Ie可以看作环 1, 节点 E2、 节点 D2、节点 C2、节点 Iw、节点 Ie可以看作环 2 , 两个环相交并有两个交点节点 Iw和节点 Ie。节点 A1和节点 C2之间的 LSP为节点 Al_>节点 Iw -〉节点 E2_>节点 D2_>节点 C2,相 应的 LSP标签为 1001, 不进行标签交换。环 1顺时针方向环工作通道为 101, 顺时针方 向环保护通道为 102,逆时针方向环工作通道为 103,逆时针方向环保护通道为 104; 环 2顺时针方向环工作通道为 201,顺时针方向环保护通道为 202,逆时针方向环工作通道 为 203, 逆时针方向环保护通道为 204。 入标签为报文所带的标签; 动作包括弹出标签 (pop ). 压入标签(push)、 标签交换(swap ) ; 主标签表示不需要保护倒换时动作的对 象, 备标签表示需要保护倒换时动作的对象。 节点 A1的配置如表 5所示:
Figure imgf000018_0001
102 Swap (如果出 102 (没有故
The packet enters the D node, searches for the label 102, and acts as the Pop, and continues to search for the label 1001. The action is to exchange the LSP label into the user configuration value and forward it to the service outgoing interface. For the node X in Figure 5, the tangent node of the two guard rings is basically the same as that of the ordinary ring network node. The difference is that the node is a ring network node of two rings at the same time, so it needs to be configured at the same time. The action of the labels on the two rings. For example, in the system shown in Figure 5, the two rings are tangent. The LSP between node A1 and node D2 is node Al->node Fl->node X->node A2->node F2->node E2->node D2 and node D2->node E2->node F2- >Node A2->Node X -> Node Fl -> Node Al. The configuration of each node is basically the same as that of the system shown in Figure 4. The only difference is that the ring labels of the two rings (ring 1 and ring 2) are the same, and the node X needs to be configured with labels on both rings at the same time. action. Therefore, it will not be repeated. Taking the system shown in FIG. 6 as an example, the node A1, the node B1, the node C1, the node Iw, and the node Ie can be regarded as the ring 1, the node E2, the node D2, the node C2, the node Iw, and the node Ie can be regarded as the ring 2 The two rings intersect and have two intersection nodes Iw and nodes Ie. The LSP between the node A1 and the node C2 is the node A1>the node Iw->the node E2_>the node D2_>the node C2, and the corresponding LSP label is 1001, and no label switching is performed. Ring 1 clockwise ring working channel is 101, clockwise ring protection channel is 102, counterclockwise ring working channel is 103, counterclockwise ring protection channel is 104; ring 2 clockwise ring working channel is 201, cis The hour hand direction ring protection channel is 202, the counterclockwise ring working channel is 203, and the counterclockwise ring protection channel is 204. The inbound label is the label of the packet; the action includes the popup label (pop). Pushing the label (push), label switching (swap); the main label indicates the object that does not need to protect the switching action, and the standby label indicates that the protection needs to be switched. The object of the action. The configuration of node A1 is shown in Table 5:
Figure imgf000018_0001
102 Swap (if out 102 (no reason)
接口检测到故障则 障情况下直接透  If the interface detects a fault, it will directly pass through the fault.
改为 Pop) 传)  Change to Pop)
103 Pop 103 Pop
104 Swap (如果出 104 (没有故  104 Swap (if out 104 (no reason)
接口检测到故障则 障情况下直接透  If the interface detects a fault, it will directly pass through the fault.
改为 Pop) 传)  Change to Pop)
1001 Push 101 104 表 5 节点 Iw的配置如表 6所示: 1001 Push 101 104 Table 5 Node Iw configuration is shown in Table 6:
Figure imgf000019_0001
改为 Pop) 传)
Figure imgf000019_0001
Change to Pop)
1001 Swap and LSP标签交换 LSP标签交换 1001 Swap and LSP Label Switching LSP Label Switching
Push 为 1002,然后 push 为 1002,然后 push 上环标签 201 上环标签 204  Push is 1002, then push is 1002, then push the upper ring label 201 upper ring label 204
1002 Push 201 204 表 6 节点 A2, B2的配置如表 7所示: 入标签 动作 主标签 备标签 1002 Push 201 204 Table 6 Nodes A2 and B2 are configured as shown in Table 7: Incoming Label Action Main Label Alternate Label
201 Pop 201 Pop
202 Swap (如果出 202 (没有故 202 Swap (if out 202 (no reason
接口检测到故障则 障情况下直接透  If the interface detects a fault, it will directly pass through the fault.
改为 Pop) 传)  Change to Pop)
203 Pop 203 Pop
204 Swap (如果出 204 (没有故 204 Swap (if out 204 (no reason
接口检测到故障则 障情况下直接透  If the interface detects a fault, it will directly pass through the fault.
改为 Pop) 传)  Change to Pop)
1002 Push 201 204 1002 Push 201 204
节点 C2的配置如表 8所示: 入标签 动作 主标签 备标签 The configuration of node C2 is shown in Table 8: Incoming label Action Main label Alternate label
201 Pop 201 Pop
202 Swap (如果出 202 (没有故 202 Swap (if out 202 (no reason
接口检测到故障则 障情况下直接透  If the interface detects a fault, it will directly pass through the fault.
改为 Pop) 传)  Change to Pop)
203 Pop 204 Swap (如果出 204 (没有故 203 Pop 204 Swap (if out 204 (no reason
接口检测到故障则 障情况下直接透 改为 Pop) 传)  If the interface detects a fault, it will be directly changed to Pop).
1002 交换 LSP标签  1002 exchange LSP label
为用户配置值并转  Configure values for users and turn
发到业务出环接口 表 8 节点 B1,C1的配置如表 9所示: 入标签 动作 主标签 备标签  Send to the service outgoing interface Table 8 Node B1, C1 configuration as shown in Table 9: Incoming label Action Main label Alternate label
101 Pop 101 Pop
102 Swap (如果出 102 (没有故  102 Swap (if out 102 (no reason
接口检测到故障则 障情况下直接透 改为 Pop) 传)  If the interface detects a fault, it will be directly changed to Pop).
103 Pop 103 Pop
104 Swap (如果出 104 (没有故  104 Swap (if out 104 (no reason)
接口检测到故障则 障情况下直接透 改为 Pop) 传) 表 9 节点 le的配置如表 10所示: 入标签 动作 主标签 备标签  If the interface detects a fault, it will be directly changed to Pop).) Table 9 The configuration of node le is shown in Table 10: Incoming label Action Main label Alternate label
101 Pop 101 Pop
102 Swap (如果出 102 (没有故  102 Swap (if out 102 (no reason
接口检测到故障则 障情况下直接透 改为 Pop) 传)  If the interface detects a fault, it will be directly changed to Pop).
103 Pop 103 Pop
104 Swap (如果出 104 (没有故 接口检测到故障则 障情况下直接透 104 Swap (if out 104 (no reason) If the interface detects a fault, it will directly pass through the obstacle.
改为 Pop) 传)  Change to Pop)
201 Pop 201 Pop
202 Swap (如果出 102 (没有故 202 Swap (if out 102 (no reason
接口检测到故障则 障情况下直接透  If the interface detects a fault, it will directly pass through the fault.
改为 Pop) 传)  Change to Pop)
203 Pop 203 Pop
204 Swap (如果出 104 (没有故 204 Swap (if out 104 (no reason)
接口检测到故障则 障情况下直接透  If the interface detects a fault, it will directly pass through the fault.
改为 Pop) 传)  Change to Pop)
1001 Swap and LSP标签交换 LSP标签交换 1001 Swap and LSP Label Switching LSP Label Switching
Push 为 1002,然后 push 为 1002,然后 push  Push is 1002, then push is 1002, then push
上环标签 201 上环标签 204 表 10 根据上述配置, 一个业务报文进入环之后在正常情况下和异常情况下的转发动作 如下所述。 正常情况下:  The upper ring label 201 is the ring label 204. Table 10 According to the above configuration, the forwarding action of a service packet under normal conditions and abnormal conditions after entering the ring is as follows. Under normal circumstances:
LSP标签为 1001的业务报文从 A1节点进入, A1节点查找转发表后为该报文压入 101标签并转发到相应接口。 上述报文从 Iw节点进入, 查找标签 101 , 动作为 Pop, 则继续查找标签 1001, 动 作为 LSP标签交换为 1002, 然后 push上环标签 201。 上述报文从 A2节点进入, 查找标签 201 , 动作为 Pop, 继续查找标签 1002, 动作 为压入 201标签并转发到相应接口。 上述报文从 B2节点进入, 查找标签 201 , 动作为 Pop, 继续查找标签 1002, 动作 为压入 201标签并转发到相应接口。 上述报文从 C2节点进入, 查找标签 201 , 动作为 Pop, 继续查找标签 1002, 动作 是将 LSP标签交换为用户配置值并转发到业务出环接口。 若 Iw节点失效, 报文转发路径倒换为: The service packet with the LSP label of 1001 enters from the A1 node. After the A1 node searches the forwarding table, it pushes the 101 label into the packet and forwards it to the corresponding interface. The packet enters from the Iw node, searches for the label 101, and acts as the Pop. Then, the label 1001 is continuously searched, and the LSP label is exchanged as 1002, and then the ring label 201 is pushed. The above packet enters from the A2 node, searches for the tag 201, moves as the Pop, continues to search for the tag 1002, and acts as the pinned 201 tag and forwards it to the corresponding interface. The above packet enters from the B2 node, searches for the tag 201, moves as the Pop, continues to search for the tag 1002, and acts as the pinned 201 tag and forwards it to the corresponding interface. The packet enters from the C2 node, searches for the label 201, and acts as the Pop, and continues to search for the label 1002. The action is to exchange the LSP label into the user configuration value and forward it to the service outgoing interface. If the Iw node fails, the packet forwarding path is switched to:
LSP标签为 1001的业务从 A1节点进入,査找转发表后,发现工作环标签 101对应 的出接口检测到故障, 则压入 104标签并转发到相应接口。 上述报文从 B1节点进入, 查找标签 104, 动作为交换外层标签为 104并将报文转 发到相应接口。 上述报文从 C1节点进入, 查找标签 104, 动作为交换外层标签为 104并将报文转 发到相应接口。 The service with the LSP label of 1001 enters from the A1 node. After the forwarding table is found, it is found that the outbound interface corresponding to the working ring label 101 detects the fault, and then the 104 label is pushed and forwarded to the corresponding interface. The above packet enters from the B1 node, searches for the tag 104, moves the outer tag as 104, and forwards the message to the corresponding interface. The above packet enters from the C1 node, searches for the tag 104, moves the outer tag as 104, and forwards the message to the corresponding interface.
上述报文从 Ie节点进入, 査找标签 104, 动作为 Pop, 则继续査找标签 1001, 动 作为 LSP标签交换为 1002, 然后 push上环标签 204并转发到相应接口。 上述报文从 C2节点进入, 查找标签 204, 动作为交换外层标签为 204并将报文转 发到相应接口。 上述报文从 B2节点进入, 查找标签 204, 动作为交换外层标签为 204并将报文转 发到相应接口。  The packet enters from the Ie node, searches for the label 104, and moves as the Pop. Then, the label 1001 is continuously searched, and the LSP label is exchanged as 1002, and then the ring label 204 is pushed and forwarded to the corresponding interface. The above packet enters from the C2 node, searches for the tag 204, and acts as the exchange outer tag 204 and forwards the message to the corresponding interface. The packet enters from the B2 node, finds the label 204, and acts as the outer label of the switch 204 and forwards the message to the corresponding interface.
上述报文从 A2节点进入, 查找标签 204, 动作为 Pop, 则继续查找标签 1002, 动 作为压入环标签 201并转发到相应接口。 上述报文从 B2节点进入, 查找标签 201 , 动作为交换外层标签为 201并将报文转 发到相应接口。 上述报文从 C2节点进入, 查找标签 201 , 动作为 Pop, 继续查找标签 1002, 动作 是将 LSP标签交换为用户配置值并转发到业务出环接口。 需要注意的是, 尽管第二相交节点 Ie不在无故障时的工作通道上, 但由于第二相 交节点 Ie负责第 '相交节点 Iw故障时两个环间跨环业务的报文转发, 因此应当将第 ' 相交节点上 Iw的跨环 LSP信息也同步到第二相交节点 Ie的转发表中,如果需要进行 LSP 标签的标签交换,则第二相交节点 Ie应当如同时第一相交节点 Iw—样的进行标签交换。 例外的是, 如果无故障时的业务同时经过两个相交节点, 且在第一相交节点上实 现跨环转发, 第一相交节点为业务经过的前一个相交节点, 如果需要进行 LSP标签的标 签交换, 则需要在第二相交节点上配置与第一相交节点上相同的 LSP标签的标签交换, 该 LSP标签的标签交换的转发动作和转发方向与后一个相交节点配置的 LSP标签的标签 交换的转发动作及转发方向相同。 如果无故障时的业务同时经过两个相交节点,且在第一相交节点上实现跨环转发, 第一相交节点为业务经过的后一个相交节点,则将第一相交节点上跨环业务的转发信息 同步到第二相交节点上, 但不立即激活该同步信总。 当第一相交节点与第二相交节点在 业务经过的第一个环上完全拓扑隔离后再激活该同步信息。 以图 7所示的系统为例, 保护环 1和保护环 2存在节点 D1-节点 D2和节点 E1-节 点 E2之间的连接,如果希望这两段连接存在网络保护功能,可以将节点 D1, 节点 D2, 节 点 E2和节点 E1配置成为保护环 3, 从而使得全网链路存在保护。 采用本发明实施例提供的技术方案, 因为在报文的最外层压入环保护工作标签或 环保护通道标签, 实现了保护环上各个节点的处理的统一, 当报文的最外层标签为环保 护通道标签且报文出接 π不进行保护倒换时,将报文转发到环保护通道标签相应的环网 接口, 为具有不同 LSP标签的报文提供相同的保护通道, 并且在两个环的相交节点或相 切节点上配置了对应于两个环的环保护工作标签和环保护通道标签的转发表可以提供 相交环或相切环的保护, 解决了现有的 MPLS的环保护方案配置复杂, 网络资源开销大 的问题。 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通 过程序来指令相关的硬件完成, 所述的程序可以存储于计算机可读存储介质中, 所述存 储介质可以是 ROM/RAM , 磁盘或光盘等。 以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到的变化或替 换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应该以权利要求的保 护范围为准。 The above packet enters from the A2 node, searches for the tag 204, and acts as the Pop, and continues to search for the tag 1002, and acts as the pinned ring tag 201 and forwards it to the corresponding interface. The packet enters from the B2 node, searches for the label 201, and acts as the exchange outer label 201 and forwards the packet to the corresponding interface. The packet enters from the C2 node, searches for the label 201, and acts as the Pop, and continues to search for the label 1002. The action is to exchange the LSP label into the user configuration value and forward it to the service outgoing interface. It should be noted that although the second intersecting node Ie is not in the working channel when there is no fault, since the second intersecting node Ie is responsible for forwarding the packets of the inter-ring cross-ring service when the first intersecting node Iw is faulty, it should be The cross-ring LSP information of the Iw on the intersecting node is also synchronized to the forwarding table of the second intersecting node Ie. If label switching of the LSP label is required, the second intersecting node Ie should be the same as the first intersecting node Iw. Label exchange. The exception is that if the service in the case of no fault passes through two intersecting nodes at the same time, and the cross-ring forwarding is implemented on the first intersecting node, the first intersecting node is the previous intersecting node through which the service passes, and the label switching of the LSP label is required. , the label exchange of the same LSP label as that on the first intersecting node needs to be configured on the second intersecting node. The forwarding operation and forwarding direction of the label switching of the LSP label are the same as the forwarding operation and forwarding direction of the label switching of the LSP label configured by the latter intersecting node. If the service without faults passes through two intersecting nodes at the same time, and the cross-ring forwarding is implemented on the first intersecting node, and the first intersecting node is the latter intersecting node through which the service passes, the service of the cross-ring service on the first intersecting node is forwarded. The information is synchronized to the second intersecting node, but the sync letter is not activated immediately. The synchronization information is activated after the first intersecting node and the second intersecting node are completely topologically isolated on the first ring through which the service passes. Taking the system shown in FIG. 7 as an example, the protection ring 1 and the protection ring 2 have a connection between the node D1 and the node D2 and the node E1 and the node E2. If it is desired that the two segments have network protection functions, the node D1 can be Node D2, node E2 and node E1 are configured as guard ring 3, so that there is protection for the entire network link. According to the technical solution provided by the embodiment of the present invention, since the ring protection working label or the ring protection channel label is laminated on the outermost part of the packet, the processing of each node on the protection ring is unified, and the outermost label of the packet is used. If the ring is protected by the ring label and the packet is not connected to the protection switch, the packet is forwarded to the ring interface of the ring protection channel label to provide the same protection channel for the packets with different LSP labels. The forwarding table of the ring protection node and the ring protection channel label corresponding to the two rings on the intersecting node or the tangent node of the ring can provide protection of the intersecting ring or the tangent ring, and solve the existing ring protection scheme of MPLS. The configuration is complicated and the network resource overhead is large. A person skilled in the art can understand that all or part of the steps of implementing the above embodiments may be completed by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, and the storage medium may be a ROM. /RAM, disk or CD, etc. The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权利要求 Rights request
1、 一种多协议标签交换 MPLS的环网保护方法, 其特征在于, 接收报文, 并确定 接收所述报文的接口, 当报文出接口不进行保护倒换时, 包括: 当所述接口为业务入环接口时, 根据所述报文的有效业务标签相应的配置信息转 发所述报文; 当所述接口为环网接口, 且所述报文的最外层标签为有效的环工作通道标签时, 弹出所述环工作通道标签,根据所述报文的有效内层业务标签相应的配置信息在环工作 通道上转发所述报文; 当所述接口为环网接口时, 当所述报文的最外层标签为有效的环保护通道标签时, 根据所述环保护通道标签相应的配置信息在环保护通道上转发所述报文。 A method for protecting a ring network of a multi-protocol label switching MPLS, which is characterized in that: receiving a message, and determining an interface for receiving the packet, when the outbound interface of the packet does not perform protection switching, the method includes: When the service is a ring-in interface, the packet is forwarded according to the configuration information of the valid service label of the packet; when the interface is a ring network interface, and the outermost label of the packet is a valid ring. When the interface is a ring network interface, the device is configured to forward the packet according to the configuration information of the valid inner service label of the packet; When the outermost label of the packet is a valid ring protection channel label, the packet is forwarded on the ring protection channel according to the corresponding configuration information of the ring protection channel label.
2、 根据权利要求 1所述的方法, 其特征在于, 在接收报文之前, 还包括: 当存在两个环网, 两个环网之间存在两个相交节点, 并且跨环业务只经过第一相 交节点时, 将第一相交节点上跨环业务的转发信息同步到第二相交节点。 2. The method according to claim 1, wherein before receiving the message, the method further includes: when there are two ring networks, there are two intersecting nodes between the two ring networks, and the cross-ring service only passes through the When a node is intersected, the forwarding information of the cross-ring service on the first intersecting node is synchronized to the second intersecting node.
3、 根据权利要求 1所述的方法, 其特征在于, 在接收报文之前, 还包括: 当存在两个环网, 两个环网之间存在两个相交节点, 并且跨环业务同时经过第一 相交节点和第二相交节点, 跨环业务在所述第一相交节点上实现跨环, 所述第一相交节 点为业务经过的后一个相交节点时,将第一相交节点上跨环业务的转发信总同步到第二 相交节点, 但不激活所述同步到第二相交节点的转发信息: 当第一相交节点与第二相交节点在业务经过的第一个环上完全拓扑隔离后, 激活 所述同步到第二相交节点的转发信息。 The method according to claim 1, wherein before receiving the message, the method further includes: when there are two ring networks, there are two intersecting nodes between the two rings, and the cross-ring service passes through the same An intersecting node and a second intersecting node, the cross-ring service implements a cross-ring on the first intersecting node, and when the first intersecting node is a subsequent intersecting node through which the service passes, the cross-ring service on the first intersecting node The forwarding message is always synchronized to the second intersecting node, but the forwarding information synchronized to the second intersecting node is not activated: when the first intersecting node and the second intersecting node are completely topologically isolated on the first ring through which the service passes, The forwarding information synchronized to the second intersecting node.
4、 根据权利要求 2或 3所述的方法, 其特征在于, 所述将第一相交节点上跨环业 务的转发信息同步到第二相交节点, 包括: 第二相交节点将转发表中该跨环业务转发的工作出接口改为朝向所述第一相交节 点的接口, 环工作通道为另一个环的相应环工作通道, 环保护通道为另一环的相应环保 护通道。 The method according to claim 2 or 3, wherein the synchronizing the forwarding information of the cross-ring service on the first intersecting node to the second intersecting node comprises: the second intersecting node forwarding the cross in the table The working outbound interface forwarded by the ring service is changed to the interface facing the first intersecting node, the ring working channel is the corresponding ring working channel of the other ring, and the ring protection channel is the corresponding ring protection channel of the other ring.
5、 根据权利要求 2或 3所述的方法, 其特征在于, 当内层的业务标签进行标签交 换吋, 在接收报文之前, 还包括: 在业务实现跨环的相交节点上, 配置一个业务正常跨环后的标签的转发表项, 所 述转发表项的转发动作和转发方向与业务跨环后该节点原有的转发动作及转发方向相 同。 The method according to claim 2 or 3, wherein, after the service tag of the inner layer performs label switching, before receiving the message, the method further includes: On the intersecting node of the service cross-ring, configure the forwarding entry of the label that is normally cross-looped. The forwarding action and forwarding direction of the forwarding entry and the original forwarding action and forwarding direction of the node after the service cross-loop the same.
6、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述报文的有效业务标签 相应的配置信总转发所述报文, 包括: 根据所述报文的 LSP标签为所述报文压入相应方向的环工作通道标签, 并转发到 相应的环网接口。 The method according to claim 1, wherein the forwarding, according to the configuration information corresponding to the valid service label of the packet, the packet is forwarded according to the LSP label of the packet. The packet is pushed into the ring working channel label in the corresponding direction and forwarded to the corresponding ring network interface.
7、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述报文的有效内层业务 标签相应的配置信息在环工作通道上转发所述报文, 包括: 若所述报文的有效内层业务标签相应的出接口为业务出环接口, 则根据所述报文 的有效内层业务标签转发所述报文到相应的业务出环接口; 若所述报文的有效内层业务标签相应的出接口为环网接口, 则根据所述报文的有 效内层业务标签为所述报文压入相应方向的环工作通道标签, 并转发到相应的环 接The method according to claim 1, wherein the forwarding the packet on the ring working channel according to the configuration information corresponding to the valid inner layer service label of the packet includes: if the packet If the corresponding outbound interface of the valid inner service label is a service outgoing interface, the packet is forwarded to the corresponding service outgoing ring interface according to the valid inner service label of the packet; if the effective inner layer of the packet is valid The corresponding outbound interface of the service label is a ring network interface, and the valid inner layer service label of the packet is used to press the ring working channel label in the corresponding direction according to the packet, and forwarded to the corresponding ring connection.
□。 □.
8、 根据权利要求 1所述的方法, 其特征在于, 当报文出接口进行保护倒换时, 还 包括: 对于从业务入环接口接收到的报文, 根据所述报文的有效业务标签相应的配置信 息在环保护通道上转发所述报文; 对于从环网接口接收到的报文, 当所述报文的最外层标签为有效的环工作通道标 签时, 弹出所述环工作通道标签, 根据所述报文的有效内层业务标签相应的配置信息在 环保护通道上转发所述报文; 对于从环网接口接收到的报文, 当所述报文的最外层标签为环保护通道标签时, 弹出所述环保护通道标签,根据所述报文的有效内层业务标签相应的配置信息在环工作 通道上转发所述报文。 The method according to claim 1, wherein, when the packet outgoing interface performs the protection switching, the method further includes: corresponding to the valid service label of the packet received by the service incoming ring interface The configuration information is forwarded on the ring protection channel. When the outermost label of the packet is a valid ring working channel label, the ring working channel is popped up. The label forwards the packet on the ring protection channel according to the configuration information of the valid inner service label of the packet. For the packet received from the ring network interface, the outer label of the packet is When the ring protection label is used, the ring protection channel label is popped up, and the packet is forwarded on the ring working channel according to the corresponding configuration information of the valid inner service label of the packet.
9、 根据权利要求 8所述的方法, 其特征在于, 当报文出接口进行保护倒换时, 所 述根据所述报文的有效业务标签相应的配置信息在环保护通道上转发所述报文, 包括: 根据所述报文的有效业务标签为所述报文压入相应反方向的环保护通道标签, 并 转发到反方向的相应的环网接口。 The method according to claim 8, wherein, when the packet outgoing interface performs protection switching, the packet is forwarded on the ring protection channel according to the configuration information corresponding to the valid service label of the packet. The method includes: pressing, according to the valid service label of the packet, the ring protection channel label in the reverse direction of the packet, and forwarding the label to the corresponding ring network interface in the opposite direction.
10、 根据权利要求 8所述的方法, 其特征在于, 当报文出接口进行保护倒换时, 当所述报文的最外层标签为有效的环工作通道标签时,所述根据所述报文的有效内层业 务标签相应的配置信息在环保护通道上转发所述报文, 包括: 若所述报文的有效内层业务标签相应的出接口为业务出环接口, 则根据所述报文 的有效内层业务标签转发所述报文到相应的业务出环接口; 若所述报文的有效内层业务标签相应的出接口为环网接口, 则根据所述报文的有 效内层业务标签为所述报文压入相应反方向的环保护通道标签,并转发到反方向的相应 的环网接口。 The method according to claim 8, wherein when the outgoing interface of the packet performs protection switching, when the outermost label of the packet is a valid ring working channel label, the according to the report And the corresponding configuration information of the valid inner service tag of the packet is forwarded on the ring protection channel, and the method includes: if the corresponding outbound interface of the valid inner service tag of the packet is a service outgoing ring interface, according to the report The valid inner service tag of the packet forwards the packet to the corresponding service outgoing ring interface; if the corresponding outgoing interface of the valid inner layer service tag of the packet is a ring network interface, the valid inner layer according to the packet The service tag pushes the ring protection channel label in the opposite direction to the packet and forwards it to the corresponding ring network interface in the reverse direction.
11、 根据权利要求 8所述的方法, 其特征在于, 当报文出接 U进行保护倒换时, 当所述报文的最外层标签为环保护通道标签时,所述根据所述报文的有效内层业务标签 相应的配置信息在环工作通道上转发所述报文, 包括: 若所述报文的有效内层业务标签相应的接口为业务出环接口, 则根据所述报文的 有效内层业务标签转发所述报文到相应的业务出环接口; 若所述报文的有效内层业务标签相应的接口为环网接口, 则根据所述报文的有效 内层业务标签为所述报文压入相应方向的环工作通道标签, 并转发到相应的环网接口。 The method according to claim 8, wherein when the packet is sent out to perform protection switching, when the outermost label of the packet is a ring protection channel label, the packet is according to the packet. The corresponding configuration information of the valid inner service tag forwards the packet on the ring working channel, including: if the corresponding interface of the valid inner service tag of the packet is a service outgoing ring interface, according to the packet The effective inner layer service label forwards the packet to the corresponding service outgoing ring interface; if the corresponding interface of the valid inner layer service label of the packet is a ring network interface, the valid inner layer service label of the packet is The packet is pushed into the ring working channel label in the corresponding direction and forwarded to the corresponding ring network interface.
12、 根据权利要求 1所述的方法, 其特征在于, 当内层的业务标签进行标签交换 时, 在接收报文之前, 还包括: 当存在两个环网, 两个环网之间存在两个相交节点, 并且跨环业务同时经过第一 相交节点和第二相交节点, 跨环业务在业务经过的前一个相交节点上实现跨环时, 将业 务经过的前一个相交节点上跨环业务的转发信息同步到业务经过的后一个相交节点。 The method according to claim 1, wherein when the service tag of the inner layer performs label switching, before receiving the message, the method further includes: when there are two ring networks, two rings exist between the two ring networks. An intersecting node, and the cross-ring service passes through the first intersecting node and the second intersecting node at the same time, and when the cross-ring service realizes the cross-ring on the previous intersecting node through which the service passes, the cross-ring service of the previous intersecting node passing the service The forwarding information is synchronized to the next intersecting node through which the service passes.
13、根据权利要求 12所述的方法, 其特征在于, 所述将业务经过的前 '个相交节 点上跨环业务的转发信息同步到业务经过的后一个相交节点, 包括: 所述业务经过的后一个相交节点将转发表中同步的转发信息的业务转发动作及转 发方向设置为与所述业务经过的后一个相交节点中配置的相应业务的转发动作及转发 方向相同。 The method according to claim 12, wherein the synchronizing the forwarding information of the cross-ring service on the preceding intersecting nodes of the service to the subsequent intersecting node of the service, includes: The latter intersecting node sets the service forwarding action and the forwarding direction of the forwarding information synchronized in the forwarding table to be the same as the forwarding action and forwarding direction of the corresponding service configured in the latter intersecting node of the service.
14、一种多协议标签交换 MPLS的环网保护装置,其特征在于,包括业务入环接口、 业务出环接口、 环网接口和处理单元; 其中, 所述业务入环接口, 用于接收进入环网的报文; 所述业务出环接口, 用于发送离开环网的报文; 所述环网接口, 用于接收或发送环网节点之间的报文: 所述处理单元, 用于对于从业务入环接口接收到的报文, 根据所述报文的有效业 务标签相应的配置信息转发所述报文, 对于从环网接口接收到的报文, 当所述报文的最 外层标签为有效的环工作通道标签时, 弹出所述环工作通道标签, 根据所述报文的有效 内层业务标签相应的配置信息在环工作通道上转发所述报文,对于从环网接口接收到的 报文, 当所述报文的最外层标签为有效的环保护通道标签时, 当报文出接口不进行保护 倒换时, 根据所述环保护通道标签相应的配置信息转发所述报文, 当报文出接口进行保 护倒换时, 弹出所述环保护通道标签, 根据所述报文的有效内层业务标签相应的配置信 息转发所述报文。 A ring-protection device for a multi-protocol label switching MPLS, comprising: a service-input interface, a service-out interface, a ring network interface, and a processing unit; wherein the service-input interface is configured to receive and enter Ring network message; The service outgoing ring interface is configured to send a message that leaves the ring network; the ring network interface is configured to receive or send a message between the ring network nodes: the processing unit is configured to The received packet is forwarded according to the configuration information of the valid service label of the packet. For the packet received from the ring network interface, the outer label of the packet is a valid ring. When the working channel label is used, the ring working channel label is popped up, and the packet is forwarded on the ring working channel according to the configuration information of the valid inner layer service label of the packet. For the packet received from the ring network interface, When the outermost label of the packet is a valid ring protection channel label, when the outgoing interface of the packet is not protected, the packet is forwarded according to the configuration information of the label of the ring protection channel, and the packet is sent. When the outbound interface performs protection switching, the ring protection channel label is popped up, and the packet is forwarded according to the corresponding configuration information of the valid inner layer service label of the packet.
15、 一种多协议标签交换 MPLS的环网保护系统, 其特征在于, 包括入环节点、 环 网节点和出环节点; 其中, 所述入环节点, 用于接收来自业务入环接口的报文, 根据所述报文的有效业务标 签相应的配置信息转发所述报文; 所述环网节点, 用于接收来自所述入环节点或其他环网节点的报文, 当所述报文 的最外层标签为有效的环工作通道标签吋, 弹出所述环工作通道标签, 根据所述报文的 有效内层业务标签相应的配置信息转发所述报文, 当所述报文的最外层标签为有效的环 保护通道标签时, 当报文出接口不进行保护倒换时, 则将所述报文转发到所述环保护通 道标签相应的环网接口, 当报文出接口进行保护倒换时, 弹出所述环保护通道标签, 根 据所述报文的有效内层业务标签相应的配置信总转发所述报文; 所述出环节点, 用于弹出所述环工作通道标签或环保护通道标签, 根据所述报文 的有效内层业务标签转发所述报文到相应的业务出环接口。 A multi-protocol label switching MPLS ring network protection system, comprising: an ingress ring node, a ring network node, and an egress ring node; wherein the ring entry node is configured to receive a report from a service ingress ring interface. And forwarding, according to the configuration information corresponding to the valid service label of the packet, the ring network node, configured to receive a packet from the ringing node or another ring network node, when the packet is The outermost label is a valid ring working channel label, and the ring working channel label is popped up, and the packet is forwarded according to the corresponding configuration information of the valid inner layer service label of the packet, when the packet is the most When the outer label is a valid ring protection channel label, when the outgoing interface of the packet is not protected, the packet is forwarded to the corresponding ring network interface of the ring protection channel label. When the switchover is performed, the ring protection channel label is popped up, and the packet is forwarded according to the corresponding configuration information of the valid inner layer service label of the packet; Cycloalkyl ring working channel or protection channel label tag, to forward the packet according to the service tag of the effective inner packet to the corresponding service Ring interface.
16、 根据权利要求 15所述的系统, 其特征在于, 还包括: 第二相交节点, 所述第二相交节点为两个环网之间的两个相交节点之一, 且所述 第二相交节点上所述跨环业务报文的有效内层业务标签相应的配置信息与第一相交节 点上相应的跨环业务配置信息保持同步, 所述笫二相交节点, 用于接收来自业务入环接 口的报文, 根据所述报文的有效业务标签相应的配置信息转发所述报文, 接收来自所述 入环节点或其他环网节点的报文, 当所述报文的最外层标签为有效的环工作通道标签 时, 弹出所述环工作通道标签, 根据所述报文的有效内层业务标签相应的配置信息转发 所述报文, 当所述报文的最外层标签为有效的环保护通道标签时, 当报文出接口不进行 保护倒换时, 则将所述报文转发到所述环保护通道标签相应的环网接口, 当报文出接口 进行保护倒换时, 弹出所述环保护通道标签, 根据所述报文的有效内层业务标签相应的 配置信息转发所述报文, 还用于弹出所述环工作通道标签或环保护通道标签, 根据所述 报文的有效内层业务标签转发所述报文到相应的业务出环接口。 16. The system according to claim 15, further comprising: a second intersecting node, wherein the second intersecting node is one of two intersecting nodes between two ring networks, and the second intersecting The corresponding configuration information of the valid inner service tag of the cross-ring service packet on the node is synchronized with the corresponding cross-ring service configuration information on the first intersecting node, where the second intersecting node is configured to receive the interface from the service into the ring. Transmitting the packet according to the configuration information of the valid service label of the packet, and receiving the packet from the ringing node or other ring network node, when the outermost label of the packet is Valid ring working channel label The ring working channel label is popped up, and the packet is forwarded according to the corresponding configuration information of the valid inner service label of the packet. When the outer label of the packet is a valid ring protection channel label, When the outgoing interface of the packet is not protected, the packet is forwarded to the corresponding ring interface of the ring protection channel label. When the outgoing interface of the packet performs protection switching, the label of the ring protection channel is popped up. And the corresponding configuration information of the valid inner service tag of the packet is forwarded by the packet, and is also used to pop up the ring working channel label or the ring protection channel label, and forward the label according to the valid inner layer service label of the packet. The packet is sent to the corresponding service outgoing interface.
PCT/CN2010/076519 2009-09-29 2010-09-01 Method, device and system for protecting multi-protocol label switching ring network WO2011038627A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN200910110718 2009-09-29
CN200910110718.5 2009-09-29
CN200910252911.2A CN102035712B (en) 2009-09-29 2009-11-30 Multiprotocol label exchanged ring network protection method, device and system
CN200910252911.2 2009-11-30

Publications (1)

Publication Number Publication Date
WO2011038627A1 true WO2011038627A1 (en) 2011-04-07

Family

ID=43825540

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/076519 WO2011038627A1 (en) 2009-09-29 2010-09-01 Method, device and system for protecting multi-protocol label switching ring network

Country Status (2)

Country Link
CN (1) CN102035712B (en)
WO (1) WO2011038627A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891760A (en) * 2011-07-19 2013-01-23 中兴通讯股份有限公司 Tunnel protection configuration method and system in network management system

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387027B (en) * 2011-06-25 2013-08-14 华为技术有限公司 Network configuration method, ring network system and node
CN102868544A (en) * 2011-07-06 2013-01-09 中兴通讯股份有限公司 Method and system for realizing protection of shared gridding
CN102882780B (en) * 2011-07-15 2016-09-28 中兴通讯股份有限公司 Looped network tunnel configuration method based on overlapping trees, ring network protection method and system
CN102377601B (en) 2011-10-14 2014-03-26 杭州华三通信技术有限公司 LSP (Local Switched Path) fault notification method and LSP fault notification device
CN102437957B (en) 2011-12-16 2015-07-08 华为技术有限公司 Method and device for processing intersected ring of multi-protocol label switching
CN102546425B (en) 2012-01-31 2014-11-05 华为技术有限公司 Crossed ring network protection method, equipment and system
CN102843291B (en) * 2012-08-16 2016-12-07 南京中兴软件有限责任公司 Notifying method, Apparatus and system
CN103825816A (en) * 2012-11-16 2014-05-28 中国移动通信集团公司 Service transmission protection method and device based on polycyclic-structure network intersecting rings
CN103841017B (en) 2012-11-22 2017-07-14 华为技术有限公司 The method and apparatus that label is distributed automatically in looped network protection
CN108768816B (en) * 2018-05-18 2020-10-09 烽火通信科技股份有限公司 Multi-ring protection configuration method and system for PTN (packet transport network) ring network protection
CN109462500B (en) * 2018-10-26 2020-09-18 江西山水光电科技股份有限公司 Packet transport network PTN equipment looped network protection method
CN115296955B (en) * 2022-07-29 2023-07-25 烽火通信科技股份有限公司 Dual-ring switching implementation method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1761228A (en) * 2004-10-15 2006-04-19 华为技术有限公司 Method for implementing transmission and protection for service in MPLS ring net
US20060109802A1 (en) * 2004-11-19 2006-05-25 Corrigent Systems Ltd. Virtual private LAN service over ring networks
EP1745595A2 (en) * 2004-05-06 2007-01-24 Alcatel Optical Networks Israel Ltd. Efficient protection mechanisms in a ring topology network utilizing label switching protocols
CN101431459A (en) * 2008-12-17 2009-05-13 烽火通信科技股份有限公司 Looped network protection method for transmitting multiprotocol label switching network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100438475C (en) * 2004-09-21 2008-11-26 华为技术有限公司 Implementation method of protection exchanging in circular network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1745595A2 (en) * 2004-05-06 2007-01-24 Alcatel Optical Networks Israel Ltd. Efficient protection mechanisms in a ring topology network utilizing label switching protocols
CN1761228A (en) * 2004-10-15 2006-04-19 华为技术有限公司 Method for implementing transmission and protection for service in MPLS ring net
US20060109802A1 (en) * 2004-11-19 2006-05-25 Corrigent Systems Ltd. Virtual private LAN service over ring networks
CN101431459A (en) * 2008-12-17 2009-05-13 烽火通信科技股份有限公司 Looped network protection method for transmitting multiprotocol label switching network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891760A (en) * 2011-07-19 2013-01-23 中兴通讯股份有限公司 Tunnel protection configuration method and system in network management system
CN102891760B (en) * 2011-07-19 2017-11-10 中兴通讯股份有限公司 Tunnel protection configuration method and system in a kind of network management system

Also Published As

Publication number Publication date
CN102035712B (en) 2013-12-18
CN102035712A (en) 2011-04-27

Similar Documents

Publication Publication Date Title
WO2011038627A1 (en) Method, device and system for protecting multi-protocol label switching ring network
Huang et al. Building reliable MPLS networks using a path protection mechanism
US7817542B2 (en) Method and network device for fast service convergence
US8830824B2 (en) Ring network protection method, network node and ring network
WO2008006268A1 (en) Method system and node device for realizing service protection in the automatically switched optical network
US20130272114A1 (en) Pseudo wire switching method and device
EP2501084B1 (en) Transmission multi-protocol label switching network system and link protection method
WO2009105974A1 (en) Method and apparatus for fast reroute in a multi-protocol label switching (mpls) virtual private network (vpn)
CN101621497B (en) Method and system for service protection in multiple layers of networks
WO2006034629A1 (en) A method of protective rearrangement in mpls system
JP6056089B2 (en) Method, apparatus and system for hot standby by two computers
WO2008046358A1 (en) A method and device to realize punch-through of point-to-multipoint network link status
JP2008236212A (en) Virtual private network device
WO2006081767A1 (en) A method for implementing master and backup transmission path
WO2008083590A1 (en) Method and apparatus of rapid convergence of point-to-point service
WO2012159489A1 (en) Switching method, system and dual homing provider device for pseudowire dual homing network
US8611211B2 (en) Fast reroute protection of logical paths in communication networks
WO2010020146A1 (en) Correlative protection method, device and system for flux engineering channel
US20150186202A1 (en) Method and Device for Sending Inter-Domain Fault Information
US8238229B2 (en) Method and device for loop withdrawal in a MPLS network
Papán et al. Overview of IP fast reroute solutions
EP1942609B1 (en) A system and method for protecting multicast service path
WO2008132203A2 (en) Recovering from a failure in a communications network
WO2012106976A1 (en) Fault protection method and device
WO2011095135A1 (en) Method, device and system for the protection of intersection ring networks

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10819856

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10819856

Country of ref document: EP

Kind code of ref document: A1