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 algorithm achieves synchronization without these problems. We first analyze the convergence property of the algorithm and provide necessary and sufficient conditions on the parameters to guarantee synchronization. We then implement our solution on a cluster of IBM BladeCenter servers running Linux and study its performance. In particular, both analytically and experimentally, we show that our algorithm can converge in the presence of timing loops. 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. For example, it is demonstrated that highly connected subnetworks can collectively outperform individual clients when the time source has large jitter. It is also experimentally demonstrated that our algorithm outperforms other well-established software-based solutions such as the NTPv4 and IBM Coordinated Cluster Time (IBM CCT).
Introduction
Computer clocks are inherently unreliable, drifting apart due to hardware manufacturing variations and environmental factors like temperature changes (frequency skew). They also suffer from measurement errors caused by network congestion and operating system latency. Traditional synchronization protocols, such as the Network Time Protocol (NTP), typically address these issues through periodic offset corrections ("jumps") or explicit skew estimation. However, "jumps" can cause jitter and backward time movement, while explicit skew estimation often requires complex computations and long data histories, making systems brittle to network fluctuations.
Furthermore, industry standards strictly avoid "timing loops"—circular synchronization paths—fearing feedback instability. This research proposes a "skewless" synchronization algorithm that challenges these conventions, treating network synchronization as a physical system where timing loops can actually enhance performance.
Methodology
The proposed "Algorithm 1" (Alg1) is designed around two core principles: continuity and skew independence. Rather than performing abrupt corrections, Alg1 smoothly adjusts the clock's rate. It avoids explicit frequency error estimation by utilizing the current time offset and an exponentially weighted moving average (EWMA) of past offsets.
The system is modeled mathematically as a spring-mass system. While a basic synchronization approach might oscillate indefinitely (like a spring without friction), the addition of the EWMA state introduces "friction," damping oscillations and ensuring convergence. The authors provide a rigorous control-theoretic analysis to define parameter ranges ($\kappa_1, \kappa_2, p, \tau$) that guarantee stability across various network topologies.
Experimental Setup
The algorithm was evaluated on a physical cluster of 10 IBM BladeCenter LS21 servers running Linux. Synchronization occurred over a standard Gigabit Ethernet switch. To establish "ground truth" for accuracy measurements, a secondary high-speed Cisco 4x InfiniBand network was used to collect time data with minimal interference. Alg1 was benchmarked against NTPv4 and IBM Coordinated Cluster Time (CCT).
Key Insights and Results
A primary finding of this study is that timing loops are a beneficial feature rather than a liability. In highly connected subnetworks, nodes collectively filter noise; if one node receives a jittery update, its neighbors help pull it back toward the average. The network effectively acts as a distributed low-pass filter.
Experimental results demonstrate the superiority of this approach:
- Jitter Reduction: Increasing network connectivity (adding loops) reduced mean relative deviation by a factor of 6.26, representing an 8dB noise reduction.
- Accuracy: In a 30-hour test, Alg1 achieved a mean deviation of 3.1µs, significantly better than NTPv4's 8.1µs.
- Convergence Speed: After a 25ms offset injection, Alg1 returned to microsecond precision within 1 hour, whereas NTPv4 required 4.5 hours.
- Robustness: Alg1 outperformed IBM CCT in noisy environments due to its tunable parameters that provide robustness without complex pre-filtering.
Conclusion
The skewless algorithm presented here offers a robust, high-precision alternative to traditional network synchronization methods. By embracing timing loops and utilizing implicit skew compensation, it achieves microsecond-level accuracy and faster convergence. Future work will explore optimal parameter settings for dynamic or massive networks where the network's Laplacian eigenvalues may be unknown, and seek generalized stability proofs for arbitrary directed graphs and asynchronous update intervals.
Summary updated