CN104993900A - Synchronous correction method based on IEEE1588 clock model - Google Patents

Synchronous correction method based on IEEE1588 clock model Download PDF

Info

Publication number
CN104993900A
CN104993900A CN201510392586.5A CN201510392586A CN104993900A CN 104993900 A CN104993900 A CN 104993900A CN 201510392586 A CN201510392586 A CN 201510392586A CN 104993900 A CN104993900 A CN 104993900A
Authority
CN
China
Prior art keywords
rsqb
lsqb
clock
exchange process
queuing delay
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.)
Granted
Application number
CN201510392586.5A
Other languages
Chinese (zh)
Other versions
CN104993900B (en
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.)
State Grid Corp of China SGCC
Southeast University
State Grid Jiangsu Electric Power Co Ltd
Nanjing Power Supply Co of Jiangsu Electric Power Co
Original Assignee
State Grid Corp of China SGCC
Southeast University
State Grid Jiangsu Electric Power Co Ltd
Nanjing Power Supply Co of Jiangsu Electric Power Co
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 State Grid Corp of China SGCC, Southeast University, State Grid Jiangsu Electric Power Co Ltd, Nanjing Power Supply Co of Jiangsu Electric Power Co filed Critical State Grid Corp of China SGCC
Priority to CN201510392586.5A priority Critical patent/CN104993900B/en
Publication of CN104993900A publication Critical patent/CN104993900A/en
Application granted granted Critical
Publication of CN104993900B publication Critical patent/CN104993900B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a synchronous correction method based on an IEEE1588 clock model, and belongs to the technical field of communication. The method comprises the following steps: (1) acquiring the moment point of the IEEE1588 clock model to obtain each timestamp; (2) acquiring the relation between the time of a server and the time of a client through the IEEE1588 clock model, and acquiring the relation among the timestamps in Sync message sending and receiving processes in combination with a PTP (Picture Transfer Protocol); (3) performing difference operation based on the relation among the timestamps; and (4) acquiring the asymmetrical offset of an nth exchange process according to a first-order difference value given in the step (3), moving an average filter through exponential weighting in order that value theta is close to zero, and finishing correction between the server and the client. According to the method, a conventional thought is jumped out, and compensation is performed once again on the basis of the IEEE1588 clock model, so that the problem of end-to-end time non-synchronization is solved, and end-to-end interaction time becomes symmetrical.

Description

A kind of synchronization correction method based on IEEE1588 clock models
Technical field
The present invention relates to a kind of clock synchronous correction method, belong to communication technical field.
Background technology
Adopt an IEEE1588v2 and specially designed clock recovery mechanism to provide and reach the microsecond even clock synchronization accuracy of submicrosecond rank.And this is all based on a very important hypothesis, from master clock to the propagation delay time of the packet from clock and the propagation delay time from clock to master clock equal.But in reality, communication path is non complete symmetry, this is mainly due to delay and the queueing delay of different forwards and reverse link.The difference of packet delay is mainly because the difference queuing engineering of the packet of the element (as switch and router) in communication network causes.This is especially useful in timing and transmits and adopt end to end system, and assisting from network the impact alleviating queueing delay without any the timing of form.
The asymmetry of propagation delay has become the significant challenge solving clock synchronization issue.In network chronograph mechanism, boundary clock (BC) and transparent clock (TC) can eliminate the asymmetry of delay in the following two cases.First scene, the forward of variable queueing delay and reverse path; Second scenario, wraps in the asymmetry caused with different paths in each direction by timing data.It should be noted that time support scheme (BC and TC) is due to physical links different between network element, can not correct the asymmetry of delay.
For solving the asymmetry problem postponed in prior art, the expansion of extensive work has in mind to claim sex chromosome mosaicism with the army solving physical link, rarely has the research to the problem of QIA in end to end system transmission.
Summary of the invention
The technical problem to be solved in the present invention is, not enough for prior art, proposes a kind of synchronization correction method with secondary calibration flow process based on IEEE1588 clock models, to solve the asymmetric problem of time between master-salve clock.
The present invention is the technical scheme solving the problems of the technologies described above proposition: a kind of synchronization correction method based on IEEE1588 clock models, performs following steps:
1) moment point of described IEEE1588 clock models is obtained;
Master clock is at T 1[n] moment point sends with T 1the Sync message of [n] timestamp is to from clock, and the moment point receiving described Sync message from clock is T 2[n], and stamp time stamp T 2 [n] for described Sync message;
Send with the DelayReq message of T3 [n] timestamp to master clock from clock in T3 [n] moment point, the moment point that master clock receives described DelayReq message is T4 [n], and stamps time stamp T 4 [n] for described DelayReq message;
Time stamp T 4 [n] to be embedded in the n-th DelayResp message and to propagate into from clock by master clock, completes the n-th exchange process;
At the end of all n exchange process all, whole PTP message switching terminates;
Wherein, n is positive integer;
2) relation between time S (t) of server and time C (t) of client is obtained by described IEEE1588 clock models, S (t)=(1+ α) C (t)+θ (1)
Obtain described Sync message in conjunction with PTP protocol and formula (1) to send and each timestamp relational expression in receiving course,
T 1[n]+d f+q f[n]=(1+α[n])T 2[n]+θ[n] (2)
Described DelayReq message sends and each timestamp relational expression in receiving course,
T 4[n]-d r-q r[n]=(1+α[n])T 3[n]+θ[n] (3)
The time migration of the n-th exchange process from clock in formula (2) and formula (3) is θ [n],
θ [ n ] = 1 2 ( T 1 [ n ] + T 4 [ n ] - ( 1 + α [ n ] ) ( T 2 [ n ] + T 3 [ n ] ) ) + 1 2 ( d f - d r ) + θ q [ n ] θ q [ n ] = 1 2 ( q f [ n ] - q r [ n ] )
Wherein,
α is crooked degree coefficient, and the kind k of transmission medium and the length l of propagation path is directly proportional;
α [n] is the crooked degree coefficient of the n-th exchange process;
θ is the time migration from clock;
θ q[n] is variable queuing delay deviation;
D ffor master clock is to the physical link delay from clock;
Q ffor the variable queuing delay of master clock, q fthe variable queuing delay of the n-th exchange process that [n] is master clock;
D rfor the physical link delay from clock to master clock;
Q rfor the variable queuing delay from clock, q r[n] is the variable queuing delay of volume of the n-th exchange process from clock;
3) based on step 1) in time stamp T 1[n], T 2[n], T 3[n], T 4[n] carries out calculus of differences and obtains,
ε[n]=q f[n]-q f[n-1]=(1+α[n])dT 2[n]-dT 1[n]
γ[n]=q r[n]-q r[n-1]=dT 4[n]-(1+α[n])dT 3[n]
ε [n] is the variable queuing delay q of the n-th exchange process of master clock fthe first-order difference of [n],
γ [n] is the variable queuing delay q of the n-th exchange process from clock rthe first-order difference of [n];
4) by step 3) given by first-order difference value, obtain the asymmetric skew of the n-th exchange process obtained by exponentially weighted moving average (EWMA) filter again average magnitude for average variable queuing delay skew
θ ‾ q a v [ n ] = ( 1 - β ) θ ‾ q a v [ n - 1 ] + β θ ‾ q a v [ n ] ,
Wherein, β is hum reduction factor, 0< β <1, by adjustment β, makes θ value level off to zero, completes the synchronous correction of described server and described client.
The improvement of technique scheme is: step 3) afterwards to q f[n] and q r[n] is normalized, and with step 3) in the minimum of the variable queuing delay of master clock mentioned and the minimum of variable queuing delay from clock as the reference value of normalized, and obtain q fand q rcorresponding normalization amount with
q f n r &lsqb; n &rsqb; = &epsiv; s &lsqb; n &rsqb; - min k = n - N k = n { &epsiv; s &lsqb; k &rsqb; } = q f &lsqb; n &rsqb; - q f &lsqb; 0 &rsqb; - min k = n - N k = n { q f &lsqb; k &rsqb; - q f &lsqb; 0 &rsqb; } = q f &lsqb; n &rsqb; - q f min &lsqb; n &rsqb;
q r n r &lsqb; n &rsqb; = &gamma; s &lsqb; n &rsqb; - min k = n - N k = n { &gamma; s &lsqb; k &rsqb; } = q r &lsqb; n &rsqb; - q r m i n &lsqb; n &rsqb;
Wherein,
ε s[n]=ε s[n-1]+ε[n]
=ε s[n-1]+q f[n]-q f[n-1]
=ε s[0]+q f[n]-q f[0]
γ s[n]=γ s[0]+q r[n]-q r[0]
ε s[0]=γ s[0]=0。
The improvement of technique scheme is: the instantaneous asymmetric skew of the n-th exchange process by the n-th exchange process normalization amount of correspondence with determine &theta; &OverBar; q &lsqb; n &rsqb; = ( q f n r &lsqb; n &rsqb; - q r n r &lsqb; n &rsqb; ) / 2.
The improvement of technique scheme is: determine the forward of described PTP message and reverse respectively according to master clock with from the sequence of the variable queuing delay of clock, and determine instantaneous asymmetric skew with the variable queuing delay of forward and reverse variable queuing delay
The improvement of technique scheme is: forward and the reverse data flow of described PTP message are separate.
The present invention adopts the beneficial effect of technique scheme to be: the basis that the present invention is based on IEEE1588 clock models, jump out conventional method on this basis, consider the situation of the time irreversibility between the server that the time error between being eliminated by master-salve clock by compensation method is caused and client; This method mainly considers the time migration brought by master-salve clock, calculated by the timestamp obtained in message transmission procedure on each point, the compensation rate of certainty annuity, to revise time migration (or correction), makes server and client synchronization.And carry out simplified operation by normalization operation time shortened, be convenient to carry out the selection of repeatedly computing and sample size sooner so that the enforcement of backoff algorithm, make it possible to realize faster to hold with hold synchronous.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the invention will be further described.
Fig. 1 is the master-salve clock transfer process schematic diagram of a kind of synchronization correction method embodiment based on IEEE1588 clock models of the present invention.
Fig. 2 is the backoff algorithm flow process of a kind of synchronization correction method embodiment based on IEEE1588 clock models of the present invention.
Fig. 3 is the branching diagram based on the power distribution network topological structure of OPNET foundation in the embodiment of the present invention.
Fig. 4 is the Comparative result figure A in the embodiment of the present invention.
Fig. 5 is the Comparative result figure B in the embodiment of the present invention.
Fig. 6 is the end-to-end time migration of the message transmissions of the embodiment of the present invention under different β value.
Fig. 7 is the message transmissions end-to-end time delay of the embodiment of the present invention under different β value.
Embodiment
Embodiment
For convenience of describing, the compensation method mentioned in the present invention is called QIA backoff algorithm in the present embodiment.
The present embodiment is a kind of same bearing calibration based on IEEE1588 clock models, wherein the principle of IEEE1588 clock models as shown in Figure 1, by following step, can to based on the correction work realizing master-salve clock synchronization between the server of this modular concept and client
1) moment point of IEEE1588 clock models is obtained;
Master clock is at T 1[n] moment point sends with T 1the Sync message of [n] timestamp is to from clock, and the moment point receiving Sync message from clock is T 2[n], and stamp time stamp T 2 [n] for Sync message;
Send with the DelayReq message of T3 [n] timestamp to master clock from clock in T3 [n] moment point, the moment point that master clock receives DelayReq message is T4 [n], and stamps time stamp T 4 [n] for DelayReq message;
Time stamp T 4 [n] to be embedded in the n-th DelayResp message and to propagate into from clock by master clock, completes the n-th exchange process;
At the end of all n exchange process all, whole PTP message switching terminates;
Wherein, n is positive integer.
After acquisition each point timestamp to master-salve clock between difference compensate, be applied to QIA backoff algorithm as shown in Figure 2;
2) relation between time S (t) of server and time C (t) of client is obtained by IEEE1588 clock models, S (t)=(1+ α) C (t)+θ (1)
In conjunction with PTP protocol, (PTP protocol is the abbreviation of IEEE1588 agreement, the full name of IEEE1588 agreement is " the precise clock synchronization consensus standard of network measure and control system ") and formula (1) Sync message send with receiving course in each timestamp relational expression
T 1[n]+d f+q f[n]=(1+α[n])T 2[n]+θ[n] (2)
DelayReq message sends and each timestamp relational expression in receiving course,
T 4[n]-d r-q r[n]=(1+α[n])T 3[n]+θ[n] (3)
The time migration of the n-th exchange process from clock in formula (2) and formula (3) is θ [n],
&theta; &lsqb; n &rsqb; = 1 2 ( T 1 &lsqb; n &rsqb; + T 4 &lsqb; n &rsqb; - ( 1 + &alpha; &lsqb; n &rsqb; ) ( T 2 &lsqb; n &rsqb; + T 3 &lsqb; n &rsqb; ) ) + 1 2 ( d f - d r ) + &theta; q &lsqb; n &rsqb; &theta; q &lsqb; n &rsqb; = 1 2 ( q f &lsqb; n &rsqb; - q r &lsqb; n &rsqb; )
Wherein,
α is crooked degree coefficient, and the kind k of transmission medium and the length l of propagation path is directly proportional;
α [n] is the crooked degree coefficient of the n-th exchange process;
θ is the time migration from clock;
θ q[n] is variable queuing delay deviation;
D ffor master clock is to the physical link delay from clock;
Q ffor the variable queuing delay of master clock, q fthe variable queuing delay of the n-th exchange process that [n] is master clock;
D rfor the physical link delay from clock to master clock;
Q rfor the variable queuing delay from clock, q r[n] is the variable queuing delay of volume of the n-th exchange process from clock;
3) based on step 1) in time stamp T 1[n], T 2[n], T 3[n], T 4[n] carries out calculus of differences and obtains,
ε[n]=q f[n]-q f[n-1]=(1+α[n])dT 2[n]-dT 1[n]
γ[n]=q r[n]-q r[n-1]=dT 4[n]-(1+α[n])dT 3[n]
ε [n] is the variable queuing delay q of the n-th exchange process of master clock fthe first-order difference of [n],
γ [n] is the variable queuing delay q of the n-th exchange process from clock rthe first-order difference of [n];
4) by step 3) given by first-order difference value, obtain the asymmetric skew of the n-th exchange process obtained by exponentially weighted moving average (EWMA) filter (Exponentially Weighted Moving Average Filter) again average magnitude for average variable queuing delay skew
&theta; &OverBar; q a v &lsqb; n &rsqb; = ( 1 - &beta; ) &theta; &OverBar; q a v &lsqb; n - 1 &rsqb; + &beta; &theta; &OverBar; q a v &lsqb; n &rsqb; ,
Wherein, β is hum reduction factor, 0< β <1, by adjustment β, makes θ value level off to zero, completes the synchronous correction of described server and described client.
The present embodiment is in step 3) after to q f[n] and q r[n] is normalized, and with step 3) in the minimum of the variable queuing delay of master clock mentioned and the minimum of variable queuing delay from clock as the reference value of normalized, and obtain q fand q rcorresponding normalization amount with
q f n r &lsqb; n &rsqb; = &epsiv; s &lsqb; n &rsqb; - min k = n - N k = n { &epsiv; s &lsqb; k &rsqb; } = q f &lsqb; n &rsqb; - q f &lsqb; 0 &rsqb; - min k = n - N k = n { q f &lsqb; k &rsqb; - q f &lsqb; 0 &rsqb; } = q f &lsqb; n &rsqb; - q f min &lsqb; n &rsqb;
q r n r &lsqb; n &rsqb; = &gamma; s &lsqb; n &rsqb; - min k = n - N k = n { &gamma; s &lsqb; k &rsqb; } = q r &lsqb; n &rsqb; - q r m i n &lsqb; n &rsqb;
Wherein,
ε s[n]=ε s[n-1]+ε[n]
=ε s[n-1]+q f[n]-q f[n-1]
=ε s[0]+q f[n]-q f[0]
γ s[n]=γ s[0]+q r[n]-q r[0]
ε s[0]=γ s[0]=0。
The instantaneous asymmetric skew of n-th exchange process of the present embodiment by the n-th exchange process normalization amount of correspondence with determine,
&theta; &OverBar; q &lsqb; n &rsqb; = ( q f n r &lsqb; n &rsqb; - q r n r &lsqb; n &rsqb; ) / 2.
The present embodiment determines the forward of PTP message and reverse respectively according to master clock with from the sequence of the variable queuing delay of clock, and determine instantaneous asymmetric skew with the variable queuing delay of forward and reverse variable queuing delay
Forward and the reverse data flow of the PTP message of the present embodiment are separate.
Based on said method, set up a power distribution network topological structure based on OPNET in the present embodiment, (OPNET is the popular software for communication simulation as shown in Figure 3, to the comparative analysis of the path delay of time and time deviation, there is preferably analogue simulation effect), adopt a typical branch to contrast effect when between mode when different pairs pair.Wherein comprise a server node (i.e. master node), 8 client nodes (i.e. terminal node) and some routers, telephone net node and relevant link.In whole network topology, server node as website of advocating war be to need pair time client node send corresponding pair according to protocol conventions time message, client node is as terminal node, periodically and server node carries out pair time message interaction, guarantee that local clock is consistent with server node clock.
The quantity of obvious network element and network transport load situation all have important impact to every part of QIA backoff algorithm (QIACA).Herein mainly for topological structure and the loading condition thereof of typical distribution net, corresponding backoff algorithm is adopted to study.Herein mainly for the Sensitivity Analysis of QIACA parameter, and attempt when choosing different crooked degree coefficient α, hum reduction factor β and sample size N, comparative analysis also obtains best compensation of delay effect.Because crooked degree coefficient α is for being approximately a constant, and the value that sample size N gets is the bigger the better, and the value that we get α is herein 0.1, and the value of N to be 20min carry out that contrast is discussed.
Server node in above-mentioned distribution network and the nodal analysis method of client node, containing standard five layer architecture of OSI communication protocol in node, is physical layer, Access Layer, network layer, transport layer and application layer respectively.Wherein, PTP protocol, as the protocol stack in application layer, is positioned on udp layer, transmit pair time message be all encapsulated as UDP/IP bag after transmit in a network.In addition, for agreement during IEEE1588 couple, also need to carry out corresponding parameter configuration to model.
End-to-end time deviation is not transmitted and time delay is analyzed to adopting the IEEE1588 protocol massages of QIA backoff algorithm, Comparative result figure A and B is as shown in Figure 4,5 based on the end-to-end skew of the message transmissions of model in the present embodiment and the successively contrast of message transmissions end-to-end time delay QIA backoff algorithm respectively
The result of display as can be seen from Fig. 4,5, after the QIA backoff algorithm adopting the embodiment of the present invention to mention, its time migration and time delay are all far smaller than the data not adopting QIA backoff algorithm, and it is more effective for the compensation effect of forward and reverse time delay that experiment demonstrates QIA algorithm.
And when hum reduction factor β is 0.0008,0.0009, when 0.0010,0.0011,0.0012, the end-to-end time deviation of overall message transmissions and time delay are respectively as shown in Figure 6 and Figure 7.
Experiment proves in the present embodiment α=0.1 and under the environment of N=20min, when β=0.0010, time migration and time delay are all tending towards minimum value, and wherein time migration is 0.000013s, and time delay value is 0.0000222s, all remains on preferably within accuracy rating.
The QIA backoff algorithm mentioned in the present embodiment, substantially increases precision when to be undertaken pair by IEEE1588 agreement.Adopt QIA backoff algorithm can be undertaken finely tuning to obtain time delay and reporting the most accurately by its corresponding sample size of change, crooked degree coefficient α and hum reduction factor β.
The present invention is not limited to above-described embodiment.All employings are equal to the technical scheme of replacing and being formed, and all drop on the protection range of application claims.

Claims (5)

1., based on a synchronization correction method for IEEE1588 clock models, it is characterized in that performing following steps:
1) moment point of described IEEE1588 clock models is obtained;
Master clock is at T 1[n] moment point sends with T 1the Sync message of [n] timestamp is to from clock, and the moment point receiving described Sync message from clock is T 2[n], and stamp time stamp T 2 [n] for described Sync message;
Send with the DelayReq message of T3 [n] timestamp to master clock from clock in T3 [n] moment point, the moment point that master clock receives described DelayReq message is T4 [n], and stamps time stamp T 4 [n] for described DelayReq message;
Time stamp T 4 [n] to be embedded in the n-th DelayResp message and to propagate into from clock by master clock, completes the n-th exchange process;
At the end of all n exchange process all, whole PTP message switching terminates;
Wherein, n is positive integer;
2) relation between time S (t) of server and time C (t) of client is obtained by described IEEE1588 clock models, S (t)=(1+ α) C (t)+θ (1)
Obtain described Sync message in conjunction with PTP protocol and formula (1) to send and each timestamp relational expression in receiving course,
T 1[n]+d f+q f[n]=(1+α[n])T 2[n]+θ[n] (2)
Described DelayReq message sends and each timestamp relational expression in receiving course,
T 4[n]-d r-q r[n]=(1+α[n])T 3[n]+θ[n] (3)
The time migration of the n-th exchange process from clock in formula (2) and formula (3) is θ [n],
&theta; &lsqb; n &rsqb; = 1 2 ( T 1 &lsqb; n &rsqb; + T 4 &lsqb; n &rsqb; - ( 1 + &alpha; &lsqb; n &rsqb; ) ( T 2 &lsqb; n &rsqb; + T 3 &lsqb; n &rsqb; ) ) + 1 2 ( d f - d r ) + &theta; q &lsqb; n &rsqb; &theta; q &lsqb; n &rsqb; = 1 2 ( q f &lsqb; n &rsqb; - q r &lsqb; n &rsqb; )
Wherein,
α is crooked degree coefficient, and the kind k of transmission medium and the length l of propagation path is directly proportional;
α [n] is the crooked degree coefficient of the n-th exchange process;
θ is the time migration from clock;
θ q[n] is variable queuing delay deviation;
D ffor master clock is to the physical link delay from clock;
Q ffor the variable queuing delay of master clock, q fthe variable queuing delay of the n-th exchange process that [n] is master clock;
D rfor the physical link delay from clock to master clock;
Q rfor the variable queuing delay from clock, q r[n] is the variable queuing delay of volume of the n-th exchange process from clock;
3) based on step 1) in time stamp T 1[n], T 2[n], T 3[n], T 4[n] carries out calculus of differences and obtains,
ε[n]=q f[n]-q f[n-1]=(1+α[n])dT 2[n]-dT 1[n]
γ[n]=q r[n]-q r[n-1]=dT 4[n]-(1+α[n])dT 3[n]
ε [n] is the variable queuing delay q of the n-th exchange process of master clock fthe first-order difference of [n],
γ [n] is the variable queuing delay q of the n-th exchange process from clock rthe first-order difference of [n];
4) by step 3) given by first-order difference value, obtain the asymmetric skew of the n-th exchange process obtained by exponentially weighted moving average (EWMA) filter again average magnitude for average variable queuing delay skew
&theta; &OverBar; q a v &lsqb; n &rsqb; = ( 1 - &beta; ) &theta; &OverBar; q a v &lsqb; n - 1 &rsqb; + &beta; &theta; &OverBar; q a v &lsqb; n &rsqb; ,
Wherein, β is hum reduction factor, 0< β <1, by adjustment β, makes θ value level off to zero, completes the synchronous correction of described server and described client.
2. a kind of synchronous correction method based on IEEE1588 clock models as claimed in claim 1, is characterized in that: step 3) after to q f[n] and q r[n] is normalized, and with step 3) in the minimum of the variable queuing delay of master clock mentioned and the minimum of variable queuing delay from clock as the reference value of normalized, and obtain q fand q rcorresponding normalization amount with
q f n r &lsqb; n &rsqb; = &epsiv; s &lsqb; n &rsqb; - min k = n - N k = n { &epsiv; s &lsqb; n &rsqb; } = q f &lsqb; n &rsqb; - q f &lsqb; 0 &rsqb; - min k = n - N k = n { q f &lsqb; n &rsqb; - q f &lsqb; 0 &rsqb; } = q f &lsqb; n &rsqb; - q f min &lsqb; 0 &rsqb;
q r n r &lsqb; n &rsqb; = &gamma; s &lsqb; n &rsqb; - min k = n - N k = n { &gamma; s &lsqb; k &rsqb; } = q r &lsqb; n &rsqb; - q r m i n &lsqb; n &rsqb;
Wherein,
ε s[n]=ε s[n-1]+ε[n]
=ε s[n-1]+q f[n]-q f[n-1]
=ε s[0]+q f[n]-q f[0]
γ s[n]=γ s[0]+q r[n]-q r[0]
ε s[0]=γ s[0]=0。
3. a kind of synchronization correction method based on IEEE1588 clock models as claimed in claim 2, is characterized in that: the instantaneous asymmetric skew of the n-th exchange process by the n-th exchange process normalization amount of correspondence with determine &theta; &OverBar; q &lsqb; n &rsqb; = ( q f n r &lsqb; n &rsqb; - q r n r &lsqb; n &rsqb; ) / 2.
4. a kind of synchronization correction method based on IEEE1588 clock models as claimed in claim 1, it is characterized in that: determine the forward of described PTP message and reverse respectively according to master clock with from the sequence of the variable queuing delay of clock, and determine instantaneous asymmetric skew with the variable queuing delay of forward and reverse variable queuing delay
5. a kind of synchronization correction method based on IEEE1588 clock models as claimed in claim 4, is characterized in that: forward and the reverse data flow of described PTP message are separate.
CN201510392586.5A 2015-07-06 2015-07-06 A kind of synchronization correction method based on IEEE1588 clock models Active CN104993900B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510392586.5A CN104993900B (en) 2015-07-06 2015-07-06 A kind of synchronization correction method based on IEEE1588 clock models

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510392586.5A CN104993900B (en) 2015-07-06 2015-07-06 A kind of synchronization correction method based on IEEE1588 clock models

Publications (2)

Publication Number Publication Date
CN104993900A true CN104993900A (en) 2015-10-21
CN104993900B CN104993900B (en) 2018-03-09

Family

ID=54305661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510392586.5A Active CN104993900B (en) 2015-07-06 2015-07-06 A kind of synchronization correction method based on IEEE1588 clock models

Country Status (1)

Country Link
CN (1) CN104993900B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108418235A (en) * 2018-01-30 2018-08-17 国网电力科学研究院武汉南瑞有限责任公司 The compensation method that signal transmission clock applied to four fracture series trip devices synchronizes
CN108667543A (en) * 2017-03-29 2018-10-16 华为技术有限公司 A kind of clock processing method, access network equipment and terminal device
CN110300450A (en) * 2019-05-22 2019-10-01 南京大学 A kind of clock servo method using sef-adapting filter correction 1588 agreement of IEEE
CN113014344A (en) * 2019-12-19 2021-06-22 中国科学院沈阳自动化研究所 Time synchronization method of redundant network
CN113132041A (en) * 2019-12-31 2021-07-16 中移(成都)信息通信科技有限公司 Data transmission delay calculation method and device
CN115334008A (en) * 2022-10-18 2022-11-11 中国电子科技集团公司第三十研究所 Method, system, equipment and medium for processing 1588 message jitter of PTN network
WO2023098683A1 (en) * 2021-11-30 2023-06-08 广东电网有限责任公司江门供电局 Real-time clock synchronization method and system for power distribution terminal, and power distribution terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070147562A1 (en) * 2005-12-23 2007-06-28 Eidson John C Corrrecting time synchronization inaccuracy caused by asymmetric delay on a communication link
CN102638324A (en) * 2012-03-27 2012-08-15 杭州华三通信技术有限公司 Method and device for realizing precise time synchronization
CN102655469A (en) * 2011-03-01 2012-09-05 中兴通讯股份有限公司 Network equipment, system and method for realizing differential clock equipment communication
CN103119872A (en) * 2010-09-20 2013-05-22 阿尔卡特朗讯 Method for correcting an asymmetry in a delay
US20130266306A1 (en) * 2011-02-08 2013-10-10 Mitsubishi Electric Corporation Time synchronization method for communication system, slave station apparatus, master station apparatus, control device, and program
CN104185274A (en) * 2014-09-11 2014-12-03 周俊杰 High-precision WLAN positioning scheme based on precision clock synchronization and time difference of arrival (TDOA) principle

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070147562A1 (en) * 2005-12-23 2007-06-28 Eidson John C Corrrecting time synchronization inaccuracy caused by asymmetric delay on a communication link
CN103119872A (en) * 2010-09-20 2013-05-22 阿尔卡特朗讯 Method for correcting an asymmetry in a delay
US20130266306A1 (en) * 2011-02-08 2013-10-10 Mitsubishi Electric Corporation Time synchronization method for communication system, slave station apparatus, master station apparatus, control device, and program
CN102655469A (en) * 2011-03-01 2012-09-05 中兴通讯股份有限公司 Network equipment, system and method for realizing differential clock equipment communication
CN102638324A (en) * 2012-03-27 2012-08-15 杭州华三通信技术有限公司 Method and device for realizing precise time synchronization
CN104185274A (en) * 2014-09-11 2014-12-03 周俊杰 High-precision WLAN positioning scheme based on precision clock synchronization and time difference of arrival (TDOA) principle

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667543A (en) * 2017-03-29 2018-10-16 华为技术有限公司 A kind of clock processing method, access network equipment and terminal device
CN108418235A (en) * 2018-01-30 2018-08-17 国网电力科学研究院武汉南瑞有限责任公司 The compensation method that signal transmission clock applied to four fracture series trip devices synchronizes
CN110300450A (en) * 2019-05-22 2019-10-01 南京大学 A kind of clock servo method using sef-adapting filter correction 1588 agreement of IEEE
CN113014344A (en) * 2019-12-19 2021-06-22 中国科学院沈阳自动化研究所 Time synchronization method of redundant network
CN113132041A (en) * 2019-12-31 2021-07-16 中移(成都)信息通信科技有限公司 Data transmission delay calculation method and device
CN113132041B (en) * 2019-12-31 2022-03-04 中移(成都)信息通信科技有限公司 Data transmission delay calculation method and device
WO2023098683A1 (en) * 2021-11-30 2023-06-08 广东电网有限责任公司江门供电局 Real-time clock synchronization method and system for power distribution terminal, and power distribution terminal
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

Also Published As

Publication number Publication date
CN104993900B (en) 2018-03-09

Similar Documents

Publication Publication Date Title
CN104993900A (en) Synchronous correction method based on IEEE1588 clock model
CN101803268B (en) Clock synchronization system, method and program thereof
US10862601B1 (en) Bridges including physical layer devices for indicating transmission times of synchronization frames by modifying previously generated corresponding follow up frames
CN102859941B (en) Renewal to the accumulative residence time being grouped in packet exchange communication network
CN105429725B (en) A kind of submicrosecond grade clock synchronizing method and system based on SOPC networkings
US7876791B2 (en) Synchronizing apparatus and method in packet network
US9178637B2 (en) Method and devices for synchronization using linear programming
CN103929293B (en) Asymmetrically-delayed time synchronization method and system
CN102244603B (en) Method, equipment and system for transmitting message bearing time
CN108964820B (en) Clock processing method and device and PTP (precision time protocol) equipment
KR20050025582A (en) A system and method for correcting the clock drift and maintaining the synchronization in wireless networks
WO2008138850A1 (en) Method for synchronizing a clock of a network component with a clock of further network component and network component therefor
EP2448168A1 (en) Method and system for bearing time synchronization protocol in optical transport network
WO2023098683A1 (en) Real-time clock synchronization method and system for power distribution terminal, and power distribution terminal
Vallat et al. Clock synchronization in telecommunications via PTP (IEEE 1588)
JP4467478B2 (en) Transmission apparatus and time synchronization method
CN113424466B (en) Method and device for clock synchronization
CN107395307A (en) A kind of clock synchronizing method and equipment
US8861552B2 (en) Fault-tolerant self-stabilizing distributed clock synchronization protocol for arbitrary digraphs
Lévesque et al. PTP++: a precision time protocol simulation model for OMNeT++/INET
Lam et al. An improved precision time protocol for industrial WLAN communication systems
CN107947848A (en) Satellite communication ground synchronous analogue system and application process based on IEEE 1588v2
CN105794130A (en) Method and devices for synchronization using linear programming
Moreira et al. IEEE 1588 Transparent Clock architecture for FPGA-based network devices
CN105099593B (en) A kind of method, apparatus and system of time synchronized

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant