A time-triggered Ethernet transparent clock accurate measurement system and method

By adding hardware circuit recording delay time points in the time-triggered Ethernet system and calculating the transparent clock value, the problem of large measurement deviation of existing methods is solved, and high-precision time synchronization is achieved.

CN115189793BActive Publication Date: 2024-11-29BEIJING INST OF CONTROL ENG
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210617884.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-01
Publication Date
2024-11-29
Estimated Expiration
2042-06-01

AI Technical Summary

Technical Problem

The existing transparent clock measurement methods are prone to large deviations, resulting in a decrease in synchronization accuracy of time-triggered Ethernet systems.

Method used

By adding hardware circuits in the time-triggered Ethernet system, recording the delay time points of the physical layer and the MAC layer, calculating the transparent clock value, and improving measurement accuracy.

Benefits of technology

It realizes high-precision transparent clock measurement, improves time synchronization accuracy, and improves system reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115189793B_ABST
    Figure CN115189793B_ABST
Patent Text Reader

Abstract

A time-triggered Ethernet transparent transmission clock precise measurement system and method, the measurement architecture includes a local clock control module, a time synchronization state machine module, a PCF frame sending scheduling module, a physical layer data frame sending monitoring module, and a physical layer data frame receiving monitoring module, the transparent transmission clock value is precisely measured, including the physical layer delay overhead, the MAC layer delay overhead, and the hardware delay overhead between the MAC layer and the physical layer, and the corresponding hardware circuit is added to record the corresponding time point for precise measurement, and finally the precise transparent transmission clock value is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a time-triggered Ethernet transparent transmission clock accurate measurement system and method, belonging to the research field of time-triggered Ethernet technology. Background Art

[0002] In the development process of the time-triggered Ethernet system, the end system and the switch achieve time synchronization within the system through the interactive protocol control frame (PCF). The interaction of the PCF frame needs to implement the time synchronization solidification function. When the time solidification function calculates the solidification time point, the time delay information of the data frame on the data link is required, which is called the transparent clock. A high-precision transparent clock is the basis for building a high-precision time synchronization system. If the transparent clock has a large deviation, it will cause the synchronization accuracy of the entire time-triggered Ethernet system to decrease, which will have a serious impact on the reliability of the system. Summary of the invention

[0003] The technical problem solved by the present invention is: in view of the problem that the existing transparent transmission clock measurement method in the current prior art is prone to produce large deviations, which leads to reduced synchronization accuracy of the time-triggered Ethernet system, a time-triggered Ethernet transparent transmission clock accurate measurement system and method are proposed.

[0004] The present invention solves the above technical problems by the following technical solutions:

[0005] A time-triggered Ethernet transparent clock precise measurement system includes a local clock control module, a time synchronization state machine module, a PCF frame sending scheduling module, a physical layer data frame sending monitoring module, and a physical layer data frame receiving monitoring module, wherein:

[0006] The local clock control module is used to maintain the local time and calculate the high-precision local time with nanosecond time granularity;

[0007] The time synchronization state machine module implements the time synchronization protocol, controls the sending and receiving of PCF frames at the MAC layer and the physical layer, and calculates the MAC layer data frame sending delay and the physical layer data frame sending delay according to the PCF frame sending time point information at the MAC layer and the physical layer, and calculates the transparent transmission clock value according to the obtained data;

[0008] The PCF frame sending scheduling module listens to the MAC layer PCF frame sending signal sent by the time synchronization state machine module and records the PCF frame sending time point information of the MAC layer;

[0009] Physical layer data frame sending monitoring module: listens to the physical layer PCF frame sending signal sent by the PCF frame sending scheduling module, writes the current local time into the sending time point register, and obtains the physical layer PCF frame sending time point information for sending delay calculation, and generates a valid data frame receiving signal at the same time;

[0010] The physical layer data frame receiving and monitoring module monitors the data frame receiving valid signal provided by the physical layer and records the physical layer receiving and processing delay.

[0011] The PCF frame sending scheduling module listens to the PCF frame signal of the MAC layer sent by the time synchronization state machine module, writes the current local time Sys_clk into the dispatch time point register, and obtains the PCF frame sending time point information dispatch_pit_reg of the MAC layer for calculating the sending delay.

[0012] The physical layer data frame sending monitoring module monitors the PCF frame signal of the physical layer, writes the current local time Sys_clk into the sending time point register, and obtains the physical layer PCF frame sending time point information send_pit_reg for calculating the sending delay.

[0013] The physical layer data frame receiving monitoring module monitors the data frame receiving valid signal ETH_RX_DV output by the physical layer data frame sending monitoring module, writes the current local time Sys_clk into the receiving time point register to obtain the physical layer listening receiving time information recv_pit_reg, which is used for calculating the physical layer processing delay.

[0014] During the dynamic capture of the transparent clock value, the transparent clock value calculation formula is as follows:

[0015] transparent_delay=send_delay+phy_delay;

[0016] Wherein, send_delay is the MAC layer data frame sending delay, and phy_delay is the physical layer data frame sending delay.

[0017] The calculation formula for the data frame sending delay send_delay at the MAC layer is as follows:

[0018] send_delay=send_pit_reg-dispatch_pit_reg.

[0019] Calculate the physical layer data frame sending delay phy_delay, specifically:

[0020] phy_delay=(recv_pit_reg-send_pit_reg) / 2.

[0021] A time-triggered Ethernet transparent transmission clock accurate measurement method, comprising:

[0022] Determine the delay overhead of the end system MAC layer;

[0023] Determine the latency overhead of the end system physical layer;

[0024] Determine the hardware delay overhead between the physical layer and the MAC layer of the end system and complete the precise measurement of the transparent clock.

[0025] The delay overhead of the MAC layer of the end system is determined. When the MAC layer sends a PCF frame signal, the sending time point information of the PCF frame is recorded through a register to determine the delay overhead of the physical layer of the end system. When the end system sends the PCF frame to the physical layer, the sending time point information of the PCF frame of the physical layer is monitored, and the sending time point information when the PCF frame is sent to the physical layer is recorded through a register.

[0026] The hardware delay overhead between the end system MAC layer and the physical layer is determined, and the hardware delay overhead of the MAC layer and the physical layer are calculated according to the time point information of the calculated delay overhead of the end system MAC layer and the delay overhead of the end system physical layer.

[0027] The advantages of the present invention compared with the prior art are:

[0028] The present invention provides a time-triggered Ethernet transparent clock accurate measurement system and method. The delay overhead generated between the physical layer, the MAC layer and the physical layer to the MAC layer is accurately measured by adding corresponding hardware circuits to record corresponding time points. Through a fine-grained nanosecond time reference, a high-precision transparent clock value can be obtained, thereby improving the time synchronization accuracy of the system. Compared with the existing method of measuring the transparent clock by software, the transparent clock value at the nanosecond level can be obtained through a simple hardware circuit. The improved architecture has high accuracy, and the method is simple, easy to operate and easy to promote. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 Diagram of the precise measurement system of transparent clock provided for the invention;

[0030] Figure 2 Diagram of the precise measurement system of transparent clock provided for the invention; DETAILED DESCRIPTION

[0031] A time-triggered Ethernet transparent transmission clock accurate measurement system and method, for the delay overhead generated by the physical layer, MAC layer and between the physical layer and the MAC layer, the corresponding hardware circuit is added to record the corresponding time point for accurate measurement, and finally the accurate transparent transmission clock value is obtained. The specific measurement architecture is:

[0032] The local clock control module is used to maintain the local time, calculate the high-precision local time, achieve nanosecond-level time granularity, and improve the accuracy of transparent clock calculation;

[0033] The time synchronization state machine module implements the time synchronization protocol, controls the sending and receiving of PCF frames, and realizes the dynamic capture of real-time transparent clock values;

[0034] Control the sending and receiving of PCF frames at the MAC layer and the physical layer, and calculate the MAC layer data frame sending delay and the physical layer data frame sending delay according to the PCF frame sending time point information at the MAC layer and the physical layer, and calculate the transparent transmission clock value according to the obtained data;

[0035] The PCF frame sending scheduling module listens to the MAC layer PCF frame sending signal sent by the time synchronization state machine module. If it is detected, it records the PCF frame sending time point information of the MAC layer; if it is not detected, it listens to the signal again;

[0036] The physical layer data frame sending monitoring module monitors the physical layer PCF frame sending signal sent by the PCF frame sending scheduling module, writes the current local time into the sending time point register, and obtains the physical layer PCF frame sending time point information for calculating the sending delay, and generates a valid data frame receiving signal at the same time; if it is not detected, it will re-listen for the signal;

[0037] The physical layer data frame receiving and monitoring module monitors the data frame receiving valid signal provided by the physical layer, records the physical layer receiving and processing delay, and if it is not detected, re-listens for the signal.

[0038] Among them, the local clock control module maintains the local time Sys_clk, which is used to calculate the high-precision local time; the PCF frame sending scheduling module listens to the PCF frame signal of the MAC layer sent by the time synchronization state machine module, writes the current local time Sys_clk into the dispatch time point register, and obtains the PCF frame sending time point information dispatch_pit_reg of the MAC layer for calculating the sending delay; the physical layer data frame sending monitoring module listens to the PCF frame signal of the physical layer, writes the current local time Sys_clk into the sending time point register, and obtains the PCF frame sending time point information send_pit_reg of the physical layer for calculating the sending delay; the physical layer data frame receiving monitoring module listens to the data frame receiving valid signal ETH_RX_DV output by the physical layer data frame sending monitoring module, writes the current local time Sys_clk into the receiving time point register to obtain the physical layer listening receiving time information recv_pit_reg, which is used for calculating the physical layer processing delay;

[0039] During the dynamic capture of the transparent clock value, the transparent clock value calculation formula is as follows:

[0040] transparent_delay=send_delay+phy_delay

[0041] Where, send_delay is the MAC layer data frame sending delay, phy_delay is the physical layer data frame sending delay;

[0042] The specific calculation formula for data frame sending delay send_delay is:

[0043] send_delay=send_pit_reg-dispatch_pit_reg

[0044] Send delay phy_delay, assuming that the physical layer chip send delay phy_send_delay is equal to the physical layer chip receive delay phy_recv_delay.

[0045] phy_delay=(recv_pit_reg-send_pit_reg) / 2

[0046] The steps of the time-triggered Ethernet transparent clock accurate measurement method are as follows:

[0047] Determine the delay overhead of the end system MAC layer;

[0048] Determine the latency overhead of the end system physical layer;

[0049] Determine the hardware delay overhead between the physical layer and MAC layer of the end system and complete the precise measurement of transparent clock;

[0050] Determine the delay overhead of the MAC layer of the end system. When the MAC layer sends a PCF frame signal, the sending time point information of the PCF frame is recorded through a register. Determine the delay overhead of the physical layer of the end system. When the end system sends a PCF frame to the physical layer, the sending time point information of the PCF frame of the physical layer is monitored. The sending time point information when the PCF frame is sent to the physical layer is recorded through a register.

[0051] The hardware delay overhead between the MAC layer and the physical layer of the end system is determined, and the hardware delay overhead of the MAC layer and the physical layer is calculated according to the time point information of the calculated delay overhead of the MAC layer of the end system and the delay overhead of the physical layer of the end system.

[0052] The following is further described based on specific embodiments:

[0053] In the current embodiment, the transparent clock accurate measurement system is shown in FIG. Figure 1 As shown, it includes a local clock control module, a time synchronization state machine module, a PCF frame sending scheduling module, a physical layer data frame sending listening module, and a physical layer data frame receiving listening module. The main functions are as follows:

[0054] Designed to achieve nanosecond-level time granularity to improve the accuracy of transparent clock calculation;

[0055] Designed a time synchronization state machine module to implement the time synchronization protocol and control the sending and receiving of PCF frames;

[0056] The PCF frame sending scheduling module is designed to listen to the pcf_comma signal sent by the time synchronization state machine module and write the current local time Sys_clk into the dispatch time point register dispatch_pit_reg for calculating the sending delay.

[0057] A physical layer data frame sending monitoring module is designed to monitor the ETH_TX_EN signal sent by the PCF frame sending scheduling module, and write the current local time Sys_clk into the sending time point register send_pit_reg for calculating the sending delay;

[0058] A physical layer data frame receiving and monitoring module is designed to monitor the ETH_RX_DV signal provided by the physical layer chip and write the current local time Sys_clk into the receiving time point register recv_pit_reg for calculating the physical layer processing delay.

[0059] like Figure 2 As shown, it is a flow chart of the accurate measurement of transparent clock provided by the present invention, and the main process is as follows:

[0060] The local clock control module periodically updates the local time count to achieve high-precision nanosecond time granularity, which is used to obtain high-precision transparent clock values;

[0061] The time synchronization state machine module controls the sending of PCF frames. When the PCF frame sending time point is reached, the pcf_command signal is enabled to send the PCF frame.

[0062] The PCF frame sending scheduling module listens to the pcf_command signal sent by the time synchronization state machine module and writes the current local time Sys_clk into the dispatch time point register dispatch_pit_reg;

[0063] The physical layer data frame transmission monitoring module listens to the ETH_TX_EN signal sent by the PCF frame transmission scheduling module, and writes the current local time Sys_clk into the transmission time point register send_pit_reg, where:

[0064] The data frame sending delay send_delay is calculated according to the following formula:

[0065] send_delay=send_pit_reg-dispatch_pit_reg

[0066] The physical layer chip works in the self-loop mode, the physical layer data frame receiving and monitoring module monitors the ETH_RX_DV signal sent by the physical layer chip, and writes the current local time Sys_clk into the sending time point register recv_pit_reg;

[0067] The data frame sending delay phy_delay is calculated according to the following formula, assuming that the physical layer chip sending delay phy_send_delay is equal to the physical layer chip receiving delay phy_recv_delay;

[0068] phy_delay=(recv_pit_reg-send_pit_reg) / 2:

[0069] The formula for calculating the transparent clock value is as follows:

[0070] transparent_delay=send_delay+phy_delay.

[0071] Although the present invention has been disclosed as above in the form of a preferred embodiment, it is not intended to limit the present invention. Any person skilled in the art may make possible changes and modifications to the technical solution of the present invention by using the methods and technical contents disclosed above without departing from the spirit and scope of the present invention. Therefore, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the protection scope of the technical solution of the present invention.

[0072] The contents not described in detail in the specification of the present invention belong to the common knowledge of those skilled in the art.

Claims

1. A time-triggered Ethernet transparent clock accurate measurement system, characterized by: It includes a local clock control module, a time synchronization state machine module, a PCF frame sending scheduling module, a physical layer data frame sending monitoring module, and a physical layer data frame receiving monitoring module, wherein: The local clock control module is used to maintain the local time and calculate the high-precision local time with nanosecond time granularity; The time synchronization state machine module implements the time synchronization protocol, controls the sending and receiving of PCF frames at the MAC layer and the physical layer, and calculates the MAC layer data frame sending delay and the physical layer data frame sending delay according to the PCF frame sending time point information at the MAC layer and the physical layer, and calculates the transparent transmission clock value according to the obtained data; The PCF frame sending scheduling module listens to the MAC layer PCF frame sending signal sent by the time synchronization state machine module and records the PCF frame sending time point information of the MAC layer; Physical layer data frame sending monitoring module: listens to the physical layer PCF frame sending signal sent by the PCF frame sending scheduling module, writes the current local time into the sending time point register, and obtains the physical layer PCF frame sending time point information for sending delay calculation, and generates a valid data frame receiving signal at the same time; A physical layer data frame receiving and monitoring module monitors the data frame receiving valid signal provided by the physical layer and records the physical layer receiving and processing delay; The PCF frame sending scheduling module listens to the PCF frame signal of the MAC layer sent by the time synchronization state machine module, writes the current local time Sys_clk into the dispatch time point register, and obtains the PCF frame sending time point information dispatch_pit_reg of the MAC layer for calculating the sending delay; The physical layer data frame sending monitoring module monitors the PCF frame signal of the physical layer, writes the current local time Sys_clk into the sending time point register, obtains the PCF frame sending time point information send_pit_reg of the physical layer, and is used for calculating the sending delay; The physical layer data frame receiving monitoring module monitors the data frame receiving valid signal ETH_RX_DV output by the physical layer data frame sending monitoring module, writes the current local time Sys_clk into the receiving time point register to obtain the physical layer listening receiving time information recv_pit_reg, which is used for calculating the physical layer processing delay; During the dynamic capture of the transparent clock value, the transparent clock value calculation formula is as follows: transparent_delay=send_delay+phy_delay; Where, send_delay is the MAC layer data frame sending delay, phy_delay is the physical layer data frame sending delay; The calculation formula for the data frame sending delay send_delay at the MAC layer is as follows: send_delay=send_pit_reg-dispatch_pit_reg; Calculate the physical layer data frame sending delay phy_delay, specifically: phy_delay=(recv_pit_reg-send_pit_reg) / 2.

2. An accurate measurement method implemented by the accurate measurement system according to claim 1, characterized in that include: Determine the delay overhead of the end system MAC layer; Determine the latency overhead of the end system physical layer; Determine the hardware delay overhead between the physical layer and the MAC layer of the end system and complete the precise measurement of the transparent clock.

3. A precise measurement method according to claim 2, characterized in that: The delay overhead of the MAC layer of the end system is determined. When the MAC layer sends a PCF frame signal, the sending time point information of the PCF frame is recorded through a register to determine the delay overhead of the physical layer of the end system. When the end system sends the PCF frame to the physical layer, the sending time point information of the PCF frame of the physical layer is monitored, and the sending time point information when the PCF frame is sent to the physical layer is recorded through a register.

4. A precise measurement method according to claim 3, characterized in that: The hardware delay overhead between the end system MAC layer and the physical layer is determined, and the hardware delay overhead of the MAC layer and the physical layer are calculated according to the time point information of the calculated delay overhead of the end system MAC layer and the delay overhead of the end system physical layer.

Citation Information

Patent Citations

  • Computing method for transparent clock in time-triggered Ethernet

    CN103368721A

  • Transparent clock measurement device

    CN107425936A