Method and device for monitoring optical module

Through the parallel monitoring method performed by FPGA, the problem of failure detection delay in the existing light module monitoring method is solved, the second -level light module monitoring is realized, and network stability and fault response speed are improved.

CN119382787APending Publication Date: 2025-01-28BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411497272.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

The existing optical module monitoring methods cannot reflect the working conditions of the optical module in real time, and there is a long delay in fault detection, resulting in network performance degradation and fault processing delay. Especially in multi-port equipment, the number of required acquisition of status information of all optical modules is required. minute.

Method used

The monitoring method executed by FPGA uses multiple communication interfaces to connect with multiple light modules of the switch one by one to realize the inquiry instructions and receiving status data of multiple optical modules in parallel to quickly determine the status diagnosis of the light module.

Benefits of technology

The efficiency of light module monitoring is greatly improved, the failure detection time is shortened, and the second -level light module monitoring is achieved to ensure that the network is stable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119382787A_ABST
    Figure CN119382787A_ABST
Patent Text Reader

Abstract

The invention provides an optical module monitoring method and device. The monitoring method is executed by an FPGA, a plurality of communication interfaces of the FPGA are in one-to-one connection with a plurality of optical modules of a switch, and the monitoring method comprises the following steps: sending a state query instruction to the plurality of optical modules in parallel through the plurality of communication interfaces; receiving state data fed back by the plurality of optical modules in response to the state query instruction in parallel through the plurality of communication interfaces; and determining state diagnosis results of the plurality of optical modules according to the state data of the plurality of optical modules. According to the invention, the monitoring efficiency of the optical module is improved, and reliable support is provided for guaranteeing the stable operation of a network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to the field of electronic technology, and more specifically, to a monitoring method and device for an optical module. Background Art

[0002] Optical modules are key components in data communication and network equipment. In an increasingly complex network environment, it is particularly important to monitor the working status of optical modules in real time and accurately, because their performance directly affects the stability of the entire network system and the reliability of data transmission. However, current optical module monitoring methods often fail to meet monitoring needs, cannot reflect the working status of optical modules in real time, and have a long fault detection delay, which may lead to network performance degradation and the inability to handle faults in a timely manner. Especially for multi-port devices, the monitoring pressure of optical modules is greater. For example, it takes about 4 minutes to collect the status information of all optical modules of a switch with 128 ports. Summary of the invention

[0003] An exemplary embodiment of the present disclosure provides a method and device for monitoring an optical module, which can solve the problem that it takes too long to collect status information of the optical module of a switch.

[0004] According to a first aspect of an embodiment of the present disclosure, a monitoring method for an optical module is provided, wherein the monitoring method is executed by an FPGA, wherein multiple communication interfaces of the FPGA are connected one by one to multiple optical modules of a switch, and the monitoring method comprises: sending status query instructions to the multiple optical modules in parallel through the multiple communication interfaces; receiving status data fed back by the multiple optical modules in response to the status query instructions in parallel through the multiple communication interfaces; and determining status diagnosis results of the multiple optical modules based on the status data of the multiple optical modules.

[0005] Optionally, it also includes: in response to a control instruction received from a host computer, sending an initialization instruction or a reset instruction in parallel to at least one optical module through at least one communication interface; and / or, in response to the status diagnosis result of any optical module being an abnormal state, sending a reset instruction to the optical module through the corresponding communication interface.

[0006] Optionally, it also includes: for each optical module, saving the partial status data of the optical module received each time to the storage area corresponding to the optical module in the FPGA; in response to the storage area corresponding to the optical module having saved the complete status data of the optical module, transferring the complete status data of the optical module to the first-in-first-out total storage area in the FPGA.

[0007] Optionally, based on the status data of the multiple optical modules, the step of determining the status diagnosis results of the multiple optical modules includes: independently executing, through each thread of the multiple parallel threads: reading the complete status data of an optical module from the total storage area, and determining the status diagnosis result of the optical module based on the read complete status data.

