An IB protocol link parameter equalization method, device, equipment and storage medium

By introducing PRBS bit error rate detection into the IB protocol link, the problem of inaccurate link quality judgment caused by FOM value error in the existing technology is solved, and more accurate link quality assessment and data transmission quality improvement are achieved.

CN119696739BActive Publication Date: 2026-03-27WUXI STARS MICRO SYSTEM TECHNOLOGIES CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-19
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing technologies, the IB protocol link quality assessment relies on the FOM value evaluated by analog circuits, which is prone to error and cannot accurately determine link quality, resulting in poor data transmission quality.

Method used

By introducing PRBS bit error rate detection, the bit error rate of the IB protocol link is judged, and the optimal equalization parameter is selected as the data transmission parameter. It supports parameter equalization adjustment for different versions of data transmission protocol and directly and accurately evaluates the link quality.

Benefits of technology

It improves the quality of data transmission in the IB protocol link, enabling more direct and accurate judgment of link quality and selection of optimal equalization parameters for data transmission, thus avoiding reliance on analog circuit evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119696739B_ABST
    Figure CN119696739B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data transmission, and discloses an IB protocol link parameter equalization method and device, equipment and a storage medium, the IB protocol link is a high-speed connection channel between two IB devices, the two IB devices include a local device and a peer device, the method is executed by the local device, and the method comprises the following steps: after negotiation with the peer device is completed, according to a negotiated transmission protocol version, equalization parameter adjustment is performed on a sending end of the peer device for at least two kinds of equalization parameters, adjusted equalization parameters are obtained; based on the adjusted equalization parameters, pseudo-random binary sequence (PRBS) detection is performed on the IB protocol link, an error code rate corresponding to the adjusted equalization parameters is obtained, and according to error code rates corresponding to the at least two kinds of equalization parameters, a target equalization parameter is selected for data transmission. The link quality can be more accurately judged through PRBS error code detection of the IB protocol link itself.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer networks, in particular to an IB protocol link parameter equalization method and device, equipment and storage medium. BACKGROUND

[0002] IB (InfiniBand) protocol is a network communication standard for high-performance computing. In the case of high-speed transmission, data will be distorted during transmission, and equalization technology needs to be used. Through equalization, on the one hand, according to the results of negotiation between the two parties, the parameters of the sending end of the local end will be set to the parameter values expected by the receiving end of the opposite end; on the other hand, the sending end of the local end will also inform the receiving end of the opposite end of the sending parameters to be set, and the receiving end of the local end evaluates the link quality after adjusting the parameters and selects an optimal parameter as the transmission parameter of the opposite end.

[0003] At present, the common practice in the industry is to use the FOM value (Figure of Merit) evaluated by the analog circuit as the judgment standard of the current link quality, but the FOM value may have some errors and cannot directly and accurately judge the quality of the current link.

[0004] Therefore, there is an urgent need for a parameter equalization method that can directly and accurately judge the current IB protocol link quality, so as to select the optimal equalization parameter and improve the quality of link data transmission. SUMMARY

[0005] Therefore, the present application provides an IB protocol link parameter equalization method, device, equipment and storage medium, which improves the quality of IB protocol link data transmission. The technical solution is as follows.

[0006] In a first aspect, the present application provides an IB protocol link parameter equalization method, the IB protocol link being a high-speed connection channel between two IB devices, the two IB devices including a local device and an opposite device, the method being executed by the local device, and the method comprising:

[0007] After completing the negotiation with the opposite device, according to the negotiated transmission protocol version, for at least two equalization parameters, the bit error rate corresponding to each equalization parameter is obtained;

[0008] According to the bit error rates corresponding to the at least two equalization parameters, a target equalization parameter is selected for data transmission;

[0009] The bit error rate corresponding to the equalization parameter is obtained, including:

[0010] Adjusting the equalization parameters of the sending end of the opposite device;

[0011] The IB protocol link is subjected to pseudo-random binary sequence detection based on the adjusted equalization parameters, so as to obtain an error code rate corresponding to the adjusted equalization parameters; and the error code rate is used to represent the data transmission quality of the IB protocol link.

[0012] In an optional implementation, the error code rate corresponding to each equalization parameter is obtained when the negotiated transmission protocol version is the first version; and the first version is used to represent that the transmission rate of the IB protocol link only supports a first transmission rate and below.

[0013] In an optional implementation, the error code rate corresponding to each equalization parameter is obtained when the negotiated transmission protocol version is the first version; and the first version is used to represent that the transmission rate of the IB protocol link only supports a first transmission rate and below.

[0014] In an optional implementation, the error code rate corresponding to each equalization parameter is obtained when the negotiated transmission protocol version is the first version; and the first version is used to represent that the transmission rate of the IB protocol link only supports a first transmission rate and below.

[0015] In an optional implementation, before the error code rate corresponding to each equalization parameter is obtained, the method further comprises: waiting for the peer device to switch to a data transmission rate supported by the negotiated transmission protocol version.

[0016] In an optional implementation, the method further comprises: after the negotiation with the peer device is completed, adjusting the equalization parameters of the sending end of the local device according to the negotiated transmission protocol version.

[0017] In an optional implementation, the equalization parameters of the sending end of the local device are adjusted by: if the negotiated transmission protocol version is the first version, the sending end of the local device is subjected to traversal adjustment of all equalization parameters; if the negotiated transmission protocol version is not the first version, the current equalization parameter to be adjusted is adjusted, and it is determined whether the next sending parameter needs to be adjusted according to the quality evaluation requirement of the local device.

[0018] The IB protocol link parameter equalization method provided by the application has the following advantages.

[0019] The IB protocol link parameter equalization method of the application is applied to an IB protocol link, which is a high-speed connection channel between two IB devices, the two IB devices including a local device and a peer device, each IB device including a sending end and a receiving end. The method is executed by the local device. Since the content transmitted between the IB devices is a PRBS code stream, PRBS error rate detection is introduced to judge the link quality of the IB protocol link, and the optimal equalization parameter is selected as the transmission parameter for data transmission according to the PRBS error rate. Before PRBS error rate detection, parameter equalization of the IB protocol link needs to be completed first. PRBS error rate detection of the IB protocol link is performed on the equalized parameters, and a parameter corresponding to an optimal error rate is selected as the parameter for data transmission. Parameter equalization of the IB protocol link is to set the parameter of the sending end of the local device to the parameter value expected by the receiving end of the peer device, and the receiving end of the peer device adjusts the equalization parameter of the sending end of the local device. Specifically, according to the negotiated data transmission protocol version, all parameters of the sending end of the peer device are equalized, or a certain parameter is equalized, and whether to equalize the next parameter is selected according to the quality evaluation requirement of the local device. After completing the parameter equalization, PRBS error rate detection is performed on the current IB protocol link to obtain the error rate corresponding to the current parameter. After completing the equalization of all parameters, the error rates corresponding to the parameters are compared. The corresponding link quality can be obtained from the error rate, and the optimal parameter is selected for data transmission. The IB protocol link parameter equalization method of the application supports parameter equalization adjustment using different versions of data transmission protocol versions, judges the link quality through PRBS error detection of the IB protocol link itself, and is not simply dependent on the FOM value of the analog circuit evaluation, so that the data transmission quality of the IB protocol link can be more directly and accurately judged.

[0020] In a second aspect, the application provides an IB protocol link parameter equalization device, the IB protocol link being a high-speed connection channel between two IB devices, the two IB devices including a local device and a peer device, the device being executed by the local device, and the device including:

[0021] An error rate acquisition module is configured to, after completing negotiation with the peer device, acquire error rates corresponding to at least two equalization parameters according to the negotiated transmission protocol version.

[0022] A target parameter selection module is configured to select a target equalization parameter for data transmission according to the error rates corresponding to the at least two equalization parameters.

[0023] The error rate corresponding to the equalization parameter is obtained, including:

[0024] The transmission end of the opposite end device is adjusted based on the equalization parameter to obtain an adjusted equalization parameter.

[0025] Based on the adjusted equalization parameter, pseudo-random binary sequence detection is performed on the IB protocol link to obtain an error rate corresponding to the adjusted equalization parameter; the error rate is used to represent the data transmission quality of the IB protocol link.

[0026] In a third aspect, the present application provides a computer device, comprising: a memory and a processor, which are in communication connection with each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the IB protocol link parameter equalization method of the first aspect or any of the corresponding embodiments thereof.

[0027] In a fourth aspect, the present application provides a computer readable storage medium, which stores computer instructions, and the computer instructions are used to make the computer execute the IB protocol link parameter equalization method of the first aspect or any of the corresponding embodiments thereof.

[0028] In a fifth aspect, the present application provides a computer program product, which comprises computer instructions, and the computer instructions are used to make the computer execute the IB protocol link parameter equalization method of the first aspect or any of the corresponding embodiments thereof. BRIEF DESCRIPTION OF DRAWINGS

[0029] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the drawings needed in the specific embodiments or the prior art description will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creative labor.

[0030] Figure 1 It is a flowchart of an IB protocol link parameter equalization method according to an exemplary embodiment of the present application.

[0031] Figure 2 It is a flowchart of an IB protocol link parameter equalization method according to an exemplary embodiment of the present application.

[0032] Figure 3 It is a flowchart of an IB protocol link parameter equalization method according to an exemplary embodiment of the present application.

[0033] Figure 4is a structural schematic diagram of an IB protocol link parameter equalization device provided by an example embodiment of the present application.

[0034] Figure 5 is a structural schematic diagram of a computer device provided by an example embodiment of the present application. DETAILED DESCRIPTION

[0035] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0036] It should be understood that the "indication" mentioned in the embodiments of the present application can be direct indication, indirect indication, or can be an indication of a correlation relationship. For example, A indicates B, which can mean that B can be obtained by A directly; or A indirectly indicates B, for example, A indicates C, and B can be obtained by C; or A and B have a correlation relationship.

[0037] In the description of the embodiments of the present application, the term "corresponding" can mean a direct or indirect corresponding relationship between the two, can mean a correlation relationship between the two, or can mean an indication and being indicated, configuration and being configured, etc.

[0038] In the embodiments of the present application, "predefined" can be realized by pre-storing corresponding codes, tables or other means for indicating related information in devices (for example, including terminal devices and network devices), and the specific implementation manner is not limited in the present application.

[0039] First, the terms involved in the present application are introduced.

[0040] IB protocol: InfiniBand protocol;

[0041] EQ / equalization: Equalization, the data signal is conditioned and improved before the signal judgment at the sending end, the transmission link or the receiving end, so as to reduce the influence of the signal on the communication energy;

[0042] PRBS: Pseudo-random binary sequence, a pseudo-random sequence containing only 0 and 1, which can be pre-confirmed and repeatedly generated; on the other hand, it also has certain random characteristics;

[0043] FOM: Figure of Merit, used to measure channel quality.

[0044] IB protocol needs to support a variety of high-speed function scenarios. In the case of high-speed transmission, data will be distorted in the transmission process, and equalization technology needs to be used. Through equalization, on the one hand, according to the results of negotiation between the two parties, the parameters of the sending end of the local end will be set to the parameter values expected by the opposite end (a total of 16, respectively, Preset0~Preset15, each representing a parameter compensation value); on the other hand, the local end will also inform the opposite end of the transmission parameters to be set, and the link quality after the local sending end evaluates and adjusts the parameters, and selects an optimal parameter as the transmission parameter. Through the mutual cooperation of the receiving and sending ends, the distortion of the data in the transmission process is compensated.

[0045] However, the IB protocol does not give a detailed parameter equalization processing method, and the industry's common practice is to use the FOM value evaluated by the analog circuit as the judgment standard of the current link quality, but the FOM value may have some errors.

[0046] Therefore, in order to solve the above technical problems, the IB protocol link parameter equalization method provided by the embodiments of the present application introduces the check of the PRBS bit error rate as the link quality judgment when judging the link quality by EQ equalization (Equalization) within the content meeting the provisions of the IB protocol. By the bit error rate of the received data, the quality of the current link can be directly and accurately judged, so as to select the optimal EQ equalization parameter.

[0047] The IB protocol link parameter equalization method of the embodiments of the present application, the IB protocol link is a high-speed connection channel between two IB devices, the two IB devices include a local device and an opposite device, the method is executed by the local device, and the flow of the method is as shown in Figure 1 The method includes the following steps.

[0048] S101, after completing the negotiation with the opposite device, according to the negotiated transmission protocol version, at least two equalization parameters are obtained respectively corresponding to the bit error rate of the equalization parameter.

