Optical module processing method, network device, storage medium, and electronic device

By automatically generating a debug configuration list and saving the optimal configuration items, the problem of high complexity in the adaptation process between optical modules and network devices is solved, achieving efficient parameter configuration and reliable signal transmission.

WO2026001116A1PCT designated stage Publication Date: 2026-01-02INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/083545
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-27
Filing Date
2025-03-19
Publication Date
2026-01-02

AI Technical Summary

Technical Problem

The adaptation process between optical modules and network devices is complex, resulting in low efficiency in parameter configuration, inability to perform batch operations during the debugging phase, poor operability during the application phase, and impact on signal transmission quality.

Method used

By reading the declaration information stored in the LPO module through the network device, an automatic debugging configuration list is generated, the configuration item with the optimal transmission performance parameters is determined, and it is saved to the network device, thereby realizing the automatic adaptation between the LPO module and the network device.

Benefits of technology

It improves parameter configuration efficiency, reduces manual intervention, ensures signal transmission quality, and makes the adaptation process more efficient and reliable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025083545_02012026_PF_FP_ABST
    Figure CN2025083545_02012026_PF_FP_ABST
Patent Text Reader

Abstract

The embodiments of the present application relate to the field of optical modules. Provided are an optical module processing method, a network device, a storage medium, and an electronic device. The method comprises: reading tuning declaration information from a target memory by means of a specified communication bus; on the basis of a parameter value range of configuration parameters in a group of configuration parameters indicated by the tuning declaration information, generating a tuning configuration list; according to configuration items in the tuning configuration list, sequentially configuring parameter values of a group of configuration parameters of a group of target components, and determining parameter values of transmission performance parameters of a specified port that correspond to the configuration items in the tuning configuration list; and determining from the tuning configuration list a configuration item which involves the minimum parameter value of the corresponding transmission performance parameter, so as to obtain a target configuration item, and storing the target configuration item in a network device. By means of the present application, the problem, in an optical module processing method of the pertinent art, of the parameter configuration efficiency being low due to a high complexity of an adaptation process between an LPO module and a network device is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Processing method of optical module, network device, storage medium and electronic device

[0001] Cross-reference to related applications

[0002] The present application claims priority from a Chinese patent application No. 202410850078.6 filed on June 27, 2024, and entitled "Processing method of optical module, network device, storage medium and electronic device", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0003] Embodiments of the present application relate to the technical field of optical modules, in particular, to a processing method of an optical module, a network device, a storage medium and an electronic device. BACKGROUND

[0004] In the related art, each parameter needs to be modified one by one during the debugging stage of the LPO module, and each parameter needs to be measured on the machine one by one, which is low in efficiency, long in period and poor in operability. During the online application stage, the LPO module needs to be installed according to the parameter configuration corresponding to different device ports when going online, which is poor in operability. If the installation operation fails, it will directly affect the signal transmission quality of the existing network.

[0005] Therefore, the processing method of the optical module in the related art has the problem of low parameter configuration efficiency caused by high complexity of the adaptation process of the LPO module and the network device. SUMMARY

[0006] Embodiments of the present application provide a processing method of an optical module, a network device, a storage medium and an electronic device to at least solve the problem of low parameter configuration efficiency caused by high complexity of the adaptation process of the LPO module and the network device in the related art.

[0007] According to one aspect of the embodiments of this application, a method for processing an optical module is provided, comprising: in the debugging mode of a network device, reading debugging declaration information from a target memory of a linearly driven pluggable optical module via a designated communication bus, wherein the debugging declaration information is used to indicate a set of configuration parameters of a set of target components that are allowed to be debugged and the parameter value range of the configuration parameters in the set of configuration parameters; generating a debugging configuration list according to the parameter value range of the configuration parameters in the set of configuration parameters indicated by the debugging declaration information, wherein the configuration items in the debugging configuration list are combinations of parameter values ​​of a set of configuration parameters; configuring the parameter values ​​of a set of configuration parameters of a set of target components sequentially according to the configuration items in the debugging configuration list, and determining the parameter value of the transmission performance parameter corresponding to the configuration item in the debugging configuration list for a designated port; determining the configuration item with the smallest parameter value of the corresponding transmission performance parameter in the debugging configuration list to obtain a target configuration item, and saving the target configuration item to the network device.

[0008] According to another aspect of the embodiments of this application, a network device is provided in which a set of target components of a linearly driven pluggable optical module are connected to a designated port of the network device. The network device includes: a first reading unit, configured to read debugging declaration information from a target memory of the linearly driven pluggable optical module via a designated communication bus in the debugging mode of the network device, wherein the debugging declaration information is used to indicate a set of configuration parameters that allow debugging of a set of target components and the parameter value range of the configuration parameters in the set of configuration parameters; a first generating unit, configured to generate a debugging configuration list according to the parameter value range of the configuration parameters in the set of configuration parameters indicated by the debugging declaration information, wherein the configuration items in the debugging configuration list are combinations of parameter values ​​of a set of configuration parameters; a first execution unit, configured to configure the parameter values ​​of a set of configuration parameters of a set of target components sequentially according to the configuration items in the debugging configuration list, and determine the parameter value of the transmission performance parameter corresponding to the configuration item in the debugging configuration list for the designated port; and a second execution unit, configured to determine the configuration item with the smallest parameter value of the corresponding transmission performance parameter in the debugging configuration list, obtain the target configuration item, and save the target configuration item to the network device.

[0009] According to another aspect of the embodiments of this application, a computer-readable non-volatile storage medium is provided, the computer-readable non-volatile storage medium including a stored program, wherein the program executes the steps in any of the above method embodiments when it runs.

[0010] According to another aspect of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to perform the steps of any of the above method embodiments via the computer program.

[0011] According to another aspect of the embodiments of this application, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.

[0012] Through the embodiments of this application, the network device reads the configuration parameters and parameter value ranges that are allowed to be debugged as indicated in the declaration information stored in the LPO module, automatically generates a debug configuration list, and determines the configuration item with the best data signal quality (i.e., the smallest parameter value of the transmission performance parameter) indicated by the transmission performance parameter corresponding to the configuration item in the debug configuration list as the target configuration item, and saves it to the network device. It can directly call the saved target configuration item during the application stage of the LPO module without manual debugging, realize the adaptation of the LPO module and the network device, and thus solve the problem of low parameter configuration efficiency due to the high complexity of the adaptation process between the LPO module and the network device in the optical module processing method of related technologies. Attached Figure Description

[0013] Figure 1 is a hardware structure block diagram of a processing method for an optical module according to an embodiment of this application.

[0014] Figure 2 is a flowchart illustrating a method for processing an optical module according to an embodiment of this application.

[0015] Figure 3 is a comparative diagram of an LPO module system and a DSP module system according to an embodiment of this application.

[0016] Figure 4 is a schematic diagram of the connection of a network device, an LPO module, and a self-looping optical fiber in a debugging mode according to an embodiment of this application.

[0017] Figure 5 is a flowchart illustrating the parameter tuning process of an LPO module according to an embodiment of this application.

[0018] Figure 6 is a flowchart illustrating the application process of an LPO module according to an embodiment of this application.

[0019] Figure 7 is a structural block diagram of an optional network device provided in an embodiment of this application.

[0020] Figure 8 is a structural block diagram of a computer system for an optional electronic device provided in an embodiment of this application. Detailed Implementation

[0021] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.

[0022] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of the embodiments of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0024] The method embodiments provided in this application can be applied to network devices. Figure 1 is a hardware structure block diagram of a processing method for an optical module according to an embodiment of this application. As shown in Figure 1, a set of target components of a linearly driven pluggable optical module are connected to a designated port of the network device.

[0025] This embodiment provides a method for processing an optical module. Figure 2 is a flowchart illustrating a method for processing an optical module according to an embodiment of this application. As shown in Figure 2, the process includes the following steps:

[0026] Step S202: In the debugging mode of the network device, debugging declaration information is read from the target memory of the linearly driven pluggable optical module via a specified communication bus. The debugging declaration information is used to indicate a set of configuration parameters that allow debugging of a set of target components and the parameter value range of the configuration parameters in the set of configuration parameters.

[0027] The optical module processing method in this embodiment can be applied to scenarios where the component parameters of optical modules are configured. As an important component of optical fiber communication, an optical module is an optoelectronic device that performs photoelectric conversion and electro-optical conversion. Optical modules enable the interconnection of host SerDes (Host Serializer / Deserializer) network devices (e.g., network interface cards and switches). As the SerDes (serializer / deserializer) rate in network devices increases, signal loss and crosstalk also increase, significantly impacting data transmission quality. The linear direct-drive mode commonly used in low-speed optical modules (currently still used in 1G / 10G SFP (Small Form-factor Pluggable) series optical modules) cannot guarantee the minimum BER (bit error rate) requirements of high-speed SerDes. Therefore, CDR (Clock and Data Recovery) solutions were introduced in 25G SerDes, which reshape the signal at both the transmitting and receiving ends to reduce the bit error rate. However, in 50G SerDes optical modules, the capabilities of CDR solutions have reached their limit; that is, CDR is prone to loss of lock or false lock-up under conditions of high signal noise. Therefore, DSP (Digital Signal Processing) solutions have emerged. Compared to CDR, DSP re-encodes the signal, thereby optimizing the signal. Currently, DSP solutions are widely used in 50G / 100G SerDes optical modules.

