Skip to main content

ORIGINAL RESEARCH article

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

A Novel Clock Skew Estimator and Its Performance for the IEEE 1588v2 (PTP) Case in Fractional Gaussian Noise/Generalized Fractional Gaussian Noise Environment

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. Fractional Gaussian noise (fGn) or generalized fraction Gaussian noise (gfGn) belong to the LRD process. This paper proposes a novel clock skew estimator for the IEEE1588v2 applicable for the white-Gaussian, fGn, or gfGn environment. The clock skew estimator does not depend on the unknown asymmetry between the fixed delays in the forward and reverse paths nor on the clock offset between the Master and Slave. In addition, we supply a closed-form-approximated expression for the mean square error (MSE) related to our new proposed clock skew estimator. This expression is a function of the Hurst exponent H, as a function of the parameter a for the gfGn case, as a function of the total sent Sync messages, as a function of the Sync period, and as a function of the PDV variances of the forward and reverse paths. Simulation results confirm that our closed-form-approximated expression for the MSE indeed supplies the performance of our new proposed clock skew estimator efficiently for various values of the Hurst exponent, for the parameter a in gfGn case, for different Sync periods, for various values for the number of Sync periods and for various values for the PDV variances of the forward and reverse paths. Simulation results also show the advantage in the performance of our new proposed clock skew estimator compared to the literature known ML-like estimator (MLLE) that maximizes the likelihood function obtained based on a reduced subset of observations (the first and last timing stamps). This paper also presents designing graphs for the system designer that show the number of the Sync periods needed to get the required clock skew performance (MSE = 10–12). Thus, the system designer can approximately know in advance the total delay or the time the system has to wait until getting the required system’s performance from the MSE point of view.

1 Introduction

Clock synchronization is an essential process in computer networks. This process has to achieve frequency (clock skew) and time (offset or phase) synchronization to ensure that all the components function accurately. There are three significant protocols for time and frequency distribution over the Network: global positioning system (GPS), network time protocol (NTP), and Precision Time Protocol (PTP) Pinchas [1]; Levy and Pinchas [2]; Karthik and Blum [3]. GPS offers frequency and time synchronization accuracy in the sub-microsecond range Levy and Pinchas [2]. However, it requires expensive equipment and routine maintenance Guruswamy et al. [4]. Furthermore, we have a limitation in placing the equipment that communicates with the satellites in certain places Shan et al. [5]; Karthik and Blum [3]. According to Vyas et al. [6]; Peng et al. [7] the GPS also suffers from a weak indoor GPS signal. The NTP is not designed for local area networks (LANs) and has slow response and software clock implementations Levy and Pinchas [2]. Therefore, it can not achieve accurate results compared to the PTP protocol Pinchas [1]. The PTP is defined by the standard IEEE 1588v2 Arnold [8]. It requires minimal Network, computing, and hardware resources Fubin et al. [9]. According to Arnold [8], the PTP is based on a two-way message exchange scheme between the Master and the Slave. By using the two-way message exchange, frequency and time synchronization can be approximately estimated by applying some assumptions. The synchronous Ethernet (SyncE) is a protocol defined by the ITU ITU-T Recommendation [10,11]. It distributes a reference timing signal, where this signal can be extracted, processed, and frequency can be recovered from this signal by the Ethernet equipment clock (EEC) ITU-T Recommendation [10,11]. It should be pointed out that according to Levy and Pinchas [2], the EEC is not available in every system. Generally, the GPS or the SyncE are applied for frequency synchronization, where the PTP protocol and the GPS can be also applied for time or frequency synchronization as well unlike SyncE. The use of PTP for time synchronization is an important step for operations such as managing, securing, planning, and debugging when it is needed to determine the time that events happen Pinchas [1]. The use of PTP for time and frequency synchronization is required in electrical grid networks, cellular base station synchronization, industrial control, communication in financial markets Guruswamy et al. [4]; Karthik and Blum [12] and in Industrial Internet of things (IIoT) Puttnies et al. [13]. The PTP has three different synchronization issues: a.) phase synchronization only, where the PTP protocol is applied for estimating the constant offset. In this scenario, frequency synchronization already exists between the Master and the Slave. b.) Frequency synchronization only, where the PTP is applied for this purpose, while the time (offset) synchronization is not needed here. c.) Time and frequency synchronization is carried out with the PTP protocol. Please note that the offset between the Master and the Slave increases when no frequency synchronization exists between the Master and the Slave.

The PTP uses hardware timestamps traveling between the Master and the Slave nodes Arnold [8], where the path is through several switches and routers. The traveling time in those components determines the duration of the delay in this path. According to Karthik and Blum [12,14,15]; Guruswamy et al. [16] there are two types of delay: a.) the fixed delay, a deterministic propagation delay along the network path, and b.) the random delay, also named as PDV. The PDV is defined as a random variable due to the routers, or the switches behavior ITU-T Recommendation [11]. As mentioned in Karthik and Blum [12] the primary source of the PDV is the output queuing delay, caused when a message arrives at a switch or router and has to wait in a queue due to other traffic that blocked the exit port. The PDV has a major impact on the accuracy obtained with the PTP Sathis Kumar and Kemparaj [17]. Theoretically, PTP can achieve precision of the order of nanoseconds, but, in practice, the PDV causes lower accuracy Puttnies et al. [13]. The queuing delay depends on the load in the network Levy and Pinchas [2]. As the load in the network increases, the PDV may increase accordingly, meaning a higher load may lead to a lower synchronization (time and frequency) accuracy Pinchas [1]. In order to estimate the offset or the clock skew in that scenario, the PTP usually needs more message exchanges between the Master and the Slave, as will be also seen in the simulation results.

The presence of the fixed delay and the PDV cause a problem in estimating the clock skew (frequency) and the offset (time). Due to the behavior of the random delay (PDV), this problem is modeled as a statistical estimation problem Guruswamy et al. [4]. This estimation task is an open issue because we have more unknown variables than number of equations. In order to overcome this problem, the symmetric path between the Master and the Slave is assumed in some algorithms (please refer to Table 1). However, the assumption of a symmetric path may lead to an inaccuracy in the clock skew and offset estimation task, since in practice, this assumption is not valid.

TABLE 1
www.frontiersin.org

TABLE 1. Clock skew estimators.

According to Mizrahi [18]; Mizrahi and Moses [19], a correlation exsits between network latency measurements taken at adjacent times. Therefore, the network latency can not be characterized as white noise. In Li and Limb [20]; Peng et al. [21]; Jusak and Harris [22] the PDV is characterized as a Long-Range Dependence (LRD) process. This process can be modeled as a fractional Gaussian noise (fGn) Li and Zhao [23]; Pinchas [1]; Levy and Pinchas [2]; Paxson [24]; Ledesma and Liu [25] or as a generalized fractional Gaussian noise (gfGn) Li [26] (where fGn is a special case of gfGn). Those models (fGn, gfGn) are with Hurst exponent in the range of 0.5 ≤ H < 1, where for H = 0.5 we have the white Gaussian noise. It should be pointed out that we have also the modified multifractional Gaussian noise (mmfGn) Li [27] and the multi-fractional generalized Cauchy process Li [28] for representing a LRD process. But, in this paper we focus on the fGn/gfGn case. The traffic model has a significant impact on the estimation accuracy. Therefore, network traffic models such as the Gaussian or Exponential models may not accurately describe a real network traffic.

