Redundant switching method and device for single electrical interface optical link based on primary and backup optical modules
Patent Information
- Application Number
- CN202611018803.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-09
- Publication Date
- 2026-10-16
AI Technical Summary
[0006]本申请提供一种基于主备光模块的单电接口光链路冗余切换方法及装置,以解决相关技术中无法在控制硬件成本与功耗的前提下消除光模块单点故障风险,导致设备硬件投入与运行能耗偏高,降低了通信设备的轻量化适配能力与长期运行经济性,同时降低了关键光链路的运行可用性的问题
[0020] This application embodiment can enter a switching mode between the primary and backup optical modules when a preset abnormal trigger condition is detected in the optical communication link, or when a primary/backup switching command is received. It then outputs multiple synchronous switching control signals to shut down the primary optical module and enable the backup optical module. This collaboratively controls the target high-speed differential selection unit to switch the receiving differential signal channel to the backup optical module and the target optical switch to the fiber optic path corresponding to the backup optical module. This controls a single high-speed serial electrical interface to re-establish the optical communication link and the upper-layer communication link, improving the operational availability of critical optical links. Therefore, it solves the problem in related technologies where the risk of single-point failure of optical modules cannot be eliminated while controlling hardware cost and power consumption, thus reducing the lightweight adaptability and long-term operational economy of communication equipment.
Smart Images