[0028] DSP modules improve signal quality, but their drawbacks are also significant, becoming increasingly pronounced in the AI ​​(Artificial Intelligence) era: high power consumption, high cost, and high latency. For example, a typical 400G optical module consumes 10W. A 51.2T bandwidth switch requires 128 400G optical modules, resulting in a power consumption of nearly 1300W for the optical modules alone—even exceeding the combined power consumption of the CPU and switching chip. This also makes it a weak point in the overall system's heat dissipation, necessitating the installation of high-power fans for air cooling. In AIGC (Artificial Intelligence for General Communication) networks, the overall utilization rate of network equipment is much higher than in traditional data centers, making power consumption a core factor affecting operational costs. Furthermore, based on current market prices, the cost of a fully equipped DSP module system may exceed the cost of the switch itself. Because DSPs re-encode signals, they inevitably introduce significant signal latency, with a single DSP contributing approximately 20-50ns, a substantial drawback for AI networks with low latency requirements. Therefore, the industry has been exploring alternatives for DSP modules that offer low power consumption, low cost, and low latency. Currently, the most commonly used solution is the Direct Attach Copper (DAC) solution. However, this solution is only suitable for short-distance interconnection scenarios within 3 meters and cannot be used for large-scale AI cluster networking scenarios. Furthermore, in the 200G Serdes era, copper cables had limited application value due to excessive losses and short transmission distances.

[0029] With technological advancements, the noise tolerance of SerDes has been continuously improving. In recent years, DSP-free linear-direct-drive pluggable optical modules (LPO) have emerged. This means that when the SerDes capability at the host end of the device is sufficiently strong, the optical module can achieve good bit error rate performance even without a DSP. LPO is an optical module packaging technology that employs a linear drive strategy, replacing the DSP with a TIA (Transimpedance Amplifier) ​​and a Driver, both possessing excellent linearity and equalization capabilities. Compared to DSP modules, LPO modules do not have a DSP or a CDR. Figure 3 shows a comparison between an LPO module system (top) and a DSP module system (bottom). Here, Ctle can represent Continuous Time Linear Equalizer, Driver Ctle is a technology used to improve signal integrity, and EQ stands for Equalizer. The TIA EQ is a component at the receiver end used to amplify and equalize the received signal. A transimpedance amplifier converts the small current generated by a photodiode (PD) into a voltage signal, while an equalizer adjusts this voltage signal to compensate for signal distortion during transmission.

[0030] However, there are currently no optoelectronic interface protocols or management interface protocols for LPO modules. Although major manufacturers in the industry are organizing the drafting of relevant protocols, the application of LPO modules without CDR or DSP on devices is point-to-point. General specifications can only define the lower limit of performance, but the upper limit of performance is currently the factor affecting the large-scale application of LPO modules.

[0031] In addition, there are many factors that affect the BER performance of LPO modules on devices, such as port location (corresponding to signal loss), module type, module PN (Part Number), etc. Currently, LPO modules need to be adapted for each model of module, each port of network device, and even each transmission channel lane of the port (a port of network device may contain multiple lanes, and each lane can independently process data packets). The process is complicated and has poor operability.

[0032] Therefore, adapting an LPO module to a device requires adaptation for each brand, type, equipment manufacturer, port, and even lane of the port. In other words, the adaptation process for an LPO module to a device is extremely complex and meticulous.

[0033] The current application solutions for LPO modules and network devices are as follows:

[0034] 1. Debugging Phase: Equipment manufacturers and optical module suppliers need to conduct joint debugging first. Since there is currently no management interface protocol for debugging LPO modules, module manufacturers cannot open the parameter debugging interface of LPO modules in a unified register address. Usually, each set of parameters of the LPO module needs to be modified offline manually, and then adapted on the machine. After adaptation, the parameter list of the corresponding module on the corresponding port is obtained.

[0035] 2. Application Phase: After debugging, different ports of the equipment, corresponding to different PN optical modules, have fixed optimal parameters. When the equipment manufacturer installs the LPO module at the customer's site, the parameters of the LPO module need to be modified port by port to achieve the optimal configuration. Alternatively, the module manufacturer can modify the module parameters and mark them at the factory stage, and the equipment manufacturer can install it at the customer's site according to the marked port correspondence. If the module fails, it can only be replaced with a module of the same configuration. Therefore, when the same LPO module is put into service, different parameter versions need to be distinguished.

[0036] Therefore, the optical module processing methods in related technologies have the following problems:

[0037] 1. During the debugging phase, there is no unified management interface protocol. Some manufacturers have opened parameter debugging interfaces, while others have not. Even if they have opened them, different manufacturers cannot unify them. During the debugging phase, batch operations cannot be achieved. Only parameters can be modified one by one and tested on the machine one by one, which is inefficient, time-consuming, and has poor operability.

[0038] During the deployment phase, under normal circumstances, DSP modules that pass testing can be deployed directly without distinguishing between device ports. However, LPO modules cannot. Whether the module parameters are modified by the equipment vendor at the customer's site after the module leaves the factory, or the parameters of the LPO module are modified before leaving the factory, and then the module is installed according to the parameter configuration to correspond to different device ports during deployment, the operability is very poor. If the installation operation is incorrect, it will directly affect the signal transmission quality of the existing network. The installation disadvantages of LPO modules alone greatly limit their application.

[0039] To at least partially solve the above problems, in this embodiment, the network device reads the configuration parameters and parameter value ranges indicated in the declaration information stored in the LPO module, automatically generates a debug configuration list, and determines the configuration item with the best data signal quality (i.e., the smallest parameter value of the transmission performance parameter) indicated by the transmission performance parameter corresponding to the configuration item in the debug configuration list as the target configuration item and saves it to the network device, thereby realizing automatic optimization of the LPO module configuration parameters and improving parameter configuration efficiency.

[0040] In some embodiments, debug declaration information can be stored in the target memory of the LPO module during the factory delivery stage. This debug declaration information indicates a set of configuration parameters for which debugging is permitted for a group of target components, as well as the range of parameter values ​​for these parameters. Based on this, manufacturers can define the configuration parameters and corresponding parameter ranges for a set of target components in the LPO module.

[0041] In the debug mode of the network device, the network device can read debug declaration information from the target memory of the LPO module via a specified communication bus. Thus, the network device can determine a set of configuration parameters of a set of target components of the LPO module connected to a specified port that are allowed to be debugged, as well as the parameter value range of the configuration parameters in the set of configuration parameters that are allowed to be debugged.

[0042] Step S204: Generate a debug configuration list based on the parameter value range of the configuration parameters in a set of configuration parameters indicated by the debug declaration information, wherein the configuration items in the debug configuration list are combinations of parameter values ​​of a set of configuration parameters.

[0043] Based on the range of parameter values ​​for the configuration parameters in a set of configuration parameters that allow debugging, read from the LPO module, the processor in the network device can generate a debug configuration list.

[0044] The configuration items in the debug configuration list are combinations of parameter values ​​for a set of configuration parameters. For example, consider a set of configuration parameters allowing debugging of a target component, with the parameter value ranges as follows: Parameter 1, 1-10; Parameter 2, 1-10; Parameter 3, 1-10; Parameter 4, 1-10; Parameter 5, 1-10. A single configuration item in the debug configuration list can be Parameter 1, 2; Parameter 2, 3; Parameter 3, 3; Parameter 4, 3; Parameter 5, 3. There can be multiple configuration items in the debug configuration list. To improve the scientific rigor and debugging efficiency, the parameter values ​​can be determined based on orthogonal experiments. An orthogonal array is a special type of matrix used in orthogonal experimental design to ensure the balance and representativeness of the experiments. An orthogonal array is a table composed of a series of numbers arranged according to certain rules to achieve orthogonality in the experimental design.

[0045] Step S206: Configure the parameter values ​​of a set of configuration parameters of a set of target components in sequence according to the configuration items in the debug configuration list, and determine the parameter values ​​of the transmission performance parameters corresponding to the configuration items in the debug configuration list for the specified port.

[0046] The processor in the network device can send configuration commands to the LPO module through a designated communication bus. The configuration commands can be used to instruct the LPO module to adjust a set of configuration parameters of a target component that are allowed to be debugged to the parameter values ​​corresponding to the current configuration item.

[0047] If the LPO module adjusts a set of configuration parameters that allow debugging of a group of target components to the parameter values ​​corresponding to the current configuration item, then the parameter values ​​of the transmission performance parameters corresponding to the configuration items in the debug configuration list for the specified port can be determined.

[0048] Here, transmission performance parameters can be used to measure the quality of data transmission, including signal integrity and accuracy.

[0049] Step S208: Determine the configuration item with the smallest parameter value of the corresponding transmission performance parameter in the debug configuration list, obtain the target configuration item, and save the target configuration item to the network device.

[0050] To ensure the reliability of parameter tuning, in this embodiment, after all configuration items in the debugging configuration list have been configured and the transmission performance parameters corresponding to the configuration items have been determined, the configuration item with the smallest transmission performance parameter value corresponding to the configuration item is determined as the target configuration item, and the target configuration item is saved to the network device.

[0051] That is, when the target configuration item is determined to be the configuration parameters of a set of target components of the LPO module when the LPO module is connected to a specified port of the network device.

[0052] Here, the minimum value of the transmission performance parameter corresponds to the optimal data transmission quality.

[0053] Through the steps described in the embodiments provided in this application, in the debugging mode of the network device, debugging declaration information is read from the target memory via a designated communication bus; a debugging configuration list is generated according to the parameter value range of the configuration parameters in a set of configuration parameters that are allowed to be debugged as indicated by the debugging declaration information, wherein the configuration item in the debugging configuration list is a combination of parameter values ​​of a set of configuration parameters; the parameter values ​​of a set of configuration parameters of a set of target components are configured sequentially according to the configuration items in the debugging configuration list, and the parameter value of the transmission performance parameter corresponding to the configuration item in the debugging configuration list is determined; the configuration item with the smallest corresponding transmission performance parameter value in the debugging configuration list is determined to obtain the target configuration item, and the target configuration item is saved to the network device. This solves the problem that the adaptation process between the LPO module and the network device is highly complex and results in low adaptation efficiency in the optical module processing methods of related technologies.

[0054] In one exemplary embodiment, before reading debug declaration information from the target memory via a designated communication bus, the method further includes:

[0055] S11, Start the debugging automation script on the network device. The debugging automation script is a script that automatically debugs the linear drive pluggable optical module. The debugging automation script reads the debugging declaration information, generates the debugging configuration list, configures the parameter values ​​of a set of configuration parameters of a set of target components, determines the parameter values ​​of the transmission performance parameters corresponding to the configuration items in the debugging configuration list, determines the configuration item with the smallest corresponding transmission performance parameter value, and saves the target configuration items.

[0056] In this embodiment, the tuning automation script can be configured on the network device. By starting the tuning automation script on the network device, the network device can automatically tune the linear drive pluggable optical module.

[0057] The process of reading debug declaration information, generating a debug configuration list, configuring the parameter values ​​of a set of configuration parameters for a set of target components, determining the parameter values ​​of transmission performance parameters corresponding to the configuration items in the debug configuration list, determining the configuration item with the smallest corresponding transmission performance parameter value, and saving the target configuration items is executed by the debug automation script.

[0058] Scripts can be triggered in various ways, including but not limited to:

[0059] Scheduled tasks (using cron or similar scheduling tools).

[0060] Specific events (such as changes in network status, device restarts, etc.).

[0061] Execute manually (via command-line interface or remote management tools).

[0062] This embodiment demonstrates how parameter tuning via automated Tuning scripts can quickly adjust multiple devices or a large number of parameters, reducing manual intervention and improving parameter configuration efficiency.

[0063] In one exemplary embodiment, data is stored in the target memory using pages as storage units. Debug declaration information is stored in the storage space of a specified address range in the first page of the target memory. The address bits in the specified address range are reserved address bits and / or custom address bits.

[0064] In the network device's debug mode, debug declaration information is read from the target memory via a specified communication bus, including:

[0065] S21, In the network device's debug mode, based on the page address of the first page, read debug declaration information from the specified address range via the specified communication bus.

[0066] To achieve automated adaptation of the LPO module in tuning mode, the LPO module needs to expose a tuning interface, mapping the tuning interfaces for key parameters of the Driver and TIA to the relevant address bits of the optical module management interface. Here, the tuning interface can include the target memory, a specified communication bus, and the management interface protocol.

[0067] For example, in this embodiment, the address bits can use reserved bits or custom bits from the CMIS (Common Management Interface Specification) protocol, as shown in Table 1. The debugging range of key parameters of the Driver and TIA (Transimpedance Amplifier) ​​in the LPO module can be declared in Page 00H Bytes 42-84 (i.e., bytes 42-84 of page 0). Here, the CMIS protocol is a communication protocol used for managing and monitoring optical modules. It defines the interface and data format between the optical module and the host system, including functions such as register mapping, status monitoring, and fault reporting.

[0068] Table 1

[0069] It should be noted that the CMIS protocol here is only an example, and other existing optical module management interface protocols can also be used. This embodiment does not limit the specific protocol used.

[0070] In this embodiment, since it does not rely on a management interface protocol that has not yet been released, the parameter declaration of the LPO module is defined by using the custom address bits in the published protocol. This allows the adaptation of the LPO module to no longer depend on manual operation and can be achieved through automation.

[0071] In one exemplary embodiment, data is stored in the target memory using pages as storage units. A second page in the target memory is used to store parameter values ​​of a set of configuration parameters configured for a set of target components. The second page is a free page in the target memory.

[0072] Configure the parameter values ​​of a set of configuration parameters for a group of target components sequentially according to the configuration items in the debug configuration list, and determine the parameter values ​​of the transmission performance parameters corresponding to the configuration items in the debug configuration list for the specified port, including:

[0073] S31, for each configuration item in the debug configuration list, treat it as the current configuration item and perform the following processing operations to obtain the parameter values ​​of the transmission performance parameters corresponding to the specified port and each configuration item:

[0074] Based on the page address of the second page, the current configuration item is stored as the current parameter value of a set of configuration parameters in the second page via a specified communication bus, so as to configure the parameter values ​​of a set of configuration parameters of a set of target components according to the current configuration item;

[0075] If the parameter values ​​of a set of configuration parameters for a set of target components are successfully configured according to the current configuration item, determine the parameter value of the transmission performance parameter corresponding to the current configuration item for the specified port.

[0076] In some embodiments, the CMIS5.2 protocol-related registers are used as an example:

[0077] 8.9 Banked Page 10H (Page 16 of the paging register), Lane Control and Data Path Control;

[0078] 8.17 Banked Page 18H (Page 24 of the paging register), Lane Control and Data Path Control Part 2;

[0079] Currently, there are no free address bits on Page 10H, but Page 18H is currently free.

[0080] In some embodiments, parameters can be controlled based on the second page. The network device can store the current configuration item as the current parameter value of a set of configuration parameters in the second page via a specified communication bus based on the page address of the second page. For example, the aforementioned parameters 1, 2; parameters 2, 3; parameters 3, 3; parameters 4, 3; and parameters 5, 3 are stored in the second page of the target memory of the LPO module. The control unit in the LPO module can read the current parameter value of a set of configuration parameters from the second page and configure the parameter value of a set of configuration parameters of a set of target components according to the current parameter value of the set of configuration parameters (i.e., the current configuration item).

[0081] If the parameter values ​​of a set of configuration parameters for a set of target components are successfully configured according to the current configuration item, the parameter value of the transmission performance parameter corresponding to the specified port and the current configuration item is determined, so as to determine the data transmission quality corresponding to the network device connecting to the LPO module through the current device port and the parameter values ​​of the configuration parameters of a set of target components of the LPO module being the current parameter values.

[0082] In this embodiment, the parameter values ​​of a set of target component configuration parameters are controlled by the second page in the target memory of the LPO module. That is, the control bits of the component configuration parameters of the LPO module are defined, so that the adaptation of the LPO module no longer depends on manual operation and can be achieved through automation.

[0083] In one exemplary embodiment, the linearly driven pluggable optical module further includes a microcontroller, which is connected to a set of target components and a target memory, respectively.

[0084] After storing the current configuration item as the current parameter value of a set of configuration parameters in the second page via a specified communication bus based on the page address of the second page, the above method further includes:

[0085] S41, the microcontroller reads the current parameter values ​​of a set of configuration parameters from the second page of the target memory;

[0086] S42, if the current parameter value of a set of configuration parameters read is different from the parameter value of a set of configuration parameters of a set of target components, update the parameter value of a set of configuration parameters of a set of target components to the current parameter value of the set of configuration parameters read.

[0087] Similar to the aforementioned embodiments, the control component in the LPO module can be a microcontroller. The microcontroller can implement protocols required for communication with the host system (e.g., network devices), such as I2C (Inter-Integrated Circuit), SPI (Serial Peripheral Interface), and dedicated optical module management protocols, such as CMIS. The microcontroller can receive configuration data from the host system and control the operating parameters of the optical module, such as rate and modulation format.

[0088] The microcontroller can be connected to a set of target components and a target memory respectively. After storing the current configuration item as the current parameter value of a set of configuration parameters in the second page via a specified communication bus based on the page address of the second page, the current parameter value of a set of configuration parameters in the second page can be read from the target memory by the microcontroller.

[0089] If the current parameter value of a set of configuration parameters read is different from the parameter value of a set of configuration parameters of a set of target components, update the parameter value of a set of configuration parameters of the set of target components to the current parameter value of the read set of configuration parameters.

[0090] Here, the parameter values ​​of a set of configuration parameters for a set of target components can refer to the current actual parameter values ​​of a set of configuration parameters for a set of target components. If the current parameter values ​​stored in the second page are different from the current actual parameter values ​​of the target components, in order to avoid unnecessary updates and waste of system resources, the parameter values ​​of the different configuration parameters can be updated to the corresponding current parameter values ​​in the second page.

[0091] Here, the current actual parameter value of a set of configuration parameters can be displayed through a specified register, read through the control unit, or obtained in other ways. This embodiment does not limit this.

[0092] In this embodiment, the configuration parameters of a group of target components are updated by reading the parameter values ​​of the configuration parameters stored in the second page of the target memory through the microcontroller in the LPO module. This enables parameter control and improves debugging efficiency.

[0093] In an exemplary embodiment, a third page in the target memory is used to store configuration status indication information, wherein the configuration status indication information is used to indicate whether the parameter values ​​of a set of configuration parameters in the second page have been configured successfully, and the third page is a free page in the target memory that is different from the second page;

[0094] After storing the current configuration item as the current parameter value of a set of configuration parameters in the second page via a specified communication bus based on the page address of the second page, the above method further includes:

[0095] S51, based on the page address of the third page, reads the configuration status indication information in the third page via the designated communication bus;

[0096] S52, based on the read configuration status indication information, determines whether the configuration of a set of configuration parameters of a set of target components according to the current configuration item has been successful.

[0097] In some embodiments, the CMIS5.2 protocol-related registers are used as an example:

[0098] 8.10 Banked Page 11h (Page 17 in the paging register), Lane Status and Data Path Status;

[0099] 8.18 Banked Page 19h (Page 25 in the paging register), Lane Status and Data Path Status Part 2;

[0100] Currently, there are no free address bits on Page 11H, but Page 19H is currently free and can be used for real-time status display.

[0101] Based on the page address of the third page, the configuration status indication information in the third page is read through the specified communication bus; based on the read configuration status indication information, it is determined whether the configuration of a set of configuration parameters of a set of target components according to the current configuration item has been successful.

[0102] For example, in this embodiment, the automation script can configure the LPO module with the parameter values ​​of the configuration parameters in the current configuration item in the control bit (e.g., Page 18H), and read back whether the parameter configuration was successful through the status display bit (e.g., Page 19H).

[0103] If the parameter values ​​of the configuration parameters of a set of target components indicated by the configuration status information on the third page are consistent with the parameter values ​​corresponding to the current configuration item, the parameter configuration is determined to be successful. If there is a discrepancy, reconfiguration can be triggered. For example, the microcontroller can reread the parameter values ​​of the configuration parameters on the second page to configure the configuration parameters of a set of target components, etc.

