Christian Algorithm
Christian Algorithm
Upon request, the server S supplies the time according to its clock. Assumption: 1. No upper bound on delays 2. Round-trip times for message exchange are reasonably short (a small fraction of a second). A probabilistic algorithm: The method achieves synchronization only if the observed round-trip times are sufficiently short. The process Process p requests the time in a message mR, and receives the time value T in message mT (T is inserted in mT at the last possible point before transmission). process p records the total round-trip time Tround taken to send the request mR and receives the reply mT. A simple estimate of time for p to set its clock is: T + Tround /2 assuming the elapsed time is split equally before and after S placed T in mT.
4.
1.
2.
3.
If the two messages are transmitted over two different networks then the value of MINIMUM transmission (MIN) may be estimated and the accuracy of results can be determined as follows:
With Minimum Error: Earliest point at which S could have placed time T in mT = MIN after P dispatched mR T = mT + MIN With Maximum Error: Latest point at which S could have placed T in mT = MIN before mT arrived at p: Maximumm error is tRound MIN T = mT + (tRound MIN) Time Rage: The time (T) by Ss clock when the reply message arrives is therefore in the range of: [T + MIN, T + tRound MIN)] The width of this range is: tRound 2 MIN So the accuracy is: |( tRound / 2 - MIN)|