Round-trip delay

From HandWiki
Short description: Time required to receive a response to a query across a communication system

In telecommunications, round-trip delay (RTD) or round-trip time (RTT) is the amount of time it takes for a signal to be sent plus the amount of time it takes for acknowledgement of that signal having been received. This time delay includes propagation times for the paths between the two communication endpoints.[1] In the context of computer networks, the signal is typically a data packet. RTT is also known as ping time, and can be determined with the ping command.

End-to-end delay is the length of time it takes for a signal to travel in one direction and is often approximated as half the RTT.

Protocol design

Round-trip delay and bandwidth are independent of each other. As the available bandwidth of networks increases, the round trip time does not similarly decrease, as it depends primarily on constant factors such as physical distance and the speed of signal propagation.[2]

Networks with both high bandwidth and a high RTT (and thus high bandwidth-delay product) can have very large amounts of data in transit at any given time. Such long fat networks require a special protocol design.[3] One example is the TCP window scale option.

The RTT was originally estimated in TCP by:

[math]\displaystyle{ \mathrm{RTT} = \alpha \cdot \mathrm{old\_RTT} + (1 - \alpha) \cdot \mathrm{new\_round\_trip\_sample} }[/math]

where [math]\displaystyle{ \alpha }[/math] is constant weighting factor ([math]\displaystyle{ 0 \leq \alpha \lt 1 }[/math]).[4] Choosing a value for [math]\displaystyle{ \alpha }[/math] close to 1 makes the weighted average immune to changes that last a short time (e.g., a single segment that encounters long delay). Choosing a value for [math]\displaystyle{ \alpha }[/math] close to 0 makes the weighted average respond to changes in delay very quickly. This was improved by the Jacobson/Karels algorithm, which takes standard deviation into account as well. Once a new RTT is calculated, it is entered into the equation above to obtain an average RTT for that connection, and the procedure continues for every new calculation.

Wi-Fi

Accurate round-trip time measurements over Wi-Fi using IEEE 802.11mc are the basis for the Wi-Fi positioning system.

See also

References

  1. Round-trip delay time, Boulder, Colorado: National Telecommunications and Information Administration's Institute for Telecommunication Sciences, http://www.its.bldrdoc.gov/fs-1037/dir-031/_4641.htm, retrieved 2021-05-29 
  2. Aron Brand (May 6, 2020), "How latency is killing your app performance". Medium.com.
  3. Brian Heder (May 6, 2014), "Are your pipes too big?", Network World, http://www.networkworld.com/article/2176641/tech-primers/are-your-pipes-too-big-.html, retrieved 2016-01-09 
  4. Douglas E. Comer (2000). Internetworking with TCP/IP - Principles, Protocols and Architecture (4th ed.). Prentice Hall. p. 226. ISBN 978-0-13-018380-4.