WO2016177129A1 - 伪线双归保护控制方法及通信设备 - Google Patents
伪线双归保护控制方法及通信设备 Download PDFInfo
- Publication number
- WO2016177129A1 WO2016177129A1 PCT/CN2016/076644 CN2016076644W WO2016177129A1 WO 2016177129 A1 WO2016177129 A1 WO 2016177129A1 CN 2016076644 W CN2016076644 W CN 2016076644W WO 2016177129 A1 WO2016177129 A1 WO 2016177129A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- alarm
- control board
- main control
- line card
- pseudowire
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/22—Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
Definitions
- the present invention relates to the field of communications, and in particular, to a pseudowire dual-homing protection control method and a communication device.
- the L2VPN Virtual Private Network
- the L2VPN provides a Layer 2 VPN service based on the multi-protocol label switching MPLS network, enabling operators to operate on a unified MPLS network.
- Layer 2 VPNs based on different data link layers, including ATM, FR, VLAN, Ethernet, PPP, and so on.
- MPLS L2VPN transparently transmits user Layer 2 data over an MPLS network. From the user's point of view, the MPLS network is a Layer 2 switching network that can establish Layer 2 connections between different nodes.
- L2VPN-FRR L2VPN-FRR is also called PW-FRR.
- PW-FRR is a link node protection switching technology based on PWE3 encapsulated L2VPN service.
- the basic principle is to use a pre-established PW. Protect a PW, PW Redundancy.
- the pre-established PW is called the standby PW, and the protected PW is called the primary PW.
- the ultimate goal of L2VPN FRR is to protect the primary path by using the standby PW to bypass the faulty link or node.
- PE1 is dual-homed to PE2 and PE3.
- PW12 and PW13 are redundant hot backups.
- the primary and backup attributes are statically specified during network planning. Only one PW can perform actual service forwarding at any time.
- PW12 is the main PW.
- the link fault detection technology is used to quickly trigger the P1-FRR fast switching of the PE1 node pseudo-line dual-homing protection.
- the network fault detection technology includes BFD (Bidirectional Forwarding Detection), MPLS OAM (Operation, Administration, and Maintenance), and is used to quickly detect and monitor link connectivity in the network.
- BFD Bidirectional Forwarding Detection
- MPLS OAM Operaation, Administration, and Maintenance
- Channel failure between adjacent forwarding engines provides light load and short duration detection.
- the switchover between the active and standby PWs of the MPLS L2VPN is fast, which greatly reduces the detection time of the link faults.
- the switchover between the active and standby PWs is completed in the data plane.
- Communication devices such as PE usually use a multi-line card and backplane architecture. There are multiple card slots on the backplane, and the line cards are plugged into these slots.
- the line card bearer service is responsible for data forwarding, and the backplane provides a system data bus and a power bus.
- the line card interconnects and communicates with the main control board through the bus on the backplane. As shown in Figure 2, the main control board is responsible for the control plane, and the line card is responsible for the data forwarding plane.
- the link fault detection module is the forwarding layer that runs the online card. When the detection packet detects the link failure, the fixed detection period (usually set to 3 cycles and the packet detection period is at least 10 ms) does not detect the peer.
- the detection module of the line card notifies the control plane and the forwarding plane link failure alarm message to switch.
- the service forwarding module is switched to ensure that the PW is quickly switched from the primary to the standby, so as to guide the forwarding and ensure that the forwarding of service data is restored as soon as possible.
- the service switching management module of the notification control board is to keep the data consistent with the forwarding plane. This achieves the goal of fast switching. However, it is difficult during the actual operation of the equipment.
- the data of the control plane and the forwarding plane are consistent. For example, when the alarm is lost due to abnormal communication between the boards, the alarm is generated on the online card.
- the detection module detects the alarm notification and reports the communication abnormality on the main control board. If the main control board fails to receive the alarm notification when the alarm sent to the main control board is abnormal, the main control board will not be aware of the alarm. The switchover between the primary and backup switches does not occur, and the line switch notification is not sent to the service forwarding module of the line card. As a result, the pseudowire protection status of the main control board and the line card is inconsistent.
- the main technical problem to be solved by the present invention is to provide a pseudowire dual-homing protection control method and a communication device, which solves the problem that the protection status of the main control board and the line card pseudowire is inconsistent due to abnormal communication between boards in the existing communication equipment.
- the present invention provides a pseudo-line dual-homing protection control method, which is applied to a pseudo-line dual-homing protection communication device, and the pseudo-line dual-homing protection communication device includes a main control board and a line card; :
- the line card When the line card detects that an alarm is generated on the main pseudowire link that is currently in the working state, the line card switches to the backup pseudowire link, and sends an alarm notification to the main control board;
- the line card determines whether the main control board normally receives the alarm notification, and if not, sends an alarm notification to the main control board again.
- the determining, by the line card, whether the main control board normally receives the alarm notification comprises:
- the line card After the line card sends an alarm notification to the main control board, or starts to time after switching to the backup pseudowire link, it is determined whether the main control board receives the feedback according to the alarm notification within the first preset time threshold.
- the line switching notification if no, determines that the main control board does not receive the alarm notification.
- the line card determines whether the main pseudowire chain is detected before sending an alarm notification to the main control board.
- the alarm clearing message of the road if yes, the switch back to the main pseudowire link from the backup pseudowire link, and stop sending the alarm notification to the main control board again.
- the method further includes: after the line card sends an alarm notification to the main control board, or starts to time after switching to the standby pseudowire link, determining the location within the second preset time threshold. If the alarm is a false alarm, if yes, the primary pseudowire link is switched back from the backup pseudowire link; the second preset time threshold is less than the first preset time threshold.
- determining, by the line card, whether the alarm is a false alarm within a second preset time threshold includes: determining whether a primary pseudowire chain is detected within the second preset time threshold The alarm cancellation message of the road, if yes, determines that the alarm is a false alarm.
- the present invention further provides a pseudowire dual-homing protection communication device, including a main control board and a line card;
- the line card is configured to switch to the backup pseudowire link when detecting that an alarm is generated on the main pseudowire link that is currently in the working state. And sending an alarm notification to the main control board; and determining whether the main control board normally receives the alarm notification, and if not, sending an alarm notification to the main control board again.
- the determining, by the line card, whether the main control board normally receives the alarm notification comprises:
- the line card After the line card sends an alarm notification to the main control board, or starts to time after switching to the backup pseudowire link, it is determined whether the main control board receives the feedback according to the alarm notification within the first preset time threshold.
- the line switching notification if no, determines that the main control board does not receive the alarm notification.
- the line card is further configured to determine whether the main device is detected before the alarm is notified to the main control board after the main control board does not receive the alarm notification.
- the alarm elimination message of the pseudowire link if yes, the switch back to the main pseudowire link from the backup pseudowire link, and stops sending the alarm notification to the main control board again.
- the line card is further configured to send the alarm cancellation notification to the main control board after switching back to the main pseudowire link from the backup pseudowire link.
- the line card is further configured to send an alarm notification to the main control board, or start timing after switching to the backup pseudowire link, and determine the location within the second preset time threshold. If the alarm is a false alarm, if yes, the primary pseudowire link is switched back from the backup pseudowire link; the second preset time threshold is less than the first preset time threshold.
- determining, by the line card, whether the alarm is a false alarm within a second preset time threshold includes: determining whether a primary pseudowire chain is detected within the second preset time threshold The alarm cancellation message of the road, if yes, determines that the alarm is a false alarm.
- the pseudowire dual-homing protection control method and the communication device provided by the invention, when the line card of the communication device detects that the main pseudowire link currently in the working state has an alarm, switches to the backup pseudowire link, and the main to the communication device
- the control board sends an alarm notification.
- the line card determines whether the main control board receives the alarm notification sent by the main control board. If not, it indicates that the inter-board communication is abnormal, and sends an alarm notification to the main control board to ensure the master control as much as possible.
- the board can receive and sense alarms, and perform corresponding link switching according to this, so as to ensure that the protection status of the main control board and the line card is consistent.
- FIG. 1 is a schematic diagram of networking of a pseudowire dual-homing protection group
- FIG. 2 is a structural diagram of a conventional pseudowire dual-homing protection communication device
- FIG. 3 is a schematic flowchart of a pseudowire dual-homing protection control method according to Embodiment 1 of the present invention.
- FIG. 4 is a schematic structural diagram of a pseudowire dual-homing protection communication device according to Embodiment 2 of the present invention.
- FIG. 5 is a schematic structural diagram of another pseudowire dual-homing protection communication device according to Embodiment 2 of the present invention.
- FIG. 6 is a schematic flowchart of a process of a service switching management module according to Embodiment 2 of the present invention.
- FIG. 7 is a schematic flowchart of a processing process of a detection module according to Embodiment 2 of the present invention.
- FIG. 8 is a schematic flowchart of a service forwarding module according to Embodiment 2 of the present invention.
- FIG. 9 is a schematic diagram of a processing flow of an automatic correction module according to Embodiment 2 of the present invention.
- Embodiment 1 is a diagrammatic representation of Embodiment 1:
- the pseudo-line dual-homing protection control method provided in this embodiment is mainly applied to a pseudo-line dual-homing protection communication device, and the pseudo-line dual-homing protection communication device includes a main control board and a line card; the line card can specifically pass the corresponding card slot and the main card The control board communication connection; the method is shown in Figure 3, including:
- Step 301 When the line card detects that an alarm is generated on the main pseudowire link that is currently in the working state, the line card switches to the backup pseudowire link, and sends an alarm notification to the main control board.
- the line card can detect whether the link is faulty through the detection mechanism such as BFD or MPLS OAM.
- the switch to the backup pseudowire link is mainly referred to as the service forwarding plane of the line card.
- the line link is switched to the backup pseudo link to ensure the normal forwarding of service data.
- the line card sends an alarm notification to the main control board through inter-board communication to notify the main control board of the main control board.
- the road needs to be switched to the backup pseudowire link;
- Step 302 The line card determines whether the main control board normally receives the alarm notification sent by the main control board, and when the judgment result is not, re-sends the alarm notification to the main control board.
- the main control board when it is determined that the main control board does not receive the alarm notification, it indicates that the control layer of the main control board does not detect the alarm, and does not switch from the main pseudowire link to the backup pseudowire link.
- the problem that the main control board of the communication device and the line card pseudowire protection state are inconsistent may occur. Therefore, after the line card determines the result, the line card sends an alarm notification to the main control board to enable the main control board to receive the alarm notification as much as possible, and accordingly performs corresponding switching; thereby solving the inter-board communication.
- the abnormality caused the inconsistency between the protection status of the main control board and the line card.
- the specific implementation manner of the line card in the foregoing step 301 for determining whether the main control board receives the alarm notification can be flexibly selected according to the specific application scenario.
- the line card may start timing after sending an alarm notification to the main control board, or after switching to the backup pseudowire link, and determine whether to receive the line switching of the main control board according to the alarm notification feedback within the first preset time threshold. If the notification is received, the main control board has received the alarm notification. Otherwise, the main control board does not receive the alarm notification.
- the value of the first preset time threshold in this embodiment mainly depends on the main control board receiving the alarm notification from the line card and determining the processing time required to feed back the line switching notification according to the alarm notification. Specifically, it can take seconds, for example, 1 second.
- step 302 after the line card determines that the main control board does not receive the alarm notification, before sending the alarm notification to the main control board again, there may be an alarm elimination message that detects the main pseudowire link, indicating that the main The alarm on the pseudowire link has been eliminated.
- the switchback can be performed. Therefore, the line card can directly switch back to the main pseudowire link. At this time, since the main control board side has not been switched before, it still works on the main pseudowire link. The switchback operation is not required on the main control board side, and the switch operation is not required according to the previous alarm notification.
- the line card can stop sending alarm notifications to the main control board at this time; and the alarm message notification generated at this time can also be sent to the main control board, which can reduce the communication traffic between the boards. Therefore, the following steps may also be included in the above step 302:
- the line card determines whether to detect the alarm cancellation message of the primary pseudowire link before sending the alarm notification to the main control board. If yes, the switch back from the backup pseudowire link. The pseudowire link is stopped and the alarm notification is sent to the main control board. The alarm cancellation notification is also not sent to the main control board.
- the main control board combines the alarm notifications and alarm message notifications received in a short period of time.
- the main control layer is to prevent link flapping. For example, when an alarm notification is detected on the line card and reported to the main control board, the alarm is detected and the alarm elimination notification is reported to the main control board. This case is defined as a false alarm condition; the main control board If the alarm cancellation notification for the alarm is received before the alarm notification is received, the alarm is cancelled. The alarm notification and the alarm elimination notification are mutually offset. The main control board does not. Switching is also performed without a switchback operation, and no messages are sent to the line card.
- the line card immediately switches from the primary pseudowire link to the backup pseudowire link after detecting the alarm, and the existing line card does not respond to the alarm elimination message, and only responds to the main control board.
- the switchback notification is sent. Therefore, in this case, the main control board does not send a switchback message to the line card, which may result in inconsistent protection status between the main control board and the line card.
- This situation is mainly caused by a false alarm.
- the situation can also be considered as a type of the normal control board receiving the alarm notification.
- after the line card sends an alarm notification to the main control board, or starts to time after switching to the backup pseudo link it is determined whether the alarm is a false alarm within the second preset time threshold. If yes, the switch back to the main pseudowire link directly from the backup pseudowire link does not need to wait for the main control board to send a switchback notification to ensure that the forwarding line and the control plane have the same pseudowire protection status.
- the determining, by the line card, whether the alarm is a false alarm within the second preset time threshold includes:
- the value of the second preset time threshold is mainly determined according to the time interval of detecting the alarm message and the alarm elimination message by the false alarm, and may be specifically set to a millisecond level, for example, 500 milliseconds.
- the line card In the process of detecting and switching between the main control board and the line card of the existing communication device, the line card detects the alarm and notifies the control plane of the main control board and the link failure alarm message of the forwarding plane to switch. After the alarm is quickly switched to the protection standby line, the control layer senses the alarm reported by the line card detection module and sends a line switching notification to the line card, so that the control plane and the forwarding plane pseudo-line are in the same state.
- the consistency of the control plane and the forwarding plane is completely unreliable depending on the delivery of the control plane. If there is a problem of inter-board communication or a false alarm caused by an abnormality, the two pseudowire protection states may be inconsistent. . Therefore, the above-mentioned automatic correction function is introduced in the online card forwarding layer of the present invention, thereby finally ensuring that the line card forwarding layer and the control layer of the main control board are in the same state.
- Embodiment 2 is a diagrammatic representation of Embodiment 1:
- This embodiment provides a pseudowire dual-homing protection communication device, as shown in FIG. 4, including a main control board 2 and a line card 1;
- the line card 1 is configured to detect that an alarm is generated on the main pseudowire link that is currently in the working state, switch to the backup pseudowire link, and send an alarm notification to the main control board; and determine whether the main control board 2 receives the alarm notification normally. If no, the alarm notification is sent to the main control board 2.
- the line card 1 can detect whether the link is faulty through a detection mechanism such as BFD or MPLS OAM. In this step, the switch to the backup pseudowire link is mainly referred to as the service forwarding plane of the line card 1.
- the online card detects the alarm immediately after the main pseudo.
- the line link is switched to the backup pseudo link to ensure the normal forwarding of the service data.
- the line card 1 sends an alarm notification to the main control board 2 through the inter-board communication to notify the main control board of the main control board. In addition to the fault, the road needs to be switched to the backup pseudowire link;
- the line card 1 determines whether the main control board receives the alarm notification normally:
- the line card 1 After the line card 1 sends an alarm notification to the main control board 2, or starts to time after switching to the backup pseudowire link, it is determined whether the line switching notification notified by the main control board 2 according to the alarm notification is received within the first preset time threshold. If no, it is determined that the main control board 2 has not received the alarm notification.
- the value of the first preset time threshold in this embodiment mainly depends on the processing time determined by the main control board 2 to receive the alarm notification from the line card 1 and to report the line switching notification according to the alarm notification. Specifically, it can take seconds, for example, 1 second.
- the line card 1 after the line card 1 determines that the main control board 2 has not received the alarm notification, and then sends an alarm notification to the main control board 2 again, there may be an alarm elimination message that detects the main pseudowire link. It indicates that the alarm on the main pseudowire link has been removed and can be switched back. Therefore, the line card 1 can directly switch back to the main pseudowire link, and the switch is not switched before the main control board 2 side. It still works on the main pseudowire link. Therefore, the main control board 2 side does not need to perform the switchback operation, and it is no longer necessary to perform the handover operation according to the previous alarm notification. Therefore, the line card 1 can stop sending alarm notifications to the main control board 2 at this time; and the alarm message notification generated at this time can also be sent to the main control board 2, which can reduce the communication traffic between the boards.
- the main control board 2 combines the alarm notification and the alarm message notification received in a short period of time, which is mainly caused by the control plane to prevent link flapping. For example, when the alarm notification is detected on the line card 1 and reported to the main control board 2, the alarm message is detected and the alarm cancellation notification is reported to the main control board 2, and this embodiment defines the situation as a false alarm condition; After receiving the alarm notification, the main control board 2 receives the alarm message notification for the alarm before it is processed, and then performs the merge processing, that is, does not perform the handover or the switchback operation. No message is sent to line card 1.
- the line card 1 will immediately switch from the primary pseudowire link to the backup pseudowire link after detecting the alarm, and the existing line card switchback does not respond to the alarm elimination message, and only responds to the master control.
- the switchback notification sent by the board however, in this case, the main control board does not send back a message to it, which may also cause the inconsistency of the protection status of the main board and the line card.
- This situation is mainly caused by a false alarm.
- the situation can also be considered as a type of the normal control board receiving the alarm notification.
- the line card 1 after the line card 1 sends an alarm notification to the main control board 2, or starts to switch to the backup pseudowire link, it is determined whether the alarm is within the second preset time threshold.
- a false alarm if yes, the switch back to the primary pseudowire link directly from the backup pseudowire link, and does not need to wait for the main control board 2 to send a switchback notification to ensure that the forwarding line and the control plane have the same pseudowire protection status.
- the value of the second preset time threshold is mainly determined according to the time interval of detecting the alarm message and the alarm elimination message by the false alarm, and may be specifically set to a millisecond level, for example, 300 milliseconds.
- the line card 1 includes a detection module 11, a service forwarding module 12, and an automatic correction module 13.
- the main control board 2 includes a service switching management module 21, and the line card 1 and the main control board 2 pass through
- the inter-board communication module 3 completes the information interaction.
- the main functions of each module are as follows:
- the inter-board communication module 3 is mainly responsible for inter-board communication between the main control board 2 and the line card 1.
- the alarm notification of the line card 1 is sent to the main control board 2 and the main control board 2 to issue a notification process such as switching and failback to the line card 1.
- the service switching management module 21 on the main control is mainly responsible for processing the alarm notification and the alarm elimination notification reported by the line card 1 to perform the switching and failback of the APS decision PWFRR and send it to each line card 1.
- the detecting module 11 on the line card 1 is mainly responsible for detecting the fault of the pseudo link. For example, if the detection packet has a detection period T, when the detection packet does not detect the detection packet sent by the peer end after detecting the detection period T, the pseudowire link is considered to be invalid, and the line card 1 forwarding plane and the main are notified.
- the control panel 2 controls the pseudowire switching.
- the service forwarding switching module 12 on the line card 1 is mainly responsible for switching according to the alarm notification sent by the detecting module 11 and receiving the switching and failback messages sent by the master control PWFRR to perform control service data forwarding.
- the automatic correction module 13 on the line card 1 when the line card 1 detection module 11 generates an alarm notification, the service forwarding module 12 performs protection switching, that is, after switching from the primary pseudowire link to the backup pseudowire link, and then starts a timer; Under normal circumstances, the service switching management module of the main control board 2 sends a line switching notification to the service forwarding module 12 of the line card 1, if it is within the set first time threshold t1 (usually recommended to be set to the second level, for example, 1 Second, if the main control board 2 has not sent the line switching notification, it can be considered that the main control board 2 does not receive the alarm notification normally; at the same time, in order to avoid the occurrence of a false alarm, it is judged at the second time threshold if it is set.
- t1 usually recommended to be set to the second level, for example, 1 Second
- the detection module 11 Within t2 (usually recommended to be set to sub-second level, for example, 500 milliseconds), the detection module 11 generates an alarm elimination message, but the message that the master has not delivered the handover may be considered as a detection abnormality, that is, a false alarm, and the service is forwarded.
- the module 12 performs the switchback; otherwise, if the main control board 2 does not send the line switching notification to the line card 1 until the first time threshold t1, the automatic correction module 13 re-reports the alarm notification to the main control board 2. Therefore, it is ensured that the control board 2 and the line card 1 have the same pseudowire protection working state.
- the process of the service switching management module 21 on the control board 2 includes:
- Step 601 Enable OAM/BFD packet detection on the working PW of the pseudowire dual-homing protection communication device PE1 of the pseudowire protection group, and the pseudowire protection group works normally on the main PW1;
- Step 602 The line card 1 determines whether the working link of the pseudo-line protection group working PW1 or the detection module 11 of the cable card 1 reports the OAM/BFD detection alarm, and if so, determines that the working PW1 has failed, and then proceeds to step 603;
- Step 603 The main control board 2 receives the alarm notification sent by the line card 1, and the APS performs protocol calculation to determine whether the pseudo line protection group is switched. If yes, go to step 604;
- Step 604 The main control board 2 pseudo-line protection group is switched to the protection link protection PW2, and the line switching notification is sent to the line card 1, and the process proceeds to step 605;
- Step 605 The line card 1 determines whether the PW1 working link of the pseudo-line protection group works, whether the OAM/BFD detection alarm is reported by the detection module of the wired card forwarding plane, and if yes, go to step 606;
- Step 606 The main control board 2 receives the alarm cancellation notification sent by the line card 1, and the APS performs protocol calculation to determine whether the pseudo-line protection group is allowed to switch back. If yes, go to step 607;
- Step 607 The PW protection group of the main control board 2 is switched back to the working link main PW1, and the switchback notification is sent to the line card 1 to notify the forwarding plane protection group to switch back to the working main PW1, and the process returns to step 602. .
- the processing procedure of the detecting module 11 on the forwarding surface of the line card 1 includes:
- Step 701 The OAM/BFD packet detection is performed on the PW1 of the line card 1 of the PE1, and the pseudowire protection group works normally on the main PW1, and the process proceeds to step 702.
- Step 702 The line card 1 forwarding plane determines whether the PB1 of the pseudowire protection group working link works, and the detection module 11 generates an OAM/BFD detection alarm. If yes, it determines that the working PW1 is faulty, and then proceeds to step 703;
- Step 703 The line card 1 forwarding plane detecting module 11 notifies the control plane and the forwarding plane that the primary PW1 generates an alarm, and the line card 1 forwarding plane protection group receives the alarm and quickly switches to the standby PW2, and then proceeds to step 704;
- Step 704 Determine whether the OAM/BFD detection alarm of the working link of the line card 1 forwarding plane pseudo-line protection group is lost, if yes, go to step 705;
- Step 705 The line card 1 forwarding plane detecting module 11 notifies the control plane that the alarm on the main PW1 disappears; the control plane pseudowire protection group receives the alarm disappearing message and decides to switch back to the working link main PW1, and sends a back-cut notification to the line.
- the card 1 forwarding plane protection group is switched back to the working main PW1, and the process goes to step 702.
- the processing flow of the service forwarding module 12 on the forwarding plane of the line card 11 includes:
- Step 801 The OAM/BFD packet detection is performed on the PW1 of the line card 1 of the PE1, and the pseudowire protection group works normally on the main PW1, and the process proceeds to step 802.
- Step 802 The line card 1 forwarding plane determines whether the PW1 of the pseudowire protection group working link works, and the detection module 11 generates an OAM/BFD detection alarm. If yes, it determines that the working PW1 is faulty, and then proceeds to step 803;
- Step 803 The line card 1 forwarding plane protection group receives the primary PW1 and generates an alarm to quickly switch to the standby PW2, and then proceeds to step 804;
- Step 804 Determine whether the master control plane pseudowire protection group has sent back to the primary PW message, if yes, go to step 805;
- Step 805 The line card 1 forwarding plane receives the control plane pseudowire protection group back-cut notification, and then the pseudo-line dual-homing protection group switches back to the working main PW1, and proceeds to step 802.
- the processing flow of the automatic correction module 13 on the forwarding surface of the line card 11 includes:
- Step 901 The OAM/BFD packet detection is performed on the PW1 of the line card 1 of the PE1, and the pseudowire protection group works normally on the main PW1, and the process proceeds to step 902.
- Step 902 The line card 1 forwarding plane determines whether the PB1 of the pseudowire protection group working link works, and the detection module 11 generates an OAM/BFD detection alarm. If yes, it determines that the working PW1 is faulty, and then proceeds to step 903;
- Step 903 After the line card 1 forwarding plane protection group receives the primary PW1 and generates an alarm, it automatically switches to the standby PW2, and automatically corrects Positive module 13 turns on timing correction, and proceeds to step 904;
- Step 904 Determine whether the master control plane pseudowire protection group sends the forwarding plane to the standby PW2 message within the specified time t1, if yes, go to step 905, otherwise go to step 908;
- Step 905 It is determined whether the line card 1 forwarding plane detecting module 11 notifies the forwarding plane master PW1 of the alarm cancellation within the specified second time threshold t2, and the step is performed simultaneously with the determining process of step 904; if yes, go to step 906, otherwise turn Step 907;
- Step 906 The line card 1 forwarding plane does not receive the control plane pseudowire protection group switching message in the second time threshold t2, but the detecting module 11 then informs the main PW1 that the alarm disappears, indicating that the control plane merges the alarm generation and disappears.
- the line card 1 forwarding plane automatic correction module 13 performs back-cutting to the main PW1, and the control surface pseudo-line protection group works in the same state, the automatic correction module 13 stops working; step 902;
- Step 907 The line card 1 forwarding plane does not receive the control plane pseudowire protection group switching message in the second time threshold t2, and the detecting module 11 does not notify the main PW1 that the alarm disappears, indicating that the control plane does not perceive the alarm generated message; Then, the line card 1 forwarding plane automatic correction module 13 re-reports the link detection alarm message on the control plane master control work PW1. If the control plane receives the detection alarm and sends the forwarding plane pseudowire protection group to switch to the backup pseudowire link, the control plane and the forwarding plane work in the same state, and the automatic correction module stops working;
- Step 908 The line card 1 forwarding plane receives the control plane pseudowire protection group switching message in the first time threshold t1, indicating that the control plane receives the detection alarm and sends the forwarding plane switch.
- the line card 1 forwarding plane and the control plane pseudowire protection group work in the same state, and the automatic correction module 13 stops working.
- the pseudowire dual-homing protection control method and the communication device provided by the embodiments of the present invention have the following beneficial effects: when the line card of the communication device detects that the main pseudowire link currently in the working state has an alarm, it switches to Prepare a pseudowire link and send an alarm notification to the main control board of the communication device; then the line card determines whether the main control board receives the alarm notification sent by the main control board normally. If not, it indicates that the inter-board communication has an abnormality and is redirected to the main The control board sends alarm notifications to ensure that the main control board can receive and sense alarms as much as possible, and accordingly perform corresponding link switching to ensure that the protection status of the main control board and the line card are consistent.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Alarm Systems (AREA)
Abstract
本发明公开了一种伪线双归保护控制方法及通信设备,通信设备的线卡检测到当前处于工作状态的主伪线链路出现告警时,切换到备伪线链路,并向通信设备的主控板发送告警通知;然后线卡判断主控板是否正常接收到其发送的告警通知,如没有,则表明板间通信出现了异常,重新向主控板发送告警通知,以尽可能保证主控板能正常接收、感知到告警,并依此进行对应的链路切换,进而保证主控板和线卡伪线保护状态一致。
Description
本发明涉及通信领域,具体涉及一种伪线双归保护控制方法及通信设备。
在MPLS(Multiprotocol Label Switching,多协议标签交换)通信网络中,L2VPN(Virtual Private Network,虚拟专用网)提供基于多协议标签交换MPLS网络的二层VPN服务,使运营商可以在统一的MPLS网络上提供基于不同数据链路层的二层VPN,包括ATM、FR、VLAN、Ethernet、PPP等。简单来说,MPLS L2VPN是在MPLS网络上透明传输用户二层数据。从用户的角度来看,MPLS网络是一个二层交换网络,可以在不同节点间建立二层连接。
如果在两个PE(Provider Edge,运营商边缘路由器)之间只建立一条PW(PseudoWire,伪线),则当该PW出现故障时,PE之间将无法通信。MPLS L2VPN支持PW冗余保护功能:L2VPN-FRR也称为PW-FRR,PW-FRR是基于PWE3封装的L2VPN业务的一种链路节点保护切换技术,其基本原理是用一条预先建立的PW来保护一条PW,即PW冗余(PW Redundancy)。预先建立的PW称为备PW,被保护的PW称为主PW。L2VPN FRR的最终目的就是利用备PW绕过故障的链路或者节点,从而达到保护主路径的功能。
如图1所示,PE1双归到PE2和PE3,PW12和PW13是冗余热备份关系,其主备属性是在网络规划时静态指定的,任意时刻只有一条PW可以进行实际的业务转发。设PW12为主PW,当主PW12发生故障时,通过链路故障检测技术,快速触发部署PE1节点伪线双归保护PW-FRR快速切换。目前网络故障检测技术有BFD(Bidirectional Forwarding Detection,双向转发检测),MPLS OAM(Operation,Administration and Maintenance,运行、管理和维护)等机制,用于快速检测、监控网络中链路连通状况,对相邻转发引擎之间通道故障提供轻负荷、持续时间短的检测。从而实现MPLS L2VPN主备链路快速切换,大大减少了链路故障的检测时间,并且主备PW的切换在数据平面完成,不需要通过控制平面下发切换状态,减少了主备PW的切换时间。
PE这类通信设备通常采用多线卡﹑背板架构。在背板上有多个卡槽,线卡插接在这些卡槽里。线卡承载业务负责数据转发,背板提供系统数据总线和电源总线。线卡通过背板上的总线实现互联以及与主控板的通讯。如图2所示,主控板负责控制层面,线卡负责数据转发层面。链路故障检测模块是运行在线卡的转发层面中,当检测报文检测到链路失效时,固定检测周期(一般设置为3个周期,报文检测周期最小为10ms)内没有检测到对端发送的检测报文时,即认为链路失效,从而发起PW的切换,线卡的检测模块会同时通知控制面和转发面链路失效告警消息进行切换。通知业务转发模块切换是为了将PW快速由主切换到备,从而指导转发,保证业务数据的转发尽快恢复正常。通知控制板的业务切换管理模块是为了保持和转发面数据一致。这样就达到了快速切换的目的。但是,在实际设备运行的过程中很难
保证控制面和转发面数据一致,例如,当板间通信异常导致告警丢失时就会出现该情况:在线卡上,检测模块检测告警通知上报主控板通信异常,线卡转发层面感知告警发生后立即进行主、备切换,但若发送给主控板的告警通知出现板间通信异常导致主控板未能收到告警通知时,主控层面就不会感知到该告警,因此主控层面并不会进行同步的主、备切换,也不会向线卡的业务转发模块发送线路切换通知,导致主控板和线卡的伪线保护状态不一致。
发明内容
本发明要解决的主要技术问题是,提供一种伪线双归保护控制方法及通信设备,解决现有通信设备中因板间通信异常导致主控板和线卡伪线保护状态不一致的问题。
为解决上述技术问题,本发明提供一种伪线双归保护控制方法,应用于伪线双归保护通信设备,所述伪线双归保护通信设备包括主控板和线卡;所述方法包括:
所述线卡检测到当前处于工作状态的主伪线链路出现告警时,切换到备伪线链路,并向所述主控板发送告警通知;
所述线卡判断所述主控板是否正常接收到所述告警通知,如否,重新向所述主控板发送告警通知。
在本发明的一种实施例中,所述线卡判断所述主控板是否正常接收到所述告警通知包括:
所述线卡向所述主控板发送告警通知后,或切换到备伪线链路后开始计时,在第一预设时间阈值内判断是否收到所述主控板根据所述告警通知反馈的线路切换通知,如否,判定所述主控板未收到所述告警通知。
在本发明的一种实施例中,所述线卡在判断所述主控板未收到所述告警通知后,重新向所述主控板发送告警通知前,判断是否检测到主伪线链路的告警消除消息,如是,则从备伪线链路切回主伪线链路,并停止重新向所述主控板发送告警通知。
在本发明的一种实施例中,所述线卡从备伪线链路切回主伪线链路后,取消将所述告警消除通知发给所述主控板。
在本发明的一种实施例中,还包括:所述线卡向所述主控板发送告警通知后,或切换到备伪线链路后开始计时,在第二预设时间阈值内判断所述告警是否是误告警,如是,从备伪线链路切回主伪线链路;所述第二预设时间阈值小于所述第一预设时间阈值。
在本发明的一种实施例中,所述线卡在第二预设时间阈值内判断所述告警是否是误告警包括:判断在所述第二预设时间阈值内是否检测到主伪线链路的告警消除消息,如是,则判定所述告警为误告警。
为了解决上述问题,本发明还提供了一种伪线双归保护通信设备,包括主控板和线卡;
所述线卡设置为检测到当前处于工作状态的主伪线链路出现告警时,切换到备伪线链路,
并向所述主控板发送告警通知;以及判断所述主控板是否正常接收到所述告警通知,如否,重新向所述主控板发送告警通知。
在本发明的一种实施例中,所述线卡判断所述主控板是否正常接收到所述告警通知包括:
所述线卡向所述主控板发送告警通知后,或切换到备伪线链路后开始计时,在第一预设时间阈值内判断是否收到所述主控板根据所述告警通知反馈的线路切换通知,如否,判定所述主控板未收到所述告警通知。
在本发明的一种实施例中,所述线卡还设置为在判断所述主控板未收到所述告警通知后,重新向所述主控板发送告警通知前,判断是否检测到主伪线链路的告警消除消息,如是,则从备伪线链路切回主伪线链路,并停止重新向所述主控板发送告警通知。
在本发明的一种实施例中,所述线卡还设置为从备伪线链路切回主伪线链路后,取消将所述告警消除通知发给所述主控板。
在本发明的一种实施例中,所述线卡还设置为向所述主控板发送告警通知后,或切换到备伪线链路后开始计时,在第二预设时间阈值内判断所述告警是否是误告警,如是,从备伪线链路切回主伪线链路;所述第二预设时间阈值小于所述第一预设时间阈值。
在本发明的一种实施例中,所述线卡在第二预设时间阈值内判断所述告警是否是误告警包括:判断在所述第二预设时间阈值内是否检测到主伪线链路的告警消除消息,如是,则判定所述告警为误告警。
本发明的有益效果是:
本发明提供的伪线双归保护控制方法及通信设备,通信设备的线卡检测到当前处于工作状态的主伪线链路出现告警时,切换到备伪线链路,并向通信设备的主控板发送告警通知;然后线卡判断主控板是否正常接收到其发送的告警通知,如没有,则表明板间通信出现了异常,重新向主控板发送告警通知,以尽可能保证主控板能正常接收、感知到告警,并依此进行对应的链路切换,进而保证主控板和线卡伪线保护状态一致。
图1为伪线双归保护组组网示意图;
图2为现有伪线双归保护通信设备结构图;
图3为本发明实施例一提供的伪线双归保护控制方法流程示意图;
图4为本发明实施例二提供的伪线双归保护通信设备结构示意图;
图5为本发明实施例二提供的另一伪线双归保护通信设备结构示意图;
图6为本发明实施例二提供的业务切换管理模块处理流程示意图;
图7为本发明实施例二提供的检测模块处理流程示意图;
图8为本发明实施例二提供的业务转发模块处理流程示意图;
图9为本发明实施例二提供的自动纠正模块处理流程示意图。
下面通过具体实施方式结合附图对本发明作进一步详细说明。
实施例一:
本实施例提供的伪线双归保护控制方法主要应用于伪线双归保护通信设备,该伪线双归保护通信设备包括主控板和线卡;线卡具体可通过相应的卡槽与主控板通信连接;该方法请参见图3所示,包括:
步骤301:线卡检测到当前处于工作状态的主伪线链路出现告警时,切换到备伪线链路,并向主控板发送告警通知;
该步骤中线卡具体可通过BFD、MPLS OAM等检测机制检测链路是否故障;该步骤中切换到备伪线链路则是主要指线卡的业务转发面在线卡检测到告警后立即由主伪线链路切换到备伪线链路,以尽可能保证业务数据的正常转发;该步骤中线卡通过板间通信向主控板发送告警通知,以通知主控板的主控层面主伪线链路除了故障,需要切换到备伪线链路;
步骤302:线卡判断主控板是否正常接收到其发送的告警通知,在判断结果为没有时,重新向主控板发送告警通知。
该步骤中,判断主控板没有收到告警通知时,则表明主控板的控制层面未感知到该告警,其并不会作出由主伪线链路切换到备伪线链路的切换,进而会导致通信设备的主控板和线卡伪线保护状态不一致的问题。因此此时线卡在判断出该结果后,重新向主控板发送告警通知,以尽可能让主控板能正常接收到该告警通知,并依此作出对应的切换;从而解决因板间通信异常导致主控板和线卡伪线保护状态不一致的问题。
上述步骤301中线卡判断主控板是否正常接收到告警通知的具体实现方式可以根据具体应用场景灵活选择。例如,线卡可在向主控板发送告警通知后,或在切换到备伪线链路后开始计时,在第一预设时间阈值内判断是否收到主控板根据告警通知反馈的线路切换通知,如接收到,表明主控板已正常接收到该告警通知,否则,表明主控板没有正常接收到该告警通知。本实施例中的第一预设时间阈值的取值主要取决于主控板从线卡接收告警通知并根据该告警通知反馈线路切换通知所需的处理时间决定。具体其可取秒级,例如1秒。
在上述步骤302中,当线卡在判断主控板未收到告警通知后,重新向主控板发送告警通知前,可能会存在检测到主伪线链路的告警消除消息,此时表明主伪线链路上的告警已经消
除,可以进行回切了,因此此时线卡可以直接进行回切到主伪线链路,且此时由于主控板侧之前并未进行切换,其仍工作在主伪线链路,因此主控板侧并不需要进行回切操作,也不再需要根据之前的告警通知进行切换操作。因此此时线卡可以停止重新向主控板发送告警通知;且此时产生的告警消息通知也可不发给主控板,这样可以减少板间通信流量。因此,在上述步骤302中还可包括以下步骤:
线卡在判断主控板未收到告警通知后,重新向主控板发送告警通知前,判断是否检测到主伪线链路的告警消除消息,如是,则从备伪线链路切回主伪线链路,并停止重新向主控板发送告警通知;同时对于检测到的告警消除通知也不发给主控板。
在实际网络应用中,主控板会对在短时间内接收到的告警通知和告警消息通知进行合并处理,其主要是控制层面为了防止链路震荡等原因。例如当线卡上检测到告警通知并上报给主控板后,紧接着又检测到告警消除并上报告警消除通知给主控板,本申请中定义这种情况为误告警情况;主控板在接收到告警通知后还未对其进行处理之前,又接收到针对该告警的告警消除通知,则对其进行合并处理,也即将该告警通知和告警消除通知进行互抵,主控板侧不进行切换也不进行回切操作,同时也不向线卡发送任何消息。但是,针对这种情况,线卡在检测到告警后会立即由主伪线链路切换到备伪线链路,且现有的线卡回切并不响应告警消除消息,只响应主控板下发的回切通知,因此这种情况下主控板并不向线卡下发回切消息,就会导致主控板和线卡伪线保护状态不一致。这种情况主要由误告警导致,本实施例中可将这种情况也认为是主控板为正常接收告警通知的一种。针对这种情况,在本实施例中,线卡向主控板发送告警通知后,或在切换到备伪线链路后开始计时,在第二预设时间阈值内判断该告警是否是误告警,如是,则直接从备伪线链路切回主伪线链路,并不需要等待主控板下发回切通知,保证转发层面和控制层面的伪线保护状态一致。
线卡在第二预设时间阈值内判断告警是否是误告警包括:
判断在第二预设时间阈值内是否检测到主伪线链路的告警消除消息,如是,则判定该告警为误告警。该第二预设时间阈值的取值主要根据误告警检测到告警消息和告警消除消息的时间间隔而定,其具体可设置为毫秒级,例如500毫秒。
现有通信设备主控板和线卡检测切换交互过程中,正常情况下,当线卡检测到告警,同时通知主控板的控制面和自身转发面链路失效告警消息进行切换,转发面收到告警快速进行切换到保护备伪线,控制层面感知线卡检测模块上报的告警后向线卡下发线路切换通知,从而保持控制面和转发面伪线双归保护状态一致。然而,这种控制面和转发面的一致性完全依赖于控制面的下发是不可靠的,如果出现板间通信问题或检测异常导致的误告警就会出现二者伪线保护状态不一致的情况。所以,本发明在线卡转发层面引入了上述自动纠正功能,从而最终保证线卡转发层面和主控板控制层面伪线保护工作状态一致。
实施例二:
本实施例提供了一种伪线双归保护通信设备,请参见图4所示,包括主控板2和线卡1;
线卡1设置为检测到当前处于工作状态的主伪线链路出现告警时,切换到备伪线链路,并向主控板发送告警通知;以及判断主控板2是否正常接收到告警通知,如否,重新向主控板2发送告警通知。
线卡1具体可通过BFD、MPLS OAM等检测机制检测链路是否故障;该步骤中切换到备伪线链路则是主要指线卡1的业务转发面在线卡检测到告警后立即由主伪线链路切换到备伪线链路,以尽可能保证业务数据的正常转发;线卡1通过板间通信向主控板2发送告警通知,以通知主控板的主控层面主伪线链路除了故障,需要切换到备伪线链路;
线卡1判断主控板是否正常接收到告警通知包括:
线卡1向主控板2发送告警通知后,或切换到备伪线链路后开始计时,在第一预设时间阈值内判断是否收到主控板2根据告警通知反馈的线路切换通知,如否,判定主控板2未收到告警通知。本实施例中的第一预设时间阈值的取值主要取决于主控板2从线卡1接收告警通知并根据该告警通知反馈线路切换通知所需的处理时间决定。具体其可取秒级,例如1秒。
本实施例中,当线卡1在判断主控板2未收到告警通知后,重新向主控板2发送告警通知前,可能会存在检测到主伪线链路的告警消除消息,此时表明主伪线链路上的告警已经消除,可以进行回切了,因此此时线卡1可以直接进行回切到主伪线链路,且此时由于主控板2侧之前并未进行切换,其仍工作在主伪线链路,因此主控板2侧并不需要进行回切操作,也不再需要根据之前的告警通知进行切换操作。因此此时线卡1可以停止重新向主控板2发送告警通知;且此时产生的告警消息通知也可不发给主控板2,这样可以减少板间通信流量。
在实际网络应用中,主控板2会对在短时间内接收到的告警通知和告警消息通知进行合并处理,其主要是控制层面为了防止链路震荡等原因。例如当线卡1上检测到告警通知并上报给主控板2后,紧接着高检测到告警消息并上报告警消除通知给主控板2,本实施例定义这种情况为误告警情况;主控板2在接收到告警通知后还未对其进行处理之前,又接收到针对该告警的告警消息通知,则对其进行合并处理,也即不进行切换也不进行回切操作,同时也不向线卡1发送任何消息。但是,针对这种情况,线卡1在检测到告警后会立即由主伪线链路切换到备伪线链路,且现有的线卡回切并不响应告警消除消息,只响应主控板下发的回切通知;但这种情况主控板并不会向其下发回切消息,因此也会导致主控板和线卡伪线保护状态不一致的问题。这种情况主要由误告警导致,本实施例中可将这种情况也认为是主控板为正常接收告警通知的一种。针对这种情况,在本实施例中,线卡1向主控板2发送告警通知后,或在切换到备伪线链路后开始计时,在第二预设时间阈值内判断该告警是否是误告警,如是,则直接从备伪线链路切回主伪线链路,并不需要等待主控板2下发回切通知,保证转发层面和控制层面的伪线保护状态一致。该第二预设时间阈值的取值主要根据误告警检测到告警消息和告警消除消息的时间间隔而定,其具体可设置为毫秒级,例如300毫秒。
具体的,请参见图5所示,线卡1包括检测模块11、业务转发模块12和自动纠正模块13,主控板2包括业务切换管理模块21,线卡1和主控板2之间通过板间通信模块3完成信息交互。各个模块的主要功能作用如下:
板间通信模块3:主要负责主控板2和线卡1之间进行板间消息通信。如线卡1的告警通知上送主控板2以及主控板2向线卡1下发切换和回切等通知处理。
主控上的业务切换管理模块21:主要负责处理线卡1上报的告警通知以及告警消除通知来进行APS决策PWFRR的切换和回切下发给各个线卡1。
线卡1上的检测模块11:主要负责检测伪线链路故障。例如设置检测报文具有检测周期T,当检测报文在3个检测周期T后没有检测到对端发送的检测报文时,即认为伪线链路失效,同时通知线卡1转发面和主控板2控制面进行伪线切换。
线卡1上的业务转发切换模块12:主要负责根据检测模块11下发的告警通知进行切换以及接收主控下发PWFRR的切换和回切消息,来进行控制业务数据转发。
线卡1上的自动纠正模块13:当线卡1检测模块11产生告警通知,业务转发模块12进行保护切换也即从主伪线链路切换到备伪线链路上后,开启定时器;正常情况下,主控板2的业务切换管理模块会下发线路切换通知给线卡1的业务转发模块12,如果在设定的第一时间阈值t1内(通常建议设置成秒级,例如1秒),主控板2还没有下发线路切换通知则可以认为主控板2未正常接收到该告警通知;同时为了避免出现误告警的情况发生,同时判断如果在设定的第二时间阈值t2内(通常建议设置成亚秒级,例如500毫秒),检测模块11产生告警消除消息,但主控还没有下发切换的消息则可以认为出现了检测异常,也即误告警,通知业务转发模块12进行回切;否则,如是一直到第一时间阈值t1主控板2都没有下发线路切换通知给线卡1,自动纠正模块13重新上报告警通知给主控板2。从而,保证控制板2和线卡1伪线保护工作状态一致。
下面结合以各模块的工作流程为例进行示例说明:
请参见图6所示,控制板2上的业务切换管理模块21处理流程包括:
步骤601:在配置伪线保护组的伪线双归保护通信设备PE1的工作PW上开启OAM/BFD报文检测,伪线保护组正常工作在主PW1上;转步骤602;
步骤602:线卡1判断伪线保护组工作链路工作PW1是否有线卡1检测模块11上报OAM/BFD检测告警,如果有,则确定工作PW1发生故障,此时转至步骤603;
步骤603:主控板2接收线卡1发送的告警通知,APS进行协议计算伪线保护组是否切换,如果是,转步骤604;
步骤604:主控板2伪线保护组切换到保护链路保护PW2上,同时下发线路切换通知给线卡1,转步骤605;
步骤605:线卡1判断伪线保护组工作链路工作PW1是否有线卡转发面检测模块上报OAM/BFD检测告警是否消除,如果是,转步骤606;
步骤606:主控板2接收线卡1发送的告警消除通知,APS进行协议计算伪线保护组是否允许回切,如果是,转步骤607;
步骤607:主控板2伪线保护组回切到工作链路主PW1上,同时向线卡1下发回切通知,以通知转发面保护组回切到工作主PW1上,转回步骤602。
请参见图7所示,线卡1转发面上的检测模块11处理流程包括:
步骤701:在PE1设备的线卡1转发面工作PW1上运行OAM/BFD报文检测,伪线保护组正常工作在主PW1上,转步骤702;
步骤702:线卡1转发面判断伪线保护组工作链路工作PW1是否有检测模块11产生OAM/BFD检测告警,如果有,则确定工作PW1发生故障,此时转至步骤703;
步骤703:线卡1转发面检测模块11通知控制面和转发面主PW1上告警产生,线卡1转发面保护组接收到告警快速切换到备PW2上,之后,转步骤704;
步骤704:判断线卡1转发面伪线保护组工作链路工作PW1是否有上报OAM/BFD检测告警消失,如果有,转步骤705;
步骤705:线卡1转发面检测模块11通知控制面主PW1上告警消失;控制面伪线保护组接收到告警消失消息决策回切到工作链路主PW1上,同时下发回切通知给线卡1转发面保护组回切到工作主PW1上,转步骤702。
请参见图8所示,线卡11转发面上的业务转发模块12处理流程包括:
步骤801:在PE1设备的线卡1转发面工作PW1上运行OAM/BFD报文检测,伪线保护组正常工作在主PW1上,转步骤802;
步骤802:线卡1转发面判断伪线保护组工作链路工作PW1是否有检测模块11产生OAM/BFD检测告警,如果有,则确定工作PW1发生故障,此时转至步骤803;
步骤803:线卡1转发面保护组接收到主PW1产生告警快速切换到备PW2上,之后,转步骤804;
步骤804:判断主控控制面伪线保护组是否有下发回切到主PW消息,如果有,转步骤805;
步骤805:线卡1转发面接收到控制面伪线保护组回切通知,则伪线双归保护组回切到工作主PW1上,转步骤802。
请参见图9所示,线卡11转发面上的自动纠正模块13处理流程包括:
步骤901:在PE1设备的线卡1转发面工作PW1上运行OAM/BFD报文检测,伪线保护组正常工作在主PW1上,转步骤902;
步骤902:线卡1转发面判断伪线保护组工作链路工作PW1是否有检测模块11产生OAM/BFD检测告警,如果有,则确定工作PW1发生故障,此时转至步骤903;
步骤903:线卡1转发面保护组接收到主PW1产生告警快速切换到备PW2上后,自动纠
正模块13开启定时纠正,转步骤904;
步骤904:判断主控控制面伪线保护组是否在指定时间t1内下发转发面切换到备PW2消息,如果有,转步骤905,否则转步骤908;
步骤905:判断线卡1转发面检测模块11是否在指定第二时间阈值t2内通知转发面主PW1上告警消除,该步骤与步骤904的判断过程同时执行;如果是,转步骤906,否则转步骤907;
步骤906:线卡1转发面在第二时间阈值t2内没有接收到控制面伪线保护组切换消息,但检测模块11紧接着又通知主PW1上告警消失,说明控制面合并了告警产生和消失的消息;则线卡1转发面自动纠正模块13进行回切到主PW1上,和控制面伪线保护组工作状态保持一致,自动纠正模块13停止工作;转步骤902;
步骤907:线卡1转发面在第二时间阈值t2内没有接收到控制面伪线保护组切换消息,而且检测模块11没有通知主PW1上告警消失,说明控制面没有感知到告警产生的消息;则线卡1转发面自动纠正模块13进行重新上报控制面主控工作PW1上的链路检测告警消息。控制面如果接收到检测告警下发转发面伪线保护组切换到备伪线链路,则控制面和转发面工作状态保持一致,自动纠正模块停止工作;
步骤908:线卡1转发面在第一时间阈值t1内接收到控制面伪线保护组切换消息,说明控制面接收到检测告警下发转发面切换。线卡1转发面和控制面伪线保护组工作状态保持一致,自动纠正模块13停止工作。
以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。
如上所述,本发明实施例提供的一种伪线双归保护控制方法及通信设备具有以下有益效果:通信设备的线卡检测到当前处于工作状态的主伪线链路出现告警时,切换到备伪线链路,并向通信设备的主控板发送告警通知;然后线卡判断主控板是否正常接收到其发送的告警通知,如没有,则表明板间通信出现了异常,重新向主控板发送告警通知,以尽可能保证主控板能正常接收、感知到告警,并依此进行对应的链路切换,进而保证主控板和线卡伪线保护状态一致。
Claims (12)
- 一种伪线双归保护控制方法,应用于伪线双归保护通信设备,所述伪线双归保护通信设备包括主控板和线卡;所述方法包括:所述线卡检测到当前处于工作状态的主伪线链路出现告警时,切换到备伪线链路,并向所述主控板发送告警通知;所述线卡判断所述主控板是否正常接收到所述告警通知,如否,重新向所述主控板发送告警通知。
- 如权利要求1所述的伪线双归保护控制方法,其中,所述线卡判断所述主控板是否正常接收到所述告警通知包括:所述线卡向所述主控板发送告警通知后,或切换到备伪线链路后开始计时,在第一预设时间阈值内判断是否收到所述主控板根据所述告警通知反馈的线路切换通知,如否,判定所述主控板未收到所述告警通知。
- 如权利要求2所述的伪线双归保护控制方法,其中,所述线卡在判断所述主控板未收到所述告警通知后,重新向所述主控板发送告警通知前,判断是否检测到主伪线链路的告警消除消息,如是,则从备伪线链路切回主伪线链路,并停止重新向所述主控板发送告警通知。
- 如权利要求3所述的伪线双归保护控制方法,其中,所述线卡从备伪线链路切回主伪线链路后,取消将所述告警消除通知发给所述主控板。
- 如权利要求2-4任一项所述的伪线双归保护控制方法,其中,还包括:所述线卡向所述主控板发送告警通知后,或切换到备伪线链路后开始计时,在第二预设时间阈值内判断所述告警是否是误告警,如是,从备伪线链路切回主伪线链路;所述第二预设时间阈值小于所述第一预设时间阈值。
- 如权利要求5所述的伪线双归保护控制方法,其中,所述线卡在第二预设时间阈值内判断所述告警是否是误告警包括:判断在所述第二预设时间阈值内是否检测到主伪线链路的告警消除消息,如是,则判定所述告警为误告警。
- 一种伪线双归保护通信设备,包括主控板和线卡;其中:所述线卡设置为检测到当前处于工作状态的主伪线链路出现告警时,切换到备伪线链路,并向所述主控板发送告警通知;以及判断所述主控板是否正常接收到所述告警通知,如否,重新向所述主控板发送告警通知。
- 如权利要求7所述的伪线双归保护通信设备,其中,所述线卡判断所述主控板是否正常接收到所述告警通知包括:所述线卡向所述主控板发送告警通知后,或切换到备伪线链路后开始计时,在第一预设时间阈值内判断是否收到所述主控板根据所述告警通知反馈的线路切换通知,如否, 判定所述主控板未收到所述告警通知。
- 如权利要求8所述的伪线双归保护通信设备,其中,所述线卡还设置为在判断所述主控板未收到所述告警通知后,重新向所述主控板发送告警通知前,判断是否检测到主伪线链路的告警消除消息,如是,则从备伪线链路切回主伪线链路,并停止重新向所述主控板发送告警通知。
- 如权利要求9所述的伪线双归保护通信设备,其中,所述线卡还设置为从备伪线链路切回主伪线链路后,取消将所述告警消除通知发给所述主控板。
- 如权利要求7-10任一项所述的伪线双归保护通信设备,其中,所述线卡还设置为向所述主控板发送告警通知后,或切换到备伪线链路后开始计时,在第二预设时间阈值内判断所述告警是否是误告警,如是,从备伪线链路切回主伪线链路;所述第二预设时间阈值小于所述第一预设时间阈值。
- 如权利要求11所述的伪线双归保护通信设备,其中,所述线卡在第二预设时间阈值内判断所述告警是否是误告警包括:判断在所述第二预设时间阈值内是否检测到主伪线链路的告警消除消息,如是,则判定所述告警为误告警。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510454863.0A CN106411546B (zh) | 2015-07-29 | 2015-07-29 | 伪线双归保护控制方法及通信设备 |
CN201510454863.0 | 2015-07-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016177129A1 true WO2016177129A1 (zh) | 2016-11-10 |
Family
ID=57218467
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/076644 WO2016177129A1 (zh) | 2015-07-29 | 2016-03-17 | 伪线双归保护控制方法及通信设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106411546B (zh) |
WO (1) | WO2016177129A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110071830B (zh) * | 2019-04-15 | 2020-03-06 | 北京华三通信技术有限公司 | 伪线回切方法及装置 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1437348A (zh) * | 2002-02-04 | 2003-08-20 | 深圳市中兴通讯股份有限公司 | 通信系统中主备板数据实时同步的方法 |
CN101814953A (zh) * | 2010-03-01 | 2010-08-25 | 中兴通讯股份有限公司 | 一种实现传输设备自动保护倒换的方法和系统 |
CN102118305A (zh) * | 2010-01-06 | 2011-07-06 | 上海贝尔股份有限公司 | 一种通信设备的业务板及包含该业务板的通信设备 |
US8004964B2 (en) * | 2009-03-23 | 2011-08-23 | Cisco Technology, Inc. | Restoring multi-segment pseudowires following failure of a switching PE device |
CN102857420A (zh) * | 2012-08-24 | 2013-01-02 | 中兴通讯股份有限公司 | 跨线卡保护方法、相关装置及线卡业务接入ptn的方法及系统 |
CN102957554A (zh) * | 2011-08-25 | 2013-03-06 | 中兴通讯股份有限公司 | Ptn设备与mstp设备协同保护的实现方法和装置 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101374070B (zh) * | 2007-08-23 | 2011-10-26 | 中国移动通信集团公司 | 多路段级联传送网保护方法、系统及保护控制装置 |
CN102752126B (zh) * | 2011-04-22 | 2017-05-24 | 中兴通讯股份有限公司 | 一种自动保护倒换方法、主设备及设备 |
CN104348676B (zh) * | 2013-08-02 | 2018-02-13 | 华为技术有限公司 | 一种基于操作管理维护oam的链路检测方法及设备 |
-
2015
- 2015-07-29 CN CN201510454863.0A patent/CN106411546B/zh active Active
-
2016
- 2016-03-17 WO PCT/CN2016/076644 patent/WO2016177129A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1437348A (zh) * | 2002-02-04 | 2003-08-20 | 深圳市中兴通讯股份有限公司 | 通信系统中主备板数据实时同步的方法 |
US8004964B2 (en) * | 2009-03-23 | 2011-08-23 | Cisco Technology, Inc. | Restoring multi-segment pseudowires following failure of a switching PE device |
CN102118305A (zh) * | 2010-01-06 | 2011-07-06 | 上海贝尔股份有限公司 | 一种通信设备的业务板及包含该业务板的通信设备 |
CN101814953A (zh) * | 2010-03-01 | 2010-08-25 | 中兴通讯股份有限公司 | 一种实现传输设备自动保护倒换的方法和系统 |
CN102957554A (zh) * | 2011-08-25 | 2013-03-06 | 中兴通讯股份有限公司 | Ptn设备与mstp设备协同保护的实现方法和装置 |
CN102857420A (zh) * | 2012-08-24 | 2013-01-02 | 中兴通讯股份有限公司 | 跨线卡保护方法、相关装置及线卡业务接入ptn的方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN106411546A (zh) | 2017-02-15 |
CN106411546B (zh) | 2020-03-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7355965B2 (en) | Apparatus and method for rapid detection of unidirectional breaks in a network ring | |
US9800432B2 (en) | Using ethernet ring protection switching with computer networks | |
WO2015196676A1 (zh) | 组网保护方法、装置及组网中的汇聚主用网元 | |
WO2012028029A1 (zh) | 一种切换方法及系统 | |
CN101227371B (zh) | 同级交换机设备间的备份切换方法和装置 | |
JP2009518930A (ja) | Mplslsp保護切替え装置及び方法 | |
WO2011095042A1 (zh) | 一种数据转发方法、装置及系统 | |
CN105656776B (zh) | 一种伪线双归保护切换系统、方法和装置 | |
CN101789879A (zh) | 一种关联链路的动态维护方法及装置 | |
WO2015139534A1 (zh) | 基于ptn的实现链路状态穿通功能的系统、方法及装置 | |
WO2016177105A1 (zh) | 伪线双归保护管理方法及通信设备 | |
WO2015196640A1 (zh) | 双切环网保护方法及装置 | |
WO2016177129A1 (zh) | 伪线双归保护控制方法及通信设备 | |
CN107465527B (zh) | 一种网元、保护倒换方法及其系统 | |
CN105897451B (zh) | Otn调度系统及故障处理方法 | |
EP3462681B1 (en) | Apparatus and method for transmitting multicast service | |
CN107995111B (zh) | 业务转发、链路变化通告方法、汇聚设备及接入设备 | |
WO2017124685A1 (zh) | 一种业务转发方法及装置 | |
RU2667806C2 (ru) | Способ и система для переключения на резерв с применением псевдопроводного (pw) двойного соединения | |
WO2014079010A1 (zh) | 业务保护方法、设备及系统 | |
WO2017124722A1 (zh) | 一种伪线业务转发方法及装置 | |
CN107786435B (zh) | 伪线保护方法及装置 | |
KR100664416B1 (ko) | 링 토폴로지 망에서의 경로 복원 방법 | |
CN103795625A (zh) | 多协议标签交换网络的快速重路由实现方法及装置 | |
CN112187634A (zh) | 一种vrrp横联保护方法及系统 |
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: 16789123 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: 16789123 Country of ref document: EP Kind code of ref document: A1 |