IB Network Transmission Rate Adaptive System and Method

By adopting an IB network transmission rate adaptive system that supports rate encoding and link quality testing scheme in the IB network, the rate adaptive problem between devices is solved, efficient rate matching and link establishment is achieved, system efficiency is improved and implementation difficulty is reduced.

CN118944811BActive Publication Date: 2025-06-10ZHEJIANG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411090410.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2025-06-10
Estimated Expiration
2044-08-09

AI Technical Summary

Technical Problem

The prior art is difficult to effectively solve the problem of network transmission rate adaptation between communication devices in IB networks, resulting in errors in rate matching between devices and inability to connect normally.

Method used

An IB network transmission rate adaptive system is adopted, including a link training module, a data sending module, a data receiving module, a rate adjustment module and a link testing module. Through an ordered set that supports rate encoding and a link quality test scheme, the maximum support rate of both devices is automatically negotiated and matched, and the link quality test is carried out until a stable connection is established.

Benefits of technology

It effectively avoids synchronization mismatch between devices, ensures successful rate matching between devices, improves negotiation and rate matching efficiency in multiple complex rate scenarios, and achieves rate matching without hardware design, saving implementation costs and difficulty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944811B_ABST
    Figure CN118944811B_ABST
Patent Text Reader

Abstract

The present invention discloses an IB network transmission rate adaptive system and method, comprising: a link training module for establishing and maintaining a link; a data sending module for sending a training data sending signal according to the link training module; a data receiving module for receiving and decoding an ordered set sent by the peer from a high-speed interface and obtaining the maximum rate supported by both devices; a rate adjustment module for obtaining corresponding clocks and DRP numbers according to a link rate adjustment signal sent by the link training module and outputting corresponding clocks and DRP configurations to the high-speed interface; a link testing module for sending a pseudo-random code and statistically calculating the bit error rate of the received pseudo-random code after the high-speed interface switches to the maximum rate supported by both ends, and the link testing module also reports the error code test result to the link training module. The IB network transmission rate adaptive system and method of the present invention adopt a rate-encoding ordered set and link quality testing scheme, avoiding the problem of synchronization mismatch with the peer device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of optical fiber communication, and particularly relates to an IB network transmission rate adaptive system and method. Background Art

[0002] In current communication networks, many communication devices support multiple rate modes. For example, IB devices can operate at various rates such as SDR, DDR, QDR, FDR, and EDR. When two or more devices that support multi-rate connection methods attempt to interconnect, a certain method is needed to ensure that the rate states of both sides are the same. For example, the manual method, that is, both sides are forced to work at a certain rate, or the adaptive method, that is, the two devices negotiate to work at a certain rate by themselves.

[0003] There are mainly two existing rate adaptation technologies: one is to sequentially attempt different rates at a fixed time interval. If this method is adopted, when the devices at both ends adopt the same or similar rate switching schemes, it may cause continuous matching misalignment because the devices at both ends always switch rates simultaneously, and they cannot be connected all the time; the other is to obtain the time interval of the level pulse of the information sent by the peer device by designing a dedicated hardware circuit. When this method is used, additional hardware-related chips are required, and there will be certain errors in the reading method, and the efficiency is low.

[0004] Therefore, the prior art has not yet solved the problem of network transmission rate adaptation between communication devices in the IB network well. Summary of the Invention

[0005] The present invention provides an IB network transmission rate adaptive system and method to solve the above-mentioned technical problems, and specifically adopts the following technical solutions:

[0006] An IB network transmission rate adaptive system includes:

[0007] A link training module, used to establish and maintain a link according to a link training state machine;

[0008] A data sending module, used to encode the rates supported by the local device into an ordered set according to the training data sending signal sent by the link training module, and send the ordered set through a high-speed interface;

[0009] A data receiving module, used to receive and decode the ordered set sent by the peer from the high-speed interface, compare the rates supported by the local device and the peer device, obtain the maximum rate supported by both devices, and the data receiving module also reports the maximum rate supported by both devices to the link training module;

[0010] The rate adjustment module stores the clock and DRP configuration scheme, and is used to obtain the corresponding clock and DRP number according to the link rate adjustment signal sent by the link training module, and output the corresponding clock and DRP configuration to the high-speed interface;

[0011] The link test module is used to send a pseudo-random code and count the bit error rate of the received pseudo-random code after the high-speed interface switches to the maximum rate supported by both ends. The link test module also reports the error code test result to the link training module;

