Optical power abnormality monitoring method and system

By comparing the DDM information of the optical module and the statistical value of the data message, combined with the calculation of the average and variance of multiple optical modules, the accuracy problem of optical module optical power abnormality monitoring is solved, and the accuracy and accuracy of abnormality judgment are improved. efficiency.

CN116032361BActive Publication Date: 2024-10-18MAIPU COMM TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310093096.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-10
Publication Date
2024-10-18
Estimated Expiration
2043-02-10

AI Technical Summary

Technical Problem

The DDM technology of existing optical modules has low accuracy when monitoring optical power abnormalities. Especially in high-speed optical modules with multiple channels, traffic packet loss and lighting abnormalities are prone to occur. The existing technology lacks comparative processing and sending and receiving of DDM information of optical modules. Comparison processing of mapped port data.

Method used

In the optical power anomaly monitoring system, the Sflow server is used to compare the DDM information of the device under test and the peer auxiliary test device, and the average and variance are calculated based on the DDM values ​​of multiple optical modules obtained in advance, and the sampling message is set. range and sampling time, compare the statistical values ​​of data packets, and determine optical power abnormalities.

Benefits of technology

The accuracy of optical power abnormality judgment is significantly improved. By expanding the sample collection and accurate threshold calculation, misjudgments are reduced and the ability to identify optical power abnormalities is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116032361B_ABST
    Figure CN116032361B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of optical module data communication, and specifically to a method and system for monitoring optical power anomaly. The scheme includes: the device under test obtains a first statistical value of a data message sent to a second optical port through a first optical port, and encapsulates the first statistical value and the DDM information of the first optical module in a first Sflow message and sends it to a Sflow server; the opposite auxiliary test device obtains a second statistical value of the data message received from the first optical port through the second optical port, and encapsulates the second statistical value and the DDM information of the second optical module in a second Sflow message and sends it to the Sflow server; the Sflow server compares the DDM information of the first optical module and the DDM information of the second optical module with a pre-acquired comparison parameter to obtain a first comparison result, compares the received first statistical value with the second statistical value to obtain a second comparison result, and judges the optical power anomaly of the first optical module according to the first comparison result and the second comparison result. The present invention is suitable for optical power anomaly monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of optical module data communication, and in particular to an optical power abnormality monitoring method and system. Background Art

[0002] DDM (Digital Diagnostic Monitoring) is a technology used in optical modules so that users can monitor the real-time parameters of optical modules. Real-time parameters include operating temperature, operating voltage, operating current, transmit and receive optical power, etc. It can also display the optical module's conventional wavelength, rate, transmission distance, manufacturer name, factory number, model, serial number, factory date, alarm information, etc. The DDM technology in optical modules provides a module performance monitoring method that can help management predict the life of optical modules, locate system faults, and detect module compatibility.

[0003] Taking optical power as an example, the optical power provided by DDM includes the maximum alarm threshold (Warning-high) and the minimum alarm threshold (Warning-low). If the actual optical power is within this range, it is considered normal. However, in the long-term practice process, it is found that even the values ​​within this normal range may have abnormalities, and these abnormalities are often not easy to identify. These values ​​are often biased towards the maximum alarm threshold or the minimum alarm threshold. Especially in high-speed optical modules, when there are multiple channels, it is more likely to have traffic packet loss, abnormal light emission, etc.

[0004] Existing technologies such as the optical fiber link abnormality monitoring method, device and system disclosed in CN111064506A, wherein the method includes: receiving first information and optical module information, wherein the first information includes network device information and optical fiber link information, and the optical module information is included in the second information; establishing a network structure diagram according to the first information and the optical module information; receiving the second information sent when the alarm information is generated according to a pre-set communication protocol, wherein the second information includes the alarm information; determining the state of the optical fiber link according to the second information, and displaying the alarm in the network structure diagram. It is possible to realize real-time monitoring of the state of the optical fiber link between network devices, give early alarms, and reduce network failures caused by optical fiber link problems.

[0005] The above scheme mainly forms a set of visual and detectable path information to monitor the optical modules in the path in real time. However, it lacks the comparison processing of the DDM information of the optical module and the comparison processing of the data sent and received by the transceiver mapping port. Therefore, the above scheme has low accuracy in judging the optical power anomaly. Summary of the invention

[0006] The purpose of the present invention is to provide a method and system for monitoring optical power anomaly, which greatly improves the accuracy of judging optical power anomaly in an optical module.

[0007] The present invention adopts the following technical scheme to achieve the above-mentioned purpose. The optical power abnormality monitoring method is applied to the optical power abnormality monitoring system. The system includes a device under test, an auxiliary test device at the opposite end, and a Sflow (Sampled Flow, a technology for monitoring the traffic forwarding status of a switch or router on a data network) server. The first optical port of the device under test is inserted with a first optical module, and the second optical port of the auxiliary test device at the opposite end is inserted with a second optical module; the TX (Transport, sending) end of the first optical module is connected to the RX (Receive, receiving) end of the second optical module by an optical fiber; the RX end of the first optical module is connected to the TX end of the second optical module by an optical fiber; the method includes:

[0008] The device under test obtains a first statistical value of a data packet sent through the first optical port to the second optical port, and encapsulates the first statistical value and the DDM information of the first optical module in a first Sflow packet and sends the packet to a Sflow server;

[0009] The peer auxiliary test device obtains a second statistical value of the data packet received from the first optical port through the second optical port, and encapsulates the second statistical value and the DDM information of the second optical module in a second Sflow packet and sends it to the Sflow server;

[0010] The Sflow server compares the DDM information of the first optical module and the DDM information of the second optical module with the pre-acquired comparison parameters to obtain a first comparison result, compares the received first statistical value with the second statistical value to obtain a second comparison result, and determines the optical power abnormality of the first optical module based on the first comparison result and the second comparison result.

[0011] The above scheme of the present invention judges the optical power abnormality of the first optical module by comparing the statistical values ​​of the data packets sent and received by the mapping port and comparing the corresponding optical module DDM information with the pre-acquired comparison parameters, which greatly improves the accuracy of the optical power abnormality judgment.

[0012] Furthermore, before the device under test obtains a first statistical value of a data message sent to the second optical port through the first optical port, the method further includes:

[0013] The Sflow server obtains the DDM values ​​of multiple optical modules of the same type and manufacturer as the first optical module in advance through the tested device and the peer auxiliary test device, and calculates the average value of the DDM values ​​of all optical modules in the multiple optical modules as the first mean value, and calculates the alarm mean value of any optical module in the multiple optical modules, and then calculates the variance between the DDM value of each optical module in the multiple optical modules and the alarm mean value, and calculates the average value of the DDM values ​​of all optical modules in the multiple optical modules except the optical module with the largest variance as the second mean value; subtracts the second mean value from the DDM value of the first optical module to obtain a first difference, and determines a first preset threshold value based on the first difference value and the first mean value. This solution greatly improves the accuracy of the first preset threshold value.

[0014] Furthermore, the alarm mean value of any optical module among the multiple optical modules refers to the average value of the maximum alarm threshold and the minimum alarm threshold of any optical module among the multiple optical modules. This solution improves the accuracy of the alarm mean value.

[0015] Furthermore, before the device under test obtains a first statistical value of a data message sent to the second optical port through the first optical port, the method further includes:

[0016] The device under test sets a sampling message range and a sampling time, and sends a statistical value of messages sent by the first optical port within the sampling time as a first sampling parameter to a server;

[0017] The peer auxiliary test device sets the sampling message range and the sampling time, and sends the statistical value of the message received by the second optical port within the sampling time as the second sampling parameter to the server;

[0018] The server uses the average value of the difference between the first sampling parameter and the second sampling parameter obtained during the sampling time as the second preset threshold. This solution greatly improves the accuracy of the second preset threshold.

[0019] Furthermore, the Sflow server compares the DDM information of the first optical module and the DDM information of the second optical module with the pre-acquired comparison parameter to obtain a first comparison result, compares the received first statistical value with the second statistical value to obtain a second comparison result, and judges the abnormality of the optical power of the first optical module according to the first comparison result and the second comparison result, specifically including:

[0020] The Sflow server subtracts the pre-acquired second average value from the DDM value in the DDM information of the first optical module to obtain a first difference, and then compares the first difference with a first preset threshold value. If the first difference is greater than the preset threshold value, the optical power of the first optical module is judged to be abnormal; if the first difference is less than or equal to the preset threshold value, it is judged whether the difference between the first statistical value and the second statistical value is greater than the second preset threshold value. If so, the optical power of the first optical module is judged to be abnormal, otherwise, the optical power of the first optical module is judged to be normal. This solution improves the accuracy of judging the abnormal optical power of the first optical module.

[0021] An optical power anomaly monitoring system, the system comprising a device under test, an opposite-end auxiliary test device and a Sflow server, a first optical module is inserted into a first optical port of the device under test, a second optical module is inserted into a second optical port of the opposite-end auxiliary test device; a TX end of the first optical module is optically connected to an RX end of the second optical module; an RX end of the first optical module is optically connected to a TX end of the second optical module;

[0022] The device under test is used to obtain a first statistical value of a data packet sent through the first optical port to the second optical port, and encapsulate the first statistical value and the DDM information of the first optical module in a first Sflow message and send it to a Sflow server;

[0023] The peer auxiliary test device is used to obtain a second statistical value of the data packet received from the first optical port through the second optical port, and encapsulate the second statistical value and the DDM information of the second optical module in a second Sflow message and send it to the Sflow server;

[0024] The Sflow server is used to compare the DDM information of the first optical module and the DDM information of the second optical module with the pre-acquired comparison parameters to obtain a first comparison result, compare the received first statistical value with the second statistical value to obtain a second comparison result, and judge the optical power abnormality of the first optical module according to the first comparison result and the second comparison result.

[0025] Furthermore, the Sflow server is also used to, through the tested device and the peer auxiliary test device, pre-acquire the DDM values ​​of multiple optical modules of the same type and manufactured by the same manufacturer as the first optical module, and calculate the average value of the DDM values ​​of all the optical modules in the multiple optical modules as the first mean, and calculate the alarm mean of any optical module in the multiple optical modules, and then calculate the variance of the DDM value of each optical module in the multiple optical modules and the alarm mean, and calculate the average value of the DDM values ​​of all the optical modules in the multiple optical modules except the optical module with the largest variance as the second mean; obtain a first difference by subtracting the second mean from the DDM value of the first optical module, and determine a first preset threshold based on the first difference and the first mean.

[0026] Furthermore, the alarm mean value of any optical module among the multiple optical modules refers to an average value of a maximum alarm threshold Warning-high and a minimum alarm threshold Warning-low of any optical module among the multiple optical modules.

[0027] Furthermore, the device under test is further used to set a sampling message range and a sampling time, and send a statistical value of messages sent by the first optical port within the sampling time as a first sampling parameter to the server;

[0028] The peer auxiliary test device is further used to set the sampling message range and the sampling time, and send the statistical value of the message received by the second optical port within the sampling time as the second sampling parameter to the server;

[0029] The server is further configured to use an average value of differences between the first sampling parameters and the second sampling parameters obtained within the sampling time as a second preset threshold.

[0030] Furthermore, the Sflow server is specifically used to:

[0031] A first difference is obtained by subtracting a pre-acquired second average value from the DDM value in the DDM information of the first optical module, and then the first difference is compared with a first preset threshold value. If the first difference is greater than the preset threshold value, it is determined that the optical power of the first optical module is abnormal; if the first difference is less than or equal to the preset threshold value, it is determined whether the difference between the first statistical value and the second statistical value is greater than the second preset threshold value. If so, it is determined that the optical power of the first optical module is abnormal; otherwise, it is determined that the optical power of the first optical module is normal.

[0032] The beneficial effects of the present invention are:

[0033] The present invention obtains the statistics of data packets sent and received by the mapping port, compares the statistics of data packets sent and received by the mapping port, and obtains the comparison result of the data packet statistics; and compares the DDM information of the corresponding optical module with the comparison parameters obtained in advance to obtain the comparison result of the DDM information. The optical power abnormality of the first optical module is judged by the above two comparison results. The accuracy of the judgment of optical power abnormality is greatly improved.

[0034] The present invention uses the DDM information of the optical module itself as the sampling object, expands the collected samples, and finally determines the first preset threshold value based on the DDM values ​​of multiple optical modules of the same type and manufacturer as the first optical module, thereby improving the accuracy of the first preset value.

[0035] The present invention uses the average value of Warning-high and Warning-low of any optical module among multiple optical modules as the alarm mean value of any optical module, thereby improving the accuracy of the alarm mean value.

[0036] The present invention sets a sampling message range and a sampling time, and uses the average value of the difference between a first sampling parameter and a second sampling parameter obtained within the sampling time as the second preset threshold, thereby improving the accuracy of the second preset threshold. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A schematic diagram of DDM information provided by an embodiment of the present invention;

[0038] Figure 2 This is a structural block diagram of the optical power anomaly monitoring system provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. 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 ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0040] On the one hand, the present invention expands the collection of samples for the optical power in the mapping relationship between the transceiver ports, collects the information of optical modules with the same rate and the same manufacturer, and screens them based on certain samples; on the other hand, combined with Sflow's collection of specific traffic changes in the mapping relationship between the transceiver ports, the two aspects of information are finally sent to the Sflow server through the Sflow message, and the Sflow server is used for centralized judgment, so as to achieve the purpose of effectively identifying abnormal optical modules.

[0041] Based on the above principle, the present invention provides an optical power anomaly monitoring method, which is applied to an optical power anomaly monitoring system. The system includes a device under test, an auxiliary test device at the opposite end, and a Sflow server. A first optical module is inserted into a first optical port of the device under test, and a second optical module is inserted into a second optical port of the auxiliary test device at the opposite end; the TX end of the first optical module is optically connected to the RX end of the second optical module; the RX end of the first optical module is optically connected to the TX end of the second optical module; the method includes:

[0042] The device under test obtains a first statistical value of a data packet sent through the first optical port to the second optical port, and encapsulates the first statistical value and the DDM information of the first optical module in a first Sflow packet and sends it to a Sflow server;

[0043] The peer auxiliary test device obtains a second statistical value of the data packet received from the first optical port through the second optical port, and encapsulates the second statistical value and the DDM information of the second optical module in a second Sflow message and sends it to the Sflow server;

[0044] The Sflow server compares the DDM information of the first optical module and the DDM information of the second optical module with the pre-acquired comparison parameters to obtain a first comparison result, compares the received first statistical value with the second statistical value to obtain a second comparison result, and determines the optical power abnormality of the first optical module based on the first comparison result and the second comparison result.

[0045] Specifically, Figure 2 As shown, the device under test A (running Sflow agent) and the opposite auxiliary test device B (running Sflow agent) are connected. The 0 / 1 and 0 / 2 ports of the device under test A are respectively plugged into optical module A and optical module B, and the 0 / 1 and 0 / 2 ports of the opposite auxiliary test device B are respectively plugged into optical module C and optical module D, and the 0 / 3 port is the sampling output port.

[0046] The optical power itself includes two aspects: TxPower (transmitted optical power) and RxPower (received optical power), which also correspond to the two channels TX and RX on the physical device. When a problem occurs in one of the aspects, in addition to checking whether the light transmission and reception at this end is abnormal, it is also necessary to determine the light transmission and reception at the other end. Therefore, it is also very important to obtain the DDM information of the module at the other end; therefore, this solution uses the original characteristics of LLDP (Link Layer Discovery Protocol) to discover the port mapping information of the other end, but only discovering the mapping relationship of the link at the other end through LLDP is far from meeting the current judgment.

[0047] Considering that the sflow (Sampled Flow) framework has good characteristics, in this embodiment, the sampling message is used as a carrier to transmit the necessary information required for optical power judgment by adding optical power in its packetdata field. At the same time, its own unique sampling attributes contain information on rate and duplex port traffic statistics, which provides favorable features for more accurate judgment of module abnormalities.

[0048] Specifically, first, the port mapping relationship is discovered through the LLDP function itself. For example, the TX (Transport, transmission) of 0 / 1 in the device under test A and the RX (Receive, reception) of 0 / 1 in the opposite auxiliary test device B are a set of mapping relationships.

[0049] Collect the TX and RX optical power and vendor information in the DDM information of the optical modules on the optical ports, that is, the TX and RX optical power and vendor information of optical modules A, B, C, and D.

[0050] In order to reduce the information carried by the sampling, this embodiment first performs a process on the device, combines the LLDP and DDM information, obtains the TX message statistics of a certain port, and obtains the RX information value of the port mapped by the port at the other end, such as Figure 2 As shown, the message statistics of the TX end of the 0 / 1 port of the optical module A and the message statistics of the RX end of the 0 / 1 port of the optical module C are taken.

[0051] Send these message statistics to the Sflow server for judgment as judgment condition 1. When sampling, it is necessary to ensure that the TX and RX message statistics corresponding to the sampling are as equal as possible. If there is a big difference, it will be output as a suspected problem parameter. For example, within a certain period of time, the port of optical module A sends 1000 packets, but in fact the mapping port of optical module C only receives 900 packets, then there may be problems with the two mapping ends of A and C.

[0052] In an embodiment of the present invention, before the device under test obtains a first statistical value of a data message sent through the first optical port to the second optical port, the method further includes:

[0053] The Sflow server pre-acquires the DDM values ​​of multiple optical modules of the same type and manufacturer as the first optical module through the tested device and the peer auxiliary test device, and calculates the average value of the DDM values ​​of all the optical modules in the multiple optical modules as the first mean, and calculates the alarm mean of any optical module in the multiple optical modules, and then calculates the variance between the DDM value of each optical module in the multiple optical modules and the alarm mean, and calculates the average value of the DDM values ​​of all the optical modules in the multiple optical modules except the optical module with the largest variance as the second mean; subtracts the second mean from the DDM value of the first optical module to obtain a first difference, and determines a first preset threshold based on the first difference and the first mean.

[0054] Specifically, the DDM information of the optical module itself is used as a sampling template. The optical module information in DDM is as follows: Figure 1 As shown, it includes Type, under which Type includes Temperature (operating temperature), Voltage (operating voltage), Tx Bias (Tx bias), Tx Power (transmit optical power) and Rx Power (receive optical power), Warning-high (maximum alarm threshold) and Warning-low (minimum alarm threshold).

[0055] Usually, multiple optical modules are used on a device. The more modules are inserted, the larger the sample size is, and the more accurate the judgment result may be. Therefore, this embodiment selects optical modules with the same transmission rate from the same manufacturer as samples, and takes four modules with the same rate from the same manufacturer as an example. Figure 2 As shown, select the optical power Tx Power and Rx Power. Here, TxPower is taken as an example (the calculation method of Rx Power is consistent with that of Tx Power). Collect the transmit optical power Tx Power values ​​of four optical modules (i.e., optical module A inserted on optical port 0 / 1 of device A under test, optical module B inserted on optical port 0 / 2 of device A under test, optical module C inserted on optical port 0 / 1 of opposite auxiliary test device B, and optical module D inserted on optical port 0 / 2 of opposite auxiliary test device B), that is, the corresponding Value values ​​of Tx Power in DDM, which are TXA, TXB, TXC, and TXD respectively. As long as the same rate is met, the optical modules of the same manufacturer can be used as samples.

[0056] Specifically, the average value in the middle of the range of TXA, TXB, TXC, and TXD is taken, and the average value X = (TXA + T + TXC + TXD) / 4. For example, if TXA, TXB, TXC, and TXD are 3, 1.1, 1.2, and 1.3 respectively, then X = 1.65.

[0057] like Figure 1As shown in the figure, the range of Alarm Low and Alarm High is -25 to 95, and the range of Warning-Low and Warning-High is -20 to 90. Since the range of Warning-High and Warning-Low is included in Alarm High and Alarm Low, in this solution, the range of Alarm High and Alarm Low is not considered, but Warning-High and Warning-Low are selected. The values ​​of these two parameters are relatively fixed for the same type of optical modules from the same manufacturer, so there is no need to distinguish them.

[0058] In the modules of the same manufacturer, since this value is relatively fixed, you can select an optical module as a reference. For example, select the average value X1 between the Tx Power, Warning-High and Warning-Low ranges of optical module A on optical port 0 / 1 of the device A under test, X1 = (Warning-High + Warning-Low) / 2 as the theoretical maximum average value. For example, if Warning-High is 4 and Warning-Low is 0, then X1 is 2.

[0059] The variances between TXA, TXB, TXC, TXD and X1 are calculated respectively. Calculating the variance is a common method in probability theory. The present invention uses this to determine the degree of dispersion between the value and the optimal mean. The larger the value, the greater the possibility of a problem. For example, if TXA, TXB, TXC, and TXD are 3, 1.1, 1.2, and 1.3 respectively, the variance of TXA calculated by the variance is the largest.

[0060] Temporarily remove the value with the largest variance, taking TXA as an example, in order to make the discrete sampling more accurate. Then take the average value of the remaining TXA, TXB, TXC, and TXD to get X2. According to the above data, X2 = 1.2.

[0061] In an embodiment of the present invention, before the device under test obtains a first statistical value of a data message sent through the first optical port to the second optical port, the method further includes:

[0062] The device under test sets a sampling message range and a sampling time, and sends a statistical value of messages sent by the first optical port within the sampling time as a first sampling parameter to the server;

[0063] The auxiliary test device at the opposite end sets the sampling message range and the sampling time, and sends the statistical value of the message received by the second optical port within the sampling time as the second sampling parameter to the server;

[0064] The server uses the average value of the difference between the first sampling parameter and the second sampling parameter obtained within the sampling time as the second preset threshold.

