Synchronization link training method based on auto-negotiation and application thereof

By negotiating the optimal transmission rate before link training and starting training synchronously after the handover is completed, the problem of poor link training time in the prior art is solved, and the reliability of signal quality is improved.

CN119299539AActive Publication Date: 2025-01-10SUZHOU CENTEC COMM CO LTD

Patent Information

Application Number
CN202411410334.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-01-10
Estimated Expiration
2044-10-10

AI Technical Summary

Technical Problem

In the prior art, the time when the port switches from low rate to high rate after automatic negotiation before link training is uncontrollable, resulting in poor link training time and affecting signal quality.

Method used

After negotiating the optimal transmission rate, close the sending end and switch the port rate to ensure that the two ports start link training synchronously after the switching is completed, avoiding the rate switching affecting the training effect.

Benefits of technology

It effectively avoids the link training time difference, improves the reliability of parameter adjustment and transmits signal quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299539A_ABST
    Figure CN119299539A_ABST
Patent Text Reader

Abstract

The invention discloses a synchronous link training method based on auto-negotiation and application thereof. The method comprises the steps that a first port and a second port negotiate an optimal transmission rate; the first port sends a first negotiation completion signal to the second port; after the first port receives the second negotiation completion signal, the sending end of the first port is closed, and the port rate is switched to the optimal transmission rate; and after the port rate of the first port and the port rate of the second port are switched to the optimal transmission rate, link training of the segment is carried out. According to the synchronous link training method based on auto-negotiation, the sending end of the port is closed after negotiation is completed, the port rate is started to be switched, and the two ports are controlled to synchronously start link training until the port rate switching is completed, so that the influence of the port rate switching speed on the synchronism of link training can be avoided, and the user experience is improved. Therefore, the problem that the training effect is affected by too large time difference of link training is avoided, the parameter adjustment result is reliable, and the quality of transmission signals can meet the requirement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a method for synchronous link training based on auto-negotiation and its application. Background Art

[0002] With the popularization of industrial intelligence and big data, the data traffic in modern society has greatly increased. In application scenarios such as campus networks and data center networks, the transmission rate of switch ports has also increased, which has put forward higher requirements for the transmission reliability of the port physical link. Ultra-high transmission rates will have a higher bit error rate during the same cable transmission process. When the bit error rate exceeds the error correction rate of the receiving end, errors will occur in the data at the receiving end, which will affect the customer's use. For this kind of ultra-high transmission rate port docking, the IEEE organization defines a link training scheme in the protocol to adjust the FFE parameters of the sending end to improve the signal quality of the receiving port to ensure the reliability of the physical link transmission.

[0003] At present, the specific implementation scheme of link training is that the two ports send test sequences to each other to adjust the parameters of the receiving end and the sending end. The training process is a process of continuously adjusting the parameters of the other end. The time difference requirement for link training at both ends of the connection is relatively strict. A large time difference in starting link training at both ends will cause the trained parameters to be unreliable, resulting in reduced link signal quality. In order to reduce the time difference in the start of link training at the docking port, the current scheme of automatic negotiation between the two docking ends is adopted before link training, and link training is performed immediately after the completion of automatic negotiation. However, the time taken by the two docking ends to switch from the low rate used for negotiation to the transmission rate required for link training is uncontrollable, resulting in the time difference of the two-way link training still existing, and the problem of training time difference cannot be fundamentally solved, which may cause unreliable training parameters and reduce link signal quality. Summary of the invention

[0004] The purpose of the present application is to provide a method and application of synchronous link training based on auto-negotiation, so as to solve the technical problem in the prior art that the two connected ends immediately perform link training after completing automatic negotiation, and the time taken for the two connected ends to switch from the negotiated low rate to the transmission rate of link training is uncontrollable, resulting in the time difference between the two link trainings still existing, and the training time difference cannot be fundamentally solved.

[0005] In order to achieve the above-mentioned object, the first aspect of the present application provides a method for synchronous link training based on auto-negotiation, which is applied to a first port, where the first port is connected to a second port via a link, and the method includes:

[0006] The first port negotiates an optimal transmission rate with the second port;

[0007] The first port sends a first negotiation completion signal to the second port, so that the second port closes its sending end and switches the port rate to the optimal transmission rate after sending the second negotiation completion signal to the first port;

