Optical monitoring device and method and optical line protection device and method

The optical signal identification is detected by the optical monitoring device and the switching of the optical receiving device is controlled, which solves the problem of misjudgment of the optical line protection device after the optical fiber link failure recovery, and realizes stable transmission of services in the optical communication system, saving signaling overhead.

CN120342476APending Publication Date: 2025-07-18HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410063495.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-16
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

After the optical fiber link failure recovery, the optical circuit protection equipment is not able to accurately switch back to the main optical fiber link based on the misjudgment of the optical signal power, especially when the melted fiber is misconnected or the non-service optical signal is incorrectly injected.

Method used

By introducing an optical monitoring device into the optical communication system, it is detected whether the optical signal identification transmitted in the main optical fiber link meets the preset conditions, and sends corresponding information to the optical line protection device to control the switching of the optical receiving device, ensuring that the optical signal corresponds to the link before switching.

Benefits of technology

It avoids the incorrect switching of optical circuit protection equipment, ensures normal service transmission, and saves signaling overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120342476A_ABST
    Figure CN120342476A_ABST
Patent Text Reader

Abstract

The invention provides an optical monitoring device and method and an optical line protection device and method.The optical monitoring device is used for detecting whether an identifier carried by an optical signal transmitted in a main optical fiber link meets a preset condition or not when an optical receiving device is communicated with a standby optical fiber link; sending first information to the optical line protection equipment under the condition of determining that the identifier meets a preset condition, wherein the first information is used for indicating the optical line protection equipment to maintain communication between the optical receiving equipment and the standby optical fiber link; or sending second information to the optical line protection equipment under the condition of determining that the identifier does not meet the preset condition, wherein the second information is used for indicating the optical line protection equipment to switch the optical receiving equipment from being communicated with the standby optical fiber link to being communicated with the main optical fiber link. Therefore, after the fault in the main optical fiber link is recovered, whether the optical signal transmitted in the link corresponds to the link or not is judged, then link switching is performed, and service transmission interruption is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of optical communication, and particularly to an optical monitoring device, method, optical line protection device, and method. Background Art

[0002] In an optical communication system, a primary optical fiber link and a backup optical fiber link are generally arranged between an optical transmitting device and an optical receiving device. When the primary optical fiber link is normal, the primary optical fiber link is used to transmit optical signals, and the optical signals carry service information. After a fiber link failure occurs in the optical communication system, an optical line protection device configured on the side of the optical receiving device performs optical power monitoring. After detecting that the primary optical fiber link fails, an alarm prompt is issued and the optical receiving device is automatically switched to be connected to the backup optical fiber link. After the failure of the primary optical fiber link is restored, the optical line protection device detects that the optical signal in the primary optical fiber link has returned to the normal power threshold, and automatically switches the optical receiving device back to be connected to the primary optical fiber link, so as to ensure the timely restoration of services after the fiber link fails.

[0003] However, since the optical line protection device only uses the power of the optical signal as the criterion for link switching, if there is a misconnection during fiber splicing or other misinjection of non-service optical signals during the repair of the fiber link, after the optical line protection device switches back to the primary optical fiber link, service interruption will occur. Summary of the Invention

[0004] This application provides an optical monitoring device, method, optical line protection device, and method. After the failure of the primary optical fiber link in the optical communication system is restored, it is determined whether the optical signal transmitted in the primary optical fiber link corresponds to the link, and then the link is switched, so as to avoid mis-switching of the optical line protection device and ensure the normal transmission of services.

[0005] In a first aspect, an optical monitoring device is provided for use in an optical communication system. The optical communication system includes an optical transmitting device, an optical receiving device, and an optical line protection device. A primary optical fiber link and a backup optical fiber link are arranged between the optical transmitting device and the optical receiving device. The optical line protection device is used to control the optical receiving device to switch between being connected to the primary optical fiber link and being connected to the backup optical fiber link. Among them, the optical monitoring device is used to: when the optical receiving device is connected to the backup optical fiber link, detect whether the identifier carried by the optical signal transmitted in the primary optical fiber link meets a preset condition; when it is determined that the identifier meets the preset condition, send a first message to the optical line protection device, and the first message is used to instruct the optical line protection device to maintain the connection between the optical receiving device and the backup optical fiber link; or when it is determined that the identifier does not meet the preset condition, send a second message to the optical line protection device, and the second message is used to instruct the optical line protection device to switch the optical receiving device from being connected to the backup optical fiber link to being connected to the primary optical fiber link.

