Optical line protection switching method and device, electronic equipment and storage medium

By setting different fiber signal thresholds and generating fault warning signals in the OLP device, the problems of incorrect switching and untimely switching of the OLP device during fiber fault switching are solved, ensuring high-quality transmission of service signals.

CN120281375BActive Publication Date: 2025-09-23BEIJING HUAHUAN ELECTRONICS
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510760650.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-09
Publication Date
2025-09-23
Estimated Expiration
2045-06-09

AI Technical Summary

Technical Problem

Existing 1:1 type OLP equipment is prone to erroneous switching or untimely switching during fiber failure switching, affecting the transmission quality of service signals.

Method used

By setting different thresholds for service signals and APS protocol signals, the system determines whether to switch paths based on the optical power values ​​of the primary and backup optical fibers, and generates fault warning signals when necessary to ensure the accuracy and timeliness of switching.

Benefits of technology

This effectively avoids the OLP equipment from switching the working path incorrectly or untimely, ensuring high-quality transmission of service signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120281375B_ABST
    Figure CN120281375B_ABST
Patent Text Reader

Abstract

The present invention provides an optical line protection switching method and device, an electronic device, and a storage medium, relating to the technical field of optical line protection. The present invention is directed to a 1:1 type OLP device, and sets a main service signal low threshold, a main service signal high threshold, a main APS protocol signal high threshold, and a main APS protocol signal low threshold for a main optical fiber; and sets a backup service signal low threshold, a backup service signal high threshold, a backup APS protocol signal high threshold, and a backup APS protocol signal low threshold for a backup optical fiber. In this case, the present invention can comprehensively determine whether to switch the current working path based on the high and low thresholds set for the service signals, as well as the high and low thresholds set for the APS protocol signals, for the main and backup optical fibers. This can effectively prevent erroneous or untimely switching of the 1:1 type OLP device when switching the working path, thereby ensuring the transmission quality of the service signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of optical line protection, and in particular to an optical line protection switching method and device, electronic equipment and storage medium. Background Art

[0002] In existing wavelength division multiplexing systems, optical line protection (OLP) devices are used to automatically protect the system against safety risks (such as fiber breaks) in the fiber optic line. For example, if the working path is on the primary fiber and the OLP device detects a fault on the primary fiber, it automatically switches the working path to the backup fiber, ensuring uninterrupted service and enhancing system stability.

[0003] Currently, when OLP devices detect faults in the optical fiber of a working path, they do so based on the Loss of Signal (LOS) threshold (the optical power threshold used to determine whether a Loss of Signal (LOS) alarm is triggered when an optical module receives an optical signal). For example, if the OLP device detects that the optical power received on the primary fiber is less than the LOS threshold for the primary fiber, it determines that the primary fiber is faulty and switches the working path to the backup fiber. Similarly, if the OLP device detects that the optical power received on the backup fiber is less than the LOS threshold for the backup fiber, it determines that the backup fiber is faulty and switches the working path to the primary fiber. In practice, after switching the working path from the primary fiber to the backup fiber, if the working path is switched again based on the backup fiber's LOS threshold, incorrect or untimely switching often occurs, impacting service signal transmission quality. Summary of the Invention

[0004] The present invention provides an optical line protection switching method and device, an electronic device, and a storage medium, which are used to solve the problem in the prior art that, after a 1:1 type OLP device switches a working path from a primary optical fiber to a backup optical fiber, there is a possibility of erroneous switching or untimely switching when switching the working path again. The method can effectively avoid erroneous switching or untimely switching when the 1:1 type OLP device switches the working path, thereby ensuring the transmission quality of service signals.

[0005] The present invention provides an optical line protection switching method, which is applied to 1:1 optical line protection OLP equipment and includes the following steps.

[0006] Obtain a first signal transmitted by the main optical fiber and a second signal transmitted by the backup optical fiber; when the first signal is a service signal and the second signal is an automatic protection switching APS protocol signal, if the first optical power value received by the main optical fiber is less than the set main service signal low threshold, and the second optical power value received by the backup optical fiber is greater than the set backup APS protocol signal high threshold, switch the working path from the main optical fiber to the backup optical fiber; when the first signal is an APS protocol signal and the second signal is a service signal, if the third optical power value received by the main optical fiber is greater than the set main APS protocol signal high threshold, and the fourth optical power value received by the backup optical fiber is less than the set backup service signal low threshold, switch the working path from the backup optical fiber to the main optical fiber.

[0007] According to an optical line protection switching method provided by the present invention, the method further includes: generating a main optical fiber fault warning signal if a first optical power value received by the main optical fiber is less than a set main line service signal high threshold when the first signal is a service signal and the second signal is an APS protocol signal; and generating a backup optical fiber fault warning signal if a fourth optical power value received by the backup optical fiber is less than a set backup line service signal high threshold when the first signal is an APS protocol signal and the second signal is a service signal.

[0008] According to an optical line protection switching method provided by the present invention, after switching the working path from the main optical fiber to the backup optical fiber, the method further includes: when a third optical power value received by the main optical fiber is greater than a set high threshold value of the main APS protocol signal and a fourth optical power value received by the backup optical fiber is greater than a set high threshold value of the backup service signal, if the current working path switching mode is the automatic return mode, switching the working path from the backup optical fiber to the main optical fiber after waiting for a set return time.

[0009] According to an optical line protection switching method provided by the present invention, after switching a working path from a primary optical fiber to a backup optical fiber, the method further includes: if a third optical power value received by the primary optical fiber is greater than a set high threshold value of a primary APS protocol signal and a fourth optical power value received by the backup optical fiber is greater than a set high threshold value of a backup service signal, and if the current working path switching mode is an automatic no-return mode, maintaining the working path on the backup optical fiber.

[0010] According to an optical line protection switching method provided by the present invention, after obtaining a first signal transmitted by a primary optical fiber and a second signal transmitted by a backup optical fiber, the method further includes: when the first signal is an APS protocol signal and the second signal is a service signal, if a third optical power value received by the primary optical fiber is less than a set primary APS protocol signal lower threshold, generating a prompt signal to prohibit switching of a working path; and when the first signal is a service signal and the second signal is an APS protocol signal, if a fourth optical power value received by the backup optical fiber is less than a set backup APS protocol signal lower threshold, generating a prompt signal to prohibit switching of a working path.

[0011] The present invention also provides an optical line protection switching device, which is applied to 1:1 optical line protection OLP equipment. The device includes: an acquisition module and a switching module.

[0012] The acquisition module is used to acquire a first signal transmitted by the main optical fiber and a second signal transmitted by the backup optical fiber.

[0013] The switching module is configured to switch the working path from the main optical fiber to the backup optical fiber if, when the first signal is a service signal and the second signal is an automatic protection switching APS protocol signal, the first optical power value received by the main optical fiber is less than a set main service signal low threshold and the second optical power value received by the backup optical fiber is greater than a set backup APS protocol signal high threshold; and, when the first signal is an APS protocol signal and the second signal is a service signal, if, when the third optical power value received by the main optical fiber is greater than a set main APS protocol signal high threshold and the fourth optical power value received by the backup optical fiber is less than a set backup service signal low threshold, switch the working path from the backup optical fiber to the main optical fiber.

[0014] According to an optical line protection switching device provided by the present invention, the device also includes: an early warning module, which is used to generate a main optical fiber fault early warning signal if the first optical power value received by the main optical fiber is less than a set main line service signal high threshold when the first signal is a service signal and the second signal is an automatic protection switching APS protocol signal; and generate a backup optical fiber fault early warning signal if the fourth optical power value received by the backup optical fiber is less than a set backup line service signal high threshold when the first signal is an APS protocol signal and the second signal is a service signal.

[0015] According to an optical line protection switching device provided by the present invention, the switching module is further configured to, after switching the working path from the main optical fiber to the backup optical fiber, if a third optical power value received by the main optical fiber is greater than a set high threshold value of the main APS protocol signal and a fourth optical power value received by the backup optical fiber is greater than a set high threshold value of the backup service signal, and if the current working path switching mode is the automatic return mode, switch the working path from the backup optical fiber to the main optical fiber after waiting for a set return time.

[0016] The present invention also provides an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, any of the above-mentioned optical line protection switching methods is implemented.

[0017] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program implements any of the above-mentioned optical line protection switching methods.

[0018] The present invention also provides a computer program product, comprising a computer program, which implements any of the above-mentioned optical line protection switching methods when executed by a processor.

[0019] The optical line protection switching method and device, electronic device, and storage medium provided by the present invention are applied to a 1:1 type OLP device to obtain a first signal transmitted by a main optical fiber and a second signal transmitted by a backup optical fiber; when the first signal is a service signal and the second signal is an automatic protection switching APS protocol signal, if a first optical power value received by the main optical fiber is less than a set main service signal low threshold and a second optical power value received by the backup optical fiber is greater than a set backup APS protocol signal high threshold, the working path is switched from the main optical fiber to the backup optical fiber; when the first signal is an APS protocol signal and the second signal is a service signal, if a third optical power value received by the main optical fiber is greater than a set main APS protocol signal high threshold and a fourth optical power value received by the backup optical fiber is less than a set backup service signal low threshold, the working path is switched from the backup optical fiber to the main optical fiber. It can be seen that in the present invention, when the service operates on the main optical fiber and the backup optical fiber respectively, different service signal thresholds will be set for the main optical fiber and the backup optical fiber, such as the above-mentioned backup service signal low threshold and the main service signal low threshold; at the same time, different thresholds will be set for the service signal and APS protocol signal on the main optical fiber, such as the above-mentioned main service signal low threshold and the main APS protocol signal high threshold, and different thresholds will be set for the service signal and APS protocol signal on the backup optical fiber, such as the above-mentioned backup service signal low threshold and the backup APS protocol signal high threshold. Based on this, the present invention can set corresponding signal thresholds in combination with the working path and the signal transmitted on the optical fiber to accurately determine the situation where path switching is required, effectively avoiding the situation where 1:1 type OLP equipment switches the working path incorrectly or switches untimely, and ensures the transmission quality of the service signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0021] Figure 1 It is a structural diagram of an optical line protection device in the related art.

[0022] Figure 2 This is one of the flow charts of the optical line protection switching method provided by the present invention.

[0023] Figure 3 This is the second flow chart of the optical line protection switching method provided by the present invention.

[0024] Figure 4It is a structural schematic diagram of the optical line protection switching device provided by the present invention.

[0025] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0026] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0027] In the related art, the protection mode of 1:1 optical line protection (OLP) equipment is selective transmission and reception (the signal transmitting end selectively transmits signals based on the status of the main optical fiber and the backup optical fiber; the signal receiving end selectively receives signals based on the quality or status of the received signal).

[0028] like Figure 1 As shown in the figure, when the first OLP device is operating in the primary path, the service signal is transmitted through the primary optical fiber (see the red portion in the figure), and the APS protocol signal is transmitted through the backup optical fiber (see the blue portion in the figure); TX is connected to T1, TX-I is connected to T2, RX is connected to R1, and RX-I is connected to R2. The electrical layer card at site A converts the service signal from an electrical signal to an optical signal and then outputs the service signal to the power amplifier (Booster Amplifier, BA). The BA amplifies the power of the service signal and transmits it to the TX port of the OLP device. The service signal received at the TX port is transmitted to the T1 port through a 2×2 optical switch and then received by the primary optical fiber. (On the transmitting end, only a small portion of the service signal is used for optical power detection, as shown in the figure.) Figure 1 The Tx-PD part is used for optical power detection) and is transmitted along the main optical fiber to the R1 port of the second OLP device at the opposite end, so that the second OLP device at the opposite end receives the service signal (such as Figure 1 As shown, after receiving the service signal, the second OLP device amplifies the signal through a pre-amplifier (PA) and then outputs it to the electrical layer card of site B).

[0029] like Figure 1 As shown, the TX-I port inside the first OLP device sends a communication signal to the above-mentioned 2×2 optical switch, and the communication signal is sent to the T2 port through the above-mentioned 2×2 optical switch, so that the communication signal is transmitted along the spare optical fiber to the R2 port of the second OLP device at the opposite end.