[0008] After receiving the second negotiation completion signal, the first port closes its sending end and switches the port rate to the optimal transmission rate;

[0009] The first port performs link training for this section after the port rates of the first port and the second port are switched to the optimal transmission rate.

[0010] In one or more embodiments, the first port receives information sent by the second port through a link;

[0011] After the port rates of the first port and the second port are switched to the optimal transmission rate, the step of performing link training in this section includes:

[0012] After the port rate of the first port is switched to the optimal transmission rate, the first port performs a state initialization configuration of link training and starts link training;

[0013] After the first port receives the link training data frame, it resets the link training state initialization and restarts the link training. The link training data frame is configured by the second port after the port rate is switched to the optimal transmission rate, and then sent after the link training starts.

[0014] In one or more embodiments, it further includes:

[0015] After the state initialization configuration of the link training of the first port is completed, an initialization parameter requirement is sent to the second port, so that the second port updates the parameter configuration of the transmitting end based on the initialization parameter requirement after starting the link training.

[0016] In one or more embodiments, the method further comprises:

[0017] After receiving the link training data frame, the first port updates parameter configuration of the receiving end based on the link training data frame.

[0018] In one or more implementation modes, after the parameter configuration of the receiving end is completed, the method further includes:

[0019] The first port calculates the parsing accuracy of the link training data frame acquired in real time by the receiving end in response to the configuration completion information, and determines whether the parsing accuracy is higher than a threshold, and the configuration completion information is sent by the second port after the parameter configuration of the sending end is updated;

[0020] If not, the first port sends a real-time parameter requirement to the second port based on the resolution accuracy, so that the second port updates the parameter configuration of the sending end based on the real-time parameter requirement, and sends the configuration completion information after the update.

[0021] In one or more embodiments, it further includes:

[0022] If the analysis accuracy is higher than a threshold, the first port sends training completion information to the second port, so that the second port locks the parameter configuration of the sending end.

[0023] In one or more embodiments, the first port sends information to the second port via a link;

[0024] After the port rates of the first port and the second port are switched to the optimal transmission rate, the step of performing link training in this section includes:

[0025] After the port rate is switched to the optimal transmission rate, the first port performs state initialization configuration for link training, starts link training, and continuously sends link training data frames to the second port, so that the second port switches the port rate to the optimal transmission rate. The state initialization configuration for link training is completed. After the link training is started, the state initialization reset of link training is performed in response to the link training data frames, and the link training is restarted.

[0026] In one or more embodiments, it further includes:

[0027] The first port obtains an initialization parameter requirement, and the initialization parameter requirement is sent to the first port after the second port switches the port rate to the optimal transmission rate and the state initialization configuration of the link training is completed;

[0028] The first port updates the parameter configuration of the sending end based on the initialization parameter requirement.

[0029] In one or more embodiments, it further includes:

[0030] After the parameter configuration of the transmitting end is updated, the first port sends configuration completion information to the second port, so that the second port calculates the parsing accuracy of the link training data frame acquired in real time by the receiving end in response to the configuration completion information, and determines whether the parsing accuracy is higher than a threshold;

[0031] The first port acquires a real-time parameter requirement, and the real-time parameter requirement is sent by the second port based on the resolution accuracy when the resolution accuracy is not higher than a threshold;

[0032] The first port updates the parameter configuration of the sending end based on the real-time parameter requirement, and sends the configuration completion information after the update is completed.

[0033] In one or more embodiments, it further includes:

[0034] The first port acquires training completion information, and the training completion information is sent by the second port when the parsing accuracy rate is higher than a threshold;

[0035] The first port locks the parameter configuration of the sending end based on the training completion information.

[0036] In order to achieve the above-mentioned object, the second aspect of the present application provides a device for synchronous link training based on auto-negotiation, which is applied to a first port, the first port is connected to a second port through a link, and the device includes:

[0037] A negotiation module, configured to allow the first port and the second port to negotiate an optimal transmission rate;

[0038] a signal sending module, configured to enable the first port to send a first negotiation completion signal to the second port, so that the second port closes its sending end and switches the port rate to the optimal transmission rate after sending the second negotiation completion signal to the first port;

[0039] A rate switching module, configured to close the sending end of the first port and switch the port rate to the optimal transmission rate after the first port receives the second negotiation completion signal;

