Dynamic optical path protection method and system based on optical fiber plug-in

By monitoring the status of fiber optic plugs in real time and automatically selecting backup paths, and dynamically adjusting data stream transmission, the problems of slow response and low switching efficiency in fiber optic communication systems during faults are solved. This enables rapid fault warning and automatic recovery, improving network reliability and service quality.

CN120979543APending Publication Date: 2025-11-18SHENZHEN YILEI IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511461542.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-14
Publication Date
2025-11-18

AI Technical Summary

Technical Problem

In the face of equipment failure or signal interruption, existing fiber optic communication systems have slow response speed, low switching efficiency, and are difficult to adapt to complex network environments and dynamic needs. They also lack automated fault warning and path recovery mechanisms.

Method used

By acquiring real-time records of changes in the status of fiber optic connectors, and utilizing a distributed sensor network for data acquisition and analysis, we can achieve rapid fault warning and automatic backup path selection, dynamically adjust the data stream transmission direction, and ensure network stability through real-time monitoring and secondary path switching optimization.

Benefits of technology

It enables rapid early warning, precise location, and automatic recovery of fiber optic network faults, improving network reliability and service quality, and ensuring the stability and efficiency of the communication system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120979543A_ABST
    Figure CN120979543A_ABST
Patent Text Reader

Abstract

The invention discloses a dynamic optical path protection method and system based on an optical fiber plug-in, and the method comprises the steps: automatically analyzing fault features and determining fault feature description when an abnormality is detected, then calculating a backup path meeting a transmission requirement through combining with a current network topology structure, evaluating the switching time delay and bandwidth occupation condition of the backup path, and carrying out the detection of the backup path. And selecting a first backup path from the backup paths for switching. And continuously monitoring the network operation state after switching, if detecting that the performance does not reach the expectation, triggering a secondary path switching request, and recalculating and switching to an optimized switching path. According to the method and the system, rapid early warning, accurate positioning and automatic recovery of the optical fiber network fault are realized, and the reliability and the service quality of the network are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of optical fiber communication, in particular to a dynamic optical path protection method and system based on an optical fiber plug-in. BACKGROUND

[0002] As the core pillar of modern network transmission, optical fiber communication plays an irreplaceable important role in ensuring high-speed and stable data transmission, and its technological progress is directly related to the reliability and efficiency of communication networks. However, the current optical fiber communication system generally has the problems of slow response speed and low switching efficiency when facing equipment failure or signal interruption. Many solutions often rely on manual intervention or simple preset mechanisms, which are difficult to adapt to complex network environments and dynamic needs, and expose obvious deficiencies in real-time and automation. SUMMARY

[0003] In order to solve the above technical problems, the present application provides a dynamic optical path protection method and system based on an optical fiber plug-in, which realizes rapid early warning, accurate positioning and automatic recovery of optical fiber network failure.

[0004] The present application provides a dynamic optical path protection method based on an optical fiber plug-in, comprising: Obtain the real-time change record of the optical fiber plug-in state, and detect the real-time change record. If it is detected that the real-time parameter data exceeds the preset threshold, it is determined that there is a risk of equipment failure, and a failure warning signal is output. The real-time parameter data includes optical signal intensity and loss value data; Obtain the failure feature description according to the failure warning signal, and obtain the available backup path resources in the current network topology structure according to the failure feature description, to obtain a backup path allocation scheme; Obtain the switching delay and bandwidth occupation state of the candidate backup path in the backup path allocation scheme, determine the backup path whose switching delay and bandwidth occupation state meet the transmission demand as the first backup path, and output the path switching instruction; In response to the path switching instruction, send the path switching instruction to the routing device corresponding to the first backup path and dynamically adjust the data flow transmission direction to obtain the network operation data after path switching; Real-time monitor the network operation data after switching. If it is detected that the transmission delay exceeds the preset delay threshold and / or the number of unstable optical signal intensities exceeds the preset threshold, it is determined that the switching effect is not as expected, and a secondary path switching request is triggered; In response to the secondary path switching request, determine the optimized switching path from the backup path allocation scheme, and send a secondary switching instruction; In response to the secondary switching instruction, obtain the configuration result of the secondary switching path, and perform secondary path switching according to the configuration result.

[0005] In some embodiments, the real-time change record of the optical fiber plug-in state is obtained, including: Real-time data acquisition is performed on the optical fiber connection point by a distributed sensor network to obtain raw data, and the raw data is classified and arranged according to a preset data storage structure to obtain a structured initial state set, wherein the raw data includes optical signal intensity, loss value and fluctuation frequency parameter; The optical signal intensity and loss value in the initial state set are compared and analyzed, and if it is detected that the signal fluctuation range exceeds a preset threshold, the fluctuation frequency parameter corresponding to the optical signal intensity and loss value is recorded to determine the dynamic change characteristic in the abnormal state, wherein the signal fluctuation range refers to the change range of the optical signal intensity or loss value at different times obtained by a signal processing tool; The fluctuation frequency parameter and the dynamic change characteristic are continuously tracked, and the real-time change record of the optical fiber plug-in is obtained in combination with the real-time collected optical signal intensity and loss value.

[0006] In some embodiments, the real-time change record is detected, and if it is detected that the real-time parameter data exceeds a preset threshold, it is determined that there is a device failure risk, and a failure warning signal is output, including: The optical signal intensity and loss value in a target time period are extracted from the real-time change record, and each frame of data in the target time period is checked, and if the optical signal intensity of the frame is lower than a preset intensity threshold and / or the loss value exceeds a safety range standard, the frame is marked as an abnormal frame to obtain an abnormal frame set; The signal acquisition frequency and optical signal intensity change trend of each frame in the abnormal frame set are obtained, and the signal acquisition frequency and optical signal intensity change trend are continuously checked, and if a plurality of consecutive frames are marked as abnormal, it is determined that there is a failure risk, and a preliminary risk identification is output; According to the preliminary risk identification, the loss value in the abnormal frame set is checked again to obtain a fluctuation amplitude, and if the fluctuation amplitude exceeds the safety range standard, it is determined that there is a device failure risk, and a failure warning signal is generated.

[0007] In some embodiments, the backup path resource available in the current network topology structure is obtained according to the failure feature description to obtain a backup path allocation scheme, including: The current network topology structure is obtained, and the available path resource data in a target region is obtained from the network topology data according to the failure feature and the influence range in the failure feature description, and a topology analysis tool is used to perform hierarchical processing on the available path resource data to obtain a backup path distribution record; The backup path distribution records are compared one by one, and backup path distribution records meeting the transmission requirements are determined as a candidate backup path set; Through the candidate backup path set, path selection data matched with the transmission requirements are obtained, and the backup paths are sorted to obtain a path priority sorting list; According to the path priority sorting list, load checking is performed on the backup paths to obtain a final backup path allocation scheme.

