Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or 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, some terms or terms appearing in the description of the embodiments of the present application are applicable to the following explanations:
an optical module: the sending end of the photoelectric transceiver converts the electric signal into an optical signal, and the receiving end of the photoelectric transceiver converts the optical signal into the electric signal.
PAM 4: 4-Level Pulse Amplitude Modulation, four-Level Pulse Amplitude Modulation, is a signal Modulation technique.
FEC: forward Error Correction, Forward Error Correction.
DDM: digital Diagnostic Monitoring, Digital Diagnostic testing, optical module Monitoring.
An EEPROM: electrically Erasable Programmable read only memory inside the optical module.
And (4) DSP: the Digital signal processor in the optical module is mainly used for recovering data signals.
Example 1
According to the embodiments of the present application, there is also provided an embodiment of a method for detecting an optical module physical link, where it is to be noted that the steps shown in the flowchart of the drawings may be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that here.
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Fig. 1 shows a block diagram of a hardware structure of a computer terminal (or mobile device) for implementing a detection method of optical module physical link. 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 processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission module 106 for communication functions. Besides, the method can also comprise the following steps: 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 source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. 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 circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuit 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 the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path 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 detection method for the physical link of the optical module in the embodiment of the present application, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implements the detection method for the physical link of the optical module. The 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 device 106 is used for receiving or transmitting data via a network. 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 (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
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 optical module body fault on-line real-time positioning mainly comprises the following methods:
the first scheme is as follows: the commonly used optical module online fault diagnosis method is to read the DDM information inside the optical module, and the DDM mainly includes five module data: operating voltage, operating current, operating temperature, emitted optical power, and received optical power. When a physical link fails, the DDM information of the optical module read in real time on the network device is analyzed, and whether the problem is related to the optical module link is roughly judged.
The disadvantages are as follows: the physical link fails due to a plurality of reasons, many reasons for the problem cannot be seen by DDM, for example, the optical eye pattern sent by the optical module deteriorates, at this time, five items of data of DDM cannot be seen by DDM, but a large number of error codes may be output by the opposite-end module, so that a system side detects a large number of error codes, and even a port is down. In this case, it is difficult to quickly determine whether the module side failure or the system side failure is present.
Scheme II: the DDM five-item numerical value of the optical module is detected for a long time, the change trend of the DDM five items is obtained through big data analysis, some rules and phenomena are found out, and when physical link faults occur, possible problem points are judged through mutual correlation.
The disadvantages are as follows: the physical link has many reasons for faults, and many reasons for problems cannot be seen by DDM, for example, the optical eye pattern transmitted by the optical module deteriorates, and even if five items of data of the DDM of the optical module are detected for a long time, the abnormality may not be detected, but the optical eye pattern deterioration transmitted by the home terminal may cause the receiving module at the opposite terminal 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 falls. In this case, it is difficult to quickly determine whether it is a module-side failure or a system-side failure.
The third scheme is as follows: the current part of high-speed optical module electric chips can support Eye Monitor function and is used for detecting the optical Eye pattern condition received by the optical module, so that the quality of the optical Eye pattern can be roughly judged.
The disadvantages are as follows: the known chip can cause service interruption if supporting the Eye Monitor function, so that the function can only be used under the condition of physical link isolation; in addition, if relatively accurate eye pattern information needs to be acquired, the number of sampling points needs to be increased, the requirement on the type selection of the MCU and the RAM of the optical module is high, meanwhile, because the data volume is large, the IIC rate of the existing network equipment which is smaller than 100K needs to take several minutes or even more than ten minutes to acquire complete data, and the real-time performance is poor.
With the continuous expansion and development of data centers, the operation and maintenance of high-speed optical modules in the data centers are continuously challenged to the operation and maintenance capacity of the data centers, and the capacity of quickly positioning physical link faults in real time has great significance to the operation and maintenance of networks. The invention provides a method for efficiently detecting the quality of an optical link signal of a data center in real time, which can quickly isolate an optical module fault and a system side fault. The following describes in detail a method for detecting an optical module physical link according to the present application:
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, and as shown in fig. 2, the method includes the following steps:
step S202, acquiring monitoring data of a detection module in an optical module, wherein the detection module is used for detecting distribution information of error symbols continuously appearing in any code word of Ethernet traffic received or sent by the optical module;
in order to overcome the defects of the existing scheme, the embodiment of the application adds the function of the FEC Monitor inside the DSP chip of the optical module to be used for efficiently detecting the signal quality of the optical link of the data center in real time, so that the operation and maintenance efficiency and the accuracy are improved. In some embodiments of the present application, a 200G QSFP56 SR4 optical module is taken as an example for explanation, and the implementation manners of other 200G QSFP56 optical modules, 400G QSFP-DD optical modules and future 800G optical modules are substantially the same.
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 realized by the FEC Monitor is to record the distribution of 0-16 continuous Symbol errors in any code word in the ethernet traffic. For example, an electrical signal interface of a 200G SR4 optical module is 4 × 50G PAM4, the network device mainly uses KP4 FEC to perform error correction on a 50G PAM4 electrical signal, if symbol errors in any one codeword are correctable by KP4 FEC within 15 consecutive symbols, if symbol errors in any one codeword exceed 15 consecutive symbols, the symbol errors are not in a KP4 FEC uncorrectable range, and a non-correctable error is generated and output to the system side, and specific definitions can be introduced with reference to IEEE802.3 standard. Usually, the FEC function exists only in a switch chip or a geobox chip of a network device, and only statistics of error-correctable error and error-uncorrectable error can be achieved, and distribution statistics of symbol errors in any one codeword cannot be achieved. As shown in fig. 3, the present solution proposes that an FEC Monitor function is added inside a DSP chip of an optical module for detecting Symbol error per coded distribution in an ethernet packet in real time.
According to another alternative embodiment of the present application, the physical link of the optical module can also be detected by detecting the distribution of 0-16 consecutive Symbol errors in two or more coded words. For example, the detection module may generate an alarm only if the number of error symbols consecutively occurring in two (or three, or other numerical values) codewords exceeds a preset number.
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 they have a detection function.
And step S204, determining the reason of the physical link failure of the optical module according to the monitoring data.
By the method, the forward error correction code detection function is added in the optical module, so that the purposes of detecting the signal transmission quality between the local optical module and the opposite optical module in real time, not needing optical eye diagram detection, not influencing real-time performance and truly reflecting the transmission result of the optical link are achieved, and the technical effects of quickly judging whether the physical link is an optical module fault or a system side fault and further improving the operation and maintenance efficiency are achieved.
According to an alternative embodiment of the present application, before performing step S202, a first preset threshold for the detection module to generate an alarm needs to be set, wherein if the number of error symbols continuously appearing in any one codeword exceeds the first preset threshold, the detection module generates an alarm.
In this step, a threshold for the forward error correction code detection module to generate an alarm is set, for example, if Symbol error is set within 10 consecutive frames, no alarm is given, otherwise, an alarm is given. The schematic diagram of Symbol error distribution in the code is shown in FIG. 4.
According to another alternative embodiment of the present application, the physical link of the optical module comprises: the optical module comprises a first network device, a first optical module, an optical fiber link, a second optical module and a 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 equipment 1, optical module 1, optical fiber link, optical module 2 and network equipment 2.
In some optional embodiments of the present application, when step S202 is executed, monitoring data of the detection modules inside the first optical module and the second optical module are respectively obtained.
It should be noted that, the optical modules 1 and 2 are respectively provided with a forward error correction code detection module therein, so that when acquiring monitoring data of the forward error correction code detection module inside the optical module, the monitoring data of the forward error correction code detection module inside the first optical module and the monitoring data of the forward error correction code detection module inside the second optical module need to be acquired respectively.
In another alternative embodiment of the present application, step S204 is implemented by the following method: determining whether the detection modules in the first optical module and the second optical module generate an alarm to obtain a first detection result, and detecting whether the detection modules in the first optical module and the second optical module detect the error code which cannot be corrected to obtain a second detection result, wherein if the number of error symbols which continuously appear in any code word exceeds a second preset threshold value, the error code which cannot be corrected is determined to be detected; and determining the reason of the physical link failure of the optical module according to the first detection result and the second detection result.
It is mentioned above that if the symbol errors in any one codeword are within 15 consecutive numbers, they can be corrected by KP4 FEC, and if the symbol errors in any one codeword exceed 15 consecutive numbers, they are not within KP4 FEC uncorrectable range.
According to an optional embodiment of the present application, when the first optical module sends data to the second optical module, determining a cause of a failure of a physical link of the optical module according to the first detection result and the second detection result includes: if the detection modules in the first optical module and the second optical module do not detect the uncorrectable error code, determining that the reason of the physical link of the optical module is that the first network equipment or the second network equipment fails; if the detection module in the first optical module does not detect the uncorrectable error code and gives an alarm, the detection module in the second optical module detects the uncorrectable error code and determines that the reason of the failure of the physical link of the optical module is the failure of the optical fiber link; and if the detection modules in the first optical module and the second optical module detect the uncorrectable error code, determining that the reason of the failure of the physical link of the optical module is 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 code occurs, which needs to indicate that the FEC Monitor is bidirectional. In the following, an example will be given in which the optical module 1 transmits and receives to and from the optical module 2, and the problem location ideas transmitted and received by the optical module 2 and the optical module 1 are kept consistent.
If the TX FEC Monitor of the optical module 1 and the RX FEC Monitor of the optical module 2 do not detect the uncorrectable error code, but the physical link fails, it is basically determined 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 Margin is large (it can be understood here that a forward error correction code detection module inside the optical module 1 detects that the number of error symbols continuously appearing in any codeword of ethernet traffic exceeds a first preset threshold, an alarm occurs), and the RX FEC Monitor of the optical module 2 detects that an uncorrectable error code exists, it is basically determined that an optical link (i.e., an optical fiber link fails) received by the optical module 1 to the optical module 2.
If the TX FEC Monitor of the optical module 1 detects an uncorrectable error code, the RX FEC Monitor of the optical module 2 will also detect an uncorrectable error code in synchronization, and then the compatibility problem between the network device 1 and the optical module 1 needs to be checked.
According to another alternative embodiment of the present application, before step S202 is executed, digital diagnostic test data of the first optical module and the second optical module needs to be acquired; and if the digital diagnosis detection data are normal, acquiring the monitoring data of the detection module.
When a physical link fails, checking DDM information of the optical module 1 and the optical module 2, and if the DDM is abnormal, continuously checking the reason causing 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 optical module.
The detected percentages or actual Count values of different Symbol error rates are recorded in a 16byte register of a self-defined optical module EEPROM in real time, 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) can be known in real time, and the possibility of assisting operation and maintenance to find potential risks in the early stage is realized.
A fixed Page interval and specific address bits are defined in an optical module EEPROM and used for storing a Symbol Error per coded distribution condition which is detected and analyzed by an FEC Monitor in real time, and in the current network environment, the signal transmission quality and Margin between an optical module and an optical module can be clearly known by acquiring a coded 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 detection method for the physical link of the optical module provided by the present application can be applied to all high-speed optical module types used in a data center, such as 200G QSFP56 SR4, 200G QSFP56 FR4 optical modules, and 400G QSFP-DD packaged optical modules and 800G optical modules to be used in the future.
According to the method and the device, the data detected by the FEC Monitor are stored in the EEPROM of the optical module through the FEC Monitor function added to the DSP chip in the optical module, the signal transmission quality between the local module and the opposite module is detected in real time, optical eye pattern detection is not needed, the real-time performance is not influenced, the transmission result of the optical link can be truly reflected, and the DDM data of the optical module is combined, so that whether the physical link is optical module fault or system side fault is really and rapidly judged.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method for detecting an optical module physical link according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute 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 an optical module physical link, as shown in fig. 6, the apparatus includes:
an obtaining module 60, configured to obtain monitoring data of a detection module inside the optical module, where the detection module is configured to detect distribution information of error symbols continuously appearing in any code word of ethernet traffic received or sent by the optical module;
and the determining module 62 is configured to determine a reason why the physical link of the optical module fails according to the monitoring data.
It should be noted here that the determining module 60 and the determining module 62 correspond to steps S202 to S204 in embodiment 1, and the two modules are the same as the example and application scenarios realized by the corresponding steps, but are not limited to the disclosure of embodiment 1. It should be noted that the above modules may be operated in the computer terminal 10 provided in embodiment 1 as a part of the apparatus.
Example 3
According to an embodiment of the present application, there is also provided an optical module, as shown in fig. 7, the optical module includes: a detection module 70, and a controller 72, wherein,
a detection module 70, configured to detect distribution information of error symbols continuously appearing in any code word of the ethernet traffic received or sent by the optical module;
it should be noted that the detection module 70 is a hardware module disposed inside the optical module, and can be implemented by an ARM.
And a controller 72, in communication with the detection module 70, for determining a cause of a failure of the physical link of the optical module according to the distribution information.
It should be noted that, reference may be made to the description related to the embodiment shown in fig. 2 for a preferred implementation of the embodiment shown in fig. 7, and details are not described here again.
Example 4
According to an embodiment of the present application, there is also provided 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 that continuously appear in any one codeword of ethernet traffic received or sent by the optical module 80;
and the network equipment 82 is in communication with the optical module 80 and is used for determining the reason of the failure of the physical link of the optical module 80 according to the distribution information.
It should be noted that, reference may be made to the description related to the embodiment shown in fig. 2 for a preferred implementation of the embodiment shown in fig. 8, and details are not repeated here.
Example 5
The embodiment of the application can provide a computer terminal, and the computer terminal can be any one computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced with a terminal device such as a mobile terminal.
Optionally, in this embodiment, the computer terminal may be located in at least one network device of a plurality of network devices of a computer network.
In this embodiment, the computer terminal may execute the program code of the following steps in the method for detecting the optical module physical link of the application program: acquiring monitoring data of a detection module in an optical module, wherein the detection module is used for detecting distribution information of error symbols continuously appearing in any code word of Ethernet flow received or sent by the optical module; and determining the reason of the physical link failure of the optical module according to the monitoring data.
Optionally, 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 module, audio module, and 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 a physical link of an optical module 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, that is, implements the method for detecting a physical link of an optical module. 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 located remotely from the processor, and these remote memories may be connected 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 can call the information and application program stored in the memory through the transmission device to execute the following steps: acquiring monitoring data of a detection module in an optical module, wherein the detection module is used for detecting distribution information of error symbols continuously appearing in any code word of Ethernet flow received or sent by the optical module; and determining the reason of the physical link failure of the optical module according to the monitoring data.
Optionally, the processor may further execute the program code of the following steps: and setting a first preset threshold value for the detection module to alarm, wherein if the number of error symbols continuously appearing in any one code word exceeds the first preset threshold value, the detection module alarms.
Optionally, the processor may further execute the program code of the following steps: and respectively acquiring monitoring data of the detection modules in the first optical module and the second optical module.
Optionally, the processor may further execute the program code of the following steps: determining whether the detection modules in the first optical module and the second optical module generate an alarm to obtain a first detection result, and detecting whether the detection modules in the first optical module and the second optical module detect the error code which cannot be corrected to obtain a second detection result, wherein if the number of error symbols which continuously appear in any code word exceeds a second preset threshold value, the error code which cannot be corrected is determined to be detected; and determining the reason of the physical link failure of the optical module according to the first detection result and the second detection result.
Optionally, the processor may further execute the program code of the following steps: if the detection modules in the first optical module and the second optical module do not detect the uncorrectable error code, determining that the reason of the physical link of the optical module is that the first network equipment or the second network equipment fails; if the detection module in the first optical module does not detect the uncorrectable error code and gives an alarm, the detection module in the second optical module detects the uncorrectable error code and determines that the reason of the failure of the physical link of the optical module is the failure of the optical fiber link; and if the detection modules in the first optical module and the second optical module detect the uncorrectable error code, determining that the reason of the failure of the physical link of the optical module is that the first optical module is incompatible with the first network equipment.
Optionally, the processor may further execute the program code of the following steps: acquiring digital diagnosis detection data of a first optical module and a second optical module; and if the digital diagnosis detection data are normal, acquiring the monitoring data of the detection module.
By adopting the embodiment of the application, a method for detecting the physical link of the optical module is provided. The forward error correction code detection function is added in the optical module, so that the purposes of detecting the signal transmission quality between the local optical module and the opposite optical module in real time, not needing optical eye diagram detection, not influencing real-time performance and truly reflecting the transmission result of an optical link are achieved, and the technical problems that the current optical module body fault online real-time positioning means is limited and fault misjudgment is easy to occur are solved.
It can be understood by those skilled in the art that the structure shown in fig. 9 is only an illustration, and the computer terminal may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 9 is a diagram illustrating a 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 skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Embodiments of the present application also provide a storage medium. Optionally, in this embodiment, the storage medium may be configured to store a program code executed by the method for detecting an optical module physical link provided in embodiment 1.
Optionally, in this embodiment, the storage medium may be located in any one of computer terminals in a computer terminal group in a computer network, or in any one of mobile terminals in a mobile terminal group.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: acquiring monitoring data of a detection module in an optical module, wherein the detection module is used for detecting distribution information of error symbols continuously appearing in any code word of Ethernet flow received or sent by the optical module; and determining the reason of the physical link failure of the optical module according to the monitoring data.
Optionally, the storage medium is further configured to store program code for performing the following steps: and setting a first preset threshold value for the detection module to alarm, wherein if the number of error symbols continuously appearing in any one code word exceeds the first preset threshold value, the detection module alarms.
Optionally, the storage medium is further configured to store program codes for performing the following steps: and respectively acquiring monitoring data of the detection modules in the first optical module and the second optical module.
Optionally, the storage medium is further configured to store program codes for performing the following steps: determining whether the detection modules in the first optical module and the second optical module generate an alarm to obtain a first detection result, and detecting whether the detection modules in the first optical module and the second optical module detect the error code which cannot be corrected to obtain a second detection result, wherein if the number of error symbols which continuously appear in any code word exceeds a second preset threshold value, the error code which cannot be corrected is determined to be detected; and determining the reason of the physical link failure of the optical module according to the first detection result and the second detection result.
Optionally, the storage medium is further configured to store program codes for performing the following steps: if the detection modules in the first optical module and the second optical module do not detect the uncorrectable error code, determining that the reason of the physical link of the optical module is that the first network equipment or the second network equipment fails; if the detection module in the first optical module does not detect the uncorrectable error code and gives an alarm, the detection module in the second optical module detects the uncorrectable error code and determines that the reason of the failure of the physical link of the optical module is the failure of the optical fiber link; and if the detection modules in the first optical module and the second optical module detect the uncorrectable error code, determining that the reason of the failure of the physical link of the optical module is that the first optical module is incompatible with the first network equipment.
Optionally, the storage medium is further configured to store program codes for performing the following steps: acquiring digital diagnosis detection data of a first optical module and a second optical module; and if the digital diagnosis detection data are normal, acquiring the monitoring data of the detection module.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute 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), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.