[0104] This embodiment demonstrates how defining the status display bits facilitates automatic debugging of LPO module configuration parameters, reducing labor costs and improving parameter configuration efficiency.

[0105] In one exemplary embodiment, a set of target components includes a driver and a transimpedance amplifier, with a self-looping fiber connected between the output of the driver and the input of the transimpedance amplifier;

[0106] Configure the parameter values ​​of a set of configuration parameters for a group of target components sequentially according to the configuration items in the debug configuration list, and determine the parameter values ​​of the transmission performance parameters corresponding to the configuration items in the debug configuration list for the specified port, including:

[0107] S61, for each configuration item in the debug configuration list, treat it as the current configuration item and perform the following processing operations to obtain the parameter values ​​of the transmission performance parameters corresponding to the specified port and each configuration item:

[0108] Configure the parameter values ​​of a set of configuration parameters for a set of target components according to the current configuration items;

[0109] If the parameter values ​​of a set of configuration parameters of a set of target components are successfully configured according to the current configuration items, the first optical signal is transmitted to the driver through the specified port, and the second optical signal returned by the transimpedance amplifier is received through the specified port. The second optical signal is the optical signal returned by the first optical signal after passing through the driver, the self-looping fiber and the transimpedance amplifier.

[0110] The parameter values ​​of the transmission performance parameters corresponding to the current configuration item for the specified port are determined based on the first optical signal and the second optical signal.

[0111] Referring to Figure 4, in this embodiment, a set of target components includes a driver and a transimpedance amplifier, with a self-looping optical fiber connected between the output of the driver and the input of the transimpedance amplifier.

[0112] A driver is an electronic component used to control a laser diode (LD). It provides the necessary current to drive the laser to generate optical signals. At the transmitting end, the driver receives electrical signals and converts them into current to control the laser's emission, thereby modulating the laser to transmit data.

[0113] A transimpedance amplifier (TIA) is a high-speed amplifier used to receive optical signals from the receiver of an optical module and convert them into electrical signals. When an optical signal is transmitted through optical fiber and received by a photodetector (such as a PIN diode or avalanche photodiode), a small photocurrent is generated. The TIA amplifies this small current to a level suitable for further processing. A photodiode (PD) can be integrated with a transimpedance amplifier (TIA) to provide better signal amplification and matching.

[0114] "Self-loopback" (also known as self-loopback or loop test) is a test method used to verify the integrity and performance of an optical fiber link. Loopback fiber is the physical medium used to implement this test. In debug mode, the optical signal emitted from the transmitter (TX) of the LPO module is directly connected to the receiver (RX) through a special fiber optic patch cord (loopback fiber), forming a closed loop. By measuring the loopback-back optical signal, the transmit and receive performance of the LPO module can be evaluated, i.e., the parameter values ​​of transmission performance parameters, including bit error rate.

[0115] In some embodiments, parameter tuning is based on the port BER in PRBS31 mode. Here, PRBS31 mode is a pseudo-random binary sequence (PRBS) containing a 31-bit binary sequence. It can be used to test and verify the performance of optical modules, such as bit error rate testing. By sending PRBS31 mode signals, the transmission performance and bit error rate of the optical module can be evaluated to ensure that it can function properly in practical applications.

[0116] By using this embodiment, and by combining the parameter values ​​of the transmission performance parameters corresponding to the specified port of the self-loop fiber test and the current configuration item, the performance evaluation of the LPO module can be achieved, thus achieving the purpose of parameter tuning.

[0117] In one exemplary embodiment, a debug configuration list is generated based on the range of parameter values ​​for configuration parameters from a set of configuration parameters that are allowed to be debugged, as indicated by the debug declaration information. This list includes:

[0118] S71, based on the parameter value range of the set of configuration parameters that are allowed to be debugged as indicated by the debug declaration information, perform the following configuration item generation operation repeatedly until the number of generated configuration items reaches a specified number, and obtain the debug configuration list:

[0119] Determine at least one target configuration parameter to be sampled in the current sampling from a set of configuration parameters, wherein the at least one target configuration parameter is at least a portion of the configuration parameters in the set of configuration parameters;

[0120] Perform parameter value sampling operations within the parameter value range of each target configuration parameter in at least one target configuration parameter to obtain the parameter value of each target configuration parameter in the currently generated configuration item. In the currently generated configuration item, the parameter values ​​of other configuration parameters besides the target configuration parameters are default values.

[0121] To improve the economy of generating the debugging configuration list, this embodiment does not test every parameter value in the parameter value range of all configuration parameters one by one. In this embodiment, a preset specified number can be used to control the scale of configuration items, and at least one target configuration parameter to be sampled in the current time can be determined from a set of configuration parameters. The at least one target configuration parameter is at least a part of the configuration parameters in the set of configuration parameters.

[0122] Perform parameter value sampling operations within the parameter value range of each target configuration parameter in at least one target configuration parameter to obtain the parameter value of each target configuration parameter in the currently generated configuration item.

[0123] It should be noted that in the currently generated configuration items, the parameter values ​​of all configuration parameters except the target configuration parameter are default values. Here, the target configuration parameter may include, but is not limited to: laser bias, Tx_Gain, Tx_EQ, Rx_Bandwidth, Rx_Swing, and Rx_EQ. The target configuration parameter can be obtained by combining all parameter values ​​within its corresponding range for testing.

[0124] In some embodiments, taking the debug configuration list as an orthogonal array as an example, the number of rows in the orthogonal array is at least equal to the total number of experiments (i.e., the specified number), and the number of columns is at least equal to the number of target configuration parameters.

[0125] Orthogonal arrays can achieve level balance, meaning that each level of each factor appears the same number of times in the table, ensuring the fairness of the experiment. Orthogonal arrays can also be orthogonal between columns, meaning that the combinations of numbers between any two columns are uniformly distributed. This implies that the interaction effects between different factors can be evaluated with fewer experiments.

[0126] This embodiment demonstrates how orthogonal arrays can reduce unnecessary experimental combinations, decrease the total number of experiments, and save time and costs.

[0127] In an exemplary embodiment, the parameter values ​​of a set of configuration parameters for a set of target components are configured sequentially according to the configuration items in the debug configuration list, and the parameter values ​​of the transmission performance parameters corresponding to the configuration items in the debug configuration list for a specified port are determined, including:

[0128] S81, configure the parameter values ​​of a set of configuration parameters of a set of target components in sequence according to the configuration items in the debug configuration list, and determine the parameter value of at least one of the following parameters corresponding to the specified port and the configuration items in the debug configuration list: bit error rate, symbol error rate.

[0129] BER and SER (Symbol Error Rate) are two important metrics for measuring data transmission quality.

[0130] Bit error rate (BER) refers to the ratio of erroneous bits received to the total number of bits transmitted during data transmission. For example, if 1000 bits are transmitted and 10 of them are erroneous, then the BER is 0.01% or 10^-4.

[0131] Symbol error rate refers to the ratio of erroneous symbols received to the total number of symbols transmitted during data transmission. In digital communication, a symbol may contain one or more bits.

[0132] It should be noted that the smaller the BER and SER, the higher the accuracy and reliability of data transmission.

[0133] In one exemplary embodiment, determining the configuration item with the smallest parameter value for the corresponding transmission performance parameter in the debug configuration list to obtain the target configuration item, and saving the target configuration item to the network device, includes:

[0134] S91, according to the debug configuration list, repeatedly execute the following test operation: configure the parameter values ​​of a set of configuration parameters of a set of target components in sequence according to the configuration items in the debug configuration list, and determine the parameter value of the transmission performance parameter corresponding to the specified port and the configuration item in the debug configuration list; determine the configuration item with the smallest corresponding transmission performance parameter value in the debug configuration list to obtain the reference configuration item;

[0135] S92, if the reference configuration item obtained in each test operation is the target configuration item, save the target configuration item to the network device.

[0136] Here, the reference configuration item obtained from each test operation is the target configuration item, which can be the parameter value difference corresponding to the reference configuration item obtained from each test operation within a specified threshold.

[0137] For example, in this embodiment, after completing one debugging, the parameters can be debugged again. If the parameter value of the configuration item with the smallest transmission performance parameter remains stable under repeated testing, the final target configuration item is output and saved to the network device.

[0138] In one exemplary embodiment, after repeatedly performing the following test operations according to a debug configuration list, the method further includes:

[0139] S101, If ​​the reference configuration item obtained from at least one test operation is not the target configuration item, regenerate the debug configuration list;

[0140] S102, Based on the regenerated debug configuration list, repeat the test operation multiple times;

[0141] S103: If the new reference configuration item obtained in each test operation is the same, the new reference configuration item is saved as the target configuration item to the network device.

[0142] To improve the reliability of parameter tuning results, in this embodiment, if the reference configuration item obtained from at least one test operation is not the target configuration item, the debug configuration list can be regenerated.

[0143] Similar to the aforementioned embodiments, the debug configuration list can be in the form of an orthogonal array. When regenerating the debug configuration list, the target configuration parameters and / or a specified number can be adjusted to generate a new, not entirely consistent, debug configuration list.

[0144] Based on the regenerated debug configuration list, the test operation is repeated multiple times. If the new reference configuration item obtained in each test operation is the same, the new reference configuration item is saved as the target configuration item in the network device. Similar to the previous embodiment, the new reference configuration item obtained in each test operation being the same can mean that the difference in the parameter value corresponding to the new reference configuration item is within a specified threshold. The new reference configuration item is the configuration item with the smallest parameter value of transmission performance parameter under the regenerated debug configuration list.

