Method for self-negotiation based synchronization link training and applications thereof

By closing the transmitting end after negotiation and synchronously switching the port rate to the optimal transmission rate, the synchronization of link training is ensured, the problem of link training time difference is solved, and signal quality and transmission reliability are improved.

CN119299539BActive Publication Date: 2025-11-04SUZHOU CENTEC COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In existing technologies, when the two ends of the interface immediately begin link training after completing automatic negotiation, the time it takes for the port to switch from a low rate to a high transmission rate is uncontrollable, resulting in a link training time difference that affects the training effect and signal quality.

Method used

After determining the optimal transmission rate through negotiation, the sending end is shut down and the port rate is switched synchronously to the optimal transmission rate. Then, link training is performed to ensure that both ports start link training at the same time, including state initialization configuration and parameter adjustment, until the parsing accuracy reaches the threshold.

Benefits of technology

This effectively avoids the impact of link training time difference, ensures the reliability of parameter adjustment and signal quality, and improves the synchronization and transmission reliability of link training.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299539B_ABST
    Figure CN119299539B_ABST
Patent Text Reader

Abstract

The application discloses a method for self-negotiation-based synchronous link training and application thereof, and the method comprises the following steps: a first port negotiates an optimal transmission rate with a second port; the first port sends a first negotiation completion signal to the second port; after receiving a second negotiation completion signal, the first port closes its sending end and switches the port rate to the optimal transmission rate; after the port rates of the first port and the second port are both switched to the optimal transmission rate, the first port performs link training in this section. The method for self-negotiation-based synchronous link training closes the sending end of the port after negotiation is completed, and starts to switch the port rate until the port rate is switched completely, and then controls the two ports to start link training synchronously, so that the influence of the switching speed of the port rate on the synchronism of the link training can be avoided, the problem that the training effect is influenced by the too large time difference of the link training is avoided, the parameter adjustment result is reliable, and the quality of the transmission signal 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 technical field of communication, and particularly relates to a method for synchronous link training based on self-negotiation and application thereof. BACKGROUND

[0002] With the popularization of industrial intelligence and big data, the data flow of modern society is greatly increased. In application scenarios such as campus network and data center network, the transmission rate of the switch port is also increased, and higher requirements are put forward for the transmission reliability of the port physical link. In the same cable transmission process, the ultra-high transmission rate will have a higher bit error rate. When the bit error rate exceeds the error correction rate of the receiving end, the data of the receiving end will be incorrect, which will affect the use of customers. In view of the docking of the port with ultra-high transmission rate, the IEEE organization defines a scheme for adjusting the FFE parameters of the sending end in the protocol to improve the signal quality of the receiving port, so as to ensure the reliability of the physical link transmission.

[0003] At present, the specific implementation scheme of the link training is that two ports send and receive test sequences 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 opposite end. The time difference of the link training of the two docking ends is relatively strict. If the time difference of the two ends starting the link training is large, the training parameters will be unreliable, and the link signal quality will be reduced. In order to reduce the time difference of the docking ports starting the link training, the automatic negotiation scheme of the two docking ends is adopted before the link training. After the automatic negotiation is completed, the link training is immediately performed. However, the time used for switching from the low rate used in the negotiation to the transmission rate required for the link training is uncontrollable, so that the time difference of the two link trainings still exists, and the problem of training time difference cannot be fundamentally solved, which may lead to unreliable training parameters and reduced link signal quality. SUMMARY

[0004] The present application aims to provide a method for synchronous link training based on self-negotiation and application thereof, so as to solve the technical problem in the prior art that the two docking ends immediately perform the link training after completing the automatic negotiation, the time used for switching from the low rate used in the negotiation to the transmission rate required for the link training is uncontrollable, the time difference of the two link trainings still exists, and the problem of training time difference cannot be fundamentally solved.

[0005] In order to achieve the above-mentioned purpose, the first aspect of the present application provides a method for synchronous link training based on self-negotiation, applied to a first port, the first port being connected with a second port through a link, and the method comprising:

[0006] The first port and the second port negotiate an optimal transmission rate;

[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 port rate to the optimal transmission rate after sending a second negotiation completion signal to the first port;

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

[0009] the first port performs link training after 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] the step of performing link training by the first port after port rates of the first port and the second port are switched to the optimal transmission rate comprises:

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

[0013] the first port performs state initialization reset of link training after receiving a link training data frame, and restarts link training, the link training data frame being sent by the second port after state initialization configuration of link training is performed, and link training is started.

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

[0015] the first port sends initialization parameter demand to the second port after state initialization configuration of link training of the first port is completed, so that the second port updates parameter configuration of the sending end based on the initialization parameter demand after starting link training.

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

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

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

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

[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, further comprising:

[0022] If the resolution accuracy is higher than the 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 through a link;

[0024] After the port rates of the first port and the second port are switched to the optimal transmission rate, the steps of link training in this paragraph include:

[0025] After the port rate is switched to the optimal transmission rate, the first port performs state initialization configuration of link training, starts link training, and continuously sends link training data frames to the second port, so that the second port, after the port rate is switched to the optimal transmission rate, the state initialization configuration of link training is completed, and the link training is started, responds to the link training data frames to perform state initialization reset of link training, and restarts link training.

[0026] In one or more embodiments, further comprising:

[0027] The first port obtains an initialization parameter requirement, which is sent by the second port to the first port after the port rate is switched to the optimal transmission rate and the state initialization configuration of 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, further comprising:

[0030] After the parameter configuration of the sending end is updated, the first port sends configuration completion information to the second port, so that the second port, in response to the configuration completion information, calculates the resolution accuracy of the link training data frames obtained in real time by the receiving end, and judges whether the resolution accuracy is higher than the threshold;

[0031] The first port obtains a real-time parameter requirement, which is sent by the second port based on the resolution accuracy when the resolution accuracy is not higher than the 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.

[0033] In one or more embodiments, further comprising:

[0034] The first port acquires training completion information, which is sent by the second port when the resolution accuracy is higher than a threshold value.

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

[0036] To achieve the above object, the second aspect of the present application provides a device for self-negotiation based synchronous link training, applied to a first port, the first port being connected with a second port through a link, the device comprising:

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

[0038] A signal sending module, configured to send a first negotiation completion signal to the second port for the first port, so that the second port closes its sending end and switches the port rate to the optimal transmission rate after sending a 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] A synchronous training module, configured to perform link training for the first port after the port rates of the first port and the second port are both switched to the optimal transmission rate.

[0041] To achieve the above object, the third aspect of the present application provides an electronic device, comprising:

[0042] At least one processor; and

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

[0044] To achieve the above object, the fourth aspect of the present application provides a machine readable storage medium, which stores executable instructions, when the instructions are executed, causes the machine to execute the method for self-negotiation based synchronous link training as described in any of the above embodiments.

[0045] Compared with the prior art, the present application has the following beneficial effects:

[0046] The method for self-negotiation synchronization link training of the application closes the transmitting end of the port after negotiation is completed, and starts switching the port rate, until the control of the two-port synchronization starts link training after the port rate switching is completed, which can avoid the influence of the port rate switching speed on the synchronization of the link training, thereby avoiding the problem that the large difference in link training time affects the training effect, the parameter adjustment result is reliable, and the transmission signal quality can meet the demand. BRIEF DESCRIPTION OF DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.

[0048] Figure 1 is a flowchart of an embodiment of the method for self-negotiation synchronization link training of the present application;

[0049] Figure 2 is a flowchart of an embodiment corresponding to S400 in the present application; Figure 1

[0050] Figure 3 is a flowchart of another embodiment corresponding to S400 in the present application; Figure 1

[0051] Figure 4 is a specific flowchart of an embodiment of the method for self-negotiation synchronization link training of the present application;

[0052] Figure 5 is a structural schematic diagram of an embodiment of the device for self-negotiation synchronization link training of the present application;

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

[0054] In order to make the person skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in the following with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present application.

[0055] ​​The link training between ports can effectively adjust the transmitting end and receiving end parameters of the ports, improve the signal quality, and ensure the reliability of the physical link transmission. Specifically, the link training adjusts the parameters by the two ports sending and receiving test sequences, and the training process is a process of continuously adjusting the parameters of the opposite end. The time difference requirement for the link training of the two opposite ends is relatively strict. If the time difference of the two opposite ends starting the link training is too large, the trained parameters are unreliable, and the link signal quality is reduced.

[0056] In order to ensure the synchronous link training between the two ports, an automatic negotiation scheme of the two opposite ends can be used before the link training, and the link training is performed immediately after the negotiation is completed. After the automatic negotiation of the two opposite ends, the time difference of the two opposite ends completing the automatic negotiation is very small, but the time for the ports to switch from the low rate used in the negotiation to the transmission rate requiring the link training is uncontrollable.

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

[0058] 1. The A end and the B end perform automatic negotiation, and the time difference of completing the automatic negotiation is almost the same.

[0059] 2. After the automatic negotiation is completed, the A end software quickly switches the port transmission rate from the low rate used in the automatic negotiation to the optimal transmission rate negotiated.

[0060] 3. After the automatic negotiation is completed, the B end software takes a longer time to switch the port transmission rate from the low rate used in the automatic negotiation to the optimal transmission rate negotiated due to the processor processing speed and other reasons.

[0061] 4. Before the B end completes the switching, the A end has started the link training, and the receiving end receives the data sent by the B end at the low rate according to the automatic negotiation at this time, and the link training is started based on the data, which may cause the final link training effect to be poor, the parameters to be unreliable, and the signal quality transmitted by the two ends to be reduced.

[0062] In order to solve the above problems, the applicant develops a new type of synchronous link training method, which can effectively ensure the synchronization of the link training of the two ports and avoid the problem that the large time difference of the link training affects the training effect.

[0063] Specifically, please refer to Figure 1 , Figure 1 is a flowchart of an embodiment of the synchronous link training method based on self-negotiation of the present application.

[0064] As shown in Figure 1 , the method comprises:

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

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

[0067] For example, the negotiation process can be that the first port and the second port transmit a fast link pulse at a lower transmission rate, the fast link pulse can include all working modes supported by the device, and the two ports can compare the fast link pulse with the modes they support and select the optimal intersection point, thereby confirming the optimal transmission rate through negotiation.

[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 can also send a second negotiation completion signal to the first port to inform the second port.

[0071] S300, after the first port receives the second negotiation completion signal, it closes its sending end and switches the port rate to the optimal transmission rate.

[0072] After the first negotiation completion signal is sent and the second negotiation completion signal sent by the second port is received, it means 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 optimal transmission rate negotiated.

[0073] Correspondingly, after the second negotiation completion signal is sent and the first negotiation completion signal sent by the first port is received, the second port can also close its sending end and start switching the port rate to the optimal transmission rate negotiated.

[0074] It should be noted that the rate switching is a continuous process and is not completed instantaneously. The switching rate is related to the performance of the processor and the like, so the rate switching speed of different ports is different.

[0075] S400, after the port rates of the first port and the second port are switched to the optimal transmission rate, the link training of this paragraph is performed.

[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 again synchronously, thereby ensuring the synchronization of the link training and avoiding the time difference of the link training.

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

[0078] The following will be described in detail how the two ports can perform the link training in this section after the port rates are switched to the optimal transmission rates.

[0079] In an embodiment, please refer to Figure 2 , Figure 2 is a flowchart of an embodiment corresponding to S400 in the present application Figure 1 .

[0080] In the present embodiment, the trained link can be the direction in which the second port transmits to the first port for receiving, and the first port is the receiving end of the information, and the method for ensuring the synchronization of the link training after the two ends are switched to the optimal transmission rates can include the following steps.

[0081] S401a, after the port rate is switched to the optimal transmission rate, the first port performs the state initialization configuration of the link training, and starts the 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 the link training is managed by a link training state machine (LTSSM), which can realize the switching of the port between different states, and after the state initialization configuration of the link training is performed, the first port opens the sending end and starts the 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, and start the link training, and continuously send the link training data frame to the first port.

[0085] S402a, after the first port receives the link training data frame, the state initialization reset of the link training is performed, and the link training is restarted.

[0086] The link training data frame is sent by the second port after the state initialization configuration of the link training is performed and the link training is started after the port rate is switched to the optimal transmission rate.

[0087] In an embodiment, the link training data frame can be a PRBS code defined by the protocol, i.e. a pseudo-random binary sequence.

[0088] It can be understood that after the first port receives the link training data frame, it is also considered that the rate switching of the second port is completed, at this time the first port can perform the state initialization reset of the link training, and restart the link training, so as to ensure the synchronization of the 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 further includes:

[0090] S401a', after the state initialization configuration of the link training of the first port is completed, sending an initialization parameter requirement to the second port.

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

[0092] After the second port starts the link training, the parameter configuration of the sending end can be updated based on the initialization parameter requirement, so that the second port can send the link training data frame meeting the requirements to the first port.

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

[0094] S403a, after the first port receives the link training data frame, updating the parameter configuration of the receiving end based on the link training data frame.

[0095] When the first port receives the link training data frame, the parameters of the receiving end of the first port can be adjusted based on the structure of the link training data frame, so as to ensure the signal receiving quality.

[0096] The parameters of the receiving end of the first port can be the CTLE parameters 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 sending end of the second port is completed, and when the initial adjustment of the parameters is completed, adaptive adjustment of the parameters based on the analysis quality of the signal can be started. Specifically, the method further includes:

[0098] S404a, the first port calculates the analysis accuracy rate of the receiving end to the real-time obtained link training data frame in response to the configuration completion information, and judges whether the analysis accuracy rate is higher than a threshold.

[0099] If not, that is, the analysis accuracy rate 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 analysis accuracy rate.

[0101] The configuration completion information is sent by the second port after each update of the parameters of the sending end, which can be sent by the second port based on the initialization parameter update of the sending end, or can be sent by the second port based on the real-time parameter update of the sending end.

[0102] The second port can send the configuration completion information to the first port based on the initialization parameter update of the sending end when the link training just starts.

[0103] The first port calculates the analysis accuracy of the link training data obtained in real time based on the configuration completion information, and if the analysis accuracy does not reach a preset threshold, the signal receiving quality does not meet the requirement, and at this time, the second port can be adjusted based on the analysis accuracy of the parameter demand, that is, the real-time parameter demand.

[0104] The second port can update the parameters of the sending end based on the real-time parameter demand after receiving the real-time parameter demand, and feed back the configuration completion information after the update is completed.

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

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

[0107] In another embodiment, please refer to Figure 3 , Figure 3 is another embodiment of S400 in the present application Figure 1 corresponding flowchart.

[0108] In this embodiment, the link to be trained can be the direction from the first port to the second port, and the first port is the sending end of the information, and the method for ensuring the synchronization of the link training after the two ends switch to the optimal transmission rate can include:

[0109] S401b, the first port initializes the state configuration of the link training after the port rate is switched to the optimal transmission rate, starts the link training, and continuously sends the link training data frame to the second port.

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

[0111] S402b: Obtain initialization parameter requirements from the first port. Based on the initialization parameter requirements, update the parameter configuration of the sending end.

[0112] The initialization parameter requirements are sent from the second port to the first port after the port rate is switched to the optimal transmission rate and the link training state initialization configuration is completed.

[0113] S403b: After the parameter configuration of the first port is updated at the sending end, the configuration completion information is sent 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 respond to the configuration completion information, calculate the parsing accuracy of the receiving end for the real-time acquired link training data frame, and determine whether the parsing accuracy is higher than the threshold.

[0115] If the parsing accuracy is not higher than the threshold, the second port will send real-time parameter requests to the first port based on the parsing accuracy.

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

[0117] Repeat the above steps until the parsing accuracy of the second port is higher than the threshold. At this point, the second port sends the training completion information 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 in the middle and Figure 2 The second port in the illustrated implementation is the same and will not be described again here.

[0120] Based on the above steps, the parameters of the transmitting end of the first port and the receiving end of the second port were adjusted. Since the synchronization of the training of the two-port link was guaranteed, the parameter adjustment results were reliable and the transmission signal quality met the requirements.

[0121] In one specific embodiment, the method in this application can be as follows: Figure 4 As shown, Figure 4 This is a detailed flowchart of an embodiment of the method for training a synchronous link based on self-negotiation in this application.

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

[0123] 1. Ports A and B first undergo automatic negotiation;

[0124] 2、A port negotiation is completed, and after sending a completion signal and receiving a negotiation completion signal sent by the B port, the sending end is closed, no signal is sent to the B port, and the port rate is switched to the optimal transmission rate negotiated by both ends;

[0125] 3、B port negotiation is completed, and after sending a completion signal and receiving a negotiation completion signal sent by the A port, the sending end is closed, no signal is sent to the A port, and the port rate is switched to the optimal transmission rate negotiated by both ends;

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

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

[0128] 6、The B port performs FFE initialization configuration on the sending end according to the initialization FFE parameter requirement sent by the A port, and after the configuration is completed, the A port is replied that the initialization FFE parameter has been configured;

[0129] 7、After the A port receives the link training data frame sent by the B port, the state initialization reset of the link training is performed;

[0130] 8、The A port then performs the CTLE adjustment of the receiving end based on the received reliable link training data frame;

[0131] 9、After the A port adjustment is completed, after receiving the information that the B port initialization FFE parameter configuration is completed, the FFE adjustment requirement of the sending end of the B port is sent according to the analysis accuracy of the PRBS code stream defined by the protocol;

[0132] 10、After the B port receives the FFE adjustment requirement sent by the A port, the corresponding FFE configuration is performed, and the A port is informed after the configuration is completed;

[0133] Steps 10 and 11 are repeated until the A port judges that the signal quality of the receiving end reaches the standard, and the B port is informed that the FFE parameter of the sending end does not need to be adjusted.

[0134] The application also provides a self-negotiation-based synchronous link training device, please refer to Figure 5 , Figure 5 is a structural schematic diagram of an embodiment of the self-negotiation-based synchronous link training device of the application.

[0135] The device is applied to a first port, and the first port is connected with a second port through a link, such as Figure 5As shown, the device comprises 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 configured to negotiate the optimal transmission rate by the first port and the second port.

[0137] The signal sending module 22 is configured to send the first negotiation completion signal by the first port 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 configured to close the sending end of the first port and switch the port rate to the optimal transmission rate after receiving the second negotiation completion signal by the first port.

[0139] The synchronization training module 24 is configured to perform the link training of the present section by the first port after the port rates of the first port and the second port are switched to the optimal transmission rate.

[0140] As described above with reference to Figures 1 to 4 , the method of the synchronization link training based on self-negotiation according to the embodiments of the present specification is described. The details mentioned in the above description of the method embodiments are also applicable to the device of the synchronization link training based on self-negotiation according to the embodiments of the present specification. The device of the synchronization link training based on self-negotiation above can be implemented by hardware, or by software or a combination of hardware and software.

[0141] The present application also provides an electronic device, please refer to Figure 6 , Figure 6 is a structural schematic diagram of an embodiment of the electronic device of the present application. As shown in Figure 6 , the electronic device 30 can comprise at least one processor 31, a memory 32 (for example, 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. The 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 make the at least one processor 31 perform various operations and functions described above in the various embodiments of the present specification in combination with Figures 1-4 .

[0143] In embodiments of the present specification, the electronic device 30 can include, but is not limited to, a personal computer, a server computer, a workstation, a desktop computer, a laptop computer, a notebook computer, a mobile electronic device, a smart phone, a tablet computer, a cellular phone, a personal digital assistant (PDA), a handheld device, a messaging device, a wearable electronic device, a consumer electronic device, and the like.

[0144] According to one embodiment, a program product such as a machine-readable medium is provided. The machine-readable medium can have instructions (i.e., the above-mentioned elements implemented in software) stored therein, which when executed by a machine, cause the machine to perform various operations and functions described in the embodiments of the present specification. Figures 1-5 Specifically, a system or apparatus equipped with a readable storage medium 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 apparatus can be provided to read and execute the instructions stored in the readable storage medium.

[0145] In this case, the program code read from the readable medium itself can implement the functions of any of the above-mentioned embodiments, and thus the machine-readable code and the readable storage medium storing the machine-readable code constitute a part of the present specification.

[0146] Embodiments of the readable storage medium include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as a CD-ROM, a CD-R, a CD-RW, a DVD-ROM, a DVD-RAM, a DVD- RW, a DVD-RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer or the cloud over a communication network.

[0147] Those skilled in the art will understand that various modifications and changes can be made to the embodiments disclosed above without departing from the essence of the present application. Therefore, the scope of protection of the present specification should be defined by the appended claims.

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

[0149] In the above embodiments, a hardware unit or module can be realized by mechanical means or by electronic means. For example, a hardware unit, module or processor can include a permanent or temporary dedicated circuitry or logic (e.g., a dedicated processor, FPGA, or ASIC) to complete the corresponding operation. A hardware unit or processor can also include a programmable logic or circuitry (e.g., a general purpose processor or other programmable processor) that can be temporarily set to complete the corresponding operation by software. The specific implementation (mechanical, or dedicated permanent circuitry, or temporarily set circuitry) can be determined based on cost and time considerations.

[0150] The detailed description set forth above describes exemplary embodiments and does not represent all of the only embodiments that can be practiced under the claims. The term "exemplary" used throughout this description means "serving as an example, instance, or illustration," and not "preferred" over other embodiments. The detailed description includes specific details for the purpose of providing a thorough understanding of the described techniques. These techniques, however, can be practiced without these specific details. In some instances, well-known structures and devices are shown in block diagram form in order to avoid obscuring the concepts of the described embodiments.

[0151] The foregoing description of the present disclosure has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the disclosure to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. It is intended that the scope of the disclosure be limited not with this detailed description, but rather by the claims appended hereto.

Claims

1. A method for training synchronous links based on self-negotiation, characterized in that, Applied to a first port, which is connected to a second port via a link, the method includes: The first port and the second port negotiate the optimal transmission rate; The first port sends a first negotiation complete signal to the second port, so that after the second port sends a second negotiation complete signal to the first port, it closes its transmitting end and switches the port rate to the optimal transmission rate; After receiving the second negotiation completion signal, the first port closes its transmitting end and switches the port rate to the optimal transmission rate; After the first port and the second port switch their port rates to the optimal transmission rate, the link training for this segment is performed.

2. The method according to claim 1, characterized in that, The first port receives information sent by the second port via the link; After the first port and the second port both switch their port rates to the optimal transmission rate, the link training steps for this segment include: After the port rate is switched to the optimal transmission rate, the first port performs state initialization configuration for link training and starts link training. After receiving the link training data frame, the first port performs a link training state initialization reset and restarts the link training. The link training data frame is sent by the second port after the port rate is switched to the optimal transmission rate, the link training state initialization configuration is performed, and 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 on the first port is completed, the initialization parameter requirement is sent to the second port so that the second port can update the parameter configuration of the sending end based on the initialization parameter requirement after the link training starts.

4. The method according to claim 2, characterized in that, The method further includes: 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.

5. The method according to claim 4, characterized in that, After the parameters of the receiving end are configured, the following are also included: In response to the configuration completion information, the first port calculates the parsing accuracy of the receiving end for the real-time acquired link training data frames, and determines whether the parsing accuracy is higher than a threshold. The configuration completion information is sent by the second port after the parameter configuration is updated at the sending end. If not, the first port sends a real-time parameter request to the second port based on the parsing accuracy, so that the second port updates the parameter configuration of the sending end based on the real-time parameter request, and sends the configuration completion information after the update is completed.

6. The method according to claim 5, characterized in that, Also includes: If the parsing accuracy is higher than the 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 the link; After the first port and the second port both switch their port rates to the optimal transmission rate, the link training steps for this segment include: After the first port switches its port rate to the optimal transmission rate, it 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 its port rate to the optimal transmission rate. After the state initialization configuration for link training is completed and link training starts, it performs state initialization reset in response to the link training data frames and restarts link training.

8. The method according to claim 7, characterized in that, Also includes: The first port obtains the initialization parameter requirements, which are sent from the second port to the first port after the port rate is switched 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 requirements.

9. The method according to claim 8, characterized in that, Also includes: After the parameter configuration of the first port is updated at the sending end, it sends configuration completion information to the second port so that the second port responds to the configuration completion information, calculates the parsing accuracy of the receiving end for the real-time acquired link training data frame, and determines whether the parsing accuracy is higher than the threshold. The first port obtains real-time parameter requirements, which are sent by the second port based on the parsing accuracy when the parsing accuracy is not higher than a threshold. The first port updates the parameter configuration of the sending end based on the real-time parameter requirements, 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, which is sent by the second port when the parsing accuracy 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 training a synchronous link based on self-negotiation, characterized in that, The device is applied to a first port, which is connected to a second port via a link, and includes: The negotiation module is used to enable the first port and the second port to negotiate the optimal transmission rate; The signal transmission module is used to enable the first port to send a first negotiation completion signal to the second port, so that after the second port sends a second negotiation completion signal to the first port, it can close its transmission end and switch the port rate to the optimal transmission rate. A rate switching module is used to enable the first port to shut down its transmitting end and switch the port rate to the optimal transmission rate after receiving the second negotiation completion signal; The synchronous training module is used to enable the first port to perform link training for this segment after both its port rate and the port rate of the second port have switched to the optimal transmission rate.

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

13. A machine-readable storage medium storing executable instructions that, when executed, cause the machine to perform the method of training a synchronous link based on auto-negotiation as described in any one of claims 1 to 10.

Citation Information

Patent Citations

  • 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