[0008] Optionally, the method further includes: in response to a status diagnosis result of any optical module being abnormal, generating and sending a fault warning signal indicating that the status of the optical module is abnormal.

[0009] Optionally, the status data of the optical module includes a parameter value of at least one of the following parameters: temperature, voltage, current, and transmit / receive optical power.

[0010] Optionally, the interface circuit of the FPGA includes: a buffer and a protection circuit.

[0011] Optionally, the storage areas corresponding to each of the multiple optical modules and the total storage area are set in the memory of the FPGA.

[0012] According to a second aspect of an embodiment of the present disclosure, a monitoring device for an optical module is provided, and the monitoring device is implemented by an FPGA, and the monitoring device comprises: a plurality of communication interfaces, connected one by one to a plurality of optical modules of a switch; a sending unit, configured to send status query instructions to the plurality of optical modules in parallel through the plurality of communication interfaces; a receiving unit, configured to receive status data fed back by the plurality of optical modules in response to the status query instructions in parallel through the plurality of communication interfaces; and a diagnosis unit, configured to determine status diagnosis results of the plurality of optical modules according to the status data of the plurality of optical modules.

[0013] According to a third aspect of an embodiment of the present disclosure, there is provided an FPGA, comprising: a plurality of communication interfaces, connected one by one to a plurality of optical modules of a switch; a processor; and a memory storing computer executable instructions; wherein, when the computer executable instructions are executed by the processor, the processor is prompted to execute the optical module monitoring method as described above.

[0014] According to the optical module monitoring method and device of the exemplary embodiment of the present disclosure, the monitoring efficiency of the optical module is improved, and reliable support is provided for ensuring the stable operation of the network.

[0015] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0017] Figure 1 An example of collecting information of an optical module of an existing switch is shown;

[0018] Figure 2 A flow chart showing a method for monitoring an optical module according to an exemplary embodiment of the present disclosure;

[0019] Figure 3 A structural block diagram of an FPGA according to an exemplary embodiment of the present disclosure is shown;

[0020] Figure 4 A flow chart showing a method for monitoring an optical module according to another exemplary embodiment of the present disclosure;

[0021] Figure 5 A structural block diagram of a monitoring device for an optical module according to an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0022] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0024] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.

[0025] For ease of understanding, some terms involved in the exemplary embodiments of the present disclosure are explained below.

[0026] FPGA (Field Programmable Gate Array) is a product further developed on the basis of programmable devices such as PAL (Programmable Array Logic) and GAL (General Array Logic). It appears as a semi-custom circuit in the field of Application Specific Integrated Circuit (ASIC), which not only solves the shortcomings of custom circuits, but also overcomes the shortcomings of the limited number of gate circuits of the original programmable devices.

[0027] I2C bus: It is a simple, bidirectional, two-wire synchronous serial bus developed by Philips. It only needs two wires to transmit information between devices connected to the bus.

[0028] Optical module: An optical module is an optoelectronic device that performs photoelectric and electro-optical conversion. The transmitting end of the optical module converts electrical signals into optical signals, and the receiving end converts optical signals into electrical signals. Optical modules are classified according to the packaging form. Common ones include SFP, SFP+, SFF, Gigabit Ethernet Interface Converter (GBIC), etc. They are mainly used in switch devices; optical module information is stored in the internal storage chip and can be collected through the I2C bus.

[0029] PCA9548: I2C bus routing switch chip.

[0030] CPLD (Complex Programmable Logic Device): CPLD uses programming technologies such as CMOS EPROM, EEPROM, flash memory and SRAM to form a high-density, high-speed and low-power programmable logic device.

[0031] Figure 1 An example of collecting information of optical modules of existing switches is shown. Figure 1 As shown, in the existing solution, the optical module information collection process is realized by integrating CPU, CPLD and PCA9548 switch chip technology. The specific operation process is: first, the CPU uses the control system formed by CPLD and PCA9548 switch chip to select each optical module. This selection is based on the instructions of the integrated software, and the information reading channel of a specific optical module is activated by controlling the PCA9548 switch chip; then, when the information reading channel of the selected optical module is activated, the CPU starts to read the information of the optical module.

[0032] The existing solution realizes the collection of optical module information in the above manner. However, the existing solution has the following disadvantages:

[0033] Complex hardware design: Since access to a single optical module needs to be enabled through the CPLD and multiple PCA9548 switch chips, a switch with 128 ports needs to use one CPLD and 18 PCA548 chips, which makes the hardware design complex;

[0034] Long access time for optical modules: To access a single optical module, the associated switch chips need to be turned on in sequence, including CPLD and two PCA9548 chips. It takes tens of milliseconds for each switch chip to select a path, resulting in 2-3 seconds to collect information on a single optical module. In addition, access to multiple optical modules needs to be completed serially (that is, only one optical module can be accessed at the same time). For a switch with 128 ports, it takes 4-6 minutes to collect information on all optical modules.

[0035] With the development of data centers, it is required to realize real-time monitoring of the optical modules of switches. The existing solutions require multiple switch chips to select optical modules, which makes the hardware design complicated. In addition, accessing optical modules requires switching multiple switch chips, which consumes time. Accessing multiple optical modules needs to be completed serially, which results in a long time required to complete the collection of all optical module information. The present disclosure proposes to use FPGA as a hardware control platform to access multiple optical modules in parallel through multiple communication interfaces connected to multiple optical modules of the switch, thereby solving the problems of complex hardware design and long optical module access time. Figures 2 to 5 Provide detailed explanation.

[0036] Figure 2 A flow chart of a method for monitoring an optical module according to an exemplary embodiment of the present disclosure is shown.

[0037] The monitoring method is executed by FPGA. Figure 3 The structure block diagram of the FPGA is shown, and multiple communication interfaces of the FPGA are connected one by one with multiple optical modules of the switch. As an example, the switch may be a white box switch.

[0038] Reference Figure 2 In step S101, status query instructions are sent to the multiple optical modules in parallel through the multiple communication interfaces.

[0039] As an exemplary embodiment, in response to a query instruction received from a host computer, a status query instruction may be sent to the multiple optical modules in parallel through the multiple communication interfaces.

[0040] As another exemplary embodiment, the status query instructions may be periodically sent to the multiple optical modules in parallel through the multiple communication interfaces.

[0041] In step S102, status data fed back by the multiple optical modules in response to the status query instruction are received in parallel through the multiple communication interfaces.

[0042] As an exemplary embodiment, the status data of the optical module may include but is not limited to the parameter value of at least one of the following parameters: temperature, voltage, current, and transmit / receive optical power.

[0043] In step S103, status diagnosis results of the multiple optical modules are determined according to the status data of the multiple optical modules.

[0044] As an exemplary embodiment, for each optical module, the state diagnosis result of the optical module is determined according to whether the parameter value of each parameter of the optical module is within the normal threshold range of the parameter (i.e., whether it is less than the upper limit value and greater than the lower limit value). For example, if the parameter value of a certain parameter exceeds the corresponding normal threshold range, it is determined that the state of the optical module is abnormal. For example, the normal threshold range corresponding to each parameter of the optical module can be read from each optical module.

[0045] As an exemplary embodiment, each thread in the plurality of parallel threads may independently perform: determining a status diagnosis result of an optical module according to the status data of the optical module.

[0046] As an exemplary embodiment, the monitoring method of the optical module according to the exemplary embodiment of the present disclosure may also include: for each optical module, saving the partial status data of the optical module received each time to the storage area corresponding to the optical module in the FPGA; in response to the storage area corresponding to the optical module having saved the complete status data of the optical module, transferring the complete status data of the optical module to the first-in-first-out total storage area in the FPGA.