[0065] Specifically, the sampling parameters are set. Since Sflow is used as the front end of port sampling, there is a large amount of forwarding traffic in the actual business before sampling. Here, it is necessary to pre-set the sampling range to sample a certain type of forwarded message in the business. For example, the Ethernet header, or ipv4, ipv6 message, and there is a delay in the forwarding process, as well as some other message factors. Therefore, the present invention takes the change amount of the message in a certain time period as a parameter when sampling. Taking the ipv4 message as an example, after sampling, the change value in the Nth sampling time period is taken. Here, in order to reduce the sampling error, the average value of the changes in multiple Nth time periods is taken as the comparison parameter, which avoids the consumption of continuous sampling of the CPU (Central Processing Unit / Processor), and N is an integer greater than 0.

[0066] In an embodiment of the present invention, the Sflow server compares the DDM information of the first optical module and the DDM information of the second optical module with the pre-acquired comparison parameter to obtain a first comparison result, compares the received first statistical value with the second statistical value to obtain a second comparison result, and judges the abnormality of the optical power of the first optical module according to the first comparison result and the second comparison result, specifically including:

[0067] The Sflow server subtracts the second average value obtained in advance from the DDM value in the DDM information of the first optical module to obtain a first difference, and then compares the first difference with a first preset threshold value. If the first difference is greater than the preset threshold value, the optical power of the first optical module is judged to be abnormal; if the first difference is less than or equal to the preset threshold value, it is judged whether the difference between the first statistical value and the second statistical value is greater than the second preset threshold value. If so, the optical power of the first optical module is judged to be abnormal; otherwise, the optical power of the first optical module is judged to be normal.

[0068] Specifically, the difference between TXA and X2 is 1.8, and combined with the X value (1.65), an empirical threshold M is set manually, for example, M is 1.6. If the difference is greater than the set threshold, it is judged that the value may have a power problem, that is, TXA here may have a problem (1.8>1.6), and so on. Then judge the function of the RX end mapped by TX. The judgment method of RXPower is consistent with that of TXPower, and this method is used as the second judgment condition.

[0069] Finally, the Sflow server judges the judgment conditions 1 and 2. If there is a problem with condition 2, it will be reported as a problem module. For example, if the TXA value is greater than the threshold, it can be directly judged that the transmit optical power of optical module A on the device under test A is abnormal. If the transmit optical power of optical module A is within the normal range, but the transmit data packet of optical module A is inconsistent with the receive data value of optical module C (the difference is greater than the set threshold), optical module A is regarded as a problem module.

[0070] According to the optical power anomaly monitoring method described in the above embodiment, the present invention also provides an optical power anomaly monitoring system, the system includes a device under test, an auxiliary test device at the opposite end and a Sflow server, the first optical port of the device under test is inserted with a first optical module, the second optical port of the auxiliary test device at the opposite end is inserted with a second optical module; the TX end of the first optical module is optically connected to the RX end of the second optical module; the RX end of the first optical module is optically connected to the TX end of the second optical module;

[0071] The device under test is used to obtain a first statistical value of a data packet sent through the first optical port to the second optical port, and encapsulate the first statistical value and the DDM information of the first optical module in a first Sflow message and send it to a Sflow server;

[0072] The peer auxiliary test device is used to obtain a second statistical value of the data message received from the first optical port through the second optical port, and encapsulate the second statistical value and the DDM information of the second optical module in a second Sflow message and send it to the Sflow server;

[0073] The Sflow server is used to compare the DDM information of the first optical module and the DDM information of the second optical module with the pre-acquired comparison parameters to obtain a first comparison result, compare the received first statistical value with the second statistical value to obtain a second comparison result, and judge the optical power abnormality of the first optical module according to the first comparison result and the second comparison result.

[0074] In one embodiment of the present invention, the Sflow server is also used to, through the tested device and the peer auxiliary test device, pre-acquire the DDM values ​​of multiple optical modules of the same type and manufacturer as the first optical module, and calculate the average value of the DDM values ​​of all the optical modules in the multiple optical modules as the first mean, and calculate the alarm mean of any optical module in the multiple optical modules, and then calculate the variance of the DDM value of each optical module in the multiple optical modules and the alarm mean, and calculate the average value of the DDM values ​​of all the optical modules in the multiple optical modules except the optical module with the largest variance as the second mean; subtract the second mean from the DDM value of the first optical module to obtain a first difference, and determine a first preset threshold based on the first difference and the first mean.

[0075] In an embodiment of the present invention, the alarm mean value of any optical module among the multiple optical modules refers to an average value of Warning-high and Warning-low of any optical module among the multiple optical modules.

[0076] In one embodiment of the present invention, the device under test is further used to set a sampling message range and a sampling time, and send a statistical value of a message sent by the first optical port within the sampling time as a first sampling parameter to a server;

[0077] The auxiliary test device at the opposite end is further used to set the sampling message range and the sampling time, and send the statistical value of the message received by the second optical port within the sampling time as the second sampling parameter to the server;

[0078] The server is further configured to use an average value of differences between the first sampling parameters and the second sampling parameters obtained within the sampling time as a second preset threshold.

[0079] In one embodiment of the present invention, the Sflow server is specifically used to:

[0080] A first difference is obtained by subtracting a pre-acquired second average value from the DDM value in the DDM information of the first optical module, and then the first difference is compared with a first preset threshold value. If the first difference is greater than the preset threshold value, it is determined that the optical power of the first optical module is abnormal; if the first difference is less than or equal to the preset threshold value, it is determined whether the difference between the first statistical value and the second statistical value is greater than the second preset threshold value. If so, it is determined that the optical power of the first optical module is abnormal; otherwise, it is determined that the optical power of the first optical module is normal.

[0081] In summary, the present invention carries DDM information to the Sflow server by extending the sampling message of Sflow. If there is an abnormality, the module with the problem can be directly determined. Moreover, when the DDM information is within the valid range, if there is an abnormality in the transmission and reception, and the increment in Sflow within a certain period of time exceeds the specified error, the abnormal situation can also be determined, and then further compared with other optical module information on the same device to determine, which can effectively speed up the progress of troubleshooting and timely identify the optical module with abnormal power.

Claims

1. A method for monitoring optical power anomaly, characterized in that: Applied to an optical power anomaly monitoring system, the system includes a device under test, an opposite auxiliary test device and a Sflow server, a first optical module is inserted into a first optical port of the device under test, and a second optical module is inserted into a second optical port of the opposite auxiliary test device; a TX end of the first optical module is optically connected to an RX end of the second optical module; an RX end of the first optical module is optically connected to a TX end of the second optical module; the method includes: The device under test obtains a first statistical value of a data packet sent through the first optical port to the second optical port, and encapsulates the first statistical value and the DDM information of the first optical module in a first Sflow packet and sends the packet to a Sflow server; The peer auxiliary test device obtains a second statistical value of the data packet received from the first optical port through the second optical port, and encapsulates the second statistical value and the DDM information of the second optical module in a second Sflow packet and sends it to the Sflow server; The Sflow server compares the DDM information of the first optical module and the DDM information of the second optical module with the pre-acquired comparison parameters to obtain a first comparison result, compares the received first statistical value with the second statistical value to obtain a second comparison result, and determines the optical power abnormality of the first optical module based on the first comparison result and the second comparison result.

2. The optical power abnormality monitoring method according to claim 1, characterized in that: Before the device under test acquires a first statistical value of a data message sent through the first optical port to the second optical port, the method further includes: The Sflow server pre-acquires the DDM values ​​of multiple optical modules of the same type and manufacturer as the first optical module through the tested device and the peer auxiliary test device, and calculates the average value of the DDM values ​​of all the optical modules in the multiple optical modules as the first mean, and calculates the alarm mean of any optical module in the multiple optical modules, and then calculates the variance between the DDM value of each optical module in the multiple optical modules and the alarm mean, and calculates the average value of the DDM values ​​of all the optical modules in the multiple optical modules except the optical module with the largest variance as the second mean; subtracts the second mean from the DDM value of the first optical module to obtain a first difference, and determines a first preset threshold based on the first difference and the first mean.

3. The optical power abnormality monitoring method according to claim 2, characterized in that: The alarm mean value of any optical module among the multiple optical modules refers to the average value of the maximum alarm threshold and the minimum alarm threshold of any optical module among the multiple optical modules.

4. The optical power abnormality monitoring method according to claim 1, characterized in that: Before the device under test acquires a first statistical value of a data message sent through the first optical port to the second optical port, the method further includes: The device under test sets a sampling message range and a sampling time, and sends a statistical value of messages sent by the first optical port within the sampling time as a first sampling parameter to a server; The peer auxiliary test device sets the sampling message range and the sampling time, and sends the statistical value of the message received by the second optical port within the sampling time as the second sampling parameter to the server; The server uses the average value of the difference between the first sampling parameter and the second sampling parameter obtained within the sampling time as the second preset threshold.