[0040] The synchronous training module is used for the first port to perform link training of this section after the port rates of the first port and the second port are switched to the optimal transmission rate.

[0041] In order to achieve the above-mentioned object, the third aspect of the present application provides an electronic device, including:

[0042] at least one processor; and

[0043] A memory storing instructions, which, when executed by the at least one processor, enables the at least one processor to execute the method for synchronous link training based on self-negotiation as described in any one of the above embodiments.

[0044] In order to achieve the above-mentioned purpose, the fourth aspect of the present application provides a machine-readable storage medium, which stores executable instructions, and when the instructions are executed, the machine executes the method for synchronous link training based on self-negotiation as described in any of the above-mentioned embodiments.

[0045] Different from the prior art, the beneficial effects of this application are:

[0046] The method of synchronous link training based on self-negotiation in the present application closes the sending end of the port after the negotiation is completed, and starts to switch the port rate, and controls the two ports to synchronously start link training after the port rate switching is completed, which can avoid the influence of the port rate switching speed on the synchronization of link training, thereby avoiding the problem of excessive link training time difference affecting the training effect, and the parameter adjustment result is reliable, and the transmission signal quality can meet the requirements. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0048] Figure 1 It is a flowchart of an implementation method of a synchronous link training based on self-negotiation of the present application;

[0049] Figure 2 This application Figure 1 A schematic diagram of a flow chart of an implementation method corresponding to S400;

[0050] Figure 3 This application Figure 1 A schematic flow chart of another implementation method corresponding to S400;

[0051] Figure 4 This is a specific flow chart of an embodiment of a method for synchronous link training based on self-negotiation of the present application;

[0052] Figure 5 It is a structural diagram of an implementation method of a device for synchronous link training based on self-negotiation of the present application;

[0053] Figure 6 It is a schematic structural diagram of an embodiment of an electronic device of the present application. DETAILED DESCRIPTION

[0054] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.

[0055] Link training between ports can effectively adjust the parameters of the port's transmitter and receiver, improve signal quality, and ensure the reliability of physical link transmission. Specifically, link training adjusts parameters by sending test sequences between the two ports. The training process is a process of continuously adjusting the parameters of the other end. The time difference requirement for link training at both ends is relatively strict. A large time difference between the two ends starting link training will result in unreliable trained parameters, which will reduce the link signal quality.

[0056] In order to ensure synchronous link training between the two ports, you can use the solution of automatic negotiation between the two ends of the connection before link training, and immediately perform link training after the negotiation is completed. After the two ends of the connection perform automatic negotiation, the time difference between the two ends in completing the automatic negotiation is very small, but the time it takes for the port to switch from the low rate used for negotiation to the transmission rate required for link training is uncontrollable.

[0057] For example, automatic negotiation is performed between end A and end B. Link training starts immediately after the negotiation is completed. The specific process is as follows:

[0058] 1. End A and end B conduct automatic negotiation, and the time to complete the automatic negotiation is almost the same;

[0059] 2. After the auto-negotiation is completed, the software on the A side quickly switches the port transmission rate from the low rate for auto-negotiation to the optimal transmission rate negotiated;

[0060] 3. After the auto-negotiation is completed, the B-side software takes a longer time to switch the port transmission rate from the low rate of auto-negotiation to the optimal transmission rate negotiated due to reasons such as processor processing speed;

[0061] 4. Before the switching of end B is completed, end A has already started link training. At this time, the receiving end receives the data sent by end B at the low rate automatically negotiated. Link training is started based on this data, which may lead to poor final link training effect and unreliable parameters, and finally reduce the signal quality of transmission at both ends.

[0062] In order to solve the above problems, the applicant has developed a novel synchronous link training method, which can effectively ensure the synchronization of two-port link training and avoid the problem that the link training time difference is too large and affects the training effect.

[0063] Specifically, see Figure 1 , Figure 1 It is a flowchart of an implementation method of a synchronous link training method based on self-negotiation in the present application.

[0064] like Figure 1 As shown, the method includes:

[0065] S100: The first port negotiates an optimal transmission rate with the second port.

[0066] The negotiation may be any automatic negotiation method commonly used in the art, which can enable the first port and the second port to reach a consensus on the transmission rate to ensure that the transmission rates of subsequent link training are consistent.

