Optical bypass protection device, method and system and computer readable storage medium
By linking the modules of the optical bypass protection device, active coordinated switching and data forwarding recovery are achieved, which solves the problem that traditional optical bypass protection technology cannot predict the performance degradation of optical modules and the loss of data packets, and improves the reliability and continuity of optical signals.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-25
- Publication Date
- 2026-04-03
AI Technical Summary
Traditional optical bypass protection technology cannot predict or avoid optical module performance degradation, leading to service interruption. Furthermore, the optical switch switching process causes data packet loss, which cannot meet the requirements for high reliability.
By linking the modules of the optical bypass protection device, active coordinated switching is achieved, improving the switching rate of the optical switch. After the bypass path is connected, data forwarding recovery operation is performed to reduce the amount of data packet loss.
It enables active coordinated switching of optical signals, reduces data packet loss, and is suitable for application scenarios with extremely high requirements for optical signal continuity.
Smart Images

Figure CN121791933A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to an optical bypass protection device, method, system, and computer-readable storage medium. Background Technology
[0002] In modern fiber optic communication networks, the reliability of critical node devices (such as switches and routers) directly affects the stability of the entire network. Traditional optical bypass protection technology achieves physical layer protection by deploying optical switches as bypasses on critical node devices. Specifically, when a critical node device experiences a hard fault such as a power outage, traditional optical bypass protection technology can switch the optical signal to a physical bypass fiber to continue transmission, thereby bypassing the fault point and restoring link connectivity.
[0003] The application of optical bypass protection technology can maximize the continuity of optical signals when network anomalies occur, avoid long-term service interruptions, and thus improve the availability of the entire network.
[0004] However, such traditional solutions have significant drawbacks: First, their protection mechanism is a passive and delayed response mechanism, only acting after a fault has occurred. It cannot predict or prevent "soft faults" such as optical module performance degradation (e.g., optical power attenuation, increased bit error rate), by which time service interruption has already occurred. Second, the mechanical or physical switching process of optical switches typically takes several milliseconds to tens of milliseconds, during which optical path interruption can lead to the loss of a large number of data packets. Summary of the Invention
[0005] This application provides an optical bypass protection device, method, system, and computer-readable storage medium. The optical bypass protection device, through inter-module linkage, can automatically perform optical switch switching, achieving active coordinated switching of the optical bypass and improving the optical switch switching rate to reduce data packet loss. Furthermore, after the bypass path is established, the optical bypass protection device can perform data forwarding recovery operations, further reducing data packet loss. It is suitable for applications with extremely high requirements for optical signal continuity.
[0006] In a first aspect, this application provides an optical bypass protection device, including a control module, a data processing module, and an optical path switching module, wherein the control module is connected to the data processing module and the optical path switching module.
[0007] The data processing module is used to respond to the detected switching trigger event, perform the data processing operation corresponding to the switching trigger event, and send a trigger signal to the control module.
[0008] The control module is used to send an optical path switching command to the optical path switching module in response to the received trigger signal.
[0009] An optical path switching module, configured to perform an optical switch switching action in response to an received optical path switching instruction, where the optical switch action is used to switch the optical signal path from a first path passing through an optical bypass protection device to a bypass path.
[0010] The data processing module is further configured to perform a data forwarding recovery operation after the bypass path is connected.
[0011] In some embodiments, the switching trigger event is a predictable soft fault signal or an instantaneous hard fault signal. The data processing module at least includes a frame parsing unit and a cache management unit. When the switching trigger event is a predictable soft fault signal, the data processing module responds to the monitored predictable soft fault signal, performs a first data processing operation, and sends a first trigger signal to the control module. The first data processing operation includes: identifying the current data stream state through the frame parsing unit, where the state is a data packet transmission state or a data packet gap state. If the current data stream is in the data packet transmission state, wait for the first data packet gap after the current data packet is transmitted, and start the cache management unit. If the current data stream is in the data packet gap state, directly start the cache management unit. The cache management unit is used to temporarily store subsequent input complete data packets. The first trigger signal is used to indicate that the cache management unit has been started. The control module is specifically configured to: respond to the received first trigger signal and send an optical path switching instruction to the optical path switching module.
[0012] In some embodiments, when the switching trigger event is a predictable soft fault signal, the data forwarding recovery operation performed by the data processing module includes: identifying the state of the current data stream after the bypass path is connected. When the first data packet gap is identified, read and send the data temporarily stored in the cache management unit to the bypass path at the original line rate, and perform an emptying operation on the cache management unit. When it is monitored that the data temporarily stored in the cache management unit is emptied, resume to the data direct-through mode.
[0013] In some embodiments, the control module is in a connected state with the protected device. When the switching trigger event is a predictable soft fault signal, before the step that the data processing module responds to the monitored switching trigger event, performs the data processing operation corresponding to the switching trigger event, and sends a trigger signal to the control module, the control module is further configured to: periodically obtain multi-dimensional state information of the protected device, where the multi-dimensional state information at least includes optical power, bit error rate, temperature, and bias current. Perform trend analysis and health assessment on the multi-dimensional state information respectively to obtain an assessment result. If the assessment result meets the preset predictive fault condition, generate a predictable soft fault signal and send the predictable soft fault signal to the data processing module.
[0014] In some implementations, the switching trigger event is a predictable soft fault signal or a transient hard fault signal. When the switching trigger event is a transient hard fault signal, the data processing module, in response to the detected transient hard fault signal, performs a second data processing operation and sends a second trigger signal to the control module. The second data processing operation includes: suspending the currently executing data processing logic and resetting the internal data path to bypass mode. When the internal data path is in bypass mode, the data processing module has the function of forwarding data from the bypass path. The second trigger signal is used to indicate that the internal data path is in bypass mode. The control module is specifically used to: in response to the received second trigger signal, send an optical path switching command to the optical path switching module.
[0015] In some implementations, the data processing module is also used to write the flowing data into the circular microbuffer when the first path is in operation. When the switching trigger event is a transient hard fault signal, the data forwarding recovery operation includes sending the data stored in the circular microbuffer instantaneously before the fault occurred to the bypass path.
[0016] In some implementations, when the switching trigger event is a transient hard fault signal, the data processing module is specifically used to generate a transient hard fault signal in response to a detected signal loss signal or power failure interruption signal.
[0017] Secondly, this application provides an optical bypass protection method applied to an optical bypass protection device. The optical bypass protection device includes a control module, a data processing module, and an optical path switching module. The optical bypass protection method is executed by the data processing module and includes: responding to a detected switching trigger event, performing a data processing operation corresponding to the switching trigger event, and sending a trigger signal to the control module. The trigger signal is used to instruct the control module to control the optical path switching module to perform an optical switch switching action. The optical switch action is used to switch the optical signal path from a first path passing through the optical bypass protection device to a bypass path. After the bypass path is connected, a data forwarding recovery operation is performed.
[0018] Thirdly, this application provides an optical bypass protection system, including a protected device and the optical bypass protection device described in any of the embodiments of the first aspect above; the optical bypass protection device is connected in series in the optical communication link where the protected device is located, and the control module of the optical bypass protection device is in a communication connection state with the management interface of the protected device.
[0019] Fourthly, this application provides a chip for performing the method as described in the second aspect above.
[0020] In a fifth aspect, the present application provides an electronic device, including a processor and a memory. The processor is configured to execute a computer program stored in the memory to implement the method in the second aspect as described above. Alternatively, The electronic device includes a chip as in the fourth aspect.
[0021] In a sixth aspect, the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method in the second aspect as described above.
[0022] In a seventh aspect, the present application provides a computer program product storing a computer program, which, when executed by a processor, implements the method in the second aspect as described above.
[0023] In the technical solution provided by the present application, the optical bypass protection device at least includes a control module, a data processing module, and an optical path switching module. The control module is connected to the data processing module and the optical path switching module. The data processing module of the optical bypass protection device can respond to a monitored switching trigger event, execute a data processing operation corresponding to the switching trigger event, and send a trigger signal to the control module. The control module can respond to the received trigger signal and send an optical path switching instruction to the optical path switching module. The optical path switching module can respond to the received optical path switching instruction and execute an optical switch switching action, which is used to switch the optical signal path from a first path passing through the optical bypass protection device to a bypass path. The data processing module can execute a data forwarding recovery operation after the bypass path is connected. In the technical solution provided by the embodiments of the present application, through the linkage operation between modules, the optical bypass protection device can automatically execute the optical switch switching action, achieving the active collaborative switching of the optical bypass, improving the optical switch switching rate to reduce the packet loss amount. In addition, after the bypass path is connected, executing the data forwarding recovery operation can further reduce the packet loss amount, and it can be applied to application scenarios with extremely high requirements for the continuity of optical signals. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0025] Figure 1 It is a schematic diagram of the device structure of an optical bypass protection device provided by an embodiment of the present application; Figure 2 It is a schematic diagram of the collaborative working process of each module of an optical bypass protection device provided by an embodiment of the present application; Figure 3 This is a schematic diagram of another collaborative workflow of various modules of an optical bypass protection device provided in this application embodiment; Figure 4 This is a schematic diagram illustrating another collaborative workflow of various modules in an optical bypass protection device provided in this application embodiment; Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0026] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application can also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0027] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0028] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0029] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0030] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0031] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0032] Optical bypass protection technology is a technique used in optical communication systems to automatically or manually redirect optical signals through a physically separate path (bypass) when the primary working path or critical equipment fails. The application of optical bypass protection technology can maximize the continuity of optical signals during network anomalies, preventing prolonged service interruptions and thus improving the overall availability of the network.
[0033] In some traditional optical bypass protection technologies, this is typically achieved by deploying optical switches at critical network nodes such as switches. Specifically, when a node device experiences a power outage or hardware failure, the optical switch activates, switching the optical signal from its original path through the device to a physical bypass fiber, thus bypassing the fault point and maintaining the physical connectivity of the entire link. While this approach can restore connection after a hardware failure, it has significant drawbacks: First, this technology is a passive and delayed response mechanism, only acting after a fault has occurred, failing to predict and mitigate "soft faults" such as optical module performance degradation, by which time service interruption has already taken place. Second, the mechanical or physical switching process of the optical switch typically takes several milliseconds to tens of milliseconds, during which the optical path is completely interrupted, resulting in the loss of a large number of data packets, which cannot meet the requirements of scenarios with extremely high service continuity requirements.
[0034] In view of this, the present application provides an optical bypass protection device with fault detection and judgment functions, which can automatically perform optical switch switching and data forwarding recovery operations, thereby reducing the amount of data packet loss.
[0035] The optical bypass protection device includes at least a control module, a data processing module, and an optical path switching module, with the control module connected to the data processing module and the optical path switching module.
[0036] The technical solutions of the embodiments of this application are described below with reference to the examples in the accompanying drawings.
[0037] Figure 1 This is a schematic diagram of the structure of an optical bypass protection device provided in an embodiment of this application.
[0038] See Figure 1 , the optical bypass protection device can physically be an independent device or board card, and the optical bypass protection device is connected in series on the optical fiber line between the protected device and the upstream device.
[0039] As Figure 1 shown, the control module can be a CPU (Central Processing Unit) or an MCU (Microcontroller Unit), the data processing module can be an FPGA (Field Programmable Gate Array), and the optical path switching module can include optical switch 1 and optical switch 2. The optical bypass protection device can also include an optical / electrical conversion module 1, an optical / electrical conversion module 2, an internal optical interface 1, an internal optical interface 2, an external optical interface 1, and an external optical interface 2.
[0040] Among them, the control module communicates with the protected device (or external network) through the management interface, receives remote control instructions and obtains multi-dimensional status information corresponding to the protected device through the management interface. The multi-dimensional status information at least includes optical power, bit error rate, temperature, and bias current. In addition, the control module sends control instructions to the control data processing module and the optical path switching module.
[0041] Specifically, the control module can send control instructions (that is, drive and control signals) to the optical path switching module through GPIO (General-Purpose Input / Output Ports) to control the optical path states of optical switch 1 and optical switch 2. The control module can interact with the data processing module for low-speed control and status information through I2C (Inter-Integrated Circuit).
[0042] The data processing module integrates SerDes (Serializer / Deserializer) and PHY IP core (the core component of the physical layer interface, responsible for data transmission and reception), traffic interception and switching logic, frame parser and standby logic, and a high-speed FIFO (First In First Out) cache. Among them, SerDes and the PHY IP core can be used to deserialize and physically decode the input high-speed electrical signal to restore a clear data frame. The traffic interception and switching logic can be used to generate an internal route for the data path. The frame parser and standby logic can be used to identify the boundary of the data frame. The high-speed FIFO cache can be used to temporarily store the data stream.
[0043] In the optical path switching module, optical switch 1 and optical switch 2 can be used to switch the transmission path of optical signals. In the linear link, when optical switch 1 and 2 are in the through state, the data flow direction is: upstream device → external optical interface 1 → FPGA → optical switch module → internal optical interface 1 → data processing of the protected device → internal optical interface 2 → optical switch module → external optical interface 2 → downstream device; when optical switch 1 and 2 are in the bypass state, the data flow direction is: upstream device → external optical interface 1 → FPGA → optical switch module → external optical interface 2 → downstream device.
[0044] Optical / electrical conversion module 1 is used to convert the optical signal obtained from external optical interface 1 into an electrical signal and send it to the data processing module for analysis. Optical / electrical conversion module 2 is used for optical / electrical signal conversion, monitoring and / or data injection.
[0045] External optical interface 1 and external optical interface 2 can be used to connect the upstream and downstream lines, and internal optical interface 1 and internal optical interface 2 can be used to connect the protected device.
[0046] Figure 2 It is a schematic diagram of the collaborative working process of each module of an optical bypass protection device provided by an embodiment of the present application. As Figure 2 shown, the collaborative working process of the control module, data processing module and optical path switching module includes: Step S201: The data processing module responds to the detected switching trigger event, executes the data processing operation corresponding to the switching trigger event, and sends a trigger signal to the control module.
[0047] The switching trigger event can be a predictable soft fault signal indicating the gradual deterioration of device performance or an instantaneous hard fault signal indicating sudden power failure or fiber breakage.
[0048] Step S202: The control module responds to the received trigger signal and sends an optical path switching instruction to the optical path switching module.
[0049] The control module can make a decision and drive the optical path switching module according to the received trigger signal. [[ID=*25]]
[0050] Step S203: The optical path switching module responds to the received optical path switching instruction and executes an optical switch switching action. The optical switch action is used to switch the optical signal path from the first path passing through the optical bypass protection device to the bypass path.
[0051] The optical path switching module can be used to execute the switching action of the physical optical switch, and switch the optical signal transmission path from the normal path (the first path) passing through the optical bypass protection device to the bypass path.
[0052] Step S204: After the bypass path is connected, the data processing module executes a data forwarding recovery operation.
[0053] The data processing module is also used to perform data stream recovery and seamless splicing operations after the bypass path is connected.
[0054] In the technical solution provided in this application embodiment, the data processing module of the optical bypass protection device can respond to the detected switching trigger event, execute the data processing operation corresponding to the switching trigger event, and send a trigger signal to the control module. The control module can respond to the received trigger signal and send an optical path switching command to the optical path switching module. The optical path switching module can respond to the received optical path switching command and execute an optical switch switching action, which is used to switch the optical signal path from the first path passing through the optical bypass protection device to the bypass path. After the bypass path is connected, the data processing module can execute a data forwarding recovery operation. In the technical solution provided in this application embodiment, the optical bypass protection device can automatically execute the optical switch switching action through the linkage operation between modules, realizing active coordinated switching of the optical bypass, improving the optical switch switching rate, and reducing data packet loss; in addition, after the bypass path is connected, the data forwarding recovery operation can further reduce data packet loss, making it suitable for application scenarios with extremely high requirements for optical signal continuity.
[0055] Figure 3 This is a schematic diagram illustrating another collaborative workflow of the modules of an optical bypass protection device provided in this application embodiment. When the switching trigger event is a predictable soft fault signal, the collaborative workflow of the control module, data processing module, and optical path switching module of the optical bypass protection device includes: Step S301: The control module periodically acquires multi-dimensional status information of the protected device. The multi-dimensional status information includes at least optical power, bit error rate, temperature and bias current.
[0056] See also Figure 1The control module and the protected device can be connected via a management interface. The control module can periodically (e.g., once per minute) initiate data query requests to the protected device through the management interface to obtain multi-dimensional status information. Specifically, the control module can query multi-dimensional status information from the protected device via a network management protocol. This multi-dimensional status information may include, but is not limited to, interface status, optical module DDMI (Ditital Diagnostics Morning Monitor Interface) information (optical power, bias current, temperature), bit error rate (BER) statistics, etc. The network management protocol can be SNMP (Simple Network Management Protocol), NETCONF (Network Configuration Protocol), or YANG (Yet Another Next Generation, a data modeling language); this application does not limit the specific protocol used.
[0057] In some embodiments, the control module can also parse multi-dimensional status information via a command-line interface (CLI). Specifically, if the protected device does not support network management protocols, the control module can establish an SSH (Secure Shell) or Telnet (Telecommunication Network) session, simulate an administrator login, execute commands such as `show interface transceiver detail`, and parse the returned text using string matching and regular expressions to extract multi-dimensional status information.
[0058] In some embodiments, the optical bypass protection device may be equipped with an optical power monitoring point, and the control module can determine whether there is a predictable soft fault signal by the optical power reading monitored by the optical power monitoring point.
[0059] Step S302: The control module performs trend analysis and health assessment on the multi-dimensional status information to obtain the assessment results.
[0060] The control module can input multi-dimensional state information (multi-dimensional state information is data with timestamps) into the predictive algorithm engine. The predictive algorithm engine can output the evaluation results by sequentially executing data preprocessing (such as smoothing and normalization), feature extraction (such as calculating the slope of the deterioration trend and calculating the comprehensive health score), and multi-level decision logic.
[0061] Step S303: If the evaluation result meets the preset predictive fault conditions, the control module generates a predictable soft fault signal and sends the predictable soft fault signal to the data processing module.
[0062] If the degradation trend slope and overall health score calculated by the predictive algorithm engine meet the "predictive obstacle avoidance" conditions, the evaluation results will meet the preset predictive failure conditions.
[0063] For example, if the current received optical power value is less than threshold A and the degradation rate is greater than threshold B, then the evaluation result satisfies the preset predictive fault condition, that is, there is a "predictable soft fault". The control module generates a predictable soft fault signal and sends the predictable soft fault signal to the data processing module.
[0064] Step S304: In response to the received predictable soft fault signal, the data processing module performs a first data processing operation and sends a first trigger signal to the control module.
[0065] In the technical solution provided in this application embodiment, the first data processing operation includes: identifying the current data stream state through a frame parsing unit, wherein the data stream state is either a data packet transmission state or a data packet gap state. If the current data stream is in a data packet transmission state, the buffer management unit is started after the first data packet gap following the completion of the current data packet transmission; if the current data stream is in a data packet gap state, the buffer management unit is started directly.
[0066] The cache management unit is used to temporarily store subsequent complete data packets. The cache management unit can provide... Figure 1 The high-speed FIFO cache unit shown.
[0067] The first trigger signal indicates that the cache management unit has been started.
[0068] Step S305: In response to the received first trigger signal, the control module sends an optical path switching command to the optical path switching module.
[0069] It should be understood that after the optical path switching module of the control module sends the optical path switching command, during the process of the optical path switching module performing the optical switch switching action, the optical signal path from the first path (physical optical path) through the optical bypass protection device is in an interrupted state. Since the data processing module starts the buffer management unit, it temporarily stores the subsequent input complete data packets. During this process (5-50 milliseconds), there is no data packet loss.
[0070] Step S306: In response to the received optical path switching command, the optical path switching module performs an optical switch switching action. The optical switch action is used to switch the optical signal path from the first path through the optical bypass protection device to the bypass path.
[0071] See also Figure 1 The optical switch switching action can control optical switch 1 to open and optical switch 2 to open, thereby switching from the first path to the bypass path.
[0072] Step S307: After the bypass path is connected, the data processing module performs a data forwarding recovery operation.
[0073] In the technical solution provided in this application embodiment, after the control module responds to the received first trigger signal and sends an optical path switching command to the optical path switching module, it can also monitor whether the bypass path is connected (whether the new optical path has been established). Specifically, the control module can query the status register of the SerDes unit of the data processing module via I2C. The status register of the SerDes unit can report the status of signal detection (SD) or receiver lock (Rx Lock). If SD changes from low level to high level (from "no" to "yes"), or Rx Lock changes from low level to high level (from "no" to "yes"), it indicates that the bypass path is connected, and the control module sends bypass path connection information to the data processing module. The bypass path connection information is used to inform the data processing module that the bypass path is connected.
[0074] In some embodiments, the control module can query the optical power monitoring point of the SerDes unit of the data processing module via I2C and read the optical power value. If the optical power recovers from an extremely low value to a normal value, it indicates that the bypass path is connected, and the control module sends bypass path connectivity information to the data processing module. The bypass path connectivity information is used to inform the data processing module that the bypass path is connected.
[0075] In some embodiments, after sending an optical path switching command to the optical path switching module, the control module may wait for a fixed delay longer than the maximum switching time of the optical switch (e.g., 10 milliseconds). After the maximum switching time has elapsed, the control module sends bypass path connectivity information to the data processing module, which informs the data processing module that the bypass path is now connected.
[0076] The data forwarding recovery operation performed by the data processing module includes: identifying the current data flow status after the bypass path is connected; upon identifying the first data packet gap, reading and sending the temporarily stored data in the buffer management unit to the bypass path at the original line rate, and performing a drain operation on the buffer management unit; and restoring to the data pass-through mode when the temporarily stored data in the buffer management unit is detected to be drained.
[0077] Specifically, the data processing module can monitor the next IPG (interval between packets) in the real-time data stream. At the precise moment of the IPG, the data processing module can read the temporarily stored data from the high-speed FIFO buffer unit and use the precise clock provided by its internally continuously locked CDR (Clock Data Recovery) or PLL (Phase-Locked Loop) to send the temporarily stored data out at the original line rate, while simultaneously reading and writing, until the buffer is completely emptied. At the instant the buffer is emptied, the data processing module can resume the pass-through mode within an IPG.
[0078] In the technical solution provided in this application, the optical bypass protection device ensures that buffer startup and subsequent switching always begin during the safe gap between data packets. This solves the problem of insufficient data packet integrity caused by the randomness of predictive triggering. By temporarily storing and forwarding data through a high-speed FIFO buffer unit, uninterrupted and lossless data packet transmission is achieved, realizing the goal of "zero packet loss".
[0079] Figure 4 This is a schematic diagram illustrating another collaborative workflow of the modules of an optical bypass protection device provided in this application embodiment. When the switching trigger event is a transient hard fault signal, the collaborative workflow of the control module, data processing module, and optical path switching module of the optical bypass protection device includes: Step S401: The data processing module generates a transient hard fault signal in response to the detected signal loss signal or power failure interruption signal.
[0080] When the physical layer of the data processing module or the external power supply detection module detects a LOS (optical module failure or being unplugged) or power failure signal at the hardware level, it generates a transient hard fault signal.
[0081] Step S402: The data processing module performs the second data processing operation and sends the second trigger signal to the control module.
[0082] The second data processing operation includes: suspending the data processing logic that is being executed and resetting the internal data path to bypass mode. When the internal data path is in bypass mode, the data processing module has the function of forwarding data from the bypass path.
[0083] The second trigger signal is used to indicate that the internal data path is in bypass mode.
[0084] The data processing module internally triggers a hardware state machine to reconstruct the data path in preparation for receiving new data. Specifically, the state machine immediately suspends any ongoing soft fault handling logic such as caching and synchronization, and resets the data path. That is, it configures the internal data path logic of the data processing module to a preset, simplest pass-through state. In this state, the data input returning from the bypass optical path is connected to the output. The SerDes unit at the output of the data processing module enters a signal-waiting state, ready to immediately perform CDR locking and forwarding when a new optical signal arrives from the bypass optical path.
[0085] Step S403: In response to the received second trigger signal, the control module sends an optical path switching command to the optical path switching module.
[0086] In response to the received second trigger signal, the control module sends an optical path switching command to the optical path switching module to establish a bypass path.
[0087] Step S404: After the bypass path is connected, the data processing module performs a data forwarding recovery operation.
[0088] In the technical solution provided in this application embodiment, when the first path is in a normal state, the data processing module can also write the flowing data (short-term data, such as 1 millisecond) into the circular micro-buffer. And after the bypass path is connected, the data stored in the circular micro-buffer just before the fault occurred is sent to the bypass path.
[0089] After the optical signal arrives at the SerDes unit of the data processing module, the SerDes unit quickly completes clock data recovery (CDR) and locks. After the SerDes unit locks, the optical signal is transmitted through the bypass path.
[0090] In the technical solution provided in this application embodiment, the optical bypass protection device, through a second data processing operation, can improve the response speed of optical signals forwarding through the bypass path after a transient hard fault occurs, thereby reducing the amount of data packet loss. Furthermore, the optical bypass protection device, by replaying data before the fault through a cyclic micro-buffer, can transmit some of the lost data before the fault occurred without increasing recovery delay, further reducing the amount of data packet loss.
[0091] It should be understood that, provided there are no logical conflicts, the above-described embodiments can be combined and implemented to adapt to actual application needs. These combined embodiments or implementation schemes are still within the scope of protection of this application.
[0092] Corresponding to the optical bypass protection device in the above embodiments, this application provides an optical bypass protection method that can be applied to the above-described methods. Figures 1 to 4The corresponding optical bypass protection device includes a control module, a data processing module, and an optical path switching module. The optical bypass protection method is executed by the data processing module, including: In response to a detected switching trigger event, the system performs the corresponding data processing operation and sends a trigger signal to the control module. The trigger signal instructs the control module to control the optical path switching module to perform an optical switch switching action. The optical switch action is used to switch the optical signal path from the first path through the optical bypass protection device to the bypass path. After the bypass path is connected, the system performs a data forwarding recovery operation.
[0093] It should be noted that the information interaction and execution process between the control module, data processing module and optical path switching module in the above-mentioned optical bypass protection method are based on the same concept as the device embodiment of this application. For details on the specific process, function and technical effect, please refer to the device embodiment section, and it will not be repeated here.
[0094] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0095] Based on the same inventive concept, embodiments of this application also provide an electronic device.
[0096] Figure 5 This is a schematic diagram of the structure of the electronic device provided in an embodiment of this application. For example... Figure 5 As shown, the electronic device 50 of this embodiment includes: at least one processor 510 ( Figure 5 Only one is shown in the diagram), memory 520, and communication module 530. Memory 520 stores a computer program 540 that may run on processor 510. When processor 510 executes computer program 540, it implements the functions of each module / unit in the above-described optical bypass protection device embodiment, for example... Figure 2 The steps S201 to S204 are shown. The communication module 530 can be a separate communication unit used to communicate with an external server or terminal device.
[0097] Electronic device 50 may include, but is not limited to, a processor 510 and a memory 520. Those skilled in the art will understand that... Figure 5 This is merely an example of electronic device 50 and does not constitute a limitation on electronic device 50. It may include more or fewer components than shown, or combine certain components, or different components. For example, electronic device 50 may also include input transmitting devices, network access devices, buses, etc.
[0098] The processor 510 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0099] In some embodiments, memory 520 may be an internal storage unit of electronic device 50, such as a hard disk or memory of electronic device 50. Memory 520 may also be an external storage device of electronic device 50, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on electronic device 50. Memory 520 may include both internal and external storage units of electronic device 50. Memory 520 is used to store operating system, applications, bootloader, data, and other programs, such as the program code of computer program 540. Memory 520 may also be used for temporary storage of data that has been sent or will be sent.
[0100] Furthermore, those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. In the various embodiments of this application, each functional unit can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0101] This application provides a computer-readable storage medium storing a computer program that, when run on an electronic device, causes the electronic device to perform the steps described in the various method embodiments above.
[0102] This application provides a chip, which includes a processor and a memory. The memory stores a computer program, which, when executed by the processor, implements the steps in the various method embodiments described above.
[0103] This application provides a computer program product that, when run on an electronic device, causes the electronic device to execute the steps described in the various method embodiments above.
[0104] It should be understood that the processor mentioned in the embodiments of this application can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0105] It should also be understood that the memory mentioned in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
[0106] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0107] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0108] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0109] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.
[0110] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0111] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0112] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a large-screen device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0113] Finally, it should be noted that the above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A light bypass protection device, characterized in that, It includes a control module, a data processing module, and an optical path switching module, wherein the control module is connected to the data processing module and the optical path switching module; The data processing module is used to respond to the detected switching trigger event, execute the data processing operation corresponding to the switching trigger event, and send a trigger signal to the control module; The control module is used to send an optical path switching command to the optical path switching module in response to the received trigger signal; The optical path switching module is used to respond to the received optical path switching command and perform an optical switch switching action, wherein the optical switch action is used to switch the optical signal path from the first path through the optical bypass protection device to the bypass path. The data processing module is also used to perform a data forwarding recovery operation after the bypass path is connected.
2. The optical bypass protection device according to claim 1, characterized in that, The switching trigger event is a predictable soft fault signal or a transient hard fault signal, and the data processing module includes at least a frame parsing unit and a cache management unit; When the switching trigger event is the predictable soft fault signal, the data processing module, in response to the detected predictable soft fault signal, performs a first data processing operation and sends a first trigger signal to the control module. The first data processing operation includes: The frame parsing unit identifies the current data stream state, which is either a data packet transmission state or a data packet gap state. If the current data stream is in the data packet transmission state, then wait for the first data packet gap after the current data packet transmission is completed, and start the cache management unit; If the current data stream is in the packet gap state, then the cache management unit is started directly; The cache management unit is used to temporarily store subsequent complete data packets; The first trigger signal is used to indicate that the cache management unit has been started; The control module is specifically used for: In response to the received first trigger signal, the optical path switching command is sent to the optical path switching module.
3. The optical bypass protection device according to claim 2, characterized in that, When the switching trigger event is the predictable soft fault signal, the data forwarding recovery operation performed by the data processing module includes: After the bypass path is connected, the current data stream status is identified; Upon detecting the first data packet gap, the data temporarily stored in the cache management unit is read and sent to the bypass path at the original line rate, and the cache management unit is emptied. When the data temporarily stored in the cache management unit is detected to be emptied, the system is restored to the data pass-through mode.
4. The optical bypass protection device according to claim 1, characterized in that, When the control module is connected to the protected device, and the switching trigger event is a predictable soft fault signal, before the data processing module responds to the detected switching trigger event, executes the data processing operation corresponding to the switching trigger event, and sends a trigger signal to the control module, the control module is further configured to: The multi-dimensional status information of the protected device is periodically acquired, and the multi-dimensional status information includes at least optical power, bit error rate, temperature and bias current. Trend analysis and health assessment are performed on the multi-dimensional status information to obtain the assessment results; If the evaluation result meets the preset predictive fault conditions, the predictable soft fault signal is generated and sent to the data processing module.
5. The optical bypass protection device according to claim 1, characterized in that, The switching trigger event is a predictable soft fault signal or a transient hard fault signal; When the switching trigger event is the transient hard fault signal, the data processing module is used to respond to the detected transient hard fault signal, perform a second data processing operation, and send a second trigger signal to the control module; The second data processing operation includes: The data processing module suspends the currently executing data processing logic and resets the internal data path to bypass mode. When the internal data path is in bypass mode, the data processing module has the function of forwarding the data of the bypass path. The second trigger signal is used to characterize the internal data path as the bypass mode; The control module is specifically used for: In response to the received second trigger signal, the optical path switching command is sent to the optical path switching module.
6. The optical bypass protection device according to claim 5, characterized in that, The data processing module is also used to write the flowing data into the circular micro-buffer when the first path is in the working state; When the switching trigger event is the transient hard fault signal, the data forwarding recovery operation includes: Send the data stored in the cyclic micro-buffer just before the failure to the bypass path.
7. The optical bypass protection device according to claim 6, characterized in that, When the switching trigger event is the instantaneous hard fault signal, the data processing module is specifically used for: The transient hard fault signal is generated in response to a detected signal loss signal or power failure interruption signal.
8. A method for optical bypass protection, characterized in that, An optical bypass protection device is applied, comprising a control module, a data processing module, and an optical path switching module. The optical bypass protection method is executed by the data processing module and includes: In response to a detected switching trigger event, the system performs a data processing operation corresponding to the switching trigger event and sends a trigger signal to the control module. The trigger signal is used to instruct the control module to control the optical path switching module to perform an optical switch switching action. The optical switch action is used to switch the optical signal path from the first path through the optical bypass protection device to the bypass path. After the bypass path is connected, a data forwarding recovery operation is performed.
9. A light bypass protection system, characterized in that, Includes the protected equipment and the optical bypass protection device as described in any one of claims 1 to 7; The optical bypass protection device is connected in series in the optical communication link where the protected device is located, and the control module of the optical bypass protection device is in a communication connection state with the management interface of the protected device.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the optical bypass protection method as described in claim 8.