发布于 2022-09-10 16:16:26
不,您不能仅通过偏移量--往返延迟直接参与计算,如下所示(请参阅https://www.eecis.udel.edu/~mills/time.html)。
基本上(还有更多),NTP估计如下:
offset = ((T2 - T1) + (T3 - T4))/2
delay = (T4 - T1) - (T3 - T2)
-where:
T1 = client timestamp at time of departure of request packet from client
T2 = server timestamp at time of ARRIVAL of request packet at server
T3 = server timestamp at time of departure of REPLY packet from server
T4 = client timestamp at time of ARRIVAL of REPLY packet back at clienthttps://stackoverflow.com/questions/73642238
复制相似问题