A method for monitoring switch port status
Through fiber optic monitoring link connection and model construction, combined with pulse light detection, efficient and real-time monitoring of switch port status is achieved, solving the problems of low efficiency and low accuracy in the existing technology, and improving the network monitoring effect.
Patent Information
- Application Number
- CN202410317648.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-20
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-03-20
AI Technical Summary
Existing switch port status monitoring methods have low efficiency, poor real-time performance, and low accuracy, and cannot meet the needs of complex network environments.
By formulating a fiber monitoring link connection plan, establishing a fiber monitoring link model, constructing an optical parameter-switch port status feature library, performing fiber monitoring link threshold calculation and pulse light detection, real-time monitoring of spectral characteristic parameters, locating abnormal ports, and passing The visualization module updates the display in real time.
It improves the accuracy and real-time performance of switch port status monitoring, reduces network communication interruptions and delays, and enables rapid fault handling and accurate exception identification.
Smart Images

Figure CN118233795B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network communication, and in particular to a method for monitoring the status of a switch port. Background Art
[0002] In computer networks, switches are important network devices that forward data packets from one port to another. The port status of a switch is critical to the normal operation of the network. However, due to the complex network environment and large amounts of data traffic, various faults may occur on switch ports, such as link failures, port blocking, conflicts, etc. If these faults are not monitored and handled in a timely manner, they will lead to network communication interruptions, increased latency, and data loss.
[0003] At present, there are some switch port status monitoring methods in the prior art, such as polling method, SNMP protocol, etc. However, these methods have some limitations, such as low monitoring efficiency, poor real-time performance, low monitoring accuracy, etc., and cannot meet the actual needs in complex network environments. Summary of the invention
[0004] Based on this, it is necessary for the present invention to provide a method for monitoring the status of a switch port to solve at least one of the above technical problems.
[0005] To achieve the above object, a method for monitoring the status of a switch port includes the following steps:
[0006] Step S1: Formulate a fiber optic monitoring link connection plan for the switch port and the peer device, thereby obtaining the fiber optic monitoring link connection plan; Model the fiber optic monitoring link for the switch port and the peer device based on the fiber optic monitoring link connection plan, thereby obtaining the fiber optic monitoring link model;
[0007] Step S2: constructing an optical parameter-switch port state feature library for the switch port based on the optical fiber monitoring link model, thereby obtaining an abnormal port-optical parameter database, wherein the abnormal port-optical parameter database includes several groups of optical feature parameters and port state type data corresponding to the several groups of optical feature parameters; performing optical fiber monitoring link threshold calculation on the optical fiber monitoring link between the switch port and the opposite device according to the abnormal port-optical parameter database, thereby obtaining a quantitative abnormal judgment threshold matrix;
[0008] Step S3: Based on the optical fiber monitoring link connection scheme, pulse light detection is performed on the optical fiber monitoring link between the switch port and the opposite device in real time, thereby obtaining real-time optical detection monitoring data; spectral feature parameters are extracted from the real-time optical detection monitoring data according to the quantitative abnormality judgment threshold matrix, thereby obtaining real-time spectral detection feature parameters;
[0009] Step S4: comparing the real-time spectrum detection characteristic parameters with the quantitative abnormality judgment threshold matrix. When at least one parameter among the real-time spectrum detection characteristic parameters exceeds the corresponding threshold in the quantitative abnormality judgment threshold matrix, the abnormal port of the switch is located according to the real-time spectrum detection characteristic parameters, thereby obtaining the coordinate data of the abnormal port of the switch;
[0010] Step S5: Match the real-time optical detection monitoring data with each set of optical characteristic parameters in the abnormal port-optical parameter database to obtain the switch port abnormal type data; update and display the switch abnormal port coordinate data and the switch port abnormal type data in real time through a preset visualization module.
[0011] The present invention can obtain the optical fiber monitoring link connection scheme by formulating the optical fiber monitoring link connection scheme between the switch port and the opposite device, so as to ensure the correct connection of the monitoring link. This can establish a correct monitoring link and provide an accurate and reliable data basis for subsequent monitoring. Based on the optical fiber monitoring link model, the optical parameter-switch port state feature library of the switch port is constructed to obtain the abnormal port-optical parameter database. This database contains several groups of optical feature parameters and port state type data corresponding to these parameters. In this way, the abnormal state of the switch port can be accurately judged by analyzing and comparing the optical parameters. This improves the monitoring accuracy and real-time performance of the port state. By establishing the optical parameter-switch port state feature library and the quantitative abnormal judgment threshold matrix, the state of the switch port can be accurately judged and classified, and the situation of false alarm and missed alarm can be avoided, thereby improving the precision and accuracy of monitoring. The optical fiber monitoring link can be monitored in real time by pulse light detection, and real-time optical detection monitoring data can be obtained. These data reflect the real-time state of the optical fiber monitoring link and include real-time spectrum detection feature parameters. This can realize real-time monitoring of the optical fiber monitoring link between the switch port and the opposite device, and can timely discover and respond to changes in the link state, thereby reflecting the operating state of the switch port. By comparing the real-time spectrum detection characteristic parameters with the quantitative abnormal judgment threshold matrix, it is possible to determine whether an abnormal situation exists. When at least one parameter in the real-time spectrum detection characteristic parameters exceeds the corresponding threshold in the quantitative abnormal judgment threshold matrix, the abnormal port of the switch can be located according to the real-time spectrum detection characteristic parameters, and the coordinate data of the abnormal port of the switch can be obtained. This can quickly locate the abnormal port in the switch, so that measures can be taken in time to handle the fault and avoid network communication interruption and data loss. By comparing the real-time monitoring data with the parameters in the database, the abnormal type of the switch port can be accurately determined. This provides accurate identification and classification of the abnormal type of the switch, and provides targeted measures for subsequent processing and repair. In summary, the present invention can timely discover and respond to switch port faults through real-time monitoring and rapid judgment of abnormal situations, and reduce the problems of network communication interruption and increased delay. The present invention can improve monitoring efficiency, real-time performance, and accuracy, and realize rapid positioning and processing of abnormal ports. At the same time, it provides real-time network status information through visual display, thereby comprehensively improving the effect and value of network monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments thereof made with reference to the following drawings:
[0013] Figure 1 A schematic flow chart of the steps of a method for monitoring the switch port status according to an embodiment is shown.
[0014] Figure 2 A detailed flow chart of step S26 of an embodiment is shown.
[0015] Figure 3 A detailed flow chart of step S42 of an embodiment is shown. DETAILED DESCRIPTION
[0016] The following is a clear and complete description of the technical method of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by technicians in this field without creative work are within the scope of protection of the present invention.
[0017] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.
[0018] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.
[0019] To achieve this, please refer to Figures 1 to 3 The present invention provides a method for monitoring the status of a switch port, comprising the following steps:
[0020] Step S1: Formulate a fiber optic monitoring link connection plan for the switch port and the peer device, thereby obtaining the fiber optic monitoring link connection plan; Model the fiber optic monitoring link for the switch port and the peer device based on the fiber optic monitoring link connection plan, thereby obtaining the fiber optic monitoring link model;
[0021] Specifically, for example, the physical connection relationship between the switch port and the opposite device can be determined. According to the network topology diagram or the actual wiring situation, determine which switch ports are connected to the opposite device through optical fiber. Consider the transmission distance and bandwidth requirements of the optical fiber and formulate appropriate optical fiber types and specifications. According to the transmission performance and required bandwidth of the optical fiber, select the appropriate optical fiber type, such as single-mode optical fiber or multi-mode optical fiber, and determine the specifications of the optical fiber, such as core diameter, coating material, etc. Formulate an optical fiber connection plan to determine the optical fiber connection method between each switch port and the opposite device, including the path of the optical fiber, the type and number of connection joints, etc. Based on the optical fiber monitoring link connection plan, the optical fiber monitoring link model is modeled for the switch port and the opposite device. According to the optical fiber path and connection joint information determined in the connection plan, the optical fiber connection relationship between the switch port and the opposite device is established as an optical fiber monitoring link model. The location and identification information of each switch port and the opposite device are identified in the optical fiber monitoring link model for subsequent optical fiber monitoring data collection and analysis. Considering the relay device or optical fiber cross-connection that may exist in the optical fiber link, the corresponding node and connection information are added to the optical fiber monitoring link model to ensure that the structure of the optical fiber link is fully represented.
[0022] Step S2: constructing an optical parameter-switch port state feature library for the switch port based on the optical fiber monitoring link model, thereby obtaining an abnormal port-optical parameter database, wherein the abnormal port-optical parameter database includes several groups of optical feature parameters and port state type data corresponding to the several groups of optical feature parameters; performing optical fiber monitoring link threshold calculation on the optical fiber monitoring link between the switch port and the opposite device according to the abnormal port-optical parameter database, thereby obtaining a quantitative abnormal judgment threshold matrix;
[0023] Specifically, for example, based on the optical fiber monitoring link model, the optical parameter collection method and required characteristic parameters of each switch port can be determined. For example, the optical signal intensity is measured by an optical power meter, and the spectral characteristics are obtained by a spectrometer. Optical parameters are collected for each switch port, and corresponding optical characteristic parameters are extracted. For example, features such as average optical power and optical power change rate are extracted from the data obtained by the optical power meter. According to actual conditions and prior knowledge, the optical characteristic parameters are associated with the port state type. According to the known normal and abnormal port state types, the optical characteristic parameters are matched and marked with the corresponding state type data to build an abnormal port-optical parameter database. Based on the abnormal port-optical parameter database, the optical characteristic parameters are counted and analyzed, and the characteristic parameter thresholds of the abnormal port are calculated. For example, the optical power threshold range of the abnormal port is determined by calculating the average optical power and standard deviation of the normal port. Considering that different optical characteristic parameters may have different importance and sensitivity, different weights and threshold calculation methods are set for different characteristic parameters according to actual needs and prior knowledge. According to the calculated optical characteristic parameter thresholds of the abnormal port, a quantitative abnormal judgment threshold matrix is constructed to facilitate subsequent real-time spectrum detection and abnormal judgment.
[0024] Step S3: Based on the optical fiber monitoring link connection scheme, pulse light detection is performed on the optical fiber monitoring link between the switch port and the opposite device in real time, thereby obtaining real-time optical detection monitoring data; spectral feature parameters are extracted from the real-time optical detection monitoring data according to the quantitative abnormality judgment threshold matrix, thereby obtaining real-time spectral detection feature parameters;
[0025] Specifically, for example, according to the optical fiber monitoring link connection scheme, a suitable pulse light detection device can be selected and deployed on the optical fiber link between the switch port and the opposite device. Start the pulse light detection device to monitor the optical signal on the optical fiber link in real time. The pulse light detection device can detect the status and performance of the optical fiber link by sending a pulse light signal and receiving a returned signal. Based on the quantitative abnormality judgment threshold matrix, a list of spectral feature parameters to be extracted is defined. These feature parameters may include optical power, spectral shape, peak wavelength, etc. Spectral analysis is performed on the real-time optical detection monitoring data to extract the required spectral feature parameters. A spectrometer or other optical device can be used to perform spectral analysis on the optical signal to obtain spectral feature parameters. The extracted real-time spectral detection feature parameters are associated with the corresponding timestamp and optical fiber link information to form a complete real-time spectral detection parameter.
[0026] Step S4: comparing the real-time spectrum detection characteristic parameters with the quantitative abnormality judgment threshold matrix. When at least one parameter among the real-time spectrum detection characteristic parameters exceeds the corresponding threshold in the quantitative abnormality judgment threshold matrix, the abnormal port of the switch is located according to the real-time spectrum detection characteristic parameters, thereby obtaining the coordinate data of the abnormal port of the switch;
[0027] Specifically, for example, the real-time spectrum detection characteristic parameters can be compared with the quantitative abnormality judgment threshold matrix one by one. For each characteristic parameter, check whether it exceeds the corresponding threshold. If at least one characteristic parameter exceeds the threshold, the monitored switch port is determined to be an abnormal port. When an abnormal port is detected, the abnormal port is located according to the real-time spectrum detection characteristic parameters. According to the value and change trend of the characteristic parameters, the location or possible cause of the abnormal port can be inferred. According to the switch topology and fiber link information, the abnormal port can be associated with the corresponding switch port and the opposite device to determine the coordinate data of the abnormal port. The abnormal port coordinate data may include information such as the switch identification, port number, opposite device identification, etc., which is used for subsequent abnormal processing and troubleshooting.
[0028] Step S5: Match the real-time optical detection monitoring data with each set of optical characteristic parameters in the abnormal port-optical parameter database to obtain the switch port abnormal type data; update and display the switch abnormal port coordinate data and the switch port abnormal type data in real time through a preset visualization module.
[0029] Specifically, for example, the spectral characteristic parameters in the real-time optical detection monitoring data can be used to match and compare each group of optical characteristic parameters in the abnormal port-optical parameter database one by one. For each group of optical characteristic parameters, the similarity or difference between it and the corresponding characteristic parameters in the real-time optical detection monitoring data is calculated. Various similarity measurement methods can be used, such as Euclidean distance, Manhattan distance, correlation coefficient, etc. According to the calculation results of the similarity or difference, the abnormal type data of the abnormal port to which the real-time optical detection monitoring data belongs is determined. The abnormal type data can be a predefined classification label, such as too low optical power, too high optical power, abnormal spectral shape, etc. The acquired switch abnormal port coordinate data and the corresponding abnormal type data are combined to form an abnormal data set. A preset visualization module is designed and implemented to update and display the location and abnormal type of the abnormal port of the switch in real time. The visualization module can use a graphical interface, a geographic information system (GIS), etc. to display the switch topology map or geographic map, and mark the identification and abnormal type of the abnormal port at the corresponding position. As the real-time optical detection monitoring data is updated, the visualization module will be updated and displayed according to the latest abnormal data set so that the user can understand the abnormal situation of the switch in real time.
[0030] The present invention can obtain the optical fiber monitoring link connection scheme by formulating the optical fiber monitoring link connection scheme between the switch port and the opposite device, so as to ensure the correct connection of the monitoring link. This can establish a correct monitoring link and provide an accurate and reliable data basis for subsequent monitoring. Based on the optical fiber monitoring link model, the optical parameter-switch port state feature library of the switch port is constructed to obtain the abnormal port-optical parameter database. This database contains several groups of optical feature parameters and port state type data corresponding to these parameters. In this way, the abnormal state of the switch port can be accurately judged by analyzing and comparing the optical parameters. This improves the monitoring accuracy and real-time performance of the port state. By establishing the optical parameter-switch port state feature library and the quantitative abnormal judgment threshold matrix, the state of the switch port can be accurately judged and classified, and the situation of false alarm and missed alarm can be avoided, thereby improving the precision and accuracy of monitoring. The optical fiber monitoring link can be monitored in real time by pulse light detection, and real-time optical detection monitoring data can be obtained. These data reflect the real-time state of the optical fiber monitoring link and include real-time spectrum detection feature parameters. This can realize real-time monitoring of the optical fiber monitoring link between the switch port and the opposite device, and can timely discover and respond to changes in the link state, thereby reflecting the operating state of the switch port. By comparing the real-time spectrum detection characteristic parameters with the quantitative abnormal judgment threshold matrix, it is possible to determine whether an abnormal situation exists. When at least one parameter in the real-time spectrum detection characteristic parameters exceeds the corresponding threshold in the quantitative abnormal judgment threshold matrix, the abnormal port of the switch can be located according to the real-time spectrum detection characteristic parameters, and the coordinate data of the abnormal port of the switch can be obtained. This can quickly locate the abnormal port in the switch, so that measures can be taken in time to handle the fault and avoid network communication interruption and data loss. By comparing the real-time monitoring data with the parameters in the database, the abnormal type of the switch port can be accurately determined. This provides accurate identification and classification of the abnormal type of the switch, and provides targeted measures for subsequent processing and repair. In summary, the present invention can timely discover and respond to switch port faults through real-time monitoring and rapid judgment of abnormal situations, and reduce the problems of network communication interruption and increased delay. The present invention can improve monitoring efficiency, real-time performance, and accuracy, and realize rapid positioning and processing of abnormal ports. At the same time, it provides real-time network status information through visual display, thereby comprehensively improving the effect and value of network monitoring.
[0031] Preferably, step S1 comprises the following steps:
[0032] Step S11: collecting hardware parameters of the switch port to obtain switch port configuration data;
[0033] Specifically, for example, you can use network management software (such as Cisco Prime Infrastructure) or a command line interface (CLI) to log in to the switch. For each switch port, execute a command (such as show interface) to obtain the port's hardware parameters, including rate, duplex mode, bandwidth limit, etc. These parameters describe the capabilities and configuration status of the switch port. The collected hardware parameters are sorted and recorded to form the configuration data of the switch port. This may include detailed information such as port number, rate, duplex mode, bandwidth limit, etc.
[0034] Step S12: collecting network identification parameters of the peer device, thereby obtaining address data of the peer device;
[0035] Specifically, for example, you can use a network management tool or command line interface to log in to the peer device (such as a server, router, or firewall). For each peer device, execute a command (such as show interface) to obtain the device's network identification parameters, such as IP address, MAC address, subnet mask, etc. These parameters describe the unique identification and connection method of the peer device in the network. Arrange and record the collected network identification parameters to form the address data of the peer device. This may include detailed information such as device name, IP address, MAC address, etc.
[0036] Step S13: formulating a fiber monitoring link connection plan between the switch port and the peer device according to the switch port configuration data and the peer device address data, thereby obtaining the fiber monitoring link connection plan;
[0037] Specifically, for example, the fiber optic monitoring link connection mode between each switch port and the peer device can be determined by combining the switch port configuration data and the peer device address data. This may be determined based on factors such as the port rate, duplex mode, and location of the peer device. For example, if the switch port is configured as Gigabit Ethernet and the peer device is a server, you can choose to use a Gigabit Ethernet fiber optic module and a fiber optic patch cord for connection. Organize and record the fiber optic monitoring link connection plan, including the connection mode between the switch port and the peer device and the fiber optic module, fiber optic patch cord, and other information used.
[0038] Step S14: Connecting the switch port to the peer device via the optical fiber monitoring link and arranging the distributed optical sensors according to the optical fiber connection path data in the optical fiber monitoring link connection scheme, and collecting benchmark test data for the distributed optical sensors, thereby obtaining an initial detection data set;
[0039] Specifically, for example, the optical fiber monitoring link between the switch port and the opposite device can be connected according to the design requirements based on the optical fiber connection path data in the optical fiber monitoring link connection scheme. This includes selecting appropriate optical fiber jumpers and optical fiber connectors and connecting them to the corresponding ports and devices. Distributed optical sensors, such as fiber optic sensor arrays, are arranged on the optical fiber monitoring link. According to the design requirements, the sensors are distributed at appropriate locations of the optical fiber monitoring link to achieve monitoring and fault detection of the optical fiber monitoring link. Benchmark test data collection is performed on the distributed optical sensors to obtain an initial detection data set. This involves sending a standard test signal to the sensor and recording the optical parameter data returned by the sensor, such as optical power, attenuation, reflection loss, etc. Through the benchmark test data, a benchmark data set for the optical fiber monitoring link can be established for subsequent fault diagnosis and performance monitoring.
[0040] Step S15: constructing a photoelectric conversion model for the switch port configuration data and the initial detection data set, thereby obtaining a photoelectric conversion model;
[0041] Specifically, for example, the switch port configuration data can be combined with the initial detection data set to construct an optoelectronic conversion model. This involves using statistical or mathematical methods to associate optical parameter data with the configuration parameters of the switch port and establish a conversion model. For example, by analyzing optical power and attenuation data and comparing them with the configuration parameters of the switch port, such as the rate and bandwidth limit, an optoelectronic conversion model can be established to convert optical parameters into status and performance information of the switch port.
[0042] Step S16: Acquire actual optical fiber line topology data of the switch port and the opposite device; perform optical fiber monitoring link modeling on the actual optical fiber line topology data and the optoelectronic conversion model, thereby acquiring an optical fiber monitoring link model.
[0043] Specifically, for example, the actual optical fiber line between the switch port and the opposite device can be investigated and measured to obtain the actual optical fiber line topology data. This includes information such as the length, connection points, and paths of the optical fiber. An optical fiber tester (such as an optical time domain reflectometer) can be used to measure and analyze the optical fiber monitoring link to obtain accurate optical fiber line topology data. The optical fiber monitoring link is modeled by combining the actual optical fiber line topology data and the optoelectronic conversion model. This involves associating the topology data of the actual optical fiber line with the optoelectronic conversion model to establish an optical fiber monitoring link model. The optical fiber monitoring link model can include the length of the optical fiber, connection points, optical parameters, status and performance information of the switch port, etc.
[0044] The present invention can obtain the configuration data of the switch port by collecting hardware parameters of the switch port. These configuration data include information such as the rate, mode, and protocol of the port. This can understand and record the configuration of the switch port, and provide the necessary data basis for the subsequent formulation of the optical fiber monitoring link connection plan and the construction of the photoelectric conversion model. By collecting network identification parameters of the opposite device, the address data of the opposite device can be obtained. These address data include information such as the IP address and MAC address of the device. This can understand the network identification of the opposite device, and provide the necessary data basis for the subsequent formulation of the optical fiber monitoring link connection plan and the optical fiber monitoring link modeling. According to the switch port configuration data and the opposite device address data, the optical fiber monitoring link connection plan between the switch port and the opposite device is formulated. This plan determines the connection mode of the optical fiber monitoring link and ensures the correct connection of the monitoring link. This can establish a correct monitoring link, and provide an accurate and reliable data basis for subsequent optical fiber monitoring. According to the optical fiber connection path data in the optical fiber monitoring link connection plan, the switch port is connected to the opposite device, and a distributed optical sensor is arranged. At the same time, the distributed optical sensor is subjected to benchmark test data collection to obtain an initial detection data set. This can establish the physical connection of the optical fiber monitoring link and obtain the benchmark data of the optical sensor, providing the necessary data basis for the subsequent construction of the optoelectronic conversion model and the modeling of the optical fiber monitoring link. By constructing the optoelectronic conversion model for the switch port configuration data and the initial detection data set, an optoelectronic conversion model can be established. This model can associate the optical parameters with the state of the switch port and realize the conversion of the optical parameters to the port state. This can establish the optoelectronic conversion model, providing the necessary data basis for the subsequent modeling and abnormal judgment of the optical fiber monitoring link. By establishing the optical fiber monitoring link model, the performance and state of the optical fiber monitoring link can be simulated and predicted, providing an accurate and reliable reference for the subsequent optical fiber monitoring. The present invention is to ensure the correct configuration and connection of the optical fiber monitoring link, provide data basis and accuracy, establish the connection scheme and physical connection of the optical fiber monitoring link, construct the optoelectronic conversion model and the optical fiber monitoring link model, and provide the necessary basis and decision support for the operation and maintenance of the optical fiber monitoring system.
[0045] Preferably, step S2 comprises the following steps:
[0046] Step S21: obtaining a port photoelectric parameter data set, wherein the port photoelectric parameter data set includes a plurality of port status type data and its corresponding port operation photoelectric parameters;
[0047] Specifically, for example, for each switch port, its port optical parameter data set can be obtained. This includes data of different port status types and corresponding port operation optical parameters. Port status type data may include the open / closed state of the port, the connection / disconnection state, the port connection loss, the abnormal port signal-to-noise ratio, etc. The port operation optical parameters may include parameters such as optical power, attenuation, and signal-to-noise ratio. These port optical parameter data may be obtained using optical test instruments or network management software.
[0048] Step S22: traverse the port optoelectronic parameter data set, project the port operation optoelectronic parameters to the switch port model in the optical fiber monitoring link model for virtual operation, and demodulate and detect the optical transmission link in the optical fiber monitoring link model to obtain virtual detection spectrum characteristic parameters;
[0049] Specifically, for example, the port optoelectronic parameter data set can be traversed, and the operating optoelectronic parameters of each port can be projected onto the switch port model in the optical fiber monitoring link model for virtual operation. According to the optoelectronic conversion model and the optical fiber monitoring link model, the optoelectronic parameters of the port are converted into corresponding optical signal characteristics. This may involve calculating parameters such as optical power, attenuation, and signal-to-noise ratio. The optical signal characteristics of the virtual operation are applied to the switch port model in the optical fiber monitoring link model to simulate the optical signal transmission of the port under a specific state. In the optical fiber monitoring link model, the optical transmission link is demodulated and detected according to the optical signal characteristics of the virtual operation. The demodulation detection can include the calculation and analysis of parameters such as optical power, optical attenuation, and signal-to-noise ratio to obtain virtual detection spectrum characteristic parameters. These virtual detection spectrum characteristic parameters can represent information such as transmission quality, fault status, and optical signal loss in the optical fiber monitoring link.
[0050] Step S23: Correlate and calibrate the port state type data corresponding to the port operation optoelectronic parameters with the virtual detection spectrum characteristic parameters, thereby obtaining port state-optoelectronic mapping data;
[0051] Specifically, for example, a data collection tool can be used to collect port operation optoelectronic parameter data, corresponding port state type data, and virtual detection spectrum characteristic parameter data. Ensure the accuracy and completeness of the data. Use data processing tools to clean and preprocess the collected data, including removing outliers, filling missing values, etc. Based on the cleaned data, use machine learning algorithms (such as regression, classification, etc.) or statistical analysis techniques to establish an association mapping model or rule set to determine the optoelectronic parameter range or characteristic features under different states. For the port operation optoelectronic parameter data set, apply the established association mapping model or rule set to perform a mapping operation to obtain the port state-optoelectronic mapping data. For each port operation optoelectronic parameter, determine its corresponding port state type data according to the association mapping model or rule set. Combine the port operation optoelectronic parameters and the corresponding port state type data to establish a mapping relationship.
[0052] Step S24: according to the port status-optical-electrical mapping data, the corresponding data of the port operation optical-electrical parameters with normal port operation status are eliminated, so as to obtain the abnormal port operation optical-electrical parameters;
[0053] Specifically, for example, a data processing tool can be used to determine the corresponding data of the normal port state type according to the port state-photoelectric mapping data. For each data point in the port operation photoelectric parameter data set, the associated port state-photoelectric mapping data is used to determine whether the corresponding port state type is normal. The corresponding data of the normal port operation state is removed from the data set to obtain the abnormal port operation photoelectric parameter data set.
[0054] Step S25: constructing an optical parameter-switch port state feature library for the port state type data corresponding to the optical and electrical parameters of the abnormal port operation and the virtual detection spectrum feature parameters according to the port state-optical mapping data, thereby obtaining an abnormal port-optical parameter database, wherein the abnormal port-optical parameter database includes a plurality of groups of optical feature parameters and the port state type data corresponding to the plurality of groups of optical feature parameters;
[0055] Specifically, for example, Python's data association tools, such as Pandas or SQL databases, can be used to associate the abnormal port operation photoelectric parameter data with the corresponding port state type data and the virtual detection spectrum characteristic parameter data. For example, the merge function of Pandas is used to merge the data sets according to the shared columns, or the JOIN operation of the SQL database is used to connect the data tables. Use a suitable database management system (such as MySQL, PostgreSQL, etc.) or NoSQL database (such as MongoDB, Cassandra, etc.) to establish an optical parameter-switch port state feature library. Each group of abnormal port operation photoelectric parameter data, the corresponding port state type data, and the virtual detection spectrum characteristic parameter data are stored as a record in the database. For example, a table is created by the CREATE TABLE statement of MySQL, and the data is inserted into the table using the INSERT statement.
[0056] Step S26: Calculate the optical fiber monitoring link threshold for the optical fiber monitoring link between the switch port and the opposite device according to the abnormal port-optical parameter database, thereby obtaining a quantitative abnormality judgment threshold matrix.
[0057] Specifically, for example, the Python programming language and scientific computing libraries, such as NumPy and SciPy, can be used to extract optical characteristic parameter data of abnormal ports from the abnormal port-optical parameter database. For example, relevant data is retrieved from the database through SQL query statements, and the data is loaded into Python for processing using the Pandas library. According to the optical characteristic parameter data, a statistical analysis method or domain knowledge is used to determine the method for calculating the threshold. For example, the functions in the NumPy and SciPy libraries are used to calculate statistics such as the mean and standard deviation of the optical parameter data, or empirical rules are set based on the distribution of the optical characteristic parameters and domain knowledge to determine the threshold. The calculated thresholds are combined into a threshold matrix, and the NumPy library can be used to create and operate matrices. For example, a two-dimensional array or matrix is created using NumPy functions, and the calculated thresholds are filled into the corresponding positions.
[0058] The present invention can obtain a series of port state type data and the port operation photoelectric parameters corresponding thereto by acquiring the port photoelectric parameter data set. These data sets provide the relationship between the port state and the operation photoelectric parameters, and provide the necessary data basis for the mapping between the optical parameters and the switch port state in the subsequent steps. By projecting the port operation photoelectric parameters to the switch port model in the optical fiber monitoring link model for virtual operation, and demodulating and detecting the optical transmission link, the virtual detection spectrum characteristic parameters can be obtained. These characteristic parameters reflect the optical characteristics and transmission performance of the optical fiber monitoring link, which provides important data for subsequent abnormal judgment and optical parameter-switch port state mapping. By correlating and calibrating the port operation photoelectric parameters and the virtual detection spectrum characteristic parameters, the port state-photoelectric mapping data can be obtained. These data provide the mapping relationship between the port state and the photoelectric parameters, and provide accurate correlation data for subsequent abnormal port detection and optical parameter-switch port state mapping. According to the port state-photoelectric mapping data, the data of the normal port operation state in the port operation photoelectric parameters is eliminated, so as to obtain the abnormal port operation photoelectric parameters. These abnormal port operation photoelectric parameters reflect the switch port with problems in the optical fiber monitoring link, which helps to accurately locate and identify potential abnormal switch port operation conditions. This improves the accuracy and efficiency of anomaly detection. According to the port state-optical-electrical mapping data, the port state type data corresponding to the optical parameters of the abnormal port operation and the virtual detection spectrum feature parameters are combined to construct an optical parameter-switch port state feature library. This feature library provides the correspondence between the optical feature parameters and the switch port status, providing an important basis for subsequent anomaly judgment and fault diagnosis. By calculating the threshold matrix, the anomaly judgment can be quantified, that is, whether there is an abnormal situation based on the change of the optical parameters, providing quantitative indicators for the system's anomaly detection and fault diagnosis.
[0059] Preferably, step S26 comprises the following steps:
[0060] Step S261: classify and filter the port status type data in the abnormal port-optical parameter database, thereby obtaining a plurality of port abnormal status type data;
[0061] Specifically, for example, an SQL query statement can be used to retrieve port status type data from an abnormal port-optical parameter database. According to actual needs, feature extraction and conversion are performed on the port status type data to facilitate the application of machine learning algorithms. Based on the labeled port status type data, a machine learning algorithm is used to build and train a model, and unlabeled port status type data is predicted and classified. Based on the classification results, each category of abnormal status type data is selected as the next analysis object. For example, a classification algorithm such as a support vector machine (SVM), a decision tree, or a random forest can be used for training and prediction.
[0062] Step S262: based on the optical-electrical parameters of the abnormal port operation, representative optical-electrical parameters of each port abnormal state type data are screened, so as to obtain several groups of representative operating parameters of the port abnormal state;
[0063] Specifically, for example, an SQL query statement can be used to retrieve port abnormal state type data from the abnormal port-optical parameter database. For each group of port abnormal state type data, screening is performed based on the abnormal port operating optoelectronic parameters. Python's data processing library (such as Pandas) can be used to calculate statistics such as mean and median, or other representative indicators can be selected according to specific needs. The representative operating parameters of several groups of port abnormal states obtained by screening are stored and can be stored in a database or exported to other data formats. These representative operating parameters can be used as the basis for subsequent analysis for applications such as anomaly detection and status assessment.
[0064] Step S263: selecting the normal state parameters of the port operation optical and electrical parameters according to the port state-optical and electrical mapping data, thereby obtaining the normal port operation optical and electrical parameters;
[0065] Specifically, for example, a SQL query statement can be used to retrieve normal port data from the port status-photoelectric mapping data. The port operation photoelectric parameters are screened according to the port status-photoelectric mapping data. Python data processing libraries (such as Pandas) and related functions can be used to filter according to predefined threshold ranges or other rules. The selected normal port operation photoelectric parameters are stored and can be stored in a database or exported to other data formats.
[0066] Step S264: Scatter plotting several groups of representative operation parameters of abnormal port states and normal port operation photoelectric parameters and connecting the groups, thereby obtaining a line graph of the port operation photoelectric parameters;
[0067] Specifically, for example, several groups of port abnormal state representative operating parameters and normal port operating photoelectric parameters can be organized into a suitable data structure, for example, using a data processing library in Python (such as Pandas) to organize the data into a DataFrame. Use a visualization library, such as Matplotlib or Seaborn, to draw a scatter plot. Use the port abnormal state representative operating parameters and the normal port operating photoelectric parameters as horizontal and vertical coordinates to draw a scatter plot. Draw lines for the same set of data. If needed, you can use the functions in Matplotlib or Seaborn to draw lines to connect the scattered points to form a line graph. Add legends, axis labels, etc. to beautify the chart, and save or display the generated port operating photoelectric parameter line graph.
[0068] Step S265: performing difference calculation on the same attribute parameters in the normal state of the port and the abnormal state of the port according to the line graph of the photoelectric parameters of the port operation, and selecting the absolute value of the calculation result as the evaluation threshold point data, thereby obtaining a plurality of evaluation threshold data; eliminating the data corresponding to the plurality of evaluation threshold data that is less than the preset evaluation threshold, thereby obtaining the abnormal judgment threshold matrix;
[0069] Specifically, for example, it can be ensured that the data of the line graph of the photoelectric parameters of the port operation in the normal state and the abnormal state of the port have been obtained. Subtract the same attribute parameters in the normal state and the abnormal state of the port to obtain the difference. Python's data processing library (such as Pandas) can be used to perform corresponding calculations. Perform an absolute value operation on the difference to obtain the evaluation threshold point data. According to the preset evaluation threshold, filter out data points greater than or equal to the threshold as abnormal judgment threshold data. Arrange the abnormal judgment threshold data in the form of a threshold matrix for subsequent use.
[0070] Step S266: Regularize the abnormality judgment threshold to obtain a quantitative abnormality judgment threshold matrix.
[0071] Specifically, for example, it can be ensured that the data of the abnormal judgment threshold matrix has been obtained. The abnormal judgment threshold is regularized using a suitable data processing method. For example, the data can be normalized using a linear transformation, a maximum and minimum value scaling method, and the like. The abnormal judgment threshold data after the regularization processing is formed into a quantized threshold matrix for subsequent use.
[0072] The present invention provides more fine-grained abnormal information by classifying abnormal port data according to state types, and provides a more accurate data basis for subsequent abnormal judgment and fault diagnosis. These abnormal state type data reflect different types of port abnormal conditions, which are helpful for further analysis and processing of abnormal conditions. Based on the abnormal port operation photoelectric parameters, each port abnormal state type data is screened for representative operation photoelectric parameters, and several groups of port abnormal state representative operation parameters can be obtained. These representative operation parameters reflect the typical port operation photoelectric parameters under each abnormal state type, which are helpful for identifying and describing different types of abnormal conditions, providing more representative data for abnormal judgment and fault diagnosis, and improving the accuracy and interpretability of the system. According to the port state-photoelectric mapping data, the port operation photoelectric parameters are selected for the port normal state parameters, and the normal port operation photoelectric parameters can be obtained. These normal state parameters reflect the photoelectric parameter range under normal working conditions, which are used for comparison and judgment with abnormal states. This can establish a reference range for the normal port operation photoelectric parameters, provide a benchmark for abnormal judgment and fault diagnosis, and improve the sensitivity and accuracy of the system to abnormal conditions. By scatter plotting the representative operating parameters of several groups of ports in abnormal state and the operating photoelectric parameters of normal ports and connecting the same group, a line chart of the port operating photoelectric parameters can be obtained. This line chart reflects the changing trend of the operating parameters under different states, which helps to intuitively observe and compare the difference between the abnormal state and the normal state. Through the visual display of the line chart, it helps users to intuitively understand the difference between the abnormal state and the normal state, providing an intuitive basis for abnormal judgment and fault diagnosis. According to the line chart of the port operating photoelectric parameters, the degree of abnormality is quantified through difference calculation and selection of evaluation thresholds, providing quantifiable indicators for abnormal judgment and fault diagnosis. These evaluation threshold data reflect the parameter difference between the abnormal state and the normal state, and are used to quantify the degree of abnormality. Through regularization processing, the quantitative standard of the abnormal judgment threshold is unified, the consistency and comparability of abnormal judgment are improved, and the basis for the system's automatic abnormality detection and fault diagnosis is provided.
[0073] Preferably, step S3 comprises the following steps:
[0074] Step S31: measuring the optical fiber length of the optical fiber monitoring link between the switch port and the opposite end device, thereby obtaining the total length data of the optical fiber monitoring link;
[0075] Specifically, for example, equipment and tools for measuring the length of optical fiber can be prepared, such as an optical fiber length measuring instrument, a light source, and an optical power meter. According to the guidance of the measuring instrument, select appropriate measurement modes and parameters, such as unidirectional or bidirectional measurement, measurement wavelength, etc. Start the optical fiber length measuring instrument, which will send an optical signal and measure the returned optical power. The measuring instrument calculates the length of the optical fiber according to the measurement principle. According to the data displayed or output by the measuring instrument, obtain the total length data of the optical fiber monitoring link. The data can be recorded or saved in a file for subsequent use.
[0076] Step S32: Calculate the time required for a single optical fiber transmission of the optical fiber monitoring link according to the total length data of the optical fiber monitoring link, thereby obtaining the length data of the single optical fiber transmission time;
[0077] Specifically, for example, the previously acquired total length data of the optical fiber monitoring link can be used. According to the technical specifications of the optical fiber and the data provided by the manufacturer, the transmission speed of the optical fiber (usually expressed as a data transmission rate per unit length, such as Mbps / km) is determined. The total length data of the optical fiber monitoring link is divided by the transmission speed of the optical fiber to obtain the time length data required for a single transmission of the optical fiber. The calculation result can be expressed in seconds, milliseconds or other appropriate time units. Alternatively, the time length required for a single transmission of the optical fiber is calculated by using the optical fiber propagation time calculation formula.
[0078] Step S33: using the single transmission time length data of the optical fiber as the detection signal collection time interval data; performing pulse light detection and real-time monitoring of the optical fiber monitoring link between the switch port and the opposite device according to the single transmission time length data of the optical fiber based on the optical fiber monitoring link connection scheme, thereby obtaining real-time optical detection monitoring data;
[0079] Specifically, for example, the optical fiber single transmission time length data calculated previously can be used as the time interval for real-time monitoring to periodically collect optical fiber monitoring data. According to the optical fiber monitoring link connection plan, a pulse light detection device is installed between the switch port and the opposite device. According to the optical fiber single transmission time length data, the sampling frequency and sampling time of the pulse light detection device are set. The pulse light detection device is started to start sending optical pulses and receiving returned optical signals. According to the output results of the pulse light detection device, real-time optical detection monitoring data is obtained. Data can be obtained through the device interface or other methods.
[0080] Step S34: extracting spectral characteristic parameters of the real-time light detection monitoring data according to the quantitative abnormality judgment threshold matrix, thereby obtaining real-time spectral detection characteristic parameters.
[0081] Specifically, for example, the spectral characteristic parameters corresponding to the same attribute data can be extracted from the real-time light detection monitoring data according to the parameter attributes corresponding to each threshold in the quantitative abnormality judgment threshold matrix. Various spectral analysis methods, such as peak detection, frequency domain analysis, waveform analysis and other technologies, can be used to extract the relevant characteristic parameters of the spectrum.
[0082] The present invention can provide key physical parameters by accurately measuring the total length of the optical fiber monitoring link, laying a foundation for the implementation of the monitoring method. It enables calculation and analysis to be performed according to the actual length of the optical fiber monitoring link during the switch port monitoring process, so as to more accurately judge the state of the switch port. By calculating the time length of a single transmission of a signal in the optical fiber monitoring link, the time interval of signal detection can be determined. This time interval is a key parameter in the monitoring method, which determines the real-time and accuracy of the monitoring system for the port state. The optical fiber single transmission time length data is used as the detection signal acquisition time interval data to monitor the optical fiber monitoring link in real time. By real-time monitoring of the optical detection data in the optical fiber monitoring link, the real-time change of light intensity can be obtained. These data provide real-time information on the port state, so that the monitoring method can timely discover abnormal conditions and faults in the link. By extracting the spectral characteristics of the optical signal, the spectral distribution of the port state can be quantitatively described. These parameters provide quantitative indicators for the optical signal, making abnormal judgment and fault diagnosis more accurate and reliable. They provide reliable data support for the monitoring method, making the monitoring of the port state more accurate and feasible.
[0083] Preferably, in step S32, the time required for a single optical fiber transmission of the optical fiber monitoring link is calculated according to the total length data of the optical fiber monitoring link by using an optical fiber propagation time calculation formula, wherein the optical fiber propagation time calculation formula is as follows:
[0084]
[0085] Where T is the single transmission time length of the optical fiber, v p is the phase velocity in the optical fiber, λ is the wavelength of light, L is the actual length of the optical fiber, α(T) is the temperature attenuation coefficient of the optical fiber, β(T) is the temperature dispersion coefficient of the optical fiber, γ is the nonlinear coefficient of the optical fiber, θ is the incident angle of light, E is the energy of the light, and E0 is the reference energy.
[0086] The present invention constructs a formula for calculating the optical fiber propagation time, in which Represents the basic time it takes for light to propagate in an optical fiber. By integrating the fiber length L, this can be used to calculate the total time it takes for light to travel from one end of the fiber to the other without taking into account any other factors such as attenuation or dispersion. This is the basis for calculating fiber propagation time. α(T)L represents the attenuation of the optical signal in the optical fiber due to material absorption and scattering. The temperature attenuation coefficient α(T) multiplied by the fiber length L gives the total attenuation of the optical signal over the entire length of the fiber. This helps us understand and predict the intensity changes of the optical signal during transmission. β(T)L 2 It represents the time delay caused by the different propagation speeds of light of different wavelengths in the optical fiber due to the dispersion characteristics of the optical fiber material. The dispersion coefficient β(T) is multiplied by the square of the optical fiber length L 2 It reflects the effect of dispersion on light propagation time. This is very important for designing low-dispersion optical fibers and optimizing optical fiber communication systems. Represents the impact of the nonlinear effect of the optical fiber material on the light propagation time. The nonlinear coefficient γ divided by the cosine of the light incident angle cos(θ) can help us evaluate the magnitude of the nonlinear effect in the optical fiber, which is crucial to understanding the propagation behavior of optical signals in the optical fiber. Represents the effect of the energy of light on the propagation time. The logarithm of the energy E and the reference energy E0, and then taking the square root, provides a way to measure the effect of changes in the energy of the optical signal on the propagation time. The inclusion of the energy term means that the formula can adapt to changes in the energy of the light source, which is essential for dynamically adjusting the optical signal in the fiber-optic communication system. By comprehensively considering various physical phenomena, the formula can accurately predict the propagation time of light in the optical fiber, which is essential for synchronization and timing in the fiber-optic communication system, and improves the accuracy of monitoring the operating status of the switch port.
[0087] Preferably, step S34 includes the following steps:
[0088] Step S341: performing wavelet transform on the real-time light detection monitoring data to obtain a multi-scale wavelet coefficient matrix;
[0089] Specifically, for example, real-time monitoring data obtained by an optical fiber pulse light detection device can be prepared. According to the needs and application scenarios, an appropriate wavelet basis function is selected, which will be used for wavelet transform. The real-time light detection monitoring data is subjected to wavelet transform using the selected wavelet basis function. The existing wavelet library or algorithm can be used for calculation. The result obtained by the wavelet transform is decomposed into wavelet coefficient matrices of multiple scales. Each matrix element represents the wavelet coefficient value at the corresponding scale.
[0090] Step S342: recording the matrix coordinates corresponding to each wavelet coefficient in the multi-scale wavelet coefficient matrix, thereby obtaining a wavelet coefficient index table; determining the wavelength range of the wavelet coefficient corresponding to each coordinate in the wavelet coefficient index table and mapping the determined wavelength range with the wavelet coefficient index table, thereby obtaining a wavelength-index mapping table;
[0091] Specifically, for example, each wavelet coefficient in the multi-scale wavelet coefficient matrix can be traversed. The matrix coordinates corresponding to each wavelet coefficient are recorded and recorded in the wavelet coefficient index table. According to the position of each coordinate and the fiber characteristics, the corresponding wavelength range is determined. The determined wavelength range is mapped with the wavelet coefficient index table to obtain a wavelength-index mapping table. In this way, the corresponding index value can be queried by a given wavelength.
[0092] Step S343: quantizing and encoding the multi-scale wavelet coefficient matrix to obtain a port detection data bit stream;
[0093] Specifically, for example, each wavelet coefficient in the multi-scale wavelet coefficient matrix can be quantized. Appropriate quantization methods and parameters can be selected to map continuous wavelet coefficients to discrete quantized values. Encoding operations are performed on the quantized wavelet coefficients to convert the quantized values into bit streams. Appropriate encoding methods and algorithms can be selected to achieve efficient data compression and transmission. The encoded bit stream is used as a representation of port detection data for subsequent analysis and processing.
[0094] Step S344: determining the spectral attribute abnormal range of the quantitative abnormality judgment threshold matrix, thereby obtaining a spectral abnormality attribute data table;
[0095] Specifically, for example, a quantitative anomaly judgment threshold matrix can be prepared, which contains thresholds for judging the anomalies of spectral properties. These thresholds can be determined based on previous data analysis calculations, experience, or expert knowledge. Observe the distribution of the threshold matrix to understand the value range and distribution characteristics of different thresholds. Analyze the association between the threshold and the actual spectral properties, and consider the relationship between different thresholds and spectral property anomalies. Based on the analysis results, determine the anomaly range of the spectral properties. This can be an interval range or a set of discrete values used to determine whether the spectral properties are abnormal. Based on the determined anomaly range, generate a spectral anomaly attribute data table to record the anomalies of the spectral properties, including the attribute name, value range or threshold range, and a flag to mark whether the spectral property is abnormal.
[0096] Step S345: extracting the wavelength range data corresponding to the spectrum anomaly attribute data table in the port detection data bit stream according to the wavelength-index mapping table, thereby obtaining real-time spectrum detection characteristic parameters.
[0097] Specifically, for example, the wavelength range to be extracted can be determined based on the spectral anomaly attribute data table. These wavelength ranges can be subsets of the spectral attribute anomaly ranges, which are used to extract spectral data related to the anomaly attributes. According to the wavelength-index mapping table, the data corresponding to the wavelength range in the spectral anomaly attribute data table is extracted from the bit stream to obtain real-time spectral detection characteristic parameters. This can be accomplished by the following steps: traverse the wavelength ranges in the spectral anomaly attribute data table, and perform the following operations on each wavelength range: according to the wavelength-index mapping table, find the corresponding index range to indicate the position of the wavelength range in the bit stream. Extract the data corresponding to the index range from the bit stream and combine them into real-time spectral detection characteristic parameters. Record the extracted real-time spectral detection characteristic parameters for subsequent analysis, processing or decision-making.
[0098] The present invention converts the original light detection data into frequency domain representation through wavelet transform to obtain wavelet coefficient matrices of different scales. The multi-scale wavelet coefficient matrix provides a description of different frequency components of the optical signal, and can capture the detailed features and spectrum information of the optical signal. By recording the matrix coordinates corresponding to each wavelet coefficient in the multi-scale wavelet coefficient matrix, a wavelet coefficient index table is obtained. At the same time, according to the wavelet coefficient corresponding to each coordinate in the wavelet coefficient index table, the wavelength range is determined, and the determined wavelength range is mapped with the wavelet coefficient index table to obtain a wavelength-index mapping table. This establishes a corresponding relationship between the wavelet coefficient and the wavelength range, so that the subsequent spectral feature extraction can accurately associate the wavelet coefficient with the corresponding wavelength range. By converting the multi-scale wavelet coefficient matrix into a series of bit streams, data compression and encoding of the optical signal are achieved. Through quantization and encoding, the dimension and storage space requirements of the data can be reduced, and the efficiency and speed of data transmission can be improved. According to the quantization abnormality judgment threshold matrix, the spectral attribute abnormal range is determined. The spectral abnormality attribute data table provides a description of the abnormal situation of the optical signal in different wavelength ranges, and can identify and record abnormal features in the optical signal spectrum. According to the guidance of the wavelength-index mapping table, data related to spectral anomaly properties are extracted from the bit stream. Real-time spectral detection characteristic parameters provide a quantitative description of the abnormal characteristics in the optical signal spectrum, providing a reliable indicator for subsequent abnormal judgment and fault diagnosis.
[0099] Preferably, step S4 comprises the following steps:
[0100] Step S41: comparing the real-time spectrum detection characteristic parameters with the quantitative abnormality judgment threshold matrix;
[0101] Specifically, for example, each real-time spectrum detection characteristic parameter can be compared with a corresponding threshold in the quantitative abnormality judgment threshold matrix. The comparison can be performed by comparing parameters one by one, or by using vectorized operations to compare all parameters in batches.
[0102] Step S42: when each parameter in the real-time spectrum detection characteristic parameter does not exceed any corresponding threshold value in the quantitative abnormality judgment threshold value matrix, continue to monitor the real-time spectrum detection characteristic parameter of the next time period;
[0103] Specifically, for example, if each parameter in the real-time spectrum detection characteristic parameters does not exceed any corresponding threshold in the quantitative abnormality judgment threshold matrix, the real-time spectrum detection characteristic parameters of the next time period continue to be monitored.
[0104] Step S43: when at least one parameter in the real-time spectrum detection characteristic parameters exceeds the corresponding threshold in the quantitative abnormality judgment threshold matrix, the real-time spectrum detection characteristic parameters are used to locate the optical fiber monitoring link, thereby obtaining optical fiber abnormal section identification data;
[0105] Specifically, for example, the real-time spectrum detection characteristic parameters can be traversed to check whether each parameter exceeds the corresponding threshold in the quantitative abnormality judgment threshold matrix. If at least one parameter exceeds the corresponding threshold, it means that the switch port status is abnormal. According to the locating method of spectrum anomaly, the real-time spectrum detection characteristic parameters are used to locate the optical fiber monitoring link, and the identification data of the abnormal optical fiber section is obtained.
[0106] Step S44: locating the abnormal port of the switch connected to the optical fiber monitoring link corresponding to the optical fiber abnormal segment identification data, thereby obtaining the coordinate data of the abnormal port of the switch.
[0107] Specifically, for example, the switch connected to the abnormal optical fiber segment can be determined based on the layout and connection relationship of the optical fiber monitoring link. The abnormal switch port is located for the connected switch, which may be operated using a switch monitoring system or a network management tool. In the process of locating the abnormal switch port, the coordinate data of the abnormal port in the switch is obtained to identify the location information of the abnormal port.
[0108] The present invention determines whether the spectral characteristic parameters exceed the preset abnormal threshold value by comparison. By comparing with the threshold matrix, it can be determined whether the spectral characteristic parameters are within the normal range, thereby determining whether there is an abnormal situation of the optical fiber monitoring link, and further reflecting the operating state of the switch port. When all the spectral characteristic parameters do not exceed the abnormal threshold value, it means that the switch port monitored by the optical fiber monitoring link is in a normal state, and the next time period can be continuously monitored to ensure the stability and reliability of the switch. When at least one parameter in the real-time spectral detection characteristic parameters exceeds the corresponding threshold value in the quantitative abnormal judgment threshold matrix, by detecting the spectral characteristic parameters exceeding the abnormal threshold value, it can be determined that there are abnormal sections in the optical fiber monitoring link, and further determine the abnormal position and range of the optical fiber monitoring link. Through the optical fiber abnormal section identification data, it can be determined that there are abnormal ports in the switch connected to the optical fiber monitoring link. Further positioning the abnormal port of the switch can obtain the coordinate data of the abnormal port of the switch, provide specific information on the position of the abnormal port, and facilitate subsequent fault diagnosis and maintenance operations.
[0109] Preferably, step S42 includes the following steps:
[0110] Step S421: when each parameter in the real-time spectrum detection characteristic parameter does not exceed any corresponding threshold in the quantitative abnormality judgment threshold matrix;
[0111] Specifically, for example, each real-time spectrum detection characteristic parameter can be checked one by one to see whether it exceeds any corresponding threshold in the quantitative abnormality judgment threshold matrix. If all parameters do not exceed any corresponding threshold, it means that the switch port is in normal operation.
[0112] Step S422: sending a coded photon frequency sweep pulse sequence to the optical fiber monitoring link, and simultaneously collecting nonlinear Raman scattering signals from the optical fiber monitoring link, thereby obtaining a background Raman noise spectrum signal;
[0113] Specifically, for example, a coded photon swept pulse sequence sending device can be prepared, which can generate a coded photon swept pulse sequence and connect it to the optical fiber monitoring link. Appropriate sweep parameters and pulse sequences are set as needed to generate suitable optical signals. A nonlinear Raman scattering signal acquisition device is prepared to collect nonlinear Raman scattering signals in the optical fiber monitoring link and connect it to the optical fiber monitoring link. Start the coded photon swept pulse sequence sending device and start sending the coded photon swept pulse sequence to the optical fiber monitoring link. Start the nonlinear Raman scattering signal acquisition device and start collecting nonlinear Raman scattering signals for the signals in the optical fiber monitoring link. During the acquisition process, background Raman noise spectrum signals are obtained, which reflect the background signal characteristics in the optical fiber monitoring link.
[0114] Step S423: pre-entering the background Raman noise spectrum signal into a preset optical fiber line health analysis model for pseudo-calculation, thereby obtaining optical fiber line abnormality index data;
[0115] Specifically, for example, a preset optical fiber line health analysis model may be prepared, which has preset algorithms and rules and can be used to analyze the health status of the optical fiber line and calculate abnormal indicator data. The model is a pre-built model for analyzing the health status of the optical fiber monitoring link and calculating abnormal indicator data. The process of building the model may include the following steps: Collect a large amount of optical fiber line data, including data in normal state and various abnormal states. These data can be spectral signals, transmission performance parameters, etc. of the optical fiber line. Preprocess the collected data, including data cleaning, feature extraction, standardization, etc. Ensure the quality and consistency of the data. Select a suitable algorithm and model structure, such as a machine learning algorithm, a deep learning model, etc. Use the training data to train the model so that it can learn the normal and abnormal modes of the optical fiber line. Use the validation data to evaluate the trained model, and adjust the parameters and structure of the model to improve the performance and generalization ability of the model. Input the background Raman noise spectral signal into the preset optical fiber line health analysis model as the input data of the model. In the optical fiber line health analysis model, the algorithm and rules of the model are used to extract useful features from the input spectral signal, such as spectrum shape, peak position, peak intensity, etc. The extracted features are transformed to make them suitable for the input requirements of the model, such as data normalization, dimensionality reduction, etc. The transformed features are input into the model, and the model's algorithms and rules are used to perform mimetic calculations to determine the health status of the optical fiber line. After the mimetic calculations are completed, the calculated optical fiber line abnormality indicator data is obtained from the optical fiber line health analysis model. These data may include the following indicators: Abnormality degree indicator: reflects the abnormality degree of the optical fiber line, such as abnormality score, abnormality probability, etc. Fault type indicator: indicates the possible fault type of the optical fiber line, such as fiber breakage, bending, increased loss, etc.
[0116] Step S424: judging the health status probability density of the optical fiber monitoring link between the switch and the peer device according to the optical fiber line abnormality index data. When it is judged that the optical fiber monitoring link is in a normal operating state, the judgment result is recorded and the process proceeds to step S426; when it is judged that there is a potential fault hidden danger in the optical fiber monitoring link, the process proceeds to step S425;
[0117] Specifically, for example, abnormal indicator data of the optical fiber line, such as optical signal strength, attenuation, loss, optical fiber breakage, bending, loss increase, etc., are obtained from the optical fiber monitoring system or sensor. A health status model of the optical fiber monitoring link is established based on the extracted abnormal indicator data. Modeling can be performed using statistical analysis methods, machine learning algorithms, etc. For example, probability density functions, Gaussian mixture models, support vector machines, etc. can be used to describe the health status of the optical fiber monitoring link. Using the established health status model, the health status probability density of the optical fiber monitoring link is judged. According to the abnormal indicator data input model, the probability density value of the optical fiber monitoring link in normal operation is calculated. According to the judgment result, if the health status probability density of the optical fiber monitoring link is higher than the set threshold, it is judged that the optical fiber monitoring link is in normal operation, and the judgment result is recorded. If the health status probability density is lower than the threshold, it is judged that there is a potential fault hidden danger in the optical fiber monitoring link. According to the judgment result, if the optical fiber monitoring link is judged to be in normal operation, step S426 is entered to perform subsequent operations. If it is judged that there is a potential fault hidden danger, step S425 is entered to classify and locate the hidden danger.
[0118] Step S425: classifying and accurately locating the hidden danger type of the optical fiber monitoring link according to the abnormal index number of the optical fiber line, thereby obtaining hidden danger type identification data and hidden danger coordinate data, and pushing the hidden danger type identification data and hidden danger coordinate data to a preset visualization module for real-time update and display;
[0119] Specifically, for example, the hidden danger types of the optical fiber monitoring link can be classified according to the abnormal indicator data of the optical fiber line using a preset classification algorithm or rule. For example, the hidden danger types can be divided into different categories, such as fiber breakage, bending, increased loss, etc., according to the threshold of the abnormal indicator, pattern matching and other methods. According to the classification results and the abnormal indicator data of the optical fiber line, the hidden dangers can be further accurately located. The specific location or coordinates of the hidden danger can be determined by data analysis and algorithm calculation. This can be achieved by integrating with the geographic information system (GIS), associating the location information of the optical fiber line with the abnormal indicator data, so as to achieve accurate positioning of the hidden danger. The acquired hidden danger type identification data and hidden danger coordinate data are pushed to the preset visualization module. The visualization module can be an interface or system for real-time display and update of the status of the optical fiber monitoring link. By displaying the hidden danger type identification and coordinates on the map, the operator can intuitively understand the hidden danger situation of the optical fiber monitoring link.
[0120] Step S426: Continue to monitor the real-time spectrum detection characteristic parameters of the next time period.
[0121] Specifically, for example, the real-time spectrum detection characteristic parameters of the next time period may continue to be monitored.
[0122] The present invention compares the real-time spectrum detection characteristic parameters with the abnormal judgment threshold. If all parameters do not exceed the threshold, it means that there is no abnormality in the optical fiber monitoring link, and the subsequent operation can be continued. The encoded photon sweep pulse sequence is sent to the optical fiber monitoring link, and the nonlinear Raman scattering signal of the optical fiber monitoring link is collected at the same time. By collecting the background Raman noise spectrum signal, a background noise model of the optical fiber line can be established for subsequent optical fiber line health analysis and abnormal index calculation. By inputting the background Raman noise spectrum signal into the optical fiber line health analysis model for mimetic calculation, the abnormal index of the optical fiber line can be calculated for subsequent judgment of the health status of the optical fiber monitoring link. The health status of the optical fiber monitoring link is judged according to the abnormal index data of the optical fiber line. When it is judged that the optical fiber monitoring link is in a normal operating state, the judgment result is recorded and step S426 is entered; when it is judged that there is a potential fault hidden danger in the optical fiber monitoring link, step S425 is entered. Through the health state probability density judgment, it can be determined whether the optical fiber monitoring link is operating normally, which provides a judgment basis for subsequent hidden danger classification and precise positioning. By analyzing the abnormal indicators of the optical fiber line, the type and location of hidden dangers in the optical fiber monitoring link can be determined, and these data can be pushed to the visualization module for real-time update and display, which is convenient for users to perform fault diagnosis and maintenance. By continuously monitoring the real-time spectrum detection characteristic parameters of the next time period, any new abnormal situation can be discovered in time, and corresponding processing and recording can be performed. The present invention can realize continuous optical fiber monitoring and ensure continuous monitoring of the status of the optical fiber monitoring link.
[0123] Preferably, step S5 comprises the following steps:
[0124] Step S51: performing wavelet transformation and feature extraction on the real-time optical detection monitoring data, thereby obtaining a real-time detection optical feature vector;
[0125] Specifically, for example, wavelet transform can be applied to the acquired real-time optical monitoring data. Wavelet transform is a mathematical method for decomposing a signal into sub-signals of different frequencies and extracting the features of each sub-signal. Features are extracted from the sub-signals obtained by wavelet transform. Various feature extraction algorithms, such as peak detection, frequency domain analysis, time domain statistics, etc., can be used to extract numerical values or vectors representing optical features. The extracted optical features are composed into vectors as real-time detection optical feature vectors.
[0126] Step S52: matching the real-time detected optical feature vector with each set of optical feature parameters in the abnormal port-optical parameter database, thereby obtaining switch port abnormal type data;
[0127] Specifically, for example, the real-time detection optical feature vector can be matched with each set of optical feature parameters in the database. Various matching algorithms, such as cosine similarity, Euclidean distance, etc., can be used to calculate the similarity or distance between the real-time detection optical feature vector and each set of parameters in the database. According to the matching results, the optical feature parameter with the highest similarity or the closest distance to the real-time detection optical feature vector is found to obtain the corresponding abnormal type data.
[0128] Step S53: updating and displaying the switch abnormal port coordinate data and the switch port abnormal type data in real time through a preset visualization module.
[0129] Specifically, for example, a visualization module can be preset to display the information of abnormal ports of the switch in real time. The module can be a graphical interface or system, which is used to display the location and type of abnormal ports in real time on a topology diagram or map. The coordinate data and abnormal type data of the abnormal port of the switch are pushed to the visualization module. After receiving the data, the visualization module marks the location of the abnormal port on the topology diagram or map according to the coordinate data, and displays the corresponding abnormal type.
[0130] The present invention extracts representative optical feature vectors from real-time optical detection monitoring data through wavelet transform and feature extraction technology. These feature vectors can be used for subsequent abnormal port identification and classification. By matching optical feature parameters, it can be determined whether there is an abnormality in the switch port and the specific type of the abnormality, providing guidance for subsequent abnormality processing and maintenance. Through the real-time update display of the visualization module, the user can intuitively understand the location and type of the abnormal port of the switch, which is convenient for quickly locating and handling abnormal situations, and improving the monitoring efficiency and accuracy of the switch port status. At the same time, the visual display also helps operators to perform abnormal analysis and decision-making.
[0131] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.
[0132] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.
Claims
1. A method for monitoring the status of a switch port, characterized in that: The following steps are involved: Step S1: Formulate a fiber optic monitoring link connection plan for the switch port and the opposite end device, thereby obtaining the fiber optic monitoring link connection plan; Based on the optical fiber monitoring link connection scheme, the optical fiber monitoring link modeling is performed between the switch port and the opposite end device, so as to obtain the optical fiber monitoring link model; wherein step S1 specifically includes: Step S11: collecting hardware parameters of the switch port to obtain switch port configuration data; Step S12: collecting network identification parameters of the peer device, thereby obtaining address data of the peer device; Step S13: formulating a fiber monitoring link connection plan between the switch port and the peer device according to the switch port configuration data and the peer device address data, thereby obtaining the fiber monitoring link connection plan; Step S14: Connecting the switch port to the peer device via the optical fiber monitoring link and arranging the distributed optical sensors according to the optical fiber connection path data in the optical fiber monitoring link connection scheme, and collecting benchmark test data for the distributed optical sensors, thereby obtaining an initial detection data set; Step S15: constructing a photoelectric conversion model for the switch port configuration data and the initial detection data set, thereby obtaining a photoelectric conversion model; Step S16: Acquire actual optical fiber line topology data of the switch port and the opposite device; perform optical fiber monitoring link modeling on the actual optical fiber line topology data and the optoelectronic conversion model, thereby acquiring an optical fiber monitoring link model; Step S2: constructing an optical parameter-switch port state feature library for the switch port based on the optical fiber monitoring link model, thereby obtaining an abnormal port-optical parameter database, wherein the abnormal port-optical parameter database includes several groups of optical feature parameters and port state type data corresponding to the several groups of optical feature parameters; performing optical fiber monitoring link threshold calculation on the optical fiber monitoring link between the switch port and the opposite device according to the abnormal port-optical parameter database, thereby obtaining a quantitative abnormal judgment threshold matrix; wherein step S2 specifically includes: Step S21: obtaining a port photoelectric parameter data set, wherein the port photoelectric parameter data set includes a plurality of port status type data and its corresponding port operation photoelectric parameters; Step S22: traverse the port optoelectronic parameter data set, project the port operation optoelectronic parameters to the switch port model in the optical fiber monitoring link model for virtual operation, and demodulate and detect the optical transmission link in the optical fiber monitoring link model to obtain virtual detection spectrum characteristic parameters; Step S23: Correlate and calibrate the port state type data corresponding to the port operation optoelectronic parameters with the virtual detection spectrum characteristic parameters, thereby obtaining port state-optoelectronic mapping data; Step S24: according to the port status-optical-electrical mapping data, the corresponding data of the port operation optical-electrical parameters with normal port operation status are eliminated, so as to obtain the abnormal port operation optical-electrical parameters; Step S25: constructing an optical parameter-switch port state feature library for the port state type data corresponding to the optical and electrical parameters of the abnormal port operation and the virtual detection spectrum feature parameters according to the port state-optical mapping data, thereby obtaining an abnormal port-optical parameter database, wherein the abnormal port-optical parameter database includes a plurality of groups of optical feature parameters and the port state type data corresponding to the plurality of groups of optical feature parameters; Step S26: Calculate the optical fiber monitoring link threshold of the optical fiber monitoring link between the switch port and the opposite device according to the abnormal port-optical parameter database, so as to obtain a quantitative abnormal judgment threshold matrix; wherein step S26 specifically includes: Step S261: classify and filter the port status type data in the abnormal port-optical parameter database, thereby obtaining a plurality of port abnormal status type data; Step S262: based on the optical-electrical parameters of the abnormal port operation, representative optical-electrical parameters of each port abnormal state type data are screened, so as to obtain several groups of representative operating parameters of the port abnormal state; Step S263: selecting the normal state parameters of the port operation optical and electrical parameters according to the port state-optical and electrical mapping data, thereby obtaining the normal port operation optical and electrical parameters; Step S264: Scatter plotting several groups of representative operation parameters of abnormal port states and normal port operation photoelectric parameters and connecting the groups, thereby obtaining a line graph of the port operation photoelectric parameters; Step S265: performing difference calculation on the same attribute parameters in the normal state of the port and the abnormal state of the port according to the line graph of the photoelectric parameters of the port operation, and selecting the absolute value of the calculation result as the evaluation threshold point data, thereby obtaining a plurality of evaluation threshold data; eliminating the data corresponding to the plurality of evaluation threshold data that is less than the preset evaluation threshold, thereby obtaining the abnormal judgment threshold matrix; Step S266: performing regularization processing on the abnormality judgment threshold, thereby obtaining a quantitative abnormality judgment threshold matrix; Step S3: Based on the optical fiber monitoring link connection scheme, pulse light detection is performed on the optical fiber monitoring link between the switch port and the opposite device in real time, thereby obtaining real-time optical detection monitoring data; spectral feature parameters are extracted from the real-time optical detection monitoring data according to the quantitative abnormality judgment threshold matrix, thereby obtaining real-time spectral detection feature parameters; Step S4: comparing the real-time spectrum detection characteristic parameters with the quantitative abnormality judgment threshold matrix. When at least one parameter among the real-time spectrum detection characteristic parameters exceeds the corresponding threshold in the quantitative abnormality judgment threshold matrix, the abnormal port of the switch is located according to the real-time spectrum detection characteristic parameters, thereby obtaining the coordinate data of the abnormal port of the switch; Step S5: Match the real-time optical detection monitoring data with each set of optical characteristic parameters in the abnormal port-optical parameter database to obtain the switch port abnormal type data; update and display the switch abnormal port coordinate data and the switch port abnormal type data in real time through a preset visualization module.
2. The method for monitoring the switch port status according to claim 1, characterized in that: Step S3 includes the following steps: Step S31: measuring the optical fiber length of the optical fiber monitoring link between the switch port and the opposite end device, thereby obtaining the total length data of the optical fiber monitoring link; Step S32: Calculate the time required for a single optical fiber transmission of the optical fiber monitoring link according to the total length data of the optical fiber monitoring link, thereby obtaining the length data of the single optical fiber transmission time; Step S33: Based on the optical fiber monitoring link connection scheme, pulse optical detection is performed on the optical fiber monitoring link between the switch port and the opposite device in real time according to the optical fiber single transmission time length data, thereby obtaining real-time optical detection monitoring data; Step S34: extracting spectral characteristic parameters of the real-time light detection monitoring data according to the quantitative abnormality judgment threshold matrix, thereby obtaining real-time spectral detection characteristic parameters.
3. The method for monitoring the switch port status according to claim 2, characterized in that: In step S32, the time required for a single optical fiber transmission of the optical fiber monitoring link is calculated according to the total length data of the optical fiber monitoring link by using the optical fiber propagation time calculation formula, wherein the optical fiber propagation time calculation formula is as follows: Where T is the single transmission time length of the optical fiber, v p is the phase velocity in the optical fiber, λ is the wavelength of light, L is the actual length of the optical fiber, α(T) is the temperature attenuation coefficient of the optical fiber, β(T) is the temperature dispersion coefficient of the optical fiber, γ is the nonlinear coefficient of the optical fiber, θ is the incident angle of light, E is the energy of the light, and E0 is the reference energy.
4. The method for monitoring the switch port status according to claim 2, characterized in that: Step S34 includes the following steps: Step S341: performing wavelet transform on the real-time light detection monitoring data to obtain a multi-scale wavelet coefficient matrix; Step S342: recording the matrix coordinates corresponding to each wavelet coefficient in the multi-scale wavelet coefficient matrix, thereby obtaining a wavelet coefficient index table; determining the wavelength range of the wavelet coefficient corresponding to each coordinate in the wavelet coefficient index table and mapping the determined wavelength range with the wavelet coefficient index table, thereby obtaining a wavelength-index mapping table; Step S343: quantizing and encoding the multi-scale wavelet coefficient matrix to obtain a port detection data bit stream; Step S344: determining the spectral attribute abnormal range of the quantitative abnormality judgment threshold matrix, thereby obtaining a spectral abnormality attribute data table; Step S345: extracting the wavelength range data corresponding to the spectrum anomaly attribute data table in the port detection data bit stream according to the wavelength-index mapping table, thereby obtaining real-time spectrum detection characteristic parameters.
5. The method for monitoring the switch port status according to claim 1, characterized in that: Step S4 includes the following steps: Step S41: comparing the real-time spectrum detection characteristic parameters with the quantitative abnormality judgment threshold matrix; Step S42: when each parameter in the real-time spectrum detection characteristic parameter does not exceed any corresponding threshold value in the quantitative abnormality judgment threshold value matrix, continue to monitor the real-time spectrum detection characteristic parameter of the next time period; Step S43: when at least one parameter in the real-time spectrum detection characteristic parameters exceeds the corresponding threshold in the quantitative abnormality judgment threshold matrix, the real-time spectrum detection characteristic parameters are used to locate the optical fiber monitoring link, thereby obtaining optical fiber abnormal section identification data; Step S44: locating the abnormal port of the switch connected to the optical fiber monitoring link corresponding to the optical fiber abnormal segment identification data, thereby obtaining the coordinate data of the abnormal port of the switch.
6. The method for monitoring the switch port status according to claim 5, characterized in that: Step S42 includes the following steps: Step S421: when each parameter in the real-time spectrum detection characteristic parameter does not exceed any corresponding threshold in the quantitative abnormality judgment threshold matrix; Step S422: sending a coded photon frequency sweep pulse sequence to the optical fiber monitoring link, and simultaneously collecting nonlinear Raman scattering signals from the optical fiber monitoring link, thereby obtaining a background Raman noise spectrum signal; Step S423: pre-entering the background Raman noise spectrum signal into a preset optical fiber line health analysis model for pseudo-calculation, thereby obtaining optical fiber line abnormality index data; Step S424: judging the health status probability density of the optical fiber monitoring link between the switch and the peer device according to the optical fiber line abnormality index data. When it is judged that the optical fiber monitoring link is in a normal operating state, the judgment result is recorded and the process proceeds to step S426; when it is judged that there is a potential fault hidden danger in the optical fiber monitoring link, the process proceeds to step S425; Step S425: classifying and accurately locating the hidden danger type of the optical fiber monitoring link according to the abnormal index number of the optical fiber line, thereby obtaining hidden danger type identification data and hidden danger coordinate data, and pushing the hidden danger type identification data and hidden danger coordinate data to a preset visualization module for real-time update and display; Step S426: Continue to monitor the real-time spectrum detection characteristic parameters of the next time period.
7. The method for monitoring the switch port status according to claim 1, characterized in that: Step S5 includes the following steps: Step S51: performing wavelet transformation and feature extraction on the real-time optical detection monitoring data, thereby obtaining a real-time detection optical feature vector; Step S52: matching the real-time detected optical feature vector with each set of optical feature parameters in the abnormal port-optical parameter database, thereby obtaining switch port abnormal type data; Step S53: updating and displaying the switch abnormal port coordinate data and the switch port abnormal type data in real time through a preset visualization module.
Citation Information
Cited By
Multi-port device and control method thereof
TWI942182B
