I am trying to get a basic understanding of the NTP Algorithm. I read the Time Exchange section here. I have a few questions regarding it. Server A and Server B are trying to synchronise their times.
- A sends a packet to B. In the packet it stamps it's own time stamp as
original timestamp
- B receives the packet. Sends a packet to A with its time stamp known as
received time stamp
. B also adds one more time stamp called astransmit time stamp
. How does B calculate this? - A receives the packet. A will once more log its own receipt time to estimate the travelling time of the packet. The travelling time (delay) is estimated to be half of "the total delay minus remote processing time", assuming symmetrical delays.
There are 2 unknowns here - The time taken for the packet to travel and the offset between the two clocks. Isn't the information above insufficient to resolve both the unknowns?