IB network transmission rate adaptive system and method

By using the IB network transmission rate adaptive system, which utilizes the link training module and link quality testing, the maximum available rate between devices is automatically negotiated, solving the problems of low efficiency and hardware dependence in existing technologies, and achieving efficient rate matching and synchronous connection.

CN118944811AActive Publication Date: 2024-11-12ZHEJIANG UNIV

Patent Information

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

AI Technical Summary

Technical Problem

The existing adaptive network transmission rate technology between communication devices in the IB network has problems such as low efficiency and the need for additional hardware support. In particular, it is easy to cause continuous mismatch and connection failure when switching device rates.

Method used

It employs a link training module, a data sending module, a data receiving module, a rate adjustment module, and a link testing module. By supporting ordered sets of rate encoding and link quality testing, it automatically negotiates the maximum available rate between devices and uses link training information from the IB protocol for synchronization matching.

Benefits of technology

It achieves efficient rate adaptive matching, avoids device synchronization mismatch issues, improves negotiation efficiency in various rate scenarios, and requires no additional hardware design, thus reducing implementation costs and difficulties.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944811A_ABST
    Figure CN118944811A_ABST
Patent Text Reader

Abstract

The invention discloses an IB network transmission rate adaptive system and method, and the system comprises a link training module which is used for building and maintaining a link; the data sending module sends a signal according to the training data sent by the link training module; the data receiving module receives and decodes the ordered set sent by the opposite end from the high-speed interface, and obtains the maximum rate supported by the devices at the two ends; the rate adjusting module is used for acquiring corresponding clock and DRP serial numbers according to the link rate adjusting signal sent by the link training module and outputting corresponding clock and DRP configuration to a high-speed interface; and the link test module is used for sending the pseudo-random code and counting the bit error rate of the received pseudo-random code after the high-speed interface is switched to the maximum rate supported by the two ends, and the link test module also reports the bit error test result to the link training module. According to the IB network transmission rate adaptive system and method provided by the invention, a scheme supporting rate coding ordered set and link quality testing is adopted, so that the problem of synchronization mismatching with opposite terminal equipment is avoided.
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 in particular relates to an IB network transmission rate adaptive system and method. Background Art

[0002] In the current communication network, many communication devices support multiple rate modes. For example, IB devices can work at multiple rates such as SDR, DDR, QDR, FDR, EDR, etc. When two or more devices that can support multi-rate connection methods try to interconnect, a method is needed to ensure that the rate status of both parties is the same, such as the manual method, which limits both parties to work at a certain rate, or the adaptive method, which means that the devices of both parties negotiate to work at a certain rate.

[0003] There are two main types of existing rate adaptation technologies: one is to try different rates in sequence at a fixed time interval. If this method is used, when the devices at both ends adopt the same or similar rate switching scheme, the devices at both ends may always switch rates at the same time, resulting in continuous mismatch and failure to connect. The other is to obtain the level pulse time interval of the other device sending information by designing a dedicated hardware circuit. When using this method, additional hardware-related chips are required, and there will be certain errors in the reading method, which is inefficient.

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

[0005] The present invention provides an IB network transmission rate adaptation 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, comprising:

[0007] A link training module, used for establishing and maintaining a link according to a link training state machine;

[0008] 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;

[0009] 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;

[0010] 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;

[0011] 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;