[0049] Optionally, in step S101, the version of the transmission protocol needs to be negotiated before the parameter equalization is performed, and the parameters to be equalized are selected according to the negotiated version of the transmission protocol. The version of the transmission protocol is used to represent the data transmission rate supported by the current IB protocol link, and it is needed to determine whether the negotiated version of the transmission protocol is the first version that only supports the first transmission rate and below. If it is the first version, all the parameters of the sending end of the peer device need to be equalized. If it is not the first version, the number of times of parameter equalization needs to be determined according to the demand of the quality assessment of the local device. After one parameter equalization is completed, if the demand of the quality assessment of the local device determines that the next equalization is needed, the next equalization is performed, otherwise the parameter equalization is ended. After each parameter equalization is completed, the PRBS detection is performed on the IB protocol link to obtain the PRBS error rate corresponding to each equalized parameter. The PRBS error rate can reflect the data transmission quality of the IB protocol link.

[0050] Optionally, in the above steps, if it is determined that the next equalization is needed according to the demand of the quality assessment of the local device after one parameter equalization is completed, the current transmission rate needs to be switched to the lowest transmission rate or 2.5G rate to interact with the peer device to confirm the parameters that need to be equalized.

[0051] Optionally, in the above steps, before the error rate corresponding to each equalization parameter is obtained, the transmission rate needs to be switched to the data transmission rate supported by the negotiated version of the transmission protocol.

[0052] Specifically, in the above steps, obtaining the error rate corresponding to the equalization parameter specifically includes: adjusting the equalization parameter of the sending end of the peer device; performing PRBS detection on the IB protocol link based on the adjusted equalization parameter to obtain the error rate corresponding to the adjusted equalization parameter; and the error rate is used to represent the data transmission quality of the IB protocol link.

[0053] S102, selecting a target equalization parameter for data transmission according to the error rates corresponding to the at least two equalization parameters.

[0054] Specifically, in step S102, the PRBS detection is introduced mainly because the code streams sent by the two IB devices are PRBS. The error rate of the current link can be directly judged by the PRBS detection, and the quality of the current link can be judged by the error rate. The PRBS error rate detection is mainly through: (the number of error codes of the received data during the PRBS detection) / (the total number of received data during the PRBS detection). Therefore, only the number of error codes of the received data during the PRBS detection needs to be counted, and the error code number and the set threshold are compared to directly judge whether the error rate of the current link meets the expectation.

[0055] Optionally, in the above step, the time for PRBS to detect error rate is proportionally taken from the time for single parameter equalization judgment, so on one hand, the time for PRBS detection is increased by increasing the time for single parameter equalization of both sides through negotiation; on the other hand, the time for PRBS detection is increased by modifying the proportion of PRBS detection in the time for single parameter equalization. And the error threshold of PRBS is also configurable. Therefore, the expected error rate after final parameter equalization can be set according to the current link environment through the two ways.

[0056] Optionally, the method further comprises: after the negotiation with the opposite end device is completed, adjusting the equalization parameters of the sending end of the local end device according to the negotiated transmission protocol version. Specifically, if the negotiated transmission protocol version is the first version, adjusting each equalization parameter; if the negotiated transmission protocol version is not the first version, adjusting the current equalization parameter that needs to be adjusted, and determining whether the next sending parameter needs to be adjusted according to the requirement of quality evaluation of the local end device.

[0057] In order to better illustrate the IB protocol link parameter equalization method provided by the above embodiment, a specific embodiment will be used to illustrate below. The IB protocol link of the embodiment is a high-speed connection channel between two IB devices, and each of the two IB devices has a sending end and a receiving end. Equalization means that the receiving end of the local end device adjusts the equalization parameters of the sending end of the opposite end device, and the receiving end of the opposite end device adjusts the equalization parameters of the sending end of the local end device. The parameters of the IB protocol link totally have 16 kinds, which are Preset0-Preset15, each of which represents a parameter compensation value.

[0058] The IB protocol link parameter equalization method of the embodiment is executed by the local end device, and includes sending direction parameter equalization and receiving direction parameter equalization.

[0059] The parameter equalization process of the sending direction is as shown in Figure 2 and includes the following steps.

[0060] First, it is judged whether the current needs to adjust the sending end parameter of the local end device due to entering the PHY_TEST state. The PHY_TEST state is a state defined in the EQ process of the IB protocol, and is used to judge whether the local end device needs to enter the TEST_PRESET state. Figure 2 The TEST_PRESET state will enter the test mode, and the sending end parameter can be modified multiple times as needed.

