Next Article in Journal
Session Recommendation via Recurrent Neural Networks over Fisher Embedding Vectors
Previous Article in Journal
A Further Exploration of Multi-Slot Based Spectrum Sensing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improved Time-Synchronization Algorithm Based on Direct Compensation of Disturbance Effects

1
School of Electrical and Electronics Engineering, Chung-Ang University, Seoul 06974, Korea
2
Department of Electrical Engineering, Myongji University, Yongin 17058, Korea
*
Author to whom correspondence should be addressed.
Sensors 2019, 19(16), 3499; https://doi.org/10.3390/s19163499
Submission received: 21 June 2019 / Revised: 26 July 2019 / Accepted: 6 August 2019 / Published: 10 August 2019
(This article belongs to the Section Sensor Networks)

Abstract

:
In this paper, an improved time-synchronization algorithm is proposed. The improvement of time synchronizing performance was achieved by introducing a stochastic model-based direct compensation of the disturbance effects appearing in the IEEE 1588 Precision Time Protocol (PTP)-based time synchronization system. A dynamic model of PTP clock system was obtained by reflecting the three major sources of disturbances, i.e., clock frequency drift, clock rate offset, and network noise. With the application of the dynamic model of the PTP clock system, the effects of the disturbances can be effectively eliminated in the PTP time synchronization control loop. Computer simulations are performed to verify the performance of the proposed time synchronization algorithm by applying the various types of disturbances, including network noise and clock drift. The simulation results are compared with those of other representative time synchronization algorithms, i.e., IEEE 1588 PTP algorithm and Kalman-filter-based algorithm. It is shown that the proposed algorithm improves time synchronizing performance up to 84% with respect to that of the Kalman-filter-based synchronization algorithm when simulated with colored noise type disturbances. The proposed time synchronization algorithm is expected to contribute for the realization of future Ethernet-based industry-plant monitoring and control including IEC 61850-based digital substation.

1. Introduction

Ethernet-based provision of precise time information has been an important issue for its industry application where the required time precision is very high. The IEEE 1588 Precision Time Protocol (PTP) [1] was published as a standard for the provision of Ethernet-based precise time-synchronization means for such industry applications. The IEEE 1588 PTP-based time synchronization mechanisms, as shown by many previous studies [2,3,4,5], are based on the basic functional elements to estimate a local clock’s time offset in reference to a master clock and to adjust the local clock’s time and frequency. IEEE standard c37.238-2011, 2017 [6,7] was published to provide required specifications, including less than 1.0 microsecond of timing error bound, for advanced operation and protection of IEC 61850-based digital substations [8,9]. The standard for communication networks and systems for power utility automation added the precision time protocol profile, i.e., IEC 61850-9-3 in 2016 [10], for compliant use of the communication protocol in digital substations.
Wide variability and disturbances, which are considered as inherent characteristics of an Ethernet-based network environment, are two of the technical difficulties preventing the wide spread of practical PTP applications in power systems [11,12,13,14,15,16,17]. There have been many efforts to provide an adaptive method to compensate the effects of variability and disturbances of network environment [18,19,20], eventually to achieve an effective and fault-tolerant control of time synchronization [21]. Proper modeling of a disturbance environment and its reflection into a PTP time synchronization control algorithm should be emphasized for effective and satisfactory compensation of the effects of disturbances [18].
This paper proposes an improved time synchronization control algorithm which adaptively reduces the effect of disturbances to minimize its performance degradation. A dynamic model of a PTP clock system was obtained by reflecting the three typical sources of disturbances, i.e., clock frequency drift, clock rate offset, and network noise, which are the major components consisting the overall disturbances. Base on the dynamic model, a direct compensation algorithm is proposed where the effect of the disturbances is estimated by stochastic modeling and is subtracted from the PTP time synchronization control loop. Arbitrary patterns of disturbances can be effectively estimated by autoregression (AR)-based stochastic modeling. The proposed PTP time synchronization control algorithm is considered to provide an effective joint handling of disturbance estimation and the dynamic model of PTP clock, yielding minimized performance degradation.
Based on the dynamic model, which effectively reflects the three typical sources of disturbances, the PTP time synchronization control system’s stability bound was analytically derived as a closed form inequality function. The stability bound shows the allowable range of PTP syntonization gain, i.e., clock frequency control gain and time synchronization interval, and provides a basis for the optimized design of the adaptive PTP time synchronization control algorithm. The optimization based on the dynamics modeling of PTP clock systems provides the algorithmic solution for the inadequate limits of previous research. The proposed time synchronization algorithm is expected to contribute to the realization of a future Ethernet-based industry-plant monitoring and control.
Computer simulations were conducted to demonstrate the performance of the proposed algorithm. The performance of the proposed PTP control algorithm was obtained by simulating the algorithm under various disturbance environments. From the simulation results, it was confirmed that the time synchronization error caused by the disturbances was effectively reduced. To verify the excellence in precise time synchronization of the proposed algorithm, time synchronizing performances of the proposed algorithm were compared with the IEEE 1588 PTP algorithm [1] and Kalman-filter-based algorithm [18]. It was confirmed that the proposed algorithm relatively reduces the root mean square (RMS) value of time offset up to 4.5% and 3% for the white-noise type disturbances with respect to the IEEE 1588 PTP algorithm and Kalman-filter-based algorithm, respectively. For the colored-noise type disturbances, the improvement was achieved up to 84% with respect to the other algorithms.
This paper is organized as follows. In Section 2, the dynamic model of PTP clock systems reflecting the effects of typical disturbances is presented and the adaptive time synchronization control algorithm is proposed. The performances of the proposed algorithm are evaluated with computer simulations in Section 3. Finally, the conclusions are given in Section 4.

