CN114157381A - Network delay jitter-oriented dynamic delay estimation period adjustment method - Google Patents

Network delay jitter-oriented dynamic delay estimation period adjustment method Download PDF

Info

Publication number
CN114157381A
CN114157381A CN202111496975.4A CN202111496975A CN114157381A CN 114157381 A CN114157381 A CN 114157381A CN 202111496975 A CN202111496975 A CN 202111496975A CN 114157381 A CN114157381 A CN 114157381A
Authority
CN
China
Prior art keywords
clock
delay
time
time delay
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111496975.4A
Other languages
Chinese (zh)
Inventor
徐哲壮
高绪超
崔冠文
陈剑
翁振海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuzhou University
Original Assignee
Fuzhou University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuzhou University filed Critical Fuzhou University
Priority to CN202111496975.4A priority Critical patent/CN114157381A/en
Publication of CN114157381A publication Critical patent/CN114157381A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0682Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0016Arrangements for synchronising receiver with transmitter correction of synchronization errors

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a dynamic adjustment method of a delay estimation period facing to network delay jitter, which comprises the following steps: step S1, all nodes in the clock synchronization domain send Announce messages to other nodes and determine the master clock of the nodes in the domain; step S2, the master clock periodically sends synchronous messages to the slave clock nodes in the domain; step S3, the master clock encapsulates the first time stamp into an accompanying message, sends the accompanying message to the slave clock, and the slave clock decapsulates the message; step S4, calculating clock offset from the clock; step S5, judging whether jitter occurs by comparing the deviation with the deviation jitter threshold value, step S6, calculating the credible clock deviation according to the time delay, and when the time delay is larger than the threshold value, calculating the credible clock deviation
Figure DEST_PATH_IMAGE002
When the network environment is normal, the network environment is not jittered and used
Figure DEST_PATH_IMAGE004
And correcting a local clock to finish high-precision clock synchronization. The invention effectively reduces the influence of the time delay error caused by jitter on the clock synchronization precision.

Description

Network delay jitter-oriented dynamic delay estimation period adjustment method
Technical Field
The invention relates to the technical field of clock synchronization, in particular to a dynamic time delay estimation period adjusting method facing network time delay jitter.
Background
The time delay refers to a transmission time of a time stamp data packet from a reference node (master clock) to a terminal node (slave clock), which includes a processing time of the reference point, a transmission time, a processing time of the terminal point, and the like. The time delay estimation error of the clock synchronization technology directly influences the precision of clock synchronization.
In an actual industrial field, the factors forming the delay jitter are many. Congestion caused by frequent forwarding of heterogeneous data streams such as audio and video, control data and the like, uncertainty of packet processing delay and complex and severe electromagnetic environment can cause delay jitter, and how to reduce delay jitter and the influence caused by delay jitter are one of challenges of clock synchronization technology development.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method for dynamically adjusting a delay estimation period for network delay jitter, which can significantly reduce clock synchronization errors caused by frequent jitter.
In order to achieve the purpose, the invention adopts the following technical scheme:
a time delay estimation period dynamic adjustment method facing network time delay jitter comprises the following steps:
step S1, after the clock synchronization process is started, all nodes in the clock synchronization domain send Announce messages to other nodes, and compare the clock attributes through an optimal master clock algorithm to determine the master clock of the nodes in the domain, wherein the other nodes are slave clocks;
step S2, the master clock periodically transfers the slave clock node to the domainThe point sends the synchronous message, the main clock sets the first time stamp t when the message passes the link layer and the middle layer of the physical layer1And storing as the time of the packet popping. Receiving the synchronous message from the clock, and recording a second time stamp t at the same position2
Step S3, the master clock sends the first time stamp t1Packaging the packet into an accompanying message, sending the accompanying message to a slave clock, decapsulating the message from the slave clock, and obtaining a first timestamp t from the slave clock1And a second time stamp t2
Step S4, the slave clock according to t1And t2And the last measured delay data, calculating the clock offset tf
Step S5 by comparing the deviation tfAnd deviation jitter threshold thetafJudging whether dithering occurs, if tf≤θfIf the network is not jittered normally, the process goes to step S6 to update the clock; if tf>θfAnd represents the network delay jitter, and directly changes the delay estimation period to be a short period T2And immediately triggering a time delay measurement to obtain time delay data tdThen, the process proceeds to step S6;
step S6, according to the time delay tdCalculating a trusted clock offset tfWhen t isf≤θfWhen the time is longer, the network environment is normal and not jittered, and t is usedfAnd correcting a local clock to finish high-precision clock synchronization.
Further, the Announce packet includes an attribute data set of the clock.
Further, the calculating clock offset tfThe method specifically comprises the following steps:
tf=t2-(t1+t’d)
wherein, t'dIs the time delay data measured last time.
Further, the delay measurement trigger condition includes that the timer triggers periodically, and the delay jitter is sensed in step S5.
Further, the time delay measurement specifically includes:
the slave clock node sends a time delay measurement request message to the master clock, and the slave clock records the sending time to form a third timestamp t3The master clock records the arrival time of the message to form a fourth timestamp t4(ii) a The master clock will timestamp t4Encapsulating a Delay measurement reply message (Delay _ resp) and sending the message to the slave clock; decapsulating the packet from the clock to obtain all the four required timestamps t1、t2、t3、t4
The slave clock will t1、t2、t3、t4Substituting the following formula to obtain the observed value t of the time delay at the current momentdI.e. tdIs the average value of the two-way time delay
Figure BDA0003401085380000031
Comparing the time delays tdAnd a delay threshold thetad(ii) a When t isd≤θdWhen the network is in the normal period T, the time delay measurement period is adjusted to the normal period T, which represents that the current network does not shake or the shaking is over1(ii) a When t isd>θdIndicating that the delay jitter occurs or continues, adjusting the delay measurement period to a short period T2
Compared with the prior art, the invention has the following beneficial effects:
1. for the network with time delay jitter, the invention can reduce the influence of time delay error caused by jitter on clock synchronization precision;
2. the invention can automatically adjust the time delay estimation period, thereby enhancing the accurate estimation of the time delay jitter, enhancing the robustness of a network system and ensuring the precision requirement of clock synchronization.
Drawings
FIG. 1 is a schematic diagram illustrating error variation in a clock synchronization process according to an embodiment of the present invention;
FIG. 2 is a flow chart of the method of the present invention.
Detailed Description
The invention is further explained below with reference to the drawings and the embodiments.
In this embodiment, an IEEE1588 precision time synchronization protocol (PTP) is operated in a network, a synchronization period is set to 1s, a delay measurement period is set to 8s, and delay data and clock skew of a master clock and a slave clock of the network are collected. Most of the time delay is stable around 2800us, the time delay jitters for many times, the time delay during jittering reaches 3100us, the clock deviation of the jittering has great influence, and when the jittering occurs, the clock deviation is large and reaches 750us at most. It can be seen from the above that the delay of the network is unstable, the jitter frequency is high, and the amplitude is large, which becomes the main factor affecting the clock synchronization.
In this embodiment, the offset threshold and the delay threshold are determined according to a statistical method. From the offset data collected above, a mean value of the clock offset of 33.27us and a standard deviation of 66.69us were obtained. If 95% of the offset value is required to be within the threshold interval, the threshold θ of the offset isfμ +2 σ, i.e. threshold θf166.65us were taken.
Similarly, the mean value of the obtained time delay is 2807.64us, and the standard deviation is 45.49 us. If 95% of the offset value is required to be within the threshold interval, the threshold θ of the time delaydμ +2 σ, i.e. delay threshold θd2898.62us were taken.
Substituting the threshold parameter into the method of the invention, defaulting the time delay measurement period to 8s, when the time delay exceeds the threshold, judging that the jitter occurs, changing the period to 1s, and keeping the synchronization period unchanged. And starting a clock synchronization process to acquire time delay data and clock offset.
Referring to fig. 2, the present invention provides a method for dynamically adjusting a delay estimation period for network delay jitter, which includes the following steps:
step S1, after the clock synchronization process is started, all nodes in the clock synchronization domain send an Announce message to other nodes, including the attribute data set of the clock, after the other nodes receive the Announce message, the other nodes compare the clock attributes through the Best Master Clock Algorithm (BMCA) to determine the master clock of the nodes in the domain, and the other nodes are slave clocks;
step S2 is that the master clock periodically sends a synchronization message to the intradomain slave clock node,when a message passes through the intermediate layers of the link layer and the physical layer, the master clock marks a first time stamp t1And storing as the time of the packet popping. Receiving the synchronous message from the clock, and recording a second time stamp t at the same position2
Step S3, the master clock sends the first time stamp t1Packaging the packet into an accompanying message, sending the accompanying message to a slave clock, decapsulating the message from the slave clock, and obtaining a first timestamp t from the slave clock1And a second time stamp t2
Step S4, the slave clock according to t1And t2And the time delay data measured last time, calculating the clock offset t by formula (1)f
tf=t2-(t1+td)
(1);
Step S5 by comparing the deviation tfAnd deviation jitter threshold thetafJudging whether dithering occurs, if tf≤θfIf the network is not jittered normally, the process goes to step S6 to update the clock; if tf>θfAnd represents the network delay jitter, and directly changes the delay estimation period to be a short period T2And immediately triggering a time delay measurement to obtain time delay data tdThen, the process proceeds to step S6;
preferably, the time delay measurement specifically includes:
the slave clock node sends a time delay measurement request message to the master clock, and the slave clock records the sending time to form a third timestamp t3The master clock records the arrival time of the message to form a fourth timestamp t4(ii) a The master clock will timestamp t4Encapsulating a Delay measurement reply message (Delay _ resp) and sending the message to the slave clock; decapsulating the packet from the clock to obtain all the four required timestamps t1、t2、t3、t4
The slave clock will t1、t2、t3、t4Substituting the following formula to obtain the observed value t of the time delay at the current momentdI.e. tdIs the average value of the two-way time delay
Figure BDA0003401085380000061
Comparing the time delays tdAnd a delay threshold thetad(ii) a When t isd≤θdWhen the network is in the normal period T, the time delay measurement period is adjusted to the normal period T, which represents that the current network does not shake or the shaking is over1(ii) a When t isd>θdIndicating that the delay jitter occurs or continues, adjusting the delay measurement period to a short period T2
Step S6, delaying tdSubstituting equation (1) into, calculate the trusted clock offset tfWhen t isf≤θfWhen the time is longer, the network environment is normal and not jittered, and t is usedfAnd correcting a local clock to finish high-precision clock synchronization.
The above description is only a preferred embodiment of the present invention, and all equivalent changes and modifications made in accordance with the claims of the present invention should be covered by the present invention.

Claims (5)

1. A time delay estimation period dynamic adjustment method facing network time delay jitter is characterized by comprising the following steps:
step S1: after a clock synchronization process is started, all nodes in a clock synchronization domain send Announce messages to other nodes, and through an optimal master clock algorithm, the attributes of each clock are compared to determine a master clock of the nodes in the domain, and the other nodes are slave clocks;
step S2: a master clock periodically sends a synchronous message to an intra-domain slave clock node, and the master clock marks a first timestamp t when the message passes through the intermediate layers of a link layer and a physical layer1And storing as the time of the packet popping. Receiving the synchronous message from the clock, and recording a second time stamp t at the same position2
Step S3: the master clock sends a first time stamp t1Packaging the packet into an accompanying message, sending the accompanying message to a slave clock, decapsulating the message from the slave clock, and obtaining a first timestamp t from the slave clock1And a second time stamp t2
Step S4:the slave clock is according to t1And t2And the last measured delay data, calculating the clock offset tf
Step S5: by comparing the deviations tfAnd deviation jitter threshold thetafJudging whether dithering occurs, if tf≤θfIf the network is not jittered normally, the process goes to step S6 to update the clock; if tf>θfAnd represents the network delay jitter, and directly changes the delay estimation period to be a short period T2And immediately triggering a time delay measurement to obtain time delay data tdThen, the process proceeds to step S6;
step S6: according to time delay tdCalculating a trusted clock offset tfWhen t isf≤θfWhen the time is longer, the network environment is normal and not jittered, and t is usedfAnd correcting a local clock to finish high-precision clock synchronization.
2. The method according to claim 1, wherein the Announce packet includes an attribute data set of the local clock.
3. The method according to claim 1, wherein the computing clock offset t is calculated by a time delay estimation period dynamic adjustment method for network time delay jitterfThe method specifically comprises the following steps:
tf=t2-(t1+t′d)
wherein, t'dIs the time delay data measured last time.
4. The method according to claim 1, wherein the delay measurement trigger condition includes: the timer is triggered periodically, and a time delay jitter is sensed in step S5.
5. The method for dynamically adjusting a delay estimation period for network delay variation according to claim 1, wherein the delay measurement specifically includes:
the slave clock node sends a time delay measurement request message to the master clock, and the slave clock records the sending time to form a third timestamp t3The master clock records the arrival time of the message to form a fourth timestamp t4(ii) a The master clock will timestamp t4Encapsulating a Delay measurement reply message (Delay _ resp) and sending the message to the slave clock; decapsulating the packet from the clock to obtain all the four required timestamps t1、t2、t3、t4
The slave clock will t1、t2、t3、t4Substituting the following formula to obtain the observed value t of the time delay at the current momentdI.e. tdIs the average value of the two-way time delay
Figure FDA0003401085370000031
Comparing the time delays tdAnd a delay threshold thetad(ii) a When t isd≤θdWhen the network is in the normal period T, the time delay measurement period is adjusted to the normal period T, which represents that the current network does not shake or the shaking is over1(ii) a When t isddIndicating that the delay jitter occurs or continues, adjusting the delay measurement period to a short period T2
CN202111496975.4A 2021-12-09 2021-12-09 Network delay jitter-oriented dynamic delay estimation period adjustment method Pending CN114157381A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111496975.4A CN114157381A (en) 2021-12-09 2021-12-09 Network delay jitter-oriented dynamic delay estimation period adjustment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111496975.4A CN114157381A (en) 2021-12-09 2021-12-09 Network delay jitter-oriented dynamic delay estimation period adjustment method

Publications (1)

Publication Number Publication Date
CN114157381A true CN114157381A (en) 2022-03-08

Family

ID=80454065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111496975.4A Pending CN114157381A (en) 2021-12-09 2021-12-09 Network delay jitter-oriented dynamic delay estimation period adjustment method

Country Status (1)

Country Link
CN (1) CN114157381A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208504A (en) * 2022-07-22 2022-10-18 福州大学 Network clock synchronization method based on ARIMA-LSTM estimation
CN115334008A (en) * 2022-10-18 2022-11-11 中国电子科技集团公司第三十研究所 Method, system, equipment and medium for processing 1588 message jitter of PTN network
CN115549884A (en) * 2022-09-30 2022-12-30 东风商用车有限公司 Sensor time synchronization method, device, equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009034984A1 (en) * 2007-09-14 2009-03-19 Nec Corporation Clock synchronization system in packet network, its method and program
US20110044357A1 (en) * 2005-06-28 2011-02-24 Alon Shtern System and method for high precision clock recovery over packet networks
WO2019056921A1 (en) * 2017-09-22 2019-03-28 烽火通信科技股份有限公司 Centralized 1588 implementation system and method
CN110809288A (en) * 2019-11-04 2020-02-18 腾讯科技(深圳)有限公司 Network congestion control method, device, equipment and medium
CN112152746A (en) * 2020-10-09 2020-12-29 福州大学 Network clock synchronization method capable of tolerating delay jitter
CN112217588A (en) * 2019-07-10 2021-01-12 烽火通信科技股份有限公司 Timestamp jitter compensation method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110044357A1 (en) * 2005-06-28 2011-02-24 Alon Shtern System and method for high precision clock recovery over packet networks
WO2009034984A1 (en) * 2007-09-14 2009-03-19 Nec Corporation Clock synchronization system in packet network, its method and program
WO2019056921A1 (en) * 2017-09-22 2019-03-28 烽火通信科技股份有限公司 Centralized 1588 implementation system and method
CN112217588A (en) * 2019-07-10 2021-01-12 烽火通信科技股份有限公司 Timestamp jitter compensation method and system
WO2021004005A1 (en) * 2019-07-10 2021-01-14 烽火通信科技股份有限公司 Timestamp jitter compensation method and system
CN110809288A (en) * 2019-11-04 2020-02-18 腾讯科技(深圳)有限公司 Network congestion control method, device, equipment and medium
CN112152746A (en) * 2020-10-09 2020-12-29 福州大学 Network clock synchronization method capable of tolerating delay jitter

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
XUCHAO GAO, ZHEZHUANG XU, GUANWEN C,XU MINUI, JIAN CHEN: "Improving Time Synchronization with Period Adaptation in Single Twisted Pair Ethernet", 《SEMANTIC SCHOLAR 》, 3 December 2021 (2021-12-03) *
庞策;张亚生;申曲;: "精确时间同步协议在空间无线信道下的适应性研究", 计算机测量与控制, no. 03 *
陈昊;唐余亮;: "基于家庭基站移动通信***的自适应时钟同步算法", 厦门大学学报(自然科学版), no. 03 *
马阿曼,江先亮,金光: "LEDBAT协议优先级反转抑制的启发式动态阈值算法", 《计算机研究与发展》, vol. 57, no. 06, 15 June 2020 (2020-06-15) *
马阿曼;江先亮;金光;: "LEDBAT协议优先级反转抑制的启发式动态阈值算法", 计算机研究与发展, no. 06 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208504A (en) * 2022-07-22 2022-10-18 福州大学 Network clock synchronization method based on ARIMA-LSTM estimation
CN115549884A (en) * 2022-09-30 2022-12-30 东风商用车有限公司 Sensor time synchronization method, device, equipment and readable storage medium
CN115549884B (en) * 2022-09-30 2024-04-26 东风商用车有限公司 Sensor time synchronization method, device, equipment and readable storage medium
CN115334008A (en) * 2022-10-18 2022-11-11 中国电子科技集团公司第三十研究所 Method, system, equipment and medium for processing 1588 message jitter of PTN network
CN115334008B (en) * 2022-10-18 2023-03-21 中国电子科技集团公司第三十研究所 Method, system, equipment and medium for processing 1588 message jitter of PTN network

Similar Documents

Publication Publication Date Title
CN114157381A (en) Network delay jitter-oriented dynamic delay estimation period adjustment method
US11057136B1 (en) Time correction using extension fields
US9203725B2 (en) Update of a cumulative residence time of a packet in a packet-switched communication network
US8824511B2 (en) Clock synchronization system, node, clock synchronization method, and program
US8451867B2 (en) Network time protocol precision timestamping service
US11316605B2 (en) Method, device, and computer program for improving synchronization of clocks in devices linked according to a daisy-chain topology
US8295267B2 (en) Clock synchronization system, method, and apparatus for communication
US20090086764A1 (en) System and method for time synchronization on network
US11552871B2 (en) Receive-side timestamp accuracy
US20100296524A1 (en) Multi input timing recovery over packet network
WO2017063450A1 (en) Timestamp filtering method and apparatus
TW201625040A (en) Method of synchronising clocks of network devices
US8644350B2 (en) Packet-based timing measurement
KR20160078893A (en) Semiconductor device, electronic device module and network system
JP6834642B2 (en) Time correction method
CN110572230A (en) correction method and device for realizing time synchronization
US20220007321A1 (en) Network Entities and Methods for a Wireless Network System for Determining Time Information
CN113965288A (en) Method and device for improving precision time protocol PTP time synchronization precision
CN116456450A (en) EtherCAT and 5G fusion networking time synchronization method
TWI618432B (en) Frequency calibration apparatus and method
JP6684409B1 (en) Time synchronization system
CN117675072A (en) Synchronization time determining method, time synchronization device, time synchronization system and medium
WO2015087024A1 (en) Method and devices for synchronization using linear programming
CN113037418B (en) Error correction method and related device for network time service
KR20100048124A (en) Time synchronization method in bridged local area network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination