Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial terms or terminology appearing in the course of describing embodiments of the application are applicable to the following explanation:
an optical module: the photoelectric transceiver, the transmitting end converts the electrical signal into the optical signal, the receiving end converts the optical signal into the electrical signal.
PAM4:4-Level Pulse Ampl itude Modulat ion, four-level pulse amplitude modulation, is a signal modulation technique.
FEC: forward Error Correct ion, forward error correction code.
DDM: digital Diagnost ic Monitoring, digital diagnostic detection, optical module monitoring function.
EEPROM: electrical ly Erasable Programmable read only memory an electrically charged eeprom inside the light module.
DSP: digital s ignal processor a digital signal processor inside the optical module is mainly used for recovering the data signal.
Example 1
There is also provided, in accordance with an embodiment of the present application, an embodiment of a method for detecting a physical link of an optical module, where the steps shown in the flowchart of the drawings may be performed in a computer system, such as a set of computer executable instructions, and where, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order other than that shown.
The method according to the first embodiment of the present application may be implemented in a mobile terminal, a computer terminal or a similar computing device. Fig. 1 shows a block diagram of a hardware architecture of a computer terminal (or mobile device) for implementing a method of detection of a physical link of an optical module. As shown in fig. 1, the computer terminal 10 (or mobile device 10) may include one or more (shown as 102a, 102b, … …,102 n) processors 102 (the processors 102 may include, but are not limited to, a microprocessor MCU, a programmable logic device FPGA, etc. processing means), a memory 104 for storing data, and a transmission means 106 for communication functions. In addition, the method may further include: a display, an input/output interface (I/O interface), a Universal Serial BUS (USB) port (which may be included as one of the ports of the BUS), a network interface, a power supply, and/or a camera. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuits described above may be referred to generally herein as "data processing circuits. The data processing circuit may be embodied in whole or in part in software, hardware, firmware, or any other combination. Furthermore, the data processing circuitry may be a single stand-alone processing module, or incorporated, in whole or in part, into any of the other elements in the computer terminal 10 (or mobile device). As referred to in embodiments of the application, the data processing circuit acts as a processor control (e.g., selection of the path of the variable resistor termination connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the optical module physical link detection method in the embodiment of the present application, and the processor 102 executes the software programs and modules stored in the memory 104, thereby executing various functional applications and data processing, that is, implementing the optical module physical link detection method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. The specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Control ler, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).
In the above operating environment, the present application provides a method for detecting a physical link of an optical module as shown in fig. 2.
At present, the online real-time positioning of the faults of the optical module body mainly comprises the following methods:
scheme one: the common optical module online fault diagnosis method is to read DDM information in the optical module, wherein the DDM mainly comprises five items of module data: operating voltage, operating current, operating temperature, emitted light power, and received light power. When the physical link fails, the optical module DDM information read in real time on the network equipment is analyzed to roughly judge whether the problem is related to the optical module link.
Disadvantages: the reason for the failure of the physical link is very many, and many reasons for the problem cannot be obviously abnormal through the DDM, such as the optical eye degradation of the optical module transmission, at this time, the five items of data of the DDM cannot be obviously abnormal, but a large number of error codes can be output by the opposite end module, so that the system side monitors a large number of error codes, and even the port down is dropped. In this case, it is difficult to quickly determine whether it is a module-side failure or a system-side failure.
Scheme II: and detecting the DDM five values of the optical module for a long time, acquiring the change trend of the DDM five values through big data analysis, finding out some rules and phenomena, and judging possible problem points through correlation when physical link faults occur.
Disadvantages: the reason for the failure of the physical link is very many, and many reasons for the problem cannot be obviously abnormal through the DDM, for example, the optical eye diagram degradation of the optical module transmission is not visible, even if the DDM five items of data of the optical module are detected for a long time, the abnormality cannot be detected, but the optical eye diagram degradation of the local end transmission may cause the receiving module of the opposite end to receive a large number of error codes and output the error codes to the system side, so that the system side monitors a large number of error codes, and even the port down is dropped. In this case, it is difficult to quickly determine whether it is a module-side failure or a system-side failure.
Scheme III: the current part of high-speed optical module electric chip can support Eye Monitor function, and is used for detecting the condition of the optical Eye pattern received by the optical module, so that the quality of the optical Eye pattern can be roughly judged.
Disadvantages: if the known chip supports the Eye Monitor function, service interruption can be caused, so that the function can only be used under the condition of physical link isolation; in addition, if relatively accurate eye pattern information is to be obtained, the sampling point number needs to be increased, the type selection requirements of the MCU and the RAM of the optical module are higher, meanwhile, because the data volume is larger, the IIC rate of the current network equipment smaller than 100K needs to take several minutes or even more than ten minutes to obtain complete data, and the real-time performance is poor.
With the continuous expansion and development of the data center, the operation and maintenance of the high-speed optical module of the data center continuously challenges the operation and maintenance capability of the data center, and the capability of rapidly positioning the physical link fault in real time has great significance for network operation and maintenance. The application provides a method for efficiently detecting the quality of an optical link signal of a data center in real time, which can quickly isolate the faults of an optical module and the faults of a system side. The method for detecting the physical link of the optical module provided by the application is described in detail as follows:
Fig. 2 is a flowchart of a method for detecting a physical link of an optical module according to an embodiment of the present application, as shown in fig. 2, the method includes the following steps:
step S202, monitoring data of a detection module inside an optical module is obtained, wherein the detection module is used for detecting distribution information of error symbols continuously appearing in any code word of Ethernet traffic received or transmitted by the optical module;
in order to overcome the defects of the existing scheme, the embodiment of the application adds the function of FEC Monitor in the DSP chip of the optical module for efficiently detecting the signal quality of the optical link of the data center in real time, thereby improving the operation and maintenance efficiency and accuracy. In some embodiments of the present application, a 200G QSFP56 SR4 optical module is taken as an example for description, and other 200G QSFP56 optical modules, 400G QSFP-DD optical modules, and future 800G optical module implementations are substantially identical.
It should be noted that the FEC Monitor (i.e., the detection module in step S202) may be a forward error correction code detection function implemented by software.
The main function implemented by the FEC Monitor is to record the distribution of 0-16 consecutive Symbol errors in any one code word in the ethernet traffic. For example, the electrical signal interface of the 200g s r4 optical module is 4 x 50g PAM4, the network device mainly uses KP4 FEC to perform error correction on the 50g PAM4 electrical signal, if the symbol error in any one codeword is within 15 consecutive errors, the symbol error in any one codeword can be corrected by KP4 FEC, if the symbol error in any one codeword exceeds 15 consecutive errors, the symbol error in the KP4 FEC is not within the error-correction-free range, and an error-free error is generated and output to the system side, and the specific definition can be introduced by referring to the IEEE802.3 standard. Usually, the FEC function exists only in a switching chip or a gecarbox chip of the network device, and only statistics of error-correctable error and error-uncorrectable error can be realized, and distribution statistics of symbol errors in any codeword cannot be realized. As shown in fig. 3, the present solution proposes to add an FEC Monitor function inside the DSP chip of the optical module to detect the distribution of ethernet messages Symbol error per Codeword in real time.
According to another alternative embodiment of the present application, the physical link of the optical module may also be detected by detecting the distribution of 0-16 consecutive Symbol errors in two or more codes. For example, only the error symbols continuously occurring in two (or three, or other numerical) codewords exceed a preset number, and the detection module generates an alarm.
It should be noted that the detection module in step S202 includes, but is not limited to, the FEC detection module described above, and other detection modules may be used as long as the detection module has a detection function.
Step S204, determining the reason of the failure of the physical link of the optical module according to the monitoring data.
By the method, the signal transmission quality between the local optical module and the opposite-end module is detected in real time through the forward error correction code detection function added in the optical module, optical eye detection is not needed, the instantaneity is not influenced, the transmission result of the optical link can be truly reflected, and therefore the technical effect of rapidly judging whether the physical link is an optical module fault or a system side fault is achieved, and further the operation and maintenance efficiency is improved.
According to an alternative embodiment of the present application, before executing step S202, a first preset threshold value for the detection module to alarm is further set, where if the number of error symbols continuously occurring in any one codeword exceeds the first preset threshold value, the detection module alarms.
In this step, a threshold for the forward error correction code detection module to alarm is set, for example, if Symbol error is set to be within 10 consecutive frames, no alarm is given, otherwise, an alarm is given. A schematic representation of the Symbol error distribution in the code is shown in FIG. 4.
According to another alternative embodiment of the application, the physical link of the optical module comprises: the system comprises a first network device, a first optical module, an optical fiber link, a second optical module and second network device which are sequentially connected, wherein the first optical module is connected with the first network device, the second optical module is connected with the second network device, and the first optical module is connected with the second optical module through the optical fiber link.
Fig. 5 is a schematic diagram of an optical module physical link according to an embodiment of the present application, and as shown in fig. 5, the optical module physical link mainly includes the following parts: network device 1, optical module 1, optical fiber link, optical module 2, and network device 2.
In some optional embodiments of the present application, when step S202 is performed, monitoring data of the detection modules inside the first optical module and the second optical module are obtained, respectively.
It should be noted that, the optical modules 1 and 2 are respectively provided with a forward error correction code detection module, so when monitoring data of the forward error correction code detection modules in the optical modules are obtained, monitoring data of the forward error correction code detection modules in the first optical module and the second optical module are required to be obtained respectively.
In another alternative embodiment of the present application, step S204 is implemented by: determining whether an alarm occurs to a detection module in the first optical module and the second optical module to obtain a first detection result, and detecting whether the detection module in the first optical module and the second optical module detects an error code which cannot be corrected to obtain a second detection result, wherein if the number of error symbols continuously occurring in any one codeword exceeds a second preset threshold, the detection of the error code which cannot be corrected is determined; and determining the reason of the failure of the physical link of the optical module according to the first detection result and the second detection result.
In the above, if the symbol errors in any one codeword are within 15 consecutive numbers, the symbol errors can be corrected by KP4 FEC, and if the symbol errors of any one codeword exceed 15 consecutive numbers, the symbol errors are not within the KP4 FEC uncorrectable range.
According to an alternative embodiment of the present application, when the first optical module sends data to the second optical module, determining, according to the first detection result and the second detection result, a cause of a failure of a physical link of the optical module includes: if the detection modules in the first optical module and the second optical module do not detect the uncorrectable error codes, determining that the reason for the failure of the physical link of the optical module is that the first network device or the second network device fails; if the detection module in the first optical module does not detect the uncorrectable error code and alarms, the detection module in the second optical module detects the uncorrectable error code, and the reason for the failure of the physical link of the optical module is determined to be that the optical fiber link fails; if the detection modules inside the first optical module and the second optical module detect the error codes which cannot be corrected, the reason that the physical link of the optical module breaks down is determined to be that the first optical module is incompatible with the first network equipment.
In this step, it is checked whether the FEC Monitor of the optical module 1 and the optical module 2 has an alarm, and whether an uncorrectable error occurs, respectively, and it is required to indicate that the FEC Monitor is bidirectional. The following is an example of the problem location concept of the optical module 1 being transmitted to the optical module 2 being received, and the problem location concept of the optical module 2 being transmitted to the optical module 1 being consistent.
If the TX FEC Monitor of optical module 1 and the RX FEC Monitor of optical module 2 do not detect uncorrectable errors and the physical link fails, the basic decision is that the system side fails (i.e. the network device fails).
If the TX FEC Monitor of the optical module 1 does not detect an uncorrectable error code, and the Margin is large (here, it can be understood that the forward error correction code detection module inside the optical module 1 detects that the number of error symbols continuously occurring in any codeword of the ethernet traffic exceeds a first preset threshold, and an alarm occurs), and the RX FEC Monitor of the optical module 2 detects that there is an uncorrectable error code, then the basic determination is that the optical link sent by the optical module 1 to the optical module 2 is faulty (i.e. the optical link is faulty).
If TX FEC Monitor of optical module 1 detects an uncorrectable error, it is theorized that RX FEC Monitor of optical module 2 also synchronously detects an uncorrectable error, and then the compatibility problem between network device 1 and optical module 1 is to be examined.
According to another alternative embodiment of the present application, before step S202 is performed, digital diagnostic test data of the first optical module and the second optical module need to be acquired; and if the digital diagnosis detection data are normal, acquiring the monitoring data of the detection module.
When the physical link fails, checking the DDM information of the optical module 1 and the optical module 2, and if the DDM is abnormal, continuously checking the reason for the DDM abnormality; and if the DDM does not check the abnormal condition, acquiring the monitoring data of the forward error correction code detection module.
Preferably, the monitoring data of the forward error correction code detection module is stored in a register of a memory inside the light module.
The detected percentages of different Symbol error or actual Count values are recorded in real time in 16byte registers of a self-defined optical module EEPROM, the registers are real-time registers, and information recorded by the optical module can be read in real time through an IIC interface of network equipment, so that the signal quality of an optical link and Margin (Margin can be understood as the number of error symbols continuously appearing in any code word of Ethernet flow detected by a forward error correction code detection module) are known in real time, and the possibility of assisting operation and maintenance and early finding potential risks is realized.
The fixed Page section and specific address bits are defined in the optical module EEPROM and used for storing Symbol Error per Codeword distribution conditions detected and analyzed in real time by the FEC Monitor, and in the current network environment, the signal transmission quality and Margin between the optical modules can be clearly known by acquiring a code distribution result in the optical module through network equipment, so that potential risks are found, and the operation and maintenance efficiency and accuracy are improved.
It should be noted that the method for detecting the physical link of the optical module provided by the application can be applied to all high-speed optical modules used in a data center, such as 200G QSFP56 SR4, 200G QSFP56 FR4 optical modules, 400G QSFP-DD packaged optical modules and 800G optical modules to be used in the future.
The application stores the data detected by the FEC Monitor in the EEPROM of the optical module through the FEC Monitor function added by the DSP chip in the optical module, detects the signal transmission quality between the local end module and the opposite end module in real time, does not need to detect an optical eye pattern, does not influence the instantaneity, can truly reflect the transmission result of the optical link, and combines the DDM data of the optical module, thereby truly and rapidly judging whether the physical link is the fault of the optical module or the fault of the system side.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
From the above description of the embodiments, it will be clear to those skilled in the art that the method for detecting a physical link of an optical module according to the above embodiments may be implemented by means of software plus a necessary general hardware platform, or may be implemented by hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
Example 2
According to an embodiment of the present application, there is also provided an apparatus for implementing the method for detecting a physical link of an optical module, as shown in fig. 6, where the apparatus includes:
the acquiring module 60 is configured to acquire monitoring data of a detecting module inside the optical module, where the detecting module is configured to detect distribution information of error symbols continuously occurring in any one codeword of the ethernet traffic received or transmitted by the optical module;
and the determining module 62 is configured to determine a cause of the failure of the physical link of the optical module according to the monitoring data.
Here, it should be noted that the above-mentioned obtaining module 60 and determining module 62 correspond to step S202 to step S204 in embodiment 1, and the two modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in embodiment 1 above. It should be noted that the above-described module may be operated as a part of the apparatus in the computer terminal 10 provided in embodiment 1.
Example 3
According to an embodiment of the present application, there is also provided an optical module, as shown in fig. 7, including: a detection module 70, and a controller 72, wherein,
the detecting module 70 is configured to detect distribution information of error symbols continuously appearing in any one codeword of the ethernet traffic received or transmitted by the optical module;
It should be noted that, the detection module 70 is a hardware module disposed inside the optical module, and may be implemented by an ARM.
The controller 72 is in communication with the detection module 70 and is configured to determine a cause of a failure of the physical link of the optical module based on the distribution information.
It should be noted that, the preferred implementation manner of the embodiment shown in fig. 7 may refer to the related description of the embodiment shown in fig. 2, which is not repeated herein.
Example 4
There is also provided, in accordance with an embodiment of the present application, an optical transmission system, as shown in fig. 8, including: an optical module 80, and a network device 82, wherein,
the optical module 80 includes a detection module, configured to detect distribution information of error symbols continuously occurring in any one codeword of the ethernet traffic received or transmitted by the optical module 80;
the network device 82 is in communication with the optical module 80 and is configured to determine a cause of the failure of the physical link of the optical module 80 according to the distribution information.
It should be noted that, the preferred implementation manner of the embodiment shown in fig. 8 may refer to the related description of the embodiment shown in fig. 2, which is not repeated herein.
Example 5
Embodiments of the present application may provide a computer terminal, which may be any one of a group of computer terminals. Alternatively, in the present embodiment, the above-described computer terminal may be replaced with a terminal device such as a mobile terminal.
Alternatively, in this embodiment, the above-mentioned computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
In this embodiment, the above-mentioned computer terminal may execute the program code of the following steps in the method for detecting an optical module physical link of an application program: acquiring monitoring data of a detection module in the optical module, wherein the detection module is used for detecting distribution information of error symbols continuously appearing in any code word of the Ethernet traffic received or transmitted by the optical module; and determining the reason of the failure of the physical link of the optical module according to the monitoring data.
Alternatively, fig. 9 is a block diagram of a computer terminal according to an embodiment of the present application. As shown in fig. 9, the computer terminal 90 may include: one or more (only one shown) processors 902, memory 904, and radio frequency modules, audio modules, and a display screen.
The memory may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for detecting an optical module physical link in the embodiment of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby implementing the method for detecting an optical module physical link. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory remotely located with respect to the processor, the remote memory being connectable to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: acquiring monitoring data of a detection module in the optical module, wherein the detection module is used for detecting distribution information of error symbols continuously appearing in any code word of the Ethernet traffic received or transmitted by the optical module; and determining the reason of the failure of the physical link of the optical module according to the monitoring data.
Optionally, the above processor may further execute program code for: and setting a first preset threshold value for the detection module to alarm, wherein if the number of error symbols continuously appearing in any code word exceeds the first preset threshold value, the detection module alarms.
Optionally, the above processor may further execute program code for: and respectively acquiring monitoring data of detection modules inside the first optical module and the second optical module.
Optionally, the above processor may further execute program code for: determining whether an alarm occurs to a detection module in the first optical module and the second optical module to obtain a first detection result, and detecting whether the detection module in the first optical module and the second optical module detects an error code which cannot be corrected to obtain a second detection result, wherein if the number of error symbols continuously occurring in any one codeword exceeds a second preset threshold, the detection of the error code which cannot be corrected is determined; and determining the reason of the failure of the physical link of the optical module according to the first detection result and the second detection result.
Optionally, the above processor may further execute program code for: if the detection modules in the first optical module and the second optical module do not detect the uncorrectable error codes, determining that the reason for the failure of the physical link of the optical module is that the first network device or the second network device fails; if the detection module in the first optical module does not detect the uncorrectable error code and alarms, the detection module in the second optical module detects the uncorrectable error code, and the reason for the failure of the physical link of the optical module is determined to be that the optical fiber link fails; if the detection modules inside the first optical module and the second optical module detect the error codes which cannot be corrected, the reason that the physical link of the optical module breaks down is determined to be that the first optical module is incompatible with the first network equipment.
Optionally, the above processor may further execute program code for: acquiring digital diagnostic detection data of the first optical module and the second optical module; and if the digital diagnosis detection data are normal, acquiring the monitoring data of the detection module.
The embodiment of the application provides a method for detecting an optical module physical link. The forward error correction code detection function is added in the optical module, so that the signal transmission quality between the local optical module and the opposite end module is detected in real time, the optical eye detection is not needed, the real-time performance is not influenced, the transmission result of an optical link can be truly reflected, and the technical problems that the current optical module body fault is limited in means of on-line real-time positioning and the fault misjudgment is easy to occur are solved.
It will be appreciated by those skilled in the art that the configuration shown in fig. 9 is only illustrative, and the computer terminal may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a mobile internet device (Mobi le Internet Devices, MID), a PAD, etc. Fig. 9 is not limited to the structure of the electronic device. For example, the computer terminal 90 may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 9, or have a different configuration than shown in FIG. 9.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The embodiment of the application also provides a storage medium. Alternatively, in this embodiment, the storage medium may be used to store program code executed by the optical module physical link detection method provided in embodiment 1.
Alternatively, in this embodiment, the storage medium may be located in any one of the computer terminals in the computer terminal group in the computer network, or in any one of the mobile terminals in the mobile terminal group.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of: acquiring monitoring data of a detection module in the optical module, wherein the detection module is used for detecting distribution information of error symbols continuously appearing in any code word of the Ethernet traffic received or transmitted by the optical module; and determining the reason of the failure of the physical link of the optical module according to the monitoring data.
Optionally, the above-mentioned storage medium is further configured to store program code for performing the steps of: and setting a first preset threshold value for the detection module to alarm, wherein if the number of error symbols continuously appearing in any code word exceeds the first preset threshold value, the detection module alarms.
Optionally, the above storage medium is further configured to store program code for performing the steps of: and respectively acquiring monitoring data of detection modules inside the first optical module and the second optical module.
Optionally, the above storage medium is further configured to store program code for performing the steps of: determining whether an alarm occurs to a detection module in the first optical module and the second optical module to obtain a first detection result, and detecting whether the detection module in the first optical module and the second optical module detects an error code which cannot be corrected to obtain a second detection result, wherein if the number of error symbols continuously occurring in any one codeword exceeds a second preset threshold, the detection of the error code which cannot be corrected is determined; and determining the reason of the failure of the physical link of the optical module according to the first detection result and the second detection result.
Optionally, the above storage medium is further configured to store program code for performing the steps of: if the detection modules in the first optical module and the second optical module do not detect the uncorrectable error codes, determining that the reason for the failure of the physical link of the optical module is that the first network device or the second network device fails; if the detection module in the first optical module does not detect the uncorrectable error code and alarms, the detection module in the second optical module detects the uncorrectable error code, and the reason for the failure of the physical link of the optical module is determined to be that the optical fiber link fails; if the detection modules inside the first optical module and the second optical module detect the error codes which cannot be corrected, the reason that the physical link of the optical module breaks down is determined to be that the first optical module is incompatible with the first network equipment.
Optionally, the above storage medium is further configured to store program code for performing the steps of: acquiring digital diagnostic detection data of the first optical module and the second optical module; and if the digital diagnosis detection data are normal, acquiring the monitoring data of the detection module.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.