Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

Computer Networks  Module 2 – Switching, performance and the physical layer

Delay, throughput and bandwidth-delay product

The four delays of a packet's trip, throughput set by the bottleneck link, queueing near full load with Little's law, and the bandwidth-delay product.

  • Intermediate
  • 30 minutes
  • Examples run with Python 3.14.8 and Pyodide 314.0.7
  • By MySmartCoPilot
Free lesson, Pro answers: 30 minutes
Free: the whole lesson. With a pass: the model answers to its 2 interview questions.

What you will learn

  • Calculate transmission, propagation, queueing and processing delay for a path
  • Find end-to-end throughput from the bottleneck link and explain why it can fall below it
  • Compute the bandwidth-delay product and the bytes in flight needed to fill a path
  • Use traffic intensity and Little's law to reason about queueing delay

Before you start

What you’ll learn · Before you start

What you will learn

  • Calculate transmission, propagation, queueing and processing delay for a path
  • Find end-to-end throughput from the bottleneck link and explain why it can fall below it
  • Compute the bandwidth-delay product and the bytes in flight needed to fill a path
  • Use traffic intensity and Little's law to reason about queueing delay

Before you start

On this page

A 1,500-byte packet needs 1.2 ms to enter a 10 Mb/s link, before distance or queues add time. Two numbers describe network performance: how long a packet takes to arrive (delay) and how many bits a second actually get through (throughput). At every hop a packet meets four delays: processing in the router, queueing delay: Time a packet waits for service before its transmission starts. behind other packets, transmission delay: Time needed to place a packet’s bits onto a link: its bit length divided by the link rate., the time to put its bits onto the link, and propagation delay: Time a signal takes to travel a path: the path length divided by signal speed., the time the signal needs to travel the length of the link. Throughput is limited by the slowest link on the path, the bottleneck, and often by the sender too. Their meeting point is the bandwidth-delay product: A rate multiplied by a delay; using path rate and RTT gives the modeled amount of unacknowledged data needed for that rate.: the bottleneck rate times the round-trip time, the in-flight budget for sustaining that rate in the steady model. This lesson works out each delay with numbers, shows with a simulation why queueing delay explodes as a link fills up, and sizes the data in flight for real paths.

Four different delays add to a hop

Follow the 1,500-byte packet in the diagram. The first three boxes describe work or waiting at the sender of this hop; the last describes the signal’s journey to the next node.

A packet passes processing, queueing and transmission inside router A, then propagation along the link to router B.Inside router A4. Propagation to router Bdistance / signal speed1. Processingcheck header, find next hop2. Queueingwait behind earlier packets3. TransmissionL bits onto the link: L / R

The four delays of one hop

Text description of the diagram

The diagram follows one packet of L bits from its arrival at router A to its arrival at router B, through four steps from top to bottom.

  1. Processing, inside router A: the router checks the header and looks up the next hop. This takes microseconds.
  2. Queueing, inside router A: the packet waits behind the packets that arrived before it for the same link. This is zero on an idle link and can reach seconds on a busy one; it grows with the load.
  3. Transmission, inside router A: the router puts all L bits onto the link, which takes L divided by the link rate R.
  4. Propagation, on the link: the signal travels to router B, which takes the length of the link divided by the speed of the signal, about 5 microseconds a kilometre in fibre.

The delay of the hop is the sum of the four; a path adds up its hops.

  • Processing delay is the router’s own work: checking the header and looking up the next hop. It is usually measured in microseconds.
  • Queueing delay is the time a packet waits behind earlier packets for the same outgoing link. It is zero on an idle link and can reach seconds on an overloaded one, so it is the delay that varies.
  • Transmission delay is the packet’s length divided by the link rate: L / R. A 1,500-byte packet is 12,000 bits, so it needs 120 µs at 100 Mb/s and 1.2 µs at 10 Gb/s.
  • Propagation delay is the link’s length divided by the speed of the signal. Light in fibre covers a kilometre in about 5 µs; that is the planning value ITU-T G.114 gives for optical fibre systems, roughly two-thirds of the speed of light in a vacuum.

Transmission and propagation are easy to mix up. Transmission depends on the packet and the rate but not on the distance: it is how long the router takes to push the packet out. Propagation depends on the distance but not on the packet: it is how long each bit then spends on the wire. The delay of one hop is the sum of the four, and a path adds up its hops.

dhop=dproc+dqueue+LR+distancespeedd_{\text{hop}} = d_{\text{proc}} + d_{\text{queue}} + \frac{L}{R} + \frac{\text{distance}}{\text{speed}}

For example, an assumed 20 µs of processing, no queue, 120 µs of transmission and 10 µs of propagation sum to 150 µs. The scene uses those same assumptions for the first hop of the route worked below:

Interactive · stage by stage One assumed hop totals 150 microseconds Add each contribution for a 1,500-byte packet on a 100 Mb/s, 2 km fibre hop.
One assumed hop totals 150 microseconds, step 5 of 5. Showing Processing, Queueing, Transmission, Propagation, Hop total. In focus: Hop total.Processing20 µs assumedQueueing0 µs assumedTransmission12,000 bits / 100 Mb/sPropagation2 km × 5 µs/kmHop total20 + 0 + 120 + 10 = 150

The drawing shows the whole scene; its 5 steps are listed below.