On one hand, the PTP is applied for the offset synchronization task only as is done in Pinchas [1], Mizrahi [18,29], Karthik and Blum [14]; Guruswamy et al. [4]; Anand Guruswamy et al. [30]. On the other hand, we may find other algorithms estimating the clock skew and the offset as is done in Levy and Pinchas [2]; Chin and Chen [31], Puttnies et al. [13], Chaudhari et al. [32]; Li and Jeske [33], Noh et al. [34], Guruswamy et al. [4]; Karthik and Blum [12,14,15], Giorgi and Narduzzi [35]. In addition, we may find in the literature algorithms that estimate only the clock skew as is done in Shan et al. [5]; Chaloupka et al. [36]. In this paper, we focus on the clock skew algorithms. In the literature, we can find several approaches estimating the clock skew: 1) The Maximum Likelihood (ML) estimator Levy and Pinchas [2], Karthik and Blum [12]; Guruswamy et al. [4], Chaudhari et al. [32]; Li and Jeske [33]; Noh et al. [34]; Karthik and Blum [11,14]. 2) The Linear Programming estimator Puttnies et al. [13]. 3) The Kalman Filter (KF) estimator Chaloupka et al. [36]; Shan et al. [5]; Giorgi and Narduzzi [35]. Please note that each algorithm used different assumptions, which may also lead to inaccuracy of the clock skew estimator. The authors in Puttnies et al. [13] presented a linear programming estimator that can decrease the influence of the PDV on the synchronization accuracy. However, they assumed that the PDV is Gaussian and that the fixed delay is symmetric between the forward (Master to Slave) and the reverse (Slave to Master) paths. In Chaudhari et al. [32]; Li and Jeske [33] the authors presented an ML estimator where an Exponential model was applied describing the PDV. In addition, they assumed the symmetric path assumption between the forward and reverse paths. In Noh et al. [34] the author suggested first an ML estimator for estimating the clock skew by using the Gaussian and Exponential model for the PDV case. The fixed delay was assumed to be known in this algorithm, which is often an unknown parameter. Therefore, the author presented another algorithm that does not depend on the knowledge of the fixed delay. Still, these algorithms presented in Noh et al. [34] are suitable only for the Gaussian or for the Exponential case. In Levy and Pinchas [2] the authors proposed an ML estimator for estimating the clock skew and the offset in the presence of asymmetric paths and where the PDV was modeled as fGn. This method Levy and Pinchas [2] is based on the dual slave clocks in a slave presented by Chin and Chen [31]. However, Kim [37] demonstrated that the algorithm in Chin and Chen [31] is unusable in practical cases. In Giorgi and Narduzzi [35] the authors presented KF equations with symmetrical paths assumption. The measurement uncertainty in Kalman’s equations gives the solution to the asymmetric forward and the reverse paths. According to Giorgi and Narduzzi [35], the uncertainty was taken in a range of 0.1–100 micro seconds. However, in practice, the asymmetry between the paths can be greater than the given range, so that the clock skew simulation results may be less accurate for that scenario. In addition, this algorithm Giorgi and Narduzzi [35] applies the Gaussian model for the PDV. In Chaloupka et al. [36] the authors used the One Way Mode (OWM) to avoid the asymmetric path problem. Based on simulation results demonstrated in Chaloupka et al. [36], the clock skew estimator achieves relative accurate results only after we wait for a relative long time which in practical cases we can not always afford. The authors in Shan et al. [5] applied KF combined with Sliding Mode Controller (SMC) in order to get better accuracy. Also here, the algorithm assumes symmetrical paths and a Gaussian model for describing the PDV. In Karthik and Blum [12,15]; Guruswamy et al. [4] the authors presented an innovative estimator for the clock skew and for the offset between the Master and the Slave. In Guruswamy et al. [4] the authors presented first their joint estimator, the MINIMAX algorithm, that minimizes the maximum mean squared error of all the unknown parameters. This algorithm assumes that the fixed delays from the Master to Slave and Slave to Master are known, or at least, the difference between them is known. In Karthik and Blum [15] the authors assumed complete knowledge of the statistical information describing the PDV. Recently Karthik and Blum [12], an algorithm was proposed for estimating both the offset and the clock skew in the presence of unknown asymmetric paths, named as the Space Alternating Generalized Expectation-Maximization (SAGE) algorithm. This algorithm assumed a Gaussian Mixture Model (GMM) for the PDV. In estimating the clock skew and the offset according to Karthik and Blum [12], the assumption of having more than only one Master-Slave path was applied (assumption of having multiple Masters). In addition, half of the paths have to be symmetric. Please note that this method Karthik and Blum [12] may be overqualified for applications requiring only clock skew estimation, since Karthik and Blum [12] needs the calculation of the offset estimator for carrying out the clock skew estimator. Thus, the offset estimator can not be shut down when calculating the clock skew estimator. The authors in Karthik and Blum [12] also presented an expression for the Cramer-Rao lower bound (CRLB). This expression (CRLB) is based on the knowledge of which of the multiple masters to the slave paths are considered as asymmetric (where the fixed delays in the Master-Slave and Slave-Master are asymmetric) and on the knowledge of the probability density function (PDF) of the random queuing delays of those paths. Please refer to Table 1 that summarizes the different clock skew algorithms (described earlier in this section), with their assumptions.

In this paper, we propose a novel clock skew estimator based on PTP in an fGn/gfGn environment with Hurst exponent in the range of 0.5 ≤ H < 1 that does not depend on the unknown asymmetry between the fixed path delays in the forward and reverse directions nor on the clock offset between the Master and Slave. We supply a closed-form-approximated expression for the performance (MSE) related to our new proposed clock skew estimator. This closed-form-approximated expression is a function of the Hurst exponent H, as a function of the parameter a for gfGn, as a function of the number of total PTP messages exchanges used in the system for synchronization, as a function of the period between the messages and as a function of the PDV variances in the forward and reverse directions. In addition, we supply designing graphs for the system designer that show the number of PTP messages exchanges needed in the network to get the required clock skew performance as a function of the network parameters (Hurst exponent, parameter a in gfGn and variances of the forward and reverse directions PDV), for the rates of PTP messages exchanges of 64 packets/sec, 16 packets/sec and 8 packets/sec. Simulation results confirm that our closed-form-approximated expression for the MSE related to our new proposed clock skew estimator indeed supplies efficiently the performance of our new proposed estimator for various values of the Hurst exponent, for the parameter a in gfGn, for different periods between the messages, for various values for the number of PTP messages exchanges and for various values for the variances of the PDV in the forward and reverse directions. Simulation results also show the advantage in performance of our new proposed clock skew estimator for various values of the Hurst exponent compared to the literature known ML-like estimator (MLLE) Noh et al. [34] that maximizes the likelihood function obtained based on a reduced subset of observations (the first and last timing stamps). In addition, simulation results will also show the advantage in performance of our new proposed clock skew estimator compared to the maximum likelihood clock skew estimator proposed by Levy and Pinchas [2] and compared to the Kalman clock skew estimator given by Chaloupka et al. [36].

The paper is organized as follows. In Section 2, we briefly introduce the system under consideration and the assumptions we applied for our algorithm. Section 3 proposes the new clock skew estimator and the closed-form approximated expression for the MSE related to our new clock skew estimator. In Section 4, we propose some designing graphs while in Section 5, we present simulation results. Section 6, is our conclusion.

2 System Description

The IEEE 1588v2 is based on the Master-Slave architecture. This protocol distributes information from a Master to its Slave by exchanging messages with timestamps (please refer to Figure 1). The following sequence of steps are performed by the two-way message exchange:

1) The Master initiates the exchange by sending a SYNC message to the Slave at timestamp t1.

2) The Slave receives the SYNC message and keeps the arrival time at timestamp t2.

3) The Master sends the FOLLOW UP message to the Slave with the timestamp t1.

4) The Slave sends back to the Master DELAY REQ message at timestamp t3.

5) The Master receives the DELAY REQ message and keeps the arrival time at timestamp t4.

6) The Master sends the timestamp t4 to the Slave with the DELAY RESP message.

FIGURE 1
www.frontiersin.org

FIGURE 1. PTP messaging timing diagram.

Based on Karthik and Blum [12,14,15] 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 and the forward and the reverse PDV are denoted as ω1 [j], ω2 [j] respectively. The total number of the Sync messages periods is denoted as J, where j = 1, 2, 3, … , J.

We consider three different models for the PDV:

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 jmwhere E [.] denotes the expectation operator on (.) and n = 1, 2.

2) The PDV is modeled as an fGn process with zero mean. Based on Li and Zhao [23]; Peng et al. [21] we have:

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

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

3) The PDV is modeled as an gfGn process with zero mean. Based on Li [26] we have:

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

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

In this paper we assume that the forward and reverse PDVs are independent. This assumption is consistent with real systems. Thus, we can write: Eω1[j],ω2[m]=0j,m.

3 The Clock Skew Estimator and Its Performance