Figure CN122932785A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of optical communication technology, and in particular to a method and apparatus for redundancy switching of a single electrical interface optical link based on a primary and backup optical module. Background Technology
[0002] In distributed data acquisition, synchronous control, precision measurement, and large-scale sensing systems, fiber optic communication links are commonly used for high-speed data transmission and long-distance interconnection between devices. For systems implemented using FPGAs (Field-Programmable Gate Arrays), SoCs, switching chips, or high-speed network cards, the optical link typically consists of a high-speed serial electrical interface, an optical module, fiber optic connectors, and external optical fibers. The optical module, which includes a laser, photodetector, driver circuit, receiver circuit, and monitoring circuit, is a critical component in high-speed optical links that is susceptible to temperature, aging, optical power drift, power supply noise, and device failure.
[0003] In a conventional system, a high-speed serial electrical interface typically corresponds to one optical module, which is then connected to a set of external optical fibers or an external optical fiber interface. When the optical module fails, the transmitted optical power is abnormal, the received optical power is abnormal, the module alarms, or the link cannot be re-established, the communication link corresponding to that port will be interrupted. For ordinary maintainable equipment, the optical module can be restored by replacing it in the field; however, for equipment deployed underwater, underground, in space payloads, sealed chambers, unattended field sites, or other difficult-to-maintain environments, optical module failure may lead to the long-term unavailability of critical links.
[0004] In related technologies, a complete dual-link redundancy approach is typically adopted, which involves configuring two sets of high-speed serial electrical interfaces, two optical modules, and two external optical fibers or external connection resources. This approach can cover a wide range of fault types, but it significantly increases hardware material costs and equipment power consumption. Another approach is to use high-reliability optical modules or higher-specification optoelectronic devices to reduce the failure probability of a single optical module. However, this approach is usually more expensive and still cannot completely eliminate the problem of a single optical module acting as a single point of failure.
[0005] Therefore, the relevant technologies cannot eliminate the risk of single-point failure of optical modules while controlling hardware costs and power consumption, resulting in high equipment hardware investment and operating energy consumption. This reduces the lightweight adaptability and long-term operating economy of communication equipment, and also reduces the operational availability of critical optical links, which urgently needs to be addressed. Summary of the Invention
[0006] This application provides a method and apparatus for redundancy switching of a single-electric interface optical link based on a primary and backup optical module, in order to solve the problem in related technologies that it is impossible to eliminate the risk of single-point failure of optical modules while controlling hardware costs and power consumption, resulting in high equipment hardware investment and operating energy consumption, reducing the lightweight adaptability and long-term operating economy of communication equipment, and reducing the operational availability of critical optical links.
[0007] The first aspect of this application provides a method for redundant switching of a single-interface optical link based on a primary and backup optical module, comprising the following steps: detecting whether the optical communication link meets a preset abnormal triggering condition or whether a remotely issued primary / backup switching command is received; when the optical communication link meets the preset abnormal triggering condition or the primary / backup switching command is received, entering a switching mode of the primary optical module and the backup optical module, and outputting a multi-channel synchronous switching control signal; based on the multi-channel synchronous switching control signal, performing a shutdown operation on the primary optical module and enabling the backup optical module, and coordinating the control of the target high-speed differential selection unit to switch the receiving differential signal channel to the backup optical module, and switching the target optical switch to the optical fiber path corresponding to the backup optical module, so as to control a single high-speed serial electrical interface to re-establish the optical communication link and the upper-layer communication link.
[0008] Optionally, in one embodiment of this application, the multi-channel synchronous switching control signal includes an optical module enable control signal, a differential channel switching control signal, and an optical switch optical path switching control signal.
[0009] Optionally, in one embodiment of this application, the main optical module and the backup optical module are any one of SFP (Small Form-factor Pluggable), SFP+, QSFP (Quad Small Form-factor Pluggable), non-SFP ruggedized optical modules, onboard optical modules, or other optoelectronic conversion modules.
[0010] Optionally, in one embodiment of this application, the cooperative control target high-speed differential selection unit switches the receiving differential signal channel to the backup optical module and switches the target optical switch to the optical fiber path corresponding to the backup optical module, including: selecting the high-speed differential receiving signal of the backup optical module in the receiving direction to switch the receiving differential signal channel to the backup optical module; and selecting the optical path between the backup optical module and the external optical fiber interface on the optical path side, so that the target optical switch switches to the optical fiber path corresponding to the backup optical module.
[0011] Optionally, in one embodiment of this application, after controlling a single high-speed serial electrical interface to re-establish the optical communication link and the upper-layer communication link, the method further includes: detecting whether the optical link switching of the single high-speed serial electrical interface meets a preset failure condition; when the optical link switching of the single high-speed serial electrical interface meets the preset failure condition, restoring the optical communication link to the initial path before entering the switching mode of the main optical module and the backup optical module, uploading a link fault alarm, and re-entering the switching mode.
[0012] A second aspect of this application provides a single-interface optical link redundancy switching device based on a primary and backup optical module, comprising: a first detection module for detecting whether the optical communication link meets a preset abnormal triggering condition or whether a remotely issued primary / backup switching command has been received; an output module for entering a switching mode between the primary and backup optical modules and outputting a multi-channel synchronous switching control signal when the optical communication link meets the preset abnormal triggering condition or the primary / backup switching command has been received; and a switching module for performing a shutdown operation on the primary optical module and enabling the backup optical module based on the multi-channel synchronous switching control signal, coordinating with a target high-speed differential selection unit to switch the receiving differential signal channel to the backup optical module, and switching the target optical switch to the optical fiber path corresponding to the backup optical module, so as to control a single high-speed serial electrical interface to re-establish the optical communication link and the upper-layer communication link.
[0013] Optionally, in one embodiment of this application, the multi-channel synchronous switching control signal includes an optical module enable control signal, a differential channel switching control signal, and an optical switch optical path switching control signal.
[0014] Optionally, in one embodiment of this application, the primary optical module and the backup optical module are any one of SFP, SFP+, QSFP, non-SFP ruggedized optical modules, onboard optical modules, or other optoelectronic conversion modules.
[0015] Optionally, in one embodiment of this application, the switching module includes: a first switching unit, configured to select the high-speed differential receiving signal of the backup optical module in the receiving direction, so as to switch the receiving differential signal channel to the backup optical module; and a second switching unit, configured to select the optical path between the backup optical module and the external optical fiber interface on the optical path side, so that the target optical switch switches to the optical fiber path corresponding to the backup optical module.
[0016] Optionally, in one embodiment of this application, the apparatus further includes: a second detection module, configured to detect whether the optical link switching of a single high-speed serial electrical interface meets a preset failure condition; and a processing module, configured to, when detecting that the optical link switching of the single high-speed serial electrical interface meets the preset failure condition, restore the optical communication link to the initial path before entering the switching mode of the main optical module and the backup optical module, upload a link fault alarm, and re-enter the switching mode.
[0017] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor executes the program to implement the single-electric interface optical link redundancy switching method based on primary and backup optical modules as described in the above embodiments.
[0018] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for redundancy switching of a single electrical interface optical link based on a primary / backup optical module.
[0019] A fifth aspect of this application provides a computer program product, including a computer program, which, when executed, is used to implement the above-described method for redundancy switching of a single electrical interface optical link based on a primary and backup optical module.
[0020] This application embodiment can enter a switching mode between the primary and backup optical modules when a preset abnormal trigger condition is detected in the optical communication link, or when a primary / backup switching command is received. It then outputs multiple synchronous switching control signals to shut down the primary optical module and enable the backup optical module. This collaboratively controls the target high-speed differential selection unit to switch the receiving differential signal channel to the backup optical module and the target optical switch to the fiber optic path corresponding to the backup optical module. This controls a single high-speed serial electrical interface to re-establish the optical communication link and the upper-layer communication link, improving the operational availability of critical optical links. Therefore, it solves the problem in related technologies where the risk of single-point failure of optical modules cannot be eliminated while controlling hardware cost and power consumption, thus reducing the lightweight adaptability and long-term operational economy of communication equipment.
[0021] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0022] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein: Figure 1This is a schematic diagram of a single-electric interface optical link redundancy structure based on a primary and backup optical module according to an embodiment of this application; Figure 2 This is a flowchart illustrating a single-electric interface optical link redundancy switching method based on a primary / backup optical module according to an embodiment of this application. Figure 3 A flowchart illustrating a specific embodiment of the single-electric interface optical link redundancy switching method based on primary and backup optical modules in this application; Figure 4 This is a schematic diagram of a single-electric interface optical link redundancy switching device based on a primary and backup optical module according to an embodiment of this application; Figure 5 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of this application. Detailed Implementation
[0023] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0024] The following describes a method and apparatus for redundancy switching of a single-electric interface optical link based on primary and backup optical modules, according to embodiments of this application, with reference to the accompanying drawings. Addressing the issues mentioned in the background art, such as the inability to eliminate the risk of single-point failure of optical modules while controlling hardware cost and power consumption, thus reducing the lightweight adaptability and long-term operational economy of communication equipment, this application provides a method for redundancy switching of a single-electric interface optical link based on primary and backup optical modules. In this method, upon detecting that the optical communication link meets preset abnormal triggering conditions or receiving a primary / backup switching command, a switching mode between the primary and backup optical modules is entered, and multiple synchronous switching control signals are output. This performs a shutdown operation on the primary optical module and enables the backup optical module. The target high-speed differential selection unit is coordinated to switch the receiving differential signal channel to the backup optical module, and the target optical switch is switched to the fiber optic path corresponding to the backup optical module. This controls a single high-speed serial electrical interface to re-establish the optical communication link and the upper-layer communication link, improving the operational availability of critical optical links. Therefore, this solves the problems in the related art, such as the inability to eliminate the risk of single-point failure of optical modules while controlling hardware cost and power consumption, thus reducing the lightweight adaptability and long-term operational economy of communication equipment.
[0025] This application establishes a single-interface optical link redundancy switching system based on primary and backup optical modules. The system includes: a high-speed serial electrical interface, a first optical module (primary optical module), a second optical module (backup optical module), a high-speed differential selection unit, an optical switch, and a switching control unit. The high-speed serial electrical interface can be an FPGA SerDes, a SoC high-speed transceiver, a high-speed interface of a switching chip, or other equivalent high-speed serial electrical interface. The first and second optical modules serve as the primary and backup optical modules, respectively. The high-speed differential selection unit selects the high-speed differential receive signal of the currently active optical module in the receiving direction. The optical switch selects the optical path between the currently active optical module and the external fiber optic interface on the optical path side. The switching control unit coordinates the optical module enable, differential selection state, and optical switch state. This application will describe this system in detail using it as an example.
[0026] It should be noted that, as Figure 1 As shown, the single-interface optical link redundancy structure based on primary and backup optical modules in this application consists of a high-speed serial electrical interface, a first optical module (primary optical module), a second optical module (backup optical module), and an external fiber optic interface or a set of external fiber optic connection resources. In the transmitting direction, the same high-speed serial transmitter can simultaneously connect to the transmitting inputs of the first and second optical modules, or one path can be used as the currently active transmitting path through a drive buffer, fan-out circuit, or optical module enable control. In the receiving direction, the high-speed differential receiving outputs of the first and second optical modules are respectively connected to a high-speed differential selection unit, and the output of the high-speed differential selection unit is connected back to the same high-speed serial receiver.
[0027] On the optical path side, the fiber optic interfaces of the first and second optical modules are connected to the two branch ports of the optical switch, respectively. The common port of the optical switch is connected to an external fiber optic interface or an external fiber. By controlling the state of the optical switch, either the first or second optical module can be selected to connect to the external fiber. In this way, the currently active optical path can be switched between the two optical modules without increasing the resources for a second external fiber connection.
[0028] The switching control unit can be implemented using FPGA logic, a microcontroller, an embedded processor, a management control chip, or a remote control system. The switching control unit outputs at least three types of control signals: the first type controls the enable or operating state of the primary and backup optical modules; the second type controls the high-speed differential selection unit to select the receiving differential signal of the primary or backup optical module; and the third type controls the optical switch to select the optical path of the primary or backup optical module. During switching, the coordinated changes of these three types of control signals ensure that the electrical path, optical path, and the currently active optical module state are consistent.
[0029] Therefore, the embodiments of this application can complete the dual-optical module primary and backup redundancy collaborative switching with only a single high-speed serial electrical interface and a single external optical fiber, which greatly reduces hardware material costs, equipment power consumption and wiring resource occupation, while realizing the synchronous linkage of electrical receiving channel, optical path and optical module working status, improving link switching synchronization and communication stability.
[0030] Specifically, Figure 2 This is a flowchart illustrating a single-electric interface optical link redundancy switching method based on a primary / backup optical module, provided in an embodiment of this application.
[0031] like Figure 2 As shown, the single-electric interface optical link redundancy switching method based on primary and backup optical modules includes the following steps: In step S201, it is detected whether the optical communication link meets the preset abnormal triggering conditions or whether a remote master / slave switching instruction has been received.
[0032] In this embodiment of the application, the preset abnormal triggering conditions can be conditions such as link interruption, optical module alarm, abnormal received optical power, transmission failure, abnormal data heartbeat, etc.
[0033] It is understood that the embodiments of this application can detect whether the optical communication link meets the abnormal triggering conditions. For example, the above system first operates normally under the main optical module path and continuously monitors the status of the optical communication link. Then, it detects whether there is at least one abnormal link condition such as optical communication link interruption, optical module alarm, abnormal received optical power, optical module transmission failure, or abnormal data heartbeat, or whether a master / slave switchover command remotely issued by the operation and maintenance platform has been received. Thus, it simultaneously identifies two types of switching triggering sources: local automatic fault triggering and remote manual active switching. The embodiments of this application can be compatible with both automatic fault triggering and remote manual active switching modes, comprehensively covering various link failure scenarios and improving the system's switching triggering flexibility and operation and maintenance convenience.
[0034] It should be noted that this application does not limit the switching triggering method. The primary / standby switchover can be triggered by manual remote command or automatically by link status monitoring; it can be determined based on LOS (Loss of Signal), Tx Fault (Transmit Fault), received optical power, link lockout status, bit error rate, data heartbeat, or other link health status information.
[0035] In step S202, when the optical communication link is detected to meet the preset abnormal triggering conditions, or when a master-slave switching instruction is received, the switching mode of the master optical module and the backup optical module is entered, and a multi-channel synchronous switching control signal is output.
[0036] It is understood that, in the embodiments of this application, when at least one link abnormality is detected, such as optical communication link interruption, optical module alarm, abnormal received optical power, optical module transmission failure, or abnormal data heartbeat, or when a master-slave switching instruction is received remotely from the operation and maintenance platform, the switching control unit inside the system enters the switching mode of the master optical module and the backup optical module, and simultaneously outputs multiple synchronous switching control signals. For example, the multiple synchronous switching control signals may include three types of linkage control signals: optical module enable control signal, differential channel switching control signal, and optical switch optical path switching control signal, thereby ensuring that the switching action is executed synchronously, taking into account both the timeliness of fault response and the consistency of the switching status.
[0037] In one embodiment of this application, the multi-channel synchronous switching control signal includes an optical module enable control signal, a differential channel switching control signal, and an optical switch optical path switching control signal.
[0038] In some embodiments, the optical module enable control signal is used to regulate the power-on and light-emitting operation of the main and backup optical modules, the differential channel switching control signal is used to drive the high-speed differential selection unit to complete the selection of the receiving differential signal path, and the optical switch optical path switching control signal is used to drive the optical switch to complete the switching of the external optical fiber path branch. The three types of control signals are issued and take effect simultaneously, respectively corresponding to the control of the transmitting side optical module, the receiving side differential circuit, and the optical path transmission branch. This realizes the synchronous linkage of the switching actions of multiple components, avoiding link establishment failure, reception abnormality, or communication interruption caused by the inconsistency between electrical side selection and optical side selection.
[0039] In one embodiment of this application, the primary optical module and the backup optical module are any one of SFP, SFP+, QSFP, non-SFP ruggedized optical modules, onboard optical modules, or other optoelectronic conversion modules.
[0040] For example, this application does not limit the specific packaging form of the optical module. The main optical module and the backup optical module can be SFP, SFP+, QSFP, non-SFP ruggedized optical modules, on-board optical modules, or other optoelectronic conversion modules. This application can be compatible with optoelectronic conversion modules of various specifications and forms, greatly expanding the applicable equipment scenarios of the solution and improving the overall architecture's universal adaptability.
[0041] In step S203, based on the multi-channel synchronous switching control signal, the main optical module is shut down and the backup optical module is enabled. The target high-speed differential selection unit is coordinated to switch the receiving differential signal channel to the backup optical module and switch the target optical switch to the optical fiber path corresponding to the backup optical module, so as to control the single high-speed serial electrical interface to re-establish the optical communication link and the upper-layer communication link.
[0042] In the embodiments of this application, the target high-speed differential selection unit and the target optical switch are the high-speed differential selection unit and optical switch in the above system.
[0043] In actual implementation, this application can use the multi-channel synchronous switching control signals synchronously issued by the switching control unit in the above system to execute corresponding hardware control actions according to various control signals: First, it issues a lower light-emitting module enable control signal to power off the currently operating main optical module and simultaneously power on the backup optical module to enable its photoelectric transceiver function. Second, it synchronously issues a differential channel switching control signal to coordinate with the high-speed differential selection unit to complete signal selection switching, switching the receiving differential signal channel to the backup optical module side. Third, it synchronously issues a light path switching control signal to drive the optical switch to complete optical path branch switching, connecting the optical fiber transmission path corresponding to the backup optical module. After the optical module, differential receiving channel, and external optical path have all completed synchronous switching, it controls a single high-speed serial electrical interface to re-establish the optical communication transmission link and synchronously restores the upper-layer communication link. This embodiment of the application completes the full-link switching by synchronously linking the optical module, differential receiving channel, and optical switch, unifying the electrical and optical transmission paths, and improving the synchronization of main / backup switching and the continuous transmission capability of services.
[0044] During the primary / standby switchover process, the switchover control unit simultaneously or in a specific timing sequence controls the enable status of the primary and standby optical modules, the channel status of the high-speed differential selection unit on the receiving side, and the channel status of the optical switch on the optical path side, ensuring that the selected optical module remains consistent on both the electrical receiving path and the optical output path. This coordinated control method avoids link establishment failures, reception anomalies, or communication interruptions caused by inconsistencies between electrical and optical selection.
[0045] In one specific embodiment, this application is used for a critical uplink port in a WR (White Rabbit) synchronization network. After a primary / backup optical module switchover, the WR link needs to be re-established and re-locked, subsequently restoring WR time synchronization, control, and data communication functions. In another embodiment, this application is used for a 10G Ethernet data link, where data communication is renegotiated or re-established via the Ethernet link after a primary / backup switchover. In other embodiments, this method can also be used for 1G, 2.5G, 10G, 25G, or other high-speed serial optical communication links.
[0046] Furthermore, the embodiments of this application do not limit the specific model of the high-speed differential selection unit, which can be a high-speed differential multiplexer, a high-speed differential switch, a 2×2 cross switch, or other differential selection devices that can meet the requirements of link rate and signal integrity.
[0047] Optionally, in one embodiment of this application, the coordinated control of the target high-speed differential selection unit to switch the receiving differential signal channel to the backup optical module and to switch the target optical switch to the optical fiber path corresponding to the backup optical module includes: selecting the high-speed differential receiving signal of the backup optical module in the receiving direction to switch the receiving differential signal channel to the backup optical module; and selecting the optical path between the backup optical module and the external optical fiber interface on the optical path side so that the target optical switch switches to the optical fiber path corresponding to the backup optical module.
[0048] In some embodiments, the embodiments of this application can coordinately control the high-speed differential selection unit to switch the receiving differential signal channel to the backup optical module and switch the optical switch to the optical fiber path corresponding to the backup optical module. Specifically, this is divided into two steps executed synchronously: receiving-side electrical path switching and optical path switching on the optical path side. In the receiving direction, the high-speed differential selection unit completes the signal selection logic, preferentially selecting the high-speed differential receiving signal output from the backup optical module to input to the same high-speed serial receiving end, thereby completing the switching of the receiving differential signal channel to the backup optical module. On the optical path side, a switching command is synchronously issued to the optical switch to select the transmission optical path between the backup optical module and the external optical fiber interface, so that the optical switch synchronously switches to the optical fiber path corresponding to the backup optical module, realizing the synchronous completion of branch switching between the electrical receiving path and the external transmission optical path, thereby improving the link switching synchronization and transmission continuity.
[0049] Optionally, in one embodiment of this application, after controlling a single high-speed serial electrical interface to re-establish the optical communication link and the upper-layer communication link, the method further includes: detecting whether the optical link switching of the single high-speed serial electrical interface meets a preset failure condition; when the optical link switching of the single high-speed serial electrical interface meets the preset failure condition, restoring the optical communication link to the initial path before entering the switching mode of the main optical module and the backup optical module, uploading a link fault alarm, and re-entering the switching mode.
[0050] In this embodiment of the application, the preset failure condition can be that any indicator of optical signal, SerDes synchronization, upper layer service or switching hardware is abnormal within a certain period of time after the handover is completed, and the handover is determined to be a failure.
[0051] In some embodiments, this application can detect the link operation status after the current optical link switch in real time. When the switch fails, it automatically restores the optical communication link to the original initial transmission path before entering the primary and backup optical module switching mode, synchronously uploads a link switch failure alarm to the upper-level management platform, and re-enters the switching mode to initiate the primary / backup switching process again. It should be noted that when a switch failure is determined, this application can flexibly combine various fault-tolerant operations. In addition to reverting to the original transmission path, re-initiating the switch, and reporting alarms, it can also control the system to enter a link security lock operation state, restricting service data transmission to avoid the spread of abnormal signals, thereby improving the system's fault self-healing capability and operational reliability.
[0052] For example, such as Figure 3 As shown, the working principle of the embodiments of this application will be described in detail below with a specific example.
[0053] Step S301: The link is operating normally, and the main optical module is the current path.
[0054] Step S302: Monitor link status or receive remotely issued master / slave switchover commands.
[0055] Step S303: Triggerable conditions, LOS / TxFault, abnormal received optical power, abnormal data heartbeat, remote primary / backup switchover command.
[0056] Step S304: Main link abnormality, i.e., link interruption / alarm / locking abnormality.
[0057] Step S305: Coordinate the switching of three types of objects: optical module enable, differential selection, and optical switch.
[0058] Step S306: The three states are consistent, namely, enabling the target optical module, selecting the target RX (receiver) differential channel, and selecting the target optical path.
[0059] Step S307: Re-establish the optical link and re-lock the Ethernet / WR link.
[0060] Step S308: If the switch fails, you can return to the original path or enter the alarm state.
[0061] Step S309: Communication is restored, and the backup optical module becomes the current path.
[0062] In summary, the embodiments of this application can achieve optical module-level redundancy without adding a second complete set of high-speed electrical interfaces. This application uses a single high-speed serial electrical interface in conjunction with two primary and backup optical modules, achieving switching of the currently active optical module through receiver-side differential selection and optical path-side optical switching, avoiding the additional use of a complete second set of SerDes or high-speed electrical interface resources for optical module redundancy. Secondly, the embodiments of this application reduce the resource, cost, and deployment complexity of the redundancy scheme. Compared to complete dual-link redundancy, this application reduces the resource consumption of high-speed electrical interfaces, external optical fibers, connectors, and ports, thereby reducing equipment size, power consumption, heat dissipation pressure, procurement costs, and maintenance complexity.
[0063] Furthermore, the embodiments of this application can provide redundant protection for optical modules, which are relatively prone to independent failure. Optical modules include lasers, detectors, and analog drive receiver circuits, and are more susceptible to factors such as temperature, aging, and optical power drift during long-term operation. This application prioritizes primary and backup redundancy for optical modules to improve the long-term reliability of critical optical links. It also supports remote switching and unattended applications; switching control can be triggered by remote commands or link status monitoring, making it suitable for long-term unattended systems that are difficult to maintain on-site, such as underwater, underground, space payloads, sealed chambers, and field sites.
[0064] Finally, the embodiments of this application are also compatible with optical links of different protocols and speeds. This application is not limited to upper-layer protocols and can be used for WR synchronization links, ordinary Ethernet links, 10G data uplink links, or other high-speed serial optical communication links. For WR synchronization networks, the WR link can be re-established and synchronization restored after switching; for ordinary data links, Ethernet or other data communication links can be re-established after switching. This application mainly adds primary and backup optical modules, differential selection units, optical switches, and control logic, with minimal changes to the original high-speed serial electrical interface and upper-layer communication protocols. It is easy to deploy in standard or self-developed switching equipment, FPGA data acquisition boards, WR node equipment, and other high-speed optical communication equipment, and is easy to implement on existing equipment.
[0065] The single-interface optical link redundancy switching method based on primary and backup optical modules proposed in this application can enter the switching mode of the primary and backup optical modules when the optical communication link meets the preset abnormal triggering conditions or when a primary / backup switching command is received. It outputs multiple synchronous switching control signals to shut down the primary optical module and enable the backup optical module. This collaboratively controls the target high-speed differential selection unit to switch the receiving differential signal channel to the backup optical module and the target optical switch to the fiber path corresponding to the backup optical module. This controls the single high-speed serial electrical interface to re-establish the optical communication link and the upper-layer communication link, improving the operational availability of critical optical links. Therefore, it solves the problems in related technologies where it is impossible to eliminate the risk of single-point failure of optical modules while controlling hardware cost and power consumption, thus reducing the lightweight adaptability and long-term operational economy of communication equipment.
[0066] Next, referring to the accompanying drawings, a single-electric interface optical link redundancy switching device based on a primary and backup optical module is described according to an embodiment of this application.
[0067] Figure 4 This is a block diagram of a single-electric interface optical link redundancy switching device based on a primary and backup optical module according to an embodiment of this application.
[0068] like Figure 4 As shown, the single-electric interface optical link redundancy switching device 10 based on primary and backup optical modules includes: a first detection module 100, an output module 200, and a switching module 300.
[0069] Specifically, the first detection module 100 is used to detect whether the optical communication link meets the preset abnormal triggering conditions or whether it has received a remotely issued master / slave switching instruction.
[0070] The output module 200 is used to enter the switching mode of the main optical module and the backup optical module and output multiple synchronous switching control signals when the optical communication link is detected to meet the preset abnormal triggering conditions or when a main-backup switching instruction is received.
[0071] The switching module 300 is used to perform a shutdown operation on the main optical module and enable the backup optical module based on the multi-channel synchronous switching control signal. It also coordinates the target high-speed differential selection unit to switch the receiving differential signal channel to the backup optical module and the target optical switch to the optical fiber path corresponding to the backup optical module, so as to control a single high-speed serial electrical interface to re-establish the optical communication link and the upper-layer communication link.
[0072] Optionally, in one embodiment of this application, the multi-channel synchronous switching control signal includes an optical module enable control signal, a differential channel switching control signal, and an optical switch optical path switching control signal.
[0073] Optionally, in one embodiment of this application, the primary optical module and the backup optical module are any one of SFP, SFP+, QSFP, non-SFP ruggedized optical modules, onboard optical modules, or other optoelectronic conversion modules.
[0074] Optionally, in one embodiment of this application, the switching module 300 includes: a first switching unit and a second switching unit.
[0075] The first switching unit is used to select the high-speed differential receiving signal of the backup optical module in the receiving direction, so as to switch the receiving differential signal channel to the backup optical module.
[0076] The second switching unit is used to select the optical path between the backup optical module and the external optical fiber interface on the optical path side, so that the target optical switch switches to the optical fiber path corresponding to the backup optical module.
[0077] Optionally, in one embodiment of this application, the apparatus 10 of this application embodiment further includes: a second detection module and a processing module.
[0078] The second detection module is used to detect whether the optical link switching of a single high-speed serial electrical interface meets the preset failure conditions.
[0079] The processing module is used to restore the optical communication link to the initial path before entering the switching mode between the main optical module and the backup optical module when the optical link switching of a single high-speed serial electrical interface meets the preset failure conditions, upload the link fault alarm, and re-enter the switching mode.
[0080] It should be noted that the foregoing explanation of the embodiment of the single-electric interface optical link redundancy switching method based on primary and backup optical modules also applies to the single-electric interface optical link redundancy switching device based on primary and backup optical modules in this embodiment, and will not be repeated here.
[0081] The single-interface optical link redundancy switching device based on primary and backup optical modules proposed in this application can enter the switching mode of the primary and backup optical modules when the optical communication link meets the preset abnormal triggering conditions or when a primary / backup switching command is received. It outputs multiple synchronous switching control signals to shut down the primary optical module and enable the backup optical module. It then coordinates the control of the target high-speed differential selection unit to switch the receiving differential signal channel to the backup optical module and the target optical switch to the fiber optic path corresponding to the backup optical module. This controls the single high-speed serial electrical interface to re-establish the optical communication link and the upper-layer communication link, improving the operational availability of critical optical links. Therefore, it solves the problems in related technologies where it is impossible to eliminate the risk of single-point failure of optical modules while controlling hardware cost and power consumption, thus reducing the lightweight adaptability and long-term operational economy of communication equipment.
[0082] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include: The memory 501, the processor 502, and the computer program stored on the memory 501 and capable of running on the processor 502.
[0083] When the processor 502 executes the program, it implements the single-electric interface optical link redundancy switching method based on the primary and backup optical modules provided in the above embodiments.
[0084] Furthermore, electronic devices also include: Communication interface 503 is used for communication between memory 501 and processor 502.
[0085] The memory 501 is used to store computer programs that can run on the processor 502.
[0086] Memory 501 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0087] If the memory 501, processor 502, and communication interface 503 are implemented independently, then the communication interface 503, memory 501, and processor 502 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0088] Optionally, in a specific implementation, if the memory 501, processor 502, and communication interface 503 are integrated on a single chip, then the memory 501, processor 502, and communication interface 503 can communicate with each other through an internal interface.
[0089] Processor 502 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0090] This embodiment also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for redundancy switching of a single electrical interface optical link based on a primary and backup optical module.
[0091] This embodiment also provides a computer program product, including a computer program, which, when executed, is used to implement the above-described method for redundancy switching of a single electrical interface optical link based on a primary and backup optical module.
[0092] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0093] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0094] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0095] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0096] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0097] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0098] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0099] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A method for redundant switching of a single-electrical interface optical link based on primary and backup optical modules, characterized in that, Includes the following steps: Detect whether the optical communication link meets the preset abnormal triggering conditions, or whether it has received a remotely issued master / slave switchover command; When the optical communication link is detected to meet the preset abnormal triggering condition, or when the master-slave switching instruction is received, the system enters the switching mode of the master optical module and the backup optical module, and outputs a multi-channel synchronous switching control signal. Based on the multi-channel synchronous switching control signal, the main optical module is shut down, and the backup optical module is enabled. The target high-speed differential selection unit is coordinated to switch the receiving differential signal channel to the backup optical module and switch the target optical switch to the optical fiber path corresponding to the backup optical module, so as to control a single high-speed serial electrical interface to re-establish the optical communication link and the upper-layer communication link.
2. The method according to claim 1, characterized in that, The multi-channel synchronous switching control signals include optical module enable control signals, differential channel switching control signals, and optical switch optical path switching control signals.
3. The method according to claim 1, characterized in that, The main optical module and the backup optical module are any one of the following: small pluggable optical modules (SFP), SFP+, four-channel small pluggable optical modules (QSFP), non-SFP ruggedized optical modules, onboard optical modules, or other optoelectronic conversion modules.
4. The method according to claim 1, characterized in that, The coordinated control target high-speed differential selection unit switches the received differential signal channel to the backup optical module and switches the target optical switch to the fiber optic path corresponding to the backup optical module, including: The high-speed differential receiving signal of the backup optical module is selected in the receiving direction to switch the receiving differential signal channel to the backup optical module; On the optical path side, select the optical path between the backup optical module and the external optical fiber interface, so that the target optical switch switches to the optical fiber path corresponding to the backup optical module.
5. The method according to claim 1, characterized in that, After controlling a single high-speed serial electrical interface to re-establish the optical communication link and the upper-layer communication link, the following is also included: Detect whether the optical link switching of a single high-speed serial electrical interface meets the preset failure conditions; When the optical link switching of the single high-speed serial electrical interface is detected to meet the preset failure conditions, the optical communication link is restored to the initial path before entering the switching mode of the main optical module and the backup optical module, a link fault alarm is uploaded, and the switching mode is re-entered.
6. A single-electrical interface optical link redundancy switching device based on primary and backup optical modules, characterized in that, include: The detection module is used to detect whether the optical communication link meets the preset abnormal triggering conditions or whether it has received a remote master / slave switchover command. The output module is used to enter the switching mode of the main optical module and the backup optical module and output multiple synchronous switching control signals when the optical communication link is detected to meet the preset abnormal triggering conditions or when the main / backup switching instruction is received. The switching module is used to perform a shutdown operation on the main optical module and enable the backup optical module based on the multi-channel synchronous switching control signal. It also coordinates the target high-speed differential selection unit to switch the receiving differential signal channel to the backup optical module and the target optical switch to the optical fiber path corresponding to the backup optical module, so as to control a single high-speed serial electrical interface to re-establish the optical communication link and the upper-layer communication link.
7. The apparatus according to claim 6, characterized in that, The multi-channel synchronous switching control signals include optical module enable control signals, differential channel switching control signals, and optical switch optical path switching control signals.
8. An electronic device, characterized in that, include: The memory, the processor, and the computer program stored in the memory and capable of running on the processor, wherein the processor executes the program to implement the single-electric interface optical link redundancy switching method based on the primary and backup optical modules as described in any one of claims 1-5.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the single-electric interface optical link redundancy switching method based on the primary and backup optical modules as described in any one of claims 1-5.
10. A computer program product, comprising a computer program, characterized in that, The computer program is executed by a processor to implement the single-electric interface optical link redundancy switching method based on a primary / backup optical module as described in any one of claims 1-5.