Sub topic 13
Bandwidth-Delay Product and Data in Flight
This chapter assumes you know bits, bytes, bit rates, and basic unit conversion. It also assumes that a network path has a sender, a receiver, and links that may introduce transmission and propagation delay.
What the bandwidth-delay product means
The bandwidth-delay product (BDP) is the amount of data that can be present in a network path while the sender transmits at a given rate.
\[ \text{BDP} = \text{bandwidth} \times \text{round-trip time} \]
Bandwidth is measured in bits per second, and round-trip time (RTT) is measured in seconds. Therefore, BDP is measured in bits. Divide by 8 to convert it to bytes.
For example, consider a 100 Mbps path with an RTT of 20 ms:
\[ \text{BDP} = 100{,}000{,}000 \times 0.020 = 2{,}000{,}000\text{ bits} \]
That is 250,000 bytes, or about 244 KiB. A sender needs roughly this much unacknowledged data in the network to keep the path continuously busy.
def bandwidth_delay_product(rate_bps, rtt_s):
"""Return the data capacity of a path in bits and bytes."""
bits = rate_bps * rtt_s
return bits, bits / 8
bits, bytes_ = bandwidth_delay_product(100_000_000, 0.020)
print(bits, "bits")
print(bytes_, "bytes")Data in flight
Data in flight is data that the sender has transmitted but the receiver has not yet acknowledged. It may be traveling through links, waiting in queues, or already waiting at the receiver.
The BDP is the approximate amount of data in flight needed to fill the path. If the sender has less data in flight than the BDP, the link may become idle while the sender waits for acknowledgements. If the sender can keep at least the BDP in flight, the bottleneck link can usually remain busy, assuming no losses or other limits.
RTT, one-way delay, and common errors
BDP calculations commonly use RTT because many reliable protocols send data and wait for acknowledgements. Do not use milliseconds as though they were seconds. Convert 20 ms to 0.020 s.
A path can also be described using one-way delay. If a question explicitly gives one-way delay and asks for the amount of data in the path in one direction, use:
\[ \text{data in path} = \text{bandwidth} \times \text{one-way delay} \]
For an acknowledgement-based sending window, RTT is usually the relevant delay.
| Quantity | Meaning | Unit |
|---|---|---|
| Bandwidth | Maximum transmission rate | bits/s |
| RTT | Time for data and acknowledgement to make a round trip | seconds |
| BDP | Data needed to fill the path | bits or bytes |
> callout note > BDP is a path-capacity calculation, not a guarantee of achieved throughput. Congestion, packet loss, receiver limits, protocol windows, and a slower bottleneck can reduce the actual rate.
Link efficiency and window size
With stop-and-wait, the sender transmits one frame and waits for its acknowledgement before sending the next frame. If the frame transmission time is \(T_t\) and the RTT is \(RTT\), an idealized utilization is:
\[ U = \frac{Tt}{Tt + RTT} \]
For high bandwidth or long RTT, \(T_t\) is small compared with RTT, so utilization becomes very low. Sliding-window protocols solve this by allowing several frames to be unacknowledged. To keep the path busy, the window should be near the BDP, adjusted for protocol headers and implementation limits.
Exercise
A 50 Mbps path has an RTT of 40 ms. What is its BDP in bits and bytes, and why can a 1,000-byte stop-and-wait frame use only a small fraction of the path?
Show answer
BDP = 50,000,000 × 0.040 = 2,000,000 bits = 250,000 bytes. A 1,000-byte frame is much smaller than the data needed in flight, so the sender waits for an acknowledgement before filling the path.