Synchronous time management system in high-speed serial communication system
By establishing a time management circuit and a time synchronization mechanism in a high-speed serial communication system, it solves the problems of collaborative work and delay measurement caused by the independent clock domains of each node, achieves system-wide time synchronization and delay measurement, and supports more time-sensitive application.
Patent Information
- Application Number
- CN202411048595.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In high-speed serial communication systems, since each node is in an independent clock domain, it is difficult to work together and count the delay of data flow transmitted across clock domains, and there is a lack of unified time measurement.
Establish a time management circuit on each high-speed serial transceiver, including a time counter, a time synchronization package transceiver circuit module and a synchronization circuit module. The time synchronization of the entire system is achieved through the time synchronization package. The time counter accumulates counts at a fixed time interval. , The synchronization circuit module corrects the counter based on the parsed information to ensure that the time counters of all nodes are consistent with the standard time counter.
It achieves system-wide time synchronization, facilitates the collaborative work of each node, and can easily measure transmission delays, check the data transmission status of the communication network, and support more time-sensitive applications.
Smart Images

Figure CN118573322A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of high-speed data communication, and in particular to a synchronous time management system in a high-speed serial communication system. Background Art
[0002] A high-speed serial communication link is composed of a pair of high-speed serial transceivers connected to each other through cables. A high-speed serial communication network is composed of one or more high-speed serial communication links connected to each other. A system built with a high-speed serial communication network as the framework is called a high-speed serial communication system. Each high-speed serial transceiver in the system is called a node in the system.
[0003] like Figure 1 As shown in the figure, in a high-speed serial communication system, there is usually a controller responsible for controlling the entire system. The controller can access any high-speed serial transceiver node through the high-speed serial communication network, and then control the mounted peripherals through the high-speed serial transceiver node. Various peripherals work independently under the management of the controller, and the information data generated is also transmitted through the high-speed serial network.
[0004] In some applications, peripherals distributed in a high-speed serial communication system need to work together, synchronize or perform tasks in a strict time sequence; in some applications, the delay of a specific data stream transmitted in a high-speed serial link is counted. Since the clock domains at both ends of the high-speed serial communication link are independent of each other, the entire high-speed serial communication system is divided into many independent clock domains by the high-speed serial communication link. Peripherals in different clock domains cannot know each other's time and are difficult to work together; due to the lack of a unified time measurement, it is also difficult to count the delay of data streams transmitted across clock domains. Therefore, it is necessary to establish a synchronous time management system in the high-speed serial communication system. Summary of the invention
[0005] The object of the present invention is to provide a synchronous time management system in a high-speed serial communication system to solve the problems in the background technology.
[0006] In order to solve the above technical problems, the present invention provides a synchronous time management system in a high-speed serial communication system. A time management circuit is built on each high-speed serial transceiver in the high-speed serial communication system, and each of the time management circuits includes a time counter, a set of time synchronization packet transceiver circuit modules, and a synchronization circuit module of the time counter; The time counter accumulates counts at fixed time intervals, and the value in the time counter at any time is the system time at that time; The synchronization circuit module of the time counter corrects the content of the time counter according to the information obtained by parsing the time synchronization packet to keep it consistent with the standard time counter; A time management circuit is established on each node of the high-speed serial communication system. The time counter is responsible for expressing the time. The synchronization circuit module of the time counter is synchronized with the standard time counter. The time synchronization packet receiving and sending circuit is responsible for transmitting the time synchronization information. Starting from the node where the standard time counter is located, each node sends a time synchronization packet to all directly connected next-level nodes to synchronize the time counters of the next-level nodes with it. After a period of time, the time counters of each level of nodes are synchronized with the previous level, and all time counters are synchronized to the standard time counter, thereby obtaining a time scale synchronized for the entire system.
[0007] In one embodiment, the time synchronization packet is a packet directly transmitted in a high-speed serial communication network, and its data portion includes three pieces of information used for synchronization: the count value of the standard time counter when the time synchronization packet is generated, the frequency deviation between the counting clocks of the standard time counter and the target time counter, and the time taken from the time the time synchronization packet is generated to the time management circuit of the target node receiving it; the data is continuously updated and accumulated during the transmission process of the time synchronization packet and is completed when it reaches the target node.
[0008] In one embodiment, the working steps of the synchronous time management system are: A time counter is selected in the synchronous time management system as a standard time counter of the synchronous time management system, and other time counters are managed to be synchronized with the standard time counter; Node A where the standard time counter is located periodically sends time synchronization packets with independent content to all nodes B and C directly connected to it; When nodes B and C receive the time synchronization packet, they send it to their own time management circuits, which adjust the counters according to the information in the time synchronization packet to synchronize themselves with the standard time counters. In a time counter network based on standard time counters, each node is responsible for sending time synchronization packets to the next level, and each time counter is synchronized with the previous level time counter. Eventually, all non-standard time counters in the entire system complete synchronization with the standard time counter.
[0009] In one embodiment, in the synchronous time management system, between any two nodes A and B connected by a high-speed serial communication link, one node A will send a time synchronization packet to the other node B. The frequency deviation information in the time synchronization packet records the frequency deviation between the counting clocks used by the time counters on the two nodes.
[0010] In one embodiment, the counting clock B1 used by the time counter B of the node B and the link clock B2 used by the high-speed serial communication link are the same source clocks; at node A, the link clock B2' is obtained by clock recovery from the high-speed serial communication link, and a comparison clock A2 of the same size as the link clock B2' is generated locally, and the comparison clock A2 and the counting clock A1 used by the time counter A are the same source.
[0011] In one implementation, the transmission process of the time synchronization packet goes through many links, and each link is processed separately according to the impact of the transmission delay and whether the delay is fixed: For the fixed delay part, first measure and calibrate the delay at the system level, then load it to the node through configuration parameters, and directly take this part of the delay into account when generating the time synchronization packet; In the part of receiving and parsing time synchronization packets, all delays are fixed; in the part of generating and sending time synchronization packets, there are a total of two places where the delay may change dynamically.
[0012] In one implementation, the synchronization process of the synchronization circuit module of the time counter is as follows: Take out the count value in the time synchronization packet, add the time used for the time synchronization packet transmission, get the value of the standard time counter at this moment, and immediately update the result to the time counter; The frequency deviation in the time synchronization packet is used to correct the counting clock of its own time counter, and the corrected counting clock is used to accumulate the time counter until the next time synchronization packet is received; The synchronization circuit module of the time counter is responsible for performing counter synchronization when receiving a time synchronization packet, and eliminating the counting clock frequency deviation in the gap between two time synchronization packets to make the counting interval of the time counter consistent with the counting interval of the standard time counter, thereby ensuring that the counting value growth of the time counter is consistent with the standard time counter.
[0013] The present invention provides a synchronous time management system in a high-speed serial communication system, proposes an overall architecture and operation mechanism of the synchronous time management system, and provides a measurement scheme for the frequency deviation and delay parameters necessary for time synchronization, thereby building a global synchronous time system for the high-speed serial system. A high-speed serial communication system with a synchronous time system can easily achieve coordinated synchronization or sequential operation of various parts by relying on a globally unified time system, and can also conveniently measure transmission delays and check the data transmission status of the communication network. The present invention enables high-speed serial communication systems to achieve more time-sensitive applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a structural diagram of a high-speed serial communication system.
[0015] Figure 2 It is a schematic diagram of the workflow of the synchronous time management system provided by the present invention.
[0016] Figure 3 It is a structural schematic diagram of the synchronous time management system provided by the present invention.
[0017] Figure 4 This is a schematic diagram of the transmission process of the time synchronization packet. DETAILED DESCRIPTION
[0018] The following is a further detailed description of a synchronous time management system in a high-speed serial communication system proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer according to the following description. It should be noted that the accompanying drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.
[0019] The present invention proposes a synchronous time management system established in a high-speed serial communication system, in which a time management circuit is established on each high-speed serial transceiver in the system, including a time counter, a set of time synchronization packet transceiver circuit modules, and a synchronization circuit module of the time counter.
[0020] The time counter accumulates counts at fixed time intervals, and the value in the time counter at any moment is the system time at that moment.
[0021] A time synchronization packet is a packet that can be directly transmitted in a high-speed serial communication network. Its data portion contains three pieces of information used for synchronization: 1. The count value of the standard time counter when the time synchronization packet is generated; 2. The frequency deviation between the counting clocks of the standard time counter and the target time counter; 3. The time taken from the time the time synchronization packet is generated to the time the time management circuit of the target node receives it. This data is continuously updated and accumulated during the transmission process of the time synchronization packet and is completed when it reaches the target node.
[0022] The synchronization circuit module of the time counter corrects the content of the time counter according to the information obtained by parsing the time synchronization packet to keep it consistent with the standard time counter.
[0023] The workflow of the entire synchronous time management system is as follows Figure 2 As shown: In the synchronous time management system, a time counter is selected as the standard time counter of the synchronous time management system, and other time counters try to synchronize with the standard time counter.
[0024] Node A where the standard time counter is located periodically sends time synchronization packets with independent contents to all nodes B and C directly connected to it.
[0025] When nodes B and C receive the time synchronization packet, they send it to their own time management circuits. The time management circuits adjust the counters according to the information in the time synchronization packet to synchronize themselves with the standard time counter.
[0026] In addition to the high-speed communication link that receives the time synchronization packet A2C, node C also has another link. On this local link, node C uses its own time counter as the standard and sends a time synchronization packet C2D to node D. Time counter D synchronizes with time counter C, and time counter C synchronizes with standard time counter A, and finally time counter D synchronizes with standard time counter A.
[0027] By analogy, in a time counter network based on standard time counters, each node is responsible for sending time synchronization packets to the next level, and each time counter is synchronized with the previous level time counter. Eventually, all non-standard time counters in the entire system complete synchronization with the standard time counter.
[0028] like Figure 3 As shown, in the synchronous time management system proposed in the present invention, between any two nodes A and B connected by a high-speed serial communication link, one of the nodes A will send a time synchronization packet to the other node B. The frequency deviation information in the time synchronization packet records the frequency deviation between the counting clocks used by the time counters on the two nodes.
[0029] In the present invention, the counting clock B1 used by the time counter B of the node B and the link clock B2 used by the high-speed serial communication link are the same source clocks. At the node A, the link clock B2' is obtained by clock recovery from the high-speed serial communication link. A comparison clock A2 of the same size as the link clock B2' is generated locally, and the comparison clock A2 and the counting clock A1 used by the time counter A are the same source. Therefore, the frequency deviation statistics are performed using the comparison clock A2 and the link clock B2' as objects, and the obtained frequency deviation is equal to the frequency deviation of the counting clock A1 and the counting clock B1.
[0030] The transmission process of the time synchronization packet goes through many links. The present invention processes each link according to its influence on the transmission delay and whether the delay is fixed: For the fixed delay part, such as the communication rate of the link, the cable length, the fixed processing delay in the internal circuit, etc., the delay is first measured and calibrated at the system level, and then loaded into the node through configuration parameters, and this part of the delay is directly taken into account when generating the time synchronization packet.
[0031] In the part of receiving and parsing time synchronization packets, all delays are fixed; in the part of generating and sending time synchronization packets, there are two places where delays may change dynamically, namely Figure 4 Queue 1 and Queue 2 are shown.
[0032] Since the high-speed serial transmission circuit processes each packet in series, the time synchronization packet and other data packets will queue up and enter the high-speed transmission circuit in series. If there are already data packets being sent to the high-speed serial transmission circuit when the time management circuit generates the time synchronization packet, the time synchronization packet must wait, and the waiting time depends on how much data has not been transmitted in front, which is not fixed. The present invention improves the mechanism of the time management circuit to generate the time synchronization packet. When the time synchronization packet is generated, it first checks whether queue 1 is busy. If queue 1 is busy, it postpones until queue 1 is not busy and then generates the time synchronization packet immediately. At this time, the time synchronization packet can be directly sent to the high-speed transmission circuit, and the time it takes from generation to entering the high-speed transmission circuit is converted into a fixed value.
[0033] In the high-speed transmission circuit, if there is a mechanism such as error correction and retransmission, the new packet received may not be sent out immediately and will be queued in queue 2. Since the error is random and the time consumed by error correction and retransmission is not fixed, it is difficult to evaluate how long the time synchronization packet will be delayed in this case, and the time synchronization packet itself may also be corrected and retransmitted due to transmission errors, so the retransmitted time synchronization packet will be sent out later. The present invention proposes to connect the counting clock A used by the time counter A to the high-speed transmission circuit. When the time synchronization packet enters the high-speed transmission circuit, the transmission circuit uses the counting clock A to count from zero, and obtains the count value when the time synchronization packet is sent out. The time that the time synchronization packet stays in the high-speed transmission circuit is the count value, which is accumulated to the position in the time synchronization packet that records the transmission delay, and then the time synchronization packet is sent out. Even if the time synchronization packet is retransmitted due to an error after being sent out, it only needs to obtain a new count value and accumulate it in the time synchronization packet when the time synchronization packet is resent.
[0034] The synchronization process of the synchronization circuit module of the time counter is as follows: 1. Take out the count value in the time synchronization packet, add the time used for the time synchronization packet transmission, get the value of the standard time counter at this moment, and update the result immediately to the time counter; 2. Use the frequency deviation in the time synchronization packet to correct the counting clock of its own time counter, and use the corrected counting clock to accumulate the time counter until the next time synchronization packet is received. The synchronization circuit module of the time counter is responsible for performing counter synchronization when the time synchronization packet is received, and in the gap between two time synchronization packets, the counting interval of the time counter is consistent with the counting interval of the standard time counter by eliminating the counting clock frequency deviation, thereby ensuring that the count value growth of the time counter is consistent with the standard time counter.
[0035] The overall operation scheme of the synchronous time management system of the present invention is as follows: a time management circuit is established on each node of the high-speed serial communication system, the time counter is responsible for expressing the time, the synchronization circuit module of the time counter is responsible for synchronizing with the standard time counter, and the time synchronization packet transceiver circuit is responsible for transmitting the time synchronization information. Starting from the node where the standard time counter is located, each node sends a time synchronization packet to all directly connected next-level nodes to synchronize the time counters of the next-level nodes with it. After a period of time, the time counters of each level of nodes are synchronized with the previous level, and all time counters are synchronized to the standard time counter, thereby obtaining a time scale synchronized by the whole system.
[0036] The frequency deviation measurement scheme for time synchronization is as follows: the frequency information of the other party's counting clock is obtained by recovering the clock from the high-speed serial communication link, and then the frequency is compared with the frequency of one's own clock to obtain the frequency deviation of both parties.
[0037] The transmission time measurement scheme of the time synchronization package is as follows: optimize the time synchronization package sending mechanism and reduce the links with non-fixed delay in the transmission process. The delay of each link in the transmission process is classified according to whether it is fixed or not. The fixed delay is introduced by parameters, and the non-fixed delay is automatically measured by the circuit.
[0038] The synchronization scheme of the time counter is: execute the value synchronization of the time counter when the time synchronization package is received; at other times, correct the frequency deviation of the local counting clock, and use the corrected counting clock to count the time counter to ensure that the counting value of the time counter is close to the value of the standard time counter at any time during the operation of the synchronous time management system.
[0039] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.
Claims
1. A synchronous time management system in a high-speed serial communication system, characterized in that: A time management circuit is built on each high-speed serial transceiver in the high-speed serial communication system, and each of the time management circuits includes a time counter, a set of time synchronization packet transceiver circuit modules, and a synchronization circuit module of the time counter; The time counter accumulates counts at fixed time intervals, and the value in the time counter at any time is the system time at that time; The synchronization circuit module of the time counter corrects the content of the time counter according to the information obtained by parsing the time synchronization packet to keep it consistent with the standard time counter; A time management circuit is established on each node of the high-speed serial communication system. The time counter is responsible for expressing the time. The synchronization circuit module of the time counter is synchronized with the standard time counter. The time synchronization packet receiving and sending circuit is responsible for transmitting the time synchronization information. Starting from the node where the standard time counter is located, each node sends a time synchronization packet to all directly connected next-level nodes to synchronize the time counters of the next-level nodes with it. After a period of time, the time counters of each level of nodes are synchronized with the previous level, and all time counters are synchronized to the standard time counter, thereby obtaining a time scale synchronized for the entire system.
2. The synchronous time management system in the high-speed serial communication system as claimed in claim 1, characterized in that: The time synchronization packet is a packet directly transmitted in a high-speed serial communication network, and its data part contains three pieces of information used for synchronization: the count value of the standard time counter when the time synchronization packet is generated, the frequency deviation between the count clocks of the standard time counter and the target time counter, and the time taken from the time the time synchronization packet is generated to the time the time management circuit of the target node receives it; this data is continuously updated and accumulated during the transmission process of the time synchronization packet and is completed when it reaches the target node.
3. The synchronous time management system in the high-speed serial communication system as claimed in claim 2, characterized in that: The working steps of the synchronous time management system are: A time counter is selected in the synchronous time management system as a standard time counter of the synchronous time management system, and other time counters are managed to be synchronized with the standard time counter; Node A where the standard time counter is located periodically sends time synchronization packets with independent content to all nodes B and C directly connected to it; When nodes B and C receive the time synchronization packet, they send it to their own time management circuits, which adjust the counters according to the information in the time synchronization packet to synchronize themselves with the standard time counters. In a time counter network based on standard time counters, each node is responsible for sending time synchronization packets to the next level, and each time counter is synchronized with the previous level time counter. Eventually, all non-standard time counters in the entire system complete synchronization with the standard time counter.
4. The synchronous time management system in the high-speed serial communication system as claimed in claim 3, characterized in that: In the synchronous time management system, between any two nodes A and B connected by a high-speed serial communication link, one node A will send a time synchronization packet to the other node B. The frequency deviation information in the time synchronization packet records the frequency deviation between the counting clocks used by the time counters on the two nodes.
5. The synchronous time management system in the high-speed serial communication system as claimed in claim 4, characterized in that: The counting clock B1 used by the time counter B of the node B is the same source as the link clock B2 used by the high-speed serial communication link; at node A, the link clock B2' is obtained by clock recovery from the high-speed serial communication link, and a comparison clock A2 of the same size as the link clock B2' is generated locally. The comparison clock A2 is the same source as the counting clock A1 used by the time counter A.
6. The synchronous time management system in the high-speed serial communication system as claimed in claim 1, characterized in that: The transmission process of the time synchronization packet goes through many links, and each link is processed separately according to its impact on the transmission delay and whether the delay is fixed: For the fixed delay part, first measure and calibrate the delay at the system level, then load it to the node through configuration parameters, and directly take this part of the delay into account when generating the time synchronization packet; In the part of receiving and parsing time synchronization packets, all delays are fixed; in the part of generating and sending time synchronization packets, there are a total of two places where the delay may change dynamically.
7. The synchronous time management system in the high-speed serial communication system as claimed in claim 6, characterized in that: The synchronization process of the synchronization circuit module of the time counter is as follows: Take out the count value in the time synchronization packet, add the time used for the time synchronization packet transmission, get the value of the standard time counter at this moment, and immediately update the result to the time counter; The frequency deviation in the time synchronization packet is used to correct the counting clock of its own time counter, and the corrected counting clock is used to accumulate the time counter until the next time synchronization packet is received; The synchronization circuit module of the time counter is responsible for performing counter synchronization when receiving a time synchronization packet, and eliminating the counting clock frequency deviation in the gap between two time synchronization packets to make the counting interval of the time counter consistent with the counting interval of the standard time counter, thereby ensuring that the counting value growth of the time counter is consistent with the standard time counter.
Citation Information
Patent Citations
One-master and multi-slave type high-speed serial communication system and communication method
CN109361581A
High-speed carrier ad hoc network data link end machine time synchronization method and system
CN113098674A
Bus clock synchronization method and device
CN116886229A