2. Adaptive PTP Time Synchronization Control Algorithm

The effects of typical disturbances on the PTP time synchronization control system studied and the dynamic model obtained by reflecting the effects of disturbances are explained in Section 2.1. Based on the dynamic model, a PTP time synchronization control system’s stability bound is analytically derived as a closed form inequality function in Section 2.2. In Section 2.3, an adaptive PTP time synchronization control algorithm is proposed to effectively suppress the effects of the three typical disturbances. The proposed adaptive PTP algorithm is based on a direct compensation of the effects of the disturbances from the time offset signal in the PTP time synchronization control loop. An AR model-based stochastic approach was adopted for the optimized estimation of the spectral characteristic of the disturbances.

2.1. Analysis of the Effects of Disturbances on PTP Time Synchronization

In this subsection, a dynamic model is obtained by reflecting the three typical sources of disturbances, i.e., clock frequency drift, clock rate offset, and network noise, which are the major components consisting the overall disturbances in PTP time synchronization system. The analysis provides an analytical tool for a derivation of stability bound in Section 2.2 and a design of optimized control in Section 2.3.
The functional block diagram suggested for the dynamics modeling of the PTP time synchronization control system is presented in Figure 1. The local PTP clock system can be divided into two blocks, i.e., the local clock and the PTP control block, respectively. The local clock updates the device’s present time, which is marked as Time, using a hardware-based clock oscillator, which is marked as Oscillator. The PTP control block consists of two major functions, i.e., time synchronization and the frequency syntonization. The time synchronization updates the present time of the local clock and computes the offset between the reference clock time and the local clock time. The computed offset is used in the frequency syntonization block for the adjustment of the clock rate of the local clock’s oscillator. The major error-causing disturbances considered in the dynamics modeling are the clock frequency drift, the network disturbance, and the clock frequency offset.
In the following, a detailed description of the dynamic model of PTP time synchronization control system is shown with Equations (1)–(3), which correspond to the time synchronization block and the frequency syntonization block:
y ( n ) = x 1 ( n ) + T S x 2 ( n ) r ´ ( n )
x 1 ( n + 1 ) = x 1 ( n ) + T S x 2 ( n ) y ( n )
x 2 ( n + 1 ) = x 2 ( n ) k y ( n )
where the absolute value of time and frequency of the local clock are defined as the two-state variables x 1 ( n ) and x 2 ( n ) , respectively. The measured reference clock time, which is provided with the reference clock at every sync interval T S , is reflected as an independent input r ´ ( n ) .
As shown in Equation (1), the measured time offset y ( n ) is obtained by subtracting the measured reference clock time r ´ ( n ) from the updated local clock time x 1 ( n ) + T S x 2 ( n ) . The time synchronization mechanism of the PTP is shown with Equation (2), where the time synchronization is performed by subtracting the measured time offset y ( n ) from the updated local clock time. The frequency syntonization mechanism of the PTP clock rate control is represented in Equation (3), where the updated local clock rate x 2 ( n + 1 ) is obtained by applying the negative feedback k y ( n ) to the previous clock rate x 2 ( n ) . It is an advantageous feature of the proposed model represented with Equations (1)–(3) that a more detailed description and PTP time synchronization control can be achieved in comparison with other previous models [18], where the two-state variables correspond to the relative offset and rate difference between the master and the local clock, respectively. The advantage comes from the increased number of description features of the clock behaviors in the proposed model, where the absolute values of time and frequency of local clock are defined as the two-state variables and those of the master clock are reflected as an independent input and as an initial value of state variable, respectively.
The effects of the disturbances are reflected in Equation (4):
r ´ ( n ) = r ( n ) + υ ( n )
where r ( n ) : the reference clock time and υ ( n ) : the network disturbance. The effect of network disturbance is reflected in the process of obtaining the measured reference clock time r ´ ( n ) , as shown in Equation (4), where the measured reference clock time is obtained by adding the network disturbance υ ( n ) to the reference clock time r ( n ) .
x 2 ( n ) = f 0 + f o f f ( n ) + d ´ ( n ) f 0 = f 0 + f o f f ( n ) f 0 + d ´ ( n ) f 0 = x ˜ 2 ( n ) + d ( n )
where f 0 : the nominal local clock frequency, f o f f ( n ) : the frequency offset between the reference clock and the local clock, d ´ ( n ) : the local clock frequency drift, x ˜ 2 ( n ) : the normalized local clock rate, and d ( n ) : the normalized local clock frequency drift. The clock rate is modeled as a superposition of the nominal frequency, offset, and the clock frequency drift as explained with the proposed dynamic model of Figure 1. As shown in Equation (5), the normalized values, x ˜ 2 ( n ) and d ( n ) , are used as the clock rate offset and the clock frequency drift, respectively.

