An OBPC device with high-speed optical signal protection for a wavelength division system and a storage medium

By adopting a non-self-locking mechanical optical switch and a two-stage spectroscopic structure, combined with optical power detection and amplifier module, the communication abnormalities and optical power shortage of the optical signal protection system in a single point of failure are solved, the fault tolerance and reliability of the system are improved, and efficient utilization and flexible management of multi-protection equipment are realized.

CN119602860BActive Publication Date: 2025-07-25GUANGZHOU SINTAI COMM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510157464.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-13
Publication Date
2025-07-25
Estimated Expiration
2045-02-13

AI Technical Summary

Technical Problem

The existing optical signal protection technology causes abnormal communications of the entire system when a single protection device fails, poor system reliability, and insufficient optical signal power when the input optical power is low, affecting system reliability.

Method used

The non-self-locking mechanical optical switch is used to replace the traditional self-locking optical switch, and a two-stage spectroscopic structure is designed to achieve parallel access to multiple devices, and intelligent switching is carried out through the control unit in real time to monitor the optical path status, supporting the simultaneous access of multiple protection devices, combining optical power detection and amplifier module to ensure the quality of optical signal.

Benefits of technology

It improves the fault tolerance and reliability of the system, ensures that the protection equipment will automatically switch to a safe state when it fails, reduces power loss, and realizes efficient utilization of multi-protection equipment and flexible system management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119602860B_ABST
    Figure CN119602860B_ABST
Patent Text Reader

Abstract

This application relates to the technical field of OBPC devices, and particularly to an OBPC device with protection for high-speed optical signals in a wavelength division system and a storage medium. This application first uses a non-self-locking mechanical optical switch to replace the traditional self-locking optical switch to ensure that the system can automatically switch back to a safe state when the control signal is lost; then a two-stage optical splitting structure is designed. The first-stage optical splitter distributes the input signal to multiple protection devices and optical switches, and the second-stage optical splitter is used for power detection, realizing parallel access of multiple devices and reducing power loss; finally, the control unit monitors the status of each optical path in real time and makes intelligent switching decisions, significantly improving the fault tolerance and reliability of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of OBPC devices, and in particular, to an OBPC device with protection for high-speed optical signals in a wavelength division system and a storage medium. Background Art

[0002] Wavelength division multiplexing technology is widely used in optical communication systems. By transmitting multiple optical signals with different wavelengths in a single optical fiber, the system capacity and transmission efficiency are significantly improved. To ensure communication reliability, it is necessary to effectively protect high-speed optical signals to prevent the communication interruption caused by single-point failures in the system.

[0003] Existing optical signal protection technologies include devices such as optical switches, optical splitters, and power detectors. After the input optical signal is split by the optical splitter, one path is connected to the working optical path, and the other path is connected to the protection optical path. The optical path state is determined by optical power detection, and the optical path is switched when a fault occurs.

[0004] However, the existing solutions only support the access of a single protection device. When this protection device fails, it will cause abnormal communication in the entire system. At the same time, due to the single splitting method, in application scenarios with low input optical power, the optical signal power after splitting may be lower than the normal working requirements of the device, affecting the system reliability; this situation needs to be further improved. Summary of the Invention

[0005] In order to solve the problems that the existing optical signal protection technology will cause abnormal communication in the entire system and poor system reliability when a failure occurs, this application provides an OBPC device with protection for high-speed optical signals in a wavelength division system and a storage medium, and adopts the following technical solutions:

[0006] In a first aspect, this application provides an OBPC device with protection for high-speed optical signals in a wavelength division system, including:

[0007] At least two non-self-locking mechanical optical switches, each of the optical switches includes an input end and multiple output ends, and the optical switch is used for switching optical signals between the communication optical path between network elements and the protection device;

[0008] Multiple first passive optical splitters, the input end of the first passive optical splitter is used to receive the input optical signal, at least two output ends are respectively connected to different protection devices, and the other output end is connected to the optical switch;

[0009] Multiple second passive optical splitters, the second passive optical splitter is connected to the output end of the optical switch and is used for distributing the optical signal to the optical power detector;

[0010] Multiple optical power detectors, the optical power detector is used to monitor the optical power in real time and output power detection data;

[0011] A control unit, which is connected to the optical power detector and the optical switch, is configured to judge the optical path state according to the power detection data and control the optical switch to perform switching.

[0012] Wherein, the device supports the simultaneous access of at least two protection devices. When any one of the protection devices fails, the optical switch is switched to ensure the normal progress of other optical communications.

[0013] By adopting the above technical solution, in order to solve the problem that the entire communication system is interrupted due to the failure of a single protection device in the wavelength division system, there is an urgent need for a more reliable optical signal protection scheme at present. For example, in a certain communication network, when the only protection device fails due to an optical path interruption or a device failure, it will directly lead to the interruption of communication between network elements, causing serious service losses. This application first uses a non-self-locking mechanical optical switch to replace the traditional self-locking optical switch to ensure that the system can automatically switch back to the safe state when the control signal is lost. Then, a two-stage optical splitting structure is designed. The first-stage optical splitter distributes the input signal to multiple protection devices and the optical switch, and the second-stage optical splitter is used for power detection, realizing the parallel access of multiple devices and reducing the power loss. Finally, the control unit monitors the state of each optical path in real time and makes intelligent switching decisions, significantly improving the fault tolerance and reliability of the system.

[0014] Optionally, the control unit further includes:

[0015] A recovery judgment module, which is configured to continue monitoring the power detection data of the faulty optical path after the optical path is switched, and control the optical switch to switch back to the original optical path when the detection of fault recovery is detected.

[0016] By adopting the above technical solution, in order to solve the problem that the original communication path cannot be restored in time after the optical path is switched, this application does not abandon the monitoring of the original faulty optical path after the system is switched to the standby optical path, but continues to collect its optical power data. When the detected optical power returns to the normal threshold range, a switching instruction is automatically triggered to make the system return to the original optical path; realizing the automatic recovery of the optical path, avoiding the delay and error of manual intervention, and ensuring that the system always works in the optimal configuration state.

[0017] Optionally, the control unit further includes a switching priority control module, wherein:

[0018] When the first protection device fails and the second protection device is normal, control the optical switch to switch to the second protection device;

[0019] When all protection devices fail, control the optical switch to switch to the bypass state of direct communication between network elements.

[0020] By adopting the above technical solution, when multiple protection devices are simultaneously connected in a certain wavelength division system, when the first protection device fails, the system cannot intelligently determine whether to switch to the second protection device or directly enter the bypass state, which is likely to cause waste of resources or communication interruption; in this application, the preferred protection device maintains the current state when it is working properly, and when the preferred protection device fails, it preferentially switches to the standby protection device, and only switches to the bypass state of direct communication between network elements in the extreme case where all protection devices fail; thus maximizing the advantages of multiple protection devices.

[0021] Optionally, it further includes:

[0022] An optical amplifier module, which is arranged between the first passive optical splitter and the protection device;

[0023] Among them, after the input optical signal is received by the input end of the first passive optical splitter, it is divided into two paths. One path is connected to the optical switch, and the other path is amplified by the optical amplifier module and then distributed to different protection devices through another optical splitter.

[0024] By adopting the above technical solution, in a certain wavelength division system, after the input optical signal is split multiple times, the optical power reaching the protection device is often lower than the minimum operating threshold of the device, resulting in the system being unable to fully utilize the advantages of multiple protection devices; in this application, the input optical signal is first divided into two paths. One path directly connected to the optical switch maintains the original power level, while the other path connected to the protection device is power-compensated by the optical amplifier and then distributed to each protection device; this not only solves the problem of power loss caused by multi-stage optical splitting, but also ensures the signal quality of each optical path through power distribution.

[0025] Optionally, the control unit further includes:

[0026] A communication control module, which is used to create a network socket on a specified port and establish a communication connection with the client;

[0027] A configuration file processing module, which is used to manage a configuration file containing parameters such as heartbeat detection interval, idle time, and determination failure times. When the configuration file does not exist, it automatically creates and sets default configuration values;

[0028] An instruction processing module, which is used to receive and parse the client instructions transmitted by the communication control module according to the configuration parameters in the configuration file, and implement corresponding control functions by issuing board card instructions, including working mode switching function and working line switching function, and feedback the execution results to the client through the communication control module.

[0029] By adopting the above technical solutions, to solve the problem that the existing optical protection system lacks flexible configuration and remote management capabilities; the present application first establishes a UDP-based network connection through the communication control module to achieve remote access capabilities; the configuration file processing module adopts an adaptive parameter management mechanism, which can automatically create and maintain system configurations, ensuring reasonable settings of key parameters such as heartbeat detection intervals, idle times, and determination failure times; finally, the instruction processing module realizes flexible switching of working modes and lines through a standardized instruction parsing and execution process, and timely feedbacks the execution results; not only realizes the remote intelligent management of the system, improves the operation and maintenance efficiency, but also enhances the adaptability and reliability of the system through a standardized configuration mechanism.

