Why does a download not use the full line? A single TCP connection is limited by the round-trip time, by the packet loss and by the window of the receiver. The TCP throughput calculator applies the Mathis formula and the window limit, and gives the expected throughput, the share of the link used and the window needed to fill the link.
How the calculation works
- Enter the MSS (1460 bytes on Ethernet), the round-trip time of the path and the packet loss rate.
- Enter the receive window of the receiver and the capacity of the slowest link on the path.
- The calculator applies the Mathis formula, throughput ≈ (MSS / RTT) × 1.22 / √p, where p is the loss rate, and the window limit of window / RTT.
- The throughput is the smallest of the three limits. The result also gives the share of the link used and the window needed to fill the link.
Example
A path has an MSS of 1460 bytes, an RTT of 50 ms, a loss rate of 0.1 %, a receive window of 256 KB and a 1000 Mbps link. The loss limit is 1460 × 8 / 0.05 × 1.2247 / √0.001 = 9.05 Mbps, the window limit is 41.94 Mbps, and the throughput is 9.05 Mbps: only 0.9 % of the link. To fill the link you would need a window of 6,104 KB, and almost no loss.
Why it matters
The calculator helps network engineers, gamers, remote workers and people who move large files over a long distance to understand why a connection is slow and what to change. It is also used to explain the effect of loss on a satellite or a wireless link.
Good to know
The Mathis formula is a model of long flows with random loss and a standard congestion control. Real throughput changes with the congestion control, with bursts of loss, with the buffers and with the other flows on the path. Short connections never reach the limit, because the slow start phase takes several round trips. Use the result as an order of magnitude, and measure with a tool such as iperf for a real path.
Related tools
The bandwidth-delay product calculator gives the data in flight on a path, the network latency calculator estimates the delay of a link, the download time calculator turns a speed into a duration, and the streaming data calculator estimates the data of a video stream.