2.2. Stability Analysis Based on Dynamics Modeling of PTP Time Synchronization System

In this subsection, the PTP time synchronization control system reflecting the effects of disturbances in Section 2.1 is modeled, and its stability bound is analytically derived. The analyses were based on the state-equations of the PTP time synchronization control system. The PTP clock system’s stability bound was derived as a closed form inequality function in terms of the two dominant system parameters, i.e., the synchronization interval, which is a time interval between two IEEE 1588 sync messages, and the syntonization feedback gain. The dynamic model of the PTP time synchronization control system and its stability bound provides a basis for the optimized design of the adaptive PTP control algorithm presented in Section 2.3.
The signal flow diagram of the dynamic models represented with Equations (1)–(5) is shown in Figure 2.
The state equation representation of the signal flow diagram is shown in Equations (6) and (7):
x ( n + 1 ) = A x ( n ) + ( K 1 + K 2 ) { C x ( n ) r ´ ( n ) }
y ( n ) = C x ( n ) r ´ ( n )
where A =   ( 1 T s 0 1 ) , K 1 = ( 1 0 ) , x ( n ) = ( x 1 ( n ) x 2 ( n ) ) , C = ( 1 T s ) , K 2 = ( 0 k ) .
The stability bound of the PTP time synchronization can be straightforwardly obtained by finding the system’s pole locations with its state Equations (7) and (8). The stability bound is derived as a closed form functional representation in terms of the two key performance determining factors T s , k , which are the syntonization gain and the synchronization interval, respectively.
The pole locations are obtained from the system’s characteristic polynomial shown in Equation (8):
det ( λ 0 k 1 k T s λ ) =   λ 2 + ( k T s 1 ) λ = 0
then: p 1 = 1 k T s , p 2 = 0 .
From Equation (8), it can be known that one pole is located at 1 k T s and the other pole is located at the origin. The stability bound of the syntonization gain k is represented in Equation (9):
0 < k <   2 T s .
As shown in Equation (9), the stability bound is determined by the syntonization gain k and the synchronization interval T s .
The stability bound curve of k with respect to T s is shown in Figure 3, where a stable region is represented as below the curve. As T s is determined, the value of k must be chosen not to be located over the curve. Equation (9) implies that a shorter synchronization interval results in a wider selectable range of syntonization gain.

