A switch exchange chip pre-emphasis configuration method, device and medium

CN117792898BActive Publication Date: 2026-08-21INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311843488.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2026-08-21
Estimated Expiration
2043-12-28

AI Technical Summary

Technical Problem

[0005]本发明的目的是提供一种交换机交换芯片预加重配置方法、装置及介质,以解决目前所采用的人工配置方式效率低下、及时性差且容易出现配置错误等问题

Benefits of technology

[0063]本发明提供的一种交换机交换芯片预加重配置方法,通过获取各端口接入光模块的各项参数,以从预先建立的预加重参数数据库中查找对应的预加重参数组,进而实现交换芯片的预加重参数配置。本方案全程可交由机器实现,无需人工参与,避免了因为人为因素所带来的配置错误等问题,并提高交换芯片预加重参数配置的效率和及时性,使交换机更快速地进入工作状态,从而有效地提高开发效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117792898B_ABST
    Figure CN117792898B_ABST
Patent Text Reader

Abstract

The application discloses a switch exchange chip pre-emphasis configuration method and device and medium, relates to the technical field of switch configuration, and is used for firstly configuring the pre-emphasis of a switch exchange chip, aiming at the problems of low efficiency, poor timeliness and easy configuration errors of the current manual configuration mode, and providing a switch exchange chip pre-emphasis configuration method, obtaining various parameters of optical modules connected to various ports, searching for corresponding pre-emphasis parameter groups from a pre-established pre-emphasis parameter database, and then realizing pre-emphasis parameter configuration of the switch exchange chip. The whole process can be realized by a machine without human participation, avoiding configuration errors caused by human factors and improving the efficiency and timeliness of pre-emphasis parameter configuration of the switch exchange chip, so that the switch can enter the working state more quickly, thereby effectively improving the development efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of switch configuration, and in particular to a method, apparatus and medium for pre-emphasis configuration of switch chips. Background Technology

[0002] In modern switch applications, pre-emphasis parameter configuration of the switching chip is typically required before normal operation. Only after correct parameter configuration can the switch function properly. Incorrect parameter configuration can lead to problems such as low amplitude or low energy received optical signals after transmission from the transmitter, preventing the receiver from correctly interpreting the received optical signal information.

[0003] Because the pre-emphasis parameters of a switching chip are related to many factors, the required pre-emphasis parameters vary depending on the circumstances. Therefore, the current method for configuring pre-emphasis parameters of switching chips is still mainly manual input, which is inefficient, lacks timeliness, and is prone to errors due to human factors, thus failing to meet actual needs.

[0004] Therefore, those skilled in the art urgently need a pre-emphasis configuration method for switch chips to solve the problems of low efficiency, poor timeliness, and easy configuration errors in the current manual configuration method. Summary of the Invention

[0005] The purpose of this invention is to provide a method, apparatus and medium for pre-emphasis configuration of switch chips, so as to solve the problems of low efficiency, poor timeliness and easy configuration errors of the currently used manual configuration method.

[0006] To solve the above-mentioned technical problems, the present invention provides a method for pre-emphasis configuration of a switch chip, comprising:

[0007] Read data from the electrically erasable programmable read-only memory of each optical module inserted into the port;

[0008] The data of the electrically erasable programmable read-only memory is analyzed to obtain the manufacturer, module model, port speed and optical cable length of the optical module connected to each port;

[0009] For each port, the corresponding pre-emphasis parameter group is searched from the preset pre-emphasis parameter database using the manufacturer, model, port rate, and optical cable length of the corresponding optical module as the first joint primary key.

[0010] Reorganize the pre-emphasis parameter groups corresponding to each port into a data structure;

[0011] Create a temporary file and store all the data structures in the temporary file to obtain the pre-emphasis parameter file;

[0012] The pre-emphasis parameter file is sent to the switching chip so that the switching chip can complete the pre-emphasis parameter configuration.

[0013] On the other hand, after searching for the corresponding pre-emphasis parameter group from the preset pre-emphasis parameter database using the corresponding optical module manufacturer, module model, port rate, and optical cable length as the first composite primary key, it also includes:

[0014] If the corresponding pre-emphasis parameter group is not found, the manufacturer, port rate and optical cable length will be used as the second joint primary key to search for the corresponding pre-emphasis parameter group in the preset pre-emphasis parameter database.

[0015] If one and only one set of pre-emphasis parameters is found, then the found set of pre-emphasis parameters will be used as the pre-emphasis parameter set corresponding to the current port.

[0016] If multiple sets of pre-emphasis parameter groups are found, the most similar set of pre-emphasis parameter groups will be selected as the pre-emphasis parameter group corresponding to the current port based on the similarity of the module models.

[0017] After determining the pre-emphasis parameter group corresponding to the current port based on the second composite primary key, the method further includes:

[0018] Adjust the parameter data in the pre-emphasis parameter group according to the module model of the optical module corresponding to the current port.

[0019] On the other hand, after searching for the corresponding pre-emphasis parameter group from a pre-set pre-emphasis parameter database using the manufacturer, port rate, and optical cable length as the second joint primary key, it also includes:

[0020] If the corresponding pre-emphasis parameter group is not found, a fuzzy search will be performed by module model to find the corresponding pre-emphasis parameter group from the preset pre-emphasis parameter database.

[0021] If one and only one set of pre-emphasis parameters is found, then the found set of pre-emphasis parameters will be used as the pre-emphasis parameter set corresponding to the current port.

[0022] If multiple sets of preemphasis parameter groups are found, the most similar set of preemphasis parameter groups will be selected as the preemphasis parameter group corresponding to the current port based on the similarity between the port rate and the optical cable length.

[0023] After performing a fuzzy search based on the module model to find the pre-emphasis parameter group corresponding to the current port, the method also includes:

[0024] The parameter data in the pre-emphasis parameter group are adjusted according to the port rate of the optical module corresponding to the current port and the length of the optical cable.

[0025] On the other hand, after performing a fuzzy search by module model to find the corresponding pre-emphasis parameter group from the preset pre-emphasis parameter database, it also includes:

[0026] If the corresponding pre-emphasis parameter group is not found, the port rate and optical cable length are used as the third joint primary key to search for the corresponding pre-emphasis parameter group from the preset pre-emphasis parameter database.

