Optical module processing method, network device, storage medium and electronic device
Through automatic configuration list generation and saving, the problem of low parameter configuration efficiency caused by the complexity of adaptation between LPO modules and network equipment is solved, efficient automatic adaptation is achieved, and signal quality and installation simplicity are improved.
Patent Information
- Application Number
- CN202410850078.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-27
AI Technical Summary
The adaptation process between the LPO module and the network equipment is complex, resulting in low parameter configuration efficiency and the inability to implement batch operations. Parameters need to be modified one by one. This is inefficient and has poor operability, which affects the quality of signal transmission.
Read the declaration information in the LPO module through the network device, automatically generate a debugging configuration list, determine the best configuration items for transmission performance parameters, and save them to the network device to realize automated configuration and simplify the adaptation process.
It improves the adaptation efficiency between LPO modules and network equipment, reduces manual intervention, ensures data signal quality, reduces the risk of installation errors, and simplifies the online application process.
Smart Images

Figure CN118400642B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of optical modules, and more specifically, to a processing method of an optical module, a network device, a storage medium, and an electronic device. Background Art
[0002] LPO (Linear-drive Pluggable Optics) is an optical module packaging technology that adopts a linear drive strategy and replaces DSP (Digital Signal Processing) by using TIA (Transimpedance Amplifier) and Driver with excellent linearity and equalization capabilities.
[0003] At present, in the relevant technology, since the optoelectronic interface protocol and management interface protocol for the LPO module have not been issued, batch operation cannot be implemented in the debugging stage of the LPO module. The parameters can only be modified one by one and tested on the machine one by one, which is inefficient, has a long cycle and poor operability. In the online application stage, under normal circumstances, the DSP module that has passed the test does not need to distinguish the device port and can be directly put online for application, but the LPO module cannot. Whether the module parameters are modified by the equipment manufacturer at the customer's site after the module leaves the factory, or the LPO module completes the parameter modification before leaving the factory and then installs the module according to the parameter configuration corresponding to different device ports when going online, the operability is very poor. If the installation operation is wrong, it will directly affect the signal transmission quality of the existing network.
[0004] It can be seen that the processing method of the optical module in the related art has the problem that the adaptation process of the LPO module and the network device is highly complex, resulting in low parameter configuration efficiency. Summary of the invention
[0005] The embodiments of the present application provide a method for processing an optical module, a network device, a storage medium, and an electronic device, so as to at least solve the problem that the adaptation process between the LPO module and the network device in the method for processing an optical module in the related art is complex, resulting in low parameter configuration efficiency.
[0006] According to an embodiment of the present application, a method for processing an optical module is provided, comprising: in a debugging mode of the network device, reading the debugging declaration information from the target memory via the designated communication bus; generating a debugging configuration list according to the parameter value range of the configuration parameters in the set of configuration parameters allowed for debugging indicated by the debugging declaration information, wherein the configuration items in the debugging configuration list are parameter value combinations of the set of configuration parameters; configuring the parameter values of the set of configuration parameters of the set of target components in sequence according to the configuration items in the debugging configuration list, and determining the parameter values of the transmission performance parameters corresponding to the designated port and the configuration items in the debugging configuration list; determining the configuration item in the debugging configuration list whose corresponding parameter value of the transmission performance parameter is the smallest, obtaining a target configuration item, and saving the target configuration item in the network device.
[0007] According to another embodiment of the present application, a network device is provided, wherein the network device is connected to a linear drive pluggable optical module via a designated communication bus, wherein the linear drive pluggable optical module includes a group of target components and a target memory, wherein the target memory stores debugging declaration information, wherein the debugging declaration information is used to indicate a group of configuration parameters that the group of target components allow for debugging and a parameter value range of the configuration parameters in the group of configuration parameters that allow for debugging, wherein the group of target components is connected to a designated port of the network device, and wherein the network device includes: a first reading unit, used to read the debugging declaration information from the target memory via the designated communication bus in a debugging mode of the network device; and a first generating unit. A unit is used to generate a debugging configuration list according to the parameter value range of the configuration parameters in the set of configuration parameters allowed for debugging indicated by the debugging declaration information, wherein the configuration items in the debugging configuration list are parameter value combinations of the set of configuration parameters; a first execution unit is used 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 debugging configuration list, and determine the parameter values of the transmission performance parameters corresponding to the designated port and the configuration items in the debugging configuration list; a second execution unit is used to determine the configuration item in the debugging configuration list whose corresponding parameter value of the transmission performance parameter is the smallest, obtain a target configuration item, and save the target configuration item in the network device.
[0008] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein the program executes the steps of any of the above method embodiments when it is run.
[0009] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the steps in any one of the above method embodiments through the computer program.
[0010] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0011] Through the embodiments of the present application, the configuration parameters and parameter value ranges allowed for debugging indicated in the declaration information stored in the LPO module are read by the network device, and a debugging configuration list is automatically generated. The configuration item indicated by the transmission performance parameter corresponding to the configuration item in the debugging configuration list and having the best data signal quality (that is, the parameter value of the transmission performance parameter is the smallest) is determined as the target configuration item and saved in the network device. Manual debugging is not required, and the saved target configuration item can be directly called in the application stage of the LPO module to achieve adaptation of the LPO module and the network device, thereby solving the problem of low parameter configuration efficiency caused by high complexity of the adaptation process between the LPO module and the network device in the processing method of the optical module in the related art. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a hardware structure block diagram of a processing method of an optical module in an embodiment of the present application.
[0013] Figure 2 It is a flowchart of a processing method of an optical module according to an embodiment of the present application.
[0014] Figure 3 It is a schematic diagram comparing an LPO module system and a DSP module system according to an embodiment of the present application.
[0015] Figure 4 It is a connection diagram of a network device, an LPO module and a self-loop optical fiber in a debugging mode according to an embodiment of the present application.
[0016] Figure 5 It is a flowchart of a parameter tuning process of an LPO module according to an embodiment of the present application.
[0017] Figure 6 It is a flowchart of a process of putting an LPO module on the shelf according to an embodiment of the present application.
[0018] Figure 7 It is a structural block diagram of an optional network device provided in an embodiment of the present application.
[0019] Figure 8It is a structural block diagram of a computer system of an optional electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0021] It should be noted that the terms "first", "second", etc. in the description and claims of the embodiments of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0023] The method embodiments provided in the embodiments of the present application can be applied to network devices. Figure 1 1 is a hardware structure diagram of a processing method of an optical module in an embodiment of the present application. Figure 1 As shown, the network device is connected to the linear drive pluggable optical module through a designated communication bus, the linear drive pluggable optical module includes a group of target components and a target memory, and the group of target components is connected to the designated port of the network device.
[0024] In this embodiment, a method for processing an optical module is provided. Figure 2 is a flow chart of a method for processing an optical module according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:
[0025] Step S202: in the debugging mode of the network device, debug declaration information is read from the target memory via the designated communication bus.
[0026] The processing method of the optical module in this embodiment can be applied to the scenario of configuring the component parameters of the optical module. As an important component of optical fiber communication, the optical module (Optical Module) is an optoelectronic device that realizes the functions of photoelectric conversion and electro-optical conversion. The optical module can realize the interconnection of the HOST SerDes master-end network equipment (for example, the network card and the switch). With the increase of the serdes (i.e., serializer / deserializer) rate in the network equipment, the signal loss, crosstalk and other factors will become more and more serious, which has a very large impact on the quality of data transmission. The linear direct drive mode commonly used in low-speed optical modules (currently 1G / 10G SFP series optical modules are still used) cannot guarantee the minimum BER (bit error rate) requirements of high-speed Serdes, so the CDR (Clock and Data Recovery) solution optical module appears in 25G Serdes, that is, the signal is reshaped at both ends of the transmitter and receiver to reduce the bit error rate. However, when it comes to the 50G Serdes optical module, the capacity of the CDR solution has reached its limit, that is, the CDR is prone to lose lock or mislock when the signal noise is relatively large. Therefore, optical modules with DSP (Digital Signal Processing) solutions came into being. Compared with CDR, DSP will re-encode the signal, thereby optimizing the signal. Currently, 50G / 100G Serdes optical modules have generally adopted DSP solutions.
[0027] DSP modules have improved signal quality, but the disadvantages of DSP modules are also very obvious, and they are becoming more prominent in the AI era, namely, high power consumption, high cost, and long latency. For example, the typical power consumption of a 400G optical module is 10W. A switch with a bandwidth of 51.2T requires 128 400G optical modules. The power consumption of the optical module alone is close to 1300W, which even exceeds the sum of the power consumption of the CPU and the switching chip. It has also become a weak link in the heat dissipation of the whole machine. High-power fans must be installed in the equipment for air cooling. In AIGC networking, the overall utilization rate of network equipment is much higher than that of traditional data centers, and power consumption is the core factor affecting operation and maintenance costs. And according to the current market price, the cost of a DSP module for a device fully equipped with DSP modules may exceed the switch itself. Since DSP re-encodes the signal, it will inevitably cause a large signal delay. The delay caused by a single DSP is about 20-50nS, which is also a major disadvantage for AI networks with low latency requirements. Therefore, the industry has been exploring low-power, low-cost, and low-latency alternatives to DSP modules. Currently, the commonly used solution is the direct connection (DAC) of copper cables. However, this solution is only suitable for short-distance interconnection scenarios within 3 meters and cannot be used in large-scale AI cluster networking scenarios. In addition, in the 200G Serdes era, copper cables have low application value due to excessive losses and short transmission distances.
[0028] With the development of technology, the tolerance of Serdes to noise has been improving. In recent years, linear direct-drive pluggable optical modules (LPO) without DSP have appeared. That is, when the Serdes capability of the device host is strong enough, the optical module can achieve good bit error rate performance even without DSP. Compared with DSP modules, LPO modules do not have DSP and CDR. Figure 3 As shown, Figure 3 The following is a comparison chart of the LPO module system (above) and the DSP module system (below). Ctle stands for Continuous Time Linear Equalizer, Driver Ctle is a technology used to improve signal integrity, and EQ stands for Equalizer. TIA EQ is a component at the receiving end that amplifies and equalizes the received signal. The transimpedance amplifier converts the small current generated by the photodiode (PD) into a voltage signal, and the equalizer adjusts this voltage signal to compensate for the distortion of the signal during transmission.
[0029] However, the optoelectronic interface protocol and management interface protocol for LPO modules have not yet been issued. Although the mainstream manufacturers in the industry have been organizing the formulation of relevant protocols, the application of LPO modules on devices without CDR and DSP is point-to-point. The general specifications can only stipulate the lower limit of performance, but what currently affects the large-scale application of LPO modules is the upper limit of performance.
[0030] In addition, there are many factors that affect the BER (Bit Error Rate) performance of the LPO module on the device, such as port location (corresponding to signal loss), module type, module PN (Part Number), etc. At present, the LPO module needs to adapt the laser bias, transmit gain Tx_Gain, transmit equalization Tx_EQ, receive bandwidth Rx_Bandwidth, receive swing Rx_Swing, receive equalization Rx_EQ and other parameters of the LPO module for each model of module, each port of the network device, and even each transmission channel lane of the port (a port of a network device may contain multiple lanes, each lane can process data packets independently). The process is complicated and the operability is poor;
[0031] It can be seen that the adaptation of LPO modules to devices needs to be done brand by brand, type by type, vendor by vendor, port by port, and even lane by lane. That is, the adaptation process of LPO modules to devices is very complex and delicate.
[0032] At present, the application solutions of LPO modules and network equipment are as follows:
[0033] 1. Debugging stage: Equipment manufacturers and optical module suppliers need to conduct joint debugging first. Since there is currently no management interface protocol for LPO module debugging, module manufacturers cannot open the parameter debugging interface of the LPO module at a unified register address. Usually, each set of parameters of the LPO module needs to be modified manually offline, and then adapted on the machine. After adaptation, the parameter list of the corresponding module at the corresponding port is obtained.
[0034] 2. Application stage: After debugging, different ports of the equipment have fixed optimal parameters for optical modules with different PNs. When the equipment vendor installs the LPO module at the customer's site, it is necessary to modify the parameters of the LPO module port by port to achieve the optimal configuration. Alternatively, the module manufacturer completes the modification of the module parameters and marks them at the factory stage. The equipment vendor installs it at the customer's site according to the marked port correspondence. If a module fails, it can only be replaced with a module with the same configuration. Therefore, different parameter versions of the same LPO module need to be distinguished when the equipment is put on the shelf.
[0035] It can be seen that the optical module processing method in the related art has the following problems:
[0036] 1. There is no unified management interface protocol during the debugging phase. Some manufacturers open parameter debugging interfaces, while others do not. Even if they do, different manufacturers cannot unify them. Batch operations cannot be performed during the debugging phase. Parameters can only be modified one by one and measured on the machine one by one, which is inefficient, takes a long time, and has poor operability.
[0037] In the online application stage, under normal circumstances, the DSP module that has passed the test does not need to distinguish the device port and can be directly put into online application, but the LPO module cannot. Whether the module parameters are modified by the equipment manufacturer at the customer site after the module leaves the factory, or the LPO module completes the parameter modification before leaving the factory, and then the module is installed according to the parameter configuration corresponding to the different device ports when it goes online, the operability is very poor. If the installation operation is wrong, it will directly affect the signal transmission quality of the existing network. The disadvantages of the LPO module in terms of installation alone have greatly limited its application.
[0038] In order to at least partially solve the above problems, in this embodiment, the configuration parameters and parameter value ranges indicated in the declaration information stored in the LPO module are read by the network device, and a debugging configuration list is automatically generated. The configuration item indicated by the transmission performance parameter corresponding to the configuration item in the debugging configuration list and with the best data signal quality (that is, the parameter value of the transmission performance parameter is the smallest) is determined as the target configuration item and saved in the network device, thereby realizing automatic tuning of the LPO module configuration parameters and improving the parameter configuration efficiency.
[0039] Optionally, in this embodiment, debugging declaration information can be stored in the target memory of the LPO module at the factory stage of the LPO module, and the debugging declaration information is used to indicate a set of configuration parameters that a set of target components are allowed to be debugged and a parameter value range of the configuration parameters in the set of configuration parameters that are allowed to be debugged. Based on this, each manufacturer can define a set of configuration parameters of a target component in the LPO module and the corresponding parameter range.
[0040] In the debugging mode of the network device, the network device can read the debugging declaration information from the target memory of the LPO module via the specified communication bus, so that the network device can determine a set of configuration parameters that are allowed to be debugged for a set of target components of the LPO module connected to the specified port and the parameter value range of the configuration parameters in the set of configuration parameters that are allowed to be debugged.
[0041] Step S204: Generate a debugging configuration list according to the parameter value range of the configuration parameters in the set of configuration parameters allowed for debugging indicated by the debugging declaration information, wherein the configuration items in the debugging configuration list are parameter value combinations of the set of configuration parameters.
[0042] The processor in the network device may generate a debugging configuration list based on the parameter value range of the configuration parameter in the set of configuration parameters allowed for debugging read from the LPO module.
[0043] The configuration items in the debugging configuration list are a combination of parameter values of a set of configuration parameters. For example, a set of configuration parameters that a target component allows for debugging and the parameter value range of the configuration parameters in the set of configuration parameters that allow for debugging is: parameter 1, 1-10; parameter 2, 1-10; parameter 3, 1-10; parameter 4, 1-10; parameter 5, 1-10. A configuration item in the debugging 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 debugging configuration list. In order to improve the scientific nature of the debugging configuration list and improve debugging efficiency, the parameter values of its configuration parameters can be determined based on orthogonal experiments. An orthogonal table is a special matrix used in orthogonal experimental design to ensure the balance and representativeness of the experiment. An orthogonal table is a table consisting of a series of numbers, which are arranged according to certain rules to achieve orthogonality in experimental design.
[0044] Step S206, configuring parameter values of a group of configuration parameters of a group of target components in sequence according to the configuration items in the debugging configuration list, and determining parameter values of transmission performance parameters corresponding to the configuration items in the debugging configuration list of the designated port.
[0045] The processor in the network device can send a configuration command to the LPO module via a specified communication bus, wherein the configuration command can be used to instruct the LPO module to adjust a set of configuration parameters that a set of target components are allowed to be debugged to parameter values corresponding to the current configuration items.
[0046] When it is determined that the LPO module adjusts a set of configuration parameters that a set of target components are allowed to be debugged to parameter values corresponding to the current configuration items, the parameter values of the transmission performance parameters corresponding to the configuration items in the debugging configuration list of the designated port can be determined.
[0047] Here, transmission performance parameters can be used to measure the quality of data transmission, including signal integrity and accuracy.
[0048] Step S208, determining the configuration item with the smallest parameter value of the corresponding transmission performance parameter in the debugging configuration list, obtaining the target configuration item, and saving the target configuration item to the network device.
[0049] In order to ensure the reliability of parameter tuning, in this embodiment, when all configuration items in the debugging configuration list are configured and the transmission performance parameters corresponding to the configuration items are determined, the configuration item with the smallest parameter value of the transmission performance parameter corresponding to the configuration item is determined as the target configuration item, and the target configuration item is saved in the network device.
[0050] That is, the target configuration item is determined as a set of configuration parameters of the target components of the LPO module when the LPO module is connected to a designated port of the network device.
[0051] Here, the minimum parameter value of the transmission performance parameter corresponds to the best data transmission quality.
[0052] Through the above steps of the embodiment provided by the present application, in the debugging mode of the network device, the debugging declaration information is read from the target memory via the 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 allowed for debugging indicated by the debugging declaration information, wherein the configuration items in the debugging configuration list are parameter value combinations of a set of configuration parameters; the parameter values of a set of configuration parameters of a set of target components are configured in sequence 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 of the designated port are determined; the configuration item in the debugging configuration list with the smallest parameter value of the corresponding transmission performance parameter is determined to obtain the target configuration item, and the target configuration item is saved in the network device, thereby solving the problem that the processing method of the optical module in the related art has the high complexity of the adaptation process between the LPO module and the network device, resulting in low adaptation efficiency.
[0053] In an exemplary embodiment, before reading the debug declaration information from the target memory via the designated communication bus, the method further includes:
[0054] S11, start the debugging automation script on the network device, wherein the debugging automation script is a script for automatically debugging the linear drive pluggable optical module, and the debugging automation script reads the debugging declaration information, generates a 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 parameter value of the corresponding transmission performance parameter, and saves the target configuration item.
[0055] In this embodiment, the Tuning automation script may be configured on the network device. By starting the debugging automation script on the network device, the network device may automatically debug the linear drive pluggable optical module.
[0056] Reading debugging declaration information, generating a debugging configuration list, configuring parameter values of a set of configuration parameters of a set of target components, determining parameter values of transmission performance parameters corresponding to configuration items in the debugging configuration list, determining the configuration item with the smallest parameter value of the corresponding transmission performance parameter, and saving the target configuration item are performed by a debugging automation script.
[0057] Scripts can be triggered in a variety of ways, including but not limited to:
[0058] Schedule tasks (using cron or similar scheduling tools).
[0059] Specific events (such as network status changes, device restarts, etc.).
[0060] Manually (through the command line interface or remote management tools).
[0061] Through this embodiment, by performing parameter tuning through the Tuning automated script, multiple devices or a large number of parameters can be quickly adjusted, manual intervention can be reduced, and parameter configuration efficiency can be improved.
[0062] In an exemplary embodiment, in the target memory, data is stored using pages as storage units, the debug declaration information is stored in a storage space of a specified address interval in a first page in the target memory, and the address bits in the specified address interval are reserved address bits and / or custom address bits;
[0063] In the debug mode of the network device, debug declaration information is read from the target memory via the specified communication bus, including:
[0064] S21 , in a debugging mode of the network device, based on a page address of a first page, reading debugging declaration information from a designated address interval via a designated communication bus.
[0065] In order to achieve automatic adaptation of the LPO module in the tuning mode, the LPO module needs to open the debugging interface, that is, map the debugging interface of the key parameters of the Driver and TIA to the relevant address bits of the optical module management interface. Here, the debugging interface can include the target memory, the specified communication bus and the management interface protocol.
[0066] For example, in this embodiment, the address bit can use the reserved bit or custom bit in the CMIS (Common Management Interface Specification) protocol. As shown in Table 1, the debugging range of the key parameters of the Driver and TIA (Transimpedance Amplifier) in the LPO module can be declared in page 00H Byte42-84. Here, the CMIS protocol is a communication protocol for managing and monitoring optical modules. It defines the interface and data format between the optical module and the host system, including register mapping, status monitoring, fault reporting and other functions.
[0067] Table 1
[0068]
[0069] It should be noted that the CMIS protocol here is only used as an example, and other existing optical module management interface protocols may also be used, which is not limited in this embodiment.
[0070] Through this embodiment, since it does not rely on the management interface protocol that has not yet been released, the definition of the parameter declaration of the LPO module is realized through the custom address bit in the released protocol, so that the adaptation of the LPO module no longer depends on manual operation and can be realized through automation.
[0071] In an exemplary embodiment, in the target memory, data is stored using pages as storage units, and 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, wherein the second page is an idle page in the target memory;
[0072] The parameter values of a group of configuration parameters of a group of target components are configured in sequence 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 of the designated port are determined, including:
[0073] S31, taking each configuration item in the debugging configuration list as the current configuration item and performing the following processing operations in turn, to obtain the parameter value of the transmission performance parameter corresponding to each configuration item of the designated port:
[0074] Based on the page address of the second page, storing the current configuration item as a current parameter value of a set of configuration parameters in the second page via the designated 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] When parameter values of a set of configuration parameters of a set of target components are configured successfully according to the current configuration item, the parameter value of the transmission performance parameter corresponding to the designated port and the current configuration item is determined.
[0076] Optionally, in this embodiment, the CMIS5.2 protocol related registers are taken as an example:
[0077] 8.9 Banked Page 10h (Lane Control and Data Path Control, channel control and data path control);
[0078] 8.17 Banked Page 18h (Lane Control and Data Path Control Part 2);
[0079] Currently, Page 10H has no free address bits, but Page 18H is currently free.
[0080] Optionally, in this embodiment, the 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 group of configuration parameters in the second page via the designated 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; parameters 5, 3 are stored in the second page of the target memory of the LPO module. The control component in the LPO module can read the current parameter value of a group of configuration parameters from the second page, and configure the parameter values of a group of configuration parameters of a group of target components according to the current parameter value of a group of configuration parameters (i.e., the current configuration item).
[0081] When 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 parameter values of the transmission performance parameters corresponding to the specified port and the current configuration items are determined to determine the data transmission quality corresponding to the parameter values of the configuration parameters of a set of target components of the LPO module when the network device is connected to the LPO module through the current device port and the current parameter values.
[0082] Through this embodiment, the parameter values of the configuration parameters of a set of target components are controlled through the second page in the target memory in 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 an exemplary embodiment, the linear drive pluggable optical module further includes a microcontroller, the microcontroller being respectively connected to a set of target components and a target memory;
[0084] After storing the current configuration item as a current parameter value of a 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:
[0085] S41, reading, by the microcontroller, current parameter values of a set of configuration parameters in the second page from the target memory;
[0086] S42, 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, the parameter values of the set of configuration parameters of a set of target components are updated to the current parameter values of the read set of configuration parameters.
[0087] Similar to the above-mentioned embodiment, the control component in the LPO module can be a microcontroller, which can implement the protocols required for communication with the host system (e.g., network equipment), such as I2C, SPI, etc., and a dedicated optical module management protocol, 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, modulation format, etc.
[0088] The microcontroller may be connected to a set of target components and a target memory respectively, and after storing the current configuration item as a current parameter value of a set of configuration parameters in the second page via a designated communication bus based on a page address of the second page, the current parameter value of the set of configuration parameters in the second page may be read from the target memory by the microcontroller;
[0089] 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, the parameter values of the set of configuration parameters of a set of target components are updated to the current parameter values of the read set of configuration parameters.
[0090] Here, the parameter values of a set of configuration parameters of a set of target components may refer to the current actual parameter values of a set of configuration parameters of a set of target components. In the case where 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 different configuration parameters may be updated to the corresponding current parameter values in the second page.
[0091] Here, the current actual parameter values of a set of configuration parameters may be displayed through a designated register, may be read through a control component, or may be obtained in other ways, which are not limited in this embodiment.
[0092] Through this embodiment, the microcontroller in the LPO module reads the parameter values of the configuration parameters stored in the second page of the target memory to update the configuration parameters of a group of target components, thereby realizing parameter control and improving debugging efficiency.
[0093] In an exemplary embodiment, 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 a set of configuration parameters in the second page are configured successfully, and the third page is an idle page in the target memory that is different from the second page;
[0094] After storing the current configuration item as a current parameter value of a 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:
[0095] S51, based on the page address of the third page, reading the configuration status indication information in the third page via a designated communication bus;
[0096] S52: judging, based on the read configuration status indication information, whether the configuration of parameter values of a group of configuration parameters of a group of target components according to the current configuration items is successful.
[0097] Optionally, in this embodiment, the CMIS5.2 protocol related registers are taken as an example:
[0098] 8.10 Banked Page 11h (Lane Status and Data Path Status, channel status and data path status);
[0099] 8.18 Banked Page 19h (Lane Status and Data Path Status Part 2);
[0100] Currently, Page 11H has no free address bits, but Page 19H is currently free, and real-time status display can be performed in Page 19H.
[0101] 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; and according to the read configuration status indication information, it is determined whether the configuration of the parameter values of a set of configuration parameters of a set of target components according to the current configuration items is successful.
[0102] For example, in this embodiment, the automation script can configure the LPO module with the parameter value of the configuration parameter in the current configuration item in the control bit (eg, page18H), and read back whether the parameter is configured successfully through the status display bit (eg, page19H).
[0103] When the parameter values of the configuration parameters of a set of target components indicated by the configuration status indication information in the third page are consistent with the parameter values corresponding to the current configuration items, the parameter configuration is determined to be successful. If there is an inconsistency, reconfiguration can be triggered. For example, the microcontroller re-reads the parameter values of the configuration parameters in the second page to configure the configuration parameters of a set of target components, and so on.
[0104] Through this embodiment, by defining the status display bit, it is possible to automatically debug the configuration parameters of the LPO module, reduce labor costs, and improve parameter configuration efficiency.
[0105] In an exemplary embodiment, a set of target components includes a driver and a transimpedance amplifier, wherein a self-looping optical fiber is connected between an output end of the driver and an input end of the transimpedance amplifier;
[0106] The parameter values of a group of configuration parameters of a group of target components are configured in sequence 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 of the designated port are determined, including:
[0107] S61, taking each configuration item in the debugging configuration list as the current configuration item and performing the following processing operations in turn, to obtain the parameter value of the transmission performance parameter corresponding to each configuration item of the designated port:
[0108] Configure the parameter values of a set of configuration parameters of a set of target components according to the current configuration items;
[0109] When parameter values of a set of configuration parameters of a set of target components are successfully configured according to the current configuration items, a first optical signal is transmitted to the driver through a designated port, and a second optical signal returned by the transimpedance amplifier is received through the designated port, wherein the second optical signal is an optical signal returned by the first optical signal after passing through the driver, the self-loop optical fiber and the transimpedance amplifier;
[0110] Determine a parameter value of a transmission performance parameter of a designated port corresponding to a current configuration item according to the first optical signal and the second optical signal.
[0111] Combination Figure 4 In this embodiment, a set of target components includes a driver and a transimpedance amplifier, and a self-loop optical fiber is connected between the output end of the driver and the input end of the transimpedance amplifier.
[0112] The driver is an electronic component used to control the laser (Laser Diode, LD). It can provide the necessary current to drive the laser to generate light signals. At the transmitting end, the driver receives the electrical signal and converts it into a current that controls the laser to emit light, thereby modulating the laser to transmit data.
[0113] A transimpedance amplifier (TIA) is a high-speed amplifier that receives optical signals at the receiving end of an optical module and converts them into electrical signals. When an optical signal is transmitted through an optical fiber and received by a photodetector such as a PIN diode or an avalanche photodiode, a small photocurrent is generated. The TIA amplifies this small current to a level suitable for further processing. A PD (Photodiode) can be integrated with a transimpedance amplifier (TIA) to provide better signal amplification and matching.
[0114] "Self-loop" (also known as self-loopback or loop test) is a test method used to verify the integrity and performance of a fiber optic link. Loopback fiber is the physical medium for implementing this test. In the debugging mode, the optical signal emitted by the transmitter (TX) of the LPO module is directly connected to the receiver (RX) through a special fiber jumper (self-loop fiber) to form a closed loop. By measuring the optical signal looped back, the transmission and reception performance of the LPO module can be evaluated, that is, the parameter values of the transmission performance parameters, including bit error rate, etc.
[0115] Optionally, in this embodiment, the debugging basis of the parameters is the port BER in the PRBS31 mode. Here, the 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 the optical module, such as the bit error rate test. By sending the PRBS31 mode, the transmission performance and bit error rate of the optical module can be evaluated to ensure that it can work properly in actual applications.
[0116] Through this embodiment, by matching the parameter values of the transmission performance parameters corresponding to the designated port of the self-loop optical fiber test and the current configuration items, the performance evaluation of the LPO module can be realized, thereby achieving the purpose of parameter tuning.
[0117] In an exemplary embodiment, generating a debugging configuration list according to the parameter value range of the configuration parameter in a set of configuration parameters allowed for debugging indicated by the debugging declaration information includes:
[0118] S71, looping through the following configuration item generation operations according to the parameter value range of the configuration parameters in the set of configuration parameters allowed for debugging indicated by the debugging declaration information, until the number of generated configuration items reaches a specified number, thereby obtaining a debugging configuration list:
[0119] Determine at least one target configuration parameter to be sampled currently from a group of configuration parameters, wherein the at least one target configuration parameter is at least part of the configuration parameters in the group of configuration parameters;
[0120] Parameter value sampling operations are performed respectively 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, wherein, in the currently generated configuration item, the parameter values of other configuration parameters except the target configuration parameter are default values.
[0121] In order to improve the economic efficiency of generating the debugging configuration list, in this embodiment, each parameter value in the parameter value range of all configuration parameters is not tested one by one. In this embodiment, a specified number of control configuration items can be preset to determine at least one target configuration parameter to be sampled currently from a group of configuration parameters, wherein the at least one target configuration parameter is at least part of the configuration parameters in the group of configuration parameters;
[0122] A parameter value sampling operation is performed respectively within the parameter value range of each target configuration parameter in the at least one target configuration parameter to obtain the parameter value of each target configuration parameter in the configuration item generated currently.
[0123] It should be noted that, in the configuration items generated this time, the parameter values of other configuration parameters except the target configuration parameters are default values. Here, the target configuration parameters may include but are not limited to: laser bias, Tx_Gain, Tx_EQ, Rx_Bandwidth, Rx_Swing, Rx_EQ. The target configuration parameters may be all parameter values within the corresponding parameter value range for one-to-one combination testing.
[0124] Optionally, in this embodiment, taking the debugging configuration list as an orthogonal table as an example, the number of rows of the orthogonal table is at least equal to the total number of experiments (ie, 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, that is, each level of each factor appears the same number of times in the table, ensuring the fairness of the experiment. Orthogonal arrays can be orthogonal between columns, that is, the number combinations between any two columns are evenly distributed, which means that the interaction effects between different factors can be evaluated with fewer experiments.
[0126] Through this embodiment, unnecessary experimental combinations can be reduced through the orthogonal table, the total number of experiments can be reduced, and time and cost can be saved.
[0127] In an exemplary embodiment, configuring parameter values of a set of configuration parameters of a set of target components in sequence according to configuration items in a debugging configuration list, and determining parameter values of transmission performance parameters corresponding to the configuration items in the debugging configuration list for a designated port, includes:
[0128] S81, configure the parameter values of a set of configuration parameters of a set of target components in turn according to the configuration items in the debugging configuration list, and determine the parameter value of at least one of the following parameters corresponding to the configuration items in the debugging configuration list of the designated port: bit error rate, symbol error rate.
[0129] BER (Bit Error Rate) and SER (Symbol Error Rate) are two important indicators for measuring data transmission quality.
[0130] The bit error rate is the ratio of received erroneous bits to the total transmitted bits during data transmission. For example, if 1000 bits are transmitted and 10 of them are erroneous, the BER is 0.01% or 10^-4.
[0131] Symbol error rate refers to the ratio of received erroneous symbols to the total transmitted symbols 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 an exemplary embodiment, determining a configuration item in a debugging configuration list whose corresponding transmission performance parameter has the smallest parameter value, obtaining a target configuration item, and saving the target configuration item to a network device includes:
[0134] S91, according to the debugging configuration list, repeatedly performing the following test operations for multiple times: configuring parameter values of a set of configuration parameters of a set of target components in sequence according to the configuration items in the debugging configuration list, and determining parameter values of transmission performance parameters corresponding to the configuration items in the debugging configuration list for the designated port; determining the configuration item in the debugging configuration list with the smallest parameter value of the corresponding transmission performance parameter, and obtaining a reference configuration item;
[0135] S92: When the reference configuration items obtained by executing the test operation each time are all target configuration items, the target configuration items are saved in the network device.
[0136] Here, the reference configuration items obtained each time the test operation is executed are all target configuration items, which means that the size difference of the parameter values corresponding to the reference configuration items obtained each time the test operation is executed is 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 parameter value of the transmission performance parameter remains stable after repeated tests, the final target configuration item is output and saved in the network device.
[0138] In an exemplary embodiment, after repeatedly performing the following test operations multiple times according to the debugging configuration list, the method further includes:
[0139] S101, regenerating a debugging configuration list when a reference configuration item obtained by performing a test operation at least once is not a target configuration item;
[0140] S102, re-performing the test operation multiple times according to the regenerated debugging configuration list;
[0141] S103: When the new reference configuration items obtained by executing the test operation each time are the same, the new reference configuration items are saved in the network device as target configuration items.
[0142] In order to improve the reliability of the parameter tuning result, in this embodiment, when the reference configuration item obtained by performing the test operation at least once is not the target configuration item, the debugging configuration list may be regenerated.
[0143] Similar to the above-mentioned embodiment, the debugging configuration list may be in the form of an orthogonal table. When the debugging configuration list is regenerated, the target configuration parameters and / or the specified quantity may be adjusted to generate a new debugging configuration list that is not completely consistent.
[0144] The test operation is repeatedly executed multiple times according to the regenerated debugging configuration list; when the new reference configuration items obtained each time the test operation is executed are the same, the new reference configuration items are saved in the network device as the target configuration items. Similar to the aforementioned embodiment, the new reference configuration items obtained each time the test operation is executed are the same may mean that the difference in the size of the parameter values corresponding to the new reference configuration items is within a specified threshold, and the new reference configuration item is the configuration item with the smallest parameter value of the transmission performance parameter under the regenerated debugging configuration list.
[0145] Through this embodiment, by regenerating the debugging 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 the parameter tuning result can be improved, and high-quality transmission of data between the automatically configured network device and the LPO module can be achieved.
[0146] In an exemplary embodiment, after repeatedly executing the test operation multiple times according to the regenerated debugging configuration list, the method further includes:
[0147] S111, when a new reference configuration item obtained by performing the test operation at least once is different from a new reference configuration item obtained by performing the test operation at other times, a debugging abnormality alarm is issued, wherein the debugging abnormality alarm is used to prompt that an abnormality exists in the debugging process of the linear drive pluggable optical module.
[0148] In order to reduce the waste of system resources, the debugging configuration list can be regenerated when the parameter value stability is low. When the stability of the parameter value of the configuration item with the smallest parameter value of the transmission performance parameter obtained by repeated testing based on the regenerated debugging configuration list is low, a debugging exception alarm is issued. The debugging exception alarm is used to prompt that there is an abnormality in the debugging process of the linear drive pluggable optical module.
[0149] Here, low stability of the parameter value may mean that the parameter value of a new reference configuration item obtained by executing the test operation at least once is different from the parameter value of a new reference configuration item obtained by executing the test operation at other times, or it may mean that the difference in size between the parameter value of a new reference configuration item obtained by executing the test operation and the parameter value of a new reference configuration item obtained by executing the test operation at other times is beyond a specified threshold.
[0150] Through this embodiment, by setting the debugging alarm conditions, a debugging abnormality alarm can be issued when the debugging alarm conditions are met, prompting manual intervention to improve the efficiency of abnormality resolution.
[0151] In one exemplary embodiment, the network device includes a serializer / deserializer, and the designated port is a port corresponding to the serializer / deserializer;
[0152] The above method further includes:
[0153] S121, before each test operation is performed, restart the serializer / deserializer.
[0154] Restarting can reset the internal state of the SerDes, including any counters, state machines, or caches that may affect data quality. Restarting the SerDes can also resolve transient errors or anomalies that may occur in data transmission, improving the reliability and accuracy of test results.
[0155] In an exemplary embodiment, 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;
[0156] Save the target configuration items to the network device, including:
[0157] S131, saving the port number of the designated 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 indicated by the target configuration item into a port parameter matrix of the network device.
[0158] Considering that the layout and connection methods of each port on the network device may be different, LPOs of different module types may include different components and / or be set with different configuration parameters and parameter value ranges. Therefore, in the debugging mode of the network device, the port number of the designated 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 indicated by the target configuration item can be saved in the port parameter matrix of the network device. Here, the component identifier of each target component in a set of target components can also be replaced by the type identifier of the LPO module.
[0159] Through this embodiment, after automatic tuning, the network device can automatically save the parameter matrix for a specific PN, a specific port, and a specific configuration parameter, thereby simplifying the application process of the LPO module.
[0160] In an exemplary embodiment, after the target configuration item is saved in the network device, the method further includes:
[0161] S141, in an application mode of the network device, configuring parameter values of a group of configuration parameters of a group of target components of a linear drive pluggable optical module connected to a designated port according to target configuration items stored in the network device.
[0162] That is, the parameter values of the configuration parameters of a group 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 above 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 the debugging mode.
[0163] In an exemplary embodiment, the network device includes a serializer / deserializer, the designated port is a port corresponding to the serializer / deserializer, and the set of target components includes also includes a laser;
[0164] Before configuring parameter values of a set of configuration parameters of a set of target components of the linear drive pluggable optical module connected to the designated port according to the target configuration items stored in the network device, the method further includes:
[0165] S151, in an application mode of the network device, after the linear drive pluggable optical module is powered on, shutting down the laser and the serializer / deserializer in sequence.
[0166] For example, in this embodiment, in the application state, the module will execute the Tx Squelch mechanism after power-on, that is, the laser will be forced to turn off, and the serdes (Serializer / Deserializer) of the switch will also be shut down.
[0167] Tx Squelch (transmission suppression) is a mechanism used to shut down or reduce the optical signal emitted from the optical module under certain conditions. When the optical module performs the Tx Squelch mechanism, it means that it has stopped or reduced the emission of the optical signal, which is usually achieved by shutting down the laser or reducing the driving current of the laser. Doing so can prevent invalid or erroneous data from propagating in the network, and can also protect the hardware at the receiving end from being damaged by excessive optical signals.
[0168] In a network device (e.g., a switch), serdes is used to process high-speed serial transmission of data. When the serdes of the switch is shut down, it means that the serdes function related to a specific port or link is shut down or put into a low-power state. In this embodiment, if the link is not established correctly, for example, because the optical module is not inserted or is not configured correctly, the serdes will be shut down.
[0169] Through this embodiment, by performing a shutdown operation on the laser and the serializer / deserializer, a connection link abnormality caused by port unlocking can be avoided.
[0170] In an exemplary embodiment, after configuring 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 designated port according to the target configuration items stored in the network device, the method further includes:
[0171] S161, after completing the configuration of parameter values of a group of configuration parameters of a group of target components of the linear drive pluggable optical module connected to the designated port, sequentially perform turn-on operations on the serializer / deserializer and the laser.
[0172] For example, in this embodiment, in the application state, the network device (e.g., switch) configures the parameters of the module according to the parameter matrix generated in the Tuning phase. 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 unlocking.
[0173] In an 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 by electrical signals. The physical memory of EEPROM is usually organized into multiple pages, each containing a certain number of bytes. EEPROM allows read and write operations on individual bytes.
[0175] The network device and the optical module can be connected via I2C (Inter-Integrated Circuit). The I2C bus allows the network device to read or write the EEPROM in the optical module to obtain the module's configuration information, diagnostic data, or product information. The LPO module contains a microcontroller (MCU), and the MCU chip can communicate with the HOST host device (for example, a switch) via I2C.
[0176] As an optional exemplary embodiment, the processing method of the optical module is explained by taking the management interface protocol as the CMIS5.2 protocol as an example.
[0177] This application aims to optimize the problems in the current application of LPO modules from two aspects. The application solutions are summarized as follows:
[0178] 1) The first step is to perform parameter tuning in Tuning mode. This mode allows the LPO module that is paired with the device for the first time to achieve parameter tuning through an automated script. The purpose of the adaptation is to generate a parameter matrix for module PN, port topology, and module configuration inside the device. This matrix will be automatically saved in the device after Tuning is completed, so that the parameters of the module or device port can be directly configured in subsequent applications;
[0179] 2) The second step is the Application mode, in which the parameters of the LPO module are automatically configured by the HOST device based on the parameter matrix saved in the Tuning mode. There is no need for manual modification during the online stage, and the module does not need to be modified by the manufacturer during the delivery stage.
[0180] In order to realize the automatic adaptation of the LPO module in the Tuning mode, the LPO module needs to open the debugging interface, that is, map the debugging interface of the key parameters of the Driver and TIA to the relevant address bits of the optical module management interface, and these address bits use the reserved bits or user-defined bits in the CMIS protocol. For example, the debugging range of the key parameters of the module Driver (driver) and TIA (transimpedance amplifier) 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 bit, control bit, and status display bit are all defined. Page 18 / 19H corresponds to page 10 / 11H. Currently, Page 10 / 11H has no idle address bits, but Page 18 / 19H is currently idle. This application makes full use of the undefined registers in the protocol to debug the LPO module.
[0182] The main process of automatic 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 matched with self-loop optical fibers;
[0184] b) Start the Tuning automation script. The script reads the declaration information of the Tx sending & Rx receiving key parameters in the module page00H, and automatically generates a debugging configuration list based on the declaration;
[0185] c) According to the configuration list, start the port parameter debugging. The parameter debugging basis is 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, restart the port serdes and debug the parameters again. If the parameters are still stable after repeated tests, output the final port parameter matrix.
[0188] Specifically, combined Figure 5 , the parameter tuning process of the LPO module may include the following steps:
[0189] Step S501, fully inserting the LPO module connected to the self-loop optical fiber 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 the parameter debugging of the port according to the configuration list, and the script configures the LPO module with the test parameters in the control position;
[0192] Step S504, read back the parameters through the status display bit to determine whether the configuration is successful; if so, execute step 505, if the configuration fails, execute step 503;
[0193] Step S505, the script controls the device to turn on the PRBS mode to perform bit error rate (also called bit error rate) measurement. After the measurement passes, the bit error rate (BER) of the port under the parameter configuration is recorded. After all configurations are tested, the parameter with the minimum BER is obtained, that 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 into the port parameter matrix of the device;
[0195] Step S507, after completing one debugging, restart the serdes, repeat the previous operation, debug the parameters again, and record and compare the port parameters screened multiple times;
[0196] Step S508, if the overall difference of the parameters is not large (generally within 3dB), then execute step 509; if the overall difference of the parameters is large (outside 3dB), then execute step 505;
[0197] Step S509, output the final port parameter matrix, which contains information such as module PN, port number, module parameter configuration, etc. The parameter matrix is saved in the configuration of the device;
[0198] Step S510, the tuning is completed.
[0199] In the application state, the module will execute the Tx Squelch mechanism after power-on, that is, the laser will be forced to turn off, and the serdes of the switch will also be shut down. The switch configures the module parameters according to the parameter matrix generated in the Tuning stage. After the configuration is completed, the switch serdes is turned on, and finally the module laser is turned on. This step can avoid link abnormalities caused by port unlocking.
[0200] Specifically, combined Figure 6 The application process of LPO module can include the following steps:
[0201] Step S601, inserting the LPO module into the device port;
[0202] Step S602, after the device identification module is in place, the switch SerDes is first turned off, and the laser of the control module is turned off;
[0203] Step S603, the device identifies the module PN and the port number, and automatically configures the parameters of the LPO module through the corresponding registers 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 determine whether the module has been configured;
[0205] Step S605, the device turns on the SerDes, and then controls the LPO module laser to turn on, the module emits light, and officially enters the interconnection stage;
[0206] Step S606, completing the LPO module and port adaptation.
[0207] Through this embodiment, the three functions of parameter declaration, parameter control, and parameter status display of the LPO module can be realized through the custom address bit in the existing protocol. Based on this, the automatic tuning process of LPO module and device adaptation can be realized, and it is no longer dependent on the existing complex manual tuning scheme. After the automatic tuning, the device will automatically save the parameter matrix configured for a specific PN, a specific port, and a specific parameter; and in the installation stage of the module, there is no need to distinguish the parameter version, and there is no need to worry about the mismatch between the parameter and the port. All configurations are automatically configured by the switch based on the parameter matrix, which greatly simplifies the workload of the shelf, and can avoid the mistakes caused by manual operation to a limited extent. That is, in the shelf application stage of the LPO module, there is no need to distinguish the parameter configuration of the module and the corresponding relationship with the device port. The module can be directly put on the shelf after leaving the factory. The parameter tuning of the LPO module can be directly configured by the device through the management interface defined in the above embodiment and the corresponding parameter matrix to configure the parameters of the LPO module, thereby greatly simplifying the application process of the LPO module.
[0208] It should be noted that, unlike the direct attach cable (DAC), the active copper cable (ACC) can extend the networking distance to 5-10 meters. The debugging solution of the LPO module is also applicable to the active copper cable, because the active copper cable also has a Re-Driver chip at the receiving end, which plays a similar role as the Driver / TIA in the LPO module in signal tuning. The debugging solution for the LPO module in this embodiment can also be applied in the ACC after adjustment.
[0209] Although the implementation methods described in this application are as above, the above descriptions and definitions are only for the purpose of facilitating the understanding of the implementation methods 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 solutions based on this algorithm, are within the scope of protection of the present invention.
[0210] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0211] Figure 7 It is an optional network device provided in the embodiment of the present application, such as Figure 7 As shown, the network device includes:
[0212] A first reading unit 702 is used to read the debugging declaration information from the target memory via a designated communication bus in the debugging mode of the network device;
[0213] A first generating unit 704 is used to generate a debugging configuration list according to the parameter value range of the configuration parameters in the set of configuration parameters allowed for debugging indicated by the debugging declaration information, wherein the configuration items in the debugging configuration list are parameter value combinations of the set of configuration parameters;
[0214] The first execution unit 706 is used to sequentially configure parameter values of a group of configuration parameters of a group of target components 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 of the designated port;
[0215] The second execution unit 708 is used 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.
[0216] It should be noted that the first reading unit 702 in this embodiment can be used to execute the above step S202, the first generating unit 704 in this embodiment can be used to execute the above step S204, the first executing unit 706 in this embodiment can be used to execute the above step S206, and the second executing unit 708 in this embodiment can be used to execute the above step S208.
[0217] Through the embodiments of the present application, in the debugging mode of the network device, the debugging declaration information is read from the target memory via the 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 allowed for debugging indicated by the debugging declaration information, wherein the configuration items in the debugging configuration list are parameter value combinations of a set of configuration parameters; the parameter values of a set of configuration parameters of a set of target components are configured in sequence 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 of the designated port are determined; the configuration item in the debugging configuration list with the smallest parameter value of the corresponding transmission performance parameter is determined to obtain the target configuration item, and the target configuration item is saved in the network device. Through the present application, 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 processing method of the optical module in the related art is solved.
[0218] The device is used to implement the processing method of the optical module provided in the above-mentioned embodiment, which has been described and will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0219] In an exemplary embodiment, the network device further includes:
[0220] A startup unit is used to start a debugging automation script on a network device before reading debugging declaration information from a target memory via a specified communication bus, wherein the debugging automation script is a script for automatically debugging a linear drive pluggable optical module, and reading debugging declaration information, generating a debugging configuration list, configuring parameter values of a set of configuration parameters of a set of target components, determining parameter values of transmission performance parameters corresponding to configuration items in the debugging configuration list, determining a configuration item with the smallest parameter value of the corresponding transmission performance parameter, and saving the target configuration item are executed by the debugging automation script.
[0221] In an exemplary embodiment, in the target memory, data is stored using pages as storage units, the debug declaration information is stored in a storage space of a specified address interval in a first page in the target memory, and the address bits in the specified address interval are reserved address bits and / or custom address bits;
[0222] The first reading unit comprises:
[0223] The reading module is used to read the debugging declaration information from the specified address interval via the specified communication bus based on the page address of the first page in the debugging mode of the network device.
[0224] In an exemplary embodiment, in the target memory, data is stored using pages as storage units, and 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, wherein the second page is an idle page in the target memory;
[0225] The first execution unit includes:
[0226] The first execution module is used to perform the following processing operations on each configuration item in the debugging configuration list as the current configuration item in turn, to obtain the parameter value of the transmission performance parameter corresponding to each configuration item of the designated port:
[0227] Based on the page address of the second page, storing the current configuration item as a current parameter value of a set of configuration parameters in the second page via the designated 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] When parameter values of a set of configuration parameters of a set of target components are configured successfully according to the current configuration item, the parameter value of the transmission performance parameter corresponding to the designated port and the current configuration item is determined.
[0229] In an exemplary embodiment, the linear drive pluggable optical module further includes a microcontroller, the microcontroller being respectively connected to a set of target components and a target memory;
[0230] Network equipment also includes:
[0231] a second reading unit, configured to read, through the microcontroller, current parameter values of a set of configuration parameters in the second page from the target memory 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;
[0232] An updating unit is used to update the parameter values of a set of configuration parameters of a set of target components to the current parameter values of the read 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, 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 a set of configuration parameters in the second page are configured successfully, and the third page is an idle page in the target memory that is different from the second page;
[0234] Network equipment also includes:
[0235] a third reading unit, configured to read the configuration status indication information in the third page via the designated communication bus based on the page address of the third page after storing the current configuration item as a current parameter value of a set of configuration parameters in the second page via the designated communication bus based on the page address of the second page;
[0236] The judgment unit is used to judge whether the parameter values of a set of configuration parameters of a set of target components are configured successfully according to the read configuration status indication information according to the current configuration items.
[0237] In an exemplary embodiment, a set of target components includes a driver and a transimpedance amplifier, wherein a self-looping optical fiber is connected between an output end of the driver and an input end of the transimpedance amplifier;
[0238] The first execution unit includes:
[0239] The second execution module is used to perform the following processing operations on each configuration item in the debugging configuration list as the current configuration item in turn, to obtain the parameter value of the transmission performance parameter corresponding to each configuration item of the designated port:
[0240] Configure the parameter values of a set of configuration parameters of a set of target components according to the current configuration items;
[0241] When parameter values of a set of configuration parameters of a set of target components are successfully configured according to the current configuration items, a first optical signal is transmitted to the driver through a designated port, and a second optical signal returned by the transimpedance amplifier is received through the designated port, wherein the second optical signal is an optical signal returned by the first optical signal after passing through the driver, the self-loop optical fiber and the transimpedance amplifier;
[0242] Determine a parameter value of a transmission performance parameter of a designated port corresponding to a current configuration item according to the first optical signal and the second optical signal.
[0243] In an exemplary embodiment, the generating unit comprises:
[0244] The third execution module is used to cyclically execute the following configuration item generation operation according to the parameter value range of the configuration parameter in the set of configuration parameters allowed for debugging indicated by the debugging declaration information, until the number of generated configuration items reaches a specified number, thereby obtaining a debugging configuration list:
[0245] Determine at least one target configuration parameter to be sampled currently from a group of configuration parameters, wherein the at least one target configuration parameter is at least part of the configuration parameters in the group of configuration parameters;
[0246] Parameter value sampling operations are performed respectively 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, wherein, in the currently generated configuration item, the parameter values of other configuration parameters except the target configuration parameter are default values.
[0247] In an exemplary embodiment, the first execution unit includes:
[0248] The fourth execution module is used 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 debugging configuration list, and determine the parameter value of at least one of the following parameters corresponding to the configuration items in the debugging configuration list of the designated port: bit error rate, symbol error rate.
[0249] In an exemplary embodiment, the second execution unit includes:
[0250] A determination module is used to determine the configuration item with the smallest parameter value of the corresponding transmission performance parameter in the debugging configuration list to obtain the target configuration item;
[0251] The fifth execution module is used to repeatedly perform the following test operations according to the debugging configuration list: sequentially configure the parameter values of a set of configuration parameters of a set of target components according to the configuration items in the debugging configuration list, and determine the parameter values of the transmission performance parameters corresponding to the configuration items in the debugging configuration list of the designated port; determine the configuration item in the debugging configuration list with the smallest parameter value of the corresponding transmission performance parameter to obtain a reference configuration item;
[0252] The first saving module is used to save the target configuration item to the network device when the reference configuration items obtained by performing the test operation each time are all target configuration items.
[0253] In an exemplary embodiment, the network device further includes:
[0254] A second generating unit is used to regenerate the debugging configuration list after repeatedly performing the following test operation according to the debugging configuration list for multiple times, if the reference configuration item obtained by performing the test operation at least once is not the target configuration item;
[0255] A third execution unit is used to repeatedly execute the test operation multiple times according to the regenerated debugging configuration list;
[0256] The saving unit is used to save the new reference configuration item as the target configuration item in the network device when the new reference configuration item obtained by executing the test operation each time is the same.
[0257] In an exemplary embodiment, the network device further includes:
[0258] An alarm unit is used to issue a debugging exception alarm after repeatedly executing the test operation multiple times according to the regenerated debugging configuration list, when a new reference configuration item obtained by executing the test operation at least once is different from a new reference configuration item obtained by executing the test operation at other times, wherein the debugging exception alarm is used to prompt that there is an abnormality 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 a port corresponding to the serializer / deserializer;
[0260] Network equipment also includes:
[0261] The restart unit is used to restart the serializer / deserializer before each test operation.
[0262] In an exemplary embodiment, 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;
[0263] The second execution unit includes:
[0264] The second saving module is used to save the port number of the designated 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 indicated by the target configuration item into the port parameter matrix of the network device.
[0265] In an exemplary embodiment, the network device further includes:
[0266] The configuration unit is used 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 designated port according to the target configuration items stored in the network device in the application mode of the network device after the target configuration items are saved in the network device.
[0267] In an exemplary embodiment, the network device includes a serializer / deserializer, the designated port is a port corresponding to the serializer / deserializer, and the set of target components includes also includes a laser;
[0268] Network equipment also includes:
[0269] The fourth execution unit is used to, before configuring 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 designated port according to the target configuration items stored in the network device, in the application mode of the network device, after the linear drive pluggable optical module is powered on, sequentially perform shutdown operations on the laser and the serializer / deserializer.
[0270] In an exemplary embodiment, the network device further includes:
[0271] The fifth execution unit is used 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 designated port according to the target configuration items stored in the network device, and 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 designated port are configured, and then perform an opening operation on the serializer / deserializer and the laser in sequence.
[0272] In an 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 the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0274] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory, a random access memory, a mobile hard disk, a magnetic disk, or an optical disk.
[0275] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0276] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0277] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in any one of the above method embodiments.
[0278] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flowchart. Figure 8The computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processor 801, various functions provided by the embodiments of the present application are executed. The serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0279] refer to Figure 8 , Figure 8 It is a structural block diagram of a computer system of an optional electronic device provided in an embodiment of the present application.
[0280] Figure 8 The computer system structure block diagram of the electronic device used to implement the embodiment of the present application is schematically shown. Figure 8 As shown, the computer system 800 includes a central processing unit 801 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 802 (ROM) or the program loaded from the storage part 808 to the random access memory 803 (RAM). Various programs and data required for system operation are also stored in the random access memory 803. The central processing unit 801, the read-only memory 802 and the random access memory 803 are connected to each other through a bus 804. The input / output interface 805 (Input / Output interface, referred to as 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, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a 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 magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.
[0282] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processor 801, various functions defined in the system of the present application are executed.
[0283] It should be noted that Figure 8 The computer system 800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0284] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0285] In an 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] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0287] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0288] The above are only preferred embodiments of the present application and are not intended to limit the embodiments of the present application. For those skilled in the art, the embodiments of the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the embodiments of the present application shall be included in the protection scope of the embodiments of the present application.
Claims
1. A method for processing an optical module, characterized in that: Applied to a network device, the network device is connected to a linear drive pluggable optical module through a designated communication bus, the linear drive pluggable optical module includes a group of target components and a target memory, the target memory stores debugging declaration information, the debugging declaration information is used to indicate a group of configuration parameters that the group of target components are allowed to be debugged and a parameter value range of the configuration parameters in the group of configuration parameters that are allowed to be debugged, and the group of target components is connected to a designated port of the network device; The method comprises: In a debugging mode of the network device, reading the debugging declaration information from the target memory via the designated communication bus; Generate a debugging configuration list according to the parameter value range of the configuration parameters in the set of configuration parameters allowed for debugging indicated by the debugging declaration information, wherein the configuration items in the debugging configuration list are parameter value combinations of the set of configuration parameters; sequentially configuring the parameter values of the set of configuration parameters of the set of target components according to the configuration items in the debugging configuration list, and determining the parameter values of the transmission performance parameters corresponding to the configuration items in the debugging configuration list of the designated port; Determine a configuration item in the debugging configuration list corresponding to the transmission performance parameter with the smallest parameter value, obtain a target configuration item, and save the target configuration item to the network device; In which, in the target memory, data is stored in pages as storage units, the debug declaration information is stored in a storage space in a specified address range in a first page in the target memory, and a second page in the target memory is used to store parameter values of the set of configuration parameters configured for the set of target components.
2. The method according to claim 1, characterized in that Before reading the debug declaration information from the target memory via the designated communication bus, the method further includes: Start a debugging automation script on the network device, wherein the debugging automation script is a script for automatically debugging the linear drive pluggable optical module, and reads the debugging declaration information, generates a debugging configuration list, configures parameter values of the set of configuration parameters of the set of target components, determines parameter values of transmission performance parameters corresponding to configuration items in the debugging configuration list, determines the configuration item with the smallest parameter value of the corresponding transmission performance parameter, and saves the target configuration item, which are executed by the debugging automation script.
3. The method according to claim 1, characterized in that The address bits in the specified address interval are reserved address bits and / or custom address bits; The step of reading the debugging declaration information from the target memory via the designated communication bus in the debugging mode of the network device includes: In the debugging mode of the network device, the debugging declaration information is read from the designated address interval via the designated communication bus based on the page address of the first page.
4. The method according to claim 1, characterized in that: The second page is a free page in the target memory; The configuring the parameter values of the set of configuration parameters of the set of target components in sequence according to the configuration items in the debugging configuration list, and determining the parameter values of the transmission performance parameters corresponding to the configuration items in the debugging configuration list of the designated port, includes: The following processing operations are performed on each configuration item in the debugging configuration list as the current configuration item in turn to obtain the parameter value of the transmission performance parameter corresponding to the designated port and each configuration item: Based on the page address of the second page, 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, so as to configure the parameter values of the set of configuration parameters of the set of target components according to the current configuration item; In a case where the parameter values of the set of configuration parameters of the set of target components are configured successfully according to the current configuration item, the parameter value of the transmission performance parameter corresponding to the designated port and the current configuration item is determined.
5. The method according to claim 4, characterized in that The linear drive pluggable optical module further includes a microcontroller, and the microcontroller is respectively connected to the group of target components and the target memory; 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: Reading, by the microcontroller, current parameter values of the set of configuration parameters in the second page from the target memory; When the current parameter values of the set of configuration parameters read are different from the parameter values of the set of configuration parameters of the set of target components, the parameter values of the set of configuration parameters of the set of target components are updated to the current parameter values 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 are configured successfully, and the third page is an idle 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, reading the configuration status indication information in the third page via the designated communication bus; According to the read configuration status indication information, it is determined whether the configuration of the parameter values of the set of configuration parameters of the set of target components according to the current configuration items is successful.
7. The method according to claim 1, characterized in that The set of target components includes a driver and a transimpedance amplifier, and a self-looping optical fiber is connected between an output end of the driver and an input end of the transimpedance amplifier; The configuring the parameter values of the set of configuration parameters of the set of target components in sequence according to the configuration items in the debugging configuration list, and determining the parameter values of the transmission performance parameters corresponding to the configuration items in the debugging configuration list of the designated port, includes: The following processing operations are performed on each configuration item in the debugging configuration list as the current configuration item in turn to obtain the parameter value of the transmission performance parameter corresponding to the designated port and each configuration item: Configuring parameter values of the set of configuration parameters of the set of target components according to the current configuration item; In the case where the parameter values of the set of configuration parameters of the set of target components are successfully configured according to the current configuration items, transmitting the first optical signal to the driver through the designated port, and receiving the second optical signal returned by the transimpedance amplifier through the designated port, wherein the second optical signal is an optical signal returned by the first optical signal after passing through the driver, the self-loop optical fiber and the transimpedance amplifier; Determine a parameter value of the transmission performance parameter corresponding to the designated port and the current configuration item according to the first optical signal and the second optical signal.
8. The method according to claim 1, characterized in that The step of generating a debugging configuration list according to the parameter value range of the configuration parameter in the set of configuration parameters allowed to be debugged indicated by the debugging declaration information comprises: The following configuration item generation operation is performed cyclically according to the parameter value range of the configuration parameter in the set of configuration parameters allowed for debugging indicated by the debugging declaration information, until the number of generated configuration items reaches a specified number, thereby obtaining the debugging configuration list: Determine at least one target configuration parameter to be sampled currently from the set of configuration parameters, wherein the at least one target configuration parameter is at least part of the configuration parameters in the set of configuration parameters; Parameter value sampling operations are performed respectively within the parameter value range of each target configuration parameter in the at least one target configuration parameter to obtain the parameter value of each target configuration parameter in the currently generated configuration item, wherein, in the currently generated configuration item, the parameter values of other configuration parameters except the target configuration parameter are default values.
9. The method according to claim 1, characterized in that: The configuring the parameter values of the set of configuration parameters of the set of target components in sequence according to the configuration items in the debugging configuration list, and determining the parameter values of the transmission performance parameters corresponding to the configuration items in the debugging configuration list of the designated port, includes: The parameter values of the set of configuration parameters of the set of target components are configured in sequence according to the configuration items in the debugging configuration list, and the parameter value of at least one of the following parameters corresponding to the configuration items in the debugging configuration list of the designated port is determined: bit error rate, symbol error rate.
10. The method according to claim 1, characterized in that The determining, in the debugging configuration list, a configuration item corresponding to the transmission performance parameter with the smallest parameter value, obtaining a target configuration item, and saving the target configuration item to the network device includes: Determine the configuration item in the debugging configuration list corresponding to the transmission performance parameter with the smallest parameter value, and obtain the target configuration item; According to the debugging configuration list, repeatedly perform the following test operations multiple times: sequentially configure the parameter values of the set of configuration parameters of the set of target components according to the configuration items in the debugging configuration list, and determine the parameter values of the transmission performance parameters corresponding to the configuration items in the debugging configuration list of the designated port; determine the configuration item in the debugging configuration list that has the smallest parameter value of the corresponding transmission performance parameter to obtain a reference configuration item; In a case where the reference configuration items obtained by executing the test operation each time are all the target configuration items, the target configuration items are saved in the network device.
11. The method according to claim 10, characterized in that After repeatedly performing the following test operations multiple times according to the debugging configuration list, the method further includes: In a case where the reference configuration item obtained by performing the test operation at least once is not the target configuration item, regenerating the debugging configuration list; Re-performing the test operation multiple times according to the regenerated debugging configuration list; In the case that the new reference configuration items obtained by executing the test operation each time are the same, the new reference configuration items are saved in the network device as the target configuration items.
12. The method according to claim 11, characterized in that After repeatedly executing the test operation multiple times according to the regenerated debugging configuration list, the method further includes: In a case where the new reference configuration item obtained by performing the test operation at least once is different from the new reference configuration item obtained by performing the test operation at other times, a debugging abnormality alarm is issued, wherein the debugging abnormality alarm is used to prompt that there is an abnormality 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 a port corresponding to the serializer / deserializer; The method further comprises: Before each execution of the test operation, the serializer / deserializer is restarted.
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; The step of saving the target configuration item to the network device includes: The port number of the designated 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 in a port parameter matrix of the network device.
15. The method according to claim 1, characterized in that After the target configuration item is saved in the network device, the method further includes: In the application mode of the network device, parameter values of the set of configuration parameters of the set of target components of the linear drive pluggable optical module connected to the designated 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 also includes a laser; Before 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 designated port according to the target configuration item 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, shutdown operations are performed on the laser and the serializer / deserializer in sequence.
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 linear drive pluggable optical module connected to the designated port according to the target configuration item stored in the network device, the method further includes: After completing the configuration of 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 designated port, turn-on operations are sequentially performed on the serializer / deserializer and the laser.
18. The method according to any one of claims 1 to 17, characterized in that The network device comprises 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: The network device is connected to the linear drive pluggable optical module through a designated communication bus, the linear drive pluggable optical module includes a group of target components and a target memory, the target memory stores debugging declaration information, the debugging declaration information is used to indicate a group of configuration parameters that the group of target components are allowed to be debugged and a parameter value range of the configuration parameters in the group of configuration parameters that are allowed to be debugged, and the group of target components is connected to a designated port of the network device; The network equipment includes: A first reading unit, configured to read the debugging declaration information from the target memory via the designated communication bus in the debugging mode of the network device; A first generating unit, configured to generate a debugging configuration list according to a parameter value range of a configuration parameter in the set of configuration parameters allowed for debugging indicated by the debugging declaration information, wherein the configuration items in the debugging configuration list are parameter value combinations of the set of configuration parameters; A first execution unit, configured to sequentially configure parameter values of the set of configuration parameters of the set of target components according to the configuration items in the debugging configuration list, and determine parameter values of transmission performance parameters corresponding to the designated port and the configuration items in the debugging configuration list; A second execution unit is used to determine the configuration item in the debugging configuration list corresponding to the smallest parameter value of the transmission performance parameter, obtain a target configuration item, and save the target configuration item to the network device; In which, in the target memory, data is stored in pages as storage units, the debug declaration information is stored in a storage space in a specified address range in a first page in the target memory, and a second page in the target memory is used to store parameter values of the set of configuration parameters configured for the set of target components.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method according to any one of claims 1 to 18 when executed by a processor.
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, the steps of the method according to any one of claims 1 to 18 are implemented.
22. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 18 are implemented.