[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 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.

[0013] Furthermore, the encoding method of the supported rate in the ordered set sent by the data sending module is that the rates are successively decreased from MSB to LSB, and a bit position corresponding to a certain rate is 1 to indicate support, and 0 to indicate non-support;

[0014] 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;

[0015] 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.

[0016] Wherein, the data sending module includes:

[0017] 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;

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

[0019] Furthermore, the data receiving module compares the rates supported by the local end and the opposite end, and uses a corresponding phase and or priority query method to find out the maximum rate supported by both ends;

[0020] 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.

[0021] Furthermore, the data receiving module comprises:

[0022] 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;

[0023] 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;

[0024] The receiving data selection module selects and sends the output data of the high-speed interface to the rate decoding module, the link testing module or the user logic according to the signal of the link training module.

[0025] Furthermore, 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: SDR, DDR, QDR, FDR and EDR;

[0027] The DRP state machine outputs the SDR clock and DRP configuration to the high-speed interface after being reset.

[0028] 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.

[0029] Furthermore, 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 adopts LFSR PRBS11 or LFSR PRBS23 strategy to generate pseudo-random code and sends it to the high-speed interface through the data sending module;

[0031] Further, 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;

[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 is applied to the aforementioned IB network transmission rate adaptation system, and the IB network transmission rate adaptation method comprises the following steps:

[0034] 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 preparatory work before rate negotiation such as line matching and reversal;

[0035] S200: The communicating parties encode the rates supported by their respective devices into the training data ordered set, and instruct the data sending module to send the data to the other end through the high-speed interface;

[0036] 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;

[0037] 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;

[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 peer device of the link test result;

[0040] 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.

[0041] Furthermore, 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.

[0042] The benefit of the present invention lies in the IB network transmission rate adaptation system and method provided, which adopts support for rate coding ordered sets and link quality testing schemes to avoid the synchronization mismatch problem with the opposite device. When the opposite device uses the same or similar rate adaptation rate as the present device, it can efficiently ensure the synchronization matching connection success.

[0043] The invention is also beneficial in that the IB network transmission rate adaptation system and method provided fully utilizes the link training information provided by the IB protocol, and improves the efficiency of negotiation and rate matching in complex scenarios with multiple rates. In addition, the solution can achieve efficient rate matching without the need for hardware design, saving implementation costs and reducing implementation difficulty. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0045] Figure 1 This is a schematic diagram of the IB network transmission rate adaptive system structure of this application;

[0046] Figure 2 This is a schematic diagram of the state transition of the link training state machine of the IB network transmission rate adaptation system of the present application;

[0047] Figure 3 This is a schematic diagram of the data sending module structure of the IB network transmission rate adaptive system of the present application;

[0048] Figure 4 This is a schematic diagram of the supported rate coding of the IB network transmission rate adaptive system of the present application;

[0049] Figure 5 This is a schematic diagram of the data receiving module structure of the IB network transmission rate adaptive system of the present application;

[0050] Figure 6 The IB network transmission rate adaptive system of the present application obtains the maximum rate method supported by both ends;

[0051] Figure 7 This is a schematic diagram of the DRP configuration RAM data structure of the IB network transmission rate adaptive system of this application;

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

[0053] Fig. 9 This is a schematic diagram of the DRP data processing process of the IB network transmission rate adaptive system of the present application;

[0054] Fig.10 This is a flow chart of the IB network transmission rate adaptation method of the present application. DETAILED DESCRIPTION

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

[0056] Obviously, the embodiments described in this case are only part of the embodiments of this application, not all of the embodiments. It should be pointed out that for ordinary technicians in this field, the embodiments and features in the embodiments in this application can be combined with each other without departing from the concept of this application and without conflicting with each other. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should belong to the disclosure and protection scope of this application.

[0057] In addition, the terms "first", "second", "S100", "S200", etc. in the specification, claims and drawings of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an unexpected order other than those described herein. At the same time, the terms "including" and "having" and any variations thereof in the present application are intended to cover non-exclusive inclusions. Unless otherwise clearly specified and limited, the terms "set", "arrange", "install", "connected", and "connected" 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 internal connection of two original components, or it can be an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two original components. For ordinary technicians in this field, the specific meanings of the above terms in this case can be understood based on the specific circumstances and in combination with the prior art.

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

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

[0060] The "ordered set containing supported coding" described in this application refers to a series of ordered sets TS3 with special meanings specified in the IB protocol, which are composed of supported rates and other link test information.

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

[0062] The "DRP" described in this application refers to a dynamically reconfigurable port, which is defined by Xilinx transceivers and includes a channel primitive port for a configurable CPLL and a common primitive port for a configurable QPLL.

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

[0064] like Figure 1 The overall structure diagram of an IB network transmission rate adaptation system of the present application. The system can be implemented inside the FPGA, and it is set in at least one device of the two communicating parties for both parties to perform rate adaptation. Specifically, the 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 the link training module is reset or receives the retraining instruction transmitted from the upper layer, it makes the rate adjustment module configure the high-speed interface rate to SDR, resets the data sending module to complete the preparatory work such as line matching and reversal, and then sends the ordered set TS3 containing the supported rate coding. The data receiving module of the other end device receives and decodes the ordered set to obtain the rate supported by the other end, and selects the highest rate supported by both ends to report to the link training module. The link training module sends the clock and DRP configuration number corresponding to the maximum rate, and makes the rate adjustment module output the clock DRP configuration corresponding to the maximum rate to the high-speed interface, and resets the high-speed interface after completion. After the high-speed interface is reset, the link training module makes the link test module send a pseudo-random code. The link test module of the other end device receives and verifies the pseudo-random code to obtain the link bit error rate and report it to the link training module. The link training module instructs the data sending module to send an ordered set to inform the peer device of the link test result. The link training module determines whether to establish a link based on the test results of both parties.

[0065] The link training module is used to control the link initialization process specified by the IB protocol and maintain the consistency of the link process state 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. Figure 2As shown, the link training state machine consists of five states: IDLE, CFGENHANCE, WAITTEST, TEST, and LINKUP. When the link training state machine receives the reset or retraining instruction from the upper layer, it enters the IDLE state, resets the data sending module, and instructs the rate adjustment module to configure the high-speed interface rate to SDR. After the data sending module completes the line matching and reversal work, it enters the CFGENHANCE state, instructs the data sending module to send an ordered set containing the supported rate, and starts the timing module timing. When the timing reaches 5us, if both ends reported by the data receiving module support the maximum rate, it enters the WAITTEST state, sends the clock and DRP configuration number corresponding to this rate, instructs the rate adjustment module to output the clock DRP configuration corresponding to the maximum rate to the high-speed interface, and restarts the timing of the timing module; otherwise, it maintains the CFGENHANCE state, restarts the timing, and instructs the data sending module to continue to send the ordered set containing the supported rate again. After the timing reaches 5us in the WAITTEST state, it enters the TEST state, instructs the link test module to send a pseudo-random code test, and restarts the timing of the timing module. When the timing reaches 100ms, it enters the CFGENHANCE state, starts the timing module, and instructs the rate adjustment module to configure the high-speed interface rate to SDR, and stops the link test module. If the link test quality meets the requirements, the data sending module sends the previously sent ordered set to inform the other end that it can enter the LINKUP state; otherwise, the data sending module sends an ordered set containing the new supported rate code to inform the other end that it needs to renegotiate training. If the previously sent ordered set is received, it enters the LINKUP state, instructs 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 the ordered set containing the new supported rate code is received, it enters the WAITTEST state after the timing reaches 5us and continues to repeat. The timing module is controlled by the link training state machine, and counts the input clock edge. The timing time can be obtained by the known clock cycle × the counted number. The timing of the timing module is the condition for the state transition of the link training state machine, ensuring that both ends have enough time to send and receive ordered sets and pseudo-random codes, as well as configure the high-speed interface, to avoid the synchronization mismatch problem caused by the inconsistent pace of rate switching and link quality testing on both sides.

[0066] like Figure 3 As shown in FIG. 1 , as a preferred embodiment, the data transmission module includes a transmission data selection module and a rate coding module. The transmission data selection module can select 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 send it to the high-speed interface. The rate coding module is used to generate the rate supported by the device and encode it into the ordered set and send it. Figure 4It is shown that in the implementation mode of the present application, a method is adopted in which each bit represents a rate, and the number of bits for generating the code must be greater than or equal to the number of supported rates.

[0067] For example, if the device supports both SDR and DDR rates, the rate code in the ordered set is 5'b00011.

[0068] If the device supports SDR, QDR, and FDR rates, the ordered set rate code is 5'b01101.

[0069] like Figure 5 As shown, as a preferred implementation scheme, the data receiving module includes a receiving data selection module, a rate decoding module and a negotiation rate selection module. Among them, the receiving data selection module can select the output data of the high-speed interface to be sent 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 opposite end supported rate in the received ordered set and send it to the negotiation rate selection module for processing. The negotiation rate selection module obtains the highest rate supported by both ends according to the input local device supported rate and the opposite end device supported rate, and outputs it to the link training module.

[0070] Among them, in the example of this application, two methods are provided for the data receiving module to illustrate the possibility of obtaining the highest rate supported by both ends. Therefore, this application does not limit the means for obtaining the rate. It can be seen that technical personnel in this field can adopt other technical means to achieve it according to actual conditions. Therefore, using any known technical means for obtaining the maximum rate, without departing from the inventive concept of this scheme, the changes in the implementation plan made are all within the scope of disclosure of this application.

[0071] Method 1: Corresponding phase and

[0072] like Figure 6 As shown in (a), for example, if the ordered set adopts 8-bit supported rate coding, the local device supports SDR, QDR, and EDR, then the supported rate coding in the ordered set it sends is 8'b0001_0101, and the opposite device supports SDR, DDR, and QDR, then the supported rate coding in the ordered set it sends is 8'b0000_0111. The corresponding bits of the two are ANDed to obtain 8'b0000_0101, and the highest bit (bit2) set to 1 in the search result can be obtained, and the highest rate supported by both ends is QDR.

[0073] Method 2: Priority Query

[0074] like Figure 6As shown in (b), for example, if the ordered set adopts 8-bit supported rate coding, the local device supports SDR, QDR, and EDR, then the supported rate coding in the ordered set it sends is 8'b0001_0101, and the opposite device supports SDR, DDR, and QDR, then the supported rate coding in the ordered set it sends is 8'b0000_0111. Among the rates supported by the local device, the priority of the rates from high to low is used to query the support status of the corresponding rates of the opposite end, and it can be obtained that the highest rate supported by both ends is 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 corresponding DRP configuration 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 supported rate value at both ends is SDR, the clock corresponding to the 2.5G rate is connected to the GT, and the DRP parameters corresponding to 2.5G are input; when the maximum supported rate at both ends is DDR, the clock corresponding to the 5G rate is connected to the GT, and the DRP parameters corresponding to 5G are input; the same applies to QDR.

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

[0078] like Figure 8 As 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. After receiving the configuration signal from the link training module, it enters the RAM_READ state and reads the DRP configuration ram of 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 bits (such as the data clear mask and data set mask in the ram data) according to the data clear mask and data set mask in the ram data. Fig. 9As shown), and write the processed data back to the DRP address. If the data written back is the last data of the configured rate, it enters the RESET state, sets the clock of the high-speed interface and resets the high-speed interface, and enters the IDLE state after the reset is completed; otherwise, it enters the RAM_READ state and continues to read the next address of the DRP configuration RAM.

[0079] As a preferred embodiment, 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 coefficient 0C0801, 4C0001, 041041, 040001) strategy and sends it to the high-speed interface. When the test rate is SDR, DDR or QDR, LFSR PRBS11 is selected, and when the test rate is FDR, EDR, LFSR PRBS23 is selected. 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, LFSR PRBS11 is selected, and when the test rate is FDR, EDR, LFSR PRBS23 is selected. The pseudo-random code detection module counts the number of pseudo-random codes received and the number of bit errors to obtain the bit error rate, and reports it to the link training module.