Every step as text
  1. Processing. This example assigns 20 µs to processing. It is a scenario input, not a measurement of a particular router.
  2. Queueing. The output queue is assumed idle, so this packet waits zero time before transmission starts.
  3. Transmission. Putting 1,500 × 8 = 12,000 bits onto a 100,000,000 bit/s link takes 120 µs. Changing the link rate changes this term.
  4. Propagation. The fibre planning value contributes 10 µs for 2 km. It is independent of this packet's size.
  5. Hop total. The assumed hop totals 150 µs. The terms are separate contributions, so transmission and propagation must both be counted.

Checkpoint

Check: The four hop delays

  1. One question Only the link rate doubles, with packet size and distance fixed. Which term halves?

    Choose one answer.

    Show the answer: One question

    Answer: Transmission L/R

    Link rate changes serialization; it does not halve every contribution to delay.

Convert bytes and prefixes before dividing by a rate

Link rates are counted in bits a second with decimal prefixes: 1 Mb/s is 1,000,000 bits a second. Memory and many file managers count bytes with binary prefixes, which NIST spells MiB and GiB: 1 MiB is 2²⁰ = 1,048,576 bytes. A byte is 8 bits. Mixing the three is the most common way to get a delay question wrong:

Bits, bytes, MB and MiB Python · units-study/units.py
# Link rates use decimal prefixes (1 Mb/s = 1,000,000 bits a second); memory and many file
# managers use binary ones (1 MiB = 1,048,576 bytes). A byte is 8 bits.

RATE = 100e6  # a "100 Mb/s" link

print(f"100 Mb/s = {RATE / 8 / 1e6:.2f} MB/s = {RATE / 8 / 2**20:.2f} MiB/s")

for size, label in ((100e6, "100 MB"), (100 * 2**20, "100 MiB")):
    print(f"{label:>7} = {size:>13,.0f} bytes: {size * 8 / RATE:.2f} s at 100 Mb/s")

# The classic slip: dividing bytes by a rate in bits a second.
print(f"forgetting the factor 8 gives {100e6 / RATE:.2f} s for 100 MB")

Output

100 Mb/s = 12.50 MB/s = 11.92 MiB/s
 100 MB =   100,000,000 bytes: 8.00 s at 100 Mb/s
100 MiB =   104,857,600 bytes: 8.39 s at 100 Mb/s
forgetting the factor 8 gives 1.00 s for 100 MB

Recorded with Python 3.14.8 on macOS 26 arm64. To run it yourself: mise exec python@3.14.8 -- python3 units.py

Change RATE from 100 Mb/s to 10 Mb/s and compare both file times; the prefix and byte conversion rules remain the same.

A 100 MiB file is 4.9 % bigger than a 100 MB one, and dividing a size in bytes by a rate in bits a second makes the answer eight times too small.

Data Rate Converter (Mbps to MB/s) Convert between Mb/s, MB/s and MiB/s before you divide.

Write the unit cancellation beside the arithmetic: bytes × 8 bit/byte ÷ bit/s leaves seconds. At 100 Mb/s, 100,000,000 bytes × 8 ÷ 100,000,000 bit/s is 8 s; the accidental byte/rate division gives 1 s. Changing a prefix does not repair that missing factor of eight. A size marked MiB needs both its binary multiplier and the bit conversion before it can be compared with the link’s decimal rate.

Checkpoint

Check: Bits, bytes and decimal or binary prefixes

  1. One question How long does a decimal 100 MB file take to serialize at 100 Mb/s, ignoring headers?

    Type a number.

    Show the answer: One question

    Answer: 8 s

    100,000,000 bytes × 8 bit/byte ÷ 100,000,000 bit/s = 8 s.

Distance can dominate even a fast path

The example follows one 1,500-byte packet from a home in Pune to a server in Mumbai, and on to Singapore. The route lengths are assumptions for the example (cables follow roads and coasts, so they are longer than a straight line), and each router is assumed to need 20 µs and to have an empty queue:

Each delay of a 1,500-byte packet on two paths Python · path-delays-study/path_delays.py
# The delays of one 1,500-byte packet along two paths that start in Pune. The route lengths
# are assumptions for the example (cables do not run in straight lines), and the routers are
# assumed idle, so there is no queueing. Light in fibre: 5 microseconds a kilometre (ITU-T G.114).

PACKET_BITS = 1_500 * 8
FIBRE_S_PER_KM = 5e-6
PROCESSING = 20e-6  # assumed 20 microseconds in each router, for the example

paths = {
    "Pune to Mumbai": [
        ("home fibre to the ISP", 100e6, 2),
        ("ISP to Mumbai", 10e9, 150),
    ],
    "Pune to Singapore": [
        ("home fibre to the ISP", 100e6, 2),
        ("ISP to Mumbai", 10e9, 150),
        ("submarine cable to Singapore", 100e9, 5_000),
    ],
}

for name, links in paths.items():
    print(name)
    one_way = 0.0
    for label, rate, km in links:
        transmit = PACKET_BITS / rate
        propagate = km * FIBRE_S_PER_KM
        one_way += transmit + propagate + PROCESSING
        print(f"  {label:29} {rate / 1e6:>7,.0f} Mb/s {km:>5,} km  transmit {transmit * 1e6:8.2f} us  propagate {propagate * 1e6:9.1f} us")
    print(f"  one way {one_way * 1e3:.3f} ms, round trip about {2 * one_way * 1e3:.3f} ms")

Output

Pune to Mumbai
  home fibre to the ISP             100 Mb/s     2 km  transmit   120.00 us  propagate      10.0 us
  ISP to Mumbai                  10,000 Mb/s   150 km  transmit     1.20 us  propagate     750.0 us
  one way 0.921 ms, round trip about 1.842 ms
