Optical module fault handling method, electronic device, and computer-readable storage medium
By determining the light receiving power threshold when the optical module fails based on the historical fault data of the network equipment, monitoring and automatically isolating the faulty optical module, the problem in the existing technology that the optical module failure cannot be predicted in advance is solved, and the impact of the fault on the business is reduced. Improved the stability of network equipment.
Patent Information
- Application Number
- CN202111532380.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-15
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-12-15
AI Technical Summary
Existing technology cannot predict optical module failures in advance, causing the failure to affect services on the link.
By determining the light receiving power threshold when the optical module fails based on the historical fault data of the network equipment, the light receiving power of the target optical module is monitored. If the threshold is reached, the fault is determined and automatic isolation and shutdown processing is performed.
It is possible to predict optical module failures in advance, reduce the impact of failures on services, and improve the reliability and stability of network equipment.
Smart Images

Figure CN114448504B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication technology, and in particular to an optical module fault processing method, an electronic device, and a computer-readable storage medium. Background Art
[0002] At present, in data center networks, if an optical module of network equipment such as switches, firewalls, and routers fails, the business side usually notifies the operation and maintenance personnel of the impacted business after the optical module fails. After the operation and maintenance personnel learn of the optical module failure, they manually isolate the faulty optical module link, but at this time, the faulty optical module has already affected the business on this optical module link.
[0003] How to predict the faulty optical module in advance and reduce the impact of the optical module failure on the services on the link is a problem that needs to be solved at present. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an optical module fault processing method, an electronic device, and a computer-readable storage medium, so as to solve the problem that the existing optical module faults cannot be predicted in advance.
[0005] In order to solve the above technical problems, this specification is implemented as follows:
[0006] In a first aspect, a method for handling optical module faults is provided, comprising: determining a received optical power threshold for determining when an optical module fault occurs based on historical fault data of each sample optical module in a network device, wherein the historical fault data includes historical bit error information and received optical power; monitoring the received optical power of a target optical module; and determining that the target optical module fault occurs if the received optical power of the target optical module reaches the received optical power threshold.
[0007] Optionally, determining a light receiving power threshold for determining when an optical module fails according to historical fault data of each optical module in the network device includes:
[0008] Obtain historical bit error information and corresponding received optical power of each sample optical module in the network device;
[0009] According to the historical bit error information, the received optical power of each faulty optical module in the sample optical modules is respectively obtained;
[0010] The received light power threshold is determined according to the received light power of each faulty optical module.
[0011] Optionally, the received optical power of each faulty optical module in the sample optical modules is obtained according to the historical bit error information, including:
[0012] According to the historical bit error information, the received optical power of each channel of each faulty optical module at the time when the fault occurs is obtained respectively.
[0013] Optionally, determining the received light power threshold according to the received light power of each faulty optical module includes:
[0014] Determine the optical power difference between the maximum optical power received and the minimum optical power received of each channel of each faulty optical module at the time of the fault;
[0015] Calculate the average value of the optical power difference corresponding to each faulty optical module to obtain the average optical power difference of the faulty optical module;
[0016] Determine the variance of the received optical power corresponding to each channel of the faulty optical module according to the relationship between the received optical power of each channel of the faulty optical module and the average optical power difference;
[0017] The received light power threshold is determined according to the variance.
[0018] Optionally, after determining that the target optical module has a fault, the method further includes:
[0019] Obtaining a connection relationship of a network device where the target optical module is located;
[0020] According to the connection relationship of the network device, if it is determined that there are multiple optical modules on the network device, the target optical module is turned off from the network device.
[0021] Optionally, after determining that the target optical module has a fault, the method further includes:
[0022] Obtaining the connection relationship and port flow information of the network device where the target optical module is located;
[0023] If it is determined that there are multiple optical modules on the network device according to the connection relationship of the network device, then according to the port flow information of the network device, the highest peak flow of each optical module on the network device except the target optical module is determined;
[0024] If the highest peak flow of each optical module does not exceed the preset risk threshold, the target optical module is shut down from the network device.
[0025] Optionally, after determining that the target optical module has a fault, the method further includes:
[0026] Determining the port type of the target optical module;
[0027] If the port type of the target optical module does not belong to the preset dedicated port type, the target optical module is turned off from the network device.
[0028] Optionally, after shutting down the target optical module from the network device, the method further includes:
[0029] Storing the shutdown information of the target optical module, wherein the shutdown information includes the physical location of the target optical module;
[0030] Based on the operation of repairing or replacing the target optical module, the stored shutdown information of the target optical module is acquired, and the physical position of the target optical module is determined according to the acquired shutdown information.
[0031] In a second aspect, an electronic device is provided, comprising a memory and a processor electrically connected to the memory, wherein the memory stores a computer program executable by the processor, and when the computer program is executed by the processor, the steps of the method described in the first aspect are implemented.
[0032] According to a third aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0033] In an embodiment of the present application, a received light power threshold for judging when an optical module fails is determined based on historical fault data of each optical module in the network device, and a target optical module is determined to have failed when the received light power of the monitored target optical module reaches the received light power threshold. This allows optical module failures to be predicted in advance, thereby reducing the subsequent impact of the failure on the business. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0035] Figure 1 It is a flowchart of the optical module fault handling method of an embodiment of the present application.
[0036] Figure 2 It is a schematic diagram of an example of optical module fault prediction information according to an embodiment of the present application.
[0037] Figure 3 It is a schematic diagram of an example of information processing of a faulty optical module according to the first embodiment of the present application.
[0038] Figure 4 It is a schematic diagram of an example of information processing of a faulty optical module according to the second embodiment of the present application.
[0039] Figure 5 It is a schematic diagram of the application architecture of the optical module fault handling method of an embodiment of the present application.
[0040] Figure 6 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application. The numbering of the drawings in this application is only used to distinguish the various steps in the scheme, and is not used to limit the execution order of the various steps. The specific execution order is subject to the description in the specification.
[0042] In order to solve the problems existing in the prior art, the present application provides a method for handling optical module failures. Figure 1 It is a flowchart of the optical module fault handling method of an embodiment of the present application.
[0043] like Figure 1 As shown, the following steps are included:
[0044] Step 102: Determine a received optical power threshold for determining when an optical module fails based on historical fault data of each sample optical module in the network device, wherein the historical fault data includes historical bit error information and received optical power.
[0045] The error information is information used to indicate whether an optical module has a fault. The historical fault data of the sample optical module is to use an optical module that has had a fault as a sample, obtain its corresponding historical fault data as sample data, and determine a threshold standard for predicting whether the optical module will fail.
[0046] If the optical module is not faulty, the corresponding bit error value remains at one value, such as 0; when the target optical module is faulty, the corresponding bit error value changes to a value indicating that the optical module is faulty, such as 1.
[0047] When the optical module is a single-channel type, the received light power is the received light power of a single channel of the target optical module; when the optical module is a multi-channel type, the received light power is the received light power corresponding to each of the multiple channels of the target optical module.
[0048] Based on the solution provided in the above embodiment, optionally, a received optical power threshold for determining when an optical module fails is determined based on historical fault data of each optical module in the network device, including: obtaining historical bit error information and corresponding received optical power of each sample optical module in the network device; obtaining the received optical power of each faulty optical module in the sample optical modules based on the historical bit error information; and determining the received optical power threshold based on the received optical power of each faulty optical module.
[0049] Here, the optical modules in the network device are optical modules of the same type, for example, all are single-channel modules, or all are multi-channel optical modules and the number of channels included in the multi-channel optical modules is the same.
[0050] The historical bit error information and corresponding received optical power of each sample optical module obtained means that for the same optical module, the historical bit error information and corresponding received optical power at different times are continuously obtained, and a set of historical bit error signals and received optical power are obtained at one time point. In this way, the historical bit error information and corresponding received optical power of multiple different optical modules at different times can be obtained.
[0051] In one embodiment, the bit error information and the received optical power can be collected through the Simple Network Management Protocol (SNMP), or the received optical power can be collected through Telemetry, and the bit error information can be collected through SNMP. The time interval for collecting data by SNMP is, for example, 30 seconds, and the time interval for collecting data by Telemetry is, for example, 2 seconds.
[0052] Optionally, obtaining the received optical power of each faulty optical module in the sample optical modules according to the historical bit error information includes: obtaining the received optical power of each channel of each faulty optical module at the time of the fault according to the historical bit error information.
[0053] Specifically, according to the bit error information of the target sample optical module, the time when the target sample optical module fails is determined; according to the time, the receiving light power of each channel of the target sample optical module is obtained.
[0054] As described above, it is possible to determine whether the target sample optical module has a fault based on the historical bit error information, and thus determine the time when the target sample optical module has a fault. According to the time of the fault, the received optical power of the channel corresponding to the target sample optical module at the time of the fault can be obtained, or the received optical power of the channel corresponding to the target sample optical module at the moment before the fault can be obtained, or the received optical power of the channel corresponding to the target sample optical module at the moment after the fault can be obtained.
[0055] In the embodiment of the present application, taking a multi-channel optical module as an example, the received optical power of each channel of the target sample optical module at the target time is obtained, and the maximum received optical power and the minimum received optical power are obtained to determine the optical power difference. For example, for a 4-channel optical module, there is one channel with the maximum optical power, one channel with the minimum optical power, and the remaining two channels have equal optical powers and are close to the maximum optical power.
[0056] Here, the optical power difference between the maximum received optical power and the minimum received optical power can be determined based on the received optical power of the channel at the moment of the fault, or based on the received optical power of the channel at the moment before the fault, or based on the received optical power of the channel at the moment after the fault, or based on the average received optical power at these moments.
[0057] In this way, the optical power difference of each optical module when a fault occurs can be obtained. For a normal optical module, the maximum channel and minimum channel optical power are similar. The maximum channel optical power of the optical module remains unchanged before and after the fault, and the minimum channel optical power continues to decrease until it decreases to no light.
[0058] Before and after an optical module fails, the corresponding minimum received optical power will change. Accordingly, the difference between the maximum received optical power and the minimum received optical power will also change.
[0059] Optionally, the received light power threshold is determined based on the received light power of each faulty optical module, including: determining the optical power difference between the maximum received light power and the minimum received light power of each channel of each faulty optical module at the moment of failure; calculating the average value of the optical power difference corresponding to each faulty optical module to obtain the average optical power difference of the faulty optical module; determining the variance of the received light power corresponding to each channel of the faulty optical module based on the relationship between the received light power of each channel of the faulty optical module and the average optical power difference; and determining the received light power threshold based on the variance.
[0060] Based on the optical power differences of a large number of faulty optical modules as data samples, the difference between the maximum received optical power and the minimum received optical power of the channel corresponding to the optical module when the fault occurs can be obtained.
[0061] Take a 4-channel optical module as an example, when the target optical module just fails, calculate the difference between the maximum and minimum received optical powers of the 4 channels of the target optical module. In this way, the difference between the maximum and minimum received optical powers of a large number of optical modules just when bit errors occur can be calculated, and the average of these large amounts of optical power difference data can be obtained to obtain the average optical power difference of the faulty optical module, that is, the optical power difference when the optical module usually fails can be obtained.
[0062] In order to improve the accuracy of optical power difference calculation, the optical power difference data corresponding to the total amount of the above optical modules can be preprocessed, for example, the maximum optical power difference of a part of the total amount is removed, the minimum optical power difference of a part of the total amount is removed, and then the average value of the remaining optical power difference data is calculated.
[0063] For example, to remove the total The maximum optical power difference and the total amount removed The minimum optical power difference is then calculated. The average value of the optical power difference data is calculated as follows:
[0064]
[0065] Finally, the average value of the optical power difference is 8, where n is the number of optical power difference data, and a is the difference between the maximum received optical power and the minimum received optical power of the remaining 4 channels.
[0066] After obtaining the optical power difference when the optical module usually fails, the mean of the received optical power corresponding to each channel of the optical module that usually fails can be determined according to the difference, and the corresponding variance can be determined according to the mean.
[0067] In this embodiment, the target faulty optical module is assumed to be any faulty optical module, and the received optical powers of each channel of the faulty optical module may not be known, but the relationship between the received optical powers of each channel of the faulty optical module is known.
[0068] For example, for the 4-channel optical module described above, it is known that one channel has the maximum optical power, one channel has the minimum optical power, and the remaining two channels have equal optical powers and are close to the maximum optical power. In addition, based on the historical fault data of each optical module in the network device obtained above, it is determined that the optical power difference when the optical module usually fails is 8.
[0069] If it is assumed that when a fault occurs, the first channel channel1 is the maximum channel and the received optical power is x; the second channel channel2 is the minimum channel and the received optical power is x-8; the optical powers of the third and fourth channels are equal and close to the received optical power x of the first channel channel1, that is, channel3=channel4=x.
[0070] Then the average value of the light receiving rate corresponding to the four channels is:
[0071]
[0072] Then the variance of the light receiving efficiency corresponding to the four channels is:
[0073]
[0074] Wherein, N represents the number of channels of the optical module.
[0075] It can be seen that when the received optical power variance of the 4-channel optical module is greater than 12, the optical module is in a sub-healthy state and the optical module is about to fail. The received optical power threshold when the optical module fails is determined based on the above variance to predict the failed optical module.
[0076] In this way, the alarm threshold when the optical module is about to fail can be obtained in advance by obtaining the bit errors and corresponding received optical power conditions of a large number of optical modules with known failures.
[0077] It should be pointed out that the present application is not limited to the above-mentioned embodiment of the 4-channel faulty optical module. Using the above-mentioned steps of the present application, the received light power threshold when an optical module with any number of channels fails can be determined and used for optical module fault prediction.
[0078] Step 104: monitor the received light power of the target optical module.
[0079] In this step, the received light power of each optical module can be collected in real time, and the received light power variance corresponding to each optical module can be calculated in real time according to the collected received light power.
[0080] For example, when the received optical power of channel 1 of the 4-channel target optical module collected at a certain moment is -14.77dMb, the received optical power of channel 2 is -0.82dMb, the received optical power of channel 3 is -0.86dMb, and the received optical power of channel 4 is -0.82dMb. At this time, the difference between the maximum and minimum received optical power is 13.95dMb, and the average received optical power corresponding to each channel is:
[0081] The variance is:
[0082] Step 106: If the received light power of the target optical module reaches the received light power threshold, it is determined that the target optical module fails.
[0083] For example, by comparing the received light power variance 36.42 of the target optical module with the received light power threshold 12, since the variance 36.42>12, it can be known that the optical module is in a sub-healthy state and is about to fail.
[0084] By monitoring the received optical power of each optical module in real time and comparing it with the received optical power threshold, the optical module that is about to fail among the optical modules can be predicted in time.
[0085] Furthermore, the relevant data of the optical modules that are about to fail that are filtered out above can be reported to corresponding operation and maintenance personnel, so that the operation and maintenance personnel can clearly understand the situation of the failed optical modules and take corresponding measures.
[0086] The reported information of the predicted faulty optical module can be as follows: Figure 2 As shown, it includes the threshold "12" for predicting optical module failure, the current value "12.13" of the received optical power variance of the optical module, and the name, inventory number, IP, port, port number, computer room location, etc. of the network device where the optical module is located.
[0087] In an embodiment of the present application, the received light power threshold when an optical module fails is determined based on the historical fault data of each optical module in the network device, and when the received light power of the monitored target optical module reaches the received light power threshold, it is determined that the target optical module has a fault, thereby predicting the optical module failure in advance and reducing the subsequent impact of the failure on the business.
[0088] After predicting the target optical module that is about to fail, the optical module that is about to fail can be automatically isolated and shut down based on one or more combinations of the device connection relationship, port traffic and port type of the optical module to avoid affecting subsequent business operations after the actual failure of the optical module.
[0089] The device connection relationship and port traffic corresponding data of the optical module can be collected through Telemetry or SNMP, and the port type can be obtained by querying the preset database.
[0090] Optionally, in one embodiment, after determining that the target optical module has a fault, it also includes: obtaining a connection relationship of a network device where the target optical module is located; based on the connection relationship of the network device, if it is determined that there are multiple optical modules on the network device, shutting down the target optical module from the network device.
[0091] The device connection relationship defines the optical module of the port corresponding to the network device where the target faulty optical module is located. The device connection relationship can be used to know the number of optical modules connected to the port on the network device. If the number of optical modules currently connected to the network device where the faulty optical module is located is greater than 1, that is, in addition to the optical module currently predicted to be faulty, there are other normal optical modules on the network device, then the faulty optical module can be isolated and shut down, and the operation of the optical module predicted to be faulty can be stopped.
[0092] In this way, if there are other optical modules that are working normally, shutting down the target optical module that is about to fail can avoid the problem of service interruption caused by directly shutting down the target faulty optical module. If there are no other optical modules that are working normally in the current network device, the target faulty optical module can be left unshut and continue to work to provide services to the business party.
[0093] Optionally, in one embodiment, after determining that the target optical module has a fault, it also includes: obtaining the connection relationship and port traffic information of the network device where the target optical module is located; based on the connection relationship of the network device, if it is determined that there are multiple optical modules on the network device, then determining the highest peak traffic of each optical module on the network device except the target optical module based on the port traffic information of the network device; if the highest peak traffic of each optical module does not exceed a preset risk threshold, shutting down the target optical module from the network device.
[0094] In this embodiment, in addition to considering that there are other normal optical modules in the network device where the faulty optical module is located, the traffic situation of the normal optical modules is also considered. If the highest peak traffic of at least one normal optical module exceeds the preset traffic percentage, such as 70-80% of the bandwidth traffic, it means that the target normal optical module can no longer carry the traffic of other optical modules. If the shutdown process is directly performed after the faulty optical module is predicted, the traffic diversion of the shut-down faulty optical module will exceed the traffic carrying capacity of the target normal optical module, affecting the normal operation of the normal optical module.
[0095] Therefore, it is necessary to shut down the target optical module from the network device when the highest peak traffic of other normal optical modules on the network device does not exceed the preset risk threshold, so as to avoid directly shutting down the traffic carrying capacity of the target normal optical module, thereby affecting the normal operation of the normal optical module and further affecting the normal operation of the service.
[0096] Optionally, in one embodiment, after determining that the target optical module has a fault, it also includes: determining the port type of the target optical module; if the port type of the target optical module does not belong to a preset dedicated port type, shutting down the target optical module from the network device.
[0097] Port types include dedicated ports and non-dedicated ports. Dedicated ports are ports corresponding to very important links, such as the internal interconnection links of data centers in data communication networks. Port types can be data manually entered and saved in a preset database. When determining the port type of the predicted faulty optical module, you can obtain a query from the corresponding database.
[0098] If it is not a dedicated port type, it means that the link corresponding to the faulty optical module is not an important link, and the faulty optical module can be automatically shut down from the network device. Avoid the impact of direct shutdown on the operation of important link services. If it is a dedicated port type, it means that the link corresponding to the faulty optical module is an important link, and the faulty optical module cannot be automatically shut down from the network device, and manual intervention is required.
[0099] Corresponding to the above-mentioned embodiments, when the faulty optical module shutdown operation is actually performed, a field True can be added to the data that meets the conditions, otherwise a field False is added. All these data are transmitted to the target network control system, and the data includes the network device IP where the faulty optical module is located, the alarm port of the network device, and the added field whether it meets the conditions.
[0100] The target network control system can be a system developed through the network configuration protocol (NETCONF) to perform some simple command configurations on network devices. When the target network control system receives the data, the corresponding port of the target network device is isolated and shut down through the NETCONF protocol for the data with the True field.
[0101] By automatically shutting down predicted sub-healthy faulty optical module links, it can prevent operation and maintenance personnel from being unable to troubleshoot faults after business is affected.
[0102] Optionally, after shutting down the target optical module from the network device, the method further includes:
[0103] The shutdown information of the target optical module is stored, wherein the shutdown information includes the physical position of the target optical module; based on the operation of repairing or replacing the target optical module, the stored shutdown information of the target optical module is obtained, and the physical position of the target optical module is determined according to the obtained shutdown information.
[0104] For faulty optical modules that can be directly shut down, the information of the target optical modules to be shut down can be written into the database for storage, and the operation and maintenance personnel can be informed that the processing status is processed. Figure 3 As shown, the network device where the processed faulty optical module is located, that is, the alarm device can be an uplink device or a downlink device, and the uplink device and the downlink device are devices connected to each other at opposite ends. Here, Figure 3 The alarm device shown is the upstream device.
[0105] like Figure 3 As shown, the information of the upstream device includes the name, inventory number, rack position, IP, and port of the device; the information of the downstream device includes the threshold "12" for predicting optical module failure, the current value "12.13" of the received optical power variance of the faulty optical module, and the name, inventory number, rack position, IP, port, and equipment room location of the downstream device, etc., where the processing status is "processed". The rack position and equipment room location of the downstream device indicate the physical location of the faulty optical module.
[0106] For the faulty optical modules that can be turned off directly or not, the target faulty optical module information can also be written into the database for storage, and the operation and maintenance personnel can be informed that the processing status is unprocessed. Figure 4 As shown, the network device where the unprocessed fault optical module is located is the alarm device, and the uplink device and the downlink device are devices connected to each other at opposite ends. Figure 4 The alarm device shown is the upstream device.
[0107] like Figure 4 As shown, the information of the upstream device includes the name, inventory number, rack position, IP, and port of the device; the information of the downstream device includes the threshold "12" for predicting optical module failure, the current value "12.23" of the received optical power variance of the faulty optical module, and the name, inventory number, rack position, IP, port, and equipment room location of the downstream device, etc., where the processing status is "unprocessed". The rack position and equipment room location of the downstream device indicate the physical location of the faulty optical module.
[0108] When the operation and maintenance personnel repair the faulty optical module, they can obtain the physical location of the faulty optical module by reading the shutdown information in the database. For example, they can locate the community where the faulty optical module is located from the computer room location, and locate the building where the faulty optical module is located from the rack location. In this way, the replacement or repair of the faulty optical module can be accurately located and traceable.
[0109] refer to Figure 5 , is a schematic diagram of the application architecture of the optical module fault handling method of an embodiment of the present application.
[0110] like Figure 5 As shown, the optical module error information, received optical power, device connection relationship and port traffic of each network device 10 are collected through SNMP or Telemetry, and the collected data are stored in the database 20. The data analysis cluster 30 includes multiple servers, which are used to determine the received optical power threshold when the optical module fails according to the collected error information and received optical power, establish a fault prediction model, and send it to the monitoring node 40. The monitoring node 40 predicts whether the target optical module is about to fail according to the prediction model, and further filters the faulty optical module that needs to be shut down by combining the device connection relationship in the collected data, the port traffic and one or more combinations of the port types stored in the database.
[0111] After adding the data of the filtered faulty optical modules that need to be shut down to the field True and the data of the faulty optical modules that do not need to be shut down to the field False, they are sent to the network control system 50. The network control system 50 identifies the optical module that needs to be shut down according to the field, and uses the NETCONF protocol to shut down the link of the corresponding optical module. The monitoring node 40 and the network control system 50 store the corresponding optical module fault prediction information and shutdown information in the database and report it to the operation and maintenance personnel. The operation and maintenance personnel read the optical module shutdown information in the database and locate the physical location of the target optical module that needs to be repaired or replaced.
[0112] Thus, the optical module fault prediction, shutdown, repair or replacement and other processing operations are completed.
[0113] Optionally, the present application embodiment further provides an electronic device, such as Figure 6 As shown, the electronic device 2000 includes a memory 2200 and a processor 2400 electrically connected to the memory 2200, the memory 2200 stores a computer program that can be executed on the processor 2400, and the computer program, when executed by the processor, implements the various processes of any one of the above-mentioned optical module fault handling method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0114] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of any of the above-mentioned optical module fault handling method embodiments is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Wherein, the computer-readable storage medium is such as a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0115] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0117] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for handling optical module failure, characterized in that: include: Determine, according to historical fault data of each sample optical module including multiple channels of the same number in the network device, a received optical power threshold for determining when an optical module including multiple channels of the same number fails, wherein the historical fault data includes historical bit error information and received optical power, and the received optical power threshold is determined based on the received optical power variance corresponding to each faulty optical module in each sample optical module, and the received optical power variance is determined based on the optical power difference between the maximum received optical power and the minimum received optical power in multiple channels corresponding to each faulty optical module; Monitor the received optical power of multiple channels included in the target optical module; If the variance corresponding to the received light powers of the multiple channels of the target optical module collected at the target time reaches the received light power threshold, it is determined that the target optical module fails.
2. The method according to claim 1, characterized in that Determining, according to historical fault data of each sample optical module of the plurality of channels having the same number in the network device, a received optical power threshold for determining when the optical module having the same number of channels has a fault, includes: Obtain historical bit error information and corresponding received optical power of each sample optical module including multiple channels in the network device; According to the historical bit error information, the received optical powers of multiple channels included in each faulty optical module in the sample optical module are respectively obtained; The received light power threshold is determined according to the received light powers of multiple channels included in each faulty optical module.
3. The method according to claim 2, characterized in that According to the historical bit error information, the received optical powers of multiple channels of each faulty optical module in the sample optical module are respectively obtained, including: According to the historical bit error information, the receiving optical power of each channel of each faulty optical module at the time when the fault occurs is obtained respectively.
4. The method according to claim 3, characterized in that Determining the received light power threshold according to the received light powers of multiple channels included in each faulty optical module includes: Determine the optical power difference between the maximum optical power and the minimum optical power in the multiple channels included in each faulty optical module at the time when the fault occurs; Calculate the average value of the optical power difference corresponding to each faulty optical module to obtain the average optical power difference of the faulty optical module; Determine the variance of the received optical power corresponding to each channel of the faulty optical module according to the relationship between the received optical power of each channel of the faulty optical module and the average optical power difference; The received light power threshold is determined according to the variance.
5. The method according to claim 1, characterized in that After determining that the target optical module has a fault, the method further includes: Obtaining a connection relationship of a network device where the target optical module is located; According to the connection relationship of the network device, if it is determined that there are multiple optical modules on the network device, the target optical module is turned off from the network device.
6. The method according to claim 1, characterized in that After determining that the target optical module has a fault, the method further includes: Obtaining the connection relationship and port flow information of the network device where the target optical module is located; If it is determined that there are multiple optical modules on the network device according to the connection relationship of the network device, then according to the port flow information of the network device, the highest peak flow of each optical module on the network device except the target optical module is determined; If the highest peak flow of each optical module does not exceed the preset risk threshold, the target optical module is shut down from the network device.
7. The method according to claim 1, characterized in that After determining that the target optical module has a fault, the method further includes: Determining the port type of the target optical module; If the port type of the target optical module does not belong to the preset dedicated port type, the target optical module is turned off from the network device.
8. The method according to any one of claims 5 to 7, characterized in that After shutting down the target optical module from the network device, the method further includes: Storing the shutdown information of the target optical module, wherein the shutdown information includes the physical location of the target optical module; Based on the operation of repairing or replacing the target optical module, the stored shutdown information of the target optical module is acquired, and the physical position of the target optical module is determined according to the acquired shutdown information.
9. An electronic device, characterized in that: include: A memory and a processor electrically connected to the memory, wherein the memory stores a computer program executable by the processor, and when the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Method, device and equipment for predicting fault of optical module
CN111507363A
