- 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 [5–7]. 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.
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 [4–7]. 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 [8–10] we may write:
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.
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
2. The PDV is modeled as an fGn/gfGn process with zero mean. Based on [11–13] we have:
a. When j = m:
b. When j ≠ m:
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:
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:
where
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:
where
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:
where
Based on Eq. 6 the clock skew can be written as:
The OWD clock skew in the Forward path can be defined as:
By putting Eq. 8 into Eq. 9 we define the clock skew in the Forward path as:
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:
where
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:
where
Based on the definition that t3 [j] − t2 [j] = X, as mentioned in the section of System Description (assumption 2), we can write:
By using Eq. 14, we can write Eq. 12 as:
Therefore, based on Eq. 15 the clock skew can be written as:
The OWD clock skew in the Reverse path can be defined as:
By putting Eq. 16 into Eq. 17 we define the clock skew in the Reverse path as:
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:
where P is:
and A, B are given by:
4.1 Theorem 3
For
where PF is:
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:
Now, according to Eq. 6 we can write T2,j(i) as following:
Based on Eq. 26 we may write the expectation of Eq. 25 as:
where
For
Based on Eq. 29 the approximated MSE related to the OWD clock skew estimator (for the Forward path) can be define as:
According to [4], we can write T1,j(i) and T1,m(k) as:
where Tsyn is the Sync messages period.
Based on Eq. 28 and on Eq. 31 we can simplify the expressions in Eq. 30:
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:
Based on [4] we can write the two summation parts in Eq. 36 as:
where A and B are defined in Eq. 21, 22 respectively.
Based on Eq. 37 we may write (36) as:
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:
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
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:
Let us recall (26):
Based on Eq. 26, we may write the expectation of Eq. 41 as:
where
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
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:
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:
Based on Eq. 43 and on Eq. 31 we can rewrite the expression
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:
According to [4], we can write the summation part in Eq. 48 as:
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:
where C and D are given by:
the function
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:
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:
According to [4], we can write the first part in Eq. 55 as:
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:
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:
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:
We can write the summation part in Eq. 48 as was done in [4] as:
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]:
The OWD clock skew estimator for the Forward path is given by Eq. 5:
The OWD clock skew estimator for the Reverse path is given by Eq. 11:
It would be very helpful for the system designer if he could know which of the above listed clock skew estimators (Eqs 60–62) 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:
Thus we have:
a. when
b. when
c. when
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 60–62) 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 60–62) 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
where
Otherwise, we use the TWD clock skew estimator (Eq. 60).
Case b: For Z < 1:
If
where
Otherwise, we use the TWD clock skew estimator (Eq. 60).
Case c: For Z = 1
If
where
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:
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:
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:
where A, B, P and PF are defined in Eqs 21, 22, 20 and 24 respectively.
In the following, we define
For Z > 1, we wish to find the value for Z where we have
where Eq. 70 can be written also as:
After rearranging Eq. 71 we can write:
We can divide Eq. 72 by
where
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
where Eq. 74 can be written also as:
After rearranging Eq. 75 we can write:
We can divide Eq. 76 by
where
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
where Eq. 78 can be written also as:
After rearranging Eq. 79 we can write:
where
6.2 Theorem 8
For the fGn/gfGn process we have the following conditions:
Case a: For Z > 1:
If
where
Otherwise, we use the TWD clock skew estimator (Eq. 60).
Case b: For Z < 1:
If
where
Otherwise, we use the TWD clock skew estimator (Eq. 60).
Case c: For Z = 1
If
where
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:
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:
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:
where C, D, P and PF are defined in Eqs 51, 52, 20 and 24 respectively.
In the following, we define:
For Z > 1, we wish to find the value for Z where we have
where Eq. 87 can be written also as:
Based on the definition of P and PF in Eqs 20, 24 respectively, we can write:
Based on Eq. 89 we can write Eq. 88 as:
After rearranging Eq. 90 we can write:
By putting the definition of PF Eq. 24 into Eq. 91 we can write:
where
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
where Eq. 93 can be written also as:
By using the definition of P in Eq. 20 into Eq. 95 we may write:
After rearranging Eq. 95 we can write:
where
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
where Eq. 97 can be written also as:
By using the definition of P in Eq. 20, we may write Eq. 98 as:
After rearranging Eq. 99 we can write:
where
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 4–6 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
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,
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,
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,
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,
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,
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,
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,
In Figures 9–12 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:
where
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. 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,
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,
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,
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,
According to Levy and Pinchas [7] we have:
where Amax (J, i, j, k, H) is:
and
Γ(.) 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:
The Kalman’s state equation is:
where the variance of u[j] is QKAL. The estimate of the noise measurement variance is given by Chaloupka et al. [6]:
where
δμ 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. 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).
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).
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
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, ChinaReviewed by:
Hu Shaoxiang, University of Electronic Science and Technology of China, ChinaNan 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, bW9uaWthLnBpbmNoYXNAZ21haWwuY29t