[0006] Therefore, after the failure recovery in the primary optical fiber link, it is determined whether the optical signal transmitted in the link corresponds to the link, and then the link is switched, so as to avoid the optical line protection device misjudging that the optical signal in the primary optical fiber link has returned to normal and automatically switching, resulting in the interruption of service transmission.

[0007] Combined with the first aspect, in some implementation manners of the first aspect, the identifier satisfying the preset condition includes: the identifier corresponding to the sending node and / or the target receiving node of the optical signal; or the identifier corresponding to the sending device and / or the target receiving device of the optical signal. Thus, the optical monitoring device can determine whether the optical signal transmitted in the primary link corresponds to the link by detecting the identifier, so as to determine whether there is a fiber fusion error or mis-injection of non-service light in the optical communication system.

[0008] Combined with the first aspect, in some implementation manners of the first aspect, the identifier is a path trace identifier. Thus, the existing optical signal is reused as the determination method for the optical line protection device to switch the link, saving signaling overhead.

[0009] Combined with the first aspect, in some implementation manners of the first aspect, the optical signal includes an optical sensing signal, and the identifier is configured in the optical sensing signal. Thus, the existing optical signal is reused as the determination method for the optical line protection device to switch the link, saving signaling overhead.

[0010] In a second aspect, an optical line protection device is provided for use in an optical communication system. The optical communication system includes an optical sending device, an optical receiving device, and an optical line protection device. A primary optical fiber link and a standby optical fiber link are provided between the optical sending device and the optical receiving device. The optical line protection device is used to control the optical receiving device to switch between being connected to the primary optical fiber link and being connected to the standby optical fiber link. Among them, the optical line protection device is used for: after a failure occurs in the primary optical fiber link, switching the optical receiving device from being connected to the primary optical fiber link to being connected to the standby optical fiber link; receiving a first piece of information, and maintaining the connection between the optical receiving device and the standby optical fiber link after receiving the first piece of information; or receiving a second piece of information, and switching the optical receiving device from being connected to the standby optical fiber link to being connected to the primary optical fiber link after receiving the second piece of information.

[0011] Therefore, after the optical signal power in the primary optical fiber link recovers to the normal threshold, the optical line protection device will not directly and automatically switch back to the primary optical fiber link, but will perform link switching according to whether the optical signal transmitted in the link corresponds to the link, avoiding the interruption of service transmission.

[0012] In a third aspect, an optical communication system is provided, which includes an optical transmitting device, an optical receiving device, and the optical line protection device according to the second aspect. A primary optical fiber link and a backup optical fiber link are arranged between the optical transmitting device and the optical receiving device. An optical monitoring device as described in the first aspect and any of its possible implementations is coupled in the primary optical fiber link.

[0013] In a fourth aspect, an optical monitoring method is provided for use in an optical communication system. The optical communication system includes an optical transmitting device, an optical receiving device, and an optical line protection device. A primary optical fiber link and a backup optical fiber link are arranged between the optical transmitting device and the optical receiving device. The optical line protection device is configured to control the optical receiving device to switch between being connected to the primary optical fiber link and being connected to the backup optical fiber link. The method includes: when the optical receiving device is connected to the backup optical fiber link, detecting whether an identifier carried by an optical signal transmitted in the primary optical fiber link meets a preset condition; when it is determined that the identifier meets the preset condition, sending a first piece of information to the optical line protection device, where the first piece of information is used to instruct the optical line protection device to maintain the connection between the optical receiving device and the backup optical fiber link; or when it is determined that the identifier does not meet the preset condition, sending a second piece of information to the optical line protection device, where the second piece of information is used to instruct the optical line protection device to switch the optical receiving device from being connected to the backup optical fiber link to being connected to the primary optical fiber link.

[0014] Thus, after a fault in the primary optical fiber link is recovered, it is determined whether the optical signal transmitted in the link corresponds to the link, and then the link is switched, avoiding the optical line protection device misjudging that the optical signal in the primary optical fiber link has returned to normal and automatically switching, resulting in service transmission interruption.

[0015] In combination with the fourth aspect, in some implementations of the fourth aspect, the identifier meeting the preset condition includes: the identifier corresponding to the sending node and / or the target receiving node of the optical signal; or the identifier corresponding to the sending device and / or the target receiving device of the optical signal. Thus, the optical monitoring device can determine whether the optical signal transmitted in the primary link corresponds to the link by detecting the identifier, so as to determine whether there is a fiber fusion error or mis-injection of non-service light in the optical communication system.