[0145] In this embodiment, by regenerating the debug configuration list, retesting the configuration item with the smallest parameter value of the transmission performance parameter (i.e., the reference configuration item), and re-determining the stability of the parameter value of the reference configuration item, the reliability of parameter tuning results can be improved, and high-quality data transmission between the automatically configured network device and the LPO module can be achieved.

[0146] In one exemplary embodiment, after repeatedly executing the test operation multiple times based on the regenerated debug configuration list, the method further includes:

[0147] S111, if the new reference configuration item obtained from at least one test operation is different from the new reference configuration item obtained from other test operations, a debugging exception alarm is issued. The debugging exception alarm is used to indicate that there is an exception in the debugging process of the linear drive pluggable optical module.

[0148] To reduce system resource waste, the debugging configuration list can be regenerated when the parameter values ​​are not stable. If the parameter value of the configuration item with the smallest transmission performance parameter obtained from multiple repeated tests based on the regenerated debugging configuration list is not stable, a debugging anomaly alarm will be issued. The debugging anomaly alarm is used to indicate that there is an anomaly in the debugging process of the linear drive pluggable optical module.

[0149] Here, low parameter value stability can mean that the parameter value of the new reference configuration item obtained from at least one test operation is different from that of the new reference configuration item obtained from other test operations, or that the difference in the magnitude of the parameter value of the new reference configuration item obtained from the test operation is greater than a specified threshold.

[0150] In this embodiment, by setting debugging alarm conditions, a debugging anomaly alarm can be issued when the debugging alarm conditions are met, prompting manual intervention to improve the efficiency of anomaly resolution.

[0151] In one exemplary embodiment, the network device includes a serializer / deserializer, and the designated port is the port corresponding to the serializer / deserializer;

[0152] The above methods also include:

[0153] S121, Restart the serializer / deserializer before each test operation.

[0154] A restart can reset the internal state of SerDes, including any counters, state machines, or caches that might affect data quality. Restarting SerDes can also resolve transient errors or anomalies that may occur during data transmission, improving the reliability and accuracy of test results.

[0155] In one exemplary embodiment, each target component in a set of target components corresponds to at least one configuration parameter in a set of configuration parameters, and each configuration parameter in the set of configuration parameters corresponds to one target component in the set of target components;

[0156] Save the target configuration items to the network device, including:

[0157] S131, save the port number of the specified port, the component identifier of each target component in a group of target components, and the parameter value of at least one configuration parameter corresponding to each target component as indicated by the target configuration item to the port parameter matrix of the network device.

[0158] Considering the potential differences in port layout and connection methods on network devices, LPOs of different module types may include slightly different components and / or have slightly different configuration parameters and parameter value ranges. Therefore, in the network device's debug mode, the port number of the specified port, the component identifier of each target component in a set of target components, and the parameter value of at least one configuration parameter corresponding to each target component as indicated by the target configuration item can be saved to the network device's port parameter matrix. Here, the component identifier of each target component in a set of target components can also be replaced with the type identifier of the LPO module.

[0159] Through this embodiment, after automated tuning, the network device can automatically save the parameter matrix for a specific PN, a specific port, and specific configuration parameters, thereby simplifying the application process of the LPO module.

[0160] In one exemplary embodiment, after saving the target configuration item to the network device, the method further includes:

[0161] S141, in the application mode of the network device, configure the parameter values ​​of a set of configuration parameters of a set of target components of the linear drive pluggable optical module connected to the specified port according to the target configuration items stored in the network device.

[0162] That is, the parameter values ​​of a set of target components in the LPO module are set to the parameter values ​​corresponding to the target configuration items stored in the network device. Here, similar to the previous embodiment, the target configuration item is the configuration item with the smallest parameter value of the transmission performance parameter determined by the network device in debug mode.

[0163] In one exemplary embodiment, the network device includes a serializer / deserializer, the designated port is the port corresponding to the serializer / deserializer, and the set of target components includes a laser.

[0164] Before configuring the parameter values ​​of a set of configuration parameters for a set of target components of a linearly driven pluggable optical module connected to a specified port according to the target configuration items stored in the network device, the above method further includes:

[0165] S151, in the application mode of network equipment, after the linear drive pluggable optical module is powered on, the laser and the serializer / deserializer are turned off in sequence.

[0166] For example, in this embodiment, when the module is powered on in the application state, the Tx Squelch (emission suppression) mechanism will be executed, that is, the laser will be forcibly turned off, and the SerDes (Serializer / Deserializer) of the switch will also be shut down.

[0167] Tx Squelch is a mechanism used to shut down or reduce the optical signal emitted from an optical module under specific conditions. When an optical module executes Tx Squelch, it means that it has stopped or reduced the emission of optical signals, which is typically achieved by turning off the laser or reducing the laser's drive current. This prevents invalid or erroneous data from propagating in the network and also protects the receiver hardware from damage caused by excessively strong optical signals.

[0168] In network devices (e.g., switches), SerDes is used to handle high-speed serial data transmission. When a switch's SerDes is shut down, it means that the SerDes function associated with a specific port or link is turned off or placed in a low-power state. In this embodiment, SerDes will be turned off if the link is not established correctly, for example because the optical module is not inserted or is not configured correctly.

[0169] In this embodiment, by performing a shutdown operation on the laser and the serializer / deserializer, connection link abnormalities caused by port lockout can be avoided.

[0170] In one exemplary embodiment, after configuring the parameter values ​​of a set of configuration parameters for a set of target components of a linearly driven pluggable optical module connected to a specified port according to the target configuration items stored in the network device, the method further includes:

[0171] S161, after configuring the parameter values ​​of a set of configuration parameters for a set of target components of the linear drive pluggable optical module connected to the specified port, the serializer / deserializer and the laser are turned on in sequence.

[0172] For example, in this embodiment, in the application state, the network device (e.g., a switch) configures the parameters of the module according to the parameter matrix generated in the Tuning stage. After the configuration is completed, the switch SerDes is turned on, and finally the laser of the LPO module is turned on, which can avoid link abnormalities caused by port lockout.

[0173] In one exemplary embodiment, the network device includes a switch, the target memory is an electrically erasable programmable read-only memory, and the designated communication bus is an integrated circuit bus.

[0174] Electrically erasable programmable read-only memory (EEPROM) is a non-volatile memory that can be erased and reprogrammed using electrical signals. The physical memory of an EEPROM is typically organized into multiple pages, each containing a certain number of bytes. EEPROM allows read and write operations on individual bytes.

[0175] Network devices and optical modules can connect via I2C. The I2C bus allows network devices to read or write to the EEPROM in the optical module, thereby obtaining the module's configuration information, diagnostic data, or product information. The LPO module contains a microcontroller unit (MCU), which can communicate with the host device (e.g., a switch) via I2C.

[0176] As an optional exemplary embodiment, the processing method of the optical module is explained using the CMIS5.2 protocol as an example of the management interface protocol.

[0177] This application addresses the problems encountered in the current application of the LPO module by optimizing it from two aspects. The application solution is summarized as follows:

[0178] 1) The first step is to perform parameter tuning in Tuning mode. This mode allows the LPO module that is being paired with the device for the first time to perform parameter tuning through automated scripts. The purpose of the adaptation is to generate a parameter matrix for the module PN, port topology, and module configuration inside the device. This matrix will be automatically saved in the device after the tuning is completed, so that the parameters of the module or device port can be configured directly in subsequent applications.

[0179] 2) The second step is Application mode, in which the parameters of the LPO module are automatically configured by the HOST device based on the parameter matrix saved in Tuning mode. No manual modification is required during the deployment phase, and the module does not need to be modified by the manufacturer during the factory release phase.

[0180] To achieve automated adaptation of LPO modules in Tuning mode, LPO modules need to open debugging interfaces, that is, map the debugging interfaces of key parameters of Driver and TIA to the relevant address bits of the optical module management interface, and these address bits use reserved bits or user-defined bits in the CMIS protocol. For example, the debugging range of key parameters of the module Driver and TIA is declared in Page 00H Byte42-84.

[0181] After the declaration is completed, the parameters are controlled in page 18H, and the real-time status is displayed in page 19H. That is, the declaration bits, control bits, and status display bits are all defined. Pages 18 / 19H correspond to pages 10 / 11H. Currently, there are no free address bits in pages 10 / 11H, but pages 18 / 19H are currently free. This application makes full use of registers not defined in the protocol to debug the LPO module.

[0182] The main process of automated module debugging in Tuning mode is as follows:

[0183] a) LPO modules with the same product number PN are fully inserted into the device ports and paired with self-looping optical fibers;

[0184] b) Start the Tuning automation script. The script reads the declaration information of the key parameters of Tx sending & Rx receiving in module Page 00H, and automatically generates a debug configuration list based on the declaration.

[0185] c) Based on the configuration list, start the parameter debugging of the port. The parameter debugging is based on the port BER in PRBS31 mode. After completing the BER statistics of all configuration lists, the optimal configuration parameters of the port are obtained.

[0186] d) The script will automatically save the port number, module PN, and module configuration parameters to the device's port parameter matrix;

[0187] e) After completing one debugging session, restart the port SerDes and debug the parameters again. If the parameters remain stable after multiple repeated tests, output the final port parameter matrix.

[0188] Specifically, referring to Figure 5, the parameter tuning process of the LPO module may include the following steps:

[0189] Step S501: Connect the LPO module to the loopback fiber and fully insert it into the port of the device to be adapted.

[0190] Step S502: Start the Tuning script. The script automatically reads the parameter declaration information of the module and automatically generates a parameter debugging list.

[0191] Step S503: The script starts port parameter debugging according to the configuration list, and configures the test parameters for the LPO module in the control bit.

[0192] Step S504: Determine whether the configuration is successful by reading back the parameters from the status display bit; if the configuration is successful, proceed to step 505; if the configuration fails, proceed to step 503.

[0193] Step S505: The script controls the device to open PRBS mode to perform a bit error rate (BER) test. After the test is passed, the BER of the port under the parameter configuration is recorded. After testing all configurations, the parameter with the smallest BER is obtained, which is the optimal configuration of the port.

[0194] Step S506: After traversing all ports of the device, the script will automatically save the port number, module PN, and module configuration parameters to the device's port parameter matrix.

[0195] Step S507: After completing one debugging session, restart SerDes, repeat the previous operation, debug the parameters again, record and compare the port parameters selected multiple times;

[0196] Step S508: If the overall parameter difference is not large (generally within 3dB), then proceed to step 509; if the overall parameter difference is large (more than 3dB), then proceed to step 505.

[0197] Step S509: Output the final port parameter matrix. This parameter matrix contains information such as module PN, port number, and module parameter configuration. This parameter matrix is ​​stored in the device configuration.

[0198] Step S510, optimization complete.

[0199] In application mode, after the module is powered on, the Tx Squelch mechanism is executed, which means that the laser will be forcibly turned off. At the same time, the switch's SerDes will also be shut down. The switch configures the module's parameters according to the parameter matrix generated during the Tuning phase. After the configuration is completed, the switch's SerDes is turned on again, and finally the module's laser is turned on. This step can avoid link abnormalities caused by port lockout.

[0200] Specifically, referring to Figure 6, the process of deploying and applying the LPO module may include the following steps:

[0201] Step S601: Insert the LPO module into the device port;

[0202] Step S602: After the device identification module is in place, first turn off the switch SerDes and control the module laser to turn off the light;

[0203] Step S603: The device identifies the PN module and port number, and automatically configures the parameters of the LPO module through the corresponding register of the management interface according to the parameter matrix stored in the device.

[0204] Step S604: The network device reads back the parameter status register of the module to confirm that the module has been configured.

[0205] Step S605: The device turns on SerDes, then controls the LPO module laser to turn on, the module emits light, and the interconnection phase begins.

[0206] Step S606: Complete the LPO module and port adaptation.

[0207] This embodiment enables the three functions of parameter declaration, parameter control, and parameter status display for the LPO module through custom address bits in the existing protocol. Based on this, an automated tuning process for LPO module and device adaptation can be achieved, eliminating reliance on existing complex manual tuning schemes. After automated tuning, the device automatically saves the parameter matrix for specific PN, specific port, and specific parameter configurations. Furthermore, during module installation, there is no need to distinguish parameter versions or worry about parameter / port mismatches; all configurations are automatically performed by the switch based on the parameter matrix, greatly simplifying the racking workload and minimizing errors caused by manual operation. In other words, during the racking and application phase of the LPO module, there is no need to distinguish the module's parameter configurations and their correspondence with device ports. The module can be directly racked after leaving the factory. LPO module parameter tuning can be performed directly by the device through the management interface and corresponding parameter matrix defined in the aforementioned embodiment, thereby greatly simplifying the application process of the LPO module.

[0208] It should be noted that, unlike direct-attach copper cables (DAC), active copper cables (ACC) can extend the networking distance to 5-10 meters. The debugging scheme for LPO modules is also applicable to active copper cables, because active copper cables also have a Re-Driver chip at the receiving end, which plays a similar role in signal optimization as the Driver / TIA in the LPO module. The debugging scheme for LPO modules in this embodiment can also be applied to ACC after adjustment.

[0209] Although the embodiments described in this application are as above, the above descriptions and definitions are only for the purpose of understanding the embodiments of this application and are not intended to limit this application. Any modifications and changes made without departing from the spirit and scope of this application, especially any software and hardware implementation schemes based on this algorithm, are within the protection scope of this application.

[0210] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.

[0211] Figure 7 illustrates an optional network device provided in an embodiment of this application. As shown in Figure 7, the network device includes:

[0212] The first reading unit 702 is configured to read debugging declaration information from the target memory via a specified communication bus in the debug mode of the network device.

[0213] The first generation unit 704 is configured to generate a debug configuration list based on the range of parameter values ​​of the configuration parameters in a set of configuration parameters that are allowed to be debugged as indicated by the debug declaration information, wherein the configuration items in the debug configuration list are combinations of parameter values ​​of a set of configuration parameters.

[0214] The first execution unit 706 is configured to configure the parameter values ​​of a set of configuration parameters of a set of target components in sequence according to the configuration items in the debug configuration list, and determine the parameter value of the transmission performance parameter corresponding to the configuration item in the debug configuration list for the specified port.

[0215] The second execution unit 708 is set to determine the configuration item with the smallest parameter value of the corresponding transmission performance parameter in the debug configuration list, obtain the target configuration item, and save the target configuration item to the network device.

[0216] It should be noted that the first reading unit 702 in this embodiment can be configured to execute the above step S202, the first generating unit 704 in this embodiment can be configured to execute the above step S204, the first execution unit 706 in this embodiment can be configured to execute the above step S206, and the second execution unit 708 in this embodiment can be configured to execute the above step S208.

[0217] In the embodiments of this application, under the debugging mode of the network device, debugging declaration information is read from the target memory via a designated communication bus; a debugging configuration list is generated based on the parameter value range of the configuration parameters in a set of configuration parameters that are allowed to be debugged as indicated by the debugging declaration information, wherein the configuration items in the debugging configuration list are combinations of parameter values ​​of a set of configuration parameters; the parameter values ​​of a set of configuration parameters of a set of target components are configured sequentially according to the configuration items in the debugging configuration list, and the parameter values ​​of the transmission performance parameters corresponding to the configuration items in the debugging configuration list for a specified port are determined; the configuration item with the smallest corresponding transmission performance parameter value in the debugging configuration list is determined to obtain the target configuration item, and the target configuration item is saved to the network device. This application solves the problem of low parameter configuration efficiency caused by the high complexity of the adaptation process between the LPO module and the network device in the optical module processing method of related technologies.

[0218] This device is used to implement the optical module processing method provided in the above embodiments, and will not be repeated as already described. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0219] In one exemplary embodiment, the network device further includes:

[0220] The startup unit is configured to start a debugging automation script on the network device before reading debugging declaration information from the target memory via a specified communication bus. The debugging automation script is a script that automatically debugs the linear drive pluggable optical module. The debugging automation script performs the following tasks: reading debugging declaration information, generating a debugging configuration list, configuring the parameter values ​​of a set of configuration parameters for a set of target components, determining the parameter values ​​of transmission performance parameters corresponding to the configuration items in the debugging configuration list, determining the configuration item with the smallest corresponding transmission performance parameter value, and saving the target configuration items.

[0221] In one exemplary embodiment, data is stored in the target memory using pages as storage units. Debug declaration information is stored in the storage space of a specified address range in the first page of the target memory. The address bits in the specified address range are reserved address bits and / or custom address bits.

[0222] The first reading unit includes:

[0223] The reading module is configured to read debug declaration information from a specified address range via a specified communication bus, based on the page address of the first page, in the debug mode of the network device.

[0224] In one exemplary embodiment, data is stored in the target memory using pages as storage units. A second page in the target memory is used to store parameter values ​​of a set of configuration parameters configured for a set of target components. The second page is a free page in the target memory.

[0225] The first execution unit includes:

[0226] The first execution module is configured to sequentially process each configuration item in the debug configuration list as the current configuration item, obtaining the parameter values ​​of the transmission performance parameters corresponding to the specified port and each configuration item:

[0227] Based on the page address of the second page, the current configuration item is stored as the current parameter value of a set of configuration parameters in the second page via a specified communication bus, so as to configure the parameter values ​​of a set of configuration parameters of a set of target components according to the current configuration item;

[0228] If the parameter values ​​of a set of configuration parameters for a set of target components are successfully configured according to the current configuration item, determine the parameter value of the transmission performance parameter corresponding to the current configuration item for the specified port.

[0229] In one exemplary embodiment, the linearly driven pluggable optical module further includes a microcontroller, which is connected to a set of target components and a target memory, respectively.

[0230] Network equipment also includes:

[0231] The second reading unit is configured to, after storing the current configuration item as the current parameter value of a set of configuration parameters in the second page via a specified communication bus based on the page address of the second page, read the current parameter value of a set of configuration parameters in the second page from the target memory via the microcontroller.

[0232] The update unit is configured to update the parameter values ​​of a set of configuration parameters of a set of target components to the current parameter values ​​of the set of configuration parameters when the current parameter values ​​of the read set of configuration parameters are different from the parameter values ​​of the set of configuration parameters of a set of target components.

[0233] In an exemplary embodiment, a third page in the target memory is used to store configuration status indication information, wherein the configuration status indication information is used to indicate whether the parameter values ​​of a set of configuration parameters in the second page have been configured successfully, and the third page is a free page in the target memory that is different from the second page;

[0234] Network equipment also includes:

[0235] The third reading unit is configured to, after storing the current configuration item as the current parameter value of a set of configuration parameters in the second page via a specified communication bus based on the page address of the second page, read the configuration status indication information in the third page via a specified communication bus based on the page address of the third page.

[0236] The judgment unit is configured to determine, based on the read configuration status indication information, whether the configuration of a set of configuration parameters of a set of target components according to the current configuration item has been successfully configured.

[0237] In one exemplary embodiment, a set of target components includes a driver and a transimpedance amplifier, with a self-looping fiber connected between the output of the driver and the input of the transimpedance amplifier;

[0238] The first execution unit includes:

[0239] The second execution module is configured to sequentially process each configuration item in the debug configuration list as the current configuration item, obtaining the parameter values ​​of the transmission performance parameters corresponding to the specified port and each configuration item:

[0240] Configure the parameter values ​​of a set of configuration parameters for a set of target components according to the current configuration items;

[0241] If the parameter values ​​of a set of configuration parameters of a set of target components are successfully configured according to the current configuration items, the first optical signal is transmitted to the driver through the specified port, and the second optical signal returned by the transimpedance amplifier is received through the specified port. The second optical signal is the optical signal returned by the first optical signal after passing through the driver, the self-looping fiber and the transimpedance amplifier.