[0012] Among them, when the high-speed interface configuration fails the link quality test, the data sending module sends an ordered set to inform the peer end, the link training state machine returns to the initial state, the data sending module continues to encode the new supported rate into the ordered set and send it, the data receiving module decodes and compares to obtain the new maximum rate, and the rate adjustment module attempts to connect and test the link quality with the new clock and DRP configuration until the test passes and the link is established.

[0013] Further, the encoding method of the supported rate in the ordered set sent by the data sending module is that the rate decreases sequentially from the MSB to the LSB. Setting a certain rate corresponding bit to 1 means support, and setting it to 0 means non-support;

[0014] The number of encoding bits of the supported rate in the ordered set sent by the data sending module is greater than or equal to the number of rates supported by both communication devices;

[0015] The data sending module sends a training-related ordered set during link training, sends a test pseudo-random code during link testing, and sends user data after the link is established.

[0016] Among them, the data sending module includes:

[0017] The transmission data selection module is used to select one output from the three-way inputs of ordered set data, pseudo-random code test data, and user data according to the signal of the link training module and send it to the high-speed interface;

[0018] The rate encoding module is used to generate the rate supported by this device, encode it into the ordered set and send it.

[0019] Further, the data receiving module compares the supported rates of the local end and the peer end, and uses the method of bitwise AND or priority query to find out the maximum rate supported by both ends;

[0020] The data receiving module receives and processes the training-related ordered set during link training, receives the test pseudo-random code during link testing, and receives and processes user data after the link is established.

[0021] Further, the data receiving module includes:

[0022] A negotiation rate selection module, configured to obtain the highest rate supported by both ends according to the supported rate of the local device and the supported rate of the peer device input, and output it to the link training module;

[0023] A rate decoding module, configured to decode the supported rate of the peer received in the ordered set and send it to the negotiation rate selection module for processing;

[0024] A received data selection module, configured to selectively send the output data of the high-speed interface to the rate decoding module, the link test module or user logic according to the signal of the link training module.

[0025] Further, the rate adjustment module includes a DRP configuration ram and a DRP state machine.

[0026] Further, the DRP configuration ram stores five DRP configuration numbers and schemes of SDR, DDR, QDR, FDR and EDR;

[0027] After the DRP state machine is reset, it outputs an SDR clock and DRP configuration to the high-speed interface.

[0028] The DRP state machine is configured to query the stored DRP configuration numbers and schemes according to the link rate adjustment signal sent by the link training module, write specific configuration data to the DRP address of the high-speed interface according to the scheme, select a specific clock, and reset the high-speed interface after completion.

[0029] Further, the link test module includes a pseudo-random code generation module and a pseudo-random code detection module.

[0030] Further, the pseudo-random code generation module generates a pseudo-random code by using an LFSR PRBS11 or LFSR PRBS23 strategy and sends it to the high-speed interface through the data sending module;

[0031] Further, the pseudo-random code detection module correspondingly uses an LFSR PRBS11 or LFSR PRBS23 to detect the pseudo-random code received from the data receiving module and outputs the number of error codes;

[0032] The pseudo-random code detection module determines that the bit error rate requirement for successfully establishing a link is 1E-14.

[0033] An IB network transmission rate adaptation method, applied to the foregoing IB network transmission rate adaptation system, the IB network transmission rate adaptation method includes the following steps:

[0034] S100: Power on and reset the devices of both communication parties, and instruct the rate adjustment module to configure the high-speed interface rate to SDR, and send ordered sets to each other to complete the preparatory work before rate negotiation such as line matching and reversal;

[0035] S200: Encode the rates supported by their respective devices into the training data ordered set by both communication parties, and instruct the data sending module to send it to the opposite end through the high-speed interface;

[0036] S300: The data receiving module obtains the rate encoding supported by the opposite end according to the received ordered set of the opposite end, compares the rate encoding supported by the local and the opposite end, and selects the maximum rate supported by both ends and reports it to the link training module;

[0037] S400: The link training module issues the clock and DRP configuration number corresponding to the maximum rate, and instructs the rate adjustment module to output the clock DRP configuration corresponding to the maximum rate to the high-speed interface, and after completion, reset the high-speed interface;

[0038] S500: Instruct the link test module to send a pseudo-random code to the high-speed interface through the data sending module and count the bit error rate of the received pseudo-random code;

[0039] S600: Instruct the rate adjustment module to configure the high-speed interface rate to SDR, and instruct the data sending module to send an ordered set to inform the opposite end device of the link test result;