[0030] Please continue to see Figure 1 , when the first OLP device works in the main path, the second OLP device detects the optical signals received by the R1 port and the R2 port (such as Figure 1 In the example, R1-PD detects the optical signal received by port R1, and R2-PD detects the optical signal received by port R2. When the optical power of the optical signal from the primary fiber is detected to be less than the Loss of Service (LOS) threshold, a failure of the primary fiber is determined. The first and second OLP devices then transmit internal communication signals over the backup fiber to implement the Automatic Protection Switching Protocol (APS). This ensures that both OLP devices can simultaneously switch the working path to the backup fiber. In this scenario, after the working path switches to the backup fiber, the OLP devices operate on the backup path. Operating on the backup path means that service signals are transmitted over the backup fiber, while APS protocol signals are transmitted over the primary fiber. TX is connected to T2, TX-1 and T1 are connected, RX is connected to R2, and RX-1 and R1 are connected. In this scenario, the backup fiber is used to transmit service signals, while the primary fiber is used to transmit communication signals between the OLP devices (e.g., the first and second OLP devices). When the working path is the primary fiber, the primary fiber transmits service signals, and the backup fiber transmits internal communication signals of the OLP device. Therefore, switching the working path also causes changes in the signals transmitted on the primary and backup fibers. At this time, if the LOS thresholds originally set for the primary and backup fibers are used, since the LOS thresholds do not correspond to the actual transmission signals, incorrect switching or untimely switching will occur, affecting the transmission quality of service signals.

[0031] In view of the above problems, an embodiment of the present invention provides an optical line protection switching method, which can effectively avoid erroneous switching or untimely switching of 1:1 type OLP equipment when switching working paths, thereby ensuring the transmission quality of service signals.

[0032] The following combination Figure 2-Figure 4 The optical line protection switching method of the present invention is described.

[0033] Figure 2 This is one of the flow charts of the optical line protection switching method provided by an embodiment of the present invention.

[0034] The optical line protection switching method provided in the embodiment of the present invention is applied to a 1:1 type optical line protection OLP device. Figure 2 As shown, the method includes the following S210~S220.

[0035] S210: Acquire a first signal transmitted by the active optical fiber and a second signal transmitted by the standby optical fiber.

[0036] When the first signal is a service signal and the second signal is an APS protocol signal, the working path is the primary optical fiber; when the first signal is an APS protocol signal and the second signal is a service signal, the working path is the backup optical fiber.

[0037] S220: When the first signal is a service signal and the second signal is an APS protocol signal, if the first optical power value received by the main optical fiber is less than the set main service signal low threshold, and the second optical power value received by the backup optical fiber is greater than the set backup APS protocol signal high threshold, the working path is switched from the main optical fiber to the backup optical fiber; when the first signal is an APS protocol signal and the second signal is a service signal, if the third optical power value received by the main optical fiber is greater than the set main APS protocol signal high threshold, and the fourth optical power value received by the backup optical fiber is less than the set backup service signal low threshold, the working path is switched from the backup optical fiber to the main optical fiber.

[0038] When the first signal is a service signal and the second signal is an APS protocol signal, the working path is on the primary optical fiber, that is, the primary optical fiber is used to transmit the service signal and the backup optical fiber is used to transmit the APS protocol signal.

[0039] The primary service signal lower threshold is the maximum optical power at which service signal transmission on the primary optical fiber is interrupted when the working path is the primary optical fiber.

[0040] The backup APS protocol signal high threshold is the minimum optical power of the APS protocol signal that can be transmitted with high quality on the backup optical fiber when the working path is the primary optical fiber.

[0041] In the embodiment of the present application, high-quality transmission of a signal means that the signal can be transmitted not only stably but also with high quality, for example, the bit error rate of the transmission is lower than a bit error rate threshold (for example, 10 -6 ).

[0042] Therefore, when the first optical power value received by the main optical fiber is less than the set lower threshold of the main service signal and the second optical power value received by the backup optical fiber is greater than the set upper threshold of the backup APS protocol signal, it indicates that the current main optical fiber is abnormal (i.e., it cannot transmit service signals and APS protocol signals normally), and the current backup optical fiber is normal (i.e., it can transmit service signals and APS protocol signals normally), and the working path is switched from the main optical fiber to the backup optical fiber.

[0043] When the first signal is an APS protocol signal and the second signal is a service signal, the working path is on the backup optical fiber, that is, the backup optical fiber is used to transmit the service signal and the main optical fiber is used to transmit the APS protocol signal.

[0044] The primary APS protocol signal high threshold is the minimum optical power of the APS protocol signal that can be transmitted with high quality on the primary optical fiber when the working path is on the backup optical fiber.

[0045] Backup service signal lower threshold: The maximum optical power at which service signals are interrupted on the backup fiber when the working path is on the backup fiber.

[0046] Therefore, when the third optical power value received by the main optical fiber is greater than the set high threshold of the main APS protocol signal, and the fourth optical power value received by the backup optical fiber is less than the set low threshold of the backup service signal, it indicates that the current backup optical fiber is abnormal (i.e., it cannot transmit service signals and APS protocol signals normally), and the current main optical fiber is normal (i.e., it can transmit service signals and APS protocol signals normally), then the working path will be switched from the backup optical fiber to the main optical fiber.

[0047] The primary service signal low threshold, primary APS protocol signal high threshold, backup APS protocol signal high threshold, and backup service signal low threshold can be set by those skilled in the art according to actual conditions.

[0048] It can be seen that in the present invention, when the service operates on the main optical fiber and the backup optical fiber respectively, different service signal thresholds will be set for the main optical fiber and the backup optical fiber, such as the above-mentioned backup service signal low threshold and the main service signal low threshold; at the same time, different thresholds will be set for the service signal and APS protocol signal on the main optical fiber, such as the above-mentioned main service signal low threshold and the main APS protocol signal high threshold, and different thresholds will be set for the service signal and APS protocol signal on the backup optical fiber, such as the above-mentioned backup service signal low threshold and the backup APS protocol signal high threshold. Based on this, the present invention can set corresponding signal thresholds in combination with the working path and the signal transmitted on the optical fiber to accurately determine the situation where path switching is required, effectively avoiding the situation where 1:1 type OLP equipment switches the working path incorrectly or switches untimely, and ensures the transmission quality of the service signal.

[0049] In some embodiments, when the working path is the main optical fiber, a main business signal high threshold and a main business signal low threshold can be set for the service signal transmitted by the main optical fiber (see the introduction above); for the APS protocol signal transmitted by the main optical fiber, a main APS protocol signal high threshold (see the introduction above) and a main APS protocol signal low threshold can be set.

[0050] The primary service signal high threshold is the minimum optical power of the service signal that can be transmitted with high quality on the primary optical fiber when the working path is on the primary optical fiber.

[0051] In some embodiments, when the first signal is a service signal and the second signal is an automatic protection switching APS protocol signal, the working path is in the main optical fiber. If the first optical power value received by the main optical fiber is less than the set main service signal high threshold, it means that the main optical fiber cannot currently transmit the service signal with high quality. A main optical fiber fault warning signal can be generated to warn of the main optical fiber fault.

[0052] The primary APS protocol signal lower threshold is the maximum optical power at which the APS protocol signal transmission on the primary optical fiber is interrupted when the working path is the backup optical fiber.

[0053] In some embodiments, when the first signal is an APS protocol signal and the second signal is a service signal, if the third optical power value received by the main optical fiber is less than the set main APS protocol signal lower threshold, the working path cannot be switched normally, and a prompt signal prohibiting switching of the working path is generated to prompt that switching of the working path is prohibited.

[0054] The backup APS protocol signal lower threshold refers to the maximum optical power at which the APS protocol signal transmission on the primary optical fiber is interrupted when the working path is the primary optical fiber.

[0055] In some embodiments, when the first signal is a service signal and the second signal is an APS protocol signal, if the fourth optical power value received by the backup optical fiber is less than the set backup APS protocol signal lower threshold, the working path cannot be switched normally, and a prompt signal prohibiting switching of the working path is generated to prompt that switching of the working path is prohibited.

[0056] In some embodiments, when the working path is on a backup optical fiber, a high threshold for the backup business signal and a low threshold for the backup business signal can be set for the service signal transmitted by the backup optical fiber (see the introduction above); for the APS protocol signal transmitted by the backup optical fiber, a high threshold for the backup APS protocol signal (see the introduction above) and a low threshold for the backup APS protocol signal can be set.

[0057] The backup service signal upper threshold refers to the minimum optical power of service signals that can be transmitted with high quality on the backup fiber when the working path is on the backup fiber.

[0058] When the working path is on the backup fiber, if the third optical power value received by the primary fiber is greater than the set high threshold of the primary APS protocol signal, it indicates that the primary fiber can normally transmit service signals. If the fourth optical power value received by the backup fiber is greater than the set high threshold of the backup service signal, it indicates that the backup fiber can transmit service signals with high quality. In this case, normal service signal transmission can be guaranteed even without switching the current working path. Therefore, if the current working path switching mode is automatic return mode, the working path can be switched from the backup fiber to the primary fiber after waiting for the set return time. If the current working path switching mode is automatic non-return mode, the working path can be maintained on the backup fiber to achieve high-quality service signal transmission.

[0059] In some embodiments, when the first signal is an APS protocol signal and the second signal is a service signal, the working path is on a backup optical fiber. If the fourth optical power value received by the backup optical fiber is less than the set backup service signal high threshold, it indicates that the backup optical fiber is currently abnormal, and a backup optical fiber fault warning signal can be generated to warn of the backup optical fiber fault.

[0060] It should be noted that, in the embodiment of the present invention, the high threshold of the main business signal is higher than the low threshold of the main business signal, the high threshold of the main APS protocol signal is higher than the low threshold of the main APS protocol signal, the high threshold of the backup business signal is higher than the low threshold of the backup business signal, and the high threshold of the backup APS protocol signal is higher than the low threshold of the backup APS protocol signal.

[0061] Based on the introduction of the above embodiments, in some examples, such as Figure 3 As shown, the execution process in the embodiment of the present invention may include the following S301 to S309.

[0062] S301: Acquire a first signal transmitted by a primary optical fiber and a second signal transmitted by a backup optical fiber.

[0063] S302: When the first signal is a service signal and the second signal is an APS protocol signal, determine whether a first optical power value received by the primary optical fiber and a second optical power value received by the backup optical fiber satisfy the following conditions: the first optical power value is less than a set primary service signal lower threshold, and the second optical power value is greater than a set backup APS protocol signal upper threshold.

[0064] If the judgment result is yes, that is, the first optical power value is less than the set primary service signal lower threshold, and the second optical power value is greater than the set backup APS protocol signal upper threshold, S303 is executed.

[0065] If the judgment result is no, that is, the first optical power value is greater than or equal to the set primary service signal lower threshold, or the second optical power value is less than or equal to the set backup APS protocol signal upper threshold, S304 is executed.

[0066] S303: Switch the working path from the primary optical fiber to the backup optical fiber.

[0067] After S303 is executed, S305 may be executed.

[0068] S304: Keep the current working path unchanged.

[0069] S305: Determine whether a third optical power value received by the active optical fiber and a fourth optical power value received by the standby optical fiber satisfy the following conditions: the third optical power value is greater than a set primary APS protocol signal high threshold, and the fourth optical power value is less than a set standby service signal low threshold.

[0070] If the judgment result is yes, that is, the third optical power value is greater than the set primary APS protocol signal high threshold, and the fourth optical power value is less than the set backup service signal low threshold, execute S306;

[0071] If the judgment result is no, that is, the third optical power value is less than or equal to the set primary APS protocol signal upper threshold, or the fourth optical power value is greater than or equal to the set backup service signal lower threshold, S307 is executed.

[0072] S306: Switch the working path from the backup optical fiber to the main optical fiber.

[0073] S307: Determine whether the third optical power value and the fourth optical power value satisfy: the third optical power value is greater than the set primary APS protocol signal high threshold, and the fourth optical power value is greater than the set backup service signal high threshold.

[0074] If the judgment result is yes, that is, the third optical power value is greater than the set primary APS protocol signal high threshold, and the fourth optical power value is greater than the set backup service signal high threshold, in this case, if the current working path switching mode is automatic fallback mode, execute S308; if the current working path switching module is automatic non-fallback mode, execute S309.

[0075] If the judgment result is no, that is, the third optical power value is less than or equal to the set primary APS protocol signal high threshold, or the fourth optical power value is less than or equal to the set backup service signal high threshold, S304 is executed.

[0076] S308: After waiting for the set return time, the working path is switched from the backup optical fiber to the main optical fiber.

[0077] S309: Keep the current working path on the backup optical fiber.

[0078] The optical line protection switching method provided by the present invention is applied to a 1:1 type OLP device, and obtains a first signal transmitted by a main optical fiber and a second signal transmitted by a backup optical fiber; when the first signal is a service signal and the second signal is an automatic protection switching APS protocol signal, if a first optical power value received by the main optical fiber is less than a set main service signal low threshold, and a second optical power value received by the backup optical fiber is greater than a set backup APS protocol signal high threshold, the working path is switched from the main optical fiber to the backup optical fiber; when the first signal is an APS protocol signal and the second signal is a service signal, if a third optical power value received by the main optical fiber is greater than a set main APS protocol signal high threshold, and a fourth optical power value received by the backup optical fiber is less than a set backup service signal low threshold, the working path is switched from the backup optical fiber to the main optical fiber. It can be seen that in the present invention, when the service operates on the main optical fiber and the backup optical fiber respectively, different service signal thresholds will be set for the main optical fiber and the backup optical fiber, such as the above-mentioned backup service signal low threshold and the main service signal low threshold; at the same time, different thresholds will be set for the service signal and APS protocol signal on the main optical fiber, such as the above-mentioned main service signal low threshold and the main APS protocol signal high threshold, and different thresholds will be set for the service signal and APS protocol signal on the backup optical fiber, such as the above-mentioned backup service signal low threshold and the backup APS protocol signal high threshold. Based on this, the present invention can set corresponding signal thresholds in combination with the working path and the signal transmitted on the optical fiber to accurately determine the situation where path switching is required, effectively avoiding the situation where 1:1 type OLP equipment switches the working path incorrectly or switches untimely, and ensures the transmission quality of the service signal.

[0079] The optical line protection switching device provided by the present invention is described below. The optical line protection switching device described below and the optical line protection switching method described above can be referred to in correspondence with each other.

[0080] Figure 4 This is a schematic diagram of the structure of the optical line protection switching device provided by an embodiment of the present invention. It is applied to 1:1 type OLP equipment. Figure 4 As shown, the optical line protection switching device 400 includes: an acquisition module 401 and a switching module 402 .

[0081] The acquisition module 401 is configured to acquire a first signal transmitted by the primary optical fiber and a second signal transmitted by the backup optical fiber.

[0082] The switching module 402 is configured to switch the working path from the main optical fiber to the backup optical fiber if, when the first signal is a service signal and the second signal is an automatic protection switching APS protocol signal, the first optical power value received by the main optical fiber is less than the set main service signal low threshold and the second optical power value received by the backup optical fiber is greater than the set backup APS protocol signal high threshold; and to switch the working path from the backup optical fiber to the main optical fiber if, when the first signal is an APS protocol signal and the second signal is a service signal, the third optical power value received by the main optical fiber is greater than the set main APS protocol signal high threshold and the fourth optical power value received by the backup optical fiber is less than the set backup service signal low threshold.

[0083] The optical line protection switching device provided by the present invention is applied to a 1:1 type OLP device, and obtains a first signal transmitted by a main optical fiber and a second signal transmitted by a backup optical fiber; when the first signal is a service signal and the second signal is an automatic protection switching APS protocol signal, if a first optical power value received by the main optical fiber is less than a set main service signal low threshold, and a second optical power value received by the backup optical fiber is greater than a set backup APS protocol signal high threshold, the working path is switched from the main optical fiber to the backup optical fiber; when the first signal is an APS protocol signal and the second signal is a service signal, if a third optical power value received by the main optical fiber is greater than a set main APS protocol signal high threshold, and a fourth optical power value received by the backup optical fiber is less than a set backup service signal low threshold, the working path is switched from the backup optical fiber to the main optical fiber. It can be seen that in the present invention, when the service operates on the main optical fiber and the backup optical fiber respectively, different service signal thresholds will be set for the main optical fiber and the backup optical fiber, such as the above-mentioned backup service signal low threshold and the main service signal low threshold; at the same time, different thresholds will be set for the service signal and APS protocol signal on the main optical fiber, such as the above-mentioned main service signal low threshold and the main APS protocol signal high threshold, and different thresholds will be set for the service signal and APS protocol signal on the backup optical fiber, such as the above-mentioned backup service signal low threshold and the backup APS protocol signal high threshold. Based on this, the present invention can set corresponding signal thresholds in combination with the working path and the signal transmitted on the optical fiber to accurately determine the situation where path switching is required, effectively avoiding the situation where 1:1 type OLP equipment switches the working path incorrectly or switches untimely, and ensures the transmission quality of the service signal.

[0084] In some embodiments, the optical line protection switching device further includes: an early warning module ( Figure 4(not shown) is used to generate a main optical fiber fault warning signal if the first optical power value received by the main optical fiber is less than the set main service signal high threshold when the first signal is a service signal and the second signal is an automatic protection switching APS protocol signal; and to generate a backup optical fiber fault warning signal if the fourth optical power value received by the backup optical fiber is less than the set backup service signal high threshold when the first signal is an APS protocol signal and the second signal is a service signal.

[0085] In some embodiments, the switching module 402 is also used to, after switching the working path from the main optical fiber to the backup optical fiber, when the third optical power value received by the main optical fiber is greater than the set high threshold of the main APS protocol signal, and the fourth optical power value received by the backup optical fiber is greater than the set high threshold of the backup service signal, if the current working path switching mode is the automatic return mode, switch the working path from the backup optical fiber to the main optical fiber after waiting for the set return time.

[0086] Figure 5 An example of a physical structure diagram of an electronic device is shown below. Figure 5 As shown, the electronic device may include: a processor (processor) 510, a communication interface (Communications Interface) 520, a memory (memory) 530 and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 can call the logic instructions in the memory 530 to execute the optical line protection switching method, which includes: obtaining a first signal transmitted by the main optical fiber and a second signal transmitted by the backup optical fiber; when the first signal is a service signal and the second signal is an automatic protection switching APS protocol signal, if the first optical power value received by the main optical fiber is less than the set main service signal low threshold and the second optical power value received by the backup optical fiber is greater than the set backup APS protocol signal high threshold, switching the working path from the main optical fiber to the backup optical fiber; when the first signal is an APS protocol signal and the second signal is a service signal, if the third optical power value received by the main optical fiber is greater than the set main APS protocol signal high threshold and the fourth optical power value received by the backup optical fiber is less than the set backup service signal low threshold, switching the working path from the backup optical fiber to the main optical fiber.

[0087] Furthermore, the logic instructions in the aforementioned memory 530 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the method of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0088] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the optical line protection switching method provided by the above methods, the method including: obtaining a first signal transmitted by the main optical fiber and a second signal transmitted by the backup optical fiber; when the first signal is a service signal and the second signal is an automatic protection switching APS protocol signal, if the first optical power value received by the main optical fiber is less than the set main service signal low threshold and the second optical power value received by the backup optical fiber is greater than the set backup APS protocol signal high threshold, the working path is switched from the main optical fiber to the backup optical fiber; when the first signal is an APS protocol signal and the second signal is a service signal, if the third optical power value received by the main optical fiber is greater than the set main APS protocol signal high threshold and the fourth optical power value received by the backup optical fiber is less than the set backup service signal low threshold, the working path is switched from the backup optical fiber to the main optical fiber.

[0089] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the optical line protection switching method provided by the above-mentioned methods, the method comprising: obtaining a first signal transmitted by a main optical fiber and a second signal transmitted by a backup optical fiber; when the first signal is a service signal and the second signal is an automatic protection switching APS protocol signal, if the first optical power value received by the main optical fiber is less than a set main service signal low threshold and the second optical power value received by the backup optical fiber is greater than a set backup APS protocol signal high threshold, switching the working path from the main optical fiber to the backup optical fiber; when the first signal is an APS protocol signal and the second signal is a service signal, if the third optical power value received by the main optical fiber is greater than a set main APS protocol signal high threshold and the fourth optical power value received by the backup optical fiber is less than a set backup service signal low threshold, switching the working path from the backup optical fiber to the main optical fiber.

[0090] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units. That is, they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0091] Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software plus a necessary general-purpose hardware platform, or of course, hardware. Based on this understanding, the essence of the above technical solution, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for causing a computer device (such as a personal computer, server, or network device) to execute the methods of each embodiment or certain portions of the embodiments.

