3 ms·
If Alice pings Bob first, and then sends the total round-trip time to Bob along with the timestamp, then can't Bob easily discover the asymmetry as a constant o
by magicalhippo 5y ago
If Alice pings Bob first, and then sends the total round-trip time to Bob along with the timestamp, then can't Bob easily discover the asymmetry as a constant offset compared to the adjusted clock?
Say Bob assumes the round-trip is symmetrical and adjusts his local time to the time Alice sends minus half the round-trip time, then any asymmetry should be visible as a consistent offset between the local time and the time from Alice no?
This of course assumes the latency and local clocks are relatively stable over the measurement period.
- josephcsible 5y agoNo, that doesn't work. See https://cs.stackexchange.com/q/602/86141 https://cs.stackexchange.com/q/602/86141 for an explanation of why it's impossible. If you tried your method with concrete numbers, you'd see that it would always say the delay is perfectly symmetric, even when it actually isn't.
- magicalhippo 5y ago> If you tried your method with concrete numbers, you'd see that it would always say the delay is perfectly symmetric, even when it actually isn't. I did make an Excel sheet but clearly I dun goofed. Too late for math!
- toast0 5y agoIf all you have is Alice and Bob, there's no way to determine the time from Alice to Bob, or from Bob to Alice, you can only determine the sum of the two. This is because Alice and Bob have different local time scales. To put it another way, you can't distinguish being in sync and Bob -> Alice taking 4 ms, and Alice -> Bob taking 6 ms, from being out of sync by 1 ms, and both directions taking 5 ms. If you've got an external reference, such as GPS or an adjusted for time in transit radio clock, you can figure this out. If you've got a asymmetric first hop, but afterwards a mostly symmetric path (common for residential customers connecting to commercially hosted ntp servers) and a set of servers that are different round trips away, you can get an estimate. But if all the servers are the same/similar round trips, you likely won't have enough information.