WO2023035859A1 - 一种发送器均衡参数评估方法及装置 - Google Patents

一种发送器均衡参数评估方法及装置 Download PDF

Info

Publication number
WO2023035859A1
WO2023035859A1 PCT/CN2022/112094 CN2022112094W WO2023035859A1 WO 2023035859 A1 WO2023035859 A1 WO 2023035859A1 CN 2022112094 W CN2022112094 W CN 2022112094W WO 2023035859 A1 WO2023035859 A1 WO 2023035859A1
Authority
WO
WIPO (PCT)
Prior art keywords
transmitter equalization
communication link
transmitter
equalization parameters
interface
Prior art date
Application number
PCT/CN2022/112094
Other languages
English (en)
French (fr)
Inventor
罗军平
潘伟
聂耳
李建康
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP22866333.2A priority Critical patent/EP4387177A1/en
Publication of WO2023035859A1 publication Critical patent/WO2023035859A1/zh
Priority to US18/599,570 priority patent/US20240214245A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/02Details ; arrangements for supplying electrical power along data transmission lines
    • H04L25/03Shaping networks in transmitter or receiver, e.g. adaptive shaping networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/02Details ; arrangements for supplying electrical power along data transmission lines
    • H04L25/03Shaping networks in transmitter or receiver, e.g. adaptive shaping networks
    • H04L25/03878Line equalisers; line build-out devices
    • H04L25/03885Line equalisers; line build-out devices adaptive
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/02Details ; arrangements for supplying electrical power along data transmission lines
    • H04L25/03Shaping networks in transmitter or receiver, e.g. adaptive shaping networks
    • H04L25/03006Arrangements for removing intersymbol interference
    • H04L2025/03777Arrangements for removing intersymbol interference characterised by the signalling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/02Details ; arrangements for supplying electrical power along data transmission lines
    • H04L25/03Shaping networks in transmitter or receiver, e.g. adaptive shaping networks
    • H04L25/03006Arrangements for removing intersymbol interference