In this section we present our new clock skew estimator and the closed-form-approximated expression for the MSE related to our new clock skew estimator for three PDV cases: 1. The PDV is a white-Gaussian process, 2. The PDV is an fGn process, 3. The PDV is an gfGn process. At first, we present our new proposed clock skew estimator in Theorem 1. Theorem 2 presents a general closed-form approximated expression for the MSE related to our new clock skew estimator involving the expectation operator on the PDVs. Since the PDV can be one of three cases (a white-Gaussian process, an fGn process and an gfGn process), the MSE from Theorem 2 is further developed for each case. Namely, Theorem 3, Theorem 4 and Theorem 5 are the closed-form approximated expressions for the MSE related to our new clock skew estimator for the white-Gaussian case, fGn case and gfGn case respectively.

3.1 Theorem 1

For the case of t3 [j] − t2 [j] = X, where X is a constant. The clock skew estimator can be defined as:

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

where

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

3.1.1 Proof of Theorem 1

In order to avoid the fixed delay, we can subtract between two timestamps from different Sync periods. Based on Eqs 1, 2 we have:

T1,ji+Ω1,ji=1+αj,iT2,ji(5)
T4,jiΩ2,ji=1+αj,iT3,ji(6)

where

T3,ji=t3j+it3j,Ω1,ji=ω1j+iω1j,Ω2,ji=ω2j+iω2j(7)

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

Based on the summation of Eqs. 5, 6, we can define:

T1,ji+Ω1,jiT2,ji+T4,jiΩ2,jiT3,ji=2(1+αj,i)(8)

Please note that T3,j(i) = t3 (j + i) − t3(j) is also T3,j(i) = t2 (j + i) + X − (t2(j) + X), meaning that T3,j(i) = T2,j(i). Therefore, αj,i is:

αi,j=12T1,ji+T4,jiT2,ji+Ω1,jiΩ2,jiT2,ji1(9)

Thus the clock skew can be defined as:

α=2JJ1i=1J1j=1Jiαj,i(10)

By putting Eq. 9 into Eq. 10 we have:

α=1JJ1i=1J1j=1JiT1,ji+T4,jiT2,ji+Ω1,jiΩ2,jiT2,ji1(11)

Now, we can write Eq. 11 as:

α=1JJ1i=1J1j=1JiT1,ji+T4,jiT2,ji1+i=1J1j=1JiΩ1,jiΩ2,jiT2,ji=α̂+1JJ1i=1J1j=1JiΩ1,jiΩ2,jiT2,ji(12)

Based on Eq. 12 the clock skew estimator is as defined in Eq. 3 and this completes our proof.

3.2 Theorem 2

For the case where Ωn,j(i)T1,j(i)1 [n = 1,2 and where |.| is the absolute value of (.)], the general expression for the approximated MSE related to our new clock skew estimator is:

Ee21+αJJ1Tsyn2i=1J1j=1Jik=1J1m=1JkEΩ1,jiΩ1,mkik+EΩ2,jiΩ2,mkik+1Tsyn2EΩ1,j2iΩ1,m2kik2(13)

3.2.1 Proof of Theorem 2

Based on Eq. 12 the error is defined as:

e=αα̂=1JJ1i=1J1j=1JiΩ1,jiΩ2,jiT2,ji(14)

According to Eq. 5 we have:

T2,ji=T1,ji+Ω1,ji1+α(15)

Based on Eq. 15 we may write the expectation of Eq. 14 as:

Ee=1+αJJ1i=1J1j=1JiEaj,i1+aj,ibj,i1+aj,i(16)

where aj,i and bj,i are defined as:

aj,i=Ω1,jiT1,ji;bj,i=Ω2,jiT1,ji(17)

For Ωn,j(i)T1,j(i)1 and based on Spiegel et al. [38] we can rewrite Eq. 16:

Ee1+αJJ1i=1J1j=1JiEaj,i1aj,iEbj,i1aj,i(18)

Based on the assumption made in Section 2, we may write Eq. 18 as:

Ee1+αJJ1i=1J1j=1JiEaj,iaj,i2Ebj,i(19)

Now, based on Eq. 19 the approximated MSE related to our new proposed clock skew estimator can be written as:

Ee21+α2JJ12i=1J1j=1Jik=1J1j=mJkEaj,iam,kEaj,i2am,kEaj,iam,k2+Eaj,i2am,k2+Ebj,ibm,k(20)

Next, by recalling the definitions of T1,j(i) and T1,m(k), we can write:

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

where Tsyn is denoted as the Sync message period.

Based on Eq. 21 we can simplify the expressions in Eq. 20:

Eaj,iam,k=EΩ1,jiT1,jiΩ1,mkT1,mk=EΩ1,jiΩ1,mkikTsyn2(22)
Eaj,i2am,k=EΩ1,j2iT1,j2iΩ1,mkT1,mk=EΩ1,j2iΩ1,mki2kTsyn3(23)
Eaj,iam,k2=EΩ1,jiT1,jiΩ1,m2kT1,m2k=EΩ1,jiΩ1,m2kik2Tsyn3(24)
Eaj,i2am,k2=EΩ1,j2iT1,j2iΩ1,m2kT1,m2k=EΩ1,j2iΩ1,m2ki2k2Tsyn4(25)
Ebj,ibm,k=EΩ2,jiT1,jiΩ2,mkT1,mk=EΩ2,jiΩ2,mkikTsyn2(26)

Since the PDV has zero mean (please refer to Section 2), Eqs 23, 24 can be set to zero.

Now, by putting Eqs 22, 25, 26 into Eq. 20 we obtain the expression in Eq. 13 and this completes our proof.

In the following, we will calculate the approximated expression for the MSE related to our new proposed clock skew estimator for three different cases:

1) The white-Gaussian case, 2) The fGn case, 3) The gfGn case.

3.3 Theorem 3

The approximate MSE for the white-Gaussian case is:

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

where P is defined as:

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

and A and B are given by:

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

3.3.1 Proof of Theorem 3

In the following, we calculate separately the three different parts in Eq. 13. We start with the first part in Eq. 13. Based on Eq. 7 we can write:

i=1J1j=1Jik=1J1m=1JkEΩ1,jiΩ1,mkik=i=1J1j=1Jik=1J1m=1JkEω1j+iω1m+kω1j+iω1mω1jω1m+k+ω1jω1mik(31)

For calculating Eq. 31 we have to consider only five non-zero cases.

The first case is when i = k and m = j. For this case Eq. 31 is:

i=1J1j=1Jik=1k=iJ1m=1m=jJkEω1j+iω1m+k+ω1jω1mik=i=1J1j=1JiEω1j+iω1j+i+ω1jω1ji2=2σω12i=1J1Jii2(32)

The second case is when ik and m = j. For this case Eq. 31 is:

i=1J1j=1Jik=1kiJ1m=1m=jJkEω1jω1mik=i=1J1j=1Jik=1kiJ1m=1m=jJkEω1jω1jik=σω12i=1J1j=1Jik=1kiJ1m=1m=jJk1ik(33)

The third case is when m = j + i. For this case Eq. 31 is:

i=1J1j=1Jik=1J1m=1m=j+iJkEω1j+iω1mik=i=1J1j=1Jik=1J1m=1m=j+iJkEω1j+iω1j+iik=σω12i=1J1j=1Jik=1J1m=1m=j+iJk1ik(34)

The fourth case is when m = jk. For this case Eq. 31 is:

i=1J1j=1Jik=1J1m=1m=jkJkEω1jω1m+kik=i=1J1j=1Jik=1J1m=1m=jkJkEω1jω1jik=σω12i=1J1j=1Jik=1J1m=1m=jkJk1ik(35)

The fifth case is when ik and m = j + ik. For this case Eq. 31 is:

i=1J1j=1Jik=1kiJ1m=1m=j+ikJkEω1j+iω1m+kik=i=1J1j=1Jik=1kiJ1m=1m=j+ikJkEω1j+iω1j+iik=σω12i=1J1j=1Jik=1kiJ1m=1m=j+ikJk1ik(36)

Based on Eqs 3236, we may write Eq. 31 as:

i=1J1j=1Jik=1J1m=1JkEΩ1,jiΩ1,mkik=σω122i=1J1Jii2+i=1J1j=1Jik=1kiJ1m=1m=jm=j+ikJk1iki=1J1j=1Jik=1J1m=1m=j+im=jkJk1ik(37)

Based on Eq. 7 the second part in Eq. 13 can be given as:

i=1J1j=1Jik=1J1m=1JkEΩ2,jiΩ2,mkik=i=1J1j=1Jik=1J1m=1JkEω2j+iω2m+kω2j+iω2mω2jω2m+k+ω2jω2mik(38)

The only change in Eq. 38 concerning Eq. 31 is the PDV. Therefore, we can use the calculations we made for the first part. Based on Eq. 37, we can write Eq. 38 as:

i=1J1j=1Jik=1J1m=1JkEΩ2,jiΩ2,mkik=σω222i=1J1Jii2+i=1J1j=1Jik=1kiJ1m=1m=jm=j+ikJk1iki=1J1j=1Jik=1J1m=1m=j+im=jkJk1ik(39)

The third part in Eq. 13 is:

1Tsyn2i=1J1j=1Jik=1J1m=1JkEΩ1,j2iΩ1,m2kik2=1Tsyn2i=1J1j=1Jik=1J1m=1JkEω12j+iω12m+k+ω12j+iω12m+ω12jω12m+k+ω12jω12mik22Eω12j+iω1m+kω1m+ω12jω1m+kω1mik22Eω1j+iω1jω12m+k+ω1j+iω1jω12mik2+4Eω1j+iω1jω1m+kω1mik2(40)

In order to calculate Eq. 40 we have to consider only six non-zero cases.

The first case is when i = k and m = j. For this case Eq. 40 is:

1Tsyn2i=1J1j=1Jik=1k=iJ1m=1m=jJkEω12j+iω12j+i+ω12j+iω12j+ω12jω12j+i+ω12jω12ji4+4Eω1j+iω1jω1j+iω1ji4=23σω14+6σω12σω12Tsyn2i=1J1Jii4(41)

The second case is when ik and m = j. For this case Eq. 40 is:

1Tsyn2i=1J1j=1Jik=1kiJ1m=1m=jJkEω12j+iω12j+k+ω12j+iω12j+ω12jω12j+k+ω12jω12jik2=3σω14+3σω12σω12Tsyn2i=1J1j=1Jik=1kiJ1m=1m=jJk1ik2(42)

The third case is when m = j + i. For this case Eq. 40 is:

1Tsyn2i=1J1j=1Jik=1J1m=1m=j+iJkEω12j+iω12j+i+k+ω12j+iω12j+i+ω12jω12j+i+k+ω12jω12j+iik2=3σω14+3σω12σω12Tsyn2i=1J1j=1Jik=1J1m=1m=j+iJk1ik2(43)

The fourth case is when m = jk. For this case Eq. 40 is:

1Tsyn2i=1J1j=1Jik=1J1m=1m=jkJkEω12j+iω12j+ω12j+iω12jk+ω12jω12j+ω12jω12jkik2=3σω14+3σω12σω12Tsyn2i=1J1j=1Jik=1J1m=1m=jkJk1ik2(44)

The fifth case is when ik and m = j + ik. For this case Eq. 40 is:

1Tsyn2i=1J1j=1Jik=1kiJ1m=1m=j+ikJkEω12j+iω12j+i+ω12j+iω12j+ik+ω12jω12j+i+ω12jω12j+ikik2=3σω14+3σω12σω12Tsyn2i=1J1j=1Jik=1kiJ1m=1m=j+ikJk1ik2(45)

The sixth case is when mj and mj + i and mjk and m + kj + i. For this case Eq. 40 is:

1Tsyn2i=1J1j=1Jik=1J1m=1mjmj+ikmj+imj+iJkEω12j+iω12m+k+ω12j+iω12mik2+Eω12jω12m+k+ω12jω12mik2=4σω12σω12Tsyn2i=1J1j=1Jik=1J1m=1mjmj+ikmj+imj+iJk1ik2(46)

Based on Eqs 4146, we can write Eq. 40 as:

1Tsyn2i=1J1j=1Jik=1J1m=1JkEΩ1,j2iΩ1,m2kik2=σω14Tsyn212i=1J1Jii4+6i=1J1j=1Jik=1kiJ1m=1m=jm=j+im=jkm=j+ikJk1ik2+4i=1J1j=1Jik=1J1m=1mjmj+ikmj+imj+iJk1ik2(47)

Now, based on Eqs 37, 39, 47 we may write the approximated MSE related to our new proposed clock skew estimator for the white-Gaussian case as:

Ee21+αJJ12σω12+σω22Tsyn22i=1J1Jii2+i=1J1j=1Jik=1kiJ1m=1m=jm=j+ikJk1iki=1J1j=1Jik=1J1m=1m=j+im=jkJk1ik+σω14Tsyn412i=1J1Jii4+6i=1J1j=1Jik=1kiJ1m=1m=jm=j+ikm=j+im=jkJk1ik2+4i=1J1j=1Jik=1J1m=1mjmj+ikmj+imj+iJk1ik2(48)

In order to calculate the approximated MSE related to our new proposed clock skew estimator, it can be assumed that (1 + α) ≈ 1, because in practical systems, the two clocks (Master and Slave) operate at almost the same frequency. Therefore, Eq. 48 can be rewritten as:

Ee21JJ12σω12+σω22Tsyn2A+σω14Tsyn4B(49)

where A and B are defined in Eqs 29, 30 respectively.

Next, we define the correction factor P. This correction factor helps us to calculate the expression for the approximated MSE related to our new proposed clock skew estimator in the fGn and gfGn cases, as will be shown later on.

In the following, we define P as:

σω12+σω22Tsyn2A=σω14Tsyn4BPP=ABσω12+σω22σω14Tsyn2(50)

We can write Eq. 49 as:

Ee21JJ12σω12+σω22Tsyn2A1+BAσω14σω12+σω221Tsyn2(51)

Now, by putting Eq. 50 into Eq. 51 we can write the closed-form approximated expression for the approximated MSE related to our new proposed clock skew estimator as is defined in Eq. 27 and this completes our proof.

3.4 Theorem 4

For the case where the PDV is defined as an fGn process with 0.5 ≤ H < 1, the closed-form approximated expression for the approximated MSE related to our new proposed clock skew estimator is approximately given by:

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

where C and D are given by:

C=i=1J1Jii22fGHi,H+i=1J1j=1Jik=1kiJ1m=1m=jm=j+ikJk1ik1+12fGHik,HfGHi,HfGHk,Hi=1J1j=1Jik=1J1m=1m=j+im=jkJk1ik112fGHi,HfGHk,H+fGHi+k,H(53)
D=i=1J1j=1Jik=1J1m=1mjmj+imjkmj+ikJk12ikfGHjm,HfGHj+im,HfGHjmk,H+fGHj+imk,H(54)

and the function fGH (.) is:

fGHx,H=x|1|2H2|x|2H+|x|+12H(55)

3.4.1 Proof of Theorem 4

Based on Eq. 7 the two first parts in Eq. 13 can be written as:

i=1J1j=1Jik=1J1m=1JkEΩ1,jiΩ1,mk+Ω2,jiΩ2,mkik=i=1J1j=1Jik=1J1m=1JkEω1j+iω1m+kω1j+iω1mω1jω1m+k+ω1jω1mik+Eω2j+iω2m+kω2j+iω2mω2jω2m+k+ω2jω2mik(56)

For calculating Eq. 56 we have to consider only six non-zero cases.

The two parts in Eq. 56 have the same calculations. Therefore, we present our calculations for the first part that is given by:

i=1J1j=1Jik=1J1m=1JkEΩ1,jiΩ1,mkik=i=1J1j=1Jik=1J1m=1JkEω1j+iω1m+kω1j+iω1mω1jω1m+k+ω1jω1mik(57)

The first case is when i = k and m = j. For this case Eq. 57 is:

i=1J1j=1Jik=1k=iJ1m=1m=jJkEΩ1,jiΩ1,mkik=i=1J1j=1Jik=1k=iJ1m=1m=jJkEω1j+iω1j+iω1j+iω1jω1jω1j+i+ω1jω1ji2(58)

which can be written also as:

i=1J1j=1Jik=1k=iJ1m=1m=jJkEΩ1,jiΩ1,mkik=2σω12i=1J1Jii22σw122i=1J1j=1Ji1i2jj+i|12H2|jj+i|2H+|jj+i|+12H(59)

after rearranging Eq. 59:

i=1J1j=1Jik=1k=iJ1m=1m=jJkEΩ1,jiΩ1,mkik=σw12i=1J1Jii22|i1|2H2i2H+i+12H(60)

The second case is when ik and m = j. For this case Eq. 57 is:

i=1J1j=1Jik=1kiJ1m=1m=jJkEΩ1,jiΩ1,mkik=i=1J1j=1Jik=1kiJ1m=1m=jJkEω1j+iω1j+kω1j+iω1jω1jω1j+k+ω1jω1jik(61)

which can be written also as:

i=1J1j=1Jik=1kiJ1m=1m=jJkEΩ1,jiΩ1,mkik=σω12i=1J1j=1Jik=1kiJ1m=1m=jJk1ik1+12j+ij|12H2|j+ij|2H+|j+ij|+12Hjjk|12H2|jjk|2H+|jjk|+12H+j+ijk|12H2|j+ijk|2H+|j+ijk|+12H(62)

after rearranging Eq. 62:

i=1J1j=1Jik=1kiJ1m=1m=jJkEΩ1,jiΩ1,mkik=σω12i=1J1j=1Jik=1kiJ1m=1m=jJk1ik1+12|ik|12H2|ik|2H+|ik|+12H|i1|2H2i2H+i+12H|k1|2H2k2H+k+12H(63)

The third case is when m = j + i. For this case Eq. 57 is:

i=1J1j=1Jik=1J1m=1m=j+iJkEΩ1,jiΩ1,mkik=i=1J1j=1Jik=1J1m=1m=j+iJkEω1j+iω1j+i+kω1j+iω1j+iω1jω1j+i+k+ω1jω1j+iik(64)

which can be written also as:

i=1J1j=1Jik=1J1m=1m=j+iJkEΩ1,jiΩ1,mkik=σω12i=1J1j=1Jik=1J1m=1m=j+iJk1ik1+12jji|12H2|jji|2H+|jji|+12Hjjik|12H2|jjik|2H+|jjik|+12H+j+ijik|12H2|j+ijik|2H+|j+ijik|+12H(65)

after rearranging Eq. 65:

i=1J1j=1Jik=1J1m=1m=j+iJkEΩ1,jiΩ1,mkik=σω12i=1J1j=1Jik=1J1m=1m=j+iJk1ik1+12|k1|2H2k2H+k+12H+|i1|2H2i2H+i+12H|i+k1|2H2i+k2H+i+k+12H(66)

The fourth case is when m = jk. For this case Eq. 57 is:

i=1J1j=1Jik=1J1m=1m=jkJkEΩ1,jiΩ1,mkik=i=1J1j=1Jik=1J1m=1m=jkJkEω1j+iω1jω1j+iω1jkω1jω1j+ω1jω1jkik(67)

which can be written also as:

i=1J1j=1Jik=1J1m=1m=jkJkEΩ1,jiΩ1,mkik=σω12i=1J1j=1Jik=1J1m=1m=jkJk1ik1+12j+ij|12H2|j+ij|2H+|j+ij|+12Hj+ij+k|12H2|j+ij+k|2H+|j+ij+k|+12H+jj+k|12H2|jj+k|2H+|jj+k|+12H(68)

after rearranging Eq. 68:

i=1J1j=1Jik=1J1m=1m=jkJkEΩ1,jiΩ1,mkik=σω12i=1J1j=1Jik=1J1m=1m=jkJk1ik1+12|i+k1|2H2i+k2H+i+k+12H+|i1|2H2i2H+i+12H+|k1|2H2k2H+k+12H(69)

The fifth case is when ik and m = j + ik. For this case Eq. 57 is:

i=1J1j=1Jik=1kiJ1m=1m=j+ikJkEΩ1,jiΩ1,mkik=i=1J1j=1Jik=1kiJ1m=1m=j+ikJkEω1j+iω1j+iω1j+iω1j+ikω1jω1j+i+ω1jω1j+ikik(70)

which can be written also as:

i=1J1j=1Jik=1kiJ1m=1m=j+ikJkEΩ1,jiΩ1,mkik=σω12i=1J1j=1Jik=1kiJ1m=1m=j+ikJk1ik1+12jji+k|12H2|jji+k|2H+|j+ii+k|+12Hj+iji+k|12H2|j+iji+k|2H+|j+iji+k|+12Hjji|12H2|jji|2H+|jji|+12H(71)

after rearranging Eq. 71:

i=1J1j=1Jik=1kiJ1m=1m=j+ikJkEΩ1,jiΩ1,mkik=σω12i=1J1j=1Jik=1kiJ1m=1m=j+ikJk1ik1+12ik|12H2|ik|2H+|ik|+12H|k1|2H2k2H+k+12H|i1|2H2i2H+i+12H(72)

The sixth case is when mj and mj + i and mjk and m + kj + i. For this case Eq. 57 is:

i=1J1j=1Jik=1J1m=1mjmj+imjkmj+ikJkEΩ1,jiΩ1,mkik=i=1J1j=1Jik=1J1m=1mjmj+imjkmj+ikJkEω1j+iω1m+kω1j+iω1mω1jω1m+k+ω1jω1mik(73)

which can be written also as:

i=1J1j=1Jik=1J1m=1mjmj+imjkmj+ikJkEΩ1,jiΩ1,mkik=σω122i=1J1j=1Jik=1J1m=1mjmj+imjkmj+ikJk1ikj+imk|12H2|j+imk|2H+|j+imk|+12Hj+im|12H2|j+im|2H+|j+im|+12Hjmk|12H2|jmk|2H+|jmk|+12H+jm|12H2|jm|2H+|jm|+12H(74)

Please note that the summation of Eqs 60, 63, 66, 69, 72 can be written as (σω12C), where C is defined in Eq. 53. The expression in Eq. 74 can be written as (σω12D), where D is defined in Eq. 54.

Now, we can write Eq. 57 as:

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

Based on Eq. 75 we may write Eq. 56 as:

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

The third part in Eq. 13 is quite difficult to carry out for the fGn case. Now, looking at Eq. 27 we notice that Eq. 27 consists actually on the sum of the two first parts of Eq. 13 multiplied by the factor (1+1P). Please note that P (28) is actually obtained by dividing the sum of the first two parts of Eq. 13 by the third part of Eq. 13 for the white-Gaussian noise.

In order to carry out the third part in Eq. 13 for the fGn case, we approximate it based on Eq. 27. In our approximation we simply multiply the expression of C(σω12+σω22) with the expression of (1+1P). The expression for D is not multiplied with the expression of (1+1P), since D is zero for H = 0.5.

This completes our proof.

3.5 Theorem 5

For the case where the PDV is defined as an gfGn process with 0.5 ≤ H < 1 and 0 < a ≤ 1 the closed-form approximated expression for the MSE related to our new proposed clock skew estimator is given by:

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

where C* and D* are given by:

C=i=1J1Jii22fGHi,H,a+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(78)
D=i=1J1j=1Jik=1J1m=1mjmj+imjkmj+ikJk12ikfGHjm,H,afGHj+im,H,afGHjmk,H,a+fGHj+imk,H,a(79)

and the function fGH(.) is:

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

3.5.1 Proof of Theorem 5

As already was shown in Section 2, we have for the fGn process Li and Zhao [23]; Peng et al. [21]:

forj=mEωnj,ωnm=σωn2forjmEωnj,ωnm=σωn22jm|12H2|jm|2H+|jm|+12H(81)

where n = 1,2.

On the other hand, we have for the gfGn process Li [26]:

forj=mEωnj,ωnm=σωn2forjmEωnj,ωnm=σωn22jma|12H2|jma|2H+|jma|+12H(82)

Please note that the difference between Eqs 81, 82 is only by the a factor. Thus, we can use Eqs 5255 for the gfGn case where the function fGH (.) defined in Eq. 55 and used in Eq. 53 to Eq. 54 is substituted by the function fGH*(.) Eq. 80 and this completes our proof.

4 Designing Graphs

In this section, we propose some designing graphs for the fGn and gfGn cases. Thus, the designing graphs for the fGn case will be based on Theorem 4 while the designing graph for the gfGn case will be based on Theorem 5. The closed-form approximated expression for the MSE (for the fGn process Eq. 52 and for the gfGn process Eq. 77) is a function of H, a function of Tsyn, a function of the total sent Sync messages, and a function of the PDV variances. It could be very helpful for the system designer if he could approximately know the total sent Sync messages that the system needs in order to receive the system’s requirement such as MSE = 10–12.

Thus in the following, we will try to create some designing graphs that can help the system designer to achieve the system’s requirement of MSE = 10–12.

Based on Eqs 28, 52, 77 we can write the approximated MSE related to our new proposed clock skew estimator as:

Ee21JJ12σω12+σω22Tsyn2Ct+Dt+σω14Tsyn4BACt(83)

where A and B are defined in Eqs 29, 30 respectively. For the fGn case Ct = C Eq. 53 and Dt = D Eq. 54, and for the gfGn case Ct = C* Eq. 78 and Dt = D* Eq. 79.

After arranging Eq. 83 we have:

σω12+σω22+σω14Tsyn2BACtCt+DtEe2Tsyn2JJ12Ct+Dt(84)

In order to simplify Eq. 84 we use the following condition:

σω12+σω22σω14Tsyn2BACtCt+Dt(85)

Thus, for the fGn and gfGn cases, we may write based on Eqs 84, 85:

σω12+σω22Ee2Tsyn2JJ12Ct+Dt(86)

Based on Eq. 86 we carry out some designing graphs (Figures 25) that were obtained for MSE = 10–12 and for three different Tsyn rates: 64packetsec, 16packetsec and 8 packetsec. Please note that we have three designing graphs for the fGn case (Figures 24) where each designing graph was carried out for various values for H, and one designing graph for the gfGn case with H = 0.95 (Figure 5).

FIGURE 2
www.frontiersin.org

FIGURE 2. Designing graph for the fGn case. The graph is based on Eq. 86, Tsyn=15.6ms(64packetsec) and E [e2] = 10–12.

FIGURE 3
www.frontiersin.org

FIGURE 3. Designing graph for the fGn case. The graph is based on Eq. 86, Tsyn=62.5ms(16packetsec) and E [e2] = 10–12.

FIGURE 4
www.frontiersin.org

FIGURE 4. Designing graph for the fGn case. The graph is based on Eq. 86, Tsyn=125ms(8packetsec) and E [e2] = 10–12.

FIGURE 5
www.frontiersin.org

FIGURE 5. Designing graph for the gfGn case. The graph is based on Eq. 86, E [e2] = 10–12 and H = 0.95.

In order to see if Eq. 85 can actually be ignored, we are going back to the obtained designing graph in Figure 2 to check ourselves.

In the following, we assume that σω1=σω2 and for simplicity we denote the expression BACtCt+Dt as F.

According to Figure 2, where Tsyn=15.6ms(64packetsec) and H = 0.9:

1. σω12+σω22=9.65e13J=30F=46.88σω14Tsyn2=9.57e22

σω12+σω22=9.65e13Fσω14Tsyn2=4.49e20

2. σω12+σω22=2.89e11J=140F=94.97σω14Tsyn2=8.58e19

σω12+σω22=2.89e11Fσω14Tsyn2=8.15e17

3. σω12+σω22=4.76e8J=500F=150.93σω14Tsyn2=2.33e16

σω12+σω22=4.76e10Fσω14Tsyn2=3.52e14

According to Figure 2, where Tsyn=15.6ms(64packetsec) and H = 0.8:

1. σω12+σω22=8.92e13J=30F=56.37σω14Tsyn2=8.18e22

σω12+σω22=8.92e13Fσω14Tsyn2=4.61e20

2. σω12+σω22=3.63e11J=140F=137.77σω14Tsyn2=1.35e18

σω12+σω22=3.63e11Fσω14Tsyn2=1.86e16

3. σω12+σω22=7.72e10J=500F=260.74σω14Tsyn2=6.12e16

σω12+σω22=7.72e10Fσω14Tsyn2=1.59e13

According to Figure 2, where Tsyn=15.6ms(64packetsec) and H = 0.6:

1. σω12+σω22=1.47e12J=30F=81.39σω14Tsyn2=2.22e21

σω12+σω22=1.47e12Fσω14Tsyn2=1.81e19

2. σω12+σω22=1.09e10J=140F=306.76σω14Tsyn2=1.22e17

σω12+σω22=1.09e10Fσω14Tsyn2=3.75e15

3. σω12+σω22=3.84e9J=500F=881.07σω14Tsyn2=1.52e14

σω12+σω22=3.84e9Fσω14Tsyn2=1.34e11

According to the list from above, we can see that for 10 < J < 500, Eq. 86 is applicable.

5 Simulation Results

In this section, we test our new proposed clock skew estimator Eq. 3 and our closed-form-approximated expression for the MSE for the white-Gaussian Eq. 27, fGn Eq. 52 and gfGn Eq. 77 cases. At first, we show various simulation results in order to show the efficiency of our new proposed clock skew estimator Eq. 3 compared to the ML-like estimator (MLLE) Noh et al. [34] that maximizes the likelihood function obtained based on a reduced subset of observations (the first and last timing stamps). According to Noh et al. [34] we have:

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

where

β̂=1α̂+11(88)

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, 7.

Figure 6 shows the performance comparison between our new proposed clock skew estimator Eq. 3 with the estimator obtained from Noh et al. [34] for the Gaussian case. The results in Figure 6 were obtained for different values for the PDV variances. In addition, we also show there the performance of the new proposed closed-form-approximated expression for the MSE Eq. 27 compared to the simulated one via Eq. 3. According to Figure 6 our new clock skew estimator Eq. 3 achieves a lower MSE compared to the clock skew estimator from Noh et al. [34] for the Gaussian case. In addition, we can clearly see from Figure 6 that our new closed-form-approximated expression for the MSE Eq. 27 supplies results that are very close to the simulated one.

FIGURE 6
www.frontiersin.org

FIGURE 6. Performance comparison between the new clock skew estimator Eq. 3 with the clock skew estimator of Noh et al. [34]denoted here as the likelihood estimator. In addition, we have the simulated performance results for our new proposed expression for the MSE Eq. 27 for the white-Gaussian case. α = 50 ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec). For: σω1=σω2=σ=100μs the delay dms = 1 ms, dsm = 0.8 ms For: σω1=σω2=1000μs, the delay dms = 3.3 ms, dsm = 3 ms. The results were obtained for 100 Monte-Carlo trails.

Figure 7 shows the performance comparison between our new proposed clock skew estimator Eq. 3 with the clock skew estimator obtained from Noh et al. [34] for the fGn case with different values for H. Figure 8 shows the performance comparison between our new proposed clock skew estimator Eq. 3 with the clock skew estimator obtained from Noh et al. [34] for the fGn case with different values for the PDV variances. In addition, we also show in Figures 7, 8 the performance of our new closed-form-approximated expression for the MSE Eq. 52 compared to the simulated one. According to Figures 7, 8 our new clock skew estimator achieves a lower MSE compared to the clock skew estimator from Noh et al. [34] for the fGn case. In addition, we can clearly see from Figures 7, 8 that the performance of our new closed-form-approximated expression for the MSE Eq. 52 is very close to the performance obtained by the simulated MSE.

FIGURE 7
www.frontiersin.org

FIGURE 7. Performance comparison between the new clock skew estimator Eq. 3 with the clock skew estimator of Noh et al. [34] denoted here as the likelihood estimator. In addition, we have the simulated performance results for our new proposed expression for the MSE Eq. 52 for the fGn case. α = 50 ppm, Q = 5 ms. Tsyn=15.6ms(64packetsec), σω1=σω2=1000μs, dms = 5 ms, dsm = 5.5 ms. The results were obtained for 100 Monte-Carlo trails.

FIGURE 8
www.frontiersin.org

FIGURE 8. Performance comparison between the new clock skew estimator Eq. 3 with the clock skew estimator of Noh et al. [34] denoted here as the likelihood estimator. In addition, we have the simulated performance results for our new proposed expression for the MSE Eq. 52 for the fGn case. α = 50 ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec), σω1=σω2=σ, dms = 5 ms, dsm = 5.5 ms, H = 0.6. The results were obtained for 100 Monte-Carlo trails.

Figure 9 shows the MSE obtained by the new proposed clock skew estimator Eq. 3 compared with our closed-form-approximated expression for the MSE Eq. 52 for the fGn case. The results in Figure 9 were obtained for different forward and reverse PDV variances. According to Figure 9 there is a high correlation between the performance of our closed-form-approximated expression for the MSE Eq. 52 with the simulated MSE.

FIGURE 9
www.frontiersin.org

FIGURE 9. Performance comparison between the new proposed expression for the MSE Eq. 52 with those obtained from the simulated clock skew estimator Eq. 3 for the fGn case (denoted here as sim MSE), where the forward and reverse PDV variances are different. α = 50 ppm, Q = 5 ms, Tsyn=15.6ms(64packetsec), dms = 5 ms, dsm = 5.5 ms, H = 0.6. case 1: σω1=0.8ms, σω2=0.5ms, case 2: σω1=0.8ms, σω2=1.2ms. The results were obtained for 100 Monte-Carlo trails.

Figure 10 shows the performance comparison between our new proposed clock skew estimator Eq. 3 with the clock skew estimator obtained from Noh et al. [34] for the gfGn case. The results in Figure 10 were obtained for different values of a (please note that we set the values of H and a according to Li [26]). In addition, we also show in Figure 10 the performance of our closed-form-approximated expression for the MSE Eq. 77 compared to the simulated one. According to Figure 10, our new clock skew estimator achieves a lower MSE compared to the clock skew estimator from Noh et al. [34]. In addition, we can see from Figure 10 that the performance of our closed-form-approximated expression for the MSE Eq. 77 is high correlated with the simulated one.

FIGURE 10
www.frontiersin.org

FIGURE 10. Performance comparison between the new clock skew estimator Eq. 3 with the clock skew estimator of Noh et al. [34] denoted here as the likelihood estimator. In addition, we have the simulated performance results for our new proposed expression for the MSE Eq. 77 for the gfGn case. α = 50ppm, Q = 5 ms, Tsyn = 15.6 ms, σω1=σω2=0.1ms, dms = 5 ms, dsm = 5.5 ms, H = 0.95. The results were obtained for 100 Monte-Carlo trails.

It should be pointed out that the clock skew estimator from Noh et al. [34], does not depend on the unknown fixed delay paths nor on the clock offset between the Master and Slave. Thus, it is a good candidate for performance comparison with our new proposed clock skew estimator Eq. 3. Please note that in order to carry out a fair performance comparison, we can only take those clock skew estimators for the simulation performance comparison task, that do not rely on the symmetric assumption for the forward and reverse fixed delay paths as is the case in Puttnies et al. [13], Chaudhari et al. [32], Li and Jeske [33] and Shan et al. [5] (please refer to Table 1). In addition, those clock skew estimators should not rely on multiple Masters or on multiple paths between the Master and Slave as is the case in Karthik and Blum [12]. Thus, based on Table 1, we can use for the simulation performance comparison task also the recently proposed clock skew estimators proposed by Levy and Pinchas [2] and Chaloupka et al. [36]. But, as already was mentioned earlier in this paper, Levy and Pinchas [2] is based on the dual slave clocks in a slave presented by Chin and Chen [31] where Kim [37] demonstrated that the algorithm in Chin and Chen [31] is unusable in practical cases. The clock skew estimator proposed by Chaloupka et al. [36] depends on a predefined parameter L defining the sliding window’s length in the algorithm which has an important role for reaching a low value for the MSE. But, this predefined parameter (L) depends also on the total number of sync periods available for the frequency synchronization task. In other words, the predefined parameter (L) can not be set too large, for example to a value of 1,000 if the available total number of sync periods is only 500. In addition, the noise measurement variance is estimated in Chaloupka et al. [36] involving two smoothing factors which must also be defined in advance.

According to Levy and Pinchas [2] 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(89)

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(90)

and ε̂ is:

ε̂=1α̂+11(91)

Γ(.) 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.

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

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

where L is the is the sliding window’s length as defined in Chaloupka et al. [36].

The Kalman’s state equation is:

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

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

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

where

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

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

Figure 11 shows the performance comparison between our new proposed clock skew estimator Eq. 3 with the clock skew estimator obtained from Noh et al. [34] and Levy and Pinchas [2] for the gfGn case. In addition, we also show in Figure 11 the performance of our closed-form-approximated expression for the MSE Eq. 77 compared to the simulated one. According to Figure 11, our new proposed clock skew estimator achieves a lower MSE compared to the clock skew estimators proposed by Noh et al. [34] and Levy and Pinchas [2].

FIGURE 11
www.frontiersin.org

FIGURE 11. Performance comparison between the new clock skew estimator Eq. 3 for the gfGn case with the clock skew estimator of Noh et al. [34] and Levy and Pinchas [2]. The clock skew estimator of Noh et al. [34] is denoted here as the likelihood estimator. We also have the simulated performance results for our new proposed expression for the MSE Eq. 77 for the gfGn case. α = 50 ppm, Q = 5 ms, Tsyn = 15.6 ms, σω1=σω2=0.5ms, dms = 5 ms, dsm = 5.5 ms, H = 0.95, a = 0.08. The results were obtained for 100 Monte-Carlo trails.

Figure 12 shows the performance comparison between our new proposed clock skew estimator Eq. 3 with the clock skew estimator obtained from Noh et al. [34] and Chaloupka et al. [36] for the fGn case. According to Figure 12 our new proposed clock skew estimator achieves a lower MSE compared to the clock skew estimators proposed by Noh et al. [34] and Chaloupka et al. [36].

FIGURE 12
www.frontiersin.org

FIGURE 12. Performance comparison between the new clock skew estimator Eq. 3 for the fGn case with the clock skew estimator of Noh et al. [34] and Chaloupka et al. [36]. The clock skew estimator of Noh et al. [34] is denoted here as the likelihood estimator. α = 50 ppm, Q = 5 ms, Tsyn = 15.6 ms, σω1=σω2=0.25ms, dms = 5 ms, dsm = 5.5 ms, H = 0.7, L = 200, QKAL = 0, δσ = δμ = 1e − 4, μ̂[1]=0. The results were obtained for 50 Monte-Carlo trails.

6 Conclusion

In this paper, we have developed a novel clock skew estimator (applicable for the PTP case) in the presence of asymmetric in the forward and reverse paths. This estimator does not depend on the unknown fixed paths nor on the clock offset between the Master and Slave. Our clock skew estimator does not need multiple Masters nor prior knowledge about the forward and the reverse paths. In addition, we proposed a closed-form approximated expression for the MSE related to our new proposed clock skew estimator. This closed-form approximated expression for the MSE is suitable for the white-Gaussian, fGn, or gfGn environment. Thus, the clock skew estimator and its performance (MSE) are applicable for the long-range dependence environment. It can be seen from the simulation results that the performance of our closed-form approximated expression for the MSE has a high correlation with the performance obtained via the new proposed clock skew estimator. This paper also supplies designing graphs for the system designer that may help the system designer to have approximately the total sent Sync messages to receive the system’s requirement (MSE = 10–12). For a requirement of MSE lower than 10–12, new designing graphs can be easily obtained by Eq. 86. Thus, we have also a closed-form approximated expression Eq. 86 that can help the system designer to figure out the total sent Sync messages needed to get the MSE of any value.

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. Pinchas M. Cooperative Multi PTP Slaves for Timing Improvement in an Fgn Environment. IEEE Commun Lett (2018) 22:1366–9. doi:10.1109/lcomm.2018.2830339

CrossRef Full Text | Google Scholar

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

CrossRef Full Text | Google Scholar

3. Karthik AK, Blum RS. Estimation Theory-Based Robust Phase Offset Determination in Presence of Possible Path Asymmetries. IEEE Trans Commun (2018) 66:1624–35. doi:10.1109/tcomm.2017.2761879

CrossRef Full Text | Google Scholar

4. Guruswamy A, Blum RSR, Kishore S, Bordogna M. Minimax Optimum Estimators for Phase Synchronization in IEEE 1588. IEEE Trans Commun (2015) 63:3350–62. doi:10.1109/tcomm.2015.2455531

