WO2012142870A1 - 一种自动保护倒换方法、主设备及设备 - Google Patents

一种自动保护倒换方法、主设备及设备 Download PDF

Info

Publication number
WO2012142870A1
WO2012142870A1 PCT/CN2012/071537 CN2012071537W WO2012142870A1 WO 2012142870 A1 WO2012142870 A1 WO 2012142870A1 CN 2012071537 W CN2012071537 W CN 2012071537W WO 2012142870 A1 WO2012142870 A1 WO 2012142870A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
configuration information
packet
standby
master device
Prior art date
Application number
PCT/CN2012/071537
Other languages
English (en)
French (fr)
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 WO2012142870A1 publication Critical patent/WO2012142870A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability

Definitions

  • the present invention relates to a communication system, and in particular, to an automatic protection switching method, a main device, and a backup device.
  • Network protection ensures that services can be switched through protection groups without interruption if the device or link is abnormal.
  • Automatic Protection Switching is used in a variety of network environments. Automatic protection switching can be divided into linear and circular according to the networking form. Linear protection switching is a widely used networking form that is applied to point-to-point physical topologies.
  • APS Automatic Protection Switching
  • the traffic between the two communication nodes is transmitted on the primary path; when the primary path fails, the traffic between the two communication nodes is switched to the alternate path for transmission, and the protection of the primary path by the alternate path is achieved.
  • the linear multiplex section protection networking of a single device consists of nodes S1 and S2, which implements protection for links Linkl and Link2.
  • Port 1 (Pom) and port 2 (Port2) are connected to node S1, and Port2 is configured as a working port
  • Port1 is a protection port
  • Port3 and Port4 are connected to node S2
  • Port4 is configured as a working port
  • Port3 is a protection port. Therefore, Linkl is confirmed as the working link, and Link2 is confirmed as the protection link.
  • Linear protection groups support 1+1 unidirectional, 1+1 bidirectional, and 1:1. Under normal circumstances, the service works in Linkl.
  • Linkl fails, nodes S1 and S2 detect link failures and generate FB-W (Signal Fail on working), according to the current configuration and status. Protocol operation, switching to the protection link, ie Link2.
  • FB-W Synignal Fail on working
  • Protocol operation switching to the protection link, ie Link2.
  • the nodes S1 and S2 detect that the link fault disappears, and the working link signal failure disappearance alarm is generated. If the current configuration is in the reverse mode, the switch is switched to the working link according to the decision. If the current configuration is non-inverted. The mode is then maintained on the protection link according to the decision. This achieves protection of the link Linkl.
  • the protection is a point-to-point protection of a single device.
  • the link protection function cannot be implemented.
  • the networking consists of nodes S1, S2 and S3.
  • Portl and Port2 are not on the same device.
  • the protection of link Link2 on the working link Linkl cannot be implemented by using the traditional single-point protection protocol.
  • the traditional multiplex section protection can not play the role of link protection. Summary of the invention
  • the technical problem to be solved by the present invention is to provide an automatic protection switching method, a main device and a backup device, which realize protection switching across devices.
  • the present invention uses the following technical solutions:
  • An automatic protection switching method includes:
  • the master device where the working link is located and the standby device where the protection link is located constitute a multiplex section protection group.
  • the master device sends an alarm packet to the standby device.
  • the standby device receives the alarm message, it performs a switching decision.
  • the automatic protection switching method further includes:
  • the command triggers the packet to be sent to the standby device, and the command triggering packet carries the manual switching command.
  • the standby device After receiving the command trigger message, the standby device performs a switching decision.
  • the automatic protection switching method further includes:
  • the standby device After receiving the K value information of the remote end, the standby device performs a switching decision.
  • the remote end refers to the other end of the protection link except the standby device.
  • the automatic protection switching method further includes:
  • the switching decision message is sent to the master device, and the switching decision message carries the switching result;
  • the master device After receiving the switching decision message, the master device updates the local state information according to the information carried in the switching decision message.
  • the automatic protection switching method further includes: A timing packet is periodically sent between the master device and the standby device, where the timer packet carries configuration information and state information locally of the master device or the standby device.
  • the automatic protection switching method further includes:
  • the master device checks the local state information, and if the master device local state information is different from the state information carried in the timer packet, The status information carried in the text is updated;
  • the timing packet is sent by the standby device, and the timing packet carries state information local to the standby device.
  • the automatic protection switching method further includes:
  • the master device checks the local configuration information, and if the local device configuration information is inconsistent with the configuration information carried in the timed message, the abnormal process is performed. And notifying the user to perform configuration modification, where the timing packet is sent by the standby device, and the timing packet carries configuration information locally of the standby device; or
  • the standby device checks the local configuration information, and if the local configuration information of the standby device is inconsistent with the configuration information carried in the timed packet, the abnormal processing is performed. Notifying the user to perform configuration modification, where the timing message is sent by the primary device, and the timed message carries configuration information locally of the primary device.
  • the master device checks the local configuration information. If the configuration information of the local device is inconsistent with the configuration information carried in the timeout, the step of performing exception processing and notifying the user to perform configuration modification includes:
  • the master device detects the local configuration information and the configuration information carried in the timer packet, that is, when the configuration information of the peer end is inconsistent, the notification message with different configurations is sent to the peer end, and the notification packets with different configurations carry the current The configuration information and the new configuration information of the device are valid, and the configuration is different from that of the peer.
  • the peer device that is, the standby device receives the notification packet with different configurations, performs exception handling, and notifies the user to perform configuration modification. ;
  • the standby device checks the local configuration information, if the local device has the configuration information and the local device The configuration information carried in the timed message is inconsistent.
  • the steps of performing exception handling and notifying the user to perform configuration modification include:
  • the device detects the local configuration information and the configuration information carried in the timed message, that is, when the configuration information of the peer is inconsistent, the notification message is sent to the peer end, and the configuration information is different. Carrying the configuration information and the new configuration information that are valid for the current device, and identifying the configuration that is different from the peer device.
  • the peer device receives the notification packet with different configurations, the peer device performs exception processing and notifies the user. Configuration modification.
  • the communication port of the master device and the standby device is added to a virtual local area network, and the virtual local area network is used as a control virtual local area network to send a message between the master device or the standby device; or the master device or The device is configured to establish a channel through the inter-rack communication protocol, and the information to be exchanged is encapsulated in the packet according to the type length value format, and the packet is sent to the peer end through the channel.
  • a master device, the master device and a standby device form a multiplex section protection group, the working link is in the master device, and the protection link is in the standby device, and the master device includes a receiving module and a packet sending module. , among them:
  • the receiving module is configured to: receive an alarm or alarm disappearing information generated by the working link; the packet sending module is configured to: send an alarm message when the receiving module receives the alarm or alarm disappearing information Give the standby device.
  • the packet sending module is further configured to:
  • the command triggers the packet to be sent to the standby device.
  • the command triggering packet carries the manual switchover command.
  • the packet sending module is further configured to:
  • the timer packet is periodically sent to the standby device, where the timer packet carries configuration information and status information of the master device.
  • the master device further includes a state information management module and a configuration information management module, where: the receiving module is further configured to: receive a timer packet sent by the standby device, where the timer packet carries the configuration of the standby device Information and status information;
  • the status information management module is configured to: when the receiving module receives the timing message, check the local status information, if the local status information and the status information of the standby device carried in the timed message Different, the update is performed according to the status information of the standby device;
  • the configuration information management module is configured to: when the receiving module receives the timing packet, check the local configuration information, if the local configuration information and the configuration information of the standby device carried in the timer packet If they are inconsistent, the exception is processed and the user is notified to make configuration changes.
  • the message sending module is further configured to: when the configuration information management module detects that the local configuration information is inconsistent with the configuration information of the standby device carried in the timed message, sending a notification message with different configuration to the
  • the configuration device includes: the configuration information and the new configuration information that are valid for the current device, and the configuration that is different from the standby device.
  • the configuration information management module is further configured to: when receiving the notifications with different configurations sent by the standby device, perform exception processing and notify the user to perform configuration modification.
  • the master device further includes a state information management module, where:
  • the receiving module is further configured to: receive a switching decision message sent by the standby device, where the switching decision message carries a switching result;
  • the status information management module is configured to: after receiving the switching decision message, update the local state information according to the information carried in the switching decision message.
  • a backup device, the standby device and a master device form a multiplex section protection group, the working link is in the master device, and the protection link is in the standby device, and the standby device includes a packet receiving module and a switching decision Module, where:
  • the message receiving module is configured to: receive an alarm message sent by the master device;
  • the switching decision module is configured to: when the message receiving module receives the sending by the master device When the alarm message is sent, the switching decision is made. among them:
  • the packet receiving module is further configured to: receive a manual switching command sent by the primary device, a K value information of the remote end, or a command triggering message sent by the primary device; where the remote end refers to the standby device The other end of the protection link where the device is located except the standby device;
  • the switching decision module is further configured to: after the packet receiving module receives the manual switching command sent by the master device, the K value information of the remote device, or the command trigger message sent by the master device, perform a switching decision .
  • the standby device further includes a message sending module, where:
  • the packet sending module is configured to: after the switching decision module performs the switching decision, send the switching decision message to the master device, where the switching decision message carries the switching result.
  • the standby device further includes a message sending module, where:
  • the packet sending module is configured to: periodically send a timing packet to the master device, where the timer packet carries configuration information and state information of the standby device.
  • the standby device further includes a configuration information management module, where:
  • the packet receiving module is further configured to: receive a timing packet sent by the master device, where the timer packet carries configuration information and status information of the master device;
  • the configuration information management module is configured to: when the message receiving module receives the timed text sent by the master device, check the local configuration information, if the local configuration information is the same as that carried in the timed message The configuration information of the master device is inconsistent. The exception is processed and the user is notified to make configuration changes. among them:
  • the message sending module is further configured to: when the configuration information management module detects that the local configuration information is inconsistent with the configuration information of the master device, send a different notification message to the master device, where the configuration is different.
  • the notification message carries configuration information and new configuration information that are currently in effect on the standby device, and identifies a configuration different from the master device.
  • the message receiving module is further configured to: receive a notification report with different configurations sent by the master device Text
  • the configuration information management module is further configured to: when the message receiving module receives the notification message with different configurations sent by the main device, perform abnormal processing and notify the user to perform configuration modification.
  • An automatic protection switching system comprising: any one of the master devices as described above and any of the standby devices as described above.
  • Figure 1 is a network diagram of multiplex section protection of a single device
  • 2 is a network diagram composed of three network elements
  • FIG. 3 is a scenario in which a working link fails when a cross-device protection network consisting of three network elements is formed;
  • FIG. 4 is a processing flow of communication packet transmission according to an embodiment of the present invention.
  • FIG. 5 is a process flow of receiving a communication message according to an embodiment of the present invention.
  • the embodiment of the invention provides a method for implementing automatic protection switching across devices, as shown in FIG. 3 .
  • the device on which the working link resides is the master device, and the link-connected port is the master port.
  • the device on which the protection link resides is the standby device, and the link-connected port is the standby port. That is, node S2 is the master device, port 2 is the working port, node S3 is the standby device, and portl is the protection port.
  • the multiplex section protection across devices is composed of two network elements, which together form a multiplex section protection group, that is, nodes S2 and S3 form a multiplex section across devices. Protection group. Nodes S2 and S3 pass information of the multiplex section protection group.
  • the primary device where the working link is located and the standby device where the protection link resides form a multiplex section protection group.
  • the protection link protects the working link.
  • the information of the interaction between the multiplex section protection groups in the embodiment of the present invention may be divided into the following five types: a timing message, an alarm message, a command trigger message, a switch decision message, and a different notification message, where:
  • Timing packet The master device and the standby device periodically send a timer packet to the peer end, carrying the configuration information and status information of the local multiplex section protection group.
  • the master device When receiving the timer packet sent by the standby device, the master device checks the local state information, and if it is different from the state information of the standby device carried in the timer packet, performs update according to the state information of the standby device; Check the local configuration information. If the configuration information is not consistent with the configuration information contained in the timing, perform exception handling and notify the user to modify the configuration.
  • the standby device When receiving the timed message, the standby device checks the local configuration information. If the configuration information is not consistent with the configuration information carried in the timed message, the device performs abnormal processing and notifies the user to perform configuration modification.
  • Alarm packet When the alarm information or alarm disappear message is generated on the working link, the alarm is sent.
  • the switchover decision is made on the standby device.
  • the alarm message is sent to the standby device for switching.
  • the standby device receives the alarm packet and uses this alarm as one of the trigger conditions for the switching to make a switchover decision to determine whether to perform the switchover. 3.
  • the master device configures the manual switch command, such as Manual switch, Forced switch 3 ⁇ 4 Clear, Exercise, Lockout of protection, etc., it needs to immediately send a command to trigger the message to the standby device.
  • the command triggering message carries the manual switching command.
  • the switchover decision is made on the standby device. Therefore, when the master device is configured with the manual switchover command, it is compared with the previous manual switchover command. When the priority is high, the command output triggers the packet to the standby device for the switchover decision. When the standby device receives the command to trigger the packet, it will perform the switchover decision as one of the trigger conditions for the switchover to determine whether to perform the switchover.
  • the backup device compares All current trigger conditions are used to perform a switchover decision to determine whether to switch between the working link and the protection link. At this time, the switching result is notified to the master device for status update. After receiving the switching decision message, the primary device updates the local state information according to the information carried in the switching decision message.
  • the K value information carries a remote command, status, alarm, configuration information, and the like.
  • the remote end refers to the other end of the protection link except the standby device, such as the node Sl in the network shown in FIG.
  • Configure different notifications>3 ⁇ 4 When the device detects that the local configuration information is inconsistent with the configuration information of the peer, the device will send different notification packets to the peer.
  • the configuration information that is different in the configuration carries the configuration information and the new configuration information that are valid for the current device, and identifies the configuration that is different from the peer. After receiving the notification packet, the peer device performs the corresponding exception handling and notifies the user to change the configuration.
  • FIG. 4 it is a schematic diagram of a processing flow when a communication message is sent according to an embodiment of the present invention, and the process includes:
  • Step S401 Transmitting a communication message between devices, and directly proceeding to step S402.
  • step S402 the parameter validity check is performed, and if yes, the process proceeds to step S403, otherwise the process directly proceeds to step S417.
  • the parameter validity check includes: message length, parameter range check, and the like. For example, when the alarm message is generated to trigger the transmission of the alarm message, the validity of the alarm information is checked.
  • Step S403 selecting the type of the sent packet, and entering different processing flows according to different types of packets.
  • step S404 If the type of the sent packet is a different notification message, the process proceeds to step S404, and the filling of the type of the message is performed, that is, the process proceeds to step S405.
  • Step S405 Fill in the configuration and new configuration information that is valid for the current device, and identify the configuration that is different from the peer (that is, which configuration is different from the peer), and send the packet to step S417.
  • the peer end of the standby device is the standby device, and the peer device of the standby device is the master device.
  • step S406 If the type of the sent message is a timed message, the process proceeds to step S406, and the filling of the type of the message is performed, that is, the process proceeds to step S407.
  • Step S407 The timer packet needs to fill the current configuration information and status information of the device, so that the peer device performs the parameter check after receiving the timer packet, and then proceeds to step S417.
  • step S408 If the type of the sent message is an alarm message, the process proceeds to step S408, and then the parameter determination is performed, that is, the process proceeds to step S409.
  • Step S409 Since the master device needs to notify the standby device to make a decision, the current device needs to determine whether the current device is the master device. If the master device proceeds to step S410, otherwise proceeds to step S417.
  • Step S410 filling the alarm information of the current main link and transmitting, and then proceeds to step S417.
  • the process proceeds to step S411, and then the parameter determination is performed, that is, the process proceeds to step S412.
  • the switching decision is only performed on the standby device. Therefore, only the standby device sends the switching decision message, that is, when the local device is the standby device, the process proceeds to step S413, otherwise, the process proceeds to step S417.
  • step S413 the switching state and the filling of the valid path parameter are performed and transmitted, and the latest state of the switching is notified to the master device, and then the process proceeds to step S417.
  • step S414 If the type of the transmitted message is a command trigger message, the process proceeds to step S414, and then the parameter determination is performed, that is, the process proceeds to step S415.
  • Step S415 Since the switching decision is in the standby device, the command sent by the master device needs to send the message to the standby device for decision. Therefore, when the device is the master device, the process proceeds to step S416, otherwise, the process proceeds to step S417.
  • Step S416 filling the command information of the configuration of the master device and transmitting, and then proceeds to step S417.
  • Step S417 the message sending process ends.
  • FIG. 5 it is a schematic flowchart of processing when a communication packet is received according to an embodiment of the present invention, and the process includes:
  • Step S501 Receive a communication message between the devices, and proceed directly to step S502.
  • Step S502 Perform parameter validity check, such as message type, multiplex section protection group ID, etc., if yes, go to step S503, otherwise go directly to step S519.
  • parameter validity check such as message type, multiplex section protection group ID, etc.
  • Step S503 Perform different processing procedures according to the type of the received message.
  • Step S504 Receive a different notification message, and proceed to step S505 to process the type of message.
  • Step S505 Receive a different notification message, indicating that the configuration of the nodes across the device is inconsistent, and performing corresponding exception processing (such as performing the operation of locking the current state machine), and notifying the user to perform configuration modification, so as to achieve consistent configuration at both ends.
  • exception processing such as performing the operation of locking the current state machine
  • Step S506 receiving the timer message, and proceeding to step S507.
  • Step S507a determining whether it is a master device or a standby device, if it is a standby device, directly enter the step
  • step S507b the status is checked. If the status of the two ends is inconsistent, the device status is The master device performs status updates.
  • Step S508 Perform configuration information check. If the configurations of the two ends are inconsistent, proceed to step S509, otherwise proceed to step S519.
  • step S509 when the configurations of the two ends are inconsistent, the corresponding exception processing is performed (the manual switching command or the state machine locking cannot be performed in this case); at the same time, the configuration of different notification messages is required to be sent and the user is notified to perform configuration modification. Then, the process proceeds to step S519.
  • Step S510 if an alarm message is received, the process proceeds to step S511.
  • step S511 it is determined whether the current device is a standby device, because only the master device sends the alarm packet, so the master device does not receive the alarm packet. Therefore, if the current device is a backup device, the process proceeds to step S512, otherwise, the process proceeds to step S519.
  • Step S512 Perform a decision according to the received link alarm of the master device and the link state and the protection group status of the current standby device, and send a switch decision message to the master device after the decision. Then, the process proceeds to step S519.
  • Step S513 after receiving the switching decision message, proceeding to step S514.
  • Step S514 Determine whether the current device is the master device. Because the switching decision is in the standby device, only the master device receives the switching decision message. The current device is the master device entering S515, otherwise it proceeds to step S519.
  • Step S515 After receiving the switching decision message, the master device updates the local information according to the latest status. Since the standby device is the decision device, the state of the master device is based on the standby device, and then proceeds to step S519.
  • Step S517 Determine whether the current device is a standby device. After the standby device is the decision device, the master device sends a command to trigger the packet to the standby device for decision. Therefore, if the current device is the standby device, the process proceeds to step S518, otherwise, the process proceeds to step S519.
  • Step S518 Perform a decision according to the received switching command and the current state and configuration. After the decision, the result is encapsulated in the switching decision message and sent to the master device for synchronization, and then proceeds to step S519.
  • step S519 the message sending process ends.
  • the above describes the packet processing process of the inter-device protection group. In this way, the protection group information can be effectively transmitted to the peer end to implement cross-device protection.
  • the sending of packets between the master device and the standby device can be performed in various ways.
  • the communication ports of the master device and the standby device are added to a virtual local area network (VLAN).
  • the communication packet of the device protection group is sent; or the draft Inter-Chassis Communication Protocol (ICCP) published by the Internet Engineering Task Force is used.
  • ICCP Inter-Chassis Communication Protocol
  • the master device or the standby device establishes a channel through the inter-rack communication protocol, and the information to be exchanged is encapsulated in the packet according to the type length value format, and the packet is sent to the peer end through the channel.
  • ICCP is based on the extension of the label distribution protocol, establishing a channel between devices to ensure reliable and orderly delivery of interactive information between devices. Moreover, it provides a management mechanism to divide the devices that need to transmit information into a redundant group and establish channels between devices through messages. Information that needs to be exchanged between devices is encapsulated into packets in the format of Type Length Value (TLV) and sent to the other party through the channel.
  • TLV Type Length Value
  • Cross-device protection groups can use this channel for reliable, orderly delivery of protection group information.
  • TLV Type Length Value
  • the draft only describes the TLV and Multi-Chassis Link Aggregation Control Protocol (mLACP) application TLV for the Pseudowire Redundancy (PW) redundancy group.
  • mLACP Multi-Chassis Link Aggregation Control Protocol
  • the TLV for the multiplex section protection application scenario is not defined. Therefore, the ICCP TLV can be extended to support the multiplex section protection scenario, and the timing information TLV, the alarm information TLV, the command information TLV, the switching result information TLV, and the different configuration notification information TLV can be added, where: the timing information TLV includes protection Group configuration and status information; status information including status and valid path;
  • the TLV includes the alarm status of the link.
  • the TLV includes a command to configure a switching command.
  • Switching result information TLV includes the latest status and effective path of the protection group
  • the TLV includes local valid configuration information and new configuration information, and identifies which configurations are different.
  • TLV can also be defined in other ways, but only includes the status, configuration, and alarm of the protection group. Information such as commands can be used.
  • the present invention further provides a master device, where the master device and a standby device form a multiplex section protection group, and the master device is configured to: send an alarm message when an alarm or alarm disappearing information is generated on the working link where the master device is located Give the standby device.
  • the master device is further configured to: after the manual switching command is configured, send a command to trigger the packet to the standby device, where the command trigger packet carries the manual switching command.
  • the master device is further configured to: periodically send a timer packet to the standby device, where the timer packet carries configuration information and state information of the master device.
  • the master device is further configured to: when receiving the timer packet sent by the standby device, check the local state information, and if it is different from the state information of the standby device, update according to the state information of the standby device; And, if the configuration information of the standby device is inconsistent with the configuration information of the standby device, the abnormal processing is performed and the user is notified to perform configuration modification.
  • the master device is further configured to: when detecting that the local configuration information is inconsistent with the configuration information of the standby device, send a notification message with a different configuration to the standby device, where the notification packet with different configurations carries the current The configuration information and the new configuration information that are valid for the device, and the configuration that is different from the standby device.
  • the device When receiving the notification packet with different configurations sent by the standby device, the device performs exception processing and notifies the user to perform configuration modification.
  • the master device is further configured to: after receiving the switching decision message of the standby device, update the local state information according to the information carried in the switching decision message.
  • the present invention further provides a backup device, where the standby device and a master device form a multiplex section protection group, and the standby device is configured to: when receiving the alarm message sent by the master device, perform a switching decision.
  • the standby device is further configured to: perform an switching decision when there is an alarm, a manual switching command, a K value information received from the remote end, or a command trigger message sent by the primary device.
  • the standby device is further configured to: send a switching decision message to the primary device after performing the switching decision, and the switching decision message carries the switching result.
  • the standby device is further configured to: periodically send a timer packet to the master device, where the timer packet carries configuration information and state information of the standby device.
  • the standby device is further configured to: when receiving the timed message sent by the primary device, check If the configuration information of the master device is inconsistent with the configuration information of the master device carried in the timer packet, the abnormality processing is performed and the user is notified to perform configuration modification.
  • the standby device is further configured to: when detecting that the local configuration information is inconsistent with the configuration information of the primary device, send a notification message with a different configuration to the primary device, where the notification packet carries different Determining the configuration information and the new configuration information that are in effect on the device, and identifying the configuration different from the master device; and receiving the notification message with different configurations sent by the master device, performing exception processing and notifying the user. Configuration modification.
  • the master device where the working link is located and the standby device where the protection link is located constitute a multiplex section protection group.
  • the master device sends an alarm packet to the standby device.
  • the standby device receives the alarm message, it performs a switching decision.
  • the automatic protection switching method further includes:
  • the command triggers the packet to be sent to the standby device, and the command triggering packet carries the manual switching command.
  • the standby device After receiving the command trigger message, the standby device performs a switching decision.
  • the automatic protection switching method further includes:
  • the standby device After receiving the K value information of the remote end, the standby device performs a switching decision.
  • the remote end refers to the other end of the protection link except the standby device.
  • the automatic protection switching method further includes:
  • the switching decision message is sent to the master device, and the switching decision message carries the switching result;
  • the master device After receiving the switching decision message, the master device updates the local state information according to the information carried in the switching decision message.
  • the automatic protection switching method further includes:
  • a timing packet is periodically sent between the master device and the standby device, where the timer packet carries configuration information and state information locally of the master device or the standby device.
  • the automatic protection switching method further includes:
  • the master device checks the local state information, and if the master device local state information is different from the state information carried in the timer packet, The status information carried in the text is updated;
  • the timing packet is sent by the standby device, and the timing packet carries state information local to the standby device.
  • the automatic protection switching method further includes:
  • the master device checks the local configuration information, and if the local device configuration information is inconsistent with the configuration information carried in the timed message, the abnormal process is performed. And notifying the user to perform configuration modification, where the timing packet is sent by the standby device, and the timing packet carries configuration information locally of the standby device; or
  • the standby device checks the local configuration information, and if the local configuration information of the standby device is inconsistent with the configuration information carried in the timed packet, the abnormal processing is performed. Notifying the user to perform configuration modification, where the timing message is sent by the primary device, and the timed message carries configuration information locally of the primary device.
  • the master device checks the local configuration information. If the configuration information of the local device is inconsistent with the configuration information carried in the timeout, the step of performing exception processing and notifying the user to perform configuration modification includes:
  • the master device detects the local configuration information and the configuration information carried in the timer packet, that is, when the configuration information of the peer end is inconsistent, the notification message with different configurations is sent to the peer end, and the notification packets with different configurations carry the current The configuration information and the new configuration information of the device are valid, and the configuration is different from that of the peer.
  • the peer device that is, the standby device receives the notification packet with different configurations, performs exception handling, and notifies the user to perform configuration modification. ;
  • the standby device checks the local configuration information. If the local configuration information of the standby device is inconsistent with the configuration information carried in the timed packet, the step of performing exception processing and notifying the user to perform configuration modification includes: The device detects the local configuration information and the configuration information carried in the timed message, that is, when the configuration information of the peer is inconsistent, the notification message is sent to the peer end, and the configuration information is different. Carrying the configuration information and the new configuration information that are valid for the current device, and identifying the configuration that is different from the peer device. When the peer device receives the notification packet with different configurations, the peer device performs exception processing and notifies the user. Configuration modification.
  • the communication port of the master device and the standby device is added to a virtual local area network, and the virtual local area network is used as a control virtual local area network to send a message between the master device or the standby device; or the master device or The device is configured to establish a channel through the inter-rack communication protocol, and the information to be exchanged is encapsulated in the packet according to the type length value format, and the packet is sent to the peer end through the channel.
  • a master device of the embodiment of the present invention the master device and a standby device form a multiplex section protection group, the working link is in the master device, the protection link is in the standby device, and the master device includes a receiving module. And a message sending module, wherein:
  • the receiving module is configured to: receive an alarm or alarm disappearing information generated by the working link; the packet sending module is configured to: send an alarm message when the receiving module receives the alarm or alarm disappearing information Give the standby device.
  • the packet sending module is further configured to:
  • the command triggers the packet to be sent to the standby device.
  • the command triggering packet carries the manual switchover command.
  • the packet sending module is further configured to:
  • a timing packet is periodically sent to the standby device, where the timing packet carries configuration information and status information of the master device.
  • the master device further includes a state information management module and a configuration information management module, where: the receiving module is further configured to: receive a timing packet sent by the standby device, and the timing report The configuration information and status information of the standby device are carried in the text;
  • the status information management module is configured to: when the receiving module receives the timing message, check the local status information, if the local status information and the status information of the standby device carried in the timed message Different, the update is performed according to the status information of the standby device;
  • the configuration information management module is configured to: when the receiving module receives the timing packet, check the local configuration information, if the local configuration information and the configuration information of the standby device carried in the timer packet If they are inconsistent, the exception is processed and the user is notified to make configuration changes.
  • the message sending module is further configured to: when the configuration information management module detects that the local configuration information is inconsistent with the configuration information of the standby device carried in the timed message, sending a notification message with different configuration to the
  • the configuration device includes: the configuration information and the new configuration information that are valid for the current device, and the configuration that is different from the standby device.
  • the configuration information management module is further configured to: when receiving the notifications with different configurations sent by the standby device, perform exception processing and notify the user to perform configuration modification.
  • the master device further includes a state information management module, where:
  • the receiving module is further configured to: receive a switching decision message sent by the standby device, where the switching decision message carries a switching result;
  • the status information management module is configured to: after receiving the switching decision message, update the local state information according to the information carried in the switching decision message.
  • a backup device of the embodiment of the present invention, the standby device and a master device form a multiplex section protection group, the working link is in the master device, and the protection link is in the standby device, and the standby device includes a packet.
  • a receiving module and a switching decision module wherein:
  • the message receiving module is configured to: receive an alarm message sent by the master device;
  • the switching decision module is configured to: when the message receiving module receives the alarm message sent by the master device, perform a switching decision.
  • the packet receiving module is further configured to: receive a manual switching command sent by the primary device, a K value information of the remote end, or a command triggering message sent by the primary device; where the remote end refers to the standby device The other end of the protection link where the device is located except the standby device;
  • the switching decision module is further configured to: after the packet receiving module receives the manual switching command sent by the master device, the K value information of the remote device, or the command trigger message sent by the master device, perform a switching decision .
  • the standby device further includes a message sending module, where:
  • the packet sending module is configured to: after the switching decision module performs the switching decision, send the switching decision message to the master device, where the switching decision message carries the switching result.
  • the standby device further includes a message sending module, where:
  • the packet sending module is configured to: periodically send a timing packet to the master device, where the timer packet carries configuration information and state information of the standby device.
  • the standby device further includes a configuration information management module, where:
  • the packet receiving module is further configured to: receive a timing packet sent by the master device, where the timer packet carries configuration information and status information of the master device;
  • the configuration information management module is configured to: when the message receiving module receives the timed text sent by the master device, check the local configuration information, if the local configuration information is the same as that carried in the timed message The configuration information of the master device is inconsistent. The exception is processed and the user is notified to make configuration changes.
  • the message sending module is further configured to: when the configuration information management module detects that the local configuration information is inconsistent with the configuration information of the master device, send a different notification message to the master device, where the configuration is different.
  • the notification message carries configuration information and new configuration information that are currently in effect on the standby device, and identifies a configuration different from the master device.
  • the packet receiving module is further configured to: receive a notification message with a different configuration sent by the primary device;
  • the configuration information management module is further configured to: when the message receiving module receives the notification message with different configurations sent by the master device, perform abnormal processing and notify the user to perform configuration modification.
  • An automatic protection switching system includes: any one of the foregoing main devices and any standby device as described above.
  • the present invention can implement communication between the inter-device multiplex section protection group, complete state synchronization and event response, and provide effective support for cross-device protection of the three-network element and the four-network element network.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or they may be Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any particular combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Time-Division Multiplex Systems (AREA)