[0027] If one and only one set of pre-emphasis parameters is found, then the found set of pre-emphasis parameters will be used as the pre-emphasis parameter set corresponding to the current port.

[0028] Based on the manufacturer, module model, port speed, and optical cable length of the current port, determine the value range of each parameter and the amplitude range of the signal waveform generated after configuring the pre-emphasis parameter group;

[0029] Adjust the data of each parameter in the pre-emphasis parameter group found in the query so that the data of each parameter meets the corresponding value range and the amplitude of the generated signal waveform meets the corresponding amplitude range;

[0030] If multiple sets of pre-emphasis parameter groups are found, the value range of each parameter data and the amplitude range generated after the pre-emphasis parameter group is configured are determined according to the manufacturer, module model, port rate and optical cable length of the optical module corresponding to the current port.

[0031] Select a set of pre-emphasis parameters whose data are all within the corresponding value range and can generate the maximum amplitude within the amplitude range as the pre-emphasis parameter set corresponding to the current port.

[0032] On the other hand, after searching for the corresponding pre-emphasis parameter group from the preset pre-emphasis parameter database using port rate and optical cable length as the third joint primary key, it also includes:

[0033] If no corresponding pre-emphasis parameter group is found, the preset default pre-emphasis parameter group will be obtained.

[0034] Based on the manufacturer, model, port speed, and fiber optic cable length of the optical module corresponding to the current port, determine the value range of each parameter and the amplitude range of the signal waveform generated after configuring the pre-emphasis parameter group;

[0035] Adjust the data of each parameter in the default pre-emphasis parameter group so that each parameter data meets the corresponding value range and the amplitude of the generated signal waveform meets the corresponding amplitude range;

[0036] Use the adjusted default pre-emphasis parameter group as the pre-emphasis parameter group corresponding to the current port.

[0037] On the other hand, based on the manufacturer, model, port rate, and fiber optic cable length of the optical module corresponding to the current port, the value range of each parameter is determined, as well as the amplitude range of the signal waveform generated after the pre-emphasis parameter group is configured, including:

[0038] Input the manufacturer, model, port rate, and optical cable length of the optical module corresponding to the current port into the pre-established pre-emphasis parameter prediction model to obtain the range of values ​​and amplitude range of the pre-emphasis parameter prediction model output.

[0039] The preemphasis parameter prediction model is a machine learning model trained on a standard preemphasis parameter dataset.

[0040] On the other hand, before reading the data from the electrically erasable programmable read-only memory of the optical modules inserted at each port, the process also includes:

[0041] A port presence detection command is issued to the field-programmable gate array (FPGA) so that the FPGA can poll each port for optical module access through the monitoring link established between the FPGA and each port; wherein, the monitoring link between the FPGA and each port is established by a complex programmable logic device.

[0042] Obtain the in-situ polling results returned by the field-programmable gate array, and determine the ports that are not connected to the optical module based on the in-situ polling results;

[0043] The preset default pre-emphasis parameter group is used as the pre-emphasis parameter group for ports without an inserted optical module.

[0044] On the other hand, it also includes:

[0045] Upon receiving a pre-emphasis parameter database update instruction, verify whether the sender's identity key is correct; if not, terminate this method.

[0046] If the identity key is correct, determine whether the sender of the verification command has modification permission based on the identity key; if not, end this method.

[0047] If modification permissions are granted, the pre-emphasis parameter database update command is parsed to obtain the target pre-emphasis parameter group, as well as the corresponding manufacturer, module model, port rate, and optical cable length.

[0048] Perform format and bit depth checks on the data of each parameter in the target pre-emphasis parameter group. If either format or bit depth check fails, the method ends.

[0049] If both format verification and bit verification pass, then search the pre-emphasis parameter database to see if a corresponding set of pre-emphasis parameters already exists, based on the manufacturer, model, port rate, and fiber optic cable length of the corresponding optical module.

[0050] If it does not exist, add the target pre-emphasis parameter group to the pre-emphasis parameter database;

[0051] If it exists, the found preemphasis parameter set is updated according to the target preemphasis parameter set.

[0052] To address the aforementioned technical problems, the present invention also provides a pre-emphasis configuration device for a switch chip, comprising:

[0053] The read module is used to read data from the electrically erasable programmable read-only memory of the optical modules inserted into each port;

[0054] The parsing module is used to parse the data of the electrically erasable programmable read-only memory to obtain the manufacturer, module model, port speed and optical cable length of the optical module connected to each port;

[0055] The retrieval module is used to search for the corresponding pre-emphasis parameter group from the preset pre-emphasis parameter database for each port, using the manufacturer, model, port rate and optical cable length of the corresponding optical module as the first joint primary key.

[0056] The reorganization module is used to reorganize the pre-emphasis parameter groups corresponding to each port into a data structure;

[0057] The integration module is used to create temporary files and store all data structures in the temporary files to obtain the pre-emphasis parameter file;

[0058] The configuration module is used to send the pre-emphasis parameter file to the switching chip so that the switching chip can complete the pre-emphasis parameter configuration.

[0059] To address the aforementioned technical problems, the present invention also provides a pre-emphasis configuration device for a switch chip, comprising:

[0060] Memory, used to store computer programs;

[0061] A processor is used to implement the steps of the pre-emphasis configuration method for a switch chip as described above when executing a computer program.

[0062] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the pre-emphasis configuration method for a switch chip as described above.

[0063] This invention provides a method for pre-emphasis configuration of a switch chip. By acquiring various parameters of the optical modules accessing each port, the method searches for the corresponding pre-emphasis parameter group from a pre-established pre-emphasis parameter database, thereby configuring the pre-emphasis parameters of the switch chip. This solution can be fully automated, requiring no manual intervention, thus avoiding configuration errors caused by human factors. It also improves the efficiency and timeliness of pre-emphasis parameter configuration for the switch chip, enabling the switch to enter operational status more quickly and effectively improving development efficiency.

[0064] The switch chip pre-emphasis configuration device and computer-readable storage medium provided by the present invention correspond to the above method and have the same effect. Attached Figure Description

[0065] To more clearly illustrate the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0066] Figure 1 This is a hardware topology diagram of a common switch.

[0067] Figure 2 A flowchart of a pre-emphasis configuration method for a switch chip provided by the present invention;

[0068] Figure 3 A flowchart of a pre-emphasis configuration method provided by the present invention;