[0092] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A method for optical line protection switching, characterized in that: Applied to a 1:1 optical line protection (OLP) device, the method includes: Acquire a first signal transmitted by a primary optical fiber and a second signal transmitted by a backup optical fiber; In the case where the first signal is a service signal and the second signal is an automatic protection switching APS protocol signal, if the first optical power value received by the main optical fiber is less than the set main service signal low threshold, and the second optical power value received by the backup optical fiber is greater than the set backup APS protocol signal high threshold, the working path is switched from the main optical fiber to the backup optical fiber, the main service signal low threshold is the maximum optical power of the main optical fiber at which the service signal is interrupted, and the backup APS protocol signal high threshold is the minimum optical power at which the backup optical fiber can transmit the APS protocol signal with high quality; In the case where the first signal is an APS protocol signal and the second signal is a service signal, if the third optical power value received by the main optical fiber is greater than a set high threshold value of the main APS protocol signal and the fourth optical power value received by the backup optical fiber is less than a set low threshold value of the backup service signal, the working path is switched from the backup optical fiber to the main optical fiber, where the high threshold value of the main APS protocol signal is the minimum optical power at which the main optical fiber can transmit the APS protocol signal with high quality, and the low threshold value of the backup service signal is the maximum optical power at which the backup optical fiber interrupts transmission of the service signal.