Abstract

一种自动保护倒换方法,该自动保护倒换方法包括:工作链路所在的主设备和保护链路所在的备设备构成复用段保护组;所述主设备所在的工作链路产生告警或告警消失信息时,发送告警报文给所述备设备,所述备设备接收到所述告警报文时,进行倒换决策。还提供了一种主设备和一种备设备。通过上述技术方案,可以完成跨设备间复用段保护组的通信,响应两端的触发条件,实现跨设备复用段的保护。

Description

一种自动保护倒换方法、 主设备及设备
技术领域
本发明涉及通信系统, 特别涉及一种自动保护倒换方法、 主设备及备设 备。
背景技术
随着通讯技术的快速发展, 网络的自愈保护能力也显得越来越重要。 网 络保护可以确保业务在设备或链路异常的情况下, 能够通过保护组倒换而不 被中断。
自动保护倒换 ( APS, Automatic Protection Switching )应用于各种网络环 境中。 自动保护倒换按照组网形式可分为线性和环形。 线性保护倒换是一种 应用比较广泛的组网形式, 应用于点到点的物理拓朴中。 当网络正常时, 两 个通信节点之间的流量在主路径上传输; 当主路径发生故障时, 两个通信节 点之间的流量切换到备用路径上传输, 达到备用路径对主路径的保护。
目前传统的线性保护倒换都是基于单设备的保护, 如图 1所示。 单设备 的线性复用段保护组网由节点 S1和 S2组成,实现对链路 Linkl和 Link2的保 护。 端口 1 ( Pom )和端口 2 ( Port2 )接入节点 S1 , 且配置 Port2为工作端 口 , Portl为保护端口, 同样 Port3和 Port4接入节点 S2, 且配置 Port4为工作 端口, Port3为保护端口。 所以 Linkl确认为工作链路, Link2确认为保护链 路。 在节点 S1和 S2上创建线性保护组, 配置工作端口、 保护端口、 保护模 式和类型等, 并运行 APS协议实现 Link2对 Linkl的保护。 线性保护组支持 1+1单向、 1+1双向和 1 :1。 正常情况下, 业务工作在 Linkl , 当 Linkl发生故 障时, 节点 S1和 S2检测到链路故障, 产生工作链路信号失效告警(SF-W, Signal Fail on working ) , 根据当前的配置和状态进行协议运算, 倒换到保护 链路, 即 Link2。 当 Linkl故障恢复时, 节点 S1和 S2检测到链路故障消失, 产生工作链路信号失效消失告警, 若当前配置为反转模式, 则根据决策倒换 到工作链路, 若当前配置为非反转模式, 则根据决策保持在保护链路。 这样 就实现了对链路 Linkl的保护。 目前实现的保护都是单设备点到点的保护, 针对组网如图 2所示的三网 元环境, 就不能起到链路保护的作用。 该组网由节点 Sl、 S2和 S3组成。 此 时, Portl和 Port2不在同一个设备上, 应用传统的单点保护协议就无法实现 保护链路 Link2对工作链路 Linkl的保护。 同理, 在四网元环境下, 传统的复 用段保护也不能起到链路保护的作用。 发明内容
本发明要解决的技术问题是提出一种自动保护倒换方法、 主设备及备设 备, 实现跨设备的保护倒换。
为了解决上述问题, 本发明釆用如下技术方案:
一种自动保护倒换方法, 包括:
工作链路所在的主设备和保护链路所在的备设备构成复用段保护组; 所述工作链路产生告警或告警消失信息时, 所述主设备发送告警报文给 所述备设备, 所述备设备接收到所述告警报文时, 进行倒换决策。
所述自动保护倒换方法还包括:
所述主设备配置手动倒换命令后, 发送命令触发报文至所述备设备, 所 述命令触发报文中携带所述手动倒换命令;
所述备设备接收到所述命令触发报文后, 进行倒换决策。
所述自动保护倒换方法还包括:
所述备设备收到远端的 K值信息后, 进行倒换决策;
其中, 所述远端是指所述保护链路除备设备外的另一端。
所述自动保护倒换方法还包括:
所述备设备进行倒换决策后, 发送倒换决策报文给所述主设备, 所述倒 换决策报文中携带倒换结果;
所述主设备接收到所述倒换决策报文后, 根据所述倒换决策报文中携带 的信息更新本地的状态信息。
所述自动保护倒换方法还包括: 所述主设备和所述备设备之间定时发送定时报文, 所述定时报文中携带 所述主设备或所述备设备本地的配置信息和状态信息。
所述自动保护倒换方法还包括:
如果所述定时报文由所述主设备接收,则所述主设备检查本地状态信息, 如果所述主设备本地状态信息与所述定时报文中携带的状态信息不同, 则根 据所述定时报文中携带的状态信息进行更新;
其中, 所述定时报文是由所述备设备发送的, 所述定时报文中携带的是 所述备设备本地的状态信息。
所述自动保护倒换方法还包括:
如果所述定时报文由所述主设备接收, 则所述主设备检查本地的配置信 息, 如果所述主设备本地的配置信息与所述定时报文中携带的配置信息不一 致, 则进行异常处理并通知用户进行配置修改, 其中, 所述定时报文是由所 述备设备发送的, 所述定时报文中携带的是所述备设备本地的配置信息; 或 者,
如果所述定时报文由所述备设备接收, 则所述备设备检查本地的配置信 息, 如果所述备设备本地的配置信息与所述定时报文中携带的配置信息不一 致, 进行异常处理并通知用户进行配置修改, 其中, 所述定时报文是由所述 主设备发送的, 所述定时报文中携带的是所述主设备本地的配置信息。
其中:
所述主设备检查本地的配置信息, 如果所述主设备本地的配置信息与所 述定时 "^文中携带的配置信息不一致, 则进行异常处理并通知用户进行配置 修改的步骤包括:
所述主设备检测到本地配置信息与所述定时报文中携带的配置信息, 即 对端的配置信息不一致时, 发送配置不同的通知 文至对端, 所述配置不同 的通知报文中携带当前设备生效的配置信息和新配置信息, 以及标识出与对 端不同的配置; 对端设备, 即所述备设备接收到所述配置不同的通知报文时, 进行异常处理并通知用户进行配置修改;
所述备设备检查本地的配置信息, 如果所述备设备本地的配置信息与所 述定时报文中携带的配置信息不一致, 进行异常处理并通知用户进行配置修 改的步骤包括:
所述所述备设备检测到本地配置信息与所述定时报文中携带的配置信 息, 即对端的配置信息不一致时, 发送配置不同的通知 文至对端, 所述配 置不同的通知报文中携带当前设备生效的配置信息和新配置信息, 以及标识 出与对端不同的配置; 对端设备, 即所述主设备接收到所述配置不同的通知 报文时, 进行异常处理并通知用户进行配置修改。
其中, 所述主设备和所述备设备之间的任何信息交互都是通过如下方式 进行的:
所述主设备和所述备设备的通信端口加入一虚拟局域网, 将所述虚拟局 域网作为控制虚拟局域网进行所述主设备或所述备设备之间的报文发送; 或者, 所述主设备或所述备设备通过机架间通信协议建立通道, 将需要 交互的信息按照类型长度值格式封装在报文中, 将所述报文通过所述通道发 送给对端。
一种主设备, 所述主设备与一备设备构成复用段保护组, 工作链路在所 述主设备, 保护链路在所述备设备, 所述主设备包括接收模块和报文发送模 块, 其中:
所述接收模块设置成: 接收所述工作链路产生的告警或告警消失信息; 所述报文发送模块设置成: 当所述接收模块接收到所述告警或告警消失 信息时, 发送告警报文给所述备设备。
其中, 所述报文发送模块还设置成:
配置手动倒换命令后, 发送命令触发报文至所述备设备, 所述命令触发 报文中携带所述手动倒换命令。
其中, 所述报文发送模块还设置成:
定时发送定时报文至所述备设备, 所述定时报文中携带所述主设备的配 置信息和状态信息。 所述主设备还包括状态信息管理模块和配置信息管理模块, 其中: 所述接收模块还设置成: 接收所述备设备发送的定时报文, 所述定时报 文中携带所述备设备的配置信息和状态信息;
所述状态信息管理模块设置成: 当所述接收模块接收到所述定时报文后, 检查本地的状态信息, 如果本地的状态信息与所述定时报文中携带的所述备 设备的状态信息不同, 则根据所述备设备的状态信息进行更新;
所述配置信息管理模块设置成: 当所述接收模块接收到所述定时报文后, 检查本地的配置信息 , 如果本地的配置信息与所述定时报文中携带的所述备 设备的配置信息不一致, 则进行异常处理并通知用户进行配置修改。
其中,
所述报文发送模块还设置成: 当所述配置信息管理模块检测到本地配置 信息与所述定时报文中携带的所述备设备的配置信息不一致时, 发送配置不 同的通知报文至所述备设备, 所述配置不同的通知报文中携带当前设备生效 的配置信息和新配置信息, 以及标识出与所述备设备不同的配置;
所述配置信息管理模块还设置成: 接收到所述备设备发送的配置不同的 通知 4艮文时, 进行异常处理并通知用户进行配置修改。
其中: 所述主设备还包括状态信息管理模块, 其中:
所述接收模块还设置成: 接收所述备设备发送的倒换决策报文, 所述倒 换决策报文中携带倒换结果;
所述状态信息管理模块设置成: 接收到所述倒换决策报文后, 根据所述 倒换决策报文中携带的信息更新本地状态信息。
一种备设备, 所述备设备与一主设备构成复用段保护组, 工作链路在所 述主设备, 保护链路在所述备设备, 所述备设备包括报文接收模块和倒换决 策模块, 其中:
所述报文接收模块设置成: 接收所述主设备发送的告警报文;
所述倒换决策模块设置成: 当所述报文接收模块接收到所述主设备发送 的告警报文时, 进行倒换决策。 其中:
所述报文接收模块还设置成: 接收所述主设备发送的手动倒换命令、 远 端的 K值信息或者所述主设备发送的命令触发报文; 其中, 所述远端是指所 述备设备所在的保护链路除所述备设备外的另一端;
所述倒换决策模块还设置成: 当所述报文接收模块接收到所述主设备发 送的手动倒换命令、远端的 K值信息或者所述主设备发送的命令触发报文后, 进行倒换决策。
所述备设备还包括报文发送模块, 其中:
所述报文发送模块设置成: 当所述倒换决策模块进行倒换决策后, 发送 倒换决策报文给所述主设备, 所述倒换决策报文中携带倒换结果。
所述备设备还包括报文发送模块, 其中:
所述报文发送模块设置成: 定时发送定时报文至所述主设备, 所述定时 报文中携带所述备设备的配置信息和状态信息。
所述备设备还包括配置信息管理模块, 其中:
所述报文接收模块还设置成: 接收所述主设备发送的定时报文, 所述定 时报文中携带所述主设备的配置信息和状态信息;
所述配置信息管理模块设置成: 当所述报文接收模块接收到所述主设备 发送的定时 文时, 检查本地的配置信息, 如果本地的配置信息与所述定时 报文中携带的所述主设备的配置信息不一致, 进行异常处理并通知用户进行 配置修改。 其中:
所述报文发送模块还设置成: 当所述配置信息管理模块检测到本地配置 信息与所述主设备的配置信息不一致时, 发送配置不同的通知报文至所述主 设备, 所述配置不同的通知报文中携带所述备设备当前生效的配置信息和新 配置信息, 以及标识出与所述主设备不同的配置;
所述报文接收模块还设置成: 接收所述主设备发送的配置不同的通知报 文;
所述配置信息管理模块还设置成: 当所述报文接收模块接收到所述主设 备发送的配置不同的通知报文时, 进行异常处理并通知用户进行配置修改。
一种自动保护倒换系统, 包括: 如上所述的任意一种主设备和如上述的 任意备设备。
通过上述技术方案, 可以完成跨设备间复用段保护组的通信, 实现跨设 备复用段的保护。 附图概述
图 1是单设备的复用段保护组网图;
图 2是三网元组成的网络图;
图 3是由三网元组成的跨设备保护组网时, 工作链路出现故障的场景; 图 4是本发明具体实施例所述通信报文发送的处理流程;
图 5是本发明具体实施例所述通信报文接收的处理流程。
本发明的较佳实施方式
为使本发明的目的、 技术方案和优点更加清楚明白, 下文中将结合附图 对本发明的实施例进行详细说明。 需要说明的是, 在不冲突的情况下, 本申 请中的实施例及实施例中的特征可以相互任意组合。 这些组合均在本发明的 保护范围内。
本发明实施例提供了一种跨设备的自动保护倒换实现方法,如图 3所示。 定义工作链路所在的设备为主设备, 链路相连端口为主端口; 保护链路所在 的设备为备设备, 链路相连端口为备端口。 即节点 S2为主设备, port2为工 作端口, 节点 S3为备设备, portl为保护端口。 跨设备的复用段保护由两个 网元成, 共同构成一个复用段保护组, 即节点 S2和 S3构成跨设备的复用段 保护组。 节点 S2和 S3传递复用段保护组的信息。 四网元时, 系统中有两个 复用段保护组, 分别进行保护倒换。 工作链路所在的主设备和保护链路所在 的备设备构成复用段保护组; 保护链路对工作链路进行保护。 主设备和备设 备之间交互信息, 备设备在满足触发条件时, 进行倒换决策, 并将倒换结果 通知主设备。
本发明实施例中复用段保护组间交互的信息可划分为以下五种: 定时报 文、 告警报文、 命令触发报文、 倒换决策报文和配置不同的通知报文, 其中:
1、 定时报文: 主设备和备设备定时发送一个定时报文至对端, 携带本地 的复用段保护组的配置信息和状态信息。
( 1 )检查复用段保护组的配置信息, 如保护类型 (1+1 或 1:1 ) 、 保护 模式(反转或非反转) 、 等待恢复(WTR, Wait to Restore )时间等决定保护 组属性的配置。 对这些配置进行检查, 如果两网元的配置不一致进行异常流 程处理, 并提醒用户修改配置;
( 2 )检查复用段保护组的状态信息,如当前的保护组状态、有效路径等。 该检查主要针对主设备, 因为复用段保护组中, 倒换决策在备设备上进行, 主设备不进行倒换决策, 只是根据备设备的倒换结果进行状态的更新。 当主 设备与备设备上状态不一致时,主设备的状态以备设备的状态为准进行更新。
主设备接收到所述备设备发送的定时报文时, 检查本地状态信息, 如果 与所述定时报文中携带的备设备的状态信息不同, 根据所述备设备的状态信 息进行更新; 以及, 检查本地的配置信息, 如果与所述定时>¾文中携带的配 置信息不一致, 进行异常处理并通知用户进行配置修改。
所述备设备接收到所述定时报文时, 检查本地的配置信息, 如果与所述 定时报文中携带的配置信息不一致,进行异常处理并通知用户进行配置修改。
2、 告警报文: 当工作链路上产生告警信息或告警消失信息时, 触发告警 文的发送。
倒换决策在备设备进行, 因此工作链路产生告警或告警消失时, 立即触 发告警报文发送到备设备进行倒换决策。 备设备收到告警报文, 将此告警作 为倒换的触发条件之一进行倒换决策, 决定是否进行倒换。 3、命令触发才艮文: 当主设备配置手动倒换命令,如 Manual switch, Forced switch ¾ Clear、 Exercise、 Lockout of protection等时, 需立即发送命令触发才艮 文至备设备。 所述命令触发报文中携带所述手动倒换命令。
倒换决策在备设备进行, 因此主设备配置手动倒换命令后, 与本地的上 次手动倒换命令相比较, 优先级高时, 发送命令触发报文到备设备进行倒换 决策。 备设备收到命令触发报文, 会将此命令作为倒换的触发条件之一进行 倒换决策, 决定是否进行倒换。
4、 倒换决策报文: 当备设备进行倒换决策后, 立即触发倒换决策报文的 发送, 所述倒换决策报文中携带倒换结果, 通知主设备倒换结果。
当备设备有告警、 手动倒换命令、 收到远端的 K值信息 (G.841协议中 定义的一种信息) , 或收到主设备的告警报文、 命令触发报文, 备设备都会 比较当前所有的触发条件, 进行倒换决策, 决定是否在工作链路和保护链路 之间进行倒换, 此时, 要将倒换结果通知给主设备进行状态更新。 所述主设 备接收到所述倒换决策报文后, 根据所述倒换决策报文中携带的信息更新本 地状态信息。
其中, 所述 K值信息中携带远端的命令、 状态、 告警、 配置信息等。 该 远端是指保护链路除备设备外的另一端, 比如图 3所示网络中的节点 Sl。
5、 配置不同的通知>¾文: 当设备检测到本地配置信息与对端生效配置信 息不一致时, 就会发送配置不同的通知报文到对端。 其中, 所述配置不同的 通知报文中携带当前设备生效的配置信息和新配置信息, 以及标识出与对端 不同的配置。 当对端收到该配置不同的通知报文后, 进行相应的异常处理, 并通知用户进行配置的更改, 以达到两端网元配置相同。
如图 3所示场景, 当 Linkl出现故障时, 节点 S2会发送告警报文到节点 S3; S3收到告警报文后感知到 Linkl故障, 决策后倒换到保护路径 Link2, 并发送倒换决策报文到节点 S2; 节点 S2收到倒换决策报文会进行状态的更 新, 从而实现了保护链路 Link2对工作链路 Linkl的保护和节点 S2、 节点 S3 的状态统一。 如图 4所示, 为本发明实施例的通信 "^文发送时的处理流程示意图, 该 流程包括:
步骤 S401 , 跨设备间的通信报文发送, 直接进入步骤 S402。
步骤 S402 , 进行参数有效性检查, 合法则进入步骤 S403 , 否则直接进入 步骤 S417。
所述参数有效性检查包括: 报文长度、 参数范围检查等。 比如, 产生告 警信息触发告警报文的发送时, 对告警信息的有效性进行检查。
步骤 S403 , 选择发送报文的类型, 根据不同的类型报文进行进入不同的 处理流程。
如果发送的报文类型为配置不同的通知报文,则进入步骤 S404 ,进行该 类型报文的填充, 即进入步骤 S405。
步骤 S405 , 填充当前设备生效的配置和新配置信息, 并标识出与对端不 同的配置(即与对端哪些配置不同) , 进行报文发送, 进入步骤 S417。 主设 备的对端为备设备, 备设备的对端为主设备。
如果发送的报文类型为定时报文, 则进入步骤 S406 , 进行该类型报文的 填充, 即进入步骤 S407。
步骤 S407 , 定时报文需要填充设备当前的配置信息和状态信息, 以便对 端设备收到定时报文后进行参数检查, 接着进入步骤 S417。
如果发送的报文类型为告警报文,则进入步骤 S408 ,接着进行参数判断, 即进入步骤 S409。
步骤 S409 ,由于主设备才需要将本地的告警信息通知到备设备进行决策, 因此需要判断当前设备是否为主设备, 如果是主设备进入步骤 S410 , 否则进 入步骤 S417。
步骤 S410 ,填充当前主链路的告警信息并进行发送,接着进入步骤 S417。 如果发送的报文类型为倒换决策报文, 则进入步骤 S411 ,接着进行参数 判断, 即进入步骤 S412。 步骤 S412, 由于倒换决策只在备设备运行, 因此只有备设备才会发送倒 换决策报文,即当本地设备为备设备时,进入步骤 S413 ,否则进入步骤 S417。
步骤 S413 , 进行倒换状态、 有效路径参数的填充并进行发送, 将倒换的 最新状态通知到主设备, 接着进入步骤 S417。
如果发送的报文类型为命令触发报文, 则进入步骤 S414,接着进行参数 判断, 即进入步骤 S415。
步骤 S415 , 由于倒换决策在备设备, 所以主设备下发的命令需要发送报 文到备设备进行决策, 因此, 当设备为主设备时进入步骤 S416, 否则进入步 骤 S417。
步骤 S416,填充主设备配置的命令信息并进行发送,接着进入步骤 S417。 步骤 S417 , 报文发送流程结束。
如图 5所示, 为本发明实施例的通信报文接收时的处理流程示意图, 该 流程包括:
步骤 S501 , 接收到跨设备间的通信报文, 直接进入步骤 S502。
步骤 S502, 进行参数有效性检查, 如报文类型、 复用段保护组 ID等信 息, 合法则进入步骤 S503 , 否则直接进入步骤 S519。
步骤 S503 , 根据接收到的报文的类型, 进行不同的处理流程。
步骤 S504, 接收到配置不同的通知报文, 进入步骤 S505进行该类型报 文的处理。
步骤 S505 , 收到配置不同的通知报文, 说明跨设备的节点配置不一致, 进行相应的异常处理(如进行锁定当前状态机等操作) , 并通知用户进行配 置修改, 以达到两端配置一致, 接着进入步骤 S519。
步骤 S506, 接收到定时报文, 进入步骤 S507。
步骤 S507a, 判断是主设备还是备设备, 如果是备设备, 直接进入步骤
S508, 如果是主设备, 进入步骤 S507b。
步骤 S507b, 进行状态的检查, 如果两端状态不一致, 以备设备状态为 准, 主设备进行状态更新。
步骤 S508 ,进行配置信息检查,如果两端配置不一致,则进入步骤 S509 , 否则进入步骤 S519。
步骤 S509 , 当两端配置不一致时, 进行相应的异常处理(如此时不能进 行手动倒换命令或是进行状态机锁定等操作) ; 同时还需要进行配置不同通 知报文的发送并通知用户进行配置修改, 接着进入步骤 S519。
步骤 S510 , 接收到告警报文, 则进入步骤 S511。
步骤 S511 , 判断当前设备是否为备设备, 因为只有主设备才会进行告警 报文的发送, 所以, 主设备不会接收到告警报文。 因此, 若当前设备为备设 备, 则进入步骤 S512 , 否则进入步骤 S519。
步骤 S512 , 根据接收到的主设备的链路告警并结合当前备设备的链路状 态、 保护组状态进行决策, 决策后发送倒换决策报文到主设备。 接着进入步 骤 S519。
步骤 S513 , 接收到倒换决策报文, 则进入步骤 S514。
步骤 S514 , 判断当前设备是否为主设备, 因为倒换决策在备设备, 只有 主设备才会接收到倒换决策报文。 当前设备是主设备进入 S515 , 否则进入步 骤 S519。
步骤 S515 , 主设备接收到倒换决策报文后, 根据最新的状态更新本地信 息。 因为备设备为决策设备, 所以主设备的状态以备设备为准, 接着进入步 骤 S519。
步骤 S516 , 接收到命令触发报文, 则进入步骤 S517。
步骤 S517 , 判断当前设备是否为备设备。 因为备设备是决策设备, 主设 备收到倒换命令后, 会发送命令触发报文到备设备进行决策, 因此当前设备 为备设备时, 进入步骤 S518 , 否则进入步骤 S519。
步骤 S518 ,根据接收到的倒换命令,并结合当前的状态与配置进行决策, 决策后将结果封装在倒换决策报文中发送到主设备进行同步, 接着进入步骤 S519。
步骤 S519 , 报文发送流程结束。 以上说明为跨设备保护组的各种报文处理流程, 通过这种方式可以将保 护组信息有效的传递到对端, 实现跨设备的保护。
主设备和备设备之间的报文发送可以釆用多种方式, 如将主设备和备设 备的通信端口加入某一虚拟局域网 (VLAN, Virtual Local Area Network ) , 该 VLAN作为控制 VLAN专用于跨设备保护组的通信报文发送;或是利用因 特网工程任务组发表的机架间通信协议(ICCP, Inter-Chassis Communication Protocol )草案。 所述主设备或备设备通过机架间通信协议建立通道, 将需要 交互的信息按照类型长度值格式封装在报文中, 将所述报文通过所述通道发 送给对端。
其中, ICCP是基于标签分发协议的扩展, 在设备间建立一条通道, 保证 设备间交互信息可靠、 有序的投递。 而且它提供了一套管理机制, 将需要传 递信息的设备划分到一个冗余组中, 通过报文建立设备间的通道。 设备间需 要交互的信息按照类型长度值(TLV, Type Length Value )的格式封装到报文 中, 经过通道发送给对方。 跨设备保护组可以利用这个通道进行保护组信息 可靠、 有序的传递。 但该草案中仅描述了 Pseudowire Redundancy ( PW )冗余 组应用 TLV和 Multi-chassis Link Aggregation Control Protocol ( mLACP )应用 TLV, 没有对复用段保护应用场景的 TLV进行定义。 因此, 可以对 ICCP的 TLV进行扩展支持复用段保护的场景, 新增定时信息 TLV、 告警信息 TLV、 命令信息 TLV、 倒换结果信息 TLV和配置不同的通知信息 TLV, 其中: 定时信息 TLV包括保护组的配置和状态信息; 状态信息包括状态和有效 路径等;
告警信息 TLV包括链路的告警状态;
命令信息 TLV包括命令配置的倒换命令;
倒换结果信息 TLV包括保护组的最新状态和有效路径;
配置不同的通知信息 TLV包括本地的有效配置信息和新配置信息,并标 识出哪些配置不同。
当然 TLV也可以其他方式定义,但只要包含保护组的状态、配置、告警、 命令等信息即可。
本发明还提供一种主设备, 所述主设备与一备设备构成复用段保护组, 所述主设备设置成: 当其所在的工作链路产生告警或告警消失信息时, 发送 告警报文给所述备设备。
其中, 所述主设备还设置成: 配置手动倒换命令后, 发送命令触发报文 至所述备设备, 所述命令触发报文中携带所述手动倒换命令。
其中, 所述主设备还设置成: 定时发送定时报文至所述备设备, 所述定 时报文中携带所述主设备的配置信息和状态信息。
其中, 所述主设备还设置成: 接收到所述备设备发送的定时报文时, 检 查本地状态信息, 如果与所述备设备的状态信息不同, 根据所述备设备的状 态信息进行更新; 以及, 检查本地的配置信息, 如果与所述定时报文中携带 的所述备设备的配置信息不一致, 进行异常处理并通知用户进行配置修改。
其中, 所述主设备还设置成: 检测到本地配置信息与所述备设备的配置 信息不一致时, 发送配置不同的通知报文至所述备设备, 所述配置不同的通 知报文中携带当前设备生效的配置信息和新配置信息, 以及标识出与所述备 设备不同的配置; 以及, 接收到所述备设备发送的配置不同的通知报文时, 进行异常处理并通知用户进行配置修改。
其中, 所述主设备还设置成: 接收到所述备设备的倒换决策报文后, 根 据所述倒换决策报文中携带的信息更新本地状态信息。
本发明还提供一种备设备, 所述备设备与一主设备构成复用段保护组, 所述备设备设置成: 接收到所述主设备发送的告警报文时, 进行倒换决策。
其中, 所述备设备还设置成: 有告警、 手动倒换命令、 收到远端的 K值 信息、 或者接收到所述主设备发送的命令触发报文时, 进行倒换决策。
其中, 所述备设备还设置成: : 进行倒换决策后, 发送倒换决策报文给 所述主设备, 所述倒换决策报文中携带倒换结果。
其中, 所述备设备还设置成: 定时发送定时报文至所述主设备, 所述定 时报文中携带所述备设备的配置信息和状态信息。
其中, 所述备设备还设置成: 接收到所述主设备发送的定时报文时, 检 查本地的配置信息, 如果与所述定时报文中携带的所述主设备的配置信息不 一致, 进行异常处理并通知用户进行配置修改。
其中, 所述备设备还设置成: 检测到本地配置信息与所述主设备的配置 信息不一致时, 发送配置不同的通知报文至所述主设备, 所述配置不同的通 知报文中携带所述备设备当前生效的配置信息和新配置信息, 以及标识出与 所述主设备不同的配置; 以及, 接收到所述主设备发送的配置不同的通知报 文时, 进行异常处理并通知用户进行配置修改。
本发明实施例的一种自动保护倒换方法, 包括:
工作链路所在的主设备和保护链路所在的备设备构成复用段保护组; 所述工作链路产生告警或告警消失信息时, 所述主设备发送告警报文给 所述备设备, 所述备设备接收到所述告警报文时, 进行倒换决策。
所述自动保护倒换方法还包括:
所述主设备配置手动倒换命令后, 发送命令触发报文至所述备设备, 所 述命令触发报文中携带所述手动倒换命令;
所述备设备接收到所述命令触发报文后, 进行倒换决策。
所述自动保护倒换方法还包括:
所述备设备收到远端的 K值信息后, 进行倒换决策;
其中, 所述远端是指所述保护链路除备设备外的另一端。
所述自动保护倒换方法还包括:
所述备设备进行倒换决策后, 发送倒换决策报文给所述主设备, 所述倒 换决策报文中携带倒换结果;
所述主设备接收到所述倒换决策报文后, 根据所述倒换决策报文中携带 的信息更新本地的状态信息。
所述自动保护倒换方法还包括:
所述主设备和所述备设备之间定时发送定时报文, 所述定时报文中携带 所述主设备或所述备设备本地的配置信息和状态信息。 所述自动保护倒换方法还包括:
如果所述定时报文由所述主设备接收,则所述主设备检查本地状态信息, 如果所述主设备本地状态信息与所述定时报文中携带的状态信息不同, 则根 据所述定时报文中携带的状态信息进行更新;
其中, 所述定时报文是由所述备设备发送的, 所述定时报文中携带的是 所述备设备本地的状态信息。
所述自动保护倒换方法还包括:
如果所述定时报文由所述主设备接收, 则所述主设备检查本地的配置信 息, 如果所述主设备本地的配置信息与所述定时报文中携带的配置信息不一 致, 则进行异常处理并通知用户进行配置修改, 其中, 所述定时报文是由所 述备设备发送的, 所述定时报文中携带的是所述备设备本地的配置信息; 或 者,
如果所述定时报文由所述备设备接收, 则所述备设备检查本地的配置信 息, 如果所述备设备本地的配置信息与所述定时报文中携带的配置信息不一 致, 进行异常处理并通知用户进行配置修改, 其中, 所述定时报文是由所述 主设备发送的, 所述定时报文中携带的是所述主设备本地的配置信息。
其中:
所述主设备检查本地的配置信息, 如果所述主设备本地的配置信息与所 述定时 "^文中携带的配置信息不一致, 则进行异常处理并通知用户进行配置 修改的步骤包括:
所述主设备检测到本地配置信息与所述定时报文中携带的配置信息, 即 对端的配置信息不一致时, 发送配置不同的通知 文至对端, 所述配置不同 的通知报文中携带当前设备生效的配置信息和新配置信息, 以及标识出与对 端不同的配置; 对端设备, 即所述备设备接收到所述配置不同的通知报文时, 进行异常处理并通知用户进行配置修改;
所述备设备检查本地的配置信息, 如果所述备设备本地的配置信息与所 述定时报文中携带的配置信息不一致, 进行异常处理并通知用户进行配置修 改的步骤包括: 所述所述备设备检测到本地配置信息与所述定时报文中携带的配置信 息, 即对端的配置信息不一致时, 发送配置不同的通知 文至对端, 所述配 置不同的通知报文中携带当前设备生效的配置信息和新配置信息, 以及标识 出与对端不同的配置; 对端设备, 即所述主设备接收到所述配置不同的通知 报文时, 进行异常处理并通知用户进行配置修改。
其中, 所述主设备和所述备设备之间的任何信息交互都是通过如下方式 进行的:
所述主设备和所述备设备的通信端口加入一虚拟局域网, 将所述虚拟局 域网作为控制虚拟局域网进行所述主设备或所述备设备之间的报文发送; 或者, 所述主设备或所述备设备通过机架间通信协议建立通道, 将需要 交互的信息按照类型长度值格式封装在报文中, 将所述报文通过所述通道发 送给对端。
本发明实施例的一种主设备,所述主设备与一备设备构成复用段保护组, 工作链路在所述主设备, 保护链路在所述备设备, 所述主设备包括接收模块 和报文发送模块, 其中:
所述接收模块设置成: 接收所述工作链路产生的告警或告警消失信息; 所述报文发送模块设置成: 当所述接收模块接收到所述告警或告警消失 信息时, 发送告警报文给所述备设备。
其中, 所述报文发送模块还设置成:
配置手动倒换命令后, 发送命令触发报文至所述备设备, 所述命令触发 报文中携带所述手动倒换命令。
其中, 所述报文发送模块还设置成:
定时发送定时报文至所述备设备, 所述定时报文中携带所述主设备的配 置信息和状态信息。
所述主设备还包括状态信息管理模块和配置信息管理模块, 其中: 所述接收模块还设置成: 接收所述备设备发送的定时报文, 所述定时报 文中携带所述备设备的配置信息和状态信息;
所述状态信息管理模块设置成: 当所述接收模块接收到所述定时报文后, 检查本地的状态信息, 如果本地的状态信息与所述定时报文中携带的所述备 设备的状态信息不同, 则根据所述备设备的状态信息进行更新;
所述配置信息管理模块设置成: 当所述接收模块接收到所述定时报文后, 检查本地的配置信息 , 如果本地的配置信息与所述定时报文中携带的所述备 设备的配置信息不一致, 则进行异常处理并通知用户进行配置修改。
其中,
所述报文发送模块还设置成: 当所述配置信息管理模块检测到本地配置 信息与所述定时报文中携带的所述备设备的配置信息不一致时, 发送配置不 同的通知报文至所述备设备, 所述配置不同的通知报文中携带当前设备生效 的配置信息和新配置信息, 以及标识出与所述备设备不同的配置;
所述配置信息管理模块还设置成: 接收到所述备设备发送的配置不同的 通知 4艮文时, 进行异常处理并通知用户进行配置修改。
其中: 所述主设备还包括状态信息管理模块, 其中:
所述接收模块还设置成: 接收所述备设备发送的倒换决策报文, 所述倒 换决策报文中携带倒换结果;
所述状态信息管理模块设置成: 接收到所述倒换决策报文后, 根据所述 倒换决策报文中携带的信息更新本地状态信息。
本发明实施例的一种备设备,所述备设备与一主设备构成复用段保护组, 工作链路在所述主设备, 保护链路在所述备设备, 所述备设备包括报文接收 模块和倒换决策模块, 其中:
所述报文接收模块设置成: 接收所述主设备发送的告警报文;
所述倒换决策模块设置成: 当所述报文接收模块接收到所述主设备发送 的告警报文时, 进行倒换决策。
其中: 所述报文接收模块还设置成: 接收所述主设备发送的手动倒换命令、 远 端的 K值信息或者所述主设备发送的命令触发报文; 其中, 所述远端是指所 述备设备所在的保护链路除所述备设备外的另一端;
所述倒换决策模块还设置成: 当所述报文接收模块接收到所述主设备发 送的手动倒换命令、远端的 K值信息或者所述主设备发送的命令触发报文后, 进行倒换决策。
所述备设备还包括报文发送模块, 其中:
所述报文发送模块设置成: 当所述倒换决策模块进行倒换决策后, 发送 倒换决策报文给所述主设备, 所述倒换决策报文中携带倒换结果。
所述备设备还包括报文发送模块, 其中:
所述报文发送模块设置成: 定时发送定时报文至所述主设备, 所述定时 报文中携带所述备设备的配置信息和状态信息。
所述备设备还包括配置信息管理模块, 其中:
所述报文接收模块还设置成: 接收所述主设备发送的定时报文, 所述定 时报文中携带所述主设备的配置信息和状态信息;
所述配置信息管理模块设置成: 当所述报文接收模块接收到所述主设备 发送的定时 文时, 检查本地的配置信息, 如果本地的配置信息与所述定时 报文中携带的所述主设备的配置信息不一致, 进行异常处理并通知用户进行 配置修改。
其中:
所述报文发送模块还设置成: 当所述配置信息管理模块检测到本地配置 信息与所述主设备的配置信息不一致时, 发送配置不同的通知报文至所述主 设备, 所述配置不同的通知报文中携带所述备设备当前生效的配置信息和新 配置信息, 以及标识出与所述主设备不同的配置;
所述报文接收模块还设置成: 接收所述主设备发送的配置不同的通知报 文;
所述配置信息管理模块还设置成: 当所述报文接收模块接收到所述主设 备发送的配置不同的通知报文时, 进行异常处理并通知用户进行配置修改。 本发明实施例的一种自动保护倒换系统, 包括: 如上所述的任意一种主 设备和如上述的任意备设备。
根据以上说明, 本发明可以实现跨设备间复用段保护组的通信, 完成状 态的同步与事件响应, 为三网元、 四网元组网的跨设备保护提供了有效支持。
综上所述, 以上实施例仅用以说明本发明的技术方案, 而非对其限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术人员应 当理解: 其依然可以对前述实施例所描述的技术方案进行修改, 或者对其中 部分技术特征进行等同替换; 而这些修改或者替换, 仍属本发明所涵盖的范 围。
显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 或 者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制 作成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软 件结合。
工业实用性 通过上述技术方案, 可以完成跨设备间复用段保护组的通信, 实现跨设 备复用段的保护。 因此本发明具有很强的工业实用性。