[0069] Figure 4 A flowchart of a pre-emphasis parameter database update method provided by the present invention;

[0070] Figure 5 A structural diagram of a pre-emphasis configuration device for a switch chip provided by the present invention;

[0071] Figure 6 This is a structural diagram of another pre-emphasis configuration device for a switch chip provided by the present invention. Detailed Implementation

[0072] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present invention.

[0073] The core of this invention is to provide a method, apparatus, and medium for pre-emphasis configuration of a switch chip.

[0074] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0075] Currently, a common switch chip architecture topology is shown in the diagram below. Figure 1 As shown, it includes: a central processing unit (CPU), a switching chip, optical modules (ELOAD / AOC) 1-6, a field-programmable gate array (FPGA), and complex programmable logic devices (CPLD) 1 and 2.

[0076] It should be noted that, Figure 1 The topology of only a portion of the ports is shown; the topology of more ports is similar.

[0077] The CPU, switching chip, and FPGA are connected via a bus for data communication. This bus must support bidirectional, high-speed data transmission, specifically a high-speed serial computer interconnection express (PCIE) standard. Communication between the switching chip and each optical module can be achieved using a serializer / deserializer, or SerDes. SerDes is a time-division multiplexing serial communication technology that converts low-speed parallel signals from multiple optical modules into high-speed serial signals for transmission to the switching chip. The FPGA has communication connections with each optical module, allowing the FPGA to directly read data from the optical modules, forming a data link between the FPGA and the optical modules (i.e.,...). Figure 1 Links B1 to B6 in the optical module (using a multiplexer can save FPGA ports); and there is also a monitoring link between the FPGA and each optical module, which is implemented through a CPLD (i.e., Figure 1 The data volume between the FPGA, CPLD and optical module is generally not large, but the data transmission direction is not fixed. Generally, the I2C bus (a bidirectional two-wire synchronous serial bus) can meet the communication requirements.

[0078] Based on the above architecture topology, it is clear that since the switch has multiple ports, the models and specifications of the optical modules connected to each port are different, and the pre-emphasis parameters required by different optical modules are also not entirely the same. Therefore, for such complex parameter configuration scenarios, the current main approach is still to manually configure the pre-emphasis parameters of the switch chips. This method is not only difficult to implement, but also inevitably suffers from problems such as poor configuration timeliness and frequent errors due to human factors.

[0079] Therefore, to solve the above problems, the present invention provides a method for pre-emphasis configuration of a switch chip, such as... Figure 2 As shown, it includes:

[0080] S11: Read the data from the electrically erasable programmable read-only memory of each optical module inserted into the port;

[0081] S12: Analyze the data of the electrically erasable programmable read-only memory to obtain the manufacturer, module model, port rate and optical cable length of the optical module connected to each port;

[0082] S13: For each port, using the manufacturer, model, port rate and optical cable length of the corresponding optical module as the first joint primary key, search for the corresponding pre-emphasis parameter group from the preset pre-emphasis parameter database;

[0083] S14: Reorganize the pre-emphasis parameter groups corresponding to each port into a data structure;

[0084] S15: Create a temporary file and store all data structures in the temporary file to obtain the pre-emphasis parameter file;

[0085] S16: Send the pre-emphasis parameter file to the switching chip so that the switching chip can complete the pre-emphasis parameter configuration.

[0086] Regarding this method Figure 1 In the architecture shown, the application and method can be executed by the CPU. Furthermore, this embodiment also provides a possible implementation where the above method is deployed virtualized on the CPU in the form of an application container engine (Docker) to implement the pre-emphasis configuration method. Since the purpose of this method is to achieve automatic configuration of the pre-emphasis parameters of the switching chip, applying it to the CPU extends the CPU's functionality. Therefore, using a virtualized deployment method can effectively avoid affecting the original functions of the CPU and better ensure the stability of the switch operation.

[0087] Specifically, for step S11, the FPGA can first obtain the electrically erasable programmable read-only memory (EEPROM) data of each optical module through the I2C bus; then the FPGA sends the EEPROM data to the CPU through the PCIe bus between the FPGA and the CPU; finally, the Docker deployed in the CPU obtains the EEPROM data through a low-speed link.

[0088] It should be noted that in the application scenario of this embodiment, each port is uniquely connected to one optical module (there are also cases where no optical module is connected to a port, which will be explained in detail later). Therefore, there is a one-to-one correspondence between the port and the optical module. Thus, if "pre-emphasis parameter group corresponding to the port" and "pre-emphasis parameter group corresponding to the optical module" are mentioned in the following description, they have the same meaning.

[0089] In addition, when acquiring EEPROM data from each port, a strategy of multiple acquisitions can be adopted. That is, if the acquisition of EEPROM data fails, the acquisition is repeated until the acquisition is successful or the number of repeated acquisitions reaches a preset threshold (usually 3 times).

[0090] Next, step S12 is performed to parse the acquired EEPROM data and obtain the optical module parameters required for subsequent steps. The optical module parameters mentioned above include, but are not limited to, the manufacturer, module model, port rate, and optical cable length.

[0091] Similarly, during the parsing of EEPROM data in step S12, the parameters of each optical module obtained from the parsing can also be verified. Verification can be performed as needed, including format verification and data bit verification, to determine if the optical module parameters are valid. If the verification of the parsed EEPROM data fails, the process can return to step S11 for re-acquisition and parsing to avoid interference from physical links and environmental factors. The maximum number of retries can also be set to 3.

[0092] Furthermore, this embodiment also provides a preferred implementation: if the correct optical module parameters cannot be resolved after multiple retries (i.e., when the number of retries equals the threshold), it indicates that the optical module connected to the port may be faulty; the port index and fault log of the faulty port can be reported to the data management center, and the port device can be set to unavailable; subsequently, when configuring the pre-emphasis parameters for the port, it can be regarded as a port without an optical module connected for pre-emphasis parameter configuration.

[0093] Furthermore, after obtaining the optical module parameters, this embodiment also provides a preferred implementation: by using pre-established conversion rules, each optical module parameter is converted into a unique corresponding integer (INT) data. For example, "Manufacturer A" is converted into integer data "1", "Manufacturer A" is converted into integer data "2", and so on. This simplifies the parameters of each optical module, thereby improving the efficiency of subsequent queries of pre-emphasis parameter groups based on the optical module parameters.

[0094] For step S13, after obtaining the optical module parameters corresponding to each port (optical module), the corresponding pre-emphasis parameter group can be matched from the pre-established pre-emphasis parameter database. Specifically, this step uses the obtained optical module parameters as a composite primary key to obtain the pre-emphasis parameter group that completely matches the current optical module. After obtaining the pre-emphasis parameter group for each port by repeating step S13, the process proceeds to step S14.

[0095] For step S14, after obtaining the pre-emphasis parameter group for each port, it needs to be sent to the switching chip to complete the configuration. Specifically, step S14 reassembles the pre-emphasis parameter group corresponding to each port obtained in the above steps and converts it into a data structure of a specific format. The format of the data structure is determined according to the parsing needs of the switching chip, and generally a JavaScript Object Notation (JSON) format data structure can be used.

[0096] For step S15, after the reorganization of the pre-emphasis parameter groups of each port is completed, the reorganized data structures are stored in a pre-established temporary file to obtain the pre-emphasis parameter file that needs to be sent to the switching chip.

[0097] Furthermore, for step S16, it can be achieved through the above... Figure 1 In the architecture shown, the PCIe bus between the CPU and the switching chip sends the pre-emphasis parameter file to the switching chip. After receiving the pre-emphasis parameter file, the switching chip parses it to obtain the data structure corresponding to each port, and then parses the data structure to obtain the pre-emphasis parameter group corresponding to each port, thus completing the pre-emphasis parameter configuration of the switching chip.

[0098] The pre-emphasis configuration method for a switch chip provided by this invention can determine the relationship between a port and its corresponding pre-emphasis parameter group by acquiring various optical module parameters of the optical modules accessing each port. Furthermore, it can pre-establish pre-emphasis parameter groups corresponding to different combinations of manufacturers, models, port speeds, and optical cable lengths, and match and call them when needed, overcoming the complex problem of different ports requiring different pre-emphasis parameter groups. This solution can be implemented entirely by machine without manual intervention and without changing the existing switch architecture. It is simple to implement, highly efficient, and timely, enabling the switch to enter working condition more quickly and well adapting to the pre-emphasis parameter configuration needs of actual switch application scenarios.

[0099] On the other hand, in practical applications, the retrieval and matching performed in step S13 above may fail to find a corresponding pre-emphasis parameter group in the pre-emphasis parameter database, resulting in a matching failure. In this case, it is simple to skip configuring the pre-emphasis parameters for that port. However, this embodiment also provides a compensation retrieval scheme for this situation, and the steps following step S13 above include:

[0100] S21: If the corresponding pre-emphasis parameter group is not found, the manufacturer, port rate and optical cable length are used as the second joint primary key to search for the corresponding pre-emphasis parameter group from the preset pre-emphasis parameter database.

[0101] S22: If one and only one set of pre-emphasis parameter groups is found, then the found set of pre-emphasis parameter groups will be used as the pre-emphasis parameter group corresponding to the current port.

[0102] S23: If multiple sets of pre-emphasis parameter groups are found, the most similar set of pre-emphasis parameter groups will be selected as the pre-emphasis parameter group corresponding to the current port based on the similarity of the module models.

[0103] After determining the pre-emphasis parameter group corresponding to the port in the above steps, the method also includes:

[0104] S24: Adjust the parameter data in the pre-emphasis parameter group according to the module model of the optical module corresponding to the current port.

[0105] That is, step S13 above is the first matching process of the pre-emphasis parameters, while steps S21 to S23 provided in this embodiment are the second matching process of the pre-emphasis parameters after the first matching process fails. Compared with the first matching, the matching conditions are relaxed in the second matching, that is, the module model of the optical module is no longer included in the joint primary key.

[0106] If a set of pre-emphasis parameters is found, it will be directly used as the pre-emphasis parameter set for the current port. If multiple sets of pre-emphasis parameter sets are found, a similarity calculation needs to be performed between the found module model and the module model of the current port, and the set of pre-emphasis parameters with the highest similarity will be selected as the pre-emphasis parameter set for the current port.

[0107] Furthermore, as can be easily understood from the above description, the module model is an important parameter of the optical module, and different models of optical modules often correspond to different pre-emphasis parameters. Therefore, this embodiment further adjusts the retrieved pre-emphasis parameter group by adjusting the retrieved pre-emphasis parameter group based on the module model of the current port to determine the final pre-emphasis parameter group used for the port configuration.

[0108] Similarly, based on the second matching provided in the above embodiments, this embodiment also provides a third matching scheme. After step S21 above, this method further includes:

[0109] S31: If the corresponding pre-emphasis parameter group is not found, a fuzzy search is performed by module model to find the corresponding pre-emphasis parameter group from the preset pre-emphasis parameter database.

[0110] S32: If one and only one set of pre-emphasis parameter groups is found, then the found set of pre-emphasis parameter groups will be used as the pre-emphasis parameter group corresponding to the current port.

[0111] S33: If multiple sets of preemphasis parameter groups are found, the most similar set of preemphasis parameter groups is selected as the preemphasis parameter group corresponding to the current port based on the similarity between the port rate and the optical cable length.

[0112] After determining the pre-emphasis parameter group corresponding to the port in the above steps, the method also includes:

[0113] S34: Adjust the parameter data in the pre-emphasis parameter group according to the port rate of the optical module corresponding to the current port and the length of the optical cable.

[0114] Similar to the above embodiments, the third matching of pre-emphasis parameter groups provided in this embodiment further relaxes the matching conditions based on the second matching. It performs a fuzzy search only by module model to find pre-emphasis parameter groups with similar module models in the pre-emphasis parameter database.

[0115] Similarly, if only one set of pre-emphasis parameters is found, it is directly used as the pre-emphasis parameter set corresponding to the current port. If multiple sets of pre-emphasis parameter sets are found, the set with the closest similarity based on the module model is selected as the pre-emphasis parameter set corresponding to the current port.

[0116] After determining the pre-emphasis parameter group for the current port, further adjustments to the pre-emphasis parameter group are required. Specifically, the parameters in the pre-emphasis parameter group are adjusted according to the port speed and optical cable length to meet the configuration requirements of the current port.

[0117] Furthermore, this embodiment also provides a fourth matching scheme based on the third matching scheme of the pre-emphasis parameter group provided above. After step S31 above, this method further includes:

[0118] S41: If no corresponding pre-emphasis parameter group is found, the port rate and optical cable length are used as the third joint primary key to search for the corresponding pre-emphasis parameter group in the preset pre-emphasis parameter database; if only one pre-emphasis parameter group is found, proceed to step S42; if multiple pre-emphasis parameter groups are found, proceed to step S45.

[0119] S42: Use the queried set of preemphasis parameters as the preemphasis parameter set corresponding to the current port;

[0120] S43: Determine the value range of each parameter data and the amplitude range of the signal waveform generated after configuring the pre-emphasis parameter group based on the manufacturer, module model, port speed and optical cable length corresponding to the current port.

[0121] S44: Adjust the data of each parameter in the pre-emphasis parameter group found in the query so that the data of each parameter meets the corresponding value range and the amplitude of the generated signal waveform meets the corresponding amplitude range;

[0122] S45: Determine the value range of each parameter based on the manufacturer, module model, port rate, and optical cable length of the optical module corresponding to the current port, as well as the amplitude range generated after the pre-emphasis parameter group is configured;

[0123] S46: Select a set of pre-emphasis parameters whose data are all within the corresponding value range and can generate the maximum amplitude within the amplitude range as the pre-emphasis parameter set corresponding to the current port.

[0124] In the fourth matching process provided in this embodiment, the matching conditions for the query are further relaxed, and only the port rate and optical cable length corresponding to the current port are retained as the joint primary key for querying the pre-emphasis parameter database.

[0125] If only one set of pre-emphasis parameters is found, it will be directly used as the pre-emphasis parameter set for the current port. However, further adjustments to this pre-emphasis parameter set are needed. Since the current situation indicates that the found pre-emphasis parameter set differs significantly from the one required for the current port, this adjustment is more complex than those in previous matching processes, specifically including:

[0126] First, based on the optical module parameters corresponding to the current port (manufacturer, module model, port speed, and optical cable length), determine the value range of each pre-emphasis parameter and the amplitude range of the output waveform of the switching chip when the pre-emphasis parameters are configured correctly. Then, adjust the parameter data in the queried pre-emphasis parameter group according to the corresponding value range until the values ​​fall within the range. After that, input the adjusted pre-emphasis parameter group into the switching chip, and then detect the output waveform of the switching chip to determine whether the waveform amplitude is also within the allowed amplitude range. If yes, the adjustment is complete; otherwise, return to the adjustment steps of each parameter data in the pre-emphasis parameter group until the waveform amplitude falls within the corresponding amplitude range.

[0127] In addition, if multiple sets of pre-emphasis parameters are found, the best option needs to be selected. The specific process is as follows:

[0128] Similar to the above method of finding only one set of pre-emphasis parameters, it is also necessary to determine the value range of each pre-emphasis parameter and the amplitude range of the output waveform of the switching chip when the pre-emphasis parameters are correctly configured, based on the optical module parameters corresponding to the current port. Then, the parameter data of each set of pre-emphasis parameters is adjusted so that they all fall within the allowed value range. Then, each set of adjusted pre-emphasis parameters is sent to the switching chip to detect the corresponding output waveform. First, all pre-emphasis parameter sets whose waveform amplitude is outside the allowed amplitude range are excluded. From all output waveforms whose waveform amplitude falls within the amplitude range, the output waveform with the largest amplitude is selected. The pre-emphasis parameter set corresponding to this waveform is the set of pre-emphasis parameters for the current port determined in this embodiment. Since the previous process has already determined that the pre-emphasis parameter set satisfies that each parameter data falls within the corresponding value range and the amplitude of the output waveform is within the amplitude range, no further adjustment is required.

[0129] Furthermore, if no pre-emphasis parameter group corresponding to the current port is found in the fourth matching provided in the above embodiment, it indicates that the pre-emphasis parameter groups stored in the pre-emphasis parameter database are significantly different from those required by the current port, and cannot be satisfied by simple adjustments. To address this scenario, this embodiment further provides a scheme for determining the pre-emphasis parameter group. After step S41 above, this method further includes:

[0130] S51: If no corresponding pre-emphasis parameter group is found, the preset default pre-emphasis parameter group is obtained;

[0131] S52: Based on the manufacturer, model, port rate, and fiber optic cable length of the optical module corresponding to the current port, determine the value range of each parameter and the amplitude range of the signal waveform generated after configuring the pre-emphasis parameter group;

[0132] S53: Adjust the data of each parameter in the default pre-emphasis parameter group so that the data of each parameter meets the corresponding value range and the amplitude of the generated signal waveform meets the corresponding amplitude range;

[0133] S54: Use the adjusted default preemphasis parameter group as the preemphasis parameter group corresponding to the current port.

[0134] In other words, when no pre-emphasis parameter group similar to the current port requirement can be found in the pre-emphasis parameter database in this embodiment, the preset default pre-emphasis parameter group is used. Based on the current port's requirements (i.e., the pre-emphasis parameter requirements related to the optical module manufacturer, module model, port speed, and optical cable length), the parameter data in the default pre-emphasis parameter group is adjusted to meet the current port's pre-emphasis parameter configuration needs. The specific adjustment scheme is the same as the parameter adjustment scheme in the fourth matching process of the above embodiment when only one pre-emphasis parameter group is found, and will not be repeated in this embodiment.

[0135] Based on this embodiment and the embodiments described above, it can be seen that, building upon step S13, each matching process can resolve the issue of not finding a matching pre-emphasis parameter group from the pre-emphasis parameter database in the previous matching stage. This ensures that the current port is configured without a pre-emphasis parameter group, guarantees the reliability of the switching chip's pre-emphasis parameter configuration, reduces the possibility of manual configuration, and further improves the automation level of the entire configuration process.

[0136] On the other hand, the above embodiments do not limit how to determine the value range of each pre-emphasis parameter and the amplitude range of the generated signal waveform based on the optical module parameters. These can be determined based on the experience of technical personnel, or by informing technical personnel through alarms, notifications, etc. However, the implementation of the above solutions all rely on the experience of technical personnel, which is difficult to implement and does not conform to the original intention of this invention to eliminate the dependence on manual configuration of pre-emphasis parameters.

[0137] Therefore, this embodiment also provides a possible implementation scheme. In the above method, the steps of determining the value range of each parameter data and the amplitude range of the signal waveform generated after configuring the pre-emphasis parameter group according to the manufacturer, module model, port rate, and optical cable length of the optical module corresponding to the current port are as follows:

[0138] Input the manufacturer, model, port rate, and optical cable length of the optical module corresponding to the current port into the pre-established pre-emphasis parameter prediction model to obtain the range of values ​​and amplitude range of the pre-emphasis parameter prediction model output.

[0139] The preemphasis parameter prediction model is a machine learning model trained on a standard dataset of preemphasis parameters. It should be noted that this embodiment does not restrict the specific type of machine learning model used, and a suitable machine learning model can be freely selected according to actual needs.

[0140] Based on the preferred solution provided in this embodiment, a machine learning model can be pre-established to predict the value range of the pre-emphasis parameters and the amplitude range of the corresponding output signal waveform. This satisfies the above-mentioned adjustment needs of the queried pre-emphasis parameter group, without relying on the experience of technical personnel. The implementation is simple and also helps to improve the efficiency of the pre-emphasis parameter configuration of the switching chip.

[0141] On the other hand, as can be seen from the above embodiments, this method matches the pre-emphasis parameters based on reading the optical module parameters of the port connected to the optical module. However, the above description also clarifies that in actual applications, some ports are not connected to optical modules. Therefore, the pre-emphasis parameter configuration method of the above embodiments is no longer applicable to these ports that are not connected to optical modules. To address this, this embodiment provides a possible implementation scheme, in which the method further includes the following step before step S11:

[0142] S61: Issue a port presence detection command to the field programmable gate array (FPGA) so that the FPGA can poll each port for optical module access through the monitoring link established with each port.

[0143] Among them, the monitoring link between the field-programmable gate array and each port is established by complex programmable logic devices;

[0144] S62: Obtain the in-situ polling results returned by the field-programmable gate array, and determine the ports that are not connected to the optical module based on the in-situ polling results;

[0145] S63: Use the preset default pre-emphasis parameter group as the pre-emphasis parameter group for ports without inserted optical modules.

[0146] Specifically, in Figure 1 In the architecture shown, Docker, which runs on the CPU, sends corresponding instructions to the FPGA. The FPGA uses the monitoring link (A1 to A6) established through the CPLD with the optical module to detect whether the optical module is in place at each port. All ports that are not in place are ports that have not been connected to the optical module (including ports that have not obtained valid optical module parameters after reaching the preset number of retries in the above embodiment). The default pre-emphasis parameter group is used for configuration.

[0147] The pre-emphasis parameter group determination scheme provided in this embodiment and the above embodiments can cover most port situations of the switching chip (optical module in place and normal, optical module in place but faulty, optical module not in place), so as to determine the pre-emphasis parameter group for each port, and thus realize the pre-emphasis parameter configuration of the switching chip. The overall process is as follows: Figure 3 As shown:

[0148] First, determine if the optical modules at each port are present. If not, use the default pre-emphasis parameter group. If present, read the parameter data (EEPROM data) of the inserted optical modules at the port. Parse the EEPROM data to obtain the manufacturer, model, port speed, and optical cable length. Verify the validity of each optical module parameter. If valid, perform the first matching based on the optical module parameters. If invalid, return to the steps for obtaining each optical module parameter. At this point, if the first matching finds a corresponding pre-emphasis parameter group, use it as the pre-emphasis parameter group for the current port. If the first matching does not find a corresponding pre-emphasis parameter group, perform a second matching. If the second matching finds a corresponding pre-emphasis parameter group, adjust the found pre-emphasis parameter group according to the optical module parameters (the adjustment scheme varies depending on the matching stage) and use it as the pre-emphasis parameter group for the current port. If the second matching does not find a corresponding pre-emphasis parameter group... If a pre-emphasis parameter group is not found in the first match, a third match is performed. If a corresponding pre-emphasis parameter group is found in the third match, the found pre-emphasis parameter group is adjusted according to the optical module parameters and used as the pre-emphasis parameter group for the current port. If no corresponding pre-emphasis parameter group is found in the third match, a fourth match is performed. If a corresponding pre-emphasis parameter group is found in the fourth match, the found pre-emphasis parameter group is adjusted according to the optical module parameters and used as the pre-emphasis parameter group for the current port. If no corresponding pre-emphasis parameter group is found in the fourth match, the pre-emphasis parameter group corresponding to the current port is calculated based on the optical module parameters and the default pre-emphasis parameter group. Once a corresponding pre-emphasis parameter group is determined for each port, each pre-emphasis parameter group is reorganized into a data structure. All data structures are then combined into a single pre-emphasis parameter file and sent to the switching chip for pre-emphasis parameter configuration. At this point, the entire configuration process is complete.

[0149] On the other hand, regarding the pre-emphasis parameter database mentioned in the above embodiments, this embodiment also provides a preferred implementation scheme, wherein the above method further includes:

[0150] S71: Upon receiving the pre-emphasis parameter database update instruction, verify whether the identity key of the instruction sender is correct. If it is incorrect, end this method.

[0151] S72: If the identity key is correct, determine whether the sender of the verification instruction has modification permission based on the identity key; if not, end this method.

[0152] S73: If modification permission is granted, the pre-emphasis parameter database update command is parsed to obtain the target pre-emphasis parameter group, as well as the manufacturer, module model, port rate, and optical cable length corresponding to the target pre-emphasis parameter group.

[0153] S74: Perform format verification and bit verification on the data of each parameter in the target pre-emphasis parameter group. If either format verification or bit verification fails, this method ends.

[0154] S75: If both format verification and bit verification pass, then search the pre-emphasis parameter database to see if a corresponding set of pre-emphasis parameters already exists, based on the manufacturer, model, port rate, and fiber optic cable length of the corresponding optical module.

[0155] S76: If it does not exist, add the target pre-emphasis parameter group to the pre-emphasis parameter database;

[0156] S77: If it exists, update the found preemphasis parameter group according to the target preemphasis parameter group.

[0157] As can be seen from the above, this embodiment provides a scheme for updating the pre-emphasis parameter database, the process of which is as follows: Figure 4 As shown:

[0158] After a user enters a new pre-emphasis parameter group into the pre-emphasis parameter database, the system first verifies the identity and permissions of the user. If any verification fails, the update is rejected. After all verifications pass, the system then verifies the validity of each entered pre-emphasis parameter. If invalid, the update is rejected. Validity verification can include format verification and data verification. Once all pre-emphasis parameters are verified as valid, the system queries the current pre-emphasis parameter database to see if a corresponding pre-emphasis parameter group already exists based on the optical module parameters. If it exists, the system replaces the existing pre-emphasis parameter group in the database with the entered pre-emphasis parameter group, completing the update. If it does not exist, the system directly adds the entered pre-emphasis parameter group to the database to complete the update.

[0159] Based on the pre-emphasis parameter database update scheme provided in this embodiment, the pre-emphasis parameter database becomes more and more complete over time, and the amount of pre-emphasis parameter data that needs to be added or optimized becomes smaller and smaller. As a result, for each port, the corresponding pre-emphasis parameter group can be obtained in the earlier matching query process, and the pre-emphasis parameter group can be adjusted to a small size or even not at all, thereby effectively improving configuration efficiency.

[0160] In the above embodiments, a method for pre-emphasis configuration of a switch chip has been described in detail. The present invention also provides an embodiment corresponding to a device for pre-emphasis configuration of a switch chip. It should be noted that the present invention describes the device embodiment from two perspectives: one based on functional modules, and the other based on hardware.

[0161] From the perspective of functional modules, this embodiment provides a pre-emphasis configuration device for a switch chip, such as... Figure 5 As shown, it includes:

[0162] Reading module 11 is used to read the data of the electrically erasable programmable read-only memory of the optical modules inserted at each port;

[0163] The parsing module 12 is used to parse the data of the electrically erasable programmable read-only memory to obtain the manufacturer, module model, port rate and optical cable length of the optical module connected to each port;

[0164] The retrieval module 13 is used to search for the corresponding pre-emphasis parameter group from the preset pre-emphasis parameter database for each port, using the manufacturer, model, port rate and optical cable length of the corresponding optical module as the first joint primary key.

[0165] Reassembly module 14 is used to reassemble the pre-emphasis parameter groups corresponding to each port into a data structure;

[0166] Integration module 15 is used to create a temporary file and store all data structures in the temporary file to obtain the pre-emphasis parameter file;

[0167] Configuration module 16 is used to send the pre-emphasis parameter file to the switching chip so that the switching chip can complete the pre-emphasis parameter configuration.

[0168] Since the embodiments of the apparatus and the embodiments of the method correspond to each other, please refer to the description of the embodiments of the method for the embodiments of the apparatus, which will not be repeated here.

[0169] Figure 6 A structural diagram of a pre-emphasis configuration device for a switch chip provided in another embodiment of the present invention is shown below. Figure 6 As shown, a pre-emphasis configuration device for a switch chip includes: a memory 20 for storing computer programs;

[0170] The processor 21 is used to execute a computer program to implement the steps of a pre-emphasis configuration method for a switch chip as described in the above embodiment.

[0171] The pre-emphasis configuration device for a switch chip provided in this embodiment can include, but is not limited to, mobile terminals, personal computers, workstations, etc.

[0172] The processor 21 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 21 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 21 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.

[0173] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 20 is used to store at least the following computer program 201, which, after being loaded and executed by the processor 21, is capable of implementing the relevant steps of a pre-emphasis configuration method for a switch chip disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, and the storage method may be temporary or permanent storage. The operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, a pre-emphasis configuration method for a switch chip.

[0174] In some embodiments, a switch chip pre-emphasis configuration device may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.

[0175] Those skilled in the art will understand that Figure 6 The structure shown does not constitute a limitation on a pre-emphasis configuration device for a switch chip and may include more or fewer components than shown.

[0176] The present invention provides a pre-emphasis configuration device for a switch chip, comprising a memory and a processor. When the processor executes a program stored in the memory, it can implement the following method: a pre-emphasis configuration method for a switch chip.

[0177] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, performs the steps described in the above method embodiments.

[0178] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0179] The foregoing has provided a detailed description of a pre-emphasis configuration method, apparatus, and medium for a switch chip provided by the present invention. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make various improvements and modifications to the present invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