Pune to Singapore
  home fibre to the ISP             100 Mb/s     2 km  transmit   120.00 us  propagate      10.0 us
  ISP to Mumbai                  10,000 Mb/s   150 km  transmit     1.20 us  propagate     750.0 us
  submarine cable to Singapore  100,000 Mb/s 5,000 km  transmit     0.12 us  propagate   25000.0 us
  one way 25.941 ms, round trip about 51.883 ms

Recorded with Python 3.14.8 on macOS 26 arm64. To run it yourself: mise exec python@3.14.8 -- python3 path_delays.py

Change the assumed ISP-to-Mumbai distance from 150 km to 300 km. Compare the propagation term while leaving the packet size and rate fixed.

Two patterns stand out:

  • On the slow access link, transmission dominates: 120 µs, against 10 µs of propagation over 2 km. Upgrading that link is what makes the packet leave the house sooner.
  • On long links, propagation dominates: the 5,000 km to Singapore take 25 ms, and at 100 Gb/s transmission costs a tenth of a microsecond. No upgrade of the link rate shortens that; only a shorter route or a closer server does. That is why content is cached near its readers.

Step through the longer assumed route and add the three hop totals. The final 25 ms propagation term accounts for most of its 25.941 ms one-way modeled delay:

Interactive · stage by stage The assumed Pune-to-Singapore route Accumulate the three hop totals of the recorded path model; each hop has an assumed 20 µs of processing.
The assumed Pune-to-Singapore route, step 4 of 4. Showing Home to ISP, ISP to Mumbai, To Singapore, One-way sum. In focus: One-way sum.Home to ISP150 µsISP to Mumbai771.2 µsTo Singapore25,020.12 µsOne-way sum25.94132 ms

The drawing shows the whole scene; its 4 steps are listed below.

Every step as text
  1. Home to ISP. The 2 km, 100 Mb/s hop contributes 120 µs of transmission, 10 µs of propagation and the assumed 20 µs of processing.
  2. ISP to Mumbai. The 150 km, 10 Gb/s hop contributes 1.2 µs of transmission, 750 µs of propagation and 20 µs of processing.
  3. To Singapore. The assumed 5,000 km, 100 Gb/s hop contributes 0.12 µs of transmission, 25,000 µs of propagation and 20 µs of processing.
  4. One-way sum. The modeled one-way sum is 25.94132 ms. Doubling it gives 51.88264 ms only under the model's symmetric return assumption; an actual RTT can contain additional delay.

The printed round trip doubles this one-way model. An actual RTT also depends on the return route, acknowledgement size, processing and queueing; it cannot be inferred solely from the distance between the cities.

Checkpoint

Check: Distance and link-rate contributions

  1. One question The assumed 5,000 km fibre hop runs at 100 Gb/s. Which change directly reduces its 25 ms propagation term?

    Choose one answer.

    Show the answer: One question

    Answer: A shorter physical route or a closer serving location

    A faster serializer cannot remove the distance the signal must travel.

Queueing delay depends on how busy the link is. If packets of L bits arrive at an average rate of a packets a second at a link of R bits a second, the traffic intensity: The average offered work divided by service capacity in the stated queue model. is the share of the link’s time they need:

I=L⋅aRI = \frac{L \cdot a}{R}

This compares offered work with available service. Here L = 12,000 bits, so 750 arrivals a second offer 9,000,000 bit/s to a 10,000,000 bit/s link: I = 0.9.

Above 1, packets arrive faster than the link can send them, so the queue grows until the buffer is full and packets are dropped. Below 1, the queue empties from time to time, but random arrivals still bunch up. The example simulates one router queue in front of a 10 Mb/s link: 1,500-byte packets, each needing 1.2 ms, arriving at random:

Average queueing delay as the link fills up Python · queue-sim-study/queue_sim.py
# One router queue in front of a 10 Mb/s link. Packets are 1,500 bytes, so each takes
# 1.2 ms to send; they arrive at random (exponential gaps), at an average rate a.
# Traffic intensity I = L * a / R is the share of the link's time the packets need.
import random
from collections import deque

SERVICE = 1_500 * 8 / 10e6  # 1.2 ms per packet
PACKETS = 300_000


def simulate(intensity, seed):
    rnd = random.Random(seed)
    rate = intensity / SERVICE  # packets a second
    clock = link_free = waited = 0.0
    starts = deque()  # when the packets still in the queue will start being sent
    seen = 0  # packets waiting, summed over what each arrival finds
    for _ in range(PACKETS):
        clock += rnd.expovariate(rate)
        while starts and starts[0] <= clock:
            starts.popleft()
        seen += len(starts)
        start = max(clock, link_free)
        waited += start - clock
        link_free = start + SERVICE
        starts.append(start)
    return rate, waited / PACKETS, seen / PACKETS, len(starts)


def formula(intensity):
    """Average wait for random arrivals and fixed-size packets (Pollaczek-Khinchine)."""
    return intensity * SERVICE / (2 * (1 - intensity))


print("   I  wait (ms)  formula (ms)  packets waiting  rate x wait")
for seed, intensity in enumerate((0.5, 0.8, 0.9, 0.95)):
    rate, wait, waiting, _ = simulate(intensity, seed)
    print(f"{intensity:4}  {wait * 1e3:9.2f}  {formula(intensity) * 1e3:12.2f}  {waiting:15.2f}  {rate * wait:11.2f}")

runs = [simulate(0.99, seed)[1] * 1e3 for seed in range(4)]
print(f"I = 0.99, four runs: {', '.join(f'{w:.1f}' for w in runs)} ms (formula {formula(0.99) * 1e3:.1f} ms)")

