WO2013127164A1 - Method for triggering bypass equipment switching, and bypass equipment switching method and device - Google Patents

Method for triggering bypass equipment switching, and bypass equipment switching method and device Download PDF

Info

Publication number
WO2013127164A1
WO2013127164A1 PCT/CN2012/080931 CN2012080931W WO2013127164A1 WO 2013127164 A1 WO2013127164 A1 WO 2013127164A1 CN 2012080931 W CN2012080931 W CN 2012080931W WO 2013127164 A1 WO2013127164 A1 WO 2013127164A1
Authority
WO
WIPO (PCT)
Prior art keywords
traffic
straight
switching
entire entire
path
Prior art date
Application number
PCT/CN2012/080931
Other languages
French (fr)
Chinese (zh)
Inventor
王永飞
黎莉
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013127164A1 publication Critical patent/WO2013127164A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a method for triggering handover of a bypass device, a method and device for switching a bypass device. Background technique
  • bypass technology is generally used to protect the link where the direct-path device is located.
  • the principle is as follows:
  • the bypass device detects the optical signal of the outbound interface of the straight-channel device in real time, and considers that the straight-channel device is faulty when it detects that there is no optical signal on the outbound interface of the straight-channel device.
  • the trigger bypass device switches the communication link to the protection path. Ensure normal communication at both ends of the link.
  • the embodiment of the invention provides a method for triggering the switching of the bypass device.
  • the bypass device is triggered to switch the communication link to the protection path by detecting the abnormal traffic condition inside the straight device, thereby improving the reliability of the bypass device switching.
  • a method for triggering a bypass device switching including:
  • the switching instruction information for triggering the bypass device to switch the communication link to the protection path is sent.
  • a method for switching a bypass device includes: detecting an optical signal strength of an outbound interface of a straight device, and monitoring whether switching indication information is received, when the optical device exits the interface When the signal strength is lower than a preset light intensity threshold or when the switching indication information is received, the communication link is switched to the protection path.
  • an apparatus for triggering a bypass device switching including:
  • a detection module configured to detect real-time traffic of the straight-line device
  • a determining module configured to determine, according to the real-time traffic, whether a traffic error occurs in the direct-path device, or a triggering module, configured to send, when the straight-line device generates a traffic abnormality, a trigger for triggering the bypass device to switch the communication link to The switching indication information of the protection path.
  • a bypass device including:
  • a detecting module configured to detect an optical signal strength of the outbound interface of the straight path device, and monitor whether the switching indication information is received;
  • a switching module configured to switch the communication link to the protection path when the optical signal strength of the outbound interface of the straight device is lower than a preset light intensity threshold or the switching indication information is received.
  • a communication system including:
  • Bypass device straight path device, and device that triggers switching of the bypass device
  • the straight path device is used to establish a communication link
  • the device for triggering the bypass device switching is configured to detect real-time traffic of the direct-path device, and send a switching indication for triggering the bypass device to switch the communication link to the protection path when the straight-line device has abnormal traffic Information
  • the bypass device is configured to detect an optical signal strength of the outbound interface of the straight device, and monitor whether the switching indication information is received, when the optical signal strength of the outbound interface is lower than a preset light intensity threshold or received When the indication information is switched, the communication link is switched to the protection path.
  • the method for triggering the bypass device switching detects the real-time traffic inside the straight-channel device, and sends a switching instruction to the device when the traffic of the straight-channel device is abnormal.
  • the bypass device, the trigger bypass device switches the communication link to the protection path, and the method for triggering the bypass device switching provided by the present invention triggers the bypass device by sending the switching indication information when the module inside the straight device fails.
  • Switching to the protection path avoids the optical signal of the outbound interface of the straight-line device, and the interruption of the communication link caused by the failure of the module inside the straight-line device improves the reliability of the bypass device switching.
  • the bypass device switching method monitors whether the switching indication information is received while detecting the optical signal strength of the outbound interface of the straight device, and the optical signal strength of the outbound interface of the straight device is lower than a preset optical intensity threshold. Or, when the switching indication information is received, the communication link is switched to the protection path, which avoids the optical signal of the outbound interface of the straight path device, and the communication link interruption caused by the failure of the module inside the straight path device is improved. The reliability of the bypass device switching ensures the normal operation of the communication.
  • FIG. 1 is a flowchart of a method for switching a bypass device according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for switching a bypass device according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of another device for triggering a bypass device switching according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of another apparatus for triggering switching of a bypass device according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of another apparatus for triggering switching of a bypass device according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a bypass device according to an embodiment of the present invention
  • FIG. 8 is a schematic structural diagram of a communication system according to an embodiment of the present invention
  • FIG. 9 is a schematic diagram of another communication system according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for triggering handover of a bypass device according to Embodiment 1 of the present invention.
  • the method includes: Step S101: Detecting real-time traffic of the direct-path device; Preferably, the inbound interface traffic and the outbound interface traffic of the direct-path device and the policy packet loss traffic of the direct-path device are periodically detected;
  • the inbound interface traffic of the direct path device may refer to the total amount of data packets flowing through the inbound interface of the straight path device during the detection period; the outgoing interface traffic may refer to flowing through the straight path device during the check period.
  • the total number of data packets of the outbound interface; the policy packet loss traffic refers to the packet loss traffic configured by the straight path device itself for performing current traffic control. Therefore, in the embodiment of the present application, the policy packet loss traffic can be directly read. Take it.
  • the inbound interface traffic of the straight path device and the number of error packets counted in the internal device of the straight path device may be detected periodically.
  • the straight path is The number of error packets counted internally by the device may refer to the sum of the number of error packets counted by each chip in the straight path device.
  • Step S102 determining whether the traffic of the straight-line device is abnormal.
  • the method for determining whether the traffic of the straight-line device is abnormal may be: according to the inbound interface traffic and the outgoing interface traffic of the straight-channel device, and the straight-channel device. The packet loss rate and the detection period of the policy are calculated, and the packet loss rate of the straight path device is calculated;
  • the packet loss rate may be obtained by dividing the difference between the inbound interface traffic and the outbound interface traffic and the policy packet loss traffic, and dividing the difference with the detection period, that is, losing
  • the packet rate can be calculated as follows:
  • Packet loss rate (inbound interface traffic - outbound interface traffic - policy packet loss traffic) / detection period
  • the packet loss rate and the preset packet loss rate threshold are obtained. For comparison, when the packet loss rate is greater than the preset packet loss rate threshold, it is confirmed that the traffic of the straight path device is abnormal. Otherwise, the traffic of the straight path device is considered to be abnormal.
  • the packet loss rate threshold value may be set according to an actual experience value. For example, when the direct path device does not configure the policy packet loss traffic, the packet loss rate threshold may be 20%. When the packet loss rate is configured, the packet loss rate threshold may be 30%, and may be set to other values according to actual requirements, which is not specifically limited herein.
  • the method for determining whether the traffic of the straight-line device is abnormal may be: calculating a packet error rate of the straight-line device according to a sum of the number of error packets counted internally by the straight-line device and the inbound interface traffic and the detection period.
  • the method for calculating the error rate may include: calculating a product of the detection period and the inbound interface traffic (that is, the total amount of data packets flowing through the inbound interface during the detection period), and the error packet of the internal statistics of the straight path device.
  • the number that is, the sum of the number of error packets of each chip in the system
  • the quotient of the product are used as the error packet rate of the straight path device, that is, the error rate can be calculated as follows:
  • Error packet rate number of error packets counted internally by the straight device / (input interface traffic * detection cycle)
  • the error rate threshold can be set according to the actual experience value. For example, it can be set to 5%. Otherwise, other values can be set according to actual requirements, which is not specifically limited herein.
  • the two methods for detecting the abnormality of the traffic of the straight-line device may exist only one type, or may exist at the same time, that is, the packet loss rate is calculated, and the packet loss rate is compared with the preset packet loss rate threshold. At the same time, the error packet rate is calculated, and the error packet rate is compared with the preset error rate threshold.
  • Step S103 When a flow abnormality occurs in the straight path device, send the switching indication information for triggering the bypass device to switch the communication link to the protection path; otherwise, return to step S101.
  • the bypass device When detecting that the traffic of the straight-line device is abnormal, sending the handover indication information to the bypass device, after receiving the handover indication information, the bypass device switches the communication link to the protection link.
  • the road improves the reliability of bypass device switching.
  • the method further includes:
  • the alarm information of each module in the straight-line device is monitored, and when a module sends an alarm message, a switching instruction is sent to the bypass device to trigger the bypass device to switch to the protection path.
  • the alarm information may be power supply alarm information.
  • the straight road device generates power supply alarm information.
  • the switching indication information is sent to the bypass device, and the bypass device is triggered to be switched.
  • the alarm information may also be an abnormal alarm for inter-board communication.
  • the main board and the slave board cannot communicate, that is, when the main board cannot manage the slave board, although there is still traffic from the board, the system A management abnormality alarm is issued.
  • a switching indication may also be sent to the bypass device, and the bypass device is triggered to switch to the protection path.
  • the alarm information is not limited to the above two types, and may be other system alarm information or system abnormal information.
  • the method for triggering the bypass device switching may be implemented in a straight path device, implemented in a main control module of the straight path device, or may be operated outside the straight path device, and in a background in which the straight path device performs communication. Partially implemented, as long as it is able to obtain the outbound interface traffic of the straight-line device, such as interface traffic and system error packet information and policy packet loss traffic.
  • the method for triggering the bypass device switching according to the embodiment of the present application performs real-time traffic detection on the internal system of the straight-channel device, and the internal device of the straight-channel device itself has failed, but the interface still has light, and triggers in time.
  • the bypass device is switched to the protection path, which avoids the optical signal of the outbound interface of the straight device, and the communication link interruption caused by the failure of the module inside the straight device, improves the reliability of the bypass device switching, and the communication is normal. The possibility.
  • FIG. 2 is a flow chart of a method for switching a bypass device according to an embodiment of the present invention.
  • the method includes: S201: detecting an optical signal strength of an outbound interface of the straight path device, and monitoring the switching indication information;
  • step S202 Determine whether the optical signal strength of the outbound interface of the direct device is lower than a preset light intensity threshold or whether the switching indication information is received, when the light intensity of the outgoing interface is lower than a preset light intensity threshold. Or receiving the switching indication information, step S203 is performed, otherwise returning to step S201;
  • the bypass device not only detects the optical interface information of the straight device itself, but also determines whether Communication link switching is required, and communication link switching is also performed by receiving handover indication information. After the bypass device is switched to the protection path, the technician repairs the straight-line device. After the straight-line device is faulty, the bypass device is manually switched back to the original communication link, and the working mode is changed to the automatic mode. The device detects the optical signal of the interface of the straight device and monitors whether the switching indication information is received.
  • the bypass device switching method can detect the optical signal strength of the outbound interface of the straight path device, and can also perform the communication link switching by receiving the communication link switching indication information, thereby avoiding
  • the bypass device detects that the outbound interface of the straight path device has an optical signal, but cannot detect the internal fault of the straight path device, and cannot interrupt the communication link caused by the communication link switching, thereby improving the reliability of the bypass device switching.
  • FIG. 3 is a schematic structural diagram of a device for triggering a bypass device switching according to an embodiment of the present invention.
  • the device includes: a detecting module 301, a determining module 302, and a triggering module 303.
  • the detecting module 301 is configured to detect Real-time traffic of the straight-line device 305;
  • the determining module 302 is configured to determine, according to the real-time traffic detected by the detecting module 301, whether the traffic device 305 has abnormal traffic;
  • the triggering module 303 is configured to send, when the traffic of the direct path device 305 is abnormal, handover indication information for triggering the bypass device 304 to switch the communication link to the protection path.
  • the device for triggering the switching of the bypass device can detect the real-time traffic of the direct device, and when determining that the traffic of the straight device is abnormal, send a switching instruction to the bypass device, triggering the bypass device. Switching the communication link to the protection path avoids the optical signal of the outbound interface of the straight-line device, and the interruption of the communication link caused by the failure of the module inside the straight-line device improves the reliability of the bypass device switching.
  • FIG. 4 is a schematic structural diagram of another apparatus for triggering a bypass device switching according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes: a detecting module 301, configured to detect real-time traffic of the straight-line device 305;
  • the real-time traffic of the direct-channel device 305 detected by the detecting module 301 may include: the inbound interface traffic, the outbound interface traffic, and the policy packet loss traffic.
  • the inbound interface traffic of the direct path device may refer to flowing through the detection period. The total amount of data packets of the straight path device entering the interface;
  • the interface traffic may refer to the total amount of data packets flowing through the outbound interface of the straight path device during the check period;
  • the policy packet loss traffic refers to the packet loss traffic configured by the straight path device itself for current traffic control, so In the application embodiment, the policy packet loss traffic is directly readable.
  • the determining module 302 is configured to determine, according to the real-time traffic detected by the detecting module 301, whether the traffic of the straight-line device 305 is abnormal.
  • the determining module 301 can include the first calculating unit 401 and the first comparing unit 402.
  • the unit 401 is configured to calculate a packet loss rate of the straight path device 305 according to the inbound interface traffic, the outbound interface traffic, the policy packet loss traffic, and the preset detection period of the direct path device 305.
  • the packet loss rate is The difference between the ingress interface traffic and the outbound interface traffic and the policy packet loss traffic may be calculated, and the difference is obtained by dividing the detection interval, that is, the packet loss rate may be calculated according to the following formula:
  • Packet loss rate (inbound traffic - outbound traffic - policy packet loss traffic) / detection period.
  • the straight line device 305 generates a traffic abnormality, and sends a traffic abnormality signal to the trigger module 303; otherwise, the direct path device is considered to have no traffic abnormality.
  • the packet loss rate threshold value may be set according to an actual experience value. For example, when the direct path device does not configure the policy packet loss traffic, the packet loss rate threshold may be 20%. When the packet loss rate is configured, the packet loss rate threshold may be 30%, and may be set to other values according to actual requirements, which is not specifically limited herein.
  • the triggering module 303 is configured to send, after receiving the traffic abnormality signal sent by the first comparing unit 402, switching indication information for triggering the bypass device 304 to switch the communication link to the protection path.
  • the device for triggering the bypass device switching can determine whether the real-time traffic of the straight-channel device is abnormal traffic by detecting and calculating the packet loss rate of the straight-channel device, and triggering the bypass device to transmit the communication link when an abnormality occurs. Switching to the protection path, therefore, it can avoid the optical signal of the outbound interface of the straight-line device, and the module inside the straight-line device fails to cause packet loss, thereby causing the interruption of the communication link, improving the reliability of the bypass device switching, and improving The possibility that communication will proceed normally.
  • FIG. 5 is a schematic structural diagram of another apparatus for triggering switching of a bypass device according to an embodiment of the present invention; As shown in FIG. 5, the device includes: a detecting module 301, configured to detect real-time traffic of the straight-line device 305;
  • the real-time traffic of the straight-line device 305 detected by the detecting module 301 may further include: the inbound interface traffic and the number of error packets counted internally by the straight-channel device.
  • the determining module 302 is configured to determine, according to the real-time traffic detected by the detecting module 301, whether the traffic device 305 has abnormal traffic;
  • the determining module 302 may include a second calculating unit 501 and a second comparing unit 502.
  • the second calculating unit 501 is configured to detect the inbound interface traffic, the number of error packets, and the preset according to the detecting device 301.
  • the detection period calculates a packet error rate of the straight path device; the method for calculating the error packet rate may include: calculating a detection period and the inbound interface traffic (that is, the total amount of data packets flowing through the inbound interface during the detection period) a product, the quotient of the number of error packets counted internally by the straight path device (that is, the sum of the number of error packets of each chip in the system) and the product is used as the error packet rate of the straight path device, that is, the error packet rate may be Calculated as follows:
  • Error packet rate number of error packets counted internally by the straight-line device / (inbound traffic * detection cycle).
  • the second comparison unit 502 is configured to compare the error rate with a preset error rate threshold, and when the error rate is greater than the error rate threshold, consider that the direct device occurs.
  • the traffic is abnormal, and the traffic abnormality signal is sent; otherwise, the traffic of the faulty device is not abnormal.
  • the threshold of the error rate can be set according to the actual experience value. For example, it can be set to 5%. Other values are set in actual demand, and are not specifically limited herein.
  • the triggering module 303 After receiving the traffic abnormality signal sent by the second comparison unit 502, the triggering module 303 sends switching indication information for triggering the bypass device 304 to switch the communication link to the protection path.
  • the device for triggering the bypass device switching can determine whether the real-time traffic of the straight-channel device is abnormal traffic by detecting and calculating the error packet rate of the straight-channel device, and triggering the bypass device to connect the communication link when an abnormality occurs. Switching to the protection path, therefore, it can avoid the optical signal of the outbound interface of the straight-line device, and the module inside the straight-line device fails to cause the wrong packet, which causes the communication link to be interrupted, improves the reliability of the bypass device switching, and improves the reliability. The possibility that communication will proceed normally.
  • the foregoing determining module 302 may include the first calculating unit 401 and the second calculating unit 501, and the first comparing unit 402 corresponding to the first calculating unit 401 and the second corresponding to the second calculating unit 501.
  • Second comparison unit 502. When the real-time traffic detected by the detection module 301 is the inbound interface traffic, the outbound interface traffic, and the policy packet loss traffic, the detected real-time traffic is sent to the first computing unit 401; when the real-time traffic detected by the detecting module 301 is the inbound interface traffic and When the number of error packets counted by the straight path device is internal, the detected real-time traffic is sent to the second calculating unit 501.
  • the second comparison unit 502 of the first comparison unit 402 may send the same traffic abnormality signal or may send different traffic abnormality signals, which is not specifically limited herein.
  • the triggering module 303 sends the triggering bypass device, whether it is sent by the first comparing unit 402 or sent by the second comparing unit 502, as long as the traffic abnormal signal is received.
  • 304 switches the communication link to the handover indication information of the protection path.
  • FIG. 6 is a schematic structural diagram of another apparatus for triggering switching of a bypass device according to an embodiment of the present invention. As shown in FIG. 6, the apparatus is based on the embodiment shown in FIG. , Also includes:
  • the monitoring module 601 is configured to monitor the alarm information of each module in the straight path device 305, and send a switching instruction to the bypass device 304 to trigger the bypass device 304 to switch to the protection path when the module sends the alarm information. .
  • FIG. 7 is a schematic structural diagram of a bypass device according to an embodiment of the present invention.
  • the device includes: a detection module 701, configured to detect an optical signal strength of an outbound interface of a direct device, and monitor whether a handover indication is received.
  • the switching module 702 is configured to switch the communication link to the protection path when the optical signal strength of the outbound interface of the straight device is lower than a preset light intensity threshold or the switching indication information is received.
  • the bypass device may be a bypass circuit, that is, the foregoing cutting may be implemented. Change the function of the circuit. Of course, it can also be another device that can implement the above switching function.
  • the bypass device provided by the embodiment of the present invention can detect whether the switching indication information is received while detecting the optical signal strength of the outbound interface of the straight device, and the optical signal strength of the outbound interface of the straight device is lower than a preset light intensity threshold. When the value or the receiving indication information is received, the communication link is switched to the protection path, which avoids the optical signal of the outbound interface of the straight path device, and the communication link interruption caused by the failure of the module inside the straight path device improves the problem. The reliability of the bypass device switching ensures the normal operation of the communication.
  • FIG. 8 is a schematic structural diagram of a communication system according to an embodiment of the present invention. As shown in FIG. 8, the system includes: a straight path device 801, a bypass device 802, and a device 358 for triggering bypass device switching, where:
  • the device 803 for triggering the switching of the bypass device is configured to detect real-time traffic of the straight-line device 801, and send a switch for triggering the bypass device to switch the communication link to the protection path when the traffic of the straight-line device is abnormal. Instructing information; the bypass device 802 is configured to detect an optical signal strength of the outbound interface of the direct device, and monitor whether the switching indication information is received, where the optical signal strength of the outbound interface of the straight device is lower than a preset light intensity gate The limit value or when the handover indication information is received, the communication link is switched to the protection path.
  • the device 803 for triggering the bypass device switching may be disposed in the straight device 801, or may be a device independent of the straight device 801; when the device 803 that triggers the bypass device switching is set in the device
  • the straight-line device 801 can be used to establish a communication link, and can also detect the real-time traffic of the straight-line device 801, and send it to trigger the bypass when the flow device abnormality occurs in the straight-line device 801.
  • the device 801 switches the communication link to the handover indication information of the protection path.
  • the bypass device may be a bypass circuit, that is, a circuit capable of implementing the above switching function. Of course, it can also be another device that can implement the above switching function.
  • FIG. 9 is a structural diagram of still another communication system according to an embodiment of the present application.
  • the communication between device A and device B is completed by a straight-line device, that is, the communication link between device A and device B is the working path in the figure; when the outgoing interface of the straight-line device is not available
  • the communication link needs to be switched to the protection path through the bypass device, so that device A and device B are directly connected without passing through the direct-path device, and the communication between device A and device B is maintained normally.
  • the straight-line device triggers the switching of the bypass device by detecting the traffic of the bypass device.
  • the process of triggering the bypass device switching may be: the straight-channel device periodically detects the inbound interface traffic, the outgoing interface traffic, and the strategy of the direct-channel device.
  • the calculated packet loss ratio is compared with the preset packet loss threshold, and when the packet loss ratio is greater than the preset packet loss threshold, the handover indication information is sent to the bypass device. .
  • the process of triggering the bypass device switching may also be: the straight path device periodically detects the inbound interface traffic of the straight path device and the number of error packets counted internally by the straight path device, and calculates the error of the straight path device according to the measured flow value and the number of wrong packets.
  • the process of triggering the bypass device switching may also be: monitoring alarm information of each module in the straight path device, and sending a switching instruction to the bypass device to trigger the bypass device to switch to when the module sends out the alarm information Protection path.
  • the bypass device checks the optical signal strength of the outbound interface of the straight path device, and switches the communication link to the protection path when the optical signal strength of the outbound interface is lower than the preset light intensity threshold;
  • the road device simultaneously monitors the handover indication information sent by the straight-line device, and switches the communication link to the protection path when monitoring the reception of the handover indication information.
  • the solution provided in the embodiment of the present application is not limited to being implemented in the main control module of the straight path device, and may also be implemented in the background portion of the communication with the straight path device, as long as the outbound interface traffic of the straight path device can be obtained, It is possible to enter the interface traffic and the error packet information in the straight system.
  • the straight path device is not limited to one physical device, and may be composed of multiple physical devices. Straight system consisting of equipment.
  • the communication system provided by the embodiment of the present invention actively detects the real-time traffic through the direct-path device, and actively triggers the bypass device to switch when the traffic of the real-time traffic of the straight-line device is abnormal, and the bypass device switches the communication link to the protection.
  • the in-line device monitors whether the internal module has alarm information, and when the internal module displays the alarm information, it actively triggers the bypass device to switch; meanwhile, the bypass device in the embodiment of the present invention monitors the outbound interface of the straight device.
  • the optical signal strength is simultaneously monitored to receive the switching indication information.
  • the communication link is switched to The protection path further improves the reliability of the switching of the bypass device and ensures the normal operation of the communication.
  • the program can be stored in a computer readable storage medium.
  • the storage medium can include: Read-only memory, random access memory, disk or optical disk, etc.

Landscapes

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

Abstract

Provided are a method and device for triggering bypass equipment switching, and a bypass equipment switching method and device. The method comprises: detecting the real-time traffic of straight-path equipment; judging whether the traffic of the straight-path equipment is abnormal; and when the traffic of the straight-path equipment is abnormal, sending switching indication information for triggering the bypass equipment to switch to a protection pathway. The method for triggering bypass equipment switching provided in the embodiments of the present application triggers the bypass equipment to switch to a protection pathway by detecting the abnormal condition of the internal traffic of straight-path equipment, and increases the reliability of bypass equipment switching.

Description

一种触发旁路设备切换的方法、 旁路设备切换方法及装置 本申请要求于 2012年 2月 28日提交中国专利局, 申请号为  Method for triggering bypass device switching, bypass device switching method and device The application is submitted to the Chinese Patent Office on February 28, 2012, and the application number is
201210048044.2, 发明名称为 "一种触发旁路设备切换的方法、 旁路设备切 换方法及装置" 的中国专利申请的优先权, 其全部内容通过引用结合在本申 请中。 技术领域 201210048044.2, the entire disclosure of which is incorporated herein by reference in its entirety in its entirety in the entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire entire Technical field
本发明涉及网络通信技术领域,尤其涉及一种触发旁路设备切换的方法、 旁路设备切换方法及装置。 背景技术  The present invention relates to the field of network communication technologies, and in particular, to a method for triggering handover of a bypass device, a method and device for switching a bypass device. Background technique
在网络通信过程中, 越来越多的网络釆用直路部署方式, 也就是在网络 设备之间或网络之间的链路中串联直路设备, 而一旦直路设备发生故障, 就 会造成整条链路通信中断, 因此需要对直路设备所在的链路进行保护, 以提 高网络的可靠性。  In the process of network communication, more and more networks use direct route deployment, that is, serial devices are connected in series between network devices or between networks. Once a direct device fails, the entire link is caused. The communication is interrupted, so the link where the straight-line device is located needs to be protected to improve the reliability of the network.
目前普遍釆用旁路技术对直路设备所在的链路进行保护, 其原理是: 旁 路设备实时检测直路设备出接口的光信号, 当检测到直路设备出接口没有光 信号时认为直路设备出现故障, 触发旁路设备将通信链路切换到保护通路。 保证链路两端的正常通信。  At present, the bypass technology is generally used to protect the link where the direct-path device is located. The principle is as follows: The bypass device detects the optical signal of the outbound interface of the straight-channel device in real time, and considers that the straight-channel device is faulty when it detects that there is no optical signal on the outbound interface of the straight-channel device. The trigger bypass device switches the communication link to the protection path. Ensure normal communication at both ends of the link.
但是, 在很多情况下, 如当直路设备内部的某些模块发生故障时, 系统 软件却无法感知, 不能引起系统复位, 此时直路设备的出接口仍然会有光, 旁路设备也就不能实现切换, 造成链路中断。 发明内容  However, in many cases, such as when some modules inside the straight-line device fail, the system software cannot sense it and cannot cause a system reset. At this time, the outgoing interface of the straight-circuit device still has light, and the bypass device cannot be realized. Switching, causing the link to be interrupted. Summary of the invention
本发明实施例提供了一种触发旁路设备切换的方法, 通过检测直路设备 内部的流量异常情况来触发旁路设备将通信链路切换到保护通路, 提高了旁 路设备切换的可靠性。 根据本发明实施例的一个方面, 提供一种触发旁路设备切换的方法, 包 括:  The embodiment of the invention provides a method for triggering the switching of the bypass device. The bypass device is triggered to switch the communication link to the protection path by detecting the abnormal traffic condition inside the straight device, thereby improving the reliability of the bypass device switching. According to an aspect of an embodiment of the present invention, a method for triggering a bypass device switching is provided, including:
检测直路设备的实时流量; 判断所述直路设备是否发生流量异常; Detect real-time traffic of straight-line devices; Determining whether the straight line device has abnormal traffic;
当所述直路设备发生流量异常时, 发送用于触发所述旁路设备将通信链 路切换至保护通路的切换指示信息。  When the flow device is abnormal in traffic, the switching instruction information for triggering the bypass device to switch the communication link to the protection path is sent.
根据本发明实施例的另一个方面, 提供一种旁路设备切换的方法, 包括: 检测直路设备出接口的光信号强度, 并监测是否接收到切换指示信息, 当所述直路设备出接口的光信号强度低于预设的光强门限值或接收到所述切 换指示信息时, 将通信链路切换至保护通路。  According to another aspect of the embodiments of the present invention, a method for switching a bypass device includes: detecting an optical signal strength of an outbound interface of a straight device, and monitoring whether switching indication information is received, when the optical device exits the interface When the signal strength is lower than a preset light intensity threshold or when the switching indication information is received, the communication link is switched to the protection path.
根据本发明实施例的又一个方面, 提供一种触发旁路设备切换的装置, 包括:  According to still another aspect of the embodiments of the present invention, an apparatus for triggering a bypass device switching is provided, including:
检测模块, 用于检测直路设备的实时流量;  a detection module, configured to detect real-time traffic of the straight-line device;
判断模块, 用于依据所述实时流量判断所述直路设备是否发生流量异常; 触发模块, 用于在所述直路设备发生流量异常时, 发送用于触发所述旁 路设备将通信链路切换至保护通路的切换指示信息。  a determining module, configured to determine, according to the real-time traffic, whether a traffic error occurs in the direct-path device, or a triggering module, configured to send, when the straight-line device generates a traffic abnormality, a trigger for triggering the bypass device to switch the communication link to The switching indication information of the protection path.
根据本发明实施例的又一个方面, 提供一种旁路设备, 包括:  According to still another aspect of the embodiments of the present invention, a bypass device is provided, including:
检测模块, 用于检测直路设备出接口的光信号强度, 并监测是否接收到 切换指示信息;  a detecting module, configured to detect an optical signal strength of the outbound interface of the straight path device, and monitor whether the switching indication information is received;
切换模块, 用于在所述直路设备出接口的光信号强度低于预设的光强门 限值或接收到所述切换指示信息时, 将通信链路切换至保护通路。  And a switching module, configured to switch the communication link to the protection path when the optical signal strength of the outbound interface of the straight device is lower than a preset light intensity threshold or the switching indication information is received.
根据本发明实施例的再一个方面, 提供一种通信系统, 包括:  According to still another aspect of the embodiments of the present invention, a communication system is provided, including:
旁路设备、 直路设备以及触发旁路设备切换的装置;  Bypass device, straight path device, and device that triggers switching of the bypass device;
所述直路设备用于建立通信链路;  The straight path device is used to establish a communication link;
所述触发旁路设备切换的装置用于检测所述直路设备的实时流量, 并在 所述直路设备出现流量异常时发送用于触发所述旁路设备将通信链路切换至 保护通路的切换指示信息;  The device for triggering the bypass device switching is configured to detect real-time traffic of the direct-path device, and send a switching indication for triggering the bypass device to switch the communication link to the protection path when the straight-line device has abnormal traffic Information
所述旁路设备用于检测所述直路设备出接口的光信号强度, 并监测是否 接收到切换指示信息, 当所述出接口的光信号强度低于预设的光强门限值或 接收到所述切换指示信息时, 将通信链路切换至保护通路。  The bypass device is configured to detect an optical signal strength of the outbound interface of the straight device, and monitor whether the switching indication information is received, when the optical signal strength of the outbound interface is lower than a preset light intensity threshold or received When the indication information is switched, the communication link is switched to the protection path.
本发明实施例提供的触发旁路设备切换的方法, 通过对直路设备内部的 实时流量进行检测, 并在所述直路设备发生流量异常时, 发送切换指示至所 述旁路设备, 触发旁路设备将通信链路切换到保护通路, 通过本发明提供的 触发旁路设备切换的方法, 在直路设备内部的模块发生故障时, 通过发送切 换指示信息触发旁路设备切换到保护通路, 避免了直路设备的出接口有光信 号, 而直路设备内部的模块发生故障时造成的通信链路的中断, 提高了旁路 设备切换的可靠性。 本发明提供的旁路设备切换方法, 在检测直路设备出接口的光信号强度 的同时监测是否接收到切换指示信息, 并在直路设备出接口的光信号强度低 于预设的光强门限值或接收到所述切换指示信息时, 将通信链路切换至保护 通路, 避免了直路设备的出接口有光信号, 而直路设备内部的模块发生故障 时造成的通信链路中断的问题, 提高了旁路设备切换的可靠性, 保障了通信 的正常进行。 附图说明 The method for triggering the bypass device switching according to the embodiment of the present invention detects the real-time traffic inside the straight-channel device, and sends a switching instruction to the device when the traffic of the straight-channel device is abnormal. The bypass device, the trigger bypass device switches the communication link to the protection path, and the method for triggering the bypass device switching provided by the present invention triggers the bypass device by sending the switching indication information when the module inside the straight device fails. Switching to the protection path avoids the optical signal of the outbound interface of the straight-line device, and the interruption of the communication link caused by the failure of the module inside the straight-line device improves the reliability of the bypass device switching. The bypass device switching method provided by the present invention monitors whether the switching indication information is received while detecting the optical signal strength of the outbound interface of the straight device, and the optical signal strength of the outbound interface of the straight device is lower than a preset optical intensity threshold. Or, when the switching indication information is received, the communication link is switched to the protection path, which avoids the optical signal of the outbound interface of the straight path device, and the communication link interruption caused by the failure of the module inside the straight path device is improved. The reliability of the bypass device switching ensures the normal operation of the communication. DRAWINGS
图 1是本发明实施例提供的一种触发旁路设备切换的方法流程图; 图 2是本发明实施例提供的一种旁路设备切换的方法流程图; 图 3是本发明实施例提供的一种触发旁路设备切换的装置的结构示意图; 图 4 为本发明实施例提供的又一种触发旁路设备切换的装置的结构示意 图;  FIG. 1 is a flowchart of a method for switching a bypass device according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for switching a bypass device according to an embodiment of the present invention; A schematic structural diagram of a device for triggering a bypass device switching; FIG. 4 is a schematic structural diagram of another device for triggering a bypass device switching according to an embodiment of the present invention;
图 5 为本发明实施例提供的又一种触发旁路设备切换的装置的结构示意 图;  FIG. 5 is a schematic structural diagram of another apparatus for triggering switching of a bypass device according to an embodiment of the present invention; FIG.
图 6 为本发明实施例提供的又一种触发旁路设备切换的装置的结构示意 图;  6 is a schematic structural diagram of another apparatus for triggering switching of a bypass device according to an embodiment of the present invention;
图 7为本发明实施例提供一种旁路设备的结构示意图; 图 8为本发明实施例提供的一种通信系统的架构图; 图 9为本发明实施例提供的又一种通信系统的架构图。 具体实施方式  FIG. 7 is a schematic structural diagram of a bypass device according to an embodiment of the present invention; FIG. 8 is a schematic structural diagram of a communication system according to an embodiment of the present invention; FIG. 9 is a schematic diagram of another communication system according to an embodiment of the present invention. Figure. detailed description
为使得本发明的发明目的、 特征、 优点能够更加清楚、 易懂, 下面将结 合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地 描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而非全部实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下 所获得的所有其他实施例, 都属于本发明保护的范围。 In order to make the object, features and advantages of the present invention clearer and easier to understand, the following will be The technical solutions in the embodiments of the present invention are clearly and completely described in the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention.
参照图 1 ,图 1为本发明实施例一提供的一种触发旁路设备切换的方法的 流程图。 如图所示, 该方法包括: 步骤 S 101: 检测直路设备的实时流量; 优选的, 可以定时检测所述直路设备的入接口流量和出接口流量及所述 直路设备的策略丟包流量; 具体的, 所述直路设备的入接口流量可以是指在 检测周期内流过所述直路设备入接口的数据包的总量; 所述出接口流量可以 是指在检查周期内流过所述直路设备出接口的数据包的总量; 所述策略丟包 流量是指直路设备自身为了进行当前流量控制而配置的丟包流量, 所以在本 申请实施例中, 所述策略丟包流量是可以直接读取的。 优选的, 也可以定时检测所述直路设备的入接口流量和所述直路设备内 部统计的错包数。 本领域人员可以知道, 直路设备内部各个芯片在传输数据 时, 不可避免会有数据包传错的情况, 为了叙述方便, 这里把传错的数据包 称之为错包, 具体的, 所述直路设备内部统计的错包数可以是指所述直路设 备内部各个芯片统计的错包数的总和。 步骤 S102: 判断所述直路设备是否发生流量异常; 具体的, 判断所述直路设备是否发生流量异常的方法可以为, 依据所述 直路设备的入接口流量和出接口流量, 以及所述直路设备的策略丟包流量和 检测周期, 计算所述直路设备的丟包率;  Referring to FIG. 1, FIG. 1 is a flowchart of a method for triggering handover of a bypass device according to Embodiment 1 of the present invention. As shown in the figure, the method includes: Step S101: Detecting real-time traffic of the direct-path device; Preferably, the inbound interface traffic and the outbound interface traffic of the direct-path device and the policy packet loss traffic of the direct-path device are periodically detected; The inbound interface traffic of the direct path device may refer to the total amount of data packets flowing through the inbound interface of the straight path device during the detection period; the outgoing interface traffic may refer to flowing through the straight path device during the check period. The total number of data packets of the outbound interface; the policy packet loss traffic refers to the packet loss traffic configured by the straight path device itself for performing current traffic control. Therefore, in the embodiment of the present application, the policy packet loss traffic can be directly read. Take it. Preferably, the inbound interface traffic of the straight path device and the number of error packets counted in the internal device of the straight path device may be detected periodically. Those skilled in the art can know that when each chip in the straight path device transmits data, there is inevitably a case where the data packet is transmitted. For convenience of description, the misdirected data packet is referred to herein as a wrong packet. Specifically, the straight path is The number of error packets counted internally by the device may refer to the sum of the number of error packets counted by each chip in the straight path device. Step S102: determining whether the traffic of the straight-line device is abnormal. The method for determining whether the traffic of the straight-line device is abnormal may be: according to the inbound interface traffic and the outgoing interface traffic of the straight-channel device, and the straight-channel device The packet loss rate and the detection period of the policy are calculated, and the packet loss rate of the straight path device is calculated;
具体的, 所述丟包率可以通过计算所述入接口流量与所述出接口流量及 所述策略丟包流量的差值, 将所述差值与所述检测周期做除法运算得到, 即 丟包率可以按如下公式计算:  Specifically, the packet loss rate may be obtained by dividing the difference between the inbound interface traffic and the outbound interface traffic and the policy packet loss traffic, and dividing the difference with the detection period, that is, losing The packet rate can be calculated as follows:
丟包率 = (入接口流量-出接口流量-策略丟包流量) /检测周期 当获得所述直路设备的丟包率后, 将所述丟包率与预设的丟包率门限值 进行比较, 当所述丟包率大于所述预设丟包率门限值时, 确认所述直路设备 发生流量异常, 否则认为所述直路设备未发生流量异常。 其中, 所述丟包率门限值可以根据实际经验值设置, 例如, 在所述直路 设备没有配置策略丟包流量时, 所述丟包率门限值可以为 20%; 在所述直路 设备配置了策略丟包流量时, 所述丟包率门限值可以为 30%, 当然还可以根 据实际需要设置为其它值, 这里不做具体限定。 当然, 判断所述直路设备是否发生流量异常的方法还可以为, 依据所述 直路设备内部统计的错包数的总和以及所述入接口流量和检测周期计算所述 直路设备的错包率。 所述错包率的计算方法可以包括: 计算检测周期与所述 入接口流量(也就是检测周期内流过入接口的数据包的总量) 的乘积, 将所 述直路设备内部统计的错包数(也就是系统内部各芯片的错包数的总和) 与 所述乘积的商作为所述直路设备的错包率, 即所述错包率可以按如下公式计 算: Packet loss rate = (inbound interface traffic - outbound interface traffic - policy packet loss traffic) / detection period After the packet loss rate of the straight path device is obtained, the packet loss rate and the preset packet loss rate threshold are obtained. For comparison, when the packet loss rate is greater than the preset packet loss rate threshold, it is confirmed that the traffic of the straight path device is abnormal. Otherwise, the traffic of the straight path device is considered to be abnormal. The packet loss rate threshold value may be set according to an actual experience value. For example, when the direct path device does not configure the policy packet loss traffic, the packet loss rate threshold may be 20%. When the packet loss rate is configured, the packet loss rate threshold may be 30%, and may be set to other values according to actual requirements, which is not specifically limited herein. Certainly, the method for determining whether the traffic of the straight-line device is abnormal may be: calculating a packet error rate of the straight-line device according to a sum of the number of error packets counted internally by the straight-line device and the inbound interface traffic and the detection period. The method for calculating the error rate may include: calculating a product of the detection period and the inbound interface traffic (that is, the total amount of data packets flowing through the inbound interface during the detection period), and the error packet of the internal statistics of the straight path device. The number (that is, the sum of the number of error packets of each chip in the system) and the quotient of the product are used as the error packet rate of the straight path device, that is, the error rate can be calculated as follows:
错包率 = 直路设备内部统计的错包数 / (入接口流量 *检测周期)  Error packet rate = number of error packets counted internally by the straight device / (input interface traffic * detection cycle)
错包率门限值时, 确认所述直路设备发生流量异常, 否则认为所述直路设备 未发生流量异常。 所述错包率门限值可以根据实际经验值设定, 例如, 可以设置为 5%, 当 然还可以根据实际需求设置其它值, 这里不做具体限定。 优选的, 上述两种检测直路设备是否发生流量异常的方法可以只存在一 种, 也可以同时存在, 即在计算丟包率, 并将丟包率与预设的丟包率门限值 进行比较的同时也计算错包率, 并将错包率与预设的错包率门限值进行比较, 当上述两种方法同时存在时, 若丟包率大于所述预设的丟包率门限值和 /或所 述错包率大于所述错包率门限值时, 就说明直路设备发了流量异常。 步骤 S103: 当所述直路设备发生流量异常时, 发送用于触发所述旁路设 备将通信链路切换至保护通路的切换指示信息; 否则返回执行步骤 S101。 When the error rate threshold is exceeded, it is confirmed that the traffic of the straight-line device is abnormal. Otherwise, the traffic of the straight-line device is considered to be abnormal. The error rate threshold can be set according to the actual experience value. For example, it can be set to 5%. Otherwise, other values can be set according to actual requirements, which is not specifically limited herein. Preferably, the two methods for detecting the abnormality of the traffic of the straight-line device may exist only one type, or may exist at the same time, that is, the packet loss rate is calculated, and the packet loss rate is compared with the preset packet loss rate threshold. At the same time, the error packet rate is calculated, and the error packet rate is compared with the preset error rate threshold. When the two methods exist at the same time, if the packet loss rate is greater than the preset packet loss threshold. When the value and/or the error rate is greater than the error rate threshold, the straight-line device sends a traffic anomaly. Step S103: When a flow abnormality occurs in the straight path device, send the switching indication information for triggering the bypass device to switch the communication link to the protection path; otherwise, return to step S101.
当检测到所述直路设备发生流量异常时, 发送切换指示信息至所述旁路 设备, 所述旁路设备接收到所述切换指示信息后, 将通信链路切换到保护通 路, 提高了旁路设备切换的可靠性。 When detecting that the traffic of the straight-line device is abnormal, sending the handover indication information to the bypass device, after receiving the handover indication information, the bypass device switches the communication link to the protection link. The road improves the reliability of bypass device switching.
优选的, 为了进一步优化上述实施例, 所述方法还包括:  Preferably, in order to further optimize the foregoing embodiment, the method further includes:
监测所述直路设备内各个模块的告警信息 , 当有模块发出告警信息时发 送切换指示至所述旁路设备以触发所述旁路设备切换到保护通路。  The alarm information of each module in the straight-line device is monitored, and when a module sends an alarm message, a switching instruction is sent to the bypass device to trigger the bypass device to switch to the protection path.
具体的, 所述告警信息可以为电源告警信息, 如, 当电源电压跌落时, 直路设备会产生电源告警信息, 此时, 向所述旁路设备发送切换指示信息, 触发所述旁路设备切换至保护通路; 所述告警信息还可以为板间通信异常告 警, 例如, 当主板与从板之间不能通信时, 也就是主板不能管理从板时, 虽 然从板上还是会有流量, 但系统会发出管理异常告警, 此时, 也可以向所述 旁路设备发送切换指示, 触发所述旁路设备切换至保护通路。 当然, 所述告 警信息不限于以上两种, 还可以是其他系统告警信息或系统异常信息。 需要说明的是, 本申请实施例提供的触发旁路设备切换的方法, 可以运 行于直路设备, 在直路设备的主控模块实现, 也可以运行于直路设备之外, 在于直路设备进行通信的后台部分实现, 只要是能够获取到直路设备出接口 流量、 如接口流量和系统错包信息及策略丟包流量的地方都可以。 由上述方案可知, 本申请实施例提供的触发旁路设备切换的方法, 通过 对直路设备内部系统进行实时流量检测, 在直路设备系统内部本身已经故障, 但接口仍有光的情况下, 及时触发旁路设备切换至保护通路, 避免了直路设 备的出接口有光信号, 而直路设备内部的模块发生故障时造成的通信链路中 断的问题, 提高了旁路设备切换的可靠性以及通信正常进行的可能性。  Specifically, the alarm information may be power supply alarm information. For example, when the power supply voltage drops, the straight road device generates power supply alarm information. At this time, the switching indication information is sent to the bypass device, and the bypass device is triggered to be switched. To the protection path; the alarm information may also be an abnormal alarm for inter-board communication. For example, when the main board and the slave board cannot communicate, that is, when the main board cannot manage the slave board, although there is still traffic from the board, the system A management abnormality alarm is issued. At this time, a switching indication may also be sent to the bypass device, and the bypass device is triggered to switch to the protection path. Of course, the alarm information is not limited to the above two types, and may be other system alarm information or system abnormal information. It should be noted that the method for triggering the bypass device switching provided by the embodiment of the present application may be implemented in a straight path device, implemented in a main control module of the straight path device, or may be operated outside the straight path device, and in a background in which the straight path device performs communication. Partially implemented, as long as it is able to obtain the outbound interface traffic of the straight-line device, such as interface traffic and system error packet information and policy packet loss traffic. According to the foregoing solution, the method for triggering the bypass device switching according to the embodiment of the present application performs real-time traffic detection on the internal system of the straight-channel device, and the internal device of the straight-channel device itself has failed, but the interface still has light, and triggers in time. The bypass device is switched to the protection path, which avoids the optical signal of the outbound interface of the straight device, and the communication link interruption caused by the failure of the module inside the straight device, improves the reliability of the bypass device switching, and the communication is normal. The possibility.
如图 2所示, 图 2为本发明实施例提供的一种旁路设备切换的方法流程 图。 该方法包括: S201 : 检测直路设备出接口的光信号强度, 并监测切换指 示信息;  As shown in FIG. 2, FIG. 2 is a flow chart of a method for switching a bypass device according to an embodiment of the present invention. The method includes: S201: detecting an optical signal strength of an outbound interface of the straight path device, and monitoring the switching indication information;
S202: 判断所述直路设备出接口的光信号强度是否低于预设的光强门限 值或是否接收到切换指示信息, 当所述出接口的光强度低于预设的光强门限 值或接收到所述切换指示信息时, 执行步骤 S203 , 否则返回执行步骤 S201;  S202: Determine whether the optical signal strength of the outbound interface of the direct device is lower than a preset light intensity threshold or whether the switching indication information is received, when the light intensity of the outgoing interface is lower than a preset light intensity threshold. Or receiving the switching indication information, step S203 is performed, otherwise returning to step S201;
S203: 将通信链路切换至保护通路。  S203: Switch the communication link to the protection path.
也就是说, 旁路设备不仅自身检测直路设备的光接口信息, 以判断是否 需要进行通信链路切换, 同时还通过接收切换指示信息来进行通信链路切换。 旁路设备切换至保护通路后, 技术人员对直路设备进行检修, 在直路设 备故障排除后, 通过手动方式使旁路设备切换回原通信链路, 并使工作模式 改为自动模式, 恢复旁路设备对直路设备接口的光信号检测, 并监测是否接 收到切换指示信息。 That is, the bypass device not only detects the optical interface information of the straight device itself, but also determines whether Communication link switching is required, and communication link switching is also performed by receiving handover indication information. After the bypass device is switched to the protection path, the technician repairs the straight-line device. After the straight-line device is faulty, the bypass device is manually switched back to the original communication link, and the working mode is changed to the automatic mode. The device detects the optical signal of the interface of the straight device and monitors whether the switching indication information is received.
由上述方案可知, 本申请实施例提供的旁路设备切换方法, 在检测直路 设备出接口的光信号强度的基础上, 还可以通过接收通信链路切换指示信息 来进行通信链路的切换, 避免了旁路设备检测到直路设备的出接口有光信号, 却不能检测到直路设备内部发生故障, 不能进行通信链路切换而造成的通信 链路中断的问题, 提高了旁路设备切换的可靠性。  According to the foregoing solution, the bypass device switching method provided by the embodiment of the present application can detect the optical signal strength of the outbound interface of the straight path device, and can also perform the communication link switching by receiving the communication link switching indication information, thereby avoiding The bypass device detects that the outbound interface of the straight path device has an optical signal, but cannot detect the internal fault of the straight path device, and cannot interrupt the communication link caused by the communication link switching, thereby improving the reliability of the bypass device switching. .
图 3 为本发明实施例提供的一种触发旁路设备切换的装置结构示意图, 如图 3所示, 该装置包括: 检测模块 301 , 判断模块 302和触发模块 303 ; 检测模块 301 , 用于检测直路设备 305的实时流量;  FIG. 3 is a schematic structural diagram of a device for triggering a bypass device switching according to an embodiment of the present invention. As shown in FIG. 3, the device includes: a detecting module 301, a determining module 302, and a triggering module 303. The detecting module 301 is configured to detect Real-time traffic of the straight-line device 305;
判断模块 302 ,用于依据所述检测模块 301检测到的实时流量判断所述直 路设备 305是否发生流量异常;  The determining module 302 is configured to determine, according to the real-time traffic detected by the detecting module 301, whether the traffic device 305 has abnormal traffic;
触发模块 303 , 用于在所述直路设备 305发生流量异常时, 发送用于触发 旁路设备 304将通信链路切换至保护通路的切换指示信息。 本发明实施例提供的一种触发旁路设备切换的装置可以通过检测直路设 备的实时流量, 并在判断所述直路设备发生流量异常时, 发送切换指示至所 述旁路设备, 触发旁路设备将通信链路切换到保护通路, 避免了直路设备的 出接口有光信号, 而直路设备内部的模块发生故障时造成的通信链路的中断, 提高了旁路设备切换的可靠性。 图 4 为本发明实施例提供的又一种触发旁路设备切换的装置的结构示意 图, 如图 4所示, 该装置包括: 检测模块 301 , 用于检测直路设备 305的实时流量;  The triggering module 303 is configured to send, when the traffic of the direct path device 305 is abnormal, handover indication information for triggering the bypass device 304 to switch the communication link to the protection path. The device for triggering the switching of the bypass device can detect the real-time traffic of the direct device, and when determining that the traffic of the straight device is abnormal, send a switching instruction to the bypass device, triggering the bypass device. Switching the communication link to the protection path avoids the optical signal of the outbound interface of the straight-line device, and the interruption of the communication link caused by the failure of the module inside the straight-line device improves the reliability of the bypass device switching. FIG. 4 is a schematic structural diagram of another apparatus for triggering a bypass device switching according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes: a detecting module 301, configured to detect real-time traffic of the straight-line device 305;
具体的, 检测模块 301检测的直路设备 305的实时流量可以包括: 入接 口流量、 出接口流量以及策略丟包流量; 具体的, 所述直路设备的入接口流 量可以是指在检测周期内流过所述直路设备入接口的数据包的总量; 所述出 接口流量可以是指在检查周期内流过所述直路设备出接口的数据包的总量; 所述策略丟包流量是指直路设备自身为了进行当前流量控制而配置的丟包流 量, 所以在本申请实施例中, 所述策略丟包流量是可以直接读取的。 Specifically, the real-time traffic of the direct-channel device 305 detected by the detecting module 301 may include: the inbound interface traffic, the outbound interface traffic, and the policy packet loss traffic. Specifically, the inbound interface traffic of the direct path device may refer to flowing through the detection period. The total amount of data packets of the straight path device entering the interface; The interface traffic may refer to the total amount of data packets flowing through the outbound interface of the straight path device during the check period; the policy packet loss traffic refers to the packet loss traffic configured by the straight path device itself for current traffic control, so In the application embodiment, the policy packet loss traffic is directly readable.
判断模块 302 ,用于依据所述检测模块 301检测到的实时流量判断所述直 路设备 305是否发生流量异常; 其中, 判断模块 301可以包括第一计算单元 401和第一比较单元 402; 第一计算单元 401 , 用于依据所述直路设备 305的 入接口流量、 出接口流量、 策略丟包流量和预设的检测周期, 计算所述直路 设备 305的丟包率; 具体的, 所述丟包率可以通过计算所述入接口流量与所述出接口流量及 所述策略丟包流量的差值, 将所述差值与所述检测周期做除法运算得到, 即 丟包率可以按如下公式计算:  The determining module 302 is configured to determine, according to the real-time traffic detected by the detecting module 301, whether the traffic of the straight-line device 305 is abnormal. The determining module 301 can include the first calculating unit 401 and the first comparing unit 402. The unit 401 is configured to calculate a packet loss rate of the straight path device 305 according to the inbound interface traffic, the outbound interface traffic, the policy packet loss traffic, and the preset detection period of the direct path device 305. Specifically, the packet loss rate is The difference between the ingress interface traffic and the outbound interface traffic and the policy packet loss traffic may be calculated, and the difference is obtained by dividing the detection interval, that is, the packet loss rate may be calculated according to the following formula:
丟包率 = (入接口流量-出接口流量-策略丟包流量) /检测周期。 当所述丟包率大于所述丟包率门限值时, 确认所述直路设备 305发生流量异 常, 并发送流量异常信号至触发模块 303 ; 否则, 认为所述直路设备未发生流 量异常。  Packet loss rate = (inbound traffic - outbound traffic - policy packet loss traffic) / detection period. When the packet loss rate is greater than the packet loss rate threshold, it is confirmed that the straight line device 305 generates a traffic abnormality, and sends a traffic abnormality signal to the trigger module 303; otherwise, the direct path device is considered to have no traffic abnormality.
其中, 所述丟包率门限值可以根据实际经验值设置, 例如, 在所述直路 设备没有配置策略丟包流量时, 所述丟包率门限值可以为 20%; 在所述直路 设备配置了策略丟包流量时, 所述丟包率门限值可以为 30%, 当然还可以根 据实际需要设置为其它值, 这里不做具体限定。 触发模块 303 ,用于在接收到所述第一比较单元 402发送的流量异常信号 后, 发送用于触发旁路设备 304将通信链路切换至保护通路的切换指示信息。 本发明实施例提供的触发旁路设备切换的装置可以通过检测并计算直路 设备的丟包率来判断直路设备的实时流量是否为异常流量, 并在出现异常时, 触发旁路设备将通信链路切换到保护通路, 因此, 能够避免直路设备的出接 口有光信号, 而直路设备内部的模块发生故障造成丟包, 进而造成的通信链 路的中断, 提高了旁路设备切换的可靠性, 提高了通信正常进行的可能性。 图 5 为本发明实施例提供的又一种触发旁路设备切换的装置的结构示意 图, 如图 5所示, 该装置包括: 检测模块 301 , 用于检测直路设备 305的实时流量; The packet loss rate threshold value may be set according to an actual experience value. For example, when the direct path device does not configure the policy packet loss traffic, the packet loss rate threshold may be 20%. When the packet loss rate is configured, the packet loss rate threshold may be 30%, and may be set to other values according to actual requirements, which is not specifically limited herein. The triggering module 303 is configured to send, after receiving the traffic abnormality signal sent by the first comparing unit 402, switching indication information for triggering the bypass device 304 to switch the communication link to the protection path. The device for triggering the bypass device switching according to the embodiment of the present invention can determine whether the real-time traffic of the straight-channel device is abnormal traffic by detecting and calculating the packet loss rate of the straight-channel device, and triggering the bypass device to transmit the communication link when an abnormality occurs. Switching to the protection path, therefore, it can avoid the optical signal of the outbound interface of the straight-line device, and the module inside the straight-line device fails to cause packet loss, thereby causing the interruption of the communication link, improving the reliability of the bypass device switching, and improving The possibility that communication will proceed normally. FIG. 5 is a schematic structural diagram of another apparatus for triggering switching of a bypass device according to an embodiment of the present invention; As shown in FIG. 5, the device includes: a detecting module 301, configured to detect real-time traffic of the straight-line device 305;
具体的, 检测模块 301检测的直路设备 305的实时流量还可以包括: 入 接口流量和所述直路设备内部统计的错包数。 判断模块 302 ,用于依据所述检测模块 301检测到的实时流量判断所述直 路设备 305是否发生流量异常;  Specifically, the real-time traffic of the straight-line device 305 detected by the detecting module 301 may further include: the inbound interface traffic and the number of error packets counted internally by the straight-channel device. The determining module 302 is configured to determine, according to the real-time traffic detected by the detecting module 301, whether the traffic device 305 has abnormal traffic;
其中, 判断模块 302可以包括第二计算单元 501和第二比较单元 502; 第二计算单元 501 ,用于依据所述检测模块 301检测的直路设备 305的入 接口流量、 错包数以及预设的检测周期计算所述直路设备的错包率; 所述错包率的计算方法可以包括: 计算检测周期与所述入接口流量(也 就是检测周期内流过入接口的数据包的总量) 的乘积, 将所述直路设备内部 统计的错包数(也就是系统内部各芯片的错包数的总和) 与所述乘积的商作 为所述直路设备的错包率, 即所述错包率可以按如下公式计算:  The determining module 302 may include a second calculating unit 501 and a second comparing unit 502. The second calculating unit 501 is configured to detect the inbound interface traffic, the number of error packets, and the preset according to the detecting device 301. The detection period calculates a packet error rate of the straight path device; the method for calculating the error packet rate may include: calculating a detection period and the inbound interface traffic (that is, the total amount of data packets flowing through the inbound interface during the detection period) a product, the quotient of the number of error packets counted internally by the straight path device (that is, the sum of the number of error packets of each chip in the system) and the product is used as the error packet rate of the straight path device, that is, the error packet rate may be Calculated as follows:
错包率 = 直路设备内部统计的错包数 / (入接口流量 *检测周期)。  Error packet rate = number of error packets counted internally by the straight-line device / (inbound traffic * detection cycle).
第二比较单元 502 , 用于将所述错包率与预设的错包率门限值进行比较, 当所述错包率大于所述错包率门限值时 , 认为所述直路设备发生流量异常 , 并发送流量异常信号; 否则认为所述直路设备没有发生流量异常; 其中, 所述错包率门限值可以根据实际经验值设定, 例如, 可以设置为 5%, 当然还可以根据实际需求设置其它值, 这里不做具体限定。 触发模块 303在接收到所述第二比较单元 502发送的流量异常信号后, 发送用于触发旁路设备 304将通信链路切换至保护通路的切换指示信息。 本发明实施例提供的触发旁路设备切换的装置可以通过检测并计算直路 设备的错包率来判断直路设备的实时流量是否为异常流量, 并在出现异常时, 触发旁路设备将通信链路切换到保护通路, 因此, 能够避免直路设备的出接 口有光信号, 而直路设备内部的模块发生故障造成错包, 进而造成通信链路 的中断, 提高了旁路设备切换的可靠性, 提高了通信正常进行的可能性。 需要说明的是, 上述判断模块 302可以同时包括第一计算单元 401和第 二计算单元 501 ,以及与第一计算单元 401相对应的第一比较单元 402和与第 二计算单元 501相对应的第二比较单元 502。 当检测模块 301检测的实时流量为入接口流量、 出接口流量以及策略丟 包流量时, 将检测到的实时流量发送至第一计算单元 401 ; 当检测模块 301检 测的实时流量为入接口流量和所述直路设备内部统计的错包数时, 将检测到 的实时流量发送至第二计算单元 501。 The second comparison unit 502 is configured to compare the error rate with a preset error rate threshold, and when the error rate is greater than the error rate threshold, consider that the direct device occurs. The traffic is abnormal, and the traffic abnormality signal is sent; otherwise, the traffic of the faulty device is not abnormal. The threshold of the error rate can be set according to the actual experience value. For example, it can be set to 5%. Other values are set in actual demand, and are not specifically limited herein. After receiving the traffic abnormality signal sent by the second comparison unit 502, the triggering module 303 sends switching indication information for triggering the bypass device 304 to switch the communication link to the protection path. The device for triggering the bypass device switching according to the embodiment of the present invention can determine whether the real-time traffic of the straight-channel device is abnormal traffic by detecting and calculating the error packet rate of the straight-channel device, and triggering the bypass device to connect the communication link when an abnormality occurs. Switching to the protection path, therefore, it can avoid the optical signal of the outbound interface of the straight-line device, and the module inside the straight-line device fails to cause the wrong packet, which causes the communication link to be interrupted, improves the reliability of the bypass device switching, and improves the reliability. The possibility that communication will proceed normally. It should be noted that the foregoing determining module 302 may include the first calculating unit 401 and the second calculating unit 501, and the first comparing unit 402 corresponding to the first calculating unit 401 and the second corresponding to the second calculating unit 501. Second comparison unit 502. When the real-time traffic detected by the detection module 301 is the inbound interface traffic, the outbound interface traffic, and the policy packet loss traffic, the detected real-time traffic is sent to the first computing unit 401; when the real-time traffic detected by the detecting module 301 is the inbound interface traffic and When the number of error packets counted by the straight path device is internal, the detected real-time traffic is sent to the second calculating unit 501.
第一比较单元 402的第二比较单元 502可以发送同样的流量异常信号, 也可以发送不同的流量异常信号, 这里不做具体限定。 相应的, 触发模块 303在接收到流量异常信号时, 不管是第一比较单元 402发送的, 还是第二比较单元 502发送的, 只要接收到的是流量异常信号, 就发送用于触发旁路设备 304将通信链路切换至保护通路的切换指示信息。 为了进一步优化上述实施例, 图 6 为本发明实施例提供的又一种触发旁 路设备切换的装置的结构示意图, 如图 6所示, 该装置在如图 3所述的实施 例的基础上, 还包括:  The second comparison unit 502 of the first comparison unit 402 may send the same traffic abnormality signal or may send different traffic abnormality signals, which is not specifically limited herein. Correspondingly, when the traffic module abnormality signal is received, the triggering module 303 sends the triggering bypass device, whether it is sent by the first comparing unit 402 or sent by the second comparing unit 502, as long as the traffic abnormal signal is received. 304 switches the communication link to the handover indication information of the protection path. In order to further optimize the foregoing embodiments, FIG. 6 is a schematic structural diagram of another apparatus for triggering switching of a bypass device according to an embodiment of the present invention. As shown in FIG. 6, the apparatus is based on the embodiment shown in FIG. , Also includes:
监测模块 601 , 用于监测所述直路设备 305内各个模块的告警信息, 当监 测到有模块发出告警信息时发送切换指示至所述旁路设备 304 以触发所述旁 路设备 304切换到保护通路。  The monitoring module 601 is configured to monitor the alarm information of each module in the straight path device 305, and send a switching instruction to the bypass device 304 to trigger the bypass device 304 to switch to the protection path when the module sends the alarm information. .
本发明实施例在图 3 所示实施例的基础上, 进一步通过监测直路设备内 各模块的告警信息来触发旁路设备将通信链路切换到保护通路, 进一步提高 了旁路设备切换的可靠性, 保证了通信的正常进行。 图 7为本发明实施例提供一种旁路设备的结构示意图, 如图 7所示, 该 设备包括: 检测模块 701 , 用于检测直路设备出接口的光信号强度, 并监测是否接收 到切换指示信息; 切换模块 702, 用于在所述直路设备出接口的光信号强度低 于预设的光强门限值或接收到所述切换指示信息时, 将通信链路切换至保护 通路。 具体的, 所述旁路设备可以是旁路电路, 也就是说可以是能实现上述切 换功能的电路。 当然也可以是能实现上述切换功能的其他装置。 本发明实施例提供的旁路设备, 能够在检测直路设备出接口的光信号强 度的同时监测是否接收到切换指示信息, 并在直路设备出接口的光信号强度 低于预设的光强门限值或接收到所述切换指示信息时, 将通信链路切换至保 护通路, 避免了直路设备的出接口有光信号, 而直路设备内部的模块发生故 障时造成的通信链路中断的问题, 提高了旁路设备切换的可靠性, 保障了通 信的正常进行。 图 8为本发明实施例提供的一种通信系统的架构图, 如图 8所示, 该系 统包括: 直路设备 801、 旁路设备 802以及触发旁路设备切换的装置 803 , 其 中: On the basis of the embodiment shown in FIG. 3, the embodiment of the present invention further triggers the bypass device to switch the communication link to the protection path by monitoring the alarm information of each module in the straight path device, thereby further improving the reliability of the bypass device switching. , to ensure the normal operation of the communication. FIG. 7 is a schematic structural diagram of a bypass device according to an embodiment of the present invention. As shown in FIG. 7, the device includes: a detection module 701, configured to detect an optical signal strength of an outbound interface of a direct device, and monitor whether a handover indication is received. The switching module 702 is configured to switch the communication link to the protection path when the optical signal strength of the outbound interface of the straight device is lower than a preset light intensity threshold or the switching indication information is received. Specifically, the bypass device may be a bypass circuit, that is, the foregoing cutting may be implemented. Change the function of the circuit. Of course, it can also be another device that can implement the above switching function. The bypass device provided by the embodiment of the present invention can detect whether the switching indication information is received while detecting the optical signal strength of the outbound interface of the straight device, and the optical signal strength of the outbound interface of the straight device is lower than a preset light intensity threshold. When the value or the receiving indication information is received, the communication link is switched to the protection path, which avoids the optical signal of the outbound interface of the straight path device, and the communication link interruption caused by the failure of the module inside the straight path device improves the problem. The reliability of the bypass device switching ensures the normal operation of the communication. FIG. 8 is a schematic structural diagram of a communication system according to an embodiment of the present invention. As shown in FIG. 8, the system includes: a straight path device 801, a bypass device 802, and a device 358 for triggering bypass device switching, where:
直路设备 801 , 用于建立通信链路;  Straight line device 801 for establishing a communication link;
触发旁路设备切换的装置 803 ,用于检测所述直路设备 801的实时流量, 并在所述直路设备出现流量异常时发送用于触发所述旁路设备将通信链路切 换至保护通路的切换指示信息; 旁路设备 802, 用于检测所述直路设备出接口的光信号强度, 并监测是 否接收到切换指示信息, 当所述直路设备出接口的光信号强度低于预设的光 强门限值或接收到所述切换指示信息时, 将通信链路切换至保护通路。 具体的,所述触发旁路设备切换的装置 803可以设置于所述直路设备 801 内, 也可以是独立于所述直路设备 801之外的设备; 当触发旁路设备切换的 装置 803设置于所述直路设备 801内时, 直路设备 801既可以用于建立通信 链路, 也可以检测所述直路设备 801的实时流量, 并在所述直路设备 801出 现流量异常时发送用于触发所述旁路设备 801将通信链路切换至保护通路的 切换指示信息。 具体的, 所述旁路设备可以是旁路电路, 也就是说可以是能实现上述切 换功能的电路。 当然也可以是能实现上述切换功能的其他装置。 下面以触发 旁路设备切换装置在直路设备内为例来说明本发明实施例提供的通信系统的 实现方式。 如图 9所示, 图 9为本申请实施例提供的又一种通信系统的架构 图。 正常情况下, 设备 A与设备 B之间的通信是通过直路设备来完成的, 也 就是说, 设备 A于设备 B之间的通信链路为图中的工作通路; 当直路设备的 出接口无光或直路设备的内部模块出现故障时, 就需要通过旁路设备将通信 链路切换至保护通路, 使设备 A与设备 B不经过直路设备而直接相连, 保持 设备 A与设备 B的通信正常进行。 具体的, 直路设备通过检侧自身流量情况触发旁路设备切换, 其中, 触 发旁路设备切换的过程可以为: 直路设备定时检测该直路设备的入接口流量、 出接口流量和该直路设备的策略丟包流量, 并依据测得的流量值计算该直路 设备的丟包率, 即: 丟包率 = (入接口流量-出接口流量-策略丟包流量) /检测 周期。 然后将计算得到的丟包率与预设的丟包率门限值进行比较, 当所述丟 包率大于所述预设丟包率门限值时, 向所述旁路设备发送切换指示信息。 触发旁路设备切换的过程还可以为: 直路设备定时检测该直路设备的入 接口流量和该直路设备内部统计的错包数, 并依据测得的流量值和错包数计 算该直路设备的错包率, 即: 错包率 = 直路设备内部统计的错包数 / (入接口流量 *检测周期), 然后 将计算得到的错包率与预设的错包率门限值进行比较, 当所述错包率大于所 述预设错包率门限值时, 向所述旁路设备发送切换指示信息。 触发旁路设备切换的过程还可以为: 监测所述直路设备内各个模块的告 警信息, 当监测到有模块发出告警信息时发送切换指示至所述旁路设备以触 发所述旁路设备切换到保护通路。 旁路设备一方面检查直路设备的出接口光信号强度, 当所述出接口的光 信号强度低于预设的光强门限值时, 将通信链路切换至保护通路; 另一方面, 旁路设备同时监测直路设备发送的切换指示信息, 并在监测接收到切换指示 信息时, 将通信链路切换至保护通路。 需要说明的是, 本申请实施例所述提 供的方案不局限于在直路设备的主控模块实现, 也可以在与直路设备进行通 信的后台部分实现, 只要能够获取到直路设备的出接口流量、 入接口流量和 直路系统内错包信息的地方都可以。 另外, 所述的直路设备也不局限于一台物理设备, 也可以是由多台物理 设备组成的直路系统。 本发明实施例提供的通信系统, 一方面通过直路设备主动检测实时流量, 并在直路设备的实时流量发生流量异常时, 主动触发旁路设备进行切换, 由 旁路设备将通信链路切换至保护通路; 另一方面通过直路设备监测内部模块 是否有告警信息, 当其内部模块出现告警信息时, 主动触发旁路设备切换; 同时, 本发明实施例中的旁路设备, 在监测直路设备出接口光信号强度的同 时监测是否接收切换指示信息, 当所述直路设备出接口的光信号强度低于预 设的光强门限值和 /或监测接收到切换指示信息时, 将通信链路切换至保护通 路, 从而进一步的提高了旁路设备切换的可靠性, 保障了通信的正常进行。 本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步 骤是可以通过程序来指令相关的硬件来完成, 该程序可以存储于一计算机可 读存储介质中, 存储介质可以包括: 只读存储器、 随机存储器、 磁盘或光盘 等。 以上所述的本发明实施方式, 并不构成对本发明保护范围的限定。 任何 在本发明的精神和原则之内所作的修改、 等同替换和改进等, 均应包含在本 发明的权利要求保护范围之内。 The device 803 for triggering the switching of the bypass device is configured to detect real-time traffic of the straight-line device 801, and send a switch for triggering the bypass device to switch the communication link to the protection path when the traffic of the straight-line device is abnormal. Instructing information; the bypass device 802 is configured to detect an optical signal strength of the outbound interface of the direct device, and monitor whether the switching indication information is received, where the optical signal strength of the outbound interface of the straight device is lower than a preset light intensity gate The limit value or when the handover indication information is received, the communication link is switched to the protection path. Specifically, the device 803 for triggering the bypass device switching may be disposed in the straight device 801, or may be a device independent of the straight device 801; when the device 803 that triggers the bypass device switching is set in the device In the case of the straight-line device 801, the straight-line device 801 can be used to establish a communication link, and can also detect the real-time traffic of the straight-line device 801, and send it to trigger the bypass when the flow device abnormality occurs in the straight-line device 801. The device 801 switches the communication link to the handover indication information of the protection path. Specifically, the bypass device may be a bypass circuit, that is, a circuit capable of implementing the above switching function. Of course, it can also be another device that can implement the above switching function. The implementation of the communication system provided by the embodiment of the present invention is described below by taking the trigger bypass device switching device as an example in the straight path device. As shown in FIG. 9, FIG. 9 is a structural diagram of still another communication system according to an embodiment of the present application. Under normal circumstances, the communication between device A and device B is completed by a straight-line device, that is, the communication link between device A and device B is the working path in the figure; when the outgoing interface of the straight-line device is not available When the internal module of the optical or straight-line device fails, the communication link needs to be switched to the protection path through the bypass device, so that device A and device B are directly connected without passing through the direct-path device, and the communication between device A and device B is maintained normally. . Specifically, the straight-line device triggers the switching of the bypass device by detecting the traffic of the bypass device. The process of triggering the bypass device switching may be: the straight-channel device periodically detects the inbound interface traffic, the outgoing interface traffic, and the strategy of the direct-channel device. The packet loss rate is calculated, and the packet loss rate of the straight path device is calculated according to the measured traffic value, that is, the packet loss rate = (inbound interface traffic - outbound interface traffic - policy packet loss traffic) / detection period. Then, the calculated packet loss ratio is compared with the preset packet loss threshold, and when the packet loss ratio is greater than the preset packet loss threshold, the handover indication information is sent to the bypass device. . The process of triggering the bypass device switching may also be: the straight path device periodically detects the inbound interface traffic of the straight path device and the number of error packets counted internally by the straight path device, and calculates the error of the straight path device according to the measured flow value and the number of wrong packets. Packet rate, ie: error packet rate = number of error packets in the internal device of the straight-line device / (input traffic * detection cycle), and then compare the calculated packet error rate with the preset error packet rate threshold. When the error packet rate is greater than the preset error packet rate threshold, the switching indication information is sent to the bypass device. The process of triggering the bypass device switching may also be: monitoring alarm information of each module in the straight path device, and sending a switching instruction to the bypass device to trigger the bypass device to switch to when the module sends out the alarm information Protection path. The bypass device checks the optical signal strength of the outbound interface of the straight path device, and switches the communication link to the protection path when the optical signal strength of the outbound interface is lower than the preset light intensity threshold; The road device simultaneously monitors the handover indication information sent by the straight-line device, and switches the communication link to the protection path when monitoring the reception of the handover indication information. It should be noted that, the solution provided in the embodiment of the present application is not limited to being implemented in the main control module of the straight path device, and may also be implemented in the background portion of the communication with the straight path device, as long as the outbound interface traffic of the straight path device can be obtained, It is possible to enter the interface traffic and the error packet information in the straight system. In addition, the straight path device is not limited to one physical device, and may be composed of multiple physical devices. Straight system consisting of equipment. The communication system provided by the embodiment of the present invention actively detects the real-time traffic through the direct-path device, and actively triggers the bypass device to switch when the traffic of the real-time traffic of the straight-line device is abnormal, and the bypass device switches the communication link to the protection. On the other hand, the in-line device monitors whether the internal module has alarm information, and when the internal module displays the alarm information, it actively triggers the bypass device to switch; meanwhile, the bypass device in the embodiment of the present invention monitors the outbound interface of the straight device. The optical signal strength is simultaneously monitored to receive the switching indication information. When the optical signal strength of the outbound interface of the straight path device is lower than a preset light intensity threshold and/or the monitoring receiving the switching indication information is received, the communication link is switched to The protection path further improves the reliability of the switching of the bypass device and ensures the normal operation of the communication. A person skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware. The program can be stored in a computer readable storage medium. The storage medium can include: Read-only memory, random access memory, disk or optical disk, etc. The embodiments of the present invention described above are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the invention are intended to be included within the scope of the appended claims.

Claims

权 利 要 求 Rights request
1、 一种触发旁路设备切换的方法, 其特征在于, 包括: A method for triggering switching of a bypass device, comprising:
检测直路设备的实时流量;  Detect real-time traffic of straight-line devices;
判断所述直路设备是否发生流量异常;  Determining whether the straight line device has abnormal traffic;
当所述直路设备发生流量异常时, 发送用于触发所述旁路设备将通信链 路切换至保护通路的切换指示信息。  When the flow device is abnormal in traffic, the switching instruction information for triggering the bypass device to switch the communication link to the protection path is sent.
2、 根据权利要求 1所述的方法, 其特征在于, 所述检测直路设备的实时 流量包括:  2. The method according to claim 1, wherein the detecting real-time traffic of the straight-line device comprises:
定时检测所述直路设备的入接口流量和出接口流量及策略丟包流量; 相应的, 所述判断所述直路设备是否发生流量异常包括:  The device detects the inbound interface traffic and the outbound interface traffic and the policy packet loss traffic of the straight path device. Correspondingly, determining whether the direct path device has abnormal traffic includes:
依据所述直路设备的入接口流量、 出接口流量、 策略丟包流量和预设的 检测周期, 计算所述直路设备的丟包率; 丟包率门限值时, 确认所述直路设备发生流量异常; 否则, 认为所述直路设 备未发生流量异常。  Calculating the packet loss rate of the straight-line device according to the inbound interface traffic, the outbound interface traffic, the policy packet loss traffic, and the preset detection period of the direct device; and determining the traffic of the straight device when the packet loss threshold is exceeded Abnormal; otherwise, the flow device is considered to have no abnormal flow.
3、 根据权利要求 1所述的方法, 其特征在于, 所述检测直路设备的实时 流量包括:  3. The method according to claim 1, wherein the detecting real-time traffic of the straight-line device comprises:
定时检测所述直路设备的入接口流量, 以及所述直路设备内部统计的错 包数;  The inbound interface traffic of the straight path device is detected periodically, and the number of error packets counted internally by the straight path device is detected;
相应的, 所述判断所述直路设备是否发生流量异常包括:  Correspondingly, determining whether the straight line device has a traffic abnormality includes:
依据所述直路设备内部统计的错包数, 以及所述入接口流量和检测周期, 计算所述直路设备的错包率; 错包率门限值时, 确认所述直路设备发生流量异常; 否则认为所述直路设备 未发生流量异常。  Calculating a packet error rate of the straight-line device according to the number of error packets that are internally calculated by the device, and the traffic and detection period of the inbound interface; and determining that the traffic of the device is abnormal when the packet rate is incorrect; It is considered that the straight line device does not have abnormal flow.
4、 根据权利要求 1-3任意一项所述的方法, 其特征在于, 还包括: 监测 所述直路设备内各个模块的告警信息 , 当监测到有模块发出告警信息时发送 用于触发所述旁路设备将通信链路切换至保护通路的切换指示信息。 The method according to any one of claims 1-3, further comprising: monitoring alarm information of each module in the straight path device, and sending when used by the module to send the alarm information to trigger the The bypass device switches the communication link to the switching indication information of the protection path.
5、 一种旁路设备切换方法, 其特征在于, 包括: A bypass device switching method, comprising:
检测直路设备出接口的光信号强度, 并监测是否接收到切换指示信息, 当所述直路设备出接口的光信号强度低于预设的光强门限值或接收到所述切 换指示信息时, 将通信链路切换至保护通路。  Detecting the optical signal strength of the outbound interface of the direct device, and monitoring whether the switching indication information is received. When the optical signal strength of the outbound interface of the straight device is lower than the preset light intensity threshold or the switching instruction information is received, Switch the communication link to the protection path.
6、 一种触发旁路设备切换的装置, 其特征在于, 包括:  6. A device for triggering switching of a bypass device, comprising:
检测模块, 用于检测直路设备的实时流量;  a detection module, configured to detect real-time traffic of the straight-line device;
判断模块, 用于依据所述实时流量判断所述直路设备是否发生流量异常; 触发模块, 用于在所述直路设备发生流量异常时, 发送用于触发所述旁路设 备将通信链路切换至保护通路的切换指示信息。  a determining module, configured to determine, according to the real-time traffic, whether a traffic error occurs in the direct-path device, or a triggering module, configured to send, when the straight-line device generates a traffic abnormality, a trigger for triggering the bypass device to switch the communication link to The switching indication information of the protection path.
7、 根据权利要求 6所述的装置, 其特征在于, 所述实时流量包括: 入接口流量、 出接口流量以及策略丟包流量;  The device according to claim 6, wherein the real-time traffic includes: inbound interface traffic, outbound interface traffic, and policy packet loss traffic;
所述判断模块包括:  The determining module includes:
第一计算单元, 用于依据所述直路设备的入接口流量、 出接口流量、 策 略丟包流量和预设的检测周期, 计算所述直路设备的丟包率; 所述丟包率大于所述丟包率门限值时, 认为所述直路设备发生流量异常; 否 则认为所述直路设备没有发生流量异常。  a first calculating unit, configured to calculate, according to the inbound interface traffic, the outbound interface traffic, the policy packet loss traffic, and the preset detection period, the packet loss rate of the direct path device; the packet loss rate is greater than the When the packet loss rate threshold is exceeded, the traffic of the straight-line device is considered abnormal; otherwise, the traffic of the straight-line device is not abnormal.
8、 根据权利要求 6所述的装置, 其特征在于, 所述实时流量包括: 入接口流量和所述直路设备内部统计的错包数;  The device according to claim 6, wherein the real-time traffic includes: an inbound interface traffic and a number of error packets internally calculated by the straight path device;
所述判断模块包括:  The determining module includes:
第二计算单元, 用于依据所述入接口流量、 错包数以及预设的检测周期 计算所述直路设备的错包率; 所述错包率大于所述错包率门限值时, 认为所述直路设备发生流量异常; 否 则认为所述直路设备没有发生流量异常。  a second calculating unit, configured to calculate a packet error rate of the direct path device according to the inbound interface traffic, the number of error packets, and a preset detection period; when the error packet rate is greater than the error packet rate threshold, The traffic of the straight-line device is abnormal; otherwise, the traffic of the straight-line device is not abnormal.
9、 根据权利要求 6-8任意一项所述的装置, 其特征在于, 还包括: 监测 模块, 用于监测所述直路设备内各个模块的告警信息, 当监测到有模块发出 告警信息时发送用于触发所述旁路设备将通信链路切换至保护通路的切换指 示信息。 The device according to any one of claims 6-8, further comprising: a monitoring module, configured to monitor alarm information of each module in the straight path device, and send when a module sends an alarm message Switching indication information for triggering the bypass device to switch the communication link to the protection path.
10、 一种旁路设备, 其特征在于, 包括: 10. A bypass device, comprising:
检测模块, 用于检测直路设备出接口的光信号强度, 并监测是否接收到 切换指示信息;  a detecting module, configured to detect an optical signal strength of the outbound interface of the straight path device, and monitor whether the switching indication information is received;
切换模块, 用于在所述直路设备出接口的光信号强度低于预设的光强门 限值或接收到所述切换指示信息时, 将通信链路切换至保护通路。  And a switching module, configured to switch the communication link to the protection path when the optical signal strength of the outbound interface of the straight device is lower than a preset light intensity threshold or the switching indication information is received.
11、 一种通信系统, 其特征在于, 包括:  A communication system, comprising:
旁路设备、直路设备以及如权利要求 6-9任意一项权利要求所述的触发旁 路设备切换的装置;  A bypass device, a straight path device, and a device for triggering bypass device switching according to any of claims 6-9;
所述直路设备用于建立通信链路;  The straight path device is used to establish a communication link;
所述触发旁路设备切换的装置用于检测所述直路设备的实时流量, 并在 所述直路设备出现流量异常时发送用于触发所述旁路设备将通信链路切换至 保护通路的切换指示信息;  The device for triggering the bypass device switching is configured to detect real-time traffic of the direct-path device, and send a switching indication for triggering the bypass device to switch the communication link to the protection path when the straight-line device has abnormal traffic Information
所述旁路设备用于检测所述直路设备出接口的光信号强度, 并监测是否 接收到切换指示信息, 当所述出接口的光信号强度低于预设的光强门限值或 接收到所述切换指示信息时, 将通信链路切换至保护通路。  The bypass device is configured to detect an optical signal strength of the outbound interface of the straight device, and monitor whether the switching indication information is received, when the optical signal strength of the outbound interface is lower than a preset light intensity threshold or received When the indication information is switched, the communication link is switched to the protection path.
PCT/CN2012/080931 2012-02-28 2012-09-03 Method for triggering bypass equipment switching, and bypass equipment switching method and device WO2013127164A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210048044.2 2012-02-28
CN201210048044.2A CN102571457B (en) 2012-02-28 2012-02-28 A kind of method, bypass equipment changing method and device triggering bypass equipment and switch

Publications (1)

Publication Number Publication Date
WO2013127164A1 true WO2013127164A1 (en) 2013-09-06

Family

ID=46415983

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/080931 WO2013127164A1 (en) 2012-02-28 2012-09-03 Method for triggering bypass equipment switching, and bypass equipment switching method and device

Country Status (2)

Country Link
CN (1) CN102571457B (en)
WO (1) WO2013127164A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571457B (en) * 2012-02-28 2015-09-30 华为数字技术(成都)有限公司 A kind of method, bypass equipment changing method and device triggering bypass equipment and switch
CN102957607B (en) * 2012-11-06 2015-09-09 华为技术有限公司 A kind of link switch-over method and relevant apparatus, system
WO2014172567A1 (en) 2013-04-17 2014-10-23 Systech Corporation Gateway device for machine-to-machine communication with dual cellular interfaces
CN104734904B (en) * 2013-12-23 2019-04-12 研祥智能科技股份有限公司 The automatic test approach and system of bypass equipment
CN104104429A (en) * 2014-07-10 2014-10-15 上海盈智科技有限公司 Automatic light bypassing method achieved through MEMS optical switch
CN105991426A (en) * 2015-03-04 2016-10-05 中兴通讯股份有限公司 Method and device for managing link in load sharing
CN106060681A (en) * 2015-11-02 2016-10-26 深圳市恒扬数据股份有限公司 Optical network equipment protection method and device
US11979947B2 (en) 2020-05-04 2024-05-07 Systech Corporation Dual channel gateway device for machine-to-machine communication
CN116017214B (en) * 2022-11-30 2024-01-26 上海欣诺通信技术股份有限公司 Fault diagnosis system based on optical fiber communication

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605020A (en) * 2009-07-07 2009-12-16 中兴通讯股份有限公司 A kind of packet loss detection method, system and device
CN101741736A (en) * 2009-12-09 2010-06-16 中兴通讯股份有限公司 Method and system for determining switchable route in process of sending message
CN102025437A (en) * 2009-09-22 2011-04-20 中国移动通信集团公司 Method, system and device for protection switching
CN102571457A (en) * 2012-02-28 2012-07-11 成都市华为赛门铁克科技有限公司 Method for triggering switching of bypass equipment, and method and device for switching bypass equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100350506B1 (en) * 2000-12-29 2002-08-29 삼성전자 주식회사 Time information management method and system for embed system
JP2004112113A (en) * 2002-09-13 2004-04-08 Matsushita Electric Ind Co Ltd Method and apparatus for adaptively controlling real-time communication, method of measuring for continuous erasure of receiving report packet, apparatus for dynamically deciding sending interval of receiving report packet, data receiver and data delivering apparatus
CN1968481A (en) * 2006-04-12 2007-05-23 华为技术有限公司 Method for detecting interior hardware interface failure of base station
CN101222350B (en) * 2007-01-12 2011-08-24 华为技术有限公司 Protection switching decision method and system
CN102104397B (en) * 2009-12-22 2013-09-11 华为技术有限公司 Link protection method and device
CN102307122B (en) * 2011-09-06 2014-01-29 北京傲天动联技术股份有限公司 Ethernet over Coax (EoC) link failure detection system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605020A (en) * 2009-07-07 2009-12-16 中兴通讯股份有限公司 A kind of packet loss detection method, system and device
CN102025437A (en) * 2009-09-22 2011-04-20 中国移动通信集团公司 Method, system and device for protection switching
CN101741736A (en) * 2009-12-09 2010-06-16 中兴通讯股份有限公司 Method and system for determining switchable route in process of sending message
CN102571457A (en) * 2012-02-28 2012-07-11 成都市华为赛门铁克科技有限公司 Method for triggering switching of bypass equipment, and method and device for switching bypass equipment

Also Published As

Publication number Publication date
CN102571457B (en) 2015-09-30
CN102571457A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
WO2013127164A1 (en) Method for triggering bypass equipment switching, and bypass equipment switching method and device
US10708132B2 (en) Technique for handling a status change in an interconnect node
US9813448B2 (en) Secured network arrangement and methods thereof
KR101952224B1 (en) Method, device and system for link switching
US8117337B2 (en) Method and device for implementing link pass through in point-to-multipoint network
CN101529763A (en) Disabled state and state signaling for link aggregation
CN101554002A (en) Monitoring link aggregation links
CN109039825B (en) Network data protection device and method
JP5170001B2 (en) Node device, processing unit, and control frame processing method
EP2613477B1 (en) Method for triggering route switching and service provider-end provider edge device
CN108933818A (en) Communication means and device
JP5321347B2 (en) Network maintenance management system, end point node, network maintenance management method, and program
WO2015180265A1 (en) Multi-link protection switching method and device
EP3001612B1 (en) Multi-domain network protection method and node
CN104901880A (en) Service running method and device
WO2013155940A1 (en) Method and device for reporting fault generation and disappearance
CN101364907A (en) Link fault processing method and apparatus
WO2016061943A1 (en) Method and apparatus for implementing spanning tree protocol protection switching, and computer storage medium
JP2005268889A (en) Transmission path switching system and operating method of the transmission path switching system
CN102045263A (en) Automatic gapless smooth switching method of backup link of multi protocol label switching virtual private network (MPLS VPN) tunnel
JP2008301141A (en) Exchanger
JP4692419B2 (en) Network device, redundant switching method used therefor, and program thereof
CN105871579B (en) Method and device for detecting Power Over Ethernet (POE)
US10237121B2 (en) Apparatus and method for interconnecting multiple linear protection domains
JP6204397B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM

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

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

Country of ref document: EP

Kind code of ref document: A1