[0180] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A method for pre-emphasis configuration of a switch chip, characterized in that, include: Read data from the electrically erasable programmable read-only memory of each optical module inserted into the port; The data of the electrically erasable programmable read-only memory is parsed to obtain the manufacturer, module model, port rate and optical cable length of the optical module connected to each port; For each port, the corresponding pre-emphasis parameter group is searched from a preset pre-emphasis parameter database using the manufacturer, module model, port rate, and optical cable length of the corresponding optical module as the first joint primary key. The pre-emphasis parameter groups corresponding to each of the ports are reorganized into a data structure; Create a temporary file and store all the data structures in the temporary file to obtain the pre-emphasis parameter file; The pre-emphasis parameter file is sent to the switching chip so that the switching chip can complete the pre-emphasis parameter configuration.

2. The pre-emphasis configuration method for switch switching chips according to claim 1, characterized in that, After searching for the corresponding pre-emphasis parameter group from a preset pre-emphasis parameter database using the manufacturer, module model, port rate, and optical cable length of the corresponding optical module as the first joint primary key, the method further includes: If the corresponding pre-emphasis parameter group is not found, the manufacturer, the port rate and the optical cable length are used as the second joint primary key to search for the corresponding pre-emphasis parameter group in the preset pre-emphasis parameter database. If one and only one set of the pre-emphasis parameter groups is found, then the found set of the pre-emphasis parameter groups will be used as the pre-emphasis parameter group corresponding to the current port. If multiple sets of the pre-emphasis parameter groups are found, the most similar set of the pre-emphasis parameter groups is selected as the pre-emphasis parameter group corresponding to the current port based on the similarity of the module models. After determining the pre-emphasis parameter group corresponding to the current port based on the second composite primary key, the method further includes: The parameter data in the pre-emphasis parameter group are adjusted according to the module model of the optical module corresponding to the current port.