[0008] In some embodiments, the switching delay and bandwidth occupation state of the candidate backup path in the backup path allocation scheme are obtained, the backup path whose switching delay and bandwidth occupation state meet the transmission requirements is determined as a first backup path, and the method comprises the following steps: The switching delay of the candidate backup path is measured one by one to obtain a time delay data set of the candidate backup path; According to the time delay data set and a preset response threshold, the switching delay of the candidate backup path is screened, the candidate backup path whose switching delay is lower than the preset response threshold is marked as a candidate backup path meeting the requirements, and a preliminary screening path set is determined; For the preliminary screening path set, the resource occupation state of the candidate backup path is detected to obtain the bandwidth usage state of the candidate backup path under the current network load, and a path subset meeting the bandwidth requirements is obtained; According to the requirements of path recombination and switching instructions, the paths in the path subset are compared to determine the first backup path.

[0009] In some embodiments, the path switching instruction is sent to the routing device corresponding to the first backup path, and the data stream transmission direction is dynamically adjusted to obtain network operation data after path switching, which comprises the following steps: According to the path switching instruction, the port configuration information corresponding to the first backup path is obtained from the backup path allocation scheme, the configuration information is analyzed by using a port mapping tool to obtain port allocation data of the first backup path on each routing device; According to the port allocation data, the path switching instruction is sent to the routing device corresponding to the first backup path, and a flow scheduling tool is used to dynamically adjust the data stream direction to determine the transmission direction of the data stream after switching; When the transmission direction adjustment is completed, if it is detected that the data stream direction is inconsistent with the first backup path, a signal recombination tool is used to rearrange the data stream to obtain recombined signal stream data; According to the recombined signal stream data, the network operation state is collected in real time, and when the operation state is consistent with the first backup path, the network operation data after path switching is obtained.

[0010] In some embodiments, the determining the optimized switching path from the backup path allocation scheme in response to the secondary path switching request comprises: extracting second backup path information from the backup path allocation scheme, and obtaining resource occupation of the second backup path according to a state of the second backup path under the current network environment; analyzing a transmission bottleneck of the second backup path, determining a bottleneck node as a path node whose resource occupation exceeds a preset threshold, and evaluating a traffic distribution of the bottleneck node to determine an influence range of the bottleneck node; dynamically adjusting the path allocation scheme according to the influence range of the bottleneck node to obtain an adjusted traffic distribution scheme; verifying the second backup path according to the adjusted traffic distribution scheme, matching the second backup path with the current network environment to obtain the optimized switching path.

[0011] In some embodiments, the application also provides a dynamic optical path protection system based on a fiber plug-in, comprising: a fault early warning module configured to obtain real-time change records of a state of a fiber plug-in, detect the real-time change records, determine that there is a device fault risk if it is detected that real-time parameter data exceeds a preset threshold, and output a fault early warning signal, wherein the real-time parameter data includes optical signal intensity and loss value data; a backup path allocation module configured to obtain a fault feature description according to the fault early warning signal, obtain available backup path resources in a current network topology structure according to the fault feature description, and obtain a backup path allocation scheme; a switching path determination module configured to obtain switching delay and bandwidth occupation state of candidate backup paths in the backup path allocation scheme, determine a first backup path as a backup path whose switching delay and bandwidth occupation state meet transmission requirements, and output a path switching instruction; a switching module configured to respond to the path switching instruction, send a path switching instruction to a routing device corresponding to the first backup path, and dynamically adjust a data flow transmission direction to obtain network operation data after path switching; a monitoring module configured to monitor the network operation data after switching in real time, determine that a switching effect is not as expected if it is detected that transmission delay exceeds a preset delay threshold and / or the number of times that optical signal intensity is unstable exceeds a preset threshold, and trigger a secondary path switching request; the switching path determination module is further configured to determine an optimized switching path from the backup path allocation scheme in response to the secondary path switching request, and send a secondary switching instruction; The switching module is further configured to, in response to a secondary switching instruction, acquire a configuration result of a secondary switching path, and perform secondary path switching according to the configuration result.

[0012] In some embodiments, the present application also provides an electronic device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the optical fiber plug-based dynamic optical path protection method according to any one of the preceding embodiments when executing the computer program.

[0013] In some embodiments, the present application also provides a computer-readable storage medium comprising a stored computer program, wherein the computer-readable storage medium controls a device in which the computer-readable storage medium is located to perform the optical fiber plug-based dynamic optical path protection method according to any one of the preceding embodiments when the computer program is executed.

[0014] The optical fiber plug-based dynamic optical path protection method and system disclosed in the present application continuously monitor the network running state, and trigger secondary path optimization if the performance is not expected, and re-calculate and switch to a new target switching path. Not only does it achieve rapid warning, accurate positioning and automatic recovery of optical fiber network faults, but also effectively improves the reliability and service quality of the network. BRIEF DESCRIPTION OF DRAWINGS

[0015] Figure 1is a flow chart of a dynamic optical path protection method based on an optical fiber plug provided in a first embodiment of the present application. Figure 2 is a structural schematic diagram of a dynamic optical path protection system based on an optical fiber plug provided in a second embodiment of the present application. DETAILED DESCRIPTION

[0016] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0017] The main challenge faced by the optical fiber communication system in the face of equipment failure or signal interruption is concentrated on how to realize real-time monitoring of the state of the optical fiber plug and intelligent switching of the backup path. First, since the state change of the optical fiber plug has high dynamics, the traditional monitoring means often lags behind, which cannot capture the fault signal in time, resulting in an increased risk of signal interruption. This problem further derives the complex demand of how to select the backup path, because in the event of failure, it is difficult to meet the performance requirements in different network scenarios by relying on a single backup mode, and the backup strategy must be flexibly adjusted according to the specific characteristics. If this adjustment mechanism is not flexible enough, it may lead to low efficiency of signal path reorganization, and even cause new transmission problems. Therefore, how to realize real-time monitoring of the state of the optical fiber plug in a dynamic network environment, and select a backup mode according to the fault characteristics, and quickly complete the reorganization and switching of the signal path, has become a key problem to improve the reliability and stability of the communication system.

[0018] In order to solve the above problems, with reference to Figure 1 The embodiments of the present application provide a dynamic optical path protection method based on an optical fiber plug, comprising the following steps: Step 101, acquiring real-time change records of the state of the optical fiber plug, and detecting the real-time change records, if the real-time parameter data exceeds the preset threshold, it is determined that there is a risk of equipment failure, and a fault warning signal is output.

[0019] In some embodiments, two optical fiber plugs with cylindrical end faces are usually arranged at the connection point of the optical fiber line in the optical fiber communication network, the optical fiber plug is internally provided with an optical fiber, and a gel is arranged between the optical fiber plug and the optical fiber.

[0020] By deploying a distributed sensor network, high-frequency data collection is performed on the optical fiber connection points to obtain key parameters such as optical signal intensity, loss value, and fluctuation frequency, an initial state data set is constructed, and data processing is performed on the initial state data set to obtain real-time change records of the optical fiber connector state. Specifically, by deploying a distributed sensor network, high-frequency real-time data collection is performed on the optical fiber connection points to obtain raw data of optical signal intensity, loss value data, and fluctuation frequency parameters, and the raw data is classified and arranged according to a preset data storage structure to obtain a structured initial state set. The signal processing tool is used to compare and analyze the optical signal intensity and loss value in the initial state set, and if the signal fluctuation range exceeds the preset threshold, the fluctuation frequency parameter corresponding to the optical signal intensity and loss value is recorded, and the dynamic change characteristic in the abnormal state is determined, wherein the signal fluctuation range refers to the change range of the optical signal intensity or loss value at different times obtained by the signal processing tool. The time series analysis tool, such as the python tool, is used to continuously track the fluctuation frequency parameter and the dynamic change characteristic, and the real-time change records of the optical fiber connector are obtained by combining the real-time collected optical signal intensity and loss value data.