[0016] In combination with the fourth aspect, in some implementations of the fourth aspect, the identifier is a path trace identifier. Thus, an existing optical signal is reused as a way to determine the link switching of the optical line protection device, saving signaling overhead.

[0017] In combination with the fourth aspect, in some implementations of the fourth aspect, the optical signal includes an optical sensing signal, and the identifier is configured in the optical sensing signal. Thus, an existing optical signal is reused as a way to determine the link switching of the optical line protection device, saving signaling overhead.

[0018] Fifth aspect, there is provided an optical line protection method for an optical communication system. The optical communication system includes an optical transmitting device, an optical receiving device, and an optical line protection device. A primary optical fiber link and a backup optical fiber link are provided between the optical transmitting device and the optical receiving device. The optical line protection device is configured to control the optical receiving device to switch between being connected to the primary optical fiber link and being connected to the backup optical fiber link. It is characterized by including: after a failure occurs in the primary optical fiber link, switching the optical receiving device from being connected to the primary optical fiber link to being connected to the backup optical fiber link; receiving a first piece of information, and after receiving the first piece of information, maintaining the connection between the optical receiving device and the said backup optical fiber link; or receiving a second piece of information, and after receiving the second piece of information, switching the optical receiving device from being connected to the backup optical fiber link to being connected to the primary optical fiber link.

[0019] Thus, after the optical signal power in the primary optical fiber link returns to the normal threshold, the optical line protection device does not directly and automatically switch back to the primary optical fiber link. Instead, it performs a link switch based on whether the optical signal transmitted in the link corresponds to the link, avoiding service transmission interruption.

[0020] Sixth aspect, there is provided a computer-readable medium storing program code for execution by a device, and the program code includes an infrared imaging method for executing the second aspect or any one of the implementation manners of the second aspect.

[0021] Seventh aspect, there is provided a chip including a processor and a communication interface. The processor reads instructions stored on a memory through the communication interface and executes the infrared imaging method in the second aspect or any one of the implementation manners of the second aspect. Description of the Drawings

[0022] Figure 1 It is a schematic diagram of an optical communication system provided by an embodiment of the present application.

[0023] Figure 2 It is a schematic diagram of an optical monitoring method provided by an embodiment of the present application.

[0024] Figure 3 It is a schematic diagram of an optical line protection method provided by an embodiment of the present application. Detailed Embodiments

[0025] Next, the technical solutions in the present application will be described in conjunction with the accompanying drawings.

[0026] In an optical communication system, a primary optical fiber link and a standby optical fiber link are generally set between an optical transmitting device and an optical receiving device. When the primary optical fiber link is normal, the primary optical fiber link is used to transmit optical signals, and the optical signals carry service information. After a fiber link failure occurs in the optical communication system, an optical line protection device (OLP) configured on the optical receiving device side will perform optical power monitoring. After detecting that the primary optical fiber link has failed, an alarm prompt is issued and the optical receiving device is automatically switched to be connected to the standby optical fiber link. After the failure of the primary optical fiber link is restored, the optical line protection device monitors that the optical signal in the primary optical fiber link has returned to the normal power threshold, and automatically switches the optical receiving device back to be connected to the primary optical fiber link, so as to ensure the timely restoration of services after the fiber link fails.

[0027] However, since the optical line protection device only uses the power of the optical signal as the determination for link switching, if there is a misconnection during fiber splicing during the repair of the fiber link, or the misinjection of other non-service optical signals, for example, during equipment maintenance, due to the injection of the detection optical signal of the optical time domain reflectometer (OTDR), the optical receiving device is automatically switched back to be connected to the primary optical fiber link, and the optical receiving device cannot receive the optical signal normally, resulting in service interruption.

[0028] In view of this, the present application provides an optical monitoring device, method, and optical line protection device and method. After the failure of the primary optical fiber link in the optical communication system is restored, it is determined whether the optical signal transmitted in the primary optical fiber link corresponds to the link, and then the link is switched, so as to avoid mis-switching of the optical line protection device and ensure the normal transmission of services.

[0029] Figure 1 It is a schematic diagram of an optical communication system provided by an embodiment of the present application. As Figure 1 shown, the system includes an optical transmitting device 100, an optical receiving device 200, a primary optical fiber link 310, a standby optical fiber link 320, an optical monitoring device 400, an optical line protection device 510, and an optical line protection device 520.