[0040] S700: After the data receiving module receives the ordered set, the link training module decides whether to establish a link according to the test results of both parties. When the bit error rate meets the requirements, instruct the rate adjustment module to configure the high-speed interface to this rate, and the link is established; when the bit error rate is high, the link training module will cancel the support for the current test rate, the data sending module continues to encode the newly supported rate into the ordered set and send it, the data receiving module decodes and compares to obtain the new maximum rate, and the rate adjustment module uses the new clock and DRP configuration to try to connect and test the link quality until the test passes and the link is established.

[0041] Further, in step S700, if the link training module fails to successfully establish a link, it will cancel the support for the current test rate and start sending ordered sets again for rate negotiation.

[0042] The beneficial effect of the present invention lies in the provided IB network transmission rate adaptive system and method, which adopt a rate encoding ordered set and a link quality test scheme, avoiding the problem of asynchronous mismatch with the opposite end device. When the opposite end device and this device adopt the same or similar rate adaptive rate, it can efficiently ensure the successful synchronous matching connection.

[0043] The advantages of the present invention also lie in the provided IB network transmission rate adaptive system and method, which make full use of the link training information provided by the IB protocol and improve the efficiency of negotiation and rate matching in complex scenarios with multiple rates. In addition, this solution can achieve efficient rate matching without the need for relevant hardware design, saving implementation costs and reducing implementation difficulties. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0045] Figure 1 Schematic structural diagram of the IB network transmission rate adaptive system of the present application;

[0046] Figure 2 Schematic diagram of the state transition of the link training state machine of the IB network transmission rate adaptive system of the present application;

[0047] Figure 3 Schematic structural diagram of the data sending module of the IB network transmission rate adaptive system of the present application;

[0048] Figure 4 Schematic diagram of the supported rate encoding of the IB network transmission rate adaptive system of the present application;

[0049] Figure 5 Schematic structural diagram of the data receiving module of the IB network transmission rate adaptive system of the present application;

[0050] Figure 6 Method for obtaining the maximum rate supported at both ends of the IB network transmission rate adaptive system of the present application;

[0051] Figure 7 Schematic diagram of the DRP configuration ram data structure of the IB network transmission rate adaptive system of the present application;

[0052] Figure 8 Schematic diagram of the DRP state machine of the IB network transmission rate adaptive system of the present application;

[0053] Figure 9 Schematic diagram of the DRP data processing process of the IB network transmission rate adaptive system of the present application;

[0054] Figure 10 Schematic diagram of the flow of the IB network transmission rate adaptive method of the present application. Detailed implementation manners

[0055] The embodiments of the present application will be described in detail below. The examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements with the same or similar functions throughout. The embodiments described below by referring to the accompanying drawings are exemplary and are intended to explain the present application, but should not be construed as limiting the present application.

[0056] Obviously, the embodiments described in this case are only a part of the embodiments of the present application, rather than all the embodiments. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application and without conflict with each other, the embodiments in the present application and the features in the embodiments can be combined with each other. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts should fall within the scope of disclosure and protection of the present application.

[0057] In addition, the terms "first", "second", "S100", "S200", etc. in the description, claims and drawings of the present application are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application described here can be implemented in an order other than those described here. At the same time, the terms "include" and "have" and any variations thereof in the present application are intended to cover non-exclusive inclusion. Unless otherwise clearly defined and limited, the terms "set", "arrange", "install", "connect", "link" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be the connection inside two components, or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, and it can be the connection inside two components. For those of ordinary skill in the art, the specific meanings of the above terms in this case can be understood according to the specific circumstances and in combination with the prior art.

[0058] The "rate" described in the present application refers to the line rate specified in the IB protocol, including SDR (2.5 Gb / s), DDR (5 Gb / s), QDR (10 Gb / s), FDR (14 Gb / s), EDR (25 Gb / s), etc. Each IB device supports several of them, and each IB device is required to support SDR.

[0059] The "ordered set" described in the present application is defined by Ordered-Set in the IB protocol and is used for IB link training and clock skew compensation.

[0060] The "ordered set containing support encoding" described in this application refers to the ordered set TS3 with special meanings in the IB protocol series, which consists of support rate, link test other information, etc.

[0061] The "pseudo-random code" described in this application refers to the pseudo-random binary sequence PRBS, which is a commonly used disguised data for testing the performance and errors of high-speed serial systems. It is used in link quality testing and has orders of 11 and 23.

[0062] The "DRP" described in this application refers to the dynamically reconfigurable port, which is defined by Xilinx's transceiver and includes the channel primitive port of the configurable CPLL and the common primitive port of the configurable QPLL.

[0063] It should be noted that the rate, ordered set, pseudo-random code, and DRP include but are not limited to the several types listed above.

[0064] Such as Figure 1 As shown in the overall structural schematic diagram of an IB network transmission rate adaptive system of this application. This system can be implemented inside the FPGA and is at least set in one of the devices on both communication sides for rate adaptive adaptation between the two sides. Specifically, this system includes: a link training module, a data sending module, a data receiving module, a rate adjustment module, and a link test module. Among them, after reset or receiving a retraining instruction transmitted from the upper layer, the link training module configures the high-speed interface rate to SDR for the rate adjustment module, resets the data sending module to complete preparations such as line matching and reversal, and then sends the ordered set TS3 containing support rate encoding. The data receiving module of the other device decodes by receiving the ordered set to obtain the rate supported by the opposite end, and selects the highest rate supported by both ends to report to the link training module. The link training module issues the clock and DRP configuration number corresponding to the maximum rate, and orders the rate adjustment module to output the clock DRP configuration corresponding to the maximum rate to the high-speed interface. After completion, the high-speed interface is reset. After the high-speed interface reset is completed by the link training module, the link training module orders the link test module to send a pseudo-random code. The link test module of the other device obtains the link bit error rate by receiving and verifying the pseudo-random code and reports it to the link training module. The link training module orders the data sending module to send an ordered set to inform the opposite end device of the link test result, and the link training module decides whether to establish a link based on the test results of both sides.

[0065] The link training module is used to control the link initialization process specified by the IB protocol and maintain the same state of the link process at both ends. As a preferred implementation, the link training module includes a link training state machine and a timing module. In the implementation of this application, a finite state machine is used for control, but this application does not limit its implementation method. Such as Figure 2As shown in the figure, the link training state machine consists of five states: IDLE, CFGENHANCE, WAITTEST, TEST, and LINKUP. When the link training state machine receives a reset or retraining instruction from the upper layer, it enters the IDLE state, resets the data sending module, and configures the high-speed interface rate of the rate adjustment module to SDR. After the data sending module completes the line matching and reversal operations, it enters the CFGENHANCE state, causes the data sending module to send an ordered set containing the supported rate, and starts the timing module to count time. When the time reaches 5 us, if it receives reports from the data receiving module that both ends support the maximum rate, it enters the WAITTEST state, issues the clock and DRP configuration numbers corresponding to this rate, causes the rate adjustment module to output the clock DRP configuration corresponding to the maximum rate to the high-speed interface, and restarts the timing module to count time; otherwise, it maintains the CFGENHANCE state, restarts the timing, and causes the data sending module to continuously send the ordered set containing the supported rate again. After the time reaches 5 us in the WAITTEST state, it enters the TEST state, causes the link test module to send a pseudo-random code test, and restarts the timing module to count time. When the time reaches 100 ms, it enters the CFGENHANCE state, starts the timing module to count time, causes the rate adjustment module to configure the high-speed interface rate to SDR, causes the link test module to stop the test. If the link test quality meets the requirements, it causes the data sending module to send the previously sent ordered set to inform the peer end that it can enter the LINKUP state; otherwise, it causes the data sending module to send an ordered set containing a new supported rate code to inform the peer end that re-negotiation training is required. If it receives the previously sent ordered set, it enters the LINKUP state, causes the rate adjustment module to configure the high-speed interface to the test rate, and the data sending module and the data receiving module switch to user data; if it receives an ordered set containing a new supported rate code, it enters the WAITTEST state after the time reaches 5 us and repeats the process. The timing module is controlled by the link training state machine, counts the input clock edges, and the timing time can be obtained by multiplying the known clock period by the count value. The timing of the timing module serves as a condition for the state transition of the link training state machine, ensuring that both ends have sufficient time to send and receive ordered sets and pseudo-random codes, and to configure the high-speed interface, avoiding synchronization mismatch problems caused by inconsistent pacing of rate switching and link quality testing between the two parties.

[0066] As Figure 3 shown, as a preferred implementation, the data sending module includes a sending data selection module and a rate encoding module. Among them, the sending data selection module can select one output from the three-way inputs of ordered set data, pseudo-random code test data, and user data according to the signal of the link training module and send it to the high-speed interface. The rate encoding module is used to generate the rate encoding supported by this device into the ordered set and send it. As Figure 4As shown, in the embodiments of the present application, a method is adopted in which each bit corresponds to a rate, and the number of encoded bits generated simultaneously needs to be greater than or equal to the number of supportable rates.

[0067] For example, if the device supports two rates, SDR and DDR, the rate encoding in the ordered set is 5’b00011.

[0068] If the device supports three rates, SDR, QDR, and FDR, the rate encoding in the ordered set is 5’b01101.