[0242] The parameter values ​​of the transmission performance parameters corresponding to the current configuration item for the specified port are determined based on the first optical signal and the second optical signal.

[0243] In one exemplary embodiment, the generation unit includes:

[0244] The third execution module is configured to iteratively execute the following configuration item generation operation based on the parameter value range of a set of configuration parameters allowed for debugging as indicated by the debug declaration information, until the number of generated configuration items reaches a specified number, thus obtaining a debug configuration list:

[0245] Determine at least one target configuration parameter to be sampled in the current sampling from a set of configuration parameters, wherein the at least one target configuration parameter is at least a portion of the configuration parameters in the set of configuration parameters;

[0246] Perform parameter value sampling operations within the parameter value range of each target configuration parameter in at least one target configuration parameter to obtain the parameter value of each target configuration parameter in the currently generated configuration item. In the currently generated configuration item, the parameter values ​​of other configuration parameters besides the target configuration parameters are default values.

[0247] In one exemplary embodiment, the first execution unit includes:

[0248] The fourth execution module is configured to configure the parameter values ​​of a set of configuration parameters for a set of target components in sequence according to the configuration items in the debug configuration list, and determine the parameter value of at least one of the following parameters corresponding to the configuration items in the debug configuration list for the specified port: bit error rate, symbol error rate.

[0249] In one exemplary embodiment, the second execution unit includes:

[0250] The module is set to the configuration item with the smallest corresponding transmission performance parameter value in the debug configuration list to obtain the target configuration item;

[0251] The fifth execution module is configured to repeatedly perform the following test operations based on the debug configuration list: configure the parameter values ​​of a set of configuration parameters for a set of target components in sequence according to the configuration items in the debug configuration list, and determine the parameter value of the transmission performance parameter corresponding to the configuration item in the debug configuration list for the specified port; determine the configuration item with the smallest corresponding transmission performance parameter value in the debug configuration list to obtain the reference configuration item;

[0252] The first saving module is configured to save the target configuration item to the network device if the reference configuration item obtained in each test operation is the target configuration item.

[0253] In one exemplary embodiment, the network device further includes:

[0254] The second generation unit is configured to regenerate the debug configuration list after repeatedly executing the following test operation based on the debug configuration list, provided that the reference configuration item obtained from at least one execution of the test operation is not the target configuration item.

[0255] The third execution unit is configured to repeatedly execute the test operation multiple times based on the regenerated debug configuration list;

[0256] The save unit is configured to save the new reference configuration item as the target configuration item to the network device if the new reference configuration item obtained in each test operation is the same.

[0257] In one exemplary embodiment, the network device further includes:

[0258] The alarm unit is configured to issue a debugging anomaly alarm if, after repeatedly executing the test operation based on the regenerated debug configuration list, the new reference configuration item obtained in at least one test operation is different from the new reference configuration item obtained in other test operations. The debugging anomaly alarm is used to indicate that there is an anomaly in the debugging process of the linear drive pluggable optical module.

[0259] In one exemplary embodiment, the network device includes a serializer / deserializer, and the designated port is the port corresponding to the serializer / deserializer;

[0260] Network equipment also includes:

[0261] The restart unit is configured to restart the serializer / deserializer before each test operation.

[0262] In one exemplary embodiment, each target component in a set of target components corresponds to at least one configuration parameter in a set of configuration parameters, and each configuration parameter in the set of configuration parameters corresponds to one target component in the set of target components;

[0263] The second execution unit includes:

[0264] The second storage module is configured to save the port number of the specified port, the component identifier of each target component in a set of target components, and the parameter value of at least one configuration parameter corresponding to each target component as indicated by the target configuration item into the port parameter matrix of the network device.

[0265] In one exemplary embodiment, the network device further includes:

[0266] The configuration unit is configured to, after the target configuration items are saved to the network device, configure the parameter values ​​of a set of configuration parameters of a set of target components of a linear drive pluggable optical module connected to a specified port according to the target configuration items stored in the network device in the application mode of the network device.

[0267] In one exemplary embodiment, the network device includes a serializer / deserializer, the designated port is the port corresponding to the serializer / deserializer, and the set of target components includes a laser.

[0268] Network equipment also includes:

[0269] The fourth execution unit is configured to perform a shutdown operation on the laser and the serializer / deserializer sequentially after the linearly driven pluggable optical module is powered on, in the application mode of the network device, before configuring the parameter values ​​of a set of configuration parameters of a set of target components of the linearly driven pluggable optical module connected to the specified port according to the target configuration items stored in the network device.

[0270] In one exemplary embodiment, the network device further includes:

[0271] The fifth execution unit is configured to configure the parameter values ​​of a set of configuration parameters of a set of target components of the linear drive pluggable optical module connected to the specified port according to the target configuration items stored in the network device, and then sequentially perform the opening operation on the serializer / deserializer and the laser after the parameter values ​​of a set of configuration parameters of a set of target components of the linear drive pluggable optical module connected to the specified port are configured.

[0272] In one exemplary embodiment, the network device includes a switch, the target memory is an electrically erasable programmable read-only memory, and the designated communication bus is an integrated circuit bus.

[0273] According to another aspect of the embodiments of this application, a non-volatile computer-readable storage medium is also provided, wherein a computer program is stored in the non-volatile computer-readable storage medium, wherein the computer program is configured to perform the steps in any of the above method embodiments when it is run.

[0274] In one exemplary embodiment, the aforementioned non-volatile computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory, random access memory, portable hard disks, magnetic disks, or optical disks.

[0275] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.

[0276] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.

[0277] The embodiments described herein also provide a computer program that includes computer instructions stored in a non-volatile computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in any of the above method embodiments.

[0278] According to one aspect of this application, a computer program product is provided, comprising a computer program / instructions containing program code for performing the methods shown in the flowchart. In such an embodiment, referring to FIG8, the computer program can be downloaded and installed from a network via a communication section 809, and / or installed from a removable medium 811. When the computer program is executed by a central processing unit 801, it performs various functions provided in the embodiments of this application. The above-described embodiment numbers are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0279] Referring to Figure 8, which is a structural block diagram of a computer system for an optional electronic device provided in an embodiment of this application.

[0280] Figure 8 schematically illustrates a computer system architecture block diagram for an electronic device implementing embodiments of the present application. As shown in Figure 8, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 802 or programs loaded from storage portion 808 into random access memory (RAM). The random access memory 803 also stores various programs and data required for system operation. The CPU 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output interface 805 (I / O interface) is also connected to the bus 804.

[0281] The following components are connected to the input / output interface 805: an input section 806 including a keyboard, mouse, etc.; an output section 807 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a local area network card, modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output interface 805 as needed. A removable medium 811, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 810 as needed so that computer programs read from it can be installed into the storage section 808 as needed.

[0282] Specifically, according to embodiments of this application, the processes described in the various method flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 809, and / or installed from removable medium 811. When the computer program is executed by central processing unit 801, it performs various functions defined in the system of this application.

[0283] It should be noted that the computer system 800 of the electronic device shown in Figure 8 is only an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0284] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0285] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0286] The optional examples in this embodiment can refer to the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0287] Obviously, those skilled in the art should understand that the modules or steps of the embodiments of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the embodiments of this application are not limited to any particular combination of hardware and software.

[0288] The above are merely optional embodiments of this application and are not intended to limit the embodiments of this application. For those skilled in the art, the embodiments of this application can have various modifications and variations. Any modifications, equivalent substitutions, improvements, etc., made within the principles of the embodiments of this application should be included within the protection scope of the embodiments of this application.

Claims

1. A method for processing an optical module, characterized in that, Applied to network devices, a set of target components of a linearly driven pluggable optical module are connected to a designated port of the network device; The method includes: In the debug mode of the network device, debug declaration information is read from the target memory of the linearly driven pluggable optical module via a designated communication bus, wherein the debug declaration information is used to indicate a set of configuration parameters that allow debugging of the set of target components and the parameter value range of the configuration parameters in the set of configuration parameters; A debug configuration list is generated based on the parameter value range of the configuration parameters in the set of configuration parameters indicated by the debug declaration information, wherein the configuration items in the debug configuration list are combinations of parameter values ​​of the set of configuration parameters; Configure the parameter values ​​of the set of configuration parameters of the set of target components in sequence according to the configuration items in the debug configuration list, and determine the parameter value of the transmission performance parameter corresponding to the specified port and the configuration item in the debug configuration list; The configuration item with the smallest parameter value of the corresponding transmission performance parameter in the debug configuration list is identified to obtain the target configuration item, and the target configuration item is saved to the network device.

2. The method according to claim 1, characterized in that, Prior to reading debug declaration information from the target memory of the linearly driven pluggable optical module via a designated communication bus, the method further includes: The debugging automation script on the network device is started. The debugging automation script is a script that automatically debugs the linear drive pluggable optical module. The process includes reading the debugging declaration information, generating a debugging configuration list, configuring the parameter values ​​of the set of configuration parameters of the set of target components, determining the parameter values ​​of the transmission performance parameters corresponding to the configuration items in the debugging configuration list, determining the configuration item with the smallest corresponding transmission performance parameter value, and saving the target configuration item. The debugging automation script is responsible for executing the debugging automation script.

3. The method according to claim 1, characterized in that, In the target memory, data is stored in pages as storage units. The debugging declaration information is stored in the storage space of a specified address range in the first page of the target memory. The address bits in the specified address range are reserved address bits and / or custom address bits. In the debug mode of the network device, reading debug declaration information from the target memory of the linearly driven pluggable optical module via a designated communication bus includes: In the debug mode of the network device, the debug declaration information is read from the specified address range via the specified communication bus based on the page address of the first page.

4. The method according to claim 1, characterized in that, In the target memory, data is stored in pages as storage units. The second page in the target memory is used to store the parameter values ​​of the set of configuration parameters configured for the set of target components. The second page is a free page in the target memory. The step of configuring the parameter values ​​of the set of configuration parameters of the set of target components sequentially according to the configuration items in the debug configuration list, and determining the parameter value of the transmission performance parameter corresponding to the specified port and the configuration item in the debug configuration list, includes: Each configuration item in the debug configuration list is treated as the current configuration item and the following processing operation is performed to obtain the parameter value of the transmission performance parameter corresponding to the specified port and each configuration item: Based on the page address of the second page, the current configuration item is stored as the current parameter value of the set of configuration parameters in the second page via the designated communication bus, so as to configure the parameter value of the set of configuration parameters of the set of target components according to the current configuration item; If the parameter values ​​of the set of configuration parameters of the set of target components are successfully configured according to the current configuration item, the parameter value of the transmission performance parameter corresponding to the specified port and the current configuration item is determined.

5. The method according to claim 4, characterized in that, The linearly driven pluggable optical module also includes a microcontroller, which is connected to the group of target components and the target memory respectively. After storing the current configuration item as the current parameter value of the set of configuration parameters in the second page via the designated communication bus based on the page address of the second page, the method further includes: The microcontroller reads the current parameter values ​​of the set of configuration parameters from the second page. If the current parameter value of the set of configuration parameters read is different from the parameter value of the set of configuration parameters of the set of target components, the parameter value of the set of configuration parameters of the set of target components is updated to the current parameter value of the set of configuration parameters read.

6. The method according to claim 4, characterized in that, The third page in the target memory is used to store configuration status indication information, wherein the configuration status indication information is used to indicate whether the parameter values ​​of the set of configuration parameters in the second page have been configured successfully, and the third page is a free page in the target memory that is different from the second page; After storing the current configuration item as the current parameter value of the set of configuration parameters in the second page via the designated communication bus based on the page address of the second page, the method further includes: Based on the page address of the third page, the configuration status indication information in the third page is read via the designated communication bus; Based on the read configuration status indication information, determine whether the configuration of the set of configuration parameters of the set of target components according to the current configuration item was successful.

7. The method according to claim 1, characterized in that, The set of target components includes a driver and a transimpedance amplifier, with a self-looping optical fiber connected between the output of the driver and the input of the transimpedance amplifier. The step of configuring the parameter values ​​of the set of configuration parameters of the set of target components sequentially according to the configuration items in the debug configuration list, and determining the parameter value of the transmission performance parameter corresponding to the specified port and the configuration item in the debug configuration list, includes: Each configuration item in the debug configuration list is treated as the current configuration item and the following processing operation is performed to obtain the parameter value of the transmission performance parameter corresponding to the specified port and each configuration item: Configure the parameter values ​​of the set of configuration parameters for the set of target components according to the current configuration item; If the parameter values ​​of the set of configuration parameters of the set of target components are successfully configured according to the current configuration item, the first optical signal is transmitted to the driver through the designated port, and the second optical signal returned by the transimpedance amplifier is received through the designated port, wherein the second optical signal is the optical signal returned by the first optical signal after passing through the driver, the self-looping fiber and the transimpedance amplifier; The parameter values ​​of the transmission performance parameters corresponding to the specified port and the current configuration item are determined based on the first optical signal and the second optical signal.

8. The method according to claim 1, characterized in that, The step of generating a debug configuration list based on the parameter value range of the set of configuration parameters indicated by the debug declaration information includes: Based on the parameter value range of the set of configuration parameters allowed for debugging indicated by the debugging declaration information, the following configuration item generation operation is performed cyclically until the number of generated configuration items reaches a specified number, thus obtaining the debugging configuration list: Determine at least one target configuration parameter to be sampled in the current sampling from the set of configuration parameters, wherein the at least one target configuration parameter is at least a portion of the configuration parameters in the set of configuration parameters; A parameter value sampling operation is performed within the parameter value range of each of the at least one target configuration parameter to obtain the parameter value of each target configuration parameter in the currently generated configuration item, wherein the parameter values ​​of other configuration parameters besides the target configuration parameter in the currently generated configuration item are default values.

9. The method according to claim 1, characterized in that, The step of configuring the parameter values ​​of the set of configuration parameters of the set of target components sequentially according to the configuration items in the debug configuration list, and determining the parameter value of the transmission performance parameter corresponding to the specified port and the configuration item in the debug configuration list, includes: Configure the parameter values ​​of the set of configuration parameters of the set of target components in sequence according to the configuration items in the debug configuration list, and determine the parameter value of at least one of the following parameters corresponding to the specified port and the configuration items in the debug configuration list: bit error rate, symbol error rate.

10. The method according to claim 1, characterized in that, The step of determining the configuration item with the smallest parameter value of the corresponding transmission performance parameter in the debug configuration list, obtaining the target configuration item, and saving the target configuration item to the network device includes: The target configuration item is obtained by identifying the configuration item with the smallest parameter value for the corresponding transmission performance parameter in the debug configuration list. According to the debug configuration list, the following test operation is repeatedly executed: the parameter values ​​of the set of configuration parameters of the set of target components are configured sequentially according to the configuration items in the debug configuration list, and the parameter value of the transmission performance parameter corresponding to the specified port and the configuration item in the debug configuration list is determined; the configuration item with the smallest parameter value of the corresponding transmission performance parameter in the debug configuration list is determined to obtain the reference configuration item; If the reference configuration item obtained each time the test operation is performed is the target configuration item, the target configuration item is saved to the network device.

11. The method according to claim 10, characterized in that, After repeatedly executing the following test operations according to the debug configuration list, the method further includes: If the reference configuration item obtained from at least one execution of the test operation is not the target configuration item, the debug configuration list is regenerated; Based on the regenerated debug configuration list, repeat the test operation multiple times. If the new reference configuration item obtained from each execution of the test operation is the same, the new reference configuration item is saved as the target configuration item to the network device.

12. The method according to claim 11, characterized in that, After repeatedly executing the test operation multiple times based on the regenerated debug configuration list, the method further includes: If the new reference configuration item obtained from at least one execution of the test operation is different from the new reference configuration item obtained from other executions of the test operation, a debugging anomaly alarm is issued, wherein the debugging anomaly alarm is used to indicate that there is an anomaly in the debugging process of the linear drive pluggable optical module.

13. The method according to claim 10, characterized in that, The network device includes a serializer / deserializer, and the designated port is the port corresponding to the serializer / deserializer; The method further includes: Before each test operation, restart the serializer / deserializer.

14. The method according to claim 1, characterized in that, Each target component in the set of target components corresponds to at least one configuration parameter in the set of configuration parameters, and each configuration parameter in the set of configuration parameters corresponds to one target component in the set of target components; Saving the target configuration item to the network device includes: The port number of the specified port, the component identifier of each target component in the group of target components, and the parameter value of at least one configuration parameter corresponding to each target component indicated by the target configuration item are saved to the port parameter matrix of the network device.

15. The method according to claim 1, characterized in that, After saving the target configuration item to the network device, the method further includes: In the application mode of the network device, the parameter values ​​of the set of configuration parameters of the set of target components of the linear drive pluggable optical module connected to the specified port are configured according to the target configuration items stored in the network device.

16. The method according to claim 15, characterized in that, The network device includes a serializer / deserializer, the designated port is a port corresponding to the serializer / deserializer, and the set of target components further includes a laser. Before configuring the parameter values ​​of the set of configuration parameters of the set of target components of the linearly driven pluggable optical module connected to the specified port according to the target configuration items stored in the network device, the method further includes: In the application mode of the network device, after the linear drive pluggable optical module is powered on, the laser and the serializer / deserializer are sequentially shut down.

17. The method according to claim 16, characterized in that, After configuring the parameter values ​​of the set of configuration parameters of the set of target components of the linearly driven pluggable optical module connected to the designated port according to the target configuration items stored in the network device, the method further includes: After configuring the parameter values ​​of the set of configuration parameters of the set of target components of the linear drive pluggable optical module connected to the specified port, the serializer / deserializer and the laser are turned on in sequence.

18. The method according to any one of claims 1 to 17, characterized in that, The network device includes a switch, the target memory is an electrically erasable programmable read-only memory, and the designated communication bus is an integrated circuit bus.

19. A network device, characterized in that, A set of target components of a linearly driven pluggable optical module are connected to a designated port of the network device; The network device includes: The first reading unit is configured to read debugging declaration information from the target memory of the linearly driven pluggable optical module via a designated communication bus in the debugging mode of the network device. The debugging declaration information is used to indicate a set of configuration parameters that allow debugging of the set of target components and the parameter value range of the configuration parameters in the set of configuration parameters. The first generation unit is configured to generate a debug configuration list based on the parameter value range of the configuration parameters in the set of configuration parameters indicated by the debug declaration information, wherein the configuration items in the debug configuration list are combinations of parameter values ​​of the set of configuration parameters. The first execution unit is configured to configure the parameter values ​​of the set of configuration parameters of the set of target components in sequence according to the configuration items in the debug configuration list, and determine the parameter value of the transmission performance parameter corresponding to the specified port and the configuration item in the debug configuration list. The second execution unit is configured to determine the configuration item with the smallest parameter value of the corresponding transmission performance parameter in the debug configuration list, obtain the target configuration item, and save the target configuration item to the network device.

20. A non-volatile computer-readable storage medium, characterized in that, The non-volatile computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 18.

21. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 18.

22. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 18.

Citation Information

Patent Citations

  • Automatic debugging and testing method for hot-pluggable optical module and computer readable medium

    CN116506008A

  • Signal compensation parameter value acquisition method and device, electronic equipment and storage medium

    CN117596134A

  • Optical module processing method, network equipment, storage medium and electronic equipment

    CN118400642A

  • Optical network interface devices and methods

    US20090060531A1