[0047] The present disclosure takes into account that: when the optical module feeds back status data in response to the status query instruction, if the amount of status data is large and cannot be sent all at once, it will be sent in multiple times (i.e., only part of the status data is sent each time), and multiple optical modules will feed back status data in parallel. If the status data of all optical modules are stored in one storage area, the status data stored in the storage area will be disordered (for example, the status data of different optical modules will be interspersed and saved, that is, the status data of the same optical module will be stored in a dispersed manner), which is not convenient for subsequent reading and analysis. Therefore, the present disclosure proposes: setting a unique storage area for each optical module, saving the status data of the optical module received each time to the storage area corresponding to the optical module, if the storage area corresponding to the optical module has already saved the complete status data of the optical module (for example, the parameter values ​​of all parameters have been saved), then the complete status data of the optical module is transferred to the first-in-first-out total storage area, so that the complete status data of each optical module can be directly read from the total storage area for analysis, and the complete status data of the optical module stored first will be analyzed first. According to the exemplary embodiments of the present disclosure, the reading method of the optical module status data collected in parallel can be optimized to avoid data reading conflicts and improve the efficiency of the optical module status analysis.

[0048] Accordingly, step S103 may include: independently executing, through each thread of the plurality of parallel threads: reading complete status data of an optical module from the general storage area, and determining a status diagnosis result of the optical module based on the read complete status data.

[0049] As an example, the storage area corresponding to each optical module and the total storage area can be set in the memory of the FPGA.

[0050] As an exemplary embodiment, the monitoring method of the optical module according to the exemplary embodiment of the present disclosure may further include: in response to a control instruction received from a host computer, sending an initialization instruction or a reset instruction to at least one optical module in parallel through at least one communication interface. For example, the control instruction may specify which optical modules to send the initialization instruction or the reset instruction.

[0051] As an exemplary embodiment, the optical module monitoring method according to the exemplary embodiment of the present disclosure may further include: in response to a state diagnosis result of any optical module being abnormal, sending a reset instruction to the optical module through a corresponding communication interface.

[0052] As an exemplary embodiment, the optical module monitoring method according to the exemplary embodiment of the present disclosure may further include: in response to the state diagnosis result of any optical module being abnormal, generating and sending a fault warning signal indicating that the optical module is abnormal. For example, the fault warning signal may be sent to a host computer.

[0053] As an exemplary embodiment, the optical module monitoring method according to the exemplary embodiment of the present disclosure may further include: sending status data and status diagnosis results of each optical module to a host computer.

[0054] As an exemplary embodiment, the interface circuit of the FPGA may include, but is not limited to: a buffer and a protection circuit.

[0055] As an example, the plurality of communication interfaces may be a plurality of high-speed serial interfaces.

[0056] According to an exemplary embodiment of the present disclosure, high-precision second-level monitoring of optical modules is achieved through FPGA. FPGA can simulate multiple optical module access channels and achieve concurrent access. It can also store and analyze the collected optical module status data. FPGA can provide a memory area to cache all optical module information. FPGA stores the periodically collected optical module status data in this area, and the host computer can quickly read the information of all optical modules from FPGA. FPGA acts as a core processing unit, controls the packaging and disassembly of data, realizes multiple high-speed serial interfaces to connect multiple optical modules one by one, completes simultaneous access to multiple optical modules, and can complete the status data collection of all optical modules within 1-3 seconds.

[0057] Figure 4 A flow chart of a method for monitoring an optical module according to another exemplary embodiment of the present disclosure is shown.

[0058] Reference Figure 4 In step S201, the FPGA completes the logic implementation of the optical module channel interface (ie, the above-mentioned multiple communication interfaces), that is, implements the channel for connecting the bottom layer and the optical module, and supports parallel access to all optical modules.

[0059] As an example, regarding the interface logic implementation, the optical module communication protocol (for example, the I2C protocol) can be implemented in the FPGA through the hardware programming language Verilog HDL. The I2C controller is used to communicate with the optical module to realize multi-channel channels. It can access multiple optical modules at the same time and implement a state machine to manage different communication states and operations, such as initialization, reading, and writing.

[0060] In step S202, the FPGA periodically sends a status query instruction to the optical module via the communication interface using a control code, thereby acquiring the status data of the optical module and storing it in a cache area.

[0061] In step S203, the processing algorithm inside the FPGA processes and analyzes the received status data, and determines whether the working status of the optical module is normal through an intelligent judgment algorithm.

[0062] In step S204, the FPGA stores the status diagnosis result of the optical module in a buffer area.

[0063] In step S205, the host computer obtains the status data and status diagnosis results of the optical module through the cache area, generates a fault warning signal according to the status data and status diagnosis results of the optical module, and promptly notifies the upper-level device or network management system of the fault warning signal to facilitate fault location and equipment maintenance.

[0064] According to an exemplary embodiment of the present disclosure, a method for monitoring an optical module in seconds based on FPGA is provided, which has at least the following beneficial effects:

[0065] It can quickly and effectively complete the information collection of optical modules, avoiding the long time of collecting optical module information;

[0066] By utilizing the parallel communication and computing capabilities of FPGA, it is possible to provide optical module monitoring within seconds, greatly shortening the fault detection time and improving the fault response speed.

[0067] The hardware design is simple, and multiple modules can be monitored through an FPGA hardware control module;

[0068] FPGA is highly programmable and flexible, and can customize query instructions and processing strategies according to specific application environments and optical module types, thereby improving the accuracy and real-time performance of monitoring.

[0069] Figure 5 The structure block diagram of the monitoring device of the optical module according to the exemplary embodiment of the present disclosure is shown. The monitoring device is implemented by FPGA.

[0070] like Figure 5 As shown, the monitoring device 1000 of the optical module according to the exemplary embodiment of the present disclosure includes: a plurality of communication interfaces 100 , a sending unit 200 , a receiving unit 300 , and a diagnosis unit 400 .

[0071] Specifically, the multiple communication interfaces 100 are connected one by one to the multiple optical modules of the switch.

[0072] The sending unit 200 is configured to send status query instructions to the multiple optical modules in parallel through the multiple communication interfaces.

[0073] The receiving unit 300 is configured to receive, in parallel, through the multiple communication interfaces, status data fed back by the multiple optical modules in response to the status query instruction.

[0074] The diagnosis unit 400 is configured to determine status diagnosis results of the plurality of optical modules according to the status data of the plurality of optical modules.

[0075] As an exemplary embodiment, the sending unit 200 can also be configured to: in response to a control instruction received from a host computer, send an initialization instruction or a reset instruction to at least one optical module in parallel through at least one communication interface; and / or, in response to the status diagnosis result of any optical module being an abnormal status, send a reset instruction to the optical module through the corresponding communication interface.

[0076] As an exemplary embodiment, the monitoring device 1000 for an optical module according to the exemplary embodiment of the present disclosure may further include: a storage unit (not shown), the storage unit being configured to save, for each optical module, partial status data of the optical module received each time into a storage area corresponding to the optical module in the FPGA; in response to the storage area corresponding to the optical module having saved the complete status data of the optical module, transferring the complete status data of the optical module to a first-in-first-out total storage area in the FPGA.

[0077] As an exemplary embodiment, the diagnosis unit 400 may be configured to independently execute, through each of a plurality of parallel threads, reading complete status data of an optical module from the total storage area, and determining a status diagnosis result of the optical module based on the read complete status data.

[0078] As an exemplary embodiment, the diagnosis unit 400 may be further configured to: in response to a state diagnosis result of any optical module being abnormal, generate and send a fault warning signal indicating that the state of the optical module is abnormal.

[0079] As an exemplary embodiment, the status data of the optical module may include a parameter value of at least one of the following parameters: temperature, voltage, current, and transmit / receive optical power.

[0080] As an exemplary embodiment, the interface circuit of the FPGA may include: a buffer and a protection circuit.

[0081] As an exemplary embodiment, the plurality of communication interfaces may be a plurality of high-speed serial interfaces.

[0082] As an exemplary embodiment, the storage areas corresponding to each of the plurality of optical modules and the total storage area may be set in the memory of the FPGA.

[0083] Regarding the optical module monitoring device 1000 in the above embodiment, the specific manner in which each unit performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0084] In addition, it should be understood that the various units in the monitoring device 1000 for an optical module according to the exemplary embodiment of the present disclosure can be implemented as hardware components and / or software components. Those skilled in the art can use a field programmable gate array (FPGA) to implement the various units according to the processing performed by the defined various units.

[0085] According to an embodiment of the present disclosure, there is also provided an FPGA, comprising: a plurality of communication interfaces, connected one by one to a plurality of optical modules of a switch; a processor; and a memory storing computer executable instructions; wherein, when the computer executable instructions are executed by the processor, the processor is prompted to execute the optical module monitoring method as described above.

[0086] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0087] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for monitoring an optical module, characterized in that: The monitoring method is executed by an FPGA, wherein multiple communication interfaces of the FPGA are connected one by one with multiple optical modules of the switch, and the monitoring method includes: Sending status query instructions to the multiple optical modules in parallel through the multiple communication interfaces; Receiving in parallel through the multiple communication interfaces the status data fed back by the multiple optical modules in response to the status query instruction; According to the status data of the multiple optical modules, status diagnosis results of the multiple optical modules are determined.

2. The monitoring method according to claim 1, characterized in that: Also includes: In response to a control instruction received from a host computer, sending an initialization instruction or a reset instruction to at least one optical module in parallel through at least one communication interface; And / or, in response to a status diagnosis result of any optical module being abnormal, sending a reset instruction to the optical module through a corresponding communication interface.

3. The monitoring method according to claim 1, characterized in that: Also includes: For each optical module, saving the partial state data of the optical module received each time into a storage area corresponding to the optical module in the FPGA; In response to the storage area corresponding to the optical module having stored the complete status data of the optical module, the complete status data of the optical module is transferred to the first-in-first-out total storage area in the FPGA.

4. The monitoring method according to claim 3, characterized in that: The step of determining the status diagnosis results of the multiple optical modules according to the status data of the multiple optical modules comprises: Executed independently by each of multiple parallel threads: The complete status data of an optical module is read from the total storage area, and the status diagnosis result of the optical module is determined based on the read complete status data.

5. The monitoring method according to claim 1, characterized in that: Also includes: In response to a state diagnosis result of any optical module being abnormal, a fault warning signal indicating that the state of the optical module is abnormal is generated and sent.

6. The monitoring method according to claim 1, characterized in that: The status data of the optical module includes the parameter value of at least one of the following parameters: Temperature, voltage, current, transmit and receive light power.

7. The monitoring method according to claim 1, characterized in that: The interface circuit of the FPGA includes a buffer and a protection circuit.

8. The monitoring method according to claim 3, characterized in that: The storage areas corresponding to each of the plurality of optical modules and the total storage area are arranged in the memory of the FPGA.

9. A monitoring device for an optical module, characterized in that: The monitoring device is implemented by FPGA, and the monitoring device includes: Multiple communication interfaces are connected one by one with multiple optical modules of the switch; A sending unit, configured to send status query instructions to the multiple optical modules in parallel through the multiple communication interfaces; A receiving unit, configured to receive, in parallel, through the multiple communication interfaces, status data fed back by the multiple optical modules in response to the status query instruction; The diagnosis unit is configured to determine status diagnosis results of the multiple optical modules according to the status data of the multiple optical modules.

10. An FPGA, characterized in that: include: Multiple communication interfaces are connected one by one with multiple optical modules of the switch; processor; a memory storing computer executable instructions; Wherein, when the computer executable instructions are executed by the processor, the processor is prompted to execute the monitoring method of the optical module according to any one of claims 1 to 8.