Cristian's algorithm
Cristian's algorithm is a method for clock synchronization which can be used in many fields of distributive computer science but is primarily used in low-latency intranets. Cristian observed that this simple algorithm is probabilistic, in that it only achieves synchronization if the round-trip time of the request is short compared to required accuracy. It also suffers in implementations using a single server, making it unsuitable for many distributive applications where redundancy may be crucial.
Description
Cristian's algorithm works between a process P, and a time server S connected to a time reference source. Put simply:- P requests the time from S at time.
- After receiving the request from P, S prepares a response and appends the time from its own clock.
- P receives the response at time then sets its time to be, where.