Sub topic 14
Utilization and why queues grow as load approaches capacity
This chapter assumes you know the four delay components (processing, queuing, transmission, propagation) and how to compute transmission delay as L/R. Three of those components depend only on the packet and the link. Queuing delay also depends on how much other traffic is present, so it is the one that varies from packet to packet.
Utilization and traffic intensity
Take one output link with rate R bits per second. Suppose packets of average length L bits arrive at an average rate of a packets per second. The bits arriving per second are L·a. The link can send R bits per second. The ratio is the traffic intensity:
ρ = L·a / R
Two related quantities are easy to confuse:
- Traffic intensity (ρ) is offered load divided by capacity. It can be above 1.
- Utilization is the fraction of time the link is busy transmitting. It can never exceed 1.
When ρ < 1 and the queue is stable, utilization equals ρ, because every offered bit is eventually sent. When ρ ≥ 1, the link is busy all the time, so utilization is 1 and throughput is capped at R.
Transmission time per packet is L/R. Dividing by L/R gives a second form: ρ = a × (L/R) = arrival rate × service time. Queueing theory calls L/R the service time and 1/(L/R) = R/L the service rate μ in packets per second. So ρ = a/μ.
Why a queue forms at all
A queue forms when a packet arrives while the link is still sending another one. That can happen even when ρ is well below 1, because arrivals are bursty.
Suppose N packets arrive together every N·L/R seconds. The link is then exactly 100% loaded on average. The first packet waits 0, the second waits L/R, and the k-th waits (k−1)·L/R. The average wait is:
d_queue = (N − 1)·L / (2R)
With L = 12,000 bits, R = 10 Mbps and N = 10, L/R is 1.2 ms. The average wait is 9 × 1.2 / 2 = 5.4 ms. Nothing about the average load changed, but the burst created the delay.
Three regimes of load
| Traffic intensity | What happens | Average queuing delay |
|---|---|---|
| ρ near 0 | Packets rarely meet a busy link. | Close to 0 |
| 0 < ρ < 1, rising | Bursts overlap more often, so waits lengthen. | Grows faster and faster |
| ρ > 1 | Arrivals exceed what the link can send. | Grows without bound (or packets are dropped) |
When ρ > 1, the backlog grows by (L·a − R)/L packets per second. A real router has a finite buffer, so the buffer fills and the router drops arriving packets. A dropped packet is lost to the network, and the sender must retransmit it if a higher layer requires reliability.
The M/M/1 model
GATE and textbooks need a formula for the nonlinear growth. The standard one is the M/M/1 queue. It assumes:
- Packets arrive at random with an average rate λ (a Poisson process).
- Service times are exponentially distributed with an average rate μ.
- There is one server (the link) and an unlimited buffer.
With ρ = λ/μ < 1, the standard results are:
- Average number of packets in the system: N = ρ / (1 − ρ)
- Average time in the system (waiting plus transmission): W = 1 / (μ − λ)
- Average waiting time before transmission starts: Wq = ρ / (μ − λ)
Notice that W = Wq + 1/μ. The last term is just the transmission time of the packet.
The denominator (1 − ρ) is the key. As ρ approaches 1, the delay grows toward infinity. The curve is flat at low load and almost vertical at high load.
Computing it
The script below uses a 12 Mbps link and 12,000-bit packets, so the service rate is 1000 packets per second. It raises the arrival rate from 500 to 990 packets per second.
def mm1(arrival_pps, service_pps):
"""Average M/M/1 figures: (rho, packets in system, time in system, wait in queue)."""
rho = arrival_pps / service_pps
if rho >= 1:
raise ValueError("unstable: traffic intensity must be below 1")
in_system = rho / (1 - rho)
time_in_system = 1 / (service_pps - arrival_pps)
wait = rho / (service_pps - arrival_pps)
return rho, in_system, time_in_system, wait
packet_bits = 12_000
rate_bps = 12_000_000
service_pps = rate_bps / packet_bits # 1000 packets per second
for arrival in (500, 900, 990):
rho, n, w, wq = mm1(arrival, service_pps)
print(f"rho={rho:.2f} packets={n:.0f} time={w*1000:.1f} ms wait={wq*1000:.1f} ms")Output:
rho=0.50 packets=1 time=2.0 ms wait=1.0 ms
rho=0.90 packets=9 time=10.0 ms wait=9.0 ms
rho=0.99 packets=99 time=100.0 ms wait=99.0 msGoing from ρ = 0.5 to 0.9 raises the load by 80% but multiplies the time in the system by 5. Going from 0.9 to 0.99 raises the load by only 10% and multiplies the time by another 10. The transmission time stays at 1 ms throughout. All of the extra delay is queuing.
Adding queuing to end-to-end delay
The queuing delay is one term in the per-hop sum:
dnodal = dproc + dqueue + dtrans + d_prop
For a path of several store-and-forward links, each link has its own ρ and its own queue. The store-and-forward formulas from the previous chapters give the lower bound, which is the delay on an empty network. Real delay is that bound plus the queuing at every hop. The most heavily loaded link usually dominates, so the bottleneck link is also where queues build up first.
Gotchas
- M/M/1 is a model, not a law. Real packet sizes are often not exponential. If all packets have the same size (a deterministic service time, the M/D/1 queue), the average wait is half as large: Wq = ρ / (2μ(1 − ρ)). At ρ = 0.9 and μ = 1000 per second that gives 4.5 ms instead of 9 ms. The shape of the curve stays the same.
- Average load below 1 does not mean no queue. The burst example reached ρ = 1 on average and still queued, and M/M/1 shows delay growing well before ρ reaches 1.
- The formula fails at ρ ≥ 1. The result is not "very large". The model has no steady state, and the queue grows until the buffer is full.
- Utilization is not throughput. Utilization is a fraction between 0 and 1. Throughput is a rate in bits per second, roughly utilization × R. They are linked but not interchangeable.
- Watch units. Convert the service rate to packets per second (R/L) before using λ and μ in the same formula.
Why operators keep links lightly loaded
The curve explains a common design rule. Network operators provision links so that average utilization stays well below capacity, often below about 50 to 70 percent. The spare capacity is not waste. It absorbs bursts, keeps queuing delay small, and leaves room for traffic to grow before delay climbs steeply. Packet switching gains efficiency through statistical multiplexing, and this chapter shows its cost: the shared link has delays that vary with the load.
Exercise
A link has rate 2 Mbps and carries packets of 1000 bits on average. Packets arrive at 1600 per second. Using the M/M/1 model, find the traffic intensity, the average time a packet spends in the system, and the average waiting time in the queue.
Show answer
The service rate is μ = 2,000,000 / 1000 = 2000 packets per second. Traffic intensity ρ = 1600 / 2000 = 0.8. Time in system W = 1 / (μ − λ) = 1 / 400 = 2.5 ms. Transmission time is 1/μ = 0.5 ms, so the waiting time is 2.5 − 0.5 = 2.0 ms. This matches Wq = ρ / (μ − λ) = 0.8 / 400 = 2.0 ms.
Exercise
A router receives 10 packets of 12,000 bits at the same instant, once every 12 ms, and sends them on a 10 Mbps link. Find the traffic intensity and the average queuing delay for the packets in a burst.
Show answer
Transmission time per packet is 12,000 / 10,000,000 = 1.2 ms. The 10 packets need 12 ms of link time per 12 ms period, so ρ = 1. The k-th packet waits (k − 1) × 1.2 ms, so the average wait is (N − 1)L / (2R) = 9 × 1.2 / 2 = 5.4 ms.
Exercise
The same link as in the first exercise now receives 2200 packets per second. What happens to the queue, and what is the throughput?
Show answer
ρ = 2200 / 2000 = 1.1, which is above 1. The queue grows by 200 packets per second until the buffer is full. After that, the router drops excess packets. Utilization is 1 (the link is always busy), and throughput is capped at the link rate of 2 Mbps, or 2000 packets per second.