GPON secure transmission system in distribution network scenario

By leveraging the collaborative efforts of modules for link quality baseline generation, handover trigger determination, service status processing, backup route allocation, and configuration verification, the problem of difficulty in distinguishing between fluctuations and degradation in optical power thresholds during GPON protection switching has been solved. This enables accurate redirection of service priorities and resource locking, reduces the risk of erroneous handover, and improves service continuity and recovery reliability.

CN123035393APending Publication Date: 2026-11-03STATE GRID JIANGSU ELECTRIC POWER CO LTD NANTONG POWER SUPPLY BRANCH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611528316.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-30
Publication Date
2026-11-03

AI Technical Summary

Technical Problem

In existing GPON protection switching, fixed optical power thresholds or single alarms cannot distinguish between instantaneous fluctuations and continuous degradation, leading to uncertainties in erroneous switching and redirection. This is especially problematic when backup optical transmission resources are limited and there are differences in the configuration of primary and backup OLTs, resulting in issues such as high-priority services not being prioritized or incompatible redirections.

Method used

The link quality baseline generation module generates optical power baseline and fluctuation range; the handover trigger determination module judges handover conditions based on attenuation magnitude and duration; the service status processing module forms service priority sequence; the backup route allocation module performs optical transmission channel testing and binding; the configuration verification module excludes inconsistent service items; and the redirection control module implements node address and resource locking to ensure the accuracy of service redirection.

Benefits of technology

By stabilizing optical power and judging deviations in real time, the risk of erroneous handover and redirection is reduced, the continuity of services and the verifiability of recovery are improved, and high-priority services are guaranteed to be carried first and redirection is compatible.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123035393A_ABST
    Figure CN123035393A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of optical transmission protection, and particularly discloses a GPON safe transmission system in a distribution network scene. The system generates a switching trigger quantity according to stable optical power and real-time optical power sequences of a main OLT to an optical network unit, forms a service priority sequence when a switching condition is met, tests a candidate optical transmission channel on a standby OLT side, performs port binding and resource locking according to the sequence, generates a first route mapping table, compares a message source end, a message format and a service identification of a service to be switched with a route allocation relationship and port compatibility conditions of the standby OLT before service redirection, excludes inconsistent service items, executes redirection when node addresses, port binding, resource locking and physical bearing capacity all meet the conditions, and blocks the switching otherwise. The application can reduce false redirection caused by false switching and configuration incompatibility, and improve service continuity and recovery confirmability of protection switching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of optical transmission protection technology, and in particular to a GPON secure transmission system in a distribution network scenario. Background Technology

[0002] GPON constructs a point-to-multipoint optical transmission structure through optical line terminals, passive optical distribution networks, and optical network units. In distribution network communication scenarios, multiple optical network units can carry services with high continuity requirements, such as status acquisition, control commands, and event reporting. To maintain transmission when the primary optical link fails or continues to deteriorate, a primary OLT and a backup OLT are typically configured.

[0003] Existing technologies typically trigger primary / backup failover based on fixed optical power thresholds, signal loss alarms, or abnormal communication conditions. Optical network unit configurations are pre-stored or synchronized on the backup OLT side, and takeover is accomplished via backup ports or backup line cards. Some solutions also test the backup optical path or prioritize the restoration of critical services when backup resources are limited.

[0004] However, the optical power of the primary GPON optical link is simultaneously affected by normal fluctuations, transient disturbances, and continuous degradation. Fixed thresholds or single alarms are insufficient to accurately distinguish between different states, easily leading to erroneous handovers. When backup optical transmission resources are limited and the routing allocation relationship or port conditions of the primary and backup OLTs differ, simply completing physical connection or static configuration synchronization cannot guarantee the compatibility between the service to be switched and the backup optical transmission channel. It is also difficult to confirm whether the redirection command has the conditions for execution and whether the service has truly recovered after the handover. Therefore, high-priority services may not be prioritized, erroneous redirection may occur, or the recovery status may be uncertain.

[0005] The information disclosed in this background section is intended only to enhance the understanding of the overall background of the invention and should not be construed as an admission or in any way implying that the information constitutes prior art known to those skilled in the art. Summary of the Invention

[0006] This invention aims to overcome the above-mentioned problems and provide a GPON secure transmission system for distribution network scenarios. It addresses the issues that existing GPON protection switching systems often fail to distinguish between instantaneous fluctuations and continuous degradation due to fixed optical power thresholds or single alarms. Furthermore, when backup optical transmission resources are limited and there are differences in primary and backup OLT configurations, the system lacks backup optical transmission channel testing, port binding, and resource locking based on service priorities. It also lacks pre-redirect configuration exclusion, execution condition gating, and post-switching recovery confirmation, which can easily lead to erroneous switching, incorrect redirection, or uncertain recovery status.

[0007] The technical solution of this invention is as follows: a GPON secure transmission system in a distribution network scenario, comprising: a link quality baseline generation module, used to obtain the stable optical power of the GPON optical link from the primary OLT to the optical network unit, determine the optical power baseline and fluctuation range, and generate an initial attenuation threshold according to the real-time deviation; a handover trigger determination module, used to obtain the real-time optical power sequence of the optical link, form a handover trigger quantity based on the attenuation amplitude and duration, and output a transmission resource handover command when the conditions are met; a service status processing module, used to respond to the transmission resource handover command, extract the service context and communication status of the affected optical network unit, and form a service priority sequence; and a backup route allocation module, used to select a backup OLT physical layer node according to the service priority sequence. Candidate backup optical transmission channels undergo transmit / receive testing and port binding. Channels are locked sequentially according to the given sequence, generating a first routing mapping table. A configuration verification module is used to determine the service to be switched based on the first routing mapping table before sending the service redirection control command. It extracts the message source, message format, and service identifier from historical communication records and compares them item by item with the routing allocation relationship and port compatibility conditions of the backup OLT, eliminating inconsistent service items and determining the updated route direction. The redirection control module is used to establish a connection between the backup OLT and the optical network unit based on the updated route direction. When the port binding, resource locking, node address, and physical bearer capacity of the channel all meet the service transmission conditions, the service redirection control command is sent; otherwise, a switching blocking result is output.

[0008] Optionally, the link quality baseline generation module is further configured to: obtain the first optical power of the GPON optical link during a historical stable period; smooth the first optical power to obtain a second optical power; extract the optical power baseline and fluctuation range of the second optical power; obtain the real-time optical power of the GPON optical link; calculate the deviation of the real-time optical power relative to the optical power baseline and the fluctuation range; when the deviation is greater than a deviation threshold, perform anomaly detection on the deviation to obtain an anomaly score; and generate the initial attenuation threshold based on the anomaly score.

[0009] Optionally, the switching trigger determination module is further configured to: extract corresponding untriggered data from the real-time optical power sequence when the switching trigger quantity does not meet the switching conditions; perform anomaly detection on the untriggered data using the isolated forest algorithm to obtain anomaly detection results; remove abnormal points in the untriggered data according to the anomaly detection results to obtain smoothed data; update the monitoring window according to the smoothed data, and use the updated monitoring window to obtain subsequent real-time optical power sequences.

[0010] Optionally, the switching trigger determination module is further configured to: perform time-series resampling on the real-time optical power sequence, calculate the optical power difference between adjacent sampling nodes within the monitoring window, identify a decreasing trend based on the optical power difference, and determine the attenuation amplitude according to the positive difference between the optical power baseline and the current real-time optical power; obtain the duration corresponding to the attenuation amplitude, and form the switching trigger amount based on the attenuation amplitude and the duration; when the switching trigger amount meets the switching conditions, and the real-time optical power is continuously lower than the initial attenuation threshold and maintains a decreasing trend, output the transmission resource switching instruction.

[0011] Optionally, the service status processing module is further configured to: concatenate the service context and the communication status to obtain an initial feature sequence, and extract session layer information from the initial feature sequence; perform matrix transformation on the session layer information to obtain a standard input matrix, classify the standard input matrix using a support vector machine to obtain the initial priority of each service to be switched; determine high-priority services and their corresponding optical network unit identifiers according to the initial priority, sort them according to the initial priority to form the service priority sequence, and output the service priority sequence to the backup route allocation module.

[0012] Optionally, the backup route allocation module is further configured to: extract available physical layer nodes from the backup OLT according to the service priority sequence, combine the available physical layer nodes to form candidate physical transmission paths; construct basic optical paths using the candidate physical transmission paths and perform optical signal transmission and reception tests, and determine the optical paths that pass the tests as the candidate backup optical transmission channels; bind the candidate backup optical transmission channels with corresponding optical network units according to the connection port information, perform resource locking on the backup optical transmission channels that pass the tests in sequence according to the service priority sequence, and write the node topology, port correspondence and switching order into the first routing mapping table.

[0013] Optionally, the configuration verification module is further configured to: obtain the optical network unit identifier and service identifier associated with the first routing mapping table, and obtain historical communication records based on the optical network unit identifier and service identifier; extract message segments, format items, message source end, service identifier and bearer path from the historical communication records to form initial message features; classify the initial message features, determine standard format features, and combine the standard format features according to the correspondence between the message source end, service identifier and bearer path to generate a second state set.

[0014] Optionally, the configuration verification module is further configured to: parse the message source, message format, and service identifier in the second state set, and parse the routing allocation relationship and port compatibility conditions in the initial communication configuration information of the backup OLT; compare the parsing results item by item to obtain the configuration matching result, and extract the inconsistent service item when the configuration matching result indicates inconsistency; exclude the inconsistent service item from the initial waiting queue composed of the service to be switched, generate an updated waiting queue, and determine the updated route direction based on the compatible service item in the updated waiting queue and its correspondence in the first routing mapping table.

[0015] Optionally, the redirection control module is further configured to: resolve the standby OLT identifier and optical network unit identifier according to the updated route pointer, and establish a logical link between the standby OLT and the corresponding optical network unit; query the standby optical transmission channel corresponding to the logical link from the first routing mapping table, and verify the node address, port binding status and resource locking status of the standby optical transmission channel; compare the physical carrying capacity of the standby optical transmission channel with the bandwidth occupancy of the corresponding service, and send the service redirection control command when each verification result meets the service transmission conditions, and output the handover blocking result when any verification result does not meet the conditions.

[0016] Optionally, the redirection control module is further configured to: after sending the service redirection control command, obtain feedback information from the optical network unit, extract communication status and optical power from the feedback information; perform sequence state decoding on the optical power using a hidden Markov model to obtain a first recovery value, and determine communication continuity based on the data packet arrival interval of the corresponding transport flow within a preset time period; classify the first recovery value, the communication continuity, and the mapping value between the current routing table and the standard routing path to obtain a recovery determination result, and send a control flow to the optical network unit when the recovery determination result meets the recovery conditions to complete the service status recovery.

[0017] The beneficial effects of this invention are as follows: This invention utilizes a link quality baseline generation module and a handover trigger determination module to determine whether to output a transmission resource handover command based on stable optical power, real-time deviation, attenuation magnitude, duration, and downward trend, ensuring that short-term fluctuations do not directly trigger protection switching. A service status processing module generates a service priority sequence, and a backup route allocation module tests, binds ports, and locks resources on candidate backup optical transmission channels according to this sequence, creating a clear mapping between backup resources and affected services. Before redirection, a configuration verification module compares the message source, message format, and service identifier of the service to be switched with the routing allocation relationship and port compatibility conditions of the backup OLT, eliminating inconsistent service items. The redirection control module then implements joint gating of node address, port binding, resource locking, and physical bearer capacity, and confirms recovery based on feedback information, thereby reducing the risk of erroneous handover and redirection, and improving service continuity and recovery confirmability. Attached Figure Description

[0018] Figure 1 This is a schematic diagram of the overall structure and data relationship of a GPON secure transmission system in a distribution network scenario provided by an embodiment of the present invention; Figure 2 This is a schematic diagram of optical power baseline generation, continuous degradation identification, and switching triggering provided in one embodiment of the present invention; Figure 3 This is a schematic diagram of the service priority and backup optical transmission channel allocation mapping provided in one embodiment of the present invention; Figure 4 This is a schematic diagram illustrating the item-by-item verification and update route generation of the service configuration to be switched according to an embodiment of the present invention. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only for explaining the invention and are not intended to limit the invention; that is, the described embodiments are merely some embodiments of the invention, and not all embodiments. The components of the embodiments of the invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0020] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.

[0021] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0022] As mentioned earlier, existing GPON primary and backup office protection switching typically relies on a fixed optical power threshold or a single alarm to initiate backup takeover, making it difficult to distinguish between instantaneous fluctuations and continuous degradation of the primary optical link. When the physical transmission resources of the backup OLT are limited and there are differences in the configuration of the primary and backup offices, simply completing the physical connection or static configuration synchronization may result in issues such as high-priority services failing to obtain available optical channels first, incompatibility between the services to be switched and the backup OLT port conditions, and the inability to confirm the recovery status after redirection.

[0023] To address this, the present invention provides a GPON secure transmission system for distribution network scenarios. The system uses a link quality baseline generation module and a handover trigger determination module to form a handover judgment based on stable optical power, attenuation magnitude, and duration. The system uses a service status processing module to form a service priority sequence. The system uses a backup route allocation module to complete the testing, port binding, and resource locking of candidate backup optical transmission channels. The system uses a configuration verification module to exclude inconsistent service items before redirection. Finally, the system uses a redirection control module to complete joint gating, service redirection, handover blocking, and service status recovery.

[0024] The following is combined with Figures 1 to 4 This invention is described in detail.

[0025] Example 1:

[0026] like Figure 1 As shown, this embodiment of the invention provides a GPON secure transmission system in a distribution network scenario. The system can operate within the protection switching control environment of the distribution network communication network. The primary OLT and backup OLT establish working optical links and backup optical transmission channels with optical network units via a passive optical distribution network, respectively. The system receives data including historical stable optical power, real-time optical power sequences, service context, communication status, and historical communication records from the primary OLT side, as well as physical layer nodes, port status, routing relationships, and port compatibility conditions from the backup OLT side.

[0027] This invention provides a GPON secure transmission system for a distribution network scenario, comprising a link quality baseline generation module, a handover trigger determination module, a service status processing module, a backup route allocation module, a configuration verification module, and a redirection control module. Each module establishes a data correspondence based on the same protection switching event identifier, optical network unit identifier, service identifier, and OLT port identifier.

[0028] Among them, the link quality baseline generation module is used to obtain the stable optical power of the GPON optical link from the primary OLT to the optical network unit, determine the optical power baseline and fluctuation range, and generate the initial attenuation threshold according to the real-time deviation. Specifically, the link quality baseline generation module obtains the historical stable optical power and the current real-time optical power corresponding to the same optical network unit and the same primary port from the optical power record of the primary OLT, performs validity verification and smoothing processing on the historical stable optical power to form an optical power baseline and fluctuation range, and sends the initial attenuation threshold generated based on the real-time deviation to the handover trigger determination module.

[0029] The switching trigger determination module is used to obtain the real-time optical power sequence of the optical link, form a switching trigger quantity based on the attenuation amplitude and duration, and output a transmission resource switching command when the conditions are met. Specifically, the handover trigger determination module receives the initial attenuation threshold and the real-time optical power sequence, resamples the data at unequal intervals, calculates the attenuation amplitude and accumulates the duration; when the handover trigger quantity reaches the handover condition and the real-time optical power is continuously lower than the initial attenuation threshold and maintains a downward trend, it outputs a transmission resource handover instruction to the service status processing module; if the condition is not met, it only updates the monitoring window.

[0030] The service status processing module is used to respond to the transmission resource switching command, extract the service context and communication status of the affected optical network unit, and form a service priority sequence. Specifically, after receiving the transmission resource switching instruction, the service status processing module reads the service context and communication status corresponding to the affected optical network unit from the primary OLT, splices and classifies them according to the optical network unit identifier and service identifier, obtains the initial priority of each service, the optical network unit identifier corresponding to the high-priority service and the sorting result, and sends the service priority sequence to the backup route allocation module.

[0031] The backup route allocation module is used to select backup OLT physical layer nodes according to the service priority sequence, perform transmit and receive tests on candidate backup optical transmission channels and bind ports, lock channels sequentially according to the sequence, and generate the first route mapping table. Specifically, the backup route allocation module reads the available physical layer nodes and existing topology relationships in the backup OLT according to the service priority order, combines candidate physical transmission paths, and performs optical signal transmission and reception tests on the basic optical paths formed by the candidate paths. After the test is passed, the candidate backup optical transmission channels are bound to the connection ports of the corresponding optical network units. The backup optical transmission channels entering the current round of switching process are written with resource lock status according to the service priority sequence, and the node topology, port correspondence and switching order are written into the first route mapping table.

[0032] The configuration verification module is used to determine the service to be switched based on the first routing mapping table before sending the service redirection control instruction. It extracts the message source, message format and service identifier from the historical communication records, compares them item by item with the routing allocation relationship and port compatibility conditions of the backup OLT, eliminates inconsistent service items and determines the updated route direction. Specifically, before sending the service redirection control command, the configuration verification module determines the optical network unit and service item to be verified based on the first routing mapping table, obtains the message source, message format, service identifier and bearer path from the historical communication records, and compares them item by item with the routing allocation relationship and port compatibility conditions of the backup OLT; inconsistent service items are excluded from the initial waiting queue, and the retained compatible service items continue to correspond to the backup optical transmission channel in the first routing mapping table to form an updated route pointer.

[0033] The redirection control module is used to establish a connection between the backup OLT and the optical network unit according to the updated route direction. When the port binding, resource locking, node address and physical bearer capacity of the channel meet the service transmission conditions, the module sends the service redirection control command; otherwise, it outputs the handover blocking result.

[0034] Specifically, the redirection control module resolves the backup OLT identifier, optical network unit identifier, and service identifier according to the updated route direction, establishes the corresponding logical link, and queries the first routing mapping table for the tested and bound backup optical transmission channels. A service redirection control command is sent only when port binding, resource locking, node address, and physical bearer capacity all meet the service transmission conditions; if any condition is not met, a handover blocking result is output. After the command is sent, the redirection control module continues to obtain the communication status, optical power, data packet arrival time, and current routing information fed back by the optical network unit to confirm that the service status has been restored.

[0035] The historical stable optical power and real-time optical power correspond to the same primary OLT port and optical network unit; the service context, communication status, and bandwidth utilization correspond to the same service to be switched over; and the test results, port binding status, and resource locking status of the candidate backup optical transmission channel are written into the same first routing mapping table. If a key identifier is missing, the time range is mismatched, or the object relationship is inconsistent, the corresponding record will not be included in this round of service redirection.

[0036] Based on the above system, the present invention can initiate protection switching based on the optical power status of the primary GPON optical link, form a backup optical transmission channel on the backup OLT side according to service priority, and complete configuration rejection and execution condition verification before service redirection, so that service redirection, switching blocking and recovery confirmation constitute a continuous system operation closed loop.

[0037] Example 2

[0038] To provide a clearer and more complete explanation of the system provided in the above embodiments, the present invention also provides an embodiment two. For example... Figures 2 to 4 As shown, this embodiment uses the same primary OLT, the same backup OLT, the same protection switching event, and optical network units ONU-1 and ONU-2 to explain the specific implementation of each module.

[0039] Preferably, the link quality baseline generation module is further used for: The first optical power of the GPON optical link during a historical stable period is obtained, and the first optical power is smoothed to obtain the second optical power; Extract the optical power baseline and fluctuation range of the second optical power, obtain the real-time optical power of the GPON optical link, and calculate the deviation of the real-time optical power relative to the optical power baseline and the fluctuation range; When the deviation is greater than the deviation threshold, anomaly detection is performed on the deviation to obtain an anomaly score, and the initial decay threshold is generated based on the anomaly score.