_, wait, _, left = simulate(1.1, seed=9)
print(f"I = 1.1: average wait {wait:.1f} s, and {left:,} packets are still queued at the end")

Output

   I  wait (ms)  formula (ms)  packets waiting  rate x wait
 0.5       0.60          0.60             0.25         0.25
 0.8       2.40          2.40             1.60         1.60
 0.9       5.41          5.40             4.06         4.05
0.95      11.12         11.40             8.79         8.80
I = 0.99, four runs: 51.3, 62.7, 63.8, 122.8 ms (formula 59.4 ms)
I = 1.1: average wait 16.7 s, and 27,593 packets are still queued at the end

Recorded with Python 3.14.8 on macOS 26 arm64. To run it yourself: mise exec python@3.14.8 -- python3 queue_sim.py

Change PACKETS to 100,000 and compare the finite-run estimates near full load. The stable-model formula and a particular simulated sample are different quantities.

At half load a packet waits 0.6 ms on average, half a packet time. At 90 % load it waits 5.4 ms, four and a half packet times, and at 95 % about 11 ms. The formula column is the Pollaczek-Khinchine result for random arrivals and fixed-size packets, I × (L/R) / (2(1 − I)), and the simulation follows it closely up to 95 %. Close to full load finite-run estimates vary widely even though the model remains stable below full load: four runs of 300,000 packets at 99 % give 51 to 123 ms around a long-run average of 59 ms. At 110 % the infinite-buffer model has no stable long-run queue: the average wait reaches 16.7 s and 27,593 packets are still queued when the run ends.

The last two columns check Little’s law: in any stable queue, the average number of packets in it equals their arrival rate times the average time each spends there, N = λT. The column “packets waiting” counts what each new arrival finds in the queue; with the model’s stationary Poisson arrivals this corresponds to its time average (the “Poisson arrivals see time averages” property). The two printed columns differ by at most 0.01 after rounding. Little’s law needs no assumption about the arrival pattern, so you can use it on real measurements: a router that receives 4,000 packets a second and holds each for 2 ms has 8 packets inside on average.

A second queue model makes the stability boundary adjustable. This figure uses Poisson arrivals and exponential service times, M/M/1, with a service rate of 100 a second. It is different from the fixed 1.2 ms packet service of the recorded M/D/1 experiment above. At 90 arrivals a second its mean time in the system is 100 ms, comprising 10 ms of service and 90 ms of waiting. Change arrivals to 95 and then 100:

Interactive · change it and see A second queue model near its service limit Requests arrive at random at an average rate and one server handles them one at a time. Raise the arrival rate towards the service rate and watch the time in the system.
Mean time in the system by utilisation: mean time in the system (ms) against utilisation ρ = λ/μ (%).020406080100050100150utilisation ρ = λ/μ (%)mean time in the system (ms)time in systemservice alone 10 msnow 90 %

At 90 % utilisation a request spends 100 ms in the system on average, 10 times its 10 ms of service: the rest is waiting. Little's law: L = λW = 9 requests in the system.

Mean time in the system (W) 100 ms
Utilisation (ρ) 90 %
Mean wait before service 90 ms
Mean number in the system (L = λW) 9
The numbers as a table
Mean time in the system with μ = 100 a second
UtilisationMean time in the system
50 %20 ms
70 %33.3 ms
80 %50 ms
90 %100 ms
95 %200 ms
99 %1,000 ms

Below the service rate a stable mean exists under this model. At or above it the infinite-buffer model has no stable finite mean; a finite router instead must discard work or limit admission. The difference between the two models is why their wait numbers must not be swapped into each other’s packet calculations.

Checkpoint

Check: Queue models and their stability limit

  1. One question The M/M/1 figure has 100 arrivals/s and a 100/s service rate. What does its infinite-buffer model conclude?

    Choose one answer.

    Show the answer: One question

    Answer: No stable finite mean time in the system

    The model's finite steady-state mean applies only below its service rate.

The slowest available service limits throughput

Throughput is the rate at which data arrives, end to end. For one transfer with the path to itself, the slowest link sets an upper bound: a laptop on a 100 Mb/s access link gets at most 100 Mb/s from a server on a 10 Gb/s link. The bottleneck need not be the first or the last link, and throughput can fall below even the bottleneck rate:

  • Sharing. Flows that cross the same link share it; ten busy downloads over one 100 Mb/s link would get about 10 Mb/s each under equal allocation. A particular scheduler or congestion-control mix need not divide it equally.
  • The sender’s window. A protocol that may send at most W bytes before an acknowledgement comes back can deliver at most W bytes per round trip, whatever the links allow: throughput ≤ W / RTT.
  • Overheads. Headers, acknowledgements and retransmitted packets use link capacity without carrying new data.

The window limit is where delay and throughput meet.

Try a 64-unit window on a 100 Mb/s, 50 ms path. In this figure the window’s KB label means 1,024 bytes per unit, so 64 units is 65,536 bytes and the window ceiling is about 10.49 Mb/s. Raise the window while holding the route and link rate fixed:

Interactive · change it and see A small window can leave a fast path idle A sender may have one window of data in flight per round trip, so throughput is at most window ÷ RTT, and never more than the link carries.
Throughput by window size: throughput (Mbit/s) against window (KB, log scale).1101001,00010 thousand0255075100window (KB, log scale)throughput (Mbit/s)throughputlink 100 Mbit/snow 64 KB

A 64 KB window over a 50 ms round trip carries at most 10.49 Mbit/s, 10 % of the 100 Mbit/s link. Filling the link needs a window of about 610 KB, the bandwidth-delay product.