[0067] Exemplarily, the negotiation process may be that a fast link pulse is transmitted between the first port and the second port at a lower transmission rate. The fast link pulse may include all operating modes supported by the device. The two ports may compare the modes they support based on the fast link pulse and select the optimal intersection point, thereby negotiating and confirming the optimal transmission rate.

[0068] S200: The first port sends a first negotiation completion signal to the second port.

[0069] After the negotiation is completed, the first port sends a first negotiation completion signal to the second port to inform the second port.

[0070] Correspondingly, after the negotiation is completed, the second port may also send a second negotiation completion signal to the first port to inform the second port.

[0071] S300: After receiving the second negotiation completion signal, the first port turns off its sending end and switches the port rate to an optimal transmission rate.

[0072] After the first port completes sending the first negotiation completion signal and receives the second negotiation completion signal sent by the second port, it indicates that both ports have completed the negotiation process. At this time, the first port can close its sending end, stop sending any information to the second port, and start switching the port rate to the negotiated optimal transmission rate.

[0073] Correspondingly, after the second port completes sending the second negotiation completion signal and receives the first negotiation completion signal sent by the first port, the second port may also close its own transmitting end and start switching the port rate to the negotiated optimal transmission rate.

[0074] It should be noted that rate switching is a continuous process, not instantaneous. The switching rate is related to processor performance, etc., so the rate switching speeds of different ports are different.

[0075] S400: After the port rates of the first port and the second port are switched to the optimal transmission rate, the first port performs link training of this section.

[0076] After the port rates of the first port and the second port have been switched to the optimal transmission rate, the link training is started synchronously, thereby ensuring the synchronization of the link training and avoiding the time difference of the link training.

[0077] Based on the above solution, the influence of the port rate switching speed on the synchronization of link training can be avoided, thereby avoiding the problem that the link training time difference is too large and affects the training effect.

[0078] The following describes in detail how the two ports can synchronously perform link training for this section after the port rates are switched to the optimal transmission rate.

[0079] In one embodiment, see Figure 2 , Figure 2 This application Figure 1 A flow chart of an implementation method corresponding to S400 in FIG.

[0080] In this implementation manner, the trained link may be a direction from the second port to the first port, where the first port is the receiving end of the information. The method for ensuring that both ends switch to the optimal transmission rate and then synchronize the link training may include:

[0081] S401a. After the port rate is switched to the optimal transmission rate, the first port performs a state initialization configuration for link training and starts link training.

[0082] Firstly, after the port rate switching is completed, the first port can directly perform the state initialization configuration of the link training and start the link training.

[0083] The state initialization configuration of link training is managed by the link training state machine (LTSSM), which can realize the switching of ports between different states. After the state initialization configuration of link training is performed, the first port opens the transmitting end and starts link training.

[0084] Correspondingly, after the port rate switching is completed, the second port can also directly perform the state initialization configuration of the link training, start the link training, and continuously send the link training data frames to the first port.

[0085] S402a: After receiving the link training data frame, the first port performs a link training state initialization reset and restarts the link training.

[0086] The link training data frame is sent after the second port performs state initialization configuration for link training after the port rate is switched to the optimal transmission rate and starts link training.

[0087] In one implementation, the link training data frame may be a PRBS code defined by the protocol, that is, a pseudo-random binary sequence.

[0088] It can be understood that after the first port receives the link training data frame, it means that the second port has also completed the rate switching. At this time, the first port can perform link training status initialization reset and restart link training, thereby ensuring the synchronization of link training of the two ports.

[0089] Further, in order to enable the second port to send the link training data frame based on the requirement defined by the protocol, the synchronization with S401a also includes:

[0090] S401a′: After the initialization configuration of the link training state of the first port is completed, an initialization parameter request is sent to the second port.

[0091] It can be understood that after the initial configuration of the state of the first port is completed, an initialization parameter request can be sent to the second port.

[0092] After starting link training, the second port can update the parameter configuration of the transmitting end based on the initialization parameter requirement, so that the second port can send link training data frames that meet the requirements to the first port.

[0093] In one embodiment, the initialization parameter requirement may be a requirement for FFE parameters of the transmitting end of the second port, which is defined by the protocol.

[0094] S403a: After receiving the link training data frame, the first port updates the parameter configuration of the receiving end based on the link training data frame.

[0095] After the first port receives the link training data frame, it can adjust the parameters of its own receiving end based on the structure of the link training data frame to ensure the signal reception quality.

[0096] The parameter of the receiving end of the first port may be a CTLE parameter of the receiving end.

[0097] Based on the above S401a' and S403a, the initial adjustment of the parameters of the receiving end of the first port and the transmitting end of the second port is completed. After the initial adjustment of the parameters is completed, the adaptive adjustment of the parameters can be started based on the analysis quality of the signal. Specifically, the method also includes:

[0098] S404a. In response to the configuration completion information, the first port calculates the parsing accuracy of the link training data frame acquired in real time by the receiving end, and determines whether the parsing accuracy is higher than a threshold.

[0099] If not, that is, the parsing accuracy is not higher than the threshold, then:

[0100] S405a: The first port sends a real-time parameter requirement to the second port based on the resolution accuracy.

[0101] Among them, the configuration completion information is sent by the second port after each update of the parameters of the sending end is completed. It can be sent by the second port after updating the sending end parameters based on the initialization parameter requirements, or it can be sent by the second port after updating the sending end parameters based on the real-time parameter requirements.

[0102] When link training just starts, the second port may send configuration completion information to the first port after updating the transmitter parameters based on the initialization parameter requirements.

[0103] Based on the configuration completion information, the first port calculates the analysis accuracy of the link training data obtained in real time. If the analysis accuracy does not reach the preset threshold, the signal reception quality does not meet the requirements. At this time, based on the analysis accuracy, adjustment requirements can be proposed to the parameters of the second port, that is, real-time parameter requirements.

[0104] After receiving the real-time parameter requirement, the second port may update the parameters of the sending end based on the real-time parameter requirement, and feedback configuration completion information after the update is completed.

[0105] Repeat the steps until the resolution accuracy is higher than the threshold, at which time the first port can send training completion information to the second port so that the second port locks the parameter configuration of the sending end, and the link training is completed.

[0106] Based on the above steps, parameter adjustment of the receiving end of the first port and the transmitting end of the second port is achieved, and since the synchronization of the link training of the two ports is guaranteed, the parameter adjustment structure is reliable and the transmission signal quality can meet the requirements.

[0107] In another embodiment, see Figure 3 , Figure 3 This application Figure 1 A flowchart of another implementation method corresponding to S400 in FIG.

[0108] In this implementation manner, the trained link may be a direction from the first port to the second port, where the first port is the information transmitter. The method for ensuring that both ends switch to the optimal transmission rate and then synchronize the link training may include:

[0109] S401b. After the port rate is switched to the optimal transmission rate, the first port performs a state initialization configuration for link training, starts link training, and continuously sends link training data frames to the second port.

[0110] When the port rate of the second port is switched to the optimal transmission rate and the state initialization configuration of the link training is completed, after the link training starts, the state initialization reset of the link training can be performed in response to the link training data frame to restart the link training.

[0111] S402b. The first port obtains initialization parameter requirements. Based on the initialization parameter requirements, the parameter configuration of the sending end is updated.

[0112] The initialization parameter requirement is that the second port switches the port rate to the optimal transmission rate, and the state initialization configuration of the link training is completed and sent to the first port.

[0113] S403b: After the parameter configuration of the sending end is updated, the first port sends configuration completion information to the second port.

[0114] After adjusting the parameter configuration of the receiving end based on the link training data frame, the second port can calculate the parsing accuracy of the receiving end for the link training data frame acquired in real time in response to the configuration completion information, and determine whether the parsing accuracy is higher than a threshold.

[0115] If the resolution accuracy is not higher than the threshold, the second port sends a real-time parameter requirement to the first port based on the resolution accuracy.

[0116] S404b: The first port obtains real-time parameter requirements, updates parameter configuration of the sending end based on the real-time parameter requirements, and sends configuration completion information after the update.

[0117] Repeat the above steps until the parsing accuracy of the second port is higher than the threshold, at which time the second port sends a training completion message to the first port.

[0118] S405b: The first port obtains training completion information, and locks the parameter configuration of the sending end based on the training completion information.

[0119] above Figure 3 The workflow of the first port is similar to Figure 2 The second port in the illustrated embodiment is consistent and will not be described in detail here.

[0120] Based on the above steps, parameter adjustment of the transmitting end of the first port and the receiving end of the second port is achieved, and since the synchronization of the link training of the two ports is guaranteed, the parameter adjustment result is reliable and the transmission signal quality can meet the requirements.

[0121] In a specific embodiment, the method of the present application can be as follows Figure 4 As shown, Figure 4 It is a specific flow chart of an embodiment of a method for synchronous link training based on self-negotiation of the present application.

[0122] like Figure 4 As shown, in this embodiment, port A is used as the information sending port of the link, and port B is used as the information receiving port of the link. The process is as follows:

[0123] 1. Port A and port B first perform auto-negotiation;

[0124] 2. After the negotiation is completed, port A sends a completion signal. After receiving the negotiation completion signal sent by port B, the sending end is closed and no longer sends signals to port B. The port rate is switched to the optimal transmission rate negotiated between the two ends.

[0125] 3. After the negotiation is completed, port B sends a completion signal. After receiving the negotiation completion signal sent by port A, the sending end is closed and no longer sends signals to port A. The port rate is switched to the optimal transmission rate of both ends after negotiation.

[0126] 4. After the rate switching of port A is completed, the state initialization configuration of link training is performed, and the initialization FFE parameter requirements defined by the protocol are sent;

[0127] 5. After the B port rate switching is completed, the link training state initialization configuration is first performed;

[0128] 6. Port B then performs FFE initialization configuration on the sender according to the initialization FFE parameter requirements sent by port A. After the configuration is completed, it replies to port A, indicating that the initialization FFE parameters have been configured;

[0129] 7. After receiving the link training data frame sent by port B, end A performs a link training status initialization reset;

[0130] 8. Port A then adjusts the CTLE of the local receiving end based on the received reliable link training data frame;

[0131] 9. After the adjustment of port A is completed, after receiving the information that the initialization of FFE parameters of port B is completed, according to the accuracy of the analysis of the PRBS code stream defined by the protocol by the receiving end, the demand for adjusting the FFE of the transmitting end of port B is sent;

[0132] 10. After receiving the FFE adjustment request sent by port A, port B performs corresponding FFE configuration and informs port A after the configuration is completed;

[0133] Repeat steps 10 and 11 until port A determines that the signal quality of the receiving end meets the standard, and informs port B that there is no need to adjust the FFE parameters of the transmitting end.

[0134] The present application also provides a device for synchronous link training based on auto-negotiation, see Figure 5 , Figure 5 It is a structural diagram of an implementation method of a device for synchronous link training based on self-negotiation of the present application.

[0135] The device is applied to a first port, the first port is connected to a second port via a link, such as Figure 5As shown, the device includes a negotiation module 21, a signal sending module 22, a rate switching module 23, and a synchronization training module 24.

[0136] The negotiation module 21 is used for the first port and the second port to negotiate the optimal transmission rate;

[0137] The signal sending module 22 is used for the first port to send a first negotiation completion signal to the second port, so that the second port closes its sending end and switches the port rate to the optimal transmission rate after sending the second negotiation completion signal to the first port;

[0138] The rate switching module 23 is used for the first port to close its sending end and switch the port rate to the optimal transmission rate after receiving the second negotiation completion signal;

[0139] The synchronous training module 24 is used for the first port to perform link training of this section after the port rates of the first port and the second port are switched to the optimal transmission rate.

[0140] As above Figures 1 to 4 , a method for synchronous link training based on self-negotiation according to an embodiment of this specification is described. The details mentioned in the above description of the method embodiment are also applicable to the device for synchronous link training based on self-negotiation in the embodiment of this specification. The above device for synchronous link training based on self-negotiation can be implemented in hardware, or in software, or in a combination of hardware and software.

[0141] This application also provides an electronic device, see Figure 6 , Figure 6 Schematic diagram of the structure of an electronic device of the present application. Figure 6 As shown, the electronic device 30 may include at least one processor 31, a memory 32 (e.g., a non-volatile memory), a memory 33, and a communication interface 34, and the at least one processor 31, the memory 32, the memory 33, and the communication interface 34 are connected together via a bus 35. At least one processor 31 executes at least one computer-readable instruction stored or encoded in the memory 32.

[0142] It should be understood that the computer executable instructions stored in the memory 32, when executed, cause at least one processor 31 to perform the above combined operations in various embodiments of the present specification. Figure 1-Figure 4 Describes the various operations and functions.

[0143] In the embodiments of the present specification, the electronic device 30 may include, but is not limited to, personal computers, server computers, workstations, desktop computers, laptop computers, notebook computers, mobile electronic devices, smart phones, tablet computers, cellular phones, personal digital assistants (PDAs), handheld devices, messaging devices, wearable electronic devices, consumer electronic devices, and the like.

[0144] According to one embodiment, a program product such as a machine-readable medium is provided. The machine-readable medium may have instructions (i.e., the above-mentioned elements implemented in the form of software), which, when executed by a machine, causes the machine to perform the above-mentioned combination of various embodiments of this specification. Figure 1-Figure 5 Specifically, a system or device equipped with a readable storage medium may be provided, on which a software program code implementing the functions of any of the above-mentioned embodiments is stored, and a computer or processor of the system or device reads and executes the instructions stored in the readable storage medium.

[0145] In this case, the program code itself read from the machine-readable medium can realize the function of any one of the above embodiments, and thus the machine-readable code and the machine-readable storage medium storing the machine-readable code constitute part of this specification.

[0146] Examples of readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer or a cloud via a communication network.

[0147] Those skilled in the art should understand that the various embodiments disclosed above can be modified and altered in various ways without departing from the essence of the invention. Therefore, the protection scope of this specification should be defined by the appended claims.

[0148] It should be noted that not all steps and units in the above-mentioned processes and system structure diagrams are necessary, and some steps or units can be ignored according to actual needs. The execution order of each step is not fixed and can be determined as needed. The device structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some units may be implemented by the same physical client, or some units may be implemented by multiple physical clients, or some components in multiple independent devices may be implemented together.

[0149] In the above embodiments, the hardware unit or module can be realized by mechanical or electrical means. For example, a hardware unit, module or processor can include permanent dedicated circuit or logic (such as special processor, FPGA or ASIC) to complete the corresponding operation. The hardware unit or processor can also include programmable logic or circuit (such as general-purpose processor or other programmable processor), which can be temporarily set by software to complete the corresponding operation. Specific implementation (mechanical method or dedicated permanent circuit or temporary circuit) can be determined based on cost and time consideration.

[0150] The specific embodiments described above in conjunction with the accompanying drawings describe exemplary embodiments, but do not represent all embodiments that can be implemented or fall within the scope of protection of the claims. The term "exemplary" used throughout this specification means "used as an example, instance or illustration" and does not mean "preferred" or "having advantages" over other embodiments. For the purpose of providing an understanding of the described technology, the specific embodiments include specific details. However, these technologies can be implemented without these specific details. In some instances, in order to avoid making the concepts of the described embodiments difficult to understand, well-known structures and devices are shown in block diagram form.

[0151] The above description of the present disclosure is provided to enable any person of ordinary skill in the art to implement or use the present disclosure. Various modifications to the present disclosure will be apparent to those of ordinary skill in the art, and the general principles corresponding to the present disclosure may be applied to other variations without departing from the scope of protection of the present disclosure. Therefore, the present disclosure is not limited to the examples and designs described herein, but is consistent with the widest range of principles and novel features disclosed herein.

Claims

1. A method for synchronous link training based on auto-negotiation, characterized in that: Applied to a first port, the first port being connected to a second port via a link, the method comprising: The first port negotiates an optimal transmission rate with the second port; The first port sends a first negotiation completion signal to the second port, so that the second port closes its sending end and switches the port rate to the optimal transmission rate after sending the second negotiation completion signal to the first port; After receiving the second negotiation completion signal, the first port closes its sending end and switches the port rate to the optimal transmission rate; The first port performs link training for this section after the port rates of the first port and the second port are switched to the optimal transmission rate.

2. The method according to claim 1, characterized in that The first port receives information sent by the second port through a link; After the port rates of the first port and the second port are switched to the optimal transmission rate, the step of performing link training in this section includes: After the port rate of the first port is switched to the optimal transmission rate, the first port performs a state initialization configuration of link training and starts link training; After the first port receives the link training data frame, it resets the link training state initialization and restarts the link training. The link training data frame is configured by the second port after the port rate is switched to the optimal transmission rate, and then sent after the link training starts.

3. The method according to claim 2, characterized in that Also includes: After the state initialization configuration of the link training of the first port is completed, an initialization parameter requirement is sent to the second port, so that the second port updates the parameter configuration of the transmitting end based on the initialization parameter requirement after starting the link training.

4. The method according to claim 2, characterized in that: The method further comprises: After receiving the link training data frame, the first port updates parameter configuration of the receiving end based on the link training data frame.

5. The method according to claim 4, characterized in that After the parameter configuration of the receiving end is completed, the method further includes: The first port calculates the parsing accuracy of the link training data frame acquired in real time by the receiving end in response to the configuration completion information, and determines whether the parsing accuracy is higher than a threshold, and the configuration completion information is sent by the second port after the parameter configuration of the sending end is updated; If not, the first port sends a real-time parameter requirement to the second port based on the resolution accuracy, so that the second port updates the parameter configuration of the sending end based on the real-time parameter requirement, and sends the configuration completion information after the update.

6. The method according to claim 5, characterized in that Also includes: If the analysis accuracy is higher than a threshold, the first port sends training completion information to the second port, so that the second port locks the parameter configuration of the sending end.

7. The method according to claim 1, characterized in that The first port sends information to the second port via a link; After the port rates of the first port and the second port are switched to the optimal transmission rate, the step of performing link training in this section includes: After the port rate is switched to the optimal transmission rate, the first port performs state initialization configuration for link training, starts link training, and continuously sends link training data frames to the second port, so that the second port switches the port rate to the optimal transmission rate. The state initialization configuration for link training is completed. After the link training is started, the state initialization reset of link training is performed in response to the link training data frames, and the link training is restarted.

8. The method according to claim 7, characterized in that Also includes: The first port obtains an initialization parameter requirement, and the initialization parameter requirement is sent to the first port after the second port switches the port rate to the optimal transmission rate and the state initialization configuration of the link training is completed; The first port updates the parameter configuration of the sending end based on the initialization parameter requirement.

9. The method according to claim 8, characterized in that Also includes: After the parameter configuration of the transmitting end is updated, the first port sends configuration completion information to the second port, so that the second port calculates the parsing accuracy of the link training data frame acquired in real time by the receiving end in response to the configuration completion information, and determines whether the parsing accuracy is higher than a threshold; The first port acquires a real-time parameter requirement, and the real-time parameter requirement is sent by the second port based on the resolution accuracy when the resolution accuracy is not higher than a threshold; The first port updates the parameter configuration of the sending end based on the real-time parameter requirement, and sends the configuration completion information after the update is completed.

10. The method according to claim 9, characterized in that Also includes: The first port acquires training completion information, and the training completion information is sent by the second port when the parsing accuracy rate is higher than a threshold; The first port locks the parameter configuration of the sending end based on the training completion information.

11. A device for synchronous link training based on auto-negotiation, characterized in that: Applied to a first port, the first port is connected to a second port via a link, the device comprising: A negotiation module, configured to allow the first port and the second port to negotiate an optimal transmission rate; a signal sending module, configured to enable the first port to send a first negotiation completion signal to the second port, so that the second port closes its sending end and switches the port rate to the optimal transmission rate after sending the second negotiation completion signal to the first port; A rate switching module, configured to close the sending end of the first port and switch the port rate to the optimal transmission rate after the first port receives the second negotiation completion signal; The synchronous training module is used for the first port to perform link training of this section after the port rates of the first port and the second port are switched to the optimal transmission rate.

12. An electronic device comprising: at least one processor; as well as A memory storing instructions, which, when executed by the at least one processor, enables the at least one processor to execute the method for synchronous link training based on self-negotiation as described in any one of claims 1 to 10.

13. A machine-readable storage medium storing executable instructions, wherein when the instructions are executed, the machine executes the method for synchronous link training based on auto-negotiation according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Chip port link training connection method and application

    CN114745450A

  • Method, device and equipment for mutual distance measurement between equipment based on time synchronization, and medium

    CN116170743A

  • Data synchronization method and device, electronic equipment and computer readable storage medium

    CN117997913A

  • Point-to-point protocol

    US20030007504A1

Cited By

  • Device initialization method and system, electronic device, storage medium and program product

    CN120066597A

  • Implementation method for high-speed Ethernet link training

    CN122053374A