Networking

Bandwidth-delay product and TCP window calculator

The TCP window needed to fill a long or fast link, and the throughput ceiling of the window you have.

Unit: Mbps
Unit: ms
Unit: KiB 64 KiB is the largest window without window scaling.

Result

Bandwidth-delay product
4.77 MiB (5,000,000 bytes)
Window needed to fill the link
4.77 MiB
Throughput ceiling with current window
13.11 Mbps
Achievable single-stream throughput
13.11 Mbps
Window scale factor needed
7 (shift count, RFC 7323)
  • The current window limits a single TCP stream to 13.11 Mbps, 1.3% of the link.

Formula

BDP (bytes) = bandwidth (bits/s) × RTT (s) ÷ 8. Single-stream ceiling (bits/s) = window (bytes) × 8 ÷ RTT (s).

Assumptions

  • One TCP stream with no packet loss. Loss lowers throughput further, often far more than the window does.
  • KiB here means 1,024 bytes.

Questions

Why is my transfer slow on a fast WAN link?
On a long path the sender must keep a full bandwidth-delay product of data in flight. If the TCP window is smaller than that, the stream waits for acknowledgments and never fills the link.
What does the window scale factor do?
The TCP header holds a 16-bit window, so 65,535 bytes at most. Window scaling (RFC 7323) shifts that value left by up to 14 bits, allowing windows up to about 1 GiB.

Related tools