1. Introduction
In modern computer networked systems, achieving precise offset (time) and clock skew (frequency) synchronization is essential for ensuring optimal performances and efficiency [
1,
2,
3,
4]. The IEEE’s PTP (IEEE1588v2) [
5] standard is built on a hardware time-stamped Master–Slave clock packet exchange design. It is a two-way delay (TWD) system, requiring time stamps from both Forward (the path from the Master to the Slave) and Reverse (the path from the Slave to the Master) paths for time and frequency synchronization [
5]. The PTP is a popular solution in this domain, facilitating the synchronization of clocks across distributed systems [
6,
7]. However, PTP systems have challenges in the synchronization task, particularly in environments characterized by complex network dynamics and varying levels of noise and jitter [
3]. The packets undergo fixed and random delays that impact synchronization accuracy [
1,
2,
3,
4,
8]. The fixed delay is determined by the number of components the packet passes until reaching the destination clock [
3]. Please note that the Master-to-Slave (Forward) and Slave-to-Master (Reverse) paths might not have the same constant delay [
9] since, in each path, the number of components may be different. Packet delay variation (PDV), which is the term for the random delay, is influenced by network traffic [
10], as packets may be subject to queuing delays while awaiting transmission through an unblocked output port [
3]. Based on [
11,
12], the PDV significantly impacts synchronization accuracy. Namely, as PDV increases, synchronization accuracy decreases.
Based on the latest research [
13,
14,
15,
16,
17], gfGn offers a sophisticated framework for modeling complex time series with long-range dependence (LRD) on network jitter and delay fluctuations. The gfGn model in this work is characterized by
H and
a, where
and
, respectively. Thus, the gfGn model addresses the challenges of the PDV in real PTP systems.
In our previous work [
18,
19], we derived three clock skew estimators: (1) the TWD clock skew estimator, which is dependent on both the Master-to-Slave and Slave-to-Master pathways; (2) the one-way delay (OWD) clock skew estimator that depends on the Master-to-Slave path; and (3) the OWD clock skew estimator that depends on the Slave-to-Master path. These estimators also apply to asymmetric paths (where the Forward and Reverse fixed delays are different) and are applicable to the gfGn environment. In addition, we presented in [
18,
19] three closed-form estimates that approximate the MSE for the gfGn environment related to those clock skew estimators.
The MSE expressions are significant tools for network designers, enabling them to determine the number of Sync messages required to meet system requirements from the MSE perspective. However, the closed-form estimates that approximate the MSE from [
18,
19] require substantial computational resources to fit the MSE expressions to specific pairs of the Hurst exponent and
a parameters.
In this paper, we present new derived low-computational burden, closed-form approximated expressions for the MSE for the gfGn environment for
, related to the three clock skew estimators from [
18,
19]. The newly derived MSE expressions are based on a single expression that can be adapted to each Hurst exponent and
a parameter through simple multiplications that require relatively low computational resources. Moreover, simulation results revealed that the low-computational burden MSE expressions are also suitable for the case when
.
The newly derived MSE expressions offer several advantages over our previous work: (1) Reduced Computational Burden: the new expressions require significantly less computational power, making them more efficient to implement in software as well as in hardware; (2) Efficiency: by reducing the computational load, the new expressions save time in running simulations; and (3) Cost-Effectiveness: The reduced need for computational resources translates into cost savings in hardware and software, making the implementation of PTP systems more efficient and economical. These benefits underscore the practicality and efficiency of the new low-computational burden, closed-form estimates that approximate the MSE, providing significant tools for network designers to optimize clock skew estimation in PTP systems.
This study’s contributions are as follows:
The derivation of three low-computational burdens, closed-form approximated expressions for the MSE under the gfGn environment for
, related to the three clock skew estimators from our previous work [
18,
19]. The derived MSE expressions are more computationally efficient and easily adaptable to various combinations of
H and
a parameters. Unlike before, the Hurst exponent and
a parameters are no longer in a nested loop in the MSE calculations. Thus, the MSE result can be obtained faster when changing the Hurst exponent and
a parameters from one set to another. The newly derived expression for the MSE has an approximate execution time of a few microseconds in Matlab code when changing the Hurst exponent and
a parameters from one set to another. Comparatively, when varying the Hurst exponent and
a parameters from one set to another, the Matlab code execution time for the previously obtained expression for the MSE is around minutes or more.
The derivation of three closed-form estimates that approximate the MSE for the scenario where the
a parameter tends toward zero, related to the three clock skew estimators from our previous work [
18,
19]. These MSE expressions demonstrate improved performances compared to the performances of the MSE expressions for the Gaussian case. These expressions are given as a function of the MSE expressions for the Gaussian case, where it can be easily seen that the MSE expressions for the Gaussian case are multiplied by a factor lower than one.
Providing a practical tool for system designers to estimate the clock skew estimator’s performance under the gfGn case for
, with reduced computational burden, offering a cost-effective alternative to the closed-form estimates that approximate the MSE from our previous work [
18,
19].
2. System Description
The PTP is a synchronization protocol that relies on a system of clocks (Master and Slave) exchanging packets with time stamps (for a PTP diagram, please refer to
Figure 1, recalled from [
18]).
These time stamps delineate the temporal relationship between the Master and Slave clocks [
1,
2,
3]. Based on [
1,
2,
3], we can write
The PTP time stamps are denoted as
,
,
, and
, where
j represents the
j-th Sync period for
, with
J representing the total number of Sync periods.
refers to the Sync message period. Based on
Figure 1, the Master initiates the Sync period by sending a Sync message to the Slave at time stamp
. The Slave receives the Sync message at time stamp
and sends a Delay request message back to the Master at time stamp
, which is received by the Master at time stamp
. The fixed delays in the Forward and Reverse paths are respectively designated as
and
, while the PDV in the Master-to-Slave and Slave-to-Master paths are named as
and
, respectively. The offset is denoted as
Q, while
is the clock skew. In this paper, the gfGn model is applied to describe the PDV based on [
13,
14]. According to [
13,
14], the PDV variance for
is
The expectation operator on (.) is denoted as
.
Based on (
2) and [
13,
14,
17,
20,
21], we notice the following cases:
Therefore, the gfGn model answers on a wider range of cases. The newly derived low-computational burden approximations for the MSE presented in
Section 3 are for the clock skew estimators [
18,
19], where the TWD clock skew estimator from [
18] is
where the anticipated clock skew is
.
is given for
by
For both the Forward and Reverse pathways, the OWD clock skew estimators from [
19] are
and
where
and
are, respectively, the expected clock skews for the Forward and Reverse pathways. For the TWD clock skew estimator (
3) applicable in the gfGn environment, the closed-form estimates that approximates the MSE is, according to [
18], as follows:
with
P,
C, and
D given by (
10), (
13), and (
14), respectively.
The MSE [
19] associated with the OWD clock skew estimators (
5) and (
6) that apply in the gfGn environment have, according to [
19], the following closed-form estimates.
For the Forward case,
For the Reverse case,
where
P and
are defined by [
18,
19] as
A,
B,
C, and
D ([
18]) are
and
is, according to [
18], as follows:
The reader may refer to [
18,
19] for the proof of (
3), (
5)–(
9). Please note that for the Gaussian case (
with
), the function
is zero. Thus, we have
and
(please refer to [
18,
19]). The closed-form estimates that approximate the MSE ([
18,
19]) for the TWD and OWD for the Forward and Reverse paths for the white-Gaussian environment are denoted in this paper as
,
, and
, respectively. These MSE expressions are related to the three clock skew estimators ((
3), (
5), and (
6)) and are given by
3. The Low-Computational Burden Approximated Expressions for the MSE
The closed-form estimates that approximate the MSE under the gfGn model in (
7)–(
9) necessitate significant computational burden resources for each specific set of Hurst exponent and
a parameters. Therefore, a need was seen in having closed-form approximated expressions for the MSE that have a lower computational burden for each set of Hurst exponent and
a parameters values.
Theorem 1. We apply the following assumptions:
- 1.
The total number of Sync messages is set to 500. This is based on our previous work [18,19], where 500 Sync messages result in an accuracy of from the MSE perspective. Thus, for consistency and comparability, we adopt the same number in this paper. - 2.
The a parameter is in the range of . With the help of this assumption, (15) can be simplified so that the set of Hurst exponent and a parameters are no longer in a nested loop in the MSE calculations. Thus, the MSE result can be obtained faster when changing the Hurst exponent and a parameters from one set to another.
In the following, we denote the closed-form estimates that approximate the MSE for the TWD, OWD for the Forward path, and OWD for the Reverse path under the gfGn environment for , as , , and , respectively. These closed-form estimates that approximate the MSE associated with the three clock skew estimators ((3),(5), and (6)) are given bywhere is, , and arewhere is defined asand is Comments: Although our derivation was based on the assumption that
, we noticed, via simulation results, that they are also valid for a wider range of
a, namely, for
. Additionally, please note that according to (
20) and (
24), it may be easy to calculate the MSE for each Hurst exponent and
a parameters, since the expressions (
A,
,
,
, and
) that require computational resources are not dependent on the parameters (
H and
a). Therefore, the expressions in (
20) and (
24) can be easily adjusted to each Hurst exponent and
a parameters through simple multiplications.
Proof of Theorem 1. We use, in the following, parameter
to signify the difference between the numbers of
and
Sync messages (
). For example, when
and
, indicating the difference between the first and last Sync messages,
. Similarly, for the difference between two contiguous Sync message numbers, with
, we have
. Before we start our proof, we use some series expansion from [
22]. The first series expansion [
22] is
where
is the
function, and the ! is the factorial function. Please note that the series expansion is conducted for fixed
.
The second is the binomial series [
22]:
where
.
In the first step, we simplify (
15) based on assumptions 1–2. We approximate
only using the two first parts of the series expansion (
26); therefore, (
15) can be written as
In the second step, we simplify the three parts of the right expression in (
28), with the first two parts of the binomial series (
27). Thus,
from (
28) can be defined as
Based on (
29), the expression
in (
28), can be written as
The expression
from (
28) is more difficult to approximate. In this paper, we use the following approximation:
where
V is a constant correction factor to the power of
, as given in
Table 1. Based on (
29)–(
31), we can write (
28) as
Please note that determining the optimal value for
V is challenging due to its dependence on
. It is essential to ascertain the best value for
V relative to the varying
values. Thus, we conducted simulations to identify the approximated
V value that would produce the lowest difference between the results obtained from the approximated expressions for the MSE and those obtained by the clock skew estimators ((
3), (
5), and (
6)) performances from the MSE perspective for
. For each combination of
a and
H parameters, a corresponding
V value was determined across different
values. The
V values for
are given in
Table 1. The last row of the
Table 1 reads ’Irrelevant’, since the magnitude of
V does not impact the outcome when the
a parameter approaches zero. In the simulation, as the
a parameter tended toward zero,
V was maintained at a fixed value.
Based on (
32), we can calculate
and
, where
and
. First, by putting (
32) into (
13), we have
After rearranging (
33), we have the same expression as (
20). For
, we substitute (
32) into (
14). Thus, we have the same expression as (
24), and this completes our proof. □
Please note that for the Gaussian case, the derived closed-form estimates that approximate MSEs (
17), (
18), and (
19) are almost the same as the closed-form estimates that approximate the MSE given in (
16) for the Gaussian case. In order to show this, please refer to
Table 1 and (
20). Based on
Table 1, where the correction factor V is set to 2, and (
20),
can be written as
Next,
may be written based on (
24) as
that is, we approximated those equations for the MSE valid for the Gaussian case:
Next, we deal with the case of
a tending to zero.
The New Obtained Expressions for the MSE When a Is Tending to Zero
A notable scenario arises when the parameter
a tends toward zero (
). In this context, as the Hurst exponent parameter increases and the
a parameter tends toward zero, the closed-form estimates that approximate the MSE for the non-Gaussian cases exhibit superior performances compared to the performances obtained with the MSE expressions valid for the Gaussian case. In order to show this, we assume first that
for
. Therefore, (
15) can be defined as
Now, by putting (
37) into (
13) and (
14), we can write
and
After rearranging (
38), we have:
Please note that for
and based on (
20), we may write
as
Based on (
24) and for
, we may write
as
Next, based on (
37)–(
42), the closed-form estimates that approximate the MSE under the gfGn environment for
can be written as
For example, let us set
and
. Then, the closed-form approximated expressions for the MSE for the Forward path is
. Thus, it can be clearly seen in this example that the MSE expression for the case where the
a parameter approaches zero is smaller (thus having improved performances) compared to the MSE expression valid for the Gaussian case.
4. Results
In this study, we tested our new closed-form approximated expressions for the MSE (
17)–(
19) for the gfGn case against the simulated results obtained from the clock skew estimators performances from the MSE perspective. Initially, we present simulation results for various values of the
a parameter, specifically those less than or equal to
, to demonstrate the accuracy of the new MSE expressions for the gfGn case when
, including the special case where the
a parameter tends to zero. Subsequently, we analyze simulation results for
a parameters greater than
(
) to illustrate the applicability of the new MSE expressions for cases where
a is less than or equal to
.
Let us start with the simulation results for
.
Figure 2,
Figure 3 and
Figure 4 show the performances of clock skew estimators (
5) and (
6) compared to the closed-form estimates that approximate the MSE (
18) and (
19) under the gfGn case for
. According to
Figure 2,
Figure 3 and
Figure 4, it can be seen that the performances obtained with the MSE expressions are quite similar to the simulated performances of the clock skew estimators (MSE perspective).
Figure 5 illustrates the performances of the clock skew estimators (
5) and (
6) compared to the closed-form estimates that approximate the MSE when
: (
44) and (
45). According to
Figure 5, for
, those MSE expressions closely align with the simulated clock skew estimators’ performances. As was noted in
Section 3, when the
a parameter tends to zero and the Hurst exponent parameter increases, the closed-form estimates that approximate the MSE demonstrate better performances compared to the performances obtained with the MSE expressions valid for the Gaussian case. Indeed,
Figure 5 illustrates this phenomenon.
In
Section 3, we presented the closed-form estimates that approximate the MSE for the case where the
a parameter is less than
. However, our simulations revealed that it is feasible to identify values for
V that yields a reasonable approximation to the MSE expressions, even for values of the
a parameter that exceed
within the range of
values between 1 and 500. This observation underscores the existence of a
V value capable of facilitating a robust approximation to (
15), even when the
a parameter is greater than
. It is noteworthy that when the
a parameter exceeds
, the closed-form estimates that approximate the MSE become a little bit less accurate compared to the case where
. Consequently, the newly derived closed-form estimates that approximate MSEs (
17)–(
19) remain applicable even for
a values below
.
Figure 6,
Figure 7 and
Figure 8 show the performances of clock skew estimators (
3), (
5), and (
6) compared to the closed-form estimates that approximate MSEs (
17)–(
19). According to
Figure 6,
Figure 7 and
Figure 8, even for an
a parameter greater than 0.1, those MSE expressions obtain quite similar results to the simulated performances of the clock skew estimators (MSE perspective). Thus, although our new proposed approximated expressions for the MSE were obtained for
, they can also be applied according to simulation results for
.
In the newly derived expressions for MSEs (
17)–(
19), the Hurst exponent and
a parameters are connected with
(
20) and
(
24). In the previously obtained expression for MSEs (
7)–(
9), the Hurst exponent and
a parameters are connected with
C (
13) and
D (
14). Please note that the Hurst exponent and
a parameters are in a nested loop in
C (
13) and
D (
14) unlike in
(
20) and
(
24). Thus, when varying the Hurst exponent and
a parameters from one set to another, the Matlab code execution time for the previously obtained expression for the MSE is longer than for the newly obtained one. To show this, we tested the Matlab code execution time for
,
,
C, and
D when varying the Hurst exponent and
a parameters from one set to another. Since
(
21),
(
22),
(
23), and
(
25) are not a function of
H and
a, they do not have to be calculated again when varying the Hurst exponent and
a parameters from one set to another. We used MATLAB Version: 9.7.0.1296695 (R2019b) Update 4; Operating System: Microsoft Windows 10 Pro Version 10.0. In the following test, we changed the Hurst exponent and
a parameters from one set to
and
with
. We obtained the following results when
(
21),
(
22),
(
23), and
(
25) were not calculated again:
For the total number of Sync periods equal to ():
The averaged Matlab code execution time for D is s. The averaged results were obtained for 10 trials.
The averaged Matlab code execution time for C is s. The averaged results were obtained for 10 trials.
The averaged Matlab code execution time for is ms. The averaged results were obtained for 10,000 trials.
The averaged Matlab code execution time for is ms. The averaged results were obtained for 10,000 trials.
For the total number of Sync periods equal to ():
The averaged Matlab code execution time for D is s. The averaged results were obtained for 5 trials.
The averaged Matlab code execution time for C is s. The averaged results were obtained for 5 trials.
The averaged Matlab code execution time for is ms. The averaged results were obtained for 10,000 trials.
The averaged Matlab code execution time for is ms. The averaged results were obtained for 10,000 trials.
Next, we changed the Hurst exponent and
a parameters from one set to
and
with
. But now,
(
21),
(
22),
(
23), and
(
25) were calculated again. We received the following results:
For the total number of Sync periods equal to ():
The averaged Matlab code execution time for is s. The averaged results were obtained for 10 trials.
The averaged Matlab code execution time for is s. The averaged results were obtained for 10 trials.
For the total number of Sync periods equal to ():
The averaged Matlab code execution time for is s. The averaged results were obtained for 5 trials.
The averaged Matlab code execution time for is s. The averaged results were obtained for 5 trials.
According to the results, the newly derived MSE has, approximately, an averaged Matlab code execution time that is thirty times faster compared to the averaged Matlab code execution time of the previously obtained MSE expression. It should be pointed out that this advantage in the Matlab code execution time may be even higher for .