Synchronization
Synchronization
Goal: Never let two clocks in any system differ by more than ‘&’ time
units => synchronize at least every ‘&/(2p)’ seconds.
Christian Algorithm
• The simplest algorithm for setting time, it issues a remote procedure
call to time server and obtain the time.
• A machine sends a request to the time server in “d/2” seconds, where
d=maximum difference between a clock and UTC.
• The time server sends a reply with current UTC when receives the
request.
• The machine measures the time delay between time server sending
the message and machine receiving it. Then it uses the measure to
adjust the clock.
• The best estimation of message propagation time = (T0 + T1)/2.
• The new time can be set to the time returned by server plus time that
elapsed since server generated the time stamp.