2.3. Adaptive PTP Time Synchronization Algorithm

In this subsection, an adaptive PTP time synchronization control algorithm is proposed to effectively suppress the effects of the three typical disturbances reflected in the PTP clock model obtained in Section 2.1. The proposed adaptive algorithm is based on a direct compensation of the effect of the disturbances from the time offset in the PTP time synchronization control loop. An AR model-based stochastic approach was adopted for the optimized estimation of the spectral characteristic of the disturbances, i.e., slow tonic nature of clock frequency drift perturbed with small jitters.
The functional block diagram of the PTP time synchronization control system, including the proposed adaptive syntonization algorithm, is shown in Figure 4. The proposed PTP time synchronization control system including direct compensation consists of the major functional blocks, i.e., the AR model-based disturbance remover, the recursive least square (RLS)-based adaptive weight-control mechanism, and the clock rate calculator with a feedback controller. The filter coefficients of the disturbance remover are adaptively updated to reduce the disturbance effect from the time offset.
The signal flow diagram of the proposed PTP time synchronization system with direct compensation is shown in Figure 5. The structure of the proposed algorithm is based on the application of linear prediction filter and RLS algorithm to estimate the disturbance and its direct compensation from y(n). The signal ξ ( n ) , which represents disturbance-removed residue, is used as the feedback signal for the clock rate syntonization.
The time synchronizing performance, including the stability margin, is effectively improved by the direct compensation of the disturbance effects. The AR model-based least square solutions, which are based on their second-order statistics, are considered effective in removing the effects of the disturbances. The advantage of the proposed PTP time synchronization control algorithm is also supported from the slowly changing tonic nature of the clock drift, which can be properly modeled with finite number of poles. The update rules of the RLS algorithm are summarized in Table 1.

3. Simulations and Results