[0021] For example, in a long-distance optical fiber communication network, a plurality of sensors are deployed in a distributed manner to collect high-frequency data on the optical fiber connection points, and a sensor monitoring point is set every 100 meters to collect real-time optical signal intensity and loss value data. Assuming that the initial signal intensity of a certain optical fiber connection point is -5dBm, the loss value is 0.2dB, and the fluctuation frequency parameter is recorded as 10 times of slight fluctuation per second through high-frequency sampling. These raw data are classified and arranged according to a preset data storage structure to form an initial state set.

[0022] In a possible implementation, for the comparison and analysis of optical signal intensity and loss value, the signal processing tool can be used to perform time domain and frequency domain analysis on the collected data. For example, when the signal intensity of a certain optical fiber connection point suddenly decreases to -8dBm and the loss value increases to 0.5dB, exceeding the preset threshold range (intensity decrease exceeding 2dBm or loss increase exceeding 0.3dB), the corresponding fluctuation frequency parameter is recorded, and it is assumed that the frequency increases to 20 times per second at this time, indicating that there may be a connection point loosening or contamination problem. In this way, the dynamic change characteristic in the abnormal state can be determined to provide a basis for subsequent tracking. For example, when continuously tracking the dynamic change characteristic, the change record is updated in combination with the real-time collected data. Assuming that the signal intensity of a certain optical fiber connection point continuously decreases to -9dBm within 24 hours, and the loss value increases to 0.6dB, the deterioration trend is obvious after comparison with the initial state set. Such real-time comparison helps to timely discover potential problems of the optical fiber connector state, avoid communication interruption, and improve maintenance efficiency.

[0023] In a possible implementation, the monitoring data of the fiber connection point can be integrated, and a time series analysis tool can be used to track the fluctuation frequency parameter for a long time. For example, the fluctuation frequency of a fiber connection point in 30 days is recorded, and it is found that the frequency gradually increases from 10 times per second to 25 times per second, and there are periodic peaks, which may be related to environmental temperature changes or mechanical vibration. Such long-term tracking can reveal the potential change rule of the fiber connector state, provide a comprehensive basis for predictive maintenance, and reduce the risk of failure. In addition, the above method can also be extended to analyze in combination with environmental data. It is assumed that the fluctuation frequency peaks are found to occur mostly during the noon period during the monitoring process, which may be related to thermal expansion of the connection point caused by high temperature. By integrating temperature data and signal data, the cause of state deterioration can be more accurately judged, thereby optimizing the maintenance strategy. Such multi-dimensional analysis significantly improves the reliability of monitoring.

[0024] Further, in some embodiments, a pre-established signal anomaly detection model is used to detect real-time changes. The real-time parameter data of the fiber connector in the target time period, i.e., the optical signal intensity and the loss value, are obtained from the real-time change record of the fiber connector obtained from the above embodiments. The data of each frame in the target time period is checked. If the optical signal intensity of the frame data is lower than the preset intensity threshold and / or the loss value exceeds the safety range standard, the frame is marked as an abnormal frame, and an abnormal frame set is obtained. The signal acquisition frequency and the optical signal intensity change trend of each frame in the abnormal frame set are obtained. A time series processing tool is used to continuously check the signal acquisition frequency and the optical signal intensity change trend. If multiple consecutive frames are marked as abnormal, it is determined that there is a risk of failure, and a preliminary risk identification is output. According to the preliminary risk identification, the loss value in the abnormal frame set is checked again, the fluctuation amplitude is obtained, and if the fluctuation amplitude exceeds the safety range standard, it is determined that there is a high-risk state, i.e., there is a risk of equipment failure, and a failure warning signal is generated. According to the failure warning signal, a data recording tool is used to store the data in the high-risk state into the real-time change record, and the content of the output failure warning signal is determined.

[0025] In a possible implementation, when processing the real-time change record of the fiber optic plug-in, the signal characteristic values in a target time period can be extracted from the optical signal intensity and loss values by setting different time period windows, such as every hour or every day, to flexibly adjust the monitoring granularity. Different time series analysis models can be introduced to check the continuity of the abnormal frames to adapt to different scene requirements. For example, the target time period is from 8:00 to 10:00 of a day, and data is collected every minute to obtain 120 groups of signal characteristic values. Each frame of data is checked one by one by the data comparison logic, and the preset intensity threshold of the optical signal intensity is set to -7 dBm, and the safety range criterion of the loss value is set to 0.3 dB or lower. If the optical signal intensity of a frame is -8 dBm and the loss value is 0.4 dB, both of which exceed the safety range criterion, the frame is marked as an abnormal frame, and finally a set of abnormal frames is obtained.

[0026] In a possible implementation, the signal collection frequency and optical signal intensity change trend of each frame can be obtained to facilitate the continuity check of the abnormal frames. For example, the collection frequencies of 5 consecutive frames in a set of abnormal frames are all 15 times per second, and the optical signal intensity gradually decreases from -7.5 dBm to -9 dBm, showing a clear downward trend. The continuity check is performed by using a time series processing tool, and if multiple consecutive frames are all marked as abnormal, it is determined that there is a device failure risk, and a preliminary risk identification is output. On the basis of the preliminary risk identification, the loss values in the set of abnormal frames are checked again, and the fluctuation amplitude is focused on. Assuming that the loss value in a set of abnormal frames fluctuates from 0.3 dB to 0.6 dB in a short time, which exceeds the upper limit of the safety range criterion of 0.4 dB, it is determined to be in a high-risk state, and a failure warning signal is generated. This secondary check mechanism can more accurately identify serious abnormal conditions and avoid misjudgment.

[0027] Further, for subsequent processing of the failure warning signal, the data in the high-risk state can be stored in the real-time change record by using a data recording tool. For example, the optical signal intensity of a fiber optic connection point in the high-risk state is -9.5 dBm, and the loss value is 0.7 dB. These data are recorded together with the time stamp, and combined with historical data analysis, the content of the final output failure warning signal is determined, such as “there is a serious signal attenuation risk in the fiber optic connection point, and immediate inspection is recommended”. This recording method provides detailed basis for subsequent maintenance.

[0028] Step 102 obtains a failure characteristic description according to the failure warning signal, and obtains available backup path resources in a current network topology according to the failure characteristic description, to obtain a backup path allocation scheme.

