WO-2026091562-A1 - LINK TRAINING METHOD AND APPARATUS
Abstract
The present application relates to the field of communications. Provided are a link training method and apparatus, which aim to achieve fast training of a link. The method comprises: a first device performing capability negotiation with a second device, so as to acquire feature description information that indicates features of a device system where the first device is located; if the first device stores link information including the feature description information, extracting a training parameter from the link information; enabling a fast training flag in a link configuration request message, and sending the link configuration request message to the second device; and upon receiving an enabled fast training response flag in a link configuration response message sent by the second device, configuring the extracted training parameter to a link layer, and starting the training of a link.
Inventors
- LONG, HUA
- ZHOU, Weiguang
- DUAN, Haojie
Assignees
- 华为技术有限公司
Dates
- Publication Date
- 20260507
- Application Date
- 20250619
- Priority Date
- 20241031
Claims (18)
- A link training method, characterized in that it is applied to a first device, the method comprising: Capability negotiation is performed with the second device to obtain feature description information, which is used to indicate the characteristics of the device system to which the first device is located; If the first device stores link information containing the feature description information, extract the training parameters from the link information; Enable the fast training flag in the link configuration request message and send the link configuration request message to the second device; When the fast training response flag is enabled in the link configuration response message sent by the second device, the training parameters are configured to the link layer, and the training of the link is started.
- According to the method of claim 1, the feature description information includes one or more of the following: address information of the remote device, port identifier of the remote device, port identifier of the local device, channel rate information, number of channels, channel direction information, and cable information.
- The method according to claim 1 or 2 is characterized in that the training parameters include one or more of the following parameters: swing parameters, continuous-time linear equalizer (CTLE) parameters, feedforward equalizer (FFE) parameters, and decision feedback equalizer (DFE) parameters.
- The method according to any one of claims 1-3, wherein the training parameters are parameters that the link has successfully trained under the device system indicated by the feature description information.
- The method according to any one of claims 1-4, characterized in that the method further comprises: If the training parameters are configured at the link layer, and training of the link is started, the link training will be successful and the link establishment will be completed.
- The method according to any one of claims 1-5, characterized in that the method further comprises: After the link is successfully established for the first time, the feature description information and training parameters in the first successful link establishment process are extracted and stored in the first device.
- The method according to any one of claims 1-6, wherein the link information is stored in a non-volatile storage medium in the first device.
- A link training device, characterized in that it is deployed in a first device, the device comprising: The negotiation unit is used to negotiate capabilities with the second device and obtain feature description information, which is used to indicate the features of the device system to which the first device is located. An extraction unit is configured to extract training parameters from the link information if the first device stores link information containing the feature description information. The sending unit is used to enable the fast training flag in the link configuration request message and send the link configuration request message to the second device. The training unit is configured to configure the training parameters to the link layer and start the training of the link when it receives the fast training response flag enabled in the link configuration response message sent by the second device.
- The apparatus according to claim 8 is characterized in that the feature description information includes one or more of the following: address information of the remote device, port identifier of the remote device, port identifier of the local device, channel rate information, channel quantity information, channel direction information, and cable information.
- The apparatus according to claim 8 or 9 is characterized in that the training parameters include one or more of the following parameters: swing parameters, continuous-time linear equalizer (CTLE) parameters, feedforward equalizer (FFE) parameters, and decision feedback equalizer (DFE) parameters.
- The apparatus according to any one of claims 8-10, wherein the training parameters are parameters for which the link was successfully trained under the device system indicated by the feature description information.
- The apparatus according to any one of claims 8-11, characterized in that the apparatus further comprises: The link establishment unit is used to configure the training parameters to the link layer, start the training of the link, and when the link training is successful, the link establishment is completed.
- The apparatus according to any one of claims 8-12, characterized in that the apparatus further comprises: The processing unit is configured to extract feature description information and training parameters from the first successful link establishment process after the link is successfully established for the first time, and store the feature description information and training parameters from the first successful link establishment process in the first device.
- The apparatus according to any one of claims 8-13, wherein the link information is stored in a non-volatile storage medium in the first device.
- A computing device, characterized in that the computing device includes a memory and at least one processor, the memory being used to store a set of computer instructions; when the processor executes the set of computer instructions, it performs the operation steps of the method according to any one of claims 1-7.
- A chip, characterized in that it includes one or more interface circuits and one or more processors; the interface circuits are configured to receive signals from the memory of an electronic device and send the signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, it causes the electronic device to perform the operation of the method according to any one of claims 1-7.
- A computer-readable storage medium, characterized in that it comprises: computer software instructions; when the computer software instructions are executed in a computer, they cause the computer to perform the operational steps of the method according to any one of claims 1-7.
- A computer program product, characterized in that the computer program product comprises a software program, which, when executed by a computer or processor, causes the computer or processor to perform the operational steps of the method according to any one of claims 1-7.
Description
A link training method and apparatus This application claims priority to Chinese Patent Application No. 202411550127.0, filed with the State Intellectual Property Office of China on October 31, 2024, entitled "A Link Training Method and Apparatus", the entire contents of which are incorporated herein by reference. Technical Field This application relates to the field of communications, and more particularly to a link training method and apparatus. Background Technology Successful establishment of the main link for the ultra-high-definition transmission interface is fundamental for audio/video and data transmission. The main link is established through link training to determine the electrical parameters of the connections between ports, and based on the negotiated parameters, it enters the service transmission state. In other words, audio/video and data service transmission can only be completed after successful link establishment. In high-speed link establishment within the interface, due to factors such as equipment, cabling, training strategies, and environment, the establishment time can vary greatly, ranging from tens of milliseconds (ms) to seconds, which is extremely unfriendly to rapid business transmission. The speed of link establishment directly affects the speed of audio/video and data initiation and transmission, ultimately impacting the user experience. Summary of the Invention This application provides a link training method and apparatus to achieve rapid link training, thereby shortening the link building time, increasing the link building speed, and improving the user experience. To achieve the above objectives, the embodiments of this application adopt the following technical solutions: In a first aspect, a link training method is provided, applied to a first device. The method may include: negotiating capabilities with a second device to obtain feature description information indicating the characteristics of the device system to which the first device resides; if the first device stores link information containing the obtained feature description information, extracting training parameters from the link information; enabling the fast training flag in a link configuration request message and sending a link configuration request message to the second device; when the fast training response flag is enabled in a link configuration response message sent by the second device, configuring the extracted training parameters to the link layer and starting link training. The solution provided in this application first obtains feature description information through capability negotiation. If the device stores link information containing the feature description information obtained through capability negotiation, it indicates that the device system containing the link has not changed. Therefore, training parameters are extracted from the link information for rapid link training. Since the training parameters in the stored link information can guarantee successful link training during the previous link establishment process, and the device system has not changed, link training using the stored training parameters has a very high probability of success on the first attempt. This eliminates the need for multiple interactive attempts to change parameter values, significantly reducing the time required for link training. In one possible implementation, the aforementioned feature description information includes one or more of the following: address information of the remote device, port identifier of the remote device, port identifier of the local device, channel rate information, number of channels information, channel direction information, and cable information. In another possible implementation, the training parameters mentioned above include one or more of the following parameters: swing parameters, continuous-time linear equalizer (CTLE) parameters, feedforward equalizer (FFE) parameters, and decision feedback equalizer (DFE) parameters. In another possible implementation, the extracted training parameters are those successfully trained on the device system indicated by the feature description information obtained through capability negotiation. This ensures that the stored training parameters can be used to successfully train the link on the first attempt, reducing the training time, provided the device system remains unchanged. In another possible implementation, the method provided in this application further includes: if the extracted training parameters are configured to the link layer, and the link training is started, the link training is successful, and the link establishment is completed. In another possible implementation, the method provided in this application further includes: if the extracted training parameters are configured to the link layer, and the link training fails after the link training is started, the normal link training process is started. In another possible implementat