Optical line protection switching method and device, electronic equipment and storage medium
By setting different signal thresholds and fault warning mechanisms in the optical circuit protection equipment, the problem of false switching during optical fiber failure switching is solved, ensuring the stability of optical fiber communication and high-quality transmission of service signals.
Patent Information
- Application Number
- CN202510760650.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-09
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2045-06-09
AI Technical Summary
Existing optical circuit protection equipment is prone to error switching or untimely switching during fiber failure switching, which affects the transmission quality of service signals.
By setting different service signals and APS protocol signal thresholds, determine whether to perform path switching based on the optical power values of the main and backup optical fibers, and generate a fault warning signal when necessary to ensure the accuracy and timeliness of the switching.
It effectively avoids the error or timely switching of the optical circuit protection equipment when switching the working path, and ensures high-quality transmission of service signals.
Smart Images

Figure CN120281375A_ABST
Abstract
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 apparatus, an electronic device, and a storage medium. Background Art
[0002] In an existing wavelength division multiplexing system, in order to enable the system to have an automatic protection capability when there are security risks in an optical fiber line (such as a fiber break), an Optical Line Protection (OLP) device is used to switch a working path. For example, if the working path is on a primary optical fiber and the OLP device detects a fault in the primary optical fiber, it will automatically switch the working path to a standby optical fiber to ensure that the service is not interrupted and enhance the system stability.
[0003] Currently, when the OLP device detects whether there is a fault in the optical fiber where the working path is located, it makes a fault determination based on the LOS threshold (the optical power threshold used to determine whether to trigger a Loss of Signal (LOS) alarm when the optical module receives an optical signal). For example, when the OLP device detects that the optical power value received by the primary optical fiber is less than the LOS threshold of the primary optical fiber, it determines that there is a fault in the primary optical fiber and switches the working path to the standby optical fiber; similarly, when the OLP device detects that the optical power value received by the standby optical fiber is less than the LOS threshold of the standby optical fiber, it determines that there is a fault in the standby optical fiber and switches the working path to the primary optical fiber. In actual situations, after switching the working path from the primary optical fiber to the standby optical fiber, when switching the working path again based on the LOS threshold of the standby optical fiber, there are often cases of mis-switching or untimely switching, which affects the transmission quality of service signals. Summary of the Invention
[0004] The present invention provides an optical line protection switching method and apparatus, an electronic device, and a storage medium, which are used to solve the problem that in the prior art, for a 1:1 type OLP device, there are mis-switching or untimely switching problems when switching the working path again after switching the working path from the primary optical fiber to the standby optical fiber, and can effectively avoid mis-switching or untimely switching when the 1:1 type OLP device switches the working path, and ensure the transmission quality of service signals.
[0005] The present invention provides an optical line protection switching method, which is applied to a 1:1 type optical line protection OLP device, and includes the following steps.
[0006] Obtain the first signal transmitted by the primary optical fiber and the second signal transmitted by the standby 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 primary optical fiber is less than the set low threshold of the primary path service signal and the second optical power value received by the standby optical fiber is greater than the set high threshold of the standby path APS protocol signal, switch the working path from the primary optical fiber to the standby optical fiber; 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 greater than the set high threshold of the primary path APS protocol signal and the fourth optical power value received by the standby optical fiber is less than the set low threshold of the standby path service signal, switch the working path from the standby optical fiber to the primary optical fiber.
[0007] According to an optical line protection switching method provided by the present invention, the method further includes: 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 primary optical fiber is less than the set high threshold of the primary path service signal, generate a primary optical fiber fault warning signal; in the case where 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 standby optical fiber is less than the set high threshold of the standby path service signal, generate a standby optical fiber fault warning signal.
[0008] According to an optical line protection switching method provided by the present invention, after switching the working path from the primary optical fiber to the standby optical fiber, it further includes: in the case where the third optical power value received by the primary optical fiber is greater than the set high threshold of the primary path APS protocol signal and the fourth optical power value received by the standby optical fiber is greater than the set high threshold of the standby path service signal, if the current working path switching mode is the automatic return mode, switch the working path from the standby optical fiber to the primary optical fiber after waiting for the set return time.
[0009] According to an optical line protection switching method provided by the present invention, after switching the working path from the primary optical fiber to the standby optical fiber, it further includes: in the case where the third optical power value received by the primary optical fiber is greater than the set high threshold of the primary path APS protocol signal and the fourth optical power value received by the standby optical fiber is greater than the set high threshold of the standby path service signal, if the current working path switching mode is the automatic non-return mode, keep the working path on the standby optical fiber.
[0010] A method for optical line protection switching provided by the present invention, after obtaining the first signal transmitted by the primary optical fiber and the second signal transmitted by the standby optical fiber, further includes: 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 primary optical fiber is less than the set low threshold of the primary path APS protocol signal, generating a prompt signal for prohibiting the switching of the working path; 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 standby optical fiber is less than the set low threshold of the standby path APS protocol signal, generating a prompt signal for prohibiting the switching of the working path.
[0011] The present invention also provides an optical line protection switching device, which is applied to an optical line protection (OLP) device of the 1:1 type. The device includes: an acquisition module and a switching module.
[0012] The acquisition module is used to acquire the first signal transmitted by the primary optical fiber and the second signal transmitted by the standby optical fiber.
[0013] The switching module is used to switch the working path from the primary optical fiber to the standby optical fiber when the first signal is a service signal and the second signal is an automatic protection switching (APS) protocol signal, and if the first optical power value received by the primary optical fiber is less than the set low threshold of the primary path service signal and the second optical power value received by the standby optical fiber is greater than the set high threshold of the standby path APS protocol signal; and to switch the working path from the standby optical fiber to the primary optical fiber when the first signal is an APS protocol signal and the second signal is a service signal, and if the third optical power value received by the primary optical fiber is greater than the set high threshold of the primary path APS protocol signal and the fourth optical power value received by the standby optical fiber is less than the set low threshold of the standby path service signal.
[0014] An optical line protection switching device provided by the present invention further includes: a warning module, which is used to generate a primary optical fiber fault warning signal when the first signal is a service signal and the second signal is an automatic protection switching (APS) protocol signal, and if the first optical power value received by the primary optical fiber is less than the set high threshold of the primary path service signal; and to generate a standby optical fiber fault warning signal when the first signal is an APS protocol signal and the second signal is a service signal, and if the fourth optical power value received by the standby optical fiber is less than the set high threshold of the standby path 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 primary optical fiber to the standby optical fiber, if the third optical power value received by the primary optical fiber is greater than the set high threshold of the primary path APS protocol signal and the fourth optical power value received by the standby optical fiber is greater than the set high threshold of the standby path service signal, and if the current working path switching mode is the automatic return mode, switch the working path from the standby optical fiber to the primary optical fiber after waiting for the set return time.
[0016] The present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the optical line protection switching method as described in any one of the above is implemented.
[0017] The present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the optical line protection switching method as described in any one of the above is implemented.
[0018] The present invention further provides a computer program product, including a computer program. When the computer program is executed by a processor, the optical line protection switching method as described in any one of the above is implemented.
[0019] The optical line protection switching method, device, electronic device and storage medium provided by the present invention are applied to OLP devices of the 1:1 type. The first signal transmitted by the primary optical fiber and the second signal transmitted by the standby optical fiber are acquired. 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 primary optical fiber is less than the set low threshold of the primary path service signal and the second optical power value received by the standby optical fiber is greater than the set high threshold of the standby path APS protocol signal, the working path is switched from the primary optical fiber to the standby 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 primary optical fiber is greater than the set high threshold of the primary path APS protocol signal and the fourth optical power value received by the standby optical fiber is less than the set low threshold of the standby path service signal, the working path is switched from the standby optical fiber to the primary optical fiber. Thus, in the present invention, when the service works on the primary optical fiber and the standby optical fiber respectively, different service signal thresholds are set for the primary optical fiber and the standby optical fiber, such as the above-mentioned low threshold of the standby path service signal and the low threshold of the primary path service signal. At the same time, different thresholds are also set for the service signal and the APS protocol signal on the primary optical fiber, such as the above-mentioned low threshold of the primary path service signal and the high threshold of the primary path APS protocol signal, and different thresholds are also set for the service signal and the APS protocol signal on the standby optical fiber, such as the above-mentioned low threshold of the standby path service signal and the high threshold of the standby path APS protocol signal. Based on this, the present invention can set corresponding signal thresholds in combination with the working path and the signals transmitted on the optical fiber to accurately judge the situations that require path switching, effectively avoiding mis-switching or untimely switching when the 1:1 type OLP device switches the working path, and ensuring 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, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0021] Figure 1 is a structural schematic diagram of an optical line protection device in the related art.
[0022] Figure 2 is one of the flow schematic diagrams of the optical line protection switching method provided by the present invention.
[0023] Figure 3 is the second flow schematic diagram of the optical line protection switching method provided by the present invention.
[0024] Figure 4It is a schematic structural diagram of the optical line protection switching device provided by the present invention.
[0025] Figure 5 It is a schematic structural diagram of the electronic device provided by the present invention. Detailed implementation manners
[0026] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without creative efforts shall fall within the protection scope of the present invention.
[0027] In related technologies, the protection method of a 1:1 type optical line protection (OLP) device is selective transmission and selective reception (at the signal sending end, signals are selectively transmitted according to the conditions of the primary optical fiber and the standby optical fiber; at the signal receiving end, signals are selectively received according to the received signal quality or status).
[0028] As Figure 1 shown, when the first OLP device operates on the main path, the service signal is transmitted through the primary optical fiber (see the red part in the figure), and the APS protocol signal is transmitted through the standby optical fiber (see the blue part in the figure); TX and T1 are conducted, TX-I and T2 are conducted, RX and R1 are conducted, and RX-I and R2 are conducted. Among them, the electrical layer board of site A converts the service signal from an electrical signal into an optical signal and then outputs the service signal to a booster amplifier (BA). After the power of the service signal is amplified by the BA, the service signal is transmitted to the TX port of the OLP device. The service signal received by the TX port is transmitted to the T1 port through a 2×2 optical switch and then received by the primary optical fiber (at the sending end, only a very small part of the service signal is used for optical power detection, such as Figure 1 the Tx-PD part in Figure 1 is used for optical power detection), and is transmitted along the primary 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 (as
[0029] shown, after the second OLP device receives the service signal, the signal is enhanced by a pre-amplifier (PA) and then output to the electrical layer board of site B). Figure 1 As shown, the sending communication signal of the TX-I port inside the first OLP device is sent 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 standby optical fiber to the R2 port of the second OLP device at the opposite end.
[0030] Please continue to refer to Figure 1 , when the first OLP device operates on the main path, the second OLP device detects the optical signals received at the R1 port and the R2 port (as shown in Figure 1 , where R1-PD detects the optical signal received at the R1 port, and R2-PD detects the optical signal received at the R2 port). When the optical power of the optical signal from the working optical fiber is less than the LOS threshold of the working optical fiber, it is determined that the working optical fiber has failed. The first OLP device and the second OLP device transmit internal communication signals through the protection optical fiber to transfer the Automatic Protection Switching Protocol (APS), so as to ensure that the first OLP device and the second OLP device can simultaneously switch the working path to the protection optical fiber. In this case, after the working path is switched to the protection optical fiber, the OLP device operates on the protection path. Operating on the protection path means that the service signal is transmitted through the protection optical fiber, and the APS protocol signal is transmitted through the working optical fiber; TX and T2 are turned on, TX-I and T1 are turned on, RX and R2 are turned on, and RX-I and R1 are turned on. In this case, the protection optical fiber is used to transmit the service signal, and the working optical fiber is used to transmit the communication signals of the OLP device (such as the first OLP device and the second OLP device). Since the working optical fiber transmits the service signal when the working path is on the working optical fiber, and the protection optical fiber transmits the internal communication signal of the OLP device, the switching of the working path also causes the signals transmitted on the working optical fiber and the protection optical fiber to change. At this time, if the LOS threshold set for the working optical fiber and the LOS threshold of the protection optical fiber are used originally, due to the non-correspondence between the LOS threshold and the actual transmitted signal, mis-switching or untimely switching will occur, affecting the transmission quality of the service signal.
[0031] Based on the above problems, the embodiment of the present invention provides an optical line protection switching method, which can effectively avoid mis-switching or untimely switching when the 1:1 type OLP device switches the working path, and ensure the transmission quality of the service signal.
[0032] The following combines Figures 2 - 4 to describe the optical line protection switching method of the present invention.
[0033] Figure 2 is one of the flow diagrams of the optical line protection switching method provided by the embodiment of the present invention.
[0034] The optical line protection switching method provided by the embodiment of the present invention is applied to a 1:1 type optical line protection OLP device. As shown in Figure 2 , the method includes the following S210~S220.
[0035] S210: Obtain the first signal transmitted by the primary optical fiber and the 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 on 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 on the standby 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 primary optical fiber is less than the set low threshold of the primary path service signal and the second optical power value received by the standby optical fiber is greater than the set high threshold of the standby path APS protocol signal, switch the working path from the primary optical fiber to the standby 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 primary optical fiber is greater than the set high threshold of the primary path APS protocol signal and the fourth optical power value received by the standby optical fiber is less than the set low threshold of the standby path service signal, switch the working path from the standby optical fiber to the primary 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 standby optical fiber is used to transmit the APS protocol signal.
[0039] The low threshold of the primary path service signal is: the maximum optical power at which the service signal transmission on the primary optical fiber is interrupted when the working path is on the primary optical fiber.
[0040] The high threshold of the standby path APS protocol signal is: the minimum optical power at which the APS protocol signal can be transmitted with high quality on the standby optical fiber when the working path is on the primary optical fiber.
[0041] In the embodiments of the present application, the high-quality transmission of the signal means that: the signal can not only be stably transmitted, but also be transmitted with high quality. For example, the bit error rate of the transmission is lower than the bit error rate threshold (for example, 10 -6 )
[0042] Therefore, when the first optical power value received by the primary optical fiber is less than the set low threshold of the primary path service signal and the second optical power value received by the standby optical fiber is greater than the set high threshold of the standby path APS protocol signal, it indicates that the current primary optical fiber is abnormal (that is, it cannot normally transmit the service signal and the APS protocol signal), and at the same time the current standby optical fiber is normal (that is, it can normally transmit the service signal and the APS protocol signal), and switch the working path from the primary optical fiber to the standby 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 standby optical fiber, that is: the standby optical fiber is used to transmit the service signal, and the primary optical fiber is used to transmit the APS protocol signal.
[0044] The high threshold of the main path APS protocol signal is: when the working path is on the standby optical fiber, the minimum optical power of the APS protocol signal that the primary optical fiber can transmit with high quality.
[0045] The low threshold of the standby path service signal: when the working path is on the standby optical fiber, the maximum optical power at which the transmission of the service signal on the standby optical fiber is interrupted.
[0046] Therefore, when the third optical power value received by the primary optical fiber is greater than the set high threshold of the main path APS protocol signal and the fourth optical power value received by the standby optical fiber is less than the set low threshold of the standby path service signal, it indicates that the current standby optical fiber is abnormal (i.e., it cannot normally transmit the service signal and the APS protocol signal), and at the same time the current primary optical fiber is normal (i.e., it can normally transmit the service signal and the APS protocol signal), then the working path is switched from the standby optical fiber to the primary optical fiber.
[0047] The low threshold of the main path service signal, the high threshold of the main path APS protocol signal, the high threshold of the standby path APS protocol signal, and the low threshold of the standby path service signal can be set by those skilled in the art according to the actual situation.
[0048] It can be seen that in the present invention, when the service works on the primary optical fiber and the standby optical fiber respectively, different service signal thresholds are set for the primary optical fiber and the standby optical fiber, such as the low threshold of the standby path service signal and the low threshold of the main path service signal described above; at the same time, different thresholds are also set for the service signal and the APS protocol signal on the primary optical fiber, such as the low threshold of the main path service signal and the high threshold of the main path APS protocol signal described above, and different thresholds are also set for the service signal and the APS protocol signal on the standby optical fiber, such as the low threshold of the standby path service signal and the high threshold of the standby path APS protocol signal described above. Based on this, the present invention can set the corresponding signal thresholds in combination with the working path and the signals transmitted on the optical fiber to accurately judge the situation where path switching is required, effectively avoiding the situation of mis-switching or untimely switching when the 1:1 type OLP device switches the working path, and ensuring the transmission quality of the service signal.
[0049] In some embodiments, when the working path is the primary optical fiber, for the service signal transmitted on the primary optical fiber, the high threshold of the main path service signal and the low threshold of the main path service signal (see the introduction above) can be set; for the APS protocol signal transmitted on the primary optical fiber, the high threshold of the main path APS protocol signal (see the introduction above) and the low threshold of the main path APS protocol signal can be set.
[0050] The high threshold of the main path service signal is: when the working path is on the primary optical fiber, the minimum optical power of the service signal that the primary optical fiber can transmit with high quality.
[0051] In some embodiments, when the first signal is a service signal and the second signal is an Automatic Protection Switching (APS) protocol signal, and at this time the working path is on the primary optical fiber, if the first optical power value received by the primary optical fiber is less than the set high threshold of the main path service signal, it indicates that the primary optical fiber cannot currently transmit the service signal with high quality, and a fault warning signal for the primary optical fiber can be generated to give a warning about the fault of the primary optical fiber.
[0052] The low threshold of the main path APS protocol signal refers to: when the working path is on the standby optical fiber, the maximum optical power at which the transmission of the APS protocol signal by the primary optical fiber is interrupted.
[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 primary optical fiber is less than the set low threshold of the main path APS protocol signal, the working path cannot be switched normally at this time, and a prompt signal for prohibiting the switching of the working path is generated to prompt that the switching of the working path is prohibited.
[0054] The low threshold of the standby path APS protocol signal refers to: when the working path is on the primary optical fiber, the maximum optical power at which the transmission of the APS protocol signal by the primary optical fiber is interrupted.
[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 standby optical fiber is less than the set low threshold of the standby path APS protocol signal, the working path cannot be switched normally at this time, and a prompt signal for prohibiting the switching of the working path is generated to prompt that the switching of the working path is prohibited.
[0056] In some embodiments, when the working path is on the standby optical fiber, for the service signal transmitted by the standby optical fiber, a high threshold and a low threshold of the standby path service signal can be set (see the introduction above); for the APS protocol signal transmitted by the standby optical fiber, a high threshold of the standby path APS protocol signal (see the introduction above) and a low threshold of the standby path APS protocol signal can be set.
[0057] The high threshold of the standby path service signal is: when the working path is on the standby optical fiber, the minimum optical power of the service signal that the standby optical fiber can transmit with high quality.
[0058] When the working path is on the standby optical fiber, if the third optical power value received by the primary optical fiber is greater than the set high threshold of the primary APS protocol signal, it indicates that the primary optical fiber can transmit service signals normally at this time. If the fourth optical power value received by the standby optical fiber is greater than the set high threshold of the standby service signal at this time, it indicates that the standby optical fiber can transmit service signals with high quality. In this case, normal transmission of service signals can be ensured without switching the current working path. Therefore, if the current working path switching mode is the automatic return mode, the working path can be switched from the standby optical fiber to the primary optical fiber after waiting for the set return time; if the current working path switching mode is the automatic non-return mode, the working path can be kept on the standby optical fiber to achieve high-quality transmission of service signals.
[0059] In some embodiments, when the first signal is an APS protocol signal and the second signal is a service signal, and the working path is on the standby optical fiber at this time, if the fourth optical power value received by the standby optical fiber is less than the set high threshold of the standby service signal, it indicates that the standby optical fiber is currently abnormal, and a standby optical fiber fault warning signal can be generated to warn of the standby optical fiber fault.
[0060] It should be noted that in the embodiments of the present invention, the high threshold of the primary service signal is higher than the low threshold of the primary service signal, the high threshold of the primary APS protocol signal is higher than the low threshold of the primary APS protocol signal, the high threshold of the standby service signal is higher than the low threshold of the standby service signal, and the high threshold of the standby APS protocol signal is higher than the low threshold of the standby APS protocol signal.
[0061] Based on the introduction of the above embodiments, in some examples, as Figure 3 shown, the execution process in the embodiments of the present invention may include the following S301~S309.
[0062] S301: Obtain the first signal transmitted by the primary optical fiber and the second signal transmitted by the standby optical fiber.
[0063] S302: When the first signal is a service signal and the second signal is an APS protocol signal, determine whether the first optical power value received by the primary optical fiber and the second optical power value received by the standby optical fiber satisfy: the first optical power value is less than the set low threshold of the primary service signal and the second optical power value is greater than the set high threshold of the standby APS protocol signal.
[0064] If the judgment result is yes, that is, the first optical power value is less than the set low threshold of the primary service signal and the second optical power value is greater than the set high threshold of the standby APS protocol signal, execute S303.
[0065] If the judgment result is no, that is, the first optical power value is greater than or equal to the set low threshold of the primary service signal or the second optical power value is less than or equal to the set high threshold of the standby APS protocol signal, execute S304.
[0066] S303: Switch the working path from the primary optical fiber to the standby optical fiber.
[0067] After executing S303, S305 can be executed.
[0068] S304: Keep the current working path unchanged.
[0069] S305: Determine whether the third optical power value received by the primary optical fiber and the fourth optical power value received by the standby optical fiber satisfy: the third optical power value is greater than the set high threshold of the primary path APS protocol signal, and the fourth optical power value is less than the set low threshold of the standby path service signal.
[0070] If the judgment result is yes, that is, the third optical power value is greater than the set high threshold of the primary path APS protocol signal, and the fourth optical power value is less than the set low threshold of the standby path service signal, execute S306; If the judgment result is no, that is, the third optical power value is less than or equal to the set high threshold of the primary path APS protocol signal, or the fourth optical power value is greater than or equal to the set low threshold of the standby path service signal, execute S307.
[0071] S306: Switch the working path from the standby optical fiber to the primary optical fiber.
[0072] 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 high threshold of the primary path APS protocol signal, and the fourth optical power value is greater than the set high threshold of the standby path service signal.
[0073] If the judgment result is yes, that is, the third optical power value is greater than the set high threshold of the primary path APS protocol signal, and the fourth optical power value is greater than the set high threshold of the standby path service signal. In this case, if the current working path switching mode is the automatic return mode, execute S308; if the current working path switching module is the automatic non-return mode, execute S309.
[0074] If the judgment result is no, that is, the third optical power value is less than or equal to the set high threshold of the primary path APS protocol signal, or the fourth optical power value is less than or equal to the set high threshold of the standby path service signal, execute S304.
[0075] S308: After waiting for the set return time, switch the working path from the standby optical fiber to the primary optical fiber.
[0076] S309: Keep the current working path on the standby optical fiber.
[0077] The optical line protection switching method provided by the present invention is applied to an OLP device of the 1:1 type, and obtains a first signal transmitted by the primary optical fiber and a second signal transmitted by the standby 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 primary optical fiber is less than the set low threshold of the primary path service signal and the second optical power value received by the standby optical fiber is greater than the set high threshold of the standby path APS protocol signal, the working path is switched from the primary optical fiber to the standby 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 primary optical fiber is greater than the set high threshold of the primary path APS protocol signal and the fourth optical power value received by the standby optical fiber is less than the set low threshold of the standby path service signal, the working path is switched from the standby optical fiber to the primary optical fiber. Thus, in the present invention, when the service works on the primary optical fiber and the standby optical fiber respectively, different service signal thresholds are set for the primary optical fiber and the standby optical fiber, such as the above-mentioned low threshold of the standby path service signal and the low threshold of the primary path service signal; at the same time, different thresholds are also set for the service signal and the APS protocol signal on the primary optical fiber, such as the above-mentioned low threshold of the primary path service signal and the high threshold of the primary path APS protocol signal, and different thresholds are also set for the service signal and the APS protocol signal on the standby optical fiber, such as the above-mentioned low threshold of the standby path service signal and the high threshold of the standby path APS protocol signal. Based on this, the present invention can set corresponding signal thresholds in combination with the working path and the signals transmitted on the optical fiber to accurately determine the situation where path switching is required, effectively avoiding the situation of mis-switching or untimely switching when the 1:1 type OLP device switches the working path, and ensuring the transmission quality of the service signal.
[0078] The optical line protection switching device provided by the present invention will be described below. The optical line protection switching device described below can be mutually referred to with the optical line protection switching method described above.
[0079] Figure 4 It is a schematic structural diagram of the optical line protection switching device provided by an embodiment of the present invention. It is applied to an OLP device of the 1:1 type. As Figure 4 shown, the optical line protection switching device 400 includes: an acquisition module 401 and a switching module 402.
[0080] The acquisition module 401 is configured to acquire a first signal transmitted by the primary optical fiber and a second signal transmitted by the standby optical fiber.
[0081] A switching module 402, configured to switch the working path from the primary optical fiber to the backup optical fiber when the first signal is a service signal and the second signal is an automatic protection switching (APS) protocol signal, and the first optical power value received by the primary optical fiber is less than a set low threshold of the primary path service signal and the second optical power value received by the backup optical fiber is greater than a set high threshold of the backup path APS protocol signal; and to switch the working path from the backup optical fiber to the primary optical fiber when the first signal is an APS protocol signal and the second signal is a service signal, and the third optical power value received by the primary optical fiber is greater than a set high threshold of the primary path APS protocol signal and the fourth optical power value received by the backup optical fiber is less than a set low threshold of the backup path service signal.
[0082] 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 primary 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 primary optical fiber is less than a set low threshold of the primary path service signal and the second optical power value received by the backup optical fiber is greater than a set high threshold of the backup path APS protocol signal, the working path is switched from the primary 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 primary optical fiber is greater than a set high threshold of the primary path APS protocol signal and the fourth optical power value received by the backup optical fiber is less than a set low threshold of the backup path service signal, the working path is switched from the backup optical fiber to the primary optical fiber. Thus, in the present invention, when the service works on the primary optical fiber and the backup optical fiber respectively, different service signal thresholds are set for the primary optical fiber and the backup optical fiber, such as the above-mentioned low threshold of the backup path service signal and the low threshold of the primary path service signal. At the same time, different thresholds are also set for the service signal and the APS protocol signal on the primary optical fiber, such as the above-mentioned low threshold of the primary path service signal and the high threshold of the primary path APS protocol signal, and different thresholds are also set for the service signal and the APS protocol signal on the backup optical fiber, such as the above-mentioned low threshold of the backup path service signal and the high threshold of the backup path APS protocol signal. Based on this, the present invention can set corresponding signal thresholds by combining the working path and the signals transmitted on the optical fiber to accurately determine the situation where path switching is required, effectively avoiding mis-switching or untimely switching when the 1:1 type OLP device switches the working path, and ensuring the transmission quality of the service signal.
[0083] In some embodiments, the optical line protection switching device further includes: an early warning module ( Figure 4(not shown in the figure) is used to generate a main fiber failure warning signal when the first signal is a service signal and the second signal is an automatic protection switching (APS) protocol signal, and the first optical power value received by the main fiber is less than the set high threshold of the main path service signal; 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 standby fiber is less than the set high threshold of the standby path service signal, a standby fiber failure warning signal is generated.
[0084] In some embodiments, the switching module 402 is further configured to, after switching the working path from the main fiber to the standby fiber, when the third optical power value received by the main fiber is greater than the set high threshold of the main path APS protocol signal and the fourth optical power value received by the standby fiber is greater than the set high threshold of the standby path service signal, if the current working path switching mode is the automatic return mode, switch the working path from the standby fiber to the main fiber after waiting for the set return time.
[0085] Figure 5 An example of the physical structure diagram of an electronic device is as Figure 5 shown. The electronic device may include: a processor 510, a communication interface 520, a memory 530, and a communication bus 540. Among them, 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 logical instructions in the memory 530 to execute the optical line protection switching method, which includes: obtaining a first signal transmitted by the main fiber and a second signal transmitted by the standby 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 fiber is less than the set low threshold of the main path service signal and the second optical power value received by the standby fiber is greater than the set high threshold of the standby path APS protocol signal, switch the working path from the main fiber to the standby 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 fiber is greater than the set high threshold of the main path APS protocol signal and the fourth optical power value received by the standby fiber is less than the set low threshold of the standby path service signal, switch the working path from the standby fiber to the main fiber.
[0086] In addition, when the logical instructions in the aforementioned memory 530 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this 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, a server, or a network device, etc.) to execute all or part of the steps of the methods in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
[0087] On the other hand, the present invention also provides a computer program product. The computer program product 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 each of the above methods. The method includes: obtaining a first signal transmitted by a primary optical fiber and a second signal transmitted by a standby 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 primary optical fiber is less than a set low threshold of the primary path service signal and the second optical power value received by the standby optical fiber is greater than a set high threshold of the standby path APS protocol signal, switching the working path from the primary optical fiber to the standby optical fiber; 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 greater than a set high threshold of the primary path APS protocol signal and the fourth optical power value received by the standby optical fiber is less than a set low threshold of the standby path service signal, switching the working path from the standby optical fiber to the primary optical fiber.
[0088] In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the optical line protection switching method provided by the above-mentioned various methods. The method includes: obtaining a first signal transmitted by a primary optical fiber and a second signal transmitted by a standby 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 primary optical fiber is less than a set low threshold of the primary path service signal and the second optical power value received by the standby optical fiber is greater than a set high threshold of the standby path APS protocol signal, switching the working path from the primary optical fiber to the standby optical fiber; 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 greater than a set high threshold of the primary path APS protocol signal and the fourth optical power value received by the standby optical fiber is less than a set low threshold of the standby path service signal, switching the working path from the standby optical fiber to the primary optical fiber.
[0089] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative efforts.
[0090] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the essence of the above technical solutions, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disc, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiments.
[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments or perform equivalent replacements for some of the technical features. However, such modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of each embodiment of the present invention.
Claims
1. An optical line protection switching method, characterized in that, Applied to a 1:1 type optical line protection (OLP) device, the method includes: Obtain a first signal transmitted by the primary optical fiber and a second signal transmitted by the standby 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 primary optical fiber is less than the set low threshold of the primary path service signal and the second optical power value received by the standby optical fiber is greater than the set high threshold of the standby path APS protocol signal, switch the working path from the primary optical fiber to the standby 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 primary optical fiber is greater than the set high threshold of the primary path APS protocol signal and the fourth optical power value received by the standby optical fiber is less than the set low threshold of the standby path service signal, switch the working path from the standby optical fiber to the primary optical fiber.
2. The optical line protection switching method according to claim 1, characterized in that The method further includes: 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 primary optical fiber is less than the set high threshold of the primary path service signal, generate a primary optical fiber fault warning signal; 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 standby optical fiber is less than the set high threshold of the standby path service signal, generate a standby optical fiber fault warning signal.
3. The optical line protection switching method according to claim 1 or 2, characterized in that After switching the working path from the primary optical fiber to the standby optical fiber, it further includes: When the third optical power value received by the primary optical fiber is greater than the set high threshold of the primary path APS protocol signal and the fourth optical power value received by the standby optical fiber is greater than the set high threshold of the standby path service signal, if the current working path switching mode is the automatic return mode, switch the working path from the standby optical fiber to the primary 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 switching the working path from the primary optical fiber to the standby optical fiber, it further includes: When the third optical power value received by the primary optical fiber is greater than the set high threshold of the primary path APS protocol signal and the fourth optical power value received by the standby optical fiber is greater than the set high threshold of the standby path service signal, if the current working path switching mode is the automatic non-return mode, keep the working path on the standby 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 primary optical fiber and the second signal transmitted by the standby optical fiber, it further includes: 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 primary optical fiber is less than the set low threshold of the primary path APS protocol signal, generate a prompt signal for prohibiting switching the working path; 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 standby optical fiber is less than the set low threshold of the standby path APS protocol signal, generate a prompt signal for prohibiting switching the working path.
6. An optical line protection switching device, characterized in that, Applied to a 1:1 type optical line protection (OLP) device, the device includes: An acquisition module, configured to acquire a first signal transmitted by a primary optical fiber and a second signal transmitted by a standby optical fiber; A switching module, configured to, 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 primary optical fiber is less than a set low threshold of the primary path service signal and the second optical power value received by the standby optical fiber is greater than a set high threshold of the standby path APS protocol signal, switch the working path from the primary optical fiber to the standby optical fiber; and, 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 primary optical fiber is greater than a set high threshold of the primary path APS protocol signal and the fourth optical power value received by the standby optical fiber is less than a set low threshold of the standby path service signal, switch the working path from the standby optical fiber to the primary optical fiber.
7. The optical line protection switching device according to claim 6, wherein The apparatus further includes: An early warning module, configured to, 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 primary optical fiber is less than a set high threshold of the primary path service signal, generate an early warning signal for a primary optical fiber fault; 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 standby optical fiber is less than a set high threshold of the standby path service signal, generate an early warning signal for a standby optical fiber fault.
8. The optical line protection switching device according to claim 6 or 7, characterized in that, The switching module is further configured to, after switching the working path from the primary optical fiber to the standby optical fiber, when the third optical power value received by the primary optical fiber is greater than a set high threshold of the primary path APS protocol signal and the fourth optical power value received by the standby optical fiber is greater than a set high threshold of the standby path service signal, if the current working path switching mode is an automatic return mode, switch the working path from the standby optical fiber to the primary optical fiber after waiting for a set return time.
9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and running on the processor, characterized in that, The processor, when executing the computer program, implements the optical line protection switching method according to any one of claims 1 to 5.
10. A non-transitory computer-readable storage medium storing a computer program thereon, characterized in that, The computer program, when executed by a processor, implements the optical line protection switching method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Optical network protection control method, optical network protection control device and network management server
CN108234016A
Switching method and device of OLP transmission link, storage medium and OLP
CN110995336A
Zero insertion loss OLP optical line protection switching method and device based on 400G all-optical network
CN119094011A
1 +1 type optical line protection switching method, device, equipment and medium
CN120034251A
Protection device and protection method for optical network
US20120170925A1