[0030] Optionally, the control unit further includes a heartbeat detection module, wherein:

[0031] The heartbeat detection module performs heartbeat detection according to configuration parameters;

[0032] Receives instructions to turn on and off the heartbeat function;

[0033] When the detected number of heartbeat losses reaches the determination failure times, a heartbeat loss notice is sent through the communication control module, and a recovery notice is sent when the heartbeat is restored.

[0034] By adopting the above technical solutions, the present application first supports flexible heartbeat detection configuration, allowing the heartbeat function to be turned on or off according to actual needs; adopts an accumulative counting determination mechanism, and triggers an alarm only when the consecutive number of lost heartbeats reaches a preset threshold, effectively avoiding false alarms caused by occasional communication fluctuations; finally, through a real-time notification mechanism, the management end is immediately notified when an anomaly is detected or recovered, enabling operation and maintenance personnel to timely grasp the system status; not only improves the real-time performance and accuracy of system status monitoring, but also reduces the false alarm rate through an intelligent determination strategy.

[0035] Optionally, the control unit further includes a multi-thread management module, wherein:

[0036] The multi-thread management module creates and controls a heartbeat sending thread and a board information acquisition thread according to the parameters in the configuration file;

[0037] The heartbeat sending thread sends heartbeat instructions to the client according to the heartbeat detection interval;

[0038] The board information acquisition thread regularly acquires device operation status information and feeds it back to the client through the communication control module.

[0039] Optionally, in a wavelength division system, the heartbeat detection process may affect the real-time acquisition of board information, or intensive status queries may cause untimely sending of heartbeat packets, reducing the monitoring efficiency and reliability of the system. The present application first dynamically creates two independent working threads according to the parameters in the configuration file: a heartbeat thread dedicated to sending heartbeat packets, and a board information acquisition thread dedicated to collecting device status information. These two threads perform their respective duties without interfering with each other, execute their respective tasks at preset time intervals, and feedback the results to the client through a unified communication control module.

[0040] In a second aspect, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the functional steps of each module in the above-mentioned OBPC device with high-speed optical signal protection for a wavelength division system.

[0041] In summary, the present application includes at least one of the following beneficial technical effects:

[0042] The present application first uses a non-self-locking mechanical optical switch to replace the traditional self-locking optical switch to ensure that the system can automatically switch back to a safe state when the control signal is lost. Then, a two-stage optical splitting structure is designed. The first-stage optical splitter distributes the input signal to multiple protection devices and optical switches, and the second-stage optical splitter is used for power detection, realizing parallel access of multiple devices and reducing power loss. Finally, the control unit monitors the status of each optical path in real time and makes intelligent switching decisions, significantly improving the fault tolerance and reliability of the system.

[0043] When multiple protection devices are simultaneously connected in a certain wavelength division system, when the first protection device fails, the system cannot intelligently determine whether to switch to the second protection device or directly enter the bypass state, which is likely to cause resource waste or communication interruption. The present application first maintains the current state when the preferred protection device is working properly, and gives priority to switching to the standby protection device when the preferred protection device fails, and only switches to the bypass state of direct communication between network elements in the extreme case where all protection devices fail, maximizing the advantages of multiple protection devices.

[0044] To solve the problem that the existing optical protection system lacks flexible configuration and remote management capabilities, the present application first establishes a UDP-based network connection through the communication control module to achieve remote access capabilities. The configuration file processing module adopts an adaptive parameter management mechanism, which can automatically create and maintain system configurations to ensure the reasonable setting of key parameters such as heartbeat detection intervals, idle times, and determination failure times. Finally, the instruction processing module realizes flexible switching of working modes and lines through a standardized instruction parsing and execution process, and timely feedbacks the execution results, not only realizing remote intelligent management of the system, improving operation and maintenance efficiency, but also enhancing the adaptability and reliability of the system through a standardized configuration mechanism. Description of the Drawings

[0045] Figure 1 is a schematic diagram of an OBPC device without an amplifier for protecting high - speed optical signals in a wavelength - division system according to an embodiment of the present application;

[0046] Figure 2 is a schematic diagram of an OBPC device with an amplifier for protecting high - speed optical signals in a wavelength - division system according to an embodiment of the present application;

[0047] Figure 3 is a system block diagram of an OBPC device for protecting high - speed optical signals in a wavelength - division system according to an embodiment of the present application;

[0048] Figure 4 is a flowchart of a preset priority policy in an OBPC device for protecting high - speed optical signals in a wavelength - division system according to an embodiment of the present application;

[0049] Figure 5 is a structural block diagram of a control unit in an OBPC device for protecting high - speed optical signals in a wavelength - division system according to an embodiment of the present application;

[0050] Figure 6 is a flowchart of the operation of a client in an OBPC device for protecting high - speed optical signals in a wavelength - division system according to an embodiment of the present application;

[0051] Figure 7 is a flowchart of the operation of a server in an OBPC device for protecting high - speed optical signals in a wavelength - division system according to an embodiment of the present application;

[0052] Figure 8 is an internal structural diagram of an electronic device according to an embodiment of the present application. Detailed Embodiments

[0053] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification and claims of the present application, the singular forms "a", "an", "the", "above", "said", "this" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and / or" used in the present application refers to any and all possible combinations including one or more of the listed items.

[0054] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as implying or suggesting relative importance or implicitly indicating the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, unless otherwise stated, the meaning of "plural" is two or more.

[0055] The following further describes the embodiments of the present application in conjunction with the accompanying drawings of the specification.

[0056] In a first aspect, the present application provides an OBPC device with protection for high-speed optical signals in a wavelength division system. Referring to Figure 1 , it includes:

[0057] At least two non-self-locking mechanical optical switches, each optical switch includes an input end and multiple output ends, and the optical switch is used to switch optical signals between the communication optical paths between network elements and the protection device.

[0058] In this embodiment, as Figure 1 and Figure 2 shown, the system uses two completely identical 1X4 non-self-locking mechanical optical switches, which are respectively marked as "mechanical optical switch 1" and "mechanical optical switch 2". Each optical switch has five ports: an output port PORT0 and four input ports PORT1, PORT2, PORT3, and a reserved port (not used). It can be understood that the specific specifications of the optical switch can be selected according to actual application requirements, and the number of ports is not limited to this. As Figure 3 shown, the two optical switches are symmetrically arranged in the OBP device to achieve the switching function of bidirectional optical signals.

[0059] Specifically, when network element A and network element B communicate, the optical switch defaults to the PORT3 state. At this time, the splitter distributes the signal of IN1 to PORT3 of optical switch 1 and outputs it to OUT2 through PORT0 to realize the communication from network element A to B; similarly, the splitter distributes the signal of IN2 to PORT3 of optical switch 2 and outputs it to OUT1 through PORT0 to realize the communication from network element B to A. When it is necessary to access the protection device, the two optical switches synchronously switch to the PORT1 or PORT2 state to direct the signal to the corresponding protection device. It should be understood that the specific numbering method of the ports is not a limitation of the present application.

[0060] Multiple first passive splitters, the input end of the first passive splitter is used to receive input optical signals, at least two output ends are respectively connected to different protection devices, and the other output end is connected to the optical switch.

[0061] In this embodiment, as Figure 1As shown, the first passive optical splitter adopts a three-way splitting ratio of 20:20:60. Among them, 60% of the optical power enters the PORT3 port of the optical switch, and 20% of the optical power of each of the two paths is respectively output to the TX1 and TX3 ports to connect to protection device 1 and protection device 2. It can be understood that the splitting ratio can be adjusted according to actual application requirements, and the above specific values are only examples rather than limitations. This splitting ratio design ensures that there is sufficient optical power in the main communication optical path and reserves an appropriate signal strength for the protection device.

[0062] Multiple second passive optical splitters, which are connected to the output end of the optical switch and are used to distribute optical signals to optical power detectors.

[0063] In this embodiment, as Figure 1 and Figure 2 shown, the second passive optical splitter is mainly used for optical power monitoring. In the non-amplifier scheme, the optical splitter is located at the RX1, RX2, RX3, and RX4 ports to monitor the optical signal power returned by the protection device. In the amplifier scheme, additional optical splitters are added before and after QSFP28 to monitor the input and output optical power of the amplifier. The specific position of the optical splitter can be flexibly adjusted according to system monitoring requirements.

[0064] Specifically, Figure 2 shows the complete monitoring architecture in the amplifier scheme: A set of PDs is set before and after QSFP28 respectively, and a small amount of optical power is taken out through the optical splitter for detection to realize real-time monitoring of the working state of the amplifier. It can be understood that the splitting ratio can be optimized according to the actual application scenario to ensure that the monitoring function does not significantly affect the main signal transmission quality.

[0065] Multiple optical power detectors, which are used to monitor the optical power in real time and output power detection data.

[0066] In this embodiment, as Figure 1 shown, the non-amplifier scheme is configured with 6 PDs to monitor the optical power of the IN1 / IN2 input ports, RX1 / RX2, and RX3 / RX4 return ports respectively. As Figure 2 shown, the amplifier scheme increases to 10 PDs, and the newly added 4 PDs are used to monitor the optical power states before and after QSFP28. It should be noted that the specific number of PDs can be increased or decreased according to monitoring requirements and is not a limitation of this application.

[0067] Specifically, all PDs are connected to the optical path through the optical splitter to perform non-destructive monitoring of the optical signal. As Figure 3As shown, the deployment locations of the PDs cover all key optical path nodes, including the input and output of network elements, the interfaces of protection devices, and the front and back of amplifiers, forming a complete optical power monitoring network. The specific monitoring point locations can be adjusted according to actual application requirements.

[0068] A control unit, which is connected to the optical power detectors and optical switches, is used to judge the optical path status based on the power detection data and control the optical switches to perform switching.

[0069] Among them, the device supports the simultaneous access of at least two protection devices. When any one of the protection devices fails, the optical switches are switched to ensure the normal operation of other optical communications.

[0070] In this embodiment, the control unit is connected to Figure 1 、 Figure 2 all the PDs and optical switches shown in Figure 3 , and is responsible for collecting power data and controlling the actions of the optical switches. In the system architecture shown in Figure 3 , the control unit needs to manage multiple working modes such as inter-network element communication and protection device access simultaneously. There can be multiple choices for the specific implementation method of the control unit.

[0071] Specifically, the control unit judges the working status of network elements A / B and protection devices 1 / 2 by analyzing the power data of each PD in real time. When the optical power of RX1 / RX2 or RX3 / RX4 is detected to be abnormal, according to Figure 3 the system architecture shown, the control unit controls the optical switches to switch to the appropriate ports according to the preset priority strategy to ensure the reliable operation of the system. The specific judgment strategy and switching logic can be adjusted according to actual application requirements.

[0072] Furthermore, the control unit further includes a recovery judgment module, which is used to continue monitoring the power detection data of the faulty optical path after the optical path is switched, and controls the optical switches to switch back to the original optical path when the detection of fault recovery is detected.

[0073] In one embodiment, referring to Figure 4 , the control unit further includes a switching priority control module. Among them, the preset priority strategy includes:

[0074] S410. When the first protection device fails and the second protection device is normal, control the optical switch to switch to the second protection device.

[0075] S420. When all protection devices fail, control the optical switch to switch to the bypass state of direct communication between network elements.

[0076] In one embodiment, it further includes an optical amplifier module, which is arranged between the first passive optical splitter and the protection device; wherein, after receiving the input optical signal, the input end of the first passive optical splitter is divided into two paths, one path is connected to the optical switch, and the other path is amplified by the optical amplifier module and then distributed to different protection devices through another optical splitter.

[0077] In this embodiment, as Figure 2 shown, the optical amplifier module is implemented by a QSFP28 module. The first passive optical splitter uses a 40:60 dual-path splitting, and 60% of the power enters the optical switch PORT3, and 40% of the power enters the QSFP28 for amplification. This solution is specifically designed for long-distance transmission scenarios, and compensates for the transmission loss through optical amplification.

[0078] Specifically, the optical signal amplified by the QSFP28 is split again by a 50:50 optical splitter and output to the TX1 and TX3 ports respectively, ensuring that the optical signal reaching the protection device has a sufficient power level. To monitor the working state of the amplifier, a set of PDs are arranged before and after the QSFP28, and a small amount of optical power is taken out through the optical splitter for detection, so as to realize the real-time monitoring of the input and output optical power of the amplifier. This design not only ensures the signal quality of long-distance transmission, but also realizes the effective monitoring of the working state of the amplifier.

[0079] In one embodiment, referring to Figure 5 , the control unit further includes:

[0080] A communication control module, which is used to create a network socket on a specified port and establish a communication connection with the client.

[0081] In this embodiment, the communication control module uses the UDP protocol to realize the communication between the client and the server. As Figure 6 shown, the client working process starts from user interaction. First, it prompts to input the IP address of the protected device and performs legality verification. After the verification passes, it creates a socket and sets the server address structure, and then enters the function selection link. On the server side, as Figure 7 shown, after starting, it first creates a UDP socket and binds it to a specified port, then starts the slot detection program for system initialization, then executes the configuration file operation, and finally enters the main loop to process client requests. This module maintains a client connection list, records the IP addresses and port information of all connected clients, which is convenient for realizing point-to-point message transmission. To ensure the reliability of communication, the module sets socket attributes, including key parameters such as timeout time and buffer size.

[0082] Specifically, the communication control module realizes data sending and receiving through the sendto() and recvfrom() functions. On the client side, after the IP address is verified, the default port number 6800 is automatically configured. It should be noted that the port number can be configured according to the actual application environment. A UDP socket is created and an attempt is made to establish a connection with the server. After the connection is successful, it enters the main loop, where the user can choose to perform various function operations, such as enabling / disabling heartbeat detection, switching working modes, querying board information, etc. On the server side, in the main loop, a multi-threaded method is adopted to simultaneously handle tasks such as data reception, instruction parsing and execution, heartbeat detection, and slot status update. When sending data, the message is packed into a fixed-format data packet containing fields such as message type, message length, and message content. When receiving data, first read the message header information, receive the complete data according to the message length field, and perform data verification to ensure data integrity. When a communication error occurs, the module will automatically retry 3 times, and the number of retries can be adjusted according to actual needs. If it still fails, it will report the error status to the upper layer. Throughout the communication process, a heartbeat detection mechanism is maintained, and heartbeat packets are sent and monitored at the configured time interval to detect and handle connection anomalies in a timely manner.

[0083] The configuration file processing module is used to manage the configuration file containing parameters such as heartbeat detection interval, idle time, and determination failure times. When the configuration file does not exist, it automatically creates and sets default configuration values.

[0084] In this embodiment, the configuration file processing module is responsible for managing system configuration parameters, including key parameters such as heartbeat detection interval (default 1000ms), idle timeout time (default 5000ms), determination failure times (default 3 times), etc. It should be understood that these parameter values can be adjusted according to specific application scenarios, and the above values are only examples. When the module starts, it first checks whether the configuration file exists. If not, it creates a default configuration file and writes the preset parameter values.

[0085] Specifically, the configuration file is stored in key-value format and standard file operation functions are used for reading and writing. The module provides interface functions such as parameter query, modification, and saving, supporting online update of configuration parameters. When the parameters change, the module will trigger corresponding callback functions to notify other modules to update working parameters in a timely manner. At the same time, the module also implements the function of regular backup of the configuration file to prevent system parameter loss caused by configuration file corruption.

[0086] The instruction processing module is used to receive and parse the client instructions passed by the communication control module according to the configuration parameters in the configuration file, and realize the corresponding control functions by issuing board instructions, including working mode switching function and working line switching function, and feedback the execution results to the client through the communication control module.

[0087] In this embodiment, the instruction processing module adopts the command parser mode and maintains an instruction list. Each instruction contains information such as an instruction code, a processing function, and parameter descriptions. After receiving a client instruction, the module first parses the instruction header to identify the instruction type, and then calls the corresponding processing function to perform specific operations, such as switching the working mode or switching the working line.

[0088] Specifically, the module implements a hierarchical processing mechanism for instructions. Ordinary instructions directly execute the corresponding operations; critical instructions (such as switching the working mode) require permission verification and security checks; batch instructions are executed sequentially through a task queue mechanism. The execution result is encapsulated in a standard format and returned to the client, including information such as an execution status code and an error description. The module also implements an instruction logging function to record the execution status of all instructions, which is convenient for later analysis and fault diagnosis.

[0089] In one embodiment, the control unit further includes a heartbeat detection module. The heartbeat detection module performs heartbeat detection according to configuration parameters, receives instructions to enable or disable the heartbeat function, and when the number of detected heartbeat losses reaches the determined failure number, sends a heartbeat loss notification through the communication control module and sends a recovery notification when the heartbeat is restored.

[0090] In this embodiment, the heartbeat detection module monitors the connection status of the client based on the parameters in the configuration file. The module maintains a heartbeat counter to record the reception of heartbeat packets for each client. When the number of detected heartbeat losses reaches the configured determined failure number, the module marks the client as offline and sends a status change notification through the communication control module.

[0091] Specifically, the module manages the client connection status in a state machine manner. In the normal state, heartbeat packets are received at the heartbeat interval; when a heartbeat anomaly is detected, it enters the warning state and starts counting; if the heartbeat is restored within the idle timeout period, it returns to the normal state; otherwise, it enters the offline state. The module also implements an automatic reconnection mechanism to automatically rebuild the connection after the client is restored and send a recovery notification.

[0092] In one embodiment, when the system detects network fluctuations but has not reached the warning threshold, the system enters a metastable state. At this time, the network quality analysis module is started to predict the development trend of network anomalies by collecting metrics such as RTT and packet loss rate. If the prediction shows that the network quality continues to deteriorate, the standby link switch is triggered in advance to avoid service interruption. At the same time, by comprehensively considering multiple factors such as the number of heartbeat losses, network delay fluctuations, and system load, a dynamic weighting method is used to calculate the connection health, improving the accuracy of fault judgment.

[0093] Furthermore, the system automatically adjusts the reconnection time interval and the maximum number of retry attempts according to historical connection data. By maintaining a historical connection database with a sliding time window, recording the characteristics of the time periods when connection fails, the success rate of each reconnection attempt, the network load condition, and the system resource occupancy, a reconnection success rate prediction model is constructed to dynamically adjust the reconnection strategy. In terms of the adaptive adjustment of the reconnection time interval, the system analyzes the reconnection success rate in different time periods to identify the optimal reconnection time window, and uses an improved backoff algorithm to dynamically calculate the reconnection interval. The initial interval is determined by the optimal waiting time statistically obtained from history, and it grows exponentially with the increase of the number of retry attempts, but the growth coefficient is dynamically adjusted according to the historical success rate. At the same time, considering the current network load condition, the reconnection interval is appropriately extended when the network is congested. In terms of the intelligent control of the maximum number of retry attempts, the system statistically obtains the average time from disconnection to recovery in different scenarios according to historical data, and dynamically calculates the optimal number of retry attempts in combination with the reconnection interval. By analyzing the matching between the current fault characteristics and historical cases, the possible recovery time is predicted.

[0094] In one embodiment, the control unit further includes a multi-thread management module. The multi-thread management module creates and controls a heartbeat sending thread and a board information acquisition thread according to the parameters in the configuration file. The heartbeat sending thread sends a heartbeat instruction to the client according to the heartbeat detection interval. The board information acquisition thread regularly acquires the device operation status information and feeds it back to the client through the communication control module.

[0095] In this embodiment, the multi-thread management module manages each working thread in the system in a thread pool manner. It includes two main working threads, namely the heartbeat sending thread and the board information acquisition thread. The size of the thread pool is dynamically adjusted according to the system configuration to avoid wasting system resources caused by creating too many threads.

[0096] Specifically, the module allocates an independent task queue and resource pool for each working thread. The heartbeat sending thread sends heartbeat packets at the configured time interval. The board information acquisition thread regularly collects the device status information and caches the information locally to reduce the direct access to the hardware. The module implements a synchronization mechanism between threads to ensure the consistency of data access, and provides functions for thread status monitoring and exception recovery.

[0097] In one embodiment, the control unit further includes a slot detection module for regularly detecting the valid slots and the status of related boards. The board information acquisition thread is also used to acquire and update the board status information detected by the slot detection module.

[0098] In this embodiment, the slot detection module periodically detects the status of each slot in the system through the hardware abstraction layer interface. It should be understood that the specific implementation of the detection interface can be selected according to the characteristics of the hardware platform. The module maintains a slot status table to record information such as the presence status, board type, and working status of each slot. The detection results are periodically updated to the system status library through the board information acquisition thread.

[0099] Specifically, the module implements an intelligent detection algorithm and adopts different detection strategies and intervals according to the board type. For critical boards, more frequent detection is adopted; for ordinary boards, a lower frequency of detection is adopted to balance detection real-time performance and system overhead. When a change in the board status is detected, the module generates an event notification to trigger corresponding processing procedures, such as updating the display and recording logs.

[0100] It should be understood that the magnitudes of the sequence numbers of the steps and the order of the modules in the above embodiments do not imply the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of this application.

[0101] In one embodiment, the present application provides an electronic device, which can be a server, and its internal structure diagram can be as Figure 8 shown. The electronic device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile internal memory. The non-volatile memory stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile memory. The database of the electronic device is used to store data. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it realizes the functional steps of each module in an OBPC device with high-speed optical signal protection for a wavelength division system.

[0102] Those skilled in the art can understand that Figure 8 the structure shown in is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation to the electronic device to which the solution of the present application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0103] In one embodiment, an electronic device is further provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are realized.

[0104] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The above computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above various methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0105] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereby. Therefore, all equivalent changes made according to the structure, shape, and principle of the present application should be covered within the protection scope of the present application.

Claims

1. An OBPC device with high-speed optical signal protection for a wavelength division system, characterized in that Comprising: At least two non-self-locking mechanical optical switches, each of the optical switches comprising a plurality of input ends and one output end, the optical switch being used for switching optical signals between communication optical paths between network elements and protection devices; A plurality of first passive optical splitters, the input ends of the first passive optical splitters being used for receiving input optical signals, at least two output ends being respectively connected to different protection devices, and another output end being connected to the optical switch; A plurality of second passive optical splitters, the second passive optical splitters being connected to the output ends of the optical switches and being used for distributing optical signals to optical power detectors; A plurality of optical power detectors, the optical power detectors being used for monitoring optical power in real time and outputting power detection data; A control unit, the control unit being connected to the optical power detectors and the optical switches and being used for judging the optical path state according to the power detection data and controlling the optical switches to perform switching; Wherein, the device supports simultaneous access of at least two protection devices, and when any one of the protection devices fails, switching is ensured through the optical switches to ensure normal progress of other optical communications; Wherein, the control unit further comprises: A communication control module, used for creating a network socket at a specified port and establishing a communication connection with a client; A configuration file processing module, used for managing a configuration file containing parameters such as a heartbeat detection interval, an idle time, and a determination failure count, and automatically creating and setting default configuration values when the configuration file does not exist; An instruction processing module, used for receiving and parsing client instructions transmitted by the communication control module according to the configuration parameters in the configuration file, realizing corresponding control functions through issuing board card instructions, including a working mode switching function and a working line switching function, and feeding back the execution result to the client through the communication control module; A heartbeat detection module, wherein: The heartbeat detection module performs heartbeat detection according to configuration parameters; Receives instructions for enabling and disabling the heartbeat function; When network fluctuations are detected but the warning threshold is not reached, the system enters a metastable state and starts a network quality analysis module. The network quality analysis module predicts the development trend of network anomalies by collecting RTT and packet loss rate, and triggers standby link switching when the prediction shows that the network quality continues to deteriorate; The heartbeat detection module further comprises an adaptive reconnection mechanism, which constructs a reconnection success rate prediction model by maintaining a historical connection database of a sliding time window. The adaptive reconnection mechanism dynamically calculates the reconnection interval by using an improved backoff algorithm, wherein the reconnection interval increases exponentially with the number of retries and the growth coefficient is dynamically adjusted according to the historical success rate; When the number of detected heartbeat losses reaches the determination failure count, a heartbeat loss notice is sent through the communication control module, and a recovery notice is sent when the heartbeat is restored.

2. The OBPC device with high-speed optical signal protection for a wavelength division system according to claim 1, characterized in that, The control unit further comprises: A recovery judgment module, used for continuously monitoring the power detection data of a faulty optical path after optical path switching, and controlling the optical switch to switch back to the original optical path when a fault recovery is detected.

3. The OBPC device with high-speed optical signal protection for the wavelength division system according to claim 1, wherein The control unit further comprises a switching priority control module, wherein: When a first protection device fails and a second protection device is normal, the optical switch is controlled to switch to the second protection device; When all protection devices fail, control the optical switch to switch to the bypass state for direct communication between network elements.

4. The OBPC device with high-speed optical signal protection for a wavelength division system according to claim 1, wherein It further includes: An optical amplifier module, which is arranged between the first passive optical splitter and the protection device; Wherein, after the input optical signal is received by the input end of the first passive optical splitter, it is divided into two paths. One path is connected to the optical switch, and the other path is amplified by the optical amplifier module and then distributed to different protection devices through another optical splitter.

5. The OBPC device with high-speed optical signal protection for a wavelength division system according to claim 1, wherein The control unit further includes a multi-thread management module, wherein: The multi-thread management module creates and controls a heartbeat sending thread and a board information acquisition thread according to the parameters in the configuration file; The heartbeat sending thread sends a heartbeat instruction to the client according to the heartbeat detection interval; The board information acquisition thread periodically acquires the device operation status information and feeds it back to the client through the communication control module.

6. The OBPC device with high-speed optical signal protection for a wavelength division system according to claim 5, characterized in that, The control unit further includes: A slot detection module, which is used to periodically detect the valid slots and the status of related boards; The board information acquisition thread is also used to acquire and update the board status information detected by the slot detection module.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it realizes the functional steps of each module in the OBPC device with high-speed optical signal protection for the wavelength division system described in any one of claims 1-6.

Citation Information

Patent Citations

  • Optical line protection device

    CN107104724A

  • Pure optical line protection device and method based on double-path optical bypass equipment

    CN118449590A

  • Fiber channel ring network fault isolation method and device

    CN118842519A