5. The optical power abnormality monitoring method according to any one of claims 1 to 4, characterized in that: The Sflow server compares the DDM information of the first optical module and the DDM information of the second optical module with a pre-acquired comparison parameter to obtain a first comparison result, compares the received first statistical value with the second statistical value to obtain a second comparison result, and determines an abnormality of the optical power of the first optical module according to the first comparison result and the second comparison result, specifically including: The Sflow server subtracts the second average value obtained in advance from the DDM value in the DDM information of the first optical module to obtain a first difference, and then compares the first difference with a first preset threshold value. If the first difference is greater than the preset threshold value, it is determined that the optical power of the first optical module is abnormal; if the first difference is less than or equal to the preset threshold value, it is determined whether the difference between the first statistical value and the second statistical value is greater than the second preset threshold value. If so, it is determined that the optical power of the first optical module is abnormal; otherwise, it is determined that the optical power of the first optical module is normal.

6. The optical power abnormality monitoring system is characterized by: The system includes a device under test, an opposite auxiliary test device and a Sflow server, wherein a first optical module is inserted into a first optical port of the device under test, and a second optical module is inserted into a second optical port of the opposite auxiliary test device; a TX end of the first optical module is optically connected to an RX end of the second optical module; and an RX end of the first optical module is optically connected to a TX end of the second optical module; The device under test is used to obtain a first statistical value of a data packet sent through the first optical port to the second optical port, and encapsulate the first statistical value and the DDM information of the first optical module in a first Sflow message and send it to a Sflow server; The peer auxiliary test device is used to obtain a second statistical value of the data packet received from the first optical port through the second optical port, and encapsulate the second statistical value and the DDM information of the second optical module in a second Sflow message and send it to the Sflow server; The Sflow server is used to compare the DDM information of the first optical module and the DDM information of the second optical module with the pre-acquired comparison parameters to obtain a first comparison result, compare the received first statistical value with the second statistical value to obtain a second comparison result, and judge the optical power abnormality of the first optical module according to the first comparison result and the second comparison result.

7. The optical power abnormality monitoring system according to claim 6, characterized in that: The Sflow server is also used to, through the device under test and the peer auxiliary test device, pre-acquire the DDM values ​​of multiple optical modules of the same type and manufacturer as the first optical module, and calculate the average value of the DDM values ​​of all the optical modules in the multiple optical modules as the first mean value, and calculate the alarm mean value of any optical module in the multiple optical modules, and then calculate the variance between the DDM value of each optical module in the multiple optical modules and the alarm mean value, and calculate the average value of the DDM values ​​of all the optical modules in the multiple optical modules except the optical module with the largest variance as the second mean value; A first difference is obtained by subtracting the second average value from the DDM value of the first optical module, and a first preset threshold is determined according to the first difference and the first average value.

8. The optical power abnormality monitoring system according to claim 7, characterized in that: The alarm mean value of any optical module among the multiple optical modules refers to the average value of the maximum alarm threshold and the minimum alarm threshold of any optical module among the multiple optical modules.

9. The optical power abnormality monitoring system according to claim 6, characterized in that: The device under test is further used to set a sampling message range and a sampling time, and send the statistical value of the message sent by the first optical port within the sampling time as a first sampling parameter to the server; The peer auxiliary test device is further used to set the sampling message range and the sampling time, and send the statistical value of the message received by the second optical port within the sampling time as the second sampling parameter to the server; The server is further configured to use an average value of differences between the first sampling parameters and the second sampling parameters obtained within the sampling time as a second preset threshold.

10. The optical power abnormality monitoring system according to any one of claims 6 to 9, characterized in that: The Sflow server is specifically used for: Subtracting a pre-acquired second average value from a DDM value in the DDM information of the first optical module to obtain a first difference, and then comparing the first difference with a first preset threshold value, and if the first difference is greater than the preset threshold value, determining that the optical power of the first optical module is abnormal; If the first difference is less than or equal to the preset threshold, it is determined whether the difference between the first statistical value and the second statistical value is greater than a second preset threshold. If so, it is determined that the optical power of the first optical module is abnormal; otherwise, it is determined that the optical power of the first optical module is normal.

Citation Information

Patent Citations

  • Abnormality monitoring method, equipment and system for optical fiber link

    CN111064506A

  • System and method of monitoring a performance level of a battery

    CN104868181A

  • Optical module, equipment, forward link system and performance detection method thereof

    CN114363740A