[0069] As Figure 5 shown, as a preferred embodiment, the data receiving module includes a received data selection module, a rate decoding module, and a negotiated rate selection module. Among them, the received data selection module can select and send the output data of the high-speed interface to the rate decoding module, the link test module, or the user logic according to the signal of the link training module. The rate decoding module is used to decode the supported rate of the peer end in the received ordered set and send it to the negotiated rate selection module for processing. The negotiated rate selection module obtains the highest rate supported by both ends according to the supported rate of the local device and the supported rate of the peer end input, and outputs it to the link training module.

[0070] Among them, in the examples of the present application, two methods are provided for the data receiving module to illustrate the possibility of obtaining the highest rate supported by both ends. Therefore, the present application does not limit the rate obtaining means. It can be seen that those skilled in the art can adopt other technical means to implement according to the actual situation. Therefore, any known technical means that can perform the maximum rate obtaining, without departing from the inventive concept of the present solution, the changed implementation schemes made are all within the disclosure scope of the present application.

[0071] Method 1: Bitwise AND of corresponding bits

[0072] As Figure 6 (a) shown, for example, if the ordered set uses 8-bit supported rate encoding, and the local device supports SDR, QDR, and EDR, then the supported rate encoding in the ordered set it sends is 8’b0001_0101. If the peer device supports SDR, DDR, and QDR, then the supported rate encoding in the ordered set it sends is 8’b0000_0111. After the bitwise AND of the corresponding bits of the two, 8’b0000_0101 is obtained. Looking up the highest bit (bit2) set to 1 in the result, the highest rate supported by both ends can be obtained as QDR.

[0073] Method 2: Priority query

[0074] As Figure 6As shown in (b), for example, if the ordered set uses 8-bit support rate encoding, and the local device supports SDR, QDR, and EDR, the support rate encoding in the ordered set it sends is 8’b0001_0101. If the peer device supports SDR, DDR, and QDR, the support rate encoding in the ordered set it sends is 8’b0000_0111. According to the priority of the support rates from high to low in the local device’s support rates, query the support situation of the corresponding rates of the peer device, and the highest rate supported by both ends can be obtained as QDR.

[0075] As a preferred implementation, the rate adjustment module includes a DRP configuration ram and a DRP state machine. The DRP configuration ram and the DRP state machine work together. The former stores the DRP address and data, and the latter reads the former and accesses the high-speed interface through the DRP address to read and write data.

[0076] For example, after the rate adjustment module obtains the maximum rate supported by both ends, it inputs the corresponding clock and the corresponding DRP configuration obtained into the high-speed interface; for example, inside the FPGA, different rates of the high-speed interface (GT) correspond to different clocks and DRP parameters input into the GT core. For example, if this device supports three rates of SDR, DDR, and QDR, there are corresponding clocks and DRP parameters for SDR, DDR, and QDR. When the maximum support rate value of both ends is SDR, input the clock corresponding to the 2.5G rate to the GT and input the DRP parameters corresponding to 2.5G; when the maximum support rate of both ends is DDR, input the clock corresponding to the 5G rate to the GT and input the DRP parameters corresponding to 5G; the same applies to QDR.

[0077] As Figure 7 shown, the DRP configuration ram stores the DRP address and data corresponding to each supported rate. The ram is divided into several address blocks, and each address block corresponds to a supported rate. In the address block, each address corresponds to a DRP entry, and each entry contains a DRP address, a data clear mask, and a data set mask.

[0078] As Figure 8 shown, the DRP state machine consists of four states: IDLE, RAM_READ, DRP_READ, DRP_WRITE, and RESET. After the initial reset, the state machine is in the IDLE state. When receiving the configuration signal from the link training module, it enters the RAM_READ state and reads the DRP configuration ram at the corresponding address according to the configured rate. After reading the ram data, it enters the DRP_READ state and reads the current DRP configuration according to the DRP address in the ram data. After reading the current DRP configuration, it enters the DRP_WRITE state and clears and sets specific bit positions according to the data clear mask and data set mask in the ram data (such as Figure 9as shown in the figure), and write the processed data back to the DRP address. If the written-back data is the last data of the configured rate, enter the RESET state, set the clock of the high-speed interface and reset the high-speed interface, and enter the IDLE state after the reset is completed; otherwise, enter the RAM_READ state and continue to read the next address of the DRP configuration ram.