In this section, the performances of the proposed PTP time synchronization algorithm are evaluated with computer simulations. To verify the excellence of the proposed algorithm, the time synchronizing performances of the proposed algorithm were compared with IEEE 1588 PTP [1] and Kalman-filter-based clock synchronization algorithm [18]. Network noise and clock drift were applied to time synchronizing environments as disturbances.
For the application of disturbances to time synchronizing environments, the clock drift was modeled as a sinusoidal waveform where the frequency is 0.025 Hz, and the network noise was modeled as an additive white gaussian noise and colored noise. The amount of the effect of clock drift was controlled by varying the RMS value of the clock drift, which is represented as Equation (10):
d R M S = 1 N n = 1 N d ( n ) 2 ,
where d R M S : the RMS value of clock drift waveform, N : the total number of the time synchronization process, and d ( n ) : the values of clock drift waveform at the instant n . For the comparison of the time synchronizing performances, the RMS values of time offset were obtained for the three algorithms using Equation (11):
t o f f , R M S = 1 N n = 1 N t o f f ( n ) 2 ,
where t o f f , R M S : the RMS value of time offset data, N : the total number of the time offset data, and t o f f ( n ) : the time offset measured at the instant n .
The improved time synchronizing performance of the proposed algorithm is illustrated with the examples of simulation results in Figure 6. The disturbance affected time offset is significantly reduced by applying the proposed algorithm, as shown in Figure 6a. By comparing the power spectrums of the measured time offset and that of the estimated time offset as shown in Figure 6b,c, respectively, it is also observed that the disturbance affected time offset is effectively estimated by the stochastic model-based disturbance estimator. In the simulation, the synchronization interval is set to 4 s, the initial clock rate of the reference clock and local clock are set to 100 Hz and 150 Hz, respectively, and the length of the RLS filter is set to 10. The RMS value of the clock drift is set to 1.5 × 10 2 Hz, and the variance of network noise is set to 2.5 × 10 5 s 2 . The power spectrum of the time offset signal is obtained by Equation (12):
Y PSD [ ω ] = { 1 N n = 1 N t o f f ( n ) e j ω n } 2 ,
where Y PSD [ ω ] : the power spectrum of the time offset data and N : the total number of the time offset data.
The simulation results of the proposed algorithm are summarized in Table 2. The performances of time offset reduction were obtained by applying the disturbances with varying amounts. In the simulations, the variance of the network noise varies from 2.5 × 10 7 to 3.125 × 10 5 s 2 , and the RMS value of the clock drift is fixed to 0.01 Hz . In a similar way, the RMS value of the clock drift varies from 3.5 × 10 3 to 1.5 × 10 2 Hz , and the variance of the network noise is fixed to 2.5 × 10 7 s 2 .
The advantages of the application of the proposed algorithm are also shown by comparing its performance with those of the other representative algorithms, i.e., the IEEE 1588 PTP algorithm and the Kalman-filter-based time synchronization algorithm, under various noise environments. Two types of noise, i.e., white noise and colored noise, were used to for the simulation. The colored noise was modeled as a summation of the two components. One is the additive white gaussian noise and the other one is the sinusoidal waveform which reflects slowly varying characteristic of clock drift. The length of the RLS filter is set to 25 in order to sufficiently reflect the dynamic variations of clock drift.
As shown in Table 3, the proposed algorithm shows better performance than those of the other two algorithms in the case of a white noise environment. The proposed algorithm shows up to 4.5% and 3% of relative time offset reductions with respect to those of IEEE 1588 PTP and the Kalman algorithm when the white noise level is 3 × 10 2 s2. For the colored noise, the proposed algorithm shows more distinctive superiority compared to the other algorithms. It is shown that the relative reduction of 84% is achieved for the colored noise having the variance of 3 × 10 5 s2. This high level of superiority is attributed to the ‘colored-noise representation fidelity’ of the stochastic modeling approach.

4. Conclusions

In this paper, an improved PTP time synchronization algorithm is proposed. The proposed algorithm effectively estimates and reduces arbitrary patterns of network and clock-drift disturbances by applying an adaptive estimation of disturbance effects and its direct compensation in the PTP clock synchronization system. It was verified through computer simulations that the proposed algorithm shows better performance than those of the other representative algorithms, i.e., IEEE 1588 PTP and Kalman-filter-based algorithm. Simulation results showed that the proposed algorithm reduces the RMS value of time offset up to 4.5% and 3% with respect to those of IEEE 1588 PTP and the Kalman algorithm when the white noise level is 3 × 10 2 s2. The proposed algorithm, more distinctively, shows 84% of relative reduction for the colored noise with the variance of 3 × 10 5 s2. The proposed time synchronization algorithm is expected to contribute to the realization of a future Ethernet-based industry-plant monitoring and control including IEC 61850-based digital substation.

Author Contributions

Conceptualization, Y.-D.S.; Formal analysis, Y.-D.S., K.D.N. and G.-S.A.; Validation, Y.-D.S. and K.J.S.; Writing—Original Draft, Y.-D.S.; Conceptualization, T.G.C.; Methodology, T.G.C.; Supervision, T.G.C.; Writing—Review and Editing, K.J.S. and T.G.C.; Data Curation, S.-H.K.; Funding Acquisition, S.-H.K.; Project Administration, S.-H.K.; Resources, S.-H.K.