2. The optical line protection switching method according to claim 1, wherein: The method further comprises: In the case where the first signal is a service signal and the second signal is an APS protocol signal, if the first optical power value received by the main optical fiber is less than the set main service signal high threshold, a main optical fiber fault warning signal is generated; When the first signal is an APS protocol signal and the second signal is a service signal, if the fourth optical power value received by the backup optical fiber is less than the set backup service signal high threshold, a backup optical fiber failure warning signal is generated.

3. The optical line protection switching method according to claim 1 or 2, characterized in that: After the working path is switched from the main optical fiber to the backup optical fiber, the method further includes: When the third optical power value received by the main optical fiber is greater than the set high threshold of the main APS protocol signal, and the fourth optical power value received by the backup optical fiber is greater than the set high threshold of the backup service signal, if the current working path switching mode is the automatic return mode, the working path is switched from the backup optical fiber to the main optical fiber after waiting for the set return time.

4. The optical line protection switching method according to claim 1 or 2, characterized in that: After the working path is switched from the main optical fiber to the backup optical fiber, the method further includes: When the third optical power value received by the main optical fiber is greater than the set main APS protocol signal high threshold, and the fourth optical power value received by the backup optical fiber is greater than the set backup service signal high threshold, if the current working path switching mode is the automatic no-return mode, the working path is maintained on the backup optical fiber.

