WO2013010422A1 - Share-path-based ring network tunnel configuration method, ring network protection method and system - Google Patents

Share-path-based ring network tunnel configuration method, ring network protection method and system Download PDF

Info

Publication number
WO2013010422A1
WO2013010422A1 PCT/CN2012/077223 CN2012077223W WO2013010422A1 WO 2013010422 A1 WO2013010422 A1 WO 2013010422A1 CN 2012077223 W CN2012077223 W CN 2012077223W WO 2013010422 A1 WO2013010422 A1 WO 2013010422A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
state
tunnel
ring
link
Prior art date
Application number
PCT/CN2012/077223
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 WO2013010422A1 publication Critical patent/WO2013010422A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection

Definitions

  • Ring network tunnel configuration method based on shared path, ring network protection method and system
  • the present invention relates to the field of ring network protection technologies, and in particular, to a ring network tunnel configuration method based on a shared path, and a ring network protection method and system.
  • the technical problem to be solved by the embodiments of the present invention is to provide a ring network tunnel configuration method based on a shared path, a ring network protection method, and a system, to optimize the ring network configuration, and improve the performance of the protection switching.
  • a method for configuring a ring network tunnel based on a shared path including:
  • a working tunnel based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel are configured with the lower ring node of the ring service as the destination node.
  • the physical ring network carrying the shared path carries multiple multi-point to point (MP2P) shared paths, and the shared path carries services from one or more nodes on the ring to the same destination node.
  • MP2P multi-point to point
  • the step of configuring the working tunnel based on the shared path with the lower ring node of the ring service as the destination node, and the reverse closed protection tunnel corresponding to the working tunnel include:
  • a ring network protection method based on a shared path comprising:
  • Each node on the ring detects a link state with the neighboring node, and when the link state change is detected, sends a state change notification message to other nodes on the ring;
  • the faulty neighboring node switches the service sent to the fault point transmitted on the working tunnel to the corresponding closed protection tunnel, and the closed protection is performed.
  • the traffic sent to the fault point transmitted on the tunnel is switched to the corresponding working tunnel; the node other than the neighboring node is transparently transmitted to the transmitted service.
  • the method further includes:
  • the method further includes:
  • the neighboring node changes the state of the node to a switch state
  • the node other than the adjacent node changes the state of the node to punch-through ( Pass through
  • the neighboring node changes the state of the node from the Switch state to the idle state (Idle) state; the node other than the adjacent node of the fault changes the state of the node. Changed from the Pass through state to the Idle state.
  • the method further includes:
  • the push-to-press (PUSH) ring network tunnel label stack mode is adopted, including: pressing (PUSH) the tunnel label of the shared path according to the running direction of the lower ring node and the working tunnel, along the The ring network forwards the packet, and the lower ring node pops up (POP) the tunnel label to perform service ringing.
  • PUSH push-to-press
  • the physical ring network carrying the shared path carries multiple multiple point-to-point (MP2P) enjoyinging a path, the shared path carrying a service from one or more nodes on the ring to a same destination node;
  • MP2P point-to-point
  • the services carried by the shared path include: a virtual private network (VPN) service of a single-layer label, a label switched path (LSP) service of a multi-layer label, and an untagged IP or Ethernet (Eth) service.
  • VPN virtual private network
  • LSP label switched path
  • Ether untagged IP or Ethernet
  • the working tunnel supports a penultimate hop pop (PHP).
  • PGP penultimate hop pop
  • a ring network tunnel configuration system based on a shared path including a path configuration module, where: the path configuration module is configured to: configure a working tunnel based on a shared path with a lower ring node of the ring service as a destination node, and The working tunnel corresponds to the opposite closed protective tunnel.
  • the path configuration module is configured to configure a working path based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel by using the lower ring node of the ring service as the destination node in the following manner:
  • the closed protection tunnel from the lower ring node to the lower ring node is established in the opposite direction of the working tunnel.
  • a ring network protection system based on a shared path includes: a path configuration module, a state detection module, a status notification module, and a service switching module, where:
  • the path configuration module is configured to: configure a working tunnel based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel by using the lower ring node of the ring service as the destination node; the state detecting module is configured to: Detecting the link state between the node and the neighboring node; the state notification module is configured to: when the state detecting module detects the link state change, send the state change notification message to other nodes on the ring;
  • the service switching module is configured to: when the node where the node is a faulty neighboring node, change the advertisement packet according to the received state, and learn that the link state changes from a normal state to a link or a node.
  • the service sent to the fault point transmitted on the working tunnel is switched to the corresponding closed protection tunnel, and the service sent to the fault point transmitted on the closed protection tunnel is switched to the corresponding office.
  • the node where it is located is a node other than the faulty neighboring node, transparently transmits the transmitted service.
  • the service switching module is further configured to:
  • the notification message is changed according to the received state, and when the link state is changed to a link or the node failure disappears, the switch is switched to the closed protection tunnel. The business is restored to the working tunnel.
  • the service switching module is further configured to:
  • the state of the node is changed to a through state; when the link is When the state changes to a link or node failure, the state of the node is changed from the Pass through state to the Idle state.
  • a node where the ring is configured with a shared path-based working tunnel configured with a lower ring node serving as a destination node, and a reverse closed protection tunnel corresponding to the working tunnel, where the node includes a status detection module, a status notification module, and a service switching module, wherein: the status detection module is configured to: detect a link status between the node and an adjacent node; and the status notification module is configured to: detect the status When the module detects that the link state changes, the sending status change notification message is sent to other nodes on the ring;
  • the service switching module is configured to: when the node is a faulty neighboring node, change the advertisement packet according to the received state, and when it is known that the link state changes from a normal state to a link or a node fails, Switching the service sent to the fault point transmitted on the working tunnel to the corresponding closed protection tunnel, and switching the service sent to the fault point on the closed protection tunnel to corresponding On the working tunnel; when the node is a node other than the faulty neighboring node, the transmitted service is transparently transmitted.
  • the service switching module is further configured to:
  • the notification message is changed according to the received state, and when it is learned that the link state changes to a link or the node failure disappears, the switch is switched to the closed protection tunnel. The service is restored to the working tunnel.
  • the service switching module is further configured to:
  • the state of the node is changed to a switching state; when the link state changes to a link or When the node fault disappears, the state of the node is changed from the Switch state to the idle state (Idle) state; when the node is a node other than the faulty neighboring node, when the link state changes to a link or the node fails.
  • Idle idle state
  • the embodiment of the invention provides a new WRAPPING ring network protection scheme, which can be applied to an MPLS/MPLS-TP ring network, by establishing multiple multi-point-to-point (MP2P) shared paths on one ring, on each shared path. It can carry services from one or more nodes on the ring to the ring of the same node. Compared with related technologies, it avoids the complexity of ring network tunnel configuration, improves the performance of protection switching, and optimizes configuration.
  • MP2P multi-point-to-point
  • FIG. 1 is a schematic diagram of a topology of a ring network according to the related art
  • FIG. 2 is a schematic diagram of component modules of a ring network protection system according to an embodiment of the present invention
  • 3 is a schematic diagram of fault state protection according to an embodiment of the present invention
  • 4 is a schematic diagram of a fault disappearing switch according to an embodiment of the present invention
  • FIG. 5 is a schematic flowchart of a ring network protection process according to an embodiment of the present invention.
  • This embodiment provides a ring network tunnel configuration method based on a shared path, and uses the following technical solutions:
  • a working tunnel based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel are configured with the lower ring node of the ring service as the destination node.
  • the business on the ring is the business on the ring network.
  • the physical ring network carries multiple multi-point-to-point (MP2P) shared paths, and the shared path carries services from one or more nodes on the ring to the same destination node.
  • MP2P multi-point-to-point
  • the step of configuring the working tunnel based on the shared path with the lower ring node of the ring service as the destination node, and the reverse closed protection tunnel corresponding to the working tunnel include:
  • a closed protection tunnel from the lower ring node to the lower ring node is established in the opposite direction of the working tunnel.
  • the present embodiment provides a ring network protection method based on a shared path, and uses the following technical solutions:
  • Step 1 For the lower ring node of the service on the ring, configure a working tunnel and a closed protection tunnel with each lower ring node as the destination node.
  • the working tunnel (equivalent to the path) from the neighboring node of the node to the local node in each of the lower ring nodes in the clockwise or counterclockwise direction of the ring, At the same time, a closed protection tunnel is established along the opposite direction of the working tunnel. At most, a 2N working tunnel and a 2N protection tunnel need to be established.
  • Step 2 Each link on the ring (that is, each node on the ring detects the link shape of the adjacent two nodes respectively) State, including whether the link or node is faulty, initiates fault detection.
  • a node on the ring detects the link state or the state of the peer node changes from the normal state to the fault state, the direction along the ring is far away from the fault. Send a status change notification message to other nodes.
  • Step 3 After the other node on the ring receives the status change notification message, if it is a faulty neighboring node, the service sent to the fault point transmitted on the working tunnel includes: a virtual private network of a single layer label ( VPN, Virtual Private Network) service, multi-layer label LSP service, untagged IP or Ethernet (Eth) service, switch to the corresponding closed protection tunnel, and the service sent to the fault point transmitted on the closed protection tunnel Switch to the corresponding working tunnel; and other nodes on the ring perform transparent transmission of services.
  • VPN Virtual Private Network
  • LSP multi-layer label LSP service
  • Ether untagged IP or Ethernet
  • Step 4 When a node on the ring detects the link state or the state of the peer node changes from the fault state to the normal state, the state change notification message is sent to the other node along the direction of the ring away from the original fault, and the fault occurs.
  • the neighboring node detects the state change notification message that the ring fault disappears or the fault state disappears, the neighbor node detects the traffic sent or received from the closed protection tunnel to the working tunnel for transmission or reception.
  • Step 5 After receiving the packet notification from the fault state to the normal state, all the nodes on the ring become Idle state; and for the faulty neighboring node, the service transmitted by the protection tunnel is re-established. Switch to the working tunnel to prevent loss of data.
  • Step 6 When the incoming service is transmitted on the working tunnel, when the service is transmitted to the penultimate hop on the working tunnel, the outer tunnel label may be popped up (PHP), and the transmitted service is directly sent to the service. Exit the node and continue to transmit.
  • PGP popped up
  • step 3 when the ring node detects a fault or receives a state change notification message sent by the other node on the ring to the node, if it is a faulty neighbor node, then The Idle state is switched to the Switch state. For other nodes on the ring (non-fault neighbors), after receiving the state change notification message, the idle (Idle) state changes to the Pass through state.
  • This embodiment provides a ring network tunnel configuration system based on a shared path, where the system mainly includes a path configuration module, where:
  • the path configuration module is configured to: configure a working tunnel based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel, with the lower ring node of the ring service as the destination node.
  • the path configuration module is configured to configure a working path based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel as the destination node of the ring service in the following manner:
  • a closed protection tunnel from the lower ring node to the lower ring node is established in the opposite direction of the working tunnel.
  • the ring network protection system mainly includes the following four modules: a path configuration module 201, a status detection module 202, a status notification module 203, and a service switching module 204, where:
  • the path configuration module 201 is configured to: use each lower ring node of the ring service as a destination node, and configure a working tunnel from the adjacent node along the clockwise or counterclockwise direction of the ring to the lower ring node, and
  • the working tunnel is provided with a protective tunnel of a closed loop in the opposite direction (hereinafter referred to as a closed protective tunnel) to protect the working tunnel.
  • the state detecting module 202 is configured to: detect the state of the link by detecting a fault detection packet of the link layer between two directly connected adjacent nodes on the ring.
  • the link state is detected by detecting a continuity check and a continuity check (CC&CV, Continuity Check and Connectivity Verification) BFD (Bidirectional Forwarding Detection) message.
  • CC&CV Continuity Check and Connectivity Verification
  • BFD Bidirectional Forwarding Detection
  • the status notification module 203 is configured to: when the status detection module 202 detects a change in the link status (including a link or node failure), generate a status change notification message, along the ring Sending to the ring node from the direction of the fault until it reaches the downstream node of the fault;
  • the status change notification message includes but is not limited to: ring network automatic protection switching (R-APS,
  • the service switching module 204 is configured to: perform protection switching of the service after the change of the link state is detected or the status change notification message (such as R-APS, etc.) sent by another node is received according to the following manner:
  • the neighboring node switches the service sent to the fault point transmitted on the working tunnel to the corresponding closed.
  • the service sent to the fault point transmitted on the closed protection tunnel is switched to the corresponding working tunnel; the node other than the adjacent node of the fault transmits the transmitted service transparently;
  • the service switching module 204 is further configured to: perform a change of the state on the local node, and change from the idle state to the Switch state or from the Swtich state to the Idle state for the faulty neighboring node; In other words, it changes from the idle state to the pass through state or from the pass through state to the idle state.
  • the neighboring node changes the state of the node to the switch state, and the node other than the adjacent node changes the state of the node to the Pass through state.
  • the neighboring node changes the state of the node from the Switch state to the Idle state; the node other than the adjacent node changes the state of the node from the Pass through state to Idle state.
  • the embodiment of the present invention further provides a ring network protection system based on a shared path, where the system includes: a path configuration module, a state detection module, a state notification module, and a service switching module, where:
  • the path configuration module is configured to: configure the lower node of the ring service as the destination node based on a working tunnel of the shared path, and a reverse closed protection tunnel corresponding to the working tunnel;
  • the state detecting module is configured to: detect a link state between the node where the node is located and the neighboring node; And sending, by the state detecting module, the status change notification message to other nodes on the ring;
  • the service switching module is configured to: when the node where the node is a faulty neighboring node, change the advertisement packet according to the received state, and when the link state is changed from the normal state to the link or the node fails, Switching the service sent to the fault point transmitted on the working tunnel to the corresponding closed protection tunnel, and switching the service sent to the fault point transmitted on the closed protection tunnel to the corresponding working tunnel.
  • the transmitted service is transparently transmitted.
  • the service switching module is further configured to:
  • the notification message is changed according to the received state, and when the link state is changed to a link or the node failure disappears, the switch is switched to the closed protection tunnel. The business is restored to the working tunnel.
  • the service switching module is further configured to:
  • the state of the node is changed to a through state; when the link is When the state changes to a link or node failure, the state of the node is changed from the Pass through state to the Idle state.
  • the embodiment of the present invention further provides a node, where the ring where the node is located is configured with a shared path-based working tunnel configured by using a lower ring node of the ring service as a destination node, and a reversed corresponding to the working tunnel.
  • a closed protection tunnel the node includes: a state detection module, a state notification module, and a service switching module, where: The status detecting module is configured to: detect a link status between the node and a neighboring node; the status notification module is configured to: send a status change notification when the status detecting module detects the link status change The message is sent to other nodes on the ring;
  • the service switching module is configured to: when the node is a faulty neighboring node, change the advertisement packet according to the received state, and when it is known that the link state changes from a normal state to a link or a node fails, Switching the service sent to the fault point transmitted on the working tunnel to the corresponding closed protection tunnel, and switching the service sent to the fault point transmitted on the closed protection tunnel to the corresponding working tunnel;
  • the transmitted service is transparently transmitted.
  • the service switching module is further configured to:
  • the notification message is changed according to the received state, and when it is learned that the link state changes to a link or the node failure disappears, the switch is switched to the closed protection tunnel. The service is restored to the working tunnel.
  • the service switching module is further configured to:
  • the state of the node is changed to a switching state; when the link state changes to a link or When the node fault disappears, the state of the node is changed from the Switch state to the idle state (Idle) state; when the node is a node other than the faulty neighboring node, when the link state changes to a link or the node fails.
  • Idle idle state
  • the service carried by the shared path of the present invention may be a single-layer label VPN service (L2/L3 VPN) or a multi-layer label LSP service (IP-MPLS/MPLS-TP Tunnel, etc.), or even It is an unlabeled IP or Eth service.
  • L2/L3 VPN single-layer label VPN service
  • IP-MPLS/MPLS-TP Tunnel multi-layer label LSP service
  • It is an unlabeled IP or Eth service.
  • Step 1 Configure a working tunnel and a closed protection tunnel
  • point D, 4 such as its working tunnel is configured to be counterclockwise
  • the corresponding protective tunnel is D-E-F-A-B-C-D closed loop.
  • the working tunnel can be configured in a clockwise direction (E-F-A-B-C-D), and the corresponding protection tunnel is D-C-B-A-F-E-D.
  • Step 2 If the service 1 (the LSP service or the IP service or the PW service) and the service 2 (the LSP service, the IP service, or the PW service) enter the ring from the nodes A and B on the ring respectively, the ring is fault-free.
  • Service 1 and service 2 are pushed (PUSH) to the CBAFED on the same working tunnel at points A and B respectively.
  • the format of the encapsulated message is shown in Table 1.
  • LSP Label Indicates that the service is an LSP service. After the LSP label is swapped, the LSP label is swapped into the outer tunnel and then uploaded to the outer tunnel.
  • IP Header indicates that when the incoming link is an IP service, the IP service is directly pushed into the outer tunnel Tunnel Label and transmitted in the outer tunnel.
  • PW Label indicates that the access to the pseudowire emulation service (such as ATM, ETH, TDM, etc.) on the ingress ring node, after the local service processing (NSP) is performed on the ingress ring node, the corresponding PW is applied. Label, then press into the outer tunnel Tunnel Label and transmit it on the outer tunnel;
  • NSP local service processing
  • PDU refers to the content of the specific packaged service.
  • the node on the ring only performs the swap operation of the outer tunnel label, and after the outer label 300 is popped up on the outgoing node D, the corresponding service 1 and service 2 services are directly processed; if the LSP service is In other words, first pop up (POP) the outer Tunnel label, then inside After the LSP Label Exchange (Swap) is exported, if the IP service is used, the outer label of the POP is popped up, and the information is sent out according to the information on the header of the IP Header. If it is a PW service, it will pop up first. POP) After the outer tunnel label is popped up, the PW Label is popped up, and the emulation service is encapsulated and processed according to the PW Label.
  • POP pop up
  • the PW Label is popped up, and the emulation service is encapsulated and processed according to the PW Label.
  • Step 3 When the link E or F on the ring detects a link or node failure (fault node E or F), all the transmitted services (such as service 1, service 2, etc.) on the working tunnel are switched to the protection tunnel. (DEFABCD) is transmitted; and a status change notification message (such as R-APS, etc.) is generated and sent to other nodes on the ring along the direction of the ring away from the fault.
  • a link or node failure fault node E or F
  • Step 4 When other nodes on the ring receive the state change notification message, the non-fault neighboring node changes from the IDLE state to the pass through state; and the faulty peer node changes from the idle state to the idle state. Switching state.
  • the service 1 and service 2 services enter the ring from nodes A and B, and are first pushed to the working tunnel CBAFED for transmission; when transmitted to the node F, they are switched to the protection tunnel, and the original working tunnel label 100 is exchanged (Swap After the protection tunnel label 101 is pushed into the protection tunnel FABCDE, and transmitted to the node E, the protection tunnel label 301 is exchanged into the working tunnel label 300, and is again pushed into the working tunnel to be transmitted until it reaches the ring-out node D, and pops up. After the layer operates the tunnel label 300, the service 1 and the service 2 are directly processed.
  • Step 5 When the fault on the ring disappears, as shown in Figure 4, the link fault between F and E disappears.
  • node F or E detects that the fault disappears, F or E changes from Switching state to Idle, and The DEFABCD on the protection tunnel is restored to the CBAFED transmission on the working tunnel.
  • the node E or F that detects the state change will also generate a status change notification message with the fault disappearing, and send it along the ring away from the fault. Give other nodes on the ring.
  • Step 6 When other nodes on the ring receive the status change notification message that the fault disappears, the original Switching and Pass Through states are changed to the Idle state; and the original protected tunnel is also transmitted on the E or F node. Re-switch the transfer on the working tunnel.
  • FIG. 5 is a flowchart showing a processing procedure of a ring network protection method according to an embodiment of the present invention. As shown in FIG. 5, the process includes:
  • Step 101 Configure a working tunnel and a closed protection tunnel as a destination node of the ring service (also referred to as an egress node) of the ring service.
  • Step 102 A fault detection packet is periodically sent on each link.
  • Step 103 Determine whether a link state change is detected. If yes, go to step 104. Otherwise, go to step 105.
  • Step 104 Immediately generate a state change notification message and send it to other nodes on the ring.
  • Step 105 Periodically send a status advertisement message.
  • Step 106 The node on the ring detects or receives another status change notification message.
  • Step 107 Determine whether the link state change changes from the normal state to the fault state. If yes, go to step 108. Otherwise, go to step 109.
  • each node is set to the Switching or Pass through state, and step 110 is performed.
  • each node is set to the Idle state.
  • Step 110 Perform a handover of a service delivery tunnel.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any particular hardware and software. Combine.
  • the embodiment of the invention provides a new WRAPPING ring network protection scheme, which can be applied to an MPLS/MPLS-TP ring network, by establishing multiple multi-point-to-point (MP2P) shared paths on one ring, on each shared path. It can carry services from one or more nodes on the ring to the ring of the same node. Compared with related technologies, it avoids the complexity of ring network tunnel configuration, improves the performance of protection switching, and optimizes configuration. Therefore, the present invention has strong industrial applicability.
  • MP2P multi-point-to-point

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

A share-path-based ring network tunnel configuration method, a ring network protection method and system, using the off-ring node of an on-ring service as a destination node, and configuring a share-path-based working tunnel and a reversely closed protection tunnel corresponding to the working tunnel. In the technical solution, a plurality of MP2P share paths are established on one ring, and each share path can bear the services entering the ring from one or more nodes and getting off the ring from a same node, thus avoiding the complexity of ring network tunnel configuration, improving protection handoff performance and optimizing configuration.

Description

基于共享路径的环网隧道配置方法、 环网保护方法及系统  Ring network tunnel configuration method based on shared path, ring network protection method and system
技术领域 Technical field
本发明涉及环网保护技术领域, 尤其涉及一种基于共享路径的环网隧道 配置方法、 环网保护方法及系统。  The present invention relates to the field of ring network protection technologies, and in particular, to a ring network tunnel configuration method based on a shared path, and a ring network protection method and system.
背景技术 Background technique
当前在环网中, 对于 G.8132标准上环回 ( Wrapping )保护方案, 由于该 保护方案是每个被保护的标签交换路径(LSP, Label Switching Path )对应一 个封闭保护环, 其配置工作量太大, 倒换动作比较多, 倒换处理时间也比较 长。 发明内容  Currently, in the ring network, for the G.8132 standard loopback protection scheme, since the protection scheme is a closed protection ring corresponding to each protected label switching path (LSP, Label Switching Path), the configuration workload is Too big, there are more switching actions, and the switching processing time is longer. Summary of the invention
本发明实施例解决的技术问题是提供一种基于共享路径的环网隧道配置 方法、 环网保护方法及系统, 以优化环网配置, 提高保护切换的性能。  The technical problem to be solved by the embodiments of the present invention is to provide a ring network tunnel configuration method based on a shared path, a ring network protection method, and a system, to optimize the ring network configuration, and improve the performance of the protection switching.
为解决上述技术问题, 本发明实施例釆用如下技术方案:  In order to solve the above technical problem, the following technical solutions are used in the embodiment of the present invention:
一种基于共享路径的环网隧道配置方法, 包括:  A method for configuring a ring network tunnel based on a shared path, including:
以环上业务的下环节点为目的节点配置基于共享路径的工作隧道, 以及 与所述工作隧道相应的反向的封闭保护隧道。  A working tunnel based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel are configured with the lower ring node of the ring service as the destination node.
可选地,承载所述共享路径的物理环网承载多个多点到点( MP2P )的共 享路径, 所述共享路径承载从所述环上一个或多个节点到同一个目的节点的 业务。  Optionally, the physical ring network carrying the shared path carries multiple multi-point to point (MP2P) shared paths, and the shared path carries services from one or more nodes on the ring to the same destination node.
可选地, 以环上业务的下环节点为目的节点配置基于共享路径的工作隧 道, 以及与所述工作隧道相应的反向封闭保护隧道的步骤包括:  Optionally, the step of configuring the working tunnel based on the shared path with the lower ring node of the ring service as the destination node, and the reverse closed protection tunnel corresponding to the working tunnel include:
沿所述环的顺时针、和 /或逆时针方向从所述下环节点的相邻节点到所述 下环节点, 建立所述工作隧道;  Establishing the working tunnel from a neighboring node of the lower ring node to the lower ring node in a clockwise and/or counterclockwise direction of the ring;
沿所述工作隧道的相反方向建立从所述下环节点到所述下环节点的所述 封闭保护隧道。 Establishing the said slave ring node to the lower ring node in the opposite direction of the working tunnel Closed protection tunnel.
一种基于共享路径的环网保护方法, 该方法包括: A ring network protection method based on a shared path, the method comprising:
以环上业务的下环节点为目的节点配置基于共享路径的工作隧道, 以及 与所述工作隧道相应的反向的封闭保护隧道;  Configuring a working tunnel based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel, with the lower ring node of the ring service as the destination node;
所述环上的各节点检测与相邻节点间的链路状态, 在检测到链路状态改 变时, 发送状态改变通告报文给所述环上的其他节点;  Each node on the ring detects a link state with the neighboring node, and when the link state change is detected, sends a state change notification message to other nodes on the ring;
当所述链路状态改变为链路或节点出现故障时 , 故障相邻节点将所述工 作隧道上传送的发向故障点的业务切换到相应的所述封闭保护隧道上, 将所 述封闭保护隧道上传送的发向故障点的业务切换到相应的所述工作隧道上; 故障相邻节点之外的节点对传送的业务进行透传。  When the link state changes to a link or a node fails, the faulty neighboring node switches the service sent to the fault point transmitted on the working tunnel to the corresponding closed protection tunnel, and the closed protection is performed. The traffic sent to the fault point transmitted on the tunnel is switched to the corresponding working tunnel; the node other than the neighboring node is transparently transmitted to the transmitted service.
可选地, 该方法还包括:  Optionally, the method further includes:
当所述链路状态改变为链路或节点故障消失时, 故障相邻节点将切换到 所述封闭保护隧道上传送的业务重新恢复到所述工作隧道上。  When the link state changes to a link or a node failure disappears, the failed neighboring node reverts to the service transmitted on the closed protection tunnel and resumes to the working tunnel.
可选地, 该方法还包括:  Optionally, the method further includes:
当所述链路状态改变为链路或节点出现故障时 , 故障相邻节点将本节点 的状态改变为倒换(Switch ) 态, 故障相邻节点之外的节点将本节点的状态 改变为穿通 ( Pass through ) 态;  When the link state changes to a link or a node fails, the neighboring node changes the state of the node to a switch state, and the node other than the adjacent node changes the state of the node to punch-through ( Pass through
当所述链路状态改变为链路或节点故障消失时, 故障相邻节点将本节点 的状态由 Switch态改变为空闲 (Idle ) 态; 故障相邻节点之外的节点将本节 点的^ 态由 Pass through态改变为 Idle态。  When the link state changes to a link or a node failure disappears, the neighboring node changes the state of the node from the Switch state to the idle state (Idle) state; the node other than the adjacent node of the fault changes the state of the node. Changed from the Pass through state to the Idle state.
可选地, 该方法还包括:  Optionally, the method further includes:
业务报文在上环转发时釆用压入(PUSH ) 环网隧道标签堆栈方式, 包 括: 根据所述下环节点和工作隧道的运行方向压入(PUSH ) 所述共享路径 的隧道标签, 沿着环网进行转发, 所述下环节点弹出 (POP )所述隧道标签 进行业务下环。  When the service packet is forwarded on the upper ring, the push-to-press (PUSH) ring network tunnel label stack mode is adopted, including: pressing (PUSH) the tunnel label of the shared path according to the running direction of the lower ring node and the working tunnel, along the The ring network forwards the packet, and the lower ring node pops up (POP) the tunnel label to perform service ringing.
可选地,承载所述共享路径的物理环网承载多个多点到点(MP2P )的共 享路径, 所述共享路径承载从所述环上一个或多个节点到同一个目的节点的 业务; Optionally, the physical ring network carrying the shared path carries multiple multiple point-to-point (MP2P) Enjoying a path, the shared path carrying a service from one or more nodes on the ring to a same destination node;
其中,所述共享路径承载的业务包括:单层标签的虚拟专用网络(VPN ) 业务、 多层标签的标签交换路径(LSP )业务、 无标签的 IP或以太网 (Eth ) 业务。  The services carried by the shared path include: a virtual private network (VPN) service of a single-layer label, a label switched path (LSP) service of a multi-layer label, and an untagged IP or Ethernet (Eth) service.
可选地, 所述工作隧道支持倒数第二跳弹出 (PHP ) 。  Optionally, the working tunnel supports a penultimate hop pop (PHP).
一种基于共享路径的环网隧道配置系统, 包括路径配置模块, 其中: 所述路径配置模块设置成: 以环上业务的下环节点为目的节点配置基于 共享路径的工作隧道, 以及与所述工作隧道相应的反向的封闭保护隧道。 A ring network tunnel configuration system based on a shared path, including a path configuration module, where: the path configuration module is configured to: configure a working tunnel based on a shared path with a lower ring node of the ring service as a destination node, and The working tunnel corresponds to the opposite closed protective tunnel.
可选地, 所述路径配置模块设置成按照以下方式以环上业务的下环节点 为目的节点配置基于共享路径的工作隧道, 以及与所述工作隧道相应的反向 的封闭保护隧道:  Optionally, the path configuration module is configured to configure a working path based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel by using the lower ring node of the ring service as the destination node in the following manner:
沿所述环的顺时针、和 /或逆时针方向从所述下环节点的相邻节点到所述 节点, 建立所述工作隧道;  Establishing the working tunnel along a clockwise, and/or counterclockwise direction of the ring from an adjacent node of the lower ring node to the node;
沿所述工作隧道的相反方向建立从所述下环节点到所述下环节点的所述 封闭保护隧道。  The closed protection tunnel from the lower ring node to the lower ring node is established in the opposite direction of the working tunnel.
一种基于共享路径的环网保护系统, 该系统包括: 路径配置模块、 状态 检测模块、 状态通告模块及业务切换模块, 其中: A ring network protection system based on a shared path, the system includes: a path configuration module, a state detection module, a status notification module, and a service switching module, where:
所述路径配置模块设置成: 以环上业务的下环节点为目的节点配置基于 共享路径的工作隧道, 以及与所述工作隧道相应的反向的封闭保护隧道; 所述状态检测模块设置成: 检测其所在节点与相邻节点间的链路状态; 所述状态通告模块设置成: 在所述状态检测模块检测到所述链路状态改 变时, 发送状态改变通告报文给环上其他节点;  The path configuration module is configured to: configure a working tunnel based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel by using the lower ring node of the ring service as the destination node; the state detecting module is configured to: Detecting the link state between the node and the neighboring node; the state notification module is configured to: when the state detecting module detects the link state change, send the state change notification message to other nodes on the ring;
所述业务切换模块设置成: 其所在的节点为故障相邻节点时, 根据接收 到的所述状态改变通告报文, 当获知所述链路状态由正常状态变为链路或节 点出现故障时, 将所述工作隧道上传送的发向故障点的业务切换到相应的所 述封闭保护隧道上, 将所述封闭保护隧道上传送的发向故障点的业务切换到 相应的所述工作隧道上; 其所在的节点为故障相邻节点之外的节点时, 对传 送的业务进行透传。 The service switching module is configured to: when the node where the node is a faulty neighboring node, change the advertisement packet according to the received state, and learn that the link state changes from a normal state to a link or a node. When a fault occurs, the service sent to the fault point transmitted on the working tunnel is switched to the corresponding closed protection tunnel, and the service sent to the fault point transmitted on the closed protection tunnel is switched to the corresponding office. On the working tunnel; when the node where it is located is a node other than the faulty neighboring node, transparently transmits the transmitted service.
可选地, 所述业务切换模块还设置成:  Optionally, the service switching module is further configured to:
其所在的节点为故障相邻节点时,根据接收到的所述状态改变通告报文, 当获知所述链路状态改变为链路或节点故障消失时, 将切换到所述封闭保护 隧道上传送的业务重新恢复到所述工作隧道上。  When the node where the node is located is a faulty neighboring node, the notification message is changed according to the received state, and when the link state is changed to a link or the node failure disappears, the switch is switched to the closed protection tunnel. The business is restored to the working tunnel.
可选地, 所述业务切换模块还设置成:  Optionally, the service switching module is further configured to:
其所在的节点为故障相邻节点时, 当所述链路状态改变为链路或节点出 现故障时, 将本节点的状态改变为倒换(Switch ) 态; 当所述链路状态改变 为链路或节点故障消失时, 将本节点的状态由 Switch态改变为空闲 (Idle ) 态;  When the node where the node is a faulty neighboring node, when the link state changes to a link or the node fails, the state of the node is changed to a switch state; when the link state changes to a link Or when the node fault disappears, change the state of the node from the Switch state to the idle state (Idle) state;
其所在的节点为故障相邻节点之外的节点时 , 当所述链路状态改变为链 路或节点出现故障时, 将本节点的状态改变为穿通(Pass through )态; 当所 述链路状态改变为链路或节点故障消失时, 将本节点的状态由 Pass through 态改变为 Idle态。  When the node where the node is a node other than the faulty neighboring node, when the link state changes to a link or the node fails, the state of the node is changed to a through state; when the link is When the state changes to a link or node failure, the state of the node is changed from the Pass through state to the Idle state.
一种节点, 该节点所在的环上配置有以环上业务的下环节点为目的节点 配置的基于共享路径的工作隧道, 以及与所述工作隧道相应的反向的封闭保 护隧道,该节点包括: 状态检测模块、状态通告模块及业务切换模块,其中: 所述状态检测模块设置成: 检测所述节点与相邻节点间的链路状态; 所述状态通告模块设置成: 在所述状态检测模块检测到所述链路状态改 变时, 发送状态改变通告报文给所述环上的其他节点; A node, where the ring is configured with a shared path-based working tunnel configured with a lower ring node serving as a destination node, and a reverse closed protection tunnel corresponding to the working tunnel, where the node includes a status detection module, a status notification module, and a service switching module, wherein: the status detection module is configured to: detect a link status between the node and an adjacent node; and the status notification module is configured to: detect the status When the module detects that the link state changes, the sending status change notification message is sent to other nodes on the ring;
所述业务切换模块设置成: 所述节点为故障相邻节点时, 根据接收到的 所述状态改变通告报文, 当获知所述链路状态由正常状态变为链路或节点出 现故障时, 将所述工作隧道上传送的发向故障点的业务切换到相应的所述封 闭保护隧道上, 将所述封闭保护隧道上传送的发向故障点的业务切换到相应 的所述工作隧道上; 所述节点为故障相邻节点之外的节点时, 对传送的业务 进行透传。 The service switching module is configured to: when the node is a faulty neighboring node, change the advertisement packet according to the received state, and when it is known that the link state changes from a normal state to a link or a node fails, Switching the service sent to the fault point transmitted on the working tunnel to the corresponding closed protection tunnel, and switching the service sent to the fault point on the closed protection tunnel to corresponding On the working tunnel; when the node is a node other than the faulty neighboring node, the transmitted service is transparently transmitted.
可选地, 所述业务切换模块还设置成:  Optionally, the service switching module is further configured to:
所述节点为故障相邻节点时, 根据接收到的所述状态改变通告报文, 当 获知所述链路状态改变为链路或节点故障消失时, 将切换到所述封闭保护隧 道上传送的业务重新恢复到所述工作隧道上。  When the node is a faulty neighboring node, the notification message is changed according to the received state, and when it is learned that the link state changes to a link or the node failure disappears, the switch is switched to the closed protection tunnel. The service is restored to the working tunnel.
可选地, 所述业务切换模块还设置成:  Optionally, the service switching module is further configured to:
所述节点为故障相邻节点时, 当所述链路状态改变为链路或节点出现故 障时, 将本节点的状态改变为倒换(Switch ) 态; 当所述链路状态改变为链 路或节点故障消失时, 将本节点的状态由 Switch态改变为空闲 (Idle ) 态; 所述节点为故障相邻节点之外的节点时, 当所述链路状态改变为链路或 节点出现故障时, 将本节点的状态改变为穿通(Pass through )态; 当所述链 路状态改变为链路或节点故障消失时, 将本节点的状态由 Pass through态改 变为 Idle态。  When the node is a faulty neighboring node, when the link state changes to a link or a node fails, the state of the node is changed to a switching state; when the link state changes to a link or When the node fault disappears, the state of the node is changed from the Switch state to the idle state (Idle) state; when the node is a node other than the faulty neighboring node, when the link state changes to a link or the node fails. , changing the state of the local node to a through state; when the link state changes to a link or a node failure disappears, changing the state of the local node from a Pass through state to an Idle state.
本发明实施例提出一种新的 WRAPPING 环网保护方案, 可应用于 MPLS/MPLS-TP环网, 通过在一个环上建立多个多点到点 (MP2P ) 的共享 路径, 每个共享路径上可以承载从环上一个或多个节点入环到同一个节点出 环的业务, 与相关技术相比, 避免环网隧道配置的复杂性, 提高了保护切换 的性能, 优化配置。 The embodiment of the invention provides a new WRAPPING ring network protection scheme, which can be applied to an MPLS/MPLS-TP ring network, by establishing multiple multi-point-to-point (MP2P) shared paths on one ring, on each shared path. It can carry services from one or more nodes on the ring to the ring of the same node. Compared with related technologies, it avoids the complexity of ring network tunnel configuration, improves the performance of protection switching, and optimizes configuration.
附图概述 BRIEF abstract
此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中:  The drawings are intended to provide a further understanding of the invention, and are intended to be illustrative of the invention. In the drawing:
图 1为根据相关技术的环网拓朴结构示意图;  1 is a schematic diagram of a topology of a ring network according to the related art;
图 2为本发明实施例的环网保护系统的组成模块示意图;  2 is a schematic diagram of component modules of a ring network protection system according to an embodiment of the present invention;
图 3为本发明实施例的故障状态保护示意图; 图 4为本发明实施例的故障消失切换示意图; 3 is a schematic diagram of fault state protection according to an embodiment of the present invention; 4 is a schematic diagram of a fault disappearing switch according to an embodiment of the present invention;
图 5为本发明实施例的环网保护过程流程示意图。  FIG. 5 is a schematic flowchart of a ring network protection process according to an embodiment of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
本实施方式提供了一种基于共享路径的环网隧道配置方法, 釆用如下技 术方案:  This embodiment provides a ring network tunnel configuration method based on a shared path, and uses the following technical solutions:
以环上业务的下环节点为目的节点配置基于共享路径的工作隧道, 以及 与该工作隧道相应的反向封闭保护隧道。  A working tunnel based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel are configured with the lower ring node of the ring service as the destination node.
其中, 环上业务即环网上的业务。  Among them, the business on the ring is the business on the ring network.
其中, 一个物理环网承载多个多点到点(MP2P )的共享路径, 所述的共 享路径承载从所述环上一个或多个节点到同一个目的节点的业务。  The physical ring network carries multiple multi-point-to-point (MP2P) shared paths, and the shared path carries services from one or more nodes on the ring to the same destination node.
可选地, 以环上业务的下环节点为目的节点配置基于共享路径的工作隧 道, 以及与该工作隧道相应的反向封闭保护隧道的步骤包括:  Optionally, the step of configuring the working tunnel based on the shared path with the lower ring node of the ring service as the destination node, and the reverse closed protection tunnel corresponding to the working tunnel include:
沿所述环的顺时针、和 /或逆时针方向从所述下环节点的相邻节点到所述 下环节点, 建立工作隧道;  Establishing a working tunnel from a neighboring node of the lower ring node to the lower ring node in a clockwise, and/or counterclockwise direction of the ring;
沿所述工作隧道的相反方向建立从所述下环节点到所述下环节点的封闭 保护隧道。  A closed protection tunnel from the lower ring node to the lower ring node is established in the opposite direction of the working tunnel.
基于上述的环网隧道配置方法, 本实施方式提供了一种基于共享路径的 环网保护方法, 釆用如下技术方案: Based on the above-mentioned ring network tunnel configuration method, the present embodiment provides a ring network protection method based on a shared path, and uses the following technical solutions:
步骤一, 对于环上业务的下环节点, 以每个下环节点为目的节点配置工 作隧道和封闭保护隧道。  Step 1: For the lower ring node of the service on the ring, configure a working tunnel and a closed protection tunnel with each lower ring node as the destination node.
其中, ^^如环上由 n个节点组成, 则对每个下环节点首先沿着环的顺时 针或逆时针方向从本节点的相邻节点到本节点的工作隧道(等同于路径) , 同时, 沿着工作隧道的相反方向建立一条封闭的保护隧道, 则至多共需要建 立 2N工作隧道和 2N保护隧道。  Where ^^, if the ring consists of n nodes, the working tunnel (equivalent to the path) from the neighboring node of the node to the local node in each of the lower ring nodes in the clockwise or counterclockwise direction of the ring, At the same time, a closed protection tunnel is established along the opposite direction of the working tunnel. At most, a 2N working tunnel and a 2N protection tunnel need to be established.
步骤二, 环上每段链路(即环上各节点分别检测与相邻两节点的链路状 态, 包括链路或节点是否出现故障)都启动故障检测, 当环上某一节点检测 到链路状态或对端节点的状态从正常状态变成故障状态时, 沿着环的远离故 障的方向, 向其他节点发送状态改变通告报文。 步骤三, 当环上其他节点接收到该状态改变通告报文后, 如果是故障相 邻节点, 则将工作隧道上所传送的发向故障点的业务, 包括: 单层标签的虚 拟专用网络( VPN, Virtual Private Network )业务、 多层标签的 LSP业务、 无标签的 IP或以太网 (Eth )业务, 切换到相应的封闭保护隧道上, 并将封 闭保护隧道上传送的发向故障点的业务切换到相应的工作隧道上; 而环上其 他节点则进行业务透明传送。 Step 2: Each link on the ring (that is, each node on the ring detects the link shape of the adjacent two nodes respectively) State, including whether the link or node is faulty, initiates fault detection. When a node on the ring detects the link state or the state of the peer node changes from the normal state to the fault state, the direction along the ring is far away from the fault. Send a status change notification message to other nodes. Step 3: After the other node on the ring receives the status change notification message, if it is a faulty neighboring node, the service sent to the fault point transmitted on the working tunnel includes: a virtual private network of a single layer label ( VPN, Virtual Private Network) service, multi-layer label LSP service, untagged IP or Ethernet (Eth) service, switch to the corresponding closed protection tunnel, and the service sent to the fault point transmitted on the closed protection tunnel Switch to the corresponding working tunnel; and other nodes on the ring perform transparent transmission of services.
步骤四, 当环上某一节点检测到链路状态或对端节点的状态从故障状态 变成正常状态时, 沿着环的远离原来故障的方向向其他节点发送状态改变通 告报文, 且故障相邻节点检测到环上故障消失或接收到故障状态消失的状态 改变通告报文时, 则在本节点上将从封闭保护隧道上发送或接收的业务恢复 到工作隧道上发送或接收。  Step 4: When a node on the ring detects the link state or the state of the peer node changes from the fault state to the normal state, the state change notification message is sent to the other node along the direction of the ring away from the original fault, and the fault occurs. When the neighboring node detects the state change notification message that the ring fault disappears or the fault state disappears, the neighbor node detects the traffic sent or received from the closed protection tunnel to the working tunnel for transmission or reception.
步骤五, 环上节点接收到该从故障状态变成正常状态的报文通告后, 则 环上所有节点都变成 Idle态; 且对于故障相邻节点来说, 则将保护隧道传送 的业务重新切换到工作隧道上传送, 防止数据的丟失。  Step 5: After receiving the packet notification from the fault state to the normal state, all the nodes on the ring become Idle state; and for the faulty neighboring node, the service transmitted by the protection tunnel is re-established. Switch to the working tunnel to prevent loss of data.
步骤六, 当入环的业务在工作隧道上传送时, 当在业务传送到工作隧道 上倒数第二跳时, 可以将外层隧道标签弹出 (PHP ) , 直接将被传送的业务 发送到业务的出环节点, 继续传送。  Step 6: When the incoming service is transmitted on the working tunnel, when the service is transmitted to the penultimate hop on the working tunnel, the outer tunnel label may be popped up (PHP), and the transmitted service is directly sent to the service. Exit the node and continue to transmit.
此外, 在上述步骤三的同时, 还包括以下处理步骤: 当环上节点检测到 故障或接收到环上其他节点发送给本节点的状态改变通告报文时 , 如果是故 障相邻节点, 则从 Idle态切换成倒换(Switch ) 态; 对于环上其他节点 (非 故障相邻节点) , 接收到该状态改变通告报文后, 则由空闲 (Idle ) 态变成 穿通 ( Pass through )状态。  In addition, in the foregoing step 3, the following processing steps are further included: when the ring node detects a fault or receives a state change notification message sent by the other node on the ring to the node, if it is a faulty neighbor node, then The Idle state is switched to the Switch state. For other nodes on the ring (non-fault neighbors), after receiving the state change notification message, the idle (Idle) state changes to the Pass through state.
为使本发明的目的、 技术方案和优点更加清楚明白, 下文中将结合附图 对本发明的实施例进行详细说明。 需要说明的是, 在不冲突的情况下, 本申 请中的实施例及实施例中的特征可以相互任意组合。 实施例一 In order to make the objects, the technical solutions and the advantages of the present invention more clearly, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other. Embodiment 1
本实施例提供了一种基于共享路径的环网隧道配置系统, 该系统主要包 括路径配置模块, 其中:  This embodiment provides a ring network tunnel configuration system based on a shared path, where the system mainly includes a path configuration module, where:
所述路径配置模块设置成: 以环上业务的下环节点为目的节点配置基于 共享路径的工作隧道, 以及与工作隧道相应的反向封闭保护隧道。  The path configuration module is configured to: configure a working tunnel based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel, with the lower ring node of the ring service as the destination node.
可选地, 上述的路径配置模块设置成按照以下方式以环上业务的下环节 点为目的节点配置基于共享路径的工作隧道, 以及与工作隧道相应的反向封 闭保护隧道:  Optionally, the path configuration module is configured to configure a working path based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel as the destination node of the ring service in the following manner:
沿所述环的顺时针、和 /或逆时针方向从所述下环节点的相邻节点到所述 节点, 建立工作隧道;  Establishing a working tunnel from a neighboring node of the lower ring node to the node in a clockwise, and/or counterclockwise direction of the ring;
沿所述工作隧道的相反方向建立从所述下环节点到所述下环节点的封闭 保护隧道。  A closed protection tunnel from the lower ring node to the lower ring node is established in the opposite direction of the working tunnel.
实施例二 Embodiment 2
如图 2所示, 本实施例提供的环网保护系统主要包括以下四个模块: 路 径配置模块 201、状态检测模块 202、状态通告模块 203和业务切换模块 204, 其中:  As shown in FIG. 2, the ring network protection system provided in this embodiment mainly includes the following four modules: a path configuration module 201, a status detection module 202, a status notification module 203, and a service switching module 204, where:
路径配置模块 201设置成: 以环上业务的每个下环节点为目的节点, 配 置一条从相邻节点沿着环的顺时针或逆时针方向到本下环节点上的工作隧道, 另外, 为该工作隧道配置一个方向相反的封闭环的保护隧道(下文中称作封 闭保护隧道) , 对该工作隧道进行保护。  The path configuration module 201 is configured to: use each lower ring node of the ring service as a destination node, and configure a working tunnel from the adjacent node along the clockwise or counterclockwise direction of the ring to the lower ring node, and The working tunnel is provided with a protective tunnel of a closed loop in the opposite direction (hereinafter referred to as a closed protective tunnel) to protect the working tunnel.
状态检测模块 202设置成: 通过环上两个直接相连接的相邻节点之间链 路层的故障检测报文, 检测该段链路的状态。  The state detecting module 202 is configured to: detect the state of the link by detecting a fault detection packet of the link layer between two directly connected adjacent nodes on the ring.
例如,通过检测连续性检测和连通性确认( CC&CV, Continuity Check and Connectivity Verification ) 双向转发检则 ( BFD , Bidirectional Forwarding Detection )报文等, 来检测链路状态。  For example, the link state is detected by detecting a continuity check and a continuity check (CC&CV, Continuity Check and Connectivity Verification) BFD (Bidirectional Forwarding Detection) message.
状态通告模块 203设置成: 当状态检测模块 202检测到链路状态发生改 变时(包括链路或节点故障) , 则产生一个状态改变通告报文, 沿着环上远 离故障的方向发送给环上节点, 直至到故障的下游节点; The status notification module 203 is configured to: when the status detection module 202 detects a change in the link status (including a link or node failure), generate a status change notification message, along the ring Sending to the ring node from the direction of the fault until it reaches the downstream node of the fault;
其中,状态改变通告报文, 包括但不限于: 环网自动保护切换(R-APS, The status change notification message includes but is not limited to: ring network automatic protection switching (R-APS,
Ring-Automatic Protection Switching )才艮文等。 Ring-Automatic Protection Switching).
业务切换模块 204设置成: 按照以下方式根据检测到链路状态发生变化 或者接收到其他节点发送过来的状态改变通告报文(如 R-APS等)后, 进行 业务的保护切换:  The service switching module 204 is configured to: perform protection switching of the service after the change of the link state is detected or the status change notification message (such as R-APS, etc.) sent by another node is received according to the following manner:
根据接收到的状态改变通告报文, 当获知链路状态改变为正常状态变为 链路或节点出现故障时, 故障相邻节点将工作隧道上传送的发向故障点的业 务切换到相应的封闭保护隧道上, 将封闭保护隧道上传送的发向故障点的业 务切换到相应的工作隧道上; 故障相邻节点之外的节点对传送的业务进行透 传;  When the notification message is changed according to the received status, when it is learned that the link status changes to the normal status and the link becomes a fault, the neighboring node switches the service sent to the fault point transmitted on the working tunnel to the corresponding closed. On the protection tunnel, the service sent to the fault point transmitted on the closed protection tunnel is switched to the corresponding working tunnel; the node other than the adjacent node of the fault transmits the transmitted service transparently;
根据接收到的状态改变通告报文, 当获知链路状态改变为链路或节点故 障消失时, 则故障相邻节点将切换到所述封闭保护隧道上传送的业务重新恢 复到所述工作隧道上。  Changing the advertisement message according to the received status, when it is learned that the link status changes to the link or the node failure disappears, the faulty neighboring node reverts the service transmitted to the closed protection tunnel to the working tunnel. .
此外, 业务切换模块 204还设置成: 进行本节点上状态的改变, 对于故 障相邻节点来说, 由 idle态变成 Switch态或者由 Swtich态变成 Idle态; 而 对于故障上非相邻节点来说, 则由 idle态变成 pass through状态或者由 pass through态变成 idle态。  In addition, the service switching module 204 is further configured to: perform a change of the state on the local node, and change from the idle state to the Switch state or from the Swtich state to the Idle state for the faulty neighboring node; In other words, it changes from the idle state to the pass through state or from the pass through state to the idle state.
其中, 当链路状态改变为链路或节点出现故障时, 故障相邻节点将本节 点的状态改变为 Switch态,故障相邻节点之外的节点将本节点的状态改变为 Pass through态;  When the link status changes to a link or a node fails, the neighboring node changes the state of the node to the switch state, and the node other than the adjacent node changes the state of the node to the Pass through state.
当链路状态改变为链路或节点故障消失时, 故障相邻节点将本节点的状 态由 Switch态改变为 Idle态; 故障相邻节点之外的节点将本节点的状态由 Pass through态改变为 Idle态。  When the link state changes to a link or a node failure disappears, the neighboring node changes the state of the node from the Switch state to the Idle state; the node other than the adjacent node changes the state of the node from the Pass through state to Idle state.
本发明实施例还提供了一种基于共享路径的环网保护系统,该系统包括: 路径配置模块、 状态检测模块、 状态通告模块及业务切换模块, 其中: The embodiment of the present invention further provides a ring network protection system based on a shared path, where the system includes: a path configuration module, a state detection module, a state notification module, and a service switching module, where:
所述路径配置模块设置成: 以环上业务的下环节点为目的节点配置基于 共享路径的工作隧道, 以及与所述工作隧道相应的反向的封闭保护隧道; 所述状态检测模块设置成: 检测其所在节点与相邻节点间的链路状态; 所述状态通告模块设置成: 在所述状态检测模块检测到所述链路状态改 变时, 发送状态改变通告报文给环上其他节点; The path configuration module is configured to: configure the lower node of the ring service as the destination node based on a working tunnel of the shared path, and a reverse closed protection tunnel corresponding to the working tunnel; the state detecting module is configured to: detect a link state between the node where the node is located and the neighboring node; And sending, by the state detecting module, the status change notification message to other nodes on the ring;
所述业务切换模块设置成: 其所在的节点为故障相邻节点时, 根据接收 到的所述状态改变通告报文, 当获知所述链路状态由正常状态变为链路或节 点出现故障时, 将所述工作隧道上传送的发向故障点的业务切换到相应的所 述封闭保护隧道上, 将所述封闭保护隧道上传送的发向故障点的业务切换到 相应的所述工作隧道上; 其所在的节点为故障相邻节点之外的节点时, 对传 送的业务进行透传。  The service switching module is configured to: when the node where the node is a faulty neighboring node, change the advertisement packet according to the received state, and when the link state is changed from the normal state to the link or the node fails, Switching the service sent to the fault point transmitted on the working tunnel to the corresponding closed protection tunnel, and switching the service sent to the fault point transmitted on the closed protection tunnel to the corresponding working tunnel When the node where the node is located is a node other than the adjacent node, the transmitted service is transparently transmitted.
可选地, 所述业务切换模块还设置成:  Optionally, the service switching module is further configured to:
其所在的节点为故障相邻节点时,根据接收到的所述状态改变通告报文, 当获知所述链路状态改变为链路或节点故障消失时, 将切换到所述封闭保护 隧道上传送的业务重新恢复到所述工作隧道上。  When the node where the node is located is a faulty neighboring node, the notification message is changed according to the received state, and when the link state is changed to a link or the node failure disappears, the switch is switched to the closed protection tunnel. The business is restored to the working tunnel.
可选地, 所述业务切换模块还设置成:  Optionally, the service switching module is further configured to:
其所在的节点为故障相邻节点时 , 当所述链路状态改变为链路或节点出 现故障时, 将本节点的状态改变为倒换(Switch ) 态; 当所述链路状态改变 为链路或节点故障消失时, 将本节点的状态由 Switch态改变为空闲 (Idle ) 态;  When the node where the node is a faulty neighboring node, when the link state changes to a link or the node fails, the state of the node is changed to a switch state; when the link state changes to a link Or when the node fault disappears, change the state of the node from the Switch state to the idle state (Idle) state;
其所在的节点为故障相邻节点之外的节点时 , 当所述链路状态改变为链 路或节点出现故障时, 将本节点的状态改变为穿通(Pass through )态; 当所 述链路状态改变为链路或节点故障消失时, 将本节点的状态由 Pass through 态改变为 Idle态。  When the node where the node is a node other than the faulty neighboring node, when the link state changes to a link or the node fails, the state of the node is changed to a through state; when the link is When the state changes to a link or node failure, the state of the node is changed from the Pass through state to the Idle state.
本发明实施例还提供了一种节点, 该节点所在的环上配置有以环上业务 的下环节点为目的节点配置的基于共享路径的工作隧道, 以及与所述工作隧 道相应的反向的封闭保护隧道, 该节点包括: 状态检测模块、 状态通告模块 及业务切换模块, 其中: 所述状态检测模块设置成: 检测所述节点与相邻节点间的链路状态; 所述状态通告模块设置成: 在所述状态检测模块检测到所述链路状态改 变时, 发送状态改变通告报文给所述环上的其他节点; The embodiment of the present invention further provides a node, where the ring where the node is located is configured with a shared path-based working tunnel configured by using a lower ring node of the ring service as a destination node, and a reversed corresponding to the working tunnel. A closed protection tunnel, the node includes: a state detection module, a state notification module, and a service switching module, where: The status detecting module is configured to: detect a link status between the node and a neighboring node; the status notification module is configured to: send a status change notification when the status detecting module detects the link status change The message is sent to other nodes on the ring;
所述业务切换模块设置成: 所述节点为故障相邻节点时, 根据接收到的 所述状态改变通告报文, 当获知所述链路状态由正常状态变为链路或节点出 现故障时, 将所述工作隧道上传送的发向故障点的业务切换到相应的所述封 闭保护隧道上, 将所述封闭保护隧道上传送的发向故障点的业务切换到相应 的所述工作隧道上; 所述节点为故障相邻节点之外的节点时, 对传送的业务 进行透传。  The service switching module is configured to: when the node is a faulty neighboring node, change the advertisement packet according to the received state, and when it is known that the link state changes from a normal state to a link or a node fails, Switching the service sent to the fault point transmitted on the working tunnel to the corresponding closed protection tunnel, and switching the service sent to the fault point transmitted on the closed protection tunnel to the corresponding working tunnel; When the node is a node other than the faulty neighboring node, the transmitted service is transparently transmitted.
可选地, 所述业务切换模块还设置成:  Optionally, the service switching module is further configured to:
所述节点为故障相邻节点时, 根据接收到的所述状态改变通告报文, 当 获知所述链路状态改变为链路或节点故障消失时, 将切换到所述封闭保护隧 道上传送的业务重新恢复到所述工作隧道上。  When the node is a faulty neighboring node, the notification message is changed according to the received state, and when it is learned that the link state changes to a link or the node failure disappears, the switch is switched to the closed protection tunnel. The service is restored to the working tunnel.
可选地, 所述业务切换模块还设置成:  Optionally, the service switching module is further configured to:
所述节点为故障相邻节点时, 当所述链路状态改变为链路或节点出现故 障时, 将本节点的状态改变为倒换(Switch ) 态; 当所述链路状态改变为链 路或节点故障消失时, 将本节点的状态由 Switch态改变为空闲 (Idle ) 态; 所述节点为故障相邻节点之外的节点时, 当所述链路状态改变为链路或 节点出现故障时, 将本节点的状态改变为穿通(Pass through )态; 当所述链 路状态改变为链路或节点故障消失时, 将本节点的状态由 Pass through态改 变为 Idle态。  When the node is a faulty neighboring node, when the link state changes to a link or a node fails, the state of the node is changed to a switching state; when the link state changes to a link or When the node fault disappears, the state of the node is changed from the Switch state to the idle state (Idle) state; when the node is a node other than the faulty neighboring node, when the link state changes to a link or the node fails. , changing the state of the local node to a through state; when the link state changes to a link or a node failure disappears, changing the state of the local node from a Pass through state to an Idle state.
下面将结合图 3和图 4所示网络的故障为例, 对本发明环网保护的具体 实施过程作更进一步详细说明。 The specific implementation process of the ring network protection of the present invention will be further described in detail below by taking the faults of the network shown in FIG. 3 and FIG. 4 as an example.
需要说明的是, 本发明的共享路径承载的业务可以是单层标签的 VPN 业务(L2/L3 VPN ) , 也可以是多层标签的 LSP 业务( IP-MPLS/MPLS-TP Tunnel等) , 甚至是无标签的 IP或 Eth业务。  It should be noted that the service carried by the shared path of the present invention may be a single-layer label VPN service (L2/L3 VPN) or a multi-layer label LSP service (IP-MPLS/MPLS-TP Tunnel, etc.), or even It is an unlabeled IP or Eth service.
针对环网业务来说, 其实现环网保护的主要过程包括如下步骤: 步骤 1 , 配置工作隧道和封闭保护隧道; For the ring network service, the main process of implementing ring network protection includes the following steps: Step 1: Configure a working tunnel and a closed protection tunnel;
以图 3中所示的网络中 D点来说, 4叚如其工作隧道配置成其逆时针方向 In the network shown in Figure 3, point D, 4, such as its working tunnel is configured to be counterclockwise
( C-B-A-F-E-D ) , 其所对应的保护隧道为 D-E-F-A-B-C-D封闭环。 或者, 也可以将工作隧道配置成顺时针方向 ( E-F-A-B-C-D ) , 其对应的保护隧道 为 D-C-B-A-F-E-D。 (C-B-A-F-E-D), the corresponding protective tunnel is D-E-F-A-B-C-D closed loop. Alternatively, the working tunnel can be configured in a clockwise direction (E-F-A-B-C-D), and the corresponding protection tunnel is D-C-B-A-F-E-D.
步骤 2, 支如由业务 1 ( LSP业务或 IP业务或 PW业务)和业务 2 ( LSP 业务, IP业务或 PW业务)分别从环上节点 A和 B进入环, 则在环上无故 障情况下, 业务 1和业务 2分别在 A和 B点上压入 ( PUSH )到同一工作隧 道上 C-B-A-F-E-D传送, 其封装后报文的格式如下表 1所示。  Step 2: If the service 1 (the LSP service or the IP service or the PW service) and the service 2 (the LSP service, the IP service, or the PW service) enter the ring from the nodes A and B on the ring respectively, the ring is fault-free. Service 1 and service 2 are pushed (PUSH) to the CBAFED on the same working tunnel at points A and B respectively. The format of the encapsulated message is shown in Table 1.
表 1 报文封装格式 Table 1 Packet encapsulation format
Tunnel Label (路径)  Tunnel Label (path)
LSP Label(IP Header,PW Label) PDU 其中, Tunnel Label:表示外层转发路径标签;  LSP Label (IP Header, PW Label) PDU, where Tunnel Label: indicates the outer forwarding path label;
LSP Label: 表示在进入环上, 该业务是 LSP业务, 则在入环节点上, 进 行 LSP标签交换( swap )后, 再压入外层隧道 Tunnel Label,在外层隧道上传 送;  LSP Label: Indicates that the service is an LSP service. After the LSP label is swapped, the LSP label is swapped into the outer tunnel and then uploaded to the outer tunnel.
IP Header: 表示当在入环节点上, 直接接入进来是 IP业务, 则直接将 IP 业务压入外层隧道 Tunnel Label,在外层隧道中传送;  IP Header: indicates that when the incoming link is an IP service, the IP service is directly pushed into the outer tunnel Tunnel Label and transmitted in the outer tunnel.
PW Label:表示在入环节点上,所接入是伪线仿真的业务(如: ATM, ETH, TDM等等) , 则在本入环节点进行本地业务处理(NSP )后, 打上相 应的 PW Label后, 再压入外层隧道 Tunnel Label, 在外层隧道上传送;  PW Label: indicates that the access to the pseudowire emulation service (such as ATM, ETH, TDM, etc.) on the ingress ring node, after the local service processing (NSP) is performed on the ingress ring node, the corresponding PW is applied. Label, then press into the outer tunnel Tunnel Label and transmit it on the outer tunnel;
PDU: 是指里面具体所封装的业务的内容。  PDU: refers to the content of the specific packaged service.
在环上节点只进行外层隧道标签的交换(swap )操作, 并在其出环节点 D上弹出外层标签 300后, 直接对里面的业务 1和业务 2业务进行相对应处 理; 若是 LSP业务来说, 则先弹出 (POP )外层 Tunnel label, 再进行里面 LSP Label交换(Swap )后出环; 若是 IP业务来说, 弹出( POP )外层 Tunnel Label后, 直接根据里面 IP Header包头上信息, 进行出环处理; 若是 PW业 务来说, 则先弹出 (POP )外层 Tunnel Label后, 再弹出 (POP ) PW Label 后, 根据 PW Label进行仿真业务的封装等处理, 再出环操作。 The node on the ring only performs the swap operation of the outer tunnel label, and after the outer label 300 is popped up on the outgoing node D, the corresponding service 1 and service 2 services are directly processed; if the LSP service is In other words, first pop up (POP) the outer Tunnel label, then inside After the LSP Label Exchange (Swap) is exported, if the IP service is used, the outer label of the POP is popped up, and the information is sent out according to the information on the header of the IP Header. If it is a PW service, it will pop up first. POP) After the outer tunnel label is popped up, the PW Label is popped up, and the emulation service is encapsulated and processed according to the PW Label.
步骤 3 ,当环上节点 E或 F检测到链路或节点故障时(故障节点 E或 F ), 则将该工作隧道上的所有传送的业务(如业务 1 , 业务 2等)切换到保护隧 道(D-E-F-A-B-C-D )上传送; 并将生成状态改变通告报文(如 R-APS等) 沿着环的远离故障的方向发送给环上其他节点。  Step 3: When the link E or F on the ring detects a link or node failure (fault node E or F), all the transmitted services (such as service 1, service 2, etc.) on the working tunnel are switched to the protection tunnel. (DEFABCD) is transmitted; and a status change notification message (such as R-APS, etc.) is generated and sent to other nodes on the ring along the direction of the ring away from the fault.
步骤 4, 当环上其他节点接收到状态改变通告报文时, 对于非故障相邻 节点来说, 则将其从 IDLE态变成 pass through状态; 而对于故障对端节点则 从 idle态变成 Switching态。  Step 4: When other nodes on the ring receive the state change notification message, the non-fault neighboring node changes from the IDLE state to the pass through state; and the faulty peer node changes from the idle state to the idle state. Switching state.
所以, 业务 1和业务 2业务从节点 A和 B进入环上,先压入到工作隧道 C-B-A-F-E-D传送; 当传送到节点 F上时, 则切换到保护隧道上, 将原来工 作隧道标签 100交换( Swap )到保护隧道标签 101 ,压入保护隧道 F-A-B-C-D-E, 传送到节点 E后, 将保护隧道标签 301又交换成工作隧道标签 300, 重新压 入到工作隧道传送, 直至到达其环出节点 D,弹出外层工作隧道标签 300后, 直接对里面的业务 1和业务 2业务等进行处理。  Therefore, the service 1 and service 2 services enter the ring from nodes A and B, and are first pushed to the working tunnel CBAFED for transmission; when transmitted to the node F, they are switched to the protection tunnel, and the original working tunnel label 100 is exchanged (Swap After the protection tunnel label 101 is pushed into the protection tunnel FABCDE, and transmitted to the node E, the protection tunnel label 301 is exchanged into the working tunnel label 300, and is again pushed into the working tunnel to be transmitted until it reaches the ring-out node D, and pops up. After the layer operates the tunnel label 300, the service 1 and the service 2 are directly processed.
步骤 5, 当环上故障消失时, 如图 4所示, F和 E之间链路故障消失, 当节点 F或 E检测到故障消失时, 则 F或 E从 Switching状态变成 Idle , 并 将保护隧道上 D-E-F-A-B-C-D上又重新恢复到工作隧道上 C-B-A-F-E-D传送; 同时, 检测到状态改变的节点 E或 F, 还将生成一个故障消失的状态改变通 告报文, 沿着环上远离故障的方向, 发送给环上其他节点。  Step 5: When the fault on the ring disappears, as shown in Figure 4, the link fault between F and E disappears. When node F or E detects that the fault disappears, F or E changes from Switching state to Idle, and The DEFABCD on the protection tunnel is restored to the CBAFED transmission on the working tunnel. At the same time, the node E or F that detects the state change will also generate a status change notification message with the fault disappearing, and send it along the ring away from the fault. Give other nodes on the ring.
步骤 6, 当环上其他节点接收到该故障消失的状态改变通告报文, 则将 原来的 Switching和 Pass Through状态改变成 Idle状态; 且在 E或 F节点上 也将原来保护隧道上传送业务也重新切换工作隧道上传送。  Step 6: When other nodes on the ring receive the status change notification message that the fault disappears, the original Switching and Pass Through states are changed to the Idle state; and the original protected tunnel is also transmitted on the E or F node. Re-switch the transfer on the working tunnel.
步骤 7,而对于业务 1和业务 2来说,又重新压入其工作隧道 C-B-A-F-E-D, 传送到其出环节点 D后, 弹出外层工作隧道标签 300后, 再根据里面的业务 1和业务 2业务进行处理。 图 5示出了本发明实施例的环网保护方法的处理流程, 如图 5所示, 该 流程包括: In step 7, for service 1 and service 2, the work tunnel CBAFED is re-pressed, and after it is transmitted to its exit node D, the outer working tunnel label 300 is popped up, and then according to the service 1 and service 2 services therein. Process it. FIG. 5 is a flowchart showing a processing procedure of a ring network protection method according to an embodiment of the present invention. As shown in FIG. 5, the process includes:
步骤 101 , 以环上业务的下环节点 (也称作出节点)为目的节点配置工 作隧道和封闭保护隧道。  Step 101: Configure a working tunnel and a closed protection tunnel as a destination node of the ring service (also referred to as an egress node) of the ring service.
步骤 102, 每段链路上定期发送故障检测报文。  Step 102: A fault detection packet is periodically sent on each link.
步骤 103 , 判断是否检测到链路状态改变, 如果是, 则执行步骤 104, 否 则, 执行步骤 105。  Step 103: Determine whether a link state change is detected. If yes, go to step 104. Otherwise, go to step 105.
步骤 104, 立即生成状态改变通告报文, 发送给环上其他节点。  Step 104: Immediately generate a state change notification message and send it to other nodes on the ring.
步骤 105 , 周期性发送状态通告报文。  Step 105: Periodically send a status advertisement message.
步骤 106, 环上节点检测到或接收到其他状态改变通告报文。  Step 106: The node on the ring detects or receives another status change notification message.
步骤 107 , 判断链路状态改变是否由正常状态变为故障状态, 如果是, 则执行步骤 108, 否则, 执行步骤 109。  Step 107: Determine whether the link state change changes from the normal state to the fault state. If yes, go to step 108. Otherwise, go to step 109.
步骤 108,各节点设置为 Switching或 Pass through态,并执行步骤 110。 步骤 109, 各节点设置为 Idle态。  In step 108, each node is set to the Switching or Pass through state, and step 110 is performed. In step 109, each node is set to the Idle state.
步骤 110, 进行业务传送隧道的切换。  Step 110: Perform a handover of a service delivery tunnel.
以上仅为本发明的优选实施案例而已, 并不用于限制本发明, 本发明还 可有其他多种实施例, 在不背离本发明精神及其实质的情况下, 熟悉本领域 的技术人员可根据本发明做出各种相应的改变和变形, 但这些相应的改变和 变形都应属于本发明所附的权利要求的保护范围。 The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention. The present invention may be embodied in various other embodiments without departing from the spirit and scope of the invention. Various changes and modifications may be made to the invention, and such changes and modifications are intended to be included within the scope of the appended claims.
显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并 且在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者 将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作 成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件 结合。 Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any particular hardware and software. Combine.
工业实用性 Industrial applicability
本发明实施例提出一种新的 WRAPPING 环网保护方案, 可应用于 MPLS/MPLS-TP环网, 通过在一个环上建立多个多点到点 (MP2P ) 的共享 路径, 每个共享路径上可以承载从环上一个或多个节点入环到同一个节点出 环的业务, 与相关技术相比, 避免环网隧道配置的复杂性, 提高了保护切换 的性能, 优化配置。 因此本发明具有很强的工业实用性。  The embodiment of the invention provides a new WRAPPING ring network protection scheme, which can be applied to an MPLS/MPLS-TP ring network, by establishing multiple multi-point-to-point (MP2P) shared paths on one ring, on each shared path. It can carry services from one or more nodes on the ring to the ring of the same node. Compared with related technologies, it avoids the complexity of ring network tunnel configuration, improves the performance of protection switching, and optimizes configuration. Therefore, the present invention has strong industrial applicability.

Claims

权 利 要 求 书 Claim
1、 一种基于共享路径的环网隧道配置方法, 包括:  A method for configuring a ring network tunnel based on a shared path, including:
以环上业务的下环节点为目的节点配置基于共享路径的工作隧道, 以及 与所述工作隧道相应的反向的封闭保护隧道。  A working tunnel based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel are configured with the lower ring node of the ring service as the destination node.
2、 如权利要求 1所述的环网隧道配置方法, 其中:  2. The ring network tunnel configuration method according to claim 1, wherein:
承载所述共享路径的物理环网承载多个多点到点 ( MP2P ) 的共享路径, 所述共享路径承载从所述环上一个或多个节点到同一个目的节点的业务。  The physical ring network carrying the shared path carries a plurality of multi-point to point (MP2P) shared paths, the shared paths carrying services from one or more nodes on the ring to the same destination node.
3、如权利要求 1或 2所述的环网隧道配置方法, 其中, 以环上业务的下 环节点为目的节点配置基于共享路径的工作隧道, 以及与所述工作隧道相应 的反向封闭保护隧道的步骤包括:  The method for configuring a ring network tunnel according to claim 1 or 2, wherein the working node based on the shared path is configured as a destination node of the ring service, and the reverse closed protection corresponding to the working tunnel The steps of the tunnel include:
沿所述环的顺时针、和 /或逆时针方向从所述下环节点的相邻节点到所述 下环节点, 建立所述工作隧道;  Establishing the working tunnel from a neighboring node of the lower ring node to the lower ring node in a clockwise and/or counterclockwise direction of the ring;
沿所述工作隧道的相反方向建立从所述下环节点到所述下环节点的所述 封闭保护隧道。  The closed protection tunnel from the lower ring node to the lower ring node is established in the opposite direction of the working tunnel.
4、 一种基于共享路径的环网保护方法, 该方法包括:  4. A ring network protection method based on a shared path, the method comprising:
以环上业务的下环节点为目的节点配置基于共享路径的工作隧道, 以及 与所述工作隧道相应的反向的封闭保护隧道;  Configuring a working tunnel based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel, with the lower ring node of the ring service as the destination node;
所述环上的各节点检测与相邻节点间的链路状态, 在检测到链路状态改 变时, 发送状态改变通告报文给所述环上的其他节点;  Each node on the ring detects a link state with the neighboring node, and when the link state change is detected, sends a state change notification message to other nodes on the ring;
当所述链路状态改变为链路或节点出现故障时, 故障相邻节点将所述工 作隧道上传送的发向故障点的业务切换到相应的所述封闭保护隧道上, 将所 述封闭保护隧道上传送的发向故障点的业务切换到相应的所述工作隧道上; 故障相邻节点之外的节点对传送的业务进行透传。  When the link state changes to a link or a node fails, the faulty neighboring node switches the service sent to the fault point transmitted on the working tunnel to the corresponding closed protection tunnel, and the closed protection is performed. The traffic sent to the fault point transmitted on the tunnel is switched to the corresponding working tunnel; the node other than the neighboring node is transparently transmitted to the transmitted service.
5、 如权利要求 4所述的环网保护方法, 该方法还包括:  5. The ring network protection method according to claim 4, further comprising:
当所述链路状态改变为链路或节点故障消失时, 故障相邻节点将切换到 所述封闭保护隧道上传送的业务重新恢复到所述工作隧道上。  When the link state changes to a link or a node failure disappears, the failed neighboring node reverts to the service transmitted on the closed protection tunnel and resumes to the working tunnel.
6、 如权利要求 4或 5所述的环网保护方法, 该方法还包括: 当所述链路状态改变为链路或节点出现故障时, 故障相邻节点将本节点 的状态改变为倒换(Switch ) 态, 故障相邻节点之外的节点将本节点的状态 改变为穿通 ( Pass through ) 态; 6. The ring network protection method according to claim 4 or 5, further comprising: When the link state changes to a link or a node fails, the neighboring node changes the state of the node to a switch state, and the node other than the adjacent node changes the state of the node to punch-through ( Pass through
当所述链路状态改变为链路或节点故障消失时, 故障相邻节点将本节点 的状态由 Switch态改变为空闲 (Idle ) 态; 故障相邻节点之外的节点将本节 点的^ 态由 Pass through态改变为 Idle态。  When the link state changes to a link or a node failure disappears, the neighboring node changes the state of the node from the Switch state to the idle state (Idle) state; the node other than the adjacent node of the fault changes the state of the node. Changed from the Pass through state to the Idle state.
7、 如权利要求 4或 5所述的环网保护方法, 该方法还包括:  The ring network protection method according to claim 4 or 5, further comprising:
业务报文在上环转发时釆用压入(PUSH ) 环网隧道标签堆栈方式, 包 括: 根据所述下环节点和工作隧道的运行方向压入(PUSH ) 所述共享路径 的隧道标签, 沿着环网进行转发, 所述下环节点弹出 (POP )所述隧道标签 进行业务下环。  When the service packet is forwarded on the upper ring, the push-to-press (PUSH) ring network tunnel label stack mode is adopted, including: pressing (PUSH) the tunnel label of the shared path according to the running direction of the lower ring node and the working tunnel, along the The ring network forwards the packet, and the lower ring node pops up (POP) the tunnel label to perform service ringing.
8、 如权利要求 6所述的环网保护方法, 其中: 8. The ring network protection method according to claim 6, wherein:
承载所述共享路径的物理环网承载多个多点到点 ( MP2P ) 的共享路径, 所述共享路径承载从所述环上一个或多个节点到同一个目的节点的业务; 其中,所述共享路径承载的业务包括:单层标签的虚拟专用网络( VPN ) 业务、 多层标签的标签交换路径(LSP )业务、 无标签的 IP或以太网 (Eth ) 业务。  The physical ring network carrying the shared path carries a plurality of multi-point-to-point (MP2P) shared paths, the shared path carrying services from one or more nodes on the ring to the same destination node; Services carried by the shared path include: virtual private network (VPN) services for single-layer labels, label switched path (LSP) services for multi-layer labels, and untagged IP or Ethernet (Eth) services.
9、 如权利要求 8所述的环网保护方法, 其中:  9. The ring network protection method according to claim 8, wherein:
所述工作隧道支持倒数第二跳弹出 (PHP ) 。  The working tunnel supports a penultimate hop pop (PHP).
10、一种基于共享路径的环网隧道配置系统,包括路径配置模块,其中: 所述路径配置模块设置成: 以环上业务的下环节点为目的节点配置基于 共享路径的工作隧道, 以及与所述工作隧道相应的反向的封闭保护隧道。  A ring network tunnel configuration system based on a shared path, comprising a path configuration module, wherein: the path configuration module is configured to: configure a work tunnel based on a shared path with a lower ring node of the ring service as a destination node, and The working tunnel corresponds to a corresponding closed closed protection tunnel.
11、如权利要求 10所述的环网隧道配置系统, 其中, 所述路径配置模块 设置成按照以下方式以环上业务的下环节点为目的节点配置基于共享路径的 工作隧道, 以及与所述工作隧道相应的反向的封闭保护隧道:  The ring network tunnel configuration system according to claim 10, wherein the path configuration module is configured to configure a working path based on the shared path with the lower ring node of the ring service as the destination node, and The corresponding reverse closed protection tunnel of the working tunnel:
沿所述环的顺时针、和 /或逆时针方向从所述下环节点的相邻节点到所述 节点, 建立所述工作隧道; 沿所述工作隧道的相反方向建立从所述下环节点到所述下环节点的所述 封闭保护隧道。 Establishing the working tunnel from a neighboring node of the lower ring node to the node in a clockwise, and/or counterclockwise direction of the ring; The closed protection tunnel from the lower ring node to the lower ring node is established in the opposite direction of the working tunnel.
12、 一种基于共享路径的环网保护系统, 该系统包括: 路径配置模块、 状态检测模块、 状态通告模块及业务切换模块, 其中:  12. A ring network protection system based on a shared path, the system comprising: a path configuration module, a state detection module, a status notification module, and a service switching module, wherein:
所述路径配置模块设置成: 以环上业务的下环节点为目的节点配置基于 共享路径的工作隧道, 以及与所述工作隧道相应的反向的封闭保护隧道; 所述状态检测模块设置成: 检测其所在节点与相邻节点间的链路状态; 所述状态通告模块设置成: 在所述状态检测模块检测到所述链路状态改 变时, 发送状态改变通告报文给环上其他节点;  The path configuration module is configured to: configure a working tunnel based on the shared path and a reverse closed protection tunnel corresponding to the working tunnel by using the lower ring node of the ring service as the destination node; the state detecting module is configured to: Detecting the link state between the node and the neighboring node; the state notification module is configured to: when the state detecting module detects the link state change, send the state change notification message to other nodes on the ring;
所述业务切换模块设置成: 其所在的节点为故障相邻节点时, 根据接收 到的所述状态改变通告报文, 当获知所述链路状态由正常状态变为链路或节 点出现故障时, 将所述工作隧道上传送的发向故障点的业务切换到相应的所 述封闭保护隧道上, 将所述封闭保护隧道上传送的发向故障点的业务切换到 相应的所述工作隧道上; 其所在的节点为故障相邻节点之外的节点时, 对传 送的业务进行透传。  The service switching module is configured to: when the node where the node is a faulty neighboring node, change the advertisement packet according to the received state, and when the link state is changed from the normal state to the link or the node fails, Switching the service sent to the fault point transmitted on the working tunnel to the corresponding closed protection tunnel, and switching the service sent to the fault point transmitted on the closed protection tunnel to the corresponding working tunnel When the node where the node is located is a node other than the adjacent node, the transmitted service is transparently transmitted.
13、如权利要求 12所述的环网保护系统, 其中, 所述业务切换模块还设 置成:  The ring network protection system according to claim 12, wherein the service switching module is further configured to:
其所在的节点为故障相邻节点时,根据接收到的所述状态改变通告报文, 当获知所述链路状态改变为链路或节点故障消失时, 将切换到所述封闭保护 隧道上传送的业务重新恢复到所述工作隧道上。  When the node where the node is located is a faulty neighboring node, the notification message is changed according to the received state, and when the link state is changed to a link or the node failure disappears, the switch is switched to the closed protection tunnel. The business is restored to the working tunnel.
14、如权利要求 13所述的环网保护系统, 其中, 所述业务切换模块还设 置成:  The ring network protection system according to claim 13, wherein the service switching module is further configured to:
其所在的节点为故障相邻节点时 , 当所述链路状态改变为链路或节点出 现故障时, 将本节点的状态改变为倒换(Switch ) 态; 当所述链路状态改变 为链路或节点故障消失时, 将本节点的状态由 Switch态改变为空闲 (Idle ) 态;  When the node where the node is a faulty neighboring node, when the link state changes to a link or the node fails, the state of the node is changed to a switch state; when the link state changes to a link Or when the node fault disappears, change the state of the node from the Switch state to the idle state (Idle) state;
其所在的节点为故障相邻节点之外的节点时 , 当所述链路状态改变为链 路或节点出现故障时, 将本节点的状态改变为穿通(Pass through )态; 当所 述链路状态改变为链路或节点故障消失时, 将本节点的状态由 Pass through 态改变为 Idle态。 When the node where the node is a node other than the faulty neighboring node, when the link state changes to a link or the node fails, the state of the node is changed to a through state; When the link status changes to a link or node failure, the state of the node is changed from the Pass through state to the Idle state.
15、 一种节点, 该节点所在的环上配置有以环上业务的下环节点为目的 节点配置的基于共享路径的工作隧道, 以及与所述工作隧道相应的反向的封 闭保护隧道, 该节点包括: 状态检测模块、 状态通告模块及业务切换模块, 其中:  A node, where the ring on which the node is located is configured with a shared path-based working tunnel configured with a lower ring node serving as a destination node, and a reverse closed protection tunnel corresponding to the working tunnel, The node includes: a status detection module, a status notification module, and a service switching module, where:
所述状态检测模块设置成: 检测所述节点与相邻节点间的链路状态; 所述状态通告模块设置成: 在所述状态检测模块检测到所述链路状态改 变时, 发送状态改变通告报文给所述环上的其他节点;  The status detecting module is configured to: detect a link status between the node and a neighboring node; the status notification module is configured to: send a status change notification when the status detecting module detects the link status change The message is sent to other nodes on the ring;
所述业务切换模块设置成: 所述节点为故障相邻节点时, 根据接收到的 所述状态改变通告报文, 当获知所述链路状态由正常状态变为链路或节点出 现故障时, 将所述工作隧道上传送的发向故障点的业务切换到相应的所述封 闭保护隧道上, 将所述封闭保护隧道上传送的发向故障点的业务切换到相应 的所述工作隧道上; 所述节点为故障相邻节点之外的节点时, 对传送的业务 进行透传。  The service switching module is configured to: when the node is a faulty neighboring node, change the advertisement packet according to the received state, and when it is known that the link state changes from a normal state to a link or a node fails, Switching the service sent to the fault point transmitted on the working tunnel to the corresponding closed protection tunnel, and switching the service sent to the fault point transmitted on the closed protection tunnel to the corresponding working tunnel; When the node is a node other than the faulty neighboring node, the transmitted service is transparently transmitted.
16、 如权利要求 15所述的节点, 其中, 所述业务切换模块还设置成: 所述节点为故障相邻节点时, 根据接收到的所述状态改变通告报文, 当 获知所述链路状态改变为链路或节点故障消失时, 将切换到所述封闭保护隧 道上传送的业务重新恢复到所述工作隧道上。  The node according to claim 15, wherein the service switching module is further configured to: when the node is a faulty neighboring node, change the notification message according to the received state, when the link is known When the state changes to a link or a node failure disappears, the traffic transferred to the closed protection tunnel is restored to the working tunnel.
17、 如权利要求 16所述的节点, 其中, 所述业务切换模块还设置成: 所述节点为故障相邻节点时, 当所述链路状态改变为链路或节点出现故 障时, 将本节点的状态改变为倒换(Switch ) 态; 当所述链路状态改变为链 路或节点故障消失时, 将本节点的状态由 Switch态改变为空闲 (Idle ) 态; 所述节点为故障相邻节点之外的节点时, 当所述链路状态改变为链路或 节点出现故障时, 将本节点的状态改变为穿通(Pass through )态; 当所述链 路状态改变为链路或节点故障消失时, 将本节点的状态由 Pass through态改 变为 Idle态。  The node according to claim 16, wherein the service switching module is further configured to: when the node is a faulty neighboring node, when the link state changes to a link or a node fails, The state of the node is changed to the switch state; when the link state changes to the link or the node fault disappears, the state of the node is changed from the switch state to the idle state (Idle state); When a node other than the node changes to a link or a node fails, the state of the node is changed to a through state; when the link state changes to a link or node failure When it disappears, the state of the node is changed from the Pass through state to the Idle state.
PCT/CN2012/077223 2011-07-15 2012-06-20 Share-path-based ring network tunnel configuration method, ring network protection method and system WO2013010422A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110198332.1 2011-07-15
CN201110198332.1A CN102882780B (en) 2011-07-15 2011-07-15 Looped network tunnel configuration method based on overlapping trees, ring network protection method and system

Publications (1)

Publication Number Publication Date
WO2013010422A1 true WO2013010422A1 (en) 2013-01-24

Family

ID=47483931

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/077223 WO2013010422A1 (en) 2011-07-15 2012-06-20 Share-path-based ring network tunnel configuration method, ring network protection method and system

Country Status (2)

Country Link
CN (1) CN102882780B (en)
WO (1) WO2013010422A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2955877B1 (en) * 2013-02-05 2018-05-02 China Mobile Communications Corporation Point to multi-point ring network protection method and device

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660501A (en) * 2013-11-25 2015-05-27 中兴通讯股份有限公司 Shared protection method, device and system
CN105099748A (en) * 2014-05-23 2015-11-25 中兴通讯股份有限公司 Method and system for migrating business tunnel
CN105207871B (en) * 2014-06-25 2020-07-31 南京中兴软件有限责任公司 Double-cut ring network protection method and device
US9692693B2 (en) * 2014-06-30 2017-06-27 Juniper Networks, Inc. Bandwidth control for ring-based multi-protocol label switched paths
US9729455B2 (en) * 2014-06-30 2017-08-08 Juniper Networks, Inc. Multi-protocol label switching rings
US10218611B2 (en) 2014-06-30 2019-02-26 Juniper Networks, Inc. Label distribution protocol (LDP) signaled multi-protocol label switching rings
CN105591898A (en) * 2014-10-21 2016-05-18 中兴通讯股份有限公司 Tunnel protection method and tunnel protection device based on shared tunnels
US11233748B1 (en) 2018-08-30 2022-01-25 Juniper Networks, Inc. Bandwidth management for resource reservation label switched path of a ring network
CN109462500B (en) * 2018-10-26 2020-09-18 江西山水光电科技股份有限公司 Packet transport network PTN equipment looped network protection method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001078276A1 (en) * 2000-04-10 2001-10-18 Appian Communications, Inc. Data protection in a ring network
US20070025729A1 (en) * 2004-12-10 2007-02-01 Chris Barnard Reconfigurable multichannel (WDM) optical ring network with optical shared protection
CN101877665A (en) * 2009-04-29 2010-11-03 华为技术有限公司 Ring network protecting method, network node and ring network
CN102014011A (en) * 2009-09-04 2011-04-13 中兴通讯股份有限公司 Method and system for protecting looped network
CN102035712A (en) * 2009-09-29 2011-04-27 华为技术有限公司 Multiprotocol label exchanged ring network protection method, device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7545735B1 (en) * 2003-03-11 2009-06-09 Atrica Israel Ltd. Scalable protection mechanism for hierarchical multicast service in ring based networks
CN101316212A (en) * 2008-07-07 2008-12-03 华为技术有限公司 Looped network failure processing method, looped network and operator backbone equipment
CN101431459B (en) * 2008-12-17 2011-05-04 烽火通信科技股份有限公司 Looped network protection method for transmitting multiprotocol label switching network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001078276A1 (en) * 2000-04-10 2001-10-18 Appian Communications, Inc. Data protection in a ring network
US20070025729A1 (en) * 2004-12-10 2007-02-01 Chris Barnard Reconfigurable multichannel (WDM) optical ring network with optical shared protection
CN101877665A (en) * 2009-04-29 2010-11-03 华为技术有限公司 Ring network protecting method, network node and ring network
CN102014011A (en) * 2009-09-04 2011-04-13 中兴通讯股份有限公司 Method and system for protecting looped network
CN102035712A (en) * 2009-09-29 2011-04-27 华为技术有限公司 Multiprotocol label exchanged ring network protection method, device and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2955877B1 (en) * 2013-02-05 2018-05-02 China Mobile Communications Corporation Point to multi-point ring network protection method and device

Also Published As

Publication number Publication date
CN102882780A (en) 2013-01-16
CN102882780B (en) 2016-09-28

Similar Documents

Publication Publication Date Title
WO2013010422A1 (en) Share-path-based ring network tunnel configuration method, ring network protection method and system
WO2019105066A1 (en) Route processing method and apparatus, and data transmission method and apparatus
US8325611B2 (en) Scaling OAM for point-to-point trunking
JP5484590B2 (en) Method, device and system for processing service traffic based on pseudowire
US9509591B2 (en) Technique for dual homing interconnection between communication networks
EP3151485A1 (en) Egress node protection in evpn all-active topology
EP3148127A1 (en) Egress protection for bum traffic with link failures in evpn
AU2011306508B2 (en) Method and apparatus to improve LDP convergence using hierarchical label stacking
CN100459531C (en) Method for notifying pseudo-lines fault based on bidirectional transmission detecting protocol
CN109672619A (en) A kind of method, equipment and system handling message
WO2012028029A1 (en) Switching method and system
WO2013010423A1 (en) Shared path-based ring network tunnel configuration method, and service switching method and system
WO2013190527A1 (en) Internetworking and failure recovery in unified mpls and ip networks
WO2016034127A1 (en) System and method for achieving dual-node interconnection pseudo-wire
WO2012171378A1 (en) Method and router for preventing flow interruption caused by failover from vpls to l3
CN102437919B (en) Access router and link reliability protection method
WO2013049981A1 (en) Hybrid ring network protection method and system based on shared path
WO2015154603A1 (en) Tunnel protecting method and device based on shared tunnel
CN104702498B (en) A kind of method and device reducing equipment room light connects quantity by harmonious protection
WO2011131069A1 (en) Binding links detection method and distributed device
WO2012146097A1 (en) Vpls network and ethernet ring switching method and device
US9515923B2 (en) Method and device for processing interconnected ring in multi-protocol label switching
US20120269056A1 (en) Method, device, and system for protecting semi-ring network
WO2016090815A1 (en) Switching control method and device in deploying high-capacity service
WO2011011934A1 (en) Method and apparatus for ethernet tunnel segmentation protection

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: 12814429

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: 12814429

Country of ref document: EP

Kind code of ref document: A1