Throughput 10.49 Mbit/s
Share of the link in use 10 %
Window needed to fill the link (bandwidth × RTT) 610 KB
The numbers as a table
Throughput over 50 ms
WindowThroughput
16 KB2.62 Mbit/s
64 KB10.49 Mbit/s
256 KB41.94 Mbit/s
1024 KB100 Mbit/s
4096 KB100 Mbit/s

The plotted ceiling is min(link rate, window/RTT). It assumes data ready to send and omits congestion, losses and other work, so matching a ceiling is evidence to investigate, rather than a diagnosis from throughput alone.

Checkpoint

Check: Bottleneck and window ceilings

  1. One question An otherwise unconstrained path has links of 1 Gb/s, 50 Mb/s and 1 Gb/s. What link-rate ceiling bounds its throughput?

    Type a number.

    Show the answer: One question

    Answer: 50 Mb/s

    The middle link has the smallest service rate, 50 Mb/s; summing rates would not create one faster path.

A window must cover the path’s round trip

Think of the path as a pipe: its width is the bottleneck rate R and its length is the round-trip time. The data that fills it is the bandwidth-delay product:

BDP=R×RTT\text{BDP} = R \times \text{RTT}

The units are bits per second multiplied by seconds, leaving bits; divide by eight to express the same quantity in bytes. At 100 Mb/s and 0.050 s, 100,000,000 × 0.050 ÷ 8 = 625,000 bytes.

A sender sustaining the full rate needs an in-flight budget of roughly one BDP under the steady model. At 100 Mb/s and a 50 ms round trip that is 5,000,000 bits, or 625,000 bytes. TCP’s window field is 16 bits, so a receiver can offer at most 65,535 bytes without the window scale option of RFC 7323, which multiplies the window by 2 to the power of a shift count of at most 14 (windows up to about 1 GiB). The example sizes a few paths:

Data in flight for four paths Python · bdp-study/bdp.py
# Bandwidth-delay product: the bits a sender must have in flight to keep a path busy.
# Without window scaling a TCP receiver can offer at most 65,535 bytes (a 16-bit field);
# RFC 7323 multiplies that by 2**shift, with a shift of at most 14.

MAX_WINDOW = 65_535

paths = [  # (path, bottleneck in bit/s, round-trip time in s); example figures
    ("Wi-Fi to a nearby server", 100e6, 0.010),
    ("100 Mb/s at 50 ms", 100e6, 0.050),
    ("1 Gb/s, India to Singapore", 1e9, 0.060),
    ("geostationary satellite hop", 50e6, 0.520),
]

print(f"{'path':28} {'BDP bytes':>12}  {'65,535-byte window':>18}  shift needed")
for name, rate, rtt in paths:
    bdp = rate * rtt / 8
    capped = min(rate, MAX_WINDOW * 8 / rtt)  # throughput <= window / RTT
    shift = 0
    while MAX_WINDOW * 2**shift < bdp:
        shift += 1
    print(f"{name:28} {bdp:12,.0f}  {capped / 1e6:13.1f} Mb/s  {shift:12}")

Output

path                            BDP bytes  65,535-byte window  shift needed
Wi-Fi to a nearby server          125,000           52.4 Mb/s             1
100 Mb/s at 50 ms                 625,000           10.5 Mb/s             4
1 Gb/s, India to Singapore      7,500,000            8.7 Mb/s             7
geostationary satellite hop     3,250,000            1.0 Mb/s             6

Recorded with Python 3.14.8 on macOS 26 arm64. To run it yourself: mise exec python@3.14.8 -- python3 bdp.py

The round-trip times are example figures, except the satellite hop: ITU-T G.114 gives 260 ms one way between earth stations for a satellite 36,000 km up, so the program uses 520 ms as a planning RTT. This is distinct from the ideal vertical propagation floor in the preceding lesson. A 65,535-byte window over 50 ms gives a window-only ceiling of 10.5 Mb/s on a 100 Mb/s path, and over the satellite hop 1.0 Mb/s of 50. Other limits can reduce actual throughput. The last column is the smallest shift that opens the window wide enough.

Follow the same calculation and the unscaled-window limit in the scene. The 65,535-byte protocol field is one byte smaller than the figure’s 64 × 1,024-byte starting value; both ceilings round to 10.5 Mb/s.

Interactive · stage by stage A window for 100 Mb/s over 50 ms Follow bits, bytes and the unscaled receiver window as three different quantities.
A window for 100 Mb/s over 50 ms, step 4 of 4. Showing Rate times RTT, Express it in bytes, Unscaled TCP field, Scale by four bits. In focus: Scale by four bits.Rate times RTT100 Mb/s × 0.050 sExpress it in bytes625,000 bytesUnscaled TCP field65,535 bytesScale by four bits65,535 × 16 bytes

The drawing shows the whole scene; its 4 steps are listed below.

Every step as text
  1. Rate times RTT. The product is 5,000,000 bits. It models data that can be sent before an acknowledgement returns while the path stays busy.
  2. Express it in bytes. Dividing 5,000,000 bits by eight gives 625,000 bytes. One-way delay in place of RTT would halve this window budget.
  3. Unscaled TCP field. A 16-bit advertised window field reaches 65,535 bytes without scaling. Its window-only ceiling is 65,535 × 8 / 0.050 = 10.4856 Mb/s.
  4. Scale by four bits. A shift of 4 permits 1,048,560 advertised bytes, exceeding this example's BDP; a shift of 3 permits only 524,280. Scaling and buffering do not by themselves prove achieved throughput.