[0029] In response to the fault warning signal, the fault parameters in the target time period are obtained from the real-time change record, including the fault time point and the influence range and other fault data. A data filtering tool such as Talend is used to classify and process the fault data to obtain a preliminary fault distribution record. For the preliminary fault distribution record, the relevant information of signal interruption is obtained, and in combination with the preset threshold range, a data comparison tool such as reladiff is used for one-by-one checking. If the signal interruption information exceeds the preset threshold range, it is determined as a high-risk state, and the risk level data is determined. In combination with the historical data record, a pattern matching tool such as multimatch is used to classify and compare the fault types to obtain fault type information matched with the fault time point and the influence range. According to the fault type information, data related to the severity is obtained, and a time series processing tool such as python is used to check the fluctuation of the fault data, and in combination with the influence range and the signal interruption information, the fault feature description is obtained.

[0030] In a possible implementation, the processing of the fault warning signal can extract key data in the target time period from the real-time record. For example, the target time period is from 9:00 to 11:00 on a certain day, and the fault data is recorded every 5 minutes, and the obtained fault data includes the fault time point and the influence range. A data filtering tool is used to classify these data in chronological order and by influence area to form a preliminary fault distribution record. For example, a signal anomaly occurs in a certain area at 9:15, affecting 3 fiber connection points, and at 9:30, another area also has a similar problem, affecting 2 connection points. These information will be classified and archived for subsequent analysis.

[0031] Further, in obtaining the relevant information of signal interruption for the preliminary fault distribution record, attention can be paid to the interruption duration and frequency. Assuming that the preset threshold range is that the interruption time does not exceed 2 minutes and the frequency does not exceed 3 times per hour. If a certain area has an interruption time of 3 minutes and a frequency of 5 times per hour in the target time period, which obviously exceeds the threshold range, it is determined as a high-risk state by the data comparison tool, and the risk level data is determined as “high risk”. After determining the risk level data, in combination with the historical data record, a pattern matching tool is used to classify and compare the fault types. Assuming that there is a similar high-frequency interruption record in the historical data, and the corresponding fault type is “connection point loosening”, and the current fault time point and influence range are highly consistent with the historical record, it can be preliminarily inferred that the fault type is the same. The above-mentioned manner assists in judgment through historical experience, reduces the possibility of misjudgment, and lays a foundation for accurately locating the fault cause.

[0032] In one possible implementation, when determining the severity of a certain fault type, attention can be paid to the trend of signal interruption duration and impact range. Fluctuation verification can be performed using time series processing tools. For example, the signal interruption duration of a certain connection point increases from 1 minute to 5 minutes within a target time period, and the impact range expands from 2 connection points to 5. Based on these information, the fault characteristics can be described as “severe and spreading”. In actual applications, the granularity of data screening and the preset threshold range of comparison can be flexibly adjusted for optical fiber networks of different scales to adapt to diversified monitoring needs. This flexibility helps to improve the pertinence of monitoring, especially in complex network environments, which can effectively identify potential problems and respond in a timely manner to ensure the stability of the communication network.

[0033] In some embodiments, based on the fault characteristics and impact range in the fault characteristic description, available path resource data in the target area is obtained from network topology data. Topology analysis tools such as TTK (Topology Toolkit) are used to perform hierarchical processing on the available path resource data to obtain backup path distribution records. The backup path distribution records are compared one by one based on signal interruption and risk level information. If the transmission requirements are met, the backup path distribution records are determined as a candidate backup path set. Through the candidate backup path set, path selection data matching the transmission requirements is obtained. The candidate paths are sorted by distance to obtain a path priority sorting list. Based on the path priority sorting list, combined with resource allocation and risk level information, load balancing tools such as HAProxy are used to perform secondary load balancing verification on the backup paths to obtain a final backup path allocation scheme.

[0034] In one possible implementation, after analyzing the fault characteristics and impact range, available resource data of the target area needs to be extracted from the network topology data. For example, a certain area is affected by signal interruption of 5 connection points. Through hierarchical processing of available resource data by topology analysis tools, network resources are classified by physical layer and logical layer to obtain backup path distribution records. The physical layer focuses on the availability of actual optical fiber lines, while the logical layer analyzes the status of virtual channels for data transmission. This hierarchical approach helps to clearly understand resource distribution and lay a foundation for subsequent path selection.

[0035] Further, the available resources are compared and screened one by one, for example, the transmission requirement requires that the delay is not more than 50 milliseconds and the bandwidth is not less than 10 Gbps, 3 paths are screened out, of which 2 paths meet the conditions and are included in the candidate backup path set. After obtaining the candidate backup path set, the backup paths are sorted according to the distance to form a path priority sorting list. For example, among the two candidate paths, one path has a total length of 10 kilometers and the other path has a total length of 15 kilometers, and the shorter path is preferred to reduce transmission delay. Such sorting logic can quickly lock the better path and improve data transmission efficiency.

[0036] Further, based on the path priority sorting list, combined with resource allocation and risk level information, a load balancing tool is used for secondary verification to determine the final backup path allocation scheme. Assuming that the load of the shorter path is already 80% and the load of the longer path is only 30%, the path with lower load is preferred to avoid congestion. This secondary verification mechanism can balance network resource usage and reduce potential risks caused by high load. The above-mentioned method can quickly locate available resources while ensuring the rationality of path allocation and ensuring the stability of network communication.

[0037] Step 103, obtain the switching delay and bandwidth occupation state of the candidate backup path in the backup path allocation scheme, determine the backup path whose switching delay and bandwidth occupation state meet the transmission requirement as the first backup path, and output the path switching instruction.

[0038] In some embodiments, a delay detection tool such as Iperf3 is used to measure the switching delay of the candidate backup path one by one, record the performance of the candidate backup path under different network loads, and obtain a set of delay data of the candidate backup path. According to the set of delay data and the preset response threshold, the switching delay of the candidate backup path is screened, and if the delay of the candidate backup path is lower than the preset response threshold, it is marked as a candidate backup path that meets the requirements, and a preliminary screening path set is determined. For the preliminary screening path set, combined with the requirements of bandwidth occupation and load balancing, a bandwidth monitoring tool such as Iperf3 is used to detect the resource occupation state of the candidate backup path, obtain the bandwidth usage data of the candidate backup path under the current network load, and judge whether it meets the load balancing condition, and obtain a path subset that meets the bandwidth requirements. Starting from the path subset that meets the bandwidth requirements, according to the requirements of path recombination and switching instruction, a path optimization tool such as NetworkX is used to compare and analyze the path subset to determine the first backup path and generate the corresponding switching instruction data.

[0039] For example, in a certain communication network area, three candidate backup paths need to be evaluated for latency. The latency detection tool simulates data transmission under different load scenarios and records the time required for each path from initiating switching to completing switching. Assuming that the switching latency of the first path under low load is 20 milliseconds, and under medium load is 30 milliseconds; the second path is 25 milliseconds and 35 milliseconds respectively; and the third path is 40 milliseconds and 50 milliseconds. Further, for example, the preset response threshold is set to 35 milliseconds. The threshold comparison tool checks the latency data set one by one, and marks the path that is lower than the preset response threshold as meeting the requirements. Taking the above data as an example, the first path and the second path both meet the conditions under low load, while the third path is excluded. Based on the preliminary screening of the path set, the bandwidth monitoring tool is used to further detect the resource occupation of the path. Assuming that the current bandwidth occupation rate of the first path is 70%, and the second path is 40%, and the network load balancing condition requires that the occupation rate should not exceed 60%. Through the data obtained by the monitoring tool, the second path is determined to meet the requirements, while the first path is excluded due to high occupation rate. This detection method helps to avoid excessive concentration of resources. Finally, further analyze the path recombination and switching instruction requirements from the bandwidth-compliant path subset. Assuming that the second path needs to pass through three nodes for switching in the current network topology, while another backup path needs five nodes, the optimization tool will preferentially select the path with fewer nodes to simplify the switching process. At the same time, the corresponding switching instruction data is generated to ensure that the path switching instruction is clear and executable. This optimization process can improve the stability of switching.

