round-trip time

The time it takes for a message to travel from one computer to another and for the reply to come back.

In more detail

Round-trip time, often shortened to RTT, is usually measured in milliseconds and sets a lower limit on how long any request-and-answer exchange can take. Distance matters because signals cannot travel faster than light in the cable, and real routes add switches and detours on top. Anything that waits for a reply on every step, such as synchronous replication, is slowed by it on every write.

Examples

rtt = 2 * d / FIBRE_KM_PER_MS   # a floor: real fibre routes are longer
London to Ashburn, about 5,917 km: at least 59.2 ms, so at most 17 commits a second per writer.

Related terms

Taught in

References