Clock Compensation Strategy in Train Ethernet

Xiaoyong Zhang, Jun Peng, Shuo LiProceedings of the 2nd International Symposium on Computer, Communication, Control and Automation 2013

Abstract: How to degrade the delay time of gateway queuing with heavy network load in train communication networks is the key to guarantee the stability of the train. This article models the queue scheduling problem modeling into reinforcement learning process, puts forward an adaptive weights learning polling scheduling algorithm with the purpose of dynamic scheduling for vehicle gateway node queue. With the compare of algorithm in this paper and weighted roundrobin scheduling algorithm in adequate and inadequate bandwidth resources situations, we have approved the superiority of the algorithm in this paper. (Note: The original paper's abstract appears to describe a different topic than its technical content on clock synchronization).

Problem Statement

Modern trains rely on Ethernet for critical communication and control, necessitating high-precision clock synchronization (typically via the IEEE 1588 protocol). However, the harsh and complex electrical environments of trains introduce significant noise and jitter. Standard "direct" compensation methods—where a slave clock simply resets its time to match the master—create "time jumps" (fast forward or backward). These sudden mutations can destabilize distributed control systems that expect a continuous, monotonic flow of time. Furthermore, simple offset corrections don't account for frequency drift, meaning clocks inevitably drift apart again immediately after correction.

Proposed Indirect Compensation Method

The authors introduce a state-variable model to describe node clocks, focusing on two variables: time deviation and frequency deviation. Their core contribution is an indirect Kalman filter frequency clock compensation mechanism.

  1. IEEE 1588 Foundation: The system uses standard SYNC and Follow_UP messages to measure initial time offset and line delay.
  2. State-Space Modeling: The clock's behavior is modeled as a discrete recursive process influenced by Gaussian stochastic noise.
  3. Kalman Filtering: To handle measurement noise (jitter), a Kalman filter processes noisy timestamp data to produce a "cleaner" estimate of the actual frequency deviation.
  4. Indirect Compensation: Instead of jumping the slave clock's time, the system uses the Kalman filter's output to adjust the frequency of the slave clock's management unit. This "steers" the slave clock toward the master's time smoothly over time.
The impact of the Kalman filter: the filtered signal (dashed) is significantly more stable than the unfiltered signal (solid).

Simulation and Results

The study evaluates the strategy using Matlab simulations with a 100ms sync interval and random clock drift of $\pm30\mu s$ per 100ms.

The results demonstrate a clear superiority for the Kalman-filtered indirect approach:

  • Jitter Reduction: Direct compensation resulted in a "sawtooth" error pattern where the clock error fluctuated wildly within a 1.8ms range due to noise interference.
  • Precision: With the proposed frequency compensation, the clock error range was reduced to less than 0.2ms after just 400ms of operation.
  • Smoothness: The introduction of the Kalman filter significantly smoothed the trend of clock deviation, preventing the "mutations" seen in unfiltered systems.
Comparison showing that frequency compensation (solid line) provides a much smoother and lower error profile than direct compensation (dashed line).

Key Insights and Conclusion

The "aha moment" here is treating clock synchronization as a control problem rather than a simple data-entry problem. By adjusting the frequency (the "speed" of the clock) rather than the phase (the "current time"), the system achieves much higher stability. While direct compensation is "instant," the indirect method is more accurate in the long run, as it matches the actual heartbeat of the master clock.

Future work should address the assumption of symmetric delays, which often breaks down in congested networks, and explore hardware implementation on FPGAs to measure actual CPU overhead.

Summary updated

BibTeX
@inproceedings{zhang2013clock,
  author = {Xiaoyong Zhang and Jun Peng and Shuo Li},
  title = {{Clock Compensation Strategy in Train Ethernet}},
  booktitle = {Proceedings of the 2nd International Symposium on Computer, Communication, Control and Automation},
  year = {2013},
  doi = {10.2991/isccca.2013.119},
}
Figure