[0040] The above embodiment screens low-latency paths through latency detection and threshold comparison, ensures reasonable resource allocation through bandwidth monitoring, and reduces switching complexity through path optimization. It can optimize the overall configuration of network resources while ensuring communication continuity and reducing potential congestion risk. It should be noted that the switching latency and bandwidth occupation data involved in the above process are collected based on real-time network environment, and the dynamic nature of the data requires the system to have fast response capability. Assuming that the network load changes from low load to high load in a short time, the system can adjust the path selection strategy in time through real-time monitoring tools to ensure that the backup path always meets the requirements. This dynamic adjustment mechanism improves the reliability of network communication.

[0041] Step 104, in response to the path switching instruction, sending the path switching instruction to the routing device corresponding to the first backup path and dynamically adjusting the data flow transmission direction to obtain network operation data after path switching.

[0042] According to the path switching instruction, port configuration information corresponding to the first backup path is obtained from a pre-established path database, the configuration information is parsed using a port mapping tool to obtain port allocation data of the first backup path on each routing device. According to the port allocation data, a path switching instruction is sent to the routing device corresponding to the first backup path through a network control center, a flow scheduling tool is used to dynamically adjust the data flow direction, and the transmission direction of the data flow after switching is determined. When the transmission direction adjustment is completed, if it is detected that the data flow direction is inconsistent with the first backup path, a signal reorganization tool is used to rearrange the data flow to obtain reorganized signal flow data. According to the reorganized signal flow data, a state monitoring tool is used to collect the network operation state in real time, and it is judged whether the operation state is consistent with the preset switching target to obtain network operation data after path switching.

[0043] In a possible implementation, for the execution of the path switching instruction and the subsequent adjustment process, detailed analysis can be performed from multiple angles such as port configuration, flow scheduling, and state monitoring. Specifically, the port configuration information corresponding to the first backup path can be obtained from the path database to quickly locate the pre-stored path data.

[0044] In a possible implementation, the switching instruction is generated based on the port allocation data, and the path switching instruction can be sent to the corresponding routing device through the network control center. For example, device A needs to switch the data flow from port 1 to port 2, and the network control center issues specific commands to ensure that the device adjusts the flow direction according to the instructions, and the centralized control method can improve the coordination of switching.

[0045] In a possible implementation, a flow scheduling tool such as HAProxy is used to re-plan the flow distribution according to the switched path and dynamically adjust the data flow direction. For example, the traffic load of the target path after switching is 50 megabits per second, and the flow scheduling tool detects the traffic of each node to ensure that the data flow direction is consistent with the target path. This dynamic adjustment mechanism can effectively avoid traffic congestion.

[0046] Further, if it is detected that the data flow direction is inconsistent with the first backup path, a signal reorganization tool is used to arrange the data flow. For example, assuming that a certain data flow deviates from the path, the reorganization tool will rearrange the order of data packets to ensure that the signal flow returns to normal, such as adjusting the data packets from nodes A-B-C to A-D-C. This reorganization method helps to maintain the continuity of communication.

[0047] In a possible implementation, the network running state is collected in real time by a sensor or a network state monitoring tool to obtain the network running state. When determining whether the network running state is consistent with the preset switching target, the actual data is compared with the target value. For example, after the path switching is completed, when it is detected that the delay of a certain fiber connection point is 25 ms, which is lower than the preset threshold value 30 ms, it is indicated that the running state meets the expectation. For another example, assuming that the target is that the delay is lower than 30 ms and the packet loss rate is 0, and it is found through monitoring that the actual data meets the requirement, the current state is recorded as switching success. This judgment mechanism provides guarantee for stable network running. Through the implementation of the above examples, the efficiency and reliability of the path switching process are ensured, and solid support is provided for fault recovery of the fiber communication network.

[0048] In step 105, the network running data after switching is monitored in real time. If it is detected that the transmission delay exceeds the preset delay threshold value and / or the number of times that the optical signal strength is unstable exceeds the preset threshold value, it is determined that the switching effect does not meet the expectation, and a secondary path switching request is triggered.

[0049] In some examples, the network running state data after switching is monitored in real time, and the optical signal strength and the transmission delay parameter are continuously collected. The collected optical signal strength and transmission delay are compared with the preset signal strength threshold value and the preset delay threshold value respectively, to determine whether the optical signal strength is stable and whether the transmission delay exceeds the limit, to obtain a preliminary performance evaluation result. If the preliminary performance evaluation result shows that the transmission delay exceeds the preset delay threshold value and / or the optical signal strength is unstable, the backup path configuration information is obtained from the pre-established database by using a path analysis tool, the path adjustment scheme is re-determined, and the adjustment result of the backup path is obtained. According to the adjustment result of the backup path, the current data flow direction is re-planned by using a flow scheduling tool, the signal transmission direction is dynamically allocated during adjustment, and the adjusted signal flow direction information is obtained. According to the adjusted signal flow direction information, the optimized network state is continuously monitored by using a state verification tool, such as Netstat, the optical signal strength and the transmission delay parameter are compared with the preset signal strength threshold value and the preset delay threshold value again, and if the transmission delay exceeds the preset delay threshold value and / or the optical signal strength is unstable, it is determined that the switching effect does not meet the expectation, and a secondary path switching request is triggered.

[0050] In one possible implementation, in the field of operation optimization of optical fiber communication networks, when continuously monitoring network state data after switching, the optical signal strength and transmission delay parameters can be collected by real-time monitoring tools. Assuming that the signal strength standard threshold of a certain network node is -20 dBm, and the transmission delay threshold is 20 ms, the monitoring tool collects data every 5 seconds, and finds that the signal strength is -22 dBm and the delay is 25 ms, which is obviously beyond the expected range. This monitoring method can quickly capture the fluctuations in network performance and provide a basis for subsequent adjustments. In the comparison process, if the optical signal strength is unstable or the transmission delay exceeds the standard, a preliminary performance evaluation result is generated. When determining the backup path configuration information, the path analysis tool extracts relevant data from the database, for example, the database stores the port and device information of multiple backup paths, and a path involving device X and device Y is selected, corresponding to port 2 and port 4 respectively. This selection process ensures the feasibility of the backup path and lays the foundation for traffic re-planning. Further, the traffic scheduling tool can be used to re-plan the data flow direction, which can dynamically allocate signal transmission directions. For example, the current data flow load is 40 Mb per second, and the traffic scheduling tool reallocates the traffic to the backup path to ensure load balancing of device X and device Y. This dynamic allocation method can effectively improve the utilization of network resources.

[0051] Further, after obtaining the adjusted signal flow information, the state verification tool will continuously monitor the network state after the secondary optimization. Assuming that the signal strength is stabilized at -19 dBm and the delay is reduced to 18 ms, both of which meet the threshold requirements, the current state is recorded as optimization success. This verification mechanism can ensure that the switching effect meets the expectations. If the parameters still do not meet the standards after the second comparison, it is determined that the switching effect does not meet the expectations, and a second path switching request is triggered. Assuming that the node delay is still 22 ms, the problem node is recorded and a second path switching request is generated. This continuous monitoring and feedback mechanism ensures the long-term stability of the network.

[0052] Step 106, in response to the second path switching request, determining the optimized switching path from the backup path allocation scheme, and sending a second switching instruction.

[0053] The second backup path information is extracted from the backup path allocation scheme, real-time resource occupation data is collected according to the state of the second backup path in the current network environment, and the resource occupation state of the second backup path is obtained. According to the resource occupation state, a bottleneck identification tool is used to analyze the transmission bottleneck of the second backup path. If it is detected that the resource occupation of the path node exceeds the preset threshold, the corresponding path node is determined as a bottleneck node, and a flow analysis tool is used to deeply evaluate the flow distribution of the bottleneck node to determine the influence range of the bottleneck node. According to the influence range of the bottleneck node, a load balancing tool is used to dynamically adjust the path allocation scheme, and the flow is shunted from the bottleneck node to the path node with lower resource occupation, and an adjusted flow distribution scheme is obtained. According to the adjusted flow distribution scheme, the second backup path is checked, and the second backup path is matched with the current network environment to obtain an optimized switching path. In this embodiment, the initial state of the second backup path refers to the backup path next to the first backup path in the path priority ranking list in the above embodiment. In the evaluation process of each node in the second backup path, the flow and the like of the path node are dynamically adjusted to form an optimized switching path.

[0054] In a possible implementation, the second backup path information can be extracted from a pre-established backup path allocation scheme. For example, the resource configuration data of multiple backup paths is stored in a database, and the second backup path is extracted by a screening tool, involving device A and device B, and the ports are 3 and 5 respectively. Real-time data of the second backup path in the current network environment is collected in real time to determine its state. For example, the resource monitoring tool can collect data every 10 seconds, and it is detected that the bandwidth occupation rate of the second backup path is 85%, close to the preset threshold of 80%. The bottleneck identification tool can also be used to deeply analyze the resource occupation. It is assumed that it is found that the resource occupation rate of port 3 of device A is as high as 90%, which is obviously higher than the preset threshold. The bottleneck identification tool will mark this path node as a potential problem point, and record that the influence range involves the next two path nodes. The flow analysis tool can be used to evaluate the flow distribution of the bottleneck node. For example, the peak flow of port 3 of device A is 50 Mb per second, and is mainly concentrated in a certain time period. The flow analysis tool analyzes that the bottleneck affects the data transmission efficiency of the downstream path nodes. Through the above deep evaluation, the specific influence range of the bottleneck node can be determined, and the load balancing tool is used to dynamically adjust the flow from the bottleneck node to the path node with lower resource occupation. It is assumed that the occupation rate of port 5 of device B is only 40%, and the tool will shunt part of the flow from device A to device B, and finally adjust the occupation rate of the two nodes to about 60%. This dynamic allocation can effectively alleviate the local pressure and improve the overall stability of the path.

[0055] In some embodiments, the optimized switching path is matched with the current network environment by comprehensively evaluating multi-dimensional indicators. The multi-dimensional indicators include resource occupation, transmission delay, and signal stability, etc. For example, when the delay is detected to be 15 ms and the signal fluctuation range is within a reasonable interval, the path is confirmed as the optimized switching path.

[0056] In step 107, in response to the secondary switching instruction, the configuration result of the secondary switching path is obtained, and the secondary path switching is performed according to the configuration result.

[0057] In some embodiments, in response to the secondary switching instruction, the optimized switching path and the current state of data stream transmission are obtained, the transmission path is remapped by a path adjustment tool to obtain the configuration information of the optimized switching path. A delay monitoring tool such as PingPlotter is used to collect real-time data of the configuration information of the optimized switching path, and the state of delay change is recorded in the data stream transmission process. At the same time, a signal detection tool is used to obtain signal stability parameters to determine the transmission state data of the optimized switching path. If the delay change in the transmission state data exceeds the preset delay threshold and / or the signal stability is lower than the preset stability threshold, a flow distribution tool is used to dynamically optimize the transmission path to obtain an optimized path transmission scheme, and the final configuration result of the secondary switching path is obtained.

[0058] In some embodiments, in response to the secondary switching instruction, the optimized switching path is dynamically adjusted and evaluated. First, an instruction parsing tool is used to convert the instruction content of the secondary switching instruction into specific path mapping rules. Assuming that the instruction specifies that the path from node C to node D needs to be adjusted, a path mapping scheme is quickly generated according to the instruction priority. In the process of remapping the transmission path by the path adjustment tool, a new path configuration can be generated based on the transmission state of the current data stream and combined with network topology information. Assuming that the original path passes through nodes C, E, and D, and the adjustment tool finds that node E has a congestion risk, the path is remapped to nodes C, F, and D. This remapping can effectively avoid potential problem nodes and improve the transmission efficiency of data streams.

[0059] In a possible real-time manner, a time delay monitoring tool, such as PingPlotter, can be used to periodically scan the key nodes on the optimized switching path, and collect real-time data of time delay changes. For example, the time delay monitoring tool collects data every 5 seconds, and finds that the average time delay of the adjusted path is 12 ms and the peak time delay is 18 ms. If the time delay change in the transmission performance data exceeds a preset threshold, such as a threshold of 15 ms, and the actual peak value reaches 18 ms, dynamic optimization can be performed by using the traffic distribution tool. Part of the traffic is distributed from the node F to a backup node G, and it is assumed that the resource occupancy rate of the node G is only 30%. In this way, the resource distribution of the two paths is more balanced after the distribution, and the local pressure can be effectively relieved.

[0060] In a possible real-time manner, the signal strength and fluctuation state of each node on the optimized switching path are detected to obtain signal stability data. For example, when it is detected that the signal fluctuation amplitude of the node F is large and the stability index is lower than a preset stability threshold, the node F is marked as a potential risk point. In some embodiments, the time delay change and the signal stability data are comprehensively used to evaluate whether the optimized target switching path meets the requirements, to obtain a final configuration result. Further, after the transmission scheme of the optimized path is formed, a report generation tool is used to arrange the final state of the path switching, and a network performance evaluation report is output by combining the time delay change and the signal stability data. For example, the network performance evaluation report records that the time delay is reduced from 18 ms to 14 ms, and the signal stability index is also improved to a normal range.

[0061] The dynamic optical path protection method based on the optical fiber plug-in of the above embodiment, by acquiring the real-time change record of the optical fiber plug-in state, and detecting the real-time change record, if the real-time parameter data exceeds the preset threshold, it is determined that there is a risk of equipment failure, and a failure warning signal is output, wherein the real-time parameter data includes optical signal intensity and loss value; in response to the failure warning signal, the failure feature description is acquired, and the available backup path resources in the current network topology structure are acquired according to the failure feature description, and the backup path allocation scheme is obtained; the switching delay and bandwidth occupation state of the candidate backup path in the backup path allocation scheme are acquired, the backup path whose switching delay and bandwidth occupation state meet the transmission demand is determined as the first backup path, and the path switching instruction is output; in response to the path switching instruction, the path switching instruction is sent to the routing device corresponding to the first backup path and the data flow transmission direction is dynamically adjusted, and the network operation data after path switching is obtained; the switched network operation data is monitored in real time, if the transmission delay exceeds the preset delay threshold and / or the number of unstable optical signal intensity exceeds the preset threshold, it is determined that the switching effect is not as expected, and a secondary path switching request is triggered; in response to the secondary path switching request, the optimized switching path is determined from the backup path allocation scheme, and the secondary switching instruction is sent; in response to the secondary switching instruction, the configuration result of the secondary switching path is acquired, and the secondary path switching is performed according to the configuration result. The above embodiment continuously monitors the network operation state, triggers secondary path optimization if the performance is not as expected, and switches to a new target switching path after recalculation. Not only realizes the rapid warning, accurate positioning and automatic recovery of optical fiber network failure, but also effectively improves the reliability and service quality of the network.

[0062] Reference Figure 2 The embodiment of the present application also provides a dynamic optical path protection system based on an optical fiber plug-in, comprising: The failure warning module 201 is used for acquiring the real-time change record of the optical fiber plug-in state, and detecting the real-time change record, if the real-time parameter data exceeds the preset threshold, it is determined that there is a risk of equipment failure, and a failure warning signal is output, wherein the real-time parameter data includes optical signal intensity and loss value data; The backup path allocation module 202 is used for acquiring the failure feature description according to the failure warning signal, and acquiring the available backup path resources in the current network topology structure according to the failure feature description, and obtaining the backup path allocation scheme; The switching path determination module 203 is used for acquiring the switching delay and bandwidth occupation state of the candidate backup path in the backup path allocation scheme, determining the backup path whose switching delay and bandwidth occupation state meet the transmission demand as the first backup path, and outputting the path switching instruction; The switching module 204 is configured to, in response to the path switching instruction, send a path switching instruction to a routing device corresponding to the first backup path and dynamically adjust a data flow transmission direction, to obtain network running data after path switching. The monitoring module 205 is configured to monitor the network running data after switching in real time. If it is detected that a transmission time delay exceeds a preset time delay threshold and / or a number of times of unstable optical signal strength exceeds a preset threshold, it is determined that the switching effect is not as expected, and a secondary path switching request is triggered. The switching path determination module 203 is further configured to, in response to the secondary path switching request, determine an optimized switching path from the backup path allocation scheme, and send a secondary switching instruction. The switching module 204 is further configured to, in response to the secondary switching instruction, obtain a configuration result of the secondary switching path, and perform secondary path switching according to the configuration result.

[0063] It should be noted that the dynamic optical path protection system based on the optical fiber plug-in provided in the embodiments of the present application is used to execute all process steps of the dynamic optical path protection method based on the optical fiber plug-in in the above embodiments, and the working principles and beneficial effects of the two are one-to-one correspondence, so they will not be repeated.

[0064] The embodiments of the present application also provide an electronic device, which includes a processor, a memory, and a computer program, such as a data acquisition program, stored in the memory and executable on the processor. The processor implements the steps in the above-mentioned dynamic optical path protection method based on the optical fiber plug-in embodiments when executing the computer program, such as the steps shown in the above-mentioned dynamic optical path protection method based on the optical fiber plug-in embodiments. Figure 1 Alternatively, the processor implements the functions of the modules / units in each system embodiment when executing the computer program, such as the data acquisition module.

[0065] For example, the computer program can be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present application. The one or more modules / units can be a series of computer program instruction segments capable of completing a specific function, which are used to describe the execution process of the computer program in the electronic device.

[0066] The electronic device can be a desktop computer, a notebook computer, a palm computer, a smart tablet, and the like. The electronic device can include, but is not limited to, a processor, a memory. Those skilled in the art can understand that the above components are only examples of the electronic device and do not constitute a limitation on the electronic device, and can include more or fewer components than the above, or combine certain components, or different components, for example, the electronic device can also include an input / output device, a network access device, a bus, and the like.

[0067] The processor can be a central processing unit (CPU), and can also be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor or the like, and is a control center of the electronic device, which connects various parts of the electronic device through various interfaces and lines.

[0068] The memory can be used to store the computer program and / or modules, and the processor realizes various functions of the electronic device by running or executing the computer program and / or modules stored in the memory, and calling data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required by a function (such as a sound playing function, an image playing function, etc.), etc.; and the data storage area can store data created according to the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a nonvolatile memory, for example, a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash storage device, or other volatile solid-state storage device.

[0069] The modules / units integrated in the electronic device, if realized in the form of software function units and sold or used as independent products, can be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the above-mentioned embodiment methods can also be completed by a computer program instructing related hardware, and the computer program can be stored in a computer readable storage medium. The computer program can implement the steps of each method embodiment when executed by a processor. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or some intermediate forms, etc. The computer readable medium can include any entity or device, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. that can carry the computer program code. It should be noted that the contents included in the computer readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.

[0070] It should be noted that the above-described device embodiments are only schematic, and the units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment scheme according to actual needs. In addition, the connection relationship between the modules in the device embodiment provided by the present application indicates that there is a communication connection between them, which can be realized as one or more communication buses or signal lines. Those skilled in the art can understand and implement it without creative labor.

[0071] The above-described specific embodiments further illustrate the purpose, technical solutions, and beneficial effects of the present application. It should be understood that the above-described specific embodiments are only for the specific embodiments of the present application and do not limit the protection scope of the present application. It is particularly pointed out that any modification, equivalent replacement, improvement, etc. made by those skilled in the art within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A dynamic optical path protection method based on fiber optic plug-in, characterized in that, include: The system acquires real-time records of changes in the status of the fiber optic plug and detects these records. If the real-time parameter data exceeds a preset threshold, it is determined that there is a risk of equipment failure and a fault warning signal is output. The real-time parameter data includes optical signal strength and loss value data. Based on the fault warning signal, a fault feature description is obtained, and based on the fault feature description, available backup path resources in the current network topology are obtained to obtain a backup path allocation scheme. Obtain the switching latency and bandwidth occupancy status of candidate backup paths in the backup path allocation scheme, determine the backup path whose switching latency and bandwidth occupancy status meet the transmission requirements as the first backup path, and output the path switching command. In response to the path switching command, a path switching command is sent to the routing device corresponding to the first backup path and the data flow transmission direction is dynamically adjusted to obtain network operation data after the path switching. The network operation data after the switch is monitored in real time. If the transmission delay exceeds the preset delay threshold and / or the number of times the optical signal strength is unstable exceeds the preset threshold, it is determined that the switching effect has not met expectations and a secondary path switching request is triggered. In response to the secondary path switching request, an optimized switching path is determined from the backup path allocation scheme, and a secondary switching instruction is sent. In response to the secondary switching command, the configuration result of the secondary switching path is obtained, and the secondary path switching is performed according to the configuration result.

2. The method according to claim 1, characterized in that, The real-time change record of the fiber optic plug status includes: Real-time data acquisition is performed on the fiber optic connection points through a distributed sensor network to obtain raw data. The raw data is then classified and organized according to a preset data storage structure to obtain a structured initial state set. The raw data includes optical signal intensity, loss value, and fluctuation frequency parameters. The optical signal intensity and loss value in the initial state set are compared and analyzed. If the signal fluctuation range is detected to exceed the preset threshold, the fluctuation frequency parameter corresponding to the optical signal intensity and loss value is recorded to determine the dynamic change characteristics under abnormal conditions. The signal fluctuation range refers to the range of change of optical signal intensity or loss value at different times obtained by the signal processing tool. The fluctuation frequency parameter and the dynamic change characteristics are continuously tracked, and the real-time change record of the fiber optic plug is obtained by combining the real-time acquired optical signal intensity and loss value.

3. The method according to claim 1, characterized in that, The process of detecting the real-time change records, and if the detected real-time parameter data exceeds a preset threshold, determines that there is a risk of equipment failure and outputs a fault warning signal, including: The optical signal intensity and loss value within the target time period are extracted from the real-time change record. The data of each frame within the target time period are checked. If the optical signal intensity of the frame is lower than the preset intensity threshold and / or the loss value exceeds the safety range standard, the frame is marked as an abnormal frame, and an abnormal frame set is obtained. The signal acquisition frequency and optical signal intensity change trends of each frame in the abnormal frame set are obtained. The signal acquisition frequency and optical signal intensity change trends are continuously checked. If multiple consecutive frames are marked as abnormal, it is determined that there is a fault risk and a preliminary risk indicator is output. Based on the initial risk identification, the loss values ​​in the abnormal frame set are checked a second time to obtain the fluctuation range. If the fluctuation range exceeds the safety range standard, it is determined that there is a risk of equipment failure, and a fault warning signal is generated.

4. The method according to claim 1, characterized in that, The step of obtaining available backup path resources in the current network topology based on the fault characteristic description and obtaining a backup path allocation scheme includes: Obtain the current network topology, and based on the fault characteristics and impact range in the fault characteristic description, obtain the available path resource data within the target area from the current network topology. Use a topology parsing tool to perform hierarchical processing on the available path resource data to obtain backup path distribution records. The backup path distribution records are compared one by one, and the backup path distribution records that meet the transmission requirements are determined as the candidate backup path set. By using the candidate backup path set, path selection data that matches the transmission requirements is obtained, and the backup paths are sorted to obtain a path priority sorting list. Based on the path priority sorting list, load checks are performed on the backup paths to obtain the final backup path allocation scheme.

5. The method according to claim 1, characterized in that, The step of obtaining the switching latency and bandwidth occupancy status of candidate backup paths in the backup path allocation scheme, and determining the backup path whose switching latency and bandwidth occupancy status meet the transmission requirements as the first backup path, includes: The switching latency of each candidate backup path is measured one by one to obtain a latency data set for the candidate backup paths; Based on the latency data set and the preset response threshold, the switching latency of the candidate backup paths is filtered, and the candidate backup paths with switching latency lower than the preset response threshold are marked as qualified candidate backup paths, thus determining the initial set of filtered paths. For the initial set of filtered paths, the resource usage status of the candidate backup paths is detected to obtain the bandwidth usage status of the candidate backup paths under the current network load, and a subset of paths with the required bandwidth is obtained. Based on the requirements of path reorganization and switching instructions, the paths in the path subset are compared to determine the first backup path.

6. The method according to claim 1, characterized in that, The step of sending a path switching command to the routing device corresponding to the first backup path and dynamically adjusting the data stream transmission direction to obtain network operation data after the path switching includes: According to the path switching instruction, the port configuration information corresponding to the first backup path is obtained from the backup path allocation scheme, and the configuration information is parsed using a port mapping tool to obtain the port allocation data of the first backup path on each routing device. Based on the port allocation data, a path switching command is sent to the routing device corresponding to the first backup path. A traffic scheduling tool is used to dynamically adjust the data flow direction and determine the transmission direction of the data flow after the switch. Once the transmission direction adjustment is completed, if the data flow direction is detected to be inconsistent with the first backup path, a signal reconstruction tool is used to rearrange the data flow and obtain the reconstructed signal flow data. Based on the recombined signal flow data, the network operation status is collected in real time. When the operation status is consistent with the first backup path, the network operation data after the path switch is obtained.

7. The method according to claim 1, characterized in that, The step of determining the optimized switching path from the backup path allocation scheme in response to the secondary path switching request includes: Extract the second backup path information from the backup path allocation scheme, and obtain the resource usage status of the second backup path based on the status of the second backup path in the current network environment; The transmission bottleneck of the second backup path is analyzed, and the path nodes whose resource consumption exceeds the preset threshold are identified as bottleneck nodes. The traffic distribution of the bottleneck nodes is evaluated to determine the impact range of the bottleneck nodes. Based on the impact range of the bottleneck node, the path allocation scheme is dynamically adjusted to obtain the adjusted traffic distribution scheme; Based on the adjusted traffic distribution scheme, the second backup path is verified and matched with the current network environment to obtain the optimized switching path.

8. A dynamic optical path protection system based on fiber optic plug-in, characterized in that, include: The fault warning module is used to acquire real-time change records of the fiber optic plug status and detect the real-time change records. If the real-time parameter data exceeds a preset threshold, it is determined that there is a risk of equipment failure and a fault warning signal is output. The real-time parameter data includes optical signal strength and loss value data. The backup path allocation module is used to obtain a fault feature description based on the fault warning signal, and to obtain the available backup path resources in the current network topology based on the fault feature description, so as to obtain a backup path allocation scheme. The switching path determination module is used to obtain the switching delay and bandwidth occupancy status of candidate backup paths in the backup path allocation scheme, determine the backup path whose switching delay and bandwidth occupancy status meet the transmission requirements as the first backup path, and output the path switching command. The switching module is used to respond to the path switching command, send the path switching command to the routing device corresponding to the first backup path and dynamically adjust the data flow transmission direction to obtain the network operation data after the path switching. The monitoring module is used to monitor the network operation data after the switch in real time. If the transmission delay exceeds the preset delay threshold and / or the number of times the optical signal strength is unstable exceeds the preset threshold, it is determined that the switching effect has not met expectations and a secondary path switching request is triggered. The switching path determination module is further configured to respond to the secondary path switching request, determine the optimized switching path from the backup path allocation scheme, and send a secondary switching instruction. The switching module is also used to respond to the secondary switching command, obtain the configuration result of the secondary switching path, and perform secondary path switching according to the configuration result.

9. An electronic device, characterized in that, The method includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements the dynamic optical path protection method based on fiber optic plugs as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the dynamic optical path protection method based on fiber optic plug-in as described in any one of claims 1 to 7.