[0061] If the adjustment of the transmission parameter is needed due to the entering into the PHY_TEST state, the local device and the peer device are waited for the negotiation interaction, the parameter to be adjusted is obtained and set to the transmission end of the local device. In this stage, the peer device can adjust the transmission parameter of the local device for multiple times until the local device informs that the parameter adjustment is completed, and the adjustment of the transmission parameter is ended.

[0062] If the adjustment of the transmission parameter is not needed due to the PHY_TEST, the adjustment of the transmission parameter is needed due to the entering into the equalization stage. At this time, it is judged whether the transmission protocol version supported by the local device and the peer device after the negotiation is the first version. The transmission protocol version is taken as the TS3 version set by the IB protocol, and the first version is taken as the REV0 version set by the IB protocol. It is needed to determine whether the TS3 version is the REV0 version supporting only 10G and below or the version supporting 10G and above.

[0063] If the TS3 is the REV0 version, the transmission parameter of the local device is adjusted into the parameters P0 to P15 in sequence after the speed of the local device is cut. After the adjustment of the parameter, the transmission end of the local device is adjusted into the next group of parameters after a period of time. After all the 16 groups of parameters are adjusted, the adjustment of the transmission parameter is ended.

[0064] If the TS3 is the REV1 and above version, the negotiation interaction between the local device and the peer device is waited for, the parameter to be adjusted is obtained and set to the transmission end of the local device. In this stage, the transmission parameter can be adjusted for multiple times until the upper layer informs that the parameter adjustment is completed, and the adjustment of the transmission parameter is ended.

[0065] The parameter equalization flow of the receiving direction is shown in Figure 3 and includes the following steps.

[0066] First, the TS3 version used in the negotiation is judged.

[0067] When the TS3 version is the REV0, the target rate of the peer device is waited for being cut after the cutting of the target rate is completed. According to the IB protocol, the negotiation interaction is under the 2.5G rate. After the negotiation is completed, the link quality is adjusted, the RX equalization (the equalization of the receiving end) is initiated. In the RX equalization stage, the parameter of the RX receiving end is adjusted, the received data is tried to be recovered to the acceptable range, and the current link quality is evaluated. After the RX equalization is completed, it is judged whether the PRBS detection is performed. The PRBS detection introduced herein is mainly that the PRBS code stream is sent by both sides in this stage. The PRBS detection can directly judge the error rate of the current link, and the error rate is taken as another means to judge the link quality.

[0068] The PRBS error code rate detection is mainly through: (the number of error codes of the received data during the PRBS detection) / (the total number of the received data during the PRBS detection). Therefore, only the number of error codes of the received data during the PRBS detection needs to be counted, and the error code number and the set threshold are compared to directly determine whether the error code rate of the current link meets the expectation. In addition, the time of the PRBS detection error code rate is proportionally taken from the time of the single EQ judgment, so on one hand, the time of the PRBS detection is increased by increasing the time of the single EQ of both sides through negotiation; on the other hand, the time of the PRBS detection is increased by modifying the proportion of the PRBS detection in the time of the single EQ. In addition, the set PRBS error code threshold is also configurable. Therefore, the two ways can be used to set the expected error code rate of the final EQ according to the current link environment. After the RX equalization and the PRBS detection are completed, it is determined whether the number of RX equalizations reaches 16 times (traversing the transmission parameters P0 to P15 of the transmission end of the opposite end). If not, the operation of the RX equalization and the PRBS detection is repeated; if yes, the parameter with the optimal link quality is selected as the parameter used in the next stage, and the RX equalization is ended.

[0069] When the version of the TS3 is not REV0, the RX equalization and the PRBS detection (the detection method is consistent with REV0) are initiated after waiting for the speed change of the opposite end device to be completed. After the detection is completed, the device at the local end informs whether the next RX equalization is needed. If yes, the device at the local end returns to the 2.5G rate to interact with the negotiation information, and then waits for the speed change of the opposite end device to the target rate and performs the next RX equalization process. After the multiple RX equalizations are completed (the specific number of times can be configured by software according to the actual situation), the overall RX equalization process is ended, and the results of the multiple equalizations are compared to select the optimal parameter as the parameter used in the next stage.

[0070] In summary, the IB protocol link parameter equalization method provided by the embodiments of the present application is applied to an IB protocol link, the IB protocol link is a high-speed connection channel between two IB devices, the two IB devices include a local device and a peer device, each IB device includes a sending end and a receiving end, the method is executed by the local device, since the content transmitted between the IB devices is a PRBS code stream, PRBS error rate detection is introduced to judge the link quality of the IB protocol link, and the optimal equalization parameter is selected as the transmission parameter for data transmission according to the PRBS error rate. Before PRBS error rate detection, parameter equalization of the IB protocol link needs to be completed first, PRBS error rate detection of the IB protocol link is performed on the equalized parameter, and a parameter corresponding to an optimal error rate is selected as the parameter for data transmission. The parameter equalization of the IB protocol link is to set the parameter of the sending end of the local device to the parameter value expected by the receiving end of the peer device, and on the other hand, the receiving end of the peer device adjusts the equalization parameter of the sending end of the local device by negotiation, specifically, the receiving end of the local device adjusts the equalization parameter of the sending end of the peer device, and the receiving end of the peer device adjusts the equalization parameter of the sending end of the local device. Specifically, according to the negotiated data transmission protocol version, all parameters of the sending end of the peer device are equalized, or a certain parameter is equalized, and whether to equalize the next parameter is selected according to the demand of quality evaluation of the local device, after completing the parameter equalization once, PRBS error rate detection is performed on the current IB protocol link, the error rate corresponding to the current parameter is obtained, after completing the equalization of all parameters that need to be equalized, the error rates corresponding to these parameters are compared, the corresponding link quality can be obtained through the error rate, and the optimal parameter is selected for data transmission. The IB protocol link parameter equalization method of the present application supports parameter equalization adjustment using different versions of data transmission protocol versions, judges the link quality through PRBS error detection of the IB protocol link itself, and does not simply rely on the FOM value of the analog circuit evaluation, so that the data transmission quality of the IB protocol link can be judged more directly and more accurately.

[0071] In the embodiments of the present application, an IB protocol link parameter equalization device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be described again. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware or a combination of software and hardware is also possible and contemplated.

[0072] The embodiments of the present application provide an IB protocol link parameter equalization device, Figure 4is a structural schematic diagram of an IB protocol link parameter equalization device provided by an embodiment of the present application. The IB protocol link is a high-speed connection channel between two IB devices, which include a local device and a peer device. The device is executed by the local device, and the device includes:

[0073] An error rate obtaining module 401 is configured to, after negotiation with the peer device is completed, obtain error rates corresponding to at least two equalization parameters according to a negotiated transmission protocol version.

[0074] A target parameter selection module 402 is configured to select a target equalization parameter for data transmission according to the error rates corresponding to the at least two equalization parameters.

[0075] The error rates corresponding to the at least two equalization parameters are obtained in the following manner:

[0076] The sending end of the peer device is adjusted in equalization parameters to obtain adjusted equalization parameters.

[0077] The IB protocol link is detected in pseudo-random binary sequences based on the adjusted equalization parameters to obtain error rates corresponding to the adjusted equalization parameters. The error rates are used to represent data transmission quality of the IB protocol link.

[0078] In an optional implementation, the error rate obtaining module 401 is specifically configured to:

[0079] When the negotiated transmission protocol version is a first version, the error rates corresponding to each equalization parameter are obtained by traversing the equalization parameters. The first version is used to represent that a transmission rate of the IB protocol link only supports a first transmission rate and below. When the negotiated transmission protocol version is not the first version, the error rate corresponding to a current equalization parameter that needs to be adjusted is obtained, and whether the error rate corresponding to a next equalization parameter needs to be obtained is determined according to a quality evaluation requirement of the local device.

[0080] In an optional implementation, the error rate obtaining module 401 is further configured to, if the error rate corresponding to the next equalization parameter needs to be obtained according to the quality evaluation requirement of the local device, switch a current transmission rate to a lowest transmission rate or 2.5G rate to negotiate with the peer device to determine the equalization parameter that needs to be adjusted.

[0081] In an optional implementation, the target parameter selection module 402 is further configured to, after negotiation with the peer device is completed, adjust the sending end of the local device in equalization parameters according to a negotiated transmission protocol version.