[0030] Among them, a primary optical fiber link 310 and a standby optical fiber link 320 are set between the optical transmitting device 100 and the optical receiving device 200. The optical line protection device 510 is used to control the optical transmitting device 100 to switch between being connected to the primary optical fiber link 310 and the standby optical fiber link 320. The optical line protection device 520 is used to control the optical receiving device 200 to switch between being connected to the primary optical fiber link 310 and the standby optical fiber link 320.

[0031] The optical transmission device 100 is used to transmit a first optical signal through the primary optical fiber link 310 or transmit a second optical signal through the standby optical fiber link 320. Correspondingly, the optical receiving device 200 is used to receive the first optical signal or the second optical signal. The first optical signal and the second optical signal carry service information.

[0032] Wherein, the optical monitoring device 400 is used to detect whether the identifier carried by the optical signal transmitted in the primary optical fiber link 310 meets a preset condition when the optical receiving device 200 is connected to the standby optical fiber link 320. In addition, the optical monitoring device 400 can also detect the identifier carried by the optical signal transmitted in the primary optical fiber link 310 at other times, and this application does not limit this.

[0033] In some implementation manners, the optical monitoring device 400 is further used to send a first piece of information to the optical line protection device when it is determined that the identifier does not meet the preset condition, and the first piece of information is used to instruct the optical line protection device to maintain the connection between the optical receiving device and the standby optical fiber link 320. Therefore, after the fault in the primary optical fiber link 310 is restored, it is determined whether the optical signal transmitted in the link corresponds to the link, and when it is determined that the optical signal transmitted therein is incorrect, the optical line protection device is instructed to maintain the connection between the optical receiving device and the standby optical fiber link 320, so as to avoid the optical line protection device misjudging and automatically switching after the optical signal in the primary optical fiber link 310 is restored to normal, resulting in service transmission interruption.

[0034] In some implementation manners, the optical monitoring device 400 is further used to send a second piece of information to the optical line protection device when it is determined that the identifier meets the preset condition, and the second piece of information is used to instruct the optical line protection device to switch the optical receiving device from being connected to the standby optical fiber link 320 to being connected to the primary optical fiber link 310. Therefore, after the fault in the primary optical fiber link 310 is restored, it is determined whether the optical signal transmitted in the link corresponds to the link, and when it is determined that the optical signal transmitted therein is correct, the optical line protection device is instructed to switch the optical receiving device back to being connected to the primary optical fiber link 310 to ensure normal service transmission.

[0035] In some implementations, an identifier is used to indicate a transmitting node and / or a target receiving node of an optical signal. Alternatively, the identifier is used to indicate a transmitting device and / or a target receiving device of the optical signal. That is, the identifier meeting the preset conditions includes: the identifier corresponding to the transmitting node and / or the target receiving node of the optical signal; or the identifier corresponding to the transmitting device and / or the target receiving device of the optical signal. Among them, the identifier can be transmitted periodically. The preset conditions can be pre-configured in the optical detection device 400 to determine whether the identifier meets the preset conditions. In addition, the transmitting node of the optical signal can also be understood as a source node or a source access point, and the target receiving node can also be understood as a sink node or a sink access point. The transmitting device of the optical signal can also be understood as a transmitting network element according to the actual situation, and the target receiving device can also be understood as a receiving network element. Thus, the optical monitoring device can detect the identifier to determine whether the optical signal transmitted in the working link corresponds to the link, so as to determine whether there is a fiber fusion error or mis-injection of non-service light in the optical communication system.

[0036] As a specific implementation, the identifier can be a trail trace identifier (TTI). The identifier can be in the form of a string and is carried by a monitoring optical signal included in the optical signal transmitted through the working optical fiber link 310. The identifier can be specifically located in the overhead of the optical transmission section (OTS). The optical transmitting device can transmit the identifier in the optical signal periodically. The optical monitoring device 400 can detect the identifier periodically and compare the identifier with an expected value to determine whether the identifier is correct. Thus, the existing optical signal is reused as a determination method for the optical line protection device to switch the link, saving signaling overhead. As shown in Figure 1 (a) below, the optical monitoring device 400 can be located between the optical amplifier device 610 and the optical amplifier device 620 in the working optical fiber link 310. The optical monitoring device 400 can be specifically arranged on a fiber interface unit (FIU) single board. The optical monitoring device 400 can be an optical supervisory channel (OSC) network device.