[0040] The historical stable period refers to the time range during which the corresponding primary OLT port and optical network unit are not in a switching process, communication is normal, and optical power records are complete. The link quality baseline generation module arranges the first optical power according to the timestamp and smooths it using Kalman filtering; the initial state and noise relationship of the Kalman filter are determined by the historical stable and valid records of the same GPON optical link, and fault state records are not used as substitutes. The number of historical stable samples is determined by the optical power acquisition period and the length of the stable period (e.g., 300 valid samples).

[0041] Specifically, the deviation of the real-time optical power from the optical power baseline and fluctuation range can be calculated using the following formula: in, The deviation is dimensionless. The optical power baseline is determined by the median of the smoothed historical stable optical power samples, in units of... ; The fluctuation range is determined based on the median absolute deviation of the historical stable optical power samples, in units of... Its robust statistical conversion factor is derived from the conventional conversion relationship of the median absolute deviation (for example, the conversion factor is 1.4826, dimensionless). Current real-time optical power, in units of ; A positive lower limit set based on optical power acquisition resolution (e.g., The deviation threshold is derived from historical stable deviation distribution or field calibration (e.g., 3.0, dimensionless).

[0042] When the deviation exceeds the deviation threshold, the link quality baseline generation module inputs the deviation within the corresponding valid window into the isolated forest to obtain a normalized abnormal state score. The isolated forest is initialized with historical stable valid samples from the same primary OLT port and optical network unit. The abnormal state score threshold is derived from the historical stable score distribution (e.g., 0.65, dimensionless). The abnormal state score threshold is used to distinguish the score interval in which the abnormal state score is located, and is not used as a trigger condition for the transmission resource switching command alone. After obtaining the abnormal state score, the link quality baseline generation module queries the corresponding attenuation margin according to the pre-configured bounded mapping relationship based on the interval in which the abnormal state score is located, and subtracts the attenuation margin from the optical power baseline to obtain the initial attenuation threshold. The fluctuation range is used for deviation normalization in formula (1) and does not directly participate in the calculation of the initial attenuation threshold. The bounded mapping relationship is determined by the historical stable score distribution and the field calibration results, and is stored as a correspondence between the abnormal score interval and the attenuation margin. The abnormal score of 0.40 corresponds to an attenuation margin of 2.8dB. The attenuation margin is limited to the range jointly determined by the optical link design budget and the field calibration (for example, the attenuation margin is allowed to be 2 to 5dB).

[0043] The initial attenuation threshold is expressed in dBm and serves as the benchmark for the switching trigger determination module to judge continuous low thresholds. The attenuation margin corresponding to the interval where the abnormal state score is located is determined by the aforementioned bounded mapping relationship; when the attenuation margin obtained by query exceeds the allowable attenuation margin range, it is determined according to the corresponding boundary value to avoid occasional changes in the abnormal state score causing the initial attenuation threshold to exceed the optical link design budget.

[0044] For example, the historical stable optical power corresponding to ONU-1, after smoothing, yields a baseline optical power of −20dBm with a fluctuation range of 0.5dB. The current real-time optical power is −23dBm. Substituting this into formula (1), the deviation is 6. When the average abnormal state score within the effective window is 0.40, the corresponding attenuation margin is determined to be 2.8dB according to the aforementioned bounded mapping relationship, resulting in an initial attenuation threshold of −22.8dBm. This result serves as the benchmark for subsequent continuous low threshold judgments.

[0045] More preferably, the switching trigger determination module is further used for: When the switching trigger quantity does not meet the switching condition, the corresponding untriggered data is extracted from the real-time optical power sequence; Anomaly detection is performed on the untriggered data using the isolated forest algorithm to obtain anomaly detection results. Based on the anomaly detection results, outliers in the untriggered data are removed to obtain smoothed data. The monitoring window is updated based on the smoothed data, and the subsequent real-time optical power sequence is obtained using the updated monitoring window.

[0046] Among them, non-triggered data only includes data whose object identifier matches the current baseline, whose communication status is normal, and whose transmission resource switching command has not been generated. The monitoring window length is determined by the optical power acquisition cycle and protection switching response requirements (e.g., When the sampling interval is At that time, a monitoring window includes 20 sampling nodes. The allowable percentage of missing data is determined by the data collection integrity configuration (e.g., If the ratio exceeds this threshold, this monitoring window will not be updated.

[0047] Specifically, Isolation Forest identifies outliers in untriggered data, and after removing outliers, the remaining data is smoothed out in chronological order. The outlier percentage can be derived from outlier statistics within historical stable windows (e.g., ...). When the proportion of outliers exceeds the specified proportion, the current monitoring window is invalidated, and data with an excessively high proportion of outliers will not be used to update subsequent monitoring windows.

[0048] For example, at an initial attenuation threshold of In the next monitoring window, only one ONU-1 appeared. Isolated fluctuations, with the remaining sampled values ​​in to Between these points, the switching trigger value did not meet the switching conditions. The isolated forest marks these isolated fluctuations as outliers, removes them, and uses the resulting smooth data to update the next monitoring window, continuing to acquire subsequent real-time optical power sequences.

[0049] Preferably, the switching trigger determination module is further used for: The real-time optical power sequence is resampled over time. The optical power difference between adjacent sampling nodes is calculated within the monitoring window. The decreasing trend is identified based on the optical power difference. The attenuation amplitude is determined according to the positive difference between the optical power baseline and the current real-time optical power. Obtain the duration corresponding to the attenuation amplitude, and form the switching trigger amount based on the attenuation amplitude and the duration. When the switching trigger quantity meets the switching condition, and the real-time optical power is continuously lower than the initial attenuation threshold and maintains a downward trend, the transmission resource switching instruction is output.

[0050] The sampling interval for time-series resampling is determined by the primary OLT optical power reporting cycle and protection switching response requirements (e.g., 0.1s). The switching trigger determination module identifies the direction of change based on the optical power difference between adjacent sampling nodes and determines the attenuation amplitude according to the positive difference between the optical power baseline and the current real-time optical power. The number of sampling nodes that continuously meet the attenuation condition is multiplied by the sampling interval to obtain the duration.

[0051] Specifically, the switching trigger amount can be calculated using the following formula: in, The trigger quantity is dimensionless and is used for switching. The attenuation relative to the current optical power baseline, in units of Its value is determined according to the positive difference between the optical power baseline and the current real-time optical power; The duration for which the attenuation condition is continuously satisfied, in units of ; and Reference values ​​determined based on historical degradation records, optical link design limits, or field calibration (e.g., respectively) and ); and The weights, determined based on historical false trigger records or on-site initialization (e.g., 0.6 and 0.4 respectively, dimensionless), are normalized to a sum of 1. The switching trigger threshold is configured together with the reference value and weights (e.g., 1.0, dimensionless).

[0052] Once the switching trigger threshold is reached, the switching trigger determination module continues to determine whether the real-time optical power remains continuously below the initial attenuation threshold and maintains a downward trend. The number of sampling nodes with consecutively low thresholds is determined by the sampling interval and continuity requirements (e.g., 5 sampling nodes); the downward trend threshold is determined by the historical stable slope distribution and on-site calibration (e.g., ...). Output a transmission resource switching instruction only when all three conditions are met.

[0053] For example, ONU-1 had 10 consecutive sampling nodes below [a certain value] within the updated monitoring window. The current real-time optical power is The corresponding attenuation magnitude is The duration is Substituting into formula (2), we obtain the switching trigger value as follows: Meanwhile, the number of consecutive low-threshold sampling nodes is no less than 5 and the descent slope is less than The switching trigger determination module outputs a transmission resource switching command accordingly.

[0054] Preferably, the business status processing module is further used for: The service context and the communication state are concatenated to obtain an initial feature sequence, and session layer information is extracted from the initial feature sequence. The session layer information is matrix transformed to obtain a standard input matrix. The standard input matrix is ​​then classified using a support vector machine to obtain the initial priority of each service to be switched. Based on the initial priority, high-priority services and their corresponding optical network unit identifiers are determined, and the service priority sequence is formed by sorting according to the initial priority. The service priority sequence is then output to the backup route allocation module.

[0055] The service status processing module obtains the list of affected optical network units in this round based on the transmission resource switching instruction, and reads the service context and communication status corresponding to the service identifier from the primary OLT. The service context and communication status are concatenated to form a first status set, which further forms an initial feature sequence. The session layer information includes the service type, bandwidth usage, session hold status, current port status, and communication status corresponding to the protection switching event in this round, which can be obtained from the primary OLT's operation records.

[0056] Specifically, the session layer information, after numerical encoding and scaling, forms a standard input matrix. Each row of the standard input matrix corresponds to a service to be switched and its optical network unit (ONU) identifier. Both the ONU identifier and the ONU identifier refer to the same identification field used to identify the corresponding ONU. The support vector machine (SVM) forms a classification boundary based on historical valid service records and existing service continuity level labels. The classification confidence score output by the SVM, after being normalized to the 0-1 range, serves as the initial priority for the corresponding service to be switched. The classification confidence score threshold is derived from historical classification results and manual review records (e.g., 0.6, dimensionless). Services below this threshold are marked as services requiring review and are not prioritized for locking. The high-priority service threshold is derived from the existing service continuity level configuration (e.g., 0.75, dimensionless).

[0057] In one optional implementation, the service status processing module obtains the corresponding optical network unit identifier and service identifier from the high-priority service set, forms binding entries through a pre-established matching relationship between the optical network unit identifier, service identifier, and backup resource identifier, and generates a target allocation table provided to the backup routing allocation module based on the binding entries. The matching relationship is only used to maintain the object correspondence between the service priority sequence and the backup physical resources, and does not change the subsequent testing, binding, and locking conditions of the backup optical transmission channel.

[0058] For example, the service status processing module reads the service context and communication status of ONU-1 and ONU-2, forming the same standard input matrix. The support vector machine outputs an initial priority of 0.86 for the service corresponding to ONU-1 and an initial priority of 0.68 for the service corresponding to ONU-2. Based on the aforementioned high-priority service threshold, the service corresponding to ONU-1 is determined to be a high-priority service, and the service priority sequence is output to the backup routing allocation module in the order of ONU-1 first, followed by ONU-2.

[0059] Preferably, the backup route allocation module is further used for: Available physical layer nodes are extracted from the backup OLT according to the service priority sequence, and the available physical layer nodes are combined to form candidate physical transmission paths; The candidate physical transmission path is used to construct a basic optical path and perform optical signal transmission and reception tests. The optical path that passes the test is determined as the candidate backup optical transmission channel. Bind the candidate backup optical transmission channel to the corresponding optical network unit according to the connection port information, perform resource locking on the backup optical transmission channel that has passed the test in sequence according to the service priority sequence, and write the node topology, port correspondence and switching order into the first routing mapping table.

[0060] The backup route allocation module reads available physical layer nodes, port status, and topology connections from existing resource records of the backup OLT according to service priority sequence. When combining the available physical layer nodes, a greedy approach can be used to generate candidate physical transmission paths, prioritizing high-priority services, ensuring sufficient number of available nodes, and minimizing path interruptions. These candidate physical transmission paths all originate from existing resource records of the backup OLT and existing optical transmission topology. The combination is only used to filter and sort existing available paths and does not change the physical connections of the passive optical distribution network.

[0061] Specifically, after the candidate physical transmission path is constructed into a basic optical path, the corresponding port of the backup OLT sends a test optical signal and reads the reception status and test attenuation. The upper limit of test attenuation is derived from the candidate optical path design budget and on-site calibration (e.g., 3dB); when the transmission and reception status is normal and the test attenuation does not exceed the upper limit, the corresponding optical path is determined as a candidate backup optical transmission channel. After binding the channel with the optical network unit according to the connection port information, the backup routing allocation module writes a resource lock status to the backup optical transmission channels that have passed the test and entered the current round of handover process according to the service priority sequence.

[0062] The first routing mapping table records the service identifier, optical network unit identifier, backup OLT identifier, physical layer node, backup optical transmission channel, port correspondence, test results, resource locking status, and handover order. The handover order is determined according to the service priority sequence and the channel test pass order, and does not replace optical signal transmission and reception tests and port binding.

[0063] For example, the backup route allocation module first forms candidate paths P1 and P2 for the high-priority ONU-1 service. P1's test attenuation is 3.6dB, which does not meet the aforementioned test conditions; P2's test attenuation is 2.1dB, which meets the test conditions. Therefore, P2 is bound to the port corresponding to ONU-1 and is preferentially written to the resource lock state. Subsequently, a candidate path P3 is formed for the ONU-2 service. P3's test attenuation is 2.5dB, port binding is completed, and a resource lock state is written when processing the ONU-2 service according to its priority sequence. P2 and P3 are jointly written to the first routing table.

[0064] Preferably, the configuration verification module is further used for: Obtain the optical network unit identifier and service identifier associated with the first routing mapping table, and obtain historical communication records based on the optical network unit identifier and service identifier; Extract message segments, format items, message source, service identifier, and bearer path from the historical communication records to form initial message characteristics; The initial message features are classified to determine standard format features, and the standard format features are combined according to the correspondence between the message source, service identifier and bearer path to generate the second state set.

[0065] The configuration verification module uses the optical network unit identifier and service identifier in the first routing mapping table as search keys to retrieve the most recent valid historical communication record corresponding to the service to be switched in the current round from the primary OLT. The historical communication record includes message segment, format item, message source, service identifier, bearer path, and timestamp; when the record time is not within the valid historical range, the source and service identifier do not correspond, or the fields are missing, the corresponding service item is marked as unverifiable.

[0066] Specifically, the configuration verification module can determine standard format features through field arrangement, field length, and format item combination. In one optional implementation, a random forest can be used to classify the initial message features, with the classification confidence threshold derived from historical valid message classifications and manual review records (e.g., 0.70, dimensionless); initial message features below the threshold are not considered standard format features. Subsequently, the standard format features are combined according to the correspondence between the message source and the bearer path to generate a second state set.

[0067] In one optional implementation, the configuration verification module can also obtain the configuration record corresponding to the service identifier in the backup OLT based on the second state set, and form a configuration matching result indicating the degree of consistency between the packet source, standard format characteristics, and bearer path. When the configuration matching result meets the pre-set matching conditions of the backup OLT, a routing entry corresponding to the compatible service item is generated and written to the configuration verification record. This configuration verification record is used for subsequent queue rejection and route update determination, and is not used as an independent general traceability system.

[0068] For example, the configuration verification module obtains the historical communication records of ONU-1 and ONU-2 based on the first routing mapping table. The initial message characteristics of ONU-1 are determined to be standard format characteristic F1, and combined with the message source end S1 and the historical bearer path H1; the initial message characteristics of ONU-2 are determined to be standard format characteristic F2, and combined with the message source end S2 and the historical bearer path H2. The above two status records constitute the second status set of this round, and continue to enter the backup OLT configuration comparison.

[0069] Preferably, the configuration verification module is further used for: Parse the message source, message format, and service identifier in the second state set, and parse the routing allocation relationship and port compatibility conditions in the initial communication configuration information of the backup OLT; The parsing results are compared item by item to obtain the configuration matching results, and inconsistent business items are extracted when the configuration matching results indicate inconsistencies. The inconsistent service items are excluded from the initial switching queue consisting of services to be switched, and an updated switching queue is generated. The updated route is determined based on the compatible service items in the updated switching queue and their correspondence in the first routing mapping table.

[0070] The configuration verification module aligns the second state set and the initial communication configuration information of the backup OLT with the same service identifier, and sequentially compares the allowable relationship of the message source, the compatibility relationship of the message format, the correspondence relationship of the service identifier, the routing allocation relationship, and the port compatibility condition. If any key field is incomparable or the comparison results are inconsistent, an inconsistent service item is formed and removed from the initial handover queue.

[0071] After the updated queue to be switched is generated, the configuration verification module determines the updated route pointer based on the candidate backup optical transmission channels and switching order in the first routing mapping table for the compatible service items, and uses the updated route pointer as the input of the redirection control module.

[0072] Specifically, when the update queue to be switched is empty, the configuration verification module outputs a state of no compatible services and does not generate service redirection control instructions. After the backup OLT configuration is repaired and a second state set is re-formed, configuration verification can be performed again. After the configuration verification is completed, a final communication configuration state can also be formed, which is used to record the correspondence between the compatible service items, backup optical transmission channels, and updated route pointers in this round.

[0073] For example, the message source S1, standard format feature F1, service identifier, and historical bearer path H1 of ONU-1 are all consistent with the routing allocation relationship and port compatibility conditions corresponding to P2 in the standby OLT. Therefore, ONU-1 is retained in the update handover queue. The message format and service identifier of ONU-2 meet the conditions, but the port compatibility conditions corresponding to P3 are not met. Therefore, ONU-2 is identified as an inconsistent service item and excluded from the initial handover queue. The updated route points only to P2 corresponding to ONU-1.

[0074] Preferably, the redirection control module is further configured to: Based on the updated route pointer, resolve the backup OLT identifier and optical network unit identifier, and establish a logical link between the backup OLT and the corresponding optical network unit; Query the backup optical transmission channel corresponding to the logical link from the first routing mapping table, and verify the node address, port binding status and resource locking status of the backup optical transmission channel; The physical carrying capacity of the backup optical transmission channel is compared with the bandwidth occupancy of the corresponding service. When each verification result meets the service transmission conditions, the service redirection control command is sent. When any verification result does not meet the conditions, the handover blocking result is output.

[0075] Specifically, the redirection control module resolves the backup OLT identifier, optical network unit identifier, and service identifier based on the updated route direction, and establishes a logical association between the identifiers and the backup optical transmission channel in the first routing mapping table. Node address verification is performed based on the first routing mapping table and the current node record of the backup OLT. Port binding status and resource lock status are determined by reading the aforementioned channel binding record and resource lock record, respectively.

[0076] In one alternative implementation, the channel binding value can be determined based on the proportion of consistent items between the underlying logical chain and the nodes, ports, and service identifiers of the backup optical transmission channel. The channel binding threshold is derived from historical valid binding records and on-site configuration (e.g., 0.80, dimensionless); when the channel binding value reaches the threshold, it is only used to assist in confirming the port binding status; if it does not reach the threshold, it is still treated as a port binding failure.

[0077] Specifically, the combined gating of node address, port binding, resource locking, and physical capacity can be determined by the following formula: in, For the combined gating result; , and These represent the results of port binding, resource locking, and node address verification, respectively. The value is 1 if the corresponding condition is met, and 0 otherwise. This indicates the physical bearer capacity condition, where the physical bearer capacity is the available physical bearer capacity after deducting the existing service usage. The value is 1 when the physical bearer capacity is not less than the product of the service bandwidth usage and a capacity margin coefficient; otherwise, it is 0. The capacity margin coefficient is derived from network design margins or operation and maintenance configurations (e.g., 0.1, dimensionless). A service redirection control command is sent only when the joint gating result is 1; a handover blocking result is output when the joint gating result is 0.

[0078] Service redirection control commands can be generated based on the source and destination ends in the target data flow. After the command is sent, the redirection control module obtains the command arrival status, connection establishment status, and confirmation information from the optical network unit. When all three statuses are consistent and the target route used by the current service channel is consistent with the updated route, a route switching state is formed; otherwise, a switching blocking state is formed.

[0079] For example, the node address, port binding, and resource locking of ONU-1 corresponding to P2 all meet the conditions, and the three corresponding check values ​​are all 1. The physical bearer capacity of P2 is 110 Mbit / s, and the service bandwidth occupancy of ONU-1 is 80 Mbit / s. After adopting a capacity margin coefficient of 10%, the required bearer capacity is 88 Mbit / s, which is lower than the physical bearer capacity of P2. Therefore, the capacity condition is 1. Substituting into formula (3), the joint gating result is 1. Based on this, the redirection control module sends a service redirection control instruction to ONU-1 and hands over the instruction arrival status, connection establishment status, and feedback confirmation information to the subsequent recovery judgment.

[0080] More preferably, the redirection control module is further used for: After sending the service redirection control command, the feedback information of the optical network unit is obtained, and the communication status and optical power are extracted from the feedback information; Hidden Markov Model is used to perform sequence state decoding on the optical power to obtain the first recovered value, and the communication continuity is determined according to the data packet arrival interval of the corresponding transport stream within a preset time period. The first recovery value, the communication continuity, and the mapping value between the current routing table and the standard routing path are classified and processed to obtain a recovery determination result. When the recovery determination result meets the recovery conditions, a control flow is sent to the optical network unit to complete the service status recovery.

[0081] The feedback information corresponds to the current round of service redirection through protection switching event identifiers, service identifiers, optical network unit identifiers, and updated route identifiers. The communication status is used to verify whether the feedback link is in a valid communication state; if the communication status is abnormal, the corresponding feedback information will not be included in the recovery determination. The recovery determination time range is determined by the feedback collection cycle and service continuity requirements (e.g., 1 second); if there is identifier mismatch, feedback timeout, or insufficient number of valid data packets, the feedback information will not be included in the recovery determination.

[0082] Specifically, the hidden states of the Hidden Markov Model include stable states, transitional states, and unstable states, and the observations are valid feedback optical power sequences. The initial state probabilities, state transition relationships, and observation relationships of the model are determined by historical stable records and confirmed recovery records of the same GPON optical link. The first recovery value can be represented by the posterior probability of the stable state. Communication continuity is determined based on the packet arrival interval, and the allowable packet arrival interval deviation comes from historical stable transmission records and service continuity configuration (e.g., 20ms). The standard routing path is the target backup optical transmission path corresponding to the route updated in this round in the first routing mapping table. When the current routing table completely corresponds to the standard routing path, the mapping value is 1; otherwise, it is 0.

[0083] In one alternative implementation, the first recovered value, communication continuity, and mapping value can be combined to form a recovered feature vector, which is then classified using a support vector machine. In another alternative implementation, the recovered composite value can be formed using the following formula: in, To restore the composite value, dimensionless; The first recovery value output by the Hidden Markov Model is dimensionless. The proportion of data packet arrival intervals that meet the allowable deviation is dimensionless. This is the mapping value between the current routing table and the standard routing path, and it is dimensionless. , and The sum of the three normalized weights, determined based on historical successful recovery records, failed recovery records, or on-site calibration (e.g., 0.4, 0.3, and 0.3 respectively, dimensionless), is 1. The recovery condition threshold is derived from historical successful and failed recovery records or on-site calibration (e.g., 0.80, dimensionless). When the overall recovery value reaches the threshold and the corresponding feedback identifier matches, a control flow is sent to the optical network unit to remove the unconfirmed recovery status and confirm that the corresponding service has entered the recovery completed status, thus completing the service status recovery.

[0084] For example, ONU-1 obtains a first recovery value of 0.90 within the aforementioned recovery determination time range, the proportion of data packet arrival intervals meeting the allowable deviation is 0.85, the current routing table is consistent with the P2 standard routing path, and the corresponding mapping value is 1.00. Using the aforementioned weights, substituting them into formula (4) yields a comprehensive recovery value of 0.915, which is higher than the recovery condition threshold of 0.80. The redirection control module sends a control flow to ONU-1 and completes the service state recovery.

[0085] During the above operation, when there are insufficient historical stable samples, conflicting optical power object identifiers, or the fluctuation range cannot be effectively determined, the link quality baseline generation module outputs a baseline not ready state and does not enter the handover trigger judgment; when the proportion of missing data in the monitoring window exceeds the allowable range or the proportion of abnormal points in the non-triggered data exceeds the allowable range, the handover trigger judgment module marks the current monitoring window as invalid and does not accumulate the duration.

[0086] When the transmit / receive test of a candidate backup optical transmission channel fails or the test attenuation does not meet the test conditions, the backup route allocation module continues to search for the next path in the same candidate set; if all candidates fail, a resource shortage status is output. When historical communication records are missing, the message source and bearer path do not correspond, or the backup OLT configuration is incomparable or inconsistent, the configuration verification module excludes the corresponding service item; when the update queue to be switched is empty, no service redirection control command is sent in this round.

[0087] When any of the node address, port binding, resource locking, or physical bearer capacity fails to meet the service transmission conditions, the redirection control module outputs a switching blocking result, without adding any control actions such as automatic reverting to the primary OLT, maintaining the original transmission path after releasing resource locking, or switching to a third path. If a service redirection control command has been sent, but feedback information is missing, the feedback optical power is still in a transitional or unstable state, communication continuity is uncertain, or the current route is inconsistent with the standard route path, the system maintains the recovery unconfirmed and continues to obtain subsequent feedback, without issuing a control flow indicating completion of service status recovery.

[0088] The system outputs may include an updated monitoring window, transmission resource switching instructions, service priority sequences, a first routing mapping table, a second state set, configuration matching results, an updated queue to be switched, updated route pointers, service redirection control instructions, switching blocking results, recovery determination results, and service state recovery control flow. Each output is associated with the current protection switching event and the corresponding service, and no general analysis results unrelated to the backup optical transmission channel protection switching are output.

[0089] Accordingly, this invention establishes optical power baselines, fluctuation ranges, and initial attenuation thresholds corresponding to the primary OLT port and optical network unit through a link quality baseline generation module. A handover trigger determination module outputs transmission resource handover instructions based on attenuation magnitude, duration, continuous low threshold states, and downward trends. A service status processing module forms a service priority sequence, and a backup route allocation module performs optical signal transmission and reception tests, port binding, and high-priority resource locking on candidate backup optical transmission channels. Based on this, a configuration verification module forms a second state set based on historical message sources, message formats, service identifiers, and bearer paths, and compares it item by item with the routing allocation relationship and port compatibility conditions of the backup OLT, eliminating inconsistent service items and determining the updated route direction. Furthermore, a redirection control module executes service redirection when node address, port binding, resource locking, and physical bearer capacity all meet the conditions, and combines feedback optical power, communication continuity, and route mapping to complete service status recovery, thus forming a continuous closed loop from optical link degradation identification to backup service recovery.

[0090] The above description is merely a preferred embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. All modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A GPON secure transmission system for a distribution network scenario, characterized in that, include: The link quality baseline generation module is used to obtain the stable optical power of the GPON optical link from the primary OLT to the optical network unit, determine the optical power baseline and fluctuation range, and generate the initial attenuation threshold according to the real-time deviation. The switching trigger determination module is used to obtain the real-time optical power sequence of the optical link, form a switching trigger quantity based on the attenuation amplitude and duration, and output a transmission resource switching command when the conditions are met. The service status processing module is used to respond to the transmission resource switching command, extract the service context and communication status of the affected optical network unit, and form a service priority sequence; The backup route allocation module is used to select backup OLT physical layer nodes according to the service priority sequence, perform transmit and receive tests on candidate backup optical transmission channels and bind ports, lock channels sequentially according to the sequence, and generate the first route mapping table. The configuration verification module is used to determine the service to be switched based on the first routing mapping table before sending the service redirection control instruction. It extracts the message source, message format and service identifier from the historical communication records, compares them item by item with the routing allocation relationship and port compatibility conditions of the backup OLT, eliminates inconsistent service items and determines the updated route direction. The redirection control module is used to establish a connection between the backup OLT and the optical network unit according to the updated route direction. When the port binding, resource locking, node address and physical bearer capacity of the channel meet the service transmission conditions, the module sends the service redirection control command; otherwise, it outputs the handover blocking result.

2. The system according to claim 1, characterized in that, The link quality baseline generation module is further used for: The first optical power of the GPON optical link during a historical stable period is obtained, and the first optical power is smoothed to obtain the second optical power; Extract the optical power baseline and fluctuation range of the second optical power, obtain the real-time optical power of the GPON optical link, and calculate the deviation of the real-time optical power relative to the optical power baseline and the fluctuation range; When the deviation is greater than the deviation threshold, anomaly detection is performed on the deviation to obtain an anomaly score, and the initial decay threshold is generated based on the anomaly score.

3. The system according to claim 2, characterized in that, The switching trigger determination module is further used for: When the switching trigger value does not meet the switching conditions, the corresponding untriggered data is extracted from the real-time optical power sequence; Anomaly detection is performed on the untriggered data using the isolated forest algorithm to obtain anomaly detection results. Based on the anomaly detection results, outliers in the untriggered data are removed to obtain smoothed data. The monitoring window is updated based on the smoothed data, and the subsequent real-time optical power sequence is obtained using the updated monitoring window.

4. The system according to claim 1, characterized in that, The switching trigger determination module is further used for: The real-time optical power sequence is resampled over time. The optical power difference between adjacent sampling nodes is calculated within the monitoring window. The decreasing trend is identified based on the optical power difference. The attenuation amplitude is determined according to the positive difference between the optical power baseline and the current real-time optical power. Obtain the duration corresponding to the attenuation amplitude, and form the switching trigger amount based on the attenuation amplitude and the duration. When the switching trigger quantity meets the switching conditions, and the real-time optical power is continuously lower than the initial attenuation threshold and maintains a downward trend, the transmission resource switching command is output.

5. The system according to claim 1, characterized in that, The business status processing module is further used for: The service context and the communication state are concatenated to obtain an initial feature sequence, and session layer information is extracted from the initial feature sequence. The session layer information is matrix transformed to obtain a standard input matrix. The standard input matrix is ​​then classified using a support vector machine to obtain the initial priority of each service to be switched. Based on the initial priority, high-priority services and their corresponding optical network unit identifiers are determined, and the service priority sequence is formed by sorting according to the initial priority. The service priority sequence is then output to the backup route allocation module.

6. The system according to claim 1, characterized in that, The backup route allocation module is further used for: Available physical layer nodes are extracted from the backup OLT according to the service priority sequence, and the available physical layer nodes are combined to form candidate physical transmission paths; The candidate physical transmission path is used to construct a basic optical path and perform optical signal transmission and reception tests. The optical path that passes the test is determined as the candidate backup optical transmission channel. Bind the candidate backup optical transmission channel to the corresponding optical network unit according to the connection port information, perform resource locking on the backup optical transmission channel that has passed the test in sequence according to the service priority sequence, and write the node topology, port correspondence and switching order into the first routing mapping table.

7. The system according to claim 6, characterized in that, The configuration verification module is further used for: Obtain the optical network unit identifier and service identifier associated with the first routing mapping table, and obtain historical communication records based on the optical network unit identifier and service identifier; Extract message segments, format items, message source, service identifier, and bearer path from the historical communication records to form initial message characteristics; The initial message features are classified to determine standard format features, and the standard format features are combined according to the correspondence between the message source, service identifier and bearer path to generate a second state set.

8. The system according to claim 7, characterized in that, The configuration verification module is further used for: Parse the message source, message format, and service identifier in the second state set, and parse the routing allocation relationship and port compatibility conditions in the initial communication configuration information of the backup OLT; The parsing results are compared item by item to obtain the configuration matching results, and inconsistent business items are extracted when the configuration matching results indicate inconsistencies. The inconsistent service items are excluded from the initial switching queue consisting of services to be switched, and an updated switching queue is generated. The updated route is determined based on the compatible service items in the updated switching queue and their correspondence in the first routing mapping table.

9. The system according to claim 8, characterized in that, The redirection control module is further used for: Based on the updated route pointer, resolve the backup OLT identifier and optical network unit identifier, and establish a logical link between the backup OLT and the corresponding optical network unit; Query the backup optical transmission channel corresponding to the logical link from the first routing mapping table, and verify the node address, port binding status and resource locking status of the backup optical transmission channel; The physical carrying capacity of the backup optical transmission channel is compared with the bandwidth occupancy of the corresponding service. When each verification result meets the service transmission conditions, the service redirection control command is sent. When any verification result does not meet the conditions, the handover blocking result is output.

10. The system according to claim 9, characterized in that, The redirection control module is further used for: After sending the service redirection control command, the feedback information of the optical network unit is obtained, and the communication status and optical power are extracted from the feedback information; Hidden Markov Model is used to perform sequence state decoding on the optical power to obtain the first recovered value, and the communication continuity is determined according to the data packet arrival interval of the corresponding transport stream within a preset time period. The first recovery value, the communication continuity, and the mapping value between the current routing table and the standard routing path are classified and processed to obtain a recovery determination result. When the recovery determination result meets the recovery conditions, a control flow is sent to the optical network unit to complete the service status recovery.