Definitions

  • the present application relates to the field of communication technologies, and in particular to a method and device for evaluating equalization parameters of a transmitter.
  • the negotiation process includes the evaluation of the transmitter equalization parameters of the devices, that is, the transmitter equalization parameter evaluation process needs to be performed. Going through the transmitter equalization parameter evaluation process requires selecting transmitter equalization parameters that match the communication link.
  • the transmitter equalization parameter evaluation process needs to evaluate a large number of transmission equalization parameters one by one. Due to the time limit of the transmitter equalization parameter evaluation process, the transmitter equalization parameter evaluation process cannot perform all transmission equalization parameters within a limited time. Evaluation, the finally determined equalization parameters of the transmitter are likely to be inappropriate, which will reduce the data transmission effect of the communication link.
  • the present application provides a transmitter equalization parameter evaluation method and device, which are used to improve the efficiency of transmitter equalization parameter evaluation.
  • the embodiment of the present application provides a transmitter equalization parameter evaluation method, which can be used to evaluate the transmitter equalization parameters of the high-speed interface in the first device, and the method can be implemented by communicating with the first device through a communication link
  • the second device connected to the road executes.
  • the second device may first detect the state of the communication link between the first device and the second device, and the communication link is constructed using the high-speed interface in the first device for connecting the first device and a second device.
  • the second device may perform a transmitter equalization parameter evaluation procedure for the high-speed interface in the first device based on the communication link.
  • the transmitter equalization parameter evaluation process of the high-speed interface in the first device is started, which can effectively use the idle time of the communication link and ensure that the evaluation can be performed. More equalization parameters of the transmitter are used to obtain more suitable equalization parameters of the transmitter, which ensures the efficiency of evaluating the equalization parameters of the transmitter.
  • the first device and the second device may withdraw from the first device at any time. Transmitter Equalization Parameter Evaluation Flow for High-Speed Interfaces.
  • the second device when the second device determines that the evaluation exit condition is met, it may exit the transmitter equalization parameter evaluation procedure for the first interface in the first device.
  • the second device may send a message to the first device to notify the first device that it needs to exit the evaluation process for the first interface in the first device.
  • Transmitter equalization parameter evaluation process The second device may also directly exit the transmitter equalization parameter evaluation process of the first interface in the first device, and switch to a normal working state.
  • the normal working state may be the L0 state under the PCIe standard.
  • the first device when the first device determines that it needs to communicate with the second device, or needs to perform other operations, the first device may exit the transmitter equalization parameter evaluation procedure for the first interface in the first device.
  • the first device may also directly exit the transmitter equalization parameter evaluation process of the first interface in the first device, and switch to a normal working state.
  • the first device and the second device can quit the transmitter equalization parameter evaluation process of the first interface in the first device at any time, without affecting normal services of the first device and the second device.
  • evaluating exit conditions includes some or all of the following:
  • Condition 2 The number of evaluated transmitter equalization parameters reaches a threshold
  • the transmitter equalization parameters that pass the evaluation are obtained by obtaining the transmitter equalization parameter evaluation process of the high-speed interface in the first device.
  • the equalization parameter of the transmitter whose evaluation is passed refers to the equalization parameter of the transmitter whose evaluation result is passed or whose channel rate is higher than a threshold.
  • the evaluation exit conditions include a variety of different conditions, which are applicable to different application scenarios.
  • the idle communication link means that no service data is transmitted on the communication link.
  • the evaluation process of the equalization parameter of the transmitter can be executed without transmitting service data, thereby ensuring effective transmission of service data.
  • the second device when the second device detects the state of the communication link between the first device and the second device, the second device may detect whether the second device sends service data or receives service data through the communication link.
  • Business data when the second device sends or receives business data through the communication link, it means that the communication link is busy; when the second device does not send or receive business data through the communication link, it means that the communication link is busy. idle.
  • the second device can also determine whether there is service data to be sent on the second device side; when there is service data to be sent on the second device side, it means that the communication link is busy or will be in a busy state in a short period of time (this situation can be considered The communication link is busy); when there is no service data to be sent on the second device side, the second device may consider the communication link to be idle.
  • the second device detects the status of the communication link in a variety of different ways, which are more flexible.
  • the second device may evaluate one or more sets of transmitter equalization parameters when executing the process of evaluating the transmitter equalization parameters of the high-speed interface in the first device based on the communication link.
  • the second device and the first device may interact based on the communication link and one or more sets of transmitter equalization parameters, so as to evaluate one or more sets of transmitter equalization parameters.
  • At least one group of transmitter equalization parameters can be guaranteed to be evaluated in the evaluation process of the transmitter equalization parameters of the high-speed interface in the first device, which ensures the validity of the entire evaluation process.
  • the second device may start the transmitter equalization parameter evaluation process of the high-speed interface in the first device multiple times, and evaluate all possible transmitter equalization parameters . That is, the evaluated multiple groups of transmitter equalization parameters include all transmitter equalization parameters of the transmitters of the high-speed interface in the first device.
  • the second device can traverse all possible transmitter equalization parameters to evaluate the transmitter equalization parameters of the high-speed interface in the first device, so as to ensure that the transmitter equalization parameters with better effects can be evaluated.
  • the second device may also select transmitter equalization parameters according to evaluation results of one or more sets of transmitter equalization parameters; then, send the selected set of transmitter equalization parameters to the first device, indicating Selected transmitter equalization parameters are available.
  • the second device may also send evaluation results of one or more sets of transmitter equalization parameters to the first device, and the first device selects available transmitter equalization parameters.
  • the second device can inform the first device of the available transmitter equalization parameters, so that the first device can configure the transmitter equalization parameters for the high-speed interface to ensure efficient data transmission in the future.
  • the transmitter equalization parameter evaluation process for the high-speed interface in the first device may include transmitter equalization parameter evaluation processes at different transmission rates. That is, the transmitter equalization parameter evaluation process for the high-speed interface in the first device implemented in this application includes the transmitter equalization parameter evaluation process at one or more transmission rates, where the transmission rate is the transmission rate of data in the communication link.
  • the transmitter equalization parameters applicable to different transmission rates may be different, and the transmitter equalization parameters applicable to different transmission rates can be obtained through the transmitter equalization parameter evaluation process under different transmission rates.
  • the second device when the second device executes the transmitter equalization parameter evaluation process for the high-speed interface in the first device based on the communication link, it may send a notification message to the first device, where the notification message is used to indicate the transmission rate; In this way, the first device can determine at which transmission rate the subsequent transmitter equalization parameter evaluation process is performed. Afterwards, the second device may execute a transmitter equalization parameter evaluation process for the high-speed interface in the first device at a transmission rate based on the communication link.
  • the second device may also switch the transmission rate directly without sending a notification message.
  • the second device notifies the first device of the transmission rate to ensure that the first device can cooperate with the first device at different transmission rates to perform the transmitter equalization parameter evaluation process for the high-speed interface in the first device.
  • the device can adapt to different transmission rates in time.
  • the embodiment of the present application also provides an evaluation device, which has the function of realizing the behavior in the method example of the first aspect above, and the beneficial effects can be referred to the description of the first aspect, which will not be repeated here.
  • the functions described above may be implemented by hardware, or may be implemented by executing corresponding software on the hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the structure of the device includes a detection module, a parameter evaluation module, and optionally, a selection module and a sending module. These modules can perform the corresponding functions in the method example of the first aspect above. For details, see The detailed description in the method example is not repeated here.
  • the embodiment of the present application also provides a computing device, the computing device has the function of implementing the behavior in the method example of the first aspect above, and the beneficial effects can be referred to the description of the first aspect, which will not be repeated here.
  • the structure of the computing device includes a processor and a memory (here, the memory can also be understood as a memory, and can also be understood as a memory and external storage such as a hard disk), and the processor is configured to support the evaluation device to perform the first aspect above The corresponding function in the method.
  • the memory coupled to the processor, holds program instructions and data necessary for the computing device.
  • the structure of the computing device also includes a communication interface (that is, the second interface mentioned in the method embodiment), which is used to communicate with other devices, such as sending the evaluation of the transmitter equalization parameters of the high-speed interface in the first device.
  • the information that needs to be sent in the process is to send the transmitter equalization parameters or the evaluation results of the transmitter equalization parameters.
  • the present application also provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the above-mentioned first aspect and each possibility of the first aspect.
  • the present application further provides a computer program product including instructions, which, when run on a computer, cause the computer to execute the method described in the above first aspect and each possible implementation manner of the first aspect.
  • the present application also provides a computer chip, the chip is connected to the memory, and the chip is used to read and execute the software program stored in the memory, and implement the above first aspect and each possibility of the first aspect.
  • FIG. 1 is a schematic diagram of a connection relationship between devices in an evaluation process of equalization parameters of a transmitter
  • FIG. 2 is a schematic diagram of multiple sets of transmitter equalization parameters that can be evaluated provided by the present application
  • FIG. 3 is a schematic structural diagram of a system provided by the present application.
  • FIG. 4 is a schematic diagram of a transmitter equalization parameter evaluation method provided by the present application.
  • Fig. 5 is a schematic diagram of an evaluation device provided by the present application.
  • a communication link between interfaces of devices is taken as an example to describe a communication process of devices.
  • the communication process between modules is similar to the communication process between devices, and will not be repeated here.
  • the structures of the interface 1 and the interface 2 are described below.
  • an interface 1 is provided on a device 1 , and the interface 1 includes a transmitter 1 and a receiver 1 .
  • the device 2 means that there is an interface 2, and the interface 2 includes a transmitter 2 and a receiver 2.
  • the transmitter 1 and the transmitter 2 are used to send data, and the receiver 1 and receiver 2 are used to receive data.
  • the transmitter 1 and the receiver 2 can be connected through a signal line.
  • the data sent by the transmitter 1 can be transmitted to the receiver 2 through the signal line.
  • the receiver 1 and the transmitter 2 can be connected by a signal line.
  • the data sent by the transmitter 2 can be transmitted to the receiver 1 through the signal line.
  • One communication link between interface 1 and interface 2 may include a signal line between transmitter 1 and receiver 2 , and a signal line between receiver 1 and transmitter 2 .
  • the processor in device 1 can send the data to receiver 2 through the signal line through transmitter 1 in interface 1, and receiver 2 transmits the received data to device 2 processor.
  • the equalization parameter of the transmitter is a parameter required by the transmitter 1 to process data.
  • the transmitter 1 can process the data according to the pre-configured transmission equalization parameters, for example, it can reduce the low-frequency signal in the data and enhance the high-frequency signal in the data. Even if the processed data is attenuated or interfered during transmission, the reduced low-frequency data and enhanced high-frequency data can offset the attenuated (or interfered) part of the data, so that when the data reaches the receiver 2, the attenuated
  • the difference between the data and the data that actually needs to be sent (the data that actually needs to be sent can be understood as data that has not been processed by the transmitter 1 ) is small, so that the processor of the device 2 can accurately identify the data.
  • the selection of transmission equalization parameters plays an important role in data transmission.
  • the communication link between device 1 and device 2 is a high-speed serial computer expansion bus (peripheral component interconnect express, PCIe)
  • PCIe peripheral component interconnect express
  • link negotiation the validity of the communication link can be guaranteed, that is, the availability of the communication link can be guaranteed, and the relevant parameters of the communication link can be determined, such as the width of the communication link and the number of logical channels in the communication link. number and transmitter equalization parameters.
  • the transmitter equalization parameters may be determined through an evaluation process of the transmitter equalization parameters. As shown in Figure 2, multiple groups of transmitter equalization parameters that can participate in the evaluation are shown. A set of transmitter equalization parameters is (C ⁇ 1 , C 0 , C +1 ), where
  • 24.
  • the device 1 and the device 2 can evaluate multiple sets of different transmitter equalization parameters, and select a set of transmitter equalization parameters with better effect. For one set of transmitter equalization parameters, the evaluation process is as follows:
  • Device 2 selects one group from the multiple groups of transmitter equalization parameters as transmitter equalization parameters to be evaluated, and sends the group of transmitter equalization parameters to device 1 , and device 1 configures interface 1 by using the group of transmitter equalization parameters. After the configuration is complete, device 1 can send a test code stream to device 2 through interface 1. The code stream sent out is the code stream processed by interface 1 using the set of transmitter equalization parameters.
  • Device 2 receives the test code stream through interface 2.
  • the device 2 can analyze the test code stream to determine whether the test code stream is clear. If the test code stream is clear and easy to identify, it means that the equalization parameters of this group of transmitters have a better effect, and the evaluation result is passed. If the test code stream is not easy to identify, it means that the effect of the equalization parameters of this group of transmitters is poor, and the evaluation result is failure.
  • an embodiment of the present application provides a transmitter equalization parameter evaluation method. The system to which the embodiment of the present application is applicable and the transmitter equalization parameter evaluation method are described below with reference to the accompanying drawings.
  • FIG. 3 it is a schematic diagram of a system architecture applicable to the embodiment of the present application.
  • the system includes a first device 110 and a second device 120.
  • between the first device 110 and the second device 120 can also be Including relay equipment.
  • the relay device may forward data to be transmitted by the first device 110 and the second device 120 .
  • the first device 110 and the second device 120 are two devices that need to communicate. Interfaces may be provided on the first device 110 and the second device 120 , and a communication link may be established between the interface on the first device 110 and the interface on the second device 120 .
  • the interface of the first device 110 is referred to as a first interface
  • the interface of the second device 120 is referred to as a second interface.
  • the first device includes a processor 112 , a memory 113 , and a first interface 114 .
  • the processor 112 , the memory 113 , and the first interface 114 communicate through the bus 111 .
  • the processor 112 can be a central processing unit (central processing unit, CPU), and the processor 112 can also be other general processors, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC) , field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, artificial intelligence chips, chip-on-chip, etc.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the memory 113 may include a volatile memory (volatile memory), such as a random access memory (random access memory, RAM), a dynamic random access memory (dynamic random access memory, DRAM), and the like. It may also be a non-volatile memory (non-volatile memory), such as a storage-class memory (storage-class memory, SCM), or a combination of a volatile memory and a non-volatile memory.
  • volatile memory such as a random access memory (random access memory, RAM), a dynamic random access memory (dynamic random access memory, DRAM), and the like. It may also be a non-volatile memory (non-volatile memory), such as a storage-class memory (storage-class memory, SCM), or a combination of a volatile memory and a non-volatile memory.
  • the memory 113 may also include an operating system and other software modules required for running processes.
  • the operating system can be LINUX TM , UNIX TM , WINDOWS TM and so on.
  • the first interface 114 can be used to communicate with the second device, and the communication link between the first interface and the second interface can be a wireless link or a wired link, and the wired link can be PCIe or For other types of links, such as serial advanced technology attachment (SATA) bus, inter-integrated circuit (I2C) bus, etc.
  • SATA serial advanced technology attachment
  • I2C inter-integrated circuit
  • the second device includes a processor 122 , a memory 123 , and a second interface 124 .
  • the processor 122 , the memory 123 , and the second interface 124 communicate through the bus 111 .
  • the processor 122 , the memory 123 , and the second interface 124 are similar to the processor 112 , the memory 113 , and the first interface 114 .
  • the transmitter equalization parameter evaluation method provided by the embodiment of the present application can be executed by the processor 122, that is, the processor 122 can execute the transmitter equalization parameter evaluation method provided by the embodiment of the present application by calling the computer-executed instructions stored in the memory 123 .
  • the second device 120 may start the evaluation of the first device 110 when the communication link with the first device 110 is idle.
  • the transmitter equalization parameter evaluation process of the first interface 114 in the first device 110 is executed based on the communication link.
  • the transmitter equalization parameter evaluation process of the first interface 114 is executed, which will not affect the traffic data between the first device 110 and the second device 120 Transmission can also ensure the evaluation of more transmitter equalization parameters, so that a group of transmitter equalization parameters with better effects can be selected later by using the evaluation structure.
  • the transmitter equalization parameter evaluation method provided by the present application will be described below in conjunction with accompanying drawing 4, referring to Fig. 4, the method includes:
  • Step 401 the second device 120 detects the state of the communication link between the first device 110 and the second device 120 .
  • the status of the communication link can be divided into two types: idle and busy.
  • the communication link is busy. It means that the communication link is transmitting business data or preparing to transmit business data.
  • the communication link is idle. No service data is transmitted on the link.
  • the business data is data related to business between the first device 110 and the second device 120 .
  • the service data may be the data to be sent in the service layer of the first device 110 or the data to be sent in the service layer of the second device 120.
  • the service data may be data packets at the transaction layer.
  • the non-business data may be data packets in the data link (data link) layer.
  • the embodiment of the present application does not limit the manner in which the second device 120 detects the state of the communication link, and several detection methods are listed below:
  • the second device 120 may directly detect whether service data is being transmitted on the communication link.
  • the second device 120 may detect whether the second transmitter is sending data, or detect whether the second receiver is receiving data. When the second transmitter is sending data, or the second receiver is receiving data, it means that the communication link is transmitting service data and the communication link is busy. When the second transmitter does not send data and the second receiver does not receive data, it means that no service data is transmitted on the communication link and the communication link is idle.
  • the second device 120 may detect whether the second sender has sent service data and whether the second receiver has received service data within a specific time. If the second sender sends service data or the second receiver receives service data within a specific time, it indicates that service data is being transmitted on the communication link. If the second sender does not send service data and the second receiver does not receive service data within a specific time, it means that no service data is being transmitted on the communication link.
  • the second device 120 may determine whether there is service data to be sent at the second device 120 side. Optionally, the second device 120 may also determine whether there is service data to be sent on the side of the first device 110 .
  • the service data to be sent can be temporarily stored in the second interface 124 In the cache, when the second interface 124 (that is, the second transmitter) can extract data from the cache, and then send the extracted data to the first device through the communication link between the first device 110 and the second device 120 110.
  • the business data to be sent can be temporarily stored in the first In the cache of the interface 114, when the first interface 114 (that is, the first transmitter) can extract data from the cache, and then send the extracted data to the The second device 120 .
  • the second device 120 can detect whether the cache of the local second interface 124 stores service data to be sent, and can also notify the first device 110 to detect whether the cache of the local first interface 114 stores service data to be sent, so as to determine the first Whether there is service data to be sent on the device 110 side.
  • the second device 120 when the second device 120 is determining whether there is service data to be sent on the side of the first device 110, the second device 120 can also detect the second receiver of the second interface 124 within a specific time Whether service data is received, if the second device 120 does not receive service data within the specified time, it is considered that there is no service data to be sent on the first device 110 side. If the second device 120 receives the service data within the specific time, it is considered that there is service data to be sent on the side of the first device 110 .
  • the cache of the second interface 124 When the cache of the second interface 124 stores service data to be sent, or the cache of the first interface 114 stores service data to be sent, it means that the communication link between the first device 110 and the second device 120 needs to transmit service data, The communication link is busy. When the cache of the second interface 124 does not store the service data to be sent, and the cache of the first interface 114 does not store the service data to be sent, it means that the communication link between the first device 110 and the second device 120 does not need to transmit Business data, the communication link is idle.
  • the second device 120 uses method 1 or method 2 to detect the status of the communication link, or a combination of method 1 and method 2 can be used to detect the status of the communication link.
  • the second device 120 can also use other methods when detecting the state of the communication link. For example, if the second device 120 determines that the second device 120 is ready to enter the low power consumption state (the low power consumption state mode, or the state of no longer sending service data), the second device 120 may also consider the communication link to be idle, in this case, the second device 120 may not enter the low power consumption state, but execute step 402.
  • Step 402 When determining that the communication link is idle, the second device 120 executes a transmitter equalization parameter evaluation process for the first interface 114 in the first device 110 based on the communication link.
  • the second device 120 may first notify the first device 110 to start a transmitter equalization parameter evaluation process for the first interface 114 in the first device 110 .
  • the second device 120 to notify the first device 110 to start the process of evaluating the transmitter equalization parameters of the first interface 114 in the first device 110.
  • This embodiment of the present application does not limit the second device 120 to notify the first device 110 to start The manner in which the transmitter of the first interface 114 in the first device 110 equalizes the parameter evaluation process.
  • the second device 120 may send a transmitter equalization parameter evaluation request message to the first device 110 through the second interface 124, where the transmitter equalization parameter evaluation request message is used to request evaluation of the transmitter equalization parameters of the first interface 114 .
  • the first device 110 can receive the transmitter equalization parameter evaluation request message through the first interface 114, and if it is determined that the transmitter equalization parameter of the first interface 114 can be evaluated, the first device 110 can send the request message through the first interface 114 to The second device 120 sends a transmitter equalization parameter evaluation response message, where the transmitter equalization parameter evaluation response message is used to indicate that the transmitter equalization parameter of the first interface 114 can be evaluated.
  • the first device 110 may send the transmitter to the second device 120 through the first interface 114.
  • An equalization parameter evaluation response message, where the transmitter equalization parameter evaluation response message may indicate that the evaluation of the transmitter equalization parameters of the first interface 114 is refused.
  • the second device 120 may receive the transmitter equalization parameter evaluation response message through the second interface 124, and after parsing the transmitter equalization parameter evaluation response message, determine that the first device 110 can evaluate the transmitter equalization parameter of the first interface 114 Afterwards, the transmitter equalization parameter evaluation process for the first interface 114 in the first device 110 may be performed based on the communication link.
  • the representation form of the transmitter equalization parameter evaluation request message and the transmitter equalization parameter evaluation response message may be an identification bit in a code stream interacted between the first device 110 and the second device 120 .
  • the code stream refers to the data stream between the first device 110 and the second device 120 .
  • the transmitter equalization parameter request flag is used to indicate whether to request to start the transmitter equalization parameter evaluation process for the first interface 114 in the first device 110
  • the transmitter equalization parameter response flag is used to indicate whether to agree to start the evaluation process for the first interface 114 in the first device 110.
  • these two identification bits may be null. That is, these two identification bits will not be occupied during normal service transmission or other non-transmitter equalization parameter evaluation processes.
  • these two identification bits may be specific values. That is, the two identification bits need to be started or are occupied in the process of evaluating the equalization parameters of the transmitter.
  • the second device 120 can set the transmitter equalization parameter request flag in the first code stream to the first value, and pass the second The interface 124 sends the first code stream to the first device 110 .
  • the second device 120 may request to start the transmitter equalization on the first interface 114 determined by the first value on the transmitter equalization parameter request identification bit. Parameter evaluation process. If the first device 110 determines that the transmitter equalization parameter evaluation process for the first interface 114 can be started, the first device 110 may set the transmitter equalization parameter response flag in the second code stream to a second value, and pass the first The interface 114 sends the second code stream to the second device 120 . After receiving the second code stream through the second interface 124 , the second device 120 determines that the transmitter equalization parameter evaluation process for the first interface 114 can be started.
  • the transmitter equalization parameter evaluation request message and the transmitter equalization parameter evaluation response message may also be in other forms, for example, the transmitter equalization parameter evaluation request message and the transmitter equalization parameter evaluation response message may be the first device 110 and the second device 120 New messages defined between.
  • the second device 120 may execute the transmitter equalization parameter assessment process for the first interface 114 based on the communication link.
  • the transmitter equalization parameter assessment process for the first interface 114 based on the communication link.
  • the communication link between the first interface 114 and the second interface 124 may support different transmission rates, that is, data may be transmitted at different transmission rates on the communication link.
  • data may be transmitted at different transmission rates on the communication link.
  • the degree of attenuation of the data and the degree of interference between the data are also different, and the equalization parameters of the transmitter of the first interface 114 may also be different.
  • the process of evaluating the transmitter equalization parameters of the first interface 114 includes the process of evaluating the transmitter equalization parameters of the first interface 114 under different transmission rates. In this way, one or more sets of transmitter equalization parameters applicable to the first interface 114 at different transmission rates can be determined through the transmitter equalization parameter evaluation process of the first interface 114 at different transmission rates.
  • the evaluation process of the transmitter equalization parameters of the first interface 114 at one transmission rate is taken as an example. According to the description of the transmitter equalization parameters, it can be seen that there are many groups of transmitter equalization parameters that need to be evaluated actually.
  • the second device 120 and the first device 110 can evaluate any set of transmitter equalization parameters once, and the second device 120 can record the evaluation result of the set of transmitter equalization parameters, such as recording pass and failure.
  • the second device 120 and the first device 110 can also perform multiple evaluations on any set of transmitter equalization parameters, and the second device 120 can record the evaluation results of the set of transmitter equalization parameters, such as recording the number of passes or the number of failures, and For example, the pass ratio (that is, the ratio of the number of passes to the total number of times) or the failure ratio (that is, the ratio of the number of failures to the total number of times) is recorded.
  • the pass ratio that is, the ratio of the number of passes to the total number of times
  • the failure ratio that is, the ratio of the number of failures to the total number of times
  • the first device 110 and the second device 120 can negotiate the transmission rate.
  • the second device 120 may notify the transmission rate by sending a notification message, so that the first device 110 can determine the transmission rate required for the subsequent transmitter equalization parameter evaluation process of the first interface 114 .
  • the second device 120 and the first device 110 may agree on a transmission rate switching time, and also execute the transmitter equalization parameter evaluation process of the first interface 114 at a transmission rate within a certain time interval.
  • the next transmission rate will be switched, and the transmitter equalization parameter evaluation process of the first interface 114 at the next transmission rate will be executed.
  • the first device 110 and the second device 120 may agree in advance on an initial transmission rate and a switching order of transmission rates.
  • the second device 120 can also directly switch the transmission rate. After switching the transmission rate, the second device 120 can transmit data for a long time at the switched transmission rate, so as to ensure that the first device 110 can be synchronized to the The transmission rate is consistent with that of the second device 120.
  • the second device 120 is used as the trigger of the transmitter equalization parameter evaluation process for the first interface 114 .
  • the first device 110 is also allowed to detect the status of the communication link, and when it is determined that the communication link is idle, trigger a transmitter equalization parameter evaluation process for the first interface 114 in the first device 110 based on the communication link. That is to say, the first device 110 may also be the first device 110 that executes the detection of the communication link status and the start of the transmitter equalization parameter evaluation process for the first interface 114 in the first device 110 in steps 401 to 402 .
  • the specific manner is similar to the manner described in steps 401 to 402, except that the execution subject is different. For details, please refer to the foregoing content, which will not be repeated here.
  • the first device 110 and the second device 120 may also pre-agreed on the allowable evaluation process of the transmitter equalization parameter of the first interface 114 in the first device 110 when the communication link is idle.
  • the time range as agreed, the time for the transmitter equalization parameter evaluation process of the first interface 114 in the first device 110 is not less than the first time value. That is, the minimum time for the evaluation process is stipulated. By specifying the minimum time, it can be ensured that the transmitter equalization parameter evaluation process for the first interface 114 in the first device 110 that is started when the communication link is idle can be at least for a group of One or more sets of transmitter equalization parameters are evaluated to ensure the validity of the transmitter equalization parameter evaluation process of the first interface 114 in the first device 110 .
  • the time for the transmitter equalization parameter evaluation process of the first interface 114 in the first device 110 is not greater than the second time value. That is to say, the maximum time for the assessment process is stipulated. By specifying the maximum time, it can be guaranteed that the transmitter equalization parameter evaluation process for the first interface 114 in the first device 110 can be completed within a certain period of time, and will not occupy all the time. communication link.
  • the first device 110 or the second device 120 is allowed to withdraw from the transmitter equalization parameter evaluation process of the first interface 114 in the first device 110 within an allowed time range. For example, if communication is required between the first device 110 and the second device 120 , the first device 110 or the second device 120 may voluntarily quit the transmitter equalization parameter evaluation procedure for the first interface 114 in the first device 110 . This can ensure that the first device 110 and the second device 120 can perform normal business data transmission, and ensure that the transmitter equalization parameter evaluation process of the first interface 114 in the first device 110 will not affect the first device 110 and the second device. 120 communication between.
  • Steps 403 to 404 may be referred to for a manner in which the second device 120 exits the transmitter equalization parameter evaluation process for the first interface 114 .
  • Steps 405 to 406 may be referred to for a manner in which the first device 110 exits the transmitter equalization parameter evaluation process for the first interface 114 .
  • Step 403 The second device 120 determines that the first evaluation exit condition is satisfied.
  • the first assessment exit conditions include some or all of the following conditions:
  • Condition 1 The second device 120 needs to communicate with the first device 110 .
  • the second device 120 determines that there is service data to be sent to the first device 110 , if it detects that the cache of the second interface 124 stores service data to be sent, the second device 120 determines to communicate with the first device 110 .
  • Condition 2 The number of transmitter equalization parameters evaluated by the second device 120 and the first device 110 reaches a threshold.
  • the threshold may be represented by the number of groups of transmitter equalization parameters, for example, the number of transmitter equalization parameters evaluated by the second device 120 and the first device 110 reaches ten groups. This threshold can also be expressed as a ratio. For example, the transmitter equalization parameters evaluated by the second device 120 and the first device 110 account for the total number of groups of transmitter equalization parameters (the total number of groups refers to the group number of evaluated transmitter equalization parameters and the unevaluated transmitter equalization parameters 30% of the sum of the number of groups).
  • Condition 3 The second device 120 determines currently available transmitter equalization parameters through a transmitter equalization parameter evaluation process.
  • the second device 120 determines that the evaluation result indicates that a set of transmitter equalization parameters has passed, or that the pass ratio is greater than a specific value, then it is considered that the set of transmitter parameters is available. In this case, the second device 120 can be considered to have found a currently available For the equalization parameter of the transmitter, the process of evaluating the equalization parameter of the transmitter on the first interface 114 may be exited.
  • Step 404 The second device 120 exits the transmitter equalization parameter evaluation procedure for the first interface 114 in the first device 110.
  • the second device 120 may send a transmitter equalization parameter evaluation exit message to the first device 110 through the second interface 124, and the transmitter equalization parameter evaluation exit message is used to request to exit the evaluation process of the transmitter equalization parameter of the first interface 114 .
  • the first device 110 may receive the transmitter equalization parameter evaluation exit message through the first interface 114, and if it is determined that the second device 120 needs to exit the evaluation of the transmitter equalization parameters of the first interface 114, the first device 110 may directly Exit the process of evaluating the equalization parameters of the transmitter of the first interface 114 .
  • the expression form of the sender equalization parameter evaluation exit message may be an identification bit in a code stream interacted between the first device 110 and the second device 120 .
  • the transmitter equalization parameter exit flag is used to indicate whether to request to exit the transmitter equalization parameter evaluation procedure for the first interface 114 in the first device 110 .
  • the identification bit When there is no need to exit the transmitter equalization parameter evaluation process for the first interface 114, the identification bit may be a null value. That is to say, the identification bit will not be occupied during normal service transmission or during the equalization parameter evaluation process of the transmitter.
  • the identification bit When it is necessary to exit the transmitter equalization parameter evaluation process for the first interface 114, the identification bit may be a specific value. That is to say, this identification bit needs to be occupied in the process of exiting the equalization parameter evaluation process of the transmitter.
  • the second device 120 When the second device 120 needs to exit the transmitter equalization parameter evaluation process for the first interface 114, the second device 120 can set the transmitter equalization parameter exit flag in the third code stream to a third value, and pass the second The interface 124 sends the third code stream to the first device 110 .
  • the second device 120 may request to exit the transmitter equalization of the first interface 114 determined by the third value on the transmitter equalization parameter exit flag Parameter evaluation process.
  • the first device 110 may exit the transmitter equalization parameter evaluation procedure for the first interface 114 .
  • the transmitter equalization parameter evaluation exit message may also be in other forms, for example, the transmitter equalization parameter evaluation exit message may be a new message defined between the first device 110 and the second device 120 .
  • the second device 120 when the second device 120 needs to exit the transmitter equalization parameter evaluation process for the first interface 114 in the first device 110, it may also not send a transmitter equalization parameter evaluation exit message, but directly exit the process for the first interface 114.
  • the transmitter equalization parameter evaluation process of the first interface 114 in the device 110 that is, the information for executing the transmitter equalization parameter evaluation process of the first interface 114 in the first device 110 is no longer sent to the first device 110, if no longer Send the transmitter equalization parameters that need to be evaluated, and switch to the normal working state.
  • Step 405 The first device 110 determines that the second evaluation exit condition is met.
  • the second assessment exit conditions include some or all of the following conditions:
  • Condition 1 The first device 110 needs to communicate with the second device 120 .
  • the second device 120 determines to communicate with the first device 110 .
  • Condition 2 The first device 110 needs to process other operations.
  • the first device 110 needs to perform operations such as self-check and restart.
  • the first device 110 may exit the transmitter equalization parameter evaluation process for the first interface 114 .
  • Step 406 The first device 110 exits the transmitter equalization parameter evaluation procedure for the first interface 114 in the first device 110. Similar to the execution method of step 404, the difference is that the execution subject is different. For details, please refer to step 404, which will not be repeated here.
  • the first device 110 may also directly exit the transmitter equalization parameter evaluation process for the first interface 114 in the first device 110 without sending the transmitter equalization parameter evaluation exit message, that is, no longer send the test code stream.
  • steps 403 to 406 are only a scenario where the first device 110 or the second device 120 voluntarily withdraws from the transmitter equalization parameter evaluation process for the first interface 114 in the first device 110, and this embodiment of the present application does not limit A scenario in which the first device 110 or the second device 120 actively exits the transmitter equalization parameter evaluation process of the first interface 114 in the first device 110 .
  • the first device 110 and the second device 120 can execute the transmitter equalization parameter evaluation process for the first interface 114, and in the first When communication is required between the device 110 and the second device 120, the transmitter equalization parameter evaluation process for the first interface 114 may be exited.
  • the initiation and exit of the transmitter equalization parameter evaluation process of the first interface 114 is relatively flexible.
  • all transmitter equalization parameters of the first interface 114 can be evaluated by starting the transmitter equalization parameter evaluation process of the first interface 114 one or more times.
  • the second device 120 may select one or more sets of transmitter equalization parameters from the evaluation results of all transmitter equalization parameters, such as selecting one or more sets of transmitter evaluation parameters at a transmission rate (for example, selecting the evaluation result as pass, or a transmitter whose pass proportion exceeds a first threshold, or whose fail proportion falls below a second threshold evaluates the parameter).
  • the second device 120 selects the transmitter equalization parameters, it may notify the first device 110 of the selected transmitter equalization parameters, and indicate that the transmitter equalization parameters are available, or instruct the first device 110 to use the selected transmitter equalization parameters. Updates the current transmitter equalization parameters.
  • the purpose of the first device 110 and the second device 120 performing the transmitter equalization parameter evaluation process on the first interface 114 in the first device 110 is to obtain a more suitable transmitter equalization parameter.
  • the second device 120 finds a group or For multiple sets of transmitter enhancement parameters (such as selecting transmitter evaluation parameters whose evaluation result is pass, or the pass ratio exceeds the first threshold, or the failure ratio is lower than the second threshold), the second device 120 can also withdraw from the first device 110.
  • the transmitter equalization parameter evaluation process of the first interface 114 sends the sent one or more sets of transmitter enhancement parameters to the first device 110, and indicates that the transmitter equalization parameters are available, or instructs the first device 110 to use the
  • the selected transmitter equalization parameters update the current transmitter equalization parameters.
  • the transmitter equalization parameter evaluation process for the first interface 114 in the first device 110 may no longer be started when the communication link is idle. That is, as long as one or more sets of transmitter enhancement parameters that meet the requirements are found, the transmitter equalization parameter evaluation process for the first interface 114 in the first device 110 can be stopped, and the remaining unevaluated transmitters can no longer be evaluated. Equalization parameters are evaluated.
  • the embodiment of the present application also provides an evaluation device, which is used to execute the method performed by the second device in the method embodiment shown in Figure 4 above, and the relevant features can be Refer to the foregoing method embodiments, and details are not repeated here.
  • the evaluation device 500 is used to evaluate the transmitter equalization parameters of the high-speed interface in the first device, and the evaluation device 500 includes a detection module 501 and a parameter evaluation module 502:
  • the detection module 501 is configured to detect that the communication link between the first device and the second device is idle, and the communication link is established through a high-speed interface in the first device.
  • a parameter evaluation module 502 configured to execute a transmitter equalization parameter evaluation process for the high-speed interface in the first device based on the communication link.
  • the parameter evaluation module 502 may also exit the transmitter equalization parameter evaluation procedure for the first interface in the first device when determining that the evaluation exit condition is met.
  • evaluating exit conditions includes some or all of the following:
  • the second device needs to communicate with the first device.
  • the number of evaluated transmitter equalization parameters reaches a threshold
  • the equalization parameter of the transmitter whose evaluation is passed refers to the equalization parameter of the transmitter whose evaluation result is passed or whose channel rate is higher than a threshold.
  • the idle communication link means that no service data is transmitted on the communication link.
  • the detection module 501 may detect whether the second device sends or receives service data through the communication link; if the second device does not send service data through the communication link Or no service data is received, indicating that the link is idle. The detection module 501 may also determine whether there is service data to be sent on the second device; if there is no service data to be sent on the second device side, it means that the link is idle.
  • the parameter evaluation module 502 may interact with the first device based on the communication link and one or more sets of transmitter equalization parameters, and evaluate one or more Multiple sets of transmitter equalization parameters are evaluated.
  • the multiple sets of transmitter equalization parameters include all transmitter equalization parameters of the transmitters of the high-speed interface in the first device.
  • the evaluation device further includes a selection module 503 and a sending module 504:
  • a selection module 503, configured to select transmitter equalization parameters according to evaluation results of one or more sets of transmitter equalization parameters
  • the sending module 504 is configured to send the selected set of transmitter equalization parameters to the first device, indicating that the selected transmitter equalization parameters are available.
  • the transmitter equalization parameter evaluation process for the high-speed interface in the first device includes a transmitter equalization parameter evaluation process at one or more transmission rates, where the transmission rate is the transmission rate of data in the communication link .
  • the sending module 504 may also send a notification message to the first device, where the notification message is used to indicate the transmission rate; the parameter evaluation module 502 may execute the communication link in the first device at the transmission rate based on the communication link. Transmitter Equalization Parameter Evaluation Flow for High-Speed Interfaces.
  • each functional module in the embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
  • the above-mentioned embodiments may be implemented in whole or in part by software, hardware, firmware or other arbitrary combinations.
  • the above-described embodiments may be implemented in whole or in part in the form of computer program products.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on the computer, the processes or functions according to the embodiments of the present invention will be generated in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center that includes one or more sets of available media.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media.
  • the semiconductor medium may be a solid state drive (SSD).
  • the second device in the embodiment shown in FIG. 4 or the evaluation device shown in FIG. 5 can take the form of the second device shown in FIG. 3 .
  • a processor 122, a memory 123, and a communication interface are included.
  • the processor 122, the memory 123, and the second interface 124 reference may be made to the aforementioned memory, and details are not repeated here.
  • the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
  • the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

一种发送器均衡参数评估方法及装置,本申请中提供的方法用于对第一设备中高速接口的发送器均衡参数进行评估,该方法由与第一设备通过通信链路连接的第二设备执行。第二设先检测第一设备与第二设备之间的通信链路的状态,该通信链路是利用该第一设备中的高速接口构建的。在确定通信链路空闲的情况下,第二设备基于通信链路执行对第一设备中高速接口的发送器均衡参数评估流程。在第一设备和第二设备的通信链路空闲的情况下,启动第一设备中高速接口的发送器均衡参数评估流程,能够有效利用通信链路空闲的时间,能够保证可以评估较多的发送器均衡参数,以获得较为适宜的发送器均衡参数,保证了发送器均衡参数评估的效率。

Description

一种发送器均衡参数评估方法及装置
相关申请的交叉引用
本申请要求在2021年09月09日提交中国专利局、申请号为202111057180.3、申请名称为“一种发送器均衡参数评估方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种发送器均衡参数评估方法及装置。
背景技术
设备之间在建立通信链路时,会先进行通信链路的协商过程,在协商过程包括对设备的发送器均衡参数的评估,也即需要执行发送器均衡参数评估流程。通过发送器均衡参数评估流程需要选择与通信链路匹配的发送器均衡参数。
发送器均衡参数评估流程是需要对数量较多的发送均衡参数进行逐一评估的,由于发送器均衡参数评估流程存在时间限制,有限的时间内发送器均衡参数评估流程并不能对所有发送均衡参数进行评估,最终所确定的发送器均衡参数很可能并不合适,会降低通信链路的数据传输效果。
发明内容
本申请提供一种发送器均衡参数评估方法及装置,用以提升发送器均衡参数评估的效率。
第一方面,本申请实施例提供了一种发送器均衡参数评估方法,该方法可以用于对第一设备中高速接口的发送器均衡参数进行评估,该方法可以由与第一设备通过通信链路连接的第二设备执行。在该方法中,第二设备可以先检测第一设备与第二设备之间的通信链路的状态,该通信链路是利用该第一设备中的高速接口构建的,用于连接第一设备和第二设备。在确定第一设备与第二设备之间的通信链路空闲的情况下,第二设备可以基于通信链路执行对第一设备中高速接口的发送器均衡参数评估流程。
通过上述方法,在第一设备和第二设备的通信链路空闲的情况下,启动第一设备中高速接口的发送器均衡参数评估流程,能够有效利用通信链路空闲的时间,能够保证可以评估较多的发送器均衡参数,以获得较为适宜的发送器均衡参数,保证了发送器均衡参数评估的效率。
在一种可能的实施方式中,在第一设备和第二设备执行对第一设备中高速接口的发送器均衡参数评估流程的过程中,第一设备和第二设备可以随时退出第一设备中高速接口的发送器均衡参数评估流程。
对于第二设备,当第二设备在确定满足评估退出条件时,可以退出对第一设备中第一接口的发送器均衡参数评估流程。
这里并不限定第二设备退出对第一设备中第一接口的发送器均衡参数评估流程的方 式,可以向第一设备发送消息,以通知第一设备需要退出对第一设备中第一接口的发送器均衡参数评估流程。第二设备也可以直接退出对第一设备中第一接口的发送器均衡参数评估流程,切换至正常工作状态,如在PCIe标准下正常工作状态可以是L0状态。
对于第一设备,当第一设备在确定需要与第二设备进行通信,或需要执行其他操作时,第一设备可以退出对第一设备中第一接口的发送器均衡参数评估流程。
这里并不限定第一设备退出对第一设备中第一接口的发送器均衡参数评估流程的方式,可以向第二设备发送消息,以通知第二设备需要退出对第一设备中第一接口的发送器均衡参数评估流程。第一设备也可以直接退出对第一设备中第一接口的发送器均衡参数评估流程,切换至正常工作状态。
通过上述方法,第一设备和第二设备能够随时退出对第一设备中第一接口的发送器均衡参数评估流程,对第一设备和第二设备的正常业务不会产生影响。
在一种可能的实施方式中,评估退出条件包括下列的部分或全部:
条件一、第二设备需要与第一设备进行通信;
条件二、已评估的发送器均衡参数的数量达到阈值;
条件三、通过获得对第一设备中高速接口的发送器均衡参数评估流程获得评估通过的发送器均衡参数。该评估通过的发送器均衡参数是指评估结果为通过或通道率高于阈值的发送器均衡参数。
通过上述方法,评估退出条件包括多种不同的条件,适用于不同应用场景。
在一种可能的实施方式中,通信链路空闲是指通信链路上未传输业务数据。
通过上述方法,也即可以在不传输业务数据的情况下执行发送器均衡参数的评估流程,保证了业务数据的有效传输。
在一种可能的实施方式中,第二设备在检测第一设备与第二设备之间的通信链路的状态时,第二设备可以检测第二设备通过通信链路是否发送业务数据或是否接收业务数据;当第二设备通过通信链路发送业务数据或接收业务数据,则说明通信链路忙碌,当第二设备通过通信链路未发送业务数据,且未接收业务数据,则说明通信链路空闲。第二设备也可以第二设备侧是否存在待发送的业务数据;当第二设备侧存在待发送的业务数据,说明通信链路忙碌或在较短时间内将处于忙碌状态(这种情况可以认为通信链路忙碌);当第二设备侧不存在待发送的业务数据,第二设备可以认为通信链路空闲。
通过上述方法,第二设备通过多种不同的方式检测通信链路的状态,方式较为灵活。
在一种可能的实施方式中,第二设备基于通信链路执行对第一设备中高速接口的发送器均衡参数评估流程时,可以评估一组或多组发送器均衡参数。在评估流程中,第二设备与第一设备可以基于通信链路以及一组或多组发送器均衡参数进行交互,实现对一组或多组发送器均衡参数进行评估。
通过上述方法,对第一设备中高速接口的发送器均衡参数评估流程中能够至少保证对一组发送器均衡参数进行评估,保证了整个评估流程的有效性。
在一种可能的实施方式中,第二设备可以在通信链路空闲的情况下,多次启动对第一设备中高速接口的发送器均衡参数评估流程,对所有可能的发送器均衡参数进行评估。也即所评估的多组发送器均衡参数包括第一设备中高速接口的发送器全部发送器均衡参数。
通过上述方法,第二设备能够遍历所有可能的发送器均衡参数,以对第一设备中高速接口的发送器均衡参数进行评估,以保证能够评估出效果较佳的发送器均衡参数。
在一种可能的实施方式中,第二设备还可以根据一组或多组发送器均衡参数的评估结果选取发送器均衡参数;之后,向第一设备发送选取的一组发送器均衡参数,指示选取的发送器均衡参数可用。
第二设备也可以将一组或多组发送器均衡参数的评估结果发送给第一设备,由第一设备选择可用的发送器均衡参数。
通过上述方法,第二设备可以告知第一设备可用的发送器均衡参数,以便第一设备可以为高速接口配置发送器均衡参数,保证后续可以实现高效的数据传输。
在一种可能的实施方式中,对第一设备中高速接口的发送器均衡参数评估流程可以包括不同传输速率下的发送器均衡参数评估流程。也即本申请中执行的对第一设备中高速接口的发送器均衡参数评估流程包括一个或多个传输速率下的发送器均衡参数评估流程,传输速率为通信链路中数据的传输速率。
通过上述方法,不同传输速率下所适用的发送器均衡参数可能不同,通过不同传输速率下的发送器均衡参数评估流程,可以获取不同传输速率下所适用的发送器均衡参数。
在一种可能的实施方式中,第二设备基于通信链路执行对第一设备中高速接口的发送器均衡参数评估流程时,可以向第一设备发送通知消息,通知消息用于指示传输速率;这样,第一设备可以确定后续发送器均衡参数评估流程是在哪一种传输速率下进行的。之后,第二设备可以基于通信链路,在传输速率下执行对第一设备中高速接口的发送器均衡参数评估流程。
第二设备也可以不发送通知消息,直接进行传输速率的切换。
通过上述方法,第二设备通过告知第一设备传输速率,以保证第一设备可以在不同的传输速率下与第一设备配合执行对第一设备中高速接口的发送器均衡参数评估流程,第一设备能够及时适应不同传输速率。
第二方面,本申请实施例还提供了一种评估装置,该评估装置具有实现上述第以第一方面的方法实例中行为的功能,有益效果可以参见第一方面的描述此处不再赘述。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。在一个可能的设计中,所述装置的结构中包括检测模块、参数评估模块,可选的,还包括选取模块以及发送模块,这些模块可以执行上述第一方面方法示例中的相应功能,具体参见方法示例中的详细描述,此处不做赘述。
第三方面,本申请实施例还提供了一种计算设备,该计算设备具有实现上述第一方面的方法实例中行为的功能,有益效果可以参见第一方面的描述此处不再赘述。所述计算设备的结构中包括处理器和存储器(这里存储器也可以理解为内存,也可以理解为内存以及硬盘等外存),所述处理器被配置为支持所述评估装置执行上述第一方面方法中相应的功能。所述存储器与所述处理器耦合,其保存所述计算设备必要的程序指令和数据。所述计算设备的结构中还包括通信接口(也即方法实施例中提及的第二接口),用于与其他设备进行通信,如可以发送对第一设备中高速接口的发送器均衡参数评估流程中需要发送的信息,发送发送器均衡参数或发送器均衡参数的评估结果。
第四方面,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面以及第一方面的各个可能的实施方式中所述的方法。
第五方面,本申请还提供一种包含指令的计算机程序产品,当其在计算机上运行时, 使得计算机执行上述第一方面以及第一方面的各个可能的实施方式中所述的方法。
第六方面,本申请还提供一种计算机芯片,所述芯片与存储器相连,所述芯片用于读取并执行所述存储器中存储的软件程序,执行上述第一方面以及第一方面的各个可能的实施方式中所述的方法。
附图说明
图1为一种发送器均衡参数的评估流程中设备间的连接关系示意图;
图2为本申请提供的一种可进行评估的多组发送器均衡参数的示意图;
图3为本申请提供的一种系统的架构示意图;
图4为本申请提供的一种发送器均衡参数评估方法示意图;
图5为本申请提供的一种评估装置示意图。
具体实施方式
对于两个需要通信的设备,可以通过设备的接口之间的通信链路实现数据的传输。类似的,对于设备内的两个需要通信的模块,同样可以通过模块的接口之间的通信链路实现数据的传输。在本申请实施例中以设备的接口之间通信链路为例,对设备的通信过程进行说明。对于模块之间的通信过程与设备间的通信过程类似,此处不再赘述。进行下面对接口1与接口2的结构进行说明。
参见图1,设备1上设置有接口1,该接口1中包括发送器1和接收器1。设备2上是指有接口2,接口2包括发送器2和接收器2。
其中,发送器1和发送器2用于发送数据,接收器1和接收器2用于接收数据。发送器1与接收器2之间可以通过信号线连接。发送器1发送的数据可以通过信号线传输到接收器2。接收器1与发送器2之间可以通过信号线连接。发送器2发送的数据可以通过信号线传输到接收器1。接口1和接口2之间的一个通信链路可以包括发送器1与接收器2之间的信号线、以及接收器1与发送器2之间的信号线。
当设备1需要向设备2发送数据时,设备1中的处理器可以通过接口1中的发送器1将数据通过信号线发送到接收器2,接收器2再将接收到的数据传输给设备2的处理器。
该数据在从发送器1到接收器2传输的过程中,会存在数据衰减或干扰,若发送器1不对该数据进行处理或所进行的处理强度较低,会导致接收器2所接收到的数据与实际发送的数据存在偏差,最终导致设备2的处理器无法正确的识别出所接收到的数据。
发送器均衡参数即为发送器1对数据进行处理所需要的参数。发送器1可以根据预先配置的发送均衡参数对数据进行处理,如可以降低数据中的低频信号,增强数据中的高频信号。经过处理后的数据即使在传输过程中发生衰减或干扰,降低的低频数据与增强的高频数据也可以与衰减(或干扰)的部分数据相抵,这样当数据到达接收器2时,衰减后的数据与实际需要发送的数据(实际需要发送的数据可以理解为发送器1未进行处理的数据)差别较小,这样,设备2的处理器能够准确的识别出该数据。
可见,发送均衡参数的选择对于数据传输起着重要作用。若设备1与设备2之间的通信链路以高速串行计算机扩展总线(peripheral component interconnect express,PCIe),在设备1和设备2之间建立通信链路时,设备1和设备2会进行链路协商,通过链路协商能 够保证该通信链路的有效性,也即保证通信链路可用,还能够确定出通信链路的相关参数,如通信链路的宽度、通信链路中逻辑通道的编号以及发送器均衡参数。
通过发送器均衡参数的评估过程可以确定发送器均衡参数。如图2所示为能够参与评估的多组发送器均衡参数。一组发送器均衡参数为(C -1,C 0,C +1),其中,|C -1|+|C 0|+|C +1|=24。
在该评估流程中,设备1和设备2可以对多组不同的发送器均衡参数进行评估,从中选择出效果较好的一组发送器均衡参数。针对其中一组发送器均衡参数,评估流程如下:
设备2从该多组发送器均衡参数中选择一组作为待评估的发送器均衡参数,将该组发送器均衡参数发送至设备1,设备1利用该组发送器均衡参数配置接口1。在配置完成后,设备1可以通过接口1向设备2发送测试码流,发送出的侧是码流是接口1利用该组发送器均衡参数处理后的码流。
设备2通过接口2接收该测试码流。设备2可以分析该测试码流,确定该测试码流是否清晰。若该测试码流清晰,较易识别,说明该组发送器均衡参数效果较佳,评估结果为通过。若该测试码流不易识别,说明该组发送器均衡参数效果较差,评估结果为失败。
目前链路协商过程中所进行的发送器均衡参数的评估流程存在时间限制,有限的时间内,并不能保证能够对所有发送器均衡参数进行评估,最终选择的一组发送器均衡参数的效果也并不一定好。为此,本申请实施例中提供了一种发送器均衡参数评估方法,下面结合附图对本申请实施例所适用于的系统以及发送器均衡参数评估方法进行说明。
如图3所述为本申请实施例所适用的一种系统架构示意图,该系统包括第一设备110和第二设备120,可选的,在第一设备110和第二设备120之间还可以包括中继设备。中继设备可以对第一设备110和第二设备120需要传输的数据进行转发。
第一设备110和第二设备120为需要进行通信的两个设备。第一设备110和第二设备120上可以设置有接口,第一设备110上的接口和第二设备120上的接口之间可以建立通信链路。为了方便说明,将第一设备110的接口称为第一接口,第二设备120的接口成为第二接口。
以第一设备为例,第一设备包括处理器112、内存113、第一接口114。处理器112、内存113、第一接口114之间通过总线111通信。
处理器112可以为中央处理器(central processing unit,CPU),处理器112还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件、人工智能芯片、片上芯片等。通用处理器可以是微处理器或者是任何常规的处理器等。
内存113可以包括易失性存储器(volatile memory),例如随机存取存储器(random access memory,RAM)、动态随机存取存储器(dynamic random access memory,DRAM)等。也可以为非易失性存储器(non-volatile memory),例如存储级存储器(storage-class memory,SCM)等,或者易失性存储器与非易失性存储器的组合等。
内存113中还可以包括操作系统等其他运行进程所需的软件模块。操作系统可以为LINUX TM,UNIX TM,WINDOWS TM等。
第一接口114可以用于与第二设备进行通信,第一接口和第二接口之间的通信链路可以为无线链路,也可以为有线链路,该有线链路可以为PCIe,也可以为其他类型的链路, 如串行高级技术附件(serial advanced technology attachment,SATA)总线、内置集成电路(inter-integrated circuit,I2C)总线等。
第二设备包括处理器122、内存123、第二接口124。处理器122、内存123、第二接口124之间通过总线111通信。处理器122、内存123、第二接口124与处理器112、内存113、第一接口114类似,具体可以参见前述说明,此处不再赘述。本申请实施例提供的发送器均衡参数评估方法可以由于处理器122执行,也即,处理器122可以通过调用内存123中存储的计算机执行指令,执行本申请实施例提供的发送器均衡参数评估方法。
在本申请实施例中,以对第一接口114的发送器均衡参数进行评估为例,第二设备120可以在与第一设备110的之间的通信链路空闲时,启动对第一设备110中第一接口114的发送器均衡参数评估流程,基于该通信链路执行对第一设备110中第一接口114的发送器均衡参数评估流程。利用第一设备110与第二设备120之间通信链路空闲的时间,执行第一接口114的发送器均衡参数评估流程,既不会影响第一设备110和第二设备120之间业务数据的传输,还能够保证对较多的发送器均衡参数实现评估,便于后续可以利用评估结构选择一组效果较佳的发送器均衡参数。
下面结合附图4对本申请提供的发送器均衡参数评估方法进行说明,参见图4,该方法包括:
步骤401:第二设备120检测第一设备110与第二设备120之间的通信链路的状态。
在本申请实施例中,通信链路的状态可以分为空闲和忙碌两种,通信链路忙碌是指通信链路上正传输着业务数据或准备传输业务数据,通信链路空闲则是指通信链路上不传输业务数据。业务数据是与第一设备110与第二设备120之间业务相关的数据。该业务数据可以是第一设备110的业务层中需要发送的数据或第二设备120中业务层中需要发送的数据,如在PCIe标准中,业务数据可以为传输(transaction)层的数据包。非业务数据可以为数据链路(data link)层中的数据包。
本申请实施例并不限定第二设备120检测通信链路的状态的方式,下面列举其中几种检测方式:
方式一、第二设备120可以直接检测该通信链路上是否在传输业务数据。
第二设备120可以检测第二发送器是否在发送数据,或检测第二接收器是否在接收数据。当第二发送器在发送数据,或第二接收器在接收数据,则说明该通信链路上在传输业务数据,通信链路忙碌。当第二发送器未发送数据,且第二接收器未接收数据,则说明该通信链路上未传输业务数据,通信链路空闲。
在具体实现时,第二设备120可以在特定时间内检测第二发送器是否发送了业务数据以及第二接收器是否接收了业务数据。若在特定时间内第二发送器发送了业务数据或第二接收器接收了业务数据,则说明该通信链路上在传输业务数据。若在特定时间内第二发送器未发送业务数据且第二接收器未接收业务数据,则说明该通信链路上在未传输业务数据。
方式二、第二设备120可以第二设备120侧是否有待发送的业务数据。可选的,第二设备120还可以确定第一设备110侧是否有待发送的业务数据。
当第二设备120需要向第一设备110发送数据时,由于第二设备120中的第二发送器在一段时间内发送的数据量有些,待发送的业务数据可以暂时存放在第二接口124的缓存中,当第二接口124(也即第二发送器)可以从缓存中提取数据,之后再将提取的数据通过第一设备110与第二设备120之间的通信链路发送至第一设备110。
类似的,当第一设备110需要向第二设备120发送数据时,由于第一设备110中的第一发送器在一段时间内发送的数据量有些,待发送的业务数据可以暂时存放在第一接口114的缓存中,当第一接口114(也即第一发送器)可以从缓存中提取数据,之后再将提取的数据通过第一设备110与第二设备120之间的通信链路发送至第二设备120。
第二设备120可以检测本地的第二接口124的缓存是否存放有待发送的业务数据,还可以通知第一设备110检测本地的第一接口114的缓存中是否存放有待发送的业务数据,以确定第一设备110侧是否有待发送的业务数据。
当然,在一些可能的实施方式中,第二设备120也可以在确定第一设备110侧是否有待发送的业务数据时,第二设备120也可以检测特定时间内第二接口124的第二接收器是否接收有业务数据,若第二设备120在该特定时间内未接收到业务数据,则认为第一设备110侧不存在待发送的业务数据。若第二设备120在该特定时间内接收到业务数据,则认为第一设备110侧存在待发送的业务数据。
当第二接口124的缓存存放有待发送的业务数据,或第一接口114的缓存存放有待发送的业务数据,则说明第一设备110和第二设备120之间的通信链路需要传输业务数据,通信链路忙碌。当第二接口124的缓存未存放有待发送的业务数据,且第一接口114的缓存未存放有待发送的业务数据,则说明第一设备110和第二设备120之间的通信链路不需要传输业务数据,通信链路空闲。
上述两种方式仅是举例,第二设备120采用方式一或方式二检测通信链路的状态,也可以采用方式一和方式二结合的方式检测通信链路的状态。当然,第二设备120在检测通信链路的状态时也可以采用其他方式,例如,第二设备120若确定第二设备120准备进入到低功耗状态(低功耗状态可以理解为进入省电模式,或不再发送业务数据的状态),第二设备120也可以认为通信链路空闲,在这种情况下,第二设备120可以不进入低功耗状态,而执行步骤402。
步骤402:第二设备120在确定该通信链路空闲时,基于通信链路执行对第一设备110中第一接口114的发送器均衡参数评估流程。
第二设备120在确定该通信链路空闲时,可以先通知第一设备110启动对第一设备110中第一接口114的发送器均衡参数评估流程。
第二设备120通知第一设备110启动对第一设备110中第一接口114的发送器均衡参数评估流程的方式有很多,本申请实施例并不限定第二设备120通知第一设备110启动对第一设备110中第一接口114的发送器均衡参数评估流程的方式。
例如,第二设备120可以通过第二接口124向第一设备110发送发送器均衡参数评估请求消息,该发送器均衡参数评估请求消息,用于请求对第一接口114的发送器均衡参数进行评估。
第一设备110通过第一接口114可以接收该发送器均衡参数评估请求消息,在确定能够对第一接口114的发送器均衡参数进行评估的情况下,第一设备110可以通过第一接口114向第二设备120发送发送器均衡参数评估应答消息,发送器均衡参数评估应答消息用于指示能够对第一接口114的发送器均衡参数进行评估。在确定不能对第一接口114的发送器均衡参数进行评估的情况(如第一设备110存在待发送的业务数据)下,第一设备110可以通过第一接口114向第二设备120发送发送器均衡参数评估应答消息,该发送器均衡参数评估应答消息可以指示拒绝对第一接口114的发送器均衡参数进行评估。
第二设备120通过第二接口124可以接收该发送器均衡参数评估应答消息,在解析了该发送器均衡参数评估应答消息,确定第一设备110能够对第一接口114的发送器均衡参数进行评估后,可以基于通信链路执行对第一设备110中第一接口114的发送器均衡参数评估流程。
其中,发送器均衡参数评估请求消息以及发送器均衡参数评估应答消息的表现形式可以为第一设备110和第二设备120之间交互的码流中的标识位。其中,码流是指第一设备110与第二设备120之间数据流。发送器均衡参数请求标识位用于指示是否请求启动对所述第一设备110中第一接口114的发送器均衡参数评估流程,所述发送器均衡参数应答标识位用于指示是否同意启动对第一设备110中高速接口的发送器均衡参数评估流程。
在不需要执行或启动对第一接口114的发送器均衡参数评估流程时,这两个标识位可以为空值。也即这两个标识位在正常的业务传输过程中或其他非发送器均衡参数评估流程中是不会被占用的。当需要执行或启动对第一接口114的发送器均衡参数评估流程时,这两个标识位可以为特定的值。也即这两个标识位需要启动或执行发送器均衡参数评估流程中是被占用的。
当第二设备120需要启动对第一接口114的发送器均衡参数评估流程时,第二设备120可以将第一码流中的发送器均衡参数请求标识位设置为第一值,并通过第二接口124将该第一码流发送至第一设备110。第一设备110在通过第一接口114接收到该第一码流时,可以通过发送器均衡参数请求标识位上的第一值确定的第二设备120请求启动对第一接口114的发送器均衡参数评估流程。若第一设备110确定能够启动对第一接口114的发送器均衡参数评估流程,第一设备110可以将第二码流中的发送器均衡参数应答标识位设置为第二值,并通过第一接口114将该第二码流发送至第二设备120。第二设备120在通过第二接口124接收到该第二码流,确定能够启动对第一接口114的发送器均衡参数评估流程。
发送器均衡参数评估请求消息以及发送器均衡参数评估应答消息也可以为其他表现形式,例如,发送器均衡参数评估请求消息以及发送器均衡参数评估应答消息可以是第一设备110和第二设备120之间定义的新的消息。
第二设备120在确定能够启动对第一接口114的发送器均衡参数评估流程后,可以基于该通信链路执行对第一接口114的发送器均衡参数评估流程。对第一接口114的发送器均衡参数评估流程可以参见前述说明,此处不再赘述。
第一接口114和第二接口124之间的通信链路可以支持不同的传输速率,也即在该通信链路上可以通过不同传输速率传输数据。当第一接口114以不同的传输速率通过通信链路发送数据,数据的衰减程度以及数据之间的干扰程度也不同,第一接口114的发送器均衡参数也可能不同。
在本申请实施例中,对第一接口114的发送器均衡参数评估流程包括不同传输速率下第一接口114的发送器均衡参数评估流程。这样能够通过不同传输速率下的第一接口114的发送器均衡参数评估流程确定出不同传输速率下,第一接口114所适用的一组或多组发送器均衡参数。
这里以在一种传输速率下第一接口114的发送器均衡参数评估流程为例,根据对发送器均衡参数的描述可知,实际需要评估的发送器均衡参数有许多组。第二设备120和第一设备110可以对任一组发送器均衡参数进行一次评估,第二设备120可以记录对该组发送器均衡参数的评估结果,如记录通过、失败。第二设备120和第一设备110也可以对任一 组发送器均衡参数进行多次评估,第二设备120可以记录该组发送器均衡参数的评估结果,如记录通过次数、或失败次数,又如记录通过比例(也即通过次数与总次数的比值),或失败比例(也即失败次数与总次数的比值)。
当需要执行不同的传输速率下第一接口114的发送器均衡参数评估流程时,再每执行一种传输速率下第一接口114的发送器均衡参数评估流程时,第一设备110和第二设备120之间可以商定该传输速率。例如,第二设备120可以通过发送通知消息的方式告知该传输速率,以便第一设备110能够确定后续进行的第一接口114的发送器均衡参数评估流程所需的传输速率。又例如,第二设备120和第一设备110之间可以约定传输速率的切换时间,也在一定的时间间隔内执行一种传输速率下第一接口114的发送器均衡参数评估流程,当该时间间隔结束,则会切换下一种传输速率,执行下一种传输速率下第一接口114的发送器均衡参数评估流程。这种情况下,第一设备110和第二设备120之间可以预先约定起始的传输速率以及传输速率的切换次序。又例如,第二设备120也可以直接进行传输速率的切换,第二设备120在切换传输速率后,可以以切换后的传输速率传输较长时间的数据,以保证第一设备110可以同步到该传输速率,与第二设备120保持一致。
需要说明的是,在步骤401~步骤402中的说明中是以第二设备120为对第一接口114的发送器均衡参数评估流程的触发者。在一些场景中,也允许第一设备110检测通信链路的状态,在确定该通信链路空闲时,基于通信链路触发对第一设备110中第一接口114的发送器均衡参数评估流程。也即步骤401~步骤402中检测通信链路状态以及启动对第一设备110中第一接口114的发送器均衡参数评估流程的执行主体也可以为第一设备110。具体方式与步骤401~步骤402所描述的方式类似,仅是执行主体不同,具体可以参见前述内容,此处不再赘述。
在本申请实施例中,第一设备110和第二设备120也可以预先约定在通信链路空闲时所启动的对第一设备110中第一接口114的发送器均衡参数评估流程的所允许的时间范围,如约定对第一设备110中第一接口114的发送器均衡参数评估流程的时间不小于第一时间值。也即约定该评估流程所进行的最小时间,通过约定最小时间,能够保证在通信链路空闲时所启动的对第一设备110中第一接口114的发送器均衡参数评估流程能够至少对一组或多组发送器均衡参数进行评估,保证对第一设备110中第一接口114的发送器均衡参数评估流程的有效性。当然,也可以约定对第一设备110中第一接口114的发送器均衡参数评估流程的时间不大于第二时间值。也即约定该评估流程所进行的最大时间,通过约定最大时间,能够保证所启动的对第一设备110中第一接口114的发送器均衡参数评估流程能够在一定时间内结束,不会一直占用通信链路。
在本申请实施例中也允许在特定情况下,第一设备110或第二设备120退出对第一设备110中第一接口114的发送器均衡参数评估流程的所允许的时间范围。例如第一设备110以及第二设备120之间需要通信,第一设备110或第二设备120可以主动退出对第一设备110中第一接口114的发送器均衡参数评估流程。这样能够保证第一设备110和第二设备120的能够进行正常的业务数据传输,保证对第一设备110中第一接口114的发送器均衡参数评估流程不会影响第一设备110与第二设备120之间的通信。
第二设备120退出对第一接口114的发送器均衡参数评估流程的方式可以参见步骤403~步骤404。第一设备110退出对第一接口114的发送器均衡参数评估流程的方式可以参见步骤405~步骤406。
步骤403:第二设备120确定满足第一评估退出条件。
第一评估退出条件包括下列条件的部分或全部:
条件一、第二设备120需要与第一设备110进行通信。
当第二设备120确定需要有发送至第一设备110的业务数据时,如检测到第二接口124的缓存中存放有待发送的业务数据,第二设备120确定与第一设备110进行通信。
条件二、第二设备120和第一设备110已评估的发送器均衡参数的数量达到阈值。
该阈值可以用发送器均衡参数的组数表示,如第二设备120和第一设备110已评估的发送器均衡参数达到十组。该阈值也可以用比值表示。如第二设备120和第一设备110已评估的发送器均衡参数占发送器均衡参数的总组数(总组数是指已评估的发送器均衡参数的组数和未评估的发送器均衡参数的组数的和值)的30%。
条件三、第二设备120通过发送器均衡参数评估流程确定当前可用的发送器均衡参数。
第二设备120在确定评估结果指示一组发送器均衡参数通过,或通过比例大于特定值,则认为该组发送器参数可用,在这种情况下,第二设备120可以认为找到了当前可用的发送器均衡参数,可以退出对第一接口114的发送器均衡参数评估流程。
步骤404:第二设备120退出对第一设备110中第一接口114的发送器均衡参数评估流程。
第二设备120可以通过第二接口124向第一设备110发送发送器均衡参数评估退出消息,该发送器均衡参数评估退出消息,用于请求退出对第一接口114的发送器均衡参数的评估流程。
第一设备110通过第一接口114可以接收该发送器均衡参数评估退出消息,在确定第二设备120需要退出对第一接口114的发送器均衡参数进行评估的情况下,第一设备110可以直接退出对第一接口114的发送器均衡参数的评估流程。
发送器均衡参数评估退出消息的表现形式可以为第一设备110和第二设备120之间交互的码流中的标识位。发送器均衡参数退出标识位用于指示是否请求退出对所述第一设备110中第一接口114的发送器均衡参数评估流程。
在不需要退出对第一接口114的发送器均衡参数评估流程时,该标识位可以为空值。也即该标识位在正常的业务传输过程中或发送器均衡参数评估流程中是不会被占用的。当需要退出对第一接口114的发送器均衡参数评估流程时,该标识位可以为特定的值。也即这该标识位需要退出发送器均衡参数评估流程中是被占用的。
当第二设备120需要退出对第一接口114的发送器均衡参数评估流程时,第二设备120可以将第三码流中的发送器均衡参数退出标识位设置为第三值,并通过第二接口124将该第三码流发送至第一设备110。第一设备110在通过第一接口114接收到该第三码流时,可以通过发送器均衡参数退出标识位上的第三值确定的第二设备120请求退出对第一接口114的发送器均衡参数评估流程。第一设备110可以退出对第一接口114的发送器均衡参数评估流程。
发送器均衡参数评估退出消息也可以为其他表现形式,例如,发送器均衡参数评估退出消息可以是第一设备110和第二设备120之间定义的新的消息。
需要说明的是,当第二设备120需要退出对第一设备110中第一接口114的发送器均衡参数评估流程时,也可以不发送发送器均衡参数评估退出消息,而是直接退出对第一设备110中第一接口114的发送器均衡参数评估流程,也即不再向第一设备110发送用于执 行第一设备110中第一接口114的发送器均衡参数评估流程的信息,如不再发送需要评估的发送器均衡参数,切换到正常工作状态。
步骤405:第一设备110确定满足第二评估退出条件。
第二评估退出条件包括下列条件的部分或全部:
条件一、第一设备110需要与第二设备120进行通信。
当第一设备110确定需要有发送至第二设备120的业务数据时,如检测到第一接口114的缓存中存放有待发送的业务数据,第二设备120确定与第一设备110进行通信。
条件二、第一设备110需要处理其他操作。
如第一设备110需要进行自检、重启等操作。这种情况下第一设备110可以退出对第一接口114的发送器均衡参数评估流程。
步骤406:第一设备110退出对第一设备110中第一接口114的发送器均衡参数评估流程。与步骤404的执行方式类似,区别在于执行主体不同.具体可以参见步骤404,此处不再赘述。
需要说明的是,第一设备110也可以不发送发送器均衡参数评估退出消息,直接退出对第一设备110中第一接口114的发送器均衡参数评估流程,也即不再发送测试码流。
当然,步骤403~步骤406中仅是第一设备110或第二设备120主动退出对第一设备110中第一接口114的发送器均衡参数评估流程的一种场景,本申请实施例并不限定第一设备110或第二设备120主动退出对第一设备110中第一接口114的发送器均衡参数评估流程的场景。
通过上述方式,只要第一设备110和第二设备120之间的通信链路空闲,第一设备110和第二设备120可以执行对第一接口114的发送器均衡参数评估流程,且在第一设备110和第二设备120之间需要通信时,可以退出对第一接口114的发送器均衡参数评估流程。对第一接口114的发送器均衡参数评估流程的启动以及退出较为灵活。
在实际应用中,通过一次或多次启动对第一接口114的发送器均衡参数评估流程能够对第一接口114的所有发送器均衡参数进行评估。第二设备120可以对所有发送器均衡参数的评估结果,选择出一组或多组发送器均衡参数,如在一种传输速率下选择一组或多组发送器评估参数(如选择评估结果为通过,或通过比例超过第一阈值,或失败比例低于第二阈值的发送器评估参数)。第二设备120在选择了发送器均衡参数后,可以通知第一设备110所选择的发送器均衡参数,并指示该发送器均衡参数可用,或指示第一设备110利用所选择的发送器均衡参数更新当前的发送器均衡参数。
第一设备110和第二设备120执行对第一设备110中第一接口114的发送器均衡参数评估流程是为了能够获得较为适宜的发送器均衡参数。当通过一次或多次启动对第一接口114的发送器均衡参数评估流程对第一接口114的部分组发送器均衡参数进行了评估,第二设备120根据评估结果发现了满足要求的一组或多组发送器增强参数(如选择评估结果为通过,或通过比例超过第一阈值,或失败比例低于第二阈值的发送器评估参数),第二设备120也可以退出对第一设备110中第一接口114的发送器均衡参数评估流程,并将所发送的一组或多组发送器增强参数发送至第一设备110,并指示该发送器均衡参数可用,或指示第一设备110利用所选择的发送器均衡参数更新当前的发送器均衡参数。之后,可以不再在通信链路空闲时,启动对第一设备110中第一接口114的发送器均衡参数评估流程。也即只要在发现了满足要求的一组或多组发送器增强参数,就可以停止对第一设备110 中第一接口114的发送器均衡参数评估流程,可以不再对剩余未评估的发送器均衡参数进行评估。
基于与方法实施例同一发明构思,本申请实施例还提供了一种评估装置,该评估装置用于执行上述如图4所示的方法实施例中所述第二设备执行的方法,相关特征可参见上述方法实施例,此处不再赘述。如图5所示,该评估装置500用于对第一设备中高速接口的发送器均衡参数进行评估,所述评估装置500包括检测模块501、参数评估模块502:
检测模块501,用于检测第一设备与第二设备之间的通信链路空闲,通信链路是通过第一设备中的高速接口构建的。
参数评估模块502,用于基于通信链路执行对第一设备中高速接口的发送器均衡参数评估流程。
在一种可能的实施方式中,参数评估模块502还可以在确定满足评估退出条件时,退出对第一设备中第一接口的发送器均衡参数评估流程。
在一种可能的实施方式中,评估退出条件包括下列的部分或全部:
1、第二设备需要与第一设备进行通信。
2、已评估的发送器均衡参数的数量达到阈值;
3、通过对第一设备中高速接口的发送器均衡参数评估流程获得评估通过的发送器均衡参数。该评估通过的发送器均衡参数是指评估结果为通过或通道率高于阈值的发送器均衡参数。
在一种可能的实施方式中,通信链路空闲是指通信链路上未传输业务数据。
在一种可能的实施方式中,检测模块501在检测通信链路状态时,可以检测第二设备通过通信链路是否发送业务数据或接收业务数据;若第二设备通过通信链路未发送业务数据或未接收业务数据,说明链路空闲。检测模块501也可以第二设备是否存在待发送的业务数据;若第二设备侧不存在待发送的业务数据,说明链路空闲。
在一种可能的实施方式中,参数评估模块502在执行发送器均衡参数的评估流程时,可以与第一设备基于通信链路以及一组或多组发送器均衡参数进行交互,对一组或多组发送器均衡参数进行评估。
在一种可能的实施方式中,多组发送器均衡参数包括第一设备中高速接口的发送器全部发送器均衡参数。
在一种可能的实施方式中,评估装置还包括选取模块503以及发送模块504:
选取模块503,用于根据一组或多组发送器均衡参数的评估结果选取发送器均衡参数;
发送模块504,用于向第一设备发送选取的一组发送器均衡参数,指示选取的发送器均衡参数可用。
在一种可能的实施方式中,对第一设备中高速接口的发送器均衡参数评估流程包括一个或多个传输速率下的发送器均衡参数评估流程,传输速率为通信链路中数据的传输速率。
在一种可能的实施方式中,发送模块504还可以向第一设备发送通知消息,通知消息用于指示传输速率;参数评估模块502可以基于通信链路,在传输速率下执行对第一设备中高速接口的发送器均衡参数评估流程。
需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。在本申请的实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块 中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
上述实施例,可以全部或部分地通过软件、硬件、固件或其他任意组合来实现。当使用软件实现时,上述实施例可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载或执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以为通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集合的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质。半导体介质可以是固态硬盘(solid state drive,SSD)。
在一个简单的实施例中,本领域的技术人员可以想到如图4所示的实施例中第二设备或图5所示的评估装置可采用图3所示第二设备的形式。其中,包括处理器122、内存123、通信接口(如第二接口124)。关于处理器122、内存123、第二接口124的说明可参见前述内存,此处不再赘述。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (22)

  1. 一种发送器均衡参数评估方法,其特征在于,所述方法用于对第一设备中高速接口的发送器均衡参数进行评估,所述方法包括:
    第二设备检测到所述第一设备与所述第二设备之间的通信链路空闲,所述通信链路是通过所述第一设备中的高速接口构建的;
    所述第二设备基于所述通信链路执行对所述第一设备中高速接口的发送器均衡参数评估流程。
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    所述第二设备在确定满足评估退出条件时,退出对所述第一设备中第一接口的发送器均衡参数评估流程。
  3. 如权利要求2所述的方法,其特征在于,所述评估退出条件包括下列的部分或全部:
    所述第二设备需要与所述第一设备进行通信;
    已评估的发送器均衡参数的数量达到阈值;
    通过对所述第一设备中高速接口的发送器均衡参数评估流程获得评估通过的发送器均衡参数。
  4. 如权利要求1~3任一项所述的方法,其特征在于,所述通信链路空闲是指所述通信链路上未传输业务数据。
  5. 如权利要求1~4任一项所述的方法,其特征在于,所述第二设备检测到所述第一设备与所述第二设备之间的通信链路空闲,包括:
    所述第二设备检测到所述第二设备通过所述通信链路未发送业务数据或未接收业务数据;或
    所述第二设备检测到所述第二设备不存在待发送的业务数据。
  6. 如权利要求1~5任一项所述的方法,其特征在于,所述第二设备基于所述通信链路执行对所述第一设备中高速接口的发送器均衡参数评估流程,包括:
    所述第二设备与所述第一设备基于所述通信链路以及一组或多组发送器均衡参数进行交互,对所述一组或多组发送器均衡参数进行评估。
  7. 如权利要求6所述的方法,其特征在于,所述多组发送器均衡参数包括所述第一设备中高速接口的发送器全部发送器均衡参数。
  8. 如权利要求6或7所述的方法,其特征在于,所述方法还包括:
    所述第二设备根据所述一组或多组发送器均衡参数的评估结果选取发送器均衡参数;
    所述第二设备向所述第一设备发送所述选取的一组发送器均衡参数,指示选取的所述发送器均衡参数可用。
  9. 如权利要求1~8任一项所述的方法,其特征在于,对所述第一设备中高速接口的发送器均衡参数评估流程包括一个或多个传输速率下的发送器均衡参数评估流程,所述传输速率为所述通信链路中数据的传输速率。
  10. 如权利要求9所述的方法,其特征在于,所述第二设备基于所述通信链路执行对所述第一设备中高速接口的发送器均衡参数评估流程,包括:
    所述第二设备向所述第一设备发送通知消息,所述通知消息用于指示所述传输速率;
    所述第二设备基于所述通信链路,在所述传输速率下执行对所述第一设备中高速接口 的发送器均衡参数评估流程。
  11. 一种评估装置,其特征在于,所述装置用于对第一设备中高速接口的发送器均衡参数进行评估,所述装置包括检测模块、参数评估模块:
    所述检测模块,用于检测所述第一设备与第二设备之间的通信链路空闲,所述通信链路是通过所述第一设备中的高速接口构建的;
    所述参数评估模块,用于基于所述通信链路执行对所述第一设备中高速接口的发送器均衡参数评估流程。
  12. 如权利要求11所述的装置,其特征在于,所述参数评估模块,还用于:
    在确定满足评估退出条件时,退出对所述第一设备中第一接口的发送器均衡参数评估流程。
  13. 如权利要求12所述的装置,其特征在于,所述评估退出条件包括下列的部分或全部:
    所述第二设备需要与所述第一设备进行通信;
    已评估的发送器均衡参数的数量达到阈值;
    通过对所述第一设备中高速接口的发送器均衡参数评估流程获得评估通过的发送器均衡参数。
  14. 如权利要求11~13任一项所述的装置,其特征在于,所述通信链路空闲是指所述通信链路上未传输业务数据。
  15. 如权利要求11~14任一项所述的装置,其特征在于,所述检测模块,用于:
    检测到所述第二设备通过所述通信链路未发送业务数据或未接收业务数据;或
    检测到所述第二设备不存在待发送的业务数据。
  16. 如权利要求11~15任一项所述的装置,其特征在于,所述参数评估模块,用于:
    所述第二设备与所述第一设备基于所述通信链路以及一组或多组发送器均衡参数进行交互,对所述一组或多组发送器均衡参数进行评估。
  17. 如权利要求16所述的装置,其特征在于,所述多组发送器均衡参数包括所述第一设备中高速接口的发送器全部发送器均衡参数。
  18. 如权利要求16或17所述的装置,其特征在于,所述装置还包括选取模块以及发送模块:
    所述选取模块,用于根据所述一组或多组发送器均衡参数的评估结果选取发送器均衡参数;
    所述发送模块,用于向所述第一设备发送所述选取的一组发送器均衡参数,指示选取的所述发送器均衡参数可用。
  19. 如权利要求11~18任一项所述的装置,其特征在于,对所述第一设备中高速接口的发送器均衡参数评估流程包括一个或多个传输速率下的发送器均衡参数评估流程,所述传输速率为所述通信链路中数据的传输速率。
  20. 如权利要求19所述的装置,其特征在于,所述发送模块,还用于向所述第一设备发送通知消息,所述通知消息用于指示所述传输速率;
    所述参数评估模块,用于基于所述通信链路,在所述传输速率下执行对所述第一设备中高速接口的发送器均衡参数评估流程。
  21. 一种计算设备,其特征在于,包括存储器和处理器;所述存储器存储有程序指令, 所述处理器运行所述程序指令以执行权利要求1~10任一所述的方法。
  22. 一种计算机可读存储介质,其特征在于,计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求1~10任一所述的方法。
PCT/CN2022/112094 2021-09-09 2022-08-12 一种发送器均衡参数评估方法及装置 WO2023035859A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP22866333.2A EP4387177A1 (en) 2021-09-09 2022-08-12 Transmitter equalization parameter evaluation method and apparatus
US18/599,570 US20240214245A1 (en) 2021-09-09 2024-03-08 Transmitter Equalization Parameter Evaluation Method and Apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111057180.3 2021-09-09
CN202111057180.3A CN115801507A (zh) 2021-09-09 2021-09-09 一种发送器均衡参数评估方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/599,570 Continuation US20240214245A1 (en) 2021-09-09 2024-03-08 Transmitter Equalization Parameter Evaluation Method and Apparatus

Publications (1)

Publication Number Publication Date
WO2023035859A1 true WO2023035859A1 (zh) 2023-03-16

Family

ID=85473239

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/112094 WO2023035859A1 (zh) 2021-09-09 2022-08-12 一种发送器均衡参数评估方法及装置

Country Status (4)

Country Link
US (1) US20240214245A1 (zh)
EP (1) EP4387177A1 (zh)
CN (1) CN115801507A (zh)
WO (1) WO2023035859A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530028A (zh) * 2015-11-26 2016-04-27 杭州华为数字技术有限公司 一种均衡器配置方法及管理模块
CN105765883A (zh) * 2013-11-27 2016-07-13 三菱电机株式会社 确定均衡参数的方法和监控装置、计算机程序、信息存储装置
CN106294267A (zh) * 2016-08-16 2017-01-04 中国科学院上海高等研究院 一种基于单向通信协议标准的均衡器反馈系统及方法
US20180285227A1 (en) * 2017-03-31 2018-10-04 Intel Corporation Adjustable retimer buffer
CN112714084A (zh) * 2019-10-24 2021-04-27 上海诺基亚贝尔股份有限公司 用于光通信的设备、方法和计算机可读存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105765883A (zh) * 2013-11-27 2016-07-13 三菱电机株式会社 确定均衡参数的方法和监控装置、计算机程序、信息存储装置
CN105530028A (zh) * 2015-11-26 2016-04-27 杭州华为数字技术有限公司 一种均衡器配置方法及管理模块
CN106294267A (zh) * 2016-08-16 2017-01-04 中国科学院上海高等研究院 一种基于单向通信协议标准的均衡器反馈系统及方法
US20180285227A1 (en) * 2017-03-31 2018-10-04 Intel Corporation Adjustable retimer buffer
CN112714084A (zh) * 2019-10-24 2021-04-27 上海诺基亚贝尔股份有限公司 用于光通信的设备、方法和计算机可读存储介质

Also Published As

Publication number Publication date
US20240214245A1 (en) 2024-06-27
EP4387177A1 (en) 2024-06-19
CN115801507A (zh) 2023-03-14

Similar Documents

Publication Publication Date Title
WO2016029749A1 (zh) 一种通信故障的检测方法、装置及系统
JP7234402B2 (ja) 車両通信のためのセカンダリリンクモニタリング方法、車両通信端末、電子機器及びコンピュータプログラム
EP3082285B1 (en) Ethernet data rate selection based on cable parameters
US20210006457A1 (en) Data transmission method and device
WO2016065552A1 (zh) 一种心跳周期的设置方法及终端
US20240106737A1 (en) Application-aware links
WO2017045433A1 (zh) 站点间通信状态检测方法及装置、存储介质
US20230262572A1 (en) Communication method and related device
US10080155B1 (en) Dynamic data collection in a WLAN
US10693798B2 (en) System architecture for varying rate transmission
WO2022160308A1 (zh) 数据存取方法、装置和存储介质
WO2023035859A1 (zh) 一种发送器均衡参数评估方法及装置
WO2024066449A1 (zh) 通信故障处理方法、系统及设备
WO2024082471A1 (zh) 节点间链路状态监测方法和装置
CN109639640B (zh) 消息发送方法和装置
US11166231B1 (en) Systems and methods for management of network congestion
US20210004308A1 (en) Data processing method and system
CN111756507B (zh) 一种远程干扰管理方法及装置
CN115599731A (zh) 一种链路协商系统、方法及设备
CN116095758A (zh) 一种接收器均衡参数评估方法、装置及设备
CN114363317A (zh) 一种基于多传输协议的文件传输方法、系统及介质
CN112655178B (zh) 一种发送链路聚合控制协议报文的方法、系统及装置
WO2019136730A1 (zh) 链路重新配置处理方法及相关产品
US20240160597A1 (en) Link Negotiation System, Method, and Device
US20220329519A1 (en) Packet transmission method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22866333

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022866333

Country of ref document: EP

Effective date: 20240312

NENP Non-entry into the national phase

Ref country code: DE