3. The pre-emphasis configuration method for switch chips according to claim 2, characterized in that, After searching for the corresponding pre-emphasis parameter group from a preset pre-emphasis parameter database using the manufacturer, port rate, and optical cable length as the second joint primary key, the method further includes: If the corresponding pre-emphasis parameter group is not found, a fuzzy search is performed using the module model to find the corresponding pre-emphasis parameter group from the preset pre-emphasis parameter database. If one and only one set of the pre-emphasis parameter groups is found, then the found set of the pre-emphasis parameter groups will be used as the pre-emphasis parameter group corresponding to the current port. If multiple sets of the pre-emphasis parameter groups are found, the most similar set of the pre-emphasis parameter groups is selected as the pre-emphasis parameter group corresponding to the current port based on the similarity between the port rate and the optical cable length. After performing a fuzzy search based on the module model to find the pre-emphasis parameter group corresponding to the current port, the method further includes: The parameter data in the pre-emphasis parameter group are adjusted according to the port rate of the optical module corresponding to the current port and the length of the optical cable.

4. The pre-emphasis configuration method for switch switching chips according to claim 3, characterized in that, After performing a fuzzy search by the module model to find the corresponding pre-emphasis parameter group from a preset pre-emphasis parameter database, the method further includes: If the corresponding pre-emphasis parameter group is not found, the port rate and the optical cable length are used as the third joint primary key to search for the corresponding pre-emphasis parameter group from the preset pre-emphasis parameter database. If one and only one set of the pre-emphasis parameter groups is found, then the found set of the pre-emphasis parameter groups will be used as the pre-emphasis parameter group corresponding to the current port. Based on the manufacturer, module model, port speed, and optical cable length corresponding to the current port, determine the value range of each parameter data, as well as the amplitude range of the signal waveform generated after the pre-emphasis parameter group is configured; The parameter data in the pre-emphasis parameter group are adjusted so that each parameter data meets the corresponding value range and the amplitude of the generated signal waveform meets the corresponding amplitude range. If multiple sets of the pre-emphasis parameter groups are found, the value range of each parameter data and the amplitude range generated after the pre-emphasis parameter group is configured are determined according to the manufacturer, module model, port rate and optical cable length of the optical module corresponding to the current port. A set of pre-emphasis parameters is selected where all the parameter data are within the corresponding value range and can generate the maximum amplitude within the amplitude range, as the pre-emphasis parameter set corresponding to the current port.