5. The optical line protection switching method according to claim 1 or 2, characterized in that: After obtaining the first signal transmitted by the main optical fiber and the second signal transmitted by the backup optical fiber, the method further includes: In the case where the first signal is an APS protocol signal and the second signal is a service signal, if the third optical power value received by the primary optical fiber is less than the set primary APS protocol signal lower threshold, a prompt signal for prohibiting switching the working path is generated; When the first signal is a service signal and the second signal is an APS protocol signal, if the fourth optical power value received by the backup optical fiber is less than the set backup APS protocol signal lower threshold, a prompt signal prohibiting switching of the working path is generated.

6. An optical line protection switching device, characterized in that: Applicable to 1:1 optical line protection (OLP) equipment, the device includes: an acquisition module, configured to acquire a first signal transmitted by the primary optical fiber and a second signal transmitted by the backup optical fiber; The switching module is used to switch the working path from the main optical fiber to the backup optical fiber if the first optical power value received by the main optical fiber is less than the set main service signal low threshold and the second optical power value received by the backup optical fiber is greater than the set backup APS protocol signal high threshold when the first signal is a service signal and the second signal is an automatic protection switching APS protocol signal. The main service signal low threshold is the maximum optical power of the main optical fiber when the service signal is interrupted, and the backup APS protocol signal high threshold is the maximum optical power of the backup optical fiber that can transmit the APS protocol signal with high quality. Low optical power; and, in the case that the first signal is an APS protocol signal and the second signal is a service signal, if the third optical power value received by the main optical fiber is greater than the set main APS protocol signal high threshold, and the fourth optical power value received by the backup optical fiber is less than the set backup service signal low threshold, the working path is switched from the backup optical fiber to the main optical fiber, the main APS protocol signal high threshold is the minimum optical power at which the main optical fiber can transmit the APS protocol signal with high quality, and the backup service signal low threshold is the maximum optical power at which the backup optical fiber interrupts the transmission of the service signal.

7. The optical line protection switching device according to claim 6, characterized in that: The device further comprises: an early warning module, configured to generate a primary optical fiber failure early warning signal if the first optical power value received by the primary optical fiber is less than a set primary service signal high threshold value when the first signal is a service signal and the second signal is an automatic protection switching (APS) protocol signal; and When the first signal is an APS protocol signal and the second signal is a service signal, if the fourth optical power value received by the backup optical fiber is less than the set backup service signal high threshold, a backup optical fiber failure warning signal is generated.

8. The optical line protection switching device according to claim 6 or 7, characterized in that: The switching module is further configured to, after the working path is switched from the main optical fiber to the backup optical fiber, if the third optical power value received by the main optical fiber is greater than the set high threshold of the main APS protocol signal and the fourth optical power value received by the backup optical fiber is greater than the set high threshold of the backup service signal, and if the current working path switching mode is the automatic return mode, switch the working path from the backup optical fiber to the main optical fiber after waiting for a set return time.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the optical line protection switching method according to any one of claims 1 to 5 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the optical line protection switching method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • 1 +1 type optical line protection switching method, device, equipment and medium

    CN120034251A