Abstract:
Accurate one-way delay measurement is critical for temporal consistency in distributed simulation systems; however, hardware clock drift and “clock jumps” caused by network time protocol (NTP) can significantly reduce accuracy. To address this, this paper proposes a lightweight, high-precision clock synchronization and delay measurement mechanism. This mechanism adopts a “coarse-tuning–fine-tuning–jump handling” architecture: On the basis of NTP coarse-tuning, an adaptive user datagram protocol (UDP) probing strategy based on network fluctuations is designed to reduce the overhead; an algorithm that combines Kalman filtering and exponential moving average is proposed to smooth out and compensate for clock deviations; and a hard reset mechanism is introduced to eliminate the interference of NTP time synchronization jumps. Experiments demonstrate that this mechanism successfully eliminates clock jump interference, stabilizes accuracy at the microsecond level, and maintains strong robustness even under adverse wide area network (WAN) conditions (5% packet loss, 80 ms latency). Compared to traditional solutions, control messages are reduced by 76.8% and CPU utilization drops to 24.9%, achieving an effective balance between high accuracy and lightweight implementation. This mechanism does not rely on dedicated timing hardware and is suitable for software-based deployment scenarios such as cloud-edge collaboration, hardware-in-the-loop simulation, and multi-region federated simulation. It offers the advantages of low cost, ease of deployment, and strong engineering compatibility.