The product sizes a window that can sustain a rate. It does not require a router to hold that amount in a standing queue: data in flight is distributed along the path and endpoints, while a persistent FIFO queue adds delay.

GATE CS

The cited GATE CS syllabus pairs “Basics of switching” with “performance metrics”, so expect numericals on transmission and propagation delay, throughput, utilisation and window sizes. Write the units next to every number: most wrong answers come from MB against Mb, MiB against MB, or one-way against round-trip time.

Checkpoint

Check: Bandwidth-delay product and scaling

  1. One question What is the smallest scale shift s for which 65,535 × 2^s bytes covers 625,000 bytes?

    Type a number.

    Show the answer: One question

    Answer: 4 shift

    Shift 3 offers 524,280 bytes; shift 4 offers 1,048,560 bytes.

A standing FIFO queue can hide a slow response

Router buffers absorb bursts, but a buffer that is too big and stays full adds delay without adding throughput. This is bufferbloat: Persistently long packet queues that add latency while the bottleneck remains busy.. A 1 MB buffer in front of a 10 Mb/s uplink holds 8,000,000 bits, which take 0.8 s to drain, so an admitted packet near the back of this FIFO queue waits roughly 0.8 s. A packet offered to an already full drop-tail buffer can instead be dropped. A large upload can keep such a queue full for as long as it runs, and packets that share that FIFO service wait behind it; fair queueing or priority rules can change the result. RFC 7567, the IETF’s best current practice on queue management, calls keeping the steady-state queue small “perhaps the most important goal for queue management”, and recommends that network devices drop or mark packets before the queue is full (active queue management) so that senders slow down early.

Step through an admitted packet with 1 MB ahead of it. The scenario is FIFO and has no priority or fair-queue scheduler; those details are essential to its 0.8 s wait estimate:

Interactive · stage by stage One megabyte ahead of a packet in a FIFO queue Step through a 10 Mb/s bottleneck with a fixed FIFO-service assumption.
One megabyte ahead of a packet in a FIFO queue, step 4 of 4. Showing Admitted behind data, Drain the earlier data, Service begins, Investigate under load. In focus: Investigate under load.Admitted behind data1 MB aheadDrain the earlier data8,000,000 bits / 10 Mb/sService beginsabout 0.8 s laterInvestigate under loadobserve delay and counters

The drawing shows the whole scene; its 4 steps are listed below.

Every step as text
  1. Admitted behind data. An admitted packet has an assumed 1,000,000 bytes ahead of it in this FIFO queue. A packet offered to a full drop-tail buffer may instead be dropped.
  2. Drain the earlier data. The earlier data requires 0.8 s to transmit at 10 Mb/s. The wait changes with queue bytes and service rate, not with the link's propagation distance.
  3. Service begins. This packet starts after the earlier bytes leave. Fair queueing or priority service could change its place, so this estimate is specific to FIFO.
  4. Investigate under load. Compare idle and loaded latency and identify the bottleneck. Added delay under load is evidence; queueing is a hypothesis to test with that service and its counters.

You can see bufferbloat on your own connection by measuring latency twice: once on an idle line and once while a large download or upload is running. A repeatable increase from tens to hundreds of milliseconds is evidence of added delay under load. Queueing is a hypothesis to investigate with the actual bottleneck and its counters.

Internet Speed Test Measure your latency idle and under load to see whether your connection's queues fill up.

Checkpoint

Check: Standing queues and loaded latency

  1. One question A FIFO uplink keeps 1 MB waiting ahead of a newly admitted packet at 10 Mb/s. What does that imply?

    Choose one answer.

    Show the answer: One question

    Answer: About 0.8 s waiting behind the earlier bytes

    The wait calculation concerns an admitted FIFO packet, rather than every offered packet.

Practise: three numbers for a path

Exercise · Easy · Python

Delay, throughput and bandwidth-delay product of a path

Write path_metrics(links, packet_bytes) for a path of fibre links. links is a list of (rate, km) pairs, one per link in order: the link's rate in bits a second and its length in kilometres. Return a dictionary with three numbers:

  • "delay": the seconds one packet of packet_bytes bytes needs to cross the whole path, with store-and-forward routers between the links. Count the transmission time on every link and propagation at 5 microseconds a kilometre; there is no queueing and no processing delay.
  • "throughput": the ideal bottleneck link-rate ceiling in bits a second, with no other traffic or additional limiting resource. It is a modeled upper bound, not a measured application rate.
  • "bdp": the bandwidth-delay product in bytes, the data a sender must have in flight to keep that throughput, using a round-trip time of twice the path's total propagation delay.

The sample tests include the lesson's Pune to Mumbai path and a path whose slowest link is in the middle.

The path is nonempty. Rates and lengths are integer or floating-point values, excluding booleans; rates are finite and positive, lengths are finite and nonnegative, and packet size is a nonnegative integer. Raise ValueError for an empty path, a negative or noninteger packet size, a nonpositive or nonfinite rate, or a negative or nonfinite length. A zero-length link has no propagation delay; a zero-size packet has no transmission contribution in this headerless model.

Starter code · metrics.py

FIBRE_S_PER_KM = 5e-6  # propagation delay in fibre: 5 microseconds a kilometre


def path_metrics(links, packet_bytes):
    """Return {"delay": seconds, "throughput": bits a second, "bdp": bytes} for a path of (rate, km) links."""
    delay = 0.0
    throughput = 0.0
    bdp = 0.0
    # Work out the three numbers here.
    return {"delay": delay, "throughput": throughput, "bdp": bdp}
The sample tests · test_metrics.py
import math

from metrics import path_metrics


def close(a, b):
    return math.isclose(a, b, rel_tol=1e-9, abs_tol=1e-12)


