A dual-redundant transmission and lossless switching method for on-off digital optical transceiver
Patent Information
- Application Number
- CN202610467207.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-10
- Publication Date
- 2026-11-03
- Estimated Expiration
- 2046-04-10
AI Technical Summary
Existing optical transceiver systems lack dynamic sensing and prediction capabilities when there are fiber breaks, signal degradation, or bit error events, leading to signal loss or malfunctions. Furthermore, traditional switching strategies suffer from delays and incorrect switching, making it difficult to achieve lossless switching and continuous reliable output.
The system employs dual-path redundant transmission and closed-loop adaptive switching control. Through concurrent hot standby redundant transmission, real-time link status monitoring, and dynamic stability weight calculation, it can predict potential anomalies and select the optimal channel, ensuring seamless switching and minimizing end-to-end latency.
It enables continuous and reliable transmission of switch quantity service data, improves system stability and robustness, and ensures lossless switching and continuous data output in the event of fiber breakage or bit error.
Smart Images

Figure CN122293176B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network transmission control technology, and in particular to a method for dual-channel redundant transmission and lossless switching for optical transceivers. Background Technology
[0002] In modern optical communication systems, reliable transmission of switching signals is crucial for applications in power, rail transportation, and industrial automation. Traditional optical transceivers typically use a single fiber optic channel for transmission. When the channel experiences fiber breakage, signal degradation, or bit error events, signal loss or malfunctions may occur, affecting system security and operational continuity. Existing technologies include some systems that achieve redundant transmission by adding backup fiber optic channels, but most rely solely on static switching strategies. These strategies lack dynamic sensing of channel status and the ability to predict potential degradation trends, resulting in problems such as switching delays, incorrect switching, or short-term signal interruptions.
[0003] In existing technologies, in order to improve the reliability of switching signal transmission, some methods add real-time bit error detection or channel status statistics to optical transceivers. However, they usually only use a single indicator as the basis for switching, and fail to comprehensively consider bit error rate, duration of abnormal events and short-cycle degradation trends. Furthermore, they lack adaptive fusion of historical link status, which makes the selection and switching strategies of primary and backup channels lack refined and intelligent control, making it difficult to achieve truly lossless switching and continuous reliable output. Summary of the Invention
[0004] This application provides a dual-path redundant transmission and lossless switching method for switching optical transceivers. It employs concurrent hot standby redundant transmission of the first and second optical fiber channels, real-time link status monitoring at the receiving end, dynamic stability weight calculation, and a closed-loop adaptive switching control mechanism. This enables the prediction of potential anomalies and selection of the optimal channel in advance in the event of fiber breakage, bit error, or channel degradation, ensuring continuous and reliable transmission of switching service data. It achieves seamless switching between primary and backup optical fiber channels, minimizes end-to-end latency, and implements closed-loop optimized concurrent selection and lossless switching control, thereby improving the system's stability and robustness.
[0005] This application provides a method for dual-path redundant transmission and lossless switching in a switching optical transceiver system, comprising: in the switching optical transceiver system, the receiving device generates a control trigger signal based on a preset detection strategy and a manual trigger command in the field operation state, and sends it to the transmitting end through the optical fiber reverse link to trigger the transmitting end to enter the dual-path redundant transmission and link detection state; after receiving the control trigger signal, the transmitting end performs line adaptation processing on the switching service data to be transmitted, converts it into an encoded service data stream suitable for stable transmission at the optical fiber physical layer, and transmits it simultaneously through the first optical fiber channel and the second optical fiber channel in a concurrent manner to form a dual-path hot standby redundant transmission state; the receiving end receives the encoded service data stream transmitted through the first optical fiber channel and the second optical fiber channel in parallel, and performs real-time statistical analysis on the code pattern continuity, codeword legality, timing stability and data integrity of the two data streams to generate a link quality parameter set; The link quality parameter set includes a first fiber channel link quality parameter set and a second fiber channel link quality parameter set. A unified link quality assessment result dataset is constructed based on the link quality parameter set. The receiving end temporarily caches a predetermined length of data before the current output data based on the link quality assessment result dataset to construct a cached dataset. Combining the first and second fiber channel link quality parameter sets, the error statistics, abnormal event characteristics, and transmission stability indicators of the two channels are comprehensively evaluated to generate a target channel determination result. Under the premise of uninterrupted output of switch quantity service data, the receiving end seamlessly connects the cached dataset with the real-time received data of the target channel based on the target channel determination result to achieve instant switching of the transmission channel. The link status after switching is continuously monitored and statistically updated to form a concurrent optimization and lossless switching closed-loop control mechanism based on the link quality assessment result dataset. Attached Figure Description
[0006] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings of the embodiments of the present invention will be briefly described below. Flowcharts are used in this application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed precisely in sequence. Instead, various steps can be processed in reverse order or simultaneously as needed. Furthermore, other operations can be added to these processes, or one or more steps can be removed from these processes.
[0007] Figure 1 This is a flowchart illustrating a method for dual-path redundant transmission and lossless switching of a digital optical transceiver, provided in an embodiment of this application. Detailed Implementation
[0008] The above description is merely an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, specific embodiments of this application are given below.
[0009] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description of this application will be provided in conjunction with the accompanying drawings. The described embodiments should not be considered as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0010] In the following description, references to "some embodiments" describe a subset of all possible embodiments. However, it is understood that "some embodiments" can be the same or different subsets of all possible embodiments and can be combined with each other without conflict. The terms "first" and "second" are used merely to distinguish similar objects and do not represent a specific ordering of objects. The terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or modules not explicitly listed or inherent to these processes, methods, products, or devices. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only.
[0011] This application provides a method for dual-path redundant transmission and lossless switching of optical transceivers for digital input / output, such as... Figure 1 As shown, the method includes: S1: In the optical transceiver system, the receiving device generates a control trigger signal based on a preset detection strategy and manual triggering instructions while in operation on site. This signal is then sent to the transmitting end via the reverse fiber optic link to trigger the transmitting end to enter dual-path redundant transmission and link detection mode.
[0012] Furthermore, step S1 also includes: S11. During the operation of the optical transceiver system, the receiving device acquires preset detection strategy parameters and manual trigger command information, and uniformly collects the detection strategy parameters and manual trigger command information to form a trigger condition dataset; S12. Based on the trigger condition dataset, the receiving device performs matching analysis on the current system operating status to determine whether the control trigger conditions are met, and generates a corresponding trigger judgment result; S13. When the trigger judgment result meets the trigger conditions, the receiving device generates a control trigger signal for link control according to the trigger condition dataset and the current system operating status parameters; the control trigger signal includes transmission mode control parameters to instruct the transmitting end to enter the dual-path redundant transmission mode, and encapsulates the control trigger signal in a format to form standardized trigger signal data; S14. The receiving device sends the standardized trigger signal data to the transmitting end through the optical fiber reverse link to trigger the transmitting end to enter the dual-path redundant transmission and link detection state according to the transmission mode control parameters, wherein the dual-path redundant transmission state is a hot backup mode for transmitting the same service data through two optical fiber channels.
[0013] Specifically, in a digital signal transceiver system, the receiving device, while in operation, generates a control trigger signal based on a preset detection strategy and manual trigger commands. This signal is then transmitted to the transmitting end via a reverse fiber optic link to trigger the transmitting end into dual-path redundant transmission and link detection mode. During system operation, the receiving device acquires preset detection strategy parameters and manual trigger command information, and performs unified data collection on these parameters. By integrating the collected strategy parameters (such as test cycle, monitoring type, and threshold settings) with manual trigger commands (such as temporary test requests and maintenance operation commands), a complete trigger condition dataset is formed. This dataset is used for subsequent control trigger determination, improving the accuracy and consistency of trigger decisions. Based on this trigger condition dataset, the receiving device performs a matching analysis of the current system operating status, including collecting the current link transmission status, fiber optic channel activity status, and digital signal service data operation indicators, and comparing these with the trigger conditions to determine whether the control trigger conditions are met. When the current system status meets the trigger strategy requirements or a manual trigger request is received, a corresponding trigger determination result is generated. This step ensures that the control trigger signal is generated only when the system meets preset conditions or manual instructions, avoiding false triggers and improving system reliability. When the trigger determination result meets the trigger conditions, the receiving device generates a control trigger signal for link control based on the trigger condition dataset and the current system operating status parameters. The control trigger signal includes a trigger identifier, timestamp, trigger source information, and trigger action type, and is formatted and encapsulated to form standardized trigger signal data, ensuring that the signal can be correctly identified and parsed by the transmitting end during fiber optic link transmission. The receiving device sends the standardized trigger signal data to the transmitting end through the fiber optic reverse link, thereby triggering the transmitting end to enter dual-path redundant transmission and link detection state. In this embodiment, after receiving the control trigger signal, the transmitting end can support multiple transmission modes according to the network management configuration, including dual-path hot backup mode and dual-path independent transmission mode. In the dual-path hot backup mode, the first and second fiber optic channels transmit the same switching service data to form a real-time synchronous redundant transmission structure to support subsequent link quality assessment and lossless switching control. In the dual-path independent transmission mode, the two fiber optic channels carry different service data to improve transmission bandwidth utilization and system resource utilization efficiency.It should be noted that the lossless switching method described in this application is applicable to the dual-channel hot backup mode. In this mode, the data of the two channels are consistent and alignable, thereby enabling target channel switching based on link quality assessment and seamless data connection. However, for traditional protection switching methods that rely on the participation of the transmitting end, the switching process requires coordinated control from the transmitting end, which typically results in a long control path and slow response speed, leading to a long switching time. This makes it difficult to achieve true hot backup switching and cannot guarantee lossless continuous output of switch data during the switching process. In this embodiment, the fiber optic reverse link can use a conventional optical communication interface or an industrial Ethernet interface for data transmission to ensure the real-time performance and reliability of signal transmission. Through the above steps, this embodiment achieves active control triggering of the optical transceiver system by the receiving end, enabling the transmitting end to promptly enter dual-channel redundant transmission and link detection state. In the dual-channel hot backup mode, it provides data consistency and structural foundation for subsequent link quality assessment, channel optimization, and lossless switching, thereby improving the reliability and continuity of the optical transceiver system during switch service transmission and providing an accurate triggering basis for subsequent link optimization and lossless switching.
[0014] S2: After receiving the control trigger signal, the transmitter performs line adaptation processing on the switch quantity service data to be sent, converts it into an encoded service data stream suitable for stable transmission at the optical fiber physical layer, and sends it simultaneously through the first optical fiber channel and the second optical fiber channel in a concurrent manner, forming a dual-path hot standby redundant transmission state.
[0015] Specifically, after receiving the control trigger signal, the transmitter first performs line adaptation processing on the switch signal data to be transmitted. This adaptation processing includes data format conversion of the switch signal, insertion of redundant information, and encoding processing to generate an encoded service data stream suitable for stable transmission at the fiber optic physical layer. In this embodiment, the transmitter can use 8B10B encoding for line encoding of the switch data to ensure code continuity, data synchronization, and error detection capability. Furthermore, to improve transmission reliability, the transmitter concurrently transmits the encoded service data stream through a first fiber optic channel and a second fiber optic channel, forming a dual-path hot-standby redundant transmission state. Specifically, the first and second fiber optic channels simultaneously receive the same encoded data, but are physically independent, achieving primary and backup parallel operation. This ensures that if one fiber optic channel fails or experiences transmission degradation, the other channel can still maintain continuous service data output. In this embodiment, the transmitter can adjust the data transmission rate according to the link bandwidth and switch signal rate during transmission, and periodically insert special codewords (e.g., K-code) for link detection into the data stream so that the receiver can perform code synchronization, error statistics, and short-period anomaly prediction. Through the above steps, this embodiment achieves dual-path concurrent hot-standby redundant transmission of switch quantity service data, maintaining continuous data output in the event of fiber optic cable breakage or link anomalies. It also provides a foundation for link quality monitoring, ensuring reliable data transmission for subsequent link optimization and lossless switching at the receiving end. This method significantly improves the stability, reliability, and fault tolerance of the optical transceiver system.
[0016] S3: The receiving end receives the encoded service data streams transmitted via the first optical fiber channel and the second optical fiber channel in parallel, and performs real-time statistical analysis on the code pattern continuity, codeword legality, timing stability and data integrity of the two data streams to generate a set of link quality parameters. The link quality parameter set includes a first fiber channel link quality parameter set and a second fiber channel link quality parameter set. A unified dataset of link quality assessment results is constructed based on the aforementioned set of link quality parameters.
[0017] Furthermore, step S3 also includes: S31. The receiving end synchronously acquires the encoded service data streams transmitted via the first optical fiber channel and the second optical fiber channel, respectively, and performs parallel reception processing on the two data streams to form the received data stream of the first optical fiber channel. The receiving end receives data streams through the first and second fiber optic channels and constructs a unified receiving dataset; S32, based on the receiving dataset, the receiving end parses the codeword sequences in the two receiving data streams, extracts the code pattern continuity features and codeword legality features of each codeword, forms corresponding code pattern feature data for the first and second fiber optic channels, and constructs a code pattern feature dataset; S33, based on the receiving dataset and the code pattern feature dataset, the receiving end performs statistical analysis on the timing stability and data integrity of the two receiving data streams, obtains the corresponding timing and integrity statistical results for the first and second fiber optic channels, and generates a statistical analysis result dataset; S34, based on the code pattern feature dataset and the statistical analysis result dataset, the receiving end performs a comprehensive evaluation of the transmission quality of the two fiber optic channels, extracts error-related indicators, stability indicators, and abnormal feature indicators, generates a link quality parameter set for the first and second fiber optic channels, and summarizes them to form a unified link quality parameter set for subsequent channel optimization and lossless switching processing.
[0018] Specifically, the receiving end synchronously acquires the encoded service data streams transmitted via the first and second fiber optic channels and processes the two data streams in parallel. The receiving module performs real-time buffering and processing of the data, forming the first and second fiber optic channel received data streams, and constructs a unified received dataset for subsequent analysis. Then, based on the received dataset, the receiving end parses the codeword sequences in the two received data streams, extracting the code pattern continuity features and codeword validity features of each codeword. In this embodiment, code pattern continuity can be quantified by statistically analyzing the length of correctly received consecutive codewords, and codeword validity is determined by checking whether the codeword is within the encoding table range and whether it conforms to the rules for inserting redundant codes (such as K-codes), thereby forming corresponding first and second fiber optic channel code pattern feature data and constructing a unified code pattern feature dataset. Next, based on the received dataset and code pattern feature dataset, the receiving end performs statistical analysis on the temporal stability and data integrity of the two received data streams. Timing stability can be calculated by the variance or deviation of the time interval between adjacent codeword receptions, while data integrity can be evaluated by comparing the length of the received data stream with the expected service data and the position of the inserted code. Through statistical analysis, the timing and integrity statistics for the first and second fiber optic channels are obtained, and a statistical analysis result dataset is generated. Finally, the receiving end comprehensively evaluates the transmission quality of the two fiber optic channels based on the code pattern feature dataset and the statistical analysis result dataset. The evaluation includes error-related indicators (such as the number of errors per unit time), stability indicators (such as the length of consecutive correct codewords and timing fluctuations), and abnormal characteristic indicators (such as short-period burst error events and abnormal codeword distribution patterns). These indicators are combined to generate a link quality parameter set for the first and second fiber optic channels, and then summarized to form a unified link quality parameter set, providing an accurate basis for subsequent channel optimization and lossless switching. Through the above steps, this embodiment realizes real-time monitoring and quantitative evaluation of dual optical fiber channels, which can detect potential degradation trends in advance and provide a data basis for the receiver to dynamically select the primary and backup channels, thereby improving the reliability and transmission continuity of the switching optical transceiver system, while providing precise support for lossless switching and closed-loop control.
[0019] S4: Based on the link quality assessment result dataset, the receiving end temporarily caches data of a predetermined length before the current output data to construct a cached dataset.
[0020] Specifically, based on dual-fiber transmission, the receiving end temporarily caches a predetermined length of data preceding the currently output data to achieve lossless switching and continuous data output, and constructs a cached dataset to provide data support for subsequent primary / backup channel switching. The receiving end, based on the link quality assessment result dataset, temporarily caches a predetermined length of data preceding the currently output service data in real time. This cached data includes the complete codeword sequence and related timestamp information from the most recently received coded service data stream, ensuring seamless data transition during switching. Furthermore, to improve cache utilization efficiency, the receiving end can segment the data for storage according to a fixed frame length or a fixed number of codewords. Each segment forms an independent cache unit, marked with its start and end positions and corresponding timestamps. For example, if the link transmits switch data at a physical rate of 125 Mbps, the receiving end can set a cache length of 4 codewords, approximately a 0.64 µs data time window, to quickly achieve lossless switching without losing service data when channel degradation is detected. During the cache construction process, the receiving end can also attach verification information (such as parity check or K-code identifier) to ensure the integrity of the cached data and provide a reference for subsequent primary / backup switching and link alignment. The cached dataset can be associated with a link quality parameter set, recording the channel status, bit error statistics, code pattern continuity, and timing stability indicators corresponding to each cached data entry, thereby achieving unified management of cached data and channel quality status. Through the above steps, this embodiment realizes real-time temporary storage and cache construction of output data. When a channel experiences slight degradation or severe anomalies, the receiving end can perform seamless switching based on the cached data, ensuring continuous output of switch quantity service data and improving the reliability and fault tolerance of the optical transceiver system. Simultaneously, the caching mechanism provides a data foundation for subsequent closed-loop control and channel optimization, laying the technical support for achieving real-time lossless switching.
[0021] S5: Combining the link quality parameter sets of the first and second fiber optic channels, a comprehensive evaluation is performed on the bit error statistics, abnormal event characteristics, and transmission stability indicators of the two channels to generate the target channel determination result.
[0022] Furthermore, step S5 of this application also includes: S51. Based on the link quality parameter set, extract the bit error related parameters, abnormal event parameters, and transmission stability parameters from the first fiber channel link quality parameter set and the second fiber channel link quality parameter set respectively, forming corresponding first fiber channel quality characteristic parameter sets and second fiber channel quality characteristic parameter sets, and construct a unified link quality characteristic dataset; S52. Based on the link quality characteristic dataset, the receiving end analyzes and processes the bit error statistical characteristics and abnormal event characteristics of the two channels, calculates the bit error distribution index, abnormal event frequency, and abnormal duration characteristics of each channel, and generates the first fiber channel bit error anomaly analysis results and the second fiber channel bit error anomaly analysis results. The receiving end performs a comprehensive evaluation of the transmission stability of the two channels based on the transmission stability parameters in the bit error anomaly analysis result dataset and the link quality feature dataset, generating a first fiber optic channel stability evaluation result and a second fiber optic channel stability evaluation result, and constructing a link comprehensive evaluation result dataset; S54, the receiving end compares and judges the transmission quality of the first fiber optic channel and the second fiber optic channel based on the link comprehensive evaluation result dataset, determines the channel with better current transmission quality as the target channel, and generates a target channel determination result for subsequent lossless switching control.
[0023] Furthermore, step S52 of this application also includes: S52-1. Based on the link quality feature dataset, the receiving end extracts error-related parameters and abnormal event parameters from the first fiber channel quality feature parameter group and the second fiber channel quality feature parameter group, respectively, to form first fiber channel error anomaly feature data and second fiber channel error anomaly feature data, and constructs a unified error anomaly feature dataset; S52-2. Based on the error anomaly feature dataset, the receiving end performs statistical analysis on the bit errors of the two channels, calculates the error quantity distribution characteristics and error density distribution index of each channel within a predetermined statistical window, generates the first fiber channel error distribution statistical results and the second fiber channel error distribution statistical results, and forms an error distribution statistical result dataset; S52-3. Based on the bit error anomaly feature dataset, the receiving end analyzes and processes the abnormal events in the two channels, counts the frequency and duration of abnormal events, extracts the time distribution features of abnormal events, generates the abnormal event analysis results for the first optical fiber channel and the second optical fiber channel, and constructs an abnormal event analysis result dataset; S52-4, based on the bit error distribution statistical result dataset and the abnormal event analysis result dataset, the receiving end performs a fusion analysis of the bit error statistical features and abnormal event features of the two channels, generates the bit error anomaly analysis results for the first optical fiber channel and the second optical fiber channel, and summarizes them to form a unified bit error anomaly analysis result dataset for subsequent transmission stability assessment processing.
[0024] Furthermore, step S53 of this application also includes: S53-1. Based on the link quality characteristic dataset and the bit error anomaly analysis result dataset, the receiving end extracts transmission stability-related parameters for the first and second fiber optic channels, including bit error statistics, anomaly frequency indicators, and anomaly persistence indicators, forming a first fiber optic channel stability parameter set and a second fiber optic channel stability parameter set, and constructs a unified stability parameter dataset; S53-2. Based on the stability parameter dataset, the receiving end performs quantitative calculations on the stability of the two channels, constructs stability evaluation indicators, obtains the stability evaluation values for the first and second fiber optic channels, and forms a stability evaluation result dataset; S53-3. Based on... The stability evaluation result dataset is used to classify the stability of the two channels into levels. The stability evaluation values are mapped to a preset stability threshold range to generate the stability level results of the first optical fiber channel and the stability level results of the second optical fiber channel. A stability level dataset is constructed, and when the stability level is lower than the preset threshold, it is marked as a degraded channel. S53-4, the receiving end performs a comprehensive evaluation of the transmission stability of the two optical fiber channels based on the stability evaluation result dataset and the stability level dataset, generates the stability evaluation results of the first optical fiber channel and the stability evaluation results of the second optical fiber channel, and summarizes them to form a unified link comprehensive evaluation result dataset for subsequent target channel determination processing.
[0025] Furthermore, step S53-2 of this application also includes: S53-2-1. Based on the stability parameter dataset, including bit error rate statistics, abnormal event frequency, and abnormal persistence, the receiving end normalizes the parameters of the first and second fiber optic channels respectively, and constructs stability evaluation indicators according to preset weight combinations to form a stability evaluation indicator dataset; S53-2-2. Based on the stability evaluation indicator dataset, the receiving end calculates the stability evaluation value for each of the two channels. The formula for calculating the stability evaluation value of a channel is: ;in, For the first Stability evaluation value of each fiber optic channel. For error statistics, This is an indicator of the frequency of abnormal events. As an indicator of abnormal persistence, The preset bias coefficient is used to calculate the stability evaluation value of the first optical fiber channel and the stability evaluation value of the second optical fiber channel based on the formula. The stability evaluation values are used to form a stability evaluation result dataset for subsequent stability level classification and degraded channel marking steps. S53-2-3, the receiving end standardizes and formats the stability evaluation result dataset to generate a standardized stability evaluation result dataset for subsequent stability level classification and degraded channel marking.
[0026] Specifically, the receiving end extracts key parameters from the first and second fiber optic channel link quality parameter sets based on the aforementioned link quality parameter sets. These parameters include error-related parameters, abnormal event parameters, and transmission stability parameters, thus forming a first fiber optic channel quality characteristic parameter set and a second fiber optic channel quality characteristic parameter set. The error-related parameters include the number of errors per unit time, error distribution location, and error density; the abnormal event parameters include the frequency of abnormal events, duration of abnormal events, and distribution of abnormal event intervals; and the transmission stability parameters include code pattern continuity indicators, timing fluctuation indicators, and data integrity indicators. Further, the quality characteristic parameters of the two channels are uniformly organized to construct a link quality characteristic dataset for subsequent error anomaly analysis and stability assessment. Based on the link quality characteristic dataset, the receiving end analyzes and processes the error statistical characteristics and abnormal event characteristics of the two channels to generate an error anomaly analysis result dataset. Specifically, within a predetermined statistical window, the bit error data of each channel is statistically analyzed to calculate bit error distribution indicators, including the trend of bit error quantity changes and bit error density distribution characteristics within a unit of time. Simultaneously, abnormal events are identified and statistically analyzed to obtain the frequency and duration of these events. For example, when multiple illegal codewords or sudden concentrated distributions of bit errors occur consecutively in a short period of time in a certain fiber optic channel, this phenomenon can be identified as an abnormal event, and its duration and frequency can be recorded. Further, the bit error distribution indicators and abnormal event characteristics are fused and analyzed to generate the bit error anomaly analysis results for the first fiber optic channel and the second fiber optic channel, and these results are aggregated to form a unified bit error anomaly analysis result dataset. The receiving end performs a comprehensive evaluation of the transmission stability of the two channels based on the bit error anomaly analysis result dataset and the transmission stability parameters in the link quality characteristic dataset. Specifically, by combining bit error statistics, abnormal event frequency indicators, and abnormal duration indicators, a quantitative stability analysis of the two channels is performed to generate the stability evaluation results for the first and second fiber optic channels, and a comprehensive link evaluation result dataset is constructed. In this embodiment, the stability assessment considers not only the number of bit errors but also the persistence characteristics and distribution patterns of abnormal events, thereby avoiding misjudgments caused by relying solely on a single bit error rate indicator. For example, when a channel has a low number of bit errors but experiences frequent short-cycle abnormal events, its stability assessment result may still be lower than that of another channel, thus more accurately reflecting the actual state of the link. Based on the comprehensive link assessment result dataset, the receiving end compares and judges the transmission quality of the first and second fiber optic channels, determines the channel with the better current transmission quality as the target channel, and generates a target channel determination result.Specifically, when the stability assessment result of one channel is better than that of another channel, that channel is determined as the target channel; when a significant degradation of a channel is detected (such as a significant increase in the frequency of abnormal events or a decrease in stability below a threshold), another channel can be preferentially selected as the target channel. The target channel determination result will serve as the direct basis for subsequent lossless handover control, triggering seamless integration of cached data and real-time data of the target channel. Further, based on the link quality feature dataset, the receiving end extracts error-related parameters and abnormal event parameters from the first and second fiber optic channel quality feature parameter groups, respectively, forming first and second fiber optic channel error anomaly feature data. The error-related parameters include the number of codeword errors, the distribution of erroneous codeword locations, and the time sequence of error occurrence; the abnormal event parameters include anomaly event identifier, anomaly start time, anomaly duration, and anomaly end marker. Further, the error anomaly feature data of the two channels are uniformly integrated to construct an error anomaly feature dataset. Based on the aforementioned error anomaly feature dataset, the receiving end performs statistical analysis on the bit errors of the two channels, calculating the error quantity distribution characteristics and error density distribution index within a predetermined statistical window. Specifically, within a set time window or codeword window, the number of bit errors is cumulatively statistically analyzed to obtain the error quantity change curve per unit time; simultaneously, by analyzing the distribution of bit errors on the time axis or codeword sequence, the error density index is calculated to reflect the degree of concentration of bit errors in a local area.
[0027] For example, within a statistical window, if the bit errors are evenly distributed, it can be identified as a minor random bit error; while if the bit errors are concentrated in a short period of time or within a continuous codeword interval, it can be identified as a sudden bit error event. Through the above processing, the bit error distribution statistics results of the first fiber channel and the second fiber channel are generated, forming a unified bit error distribution statistics dataset. Based on the bit error anomaly feature dataset, the receiving end analyzes and processes the abnormal events in the two channels, statistically analyzes the frequency and duration of abnormal events, and extracts the time distribution characteristics of abnormal events. Specifically, by identifying continuous abnormal codeword segments or illegal codeword occurrence segments, the start and end times of abnormal events are determined, and the duration of each abnormal event is calculated; at the same time, the number of abnormal events occurring per unit time is statistically analyzed to obtain an abnormal event frequency index. Furthermore, by analyzing the distribution of abnormal events on the time axis, it can be determined whether the abnormal events exhibit periodicity, randomness, or concentrated outbreak characteristics. For example, when abnormal events occur continuously in a short period of time and last for a long time, it can be determined that the link has a significant degradation trend. Based on the above analysis, abnormal event analysis results for the first and second fiber optic channels are generated, and a unified abnormal event analysis result dataset is constructed. The receiving end performs a fusion analysis of the bit error distribution statistical result dataset and the abnormal event analysis result dataset for both channels. Specifically, the bit error density distribution index is jointly analyzed with the frequency and duration of abnormal events to comprehensively assess the correlation between bit error behavior and abnormal events. For example, when the bit error density is high and the duration of abnormal events is long, the channel can be determined to be in a severely degraded state; while when the bit error density is low and the abnormal events are discretely distributed, it can be determined to be in a state of slight disturbance. Through fusion analysis, abnormal bit error analysis results for the first and second fiber optic channels are generated respectively, and summarized into a unified abnormal bit error analysis result dataset for subsequent transmission stability assessment. Based on the link quality characteristic dataset and the abnormal bit error analysis result dataset, the receiving end extracts transmission stability-related parameters for the first and second fiber optic channels respectively, forming a first fiber optic channel stability parameter group and a second fiber optic channel stability parameter group. The transmission stability-related parameters include: bit error rate statistics, used to characterize the occurrence of bit errors per unit time or unit codeword; abnormal event frequency indicators, used to characterize the number of times abnormal events occur within a statistical period; and abnormal persistence indicators, used to characterize the duration of abnormal events or the length of consecutive abnormal codewords. Furthermore, the stability parameters of the two channels are uniformly organized to construct a stability parameter dataset for subsequent stability quantification calculations. Based on the stability parameter dataset, the receiving end performs quantification calculations on the stability of the two channels, constructs stability evaluation indicators, and obtains the stability evaluation values for the first optical fiber channel and the second optical fiber channel.In this embodiment, the bit error rate statistics, abnormal event frequency, and abnormal persistence indicators are first normalized to make data of different dimensions comparable. Then, corresponding weighting coefficients are set according to the degree of influence of each indicator on link stability. The receiving end classifies the stability of the two channels based on the stability evaluation result dataset. Specifically, the stability evaluation values are mapped to preset stability threshold ranges to generate corresponding stability level results. For example, stability can be divided into "excellent," "good," "average," and "poor" level ranges. When the stability evaluation value of a channel is lower than the preset threshold, the channel is marked as a degraded channel, and its corresponding degraded identification information is recorded. Furthermore, the stability level results of the two channels are uniformly organized to construct a stability level dataset. This step realizes the transformation from continuous numerical evaluation to discrete level judgment, making link status easier to determine and control. Based on the stability evaluation result dataset and the stability level dataset, the receiving end comprehensively evaluates the transmission stability of the two optical fiber channels, generating the stability evaluation results of the first and second optical fiber channels, and summarizing them to form a unified comprehensive link evaluation result dataset. In this embodiment, the comprehensive evaluation considers not only the stability evaluation value but also the stability level results and degradation marking, thereby making a more comprehensive judgment on the link status. For example, when a channel has a high stability evaluation value but has been marked as a degraded channel, its priority can be downgraded to avoid potential risks. The comprehensive link evaluation result dataset will serve as the core basis for subsequent target channel determination, used to achieve optimal selection and lossless switching control of dual channels. Further, the receiving end normalizes the stability parameters of the first and second fiber optic channels based on the stability parameter dataset. The stability parameters include bit error rate statistics, abnormal event frequency, and abnormal persistence. Specifically, for parameters with different dimensions and value ranges, the receiving end uses a unified normalization method to convert each indicator to the same scale range. For example, each indicator can be linearly normalized according to a preset maximum and minimum value range, mapping its value to a preset range, thereby eliminating the dimensional differences between different parameters and improving the comparability and stability of subsequent calculations. After completing the normalization process, the receiving end performs weighted processing on each indicator according to a preset weight combination to construct a stability evaluation index. The weight combination reflects the relative importance of error rate statistics, abnormal event frequency, and abnormality persistence in stability assessment. Furthermore, the weight combination can be preset based on system operating experience or historical link status. For example, in application scenarios with high real-time requirements, the weight of the abnormality persistence indicator can be appropriately increased; in scenarios with high long-term stability requirements, the weight of the error rate statistics indicator can be increased.Based on the stability evaluation index dataset, the receiving end calculates the stability evaluation value for each of the two channels. The formula for calculating the stability evaluation value of a channel is: ;in, For the first Stability evaluation value of each fiber optic channel. For error statistics, This is an indicator of the frequency of abnormal events. The bit error statistics are indicators of abnormal persistence. This index, obtained by counting the number of bit errors detected in the received bitstream within a predetermined statistical time window and normalizing it in conjunction with the total number of received codewords, is used to characterize the bit error rate of the channel within the time window. The abnormal event frequency index... This index is a statistical indicator obtained by counting the number of detected abnormal events within a predetermined statistical time window and normalizing it according to the time window length. It is used to characterize the frequency of abnormal events occurring in the channel. The remaining index is an abnormal event persistence index obtained based on the duration of abnormal events within the predetermined statistical window. It is used to characterize the continuous degradation characteristics of the channel within the statistical period. The calculation formula is: ;in, For the first Duration of each abnormal event This represents the total number of abnormal events. Preset a reference time scale (such as statistical window length or standard anomaly persistence threshold). The preset bias coefficient is the weighting factor. Used to characterize the influence of different evaluation indicators in the stability evaluation process, its values satisfy... =1. In the specific implementation process, the weighting coefficient can be determined based on the following method: First, calculate the bit error rate statistics within the predetermined statistical time window. Hey Abnormal event frequency index Fi and indicators of the persistence of abnormal events AEDi The average value is denoted as 、 、 Then, the above indicators are normalized to obtain: ,in, 、 、 These represent the average values of the corresponding indicators within the statistical period. Through this method, the weighting coefficients can be automatically allocated according to the actual operating status of the link, thus enabling the stability evaluation results to adaptively reflect the impact of different anomalies on link quality. The receiving end calculates the stability evaluation values for the first and second fiber optic channels based on the stability evaluation indicator dataset, obtaining the corresponding stability evaluation values for the first and second fiber optic channels. In this embodiment, the stability evaluation value is a comprehensive quantitative result obtained by weighted fusion calculation based on bit error rate statistics, abnormal event frequency, and anomaly persistence indicators, reflecting the overall transmission stability level of each channel within the current statistical period. Further, the receiving end unifies the stability evaluation values of the first and second fiber optic channels to form a stability evaluation result dataset. This dataset includes channel identification information, corresponding stability evaluation values, and associated statistical time window identifiers, used to identify changes in link stability over different time periods. This step achieves a unified quantitative expression of the stability of dual-path fiber optic channels, enabling direct comparability between different channels and providing fundamental data support for subsequent grading. The receiving end performs unified scale mapping on the stability evaluation values to ensure they meet preset numerical ranges or standard expression formats, guaranteeing consistency in evaluation results across different time periods and channels. Simultaneously, the data structure is formatted, encapsulating the stability evaluation results according to a preset data structure, including channel identifier fields, evaluation value fields, time identifier fields, and status identifier fields. Furthermore, during standardization, boundary constraints can be applied to the stability evaluation values to prevent outliers from affecting subsequent grading. For example, when a channel experiences a sudden abnormal fluctuation under extreme conditions, standardization can reasonably limit the evaluation value, keeping it within a reasonable range. After standardization and formatting, a standardized stability evaluation result dataset is generated for subsequent stability grading and degraded channel labeling steps. For example, when the first fiber optic channel experiences a short-term anomaly causing a sudden change in the stability evaluation value, standardization can smooth this change, preventing misjudgment as a severely degraded channel and improving the reliability of the system's judgment.
[0028] S6: Under the premise of uninterrupted output of switch quantity service data, the receiving end seamlessly connects the cached dataset with the real-time received data of the target channel based on the target channel determination result, so as to realize the instantaneous switching of the transmission channel.
[0029] Specifically, under the premise of uninterrupted output of switch quantity service data, the receiving end seamlessly connects the cached dataset with the real-time received data of the target channel based on the target channel determination result, realizing instant switching of the transmission channel. Specifically, during normal operation, the receiving end continuously caches and stores data of a predetermined length preceding the current output data, forming a cached dataset. When the link comprehensive evaluation result dataset determines that the current channel is no longer the optimal channel, the receiving end determines a new target channel based on the target channel determination result. During the switching process, the receiving end first extracts historical data segments that have not yet been output from the cached dataset and uses this data as transitional data for continued output; simultaneously, it selects data segments from the real-time received data stream of the target channel that are sequentially continuous with the cached data and aligns and connects them with the cached data, thereby forming a continuous data output sequence. Furthermore, to ensure the continuity and consistency of the connection process, the receiving end can perform synchronous alignment processing on the cached data and the real-time data of the target channel based on codeword sequence number, timestamp information, or frame structure identifier, ensuring that there is no duplicate output or data loss before and after the switch. In this embodiment, since the primary and backup fiber optic channels have already undergone delay alignment in the preceding steps, the receiving end only needs to complete data splicing within the buffer window to achieve seamless switching. For example, when the buffer length is set to 4 codewords, only about 0.64 microseconds of additional delay is introduced during the switching process, thereby ensuring data continuity while keeping the switching delay at a low level.
[0030] S7: Continuously monitor and statistically update the status of the switched links to form a concurrent optimization and lossless switching closed-loop control mechanism based on the link quality assessment result dataset.
[0031] Furthermore, step S7 of this application also includes: S71. Continuously monitor the first and second fiber optic channels after switching, including code pattern continuity, bit error statistics, frequency and duration of abnormal events, and generate a real-time link status dataset. Calculate anomaly prediction indicators based on short-cycle data from the real-time link status dataset. S72. Accumulate the output real-time link status data into the link quality assessment result dataset. Dynamically adjust the stability weights of different channels based on real-time link indicators, historical link status, and short-cycle anomaly prediction indicators. The dynamic weight adjustment is based on bit error frequency, duration of abnormal events, and short-cycle anomaly trends, and is automatically updated according to historical link quality status. S73. Perform concurrent priority determination on the first and second fiber optic channels based on the link quality assessment results and dynamic weights. Specifically, determine the priority of the primary channel and the backup channel. This determination combines mild degradation statistics and severe degradation instantaneous events to achieve rapid response and high-reliability switching. The judgment result is output as the target channel judgment result, which is used to trigger lossless switching; S74, the target channel judgment result is output as a switching control signal to trigger seamless connection between the buffered data and the real-time data of the target channel; wherein, during the switching process, the buffer connection length is dynamically adjusted according to the delay difference between the primary and backup optical fibers to minimize the end-to-end delay caused by the switching; S75, the link status after switching is subsequently monitored and the closed-loop control parameters are updated. The closed-loop control mechanism automatically optimizes the channel selection and lossless switching strategy according to the historical status trend of the link and the real-time evaluation results.
[0032] Furthermore, step S72 of this application also includes: S72-1. Accumulate the real-time link status data of the first and second fiber channels into the link quality assessment result dataset to form a historical link status sequence. The historical link state sequence is used for subsequent weight adjustment and trend analysis; S72-2, for each channel's historical link state sequence With the latest short-cycle anomaly prediction indicators A comprehensive analysis is performed to calculate the channel stability characteristics, including the average bit error rate. Persistent indicators of abnormal events Anomaly prediction indicators Among them, the average bit error rate The calculation formula is: ;in, For the first Number of bit errors per observation period For the first Total number of codewords per observation period The total number of observation periods; the anomaly prediction index : Obtained from step S71, representing the risk of channel degradation in the near future, with a value range of S72-3, For each channel Dynamically calculate stability weights Used for determining the priority of primary and backup channels, the formula is: ; in, The average bit error rate, As a persistent indicator of abnormal events, As a short-cycle anomaly prediction indicator, For the preset weighting coefficients, satisfy A higher weight indicates a more stable channel and a higher priority. Dynamic adjustments can be made adaptively based on historical link status trends and real-time indicators. S72-4, Set the current weight Compared with historical weight average Perform smooth fusion to form the final channel stability weights. : ,in, It is the historical weighted average. For smoothing coefficients, ; The merged weights can reduce the impact of sudden anomalies on the handover decision and achieve adaptive optimization of the primary and backup channel priorities.
[0033] Specifically, the receiving end continuously monitors the first and second fiber optic channels after the switchover. Monitoring includes code pattern continuity, bit error statistics, frequency of abnormal events, and duration of abnormal events, generating a real-time link status dataset. Based on this, the receiving end performs rapid analysis of the link status using short-period data from the real-time link status dataset, calculating anomaly prediction indicators to characterize the trend of link degradation within a short period. Specifically, by analyzing the trend of bit error rate changes and the density of abnormal events within a short time window, potential link quality degradation can be identified in advance. For example, when a channel experiences a sustained increase in bit error rate or a gradual concentration of abnormal events within a short period, it can be determined that the channel is experiencing a degradation trend.
[0034] This step achieves a shift from "passive detection" to "active prediction," improving the foresight of link anomaly response. The receiving end continuously accumulates the output real-time link status data into the link quality assessment result dataset and combines it with historical link status data to dynamically analyze the link status. Based on real-time link indicators, historical link status, and short-cycle anomaly prediction indicators, the receiving end dynamically adjusts the stability weights of different channels. These weight adjustments are based on bit error rate, anomaly event duration, and short-cycle anomaly trends, and are adaptively updated in conjunction with historical link quality changes. For example, if a channel has historically been stable but recently exhibits a short-cycle anomaly trend, its stability weight can be appropriately reduced; conversely, if another channel has a small number of bit errors but high overall stability, its weight can be increased. This step achieves a shift from "fixed weights" to "dynamic weights" in stability evaluation, making the assessment results more closely reflect actual link status changes. Based on the link quality assessment result dataset and dynamic weights, the receiving end performs concurrent priority determination on the first and second fiber optic channels. Specifically, the judgment process considers both the statistical results of minor degradation and the immediate events of severe degradation: when a channel is in a minor degradation state, the channel priority is adjusted based on the statistical analysis results; when a severe degradation event is detected (such as consecutive abnormal codewords reaching a preset threshold within a short period of time), priority switching is immediately triggered. Through this mechanism, the priority relationship between the primary and backup channels is determined, and a target channel judgment result is generated for subsequent lossless switching control. This step combines "statistical judgment + immediate response," improving the timeliness and reliability of channel switching. The receiving end outputs the target channel judgment result as a switching control signal to trigger seamless connection between cached data and real-time data of the target channel, achieving lossless switching. During the switching process, the receiving end dynamically adjusts the connection length of the cached data based on the latency difference between the primary and backup fiber optic channels, thereby ensuring the continuity of data splicing and minimizing the additional latency introduced by the switching. For example, when there is a microsecond latency difference between the two channels, the target channel data and the cached data can be precisely aligned on the time axis by increasing or decreasing the cached data length, thus achieving a smooth transition. This step effectively controls end-to-end latency and improves system real-time performance while ensuring lossless switching. The receiving end continuously monitors the link status after switching and updates the link quality assessment result dataset, thus forming closed-loop control parameters. Based on the historical link status change trends and real-time assessment results, the receiving end adaptively optimizes the channel selection strategy and lossless switching strategy, including adjusting weight parameters, optimizing anomaly detection thresholds, and updating switching strategy rules. For example, when a certain type of abnormal pattern is frequently detected during long-term system operation, the anomaly detection threshold can be automatically adjusted to make the system more sensitive to this type of anomaly, thereby improving response capabilities.In complex electromagnetic interference environments, when a fiber optic channel gradually shows an increasing trend in bit error rate, this method can predict its degradation risk in advance and complete channel switching before a serious failure occurs, thereby ensuring the continuity and reliability of switch signal transmission. Furthermore, the receiving end accumulates the real-time link status data of the first and second fiber optic channels into the link quality assessment result dataset, forming a historical link status sequence for the corresponding channel. The link state data includes information such as code pattern continuity indicators, bit error statistics, frequency of abnormal events, and duration of abnormal events. The historical link state sequence is arranged chronologically to form a continuous trajectory of state changes, used to describe the operational stability trend of the channel over a period of time. For example, recording the bit error rate changes and abnormal event distribution of a channel within multiple consecutive time windows can form a historical state evolution sequence for that channel, used to identify its long-term stability characteristics. The receiving end processes the historical link state sequence of each channel. With the latest short-cycle anomaly prediction indicators A comprehensive analysis is performed to calculate channel stability characteristics. The short-period anomaly prediction index, derived from anomaly trend analysis within a short time window, characterizes the potential degradation risk of the link at the current moment. In this embodiment, the receiving end can comprehensively characterize channel stability based on historical link state sequences and the short-period anomaly prediction index. For example, by analyzing the bit error rate trend, anomaly event density changes, and current anomaly prediction strength in the historical sequence, the channel stability can be qualitatively or quantitatively described. When the historical link state sequence shows long-term stability and the short-period anomaly prediction index is low, the channel stability can be determined to be high; when a continuous degradation trend appears in the historical link state sequence and the short-period anomaly prediction index is high, the channel can be determined to have significant instability risk. The channel stability characteristics include the average bit error rate. Persistent indicators of abnormal events Anomaly prediction indicators Among them, the average bit error rate The calculation formula is: ;in, For the first Number of bit errors per observation period For the first Total number of codewords per observation period The total number of observation periods; the anomaly prediction index : Obtained from step S71, representing the risk of channel degradation in the near future, with a value range of For each channel Dynamically calculate stability weights Used for determining the priority of primary and backup channels, the formula is: ;in, The average bit error rate, As a persistent indicator of abnormal events, As a short-cycle anomaly prediction indicator, For the preset weighting coefficients, satisfy A higher weight indicates a more stable channel and a higher priority. Dynamic adjustments can be made adaptively based on historical link status trends and real-time indicators. The preset weighting coefficient Used to characterize the importance of each evaluation index to stability in channel priority determination, its value satisfies In the specific implementation process, the weighting coefficients can be obtained in the following ways: empirical assignment, based on system design requirements and historical link statistics. a、b、c Set to a fixed ratio, for example α =0.4、 β =0.3、 c =0.3, so as to allocate the influence weights among average bit error rate, frequency of abnormal events, and short-term abnormal trends; statistical normalization method, within a predetermined time window, calculates the average bit error rate of each channel separately. Frequency of abnormal events and short-cycle forecasting indicators Then normalize it to obtain the normalized value. 、 、 Then calculate the weights: Adaptive updates: During link operation, the system can dynamically adjust based on historical link status trends and real-time metrics. a、b、c This allows the stability weights to adaptively reflect the impact of different anomalies on link quality, thus ensuring that channel priority determination considers both short-term severe degradation and long-term mild degradation risks. Through the above method, a、b、c It not only has a clear calculation method, but also can adaptively update according to the actual operating status of the link, ensuring that stability evaluation and target channel determination are feasible and reliable; it will adjust the current weights. Compared with historical weight average Perform smooth fusion to form the final channel stability weights. : ,in, It is the historical weighted average. For smoothing coefficients, ; The smoothing coefficient Used to perform exponentially weighted smoothing in channel stability evaluation values or dynamic weight calculations, controlling the fusion ratio of historical link status and current real-time indicators. Its value ranges from 0 to 1, and a fixed value is selected based on the system's requirements for response speed and jitter suppression, for example... = 0.1~0.3, used to balance short-term fluctuation suppression and long-term trend response; the fused weights can reduce the impact of sudden anomalies on handover decisions and achieve adaptive optimization of primary and backup channel priorities. To achieve multi-dimensional evaluation and dynamic control of fiber optic channel transmission status, a link quality parameter system including bit error statistics, abnormal event frequency, and abnormal event persistence indicators was constructed, and a short-cycle anomaly prediction indicator was further introduced to characterize link degradation features at different time scales. Among them, the bit error statistics indicator is used to characterize the average bit error level of the channel within a predetermined statistical window, reflecting the long-term stability of the link; the abnormal event persistence indicator is used to describe the duration characteristics of abnormal events within the statistical period. In step S53, the... The value is calculated based on a fixed statistical window and used for static evaluation of channel stability; while in step S72, the... Dynamic updates are performed based on real-time link status datasets and historical link status sequences to reflect the changes in persistent anomaly characteristics under the combined influence of short-term cycles and historical trends, thus demonstrating the evolution of channel degradation. Furthermore, the short-term anomaly prediction index is calculated in step S71 based on short-term statistical results from real-time link status data, with a value range of [0,1]. This index characterizes the probability or risk level of channel degradation in the near future, thereby providing early detection capabilities for sudden anomalies. Through the construction and hierarchical application of the above parameter system, this application achieves a unified description of characteristics at different time scales during link quality assessment. By constructing a multi-time-scale fusion link quality assessment mechanism, this application achieves collaborative perception of long-term fiber optic channel degradation and short-term sudden anomalies, thus providing a more accurate and responsive decision-making basis for lossless switching. In this application, the bit error rate statistics used in step S53... and abnormal event frequency index These parameters are used to statistically describe the link error characteristics and abnormal event distribution characteristics within a predetermined statistical window, and are fundamental statistical parameters in the link quality assessment process. In step S72, to achieve dynamic adjustment and channel optimization control of the link status, control decision parameters are further constructed based on the statistical parameters, including the average bit error rate. For error statistics Continuous indicators obtained through normalization or averaging over a time window are used to characterize the current bit error rate of the channel; short-cycle anomaly prediction indicators. Based on the frequency index of abnormal events Its temporal distribution characteristics, obtained through short-cycle statistics and trend analysis, are used to characterize the risk of channel deterioration in the near future. Therefore, and , and While they have a physical correspondence, they differ in application level and calculation method. and Used for static statistical evaluation and This application enables dynamic control and trend prediction, thereby achieving hierarchical processing between link quality assessment and channel optimization control. By constructing a mapping relationship between statistical evaluation parameters and dynamic control parameters, it decouples and coordinates link quality analysis and channel optimization control, improving the system's adaptability and stability in complex link environments.
[0035] This application embodiment constructs a link quality parameter acquisition and analysis mechanism for dual-path fiber optic channels, and performs multi-dimensional comprehensive evaluation by combining bit error rate statistics, abnormal event characteristics, and transmission stability indicators. It also introduces a seamless buffered data connection and dynamic weight adaptive adjustment strategy to achieve real-time optimization and lossless switching of dual-path redundant transmission channels. This ensures continuous and stable transmission of switch quantity service data and high system reliability even under link degradation or abnormal conditions. In the specific implementation process, the receiving end device first monitors the system's operating status in real time based on a preset detection strategy and manual trigger commands. When the triggering conditions are met, a control trigger signal is generated and sent to the transmitting end via the fiber optic reverse link, triggering the transmitting end to enter dual-path redundant transmission and link detection state. At the transmitting end, the switch quantity service data to be transmitted undergoes line adaptation and encoding processing to generate an encoded service data stream suitable for stable transmission at the fiber optic physical layer. This data is then transmitted concurrently through the first and second fiber optic channels, achieving dual-path hot standby redundant transmission. The receiving end synchronously and in parallel receives the encoded data streams from both channels and performs real-time statistical analysis on code pattern continuity, codeword validity, timing stability, and data integrity to form a link quality parameter set, including bit error statistics, abnormal event characteristics, and stability indicators. A unified link quality assessment result dataset is then constructed to provide foundational data for subsequent channel optimization. Furthermore, the receiving end temporarily caches a predetermined length of data preceding the current output data based on the link quality assessment results, forming a cached dataset. When channel degradation or anomalies occur during link transmission, the receiving end quantifies, classifies, and marks the degraded channels based on the bit error anomaly analysis results and transmission stability parameters, and comprehensively generates a link comprehensive assessment result dataset. This result determines the channel with the better current transmission quality as the target channel, achieving target channel determination. During the lossless handover phase, the receiving end seamlessly connects the cached dataset with the real-time received data of the target channel, ensuring uninterrupted output of switch quantity service data. During the handover process, the cache connection length is dynamically adjusted based on the difference in delay between the primary and backup optical fibers to minimize end-to-end latency caused by the handover. Simultaneously, the receiving end continuously monitors the status of the switched channels, generates a real-time link status dataset, and dynamically adjusts the stability weights of different channels based on short-cycle anomaly prediction indicators and historical link status sequences. It then performs concurrent priority determination on the two channels, enabling rapid switching between the primary and backup channels. The closed-loop control mechanism automatically optimizes channel selection and lossless switching strategies based on historical status trends and real-time evaluation results, ensuring stable and highly reliable transmission of switch signal data even under abnormal and degraded conditions.Compared with existing technologies, the embodiments of this application have at least the following beneficial effects: First, by establishing a link quality parameter set, a bit error anomaly analysis result set, and a transmission stability evaluation mechanism at the receiving end, this application achieves comprehensive real-time monitoring and evaluation of dual-fiber channels, enabling accurate identification of potentially degraded channels and effectively avoiding data loss and transmission interruptions. Second, this application employs a seamless integration technology between cached datasets and real-time data of the target channel, combined with a dynamic adjustment mechanism for primary and backup fiber delays, to achieve instant switching and uninterrupted output of switch quantity service data, improving the reliability and real-time performance of system switching. Furthermore, through dynamic weight adjustment of historical link state sequences and short-cycle anomaly prediction indicators, as well as concurrent priority determination and closed-loop control optimization, this application achieves rapid response, intelligent decision-making, and highly reliable channel selection, enabling responses to sudden anomalies without human intervention. In summary, the embodiments of this application not only improve the transmission stability and reliability of the optical transceiver system but also significantly enhance the system's ability to predict, respond to, and adapt to abnormal events, achieving a redundant transmission control effect with high availability, high real-time performance, and high security.
[0036] The specific embodiments described above do not constitute a limitation on the scope of protection of this application. Those skilled in the art should understand that various modifications, combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the scope of protection of this application. In some cases, the actions or steps described in this application can be performed in a different order than that shown in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Claims
1. A method for dual-path redundant transmission and lossless switching in a digital optical transceiver, characterized in that, The method includes: S1. In the optical transceiver system, the receiving device generates a control trigger signal based on a preset detection strategy and manual triggering instructions when it is in operation on site. The signal is then sent to the transmitting end via the optical fiber reverse link to trigger the transmitting end to enter the dual-path redundant transmission and link detection state. The dual-path redundant transmission state is a hot backup mode in which two optical fiber channels transmit the same service data. This mode is used to support subsequent link quality assessment and lossless switching control. S2. After receiving the control trigger signal, the transmitter performs line adaptation processing on the switch quantity service data to be sent, converts it into an encoded service data stream suitable for stable transmission in the optical fiber physical layer, and sends it simultaneously through the first optical fiber channel and the second optical fiber channel in a concurrent manner, forming a dual-channel hot standby redundant transmission state. S3. The receiving end receives the encoded service data streams transmitted through the first optical fiber channel and the second optical fiber channel in parallel, and performs real-time statistical analysis on the code pattern continuity, codeword legality, timing stability and data integrity of the two data streams to generate a link quality parameter set. The link quality parameter set includes a first fiber channel link quality parameter set and a second fiber channel link quality parameter set. A unified dataset of link quality assessment results is constructed based on the aforementioned set of link quality parameters; S4. Based on the link quality assessment result dataset, the receiving end temporarily caches data of a predetermined length before the current output data to construct a cache dataset. S5. Combining the link quality parameter sets of the first and second optical fiber channels, a comprehensive evaluation is performed on the bit error statistics, abnormal event characteristics, and transmission stability indicators of the two channels to generate the target channel determination result. S6. Under the premise of uninterrupted output of switch quantity service data, the receiving end seamlessly connects the cached dataset with the real-time received data of the target channel based on the target channel determination result to realize the instantaneous switching of the transmission channel. S7. Continuously monitor and statistically update the status of the switched links to form a concurrent optimization and lossless switching closed-loop control mechanism based on the link quality assessment result dataset, including: S71. Continuously monitor the first and second fiber optic channels after switching, including code pattern continuity, bit error statistics, frequency and duration of abnormal events, generate a real-time link status dataset, and calculate anomaly prediction indicators based on short-period data of the real-time link status dataset. S72. Accumulate the output real-time link status data into the link quality assessment result dataset. Based on the real-time link indicators, historical link status and short-cycle anomaly prediction indicators, dynamically adjust the stability weights of different channels. The adjustment of the dynamic weights is based on the bit error frequency, the duration of abnormal events and the short-cycle anomaly trend, and is automatically updated according to the historical link quality status. S73. Based on the link quality assessment results and dynamic weights, perform concurrent priority determination on the first and second fiber optic channels; Among them, the priority of the primary channel and the backup channel is determined. The determination is combined with the statistics of mild degradation and the real-time events of severe degradation to achieve rapid response and high-reliability switching. The judgment result is output as the judgment result of the target channel, which is used to trigger lossless switching; S74. Output the target channel determination result as a switching control signal to trigger seamless connection between cached data and real-time data of the target channel; During the switchover process, the buffer connection length is dynamically adjusted based on the difference in latency between the primary and backup optical fibers to minimize the end-to-end latency caused by the switchover. S75. Monitor the status of the link after the switchover and update the closed-loop control parameters. The closed-loop control mechanism automatically optimizes the channel selection and lossless switching strategy based on the historical status trend of the link and the real-time evaluation results.
2. The method for dual-path redundant transmission and lossless switching of a digital input / output optical transceiver as described in claim 1, characterized in that, In a digital input / output optical transceiver system, the receiving device, while in operation, generates a control trigger signal based on a preset detection strategy and manual trigger commands, and transmits it to the transmitting end via a fiber optic reverse link, including: S11. During the operation of the optical transceiver system, the receiving device acquires preset detection strategy parameters and manual triggering instruction information, and uniformly collects the detection strategy parameters and manual triggering instruction information to form a triggering condition dataset. S12. The receiving device performs a matching analysis on the current system operating status based on the trigger condition dataset, determines whether the control trigger conditions are met, and generates the corresponding trigger determination result. S13. When the trigger determination result meets the trigger condition, the receiving device generates a control trigger signal for link control based on the trigger condition dataset and the current system operating status parameters. The control trigger signal includes transmission mode control parameters to instruct the transmitting end to enter the dual-path redundant transmission mode, and the control trigger signal is format-encapsulated to form standardized trigger signal data. S14. The receiving device sends the standardized trigger signal data to the transmitting end through the optical fiber reverse link to trigger the transmitting end to enter the dual-path redundant transmission and link detection state according to the transmission mode control parameters. The dual-path redundant transmission state is a hot backup mode for transmitting the same service data through two optical fiber channels.
3. The method for dual-path redundant transmission and lossless switching of a switching optical transceiver as described in claim 1, characterized in that, The receiving end receives the encoded service data streams transmitted via the first and second optical fiber channels in parallel, and performs real-time statistical analysis on the code pattern continuity, codeword validity, timing stability, and data integrity of the two data streams to generate a set of link quality parameters, including: S31. The receiving end synchronously acquires the encoded service data streams transmitted via the first optical fiber channel and the second optical fiber channel, respectively, and performs parallel reception processing on the two data streams to form the received data stream of the first optical fiber channel. The second fiber optic channel receives the data stream and constructs a unified received dataset; S32. Based on the received dataset, the receiving end parses the codeword sequences in the two received data streams, extracts the code pattern continuity features and codeword legality features of each codeword, forms the corresponding first fiber channel code pattern feature data and second fiber channel code pattern feature data, and constructs a code pattern feature dataset. S33. Based on the received dataset and the code pattern feature dataset, the receiving end performs statistical analysis on the timing stability and data integrity of the two received data streams, obtains the corresponding timing and integrity statistical results of the first optical fiber channel and the second optical fiber channel, and generates a statistical analysis result dataset. S34. Based on the code pattern feature dataset and statistical analysis result dataset, the receiving end comprehensively evaluates the transmission quality of the two optical fiber channels, extracts error-related indicators, stability indicators and abnormal feature indicators, generates the first optical fiber channel link quality parameter set and the second optical fiber channel link quality parameter set, and summarizes them to form a unified link quality parameter set for subsequent channel optimization and lossless switching processing.
4. The method for dual-path redundant transmission and lossless switching of a digital input / output optical transceiver as described in claim 1, characterized in that, By combining the link quality parameter sets of the first and second fiber optic channels, a comprehensive evaluation is performed on the bit error statistics, abnormal event characteristics, and transmission stability indicators of the two channels to generate a target channel determination result, including: S51. Based on the link quality parameter set, extract the bit error related parameters, abnormal event parameters and transmission stability parameters from the first fiber channel link quality parameter set and the second fiber channel link quality parameter set respectively to form the corresponding first fiber channel quality feature parameter set and second fiber channel quality feature parameter set, and construct a unified link quality feature dataset. S52. Based on the link quality feature dataset, the receiving end analyzes and processes the bit error statistics and abnormal event characteristics of the two channels, calculates the bit error distribution index, frequency of abnormal events and duration of abnormality for each channel, generates the bit error anomaly analysis results of the first optical fiber channel and the bit error anomaly analysis results of the second optical fiber channel, and forms a bit error anomaly analysis result dataset. S53. Based on the transmission stability parameters in the bit error anomaly analysis result dataset and the link quality characteristic dataset, the receiving end performs a comprehensive evaluation of the transmission stability of the two channels, generates the first fiber channel stability evaluation result and the second fiber channel stability evaluation result, and constructs a comprehensive link evaluation result dataset. S54. Based on the comprehensive link evaluation result dataset, the receiving end compares and judges the transmission quality of the first optical fiber channel and the second optical fiber channel, determines the channel with better current transmission quality as the target channel, and generates a target channel determination result for subsequent lossless switching control.
5. The method for dual-path redundant transmission and lossless switching of a switching optical transceiver as described in claim 4, characterized in that, Based on the link quality characteristic dataset, the receiving end analyzes and processes the bit error statistics and abnormal event characteristics of the two channels, calculates the bit error distribution index, frequency of abnormal events, and duration of abnormalities for each channel, generates the bit error anomaly analysis results for the first fiber channel and the bit error anomaly analysis results for the second fiber channel, and forms a bit error anomaly analysis result dataset, including: S52-1. Based on the link quality feature dataset, the receiving end extracts the bit error related parameters and abnormal event parameters from the first fiber channel quality feature parameter group and the second fiber channel quality feature parameter group respectively, forming the first fiber channel bit error abnormal feature data and the second fiber channel bit error abnormal feature data, and constructs a unified bit error abnormal feature dataset. S52-2. Based on the bit error anomaly feature dataset, the receiving end performs statistical analysis on the bit errors of the two channels, calculates the bit error quantity distribution characteristics and bit error density distribution index of each channel within a predetermined statistical window, generates the bit error distribution statistical results of the first optical fiber channel and the bit error distribution statistical results of the second optical fiber channel, and forms a bit error distribution statistical result dataset. S52-3. Based on the bit error anomaly feature dataset, the receiving end analyzes and processes the abnormal events in the two channels, counts the frequency and duration of abnormal events, extracts the time distribution features of abnormal events, generates the abnormal event analysis results of the first optical fiber channel and the abnormal event analysis results of the second optical fiber channel, and constructs the abnormal event analysis result dataset. S52-4. Based on the bit error distribution statistical result dataset and the abnormal event analysis result dataset, the receiving end performs a fusion analysis of the bit error statistical characteristics and abnormal event characteristics of the two channels to generate the bit error anomaly analysis results of the first optical fiber channel and the bit error anomaly analysis results of the second optical fiber channel, and summarizes them to form a unified bit error anomaly analysis result dataset for subsequent transmission stability assessment processing.
6. The method for dual-path redundant transmission and lossless switching of a switching optical transceiver as described in claim 4, characterized in that, Based on the error anomaly analysis result dataset and the transmission stability parameters in the link quality characteristic dataset, the receiving end performs a comprehensive evaluation of the transmission stability of the two channels, generates a first fiber optic channel stability evaluation result and a second fiber optic channel stability evaluation result, and constructs a comprehensive link evaluation result dataset, including: S53-1. Based on the link quality feature dataset and the bit error anomaly analysis result dataset, the receiving end extracts the transmission stability-related parameters of the first optical fiber channel and the second optical fiber channel, including bit error statistics, abnormal event frequency indicators and abnormal persistence indicators, to form the first optical fiber channel stability parameter group and the second optical fiber channel stability parameter group, and constructs a unified stability parameter dataset. S53-2. Based on the stability parameter dataset, the receiving end performs quantitative calculations on the stability of the two channels, constructs stability evaluation indicators, obtains the stability evaluation value of the first optical fiber channel and the stability evaluation value of the second optical fiber channel, and forms a stability evaluation result dataset. S53-3. Based on the stability evaluation result dataset, the receiving end classifies the stability of the two channels into levels, maps the stability evaluation values to intervals according to the preset stability threshold range, generates the stability level results of the first optical fiber channel and the stability level results of the second optical fiber channel, and constructs a stability level dataset. When the stability level is lower than the preset threshold, it is marked as a degraded channel. S53-4. Based on the stability evaluation result dataset and stability level dataset, the receiving end performs a comprehensive evaluation of the transmission stability of the two optical fiber channels, generates the stability evaluation result of the first optical fiber channel and the stability evaluation result of the second optical fiber channel, and summarizes them to form a unified comprehensive link evaluation result dataset for subsequent target channel determination processing.
7. The method for dual-path redundant transmission and lossless switching of a digital input / output optical transceiver as described in claim 1, characterized in that, The output real-time link status data is accumulated into the link quality assessment result dataset. Based on real-time link metrics, historical link status, and short-cycle anomaly prediction metrics, the stability weights of different channels are dynamically adjusted, including: S72-1. Accumulate the real-time link status data of the first and second fiber channels into the link quality assessment result dataset to form a historical link status sequence. The historical link state sequence is used for subsequent weight adjustment and trend analysis; S72-2, Historical link state sequence for each channel With the latest short-cycle anomaly prediction indicators A comprehensive analysis is performed to calculate the channel stability characteristics, including the average bit error rate. Persistent indicators of abnormal events Anomaly prediction indicators Among them, the average bit error rate The calculation formula is: ; in, For the first Number of bit errors per observation period For the first Total number of codewords per observation period Total number of observation periods; The anomaly prediction index Obtained from step S71, it represents the risk of channel degradation in the near future, with a value range of... ; S72-3, For each channel Dynamically calculate stability weights Used for determining the priority of primary and backup channels, the formula is: ; in, The average bit error rate, As a persistent indicator of abnormal events, For the preset weighting coefficients, satisfy A higher weight indicates a more stable channel and a higher priority. Dynamic adjustments can be made adaptively based on historical link status trends and real-time indicators. ; S72-4, Set the current weight Historical weighting The channels are then smoothly merged to form the final channel stability weights. : ; in, It is the historical weighted average. For smoothing coefficients, ; The merged weights can reduce the impact of sudden anomalies on the handover decision and achieve adaptive optimization of the primary and backup channel priorities.
Citation Information
Patent Citations
Dual-path redundant backup method based on optical fiber transmission
CN118509042A
Industrial real-time data transmission guarantee method and system based on TSN
CN120343043A
