Skewless Network Clock Synchronization Without Discontinuity: Convergence and Performance

Enrique Mallada, Xiaoqiao Meng, Michel Hack, Li Zhang, Ao Tang · DOI

Abstract

This paper examines synchronization of computer clocks connected via a data network and proposes a skewless algorithm to synchronize them. Unlike existing solutions, which either estimate and compensate the frequency difference (skew) among clocks or introduce offset corrections that can generate jitter and possibly even backward jumps, our solution achieves synchronization without these problems. We first analyze the convergence property of the algorithm and provide explicit necessary and sufficient conditions on the parameters to guarantee synchronization. We then study the effect of noisy measurements (jitter) and frequency drift (wander) on the offsets and synchronization frequency, and further optimize the parameter values to minimize their variance. Our study reveals a few insights, for example, we show that our algorithm can converge even in the presence of timing loops and noise, provided that there is a well defined leader. This marks a clear contrast with current standards such as NTP and PTP, where timing loops are specifically avoided. Furthermore, timing loops can even be beneficial in our scheme as it is demonstrated that highly connected subnetworks can collectively outperform individual clients when the time source has large jitter. The results are supported by experiments running on a cluster of IBM BladeCenter servers with Linux.

Introduction

In distributed systems, maintaining precise temporal alignment across nodes is a fundamental challenge. Local hardware oscillators inevitably exhibit "skew" (differences in ticking rates) and "wander" (drifts caused by environmental factors like temperature). Traditional protocols like the Network Time Protocol (NTP) and Precision Time Protocol (PTP) typically address these issues by either performing discrete "time jumps" or by explicitly estimating frequency errors. These methods often introduce discontinuities that disrupt time-sensitive applications or require complex, noise-sensitive estimation logic. This paper introduces a "skewless" synchronization algorithm that ensures smooth, continuous time adjustment while leveraging network topology in novel ways.

The Skewless Synchronization Algorithm

The proposed algorithm, referred to as Alg1, treats network synchronization as a second-order consensus control problem. Instead of attempting to explicitly calculate and compensate for clock skew, the algorithm utilizes two primary state variables: the current measured offset between a node and its neighbors, and an exponentially weighted moving average of past offsets.

Illustration of computer time estimate $x_i(t)$ relative to UTC time $t$, and the measurement of offset and relative skew.

In this framework, the moving average serves a role analogous to "friction" in a physical spring-mass system. Without this damping factor, adjusting a clock's rate based solely on instantaneous offset would lead to instability and oscillation. By incorporating this state, the authors utilize the Hermite-Biehler Theorem to define a stable parameter space for polling intervals and gain factors, ensuring guaranteed convergence.

Key Results and Performance Analysis

The algorithm was validated on a cluster of IBM BladeCenter LS21 servers. Performance was benchmarked against NTPv4 and IBM Coordinated Cluster Time (CCT), using a 10Gbps InfiniBand network as a high-precision ground truth reference.

Experimental results showing residual offset over days (left) and the algorithm's response to an introduced offset (right).

The experimental results highlighted several significant advantages:

  • Accuracy: Alg1 demonstrated a 5.0x reduction in error compared to NTPv4, maintaining a maximum offset of 20.6µs where NTPv4 reached 1.4ms.
  • Convergence Speed: Following a 25ms offset injection, Alg1 stabilized within one hour—significantly faster than the 4.5 hours required by NTPv4.
  • Topology Benefits: A key finding is that timing loops, usually prohibited in network synchronization, can actually improve performance. Highly connected subnetworks were shown to collectively filter measurement noise, reducing relative deviation by approximately 8dB.

Conclusion

The proposed skewless algorithm provides a robust, continuous method for network clock synchronization that outperforms current standards in both accuracy and convergence speed. By shifting the paradigm from loop-avoidance to loop-utilization, the system achieves superior noise rejection. Future work will focus on adapting the algorithm for dynamic network conditions and comparing its performance against hardware-assisted protocols like PTP (IEEE 1588).

Summary updated

BibTeX
@inproceedings{mallada2014skewless,
  author = {Enrique Mallada and Xiaoqiao Meng and Michel Hack and Li Zhang and Ao Tang},
  title = {{Skewless Network Clock Synchronization Without Discontinuity: Convergence and Performance}},
  booktitle = {IEEE/ACM},
  year = {2014},
  doi = {10.1109/tnet.2014.2345692},
}
Figure