Claims

权 利 要 求 书
1、 一种自动保护倒换方法, 包括:
工作链路所在的主设备和保护链路所在的备设备构成复用段保护组; 所述工作链路产生告警或告警消失信息时, 所述主设备发送告警报文给 所述备设备, 所述备设备接收到所述告警报文时, 进行倒换决策。
2、如权利要求 1所述的自动保护倒换方法, 所述自动保护倒换方法还包 括:
所述主设备配置手动倒换命令后, 发送命令触发报文至所述备设备, 所 述命令触发报文中携带所述手动倒换命令;
所述备设备接收到所述命令触发报文后, 进行倒换决策。
3、如权利要求 1所述的自动保护倒换方法, 所述自动保护倒换方法还包 括:
所述备设备收到远端的 K值信息后, 进行倒换决策;
其中, 所述远端是指所述保护链路除备设备外的另一端。
4、 如权利要求 1-3中任一项所述的自动保护倒换方法, 所述自动保护倒 换方法还包括:
所述备设备进行倒换决策后, 发送倒换决策报文给所述主设备, 所述倒 换决策报文中携带倒换结果;
所述主设备接收到所述倒换决策报文后, 根据所述倒换决策报文中携带 的信息更新本地的状态信息。
5、如权利要求 1所述的自动保护倒换方法, 所述自动保护倒换方法还包 括:
所述主设备和所述备设备之间定时发送定时报文, 所述定时报文中携带 所述主设备或所述备设备本地的配置信息和状态信息。
6、如权利要求 5所述的自动保护倒换方法, 所述自动保护倒换方法还包 括:
如果所述定时报文由所述主设备接收,则所述主设备检查本地状态信息, 如果所述主设备本地状态信息与所述定时报文中携带的状态信息不同, 则根 据所述定时报文中携带的状态信息进行更新;
其中, 所述定时报文是由所述备设备发送的, 所述定时报文中携带的是 所述备设备本地的状态信息。
7、如权利要求 5所述的自动保护倒换方法, 所述自动保护倒换方法还包 括:
如果所述定时报文由所述主设备接收, 则所述主设备检查本地的配置信 息, 如果所述主设备本地的配置信息与所述定时报文中携带的配置信息不一 致, 则进行异常处理并通知用户进行配置修改, 其中, 所述定时报文是由所 述备设备发送的, 所述定时报文中携带的是所述备设备本地的配置信息; 或 者,
如果所述定时报文由所述备设备接收, 则所述备设备检查本地的配置信 息, 如果所述备设备本地的配置信息与所述定时报文中携带的配置信息不一 致, 进行异常处理并通知用户进行配置修改, 其中, 所述定时报文是由所述 主设备发送的, 所述定时报文中携带的是所述主设备本地的配置信息。
8、 如权利要求 7所述的自动保护倒换方法, 其中:
所述主设备检查本地的配置信息, 如果所述主设备本地的配置信息与所 述定时 "^文中携带的配置信息不一致, 则进行异常处理并通知用户进行配置 修改的步骤包括:
所述主设备检测到本地配置信息与所述定时报文中携带的配置信息, 即 对端的配置信息不一致时, 发送配置不同的通知 文至对端, 所述配置不同 的通知报文中携带当前设备生效的配置信息和新配置信息, 以及标识出与对 端不同的配置; 对端设备, 即所述备设备接收到所述配置不同的通知报文时, 进行异常处理并通知用户进行配置修改;
所述备设备检查本地的配置信息, 如果所述备设备本地的配置信息与所 述定时报文中携带的配置信息不一致, 进行异常处理并通知用户进行配置修 改的步骤包括:
所述所述备设备检测到本地配置信息与所述定时报文中携带的配置信 息, 即对端的配置信息不一致时, 发送配置不同的通知 文至对端, 所述配 置不同的通知报文中携带当前设备生效的配置信息和新配置信息, 以及标识 出与对端不同的配置; 对端设备, 即所述主设备接收到所述配置不同的通知 报文时, 进行异常处理并通知用户进行配置修改。
9、 如权利要求 1-8中任一项所述的自动保护倒换方法, 其中, 所述主设 备和所述备设备之间的任何信息交互都是通过如下方式进行的:
所述主设备和所述备设备的通信端口加入一虚拟局域网, 将所述虚拟局 域网作为控制虚拟局域网进行所述主设备或所述备设备之间的报文发送; 或者, 所述主设备或所述备设备通过机架间通信协议建立通道, 将需要 交互的信息按照类型长度值格式封装在报文中, 将所述报文通过所述通道发 送给对端。
10、 一种主设备, 所述主设备与一备设备构成复用段保护组, 工作链路 在所述主设备, 保护链路在所述备设备, 所述主设备包括接收模块和报文发 送模块, 其中: 所述接收模块设置成: 接收所述工作链路产生的告警或告警消失信息; 所述报文发送模块设置成: 当所述接收模块接收到所述告警或告警消失 信息时, 发送告警报文给所述备设备。
11、 如权利要求 10所述的主设备, 其中, 所述报文发送模块还设置成: 配置手动倒换命令后, 发送命令触发报文至所述备设备, 所述命令触发 报文中携带所述手动倒换命令。
12、 如权利要求 10所述的主设备, 其中, 所述报文发送模块还设置成: 定时发送定时报文至所述备设备, 所述定时报文中携带所述主设备的配 置信息和状态信息。
13、如权利要求 10所述的主设备, 所述主设备还包括状态信息管理模块 和配置信息管理模块, 其中:
所述接收模块还设置成: 接收所述备设备发送的定时报文, 所述定时报 文中携带所述备设备的配置信息和状态信息; 所述状态信息管理模块设置成: 当所述接收模块接收到所述定时报文后, 检查本地的状态信息, 如果本地的状态信息与所述定时报文中携带的所述备 设备的状态信息不同, 则根据所述备设备的状态信息进行更新;
所述配置信息管理模块设置成: 当所述接收模块接收到所述定时报文后, 检查本地的配置信息 , 如果本地的配置信息与所述定时报文中携带的所述备 设备的配置信息不一致, 则进行异常处理并通知用户进行配置修改。
14、 如权利要求 13所述的主设备, 其中,
所述报文发送模块还设置成: 当所述配置信息管理模块检测到本地配置 信息与所述定时报文中携带的所述备设备的配置信息不一致时, 发送配置不 同的通知报文至所述备设备, 所述配置不同的通知报文中携带当前设备生效 的配置信息和新配置信息, 以及标识出与所述备设备不同的配置;
所述配置信息管理模块还设置成: 接收到所述备设备发送的配置不同的 通知 4艮文时, 进行异常处理并通知用户进行配置修改。
15、 如权利要求 10所述的主设备, 其中: 所述主设备还包括状态信息管 理模块, 其中:
所述接收模块还设置成: 接收所述备设备发送的倒换决策报文, 所述倒 换决策报文中携带倒换结果;
所述状态信息管理模块设置成: 接收到所述倒换决策报文后, 根据所述 倒换决策报文中携带的信息更新本地状态信息。
16、 一种备设备, 所述备设备与一主设备构成复用段保护组, 工作链路 在所述主设备, 保护链路在所述备设备, 所述备设备包括报文接收模块和倒 换决策模块, 其中:
所述报文接收模块设置成: 接收所述主设备发送的告警报文;
所述倒换决策模块设置成: 当所述报文接收模块接收到所述主设备发送 的告警 文时, 进行倒换决策。
17、 如权利要求 16所述的备设备, 其中:
所述报文接收模块还设置成: 接收所述主设备发送的手动倒换命令、 远 端的 K值信息或者所述主设备发送的命令触发报文; 其中, 所述远端是指所 述备设备所在的保护链路除所述备设备外的另一端;
所述倒换决策模块还设置成: 当所述报文接收模块接收到所述主设备发 送的手动倒换命令、远端的 K值信息或者所述主设备发送的命令触发报文后, 进行倒换决策。
18、 如权利要求 16或 17所述的备设备, 所述备设备还包括报文发送模 块, 其中:
所述报文发送模块设置成: 当所述倒换决策模块进行倒换决策后, 发送 倒换决策报文给所述主设备, 所述倒换决策报文中携带倒换结果。
19、 如权利要求 16或 17所述的备设备, 所述备设备还包括报文发送模 块, 其中:
所述报文发送模块设置成: 定时发送定时报文至所述主设备, 所述定时 报文中携带所述备设备的配置信息和状态信息。
20、如权利要求 16所述的备设备,所述备设备还包括配置信息管理模块, 其中:
所述报文接收模块还设置成: 接收所述主设备发送的定时报文, 所述定 时报文中携带所述主设备的配置信息和状态信息;
所述配置信息管理模块设置成: 当所述报文接收模块接收到所述主设备 发送的定时 文时, 检查本地的配置信息, 如果本地的配置信息与所述定时 报文中携带的所述主设备的配置信息不一致, 进行异常处理并通知用户进行 配置修改。
21、 如权利要求 16或 20所述的备设备, 其中:
所述报文发送模块还设置成: 当所述配置信息管理模块检测到本地配置 信息与所述主设备的配置信息不一致时, 发送配置不同的通知报文至所述主 设备, 所述配置不同的通知报文中携带所述备设备当前生效的配置信息和新 配置信息, 以及标识出与所述主设备不同的配置;
所述报文接收模块还设置成: 接收所述主设备发送的配置不同的通知报 文;
所述配置信息管理模块还设置成: 当所述报文接收模块接收到所述主设 备发送的配置不同的通知报文时, 进行异常处理并通知用户进行配置修改。
22、 一种自动保护倒换系统, 包括: 如权利要求 10-15 中任一项所述的 主设备和如权利要求 16-21中任一项所述的备设备。
PCT/CN2012/071537 2011-04-22 2012-02-23 一种自动保护倒换方法、主设备及设备 WO2012142870A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110102823.1A CN102752126B (zh) 2011-04-22 2011-04-22 一种自动保护倒换方法、主设备及设备
CN201110102823.1 2011-04-22