[0082] Further function description of each module and unit is the same as the corresponding embodiment, and will not be repeated here.

[0083] The IB protocol link parameter balancing device in the embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory executing one or more software or fixed programs, and / or other devices that can provide the above functions.

[0084] The embodiment of the application further provides a computer device having the above Figure 4 The download process control device is shown.

[0085] Please refer to Figure 5 , Figure 5 is a structural schematic diagram of a computer device provided by an optional embodiment of the application, as shown in Figure 5 The computer device includes one or more processors 10, a memory 20, and an interface for connecting components, including a high-speed interface and a low-speed interface. Various components are communicatively connected to each other by different buses, and can be installed on a common mainboard or in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in the memory or on the memory to display graphical information in a graphical user interface on an external input / output device, such as a display device coupled to the interface. In some optional embodiments, multiple processors and / or multiple buses can be used with multiple memories and multiple memories, if necessary. Similarly, multiple computer devices can be connected, each providing part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 The processor 10 is taken as an example in the embodiment.

[0086] The processor 10 can be a central processor, a network processor, or a combination thereof. The processor 10 can further include a hardware chip. The hardware chip can be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device can be a complex programmable logic device, a field programmable logic gate array, a general array logic, or any combination thereof.

[0087] The memory 20 stores instructions executable by the at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0088] The memory 20 can include a program storage area and a data storage area. The program storage area can store an operating system, application programs required for at least one function, etc. The data storage area can store data created according to the use of the computer device, etc. In addition, the memory 20 can include a high-speed random access memory, and can further include a non-transitory memory such as at least one of a magnetic disk storage device, a flash memory device, or other non-transitory solid state memory device. In some alternative embodiments, the memory 20 can optionally include a memory that is remotely located with respect to the processor 10, and these remote memories can be connected to the computer device through a network. Embodiments of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0089] The memory 20 can include a volatile memory, such as a random access memory, and can also include a non-volatile memory, such as at least one of a flash memory, a hard disk, or a solid state disk. The memory 20 can also include a combination of the above-mentioned types of memory.

[0090] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30, and the output device 40 can be connected through a bus or other means, Figure 5 The above-mentioned connection through a bus is taken as an example.

[0091] The embodiments of the present application also provide a computer readable storage medium. The above-mentioned method according to the embodiments of the present application can be implemented in hardware, firmware, or recorded in a storage medium, or stored in a remote storage medium or a non-transitory machine readable storage medium through network downloading and stored in a local storage medium, so that the method described herein can be processed by such software on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid state disk, etc. Further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that the computer, the processor, the microprocessor controller, or the programmable hardware includes a storage component that can store or receive software or computer code, when the software or computer code is accessed and executed by the computer, the processor, or the hardware, the method shown in the above-mentioned embodiments is implemented.

[0092] Part of the present application can be applied as a computer program product, for example, computer program instructions, when executed by a computer, through the operation of the computer, can invoke or provide methods and / or technical solutions according to the present application. Those skilled in the art should understand that the form of computer program instructions in computer readable medium includes but is not limited to source files, executable files, installation package files and the like, and accordingly, the way of computer program instructions executed by computer includes but is not limited to: the computer directly executes the instructions, or the computer compiles the instructions and then executes the corresponding compiled program, or the computer reads and executes the instructions, or the computer reads and installs the instructions and then executes the corresponding installed program. Here, the computer readable medium can be any available computer readable storage medium or communication medium accessible to the computer.

[0093] Although the embodiments of the present application are described in conjunction with the drawings, various modifications and changes can be made by those skilled in the art without departing from the spirit and scope of the present application, and such modifications and changes fall within the scope defined by the appended claims.

Claims