def test_one_link():
    """a 2 km link of 100 Mb/s and a 1,500-byte packet"""
    m = path_metrics([(100e6, 2)], 1_500)
    assert close(m["delay"], 0.00013)
    assert close(m["throughput"], 100e6)
    assert close(m["bdp"], 250)


def test_pune_to_mumbai():
    """the lesson's first path, without the routers' processing time"""
    m = path_metrics([(100e6, 2), (10e9, 150)], 1_500)
    assert close(m["delay"], 0.0008812)
    assert close(m["throughput"], 100e6)
    assert close(m["bdp"], 19_000)


def test_bottleneck_in_the_middle():
    """the slowest link sets the throughput wherever it is"""
    m = path_metrics([(1e9, 10), (50e6, 100), (1e9, 10)], 1_000)
    assert close(m["delay"], 0.000776)
    assert close(m["throughput"], 50e6)
    assert close(m["bdp"], 7_500)


def test_long_haul():
    """6,000 km at 1 Gb/s: propagation dominates and the pipe holds megabytes"""
    m = path_metrics([(1e9, 6_000)], 1_500)
    assert close(m["delay"], 0.030012)
    assert close(m["bdp"], 7_500_000)


def test_keys():
    """returns exactly the three numbers"""
    assert set(path_metrics([(1e6, 1)], 100)) == {"delay", "throughput", "bdp"}

def test_zero_distance_still_has_transmission_time():
    result = path_metrics([(1_000_000, 0)], 1_000)
    assert close(result["delay"], 0.008)
    assert result["bdp"] == 0.0


def test_zero_packet_retains_propagation():
    result = path_metrics([(100_000_000, 2)], 0)
    assert close(result["delay"], 0.00001)
    assert close(result["bdp"], 250)


def test_invalid_path_parameters():
    for links, packet in [
        ([], 100), ([(0, 1)], 100), ([(1_000_000, -1)], 100),
        ([(math.inf, 1)], 100), ([(1_000_000, math.nan)], 100),
        ([(1_000_000, 1)], -1), ([(1_000_000, 1)], 1.5),
        ([(1_000_000, 1)], True),
        ([("fast", 1)], 100), ([(None, 1)], 100), ([(True, 1)], 100),
        ([(1_000_000, "long")], 100), ([(1_000_000, None)], 100),
        ([(1_000_000, False)], 100),
    ]:
        try:
            path_metrics(links, packet)
        except ValueError:
            continue
        raise AssertionError(f"expected ValueError for {(links, packet)}")
A hint

Loop over the links once. For each one add packet_bytes * 8 / rate and km * 5e-6 to the delay, and add km * 5e-6 to a separate total of propagation. The throughput is the smallest rate, and the bandwidth-delay product is throughput * 2 * propagation / 8.

The sample tests run on this device, in your browser (Pyodide): nothing is sent to mysmartcopilot.com. The first run downloads Python (about 13.5 MB), which is kept for the next runs. A check in your browser is feedback for you, not proof that the code is right for every input.

Practice that adapts to you

Practise this lesson