[0079] As a preferred implementation, the link test module includes a pseudo-random code generation module and a pseudo-random code detection module. The pseudo-random code generation module generates a pseudo-random code through the LFSR PRBS11 (generator polynomial coefficient 201) or LFSR PRBS23 (generator polynomial coefficients 0C0801, 4C0001, 041041, 040001) strategy and sends it to the high-speed interface. When the test rate is SDR, DDR or QDR, select LFSR PRBS11. When the test rate is FDR or EDR, select LFSR PRBS23. The pseudo-random code detection module detects the pseudo-random code received by the high-speed interface through the LFSR PRBS11 or LFSR PRBS23 strategy. When the test rate is SDR, DDR or QDR, select LFSR PRBS11. When the test rate is FDR or EDR, select LFSR PRBS23. The pseudo-random code detection module counts the number of received pseudo-random codes and the number of error codes to obtain the bit error rate and reports it to the link training module.

[0080] Thus, when this device and the peer device both support different rates at the same time, negotiation and matching can be carried out by exchanging ordered sets containing supported rate encodings at the SDR initial rate; that is, in practical applications, when this device and the peer device both support high rate A and low rate B, through the ordered sets encoding supported rates A and B, depending on the actual situation, rate A can be preferentially matched when the link environment quality of rate A is good, or rate B can be matched when the link environment quality of rate A is poor, so as to ensure that both parties can achieve rate matching.

[0081] At the same time, a link state synchronization scheme is adopted. When the peer device also adopts a similar or the same adaptive scheme, the problem of synchronization mismatch caused by inconsistent change paces of rate switching and link quality testing between the two parties can be avoided.

[0082] Corresponding to the IB network transmission rate adaptive system of this application, this application also provides an IB network transmission rate adaptive method, as Figure 10 shown, and its steps include:

[0083] S100: The communication devices of both parties are powered on and reset. The rate adjustment module configures the high-speed interface rate to SDR, sends ordered sets to each other, and completes the preparatory work before rate negotiation such as line matching and reversal;

[0084] S200: The two communication parties encode the rates supported by their respective devices into the training data ordered set, and let the data sending module send it to the peer through the high-speed interface;

[0085] S300: The data receiving module obtains the rate encoding supported by the peer according to the received ordered set from the peer, compares the rate encodings supported by the local and the peer, and selects the maximum rate supported by both ends to report to the link training module;

[0086] S400: The link training module issues the clock and DRP configuration number corresponding to the maximum rate, and let the rate adjustment module output the clock DRP configuration corresponding to the maximum rate to the high-speed interface, and reset the high-speed interface after completion;

[0087] S500: Let the link test module send a pseudo-random code to the high-speed interface through the data sending module and count the bit error rate of the received pseudo-random code;

[0088] S600: Let the rate adjustment module configure the rate of the high-speed interface to SDR, and let the data sending module send an ordered set to inform the peer device of the link test result;

[0089] S700: After the data receiving module receives the ordered set, the link training module decides whether to establish the link according to the test results of both parties. When the bit error rate meets the requirements, let the rate adjustment module configure the high-speed interface to this rate and the link is established; when the bit error rate is high, the link training module will cancel the support for the current test rate, the data sending module continues to encode the new supported rate into the ordered set and send it, the data receiving module decodes and compares to obtain the new maximum rate, and the rate adjustment module uses the new clock and DRP configuration to try to connect and test the link quality until the test passes and the link is established. In step S100, the rate adjustment module configures the high-speed interface to the SDR rate after reset.

[0090] The specific structure and logic of the modules in the above steps refer to the aforementioned IB network transmission rate adaptive system.

[0091] Among them, in step S200, for the data sending module, the encoding method of the supported rates in the sent ordered set is that from the MSB to the LSB, the rates decrease in turn. When a certain rate corresponds to a bit being set to 1, it means support, and being set to 0 means no support.

[0092] Among them, in step S200, for the data sending module, the number of encoding bits of the supported rates in the sent ordered set is greater than or equal to the number of rates supported by both communication devices.

[0093] Among them, in step S300, for the data receiving module, when comparing the rates supported by the local and the peer, the corresponding bits are ANDed to obtain the maximum rate supported by both ends.

[0094] Among them, in step S300, the data receiving module compares the local and peer supported rates, and uses the priority query method to find the maximum rate supported by both ends.

[0095] Among them, in step S400, the rate adjustment module realizes rate adjustment by selecting a specific clock and writing a specific configuration to the DRP address of the high-speed interface.

[0096] Among them, in step S500, the link test module, the sending pseudo-random code generation strategy is LFSR PRBS11 (generator polynomial coefficient 201).

[0097] Among them, in step S500, the link test module, the sending pseudo-random code generation strategy is LFSR PRBS23 (generator polynomial coefficients 0C0801, 4C0001, 041041, 040001).