[0080] It can be seen from this that when this device and the other device support different rates at the same time, they can negotiate and match by exchanging ordered sets containing supported rate codes at the SDR initial rate; that is, in actual applications, if both this device and the other device support high rate A and low rate B, through the ordered sets supporting rate A and B coding, depending on the actual situation, they can prioritize matching rate A when the rate A link environment quality is good, or match rate B when the rate A link environment quality is poor, thereby ensuring that both parties can match the rates.

[0081] At the same time, a link state synchronization scheme is adopted. When the other device also adopts a similar or similar adaptive scheme, the synchronization mismatch problem caused by the inconsistent pace of changes in rate switching and link quality testing of both parties can be avoided.

[0082] Corresponding to the IB network transmission rate adaptation system of the present application, the present application also provides an IB network transmission rate adaptation method, such as Fig.10 As shown, the steps include:

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

[0084] S200: The communicating parties encode the rates supported by their respective devices into a training data ordered set, and instruct the data sending module to send the data to the other end through a high-speed interface;

[0085] S300: The data receiving module obtains the rate coding supported by the other end according to the received ordered set of the other end, compares the local and the rate coding supported by the other end, and selects the maximum rate supported by both ends to report to the link training module;

[0086] 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. After completion, the high-speed interface is reset;

[0087] 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;

