[Paper Review] A System for Clock Synchronization in an Internet of Things
This paper proposes SPoT, a lightweight clock synchronization system for IoT devices that uses a novel packet protocol and scalable server-side computation to achieve sub-15ms accuracy despite high clock drift and instability in low-cost IoT hardware. The system outperforms SNTP and MQTT by up to 22x in synchronization accuracy under high noise, while maintaining low network overhead and scalability for large deployments.
Synchronizing clocks on Internet of Things (IoT) devices is important for applications such as monitoring and real time control. In this paper, we describe a system for clock synchronization in IoT devices that is designed to be scalable, flexibly accommodate diverse hardware, and maintain tight synchronization over a range of operating conditions. We begin by examining clock drift on two standard IoT prototyping platforms. We observe clock drift on the order of seconds over relatively short time periods, as well as poor clock rate stability, each of which make standard synchronization protocols ineffective. To address this problem, we develop a synchronization system, which includes a lightweight client, a new packet exchange protocol called SPoT and a scalable reference server. We evaluate the efficacy of our system over a range of configurations, operating conditions and target platforms. We find that SPoT performs synchronization 22x and 17x more accurately than MQTT and SNTP, respectively, at high noise levels, and maintains a clock accuracy of within ~15ms at various noise levels. Finally, we report on the scalability of our server implementation through microbenchmark and wide area experiments, which show that our system can scale to support large numbers of clients efficiently.
Motivation & Objective
- To address the challenge of clock synchronization in low-cost IoT devices with unstable, temperature-sensitive oscillators that exhibit high drift and poor rate stability.
- To design a lightweight, scalable synchronization system suitable for resource-constrained IoT platforms like Arduino MKR1000 and Raspberry Pi3.
- To develop a new packet exchange protocol (SPoT) that enables accurate synchronization without requiring complex client-side computation.
- To evaluate the system's performance across diverse operating conditions, noise levels, and hardware platforms.
- To demonstrate scalability of the reference server through microbenchmarks and wide-area experiments.
Proposed method
- The system employs a lightweight client that synchronizes its clock based on time information in SPoT response packets, requiring no local computation for offset or rate estimation.
- A scalable reference server computes clock offset, skew, and drift parameters using historical time samples and applies Kalman filtering to improve estimation robustness.
- SPoT uses a two-way packet exchange protocol to estimate path asymmetry and improve synchronization accuracy under variable network conditions.
- The system incorporates a novel algorithm to estimate and compensate for clock rate drift, particularly under temperature variations, using Allan variance analysis to characterize hardware instability.
- A filtering mechanism selects the most reliable time samples based on signal quality and stability metrics to reduce noise impact.
- The server is implemented to handle high client loads efficiently, with microbenchmarks showing only ~6K PPS throughput required for 1 million Arduino devices.
Experimental results
Research questions
- RQ1How does clock drift and rate instability vary across common IoT platforms like Arduino MKR1000 and Raspberry Pi3 under different temperature conditions?
- RQ2Can a lightweight, scalable synchronization protocol outperform standard protocols like SNTP and MQTT in terms of accuracy under high network noise and hardware instability?
- RQ3To what extent can a server-side computation model accurately estimate and compensate for clock offset and rate drift in diverse IoT hardware with varying drift characteristics?
- RQ4What is the network and computational overhead of deploying a scalable synchronization server for large-scale IoT deployments?
- RQ5How does path asymmetry in network communication affect synchronization accuracy, and can it be effectively mitigated in a low-overhead protocol?
Key findings
- SPoT achieves synchronization accuracy within approximately 15ms across various noise levels, significantly outperforming SNTP and MQTT.
- Under high noise conditions, SPoT reduces clock offset by 22x compared to MQTT and 17x compared to SNTP.
- The system maintains a root mean squared error (RMSE) of clock rate error within ~15ms, even with high hardware drift and temperature variation.
- The SPoT server demonstrates high scalability, requiring only about 6,000 packets per second to support one million Arduino devices.
- The system's performance is robust across diverse hardware platforms, including low-cost oscillators with high Allan variance and unstable clock rates.
- The use of server-side filtering and Kalman-based estimation enables accurate synchronization without increasing client-side computational or communication overhead.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.