CrossRef Full Text | Google Scholar

5. Shan F, Yu J, Dong J, Chang X, Yu Z. In: Research on High-accuracy Clock Synchronization Based on IEEE 1588 Protocol; 19-20 Oct. 2019; Dalian, China (2019).

6. Vyas A, Dwivedi S, Gunnarsson F (2018). Improved Precision Time Protocol with Relative Clock Phase Information. In 2018 IEEE International Symposium on Precision Clock Synchronization for Measurement, Control, and Communication (ISPCS). doi:10.1109/ispcs.2018.8543064

CrossRef Full Text | Google Scholar

7. Peng J, Zhang L, Mclernon D. On the Clock Offset Estimation in an Improved IEEE 1588 Synchronization Scheme. In: European Wireless 2013; 19th European Wireless Conference (2013).

Google Scholar

8.[Dataset] Arnold D. In: 1588-2019 - IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems. IEEE (2019). Available at: https://standards.ieee.org/standard/1588-2019.html.

9. Fubin P, Yubol Y, Leil G, Liangliang S. The Accuracy of IEEE 1588 Time Synchronization Protocol and its Improvement. In: IEEE 12th International Conference on Electronic Measurement & Instruments (2015). p. 280–4. doi:10.1109/icemi.2015.7494173

CrossRef Full Text | Google Scholar

10.[Dataset] ITU-T Recommendation. G.8262 : Timing Characteristics of Synchronous Equipment Slave Clock (2018). Available at: https://www.itu.int/rec/T-REC-G.8262 (Accessed October 8, 2020).

Google Scholar

11.[Dataset] ITU-T Recommendation. G.8261 : Timing and Synchronization Aspects in Packet Networks (2019). Available at: https://www.itu.int/rec/T-REC-G.8261-201908-I/en (Accessed November 26, 2020).

Google Scholar

12. 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

CrossRef Full Text | Google Scholar

13. Puttnies H, Danielisx P, Timmermann D. PTP-LP: Using Linear Programming to Increase the Delay Robustness of IEEE 1588 PTP. In: IEEE Global Communications Conference (2018). doi:10.1109/glocom.2018.8647777

CrossRef Full Text | Google Scholar

14. 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

CrossRef Full Text | Google Scholar

15. 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:3264–637. doi:10.1109/tcomm.2019.2900317

CrossRef Full Text | Google Scholar

16. Guruswamy A, Blum RSR, Kishore S, Bordogna M. Performance Lower Bounds for Phase Offset Estimation in IEEE 1588 Synchronization. IEEE Trans Commun (2015) 63:243–53. doi:10.1109/tcomm.2014.2371028

CrossRef Full Text | Google Scholar

17. Sathis Kumar S, Kemparaj P (2019). Enhanced Algorithms for Clock Selection in a Packet Based Synchronization Method. In 2019 IEEE 9th Symposium on Computer Applications & Industrial Electronics (ISCAIE) .doi:10.1109/iscaie.2019.8743747

CrossRef Full Text | Google Scholar

18. Mizrahi T. Slave Diversity: Using Multiple Paths to Improve the Accuracy of Clock Synchronization Protocols. In: 2012 IEEE International Symposium on Precision Clock Synchronization for Measurement, Control and Communication Proceedings (2012). doi:10.1109/ISPCS.2012.6336621

CrossRef Full Text | Google Scholar

19. Mizrahi T, Moses Y. On the Behavior of Network Delay in the Cloud. In: 2016 IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS) (2016). doi:10.1109/infcomw.2016.7562201

CrossRef Full Text | Google Scholar

20. Li M, Lim SC. Modeling Network Traffic Using Generalized Cauchy Process. Physica A: Stat Mech its Appl (2008) 387:2584–94. doi:10.1016/j.physa.2008.01.026

CrossRef Full Text | Google Scholar

21. Peng J, Zhang L, Mclernon D. Long-range Dependence and Heavy-Tail Modeling for Teletraffic Data. IEEE Signal Process. Mag (2002) 19:14–27.

Google Scholar

22. Jusak J, Harris RJ. Study of Udp-Based Internet Traffic: Long-Range Dependence Characteristics. In: 2011 Australasian Telecommunication Networks and Applications Conference (ATNAC) (2011). doi:10.1109/ATNAC.2011.6096648

CrossRef Full Text | Google Scholar

23. 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

CrossRef Full Text | Google Scholar

24. Paxson V. Fast, Approximate Synthesis of Fractional Gaussian Noise for Generating Self-Similar Network Traffic. SIGCOMM Comput Commun Rev (1997) 27:5–18. doi:10.1145/269790.269792

CrossRef Full Text | Google Scholar

25. Ledesma S, Liu D. Synthesis of Fractional Gaussian Noise Using Linear Approximation for Generating Self-Similar Network Traffic. SIGCOMM Comput Commun Rev (2000) 30:4–17. doi:10.1145/505680.505682

CrossRef Full Text | Google Scholar

26. 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

CrossRef Full Text | Google Scholar

27. Li M. Modified Multifractional Gaussian Noise and its Application. Physica Scripta (2021) 96:125002. doi:10.1088/1402-4896/ac1cf6

CrossRef Full Text | Google Scholar

28. Li M. Multi-fractional Generalized Cauchy Process and its Application to Teletraffic. Physica A (2020) 550:123982. doi:10.1016/j.physa.2019.123982

CrossRef Full Text | Google Scholar

29. Mizrahi T. A Game Theoretic Analysis of Delay Attacks against Time Synchronization Protocols. In: 2012 IEEE International Symposium on Precision Clock Synchronization for Measurement, Control and Communication Proceedings (2012). doi:10.1109/ISPCS.2012.6336612

CrossRef Full Text | Google Scholar

30. Guruswamy A, Blum RS, Kishore S, Bordogna M. Performance Lower Bounds for Phase Offset Estimation in IEEE 1588 Synchronization. IEEE Trans Commun (2015) 63:243–53. doi:10.1109/tcomm.2014.2371028

CrossRef Full Text | Google Scholar

31. Wen-long Chin W-L, Sau-gee Chen S-G. IEEE 1588 Clock Synchronization Using Dual Slave Clocks in a Slave. IEEE Commun Lett (2009) 13:456–8. doi:10.1109/lcomm.2009.090308

CrossRef Full Text | Google Scholar

32. Chaudhari QM, Serpedin E, Qaraqe K. On Maximum Likelihood Estimation of Clock Offset and Skew Network with Exponential Delays. IEEE Trans Signal Process (2008) 56:1685–97. doi:10.1109/tsp.2007.910536

CrossRef Full Text | Google Scholar

33. Li J, Jeske DR. Maximum Likelihood Estimators of Clock Offset and Skew under Exponential Delays. Appl Stochastic Models Bus Ind (2009) 25:445–59. doi:10.1002/asmb.777

CrossRef Full Text | Google Scholar

34. 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

CrossRef Full Text | Google Scholar

35. Giorgi G, Narduzzi C. Performance Analysis of Kalman-Filter-Based Clock Synchronization in IEEE 1588 Networks. IEEE Trans Instrum Meas (2011) 60:2902–9. doi:10.1109/tim.2011.2113120

CrossRef Full Text | Google Scholar

36. 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

CrossRef Full Text | Google Scholar

37. Kim KS. Comments on “IEEE 1588 Clock Synchronization Using Dual Slave Clocks in a Slave”. IEEE Commun Lett (2014) 18:981–2. doi:10.1109/lcomm.2014.2317738

CrossRef Full Text | Google Scholar

38. Spiegel MR, Lipschutz S, Liu J. Mathematical Handbook of Formulas and Tables. New York: McGraw Hill Education (2009).

Google Scholar

Keywords: PTP, PDV, LRD, fGn, gfGn

Citation: Avraham Y and Pinchas M (2021) 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. 9:796811. doi: 10.3389/fphy.2021.796811

Received: 17 October 2021; Accepted: 10 November 2021;
Published: 22 December 2021.

Edited by:

Ming Li, Zhejiang University, China

Reviewed by:

Jianyong Chen, Shenzhen University, China
Zhiwu Liao, Sichuan Normal University, China

Copyright © 2021 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.