OBPC equipment with wavelength division system high-speed optical signal protection function and storage medium
By adopting non-self-locking mechanical optical switches and two-stage spectroscopic structures in OBPC devices, it supports parallel access to multiple devices and realizes intelligent switching, solving the reliability problems of existing optical signal protection technologies in single point failure and low optical power situations, significantly improving the fault tolerance and reliability of the system.
Patent Information
- Application Number
- CN202510157464.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-13
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2045-02-13
AI Technical Summary
The existing optical signal protection technology causes abnormal communications of the entire system when a single protection device fails, and when the input optical power is low, the optical signal power may be lower than the normal operating requirements of the device, affecting system reliability.
It adopts a non-self-locking mechanical optical switch and a two-stage spectroscopic structure, which supports at least two protection devices to access simultaneously. The control unit monitors the optical path status in real time and makes intelligent switching decisions to realize the parallel access and automatic recovery functions of multiple devices.
It significantly improves the fault tolerance and reliability of the system, avoids communication interruptions caused by single point of failure, and ensures the normal operation of the system under low optical power conditions.
Smart Images

Figure CN119602860A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of OBPC equipment, and in particular to an OBPC equipment and storage medium capable of protecting high-speed optical signals of a wavelength division system. Background Art
[0002] Wavelength division multiplexing technology is widely used in optical communication systems. By transmitting multiple optical signals of 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 communication interruption caused by single point failures in the system.
[0003] Existing optical signal protection technologies include optical switches, optical splitters, power detectors, etc. After the input optical signal is split by the optical splitter, one path is connected to the working optical path and the other is connected to the protection optical path. The optical path status is determined by optical power detection, and the optical path is switched when a fault occurs.
[0004] However, the existing solution only supports the access of a single protection device. When the protection device fails, it will cause abnormal communication of the entire system. At the same time, due to the use of a single splitting method, in the application scenario where the input optical power is low, 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 problem that when the existing optical signal protection technology fails, it will cause abnormal communication of the entire system and poor system reliability, the present application provides an OBPC device and storage medium with high-speed optical signal protection for a wavelength division system, and adopts the following technical solutions: In a first aspect, the present application provides an OBPC device capable of protecting high-speed optical signals of a wavelength division system, comprising: At least two non-self-locking mechanical optical switches, each of which includes an input end and multiple output ends, and is used to switch optical signals between the communication optical path between network elements and the protection device; A plurality of first passive optical splitters, wherein an input end of the first passive optical splitter is used to receive an input optical signal, at least two output ends are respectively connected to different protection devices, and another output end is connected to the optical switch; a plurality of second passive optical splitters, the second passive optical splitters being connected to the output end of the optical switch and used for distributing the optical signal to the optical power detector; A plurality of optical power detectors, wherein the optical power detectors are used to monitor the optical power in real time and output power detection data; A control unit, the control unit is connected to the optical power detector and the optical switch, and is used to determine the state of the optical path according to the power detection data and control the optical switch to perform switching; The device supports simultaneous access of at least two protection devices. When any protection device fails, the optical switch switches to ensure that other optical communications proceed normally.
[0006] By adopting the above technical solution, in order to solve the problem that a single protection device failure in a wavelength division system causes the entire communication system to be interrupted, there is an urgent need for a more reliable optical signal protection solution; for example, in a certain communication network, when the only protection device fails due to an optical path interruption or equipment failure, it will directly lead to communication interruption between network elements, causing serious business losses; the present application first adopts 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 splitting structure is designed, the first-stage splitter distributes the input signal to multiple protection devices and optical switches, and the second-stage splitter is used for power detection, which realizes parallel access of multiple devices and reduces power loss; finally, the control unit monitors the status of each optical path in real time and makes intelligent switching decisions, which significantly improves the fault tolerance and reliability of the system.
[0007] Optionally, the control unit further includes: The recovery judgment module is used 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 fault is detected to be recovered.
[0008] 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, the present application does not abandon the monitoring of the original faulty optical path after the system switches to the backup optical path, but continues to collect its optical power data. When it is detected that the optical power has recovered to the normal threshold range, the switching instruction is automatically triggered to return the system to the original optical path; the automatic recovery of the optical path is realized, delays and errors caused by manual intervention are avoided, and it is ensured that the system always works in the optimal configuration state.
[0009] Optionally, the control unit further includes a switching priority control module, wherein: When the first protection device fails and the second protection device is normal, controlling the optical switch to switch to the second protection device; When all protection devices fail, the optical switch is controlled to switch to a bypass state for direct communication between network elements.
[0010] By adopting the above technical solution, when multiple protection devices are connected to a certain wavelength division system at the same time, when the first protection device fails, the system cannot intelligently judge whether to switch to the second protection device or directly enter the bypass state, which may easily cause resource waste or communication interruption; the preferred protection device of this application maintains the current state when it is working normally, and switches to the backup protection device first when the preferred protection device fails, and only switches to the bypass state of direct communication between network elements in the extreme case that all protection devices fail; the advantages of multiple protection devices are maximized.
[0011] Optionally, also include: An optical amplifier module, wherein the optical amplifier module is arranged between the first passive optical splitter and the protection device; The input end of the first passive optical splitter receives the input optical signal and divides it into two paths, one of which is connected to the optical switch, and the other is amplified by the optical amplifier module and distributed to different protection devices through another optical splitter.
[0012] 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 working threshold of the device, resulting in the system being unable to fully utilize the advantages of multiple protection devices; the application first divides the input optical signal into two paths, one of which is directly connected to the optical switch and maintains the original power level, while the other path connected to the protection device is distributed to each protection device after power compensation through an optical amplifier; it not only solves the power loss problem caused by multi-level splitting, but also ensures the signal quality of each optical path through power distribution.
[0013] Optionally, the control unit further includes: A communication control module is used to create a network socket at a specified port and establish a communication connection with a client; A configuration file processing module is used to manage configuration files including heartbeat detection interval, idle time and number of failure determination parameters, and automatically create and set default configuration values when the configuration file does not exist; The instruction processing module is used to receive and parse the client instructions transmitted by the communication control module according to the configuration parameters in the configuration file, implement the corresponding control functions by issuing board instructions, including the working mode switching function and the working line switching function, and feed back the execution results to the client through the communication control module.
[0014] By adopting the above technical scheme, in order to solve the problem that the existing optical protection system lacks flexible configuration and remote management capabilities; this application first establishes a UDP-based network connection through the communication control module to achieve remote access capability; the configuration file processing module adopts an adaptive parameter management mechanism, which can automatically create and maintain the system configuration to ensure the reasonable setting of key parameters such as heartbeat detection interval, idle time and number of failure determinations; finally, the instruction processing module realizes flexible switching of working modes and lines through standardized instruction parsing and execution processes, and timely feedbacks the execution results; it not only realizes remote intelligent management of the system and improves the operation and maintenance efficiency, but also enhances the adaptability and reliability of the system through a standardized configuration mechanism.
[0015] Optionally, the control unit further includes a heartbeat detection module, wherein: The heartbeat detection module performs heartbeat detection according to the configuration parameters; Receive instructions to turn on and off the heartbeat function; When it is detected that the number of heartbeat losses reaches the number of failure determinations, a heartbeat loss notification is sent through the communication control module, and a recovery notification is sent when the heartbeat is restored.
[0016] By adopting the above technical solution, this application first supports flexible heartbeat detection configuration, allowing the heartbeat function to be turned on or off according to actual needs; adopts a cumulative counting judgment mechanism, and triggers an alarm only when the number of consecutive 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 abnormality or recovery is detected, so that operation and maintenance personnel can grasp the system status in a timely manner; it not only improves the real-time and accuracy of system status monitoring, but also reduces the false alarm rate through intelligent judgment strategies.
[0017] Optionally, the control unit further includes a multi-thread management module, wherein: The multithread management module creates and controls the heartbeat sending thread and the 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 device operation status information and feeds it back to the client through the communication control module.
[0018] Optionally, in a wavelength division multiplexing system, the heartbeat detection process may affect the real-time acquisition of board information, or intensive status queries may cause the heartbeat packets to be sent untimely, 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 specifically responsible for sending heartbeat packets, and a board information acquisition thread specifically responsible for collecting device status information; these two threads perform their respective duties without interfering with each other, and perform their respective tasks at preset time intervals, and feedback the results to the client through a unified communication control module.
[0019] In a second aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the functional steps of each module in the above-mentioned OBPC device having the function of protecting high-speed optical signals of a wavelength division system.
[0020] In summary, the present application includes at least one of the following beneficial technical effects: The present application firstly adopts a non-self-locking mechanical optical switch to replace the traditional self-locking optical switch, ensuring that the system can automatically switch back to a safe state when the control signal is lost; then a two-level optical splitting structure is designed, in which the first-level optical splitter distributes the input signal to multiple protection devices and optical switches, and the second-level optical splitter is used for power detection, which realizes the parallel access of multiple devices and reduces power loss; finally, the control unit monitors the status of each optical path in real time and makes intelligent switching decisions, which significantly improves the fault tolerance and reliability of the system; When multiple protection devices are connected to a certain wavelength division system at the same time, 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; this application maintains the current state when the preferred protection device is working normally, and switches to the backup protection device first when the preferred protection device fails. Only in the extreme case that all protection devices fail, switch to the bypass state of direct communication between network elements; maximize the advantages of multiple protection devices; In order to solve the problem that the existing optical protection system lacks flexible configuration and remote management capabilities; this application first establishes a UDP-based network connection through the communication control module to achieve remote access capability; the configuration file processing module adopts an adaptive parameter management mechanism, which can automatically create and maintain the system configuration to ensure the reasonable setting of key parameters such as heartbeat detection interval, idle time and number of failure determinations; finally, the instruction processing module realizes flexible switching of working modes and lines through standardized instruction parsing and execution processes, and timely feedbacks the execution results; it not only realizes remote intelligent management of the system and improves the operation and maintenance efficiency, but also enhances the adaptability and reliability of the system through standardized configuration mechanisms. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a schematic diagram of an OBPC device without an amplifier that protects high-speed optical signals of a wavelength division system according to an embodiment of the present application; Figure 2 It is a schematic diagram of an OBPC device with an amplifier capable of protecting high-speed optical signals of a wavelength division system according to an embodiment of the present application; Figure 3 It is a system block diagram of an OBPC device capable of protecting high-speed optical signals of a wavelength division system according to an embodiment of the present application; Figure 4 It is a flowchart of a priority strategy preset in an OBPC device with protection for high-speed optical signals of a wavelength division system according to an embodiment of the present application; Figure 5 It is a structural block diagram of a control unit in an OBPC device with protection for high-speed optical signals of a wavelength division system according to an embodiment of the present application; Figure 6 This is a workflow diagram of a client in an OBPC device with protection for high-speed optical signals of a wavelength division system according to an embodiment of the present application; Figure 7 This is a workflow diagram of a service end in an OBPC device with protection for high-speed optical signals of a wavelength division system according to an embodiment of the present application; Figure 8 It is a diagram of the internal structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] 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 be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more listed items.
[0023] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0024] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.
[0025] In a first aspect, the present application provides an OBPC device with high-speed optical signal protection for a wavelength division system, referring to Figure 1,include: 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 path between network elements and the protection device.
[0026] In this embodiment, Figure 1 and Figure 2 As shown in the figure, the system uses two identical 1X4 non-self-locking mechanical optical switches, marked as "mechanical optical switch 1" and "mechanical optical switch 2". Each optical switch has five ports: one output port PORT0 and four input ports PORT1, PORT2, PORT3 and one reserved port (unused). It can be understood that the specific specifications of the optical switch can be selected according to the actual application requirements, and the number of ports is not limited to this. Figure 3 As shown, two optical switches are symmetrically arranged in the OBP device to realize the switching function of bidirectional optical signals.
[0027] Specifically, when network element A and network element B communicate, the optical switch works in the PORT3 state by default. At this time, the optical splitter distributes the signal of IN1 to PORT3 of optical switch 1, and outputs it to OUT2 via PORT0, so as to realize the communication from network element A to B. Similarly, the optical splitter distributes the signal of IN2 to PORT3 of optical switch 2, and outputs it to OUT1 via PORT0, so as to realize the communication from network element B to A. When the protection device needs to be connected, the two optical switches are synchronously switched 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 port is not a limitation of the present application.
[0028] A plurality of first passive optical splitters, wherein an input end of the first passive optical splitter is used to receive an input optical signal, at least two output ends are respectively connected to different protection devices, and another output end is connected to an optical switch.
[0029] In this embodiment, Figure 1 As shown, the first passive optical splitter adopts a three-way splitting ratio of 20:20:60, in which 60% of the optical power enters the PORT3 port of the optical switch, and 20% of the optical power of the two paths is output to the TX1 and TX3 ports respectively, connecting 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 used as examples and not limitations. The splitting ratio design ensures that the main communication optical path has sufficient optical power, while reserving appropriate signal strength for the protection device.
[0030] A plurality of second passive optical splitters are connected to the output end of the optical switch and are used to distribute the optical signal to the optical power detector.
[0031] In this embodiment, Figure 1 and Figure 2 As shown in the figure, the second passive optical splitter is mainly used for optical power monitoring. In the solution without amplifier, 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 solution with amplifier, additional optical splitters are added before and after the 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 the system monitoring requirements.
[0032] Specifically, Figure 2 The complete monitoring architecture in the amplifier solution is shown: a group of PDs are set before and after the QSFP28, and a small amount of optical power is taken out through the optical splitter for detection to achieve real-time monitoring of the working status 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 transmission quality of the main signal.
[0033] A plurality of optical power detectors are used to monitor the optical power in real time and output power detection data.
[0034] In this embodiment, Figure 1 As shown in the figure, the solution without amplifiers configures 6 PDs to monitor the optical power of the IN1 / IN2 input port, RX1 / RX2, and RX3 / RX4 return ports respectively. Figure 2 As shown, the amplifier solution is increased to 10 PDs, and the newly added 4 PDs are used to monitor the optical power status before and after the 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.
[0035] Specifically, all PDs are connected to the optical path through an optical splitter to perform non-destructive monitoring of the optical signal. Figure 3 As shown in the figure, the deployment location of PD covers all key optical path nodes, including network element input and output, protection device interface, and amplifier front and rear, forming a complete optical power monitoring network. The specific monitoring point location can be adjusted according to actual application requirements.
[0036] The control unit is connected to the optical power detector and the optical switch and is used to determine the state of the optical path according to the power detection data and control the optical switch to perform switching.
[0037] The device supports simultaneous access of at least two protection devices. When any protection device fails, the optical switch is switched to ensure normal operation of other optical communications.
[0038] In this embodiment, the control unit and Figure 1 , Figure 2 All PDs shown in the figure are connected to optical switches and are responsible for collecting power data and controlling the operation of the optical switches. Figure 3In the system architecture shown, the control unit needs to simultaneously manage multiple working modes such as communication between network elements and access to protection devices. There are multiple options for the specific implementation of the control unit.
[0039] Specifically, the control unit determines the working status of network element A / B and protection device 1 / 2 by analyzing the power data of each PD in real time. Figure 3 In the system architecture shown, the control unit controls the optical switch to switch to the appropriate port according to the preset priority strategy to ensure reliable operation of the system. The specific judgment strategy and switching logic can be adjusted according to actual application requirements.
[0040] Furthermore, the control unit also includes a recovery judgment module, which is used to continue to monitor 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 it is detected that the fault is recovered.
[0041] In one embodiment, referring to Figure 4 ,The control unit also includes a switching priority control module, in which the ,preset priority strategy includes: 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.
[0042] S420: When all protection devices fail, control the optical switch to switch to a bypass state for direct communication between network elements.
[0043] In one embodiment, it also includes an optical amplifier module, which is arranged between the first passive optical splitter and the protection device; wherein the input end of the first passive optical splitter receives the input optical signal and divides it into two paths, one path is connected to the optical switch, and the other path is amplified by the optical amplifier module and distributed to different protection devices through another optical splitter.
[0044] In this embodiment, Figure 2 As shown in the figure, the optical amplifier module is implemented using a QSFP28 module. The first passive optical splitter uses a 40:60 dual-path splitting, 60% of the power enters the optical switch PORT3, and 40% of the power enters the QSFP28 for amplification. This solution is specially designed for long-distance transmission scenarios, and optical amplification is used to compensate for transmission losses.
[0045] Specifically, the optical signal amplified by QSFP28 is split again through a 50:50 splitter and output to the TX1 and TX3 ports respectively, ensuring that the optical signal reaching the protection device has sufficient power level. In order to monitor the working status of the amplifier, a group of PDs are set before and after the QSFP28, and a small amount of optical power is taken out through the splitter for detection, so as to realize 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 effective monitoring of the working status of the amplifier.
[0046] In one embodiment, referring to Figure 5 , the control unit also includes: The communication control module is used to create a network socket at a specified port and establish a communication connection with the client.
[0047] In this embodiment, the communication control module uses the UDP protocol to implement communication between the client and the server. Figure 6 As shown in the figure, the client workflow starts with user interaction. First, the user is prompted to enter the IP address of the protected device and verify its legitimacy. After the verification is passed, a socket is created and the server address structure is set, and then the function selection phase is entered. Figure 7 As shown in the figure, after startup, a UDP socket is first created and bound to the specified port, then the slot detection program is started to initialize the system, followed by configuration file operations, and finally the main loop is entered to process client requests. The module maintains a client connection list, records the IP addresses and port information of all connected clients, and facilitates point-to-point message delivery. To ensure the reliability of communication, the module sets socket properties, including key parameters such as timeout and buffer size.
[0048] Specifically, the communication control module implements data sending and receiving through sendto() and recvfrom() functions. On the client side, the default port number 6800 is automatically configured after the IP address is verified. It should be noted that the port number can be configured according to the actual application environment. Create a UDP socket and try to establish a connection with the server. After the connection is successful, enter the main loop. The user can choose to perform various functional operations, such as turning on / off heartbeat detection, switching working modes, querying board information, etc. On the server side, the main loop uses a multi-threaded method to simultaneously process tasks such as data reception, instruction parsing and execution, heartbeat detection, and slot status update. When sending data, the message is packaged into a fixed format data message containing fields such as message type, message length, and message content; when receiving data, the message header information is first read, the complete data is received according to the message length field, and the data is verified to ensure the integrity of the data. When a communication error occurs, the module will automatically retry 3 times. The number of retries can be adjusted according to actual needs. If it still fails, the error status will be reported to the upper layer. The heartbeat detection mechanism is maintained throughout the communication process. By sending and monitoring heartbeat packets at configured time intervals, abnormal connections can be detected and handled in a timely manner.
[0049] The configuration file processing module is used to manage the configuration files containing the heartbeat detection interval, idle time and failure determination number parameters. When the configuration file does not exist, it is automatically created and the default configuration value is set.
[0050] 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 (default 5000ms), and number of failure determinations (default 3 times). It should be understood that these parameter values can be adjusted according to specific application scenarios, and the above values are only used as examples. When the module is started, it first checks whether the configuration file exists. If not, a default configuration file is created and the preset parameter values are written.
[0051] Specifically, the configuration file is stored in key-value format and read and written using standard file operation functions. The module provides interface functions such as parameter query, modification, and saving, and supports online updating of configuration parameters. When the parameters change, the module triggers the corresponding callback function to notify other modules to update the working parameters in time. At the same time, the module also implements the regular backup function of the configuration file to prevent the loss of system parameters due to damage to the configuration file.
[0052] The instruction processing module is used to receive and parse the client instructions transmitted by the communication control module according to the configuration parameters in the configuration file, implement the corresponding control functions by issuing board instructions, including the working mode switching function and the working line switching function, and feed back the execution results to the client through the communication control module.
[0053] In this embodiment, the instruction processing module adopts the command parser mode and maintains an instruction list, each instruction contains information such as instruction code, processing function, parameter description, etc. After receiving the client instruction, the module first parses the instruction header, identifies the instruction type, and then calls the corresponding processing function to perform specific operations, such as switching working mode, switching working line, etc.
[0054] Specifically, the module implements a hierarchical processing mechanism for instructions. Ordinary instructions directly execute the corresponding operations; key instructions (such as switching working modes) require permission verification and security checks; batch instructions are executed sequentially through the task queue mechanism. The execution results are encapsulated in a standard format and returned to the client, including execution status code, error description and other information. The module also implements the instruction log recording function, which records the execution status of all instructions for later analysis and fault diagnosis.
[0055] In one embodiment, the control unit also includes a heartbeat detection module, which performs heartbeat detection according to configuration parameters; receives instructions to turn on and off the heartbeat function; when it is detected that the number of heartbeat losses reaches the number of failures determined, sends a heartbeat loss notification through the communication control module, and sends a recovery notification when the heartbeat is restored.
[0056] In this embodiment, the heartbeat detection module monitors the client connection status based on the parameters in the configuration file. The module maintains a heartbeat counter to record the heartbeat packet reception status of each client. When the number of heartbeat losses detected reaches the configured number of failure determinations, the module marks the client as offline and sends a status change notification through the communication control module.
[0057] Specifically, the module uses a state machine to manage the client connection status. In normal state, heartbeat packets are received according to the heartbeat interval; when an abnormal heartbeat 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, which automatically reestablishes the connection after the client is restored and sends a recovery notification.
[0058] In one embodiment, when the system detects network fluctuations but has not yet reached the warning threshold, the system enters a metastable state, at which point the network quality analysis module is started to predict the development trend of network anomalies by collecting indicators such as RTT and packet loss rate. If the prediction shows that the network quality continues to deteriorate, the backup link switch is triggered in advance to avoid service interruption. At the same time, multiple factors such as the number of heartbeat losses, network delay fluctuations, and system load are comprehensively considered, and the connection health is calculated in a dynamic weighted manner, which improves the accuracy of fault judgment.
[0059] Furthermore, the system automatically adjusts the reconnection time interval and the maximum number of retries based on historical connection data. By maintaining a historical connection database of a sliding time window, recording the characteristics of the time period when the connection failed, the success rate of each reconnection attempt, the network load and the system resource usage, a reconnection success rate prediction model is constructed to dynamically adjust the reconnection strategy. In terms of 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, where the initial interval is determined by the optimal waiting time of historical statistics, and increases exponentially with the increase in the number of retries, but the growth coefficient will be dynamically adjusted according to the historical success rate, while considering the current network load, and appropriately extending the reconnection interval when the network is congested; in terms of intelligent control of the maximum number of retries, the system calculates the average time from disconnection to recovery in different scenarios based on historical data, dynamically calculates the optimal number of retries in combination with the reconnection interval, and predicts the possible recovery time by analyzing the current fault characteristics and matching with historical cases.
[0060] In one embodiment, the control unit also includes a multi-thread management module, which creates and controls a heartbeat sending thread and a board information acquisition thread according to parameters in a configuration file; the heartbeat sending thread sends a heartbeat instruction to the client according to a heartbeat detection interval; the board information acquisition thread periodically acquires device operating status information and feeds it back to the client through the communication control module.
[0061] In this embodiment, the multithread management module uses a thread pool to manage various working threads in the system, including two main working threads: a heartbeat sending thread and a board information acquisition thread. The thread pool size is dynamically adjusted according to the system configuration to avoid creating too many threads and causing waste of system resources.
[0062] Specifically, the module allocates an independent task queue and resource pool to each working thread. The heartbeat sending thread sends heartbeat packets at the configured time interval; the board information acquisition thread regularly collects device status information and caches the information locally to reduce direct access to the hardware. The module implements a synchronization mechanism between threads to ensure the consistency of data access, and provides thread status monitoring and exception recovery functions.
[0063] In one embodiment, the control unit further includes a slot detection module for periodically detecting valid slots and related board states; the board information acquisition thread is further used to acquire and update board state information detected by the slot detection module.
[0064] In this embodiment, the slot detection module regularly detects the status of each slot in the system through the hardware abstraction layer interface. It should be understood that the specific detection interface implementation can be selected according to the characteristics of the hardware platform. The module maintains a slot status table to record the in-position status, board type, working status and other information of each slot. The detection results are regularly updated to the system status library through the board information acquisition thread.
[0065] Specifically, the module implements an intelligent detection algorithm, using different detection strategies and intervals according to the board type. For key boards, more frequent detection is used; for ordinary boards, a lower frequency of detection is used to balance the real-time detection and system overhead. When a board status change is detected, the module will generate an event notification and trigger the corresponding processing flow, such as updating the display, recording logs, etc.
[0066] It should be understood that the size of the serial numbers of each step in the above embodiment and the order of the modules do not mean 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 the present application.
[0067] In one embodiment, the present application provides an electronic device, which may be a server, and its internal structure diagram may be as follows: Figure 8 As 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 non-volatile and internal memory. The non-volatile storage has an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile. 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, the functional steps of each module in an OBPC device with protection for high-speed optical signals of a wavelength division system are implemented.
[0068] Those skilled in the art will understand that Figure 8 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0069] In one embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0070] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the above-mentioned 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-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0071] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. An OBPC device capable of protecting high-speed optical signals of a wavelength division system, characterized in that: include: At least two non-self-locking mechanical optical switches, each of which includes an input end and multiple output ends, and is used to switch optical signals between the communication optical path between network elements and the protection device; A plurality of first passive optical splitters, wherein an input end of the first passive optical splitter is used to receive an input optical signal, at least two output ends are respectively connected to different protection devices, and another output end is connected to the optical switch; a plurality of second passive optical splitters, the second passive optical splitters being connected to the output end of the optical switch and used for distributing the optical signal to the optical power detector; A plurality of optical power detectors, wherein the optical power detectors are used to monitor the optical power in real time and output power detection data; A control unit, the control unit is connected to the optical power detector and the optical switch, and is used to determine the state of the optical path according to the power detection data and control the optical switch to perform switching; The device supports simultaneous access of at least two protection devices. When any protection device fails, the optical switch switches to ensure that other optical communications proceed normally.
2. The OBPC device capable of protecting high-speed optical signals of a wavelength division system according to claim 1, characterized in that: The control unit also includes: The recovery judgment module is used 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 fault is detected to be recovered.
3. The OBPC device capable of protecting high-speed optical signals of a wavelength division system according to claim 1, characterized in that: The control unit also includes a switching priority control module, wherein: When the first protection device fails and the second protection device is normal, controlling the optical switch to switch to the second protection device; When all protection devices fail, the optical switch is controlled to switch to a bypass state for direct communication between network elements.
4. The OBPC device capable of protecting high-speed optical signals of a wavelength division system according to claim 1, characterized in that: Also includes: An optical amplifier module, wherein the optical amplifier module is arranged between the first passive optical splitter and the protection device; The input end of the first passive optical splitter receives the input optical signal and divides it into two paths, one of which is connected to the optical switch, and the other is amplified by the optical amplifier module and distributed to different protection devices through another optical splitter.
5. The OBPC device capable of protecting high-speed optical signals of a wavelength division system according to claim 1, characterized in that: The control unit also includes: A communication control module is used to create a network socket at a specified port and establish a communication connection with a client; A configuration file processing module is used to manage configuration files including heartbeat detection interval, idle time and number of failure determination parameters, and automatically create and set default configuration values when the configuration file does not exist; The instruction processing module is used to receive and parse the client instructions transmitted by the communication control module according to the configuration parameters in the configuration file, implement the corresponding control functions by issuing board instructions, including the working mode switching function and the working line switching function, and feed back the execution results to the client through the communication control module.
6. The OBPC device capable of protecting high-speed optical signals of a wavelength division system according to claim 5, characterized in that: The control unit also includes a heartbeat detection module, wherein: The heartbeat detection module performs heartbeat detection according to the configuration parameters; Receive instructions to turn on and off the heartbeat function; When it is detected that the number of heartbeat losses reaches the number of failure determinations, a heartbeat loss notification is sent through the communication control module, and a recovery notification is sent when the heartbeat is restored.
7. The OBPC device capable of protecting high-speed optical signals of a wavelength division system according to claim 6, characterized in that: The control unit also includes a multi-thread management module, wherein: The multithread management module creates and controls the heartbeat sending thread and the 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 device operation status information and feeds it back to the client through the communication control module.
8. The OBPC device capable of protecting high-speed optical signals of a wavelength division system according to claim 7, characterized in that: The control unit also includes: Slot detection module, used to regularly detect valid slots and related board status; The board information acquisition thread is also used to acquire and update the board status information detected by the slot detection module.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the functional steps of each module in the OBPC device capable of protecting high-speed optical signals of a wavelength division system according to any one of claims 1 to 8 are realized.
Citation Information
Patent Citations
Optical line protection device
CN107104724A
Optical line switching method and device
CN111342891A
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
Method and system to prevent false restoration and protection in optical networks with a sliceable light source
US20200112365A1