[0098] Among them, in step S500, the link test module, the method for detecting bit errors in the received pseudo-random code is LFSR PRBS11 (generator polynomial coefficient 201).

[0099] Among them, in step S500, the link test module, the method for detecting bit errors in the received pseudo-random code is LFSR PRBS23 (generator polynomial coefficients 0C0801, 4C0001, 041041, 040001).

[0100] Among them, in step S700, the link training module, the bit error rate requirement for determining successful link establishment is 1E-14.

[0101] Among them, in step S700, if the link training module fails to successfully establish a link, it will cancel the support for the current test rate and restart sending ordered sets for rate negotiation.

[0102] In summary, through the IB network transmission rate adaptive system and method provided by this application, by adopting the supported rate coding ordered set and link quality test scheme, the problem of synchronization mismatch with the peer device is avoided. When the peer device and this device adopt the same or similar rate adaptation rate, the synchronization matching connection can be efficiently ensured to succeed. At the same time, compared with the prior art, this scheme makes full use of the link training information provided by the IB protocol, improving the negotiation and rate matching efficiency in complex scenarios of multiple rates. In addition, compared with the prior art, this scheme can achieve efficient rate matching without relevant hardware design, saving implementation costs and reducing implementation difficulties.

[0103] The preferred embodiments of the present application disclosed above are only used to help illustrate the present application. The preferred embodiments do not describe all details in detail, nor do they limit the invention to the specific implementation manners described. Obviously, many modifications and variations can be made according to the content of this specification. These embodiments are selected and specifically described in this specification to better explain the principle and practical application of the present application, so that those skilled in the art can well understand and utilize the present application. The present application is only limited by the claims and their full scope and equivalents. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.

[0104] Those skilled in the art can understand that in addition to implementing the systems, devices, and their respective modules provided by the present application in the form of pure computer-readable program codes, the method steps can be logically programmed to enable the systems, devices, and their respective modules provided by the present application to be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. to achieve the same program. Therefore, the systems, devices, and their respective modules provided by the present application can be regarded as a kind of hardware component, and the modules included therein for implementing various programs can also be regarded as the structures within the hardware component; the modules for implementing various functions can also be regarded as either software programs for implementing the methods or the structures within the hardware component.

[0105] In addition, all or part of the steps in the methods of the above embodiments can be completed by a program instructing relevant hardware. The program is stored in a storage medium, including several instructions for enabling a single-chip microcomputer, a chip, or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, optical disks, and other various media that can store program codes.

[0106] The basic principles, main features, and advantages of the present application have been shown and described above. Those skilled in the art should understand that the above embodiments do not limit the present application in any form. Any technical solutions obtained by using equivalent substitutions or equivalent transformations fall within the protection scope of the present application.

Claims

1. An IB network transmission rate adaptive system, characterized in that: include: A link training module, used for establishing and maintaining a link according to a link training state machine; A data sending module, used for sending a signal according to the training data sent by the link training module, encoding the rate supported by the local device into an ordered set, and sending the ordered set through a high-speed interface; A data receiving module, used to receive and decode the ordered set sent by the opposite end from the high-speed interface, compare the supported rates of the local device and the opposite end device, and obtain the maximum rate supported by both devices at both ends. The data receiving module also reports the maximum rate supported by both devices at both ends to the link training module; A rate adjustment module stores a clock and DRP configuration scheme, and is used to obtain a corresponding clock and DRP number according to a link rate adjustment signal sent by the link training module, and output the corresponding clock and DRP configuration to the high-speed interface; A link test module, which is used to send a pseudo-random code and count the bit error rate of the received pseudo-random code after the high-speed interface is switched to the maximum rate supported by both ends, and the link test module also reports the bit error test result to the link training module; Among them, when the high-speed interface configuration fails the link quality test, the data sending module sends an ordered set to inform the other end, the link training state machine returns to the initial state, the data sending module continues to encode the new supported rate into the ordered set and sends it, the data receiving module decodes and compares to obtain a new maximum rate, and the rate adjustment module uses the new clock and DRP configuration to try to connect and test the link quality until the test passes the link establishment.

2. The IB network transmission rate adaptive system according to claim 1, characterized in that: The encoding method of the supported rate in the ordered set sent by the data sending module is that the rate is reduced in sequence from MSB to LSB, and the bit position corresponding to a certain rate is 1 to indicate support, and 0 to indicate unsupport; The number of coding bits of the ordered set supporting rates sent by the data sending module is greater than or equal to the number of rates that can be supported by both communication devices; The data sending module sends a training-related ordered set when the link is trained, sends a test pseudo-random code when the link is tested, and sends user data after the link is established.

