WO2017107482A1 - Network protection method and device - Google Patents

Network protection method and device Download PDF

Info

Publication number
WO2017107482A1
WO2017107482A1 PCT/CN2016/091577 CN2016091577W WO2017107482A1 WO 2017107482 A1 WO2017107482 A1 WO 2017107482A1 CN 2016091577 W CN2016091577 W CN 2016091577W WO 2017107482 A1 WO2017107482 A1 WO 2017107482A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
protection
path
working path
service
Prior art date
Application number
PCT/CN2016/091577
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 WO2017107482A1 publication Critical patent/WO2017107482A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a network protection method and apparatus.
  • the current network protection switching mechanism for major applications includes automatic protection switching (APS) and linear APS, and both protection switching mechanisms are used.
  • APS automatic protection switching
  • linear APS linear APS
  • signal fail, SF signal fail, SF
  • the fault elimination is not synchronized, that is, only one-way SF is eliminated, the service is interrupted, and the service is the longest.
  • the interruption time can reach 5 seconds.
  • the present application provides a network protection method and apparatus to reduce the service interruption problem caused by the non-synchronization of the two-way signal failure in the service transmission path of the network system.
  • the application provides a network protection method, where the method includes:
  • a bidirectional signal failure SF When a working path of communication between the first node of the ring network and the second node adjacent to the first node occurs a bidirectional signal failure SF, causing the transmission path of the service traffic to be switched from the working path to the protection path, if On the working path, a third node to a fourth node adjacent to the third node generates SF or signal degradation SD, and on the working path, from the second node to the first node When the SF is removed, the first node does not receive the ring network automatic protection switching APS packet sent by the second node from the working path, and determines that the first node to the working path The SF in the direction of the second node is not eliminated, and the service traffic is kept transmitted through the protection path;
  • the service traffic is transmitted through the first node, the second node, the third node, and the fourth node on the working path.
  • the default is The SF in the working path from the first node to the second node direction is not eliminated.
  • the state machine of the first node is prevented from responding to the high priority switching request sent by the fourth node while waiting for the recovery time period, thereby avoiding using the working path of the possible SF for the service transmission path.
  • the service interruption problem caused by the unsynchronized two-way SF elimination in the network transmission is effectively reduced, and the reliability of the network service transmission is improved.
  • the maintaining the service traffic is transmitted by using the protection path, where: when the first node does not receive the APS packet sent by the second node from the working path, The state machine switching state of the first node remains unchanged.
  • the state machine switching state of the first node remains unchanged, that is, the first node does not respond to the switching request sent by the fourth node, and the switching request sent by the fourth node has a higher priority than the first node.
  • the state priority of the node is the state priority of the node.
  • the state machine of the first node can continue to wait for the recovery of the WTR state, and therefore, the transmission path of the service is not switched to the work that may still have a signal failure.
  • the path reduces the problem of service interruption and improves the stability of service transmission.
  • the present application provides another network protection method, where the method includes:
  • a bidirectional signal failure occurs in a protection path between the first node and the second node.
  • SF when traffic is transmitted on the working path; if the SF on the protection path from the second node to the first node is eliminated, and the first node is not received from the protection path
  • the linear automatic protection switching APS packet sent by the second node determines that the SF in the direction of the first node to the second node in the protection path is not eliminated, and the service traffic is kept through the Work path transfer.
  • the working path has a bidirectional SD and the protection path unidirectional SF is eliminated, and the first node does not receive the APS packet sent by the second node, the SF of the first path in the other direction is defaulted. Not eliminated, keeping the traffic flowing through the working path.
  • the protection path that may still exist SF is avoided for the service transmission path. It effectively reduces the problem of service interruption caused by inconsistent two-way SF in the network transmission, and improves the reliability of network service transmission.
  • the first node When the first node receives the APS packet sent by the second node from the protection path, the first node performs protection switching according to the indication of the APS packet.
  • the present application provides a network protection device, where the device includes: a detecting unit and a service protection unit, where
  • a bidirectional signal failure SF When a working path of communication between the first node of the ring network and the second node adjacent to the first node occurs a bidirectional signal failure SF, causing the transmission path of the service traffic to be switched from the working path to the protection path, if On the working path, the third node to the fourth node adjacent to the third node generates SF or signal degradation SD, and the detecting unit determines that the second node to the first node on the working path If the SF is removed from the direction, the service protection unit determines that the first node does not receive the ring network automatic protection switching APS packet sent by the second node from the working path, and the service protection unit determines that On the working path, the SF in the direction from the first node to the second node is not eliminated, and the service traffic is kept transmitted through the protection path;
  • the service traffic is transmitted through the first node, the second node, the third node, and the fourth node on the working path.
  • the device is located on the first node side.
  • the service protection unit is further configured to: when the first node receives the APS packet sent by the second node from the working path, instruct the first node to follow the APS The indication of the packet is protected and switched.
  • the service protection unit is further configured to: when the first node does not work from the Receiving, by the second node, the APS packet sent by the second node, indicating that the first node does not respond to the switching request sent by the fourth node, and the switching request sent by the fourth node has a higher priority The state priority of the first node.
  • the application further provides a network protection device, where the device includes a detecting unit and a service protection unit, where
  • a bidirectional signal failure occurs in a protection path between the first node and the second node.
  • SF when the service traffic is transmitted in the working path, if the detecting unit determines that the SF is removed from the second node to the first node in the protection path, and the service protection unit determines If the first node does not receive the linear automatic protection switching APS packet sent by the second node from the protection path, the service protection unit determines the first node to the second in the protection path.
  • the SF in the node direction is not eliminated, and the traffic is kept transmitted through the working path.
  • the device is located on the first node side.
  • the service protection unit is further configured to: when the first node receives the APS packet sent by the second node from the protection path, instruct the first node to follow the APS The indication of the packet is protected and switched.
  • the application provides a network protection device, where the device includes a memory and a processor;
  • the memory is configured to store information including a program, an instruction or a code; the processor is configured to execute a program, an instruction or a code in the memory, and the method of the first aspect or the second aspect is completed.
  • the memory communicates with the processor through a bus
  • the processor communicates with an adjacent node device through a network interface.
  • the application further provides a communication system, including a first node, a second node, and a network protection device, where the network protection device is the network protection device of the third aspect or the fourth aspect The network protection device described.
  • the communication system can perform the method of the first aspect or the second aspect.
  • the first node, the second node, the third node, and the fourth node may be routers, switches, firewalls, packet switched network devices, and the like.
  • FIG. 1A, FIG. 1B, and FIG. 1C are schematic diagrams of an APS scenario according to an embodiment of a network protection method provided by the present application;
  • FIG. 2 is a schematic diagram of an implementation method involved in an embodiment of a network protection method provided by the present application
  • FIG. 3 is a flowchart of a method involved in an embodiment of a network protection method provided by the present application
  • FIG. 4 is a schematic diagram of an application scenario involved in another embodiment of a network protection method according to the present invention.
  • FIG. 5 is a schematic diagram of an implementation method according to another embodiment of a network protection method provided by the present application.
  • FIG. 6 is a flowchart of a method involved in another embodiment of a network protection method according to the present application.
  • FIG. 7 is a schematic diagram of a network protection device according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a network protection device according to another embodiment of the present application.
  • nodes involved in the present application may include switches, routers, firewalls, packet transport network devices, and the like. For convenience of description, the devices mentioned above are collectively referred to as nodes in the present application.
  • the working path described in this application refers to the path for service traffic transmission that is set by default in the normal state.
  • the protection path refers to the path for service traffic transmission instead of the working path when the working path cannot transmit service traffic.
  • the working path or the protection path involved in the present application may be a physical layer optical fiber, or may be any one or more of a logical layer of a pseudowire or a tunnel.
  • the present application is collectively referred to as a working path or a protection path.
  • the transmission link described in the present application includes a link for traffic transmission in a working path, and a link for transmission of service traffic in the protection path. It should be noted that the transmission link of the working path and the protection path are two different links, for example, two different optical fibers.
  • the working path from the transmitting end of the local node to the receiving end of the opposite end node, and the working path of the transmitting end of the opposite end node to the receiving end of the local end node may be physically the same link. (for example, the same fiber, etc.), or two different links (for example, two different fibers).
  • the working paths in two directions may be the same link or different links.
  • the protection path setting is the same as the working path, and will not be described again.
  • the identification of the transmission link is carried out with Arabic numerals, which is used only for the illustrative representation of the location of the transmission link including the working path and the protection path between the node devices.
  • Arabic numerals which is used only for the illustrative representation of the location of the transmission link including the working path and the protection path between the node devices.
  • the "ring protection protocol” mentioned in this application may be any version of ITU-T G.8132, and the “linear protection protocol” may be any version of ITU-T G.8031.
  • the linear APS protocol described in this application may be a linear APS protocol as described in any version of ITU-T G.8031.
  • FIG. 1A, 1B, and 1C are schematic diagrams of an application scenario involved in an embodiment of a network protection method for a ring network APS provided by the present application.
  • a base station 1 is connected to a section on a ring network.
  • Point 1 Node 2, Node 3, Node 4, Node 5, Node 6 and Radio Network Controller RNC1 communicate.
  • node 1 and node 2 communicate via transmission link 1;
  • node 2 and node 3 communicate via transmission link 2;
  • node 3 and node 4 communicate via transmission link 3;
  • node 4 and node 5 Communication is carried out through the transmission link 4; the node 5 and the node 6 communicate via the transmission link 5; the node 6 and the node 1 communicate via the transmission link 6.
  • the ring network is deployed with a working path and a protection path. Take FIG. 1A as an example.
  • the service traffic sent by the base station 1 is ringed from the node 2 and the slave node 5 is looped.
  • the working path in the counterclockwise direction is set by default on the ring network.
  • the normal working path for the traffic transmission, the clockwise protection path is to provide transmission protection for the service traffic when the working path fails.
  • the transmission path of service traffic is node 2 -> node 1 -> node 6 -> node 5, that is, the service traffic works on the ring network.
  • the path is Node 2 -> Node 1 -> Node 6 -> Node 5, and the protection path of the service traffic on the ring network is Node 2 -> Node 3 -> Node 4 -> Node 5.
  • the transmission path of the service traffic on the ring network is switched, that is, the transmission path of the service traffic is switched from the working path to the working path. Protection path. For example, if node 1 fails or a link barrier occurs between the transmission link between node 2 and node 1, the transmission path of the service traffic is switched, and the working path is switched to the protection path, that is, the transmission path of the service traffic on the ring. It is node 2 -> node 3 -> node 4 -> node 5.
  • FIG. 1B is a schematic diagram of an APS scenario when a multi-point link failure occurs in a ring network of the embodiment of the present application, and a bidirectional SF occurs between one node;
  • FIG. 1C shows a ring network SF shown in FIG. 1B. Schematic diagram of the APS scene when it is eliminated.
  • the above link failures include bidirectional SF, one-way SF, two-way signal degradation (English: signal degrade, SD) and one-way SD between nodes.
  • FIG. 1B and FIG. 1C it is assumed that the protection path does not fail, and the base station 1 transmits to the RNC1.
  • the business traffic is illustrated as an example. Referring to FIG.
  • the ring network includes node 1, node 2, node 3, node 4, node 5, and node 6, each of which will be clockwise (hereinafter referred to as "E direction") and counterclockwise (hereinafter referred to as The message is sent in both directions in the "W direction". Therefore, if the packet is transmitted along the transmission link in the W direction, node 1, node 2, node 3, node 4, node 5, and node 6 on the transmission path are respectively marked. 1_W, 2_W, 3_W, 4_W, 5_W, 6_W; if the message is transmitted along the transmission link in the E direction, node 1, node 2, node 3, node 4, node 5, and node 6 on the transmission path are respectively marked. It is 1_E, 2_E, 3_E, 4_E, 5_E, 6_E.
  • the service traffic reaches the node 2 of the ring network through the base station 1.
  • the service traffic is set to the upper ring of the node 2_W, and the ring is disconnected by the node 5_E.
  • the ring network is set to counterclockwise direction for its normal working direction by default, and the clockwise direction is the protection working direction. Therefore, when the service traffic reaches the ring network node 2_W, under normal working conditions, in the counterclockwise direction, the slave node 2_W rings, and the slave node 5_E rings, that is, the service traffic on the ring network is the node 2 -> Node 1 -> Node 6 -> Node 5.
  • a bidirectional SF occurs between the working path between the node 2_W and the node 1_E, and a working path between the node 6_W and the node 5_E appears SF or SD.
  • the SF is generated by the working path between the node 2_W and the node 1_E, and the SF is generated by the node 6_W to the node 5_E.
  • the node 1_E, the node 2-W, the nodes 5_E, and 6_W all enter the SF reversal state SWITCH_SF. All other nodes on the ring enter the SF through state PASS_SF.
  • the transmission path of the service traffic is switched from the counterclockwise working path to the clockwise protection path, and the service traffic is transmitted from the node 2_W to the ring, along the clockwise protection path, and from the node 5_E to the RNC1. Therefore, although a multipoint link failure occurs in the normal working path, the transmission of traffic is still not interrupted.
  • the local end of the node 2_W detects that the traffic reception direction SF is eliminated, and the state opportunity of the local end of the node 2_W changes first. Is the SWITCH_WTR state.
  • the normal transmission period of the APS packet is 5 seconds.
  • the peer node 1_E needs to wait for 5 seconds before sending the APS packet to the 2_W.
  • the festival The point 2_W cannot receive the APS packet sent by the peer node 1_E, so it is impossible to determine whether the SF in the receiving direction of the peer node 1_E is eliminated. Since the SF still exists in the direction of the node 6_W to the node 5_E at this time, according to the ring network protection protocol, the node 2_W receives the APS message that the node 5_E sends in the counterclockwise direction to the node 2_W indicating that the SF is in the direction of the node 6_W to the node 5_E. The priority request of the APS packet identifying the SF is higher than the priority of the node 2_W request to resume (WTR).
  • the state opportunity of the node 2_W enters the PASS_SF by the SWITCH_WTR. Node 2 will be switched back to the working path by the protection path.
  • the traffic will be transmitted along the default counterclockwise working path.
  • the traffic is traffic. Unable to transmit, the SF in the direction of the node 2_W to the node 1_E is also eliminated, or wait until the node 2_W receives the APS packet sent by the node 1_E and re-enters the SF reversal state, and the working path is switched to the protection path.
  • the transmission of service traffic can be restored, and the APS packet transmission period is 5 seconds. Therefore, in this process, the maximum service interruption time is 5 seconds.
  • a bidirectional SF occurs, a node 6_W to the node 5_E generates an SD scenario, a working path between the node 2_W and the node 1_E generates a bidirectional SF, and a scenario where the node 6_W to the node 5_E generates an SF is similar. .
  • the node 2_W does not receive the APS packet sent by the peer node 1_E from the working path, according to the ring network protection protocol, the node 2_W.
  • the priority request of the APS packet identifying the SD is higher than the priority of the node 2_W requesting the WTR.
  • the state opportunity of the node 2_W enters the PASS_SD by the SWITCH_WTR. Node 2 will be switched back to the working path by the protection path.
  • the traffic When the traffic is sent from the node 2_W, the traffic will be transmitted along the default counterclockwise working path. However, since the working path of the node 2_W to the node 1_E is still SF, the traffic is traffic. Unable to transfer.
  • the network protection method will be described in detail below with reference to FIGS. 2 and 3.
  • the network protection method is applied to the node 2 shown in FIG. 2, and the SF is generated by the node 6_W to the node 5_E.
  • a working path of communication between the first node and the adjacent second node occurs in a bidirectional SF, and after the transmission path of the service traffic is switched from the working path to the protection path, if the working path is on the third node to The fourth node adjacent to the third node generates an SF, and the SF of the second node to the first node is eliminated, determining whether the first node receives the ring network automatic protection switching APS sent by the second node. Message.
  • the state machine of the first node determines whether to switch according to the APS packet request.
  • the first node may be any node on the ring for transmitting current service traffic, and the current service traffic is in the normal working path, and after being transmitted to the second node after passing through the first node.
  • node 2 is used as the first node
  • node 1 is used as the second node
  • node 6 is used as the third node
  • node 5 is used as the fourth node for illustration.
  • the traffic from the base station 1 to the upper ring node 2_W sequentially arrives at the RNC 1 via the node 1, the node 6, and the lower ring node 5_E.
  • the detecting unit detects that the working path between the node 1_E and the node 2_W has a bidirectional SF, and the working path occurrence SF of the node 6_W to the node 5_E.
  • the detecting unit is located in each node device, and the function of the detecting unit can be implemented through an Operation, Administration, and Maintenance (OAM) unit.
  • OAM Operation, Administration, and Maintenance
  • the node 2_W After detecting that the working path between the node 1_E and the node 2_W occurs in the bidirectional SF and the working path in the direction of the node 6_W to the node 5_E occurs SF, the node 2_W enters the SWITCH_SF state, and the service traffic transmission path that reaches the 5_E via the node 2_W is reversed.
  • the working path of the hour hand is switched to the clockwise protection path, and the traffic flow is transmitted from the node 2_W to the ring in a clockwise direction, and the slave node 5_E is looped.
  • the node 2_W is changed from the SWICH_SF state to waiting for the recovery of the reverse state.
  • SWITCH_WTR The node 2_W determines whether the APS packet sent by the node 1_E is received from the working path, and the APS packet is used to indicate whether the node 2_W performs protection switching.
  • the node 2_W when the node 2_W receives the APS message including the SF switching request sent by the node 1_E, indicating that the working path of the node 2_W to the node 1_E still has the SF, the node 2_W enters the SWITCH_SF state by the SWITCH_WTR state, and the service The traffic remains in the protection path.
  • the traffic is looped on the node 2_W, and is transmitted along the clockwise protection path to the node 5_E, and the node 5_E is looped.
  • the node 2_W When the node 2_W receives the APS message of the non-switching request sent by the node 1_E, it indicates that the working path SF in the direction of the node 2_W to the node 1_E has been eliminated. If the SF still exists in the node 6_W to the node 5_E, according to the ring network protection protocol, The node 2_W enters the PASS_SF state from the SWITCH_WTR state, and the transmission path of the service traffic is switched back from the protection path to the working path. The traffic is transmitted from the node 2_W to the ring and along the counterclockwise working path to the node 6_W.
  • the node 6_W switches to the protection path to transmit the current service traffic. That is, in the clockwise direction, the node 1, the node 2, the node 3, and the node 4 are successively passed to the node 5_E, and the slave node 5_E is looped.
  • the transmission path of the traffic in the ring network is: node 2 -> node 1 -> node 6 -> node 1—>Node 2—>Node 3—>Node 4—>Node 5.
  • the service traffic is switched back to the normal working path, and the slave node 2_W is ringed, the node 1 and the node 6 are looped at the node 5_E.
  • the non-responding node 5_E sends the APS message switching request of the SF in the counterclockwise direction to the node 2_W indicating that the node 6_W to the node 5_E, that is, the inbound state machine of the node 2_W does not respond to the other state machine.
  • a switching request with a higher priority than the current state At this time, the traffic is still transmitted on the protection path.
  • the traffic path in the ring network is consistent with the transmission path of the traffic in the network when the two-way SF occurs between the previous node 2_W and the node 1_E, that is, the service traffic continues to be transmitted on the protection path.
  • the network protection method provided in this embodiment has a multi-point link failure in the ring network, and a bidirectional SF occurs between one of the nodes, and another link between the nodes on the ring still has a link failure.
  • the SF unidirectional cancellation occurs in the bidirectional SF, it is first determined whether the SF cancellation node receives the APS packet sent by the peer node, and if the node does not receive the APS packet, the node is considered to be The SF in the direction of the end node is not eliminated, and the transmission path of the currently transmitted service traffic in the network is consistent with the transmission path of the service traffic in the network when the bidirectional SF occurs.
  • the service traffic is effectively reduced in the network transmission, and in the case of a multi-point link failure in the ring network, the service interruption problem caused by the unsynchronized bidirectional SF elimination between one of the nodes improves the reliability of the network service transmission. .
  • FIG. 4 it is a schematic diagram of an application scenario of an embodiment of a network protection method for a linear APS provided by the present invention.
  • the first node A and the second node B are node devices in a service traffic transmission path, and the base station passes the first node.
  • a and the second Node B communicate with the RNC.
  • the communication path between the first node A and the second node B includes a working path (solid line as shown in FIG. 4) and a protection path (dashed line as shown in FIG. 4), and the working path and the protection path are Two different links.
  • the link is a logical link or a physical link.
  • the service traffic sent by the base station passes through the first node.
  • A is transmitted to the second node B, due to The protection path is a bidirectional SF, and the traffic is transmitted by the first node A to the second node B via the working path.
  • the service can still pass and is not completely interrupted; when the second node B to the first node A in the protection path is unidirectionally SF eliminated, the second node B keeps the traffic in the working path, and the second A node A switches traffic to the protection path and chooses to send traffic from the protection path.
  • the SF of the protection path direction of the first node A to the second node B is not eliminated at this time, and therefore, a service interruption occurs at this time.
  • the linear APS protocol defines two protection mechanisms: 1+1 protection switching and 1:1 protection switching.
  • the 1+1 protection switching mechanism the transmitting end simultaneously transmits the service in the working path and the protection path, and the receiving end selects one path in the working path and the protection path to receive the service.
  • the 1:1 protection switching mechanism the sender and the receiver transmit the primary service on the working path.
  • the protection path does not transmit services or only transmits some low-priority service traffic.
  • the sender sends the service.
  • the end and the receiving end switch to the protection path to transmit the main service.
  • the APS may be a 1+1 protection switching mechanism or a 1:1 protection switching mechanism.
  • a one-way protection switching mechanism and a two-way protection switching mechanism are also defined in the linear APS protocol.
  • the one-way protection switching mechanism only the direction of the failure occurs.
  • the service traffic is switched to the protection path for transmission, and the service transmission between the sender of the second node B and the receiver of the first node A still keeps the working path from being switched.
  • traffic transmissions in both directions are switched to the protection path.
  • the linear APS mechanism of the embodiment of the present application is a bidirectional protection switching mechanism.
  • This embodiment is exemplified by applying the network protection method to the node device shown in FIG. 5.
  • the working path of communication between the first node A and the second node B (solid line as shown in FIG. 5) occurs in a bidirectional SD
  • the protection path (dashed line as shown in FIG. 5) generates a bidirectional SF, according to the linear APS protocol
  • the first node A and the second node B maintain the transmission path of the traffic flow on the working path.
  • the first node determines whether to perform the switching according to the APS packet.
  • the first node may be any node on the network for transmitting service traffic, and the service traffic sent by the base station reaches the second node B through the first node A.
  • the service path is selected to be transmitted by the working path.
  • the detecting unit detects the link state between the first node A and the second node B, and the detecting unit may be an OAM unit located in each node device, and the OAM mechanism tests the message through the timing interaction between the nodes.
  • the protection path When the detecting unit detects that the working path between the first node A and the second node B still has a bidirectional SD, the protection path generates a bidirectional SF, and at this time, the first node A and the second node B are switched by the protection path to Working path; in this state, the second node B enters the SF_P(0,0) state, the second node B switches to the working path; and the first node A also enters the SF_P(0,0) state, the first node A is also Switch to the working path.
  • SF_P(0,0) indicates the protection path SF, and the service traffic is switched to the working path transmission.
  • the first node A When the SF of the protection path is removed in the direction from the second node B to the first node A, the first node A receives the APS packet including the SF switching request sent by the second node B, indicating that the first node A to the second node The protection path of Node B still exists SF.
  • the second node B continues to remain in the SF_P(0,0) state, the state is unchanged, remains in the working path, and sends the SF_P(0,0) message to the first node A every 5 seconds.
  • the first node A receives the SF_P(0,0) request message sent by the second node B, and according to the linear APS protocol, the first node A enters NR_W(0, 0) and remains in the working path.
  • NR_W(0,0) indicates that the working path has no switching request, and the traffic is transmitted on the working path.
  • the first node determines the SF in the direction of the first node to the second node in the protection path. Unremoved, continue to maintain the traffic traffic currently transmitted on the working path.
  • the switching request of the second node B is still SF_P (0). , 0).
  • the second node B continues to remain in the SF_P(0,0) state, the state remains unchanged, remains in the working path, and the SF_P(0,0) message is sent to the first node A for a period of 5 seconds, during which the first node A default peer request is SF_P(0,0), and the local end enters NR_W(0,0) to keep the current traffic on the working path.
  • the second node B When the bidirectional SF of the protection path between the first node A and the second node B is eliminated, and the second node B does not receive the APS message sent by the first node A from the protection path, the second node B The state machine switches to the NR_W(0,0) state, the second node B remains in the working path, and the second node B sends the APS message including the NR_W(0,0) request to the first node A; the first node A receives the first The AES packet sent by the two-node B includes the NR_W (0, 0) request, the state machine of the first node A enters the SD_W (1, 1) state, and the SD_W (1, 1) state indicates that the working path exists SD, and the service traffic is Protection path transmission.
  • the first node A switches back to the protection path and sends an APS message including the SD_W (1, 1) request to the second node B.
  • the second node B receives the APS packet sent by the first node A and includes the SD_W (1, 1) request, the state machine of the second node B enters the SD_W (1, 1) state, and the second node B switches back to the protection path. .
  • the first node A receives the APS packet including the SD_W (1, 1) request sent by the second node B when the state machine of the first node A is in the SD_W (1, 1) state, and the state machine of the first node A The state is unchanged, and the first node A remains in the protection path, thereby ensuring normal transmission of traffic.
  • the first node A and the second node B cut back the transmission path of the traffic flow to the working path.
  • the present embodiment provides a network protection method for a linear APS.
  • a bidirectional SD occurs in a working path between a first node of the network and an adjacent second node
  • the transmission path of the service traffic is switched to the protection path, and the protection is performed.
  • a bidirectional SF occurs in the path, the traffic is switched to the working path, and then the one-way SF in the bidirectional SF of the protection path is eliminated, and the first node is not on the protection path.
  • receiving the APS packet sent by the adjacent second node determining that the SF on the protection path in the direction from the first node to the second node is not eliminated, and continuing to transmit the service traffic on the working path without switching to the one-way SF. Eliminated protection path.
  • the two-way SF fault elimination of the service transmission path is not synchronized, the service interruption can be reduced, and the reliability of the service transmission can be improved.
  • the embodiment of the present invention provides a network protection device, where the network protection device may be located on the first node side or the second node side in Embodiment 1, or the network protection device may It is located on the first node or the second node in Embodiment 1.
  • the network protection device includes: a detecting unit and a service protection unit, where
  • the detecting unit is configured to determine whether a communication failure occurs between the first node and the adjacent second node;
  • the detecting unit may be an OAM unit located in the node device, and the OAM reports the link status between the nodes by using a timed interaction test message between the nodes to detect whether the link is faulty.
  • the OAM unit detects the bidirectional SF, the unidirectional SF, the unidirectional SD, and the bidirectional SD between the nodes, the fault type is notified to the faulty node, and the service protection unit performs the transmission of the service traffic according to the detection result of the detecting unit. protection.
  • the detecting unit detects that the transmission path between the first node and the adjacent second node generates a bidirectional SF, the transmission path of the service traffic is switched from the first path to the second path to ensure normal transmission of service traffic. .
  • the service protection unit is configured to perform service protection according to the detection result of the detecting unit
  • the traffic path of the service traffic is switched from the working path to the protection path, if The third node generates SF or SD to a fourth node adjacent to the third node, and the detecting unit determines SF elimination on the working path from the second node to the first node direction, where The service protection unit determines that the first node does not receive the ring network APS message sent by the second node from the working path, and the service protection unit determines that the first node is on the working path.
  • the SF to the second node direction is not eliminated, and the service traffic is maintained to be transmitted through the protection path;
  • the service traffic is transmitted through the first node, the second node, the third node, and the fourth node on the working path.
  • the service protection unit is further configured to: when the first node receives the APS packet sent by the second node, instruct the first node to perform protection switching according to the request of the APS packet.
  • the service protection unit is further configured to: when the first node does not receive the APS packet sent by the second node from the working path, indicating that the first node does not respond to the The switching request sent by the fourth node is performed, and the switching request sent by the fourth node has a higher priority than the first node.
  • the working path of communication between the first node and the adjacent second node generates a bidirectional SD
  • the protection path generates a bidirectional SF
  • the service traffic is transmitted during the working path; if the detecting unit determines that the protection is in the protection The SF in the path from the second node to the first node is eliminated, and the service protection unit determines that the first node does not receive the linear automatic protection sent by the second node from the protection path. If the APS packet is switched, the service protection unit determines that the SF in the direction from the first node to the second node is not eliminated, and the service traffic is transmitted through the working path.
  • the service protection unit is further configured to: when the first node receives the APS packet sent by the second node from the protection path, instruct the first node to follow the APS The indication of the packet is protected and switched.
  • the service protection unit or the detecting unit may be implemented by a circuit, or may be implemented by hardware related to program instructions, and the hardware may be variously known to those skilled in the art.
  • the device for example, can be a network processor (English: Network Processor, NP), a central processing unit (English: Central Processing Unit, CPU), and the like.
  • FIG. 8 is a diagram showing another network protection device according to an embodiment of the present invention, where the network protection device is located on the first node side of Embodiment 1, or the network protection device is located on the first node side of Embodiment 2, or The network protection device is located at the first node of Embodiment 1, or the network protection device is located at the first node side of Embodiment 2.
  • the network protection device includes a memory 101 and a processor 102.
  • the memory 101 and the processor 102 can communicate over a bus 103; the processor 102 can also communicate with neighboring node devices over a network interface.
  • the memory 101 is configured to store a program, an instruction, or a code
  • the processor 102 is configured to execute a program, an instruction, or a code in the memory 102, complete the operations of S301 to S303 in the first embodiment, or complete the operations of S601 to S602 in the second embodiment.
  • the memory may be, but not limited to, a random access memory (RAM), a read only memory (ROM), an erasable programmable read only memory (EPROM), a compact disk read only memory (CD-ROM), a hard disk, or a magnetic disk. And other media that can store program instruction code.
  • RAM random access memory
  • ROM read only memory
  • EPROM erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • hard disk or a magnetic disk.
  • magnetic disk any media that can store program instruction code.
  • the processor may be one or more CPUs.
  • the CPU may be a single core CPU or a multi-core CPU.
  • the present invention further provides a communication system including a first node, a second node, and a network protection device, and the network protection device may be the network protection device shown in Embodiment 3 or Embodiment 4.
  • the network protection device is configured to perform the network protection method according to Embodiment 1 or 2 of the present application.

Abstract

Disclosed is a network protection method, comprising: after a bidirectional signal fail (SF) occurs on a working path for communication between a first node and a second node adjacent to the first node in a ring network, and causes the service traffic transmission path to be switched from the working path to a protection path, if an SF or a signal degrade (SD) occurs between a third node and a fourth node adjacent to the third node on the working path, and if the first node does not receive from the working path a ring-network automatic protection switching (APS) message sent by the second node when the SF occurring in the direction from the second node to the first node is eliminated, determining that the SF occurring in the direction from the first node to the second node is not eliminated, and keeping service traffic being transmitted by means of the protection path. The solution of the present application effectively reduces occurrence of the problem of service interruption caused by asynchronous elimination of a bidirectional SF occurring between certain nodes after a multipoint link fail in a service transmission path, and improves the reliability of service transmission.

Description

一种网络保护方法和装置Network protection method and device
本申请要求于2015年12月26日提交中国专利局、申请号为201510992811.9、发明名称为“一种网络保护方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 20151099281, filed on Dec. 26, 2015, the entire disclosure of which is incorporated herein by reference. .
技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种网络保护方法和装置。The present invention relates to the field of communications technologies, and in particular, to a network protection method and apparatus.
背景技术Background technique
在分组传送网(英文:Packet Transport Network,PTN)中,当前主要应用的网络保护倒换机制有环网自动保护倒换(英文:automatic protection switching,APS)和线性APS,而上述两种保护倒换机制均存在一个共性的问题,在网络业务传输路径中存在双向信号故障(英文:signal fail,SF)且故障消除不同步时,即仅有单向SF消除时,会出现业务中断的情况,业务最长的中断时间可达到5秒。In the Packet Transport Network (PTN), the current network protection switching mechanism for major applications includes automatic protection switching (APS) and linear APS, and both protection switching mechanisms are used. There is a common problem. When there is a two-way signal failure in the network service transmission path (English: signal fail, SF) and the fault elimination is not synchronized, that is, only one-way SF is eliminated, the service is interrupted, and the service is the longest. The interruption time can reach 5 seconds.
发明内容Summary of the invention
本申请提供了一种网络保护方法和装置,以减少网络系统的业务传输路径中双向信号故障消除不同步时所带来的业务中断问题。The present application provides a network protection method and apparatus to reduce the service interruption problem caused by the non-synchronization of the two-way signal failure in the service transmission path of the network system.
第一方面,本申请提供了一种网络保护方法,该方法包括:In a first aspect, the application provides a network protection method, where the method includes:
当环网的第一节点和与所述第一节点相邻的第二节点之间通信的工作路径发生双向信号故障SF,导致业务流量的传输路径从所述工作路径切换到保护路径后,如果在所述工作路径上,第三节点至与所述第三节点相邻的第四节点发生SF或信号劣化SD,并且所述工作路径上、从所述第二节点至所述第一节点方向的SF消除时,所述第一节点未从所述工作路径上接收到所述第二节点发送的环网自动保护倒换APS报文,则确定所述工作路径上、所述第一节点至所述第二节点方向的SF未消除,保持所述业务流量通过所述保护路径传输; When a working path of communication between the first node of the ring network and the second node adjacent to the first node occurs a bidirectional signal failure SF, causing the transmission path of the service traffic to be switched from the working path to the protection path, if On the working path, a third node to a fourth node adjacent to the third node generates SF or signal degradation SD, and on the working path, from the second node to the first node When the SF is removed, the first node does not receive the ring network automatic protection switching APS packet sent by the second node from the working path, and determines that the first node to the working path The SF in the direction of the second node is not eliminated, and the service traffic is kept transmitted through the protection path;
其中,在所述工作路径上,所述业务流量传输经过所述第一节点、所述第二节点、所述第三节点和所述第四节点。The service traffic is transmitted through the first node, the second node, the third node, and the fourth node on the working path.
根据上述技术方案,当所述工作路径中、第二节点至第一节点方向的SF消除,而第一节点未从所述工作路径上接收到第二节点发送的环网APS报文时,默认所述工作路径中、第一节点至第二节点方向的SF未消除。避免第一节点的状态机在等待恢复时间段内,响应第四节点发送的高优先级倒换请求,从而避免将可能尚存SF的工作路径用于业务传输路径。有效减少了业务流量在网络传输中由于双向SF消除不同步所带来的业务中断问题,提高了网络业务传输的可靠性。According to the above technical solution, when the SF of the second path to the first node is eliminated in the working path, and the first node does not receive the ring network APS message sent by the second node from the working path, the default is The SF in the working path from the first node to the second node direction is not eliminated. The state machine of the first node is prevented from responding to the high priority switching request sent by the fourth node while waiting for the recovery time period, thereby avoiding using the working path of the possible SF for the service transmission path. The service interruption problem caused by the unsynchronized two-way SF elimination in the network transmission is effectively reduced, and the reliability of the network service transmission is improved.
进一步可选的,所述保持所述业务流量通过所述保护路径传输,包括:在所述第一节点未从所述工作路径上接收到所述第二节点发送的APS报文时,所述第一节点的状态机倒换状态保持不变。Further, optionally, the maintaining the service traffic is transmitted by using the protection path, where: when the first node does not receive the APS packet sent by the second node from the working path, The state machine switching state of the first node remains unchanged.
所述第一节点的状态机倒换状态保持不变是指所述第一节点不响应所述第四节点发送的倒换请求,所述第四节点发送的倒换请求的优先级高于所述第一节点的状态优先级。The state machine switching state of the first node remains unchanged, that is, the first node does not respond to the switching request sent by the fourth node, and the switching request sent by the fourth node has a higher priority than the first node. The state priority of the node.
由于第一节点不响应第四节点发送过来高优先级倒换请求,使得第一节点的状态机可以继续保持在等待恢复WTR状态,因此,业务的传输路径不会倒换到可能仍然存在信号故障的工作路径,减少了业务传输中断的问题,提高了业务传输的稳定性。Since the first node does not respond to the high-priority switching request sent by the fourth node, the state machine of the first node can continue to wait for the recovery of the WTR state, and therefore, the transmission path of the service is not switched to the work that may still have a signal failure. The path reduces the problem of service interruption and improves the stability of service transmission.
第二方面,本申请提供了另外一种网络保护方法,该方法包括:In a second aspect, the present application provides another network protection method, where the method includes:
当第一节点和与所述第一节点相邻的第二节点之间通信的工作路径发生双向信号劣化SD,所述第一节点和所述第二节点之间通信的保护路径发生双向信号故障SF,业务流量在所述工作路径传输时;如果所述保护路径上、所述第二节点至所述第一节点方向的SF消除,且所述第一节点未从所述保护路径上接收到所述第二节点发送的线性自动保护倒换APS报文,则确定所述保护路径上、所述第一节点至所述第二节点的方向的SF未消除,保持所述业务流量通过所述 工作路径传输。When the working path communicated between the first node and the second node adjacent to the first node generates a bidirectional signal degradation SD, a bidirectional signal failure occurs in a protection path between the first node and the second node. SF, when traffic is transmitted on the working path; if the SF on the protection path from the second node to the first node is eliminated, and the first node is not received from the protection path The linear automatic protection switching APS packet sent by the second node determines that the SF in the direction of the first node to the second node in the protection path is not eliminated, and the service traffic is kept through the Work path transfer.
根据上述技术方案,当所述工作路径存在双向SD,而保护路径单向SF消除,并且第一节点没有收到第二节点发送的APS报文时,默认所述第一路径另外一个方向的SF未消除,保持所述业务流量通过所述工作路径传输。从而避免将可能尚存SF的保护路径用于业务传输路径。有效较少了业务流量在网络传输中由于双向SF消除不一致所可能带来的业务中断的问题,提高了网络业务传输的可靠性。According to the above technical solution, when the working path has a bidirectional SD and the protection path unidirectional SF is eliminated, and the first node does not receive the APS packet sent by the second node, the SF of the first path in the other direction is defaulted. Not eliminated, keeping the traffic flowing through the working path. Thereby, the protection path that may still exist SF is avoided for the service transmission path. It effectively reduces the problem of service interruption caused by inconsistent two-way SF in the network transmission, and improves the reliability of network service transmission.
当所述第一节点从所述保护路径上接收到所述第二节点发送的所述APS报文时,第一节点按照所述APS报文的指示进行保护倒换。When the first node receives the APS packet sent by the second node from the protection path, the first node performs protection switching according to the indication of the APS packet.
第三方面,本申请提供了一种网络保护装置,该装置包括:检测单元和业务保护单元,其中,In a third aspect, the present application provides a network protection device, where the device includes: a detecting unit and a service protection unit, where
当环网的第一节点和与所述第一节点相邻的第二节点之间通信的工作路径发生双向信号故障SF,导致业务流量的传输路径从工作路径切换到保护路径后,如果所述工作路径上,第三节点至与所述第三节点相邻的第四节点发生SF或信号劣化SD,并且所述检测单元确定所述工作路径上、所述第二节点至所述第一节点方向的SF消除,所述业务保护单元确定所述第一节点未从所述工作路径上接收到所述第二节点发送的环网自动保护倒换APS报文,则所述业务保护单元确定所述工作路径上、所述第一节点至所述第二节点方向的SF未消除,保持所述业务流量通过所述保护路径传输;When a working path of communication between the first node of the ring network and the second node adjacent to the first node occurs a bidirectional signal failure SF, causing the transmission path of the service traffic to be switched from the working path to the protection path, if On the working path, the third node to the fourth node adjacent to the third node generates SF or signal degradation SD, and the detecting unit determines that the second node to the first node on the working path If the SF is removed from the direction, the service protection unit determines that the first node does not receive the ring network automatic protection switching APS packet sent by the second node from the working path, and the service protection unit determines that On the working path, the SF in the direction from the first node to the second node is not eliminated, and the service traffic is kept transmitted through the protection path;
其中,在所述工作路径上,所述业务流量传输经过所述第一节点、所述第二节点、所述第三节点和所述第四节点。The service traffic is transmitted through the first node, the second node, the third node, and the fourth node on the working path.
可选的,所述装置位于所述第一节点侧。Optionally, the device is located on the first node side.
可选的,所述业务保护单元还用于当所述第一节点从所述工作路径上接收到所述第二节点发送的所述APS报文时,指示所述第一节点按照所述APS报文的指示进行保护倒换。Optionally, the service protection unit is further configured to: when the first node receives the APS packet sent by the second node from the working path, instruct the first node to follow the APS The indication of the packet is protected and switched.
进一步可选的,所述业务保护单元还用于:当所述第一节点未从所述工作 路径上接收到所述第二节点发送的所述APS报文时,指示所述第一节点不响应所述第四节点发送的倒换请求,所述第四节点发送的倒换请求的优先级高于所述第一节点的状态优先级。Further optionally, the service protection unit is further configured to: when the first node does not work from the Receiving, by the second node, the APS packet sent by the second node, indicating that the first node does not respond to the switching request sent by the fourth node, and the switching request sent by the fourth node has a higher priority The state priority of the first node.
该方案与第一方面的方案具有相同的技术效果。This solution has the same technical effect as the solution of the first aspect.
第四方面,本申请还提供了一种网络保护装置,该装置包括检测单元和业务保护单元,其中,In a fourth aspect, the application further provides a network protection device, where the device includes a detecting unit and a service protection unit, where
当第一节点和与所述第一节点相邻的第二节点之间通信的工作路径发生双向信号劣化SD,所述第一节点和所述第二节点之间通信的保护路径发生双向信号故障SF,业务流量在所述工作路径传输时,如果所述检测单元确定在所述保护路径中,从所述第二节点至所述第一节点方向的SF消除,且所述业务保护单元确定所述第一节点未从所述保护路径接收到所述第二节点发送的线性自动保护倒换APS报文,则所述业务保护单元确定所述保护路径中,所述第一节点至所述第二节点方向的SF未消除,保持所述业务流量通过所述工作路径传输。When the working path communicated between the first node and the second node adjacent to the first node generates a bidirectional signal degradation SD, a bidirectional signal failure occurs in a protection path between the first node and the second node. SF, when the service traffic is transmitted in the working path, if the detecting unit determines that the SF is removed from the second node to the first node in the protection path, and the service protection unit determines If the first node does not receive the linear automatic protection switching APS packet sent by the second node from the protection path, the service protection unit determines the first node to the second in the protection path. The SF in the node direction is not eliminated, and the traffic is kept transmitted through the working path.
可选的,所述装置位于所述第一节点侧。Optionally, the device is located on the first node side.
可选的,所述业务保护单元还用于当所述第一节点从所述保护路径上接收到所述第二节点发送的所述APS报文时,指示所述第一节点按照所述APS报文的指示进行保护倒换。Optionally, the service protection unit is further configured to: when the first node receives the APS packet sent by the second node from the protection path, instruct the first node to follow the APS The indication of the packet is protected and switched.
该方案具有与第二方面的方案具有相同的技术效果。This solution has the same technical effect as the solution of the second aspect.
第五方面,本申请提供了一种网络保护装置,所述装置包括存储器、处理器;In a fifth aspect, the application provides a network protection device, where the device includes a memory and a processor;
所述存储器,用于存储包括程序、指令或代码的信息;所述处理器,用于执行存储器中的程序、指令或代码,完成所述第一方面或所述第二方面的方法。The memory is configured to store information including a program, an instruction or a code; the processor is configured to execute a program, an instruction or a code in the memory, and the method of the first aspect or the second aspect is completed.
可选的,所述存储器与处理器通过总线通信;Optionally, the memory communicates with the processor through a bus;
可选的,所述处理器通过网络接口与相邻的节点设备通信。Optionally, the processor communicates with an adjacent node device through a network interface.
第六方面,本申请还提供了一种通信系统,包括第一节点、第二节点和网络保护装置,所述网络保护装置是第三方面所述的网络保护装置或第四方面所 述的网络保护装置。该通信系统可以执行第一方面或第二方面所述的方法。In a sixth aspect, the application further provides a communication system, including a first node, a second node, and a network protection device, where the network protection device is the network protection device of the third aspect or the fourth aspect The network protection device described. The communication system can perform the method of the first aspect or the second aspect.
基于第一方面至第六方面的任一方面,所述第一节点,第二节点,第三节点,第四节点可以是路由器、交换机、防火墙、分组交换网设备等等。In accordance with any of the first to sixth aspects, the first node, the second node, the third node, and the fourth node may be routers, switches, firewalls, packet switched network devices, and the like.
附图说明DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings to be used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1A、图1B、图1C为本申请提供的网络保护方法的一个实施例所涉及的一种APS场景示意图;1A, FIG. 1B, and FIG. 1C are schematic diagrams of an APS scenario according to an embodiment of a network protection method provided by the present application;
图2为本申请所提供的网络保护方法的一个实施例所涉及的实施方法示意图;2 is a schematic diagram of an implementation method involved in an embodiment of a network protection method provided by the present application;
图3为本申请提供的网络保护方法的一个实施例所涉及的方法流程图;3 is a flowchart of a method involved in an embodiment of a network protection method provided by the present application;
图4为本发明提供的网络保护方法的另一实施例所涉及的应用场景示意图;FIG. 4 is a schematic diagram of an application scenario involved in another embodiment of a network protection method according to the present invention;
图5为本申请提供的网络保护方法的另一实施例所涉及的实施方法示意图;FIG. 5 is a schematic diagram of an implementation method according to another embodiment of a network protection method provided by the present application;
图6为本申请提供的网络保护方法的另一实施例所涉及的方法流程图;FIG. 6 is a flowchart of a method involved in another embodiment of a network protection method according to the present application;
图7为本申请一个实施例提供的网络保护装置的示意图;FIG. 7 is a schematic diagram of a network protection device according to an embodiment of the present application;
图8为本申请另一实施例提供的网络保护装置的示意图。FIG. 8 is a schematic diagram of a network protection device according to another embodiment of the present application.
具体实施方式detailed description
本申请实施例描述的应用场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The application scenarios described in the embodiments of the present application are for the purpose of more clearly explaining the technical solutions of the embodiments of the present application, and do not constitute a limitation of the technical solutions provided by the embodiments of the present application. Those skilled in the art may understand that with the evolution of the network architecture and The technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
本申请中,“通信”和“传输”经常交替使用。本申请有时会使用到“本端节点”和“对端节点”来指代“第一节点”和“第二节点”,具体而言, 方法步骤的执行主体称为“本端节点”,与执行主体通信的节点称为“对端节点”。这些都是本领域技术人员可以理解其含义的。本申请涉及到的节点可以包括交换机、路由器、防火墙、分组传送网设备等等,为了方便描述,本申请中,上面提到的设备统称为节点。In the present application, "communication" and "transmission" are often used interchangeably. This application sometimes uses "local node" and "peer node" to refer to "first node" and "second node", specifically, The execution body of the method step is called "the local node", and the node that communicates with the execution subject is called the "peer node". These are all understood by those skilled in the art. The nodes involved in the present application may include switches, routers, firewalls, packet transport network devices, and the like. For convenience of description, the devices mentioned above are collectively referred to as nodes in the present application.
本申请所述的工作路径是指正常状态下,系统默认设置的进行业务流量传输的路径,保护路径是指工作路径无法进行业务流量的传输时,代替工作路径进行业务流量传输的路径。本申请涉及到的工作路径或保护路径可以是物理层面的光纤,也可以是逻辑层面的伪线、隧道中的任意一种或多种。为了方便描述,本申请统一称为工作路径或保护路径。The working path described in this application refers to the path for service traffic transmission that is set by default in the normal state. The protection path refers to the path for service traffic transmission instead of the working path when the working path cannot transmit service traffic. The working path or the protection path involved in the present application may be a physical layer optical fiber, or may be any one or more of a logical layer of a pseudowire or a tunnel. For convenience of description, the present application is collectively referred to as a working path or a protection path.
本申请所述的传输链路包括工作路径中用于业务流量传输的链路,也包括保护路径中用于业务流量传输的链路。需要说明的是,工作路径和保护路径的传输链路为两条不同的链路,例如两根不同的光纤。The transmission link described in the present application includes a link for traffic transmission in a working path, and a link for transmission of service traffic in the protection path. It should be noted that the transmission link of the working path and the protection path are two different links, for example, two different optical fibers.
在本申请实施例中,由本端节点发送端到对端节点接收端方向的工作路径,与对端节点发送端到本端节点接收端方向的工作路径,在物理上实现可能是同一条链路(例如同一条光纤等),也可能是两条不同的链路(例如两条不同的光纤)。本领域技术人员可以理解的是,两个方向的工作路径可以是相同的链路或不同的链路。保护路径设置与工作路径同理,不再赘述。In the embodiment of the present application, the working path from the transmitting end of the local node to the receiving end of the opposite end node, and the working path of the transmitting end of the opposite end node to the receiving end of the local end node may be physically the same link. (for example, the same fiber, etc.), or two different links (for example, two different fibers). Those skilled in the art can understand that the working paths in two directions may be the same link or different links. The protection path setting is the same as the working path, and will not be described again.
在本申请中用阿拉伯数字进行传输链路的标识,该数字仅用于示意性的表述包括节点设备之间的工作路径和保护路径在内的传输链路的位置。本领域技术人员可以通过实施例中具体的描述,得知业务流量所使用的具体链路。In the present application, the identification of the transmission link is carried out with Arabic numerals, which is used only for the illustrative representation of the location of the transmission link including the working path and the protection path between the node devices. Those skilled in the art can know the specific link used by the service traffic through the specific description in the embodiment.
本申请中提到的“环网保护协议”可以是ITU-T G.8132的任意版本,“线性保护协议”可以是ITU-T G.8031的任意版本。本申请所述的线性APS协议,可以是ITU-T G.8031的任意版本所述的线性APS协议。The "ring protection protocol" mentioned in this application may be any version of ITU-T G.8132, and the "linear protection protocol" may be any version of ITU-T G.8031. The linear APS protocol described in this application may be a linear APS protocol as described in any version of ITU-T G.8031.
实施例1Example 1
图1A、1B、1C示出了本申请所提供的环网APS的网络保护方法的一个实施例所涉及的一种应用场景示意图,如图1A所示,基站1经环网上的节 点1、节点2、节点3、节点4、节点5、节点6和无线网络控制器RNC1通信。其中:节点1和节点2之间通过传输链路1通信;节点2和节点3之间通过传输链路2通信;节点3和节点4之间通过传输链路3通信;节点4和节点5之间通过传输链路4通信;节点5和节点6之间通过传输链路5通信;节点6和节点1之间通过传输链路6通信。1A, 1B, and 1C are schematic diagrams of an application scenario involved in an embodiment of a network protection method for a ring network APS provided by the present application. As shown in FIG. 1A, a base station 1 is connected to a section on a ring network. Point 1, Node 2, Node 3, Node 4, Node 5, Node 6 and Radio Network Controller RNC1 communicate. Wherein: node 1 and node 2 communicate via transmission link 1; node 2 and node 3 communicate via transmission link 2; node 3 and node 4 communicate via transmission link 3; node 4 and node 5 Communication is carried out through the transmission link 4; the node 5 and the node 6 communicate via the transmission link 5; the node 6 and the node 1 communicate via the transmission link 6.
业务流量通过基站1到达环网的上环节点2,该环网包括节点1、节点2、节点3、节点4、节点5、节点6以及各节点之间的传输链路,且该环网部署有环网保护。环网部署有工作路径和保护路径,以图1A为例,基站1发送的业务流量从节点2上环,从节点5下环,对于该业务流量,环网上默认设置逆时针方向的工作路径为给该业务流量传输的正常工作路径,顺时针方向的保护路径为当该工作路径发生故障时,给所述业务流量提供传输保护。当业务流量从节点2上环,从节点5下环,正常工作状态下,业务流量的传输路径为节点2->节点1->节点6->节点5,即该业务流量在环网上的工作路径为节点2—>节点1—>节点6—>节点5,该业务流量在环网上的保护路径为节点2—>节点3—>节点4—>节点5。The traffic flows through the base station 1 to the upper ring node 2 of the ring network, and the ring network includes node 1, node 2, node 3, node 4, node 5, node 6, and a transmission link between the nodes, and the ring network is deployed. There is ring network protection. The ring network is deployed with a working path and a protection path. Take FIG. 1A as an example. The service traffic sent by the base station 1 is ringed from the node 2 and the slave node 5 is looped. For the service traffic, the working path in the counterclockwise direction is set by default on the ring network. The normal working path for the traffic transmission, the clockwise protection path is to provide transmission protection for the service traffic when the working path fails. When traffic is looped from node 2 and slave 5 is down, in normal working state, the transmission path of service traffic is node 2 -> node 1 -> node 6 -> node 5, that is, the service traffic works on the ring network. The path is Node 2 -> Node 1 -> Node 6 -> Node 5, and the protection path of the service traffic on the ring network is Node 2 -> Node 3 -> Node 4 -> Node 5.
当该工作路径中,除上环节点和下环节点之外的节点或者传输链路发生故障时,该业务流量在环网上的传输路径会发生倒换,即业务流量的传输路径从工作路径倒换到保护路径。比如,节点1发生故障或者节点2和节点1之间的传输链路发生链路路障,该业务流量的传输路径会发生倒换,从工作路径倒换到保护路径,即业务流量在环上的传输路径为节点2—>节点3—>节点4—>节点5。When the node or the transmission link of the upper ring node and the lower ring node fails, the transmission path of the service traffic on the ring network is switched, that is, the transmission path of the service traffic is switched from the working path to the working path. Protection path. For example, if node 1 fails or a link barrier occurs between the transmission link between node 2 and node 1, the transmission path of the service traffic is switched, and the working path is switched to the protection path, that is, the transmission path of the service traffic on the ring. It is node 2 -> node 3 -> node 4 -> node 5.
图1B示出了本申请实施例的环网中出现多点链路故障,并且其中一处节点之间发生双向SF时的APS场景示意图;图1C示出了图1B所示的环网SF单向消除时的APS场景示意图。上述的链路故障包括节点之间双向SF、单向SF、双向信号劣化(英文:signal degrade,SD)和单向SD。图1B和图1C所示的场景中,假定保护路径没有发生故障,以基站1向RNC1发送 的业务流量为例进行说明。参见图1B,环网上包括节点1、节点2、节点3、节点4、节点5和节点6,每个节点会分别向顺时针方向(以下称为“E方向”)和逆时针方向(以下称为“W方向”)双向收发报文,因此,如果报文沿W方向的传输链路传输,该传输路径上的节点1、节点2、节点3、节点4、节点5、节点6,分别标记为1_W、2_W、3_W、4_W、5_W、6_W;如果报文沿E方向的传输链路传输,该传输路径上的节点1、节点2、节点3、节点4、节点5、节点6,分别标记为1_E、2_E、3_E、4_E、5_E、6_E。FIG. 1B is a schematic diagram of an APS scenario when a multi-point link failure occurs in a ring network of the embodiment of the present application, and a bidirectional SF occurs between one node; FIG. 1C shows a ring network SF shown in FIG. 1B. Schematic diagram of the APS scene when it is eliminated. The above link failures include bidirectional SF, one-way SF, two-way signal degradation (English: signal degrade, SD) and one-way SD between nodes. In the scenario shown in FIG. 1B and FIG. 1C, it is assumed that the protection path does not fail, and the base station 1 transmits to the RNC1. The business traffic is illustrated as an example. Referring to FIG. 1B, the ring network includes node 1, node 2, node 3, node 4, node 5, and node 6, each of which will be clockwise (hereinafter referred to as "E direction") and counterclockwise (hereinafter referred to as The message is sent in both directions in the "W direction". Therefore, if the packet is transmitted along the transmission link in the W direction, node 1, node 2, node 3, node 4, node 5, and node 6 on the transmission path are respectively marked. 1_W, 2_W, 3_W, 4_W, 5_W, 6_W; if the message is transmitted along the transmission link in the E direction, node 1, node 2, node 3, node 4, node 5, and node 6 on the transmission path are respectively marked. It is 1_E, 2_E, 3_E, 4_E, 5_E, 6_E.
该业务流量通过基站1到达环网的节点2,该业务流量设置为节点2_W上环,由节点5_E下环,环网上默认设置逆时针方向为其正常工作方向,顺时针方向为保护工作方向。因此,业务流量到达环网节点2_W时,在正常工作情况下,沿着逆时针方向,从节点2_W上环,从节点5_E下环,即该业务流量在环网上的工作路径为节点2—>节点1—>节点6—>节点5。当环上出现多点链路故障时,比如节点2_W和节点1_E之间的工作路径发生双向SF,节点6_W与节点5_E之间的工作路径出现SF或SD。以节点2_W和节点1_E之间的工作路径发生双向SF,节点6_W至节点5_E发生SF为例,根据环网保护协议,节点1_E、节点2-W、节点5_E、6_W均进入SF倒换态SWITCH_SF,环上其它节点全部进入SF穿通态PASS_SF。此时,业务流量的传输路径由逆时针的工作路径倒换到顺时针的保护路径,业务流量从节点2_W上环,沿着顺时针的保护路径传输,从节点5_E下环到达RNC1。因此,虽然正常工作路径中发生了多点链路故障,但是业务流量的传输仍然没有中断。The service traffic reaches the node 2 of the ring network through the base station 1. The service traffic is set to the upper ring of the node 2_W, and the ring is disconnected by the node 5_E. The ring network is set to counterclockwise direction for its normal working direction by default, and the clockwise direction is the protection working direction. Therefore, when the service traffic reaches the ring network node 2_W, under normal working conditions, in the counterclockwise direction, the slave node 2_W rings, and the slave node 5_E rings, that is, the service traffic on the ring network is the node 2 -> Node 1 -> Node 6 -> Node 5. When a multipoint link failure occurs on the ring, for example, a bidirectional SF occurs between the working path between the node 2_W and the node 1_E, and a working path between the node 6_W and the node 5_E appears SF or SD. The SF is generated by the working path between the node 2_W and the node 1_E, and the SF is generated by the node 6_W to the node 5_E. According to the ring network protection protocol, the node 1_E, the node 2-W, the nodes 5_E, and 6_W all enter the SF reversal state SWITCH_SF. All other nodes on the ring enter the SF through state PASS_SF. At this time, the transmission path of the service traffic is switched from the counterclockwise working path to the clockwise protection path, and the service traffic is transmitted from the node 2_W to the ring, along the clockwise protection path, and from the node 5_E to the RNC1. Therefore, although a multipoint link failure occurs in the normal working path, the transmission of traffic is still not interrupted.
如图1C所示,当节点6_W至节点5_E方向的SF尚未消除,而节点1_E至节点2_W方向的SF消除时,节点2_W本端检测到流量接收方向SF消除,节点2_W本端的状态机会先改变为SWITCH_WTR状态。由于APS报文的正常发送周期为5秒,虽然节点2_W流量接收方向的SF消除,对端节点1_E需要等待5秒之后再向2_W发送APS报文。在这5秒的发送周期期间,节 点2_W不能收到对端节点1_E发送的APS报文,因此无法确定对端节点1_E接收方向的SF是否消除。由于此时节点6_W至节点5_E方向仍然存在SF,根据环网保护协议,节点2_W收到节点5_E沿着逆时针方向发送至节点2_W的表示节点6_W至节点5_E方向发生SF的APS报文。标识SF的APS报文的优先级请求高于节点2_W本端请求等待恢复(英文:wait to restore,WTR)的优先级,因此,根据环网保护协议,节点2_W的状态机会由SWITCH_WTR进入PASS_SF,节点2将由保护路径回切到工作路径,业务流量从节点2_W上环时,将沿着默认的逆时针工作路径进行业务传输,但是由于节点2_W至节点1_E的工作路径方向仍然是SF,业务流量无法传送,必须等到该节点2_W至节点1_E方向的SF也消除,或者等到节点2_W接收到节点1_E发过来的倒换请求为SF的APS报文而重新进入SF倒换态,由工作路径倒换到保护路径,业务流量的传输才能恢复,而APS报文的发送周期为5秒,因此,在该过程中,业务最长可能中断的时间为5秒。As shown in FIG. 1C, when the SF of the node 6_W to the node 5_E direction has not been eliminated, and the SF of the node 1_E to the node 2_W direction is eliminated, the local end of the node 2_W detects that the traffic reception direction SF is eliminated, and the state opportunity of the local end of the node 2_W changes first. Is the SWITCH_WTR state. The normal transmission period of the APS packet is 5 seconds. Although the SF of the node 2_W traffic receiving direction is eliminated, the peer node 1_E needs to wait for 5 seconds before sending the APS packet to the 2_W. During this 5 second send cycle, the festival The point 2_W cannot receive the APS packet sent by the peer node 1_E, so it is impossible to determine whether the SF in the receiving direction of the peer node 1_E is eliminated. Since the SF still exists in the direction of the node 6_W to the node 5_E at this time, according to the ring network protection protocol, the node 2_W receives the APS message that the node 5_E sends in the counterclockwise direction to the node 2_W indicating that the SF is in the direction of the node 6_W to the node 5_E. The priority request of the APS packet identifying the SF is higher than the priority of the node 2_W request to resume (WTR). Therefore, according to the ring protection protocol, the state opportunity of the node 2_W enters the PASS_SF by the SWITCH_WTR. Node 2 will be switched back to the working path by the protection path. When the traffic is sent from the node 2_W, the traffic will be transmitted along the default counterclockwise working path. However, since the working path of the node 2_W to the node 1_E is still SF, the traffic is traffic. Unable to transmit, the SF in the direction of the node 2_W to the node 1_E is also eliminated, or wait until the node 2_W receives the APS packet sent by the node 1_E and re-enters the SF reversal state, and the working path is switched to the protection path. The transmission of service traffic can be restored, and the APS packet transmission period is 5 seconds. Therefore, in this process, the maximum service interruption time is 5 seconds.
对于节点2_W和节点1_E之间的工作路径发生双向SF,节点6_W至节点5_E发生SD的场景,与节点2_W和节点1_E之间的工作路径发生双向SF,节点6_W至节点5_E发生SF的场景类似。对于两个场景相同的部分不再赘述,下面重点介绍一下两个场景不同的方面。当节点6_W至节点5_E方向的SD尚未消除,而节点1_E至节点2_W方向的SF消除时,如果节点2_W未从工作路径收到对端节点1_E发送的APS报文,根据环网保护协议,节点2_W收到节点5_E沿着逆时针方向发送至节点2_W的表示节点6_W至节点5_E方向发生SD的APS报文。标识SD的APS报文的优先级请求高于节点2_W本端请求WTR的优先级,因此,根据环网保护协议,节点2_W的状态机会由SWITCH_WTR进入PASS_SD。节点2将由保护路径回切到工作路径,业务流量从节点2_W上环时,将沿着默认的逆时针工作路径进行业务传输,但是由于节点2_W至节点1_E的工作路径方向仍然是SF,业务流量无法传送。 For the working path between the node 2_W and the node 1_E, a bidirectional SF occurs, a node 6_W to the node 5_E generates an SD scenario, a working path between the node 2_W and the node 1_E generates a bidirectional SF, and a scenario where the node 6_W to the node 5_E generates an SF is similar. . For the same parts of the two scenes, we will not go into details. The following focuses on the different aspects of the two scenarios. When the SD in the direction of the node 6_W to the node 5_E has not been eliminated, and the SF in the direction of the node 1_E to the node 2_W is eliminated, if the node 2_W does not receive the APS packet sent by the peer node 1_E from the working path, according to the ring network protection protocol, the node 2_W The received APS message sent by the node 5_E in the counterclockwise direction to the node 2_W indicating the occurrence of SD in the direction of the node 6_W to the node 5_E. The priority request of the APS packet identifying the SD is higher than the priority of the node 2_W requesting the WTR. Therefore, according to the ring protection protocol, the state opportunity of the node 2_W enters the PASS_SD by the SWITCH_WTR. Node 2 will be switched back to the working path by the protection path. When the traffic is sent from the node 2_W, the traffic will be transmitted along the default counterclockwise working path. However, since the working path of the node 2_W to the node 1_E is still SF, the traffic is traffic. Unable to transfer.
下面结合图2和图3对该网络保护方法进行详细说明。本实施例以该网络保护方法应用于图2所示的节点2,以节点6_W至节点5_E发生SF来举例说明。The network protection method will be described in detail below with reference to FIGS. 2 and 3. In this embodiment, the network protection method is applied to the node 2 shown in FIG. 2, and the SF is generated by the node 6_W to the node 5_E.
S301在第一节点和相邻的第二节点之间通信的工作路径发生双向SF,导致业务流量的传输路径从工作路径切换到保护路径后,如果在所述工作路径上,第三节点至与所述第三节点相邻的第四节点发生SF,并且第二节点至第一节点方向的SF消除,则确定所述第一节点是否接收到所述第二节点发送的环网自动保护倒换APS报文。S301, a working path of communication between the first node and the adjacent second node occurs in a bidirectional SF, and after the transmission path of the service traffic is switched from the working path to the protection path, if the working path is on the third node to The fourth node adjacent to the third node generates an SF, and the SF of the second node to the first node is eliminated, determining whether the first node receives the ring network automatic protection switching APS sent by the second node. Message.
如果第一节点接收到第二节点发送的APS报文,第一节点的状态机根据该APS报文请求确定是否倒换。If the first node receives the APS packet sent by the second node, the state machine of the first node determines whether to switch according to the APS packet request.
第一节点可以是环上用于传输当前业务流量的任意节点,当前业务流量在正常工作路径中,经过第一节点后,传输到第二节点。在本实施例中,以节点2作为第一节点,节点1作为第二节点,节点6作为第三节点,节点5作为第四节点进行举例说明。The first node may be any node on the ring for transmitting current service traffic, and the current service traffic is in the normal working path, and after being transmitted to the second node after passing through the first node. In this embodiment, node 2 is used as the first node, node 1 is used as the second node, node 6 is used as the third node, and node 5 is used as the fourth node for illustration.
正常情况下,业务流量从基站1到达上环节点2_W,沿着默认的逆时针工作方向,依次经由节点1、节点6、下环节点5_E到达RNC1。检测单元检测到节点1_E和节点2_W之间的工作路径发生双向SF、节点6_W至节点5_E的工作路径发生SF。在本申请实施例中,检测单元位于各节点设备中,可以通过操作、管理和维护(Operation,Administration and Maintenance,OAM)单元来实现检测单元的功能,OAM机制通过节点之间定时交互测试报文来报告节点之间的链路状态。在检测到节点1_E和节点2_W之间的工作路径发生双向SF以及节点6_W至节点5_E方向的工作路径发生SF后,节点2_W进入SWITCH_SF状态,环上经由节点2_W到达5_E的业务流量传输路径由逆时针的工作路径切换到顺时针的保护路径,业务流从节点2_W上环,沿着顺时针方向传输,从节点5_E下环。当检测到节点1至节点2方向的SF消除时,节点2_W由SWICH_SF状态变迁为等待恢复倒换态 SWITCH_WTR。节点2_W判断是否从所述工作路径上接收到节点1_E发送的APS报文,该APS报文用于指示节点2_W是否进行保护倒换。Normally, the traffic from the base station 1 to the upper ring node 2_W, in the default counterclockwise working direction, sequentially arrives at the RNC 1 via the node 1, the node 6, and the lower ring node 5_E. The detecting unit detects that the working path between the node 1_E and the node 2_W has a bidirectional SF, and the working path occurrence SF of the node 6_W to the node 5_E. In the embodiment of the present application, the detecting unit is located in each node device, and the function of the detecting unit can be implemented through an Operation, Administration, and Maintenance (OAM) unit. The OAM mechanism tests the message through the timing interaction between the nodes. To report the link status between nodes. After detecting that the working path between the node 1_E and the node 2_W occurs in the bidirectional SF and the working path in the direction of the node 6_W to the node 5_E occurs SF, the node 2_W enters the SWITCH_SF state, and the service traffic transmission path that reaches the 5_E via the node 2_W is reversed. The working path of the hour hand is switched to the clockwise protection path, and the traffic flow is transmitted from the node 2_W to the ring in a clockwise direction, and the slave node 5_E is looped. When the SF cancellation in the direction of the node 1 to the node 2 is detected, the node 2_W is changed from the SWICH_SF state to waiting for the recovery of the reverse state. SWITCH_WTR. The node 2_W determines whether the APS packet sent by the node 1_E is received from the working path, and the APS packet is used to indicate whether the node 2_W performs protection switching.
在本实施例中,当节点2_W接收到节点1_E发送的包括SF倒换请求的APS报文时,表示节点2_W至节点1_E方向的工作路径仍然存在SF,则节点2_W由SWITCH_WTR状态进入SWITCH_SF状态,业务流量仍然保持在保护路径,业务流量在节点2_W上环,沿着顺时针保护路径传输至节点5_E,由节点5_E下环。In this embodiment, when the node 2_W receives the APS message including the SF switching request sent by the node 1_E, indicating that the working path of the node 2_W to the node 1_E still has the SF, the node 2_W enters the SWITCH_SF state by the SWITCH_WTR state, and the service The traffic remains in the protection path. The traffic is looped on the node 2_W, and is transmitted along the clockwise protection path to the node 5_E, and the node 5_E is looped.
当节点2_W接收到节点1_E发送的无倒换请求的APS报文时,表示节点2_W至节点1_E方向的工作路径SF已经消除,如果节点6_W至节点5_E仍存在SF,根据环网保护协议,此时,节点2_W由SWITCH_WTR状态进入PASS_SF状态,业务流量的传输路径从保护路径回切到工作路径,业务流量从节点2_W上环,沿着逆时针工作路径传输到达节点6_W。业务流量到达节点6_W后,由于节点6_W至节点5_E方向存在SF,业务流量无法通过节点6_W至节点5_E方向的工作路径传输,根据环网保护协议,节点6_W切换到保护路径传输当前的业务流量,即沿着顺时针方向,先后经过节点1、节点2、节点3、节点4,到达节点5_E,从节点5_E下环。即,当节点2_W和节点1_E之间的双向SF消除,而节点6_W至节点5_E仍然存在SF时,业务流量在环网中的传输路径是:节点2—>节点1—>节点6—>节点1—>节点2—>节点3—>节点4—>节点5。直到节点6_W和节点5_E之间工作路径SF消除后,业务流量回切到正常的工作路径,从节点2_W上环,经由节点1,节点6,在节点5_E下环。When the node 2_W receives the APS message of the non-switching request sent by the node 1_E, it indicates that the working path SF in the direction of the node 2_W to the node 1_E has been eliminated. If the SF still exists in the node 6_W to the node 5_E, according to the ring network protection protocol, The node 2_W enters the PASS_SF state from the SWITCH_WTR state, and the transmission path of the service traffic is switched back from the protection path to the working path. The traffic is transmitted from the node 2_W to the ring and along the counterclockwise working path to the node 6_W. After the service traffic reaches the node 6_W, the service traffic cannot be transmitted through the working path of the node 6_W to the node 5_E due to the SF in the direction of the node 6_W to the node 5_E. According to the ring network protection protocol, the node 6_W switches to the protection path to transmit the current service traffic. That is, in the clockwise direction, the node 1, the node 2, the node 3, and the node 4 are successively passed to the node 5_E, and the slave node 5_E is looped. That is, when the two-way SF between the node 2_W and the node 1_E is eliminated, and the node 6_W to the node 5_E still have the SF, the transmission path of the traffic in the ring network is: node 2 -> node 1 -> node 6 -> node 1—>Node 2—>Node 3—>Node 4—>Node 5. Until the working path SF between the node 6_W and the node 5_E is eliminated, the service traffic is switched back to the normal working path, and the slave node 2_W is ringed, the node 1 and the node 6 are looped at the node 5_E.
S302:如果第一节点未从所述工作路径上接收到所述第二节点发送的所述APS报文,则所述第一节点确定所述第一节点至所述第二节点方向的SF未消除,并使当前传送的业务流量继续保持在保护路径传输。S302: If the first node does not receive the APS packet sent by the second node from the working path, the first node determines that the SF in the direction from the first node to the second node is not Eliminate and keep the currently transmitted traffic flowing on the protection path.
在本实施例中,当节点2_W没有收到来自相邻节点1_E发送的APS报文时,则认为节点2_W至节点1_E方向仍然存在SF,节点2_W仍然保持在 SWITCH_WTR状态,不响应节点5_E沿着逆时针方向发送至节点2_W的表示节点6_W至节点5_E发生SF的APS报文的倒换请求,即节点2_W的本向状态机不响应另一向状态机传递过来的优先级高于当前状态的倒换请求。此时,业务流量也仍然保持在保护路径上传输,即当业务流量从节点2_W上环时,仍然沿着顺时针方向,经过节点3、节点4,由节点5_E下环,此时业务流量在环网中的传输路径与此前节点2_W和节点1_E之间发生双向SF时业务流量在网络中的传输路径保持一致,即使得业务流量继续保持在保护路径传输。In this embodiment, when the node 2_W does not receive the APS packet sent from the neighboring node 1_E, it is considered that the SF still exists in the direction of the node 2_W to the node 1_E, and the node 2_W remains in the node 2_W. In the SWITCH_WTR state, the non-responding node 5_E sends the APS message switching request of the SF in the counterclockwise direction to the node 2_W indicating that the node 6_W to the node 5_E, that is, the inbound state machine of the node 2_W does not respond to the other state machine. A switching request with a higher priority than the current state. At this time, the traffic is still transmitted on the protection path. That is, when the traffic is looped from the node 2_W, it still goes clockwise, passes through node 3 and node 4, and is disconnected by node 5_E. The traffic path in the ring network is consistent with the transmission path of the traffic in the network when the two-way SF occurs between the previous node 2_W and the node 1_E, that is, the service traffic continues to be transmitted on the protection path.
综上所述,本实施例提供的网络保护方法,在环网中发生多点链路故障,且其中一处节点之间发生双向SF,环上另外一处节点之间尚有链路故障未消除时,其中所述双向SF中发生SF单向消除时,首先判断SF消除节点是否接收到对端节点发送的APS报文,如果该节点未接收到所述APS报文,则认为该节点至对端节点方向的SF未消除,并使当前传送的业务流量在网络中的传输路径与所述双向SF发生时业务流量在网络中的传输路径保持一致。从而有效减少了业务流量在网络传输中,面对环网存在多点链路故障中,由于其中一处节点间双向SF消除不同步所带来的业务中断问题,提高了网络业务传输的可靠性。In summary, the network protection method provided in this embodiment has a multi-point link failure in the ring network, and a bidirectional SF occurs between one of the nodes, and another link between the nodes on the ring still has a link failure. When the SF unidirectional cancellation occurs in the bidirectional SF, it is first determined whether the SF cancellation node receives the APS packet sent by the peer node, and if the node does not receive the APS packet, the node is considered to be The SF in the direction of the end node is not eliminated, and the transmission path of the currently transmitted service traffic in the network is consistent with the transmission path of the service traffic in the network when the bidirectional SF occurs. Therefore, the service traffic is effectively reduced in the network transmission, and in the case of a multi-point link failure in the ring network, the service interruption problem caused by the unsynchronized bidirectional SF elimination between one of the nodes improves the reliability of the network service transmission. .
实施例2:Example 2:
参考图4,其示出了本发明提供的线性APS的网络保护方法的实施例的应用场景示意图;第一节点A和第二节点B为业务流量传输路径中的节点设备,基站经由第一节点A和第二节点B与RNC通信。第一节点A和第二节点B之间的通信路径包括工作路径(如图4所示的实线)以及保护路径(如图4所示的虚线),所述工作路径和所述保护路径为两条不同的链路。所述链路为逻辑链路或物理链路。当第一节点A和第二节点B之间通信的工作路径存在双向SD,并且第一节点A和第二节点B之间通信的保护路径存在双向SF时,基站发送的业务流量经过第一节点A传送到第二节点B,由于所 述保护路径双向SF,业务流量由第一节点A经由工作路径传输到第二节点B。虽然工作路径存在双向SD,但是业务仍然能通,不会完全中断;当保护路径中第二节点B至第一节点A单向SF消除时,第二节点B保持在工作路径传输流量,而第一节点A则将业务流量切换到保护路径,选择从保护路径发送业务流量。但此时第一节点A至第二节点B的保护路径方向的SF未消除,因此,此时会出现业务中断。Referring to FIG. 4, it is a schematic diagram of an application scenario of an embodiment of a network protection method for a linear APS provided by the present invention. The first node A and the second node B are node devices in a service traffic transmission path, and the base station passes the first node. A and the second Node B communicate with the RNC. The communication path between the first node A and the second node B includes a working path (solid line as shown in FIG. 4) and a protection path (dashed line as shown in FIG. 4), and the working path and the protection path are Two different links. The link is a logical link or a physical link. When the working path of communication between the first node A and the second node B has a bidirectional SD, and the protection path of communication between the first node A and the second node B has a bidirectional SF, the service traffic sent by the base station passes through the first node. A is transmitted to the second node B, due to The protection path is a bidirectional SF, and the traffic is transmitted by the first node A to the second node B via the working path. Although there is a two-way SD in the working path, the service can still pass and is not completely interrupted; when the second node B to the first node A in the protection path is unidirectionally SF eliminated, the second node B keeps the traffic in the working path, and the second A node A switches traffic to the protection path and chooses to send traffic from the protection path. However, the SF of the protection path direction of the first node A to the second node B is not eliminated at this time, and therefore, a service interruption occurs at this time.
线性APS协议定义了两种保护机制:1+1保护倒换和1:1保护倒换。在1+1保护倒换机制中,发送端在工作路径和保护路径同时发送业务,接收端选择在工作路径和保护路径中的一条路径接收业务。在1:1保护倒换机制中,正常情况下,发送端和接收端在工作路径传输主要的业务,保护路径不传输业务或者只传输一些低优先级的业务流量,在工作路径出现故障时,发送端和接收端倒换到保护路径传输主要的业务。在本申请实施例中APS既可以是1+1保护倒换机制,也可以是1:1保护倒换机制。The linear APS protocol defines two protection mechanisms: 1+1 protection switching and 1:1 protection switching. In the 1+1 protection switching mechanism, the transmitting end simultaneously transmits the service in the working path and the protection path, and the receiving end selects one path in the working path and the protection path to receive the service. In the 1:1 protection switching mechanism, the sender and the receiver transmit the primary service on the working path. The protection path does not transmit services or only transmits some low-priority service traffic. When the working path fails, the sender sends the service. The end and the receiving end switch to the protection path to transmit the main service. In the embodiment of the present application, the APS may be a 1+1 protection switching mechanism or a 1:1 protection switching mechanism.
线性APS协议中还定义了单向保护倒换机制和双向保护倒换机制。以图4所示的应用场景为例,如果第一节点A发送端到第二节点B接收端方向的工作路径出现故障,在单向保护倒换机制中,只将所述出现故障的方向上的业务流量倒换到保护路径进行传输,而第二节点B的发送端到第一节点A的接收端之间的业务传输依然保持工作路径不进行倒换。在双向保护倒换机制中,则将两个方向的业务传输均倒换到所述保护路径。本申请实施例的线性APS机制为双向保护倒换机制。A one-way protection switching mechanism and a two-way protection switching mechanism are also defined in the linear APS protocol. Taking the application scenario shown in FIG. 4 as an example, if the working path of the first node A to the receiving end of the second node B fails, in the one-way protection switching mechanism, only the direction of the failure occurs. The service traffic is switched to the protection path for transmission, and the service transmission between the sender of the second node B and the receiver of the first node A still keeps the working path from being switched. In the bidirectional protection switching mechanism, traffic transmissions in both directions are switched to the protection path. The linear APS mechanism of the embodiment of the present application is a bidirectional protection switching mechanism.
下面结合图5和图6对本申请提供的网络保护方法进行详细说明。The network protection method provided by the present application is described in detail below with reference to FIG. 5 and FIG. 6.
本实施例以该网络保护方法应用于图5所示的节点设备来举例说明。当第一节点A和第二节点B之间通信的工作路径(如图5所示的实线)发生双向SD,保护路径(如图5所示的虚线)发生双向SF时,按照线性APS协议,第一节点A和第二节点B将业务流量的传输路径保持在工作路径传输。之后,This embodiment is exemplified by applying the network protection method to the node device shown in FIG. 5. When the working path of communication between the first node A and the second node B (solid line as shown in FIG. 5) occurs in a bidirectional SD, and the protection path (dashed line as shown in FIG. 5) generates a bidirectional SF, according to the linear APS protocol The first node A and the second node B maintain the transmission path of the traffic flow on the working path. after that,
S601、如果第一节点和第二节点之间通信的工作路径双向SD未消除, 且第一节点与第二节点之间通信的保护路径出现单向SF消除,则确定第一节点是否接收到第二节点发送的线性自动保护倒换APS报文。S601. If the working path of the communication between the first node and the second node is not eliminated, And the unidirectional SF cancellation occurs in the protection path of the communication between the first node and the second node, determining whether the first node receives the linear automatic protection switching APS packet sent by the second node.
如果第一节点接收到来自第二节点发送的APS报文,第一节点按照APS报文确定是否进行倒换。If the first node receives the APS packet sent by the second node, the first node determines whether to perform the switching according to the APS packet.
在本实施例中,第一节点可以是网络上用于传输业务流量的任意节点,由基站发送的业务流量经过第一节点A到达第二节点B。正常情况下,业务流量从基站到达第一节点A时,会选择由工作路径进行所述业务流量的传输。当第一节点A和第二节点B之间的工作路径出现双向SD,而保护路径正常时,业务流量从工作路径切换到保护路径进行传输。在业务流量传输过程中,检测单元检测第一节点A和第二节点B之间的链路状态,检测单元可以是位于各节点设备中的OAM单元,OAM机制通过节点之间定时交互测试报文来报告节点之间的链路状态。当所述检测单元检测到第一节点A和第二节点B之间的工作路径尚存双向SD时,保护路径发生双向SF,此时第一节点A和第二节点B均由保护路径切换到工作路径;在该状态下,第二节点B进入SF_P(0,0)状态,第二节点B切换到工作路径;而第一节点A也进入SF_P(0,0)状态,第一节点A同样切换到工作路径。SF_P(0,0)表示保护路径SF,业务流量倒换到工作路径传输。In this embodiment, the first node may be any node on the network for transmitting service traffic, and the service traffic sent by the base station reaches the second node B through the first node A. Normally, when the service traffic reaches the first node A from the base station, the service path is selected to be transmitted by the working path. When the working path between the first node A and the second node B appears bidirectional SD, and the protection path is normal, the traffic is switched from the working path to the protection path for transmission. In the process of the service traffic transmission, the detecting unit detects the link state between the first node A and the second node B, and the detecting unit may be an OAM unit located in each node device, and the OAM mechanism tests the message through the timing interaction between the nodes. To report the link status between nodes. When the detecting unit detects that the working path between the first node A and the second node B still has a bidirectional SD, the protection path generates a bidirectional SF, and at this time, the first node A and the second node B are switched by the protection path to Working path; in this state, the second node B enters the SF_P(0,0) state, the second node B switches to the working path; and the first node A also enters the SF_P(0,0) state, the first node A is also Switch to the working path. SF_P(0,0) indicates the protection path SF, and the service traffic is switched to the working path transmission.
当第二节点B至第一节点A方向上,保护路径的SF消除时,第一节点A收到第二节点B发送的包括SF倒换请求的APS报文,则表示第一节点A至第二节点B的保护路径仍然存在SF。第二节点B继续保持在SF_P(0,0)状态,状态未变,保持在工作路径,每隔5秒向第一节点A发送SF_P(0,0)报文。第一节点A接收到第二节点B发送的SF_P(0,0)请求报文,根据线性APS协议,第一节点A进入NR_W(0,0),保持在工作路径。NR_W(0,0)表示工作路径无倒换请求,业务流量在工作路径传输。When the SF of the protection path is removed in the direction from the second node B to the first node A, the first node A receives the APS packet including the SF switching request sent by the second node B, indicating that the first node A to the second node The protection path of Node B still exists SF. The second node B continues to remain in the SF_P(0,0) state, the state is unchanged, remains in the working path, and sends the SF_P(0,0) message to the first node A every 5 seconds. The first node A receives the SF_P(0,0) request message sent by the second node B, and according to the linear APS protocol, the first node A enters NR_W(0, 0) and remains in the working path. NR_W(0,0) indicates that the working path has no switching request, and the traffic is transmitted on the working path.
S602:如果第一节点未从所述保护路径上接收到第二节点发送的APS报文,则所述第一节点确定所述保护路径中,第一节点至第二节点方向的SF 未消除,继续保持在工作路径传输当前传送的业务流量。S602: If the first node does not receive the APS packet sent by the second node from the protection path, the first node determines the SF in the direction of the first node to the second node in the protection path. Unremoved, continue to maintain the traffic traffic currently transmitted on the working path.
在本实施例中,虽然第一节点A接收方向的SF消除,但是在第一节点A未收到第二节点B发送的APS报文之前,仍然默认第二节点B的倒换请求为SF_P(0,0)。第二节点B继续保持在SF_P(0,0)状态,状态未变,保持在工作路径,保持5秒周期向第一节点A发送SF_P(0,0)报文,在此期间,第一节点A默认对端请求为SF_P(0,0),本端进入NR_W(0,0),保持在工作路径传输当前业务流量。In this embodiment, although the SF cancellation in the receiving direction of the first node A, before the first node A does not receive the APS packet sent by the second node B, the switching request of the second node B is still SF_P (0). , 0). The second node B continues to remain in the SF_P(0,0) state, the state remains unchanged, remains in the working path, and the SF_P(0,0) message is sent to the first node A for a period of 5 seconds, during which the first node A default peer request is SF_P(0,0), and the local end enters NR_W(0,0) to keep the current traffic on the working path.
当第一节点A和第二节点B之间的保护路径的双向SF都消除时,且第二节点B未从所述保护路径接收到第一节点A发送的APS报文,第二节点B的状态机切换到NR_W(0,0)状态,第二节点B保持在工作路径,第二节点B发送包括NR_W(0,0)请求的APS报文给第一节点A;第一节点A接收第二节点B发送的包括NR_W(0,0)请求的APS报文,第一节点A的状态机进入SD_W(1,1)状态,SD_W(1,1)状态表示工作路径存在SD,业务流量在保护路径传输。第一节点A回切到保护路径,并发送包括SD_W(1,1)请求的APS报文给第二节点B。第二节点B收到第一节点A发送的包括SD_W(1,1)请求的APS报文,第二节点B的状态机进入SD_W(1,1)状态,第二节点B回切到保护路径。第一节点A在第一节点A的状态机为SD_W(1,1)状态时收到第二节点B发送的包括SD_W(1,1)请求的APS报文,第一节点A的状态机的状态不变,第一节点A保持在保护路径,从而保证业务流量的正常传输。When the bidirectional SF of the protection path between the first node A and the second node B is eliminated, and the second node B does not receive the APS message sent by the first node A from the protection path, the second node B The state machine switches to the NR_W(0,0) state, the second node B remains in the working path, and the second node B sends the APS message including the NR_W(0,0) request to the first node A; the first node A receives the first The AES packet sent by the two-node B includes the NR_W (0, 0) request, the state machine of the first node A enters the SD_W (1, 1) state, and the SD_W (1, 1) state indicates that the working path exists SD, and the service traffic is Protection path transmission. The first node A switches back to the protection path and sends an APS message including the SD_W (1, 1) request to the second node B. The second node B receives the APS packet sent by the first node A and includes the SD_W (1, 1) request, the state machine of the second node B enters the SD_W (1, 1) state, and the second node B switches back to the protection path. . The first node A receives the APS packet including the SD_W (1, 1) request sent by the second node B when the state machine of the first node A is in the SD_W (1, 1) state, and the state machine of the first node A The state is unchanged, and the first node A remains in the protection path, thereby ensuring normal transmission of traffic.
当第一节点A和第二节点B之间的工作路径的双向SD都消除,第一节点A和第二节点B将业务流量的传输路径回切到工作路径。When the bidirectional SD of the working path between the first node A and the second node B is eliminated, the first node A and the second node B cut back the transmission path of the traffic flow to the working path.
综上所述,本实施例提供线性APS的网络保护方法,在网络第一节点和相邻的第二节点之间通信的工作路径出现双向SD导致业务流量的传输路径切换到保护路径后,保护路径出现双向SF,业务流量切换到工作路径传输,之后保护路径的双向SF中的单向SF消除,在第一节点未从所述保护路径上 接收到相邻的第二节点发来的APS报文时,确定第一节点至第二节点方向的保护路径上的SF未消除,继续在工作路径上传输业务流量,而不切换到单向SF消除的保护路径。采用本申请实施例的方法,当业务传输路径双向SF故障消除不同步时,可减少业务中断,改善业务传输的可靠性。In summary, the present embodiment provides a network protection method for a linear APS. After a bidirectional SD occurs in a working path between a first node of the network and an adjacent second node, the transmission path of the service traffic is switched to the protection path, and the protection is performed. A bidirectional SF occurs in the path, the traffic is switched to the working path, and then the one-way SF in the bidirectional SF of the protection path is eliminated, and the first node is not on the protection path. When receiving the APS packet sent by the adjacent second node, determining that the SF on the protection path in the direction from the first node to the second node is not eliminated, and continuing to transmit the service traffic on the working path without switching to the one-way SF. Eliminated protection path. With the method of the embodiment of the present application, when the two-way SF fault elimination of the service transmission path is not synchronized, the service interruption can be reduced, and the reliability of the service transmission can be improved.
本领域技术人员可以理解:实现上述方法实施例的全部或者部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储在计算机可读取的存储介质中,该程序在执行时,执行包括上述方法实施例的步骤,而前述的存储介质包括:只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等各种可以存储程序代码的介质中。It can be understood by those skilled in the art that all or part of the steps of implementing the above method embodiments may be completed by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The steps of the foregoing method embodiments, and the foregoing storage medium includes: a read-only memory ROM, a random access memory RAM, a magnetic disk, or an optical disk, and the like, which can store program codes.
实施例3:Example 3:
为了执行上述实施例中的网络保护方法,本发明实施例提供了一种网络保护装置,该网络保护装置可以位于实施例1中的第一节点侧或第二节点侧,或者该网络保护装置可以位于实施例1中的第一节点上或第二节点上。参见图7,该网络保护装置包括:检测单元和业务保护单元,其中,In order to perform the network protection method in the foregoing embodiment, the embodiment of the present invention provides a network protection device, where the network protection device may be located on the first node side or the second node side in Embodiment 1, or the network protection device may It is located on the first node or the second node in Embodiment 1. Referring to FIG. 7, the network protection device includes: a detecting unit and a service protection unit, where
所述检测单元,用于确定第一节点和相邻的第二节点之间是否出现通信故障;The detecting unit is configured to determine whether a communication failure occurs between the first node and the adjacent second node;
所述检测单元可以是位于节点设备中的OAM单元,OAM通过节点之间定时交互测试报文来报告节点之间的链路状态,以检测链路是否发生故障。当OAM单元检测节点之间双向SF、单向SF,单向SD,双向SD时,都会将故障类型通知故障节点,所述业务保护单元会根据所述检测单元的检测结果对业务流量的传输进行保护。当所述检测单元检测到第一节点和相邻的第二节点之间的传输路径发生双向SF时,业务流量的传输路径会从第一路径切换到第二路径,以确保业务流量的正常传输。The detecting unit may be an OAM unit located in the node device, and the OAM reports the link status between the nodes by using a timed interaction test message between the nodes to detect whether the link is faulty. When the OAM unit detects the bidirectional SF, the unidirectional SF, the unidirectional SD, and the bidirectional SD between the nodes, the fault type is notified to the faulty node, and the service protection unit performs the transmission of the service traffic according to the detection result of the detecting unit. protection. When the detecting unit detects that the transmission path between the first node and the adjacent second node generates a bidirectional SF, the transmission path of the service traffic is switched from the first path to the second path to ensure normal transmission of service traffic. .
所述业务保护单元,用于根据检测单元的检测结果,进行业务保护;The service protection unit is configured to perform service protection according to the detection result of the detecting unit;
在环网APS场景下,当第一节点和与所述第一节点相邻的第二节点之间发生双向SF,导致业务流量的传输路径从工作路径切换到保护路径后,如果 第三节点至与所述第三节点相邻的第四节点发生SF或SD,并且所述检测单元确定所述工作路径上、所述第二节点至所述第一节点方向的SF消除,所述业务保护单元确定所述第一节点未从所述工作路径上接收到所述第二节点发送的环网APS报文,则所述业务保护单元确定所述工作路径上、所述第一节点至所述第二节点方向的SF未消除,保持所述业务流量通过所述保护路径传输;In the ring network APS scenario, when a two-way SF occurs between the first node and the second node adjacent to the first node, the traffic path of the service traffic is switched from the working path to the protection path, if The third node generates SF or SD to a fourth node adjacent to the third node, and the detecting unit determines SF elimination on the working path from the second node to the first node direction, where The service protection unit determines that the first node does not receive the ring network APS message sent by the second node from the working path, and the service protection unit determines that the first node is on the working path. The SF to the second node direction is not eliminated, and the service traffic is maintained to be transmitted through the protection path;
其中,在所述工作路径上,所述业务流量传输经过所述第一节点、所述第二节点、所述第三节点和所述第四节点。The service traffic is transmitted through the first node, the second node, the third node, and the fourth node on the working path.
可选的,所述业务保护单元还用于当第一节点接收到第二节点发送的APS报文时,指示第一节点按照APS报文的请求进行保护倒换。Optionally, the service protection unit is further configured to: when the first node receives the APS packet sent by the second node, instruct the first node to perform protection switching according to the request of the APS packet.
进一步可选的,所述业务保护单元还用于:当所述第一节点未从工作路径上接收到所述第二节点发送的所述APS报文时,指示所述第一节点不响应所述第四节点发送的倒换请求,所述第四节点发送的倒换请求的优先级高于所述第一节点的状态优先级。Further, optionally, the service protection unit is further configured to: when the first node does not receive the APS packet sent by the second node from the working path, indicating that the first node does not respond to the The switching request sent by the fourth node is performed, and the switching request sent by the fourth node has a higher priority than the first node.
在线性APS场景下,第一节点和相邻的第二节点之间通信的工作路径发生双向SD,保护路径发生双向SF,业务流量在工作路径传输时;如果所述检测单元确定在所述保护路径中、从所述第二节点至所述第一节点方向的SF消除,且所述业务保护单元确定所述第一节点未从所述保护路径接收到所述第二节点发送的线性自动保护倒换APS报文,则所述业务保护单元确定所述保护路径中,所述第一节点至所述第二节点方向的SF未消除,保持所述业务流量通过所述工作路径传输。In the linear APS scenario, the working path of communication between the first node and the adjacent second node generates a bidirectional SD, the protection path generates a bidirectional SF, and the service traffic is transmitted during the working path; if the detecting unit determines that the protection is in the protection The SF in the path from the second node to the first node is eliminated, and the service protection unit determines that the first node does not receive the linear automatic protection sent by the second node from the protection path. If the APS packet is switched, the service protection unit determines that the SF in the direction from the first node to the second node is not eliminated, and the service traffic is transmitted through the working path.
可选的,所述业务保护单元还用于当所述第一节点从所述保护路径上接收到所述第二节点发送的所述APS报文时,指示所述第一节点按照所述APS报文的指示进行保护倒换。Optionally, the service protection unit is further configured to: when the first node receives the APS packet sent by the second node from the protection path, instruct the first node to follow the APS The indication of the packet is protected and switched.
所述业务保护单元或所述检测单元,可以通过电路来实现,也可以通过程序指令相关的硬件来实现,上述硬件可以采用本领域技术人员熟知的各种 设备,比如:可以是网络处理器(英文:Network Processor,NP),中央处理器(英文:Central Processing Unit,CPU)等等。The service protection unit or the detecting unit may be implemented by a circuit, or may be implemented by hardware related to program instructions, and the hardware may be variously known to those skilled in the art. The device, for example, can be a network processor (English: Network Processor, NP), a central processing unit (English: Central Processing Unit, CPU), and the like.
实施例4:Example 4:
图8示出了本发明实施例提供的另一种网络保护装置,所述网络保护装置位于实施例1的第一节点侧,或者所述网络保护装置位于实施例2的第一节点侧,或者所述网络保护装置位于实施例1的第一节点上,或者所述网络保护装置位于实施例2的第一节点侧。FIG. 8 is a diagram showing another network protection device according to an embodiment of the present invention, where the network protection device is located on the first node side of Embodiment 1, or the network protection device is located on the first node side of Embodiment 2, or The network protection device is located at the first node of Embodiment 1, or the network protection device is located at the first node side of Embodiment 2.
如图8所示,所述网络保护装置包括存储器101、处理器102。所述存储器101和处理器102可以通过总线103通信;所述处理器102还可以通过网络接口与相邻的节点设备通信。As shown in FIG. 8, the network protection device includes a memory 101 and a processor 102. The memory 101 and the processor 102 can communicate over a bus 103; the processor 102 can also communicate with neighboring node devices over a network interface.
所述存储器101,用于存储包括程序、指令或代码;The memory 101 is configured to store a program, an instruction, or a code;
所述处理器102,用于执行存储器102中的程序、指令或代码,完成实施例1中的S301~S303的操作,或者完成实施例2中的S601~S602的操作。The processor 102 is configured to execute a program, an instruction, or a code in the memory 102, complete the operations of S301 to S303 in the first embodiment, or complete the operations of S601 to S602 in the second embodiment.
所述存储器可以是但不限于是随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM)、光盘只读存储器(CD-ROM)、硬盘或者磁碟等各种可以存储程序指令代码的介质。The memory may be, but not limited to, a random access memory (RAM), a read only memory (ROM), an erasable programmable read only memory (EPROM), a compact disk read only memory (CD-ROM), a hard disk, or a magnetic disk. And other media that can store program instruction code.
所述处理器可以是一个或多个CPU,在一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。The processor may be one or more CPUs. In the case of one CPU, the CPU may be a single core CPU or a multi-core CPU.
本发明还提供了一种通信系统,包括第一节点、第二节点和网络保护装置,所述网络保护装置可以是实施例3或实施例4所示的网络保护装置。所述网络保护装置用于执行本申请实施例1或2所述的网络保护方法。The present invention further provides a communication system including a first node, a second node, and a network protection device, and the network protection device may be the network protection device shown in Embodiment 3 or Embodiment 4. The network protection device is configured to perform the network protection method according to Embodiment 1 or 2 of the present application.
本说明书的各个部分均采用递进的方式进行描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点介绍的都是与其他实施例不同之处。尤其,对于装置和系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例部分的说明即可。The various parts of the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on differences from other embodiments. In particular, for device and system embodiments, the description is relatively simple as it is substantially similar to the method embodiment, and the relevant portions can be found in the description of the method embodiments.
最后,需要说明的是:以上所述仅为本发明技术方案的较佳实施例而已, 并非用于限定本发明的保护范围。显然,本领域技术人员可以对本申请进行各种改动和变型而不脱离本发明的范围。倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 Finally, it should be noted that the above description is only a preferred embodiment of the technical solution of the present invention. It is not intended to limit the scope of the invention. It will be apparent that those skilled in the art can make various modifications and variations to the present invention without departing from the scope of the invention. All such modifications, equivalents, improvements, etc., are intended to be included within the scope of the present invention.

Claims (13)

  1. 一种网络保护方法,其特征在于,包括:A network protection method, comprising:
    当环网的第一节点和与所述第一节点相邻的第二节点之间通信的工作路径发生双向信号故障SF,导致业务流量的传输路径从所述工作路径切换到保护路径后,如果在所述工作路径上,第三节点至与所述第三节点相邻的第四节点发生SF或信号劣化SD,并且所述工作路径上、从所述第二节点至所述第一节点方向的SF消除时,所述第一节点未从所述工作路径上接收到所述第二节点发送的环网自动保护倒换APS报文,则确定所述工作路径上、所述第一节点至所述第二节点方向的SF未消除,保持所述业务流量通过所述保护路径传输;When a working path of communication between the first node of the ring network and the second node adjacent to the first node occurs a bidirectional signal failure SF, causing the transmission path of the service traffic to be switched from the working path to the protection path, if On the working path, a third node to a fourth node adjacent to the third node generates SF or signal degradation SD, and on the working path, from the second node to the first node When the SF is removed, the first node does not receive the ring network automatic protection switching APS packet sent by the second node from the working path, and determines that the first node to the working path The SF in the direction of the second node is not eliminated, and the service traffic is kept transmitted through the protection path;
    其中,在所述工作路径上,所述业务流量传输经过所述第一节点、所述第二节点、所述第三节点和所述第四节点。The service traffic is transmitted through the first node, the second node, the third node, and the fourth node on the working path.
  2. 根据权利要求1所述的方法,其特征在于:所述保持所述业务流量通过所述保护路径传输,包括:在所述第一节点未从所述工作路径上接收到所述第二节点发送的所述APS报文时,所述第一节点的状态机倒换状态保持不变。The method according to claim 1, wherein said maintaining said traffic flow through said protection path comprises: transmitting, at said first node, said second node not received from said working path When the APS packet is sent, the state machine switching state of the first node remains unchanged.
  3. 根据权利要求2所述的方法,其特征在于:所述第一节点的状态机倒换状态保持不变,包括:所述第一节点不响应所述第四节点发送的倒换请求,所述第四节点发送的倒换请求的优先级高于所述第一节点的状态优先级。The method according to claim 2, wherein the state machine switching state of the first node remains unchanged, including: the first node does not respond to the switching request sent by the fourth node, and the fourth The switching request sent by the node has a higher priority than the state priority of the first node.
  4. 一种网络保护方法,其特征在于,该方法包括:A network protection method, the method comprising:
    当第一节点和与所述第一节点相邻的第二节点之间通信的工作路径发生双向信号劣化SD,所述第一节点和所述第二节点之间通信的保护路径发生双向信号故障SF,业务流量在所述工作路径传输时;如果所述保护路径上、所述第二节点至所述第一节点方向的SF消除,且所述第一节点未从所述保护路径上接收到所述第二节点发送的线性自动保护倒换APS报文,则确定所述保护路径上、所述第一节点至所述第二节点方向的SF未消除,保持所 述业务流量通过所述工作路径传输。When the working path communicated between the first node and the second node adjacent to the first node generates a bidirectional signal degradation SD, a bidirectional signal failure occurs in a protection path between the first node and the second node. SF, when traffic is transmitted on the working path; if the SF on the protection path from the second node to the first node is eliminated, and the first node is not received from the protection path The linear automatic protection switching APS packet sent by the second node determines that the SF in the protection path and the direction from the first node to the second node is not eliminated, and the SF is maintained. The traffic is transmitted through the working path.
  5. 根据权利要求4所述的方法,其特征在于,还包括:当所述第一节点从所述保护路径上接收到所述第二节点发送的所述APS报文时,所述第一节点按照所述APS报文的指示进行保护倒换。The method according to claim 4, further comprising: when the first node receives the APS message sent by the second node from the protection path, the first node follows The indication of the APS packet performs protection switching.
  6. 一种网络保护装置,其特征在于:包括检测单元和业务保护单元,其中,A network protection device, comprising: a detecting unit and a service protection unit, wherein
    当环网的第一节点和与所述第一节点相邻的第二节点之间通信的工作路径发生双向信号故障SF,导致业务流量的传输路径从所述工作路径切换到保护路径后,如果所述工作路径上,第三节点至与所述第三节点相邻的第四节点发生SF或信号劣化SD,并且所述检测单元确定所述工作路径上、所述第二节点至所述第一节点方向的SF消除,所述业务保护单元确定所述第一节点未从所述工作路径上接收到所述第二节点发送的环网自动保护倒换APS报文,则所述业务保护单元确定所述工作路径上、所述第一节点至所述第二节点方向的SF未消除,保持所述业务流量通过所述保护路径传输;When a working path of communication between the first node of the ring network and the second node adjacent to the first node occurs a bidirectional signal failure SF, causing the transmission path of the service traffic to be switched from the working path to the protection path, if On the working path, the third node to the fourth node adjacent to the third node generates SF or signal degradation SD, and the detecting unit determines that the working path is the second node to the first SF elimination in a node direction, the service protection unit determines that the first node does not receive the ring network automatic protection switching APS message sent by the second node from the working path, and the service protection unit determines The SF of the working path, the direction from the first node to the second node is not eliminated, and the service traffic is kept transmitted through the protection path;
    其中,在所述工作路径上,所述业务流量传输经过所述第一节点、所述第二节点、所述第三节点和所述第四节点。The service traffic is transmitted through the first node, the second node, the third node, and the fourth node on the working path.
  7. 根据权利要求6所述的装置,其特征在于:所述装置位于所述第一节点侧。The apparatus of claim 6 wherein said apparatus is located on said first node side.
  8. 根据权利要求6或7所述的装置,其特征在于:所述业务保护单元还用于:当所述第一节点从所述工作路径上接收到所述第二节点发送的所述APS报文时,指示所述第一节点按照所述APS报文的指示进行保护倒换。The device according to claim 6 or 7, wherein the service protection unit is further configured to: when the first node receives the APS packet sent by the second node from the working path And instructing the first node to perform protection switching according to the indication of the APS packet.
  9. 根据权利要求6-8任一项所述的装置,其特征在于:所述业务保护单元还用于:当所述第一节点未从所述工作路径上接收到所述第二节点发送的所述APS报文时,指示所述第一节点不响应所述第四节点发送的倒换请求,所述第四节点发送的倒换请求的优先级高于所述第一节点的状态优先级。The device according to any one of claims 6-8, wherein the service protection unit is further configured to: when the first node does not receive the location sent by the second node from the working path When the APS packet is described, the first node is instructed not to respond to the switching request sent by the fourth node, and the switching request sent by the fourth node has a higher priority than the first node.
  10. 一种网络保护装置,其特征在于:包括检测单元和业务保护单元,其 中,A network protection device, comprising: a detection unit and a service protection unit, in,
    当第一节点和与所述第一节点相邻的第二节点之间通信的工作路径发生双向信号劣化SD,所述第一节点和所述第二节点之间通信的保护路径发生双向信号故障SF,业务流量在所述工作路径传输时,如果所述检测单元确定在所述保护路径中,从所述第二节点至所述第一节点方向的SF消除,且所述业务保护单元确定所述第一节点未从所述保护路径接收到所述第二节点发送的线性自动保护倒换APS报文,则所述业务保护单元确定所述保护路径中,所述第一节点至所述第二节点方向的SF未消除,保持所述业务流量通过所述工作路径传输。When the working path communicated between the first node and the second node adjacent to the first node generates a bidirectional signal degradation SD, a bidirectional signal failure occurs in a protection path between the first node and the second node. SF, when the service traffic is transmitted in the working path, if the detecting unit determines that the SF is removed from the second node to the first node in the protection path, and the service protection unit determines If the first node does not receive the linear automatic protection switching APS packet sent by the second node from the protection path, the service protection unit determines the first node to the second in the protection path. The SF in the node direction is not eliminated, and the traffic is kept transmitted through the working path.
  11. 根据权利要求10所述的装置,其特征在于:所述装置位于所述第一节点侧。The apparatus according to claim 10, wherein said apparatus is located on said first node side.
  12. 根据权利要求10或11所述的装置,其特征在于:所述业务保护单元还用于当所述第一节点从所述保护路径上接收到所述第二节点发送的所述APS报文时,指示所述第一节点按照所述APS报文的指示进行保护倒换。The device according to claim 10 or 11, wherein the service protection unit is further configured to: when the first node receives the APS message sent by the second node from the protection path Instructing the first node to perform protection switching according to the indication of the APS packet.
  13. 一种通信系统,包括第一节点、第二节点,以及权利要求6-12中任一项所述的网络保护装置。 A communication system comprising a first node, a second node, and the network protection device of any of claims 6-12.
PCT/CN2016/091577 2015-12-26 2016-07-25 Network protection method and device WO2017107482A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510992811.9A CN106921568B (en) 2015-12-26 2015-12-26 Network protection method and device
CN201510992811.9 2015-12-26

Publications (1)

Publication Number Publication Date
WO2017107482A1 true WO2017107482A1 (en) 2017-06-29

Family

ID=59088921

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/091577 WO2017107482A1 (en) 2015-12-26 2016-07-25 Network protection method and device

Country Status (2)

Country Link
CN (1) CN106921568B (en)
WO (1) WO2017107482A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361312B (en) * 2022-10-21 2023-01-24 之江实验室 Link flow based method and device for monitoring link state between ring network nodes

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155108A (en) * 2006-09-30 2008-04-02 华为技术有限公司 Automatic protection ring rearranging method
US20120188867A1 (en) * 2009-09-16 2012-07-26 Raoul Fiorone Recovery of traffic in a connection-oriented network
CN102857316A (en) * 2011-06-29 2013-01-02 中兴通讯股份有限公司 Method and system for realizing source looped network protection
WO2015184727A1 (en) * 2014-07-02 2015-12-10 中兴通讯股份有限公司 Automatic protection switching state processing method, device and aps node

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148694B (en) * 2010-02-04 2016-03-30 中兴通讯股份有限公司 A kind of linear 1:N guard method of grouping conveying network, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155108A (en) * 2006-09-30 2008-04-02 华为技术有限公司 Automatic protection ring rearranging method
US20120188867A1 (en) * 2009-09-16 2012-07-26 Raoul Fiorone Recovery of traffic in a connection-oriented network
CN102857316A (en) * 2011-06-29 2013-01-02 中兴通讯股份有限公司 Method and system for realizing source looped network protection
WO2015184727A1 (en) * 2014-07-02 2015-12-10 中兴通讯股份有限公司 Automatic protection switching state processing method, device and aps node

Also Published As

Publication number Publication date
CN106921568B (en) 2020-04-21
CN106921568A (en) 2017-07-04

Similar Documents

Publication Publication Date Title
US7944815B2 (en) System and method for network recovery from multiple link failures
EP2224644B1 (en) A protection method, system and device in the packet transport network
US8711686B2 (en) Packet transmission system and fault recovery method
CN110417564B (en) Full-mesh link protection method, device, equipment and storage medium
US20100254257A1 (en) Method for processing failure of slave port of master node in ethernet ring network system
WO2015032356A1 (en) Network protection method and apparatus, next-ring node, and system
WO2011095101A1 (en) Linear 1: n protection method, device and system for packet transport network
WO2013049981A1 (en) Hybrid ring network protection method and system based on shared path
US10033573B2 (en) Protection switching method, network, and system
CN107431655B (en) Method and apparatus for fault propagation in segment protection
KR20130039312A (en) Method of shared mesh protection switching
WO2009046652A1 (en) Link state detecting method and network device
WO2017107482A1 (en) Network protection method and device
JP4570421B2 (en) Network redundancy system
WO2015168892A1 (en) Protection switching method, node and control device
EP2953299B1 (en) Protection switching method, system and node
JP4463625B2 (en) Path health check method
WO2014079010A1 (en) Service protection method, device and system
WO2014094575A1 (en) Cross-domain path state negotiation method and node device
JP4190170B2 (en) Detour route setting system
RU2586568C2 (en) Method and device for protection of interring communication service
WO2018059344A1 (en) Method, apparatus, and system for multiplex section protection bidirectional switchover and computer storage medium
JP4587309B2 (en) Path switching method in case of optical network failure
WO2012155667A1 (en) Processing method, device and system after disappearance of fault on bidirectional work path
WO2012129725A1 (en) Ethernet ring protection for non-erp compliant links and nodes

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

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

Country of ref document: EP

Kind code of ref document: A1