Transmission path switching method and apparatus for optical signal
By monitoring the fault status of the initial transmission path and the delayed transmission path of the optical signal transmission path, and switching the transmission path under certain conditions, the problem of erroneous switching of optical line protection in cascade protection scenarios is solved, and the reliability and stability of optical fiber communication is improved.
Patent Information
- Application Number
- PCT/IB2024/060948
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-05
- Filing Date
- 2024-11-06
- Publication Date
- 2025-06-12
AI Technical Summary
In cascading protection scenarios, upstream failures of light line protection may lead to erroneous switching of downstream light line protection, affecting the reliability and stability of optical fiber communication.
By monitoring the fault status of the initial transmission path and the on-use transmission path of the optical signal transmission path, and when it is determined that the initial transmission path is in the fault status and the on-use transmission path is not in the fault status, the timing unit is triggered to perform timing. When the timing time satisfies the preset delay time and the state of the initial transmission path and the on-use transmission path have not changed, the transmission path of the optical signal is switched from the initial transmission path to the on-use transmission path.
It effectively avoids erroneous switching caused by upstream optical power fluctuations, and improves the reliability and stability of optical fiber communication transmission.
Smart Images

Figure IB2024060948_12062025_PF_FP_ABST
Abstract
Description
[0001] TECHNICAL FIELD: Embodiments of the present disclosure relate to the field of communications technology, and in particular to a method for switching optical signal transmission paths. Background: Optical fiber communication transmission technology is a key technology in the communications field. With the rapid increase in information transmission demand, higher requirements have been placed on the reliability and stability of optical fiber communication transmission. Currently, optical line protection (OLP) can be used to protect communication transmission. Specifically, in an optical line protection network structure, a primary transmission path and a backup transmission path are established between the transmitter and receiver. Switching between the primary and backup transmission paths is possible to prevent signal transmission from being affected by failures in either the primary or backup transmission path. However, in cascade protection scenarios, segmented protection is a common method for increasing network reliability. In this scenario, different protection segments have upstream and downstream relationships. When an upstream optical line protection segment switches, the resulting short-term optical power fluctuation is transmitted to the downstream optical line protection segment, potentially causing the downstream optical line protection segment to also switch. For example, the downstream optical line protection segment may switch to the backup transmission path when the primary transmission path is normal, causing network disruption and impacting the reliability and stability of optical fiber communication transmission. Therefore, an effective technical solution is urgently needed to address the above-mentioned problems. SUMMARY OF THE INVENTION In view of this, embodiments of the present disclosure provide a method for switching the transmission path of an optical signal. One or more embodiments of the present disclosure also relate to an apparatus for switching the transmission path of an optical signal, a computing device, a computer-readable storage medium, and a computer program to address technical deficiencies in the prior art. According to a first aspect of an embodiment of the present disclosure, a method for switching the transmission path of an optical signal is provided, comprising: determining an initial transmission path and a standby transmission path of an optical signal, wherein the initial transmission path and the standby transmission path are two optical signal transmission paths between a first transmitting end and a first receiving end in an optical signal transmission device, and the initial transmission path is the current transmission path of the optical signal; if it is determined that the initial transmission path is in a faulty state and the standby transmission path is not in a faulty state, triggering a timing unit to start timing; if it is determined that the timing time meets a preset delay time and the states of both the initial transmission path and the standby transmission path have not changed, switching the transmission path of the optical signal from the initial transmission path to the standby transmission path, so that the optical signal is transmitted via the standby transmission path.According to a second aspect of an embodiment of the present disclosure, a transmission path switching apparatus for an optical signal is provided, comprising: a determination module configured to determine an initial transmission path and a standby transmission path of an optical signal, wherein the initial transmission path and the standby transmission path are two optical signal transmission paths between a first transmitting end and a first receiving end in an optical signal transmission device, and the initial transmission path is the current transmission path of the optical signal; a timing module configured to trigger a timing unit to perform timing if it is determined that the initial transmission path is in a faulty state and the standby transmission path is not in a faulty state; and a switching module configured to switch the transmission path of the optical signal from the initial transmission path to the standby transmission path if it is determined that the timing time satisfies a preset delay time and the states of both the initial transmission path and the standby transmission path have not changed, so that the optical signal is transmitted through the standby transmission path. According to a third aspect of an embodiment of the present disclosure, a computing device is provided, comprising: a memory and a processor; the memory is configured to store computer-executable instructions, and the processor is configured to execute the computer-executable instructions. When executed by the processor, the computer-executable instructions implement the steps of the above-mentioned method for switching the transmission path of an optical signal. According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, storing computer-executable instructions. When executed by the processor, the instructions implement the steps of the above-mentioned method for switching the transmission path of an optical signal. According to a fifth aspect of an embodiment of the present disclosure, a computer program is provided. When executed in a computer, the computer program causes the computer to execute the steps of the above-mentioned method for switching the transmission path of an optical signal. An embodiment of the present disclosure provides a method for switching the transmission path of an optical signal, which includes determining an initial transmission path and a standby transmission path of the optical signal, wherein the initial transmission path and the standby transmission path are two optical signal transmission paths between a first transmitting end and a first receiving end in an optical signal transmission device, and the initial transmission path is the current transmission path of the optical signal; triggering a timing unit to perform timing when it is determined that the initial transmission path is in a faulty state and the standby transmission path is not in a faulty state; and switching the transmission path of the optical signal from the initial transmission path to the standby transmission path when it is determined that the timing time satisfies a preset delay time and the states of both the initial transmission path and the standby transmission path have not changed, so that the optical signal is transmitted through the standby transmission path.The above method monitors the fault status of the initial transmission path and the standby transmission path in the optical line protection and sets a preset delay time. When it is determined that the initial transmission path is in a faulty state and the standby transmission path is not in a faulty state, a timing unit is triggered to start timing. When the timing time meets the preset delay time, and the initial transmission path is still in a faulty state and the standby transmission path is still not in a faulty state, it indicates that after the preset delay time, the initial transmission path is still in a faulty state. Only then is the transmission path of the optical signal switched from the initial transmission path to the standby transmission path. This avoids misjudgment caused by fluctuations in the initial transmission path due to upstream optical power fluctuations, thereby ensuring the reliability and stability of optical fiber communication transmission. BRIEF DESCRIPTION OF THE DRAWINGS FIG1 is a schematic diagram of an application scenario of a method for switching a transmission path of an optical signal provided by an embodiment of the present disclosure; FIG2 is a flow chart of a method for switching a transmission path of an optical signal provided by an embodiment of the present disclosure; FIG3 is a schematic diagram of an optical multiplex section protection networking structure in a method for switching a transmission path of an optical signal provided by an embodiment of the present disclosure; FIG4 is a schematic diagram of a multi-stage optical multiplex section protection networking structure in a method for switching a transmission path of an optical signal provided by an embodiment of the present disclosure; FIG5 is a schematic diagram of optical power evolution under a first two-stage optical multiplex section protection networking structure in a method for switching a transmission path of an optical signal provided by an embodiment of the present disclosure; FIG6 is a schematic diagram of optical power evolution under a second two-stage optical multiplex section protection networking structure in a method for switching a transmission path of an optical signal provided by an embodiment of the present disclosure; FIG7 is a schematic diagram of optical power evolution under a third two-stage optical multiplex section protection networking structure in a method for switching a transmission path of an optical signal provided by an embodiment of the present disclosure; FIG8 is a schematic diagram of optical power evolution under a third two-stage optical multiplex section protection networking structure in a method for switching a transmission path of an optical signal provided by an embodiment of the present disclosure A schematic diagram of optical power evolution under the fourth two-stage optical multiplexing section protection networking structure; Figure 9 is a flowchart of the processing process of a method for switching the transmission path of an optical signal provided by an embodiment of the present disclosure; Figure 10 is a schematic diagram of the structure of an apparatus for switching the transmission path of an optical signal provided by an embodiment of the present disclosure; Figure 11 is a block diagram of the structure of a computing device provided by an embodiment of the present disclosure. The following description of the specific embodiments sets forth many specific details to facilitate a full understanding of the present disclosure. However, the present disclosure can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the scope of the present disclosure. Therefore, the present disclosure is not limited to the specific implementations disclosed below. The terms used in one or more embodiments of the present disclosure are for the purpose of describing specific embodiments only and are not intended to limit the one or more embodiments of the present disclosure.As used in one or more embodiments of the present disclosure and the appended claims, the singular forms "a," "an," "said," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the terms "and / or" used in one or more embodiments of the present disclosure refer to and include any or all possible combinations of one or more associated listed items. It should be understood that although the terms "first", "second", etc. may be used to describe various information in one or more embodiments of the present disclosure, such information should not be limited to these terms. These terms are merely used to distinguish information of the same type from each other. For example, without departing from the scope of one or more embodiments of the present disclosure, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the term "if" as used herein may be interpreted as "at the time of" or "when" or "in response to a determination." In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of the present disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of the relevant data must comply with the relevant laws, regulations, and standards of the relevant countries and regions, and corresponding operation portals are provided for the user to choose to authorize or refuse. First, the terms involved in one or more embodiments of the present disclosure are explained.
[0002] DWDM: Dense Wavelength Division Multiplexing.
[0003] OLP stands for Optical Line Protection. Switching refers to switching from a primary transmission path to a backup transmission path or vice versa in OLP.
[0004] BA: Booster Amp lifi er, preset amplifier.
[0005] LA: Li ne Amp I ifi er, line amplifier.
[0006] PA: PreAmp I ifi er, preamplifier.
[0007] OMS: Opt i ca I Mu ltipl ex Sect i on, optical multiplex segment.
[0008] OTSP: Opt i ca IT ransmi ss i on Sect i on Protect i on, optical line section protection.
[0009] OMSP: Opt i ca I Multi ltipl ex Sect i on Protect i on, Optical Multiplex Section Protection, consists of optical multiplex section.
[0010] OCHP: Opt i ca I Channe I Protect i on, optical channel protection.
[0011] Ho I doff T ime : Delay time.
[0012] EDFA: Erbium Doped Fiber Applied Amplifier, a type of optical fiber amplifier. In the present disclosure, a method for switching the transmission path of an optical signal is provided. The present disclosure also relates to an optical signal transmission path switching device, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments. Referring to FIG1 , FIG1 shows a schematic diagram of an application scenario of a method for switching the transmission path of an optical signal provided according to an embodiment of the present disclosure. FIG1 includes a user terminal 102 and an optical signal transmission device 104. The optical signal transmission device 104 can be used to execute the method for switching the transmission path of an optical signal. In specific implementation, when a user makes a call through the user terminal 102, the user terminal 102 can receive the user's audio signal and send the audio signal to the optical signal transmission device 104. o In actual application, the user terminal 102 can encapsulate the user's audio signal into an Ethernet signal, and connect the Ethernet signal to the optical signal transmission device 104. oThe optical signal transmission device 104 can convert Ethernet signals into optical signals and transmit the optical signals through the optical signal transmission path therein. During the optical signal transmission process, the optical signal transmission device 104 can monitor the path status of the primary transmission path and the backup transmission path between the first transmitting end and the second receiving end in real time. The optical signal is transmitted through one of the two optical signal transmission paths as the initial transmission path, while the other serves as the standby transmission path. If the optical signal transmission device 104 determines, based on the real-time monitored path status, that the initial transmission path is in a faulty state and the standby transmission path is not, the timing unit is triggered to start timing. If the timing time meets the preset delay time, and if the initial transmission path is still in a faulty state and the standby transmission path is still not, the optical signal transmission path is switched from the initial transmission path to the standby transmission path, allowing the optical signal to continue to be transmitted through the standby transmission path. This ensures the stability and reliability of optical signal transmission communication performed by the optical signal transmission device. In practical applications, the optical signal transmission device 104 may be deployed with hardware encapsulating program code for executing the optical signal transmission path switching method, so that the hardware can implement real-time monitoring of the optical signal transmission device 104. It is understood that the optical signal transmission path switching method provided in the embodiments of the present disclosure can also be used for the transmission of other data signals, and the embodiments of the present disclosure are not limited thereto. Referring to Figure 2 , FIG2 shows a flowchart of a method for switching the optical signal transmission path according to an embodiment of the present disclosure, specifically comprising the following steps: Step 202: Determine an initial transmission path and a standby transmission path for an optical signal, wherein the initial transmission path and the standby transmission path are two optical signal transmission paths between a first transmitting end and a first receiving end in the optical signal transmission device, and the initial transmission path is the current transmission path of the optical signal. Specifically, the optical signal transmission path switching method provided in the embodiments of the present disclosure can be applied in the communications field, and more specifically, can be applied to communication protection of optical signal transmission equipment. The optical signal transmission path can be understood as a fiber transmission channel used for optical signal transmission. The two optical signal transmission paths between the first transmitting end and the first receiving end can be understood as a primary transmission path and a backup transmission path between the first transmitting end and the second receiving end, and the primary and backup transmission paths can be switched. The initial transmission path of the optical signal can be either the primary transmission path or the backup transmission path. Accordingly, when the initial transmission path of the optical signal is the primary transmission path, the standby transmission path is the backup transmission path. Conversely, when the initial transmission path of the optical signal is the backup transmission path, the standby transmission path is the primary transmission path.An optical signal transmission device can be understood as a device for transmitting optical signals. The optical signal transmission device also includes a second transmitting end and a second receiving end. Optical signals are transmitted from the second transmitting end to the second receiving end, from the second receiving end to the first transmitting end, and from the first transmitting end to the first receiving end. It is understood that two optical signal transmission paths exist between the second transmitting end and the second receiving end: a primary transmission path and a backup transmission path. These two optical signal transmission paths between the second transmitting end and the second receiving end are upstream of the two optical signal transmission paths between the first transmitting end and the second receiving end. In other words, the optical signal is transmitted within the optical signal transmission device along the path between the second transmitting end, the second receiving end, the first transmitting end, and the first receiving end. It is understandable that when the two optical signal transmission paths between the second transmitting end and the second receiving end switch, the resulting optical power fluctuations will be transmitted to the two optical signal transmission paths between the first transmitting end and the first receiving end. This can cause the two optical signal transmission paths between the first transmitting end and the first receiving end to switch even when no faults occur, i.e., erroneous switching, thereby affecting the signal transmission stability of the optical signal transmission device. In practical applications, the optical signal transmission device may be, for example, a dense wavelength division multiplexing (DWDM) optical transmission system. To improve the stability of the optical signal transmission device, optical line protection (OLP) may be employed to protect the optical paths within the optical signal transmission device. Based on their different locations within the optical signal transmission device, optical line protection can be categorized as optical line segment protection (OTSP), optical multiplex segment protection (OMSP), and optical channel protection (OCHP). In the embodiments of the present disclosure, the optical signal transmission path switching method is described in detail using optical multiplex segment protection as an example. It is understandable that the optical signal transmission path switching method can also be applied to other optical line protection scenarios, and this embodiment will not be further described. Specifically, the two optical signal transmission paths between the first transmitting end and the first receiving end may form an optical multiplex section protection (OMSP) networking structure. Referring to FIG3 , FIG3 illustrates a schematic diagram of an OMS networking structure in a method for switching optical signal transmission paths according to an embodiment of the present disclosure. As shown in FIG3 , a 1+1 OLP dual-transmit selective-receive protection scheme is employed. Specifically, an optical splitter is used at the first transmitting end to split the optical path into a primary transmission path and a backup transmission path for downstream transmission. An optical switch is used at the first receiving end to select one of the primary and backup transmission paths for reception.Specifically, the optical multiplex section protection networking structure shown in Figure 3 includes a first optical signal processor 302 (WSS), an optical splitter 304 (OLP-Sp li tter), a pre-amplifier 306 (BA), a line amplifier 308 (LA), a preamplifier 310 (PA), an optical switch 312 (OLP-Swi tch) and a second optical signal processor 314 (WSS). When an optical signal passes through the optical multiplex section protection networking structure, the first optical signal processor 302, acting as a wavelength selective switch, can receive multiple optical signals of different wavelengths and combine these optical signals to obtain a combined optical signal. The combined optical signal is then transmitted via an optical splitter 304 to a primary transmission path and a backup transmission path. Preamplifier 306, line amplifier 308, and preamplifier 310 compensate for attenuation of the optical signal in both the primary and backup transmission paths. At the first receiving end, an optical switch 312 selects and receives an optical signal transmitted along one of the primary and backup transmission paths. The second optical signal processor 314 decomposes the optical signal and transmits it downstream. Specifically, in an OMSP protection scenario, the optical switch 312 at the first receiving end can typically determine the primary and backup transmission paths based on the optical power of the two optical signal transmission paths when selecting the primary and backup transmission paths, and determine the optical signal transmission path whose optical power meets a preset optical power threshold as the current transmission path (i.e., the initial transmission path). It is understood that the two optical signal transmission paths between the second transmitting end and the second receiving end are similar to the two optical signal transmission paths between the first transmitting end and the second receiving end described above, and may also form an optical multiplex section protection network structure, which will not be repeated here. These two optical multiplex section protection network structures can constitute cascade protection for communication transmission of the optical signal transmission device. Referring to FIG4 , FIG4 shows a schematic diagram of a multi-stage optical multiplex section protection network structure in a method for switching optical signal transmission paths according to an embodiment of the present disclosure. As shown in FIG4 , the multi-stage optical multiplex section protection network structure consists of two optical multiplex section protection network structures (i.e., OLP1 and OLP2). Specifically, similar to FIG3 , OLP1 may include a first optical signal processor (WSS), an optical splitter (OLP-Splitter), a pre-amplifier (BA), a line amplifier (LA), a pre-amplifier (PA), an optical switch (OLP-Swi tch), and a second optical signal processor (WSS).When an optical signal passes through the optical multiplex section protection networking structure, the first optical signal processor, acting as a wavelength selective switch, can receive multiple optical signals of different wavelengths and combine these signals to obtain a combined optical signal. This combined optical signal is then transmitted via an optical splitter to a primary transmission path and a backup transmission path. Preamplifiers, line amplifiers, and preamplifiers are used in both the primary and backup transmission paths to compensate for attenuation of the optical signal. At the first receiving end, an optical switch is used to select and receive the optical signal transmitted along one of the primary and backup transmission paths. This optical signal is then decomposed by the second optical signal processor and transmitted downstream. Similarly, the configurations of OLP1 and OLP2 can be the same or different. For example, the amplifiers provided in OLP2 can be different from those in OLP1. Based on this, based on the optical power of the primary and backup transmission paths between the first transmitting end and the first receiving end in the optical signal transmission device, the optical signal transmission path whose optical power meets a preset optical power threshold can be determined as the initial transmission path for the optical signal, and the other optical signal transmission path can be determined as the standby transmission path for the optical signal. Furthermore, if the optical powers of both optical signal transmission paths meet a preset optical power threshold, the primary transmission path can be determined as the initial transmission path for the optical signal according to a pre-set setting, or any optical signal transmission path can be selected as the initial transmission path. This is not limited in the present embodiment. For example, the primary transmission path between the first transmitting end and the first receiving end can be determined as the initial transmission path, and the backup transmission path between the first transmitting end and the first receiving end can be determined as the standby transmission path. Step 204: If it is determined that the initial transmission path is in a faulty state and the standby transmission path is not in a faulty state, a timing unit is triggered to start timing. The timing unit can be understood as a device for timing, such as a timer, a timing program code, or a timing function. This is not limited in the present embodiment. A faulty state can be understood as a state in which the optical signal transmission path is interrupted, resulting in the inability to transmit the optical signal. Based on this, it can be first determined whether the initial transmission path is in a faulty state. If so, it can be determined whether the standby transmission path is in a faulty state. If not, the timing unit is triggered to start timing. It should be noted that the standby transmission path is not in a fault state, which may include the standby transmission path not being in a fault state all the time, and the standby transmission path switching from a fault state to a normal state.In other words, according to the optical signal transmission path switching method provided by the embodiments of the present disclosure, path switching may not be triggered if both the initial transmission path and the standby transmission path are in a faulty state. However, when the standby transmission path switches from a faulty state to a normal state, a timing unit is triggered to start timing. If the timing time meets the delay time, and the initial transmission path is still in a faulty state and the standby transmission path is still in a normal state, path switching is triggered, i.e., the optical signal transmission path is switched from the initial transmission path to the standby transmission path. Specifically, triggering the timing unit to start timing when it is determined that the initial transmission path is in a faulty state and the standby transmission path is not in a faulty state includes: determining first state data of the initial transmission path and second state data of the standby transmission path; and triggering the timing unit to start timing when it is determined that the initial transmission path is in a faulty state based on the first state data and that the standby transmission path is not in a faulty state based on the second state data. The state data may be understood as data indicating whether the optical signal transmission path is in a faulty state. The first status data is data indicating whether the initial transmission path is in a faulty state, and the second status data is data indicating whether the standby transmission path is in a faulty state. Based on this, the first status data of the initial transmission path and the second status data of the standby transmission path can be determined, and whether the initial and standby transmission paths are in a faulty state can be determined based on the first and second status data. In practical applications, the status data of the primary and backup transmission paths can be sampled in a polled manner to determine whether the initial and standby transmission paths are in a faulty state. This determination can be based on single or multiple samplings of data, and is not limited in the presently disclosed embodiments. In summary, triggering the timing unit facilitates subsequent determination of whether the optical signal transmission path is in a faulty state within a preset delay time, further preventing erroneous switching between subsequent optical signal transmission paths. In one embodiment of the present disclosure, the status data is optical power; accordingly, when it is determined that the initial transmission path is in a fault state according to the first status data, and when it is determined that the standby transmission path is not in a fault state according to the second status data, the timing unit is triggered to perform timing, including: when it is determined that the first optical power of the initial transmission path is less than a preset optical power threshold, the initial transmission path is determined to be in a fault state, and when it is determined that the second optical power of the standby transmission path is greater than or equal to the preset optical power threshold, the standby transmission path is determined to be not in a fault state, and the timing unit is triggered to perform timing.Since the status data is optical power, it is understandable that the first status data is the first optical power, and the second status data is the second optical power. Specifically, a preset optical power threshold can be set for the optical signal transmission path. When the optical power of the optical signal transmission path is less than the preset optical power threshold, the optical signal transmission path can be determined to be in a faulty state. When the optical power of the optical signal transmission path is greater than or equal to the preset optical power threshold, the optical signal transmission path can be determined to be not in a faulty state (i.e., in a normal state). In practical applications, the optical power of the optical signal transmission path can be detected using a power detector. Based on this, the power detector can be used to detect the first optical power of the initial transmission path and the second optical power of the standby transmission path. If the first optical power of the initial transmission path is determined to be less than the preset optical power threshold, the initial transmission path is determined to be in a faulty state. If the second optical power of the standby transmission path is determined to be greater than or equal to the preset optical power threshold, the standby transmission path is determined to be not in a faulty state. At this point, the timing unit can be triggered to start timing. In summary, determining the path status of the initial transmission path and the standby transmission path based on a preset optical power threshold facilitates subsequent determination of whether to switch the optical signal transmission path. In one embodiment of the present disclosure, the status data is optical power. Accordingly, triggering a timing unit to perform timing when the initial transmission path is determined to be in a faulty state based on the first status data and the standby transmission path is determined to be not in a faulty state based on the second status data includes: determining an optical power difference between a first optical power of the initial transmission path and a second optical power of the standby transmission path; and when the optical power difference is determined to be greater than a preset difference threshold, determining that the initial transmission path is in a faulty state and the standby transmission path is not in a faulty state, and triggering the timing unit to perform timing. Since the status data is optical power, it can be understood that the first status data is the first optical power, and the second status data is the second optical power. Specifically, a preset difference threshold can be set for the optical power difference between the initial transmission path and the standby transmission path. When the optical power difference between the initial transmission path and the standby transmission path is greater than a preset difference threshold, it is determined that the initial transmission path is in a fault state and the standby transmission path is not in a fault state. In practical applications, the optical power of the optical signal transmission path can be detected by a power detector.Based on this, a power detector can be used to detect the first optical power of the initial transmission path and the second optical power of the standby transmission path. If the optical power difference between the first optical power and the second optical power is determined to be greater than a preset difference threshold, it is determined that the initial transmission path is in a faulty state and the standby transmission path is not in a faulty state. At this point, the timing unit can be triggered to start timing. In summary, determining the path status of the initial transmission path and the standby transmission path based on the preset difference threshold facilitates the subsequent determination of whether to switch the optical signal transmission path. Furthermore, those skilled in the art may also use other threshold methods to determine the path status of the initial transmission path and the standby transmission path based on actual needs, which is not limited in the present embodiment. In another embodiment of the present disclosure, the status data may also be a bit error rate. Specifically, when determining the path status of the optical signal transmission path based on the bit error rate, a signal detector can be used to detect the number of bit errors contained in a frame of an optical signal transmitted by the optical signal transmission path, thereby calculating the bit error rate of the optical signal, and determining whether the optical signal transmission path is in a faulty state based on the bit error rate. For example, if it is determined that the bit error rate is greater than a preset bit error rate threshold, it can be determined that the optical signal transmission path is in a faulty state. In another embodiment of the present disclosure, the status data can also be a maintenance signal. The maintenance signal can be understood as a signal derived from a bit error. That is, if it is determined that a frame of the optical signal of the optical signal transmission path contains a bit error, the signal detector can detect the maintenance signal of the optical signal transmission path. Then, if the signal detector detects the maintenance signal, it can be determined that the optical signal transmission path is in a faulty state. Step 206: If it is determined that the timing time meets the preset delay time and the states of the initial transmission path and the standby transmission path have not changed, the transmission path of the optical signal is switched from the initial transmission path to the standby transmission path, so that the optical signal is transmitted through the standby transmission path. Specifically, as shown in Figures 3 and 4 above, in a multi-stage cascade protection scenario for optical signal transmission equipment, optical power fluctuations caused by switching between the primary and backup transmission paths in an upstream optical multiplex section protection networking structure are transmitted to the primary and backup transmission paths in the downstream optical multiplex section protection networking structure. To prevent unexpected erroneous switching of the primary and backup transmission paths in the downstream optical multiplex section protection networking structure due to short-term optical power fluctuations upstream, a preset delay time can be set to delay switching.Specifically, when it is determined that the initial transmission path is faulty and the standby transmission path is not, the initial transmission path may have experienced a brief optical power interruption due to upstream optical power fluctuations. Therefore, the optical signal transmission path is not immediately switched, but instead the timing unit is triggered to start timing. During the preset delay, the initial and standby transmission paths are not switched. After the preset delay, if the initial transmission path is still faulty and the standby transmission path is still not faulty (i.e., the status of both the initial and standby transmission paths remain unchanged), the initial transmission path's fault is likely not caused by upstream influence. Therefore, the current optical signal transmission path can be switched from the initial transmission path to the standby transmission path. For example, if the preset delay time is 5 milliseconds, and if it is determined that the initial transmission path is in a faulty state and the standby transmission path is not, the timing unit is triggered to start timing. When the timing reaches the preset delay time of 5 milliseconds, that is, after the preset delay time of 5 milliseconds has elapsed, if the initial transmission path is still in a faulty state and the standby transmission path is still not in a faulty state, the current transmission path of the optical signal is switched from the initial transmission path to the standby transmission path. Furthermore, when switching the transmission path of the optical signal from the initial transmission path to the standby transmission path, a control instruction can be sent to the optical signal transmission device to control the optical signal transmission device to switch the transmission path of the optical signal from the initial transmission path to the standby transmission path. In practical applications, all channels of the downstream optical multiplex section protection networking structure can be derived from the upstream optical multiplex section protection networking structure, or only some channels of the downstream optical multiplex section protection networking structure can be derived from the upstream optical multiplex section protection networking structure. A commonly used delay timer takes effect as follows: For the delay timer to take effect, the switchover conditions must be continuously met during the delay timer, and switchover occurs after the timer expires. The delay timer is dependent on the status of the primary and backup transmission paths. When the initial transmission path transitions from a normal state to a faulty state, the delay timer takes effect. When both the primary and backup transmission paths are faulty (i.e., both the initial and standby transmission paths are faulty), switchover is triggered when the standby transmission path returns to a normal state. If all channels of a downstream optical multiplex section protection (OMSP) network structure originate from the upstream OMSP network structure, this indicates that the optical power fluctuations of the primary and backup transmission paths of the downstream OMSP network structure are fully influenced by the upstream OMSP network structure.Referring to FIG5 , FIG5 illustrates a schematic diagram of optical power evolution under a first two-stage optical multiplex section protection (OMSP) networking structure in a method for switching optical signal transmission paths according to an embodiment of the present disclosure. Referring to FIG6 , FIG6 illustrates a schematic diagram of optical power evolution under a second two-stage optical multiplex section protection (OMSP) networking structure in a method for switching optical signal transmission paths according to an embodiment of the present disclosure. As shown in FIG5 and FIG6 , OLP1 can be understood as an upstream OMSP networking structure, and OLP2 can be understood as a downstream OMSP networking structure. The vertical axis represents optical power, and the horizontal axis represents time. For simplicity, the rise and fall of optical power is represented by a vertical line. It is understood that in actual applications, the rise and fall of optical power may be a slowly fluctuating curve. The main receiving line represents the optical power of the main transmission path, represented by a solid line; the backup receiving line represents the optical power of the backup transmission path, represented by a dashed line; and the common port represents the optical power of the common port of the OMSP networking structure. At time T0, the primary transmission path in the upstream optical multiplex section protection (OMSP) network structure is interrupted. The optical power on the primary transmission path drops below a preset optical power threshold, indicating a fault condition. After a preset delay (Holdoff Time) t0, the primary transmission path switches to the backup transmission path at time T1. The single-path interruption in the upstream OMSP network structure generates a transient power interruption waveform lasting t0, which is transmitted to the downstream OMSP network structure. Due to the response delay of devices such as amplifiers (EDFAs) along the path to the optical signal, the primary and backup transmission paths in the downstream OMSP network structure may experience transient power interruptions lasting longer than t0. At time T2, the optical power interruption is transferred to the downstream primary transmission path of the optical multiplex section protection network (indicating a fault on the primary transmission path). At time T3, the optical power interruption is transferred to the downstream backup transmission path of the optical multiplex section protection network (indicating a fault on the backup transmission path). The order of T2 and T3 is related to the length of the primary and backup transmission paths, the transient response speed of EDFA power reduction, and the number of EDFAs. At time T5, the optical power restored after the interruption is transferred to the downstream primary transmission path of the optical multiplex section protection network (indicating a return to normal operation). At time T6, the optical power restored after the interruption is transferred to the downstream backup transmission path of the optical multiplex section protection network (indicating a return to normal operation). The order of T5 and T6 is related to the length of the primary and backup transmission paths, the transient response speed of EDFA power reduction, and the number of EDFAs.Furthermore, according to the currently commonly used delay time validation logic, various combinations of the timing sequences before and after receiving optical power increases and decreases on the primary and backup transmission paths in a downstream optical multiplex section protection networking structure are further described. In the case where T3 is later than T2 and T6 is later than T5 (i.e., T3 is greater than T2 and T6 is greater than T5), as shown in Figure 5, when the initial transmission path in the downstream optical multiplex section protection networking structure is the primary transmission path, the delay time is set to be greater than the difference between T3 and T2. In this case, after the delay time, both the primary and backup transmission paths are in a faulty state, and the time it takes for the backup transmission path to recover from the faulty state is later than the time it takes for the primary transmission path to recover from the faulty state. According to the aforementioned delay time validation logic, a switchover from the primary to the backup transmission path will not occur, and an erroneous switchover issue will not occur. If the initial transmission path in the downstream optical multiplex section protection networking structure is the backup transmission path, it will remain the backup transmission path from T2 to T3, and no switchover will occur. At time T3, the backup transmission path experiences a fault, triggering a holdoff time (Holdoff Time). At time T4, the holdoff time expires. From T3 to T5, both the primary and backup transmission paths are interrupted, and no switchover is triggered. At time T5, the optical power of the primary transmission path recovers from the faulty state, but the backup transmission path remains faulty. Since the holdoff time has expired, the holdoff time is no longer triggered, triggering a switchover from the backup to the primary transmission path. This can cause the downstream optical multiplex section protection network structure to erroneously switch due to upstream influence. If T2 is later than T3 and T6 is later than T5 (i.e., T2 is greater than T3, and T6 is greater than T5), as shown in Figure 6, when the initial transmission path in the downstream optical multiplex section protection network structure is the primary transmission path, no switchover is triggered because the primary transmission path fails later than the backup transmission path, and the primary transmission path recovers earlier than the backup transmission path. In a downstream optical multiplex section protection network, if the initial transmission path is the backup transmission path, a failure in the backup transmission path triggers the delay time at time T3. The period from T3 to T2 remains within the delay time period. If the delay time t0 is greater than the difference between T2 and T3, no switchover is triggered, and the initial transmission path remains the backup transmission path. At time T4, the delay time expires, and both the primary and backup transmission paths are in an interrupted state, preventing a switchover.At time T5, the primary transmission path recovers from a faulty state, while the backup transmission path remains faulty. At this point, the delay time has expired and will no longer trigger. This triggers a switchover from the backup transmission path to the primary transmission path, causing the downstream optical multiplex section protection network structure to erroneously switch due to upstream influences. In this scenario, since both the primary and backup transmission paths trigger the preset optical power thresholds, the effects of using the preset difference threshold mode and the preset optical power threshold mode are similar. Other timing combination scenarios (such as T3 later than T2, T5 later than T6, and T2 later than T3, T5 later than T6) are similar and will not be analyzed again here. If some channels of the downstream optical multiplex section protection network structure originate from the upstream optical multiplex section protection network structure, this indicates that the optical power fluctuations of the primary and backup transmission paths of the downstream optical multiplex section protection network structure are partially affected by the upstream optical multiplex section protection network structure. Referring to Figures 7 and 8, Figure 7 illustrates a schematic diagram of optical power evolution under a third two-stage optical multiplex section protection networking structure in a method for switching optical signal transmission paths provided according to an embodiment of the present disclosure. Figure 8 illustrates a schematic diagram of optical power evolution under a fourth two-stage optical multiplex section protection networking structure in a method for switching optical signal transmission paths provided according to an embodiment of the present disclosure. As shown in Figures 7 and 8, at time TO, a primary transmission path in the upstream optical multiplex section protection networking structure is interrupted, causing the optical power to drop below a preset optical power threshold. After a delay of t0, the backup transmission path is switched to at time T1. The single-path interruption in the upstream optical multiplex section protection networking structure generates a transient power waveform with a duration of t0. Because only a portion of the channels in the downstream optical multiplex section protection networking structure originate from the upstream optical multiplex section protection networking structure, the primary and backup transmission paths in the downstream optical multiplex section protection networking structure observe power waveforms with a duration of approximately t0. The magnitude of the power drop is related to the proportion of channels originating from the upstream optical multiplex section protection networking structure. In Figures 7 and 8, the optical power fluctuations of the primary transmission path, backup transmission path, and common port in the downstream optical multiplex section protection networking structure are all above the preset optical power threshold. When the power of the primary and backup received optical signals in the downstream optical multiplex section protection networking structure after a drop exceeds the switching threshold, erroneous switching will not occur. The following analyzes various combinations of situations in which the power of the downstream optical multiplex section protection networking structure after a drop falls below the switching threshold. This is shown in Figure 7 when T3 is later than T2 and T6 is later than T5 (i.e., T3 is greater than T2 and T6 is greater than T5).If the initial transmission path in the downstream optical multiplex section protection networking structure is the primary transmission path, and the delay time t0 is greater than the time difference T3-T2, no false switching will occur. If the initial transmission path is the backup transmission path, from time T2 to T3, the initial transmission path in the downstream optical multiplex section protection networking structure remains the backup transmission path, and no switching will be triggered. At time T3, the received optical power of the backup transmission path falls below the switching threshold, triggering the delay time. At time T4, the delay time expires, and both the primary and backup transmission paths fall below the switching threshold, so no switching will be triggered. The following distinguishes the differences between different switching threshold modes at T5 / T6 / T7: When the preset difference threshold mode is adopted, during the period from T3 to T5, the optical power of the main transmission path and the backup transmission path are both higher than the preset optical power threshold, and the optical power difference is less than the preset difference threshold, it can be considered that the main transmission path and the backup transmission path are both in a normal state without fault. At T5, the optical power of the main transmission path is restored and the optical power difference between the main transmission path and the backup transmission path is greater than the switching threshold, then the delay time is triggered, and the downstream optical multiplex section protection networking structure will not immediately switch to the main transmission path. At T6, it is still within the delay time period. At T7, the delay time ends. At this time, the optical power of the main transmission path and the backup transmission path are both restored, and the downstream optical multiplex section protection networking structure will not switch; When the preset optical power threshold mode is adopted, during the period from T3 to T5, the optical power of the main transmission path and the backup transmission path are both lower than the switching threshold, it can be considered that the main transmission path and the backup transmission path are both in a fault state. At T5, When the optical power of the primary transmission path recovers from a faulty state (below the switching threshold) to normal, while the backup transmission path remains faulty, the delay time period has expired. The downstream optical multiplex section protection network structure will immediately switch to the primary transmission path, resulting in an erroneous switchover in the downstream optical multiplex section protection network structure. In the case where T2 is later than T3, and T6 is later than T5 (i.e., T2 is greater than T3, and T6 is greater than T5), as shown in Figure 8, erroneous switchover will not occur if the initial transmission path in the downstream optical multiplex section protection network structure is the primary transmission path. The following analyzes the case where the initial transmission path in the downstream optical multiplex section protection network structure is the backup transmission path: At time T3, the delay time is triggered. The period from T3 to T2 falls within the delay time period. As long as the delay time t0 is greater than the power drop time difference T2-T3 between the primary and backup transmission paths, the initial transmission path in the downstream optical multiplex section protection network structure remains the backup transmission path, and no switchover will occur.At time T4, the delay time expires. Both the primary and backup transmission paths are interrupted, and the downstream optical multiplex section protection network structure does not switch. Under different switching threshold modes, the switching of the downstream optical multiplex section protection network structure at times T5 / T6 / T7 is similar to the above scenario and will not be further analyzed here. Furthermore, other timing combination scenarios (such as those where T3 is later than T2, T5 is later than T6, and T2 is later than T3, and T5 is later than T6) are similar to the above scenario and will not be further analyzed here. Typically, to resolve the aforementioned erroneous switching issue, the delay of the downstream optical multiplex section protection networking structure can be set to be greater than the delay of the upstream optical multiplex section protection networking structure. In multi-level cascade protection, the delay of the next-level multiplex section protection networking structure needs to be greater than the delay of the previous-level optical multiplex section protection networking structure. For example, in a three-level cascade protection scenario, the delay of the third-level multiplex section protection networking structure is greater than the delay of the second-level multiplex section protection networking structure, which in turn is greater than the delay of the first-level multiplex section protection networking structure. This will cause the switching interruption duration to increase step by step, thereby prolonging the project interruption time. Based on this, in one embodiment of the present disclosure, the optical signal transmission device further includes a second transmitting end and a second receiving end, wherein the optical signal is transmitted from the second transmitting end to the second receiving end, from the second receiving end to the first transmitting end, and from the first transmitting end to the first receiving end, and the two optical signal transmission paths between the first transmitting end and the first receiving end include a main transmission path and a backup transmission path; before switching the transmission path of the optical signal from the initial transmission path to the standby transmission path when it is determined that the timing time meets the preset delay time and the states of the initial transmission path and the standby transmission path have not changed, the method further includes: determining an optical power fluctuation of the optical signal transmission path between the second transmitting end and the second receiving end; and determining the preset delay time based on the time when the optical power fluctuation is transmitted to the main transmission path and the backup transmission path. Specifically, the optical signal transmission path between the second transmitting end and the second receiving end serves as the upstream portion of the optical signal transmission path between the first transmitting end and the first receiving end. The preset delay time can be determined based on the time it takes for optical power fluctuations in the optical signal transmission path between the second transmitting end and the second receiving end to propagate to the primary transmission path and the backup transmission path between the first transmitting end and the first receiving end. In summary, by determining the preset delay time based on the time it takes for optical power fluctuations in the upstream optical signal transmission path to propagate to the downstream primary transmission path and the backup transmission path, and by not performing switching within the preset delay time, it is possible to prevent upstream optical power fluctuations from affecting downstream path switching.Furthermore, it is possible to configure a unified, fixed delay time for each level of optical signal transmission path, thereby avoiding the impact of cascade switching and shortening the duration of project interruptions. In a specific implementation, the optical power fluctuation includes a first fluctuation triggered by a momentary optical power interruption and a second fluctuation triggered by optical power recovery. Accordingly, determining the preset delay time based on the time when the optical power fluctuation is transmitted to the initial transmission path and the standby transmission path includes: determining a first time when the first fluctuation is transmitted to the primary transmission path and a second time when the first fluctuation is transmitted to the backup transmission path; determining a third time when the second fluctuation is transmitted to the primary transmission path and a fourth time when the second fluctuation is transmitted to the backup transmission path; and determining the preset delay time based on the first time, the second time, the third time, and the fourth time. Specifically, the preset delay time can be determined based on a first time a when a first fluctuation triggered by a transient upstream optical power interruption is transmitted to the primary transmission path, a second time b when the first fluctuation triggered by a transient upstream optical power interruption is transmitted to the backup transmission path, a third time c when a second fluctuation triggered by a restored upstream optical power is transmitted to the primary transmission path, and a fourth time d when the second fluctuation triggered by a restored upstream optical power is transmitted to the backup transmission path. With reference to Figures 5 to 8 above, it can be seen that the first time is T2, the second time is T3, the third time is T5, and the fourth time is T6. In a specific implementation, determining the preset delay time based on the first time, the second time, the third time, and the fourth time includes: determining a first difference between the first time and the second time, and determining a second difference between the third time and the fourth time; and determining the preset delay time based on a comparison result of the first difference and the second difference. Specifically, a first difference between the first time and the second time may be calculated, and a second difference between the third time and the fourth time may be calculated. Based on a comparison result of the first and second differences, a target difference may be selected from the first and second differences, and a preset delay time may be determined based on the target difference. The preset delay time may be greater than or equal to the target difference. In one embodiment of the present disclosure, based on a comparison result of the first and second differences, the larger of the first and second differences may be selected as the target difference. For example, if the first difference between the first and second times is ab, and the second difference between the third and fourth times is cd, and if ab is determined to be greater than cd, the first difference ab is used as the target difference, and the preset delay time is determined based on the target difference ab, with the preset delay time being set to be greater than the target difference ab.In summary, by determining the preset delay time based on the comparison result of the first difference and the second difference, when the optical power fluctuation transmitted from the upstream affects the downstream primary transmission path and the backup transmission path, the preset delay time can be set to avoid path switching triggered by the impact. Furthermore, within a preset delay time, the status data of the initial transmission path and the standby transmission path can be polled and sampled to determine the status of the two optical signal transmission paths, thereby further determining whether it is necessary to clear the timing for subsequent retiming, thereby further avoiding erroneous switching. The specific implementation method is as follows: After the timing unit is triggered to perform timing, the method further includes: if it is determined that the timing time does not meet the preset delay time, determining whether the initial transmission path is in a fault state; if it is determined that the initial transmission path is in a fault state according to the judgment result, determining whether the standby transmission path is in a fault state; if not, if it is determined that the timing time meets the preset delay time, switching the transmission path of the optical signal from the initial transmission path to the standby transmission path; or, if it is determined that the timing time does not meet the preset delay time, continuing to execute the step of determining whether the initial transmission path is in a fault state; if so, triggering the timing unit to clear the timing, and continuing to execute the step of determining whether the initial transmission path is in a fault state. Specifically, if the timing time does not meet the preset delay time, indicating that the preset delay time is within the preset delay time, the first state data of the initial transmission path may be sampled by polling to determine whether the initial transmission path is in a faulty state. If the initial transmission path is determined to be in a faulty state based on the determination result, the determination of whether the standby transmission path is in a faulty state is continued. If not, if the timing time is determined to meet the preset delay time, that is, after the preset delay time has elapsed, the transmission path of the optical signal is switched from the initial transmission path to the standby transmission path. If the timing time is determined not to meet the preset delay time, that is, if the preset delay time is still within the preset delay time, the determination of whether the initial transmission path is in a faulty state is continued. If so, it indicates that both the initial transmission path and the standby transmission path are in a faulty state and do not meet the switching requirements. To avoid erroneous switching caused by the initial transmission path or the standby transmission path recovering after the preset delay time, if it is determined that the timing unit has been timing, the timing unit is triggered to clear the timing and re-determine whether the initial transmission path is in a faulty state. The optical signal transmission path is switched only when two conditions are met simultaneously: 1. the timing time meets the preset delay time, that is, after the preset delay time has passed; 2. the initial transmission path is in a faulty state and the standby transmission path is not in a faulty state.In summary, by determining a preset delay time based on the time it takes for upstream optical power fluctuations to be transmitted to the downstream primary transmission path and backup transmission path, and combining this delay time with the logic for initiating switching, i.e., initiating switching only when both of the above conditions are met, it is possible to avoid erroneous switching of the next-level optical signal transmission path by the previous-level optical signal transmission path switching. Specifically, after determining whether the initial transmission path is in a faulty state, the method further includes: if the determination result determines that the initial transmission path is not in a faulty state, triggering the timing unit to clear the timer, and continuing to perform the step of determining whether the initial transmission path is in a faulty state. It is understandable that if the determination result determines that the initial transmission path is not in a faulty state, the prerequisite for the initial transmission path to be in a faulty state is not met. If it is determined that the timing unit has already been timing, the timing unit is triggered to clear the timer, and the determination of whether the initial transmission path is in a faulty state continues until the initial transmission path is in a faulty state, at which time the determination of whether the standby transmission path is in a faulty state is performed. In summary, the above method monitors the fault status of the initial transmission path and the standby transmission path in optical line protection and sets a preset delay time. When it is determined that the initial transmission path is in a faulty state and the standby transmission path is not, a timing unit is triggered to start timing. If the timing time meets the preset delay time, and the initial transmission path is still in a faulty state and the standby transmission path is still not in a faulty state, the optical signal transmission path is switched from the initial transmission path to the standby transmission path only after the preset delay time has elapsed, indicating that the initial transmission path is still in a faulty state. This avoids misjudgments caused by fluctuations in the initial transmission path due to upstream optical power fluctuations, thereby ensuring the reliability and stability of optical fiber communication transmission. The following, in conjunction with FIG9 , further illustrates the optical signal transmission path switching method provided by the present disclosure, using its application in optical signal transmission equipment communication transmission protection as an example. FIG9 illustrates a process flow chart of the optical signal transmission path switching method provided by one embodiment of the present disclosure, which specifically includes the following steps. Step 902: Poll and sample the first status data of the initial transmission path and the second status data of the standby transmission path. Step 904: Determine whether the initial transmission path is in a fault state. If so, execute step 908; if not, execute step 906. oSpecifically, the first state data of the initial transmission path obtained by polling sampling can be used to determine whether the initial transmission path is in a fault state. Step 906: Trigger the timing unit to clear the timer and continue to execute step 902. Step 908: Determine whether the standby transmission path is in a fault state. If so, execute step 906; if not, execute step 910. o Specifically, the second state data of the standby transmission path obtained by polling sampling can be used to determine whether the standby transmission path is in a fault state. Step 910: Trigger the timing unit to start timing. Step 912: Determine whether the timing time is within the preset delay time. If so, execute step 902; if not, execute step 914. OSpecifically, if the timing time is within the preset delay time, it can be understood that the timing time does not meet the preset delay time. If the timing time is not within the preset delay time, it can be understood that the timing time meets the preset delay time. Step 914: Execute switching. Specifically, the current transmission path of the optical signal can be switched from the initial transmission path to the standby transmission path. In summary, the above method monitors the fault status of the initial transmission path and the standby transmission path in the optical line protection and sets a preset delay time. When it is determined that the initial transmission path is in a faulty state and the standby transmission path is not in a faulty state, the timing unit is triggered to start timing. If the timing time meets the preset delay time, and the initial transmission path is still in a faulty state and the standby transmission path is still not in a faulty state, it indicates that after the preset delay time, the initial transmission path is still in a faulty state. Only then is the transmission path of the optical signal switched from the initial transmission path to the standby transmission path. This avoids misjudgment of the initial transmission path caused by upstream optical power fluctuations, thereby ensuring the reliability and stability of optical fiber communication transmission. Corresponding to the above-mentioned method embodiments, the present disclosure also provides an embodiment of an apparatus for switching an optical signal transmission path. FIG10 shows a schematic structural diagram of an apparatus for switching an optical signal transmission path according to one embodiment of the present disclosure. As shown in FIG10 , the apparatus includes: a determination module 1002 configured to determine an initial transmission path and a standby transmission path for an optical signal, wherein the initial transmission path and the standby transmission path are two optical signal transmission paths between a first transmitting end and a first receiving end in an optical signal transmission device, and the initial transmission path is the current transmission path for the optical signal; a timing module 1004 configured to trigger a timing unit to perform timing upon determining that the initial transmission path is in a faulty state and the standby transmission path is not in a faulty state; and a switching module 1006 configured to switch the transmission path of the optical signal from the initial transmission path to the standby transmission path upon determining that the timing time meets a preset delay time and the states of both the initial transmission path and the standby transmission path have not changed, so that the optical signal is transmitted via the standby transmission path. The above is a schematic diagram of an optical signal transmission path switching device according to this embodiment. It should be noted that the technical solution of this optical signal transmission path switching device and the technical solution of the aforementioned optical signal transmission path switching method share the same concept. For details not described in detail in the technical solution of the optical signal transmission path switching device, please refer to the description of the technical solution of the aforementioned optical signal transmission path switching method. Figure 11 shows a block diagram of a computing device 1100 according to one embodiment of the present disclosure.The components of the computing device 1100 include, but are not limited to, a memory 1110 and a processor 1120. The processor 1120 is connected to the memory 1110 via a bus 1130. A database 1150 is used to store data. The computing device 1100 also includes an access device 1140 that enables the computing device 1100 to communicate via one or more networks 1160. Examples of such networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 1140 may include one or more of any type of wired or wireless network interface (e.g., a network interface card (NIC)), such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and the like. In one embodiment of the present application, the aforementioned components of the computing device 1100 and other components not shown in FIG. 11 may also be connected to each other, for example, via a bus. It should be understood that the computing device structure block diagram shown in FIG. 11 is for illustrative purposes only and does not limit the scope of the present application. Those skilled in the art may add or replace other components as needed. Computing device 1100 can be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smartphone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC).The computing device 1100 may also be a mobile or stationary server. The processor 1120 is configured to execute the following computer-executable instructions, which, when executed by the processor, implement the steps of the aforementioned method for switching the transmission path of an optical signal. The above is a schematic diagram of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the aforementioned method for switching the transmission path of an optical signal are based on the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the aforementioned method for switching the transmission path of an optical signal. An embodiment of the present disclosure also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by the processor, implement the steps of the aforementioned method for switching the transmission path of an optical signal. The above is a schematic diagram of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the aforementioned method for switching the transmission path of an optical signal are based on the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the aforementioned method for switching the transmission path of an optical signal. One embodiment of the present disclosure further provides a computer program. When executed on a computer, the computer program causes the computer to perform the steps of the above-described method for switching the transmission path of an optical signal. The above is an illustrative embodiment of a computer program according to this embodiment. It should be noted that the technical solution of the computer program and the technical solution of the above-described method for switching the transmission path of an optical signal are based on the same concept. For details not described in detail in the technical solution of the computer program, please refer to the description of the technical solution of the above-described method for switching the transmission path of an optical signal. The above description describes specific embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous. The computer instructions include computer program code, which may be in source code form, object code form, executable file, or some intermediate form.The computer-readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunications signal, and a software distribution medium. It should be noted that the content of the computer-readable medium may be appropriately increased or decreased based on the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunications signals. It should be noted that, for ease of description, the aforementioned method embodiments are described as a series of actions. However, those skilled in the art should understand that the embodiments of the present disclosure are not limited by the order of the actions described, as certain steps may be performed in a different order or simultaneously according to the embodiments of the present disclosure. Furthermore, those skilled in the art should also understand that the embodiments described in this specification are preferred embodiments, and the actions and modules involved are not necessarily required for the embodiments of the present disclosure. In the above embodiments, the description of each embodiment has its own emphasis. For portions not described in detail in a particular embodiment, reference should be made to the relevant descriptions of other embodiments. The preferred embodiments disclosed above are merely intended to illustrate the present disclosure. The alternative embodiments do not describe all details in detail, nor do they limit the invention to the specific implementations described. Obviously, many modifications and variations are possible based on the content of the embodiments disclosed. These embodiments are selected and described in detail in this disclosure to better explain the principles and practical applications of the embodiments of the present disclosure, thereby enabling those skilled in the art to better understand and utilize the present disclosure. The present disclosure is limited only by the claims and their full scope and equivalents.
Claims
Claims 1. A method for switching a transmission path of an optical signal, comprising: An initial transmission path and a standby transmission path of an optical signal are determined, wherein the initial transmission path and the standby transmission path are two optical signal transmission paths between a first transmitting end and a first receiving end in an optical signal transmission device, and the initial transmission path is a current transmission path of the optical signal; when it is determined that the initial transmission path is in a fault state and the standby transmission path is not in a fault state, a timing unit is triggered to perform timing; when it is determined that the timing time satisfies a preset delay time and the states of the initial transmission path and the standby transmission path are unchanged, the transmission path of the optical signal is switched from the initial transmission path to the standby transmission path, so that the optical signal is transmitted through the standby transmission path.
2. According to the method of claim 1, the optical signal transmission device further comprises a second transmitting end and a second receiving end, wherein: An optical signal is transmitted from the second transmitting end to the second receiving end, from the second receiving end to the first transmitting end, and from the first transmitting end to the first receiving end. The two optical signal transmission paths between the first transmitting end and the first receiving end include a main transmission path and a backup transmission path. Accordingly, before switching the transmission path of the optical signal from the initial transmission path to the standby transmission path when it is determined that the timing time satisfies the preset delay time and the states of the initial transmission path and the standby transmission path are unchanged, the method further includes: determining an optical power fluctuation of the optical signal transmission path between the second transmitting end and the second receiving end; and determining the preset delay time according to the time when the optical power fluctuation is transmitted to the main transmission path and the backup transmission path.
3. According to the method of claim 2, the optical power fluctuation includes a first fluctuation triggered by an optical power interruption and a second fluctuation triggered by an optical power recovery; accordingly, determining the preset delay time according to the time when the optical power fluctuation is transmitted to the main transmission path and the backup transmission path comprises: Determine a first time when the first fluctuation is transmitted to the main transmission path, and a second time when the first fluctuation is transmitted to the backup transmission path; determining a third time when the second fluctuation is transmitted to the main transmission path, and a fourth time when the second fluctuation is transmitted to the backup transmission path; The preset delay time is determined according to the first time, the second time, the third time, and the fourth time.
4. The method according to claim 3, wherein determining the preset delay time according to the first time, the second time, the third time and the fourth time comprises: Determine a first difference between the first time and the second time, and determine the third time and the fourth time determining the preset delay time according to a comparison result of the first difference and the second difference.
5. The method according to claim 1, wherein, when it is determined that the initial transmission path is in a fault state and the standby transmission path is not in a fault state, triggering a timing unit to perform timing comprises: Determine first state data of the initial transmission path and second state data of the standby transmission path; When it is determined according to the first status data that the initial transmission path is in a fault state, and when it is determined according to the second status data that the standby transmission path is not in a fault state, a timing unit is triggered to perform timing.
6. The method according to claim 5, wherein the state data is optical power; accordingly, in the case where it is determined according to the first state data that the initial transmission path is in a fault state and it is determined according to the second state data that the standby transmission path is not in a fault state, triggering a timing unit to perform timing, comprises: When it is determined that the first optical power of the initial transmission path is less than a preset optical power threshold, it is determined that the initial transmission path is in a fault state, and when it is determined that the second optical power of the standby transmission path is greater than or equal to the preset optical power threshold, it is determined that the standby transmission path is not in a fault state, and a timing unit is triggered to perform timing.
7. The method according to claim 5, wherein the state data is optical power; accordingly, in the case where it is determined according to the first state data that the initial transmission path is in a fault state and it is determined according to the second state data that the standby transmission path is not in a fault state, triggering a timing unit to perform timing, comprises: Determining an optical power difference between a first optical power of the initial transmission path and a second optical power of the standby transmission path; When it is determined that the optical power difference is greater than a preset difference threshold, it is determined that the initial transmission path is in a fault state and the standby transmission path is not in a fault state, and a timing unit is triggered to perform timing.
8. The method according to claim 1, after the triggering timing unit performs timing, further comprises: In the case where it is determined that the timing time does not satisfy the preset delay time, determining whether the initial transmission path is in a fault state; In the case where it is determined according to the judgment result that the initial transmission path is in a fault state, it is determined whether the standby transmission path is in a fault state; if not, in the case where it is determined that the timing time satisfies the preset delay time, the transmission path of the optical signal is switched from the initial transmission path to the standby transmission path, or, in the case where it is determined that the timing time does not satisfy the preset delay time, the step of determining whether the initial transmission path is in a fault state is continued; if so, the timing unit is triggered to clear the timing, and the step of determining whether the initial transmission path is in a fault state is continued.
9. The method according to claim 8, after determining whether the initial transmission path is in a fault state, further comprising: In the case where it is determined according to the judgment result that the initial transmission path is not in a fault state, the timing unit is triggered to clear the timing, and the step of determining whether the initial transmission path is in a fault state is continued.
10. A transmission path switching device for an optical signal, comprising: A determination module is configured to determine an initial transmission path and a standby transmission path of an optical signal, wherein the initial transmission path and the standby transmission path are two optical signal transmission paths between a first transmitting end and a first receiving end in an optical signal transmission device, and the initial transmission path is a current transmission path of the optical signal; a timing module is configured to trigger a timing unit to perform timing when it is determined that the initial transmission path is in a fault state and the standby transmission path is not in a fault state; and a switching module is configured to switch the transmission path of the optical signal from the initial transmission path to the standby transmission path when it is determined that the timing time meets a preset delay time and the states of the initial transmission path and the standby transmission path are unchanged, so that the optical signal is transmitted through the standby transmission path.
11. A computing device comprising: Memory and processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method according to any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the steps of the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Optical line protection device and system
CN101826917A
A multiplex route recovering method for an optical fiber differential protection device
CN104393914A
Dual-standby OLP optical line protection switching method and device
CN114124204A
Optical transmission system and optical transmitter
JP2008219496A
Protection for Fibre Optic Access Networks
US20140199062A1