3. The IB network transmission rate adaptive system according to claim 1, characterized in that: The data sending module comprises: A sending data selection module, used for selecting one output from the three inputs of ordered set data, pseudo-random code test data and user data according to the signal of the link training module and sending it to the high-speed interface; The rate encoding module is used to generate the rate encoding supported by this device into an ordered set and send it.

4. The IB network transmission rate adaptive system according to claim 1, characterized in that: The data receiving module compares the supported rates of the local end and the opposite end, and uses the corresponding phase and or priority query method to find out the maximum rate supported by both ends; The data receiving module receives and processes the training-related ordered set when the link is trained, receives the test pseudo-random code when the link is tested, and receives and processes the user data after the link is established.

5. The IB network transmission rate adaptive system according to claim 1, characterized in that: The data receiving module comprises: A negotiation rate selection module, used to obtain the highest rate supported by both ends according to the input local device supported rate and the opposite device supported rate, and output it to the link training module; A rate decoding module, used for decoding the peer supported rate in the received ordered set and sending it to the negotiation rate selection module for processing; The receiving data selection module selects and sends the output data of the high-speed interface to the rate decoding module or the link testing module according to the signal of the link training module.

6. The IB network transmission rate adaptive system according to claim 1, characterized in that: The rate adjustment module includes a DRP configuration ram and a DRP state machine.

7. The IB network transmission rate adaptive system according to claim 6, characterized in that: The DRP configuration ram stores five DRP configuration numbers and schemes: SDR, DDR, QDR, FDR and EDR; After the DRP state machine is reset, it outputs the SDR clock and DRP configuration to the high-speed interface; The DRP state machine is used to query the existing DRP configuration number and scheme according to the link rate adjustment signal sent by the link training module, write specific configuration data to the high-speed interface DRP address according to the scheme, select a specific clock, and reset the high-speed interface after completion.

8. The IB network transmission rate adaptive system according to claim 1, characterized in that: The link test module includes a pseudo-random code generation module and a pseudo-random code detection module; The pseudo-random code generation module adopts LFSR PRBS11 or LFSR PRBS23 strategy to generate a pseudo-random code and sends it to the high-speed interface through the data sending module; The pseudo-random code detection module correspondingly adopts LFSR PRBS11 or LFSR PRBS23 to detect the pseudo-random code received from the data receiving module, and outputs the number of bit errors; The pseudo-random code detection module determines that the bit error rate requirement for successfully establishing a link is 1E-14.

9. An IB network transmission rate adaptive method, characterized in that: Applied to the IB network transmission rate adaptation system according to any one of claims 1 to 8, the IB network transmission rate adaptation method comprises the following steps: S100: The devices of both communicating parties are powered on and reset, so that the rate adjustment module configures the high-speed interface rate to SDR, sends ordered sets to each other, and completes the line matching and preparatory work before the reverse rate negotiation; S200: The communicating parties encode the rates supported by their respective devices into an ordered set of training data, and instruct the data sending module to send the data to the other end through a high-speed interface; S300: The data receiving module obtains the opposite end supported rate code according to the received opposite end ordered set, compares the local and opposite end supported rate codes, selects the maximum rate supported by both ends and reports it to the link training module; S400: The link training module sends the clock corresponding to the maximum rate and the DRP configuration number, and instructs the rate adjustment module to output the clock DRP configuration corresponding to the maximum rate to the high-speed interface, and resets the high-speed interface after completion; S500: Instruct the link test module to send a pseudo-random code to the high-speed interface through the data sending module and count the bit error rate of the received pseudo-random code; S600: Instruct the rate adjustment module to configure the high-speed interface rate to SDR, and instruct the data sending module to send an ordered set to inform the peer device of the link test result; S700: After the data receiving module receives the ordered set, the link training module determines whether the link is established based on the test results of both parties. When the bit error rate meets the requirements, the rate adjustment module is instructed to configure the high-speed interface to the rate and the link is established. When the bit error rate is high, the link training module will cancel support for the current test rate, the data sending module will continue to encode the new supported rate into the ordered set for transmission, the data receiving module decodes and compares to obtain a new maximum rate, and the rate adjustment module uses the new clock and DRP configuration to try to connect and test the link quality until the test passes and the link is established.

10. The IB network transmission rate adaptive method according to claim 9, characterized in that: In the step S700, if the link training module fails to successfully establish a link, it will cancel the support for the current test rate and restart sending ordered sets to perform rate negotiation.

Citation Information

Patent Citations

  • Transmission rate adjustment method and network equipment

    CN108242969A

  • FC network transmission rate adaptive system and method

    CN115766604A