IB protocol link parameter balancing method and device, equipment and storage medium
By introducing PRBS bit error rate detection in the IB protocol link, obtaining the bit error rate of the equalization parameters and selecting the target equalization parameters, it solves the problem of difficulty in determining the link quality in the prior art and improves the data transmission quality.
Patent Information
- Application Number
- CN202411884587.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-12-19
AI Technical Summary
The prior art is difficult to directly and accurately judge the quality of the IB protocol link, resulting in the inability to select the optimal equalization parameters, affecting the quality of data transmission.
By introducing PRBS bit error rate detection in the IB protocol link, the bit error rate of at least two equalization parameters is obtained based on the negotiated transmission protocol version, and the target equalization parameters are selected for data transmission.
It realizes direct and accurate judgment of the link quality of IB protocol, selects the optimal balance parameters, and improves the data transmission quality.
Smart Images

Figure CN119696739A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer network technology, and in particular to an IB protocol link parameter balancing method, device, equipment and storage medium. Background Art
[0002] The 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 is required. Through equalization, on the one hand, the parameters of the local sender are set to the parameter values desired by the other end receiver according to the results of the negotiation between the two parties; on the other hand, the local sender will also inform the other end receiver of the transmission parameters to be set through negotiation, and the local receiver will evaluate the link quality after adjusting the parameters and select an optimal parameter as the transmission parameter for the other 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 criterion for judging the quality of the current link. However, the FOM value may have a certain error 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 determine the quality of the current IB protocol link, so as to select the optimal equalization parameters and improve the quality of link transmission data. Summary of the invention
[0005] In view of this, the present application provides an IB protocol link parameter balancing 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, wherein the IB protocol link is a high-speed connection channel between two IB devices, wherein the two IB devices include a local device and a peer device, and the method is performed by the local device, and the method includes:
[0007] After completing the negotiation with the opposite end device, according to the negotiated transmission protocol version, for at least two equalization parameters, respectively obtain bit error rates corresponding to the equalization parameters;
[0008] Selecting a target equalization parameter for data transmission according to the bit error rates respectively corresponding to the at least two equalization parameters;
[0009] The obtaining the bit error rate corresponding to the equalization parameter includes:
[0010] Adjusting the equalization parameters of the transmitting end of the opposite end device;
[0011] Based on the adjusted equalization parameters, a pseudo-random binary sequence detection is performed on the IB protocol link to obtain a 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.
[0012] In an optional embodiment, based on the negotiated transmission protocol version, for at least two equalization parameters, the bit error rates corresponding to the equalization parameters are respectively obtained, including: when the negotiated transmission protocol version is the first version, for each equalization parameter, the bit error rates corresponding to each equalization parameter are respectively obtained; the first version is used to characterize that the transmission rate of the IB protocol link only supports the first transmission rate and below.
[0013] In an optional implementation, based on the negotiated transmission protocol version, for at least two equalization parameters, the bit error rates corresponding to the equalization parameters are respectively obtained, and it also includes: 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 according to the quality assessment requirements of the local device, it is determined whether it is necessary to obtain the bit error rate corresponding to the next equalization parameter.
[0014] In an optional implementation, the determination of whether it is necessary to obtain the bit error rate corresponding to the next equalization parameter is made based on the quality assessment requirements of the local device, including: if it is determined that 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, then negotiating with the opposite device and after the local device and the opposite device are switched to the same rate, determining the equalization parameter that needs to be adjusted.
[0015] In an optional implementation, before respectively obtaining the bit error rates corresponding to the at least two equalization parameters, the method further includes: waiting for the opposite device to switch to a data transmission rate supported by the negotiated transmission protocol version.
[0016] In an optional implementation, the method further includes: after completing the negotiation with the opposite device, 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 transmitting end of the local device are adjusted, including: if the negotiated transmission protocol version is the first version, the transmitting end of the local device traverses and adjusts all the equalization parameters; if the negotiated transmission protocol version is not the first version, the current equalization parameter that needs to be adjusted is adjusted, and it is determined whether the next sending parameter needs to be adjusted based on the quality assessment requirements of the local device.
[0018] The IB protocol link parameter balancing method provided in this application has the following advantages.
[0019] The IB protocol link parameter equalization method of the present application is applied to the IB protocol link, which is a high-speed connection channel between two IB devices, and the two IB devices include a local device and a peer device, each IB device includes a transmitter and a receiver, and the method is executed by the local device. Since the content transmitted between the IB devices is a PRBS code stream, the PRBS bit 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 of the data transmission according to the PRBS bit error rate. Before performing the PRBS bit error rate detection, it is first necessary to complete the parameter equalization of the IB protocol link, perform the PRBS bit error rate detection of the IB protocol link for the equalized parameters, and select the parameters corresponding to the optimal bit error rate as the parameters of the data transmission. The parameter equalization of the IB protocol link is to set the parameters of the local transmitter to the parameter value desired by the peer receiving end on the one hand, and the receiving end of the peer end informs the parameters to be set by the local transmitter through negotiation, specifically referring to the receiving end of the local device to adjust the equalization parameters of the transmitting end of the peer device, and the receiving end of the peer device to adjust the equalization parameters of the transmitting end of the local device. Specifically, according to the negotiated data transmission protocol version, choose to balance all parameters of the transmitting end of the opposite device, or balance a certain parameter and choose whether to balance the next parameter according to the quality evaluation requirements of the local device. After completing a parameter balance, perform PRBS bit error rate detection on the current IB protocol link to obtain the bit error rate corresponding to the current parameter. After completing all parameters that need to be balanced, compare the bit error rates corresponding to these parameters. The bit error rates can be used to derive the corresponding link quality, and select the optimal parameters for data transmission. The IB protocol link parameter balancing method of the present application supports parameter balancing adjustment using different versions of the data transmission protocol version, and judges the link quality through the PRBS bit error detection of the IB protocol link itself. It does not rely solely on the FOM value evaluated by the analog circuit, and can more directly and accurately judge the data transmission quality of the IB protocol link.
[0020] In a second aspect, the present application provides an IB protocol link parameter equalization device, wherein the IB protocol link is a high-speed connection channel between two IB devices, wherein the two IB devices include a local device and a peer device, and the device is executed by the local device, and the device includes:
[0021] A bit error rate acquisition module, configured to acquire bit error rates corresponding to at least two equalization parameters respectively according to the negotiated transmission protocol version after completing the negotiation with the opposite end device;
[0022] A target parameter selection module, configured to select a target equalization parameter for data transmission according to the bit error rates respectively corresponding to the at least two equalization parameters;
[0023] The obtaining the bit error rate corresponding to the equalization parameter includes:
[0024] Adjusting the equalization parameters of the transmitting end of the opposite end device to obtain the adjusted equalization parameters;
[0025] Based on the adjusted equalization parameter, a pseudo-random binary sequence detection is performed on the IB protocol link to obtain a bit error rate corresponding to the adjusted equalization parameter; the bit error rate is used to characterize 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, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the IB protocol link parameter equalization method of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0027] In a fourth aspect, the present application provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the IB protocol link parameter equalization method of the first aspect or any corresponding embodiment thereof.
[0028] In a fifth aspect, the present application provides a computer program product, including computer instructions, where the computer instructions are used to enable a computer to execute the IB protocol link parameter equalization method of the above-mentioned first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[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 A schematic diagram of a flow chart of sending direction parameter equalization of an IB protocol link parameter equalization method according to an exemplary embodiment of the present application is shown.
[0032] Figure 3 A schematic diagram of a flow chart of receiving direction parameter equalization of an IB protocol link parameter equalization method according to an exemplary embodiment of the present application is shown.
[0033] Figure 4It is a structural diagram of an IB protocol link parameter equalization device provided by an exemplary embodiment of the present application.
[0034] Figure 5 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of this application.
[0036] It should be understood that the "indication" mentioned in the embodiments of the present application can be a direct indication, an indirect indication, or an indication of an association relationship. For example, A indicates B, which can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association relationship between A and B.
[0037] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between two items, or an association relationship between the two items, or a relationship between indication and being indicated, configuration and being configured, and the like.
[0038] In an embodiment of the present application, "predefinition" can be achieved by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in a device (for example, including a terminal device and a network device). The present application does not limit its specific implementation method.
[0039] First, the terms involved in this application are introduced.
[0040] IB protocol: InfiniBand protocol;
[0041] EQ / Equalization: Equalization is to condition and improve the data signal at the sending end, during the transmission link, or before the signal is judged at the receiving end, so as to reduce the impact of signal noise on communication performance;
[0042] PRBS: Pseudo-random binary sequence, a pseudo-random sequence containing only 0s and 1s, which can be confirmed in advance and can be generated repeatedly; on the other hand, it also has certain random characteristics;
[0043] FOM: Figure_of_Merit, used to measure channel quality.
[0044] The IB protocol needs to support a variety of high-speed functional scenarios. In the case of high-speed transmission, data will be distorted during transmission, and equalization technology is required. Through equalization, on the one hand, according to the results of the negotiation between the two parties, the parameters of the local sender will be set to the parameter values desired by the other party (there are 16 types in total, namely Preset0~Preset15, each representing a parameter compensation value); on the other hand, the local end will also inform the other party of the transmission parameters to be set through negotiation, and the local sender will evaluate the link quality after adjusting the parameters and select an optimal parameter as the transmission parameter. Through the cooperation between the receiving and sending ends, the distortion of data during transmission can be compensated.
[0045] However, the IB protocol does not provide a detailed parameter equalization processing method, and the common practice in the industry is to use the FOM value evaluated by the analog circuit as the criterion for judging the current link quality, but the FOM value may have a certain error.
[0046] Therefore, in order to solve the above technical problems, the embodiment of the present application provides an IB protocol link parameter equalization method, which introduces the PRBS bit error rate check as a link quality judgment when performing EQ equalization to judge the link quality within the content specified in the IB protocol. By the bit error rate of the received data, the quality of the current link can be directly and accurately judged, thereby selecting the optimal EQ equalization parameters.
[0047] The IB protocol link parameter equalization method of the embodiment 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 a peer device, the method is executed by the local device, the process of the method is as follows Figure 1 As shown, the following steps are included.
[0048] S101. After completing the negotiation with the opposite end device, according to the negotiated transmission protocol version, for at least two equalization parameters, respectively obtain bit error rates corresponding to the equalization parameters.
[0049] Optionally, in step S101, before performing parameter balancing, it is necessary to negotiate the version of the transmission protocol, and select which parameters to balance according to the negotiated transmission protocol version. The transmission protocol version is used to characterize the data transmission rate supported by the current IB protocol link. It is necessary to determine whether the negotiated transmission protocol version is the first version that only supports the first transmission rate and below. If it is the first version, all parameters of the transmitting end of the opposite device need to be balanced; if it is not the first version, the number of times parameter balancing is performed needs to be based on the quality assessment requirements of the local device. After completing one parameter balancing, if the quality assessment requirements of the local device determine that the next balancing is required, the next balancing is performed, otherwise the parameter balancing is terminated. After each parameter balancing is completed, PRBS detection is performed on the IB protocol link to obtain the PRBS bit error rate corresponding to each parameter after balancing. The PRBS bit error rate can reflect the data transmission quality of the IB protocol link.
[0050] Optionally, in the above steps, if after completing one parameter equalization, it is determined that the next equalization is required based on the quality assessment requirements of the local device, the current transmission rate needs to be switched to the lowest transmission rate or 2.5G rate to negotiate information exchange with the other device to confirm the parameters that need to be equalized.
[0051] Optionally, in the above steps, before respectively obtaining the bit error rates corresponding to the at least two equalization parameters, the transmission rate needs to be switched to a data transmission rate supported by the negotiated transmission protocol version.
[0052] Specifically, in the above steps, obtaining the bit error rate corresponding to the equalization parameter specifically includes: adjusting the equalization parameter of the transmitting end of the opposite device; based on the adjusted equalization parameter, performing pseudo-random binary sequence detection on the IB protocol link to obtain the bit error rate corresponding to the adjusted equalization parameter; the bit error rate is used to characterize the data transmission quality of the IB protocol link.
[0053] S102: Select a target equalization parameter for data transmission according to the bit error rates respectively corresponding to the at least two equalization parameters.
[0054] Specifically, in step S102, the introduction of PRBS detection is mainly that the two IB devices send PRBS code streams. Through PRBS detection, the bit error rate of the current link can be intuitively judged, and the bit error rate can be used to judge the quality of the current link. PRBS bit error rate detection is mainly through: (the number of bit errors of the data received during PRBS detection) / (the total number of data received during PRBS detection). Therefore, it is only necessary to count the number of bit errors of the data received during PRBS detection, and compare the number of bit errors with the set threshold to intuitively judge whether the bit error rate of the current link meets expectations.
[0055] Optionally, in the above steps, the time for PRBS to detect the bit error rate is proportional to the time for a single parameter equalization judgment. Therefore, on the one hand, the PRBS detection time is increased by negotiating to increase the time for both parties to do a single parameter equalization; on the other hand, the time for detecting PRBS is increased by modifying the proportion of PRBS detection in the single parameter equalization time. And the set PRBS bit error threshold can also be modified by configuration. Therefore, these two methods can be used to set the expected bit error rate after the final parameter equalization according to the current link environment.
[0056] Optionally, the method further includes: after completing the negotiation with the opposite device, adjusting the equalization parameters of the transmitting end of the local device according to the negotiated transmission protocol version. Specifically, if the negotiated transmission protocol version is the first version, then adjusting each equalization parameter; if the negotiated transmission protocol version is not the first version, then adjusting the current equalization parameter that needs to be adjusted, and determining whether the next transmission parameter needs to be adjusted according to the quality evaluation requirements of the local device.
[0057] In order to better illustrate the IB protocol link parameter balancing method provided in the above embodiment, a specific embodiment will be used for illustration below. The IB protocol link of this embodiment is a high-speed connection channel between two IB devices, and both IB devices have their own transmitting end and receiving end. Balancing means: the receiving end of the device at this end will adjust the balancing parameters of the transmitting end of the device at the other end, and the receiving end of the device at the other end will adjust the balancing parameters of the transmitting end of the device at this end. There are a total of 16 parameters for the IB protocol link, namely Preset0~Preset15, each representing a parameter compensation value.
[0058] The IB protocol link parameter equalization method of this embodiment is executed by the local device, including parameter equalization in the sending direction and parameter equalization in the receiving direction.
[0059] The parameter equalization process in the sending direction is as follows: Figure 2 As shown, the following steps are included.
[0060] First, it will be determined that the current state is due to entering the PHY_TEST state and the transmitter parameters of the local device need to be adjusted. The PHY_TEST state is the state specified in the EQ process of the IB protocol. Figure 2 In the TEST_PRESET state, the test mode will be entered, and the sender parameters can be modified as needed multiple times.
[0061] If the adjustment parameters need to be sent due to entering the PHY_TEST state, then wait for the local device and the peer device to negotiate and interact, obtain the parameters to be adjusted and set them on the local sender. At this stage, the peer device can adjust the local sender parameters multiple times until the local device notifies that the negotiation is completed, and then the adjustment of the sending parameters is completed.
[0062] If it is not because PHY_TEST needs to adjust the transmission parameters, then it is necessary to adjust the transmission parameters when entering the balancing stage. At this time, it will be determined whether the transmission protocol version supported by the local device and the opposite device is the first version after negotiation. The transmission protocol version here takes the TS3 version set by the IB protocol as an example, and the first version takes the set REV0 version as an example. It is necessary to determine whether the TS3 version is the REV0 version that only supports 10G and below or the version that supports 10G and above.
[0063] If TS3 is the version of REV0, it will wait for the local device to complete the speed cut, and then adjust the local transmission parameters to the parameters of P0 to P15 in sequence. After each parameter adjustment, it will wait for a period of time, and then adjust the local device's transmission end to the next set of parameters. After all 16 sets of parameters are adjusted, the adjustment of the transmission parameters ends.
[0064] If TS3 is REV1 or above, then wait for the local device and the peer device to negotiate and interact, obtain the parameters to be adjusted and set them on the sender of the local device. At this stage, the sender parameters can be adjusted multiple times until the upper layer notifies that the parameter adjustment is completed, and then the adjustment of the send parameters is completed.
[0065] The parameter equalization process in the receiving direction is as follows: Figure 3 As shown, the following steps are included.
[0066] First determine the TS3 version used in the negotiation.
[0067] When the version of TS3 is REV0, after waiting for the other device to switch to the target rate, according to the IB protocol, the negotiation interaction is at 2.5G rate. After the negotiation is completed, it will switch to the target rate (non-2.5G rate) to adjust the link quality parameters, and initiate RX equalization (receiver equalization). In the RX equalization stage, the parameters of the RX receiver will be adjusted to try to restore the received data to an acceptable range and evaluate the current link quality. After completing RX equalization, it will determine whether to perform PRBS detection. The PRBS detection introduced here is mainly because both parties send PRBS code streams at this stage. Through PRBS detection, the bit error rate of the current link can be intuitively judged, and the bit error rate can be used as another means to judge the link quality.
[0068] PRBS bit error rate detection is mainly through: (number of bit errors in the received data during PRBS detection) / (total number of data received during PRBS detection). Therefore, it is only necessary to count the number of bit errors in the received data during PRBS detection, and compare the number of bit errors with the set threshold to intuitively determine whether the bit error rate of the current link meets expectations. In addition, the time for PRBS to detect the bit error rate is proportional to the time for a single EQ judgment. Therefore, on the one hand, the PRBS detection time is increased by negotiating to increase the time for both parties to do a single EQ; on the other hand, the time for detecting PRBS is increased by modifying the proportion of PRBS detection in the single EQ time. And the set PRBS bit error threshold can also be modified through configuration. Therefore, these two methods can be used to set the expected bit error rate after the final EQ according to the current link environment. After RX equalization and PRBS detection are completed, it will be determined whether the number of RX equalization has reached 16 times (traversing the transmission parameters of the opposite end sender P0 to P15). If it has not reached 16 times, the RX equalization and PRBS detection operations are repeated; if it has reached 16 times, the parameters with the best link quality are selected as the parameters used in the next stage, and RX equalization is terminated.
[0069] When the version of TS3 is not REV0, after waiting for the opposite device to complete the speed cut, RX equalization and PRBS detection will be initiated (the detection method is the same as REV0). After the detection is completed, the local device will inform whether the next RX equalization is required. If so, it will return to the 2.5G rate to negotiate information exchange, and then wait for the opposite device to cut the speed to the target rate and perform the next RX equalization process. After completing multiple RX equalizations (the specific number can be configured by software according to actual conditions), the overall RX equalization process ends, and the results after multiple equalizations are compared to select the optimal parameters as the parameters for the next stage.
[0070] In summary, the IB protocol link parameter equalization method provided in the embodiment of the present application is applied to the IB protocol link, which is a high-speed connection channel between two IB devices, and the two IB devices include a local device and a peer device, and each IB device includes a transmitting 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, the PRBS bit error rate detection is introduced to judge the link quality of the IB protocol link, and the optimal equalization parameters are selected as the transmission parameters of the data transmission according to the PRBS bit error rate. Before performing the PRBS bit error rate detection, it is first necessary to complete the parameter equalization of the IB protocol link, perform the PRBS bit error rate detection of the IB protocol link for the equalized parameters, and select the parameters corresponding to the optimal bit error rate as the parameters of the data transmission. The parameter balancing of the IB protocol link is, on the one hand, to set the parameters of the local transmitter to the parameter values desired by the opposite receiver. On the other hand, the opposite receiver informs the local transmitter of the parameters to be set through negotiation. Specifically, the receiver of the local device will adjust the balancing parameters of the transmitter of the opposite device, and the receiver of the opposite device will adjust the balancing parameters of the transmitter of the local device. Specifically, according to the negotiated data transmission protocol version, choose to balance all parameters of the transmitter of the opposite device, or balance a certain parameter and choose whether to balance the next parameter according to the quality assessment requirements of the local device. After completing a parameter balancing, perform PRBS bit error rate detection on the current IB protocol link to obtain the bit error rate corresponding to the current parameter. After completing all the parameters that need to be balanced, compare the bit error rates corresponding to these parameters. The corresponding link quality can be obtained through the bit error rate, and the optimal parameter can be selected for data transmission. The IB protocol link parameter equalization method of the present application supports parameter equalization adjustment using different versions of the data transmission protocol version, and judges the link quality through the PRBS error detection of the IB protocol link itself. It does not rely solely on the FOM value evaluated by the analog circuit, and can more directly and accurately judge the data transmission quality of the IB protocol link.
[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 embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0072] The embodiment of the present application provides an IB protocol link parameter equalization device, Figure 4: is a structural diagram of an IB protocol link parameter equalization device provided in an embodiment 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 a peer device. The device is executed by the local device. The device includes:
[0073] The bit error rate acquisition module 401 is used to acquire the bit error rates corresponding to the at least two equalization parameters respectively according to the negotiated transmission protocol version after completing the negotiation with the opposite end device;
[0074] A target parameter selection module 402, configured to select a target equalization parameter for data transmission according to the bit error rates respectively corresponding to the at least two equalization parameters;
[0075] The obtaining the bit error rate corresponding to the equalization parameter includes:
[0076] Adjusting the equalization parameters of the transmitting end of the opposite end device to obtain the adjusted equalization parameters;
[0077] Based on the adjusted equalization parameter, a pseudo-random binary sequence detection is performed on the IB protocol link to obtain a bit error rate corresponding to the adjusted equalization parameter; the bit error rate is used to characterize the data transmission quality of the IB protocol link.
[0078] In an optional implementation manner, the bit error rate acquisition module 401 is specifically used to:
[0079] When the negotiated transmission protocol version is the first version, traverse each equalization parameter and obtain the bit error rate corresponding to each equalization parameter respectively; 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 current equalization parameter that needs to be adjusted, obtain the bit error rate corresponding to the current equalization parameter, and determine whether it is necessary to obtain the bit error rate corresponding to the next equalization parameter according to the quality assessment requirements of the local device.
[0080] In an optional implementation, the bit error rate acquisition module 401 is also used for: if it is determined according to the quality assessment requirements of the local device that the bit error rate corresponding to the next equalization parameter needs to be obtained, the current transmission rate is switched to the lowest transmission rate or 2.5G rate to negotiate with the opposite 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 completing the negotiation with the opposite device, adjust the equalization parameters of the sending end of the local device according to the negotiated transmission protocol version.
[0082] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0083] The IB protocol link parameter equalization device in this 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 memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0084] The present application also provides a computer device having the above Figure 4 The download process control device shown.
[0085] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present application, such as Figure 5 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display graphic information in a graphical user interface on an external input / output device (such as a display device coupled to an interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.
[0086] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0087] The memory 20 stores instructions executable by 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 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Embodiments of the above-mentioned 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 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above 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 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0091] The embodiment of the present application also provides a computer-readable storage medium. The above method according to the embodiment of the present application can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or 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 a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0092] Part of the present application may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present application through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes but is not limited to source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction 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 accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. An IB protocol link parameter equalization method, characterized in that: 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 performed by the local device, and the method includes: After completing the negotiation with the opposite end device, obtaining, according to the negotiated transmission protocol version, bit error rates corresponding to at least two equalization parameters respectively; Selecting a target equalization parameter for data transmission according to the bit error rates respectively corresponding to the at least two equalization parameters; The obtaining the bit error rate corresponding to the equalization parameter includes: Adjusting equalization parameters of a transmitting end of the opposite end device; Based on the adjusted equalization parameters, a pseudo-random binary sequence detection is performed on the IB protocol link to obtain a 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.
2. The method according to claim 1, characterized in that The acquiring, according to the negotiated transmission protocol version, bit error rates corresponding to at least two equalization parameters respectively, 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 respectively; the first version is used to characterize that the transmission rate of the IB protocol link only supports the first transmission rate and below.
3. The method according to claim 2, characterized in that The step of obtaining, according to the negotiated transmission protocol version, bit error rates corresponding to at least two equalization parameters respectively, further comprises: 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 quality assessment requirements of the local device.
4. The method according to claim 3, characterized in that The determining whether it is necessary to obtain a bit error rate corresponding to a next equalization parameter according to the quality assessment requirement of the local device includes: If it is determined according to the quality assessment requirement of the local device that the bit error rate corresponding to the next equalization parameter needs to be obtained, the equalization parameter that needs to be adjusted is determined after negotiation with the opposite device and the local device and the opposite device are switched to the same rate.
5. The method according to claim 1, characterized in that Before respectively obtaining the bit error rates corresponding to the at least two equalization parameters, the method further includes: Waiting for the opposite device to switch to the data transmission rate supported by the negotiated transmission protocol version.
6. The method according to claim 1, characterized in that The method further comprises: After completing the negotiation with the opposite device, the equalization parameters of the sending end of the local device are adjusted according to the negotiated transmission protocol version.
7. The method according to claim 6, characterized in that The step of adjusting the equalization parameters of the transmitting end of the local device includes: If the negotiated transmission protocol version is the first version, traversing and adjusting each equalization parameter; If the negotiated transmission protocol version is not the first version, the current equalization parameter that needs 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.
8. An IB protocol link parameter equalization device, characterized in that: 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 device is executed by the local device, and the device includes: A bit error rate acquisition module, configured to acquire, after completing the negotiation with the opposite end device, the bit error rates corresponding to the at least two equalization parameters according to the negotiated transmission protocol version; A target parameter selection module, configured to select a target equalization parameter for data transmission according to the bit error rates respectively corresponding to the at least two equalization parameters; The obtaining the bit error rate corresponding to the equalization parameter includes: Adjusting the equalization parameters of the transmitting end of the opposite end device to obtain the adjusted equalization parameters; Based on the adjusted equalization parameters, a pseudo-random binary sequence detection is performed on the IB protocol link to obtain a 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.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the IB protocol link parameter equalization method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the IB protocol link parameter equalization method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Wired communication method, device and equipment and readable storage medium
CN113726425A
SATA (Serial Advanced Technology Attachment) signal test method, device and equipment and readable storage medium
CN114328052A
EQ delay reduction method, system and device based on equalization parameters at two ends of link
CN115622846A
Transmitter equalization parameter evaluation method and device
CN115801507A
Using Control Bus Communication to Accelerate Link Negotiation
US20240143518A1