5 ms·
Does anyone have a good explainer for how the NTP protocol works? I can't quite wrap my head around how you could possibly synchronize two machines in time over
by distract8901 3y ago
Does anyone have a good explainer for how the NTP protocol works? I can't quite wrap my head around how you could possibly synchronize two machines in time over a network with unknown and unpredictable latency.
- mhh__ 3y agoIt's not quick but "Computer Network Time Synchronization" by Mills
- LVB 3y agoSpecifically on the latency question, have a look at https://stackoverflow.com/a/18779822 https://stackoverflow.com/a/18779822 for a basic explanation. tldr, once you allow for two-way communication you can start to factor out the network delay.
- LeoPanthera 3y agoNTP uses the "intersection algorithm": https://en.wikipedia.org/wiki/Intersection_algorithm https://en.wikipedia.org/wiki/Intersection_algorithm