[0037] As another specific implementation, the optical signal transmitted in the working optical fiber link 310 includes a light sensor (LS) signal, and the identifier can be configured in the light sensor signal. The identifier can specifically indicate a network element device number. Alternatively, the identifier can also indicate a wavelength channel or optical performance, etc., which is determined according to the actual situation. Thus, the existing optical signal is reused as a determination method for the optical line protection device to switch the link, saving signaling overhead. As shown in Figure 1 (b) below, the optical monitoring device 400 can be configured on the same single board as the optical amplifier device 600. Or it can be asFigure 1 As shown in (c), the optical monitoring device 400 and the optical line protection device 520 are configured on the same single board. The optical monitoring device 400 can be coupled to the working optical fiber link 310 through an optical multiplexer / demultiplexer.

[0038] The optical line protection device 520 is used to switch the optical receiving device from being connected to the working optical fiber link 310 to being connected to the protection optical fiber link 320 after a fault occurs in the working optical fiber link 310. The optical line protection device 520 may include an optical switch, and the link switching is realized through the optical switch.

[0039] In some implementations, the optical line protection device 520 is further configured to receive a first piece of information, and after receiving the first piece of information, maintain the connection between the optical receiving device and the protection optical fiber link 320. Thus, after the optical signal power in the working optical fiber link 310 returns to the normal threshold, the optical line protection device does not directly and automatically switch back to the working optical fiber link 310, but performs link switching according to whether the optical signal transmitted in the link corresponds to the link, so as to avoid service transmission interruption.

[0040] In some implementations, the optical line protection device 520 is further configured to receive a second piece of information, and after receiving the second piece of information, switch the optical receiving device from being connected to the protection optical fiber link 320 to being connected to the working optical fiber link 310. Thus, after the optical signal power in the working optical fiber link 310 returns to the normal threshold, the optical line protection device does not directly and automatically switch back to the working optical fiber link 310, but performs link switching according to whether the optical signal transmitted in the link corresponds to the link, so as to avoid service transmission interruption.

[0041] In addition, an optical power detection unit may be provided in the optical line protection device 520. The power detection unit is used to detect the optical signal transmitted in the working optical fiber link 310 and the optical signal transmitted in the protection optical fiber link 320. Among them, when the power detection unit detects that the optical signal transmitted in the working optical fiber link 310 is less than the threshold, the optical receiving device is switched from being connected to the working optical fiber link 310 to being connected to the protection optical fiber link 320. The optical line protection device 520 may also switch the optical receiving device from being connected to the protection optical fiber link 320 to being connected to the working optical fiber link 310 when receiving the second piece of information and the power detection unit detects that the optical signal transmitted in the working optical fiber link 310 is greater than the threshold.

[0042] In addition, as Figure 1 shown, the optical communication system may be in a wavelength division multiplexing form, where the first optical signal and the second optical signal include optical signals of N wavelengths, and N is a positive integer. The optical communication system may also be in a bidirectional form, that is, an optical receiving device is further configured on one side of the optical transmitting device, and a corresponding receiving device is also configured on one side of the optical receiving device. It is specifically determined according to the configuration of the specific optical communication system.

[0043] The device system embodiments of the present application have been described above. Next, the corresponding method embodiments will be introduced. The device system embodiments and the method embodiments correspond to each other. Therefore, the parts not described in detail can be referred to each other.

[0044] Figure 2 FIG. is a schematic diagram of an optical monitoring method provided by an embodiment of the present application. The optical monitoring method is used in an optical communication system. The optical communication system includes an optical transmitting device, an optical receiving device, and an optical line protection device. A primary optical fiber link and a backup optical fiber link are provided between the optical transmitting device and the optical receiving device. The optical line protection device is used to control the optical receiving device to switch between being connected to the primary optical fiber link and being connected to the backup optical fiber link. The method includes steps S210-S220.

[0045] S210, when the optical receiving device is connected to the backup optical fiber link, detect whether the identifier carried by the optical signal transmitted in the primary optical fiber link meets a preset condition. In addition, the identifier carried by the optical signal transmitted in the primary optical fiber link can also be detected at other time periods, and the present application does not limit this.

[0046] S220, when it is determined that the identifier meets the preset condition, send a first message to the optical line protection device. The first message is used to instruct the optical line protection device to maintain the connection between the optical receiving device and the backup optical fiber link; or when it is determined that the identifier does not meet the preset condition, send a second message to the optical line protection device. The second message is used to instruct the optical line protection device to switch the optical receiving device from being connected to the backup optical fiber link to being connected to the primary optical fiber link.

[0047] Thus, after the fault in the primary optical fiber link is recovered, it is judged whether the optical signal transmitted in the link corresponds to the link, and then the link is switched, avoiding the optical line protection device misjudging that the optical signal in the primary optical fiber link has returned to normal and performing an automatic switch, resulting in service transmission interruption.

[0048] In some implementation manners, the identifier is used to indicate the sending node and / or the target receiving node of the optical signal. Or the identifier is used to indicate the sending device and / or the target receiving device of the optical signal. That is, the identifier meeting the preset condition includes: the identifier corresponding to the sending node and / or the target receiving node of the optical signal; or the identifier corresponding to the sending device and / or the target receiving device of the optical signal. In addition, the sending node of the optical signal can also be understood as the source node or the source access point, and the target receiving node can also be understood as the sink node or the sink access point. According to the actual situation, the sending device of the optical signal can also be understood as the sending network element, and the target receiving device can also be understood as the receiving network element. Thus, the optical monitoring device can judge whether the optical signal transmitted in the primary link corresponds to the link by detecting the identifier, so as to judge whether there is a fiber fusion error or mis-injection of non-service light in the optical communication system.

[0049] As a specific implementation manner, the identifier may be a path tracing identifier. The identifier may be in the form of a string and is carried by a monitoring optical signal included in an optical signal transmitted in the active optical fiber link. The identifier may be specifically located in the optical transmission section layer overhead. Thus, the existing optical signal is reused as a determination method for the optical line protection device to switch the link, saving signaling overhead.

[0050] As another specific implementation manner, the optical signal transmitted in the active optical fiber link includes an optical sensing signal, and the identifier may be configured in the optical sensing signal. The identifier may specifically indicate the network element device number. Alternatively, the identifier may also indicate a wavelength channel or optical performance, etc., which is determined according to the actual situation. Thus, the existing optical signal is reused as a determination method for the optical line protection device to switch the link, saving signaling overhead.

[0051] Figure 3 It is a schematic diagram of an optical line protection method provided by an embodiment of the present application. As Figure 3 shown, the method can be applied to an optical communication system such as Figure 1 and Figure 3 shown. The method includes steps S310 - S320.

[0052] S310, after a failure occurs in the active optical fiber link, switch the optical receiving device from being connected to the active optical fiber link to being connected to the standby optical fiber link.

[0053] S320, receive the first information, and after receiving the first information, maintain the connection between the optical receiving device and the said standby optical fiber link; or receive the second information, and after receiving the second information, switch the optical receiving device from being connected to the standby optical fiber link to being connected to the active optical fiber link.

[0054] Thus, after the optical signal power in the active optical fiber link recovers to the normal threshold, the optical line protection device does not directly and automatically switch back to the active optical fiber link, but switches the link according to whether the optical signal transmitted in the link corresponds to the link, avoiding service transmission interruption.

[0055] In addition, an embodiment of the present application further provides a computer-readable medium. The computer-readable medium stores a computer program (which may also be referred to as code or instruction). When it runs on a computer, it causes the computer to execute the optical monitoring method or the optical line protection method in any of the above method embodiments.

[0056] In addition, an embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The processor reads the instruction stored on the memory through the communication interface and executes the optical monitoring method or the optical line protection method in any of the above method embodiments.

[0057] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.

[0058] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0059] In several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.

[0060] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place, or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0061] In addition, the functional units in each embodiment of this application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

[0062] When the above-mentioned function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, 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 may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The foregoing storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.

[0063] The above is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed by this application can easily think of changes or substitutions, which should all be covered within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims

1. An optical monitoring device, characterized in that, For use in an optical communication system, the optical communication system includes an optical transmitting device, an optical receiving device, and an optical line protection device. A primary optical fiber link and a backup optical fiber link are provided between the optical transmitting device and the optical receiving device. The optical line protection device is configured to control the optical receiving device to switch between being connected to the primary optical fiber link and being connected to the backup optical fiber link. Wherein, the optical monitoring device is configured to: When the optical receiving device is connected to the backup optical fiber link, detect whether an identifier carried by an optical signal transmitted in the primary optical fiber link meets a preset condition; When it is determined that the identifier meets the preset condition, send a first message to the optical line protection device, where the first message is used to instruct the optical line protection device to maintain the connection between the optical receiving device and the backup optical fiber link; or When it is determined that the identifier does not meet the preset condition, send a second message to the optical line protection device, where the second message is used to instruct the optical line protection device to switch the optical receiving device from being connected to the backup optical fiber link to being connected to the primary optical fiber link.

2. The optical monitoring device according to claim 1, characterized in that, The identifier meeting the preset condition includes: The identifier corresponding to the sending node and / or the target receiving node of the optical signal; or The identifier corresponding to the sending device and / or the target receiving device of the optical signal.

3. The optical monitoring device according to claim 1 or 2, characterized in that, The identifier is a path trace identifier.

4. The optical monitoring device according to claim 1 or 2, characterized in that, The optical signal includes an optical sensing signal, and the identifier is configured in the optical sensing signal.

5. An optical line protection device, characterized in that, For use in an optical communication system, the optical communication system includes an optical transmitting device, an optical receiving device, and an optical line protection device. A primary optical fiber link and a backup optical fiber link are provided between the optical transmitting device and the optical receiving device. The optical line protection device is configured to control the optical receiving device to switch between being connected to the primary optical fiber link and being connected to the backup optical fiber link. Wherein, the optical line protection device is configured to: After a failure occurs in the primary optical fiber link, switch the optical receiving device from being connected to the primary optical fiber link to being connected to the backup optical fiber link; Receive the first message, and after receiving the first message, maintain the connection between the optical receiving device and the backup optical fiber link; or Receive the second message, and after receiving the second message, switch the optical receiving device from being connected to the backup optical fiber link to being connected to the primary optical fiber link.

6. An optical communication system, characterized in that, An optical communication system includes an optical transmitting device, an optical receiving device, and the optical line protection device as claimed in claim 5. A primary optical fiber link and a backup optical fiber link are provided between the optical transmitting device and the optical receiving device. The primary optical fiber link is coupled with the optical monitoring device as claimed in any one of claims 1 to 4.

7. A light monitoring method, characterized in that, For use in an optical communication system, the optical communication system includes an optical transmitting device, an optical receiving device, and an optical line protection device. A primary optical fiber link and a backup optical fiber link are provided between the optical transmitting device and the optical receiving device. The optical line protection device is configured to control the optical receiving device to switch between being connected to the primary optical fiber link and being connected to the backup optical fiber link. The method includes: When the optical receiving device is connected to the standby optical fiber link, detect whether the identifier carried by the optical signal transmitted in the primary optical fiber link meets a preset condition; When it is determined that the identifier meets the preset condition, send a first message to the optical line protection device, where the first message is used to instruct the optical line protection device to maintain the connection between the optical receiving device and the standby optical fiber link; or When it is determined that the identifier does not meet the preset condition, send a second message to the optical line protection device, where the second message is used to instruct the optical line protection device to switch the optical receiving device from being connected to the standby optical fiber link to being connected to the primary optical fiber link.

8. The optical monitoring method according to claim 7, wherein The identifier meeting the preset condition includes: The identifier corresponds to the sending node and / or the target receiving node of the optical signal; or The identifier corresponds to the sending device and / or the target receiving device of the optical signal.

9. The optical monitoring method according to claim 7 or 8, characterized in that The identifier is a path trace identifier.

10. The optical monitoring method according to any one of claims 7 to 9, characterized in that The optical signal includes an optical sensing signal, and the identifier is configured in the optical sensing signal.

11. An optical line protection method, characterized in that, Applied to an optical communication system, the optical communication system includes an optical transmitting device, an optical receiving device, and an optical line protection device. A primary optical fiber link and a standby optical fiber link are provided between the optical transmitting device and the optical receiving device. The optical line protection device is used to control the optical receiving device to switch between being connected to the primary optical fiber link and being connected to the standby optical fiber link. It is characterized by including: After a failure occurs in the primary optical fiber link, switch the optical receiving device from being connected to the primary optical fiber link to being connected to the standby optical fiber link; Receive the first message, and after receiving the first message, maintain the connection between the optical receiving device and the standby optical fiber link; or Receive the second message, and after receiving the second message, switch the optical receiving device from being connected to the standby optical fiber link to being connected to the primary optical fiber link.