[0088] 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;

[0089] 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 the support for the current test rate, the data sending module continues to encode the new supported rate to 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 the link establishment. 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 adaptation system.

[0091] Among them, in step S200, the data sending module sends the encoding method of the supported rate in the ordered set, which is that the rates are decreasing from MSB to LSB, and the bit position corresponding to a certain rate is 1 to indicate support, and 0 to indicate non-support.

[0092] Wherein, in step S200, the number of coding 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 that can be supported by both communication devices.

[0093] Among them, in step S300, the data receiving module compares the rates supported by the local end and the opposite end, and uses the corresponding phase and method to calculate the maximum rate supported by both ends.

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

[0095] The rate adjustment module in step S400 implements rate adjustment by selecting a specific clock and writing a specific configuration to the high-speed interface DRP address.

[0096] Among them, in step S500, the link test module sends a pseudo-random code generation strategy of LFSR PRBS11 (generating polynomial coefficients 201).

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

[0098] In step S500, the link test module detects bit errors in the received pseudo-random code in the manner of LFSR PRBS11 (generating polynomial coefficients 201).

[0099] Among them, in step S500, the link test module detects bit errors in the received pseudo-random code in a manner of LFSR PRBS23 (generating polynomial coefficients 0C0801, 4C0001, 041041, 040001).

