Skip to main content

12. Clock-Adjust Process

The clock-adjust process runs at one-second intervals to apply frequency correction and a fixed percentage of residual offset theta_r. The TC parameter scales the time constant to match the poll interval. Dispersion (EPSILON) increases by PHI each second.

Timer Interrupt Mechanism

Seconds counter c.t: Starts at zero when service begins, increments once per second.

Interrupt handling:

  1. Timer interrupt occurs each second
  2. Calls clock_adjust() routine
  3. Applies time and frequency adjustments
  4. Scans associations to check if seconds counter equals or exceeds p.next
  5. If so, calls poll process to send packet and compute next p.next value

Implementation example in Appendix A.5.6.1 clock_adjust() routine.