Skip to main content

ORIGINAL RESEARCH article

Front. Phys., 22 March 2022
Sec. Interdisciplinary Physics
This article is part of the Research Topic Long-Range Dependent Processes: Theory and Applications View all 15 articles

Two Novel One-Way Delay Clock Skew Estimators and Their Performances for the Fractional Gaussian Noise/Generalized Fractional Gaussian Noise Environment Applicable for the IEEE 1588v2 (PTP) Case

Yehonatan AvrahamYehonatan AvrahamMonika Pinchas
Monika Pinchas*
  • Department of Electrical and Electronic Engineering, Ariel University, Ariel, Israel

Papers in the literature dealing with the Ethernet network characterize packet delay variation (PDV) as a long-range dependence (LRD) process. The fractional Gaussian noise (fGn) or the generalized fractional Gaussian noise (gfGn) belong to the LRD process. The IEEE1588v2 is a two-way delay (TWD) protocol that uses the messages from the Forward (Master to Slave) and the Reverse (Slave to Master) paths. Suppose we have a significant difference between the PDV variances of the Forward and the Reverse paths. Thus, if we can use only the path with the lowest PDV variance (namely, only the one-way delay (OWD) technique), we might get a better clock skew performance from the mean square error (MSE) point of view compared with the traditional TWD method. This paper proposes two OWD clock skew estimators, one for the Forward path and one for the Reverse path applicable for the white-Gaussian, fGn and gfGn environment. Those OWD estimators do not depend on the unknown asymmetry between the fixed delays in the Forward and Reverse paths and nor on the clock offset between the Master and Slave. We also supply two closed-form approximated expressions for the MSE related to our new proposed OWD clock skew estimators. In addition, we supply some conditions, summarized in a table, guiding us whether we should use the OWD clock skew estimator for the Forward path or for the Reverse path, or just use the TWD algorithm. Simulation results confirm that our new proposed OWD clock skew estimators achieve better clock skew performances from the MSE point of view, compared with the TWD clock skew estimator recently proposed by the same authors and compared with two literature known OWD methods (the maximum likelihood and Kalman clock skew estimators).

1 Introduction

The Precision Time Protocol (PTP), named also as the IEEE 1588v2 standard [1] is a TWD exchange scheme where the Slave exchanges a series of synchronization packets with its Master so the packet timestamps can be employed to estimate the clock skew relative to the Master. In other words, the PTP as a TWD algorithm uses messages received from the Forward (Master to Slave) and from the Reverse (Slave to Master) paths in order to estimate the clock skew relative to the Master. The synchronization packets can encounter several intermediate switches and routers along the network path between the Master and the Slave [2]. Networks often suffer large unpredictable queuing delays at switches and routers (thus having heavy PDV in the network) due to the presence of background traffic [3]. This background traffic may be a real traffic or one caused by a cyber attack [2] where a malicious intermediate node deliberately delays the transmission of synchronization messages. A heavy PDV can be seen in the Forward path, in the Reverse path or in both paths. Usually, the PDV in the Forward path is different from the PDV in the Reverse path. The problem is that the PDV of the Forward and Reverse paths can significantly hamper the accuracy of the clock skew estimation [3]. A lower PDV will lead to a more accurate clock skew estimation compared to a higher PDV. Thus, if the difference in the PDVs encountered in Forward and Reverse paths is high, the clock skew estimation accuracy obtained with the TWD technique is mainly decreased due to the path with the higher PDV. Thus, if we could use for the clock skew estimation task only the path with the lowest PDV (namely, using the OWD technique), the clock skew performance from the MSE point of view might be improved compared with the case where we have also to consider the path with the higher PDV (the TWD approach). Since the lower PDV path may occur in the Forward path as well as in the Reverse path, two different OWD clock skew estimators are needed (one for the Forward path and the other one associated with the Reverse path). So far we have seen that for the clock skew estimation task, the OWD technique may be more useful compared with the TWD approach in cases where the Forward PDV variance is very different from the Reverse PDV variance. According to [4], PTP (which is a TWD exchange scheme) has more unknown parameters than available equations. Thus, in order to solve the problem, a symmetric path is usually assumed. Namely, the fixed delay in the Forward path is usually assumed to be the same as the fixed delay for the Reverse path. But, in practical scenarios, this is not the case. Thus, for an asymmetrical path, when the symmetric path assumption is applied, a degradation in the clock skew estimation may be obtained when the TWD approach is applied. Now, the OWD technique relies only on one path, on the Reverse path or on the Forward path. Thus, the symmetric assumption is not needed in the OWD technique which can be considered here as an advantage compared with the TWD approach. Suppose for a moment that we have three clock skew estimators applicable for the PTP case. Namely, we have one OWD clock skew estimator for the Forward path, one OWD clock skew estimator for the Reverse path and a TWD clock skew estimator. Next we wish to know which of the three clock skew estimators should be taken for the clock skew estimation task given a network where different PDV variances are seen on both Forward and Reverse paths but the fixed delay of the Forward path is equal to the fixed delay of the Reverse path. It is quite reasonable to think that when the Forward path PDV variance is equal or close to equal to the Reverse path PDV variance, the TWD clock skew estimator is preferable over the OWD clock skew estimator due to the “averaging” effect of the variances in the TWD clock skew estimator. But, when the PDV variances of the Forward and Reverse paths are different and on the same time the difference in the variances is not very high, it is not clear if the OWD clock skew estimator for the Forward path or the OWD clock skew estimator for the Reverse path or maybe the TWD clock skew estimator should be applied for the clock skew estimation task. Thus, some guiding lines (closed-form expressions, conditions) are needed here, telling us which approach should be applied in order to get the best clock skew performance in the MSE point of view. Namely, which clock skew estimator should be taken: the OWD clock skew estimator for the Forward path or the OWD clock skew estimator for the Reverse path or perhaps the TWD clock skew estimation approach. Recently [4], we proposed a new TWD clock skew estimator for the PTP case that has the best clock skew performance in the MSE point of view compared to the relevant literature known estimators [57]. This clock skew estimator [4] is suitable for the white-Gaussian and fGn/gfGn cases and does not depend on the asymmetric fixed delay between the Forward and the Reverse paths, nor on the offset between the Master and the Slave clocks. This paper is a direct continuation of our previous work [4]. Thus, please refer to [4] in order to find a detailed overview of the existing TWD and recently proposed OWD approaches for the PTP case. Please note that the two recently proposed OWD clock skew estimators [6,7], are both OWD clock skew estimators associated with the Forward path. Thus, if the Forward path PDV variance is much higher compared with the Reverse path PDV variance, [6,7] may not get better clock skew performance from the MSE point of view compared with the TWD approach and compared with the OWD clock skew estimator associated with the Reverse path. As already was mentioned, this paper is a direct continuation of our previous work [4] where we proposed a novel TWD clock skew estimator applicable for the PTP case. In this paper we propose:

1. A novel OWD clock skew estimator for the Forward path based on [4], applicable for the white-Gaussian and fGn/gfGn environment.

2. A novel OWD clock skew estimator for the Reverse path based on [4], applicable for the white-Gaussian and fGn/gfGn environment.

3. A closed-form-approximated expression for the clock skew performance (MSE) related to our OWD proposed clock skew estimator for the Forward path.

4. A closed-form-approximated expression for the clock skew performance (MSE) related to our OWD proposed clock skew estimator for the Reverse path.

5. Guiding lines (closed-form expressions, conditions), summarized in a table (please refer to Table 1), telling us if we should use the OWD clock skew estimator for the Forward path or the OWD clock skew estimator for the Reverse path or perhaps the TWD clock skew estimator proposed by [4] in order to get the best clock skew performance from the MSE point of view.

TABLE 1
www.frontiersin.org

TABLE 1. Summary of the conditions where the suggested estimator have the possible lower MSE.

The clock skew performances (MSE) of our new proposed OWD clock skew estimators were compared via simulation with the clock skew performances (MSE) obtained with two TWD clock skew estimators [4,5] and with the literature known OWD clock skew estimators [6,7]. Simulation results will show the advantage in performance (MSE) of our new proposed OWD clock skew estimators compared to [47]. Simulation results will also show the effectiveness of our closed-form-approximated expressions for the clock skew performance (MSE) associated to the Forward and Reverse paths as well as the effectiveness of our proposed guiding lines, leading us to the right choice of the clock skew estimator from the MSE point of view.

The paper is organized as follows. Section 2 briefly introduces the system under consideration and the assumptions we applied for our algorithm. Section 3 proposes the OWD clock skew estimators for the Forward and Reverse paths. Section 4 suggests the closed-form approximated expressions for the MSE related to our new proposed OWD clock skew estimators where the PDV is a white-Gaussian process. Section 5 suggests the closed-form approximated expressions for the MSE related to our new proposed OWD clock skew estimators where the PDV is an fGn/gfGn process. In Section 6, we derive some guiding lines (conditions), summarized in Table 1, telling us under what condition should we prefer the OWD for the Forward path over the OWD for the Reverse path or should just prefer the TWD clock skew estimator obtained in [4]. Section 7 presents simulation results, and in Section 8, a conclusion is given.

2 System Description

As already was mentioned earlier, this paper is a direct continuation of our previous work [4]. Thus, the system description is the same as in [4]. Please refer to [4], for having a detailed description of the message exchange flow between the Master and the Slave. Let us recall Figure 1 from [4] where based on [810] we may write:

t1j+dms+ω1j=t2j1+α+Q(1)
t4jdsmω2j=t3j1+α+Q(2)

where Q is the time difference between the Master and the Slave clocks (offset) and α is the clock skew. The Forward and the Reverse fixed delays are denoted as dms, dsm respectively. The Forward PDV is denoted as ω1[j] and the Reverse PDV is denoted as ω2[j]. The total number of the Sync messages periods is denoted as J, where j = 1, 2, 3, … , J. At timestamp t1, the Master sends a Sync message to the Slave. The Slave receives this Sync message at timestamp t2 and sends back to the Master a Delay Req message at timestamp t3. The Master receives this Delay Req message at timestamp t4. Please note that t1[j], t2[j], t3[j], t4[j] are the timestamps of t1, t2, t3 and t4 respectively at the jth Sync message period.

FIGURE 1
www.frontiersin.org

FIGURE 1. PTP messaging timing diagram.

We consider two different models for the PDV, as was done in [4]:

1. The PDV is modeled as a white-Gaussian noise with zero mean and the variance Eωn[j],ωn[m] is σωn2 when j = m and zero when jm

where E [.] denotes the expectation operator on (.) and n = 1, 2.

2. The PDV is modeled as an fGn/gfGn process with zero mean. Based on [1113] we have:

a. When j = m: Eωn[j],ωn[m]=σωn2.

b. When jm: Eωn[j],ωn[m]=σωn22(jm)a|12H2(|(jm)a|)2H+(|(jm)a|+1)2H.

where a = 1 is the fGn case.

In addition, we use also the same assumptions as were made in [4]:

1. The Forward and the Reverse PDVs are independent. Thus, we have: Eω1[j],ω2[m]=0j,m.

2. In the Slave clock the time between t2 [j] to t3 [j] is constant and is denoted as X. Thus, we have: t3 [j] − t2 [j] = X.

In this paper we propose two novel OWD clock skew estimators, one for the Forward path and one for the Reverse path. Both OWD clock skew estimators are based on our previously TWD clock skew estimator [4] given by:

α̂=1JJ1i=1J1j=1JiT1,jiT2,ji+T4,jiT2,ji1(3)

where

T1,ji=t1j+it1j,T2,ji=t2j+it2j,T4,ji=t4j+it4j(4)

3 The OWD Clock Skew Estimators

In the following, we present in Theorem 1 our new proposed OWD clock skew estimator for the Forward path and in Theorem 2 our new proposed OWD clock skew estimator for the Reverse path.

3.1 Theorem 1

The clock skew estimator for the OWD in the Forward path (Master to Slave) can be written as:

α̂F=2JJ1i=1J1j=1JiT1,jiT2,ji1(5)

where α̂F is the is the clock skew estimator that based only on timestamps from the Forward path.

Proof of Theorem 1

In order to avoid the fixed delay, we can subtract between two timestamps from different Sync periods. Therefore, based on Eq. 1 we have:

T1,ji+Ω1,ji=T2,ji1+αj,iF(6)

where αj,iF is the clock skew between the (j + i)-th and ith Sync period, and Ω1,j(i) is:

Ω1,ji=ω1j+iω1j(7)

Based on Eq. 6 the clock skew can be written as:

αj,iF=T1,jiT2,ji+Ω1,jiT2,ji1(8)

The OWD clock skew in the Forward path can be defined as:

αF=2JJ1i=1J1j=1Jiαj,iF(9)

By putting Eq. 8 into Eq. 9 we define the clock skew in the Forward path as:

αF=2JJ1i=1J1j=1JiT1,jiT2,ji+Ω1,jiT2,ji1=α̂F+2JJ1i=1J1j=1JiΩ1,jiT2,ji(10)

This completes our proof.

3.2 Theorem 2

The skew clock estimator for the OWD in the Reverse path (Slave to Master) can be written as:

α̂R=2JJ1i=1J1j=1JiT4,jiT2,ji1(11)

where α̂R is the is the clock skew estimator that based only on timestamps from the Reverse path.

Proof of Theorem 2

In order to avoid the fixed delay, we can subtract between two timestamps from different Sync periods. Therefore, based on Eq. 2 we have:

T4,jiΩ2,ji=T3,ji1+αj,iR(12)

where αj,iR is the clock skew between the (j + i)-th and ith Sync period, and

T3,ji=t3j+it3j;Ω2,ji=ω2j+iω2j(13)

Based on the definition that t3 [j] − t2 [j] = X, as mentioned in the section of System Description (assumption 2), we can write:

T3,ji=t3j+it3j=t2j+i+Xt2j+X=T2,ji(14)

By using Eq. 14, we can write Eq. 12 as:

T4,jiΩ2,ji=T2,ji1+αj,iR(15)

Therefore, based on Eq. 15 the clock skew can be written as:

αj,iR=T4,jiT2,jiΩ2,jiT2,ji1(16)

The OWD clock skew in the Reverse path can be defined as:

αR=2JJ1i=1J1j=1Jiαj,iR(17)

By putting Eq. 16 into Eq. 17 we define the clock skew in the Reverse path as:

αR=2JJ1i=1J1j=1JiT4,jiT2,jiΩ2,jiT2,ji1=α̂R2JJ1i=1J1j=1JiΩ2,jiT2,ji(18)

This completes our proof.

4 The Clock Skew Performance for the White-Gaussian Case

In the following, Theorems 3 and 4 present the closed-form approximated expressions for the MSE related to our new proposed OWD clock skew estimator for the Forward path and Reverse path, respectively. According to [4], the MSE for the TWD clock skew estimator for the Gaussian case is given by:

Ee21JJ12σω12+σω22Tsyn2A1+1P(19)

where P is:

P=ABσω12+σω22σω14Tsyn2(20)

and A, B are given by:

A=2i=1J1Jii2+i=1J1j=1Jik=1kiJ1m=1m=jm=j+ikJk1iki=1J1j=1Jik=1J1m=1m=j+im=jkJk1ik(21)
B=12i=1J1Jii4+6i=1J1j=1Jik=1kiJ1m=1m=jm=j+ikm=j+im=jkJk1ik2+4i=1J1j=1Jik=1J1m=1mjmj+ikmj+imjkJk1ik2(22)

4.1 Theorem 3

For Ω1,j(i)T1,j(i)1, the closed-form-approximated expression for the MSE related to the OWD clock skew estimator (for the Forward path), can be defined as:

EeF22JJ12σω12Tsyn2A1+1PF(23)

where PF is:

PF=ABTsyn2σω12(24)

where A and B are defined in Eq. 21, 22 respectively.

Proof of Theorem 3

Based on Eq. 10 the error of the OWD clock skew estimator (for the Forward path) is:

eF=αFα̂F=2JJ1i=1J1j=1JiΩ1,jiT2,ji(25)

Now, according to Eq. 6 we can write T2,j(i) as following:

T2,ji=T1,ji+Ω1,ji1+αj,iF(26)

Based on Eq. 26 we may write the expectation of Eq. 25 as:

EeF=21+αFJJ1i=1J1j=1JiEaj,i1+aj,i(27)

where

aj,i=Ω1,jiT1,ji(28)

For Ω1,j(i)T1,j(i)1 we can write Eq. 27 as:

EeF21+αFJJ1i=1J1j=1JiEaj,i1aj,i(29)

Based on Eq. 29 the approximated MSE related to the OWD clock skew estimator (for the Forward path) can be define as:

EeF241+αF2JJ12i=1J1j=1Jik=1J1j=mJkEaj,iam,kEaj,i2am,kEaj,iam,k2+Eaj,i2am,k2(30)

According to [4], we can write T1,j(i) and T1,m(k) as:

T1,ji=t1j+it1j=iTsynT1,mk=t1m+kt1m=kTsyn(31)

where Tsyn is the Sync messages period.

Based on Eq. 28 and on Eq. 31 we can simplify the expressions in Eq. 30:

Eaj,iam,k=EΩ1,jiT1,jiΩ1,mkT1,mk=EΩ1,jiΩ1,mkikTsyn2(32)
Eaj,i2am,k=EΩ1,j2iT1,j2iΩ1,mkT1,mk=EΩ1,j2iΩ1,mki2kTsyn3(33)
Eaj,iam,k2=EΩ1,jiT1,jiΩ1,m2kT1,m2k=EΩ1,jiΩ1,m2kik2Tsyn3(34)
Eaj,i2am,k2=EΩ1,j2iT1,j2iΩ1,m2kT1,m2k=EΩ1,j2iΩ1,m2ki2k2Tsyn4(35)

Since the PDV has zero mean Eqs 33 and 34 can be set to zero. Now, by putting Eqs 32 and 35 into Eq. 30, we can write the following expression:

EeF221+αFJJ1Tsyn2i=1J1j=1Jik=1J1m=1JkEΩ1,jiΩ1,mkik+1Tsyn2EΩ1,j2iΩ1,m2kik2(36)

Based on [4] we can write the two summation parts in Eq. 36 as:

i=1J1j=1Jik=1J1m=1JkEΩ1,jiΩ1,mkik=σω12Ai=1J1j=1Jik=1J1m=1Jk1Tsyn2EΩ1,j2iΩ1,m2kik2=σω14Tsyn2B(37)

where A and B are defined in Eq. 21, 22 respectively.

Based on Eq. 37 we may write (36) as:

EeF221+αFJJ1Tsyn2σω12A+σω14Tsyn2B(38)

For practical systems, the two clocks (Master and Slave) operate at almost the same frequency. Therefore we can write that (1 + αF) ≈ 1.

After rearranging Eq. 38 we can write:

EeF22JJ1Tsyn2σω12A1+σω12Tsyn2BA(39)

Now, it can be easily seen that based on Eq. 39 we can write Eq. 23, and this completes our proof.

4.2 Theorem 4

For Ω1,j(i)T1,j(i)1, the closed-form-approximated expression for the MSE related to the OWD clock skew estimator (for the Reverse path), can be defined as:

EeR22JJ12σω22Tsyn2A(40)

where A is defined in Eq. 21.

Proof of Theorem 4

Based on Eq. 18 the error of the OWD clock skew estimator (for the Reverse path) is:

eR=αRα̂R=2JJ1i=1J1j=1JiΩ2,jiT2,ji(41)

Let us recall (26):

T2,ji=T1,ji+Ω1,ji1+αj,iF

Based on Eq. 26, we may write the expectation of Eq. 41 as:

EeR21+αFJJ1i=1J1j=1JiEbj,i1+aj,i(42)

where

aj,i=Ω1,jiT1,jibj,i=Ω2,jiT1,ji(43)

As mentioned before for practical systems, the two clocks (Master and Slave) operate at almost the same frequency. Therefore, we can write (1 + αF) ≈ 1.

For Ω1,j(i)T1,j(i)1 we can write Eq. 42 as:

EeR2JJ1i=1J1j=1JiEbj,iaj,ibj,i(44)

Based on the assumption of independence of the Forward and the Reverse messages (as mentioned in assumption 1 in section 2), we may write Eq. 44 as:

EeR2JJ1i=1J1j=1JiEbj,i(45)

Based on Eq. 45 the closed-form-approximated expression for the MSE related to the OWD clock skew estimator (for the Reverse path) can be define as:

EeR24JJ12i=1J1j=1Jik=1J1j=mJkEbj,ibm,k(46)

Based on Eq. 43 and on Eq. 31 we can rewrite the expression Ebj,ibm,k as:

Ebj,ibm,k=EΩ2,jiT1,jiΩ2,mkT1,mk=EΩ2,jiΩ2,mkikTsyn2(47)

Now, based on Eq. 47 the closed-form-approximated expression for the MSE related to the OWD clock skew estimator (for the Reverse path) is:

EeR22JJ1Tsyn2i=1J1j=1Jik=1J1m=1JkEΩ2,jiΩ2,mkik(48)

According to [4], we can write the summation part in Eq. 48 as:

i=1J1j=1Jik=1J1m=1JkEΩ2,jiΩ2,mkik=σω22A(49)

where A is defined in Eq. 21.

Now, it can be easily seen that by putting Eq. 49 into Eq. 48 we get Eq. 40, and this completes our proof.

5 The Clock Skew Performance for the LRD Case

In this section we applied the fGn/gfGn model for the LRD process. This model has the Hurst exponent in the range of 0.5 ≤ H < 1 and the a parameter in the range of 0 < a ≤ 1, where for a = 1 we have the fGn case. In the following, Theorems 5 and 6 present the closed-form approximated expressions for the MSE related to our new proposed OWD clock skew estimator for the Forward path and Reverse path, respectively. According to [4] the closed-form-approximated expression for the MSE related to the TWD clock skew estimator [4] is given by:

Ee21JJ12σω12+σω22Tsyn21+1PC+D(50)

where C and D are given by:

C=i=1J1Jii22fGHi,H+i=1J1j=1Jik=1kiJ1m=1m=jm=j+ikJk1ik1+12fGHik,H,afGHi,H,afGHk,H,ai=1J1j=1Jik=1J1m=1m=j+im=jkJk1ik112fGHi,H,afGHk,H,a+fGHi+k,H,a(51)
D=i=1J1j=1Jik=1J1m=1mjmj+imjkmj+ikJk12ikfGHjm,H,afGHj+im,H,afGHjmk,H,a+fGHj+imk,H,a(52)

the function fGH(.) is:

fGHx,H,a=xa|1|2H2|xa|2H+|xa|+12H(53)

and P is defined in Eq. 20.

5.1 Theorem 5

The closed-form approximated expression for the MSE related to our new proposed OWD clock skew estimator (for the Forward path) can be defined as:

EeF22JJ12σω12Tsyn21+1PFC+D(54)

where C, D and PF are defined in Eq. 51, 52 and 24 respectively.

Proof of Theorem 5

The MSE for the fGn/gfGn case is based on the MSE of the OWD clock skew estimator for the Forward path defined in Eq. 36. Based on the fact that 1 + αF ≈ 1, we can write Eq. 36 as:

EeF22JJ1Tsyn2i=1J1j=1Jik=1J1m=1JkEΩ1,jiΩ1,mkik+1Tsyn2EΩ1,j2iΩ1,m2kik2(55)

According to [4], we can write the first part in Eq. 55 as:

i=1J1j=1Jik=1J1m=1JkEΩ1,jiΩ1,mkik=σω12C+D(56)

where C and D are defined in Eq. 51, 52 respectively.

The calculation of the second expression in Eq. 55 is quite difficult to carry out for the fGn/gfGn case. Therefore, following [4] we can write:

i=1J1j=1Jik=1J1m=1JkEΩ1,jiΩ1,mkik+1Tsyn2EΩ1,j2iΩ1,m2kik2=σω12C1+1PF+D(57)

Now, by putting Eq. 57 into Eq. 55, we get Eq. 54 and this completes our proof.

5.2 Theorem 6

The closed-form approximated expression for the MSE related to our new proposed OWD clock skew estimator (for the Reverse path) can be defined as:

EeR22JJ12σω22Tsyn2C+D(58)

where C and D are defined in Eq. 51, 52.

Proof of Theorem 6

The MSE for the fGn/gfGn case is based on the MSE of the OWD clock skew estimator for the Reverse path defined in Eq. 48. Let as recall Eq. 48:

EeR22JJ1Tsyn2i=1J1j=1Jik=1J1m=1JkEΩ2,jiΩ2,mkik

We can write the summation part in Eq. 48 as was done in [4] as:

i=1J1j=1Jik=1J1m=1JkEΩ2,jiΩ2,mkik=σω22C+D(59)

Now, by putting Eq. 59 into Eq. 48, we get Eq. 58 and this completes our proof.

6 The Preferred Clock Skew Estimator for Each Scenario

In this paper we proposed two OWD clock skew estimators (Eqs 5, 11). Thus, we can consider now two OWD clock skew estimators and one TWD clock estimator proposed by [4]. Let us recall the three estimators.

At first, we recall the TWD clock skew estimator from [4]:

α̂=1JJ1i=1J1j=1JiT1,jiT2,ji+T4,jiT2,ji1(60)

The OWD clock skew estimator for the Forward path is given by Eq. 5:

α̂F=2JJ1i=1J1j=1JiT1,jiT2,ji1(61)

The OWD clock skew estimator for the Reverse path is given by Eq. 11:

α̂R=2JJ1i=1J1j=1JiT4,jiT2,ji1(62)

It would be very helpful for the system designer if he could know which of the above listed clock skew estimators (Eqs 6062) he should choose in order to achieve the best clock skew performance in the MSE point of view. In this section we will give the system designer guidelines (conditions) that will help him to choose wisely the best clock skew estimator in order to achieve the best clock skew performance from the MSE point of view.

Please note, in this section we define Z as:

Z=σω22σω12(63)

Thus we have:

a. when Z>1σω12<σω22,

b. when Z<1σω12>σω22,

c. when Z=1σω12=σω22.

In the following we have Theorem seven supplying us guidelines for choosing the preferable clock skew estimator from the above listed clock skew estimators (Eqs 6062) leading to the best clock skew performance from the MSE point of view for the white-Gaussian case. Theorem 8 supplies us guidelines for choosing the preferable clock skew estimator from the above listed clock skew estimators (Eqs 6062) leading to the best clock skew performance from the MSE point of view for the fGn/gfGn case.

6.1 Theorem 7

For the white-Gaussian process we have the following conditions:

Case a: For Z > 1:

If ZZ̃, then we use the OWD clock skew estimator in the Forward path (Eq. 61).

where

Z̃=31+BAσω12Tsyn2(64)

Otherwise, we use the TWD clock skew estimator (Eq. 60).

Case b: For Z < 1:

If ZZ̄, then we use the OWD clock skew estimator in the Reverse path (Eq. 62),

where

Z̄=131+BAσω12Tsyn2(65)

Otherwise, we use the TWD clock skew estimator (Eq. 60).

Case c: For Z = 1 (σω12=σω22=σ2):

If σ2σ̃2, then we use the OWD clock skew estimator in the Reverse path (Eq. 62),

where

σ̃2=2ABTsyn2(66)

Otherwise, we use the TWD clock skew estimator (Eq. 60).

Proof of Theorem 7

We rewrite the closed-form-approximated expression for the MSE related to the TWD clock skew estimator (Eq. 19), and the closed-form-approximated expressions for the MSE related to our new proposed OWD clock skew estimators (Eqs 23, 40) with the help of Z (Eq. 63).

The closed-form approximated expressions for the MSE related to the TWD clock skew estimator (Eq. 19) can be written as:

Ee21JJ12σω121+ZTsyn2A1+1P(67)

The closed-form approximated expression for the MSE related to the OWD clock skew estimator for the Forward path (Eq. 23) can be written as:

EeF22JJ12σω12Tsyn2A1+1PF(68)

The closed-form approximated expression for the MSE related to the OWD clock skew estimator for the Reverse path (Eq. 40) can be written as:

EeR22JJ12Zσω12Tsyn2A(69)

where A, B, P and PF are defined in Eqs 21, 22, 20 and 24 respectively.

In the following, we define MSEGT, MSEGF and MSEGR as the MSE of the TWD case (Eq. 67), OWD in the Forward path case (Eq. 68) and OWD in the Reverse path case (Eq. 69) respectively.

For Z > 1, we wish to find the value for Z where we have MSEGTMSEGF. Thus, we may write with the help of Eqs 20, 24:

1JJ1Tsyn2σω121+ZA+Bσω14Tsyn21JJ1Tsyn24σω12A+Bσω14Tsyn2(70)

where Eq. 70 can be written also as:

σω121+ZA+Bσω14Tsyn24σω12A+Bσω14Tsyn2(71)

After rearranging Eq. 71 we can write:

Zσω12A3σω12A+Bσω14Tsyn2(72)

We can divide Eq. 72 by Aσω12(Aσω12>0) and then we can write:

ZZ̃(73)

where Z̃ is defined in Eq. 64.

This completes our proof of Theorem 7, case a.

Now, we continue the proof of case b. For Z < 1, we wish to find the value for Z where we have MSEGTMSEGR. Thus, with the help of Eq. 20 we may write:

1JJ1Tsyn2σω121+ZA+Bσω14Tsyn21JJ1Tsyn24Zσω12A(74)

where Eq. 74 can be written also as:

σω121+ZA+Bσω14Tsyn24Zσω12A(75)

After rearranging Eq. 75 we can write:

σω12A+Bσω12Tsyn23Zσω12A(76)

We can divide Eq. 76 by 3Aσω12(3Aσω12>0) and then we can write:

ZZ̄(77)

where Z̄ is defined in Eq. 65.

This completes our proof of Theorem 7, case b.

Now we can continue the proof of case c of Theorem 7. For Z = 1, we defined that σω12=σω22=σ2. We wish to find the value for Z where we have MSEGTMSEGR (please note that for Z = 1: MSEGT<MSEGFj, since B has only positive values). Thus, with the help of Eq. 20 we can write:

1JJ1Tsyn22σ2A+Bσ4Tsyn21JJ1Tsyn24σ2A(78)

where Eq. 78 can be written also as:

2σ2A+Bσ4Tsyn24σ2A(79)

After rearranging Eq. 79 we can write:

σ2σ̃2(80)

where σ̃2 is defined in Eq. 66. Now, we have completed our proof of Theorem 7.

6.2 Theorem 8

For the fGn/gfGn process we have the following conditions:

Case a: For Z > 1:

If ZZ̃fGn/gfGn, then we use the OWD clock skew estimator in the Forward path (Eq. 61),

where

Z̃fGn/gfGn=31+CC+DBAσω12Tsyn2(81)

Otherwise, we use the TWD clock skew estimator (Eq. 60).

Case b: For Z < 1:

If ZZ̄fGn/gfGn, then we use the OWD clock skew estimator in the Reverse path (Eq. 62),

where

Z̄fGn/gfGn=131+CC+DBAσω12Tsyn2(82)

Otherwise, we use the TWD clock skew estimator (Eq. 60).

Case c: For Z = 1 (σω12=σω22=σ2):

If σ2σ̃fGn/gfGn2, then we use the OWD clock skew estimator in the Reverse path (Eq. 62),

where

σ̃fGn/gfGn2=2C+DCABTsyn2(83)

Otherwise, we use the TWD clock skew estimator (Eq. 60).

Proof of Theorem 8

We rewrite the closed-form-approximated expression for the MSE related to the TWD clock skew estimator (Eq. 50), and the closed-form-approximated expressions for the MSE related to our new proposed OWD clock skew estimators (Eqs 54, 58 with the help of Z (Eq. 63).

The closed-form approximated expressions for the MSE related to the TWD clock skew estimator (Eq. 50) can be written as:

Ee21JJ12σω121+ZTsyn2C1+1P+D(84)

The closed-form approximated expressions for the MSE related to the OWD clock skew estimator for the Forward path Eq. 54 can be written as:

EeF22JJ12σω12Tsyn2C1+1PF+D(85)

The closed-form approximated expressions for the MSE related to the OWD clock skew estimator for the Reverse path Eq. 58 can be written as:

EeR22JJ12Zσω12Tsyn2C+D(86)

where C, D, P and PF are defined in Eqs 51, 52, 20 and 24 respectively.

In the following, we define: MSEfGn/gfGnT, MSEfGn/gfGnF and MSEfGn/gfGnR as the MSE of the TWD case (Eq. 84), OWD in the Forward path case (Eq. 85) and OWD in the Reverse path case (Eq. 86) respectively.

For Z > 1, we wish to find the value for Z where we have MSEfGn/gfGnTMSEfGn/gfGnF. Thus, we may write:

1JJ1Tsyn2σω121+Z1+1PC+D1JJ1Tsyn24σω121+1PFC+D(87)

where Eq. 87 can be written also as:

1+Z1+1PC+D41+1PFC+D(88)

Based on the definition of P and PF in Eqs 20, 24 respectively, we can write:

P=AB1+ZTsyn2σω12,PF=ABTsyn2σω12P=PF1+Z(89)

Based on Eq. 89 we can write Eq. 88 as:

1+Z1+1PF1+ZC+D41+1PFC+D(90)

After rearranging Eq. 90 we can write:

Z31+1PFC+DC+D(91)

By putting the definition of PF Eq. 24 into Eq. 91 we can write:

Z3C+D+BCAσω12Tsyn2C+DZZ̃fGn/gfGn(92)

where Z̃fGn/gfGn is defined in Eq. 81.

This completes our proof of Theorem 8, case a.

Now we continue the proof of case b. For Z < 1, we wish to find the value for Z where we have MSEfGn/gfGnTMSEfGn/gfGnR. Thus, we may write:

1JJ1Tsyn2σω121+Z1+1PC+D1JJ1Tsyn24Zσω12C+D(93)

where Eq. 93 can be written also as:

1+Z1+1PC+D4ZC+D(94)

By using the definition of P in Eq. 20 into Eq. 95 we may write:

1+Z1+BAσω121+ZTsyn2C+D4ZC+D(95)

After rearranging Eq. 95 we can write:

Z13C+D+CBAσω12Tsyn2C+DZZ̄fGn/gfGn(96)

where Z̄fGn/gfGn is defined in Eq. 82.

This completes our proof of Theorem 8, case b.

Now we can continue the proof of case c of Theorem 8. For Z = 1, we defined that σω12=σω22=σ2. We wish to find the value for Z where we have MSEfGn/gfGnTMSEfGn/gfGnR. Note that for Z=1MSEfGn/gfGnT<MSEfGn/gfGnFj since, A, B and C have only positive values. Thus, we can write:

1JJ1Tsyn22σ2C1+1P+D1JJ1Tsyn24σ2C+D(97)

where Eq. 97 can be written also as:

2σ2C1+1P+D4σ2C+D(98)

By using the definition of P in Eq. 20, we may write Eq. 98 as:

2σ2C1+BAσ22Tsyn2+D4σ2C+D(99)

After rearranging Eq. 99 we can write:

σ2σ̃fGn/gfGn2(100)

where σ̃fGn/gfGn2 is defined in Eq. 83. Now, we have completed our proof of Theorem 8.

7 Simulation Results

In this section, we first start to test our guidelines (conditions) from Theorem 8, summarized in Table 1. Figures 2, 3 show the simulated clock skew performance (MSE) comparison between the OWD clock skew estimator for the Forward path (Eq. 61) with the TWD clock skew estimator proposed by Avraham and Pinchas [4] for the fGn case. Figures 46 show the simulated clock skew performance (MSE) comparison between the OWD clock skew estimator for the Reverse path (Eq. 62) with the TWD clock skew estimator proposed by Avraham and Pinchas [4] for the fGn case. Figure 7 shows the simulated clock skew performance (MSE) comparison between the OWD clock skew estimator for the Forward path (Eq. 61) with the TWD clock skew estimator proposed by Avraham and Pinchas [4] for the gfGn case. Figure 8 shows the simulated clock skew performance (MSE) comparison between the OWD clock skew estimator for the Reverse path (Eq. 62) with the TWD clock skew estimator proposed by Avraham and Pinchas [4] for the gfGn case. In Figures 2, 3 and Figure 7, the Forward PDV variance was set lower than the Reverse PDV variance (Z > 1). Now, according to test case a of Theorem 8, if ZZ̃fGn/gfGn we should choose the OWD clock skew estimator for the Forward path over the TWD clock skew estimator, else we should choose the TWD clock skew estimator. Namely, if ZZ̃fGn/gfGn, a better clock skew performance from the MSE point of view can be obtained with the OWD clock skew estimator for the Forward path compared with the TWD clock skew estimator proposed by Avraham and Pinchas [4]. In Figure 2 and Figure 7, we have ZZ̃fGn/gfGn while in Figure 3 we have Z<Z̃fGn/gfGn. Indeed we can see that in Figure 2 and Figure 7 a lower MSE is obtained with the OWD clock skew estimator for the Forward path compared with the TWD clock skew estimator proposed by Avraham and Pinchas [4] which clearly demonstrates that the OWD clock skew estimator for the Forward path should be chosen for the clock skew estimation task. In Figure 3 a lower MSE is obtained with the TWD clock skew estimator compared with the OWD clock skew estimator for the Forward path which means that the TWD clock skew estimator should be chosen for the clock skew estimation task. Thus, we may say that according to Figures 2, 3 and Figure 7, test case a of Theorem 8 works correctly. In Figures 4, 5 and Figure 8, the Reverse PDV variance was set lower than the Forward PDV variance (Z < 1). Now, according to test case b of Theorem 8, if ZZ̄fGn/gfGn we should choose the OWD clock skew estimator for the Reverse path over the TWD clock skew estimator, else we should choose the TWD clock skew estimator. Namely, if ZZ̄fGn/gfGn a better clock skew performance from the MSE point of view can be obtained with the OWD clock skew estimator for the Reverse path compared with the TWD clock skew estimator proposed by Avraham and Pinchas [4]. In Figure 4 and Figure 8, we have ZZ̄fGn/gfGn while in Figure 5 we have Z>Z̄fGn/gfGn. Indeed we can see that in Figure 4 and Figure 8 a lower MSE is obtained with the OWD clock skew estimator for the Reverse path compared with the TWD clock skew estimator proposed by Avraham and Pinchas [4] which clearly demonstrates that the OWD clock skew estimator for the Reverse path should be chosen for the clock skew estimation task. In Figure 5 a lower MSE is obtained with the TWD clock skew estimator compared with the OWD clock skew estimator for the Reverse path which means that the TWD clock skew estimator should be chosen for the clock skew estimation task. Thus, we may say that according to Figures 4, 5 and Figure 8, test case b of Theorem 8 works correctly. In Figure 6, the Reverse PDV variance was set equal to the Forward PDV variance (Z = 1). Now, according to test case c of Theorem 8, if σ2σ̃fGn/gfGn2 we should choose the OWD clock skew estimator for the Reverse path over the TWD clock skew estimator, else we should choose the TWD clock skew estimator. Namely, if σ2σ̃fGn/gfGn2 a better clock skew performance from the MSE point of view can be obtained with the OWD clock skew estimator for the Reverse path compared with the TWD clock skew estimator proposed by Avraham and Pinchas [4]. According to Figure 6, up to approximately J = 80 we have that σ2<σ̃fGn/gfGn2. Thus, up to approximately J = 80 we see according to Figure 6 that a lower MSE is obtained with the TWD clock skew estimator proposed by Avraham and Pinchas [4] compared with the OWD clock skew estimator for the Reverse path. But, for J > 80, σ2>σ̃fGn/gfGn2 thus a lower MSE is obtained with the OWD clock skew estimator for the Reverse path compared with the TWD clock skew estimator proposed by Avraham and Pinchas [4]. Figure 6 clearly demonstrates the effectiveness of test case c of Theorem 8. According to Figures 28, our guidelines (conditions) from Theorem 8 indeed may help the system designer to choose wisely the preferred approach among Eqs 6062 that should be applied for the clock skew estimation task in order to get the best clock skew performance from the MSE point of view. According to Figures 28 we can also see the advantage of having two OWD clock skew estimators (one for the Forward path and one associated with the Reverse path) that can supply better clock skew performance from the MSE point of view compared to our recently proposed TWD clock skew estimator Avraham and Pinchas [4], when complying with our proposed guidelines (conditions) from Theorem 8.

FIGURE 2
www.frontiersin.org

FIGURE 2. Test case a of Theorem 8. Performance (MSE) comparison between the OWD clock skew estimator in the Forward path (Eq. 61) and the TWD clock skew estimator (Eq. 60). The PDV is an fGn process. α = 50ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec), H = 0.7, dms = 5 ms, dsm = 5.5 ms, σω12=4e8[sec2], σω22=6.4e7[sec2], Z = 16, Z̃fGn/gfGn(J=500)=3.233 (for J < 500, Z̃fGn/gfGn<3.233). The results were obtained for 100 Monte-Carlo trails.

FIGURE 3
www.frontiersin.org

FIGURE 3. Test case a of Theorem 8. Performance (MSE) comparison between the OWD clock skew estimator in the Forward path (Eq. 61) and the TWD clock skew estimator (Eq. 60). The PDV is an fGn process. α = 50ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec), H = 0.7, dms = 5 ms, dsm = 5.5 ms, σω12=1e8[sec2], σω22=1.44e8[sec2], Z = 1.44, Z̃fGn/gfGn(J=500)=3.058 (for J < 500, Z̃fGn/gfGn<3.058, Z̃fGn/gfGn(J=10)=3.004). The results were obtained for 100 Monte-Carlo trails.

FIGURE 4
www.frontiersin.org

FIGURE 4. Test case b of Theorem 8. Performance (MSE) comparison between the OWD clock skew estimator in the Reverse path (Eq. 62) and the TWD clock skew estimator (Eq. 60). The PDV is an fGn process. α = 50ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec), H = 0.7, dms = 5 ms, dsm = 5.5 ms, σω12=6.4e7[sec2], σω22=4e8[sec2], Z = 0.0625, Z̄fGn/gfGn(J=500)=0.748 (for J < 500, Z̄fGn/gfGn<0.748, Z̄fGn/gfGn(J=10)=0.36). The results were obtained for 100 Monte-Carlo trails.

FIGURE 5
www.frontiersin.org

FIGURE 5. Test case b of Theorem 8. Performance (MSE) comparison between the OWD clock skew estimator in the Reverse path (Eq. 62) and the TWD clock skew estimator (Eq. 60). The PDV is an fGn process. α = 50ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec), H = 0.7, dms = 5 ms, dsm = 5.5 ms, σω12=1.44e8[sec2], σω22=1e8[sec2], Z = 0.69, Z̄fGn/gfGn(J=500)=0.3427 (for J < 500, Z̄fGn/gfGn<0.3427). The results were obtained for 100 Monte-Carlo trails.

FIGURE 6
www.frontiersin.org

FIGURE 6. Test case c of Theorem 8. Performance (MSE) comparison between the OWD clock skew estimator in the Reverse path (Eq. 62) and the TWD clock skew estimator (Eq. 60). The PDV is an fGn process. α = 50ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec), H = 0.6, dms = 2.5 ms, dsm = 3 ms, σω12=σω22=4e6[sec2], Z = 1, σ̃fGn/gfGn2(J=500)=1.03e6 (for J < 500: σ̃fGn/gfGn2>1.03e6, σ̃fGn/gfGn2(J=100)=3e6, σ̃fGn/gfGn2(J=60)=4.3e6, σ̃fGn/gfGn2(J=10)=1.72e5). The results were obtained for 100 Monte-Carlo trails.

FIGURE 7
www.frontiersin.org

FIGURE 7. Test case a of Theorem 8. Performance (MSE) comparison between the OWD clock skew estimator in the Forward path (Eq. 61) and the TWD clock skew estimator (Eq. 60). The PDV is an gfGn process. α = 50ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec), H = 0.95, a = 0.08, dms = 5 ms, dsm = 5.5 ms, σω12=1e8[sec2], σω22=9e8[sec2], Z = 9, Z̃fGn/gfGn(J=500)=3.02 (for J < 500, Z̃fGn/gfGn<3.02). The results were obtained for 100 Monte-Carlo trails.

FIGURE 8
www.frontiersin.org

FIGURE 8. Test case b of Theorem 8. Performance (MSE) comparison between the OWD clock skew estimator in the Reverse path (Eq. 62) and the TWD clock skew estimator (Eq. 60). The PDV is an gfGn process. α = 50ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec), H = 0.95, a = 0.08, dms = 5 ms, dsm = 5.5 ms, σω12=9e8[sec2], σω22=1e8[sec2], Z = 0.111, Z̄fGn/gfGn(J=500)=0.356 (for J < 500, Z̄fGn/gfGn<0.356, Z̄fGn/gfGn(J=10)=0.337). The results were obtained for 100 Monte-Carlo trails.

In Figures 912 we compared the clock skew performance (MSE) of our new proposed OWD clock skew estimators (Eqs 61, 62) with the clock skew performance (MSE) that is obtained from three clock skew algorithms: a.) TWD clock skew estimator, named as the ML-like estimator (MLLE) proposed by Noh et al. [5], b.) OWD clock skew estimator, named as the maximum likelihood estimator proposed by Levy and Pinchas [7], c.) OWD clock skew estimator, named as the Kalman estimator proposed by Chaloupka et al. [6]. According to Noh et al. [5] we have:

β̂=T2,1J12+T3,1J12T1,1J1T2,1J1+T3,1J1T4,1J11(101)

where

β̂=1α̂+11(102)

T2,1 (J − 1) = t2 [J] − t2 [1], T1,j(i), T2,j(i), T3,j(i) and T4,j(i) are defined in Eqs 4, 13.

FIGURE 9
www.frontiersin.org

FIGURE 9. Performance (MSE) comparison between the OWD clock skew estimator for the Forward path (Eq. 61), likelihood clock skew estimator proposed by Noh et al. [5] and maximum likelihood clock skew estimator proposed by Levy and Pinchas [7]. The PDV is an gfGn process. α = 50ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec), H = 0.95, a = 0.08, dms = 5.5 ms, dsm = 5 ms, σω12=4e8[sec2], σω22=1.6e7[sec2]. The results were obtained for 100 Monte-Carlo trails.

FIGURE 10
www.frontiersin.org

FIGURE 10. Performance (MSE) comparison between the OWD clock skew estimator for the Reverse path (Eq. 62), likelihood clock skew estimator proposed by Noh et al. [5] and maximum likelihood clock skew estimator proposed by Levy and Pinchas [7]. The PDV is an fGn process. α = 50ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec), H = 0.7, dms = 5.5 ms, dsm = 5 ms, σω12=1.6e7[sec2], σω22=4e8[sec2]. The results were obtained for 100 Monte-Carlo trails.

FIGURE 11
www.frontiersin.org

FIGURE 11. Performance (MSE) comparison between the OWD clock skew estimator for the Forward path (Eq. 61), likelihood clock skew estimator proposed by Noh et al. [5] and Kalman clock skew estimator proposed by Chaloupka et al. [6]. The PDV is an gfGn process. α = 50ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec), H = 0.95, a = 0.08, dms = 5.5 ms, dsm = 5 ms, σω12=4e8[sec2], σω22=1.3e7[sec2], L = 100, QKAL = 0, δσ = δμ = 1e − 4, μ̂[1]=0. The results were obtained for 100 Monte-Carlo trails.

FIGURE 12
www.frontiersin.org

FIGURE 12. Performance (MSE) comparison between the OWD clock skew estimator for the Reverse path (Eq. 62), likelihood clock skew estimator proposed by Noh et al. [5] and Kalman clock skew estimator proposed by Chaloupka et al. [6]. The PDV is an fGn process. α = 50ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec), H = 0.7, dms = 5.5 ms, dsm = 5 ms, σω12=3.6e7[sec2], σω22=4e8[sec2], L = 100, QKAL = 0, δσ = δμ = 1e − 4, μ̂[1]=0. The results were obtained for 100 Monte-Carlo trails.

According to Levy and Pinchas [7] we have:

ε̂=2i=1Jj=1Jk=1mini,j1AmaxJ,i,j,k,HTs1.iTs2.iTs1.jTs2.ji=1Jj=1Jk=1mini,j1AmaxJ,i,j,k,HTm.jTs1.iTs2.i+Tm.iTs1.jTs2.j11(103)

where Amax (J, i, j, k, H) is:

AmaxJ,i,j,k,H=ΓJΓH+0.5ΓJH+0.52ΓikH+0.5ΓJH+0.5i+kΓjkH+0.5ΓJH+0.5j+kΓJi+kΓJj+kΓikΓjk11ik1jk1Ji+k1Jj+k(104)

and ε̂ is:

ε̂=1α̂+11(105)

Γ(.) denotes the Gamma function, △ denotes the difference between two consecutive timestamps. Tm. i is the timestamp in the ith period when the Master sends the Sync message. Ts1. i is the timestamp in the ith period when the dual-Slave receives the Sync message. Ts2. i is the timestamp in the ith period when the Slave receives the Sync message.

The Kalman estimator from Chaloupka et al. [6] depends on a predefined parameter L that defines the sliding window’s length in the algorithm. The L parameter impacts the performance (MSE). As we increase L, it reduces the MSE. However, L also depends on the total number of sync periods, which we set for the frequency synchronization task as 500. Therefore, L must be smaller than 500.

According to Chaloupka et al. [6] the Kalman’s measurement equation is:

T1,jLT2,jL=T2,jLαj+Ω1,jL(106)

The Kalman’s state equation is:

α̂j+1=α̂j+uj.(107)

where the variance of u[j] is QKAL. The estimate of the noise measurement variance is given by Chaloupka et al. [6]:

R̂j=1δσR̂j1+δσxjμ̂j2(108)

where

μ̂j=1δμμ̂j1+δμxj;xj=T1,jLT2,jL(109)

δμ and δσ are smoothing factors which are between zero and one.

According to Figures 9, 10, our new proposed OWD clock skew estimator for the Forward path (Eq. 61) (Figure 9) or for the Reverse path (Eq. 62) (Figure 10) achieves a lower MSE compared to the clock skew estimators proposed by Noh et al. [5] and Levy and Pinchas [7]. Please note that for the simulation results presented in Figure 10, the PDV for the Reverse path was set lower than the PDV for the Forward path. Since the OWD clock skew estimator proposed by Levy and Pinchas [7] is based on the Forward path only, the clock skew accuracy with this estimator Levy and Pinchas [7] is indeed decreased (Figure 10).

According to Figures 11, 12, our new proposed OWD clock skew estimator for the Forward path (Eq. 61) (Figure 11) or for the Reverse path (Eq. 62) (Figure 12) achieves a lower MSE compared to the clock skew estimators proposed by Noh et al. [5] and Chaloupka et al. [6]. Please note that for the simulation results presented in Figure 12, the PDV for the Reverse path was set lower than the PDV for the Forward path. Since the OWD clock skew estimator proposed by Chaloupka et al. [6] is based on the Forward path only, the clock skew accuracy with this estimator Chaloupka et al. [6] is indeed decreased (Figure 12).

Next we tested our new proposed OWD clock skew estimators’ performances (MSE) for the Forward and Reverse paths (Eqs 61, 62) with our closed-form-approximated expressions for the MSE for the LRD case (Eqs 54, 58) for the Forward and Reverse path, respectively. Case 1 in Figures 13, 14 presents the clock skew performance of our new proposed OWD clock skew estimator for the Forward path (Eq. 61) compared with our closed-form-approximated expression for the MSE in Eq. 54. Case 2 in Figures 13, 14 presents the clock skew performance of our new proposed OWD clock skew estimator for the Reverse path (Eq. 62) compared with our closed-form-approximated expression for the MSE in Eq. 58. According to Figures 13, 14 it can be clearly seen that our new closed-form-approximated expressions for the MSE in Eqs 54, 58 supply very close results to the simulated one.

FIGURE 13
www.frontiersin.org

FIGURE 13. case 1: Performance comparison for the fGn case, between our new proposed clock skew estimator for the Forward path (Eq. 61) with the performance results for our new proposed expression for the MSE (Eq. 54). σω1=0.8e3[sec]. Case 2: Performance comparison for the fGn case, between our new proposed clock skew estimator for the Reverse path (Eq. 62) with the performance results for our new proposed expression for the MSE (Eq. 58). σω2=0.1e3[sec]. For both cases: α = 50ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec), H = 0.6, dms = 5.5 ms, dsm = 5 ms. The results were obtained for 100 Monte-Carlo trails.

FIGURE 14
www.frontiersin.org

FIGURE 14. case 1: Performance comparison for the gfGn case, between our new proposed clock skew estimator for the Forward path (Eq. 61) with the performance results for our new proposed expression for the MSE (Eq. 54). σω1=0.8e3[sec]. Case 2: Performance comparison for the gfGn case, between our new proposed clock skew estimator for the Reverse path (Eq. 62) with the performance results for our new proposed expression for the MSE (Eq. 58). σω2=0.1e3[sec]. For both cases: α = 50ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec), H = 0.95, a = 0.95, dms = 5.5 ms, dsm = 5 ms. The results were obtained for 100 Monte-Carlo trails.

8 Conclusion

In this paper we derived two novels OWD clock skew estimators for the Forward and Reverse paths applicable for white-Gaussian process and for the fGn/gfGn environment. Those estimators do not depend on the unknown fixed paths nor on the clock offset between the Master and Slave. In addition, we derived also closed-form-approximated expressions for the clock skew performance (MSE) for the new proposed OWD clock skew estimators for the Forward and Reverse paths. In order to help the system designer to choose the right clock skew estimator that may get the best clock skew performance from the MSE point of view, some guidelines (conditions) were derived, helping choosing the right clock skew estimator wisely. Simulation results has confirmed that our new OWD clock skew estimators indeed achieve better clock skew performance from the MSE point of view compared to the literature known clock skew estimators. Simulation results have also confirmed that our closed-form-approximated expressions for the MSE related to our new proposed OWD Forward and Reverse estimators are indeed efficient.

Data Availability Statement

The original contributions presented in the study are included in the article/Supplementary Material, further inquiries can be directed to the corresponding author.

Author Contributions

All authors listed have made a substantial, direct, and intellectual contribution to the work and approved it for publication.

Conflict of Interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Publisher’s Note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors, and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

1.[Dataset] Arnold D. IEEE 1588-2019-IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems (2019). Available from: https://standards.ieee.org/standard/1588-2019.html (Accessed June 17, 2021).

2. K.Karthik A, S.Blum R. Estimation Theory Based Robust Phase Offset Estimation in the Presence of Delay Attacks (2016). Available from: https://arxiv.org/pdf/1611.05117.pdf (Accessed August 10, 2021).

3. Guruswamy A, Blum RS, Kishore S, Bordogna M. On the Optimum Design of L-Estimators for Phase Offset Estimation in IEEE 1588. IEEE Trans Commun (2015) 63:5101–15. doi:10.1109/TCOMM.2015.2493534

4. Avraham Y, Pinchas M. A Novel Clock Skew Estimator and its Performance for the IEEE 1588v2 (PTP) Case in Fractional Gaussian Noise/Generalized Fractional Gaussian Noise Environment. Front Phys (2021) 9:1–21. doi:10.3389/fphy.2021.796811

5. Noh K-L, Chaudhari QM, Serpedin E, Suter BW. Novel Clock Phase Offset and Skew Estimation Using Two-Way Timing Message Exchanges for Wireless Sensor Networks. IEEE Trans Commun (2007) 55:766–77. doi:10.1109/TCOMM.2007.894102

6. Chaloupka Z, Alsindi N, Aweya J. Clock Skew Estimation Using Kalman Filter and IEEE 1588v2 PTP for Telecom Networks. IEEE Commun Lett (2015) 19:1181–4. doi:10.1109/LCOMM.2015.2427158

7. Levy C, Pinchas M. Maximum Likelihood Estimation of Clock Skew in IEEE 1588 with Fractional Gaussian Noise. Math Probl Eng (2015) 2015:1. doi:10.1155/2015/174289

8. Karthik AK, Blum RS. Robust Clock Skew and Offset Estimation for IEEE 1588 in the Presence of Unexpected Deterministic Path Delay Asymmetries. IEEE Trans Commun (2020) 68:5102–19. doi:10.1109/TCOMM.2020.2991212

9. Karthik AK, Blum RS. Robust Phase Offset Estimation for IEEE 1588 PTP in Electrical Grid Networks. In: 2018 IEEE Power & Energy Society General Meeting (2018). doi:10.1109/PESGM.2018.8586488

10. Karthik AK, Blum RS. Optimum Full Information, Unlimited Complexity, Invariant, and Minimax Clock Skew and Offset Estimators for IEEE 1588. IEEE Trans Commun (2019) 67:3624–37. doi:10.1109/TCOMM.2019.2900317

11. Li M, Zhao W. On Bandlimitedness and Lag-Limitedness of Fractional Gaussian Noise. Physica A: Stat Mech its Appl (2013) 392:1955–61. doi:10.1016/j.physa.2012.12.035

12. Cappe O, Moulines E, Pesquet J-C, Petropulu AP, Xueshi Y. Long-range Dependence and Heavy-Tail Modeling for Teletraffic Data. IEEE Signal Process Mag (2002) 19:14–27. doi:10.1109/79.998079

13. Li M. Generalized Fractional Gaussian Noise and its Application to Traffic Modeling. Physica A: Stat Mech its Appl (2021) 579:126138. doi:10.1016/j.physa.2021.126138

Keywords: PTP, PDV, LRD, fGn, gfGn, TWD, OWD, IEEE1588V2

Citation: Avraham Y and Pinchas M (2022) Two Novel One-Way Delay Clock Skew Estimators and Their Performances for the Fractional Gaussian Noise/Generalized Fractional Gaussian Noise Environment Applicable for the IEEE 1588v2 (PTP) Case. Front. Phys. 10:867861. doi: 10.3389/fphy.2022.867861

Received: 01 February 2022; Accepted: 14 February 2022;
Published: 22 March 2022.

Edited by:

Ming Li, Zhejiang University, China

Reviewed by:

Hu Shaoxiang, University of Electronic Science and Technology of China, China
Nan Mu, Michigan Technological University, United States

Copyright © 2022 Avraham and Pinchas. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Monika Pinchas, monika.pinchas@gmail.com

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.