5. The pre-emphasis configuration method for switch switching chips according to claim 4, characterized in that, After searching for the corresponding pre-emphasis parameter group from a preset pre-emphasis parameter database using the port rate and the optical cable length as the third joint primary key, the method further includes: If the corresponding pre-emphasis parameter group is not found, the preset default pre-emphasis parameter group is obtained; Based on the manufacturer, module model, port rate, and optical cable length of the optical module corresponding to the current port, determine the value range of each parameter data and the amplitude range of the signal waveform generated after the pre-emphasis parameter group is configured; The parameter data in the default pre-emphasis parameter group are adjusted so that each parameter data meets the corresponding value range and the amplitude of the generated signal waveform meets the corresponding amplitude range. The adjusted default pre-emphasis parameter group is used as the pre-emphasis parameter group corresponding to the current port.

6. The pre-emphasis configuration method for switch switching chips according to claim 4 or 5, characterized in that, Based on the manufacturer, module model, port rate, and optical cable length of the optical module corresponding to the current port, the value range of each parameter data is determined, and the amplitude range of the signal waveform generated after the pre-emphasis parameter group is configured includes: The manufacturer, module model, port rate, and optical cable length of the optical module corresponding to the current port are input into a pre-established pre-emphasis parameter prediction model to obtain the value range and amplitude range output by the pre-emphasis parameter prediction model. The preemphasis parameter prediction model is a machine learning model trained based on a standard preemphasis parameter dataset.

7. The pre-emphasis configuration method for switch switching chips according to claim 1, characterized in that, Before reading the data from the electrically erasable programmable read-only memory of the optical modules inserted at each port, the method further includes: A port presence detection command is issued to the field-programmable gate array (FPGA) so that the FPGA can poll each port for optical module access through the monitoring link established between the FPGA and each port; wherein the monitoring link between the FPGA and each port is established by a complex programmable logic device. Obtain the in-situ polling result returned by the field-programmable gate array, and determine the port that is not connected to the optical module based on the in-situ polling result; The preset default pre-emphasis parameter group is used as the pre-emphasis parameter group for the port where the optical module is not inserted.

8. The pre-emphasis configuration method for switch switching chips according to claim 1, characterized in that, Also includes: Upon receiving the pre-emphasis parameter database update instruction, verify whether the identity key of the instruction sender is correct; if it is incorrect, terminate this method. If the identity key is correct, then determine whether the sender of the verification instruction has modification permission based on the identity key; if not, end the method. If modification permissions are granted, the pre-emphasis parameter database update instruction is parsed to obtain the target pre-emphasis parameter group, as well as the manufacturer, module model, port rate, and optical cable length corresponding to the target pre-emphasis parameter group. The format and bit depth of each parameter data in the target pre-emphasis parameter group are checked. If either the format check or the bit depth check fails, the method ends. If both the format verification and the bit verification pass, then the system searches the pre-emphasis parameter database to see if a corresponding set of pre-emphasis parameters already exists, based on the manufacturer, module model, port rate, and optical cable length of the corresponding optical module. If it does not exist, add the target pre-emphasis parameter group to the pre-emphasis parameter database; If it exists, the found pre-emphasis parameter group is updated according to the target pre-emphasis parameter group.

9. A pre-emphasis configuration device for a switch chip, characterized in that, include: The read module is used to read data from the electrically erasable programmable read-only memory of the optical modules inserted into each port; The parsing module is used to parse the data of the electrically erasable programmable read-only memory to obtain the manufacturer, module model, port rate and optical cable length of the optical module connected to each port; The retrieval module is used to search for the corresponding pre-emphasis parameter group from a preset pre-emphasis parameter database for each port, using the manufacturer, module model, port rate and optical cable length of the corresponding optical module as the first joint primary key; A reorganization module is used to reorganize the pre-emphasis parameter groups corresponding to each of the ports into a data structure; An integration module is used to create a temporary file and store all the data structures in the temporary file to obtain the pre-emphasis parameter file; The configuration module is used to send the pre-emphasis parameter file to the switching chip so that the switching chip can complete the pre-emphasis parameter configuration.

10. A pre-emphasis configuration device for a switch chip, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the pre-emphasis configuration method for a switch chip as described in any one of claims 1 to 8 when executing the computer program.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the pre-emphasis configuration method for a switch chip as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method, device and system for configuring pre-emphasis for interconnection equipment and network device

    CN104184617A

  • Method and device for determining parameters

    CN113114414A