TCP Bandwidth-Delay Product (BDP) & Receive Window Throughput Calculator

Diagnose WAN throughput bottlenecks using BDP = LinkSpeed_bps × RTT_sec / 8.

Bandwidth-Delay Product (BDP) 7,934.57 KiB
Max Single-Stream Throughput 64.53 Mbps
BDP in Megabytes (MiB) 7.75 MiB
Link Utilization Efficiency 6.45 %
Inputs
Try:
Mbps
Physical link bandwidth capacity in Megabits per second (Mbps).
ms
Network Round-Trip Time (RTT) in milliseconds.
KiB
Configured OS TCP Receive Window (RWIN) in KiB.
Results & Graph
Bandwidth-Delay Product (BDP)
7,934.57 KiB
Max Single-Stream Throughput
64.53 Mbps
BDP in Megabytes (MiB)
7.75 MiB
Link Utilization Efficiency
6.45 %

Bandwidth-Delay Product (BDP)

Graph 1 • How the inputs feed TCP BDP & Window Size
TCP Bandwidth-Delay Product (BDP) & Receive Window Throughput Calculator • Custom Domain Schematic (Networking & Digital Systems) linkBandroundTriOut Link Bandwidth Mbps: 1.0k Mbps • Round Trip Latency Ms: 65 ms BANDWIDTH-DELAY PRODUCT (B 7,934.57 KiB • Max Single-Stream Thro: 64.53 Mbps • BDP in Megabytes (MiB): 7.75 MiB Eq: BDP_Bytes = (LinkBandwidth_Mbps
Graph 2 • Bandwidth-Delay Product (BDP) as Link Bandwidth Mbps changes (40% to 160% of current)
0 KiB 7.0k KiB 14.0k KiB 3.2k 400Mbps 4.8k 600Mbps 6.3k 800Mbps 7.9k 1.0kMbps 9.5k 1.2kMbps 11.1k 1.4kMbps 12.7k 1.6kMbps
Graph 3 • Link Bandwidth Mbps and Round Trip Latency Ms together Compares Bandwidth-Delay Product (BDP) when Round Trip Latency Ms is shifted +25% (solid) vs. −25% (dashed).
0 KiB 7.1k KiB 14.2k KiB --- Round Trip Latency Ms @ 75% 6.9k -30% 8.4k -15% 9.9k +0% 11.4k +15% 12.9k +30%
Summary: A 1000 Mbps link with 65 ms RTT has a BDP of 7934.6 KiB (7.75 MiB); a 512 KiB TCP window caps single-stream throughput at 64.53 Mbps.
Summary: A 1000 Mbps link with 65 ms RTT has a BDP of 7934.6 KiB (7.75 MiB); a 512 KiB TCP window caps single-stream throughput at 64.53 Mbps.
Interactive chart & math engine powered by CalculatorGraph

Formula: TCP BDP & Window Size Systems Engineering Formula

BDPBytes = (LinkBandwidthMbps × 10⁶ × (RTTms / 1000)) / 8
MaxTCPMbps = (WindowBytes × 8) / RTTsec
BDP_Bytes = (LinkBandwidth_Mbps × 10⁶ × (RTT_ms / 1000)) / 8; MaxTCP_Mbps = (WindowBytes × 8) / RTT_sec
  • linkBandwidthMbps: Link Bandwidth Mbps (Mbps)
  • roundTripLatencyMs: Round Trip Latency (ms)
  • tcpReceiveWindowKiB: Tcp Receive Window (KiB)

Frequently Asked Questions

Why does a faster link not change the single-stream throughput?

Because the window, not the link, is the limit. A stream can send one window per round trip, so its ceiling is window divided by RTT, and bandwidth is not in that formula. The presets show it: at 600, 1000 or 1500 Mbps the 512 KiB window still caps one stream at 64.53 Mbps. Only a larger window or shorter round trip raises it.

Is the BDP the same as the buffer size I should set?

It is the minimum window needed for one stream to fill the link at that round trip. Set the maximum receive and send buffers to at least the BDP, with some headroom for round trips that grow under load. On the default link the BDP is about 7.75 MiB, so a maximum of around 8 MiB lets one stream reach the full 1000 Mbps.

What does the link utilization efficiency line measure?

It is the single-stream ceiling divided by the link bandwidth, as a percentage. On the default it is 6.45%, meaning one connection could use only about one sixteenth of the gigabit link. When it reaches 100% the window is at least as large as the BDP and the link itself becomes the limit. It says nothing about loss or congestion, only about the window.

Does packet loss change the numbers on this page?

Not on the page, but it changes what you will see in practice. The calculator assumes a lossless path. Loss causes congestion control to shrink the sender's window, sometimes sharply, so throughput can fall well below the window ceiling, especially on long round trips where recovery takes longer. If a transfer is far below the ceiling, look for loss before enlarging the window further.

Should I use the round trip measured by ping?

Ping is a reasonable start, but measure during the period you care about. Ping packets may be handled differently from data, and queuing under load can add many milliseconds. TCP's own smoothed round-trip estimate, visible in connection statistics on most systems, reflects what the data actually experiences. Using an idle-time ping can understate the BDP on a busy link.

Why does the calculator mix Mbps with KiB?

Because that is how each quantity is normally quoted. Network speeds use decimal megabits, and operating system window and buffer settings use binary kibibytes. The calculator converts between them exactly, so the default BDP of 65 megabits becomes 7,934.57 KiB. If another tool quotes the BDP in decimal kilobytes, expect it to read about 2.4% higher.

Does a VPN or tunnel change the calculation?

It can change both inputs. A tunnel may add latency through encryption and an indirect path, which raises the round trip and the BDP. It also adds headers that reduce the useful payload per packet. Some tunnels carry TCP inside TCP, which brings its own window limits. Measure the round trip through the tunnel and enter the window of the inner connection.

How is the default 512 KiB window chosen?

It is simply an example value to show the effect, not a recommendation or a system default. Real windows depend on the operating system, its autotuning limits and the application. Look up the maximum receive buffer on the receiving host, or read the advertised window and scale factor from a packet capture, and enter that instead to model your own transfer.

Does UDP have the same limit?

Not in the same way. The receive window is a TCP mechanism, so a UDP application is not held to window divided by round trip. Protocols built on UDP that provide reliability usually have their own flow control windows, though, and those behave in a similar way. The BDP itself still describes how much data is in flight on the path, whatever the protocol.

Why is my measured speed slightly under the calculated ceiling even with a big window?

The ceiling ignores protocol headers, which take a few percent of each packet, and the time needed for the window to grow at the start of a connection. Short transfers may finish before the window reaches its maximum. Measure a long transfer, and compare its steady rate rather than the average including start-up, to see how close you come to the figure on the page.

A gigabit link that delivers 64.53 Mbps

The default describes a situation that frustrates a lot of people: a 1000 Mbps link between two sites with a 65 millisecond round trip, and a single TCP transfer that refuses to go faster than a small fraction of the link. The calculator says the bandwidth-delay product is 7,934.57 KiB, the receive window of 512 KiB caps one stream at 64.53 Mbps, and the link is being used at 6.45% efficiency.

Those three numbers tell one story. To keep a pipe full, a sender must have enough unacknowledged data in flight to cover the whole round trip. The bandwidth-delay product, or BDP, is that amount. On this link it is about 7.75 MiB. The receiver, though, only allows 512 KiB in flight at once. The sender pushes out 512 KiB, then sits idle waiting for acknowledgements to come back, and the link spends most of every round trip empty.

The result is not a fault in the network. Nothing is lost or congested. The connection is simply waiting, and the cure is a larger window, a shorter round trip, or more streams in parallel.

Checking BDP = bandwidth × RTT by hand

The BDP formula is bandwidth multiplied by round-trip time. The only difficulty is units. Bandwidth is in megabits per second, the round trip is in milliseconds, and the answer is shown in binary kilobytes.

Start with the default. 1000 megabits per second for 0.065 seconds is 65 megabits. Divide by 8 to get bytes: 8.125 million bytes. Divide by the size of a KiB, two to the tenth power bytes, and you get 7,934.57 KiB. Divide by that again and you get the 7.75 MiB in the second supporting line.

The calculator mixes decimal and binary units on purpose, because that is how the two quantities are usually quoted. Link speeds are decimal: 1000 Mbps means a thousand million bits per second. Operating system buffer and window settings are usually in binary units. If you compare a BDP from another tool, check which kind of kilobyte it uses; the difference is about 2.4% per step.

A useful mental shortcut is that a gigabit per second moves one eighth of a megabyte every millisecond, so each millisecond of round trip adds roughly an eighth of a megabyte of BDP per gigabit of link speed. The calculator does the exact version.

Window-limited throughput = window / RTT

The second formula on the page turns the window into a speed limit. A single TCP stream can send at most one window of data per round trip, so its ceiling is the window size divided by the RTT.

Check the default. 512 KiB is about 4.19 million bits. Divided by 0.065 seconds, that is 64.53 million bits per second. The calculator then takes the lower of that figure and the link speed, because a stream can never beat the link however large its window.

Notice what is missing from the formula: the link bandwidth. Once the window is the bottleneck, a faster link makes no difference at all. The lower preset drops the link to 600 Mbps and the higher preset raises it to 1500 Mbps, and in both cases the single-stream ceiling stays at 64.53 Mbps. What changes is the BDP, which grows to 11,901.86 KiB on the faster link, and the efficiency, which falls to 4.3%. Buying a faster circuit to speed up a window-limited transfer buys nothing.

Latency, on the other hand, is in the denominator. Cut the round trip to 10 ms with the same 512 KiB window and the ceiling rises to about 0.42 Gbps, 41.94% of the link, while the BDP shrinks to 1.19 MiB.

Sizing the window to fill the pipe

The rule follows straight from the two formulas: a single stream can fill the link only when its window is at least as large as the BDP. On the default link that means a window of at least 7.75 MiB.

Entering a window of 8 MiB confirms it. The single-stream ceiling reaches the full 1000 Mbps and the efficiency line shows 100%. Anything above the BDP gives no further gain, because the link is then the limit, but a little headroom above the BDP is sensible since real round trips vary.

Going the other way, a window of 64 KiB, which is the largest a TCP receiver can advertise without the window scale option, caps the same link at just 8.07 Mbps and 0.81% efficiency. That case still turns up wherever window scaling is disabled or stripped by a middlebox. If a long-distance transfer settles at a suspiciously round small speed, compare it with 64 KiB divided by the round trip.

Modern operating systems usually grow the receive window automatically, up to a configured maximum buffer size. The window you enter here should be that maximum, or the window you actually see in a packet capture, not a default you assume.

There is a cost to large windows, and it is memory. A receive buffer sized to the BDP is reserved per connection, so a server holding many long-distance connections at once needs that buffer many times over. That is why systems cap the maximum buffer rather than giving every socket a huge one by default. Size the cap for the longest, fastest path you actually need to serve, using the BDP from this page, and let autotuning keep ordinary short-haul connections small.

Why distance matters more than link speed

Round-trip time on a long link is set largely by the distance and the path the traffic takes. You cannot buy it down the way you can buy bandwidth. That is why BDP problems show up between distant data centres and on intercontinental transfers, and rarely inside one building.

Compare the default 65 ms with a 10 ms path. The BDP falls from 7.75 MiB to 1.19 MiB, so a far smaller window fills the link. A transfer that crawls between continents can run at nearly full speed between two nearby sites with exactly the same host settings.

The practical habit is to measure the round trip you actually have, with a ping or from TCP's own statistics, during a busy period rather than a quiet one. Queuing in routers adds delay under load, which raises the BDP and lowers a window-limited ceiling at exactly the time you need the throughput.

Running several streams instead of one

The 64.53 Mbps ceiling applies to one TCP connection. Each connection has its own window, so several connections in parallel each get their own ceiling, and their total can approach the link speed even when no single window is large enough.

On the default link, dividing 1000 Mbps by 64.53 Mbps shows that about 16 parallel streams with 512 KiB windows would be needed to fill it. That is the reasoning behind transfer tools that split a file across many connections, and behind the advice to run several streams in a throughput test before blaming the network.

Parallel streams are a workaround, not a fix. They multiply the load on both hosts, they compete with each other under congestion, and they do nothing for applications that use one connection. Where you control both ends, a larger window on one stream is usually the cleaner answer.

If you do run several streams, the calculator still helps. Divide the target rate by the per-stream ceiling to estimate how many connections you need, and recheck after any change to the window or the round trip.

What the window ceiling does not include

The calculator gives the best case for a given window. A real stream is held to the smaller of the receive window and the sender's congestion window, and the congestion window is set by the congestion control algorithm, which backs off whenever it sees loss. On a long link with even light packet loss, congestion control can hold throughput well below the window ceiling shown here.

The ceiling is also a figure for payload plus headers. Protocol headers take a few percent of every packet, so the application sees somewhat less than the calculated rate. Encryption, disk speed and the application itself can be the real bottleneck too.

Finally, the sender's buffer must be large enough to hold a full window of unacknowledged data. A big receive window is wasted if the sending host only buffers a fraction of it. When tuning, raise both sides together.

Entering the inputs correctly

Use the link's line rate in megabits per second, not megabytes. Entering a 1000 megabit link as its megabyte per second figure would shrink the BDP by a factor of eight. If your provider quotes the circuit in gigabits, multiply by 1000 to get megabits.

Use the round-trip time, not the one-way latency. A ping reports the round trip directly. If you only have a one-way figure, double it. All three inputs must be above zero, so a zero round trip returns an error rather than a result; enter a real measurement, even a fraction of a millisecond on a local network.

Enter the window in KiB. A Linux buffer setting is in bytes, so divide by two to the tenth power first. A window shown in a packet capture must be multiplied by the scale factor agreed at the start of the connection, which is a common source of confusion when the raw field looks tiny.