1. A method for link parameter equalization in the IB protocol, characterized in that, The IB protocol link is a high-speed connection channel between two IB devices, including a local device and a peer device. The method is executed by the local device, and the method includes: After completing the negotiation with the peer device, based on the negotiated transmission protocol version, the bit error rate corresponding to the at least two equalization parameters is obtained respectively. Based on the bit error rates corresponding to the at least two equalization parameters, a target equalization parameter is selected for data transmission. The step of obtaining the bit error rate corresponding to the equalization parameter includes: Adjust the equalization parameters at the transmitting end of the peer device; Based on the adjusted equalization parameters, pseudo-random binary sequence detection is performed on the IB protocol link to obtain the bit error rate corresponding to the adjusted equalization parameters; the bit error rate is used to characterize the data transmission quality of the IB protocol link. The step of obtaining the bit error rate corresponding to the at least two equalization parameters based on the negotiated transmission protocol version includes: When the negotiated transmission protocol version is the first version, a traversal test is performed on each equalization parameter to obtain the bit error rate corresponding to each equalization parameter; the first version is used to characterize that the transmission rate of the IB protocol link only supports the first transmission rate and below. When the negotiated transmission protocol version is not the first version, for the equalization parameter that needs to be adjusted, the bit error rate corresponding to the equalization parameter that needs to be adjusted is obtained, and it is determined whether it is necessary to obtain the bit error rate corresponding to the next equalization parameter according to the requirements of the local device quality assessment. During the process of obtaining the bit error rate corresponding to the equalization parameters, in the RX equalization stage, the parameters of the RX receiver are adjusted to try to restore the received data to an acceptable range and to evaluate the current link quality; after the RX equalization is completed, it is determined whether to perform PRBS detection.

2. The method according to claim 1, characterized in that, The step of determining whether it is necessary to obtain the bit error rate corresponding to the next equalization parameter based on the quality assessment requirements of the local device includes: If the bit error rate corresponding to the next equalization parameter needs to be obtained based on the quality assessment requirements of the local device, then after negotiating with the peer device and switching the local device and the peer device to the same rate, the equalization parameter that needs to be adjusted is determined.

3. The method according to claim 1, characterized in that, Before obtaining the bit error rate corresponding to each of the at least two equalization parameters, the method further includes: Wait for the peer device to switch to the data transmission rate supported by the negotiated transmission protocol version.

4. The method according to claim 1, characterized in that, The method further includes: After completing the negotiation with the peer device, the equalization parameters of the local device's sending end are adjusted according to the negotiated transmission protocol version.

5. The method according to claim 4, characterized in that, The adjustment of equalization parameters at the transmitting end of the local device includes: If the negotiated transmission protocol version is the first version, then each load balancing parameter is iterated and adjusted. If the negotiated transmission protocol version is not the first version, then the current equalization parameters that need to be adjusted are adjusted, and it is determined whether the next transmission parameters need to be adjusted based on the requirements of the local device quality assessment.

6. An IB protocol link parameter equalization device, characterized in that, The IB protocol link is a high-speed connection channel between two IB devices, which include a local device and a peer device. The device is executed by the local device and includes: The bit error rate acquisition module is used to acquire the bit error rate corresponding to at least two equalization parameters according to the negotiated transmission protocol version after the negotiation with the peer device is completed. The target parameter selection module is used to select a target equalization parameter for data transmission based on the bit error rate corresponding to the at least two equalization parameters respectively. The step of obtaining the bit error rate corresponding to the equalization parameter includes: The equalization parameters of the transmitting end of the peer device are adjusted to obtain the adjusted equalization parameters. Based on the adjusted equalization parameters, pseudo-random binary sequence detection is performed on the IB protocol link to obtain the bit error rate corresponding to the adjusted equalization parameters; the bit error rate is used to characterize the data transmission quality of the IB protocol link. The target parameter selection module is used for: When the negotiated transmission protocol version is the first version, a traversal test is performed on each equalization parameter to obtain the bit error rate corresponding to each equalization parameter; the first version is used to characterize that the transmission rate of the IB protocol link only supports the first transmission rate and below. When the negotiated transmission protocol version is not the first version, for the equalization parameter that needs to be adjusted, the bit error rate corresponding to the equalization parameter that needs to be adjusted is obtained, and it is determined whether it is necessary to obtain the bit error rate corresponding to the next equalization parameter according to the requirements of the local device quality assessment. The target parameter selection module is also used for: During the process of obtaining the bit error rate corresponding to the equalization parameters, in the RX equalization stage, the parameters of the RX receiver are adjusted to try to restore the received data to an acceptable range and to evaluate the current link quality; after the RX equalization is completed, it is determined whether to perform PRBS detection.

7. A computer device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the IB protocol link parameter equalization method according to any one of claims 1 to 5 by executing the computer instructions.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to execute the IB protocol link parameter equalization method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Wired communication method, device and equipment and readable storage medium

    CN113726425A