Publications (1)

Publication Number Publication Date
WO2012142870A1 true WO2012142870A1 (zh) 2012-10-26

Family

ID=47032037

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/071537 WO2012142870A1 (zh) 2011-04-22 2012-02-23 一种自动保护倒换方法、主设备及设备

Country Status (2)

Country Link
CN (1) CN102752126B (zh)
WO (1) WO2012142870A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052106B (zh) 2012-12-20 2016-03-09 华为技术有限公司 跨设备的线性复用段保护方法、网关及控制器
CN105634935A (zh) * 2014-10-30 2016-06-01 中兴通讯股份有限公司 一种服务层信号失效检测装置及方法
CN104683078B (zh) * 2015-02-06 2019-04-16 烽火通信科技股份有限公司 基于组播方式的复用段保护系统及保护方法
CN106411546B (zh) * 2015-07-29 2020-03-17 中兴通讯股份有限公司 伪线双归保护控制方法及通信设备
CN107888280A (zh) * 2016-09-29 2018-04-06 中兴通讯股份有限公司 复用段保护双向倒换方法、装置及系统
CN107968716B (zh) * 2016-10-18 2022-07-12 中兴通讯股份有限公司 一种共享环的修复方法和装置
EP3410240B1 (en) * 2017-05-30 2021-07-07 Schneider Electric Industries SAS Method for replacing and/or cloning at least some devices of a machine
CN108319679B (zh) * 2018-01-30 2021-03-23 杭州迪普科技股份有限公司 一种主键的生成方法及装置
CN113917869A (zh) * 2021-10-08 2022-01-11 江西清华泰豪三波电机有限公司 发电机组控制方法和系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020080724A1 (en) * 2000-12-26 2002-06-27 Ki-Moon Nham Method of controlling 1+1bi -directional switching operation of asynchronous transfer mode switch
CN101399697A (zh) * 2007-09-30 2009-04-01 华为技术有限公司 自动保护倒换的系统及方法
CN101854255A (zh) * 2010-05-14 2010-10-06 中兴通讯股份有限公司 分组传送网中复用段保护的方法及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094157B (zh) * 2007-08-20 2011-09-21 中兴通讯股份有限公司 利用链路聚合实现网络互连的方法
CN101197634B (zh) * 2007-12-29 2011-07-27 上海华为技术有限公司 主备板的自动保护倒换实现方法、系统及单板装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020080724A1 (en) * 2000-12-26 2002-06-27 Ki-Moon Nham Method of controlling 1+1bi -directional switching operation of asynchronous transfer mode switch
CN101399697A (zh) * 2007-09-30 2009-04-01 华为技术有限公司 自动保护倒换的系统及方法
CN101854255A (zh) * 2010-05-14 2010-10-06 中兴通讯股份有限公司 分组传送网中复用段保护的方法及系统

