CS FundamentalsVery hardGATE CS · networking placement

An NTP client sends a request at t1 = 100 ms (client clock); the server receives it at t2 = 150 ms and replies at t3 = 152 ms (server clock); the reply arrives at t4 = 120 ms (client clock). What are the clock offset (server minus client) and the round-trip delay?

  1. A. Offset 50 ms, delay 20 ms
  2. B. Offset 41 ms, delay 20 ms
  3. C. Offset 41 ms, delay 18 ms
  4. D. Offset 32 ms, delay 18 ms

Correct answer: C. Offset 41 ms, delay 18 ms

θ = ((t2 − t1) + (t3 − t4)) / 2 = (50 + 32) / 2 = 41 ms and δ = (t4 − t1) − (t3 − t2) = 20 − 2 = 18 ms. Using t4 − t1 alone for the delay forgets the server's 2 ms of processing.

More Computer Networks questions

Exams that ask this topic