[0100] In step S700, the link training module determines that the bit error rate requirement for successfully establishing a link is 1E-14.

[0101] Wherein, 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, the IB network transmission rate adaptation system and method provided by the present application adopts a rate coding ordered set and link quality test scheme to avoid the synchronization mismatch problem with the opposite device, so that when the opposite device and the present device use the same or similar rate adaptation rate, the synchronization matching connection can be efficiently ensured to be successful. At the same time, compared with the prior art, this scheme makes full use of the link training information provided by the IB protocol, and improves the efficiency of negotiation and rate matching in complex scenarios with multiple rates. In addition, compared with the prior art, this scheme can achieve efficient rate matching without the need for relevant hardware design, saving implementation costs and reducing implementation difficulty.

[0103] The preferred embodiments of the present application disclosed above are only used to help explain the present application. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation scheme described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that people in the relevant technical field can understand and use the present application well. 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 principles of the present application should be included in the scope of protection of the present application.

[0104] Those skilled in the art can understand that in addition to implementing the system, device and its various modules provided by the present application in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present application can be considered as a hardware component, and the modules included therein for implementing various programs can also be regarded as structures within the hardware component; the modules for implementing various functions can also be regarded as both software programs for implementing the method and structures within the hardware component.

[0105] In addition, all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a single-chip microcomputer, a chip or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0106] The above shows and describes the basic principles, main features and advantages of the present application. Those skilled in the art should understand that the above embodiments do not limit the present application in any form, and any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present application.

Claims

1. An IB network transmission rate adaptive system, It is 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, It is 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 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, It is 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, It is 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, It is 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, the link testing module or the user logic according to the signal of the link training module.

6. The IB network transmission rate adaptive system according to claim 1, It is 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, It is characterized in that The DRP configuration ram stores five DRP configuration numbers and schemes: SDR, DDR, QDR, FDR and EDR; The DRP state machine outputs the SDR clock and DRP configuration to the high-speed interface after being reset. 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, It is 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, It is 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 preparatory work before rate negotiation such as line matching and reversal; S200: The communicating parties encode the rates supported by their respective devices into the training data ordered set, and instruct the data sending module to send the data to the other end through the 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, It is 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

Cited By

  • Large-bit-width infinite-bandwidth network coding and decoding layer processing system

    CN120567371A

  • Interface rate configuration method and device, equipment and medium

    CN120710878A