Also Published As

Publication number Publication date
CN102752126B (zh) 2017-05-24
CN102752126A (zh) 2012-10-24

Similar Documents

Publication Publication Date Title
WO2012142870A1 (zh) 一种自动保护倒换方法、主设备及设备
KR101204130B1 (ko) 산업 이더넷 네트워크를 기반으로 한 장애 처리 방법, 시스템 및 교환 장치
US8179788B2 (en) Protection switching method and apparatus for use in ring network
JP5941404B2 (ja) 通信システム、経路切替方法及び通信装置
JP2007116275A (ja) パスプロテクション方法及びレイヤ2スイッチ
EP2339791B1 (en) Method for forwarding protocol frames in spanning rings and a shared node of multi-rings in the ethernet
JP2010525693A (ja) 分散型イーサネットシステムおよび該システムに基づいて障害を検出する方法
CN101841450B (zh) 多个环形拓扑构建相交环实现稳定通信的方法及系统
JP2008136013A (ja) リングネットワークを構成する装置
WO2016116050A1 (zh) 环保护链路故障保护方法、设备及系统
CN103124224A (zh) 用于工业控制的多故障容许以太网
WO2012079313A1 (zh) 一种链路保护方法及系统
JP2012231223A (ja) アクセスシステムおよび冗長切替方法
CN102130912B (zh) 一种基于rrpp的mvrp实现方法和设备
CN103873333A (zh) 环网三层收敛方法及装置
CN102238067B (zh) 一种快速环网保护协议环上的切换方法和装置
CN110635940B (zh) 一种eaps以太环网的主备倒换方法
CN101534234B (zh) 一种相交以太环网保护方法和系统
CN102487348B (zh) 一种环网上行链路保护的实现方法和系统
CN101848128B (zh) 在多个环形拓扑间实现稳定通信的方法、系统及拓扑结构
WO2014075594A1 (zh) 基于多环结构网络相交环的业务的传输保护方法及装置
JP5004758B2 (ja) レイヤ2ネットワークおよびネットワーク接続装置
CN101621443A (zh) 一种以太环网保护系统的故障恢复方法
JP2014140095A (ja) 通信システムおよびネットワーク中継装置
EP3462681B1 (en) Apparatus and method for transmitting multicast service

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

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

Country of ref document: EP

Kind code of ref document: A1