15 questions about 7 ideas of this lesson. Each answer is explained at once, and what you get right is kept in this browser.

  1. Question 1 of 15 How many milliseconds does a router need to put one 1,500-byte packet onto a 10 Mb/s link?

    Type a number.

    Show the answer: Question 1 of 15

    Answer: 1.2 ms (anything from 1.199 to 1.201 counts)

    Transmission delay is L / R: 1,500 x 8 = 12,000 bits divided by 10,000,000 bits a second is 0.0012 s, or 1.2 ms. The length of the link does not matter for this part of the delay.

  2. Question 2 of 15 A fibre route is 3,000 km long. Using the planning value of 5 microseconds a kilometre, what is its one-way propagation delay in milliseconds?

    Type a number.

    Show the answer: Question 2 of 15

    Answer: 15 ms

    3,000 km x 5 microseconds = 15,000 microseconds = 15 ms, whatever the packet size or the link rate. A round trip over the same route takes at least 30 ms.

  3. Question 3 of 15 What is the bandwidth-delay product, in bytes, of a 1 Gb/s path with a round-trip time of 20 ms?

    Type a number.

    Show the answer: Question 3 of 15

    Answer: 2500000 bytes

    1,000,000,000 bits a second x 0.020 s = 20,000,000 bits, which is 2,500,000 bytes. A sender needs that much data sent but not yet acknowledged to keep the path full, far more than the 65,535 bytes TCP can offer without window scaling.

  4. Question 4 of 15 Packets arrive at a router at 1,000 a second, each 1,500 bytes, and leave on a 10 Mb/s link. What happens to the queue?

    Choose one answer.

    Show the answer: Question 4 of 15

    Answer: Offered demand exceeds service; a finite buffer eventually drops or limits work

    The traffic intensity is L x a / R = 12,000 bits x 1,000 a second / 10,000,000 bits a second = 1.2. The packets need 120 % of the link's time, so every second about 167 more arrive than can leave and the backlog keeps growing.

  5. Question 5 of 15 Packets reach a router at an average of 4,000 a second and each one spends 2 ms in it on average, waiting and being sent. How many packets are in the router on average?

    Type a number.

    Show the answer: Question 5 of 15

    Answer: 8 packets

    Little's law: N = lambda x T = 4,000 a second x 0.002 s = 8 packets. It holds for any arrival pattern and any queueing discipline, as long as the system is stable.

  6. Question 6 of 15 Which delay is the time to put a packet's bits onto a link?

    Choose one answer.

    Show the answer: Question 6 of 15

    Answer: Transmission delay

    Serialization and travel distance are different delay terms.

  7. Question 7 of 15 Which size is larger: 100 MB or 100 MiB?

    Choose one answer.

    Show the answer: Question 7 of 15

    Answer: 100 MiB, because each MiB is 1,048,576 bytes

    Convert each prefix before comparing or dividing the quantities.

  8. Question 8 of 15 How many seconds does 100 MiB need at 100 Mb/s, before headers? Give four decimal places.
    Show the answer: Question 8 of 15

    Answer: 8.388608 s (anything from 8.388558 to 8.388658 counts)

    100 × 1,048,576 bytes × 8 / 100,000,000 = 8.388608 s.

  9. Question 9 of 15 The same 3,000 km fibre path carries a shorter packet at the same rate. What happens to its propagation time?

    Choose one answer.

    Show the answer: Question 9 of 15

    Answer: It remains 15 ms at the stated 5 µs/km planning value

    Shorter serialization does not erase physical travel time.

  10. Question 10 of 15 What differs between the recorded fixed-packet M/D/1 run and the adjustable M/M/1 figure?

    Choose one answer.

    Show the answer: Question 10 of 15

    Answer: The service-time distribution

    Use each model's own assumptions and numbers rather than swapping their mean waits.

  11. Question 11 of 15 Which two quantities set the figure's simplified throughput ceiling?

    Choose one answer.

    Show the answer: Question 11 of 15

    Answer: Link rate and window divided by RTT

    The figure computes min(link rate, window/RTT), under its stated simplified assumptions.

  12. Question 12 of 15 A 100,000-byte window stays fixed while RTT rises to 80 ms. What is its window-only rate ceiling?

    Type a number.

    Show the answer: Question 12 of 15

    Answer: 10 Mb/s

    100,000 × 8 / 0.080 = 10,000,000 bit/s, before other constraints.

  13. Question 13 of 15 What does path rate multiplied by RTT measure in this window-sizing model?

    Choose one answer.

    Show the answer: Question 13 of 15

    Answer: The in-flight data budget for sustaining that rate

    A window budget and a standing router queue are different resources.

  14. Question 14 of 15 Throughput stays high while loaded latency rises. Which observation is justified first?

    Choose one answer.

    Show the answer: Question 14 of 15

    Answer: There is added delay under load to investigate

    High throughput does not measure how long an individual packet waits.

  15. Question 15 of 15 Fair queueing lets a small call packet pass before some bulk bytes. Can its wait still be read as all queued bytes divided by line rate?

    Choose one answer.

    Show the answer: Question 15 of 15

    Answer: Not without its actual scheduling position and service allocation

    The wait of a particular packet depends on the service discipline as well as queued work.

Interview questions

What is the bandwidth-delay product, and why does it matter? (warm-up)

It is the bottleneck rate of a path times its round-trip time: the amount of data that is in flight, sent but not yet acknowledged, when the path is full. A sender that keeps less than that in flight leaves the path idle part of every round trip, so its throughput is at most its window divided by the round-trip time. For example, 100 Mb/s with a 50 ms round trip gives 625,000 bytes, ten times the 65,535 bytes TCP can offer without window scaling, so an unscaled connection has a window-only ceiling of about 10.5 Mb/s. The product therefore tells you the window and the buffers a fast, long path needs for in-flight data. Router queue sizing is a separate decision; a persistently full queue adds latency.

Model answers open with any pass: ₹79 for 1 week ($2.99), one payment that never renews.

  1. Mid to senior

    A file copy between Mumbai and Frankfurt reaches about 9 Mb/s on a 1 Gb/s path. RTT is 120 ms and no packet loss was observed. What could limit the copy, how would you distinguish the causes, and what evidence would justify a change?

    Model answer, Pro. Model answers open with any pass; prices are in the notice on this page. First step and follow-ups

Key takeaways

  • Each hop adds processing, queueing, transmission (L / R) and propagation (distance / speed) delay; light in fibre needs about 5 µs a kilometre.
  • Transmission depends on packet size and rate, propagation on distance; slow access links are dominated by the first, long-haul links by the second.
  • Traffic intensity I = La / R: queueing delay grows without bound as I approaches 1, has high finite-run variation close to it in the Poisson model, and has no stable infinite-buffer average above it. Little’s law, N = λT, links queue length, arrival rate and time in the system for a stable system, using the same boundary and averaging convention for all three.
  • Throughput is at most the bottleneck rate, and at most window / RTT; sharing and overheads lower it further.
  • The bandwidth-delay product R × RTT is the data in flight a path needs; above 65,535 bytes, TCP needs window scaling.
  • Oversized, full buffers add delay without adding throughput (bufferbloat); active queue management keeps queues short.

Terms in this lesson

bandwidth-delay product
A rate multiplied by a delay; using path rate and RTT gives the modeled amount of unacknowledged data needed for that rate.
bufferbloat
Persistently long packet queues that add latency while the bottleneck remains busy.
propagation delay
Time a signal takes to travel a path: the path length divided by signal speed.
queueing delay
Time a packet waits for service before its transmission starts.
traffic intensity
The average offered work divided by service capacity in the stated queue model.
transmission delay
Time needed to place a packet’s bits onto a link: its bit length divided by the link rate.

Corrections

  • Kept bandwidth-delay and window calculations as steady-model budgets and ceilings, with explicit queue-arrival assumptions.
  • Distinguished stable queue models from finite-run variation, planning RTTs from propagation floors, and loaded latency observations from diagnoses.

References

Related tools

Report a problem with this lesson

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.