Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks.
The protocol is usually described in terms of a client-server model, but can as easily be used in peer-to-peer relationships where both peers consider the other to be a potential time source.
Clock synchronization :
A typical NTP client will regularly poll three or more servers on diverse networks. To synchronize its clock, the client must compute their time offset and round-trip delay.
Round Trip Delay :
d=(T4-T1)-(T2-T3)
Time Offset :
t=(T2-T1)+(T3-T4)/2
The protocol is usually described in terms of a client-server model, but can as easily be used in peer-to-peer relationships where both peers consider the other to be a potential time source.
Clock synchronization :
A typical NTP client will regularly poll three or more servers on diverse networks. To synchronize its clock, the client must compute their time offset and round-trip delay.
Round Trip Delay :
d=(T4-T1)-(T2-T3)
Time Offset :
t=(T2-T1)+(T3-T4)/2