Funding

This research was supported in part by Korea Electric Power Corporation, grant number R17XA05-2. This research was also supported in part by the Chung-Ang University Graduate Research Scholarship in 2018.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Edison, J. IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems; IEEE Std 1588™; IEEE: New York, NY, USA, 2008. [Google Scholar]
  2. Yin, H.; Fu, P.; Qiao, J.Q.; Li, Y.P. The implementation of IEEE 1588 clock synchronization protocol based on FPGA. In Proceedings of the IEEE International Instrumentation and Measurement Technology Conference, Houston, TX, USA, 14–17 May 2018. [Google Scholar]
  3. Dong, M.; Qju, Z.L.; Pan, W.T.; Chen, C.; Zhang, J.X.; Zhang, D. The Design and Implementation of IEEE 1588v2 Clock Synchronization System by Generating Hardware Timestamps in MAC Layer. In Proceedings of the International Conference on Computer, Information and Telecommunication Systems, Colmar, France, 11–13 July 2018. [Google Scholar]
  4. Maftei, D.; Bartos, R.; Noseworthy, B.; Carlin, T. Implementing Proposed IEEE 1588 Integrated Security Mechanism. In Proceedings of the IEEE International Symposium on Precision Clock Synchronization for Measurement, Control, and Communication, Geneva, Switzerland, 30 September–5 October 2018. [Google Scholar]
  5. Cui, S.J.; Zeng, P.; Wang, L.; Li, P.; Huang, X.T.; Xu, Q. Research on Time Synchronization Technology for Wide-Area Measurement in the Distribution Network. In Proceedings of the International Conference on Information Science and Control Engineering, Zhengzhou, China, 20–22 July 2018. [Google Scholar]
  6. Galina, S. Standard Profile for Use of IEEE 1588 Precision Time Protocol in Power System Applications; IEEEC37.238-2011; IEEE: New York, NY, USA, 14 July 2011; Available online: https://ieeexplore.ieee.org/servlet/opac?punumber=5963697 (accessed on 10 August 2019).
  7. Galina, S. Standard Profile for Use of IEEE 1588 Precision Time Protocol in Power System Applications; IEEEC37.238-2017; IEEE: New York, NY, USA, 19 June 2017; Available online: https://ieeexplore.ieee.org/servlet/opac?punumber=7953614 (accessed on 10 August 2019).
  8. Son, K.J.; Chang, T.G. The Effect of Time Synchronization Error in LAN-based Digital Substation. Sens. Netw. 2019, 19, 2044. [Google Scholar] [CrossRef] [PubMed]
  9. Guo, H.; Crossley, P. Design of a time synchronization system based on GPS and IEEE 1588 for transmission substations. IEEE Trans. Power Del. 2017, 32, 2091–2100. [Google Scholar] [CrossRef]
  10. Michael, M. Precision Time Protocol Profile for Power Utility Automation; IEC 61850-9-3; IEC: Geneva, Switzerland, 2016; Available online: https://ieeexplore.ieee.org/servlet/opac?punumber=7479436 (accessed on 10 August 2019).
  11. Ingram, D.M.E.; Schaub, P.; Campbell, D.A. Use of Precision Time Protocol to Synchronize Sampled-Value Process Buses. IEEE Trans. Instrum. Meas. 2012, 61, 1173–1180. [Google Scholar] [CrossRef] [Green Version]
  12. Bi, T.S.; Guo, J.R.; Xu, K.; Zhang, L.; Yang, Q. The Impact of Time Synchronization Deviation on the Performance of Synchrophasor Measurements and Wide Area Damping Control. IEEE Trans. Smart Grid 2017, 8, 1545–1552. [Google Scholar] [CrossRef]
  13. Zhang, Z.H.; Gong, S.P.; Dimitrovski, A.D.; Li, H.S. Time Synchronization Attack in Smart Grid: Impact and Analysis. IEEE Trans. Smart Grid 2013, 4, 87–98. [Google Scholar] [CrossRef]
  14. Moussa, B.; Debbabi, M.; Assi, C. A Detection and Mitigation Model for PTP Delay Attack in an IEC 61850 Substation. IEEE Trans. Smart Grid 2018, 9, 3954–3965. [Google Scholar] [CrossRef]
  15. Lv, S.; Lu, Y.M.; Ji, Y.F. An Enhanced IEEE 1588 Time Synchronization for Asymmetric Communication Link in Packet Transport Network. IEEE Commun. Lett. 2010, 14, 764–766. [Google Scholar] [CrossRef]
  16. Lee, S.; Lee, S.; Hong, C. An Accuracy Enhanced IEEE 1588 Synchronization Protocol for Dynamically Changing and Asymmetric Wireless Links. IEEE Commun. Lett. 2012, 16, 190–192. [Google Scholar] [CrossRef]
  17. Anyaegbu, M.; Wang, C.X.; Berrie, W. Dealing with Packet Delay Variation in IEEE 1588 Synchronization Using a Sample-Mode Filter. IEEE Intell. Transp. Syst. Mag. 2013, 5, 20–27. [Google Scholar] [CrossRef]
  18. Giorgi, G.; Narduzzi, C. Performance Analysis of Kalman-Filter-Based Clock Synchronization in IEEE 1588 Networks. IEEE Trans. Instrum. Meas. 2011, 60, 2902–2909. [Google Scholar] [CrossRef]
  19. Tournier, J.C.; Goerlitz, O. Strategies to secure the IEEE 1588 protocol in digital substation automation. In Proceedings of the 2009 Fourth International Conference on Critical Infrastructures, Linkoping, Sweden, 27 March–30 April 2009. [Google Scholar]
  20. Han, M.Y.; Guo, H.; Crossley, P. IEEE 1588 time synchronisation performance for IEC 61850 transmission substations. Int. J. Electr. Power Energy Syst. 2019, 107, 264–272. [Google Scholar] [CrossRef]
  21. Li, X.J.; Yang, G.H. Adaptive Fault-Tolerant Synchronization Control of a Class of Complex Dynamical Networks With General Input Distribution Matrices and Actuator Faults. IEEE Trans. Neural Netw. Learn. Syst. 2017, 28, 559–569. [Google Scholar] [CrossRef] [PubMed]
Figure 1. A functional block diagram suggested for the dynamics modeling of the Precision Time Protocol (PTP) clock system reflecting three typical disturbances (clock frequency drift, clock rate offset, and network noise).
Figure 1. A functional block diagram suggested for the dynamics modeling of the Precision Time Protocol (PTP) clock system reflecting three typical disturbances (clock frequency drift, clock rate offset, and network noise).
Sensors 19 03499 g001
Figure 2. The signal flow diagram of the PTP time synchronization control system obtained from the dynamic model reflecting the disturbances.
Figure 2. The signal flow diagram of the PTP time synchronization control system obtained from the dynamic model reflecting the disturbances.
Sensors 19 03499 g002
Figure 3. The stable region of syntonization gain.
Figure 3. The stable region of syntonization gain.
Sensors 19 03499 g003
Figure 4. A functional block diagram of the proposed adaptive PTP time synchronization algorithm.
Figure 4. A functional block diagram of the proposed adaptive PTP time synchronization algorithm.
Sensors 19 03499 g004
Figure 5. Signal flow diagram of the dynamic modeling of the PTP time synchronization system with direct compensation of the disturbance effects.
Figure 5. Signal flow diagram of the dynamic modeling of the PTP time synchronization system with direct compensation of the disturbance effects.
Sensors 19 03499 g005
Figure 6. The simulation results of the proposed algorithm with the direct compensation of the disturbance effects. (a) time synchronization performances (compensated time offset) of the proposed algorithm, (b) power spectrum of the disturbance affected time offset, and (c) power spectrum of the estimated time offset.
Figure 6. The simulation results of the proposed algorithm with the direct compensation of the disturbance effects. (a) time synchronization performances (compensated time offset) of the proposed algorithm, (b) power spectrum of the disturbance affected time offset, and (c) power spectrum of the estimated time offset.
Sensors 19 03499 g006aSensors 19 03499 g006b
Table 1. The update rules of the recursive least square (RLS) algorithm.
Table 1. The update rules of the recursive least square (RLS) algorithm.
The initial set values of the RLS algorithm is
w ¯ ( 0 ) = 0
P ( 0 ) = δ 1 I
For each instant of time, n = 1 , 2 , , compute
π ( n ) = P ( n 1 ) y ¯ ( n 1 ) ,
k ¯ ( n + 1 ) = π ( n ) 1 + y ¯ ( n 1 ) π ( n ) ,
ξ ( n ) = y ( n ) y ^ ( n ) ,
w ¯ ( n + 1 ) = w ¯ ( n ) + k ¯ ( n ) ξ ( n ) ,
and
P ( n ) = P ( n 1 ) k ( n ) y ¯ ( n 1 ) P ( n 1 )
Note,
y ¯ ( n ) = ( y ( n 1 ) y ( n 2 ) y ( n M ) )
Table 2. Simulation results in various network noises and clock drifts.
Table 2. Simulation results in various network noises and clock drifts.
Various Disturbances RMS   Values   of   Time   Offset   [ nanosec ]
IEEE 1588 PTPProposed Algorithm
Variance of Network Noise [ s 2 ] 2.5 × 10 7 4.2711 2.0786
1.25 × 10 6 4.32182.2311
6.25 × 10 6 4.41342.3391
3.125 × 10 5 5.02643.0110
RMS Values of Clock Drift [ H z ] 3.5 × 10 3 1.36181.3856
7.0 × 10 3 2.14651.8152
1.0 × 10 2 4.00742.3112
1.5 × 10 2 5.87462.7911
Table 3. Performance summary table of simulation results in various noise environments.
Table 3. Performance summary table of simulation results in various noise environments.
Variance   of   Noise   [ s 2 ] Root   Mean   Square   ( RMS )   Values   of   Time   Offset   [ s ]
IEEE 1588 PTP [1]Kalman Filter Algorithm [18]Proposed Algorithm
White Noise 3 × 10 5 0.009640.009480.00941
3 × 10 4 0.031350.030790.03035
3 × 10 3 0.101330.100130.09832
3 × 10 2 0.330510.327250.31981
Colored Noise 3 × 10 5 0.058860.059280.00958
3 × 10 4 0.065610.065540.02963
3 × 10 3 0.116400.114440.09564
3 × 10 2 0.317990.313600.30254

Share and Cite

MDPI and ACS Style

Seo, Y.-D.; Son, K.J.; An, G.-S.; Nam, K.D.; Chang, T.G.; Kang, S.-H. Improved Time-Synchronization Algorithm Based on Direct Compensation of Disturbance Effects. Sensors 2019, 19, 3499. https://doi.org/10.3390/s19163499

AMA Style

Seo Y-D, Son KJ, An G-S, Nam KD, Chang TG, Kang S-H. Improved Time-Synchronization Algorithm Based on Direct Compensation of Disturbance Effects. Sensors. 2019; 19(16):3499. https://doi.org/10.3390/s19163499

Chicago/Turabian Style

Seo, Yeoung-Duk, Kyou Jung Son, Gi-Sung An, Kyung Deok Nam, Tae Gyu Chang, and Sang-Hee Kang. 2019. "Improved Time-Synchronization Algorithm Based on Direct Compensation of Disturbance Effects" Sensors 19, no. 16: 3499. https://doi.org/10.3390/s19163499

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop