Sub topic 10
Processing, queuing, transmission and propagation delay
This chapter assumes you know what a packet is and can convert between bits and bytes and between milli-, micro- and mega- units. It covers the four delays a packet meets at each hop and the standard GATE traps around them. The next chapters build on these four terms.
The four components of nodal delay
A packet crossing a network passes through nodes (routers or switches) joined by links. At each node, the packet suffers four delays. Their sum is the nodal delay:
dnodal = dproc + dqueue + dtrans + d_prop
| Delay | What it measures | Formula | Depends on |
|---|---|---|---|
| Processing | Time to examine the header, check for bit errors, and choose the output link | Usually given as a constant | Router hardware |
| Queuing | Time spent waiting in the output buffer before transmission starts | No fixed formula; depends on traffic | Load on the link |
| Transmission | Time to push all bits of the packet onto the link | L / R | Packet length L (bits), link rate R (bits/s) |
| Propagation | Time for one bit to travel along the medium | d / s | Link length d (m), signal speed s (m/s) |
Processing delay is typically microseconds or less. GATE questions often say "ignore processing and queuing delay", which leaves only the last two terms.
Transmission delay versus propagation delay
These two are confused most often, so keep the difference clear.
- Transmission delay is the time to put the packet onto the wire. It is the time between the first bit and the last bit leaving the sender. It grows with packet size and shrinks with a faster link.
- Propagation delay is the time for a bit to cross the wire. It is the same for a 1-bit packet and a 1-gigabit packet. It grows with distance and does not depend on the link rate.
A useful picture is a convoy of cars. Transmission time is how long the toll booth takes to release every car in the convoy. Propagation time is how long one car takes to drive to the next toll booth.
Typical propagation speeds are about 2 × 10^8 m/s in copper or fiber and 3 × 10^8 m/s in air or vacuum. If the problem gives no speed, use the value it states. Do not assume one.
Worked example
A 1500-byte packet crosses one 10 Mbps link that is 2000 km long. The signal speed is 2 × 10^8 m/s. Processing delay is 20 µs and queuing delay is 0.3 ms.
- Convert the length: 1500 bytes × 8 = 12,000 bits.
- Transmission: 12,000 / 10^7 = 1.2 ms.
- Propagation: 2 × 10^6 / 2 × 10^8 = 10 ms.
- Total: 0.02 + 0.3 + 1.2 + 10 = 11.52 ms.
def nodal_delay(packet_bits, rate_bps, distance_m, prop_speed_mps,
processing_s=0.0, queuing_s=0.0):
"""Return each delay component (in seconds) and their sum for one hop."""
transmission = packet_bits / rate_bps
propagation = distance_m / prop_speed_mps
total = processing_s + queuing_s + transmission + propagation
return {
"processing": processing_s,
"queuing": queuing_s,
"transmission": transmission,
"propagation": propagation,
"total": total,
}
parts = nodal_delay(12_000, 10_000_000, 2_000_000, 2e8,
processing_s=20e-6, queuing_s=0.3e-3)
for name, value in parts.items():
print(f"{name:12s} {round(value * 1000, 3)} ms")Running this prints 0.02, 0.3, 1.2, 10.0 and 11.52 ms. Propagation dominates here because the link is long and the packet is short.
Which delay dominates
The ratio of the two delays tells you where time goes. Compare a local network with a geostationary satellite link, both carrying a 12,000-bit packet.
cases = [
# name, rate (bits/s), distance (m), signal speed (m/s)
("LAN, 1 Gbps, 100 m", 1_000_000_000, 100, 2e8),
("Satellite, 1 Mbps, 72000 km", 1_000_000, 72_000_000, 3e8),
]
for name, rate, dist, speed in cases:
tx = 12_000 / rate
prop = dist / speed
print(f"{name}: transmission = {tx * 1e6:.1f} us, propagation = {prop * 1e6:.1f} us")The output shows the LAN with 12.0 µs transmission and 0.5 µs propagation, and the satellite link with 12,000 µs transmission and 240,000 µs propagation. On the LAN, buying a faster link would help. On the satellite link, a faster link barely helps, because the 240 ms of propagation cannot be reduced by rate.
The rule of thumb: raising the rate R only shrinks transmission delay. Shortening the path only shrinks propagation delay. Neither touches the other.
Queuing delay and why it is variable
Transmission and propagation delays are fixed for a given packet and link. Queuing delay is not. It depends on how many packets are already waiting when yours arrives.
Let a be the average packet arrival rate (packets/s), L the packet length in bits, and R the link rate. The traffic intensity is La / R.
- If La / R is well below 1, queues are usually short and the average queuing delay is small.
- As La / R approaches 1, the average delay rises sharply.
- If La / R is greater than 1, bits arrive faster than they can leave. The queue grows without bound and, in a real router with a finite buffer, packets are dropped.
Queuing delay for the first packet of a burst is zero, while the last packet of a burst of N packets waits for the N − 1 packets ahead of it, about (N − 1) L / R. A later chapter covers utilization in more detail. Here, you only need to know that queuing delay is a statistic and that it is usually given in the problem.
Several hops
With store-and-forward switching, a router must receive the whole packet before it forwards it. So a path of N links, each of rate R, adds one transmission delay per link:
d_total = N × (L / R) + (sum of propagation delays) + (processing and queuing, if given)
Propagation delays add up to total distance divided by speed, so you can compute them in one step when the speed is the same on every link. The Python snippet in the next chapter uses this formula. For now, remember that transmission delay is counted once per link and propagation delay is counted over the total length.
For example, one 12,000-bit packet crosses 3 links at 10 Mbps each over 3000 km of cable at 2 × 10^8 m/s. Transmission is 3 × 1.2 ms = 3.6 ms and propagation is 15 ms, so the total is 18.6 ms.
Common errors
- Bits versus bytes. Packet sizes are often given in bytes and rates in bits per second. Multiply bytes by 8 before dividing by R.
- Decimal prefixes for rates. In networking, 1 Mbps is 10^6 bits/s, not 2^20. Packet sizes in some problems use 1 KB = 1024 bytes, so read each statement closely.
- Using transmission delay for distance. Doubling the cable length does not change L / R.
- Mixing up units. 1 ms = 10^-3 s and 1 µs = 10^-6 s. Convert everything to seconds before adding.
- Forgetting that propagation is per bit. The last bit of a packet arrives at time (L / R) + (d / s) after the first bit starts leaving, not at time d / s alone.
- Ignoring the hop count. Transmission delay repeats on every store-and-forward link, but a single propagation delay does not repeat for each bit of the packet.
Cut-through versus store-and-forward
Most GATE questions assume store-and-forward, where a node waits for the entire packet. Some devices use cut-through forwarding, where they begin sending once the header has arrived. That removes most of the per-hop transmission delay, but the device cannot check the whole packet for errors before forwarding. If a question does not name the switching mode, it means store-and-forward.
Exercise
A 2000-byte packet is sent over a 4 Mbps link that is 600 km long. The signal speed is 2 × 10^8 m/s. Ignore processing and queuing. Find the transmission delay, the propagation delay, and the time at which the last bit arrives at the receiver, measured from when the first bit starts leaving the sender.
Show answer
Packet size is 2000 × 8 = 16,000 bits. Transmission = 16,000 / (4 × 10^6) = 4 ms. Propagation = (6 × 10^5) / (2 × 10^8) = 3 ms. The last bit arrives at 4 + 3 = 7 ms.
Exercise
Two hosts are joined by one link. Doubling the link rate changes which of the four delays, and doubling the link length changes which?
Show answer
Doubling the rate halves only the transmission delay (L / R). Doubling the length doubles only the propagation delay (d / s). Processing and queuing are not changed directly by either, although a faster link usually lowers queuing by lowering traffic intensity La / R.
Exercise
A packet of 8000 bits passes through 2 store-and-forward links in series. Each link has rate 2 Mbps. The total cable length is 1000 km at 2 × 10^8 m/s. Ignore processing and queuing. What is the end-to-end delay?
Show answer
Transmission per link = 8000 / (2 × 10^6) = 4 ms, so 2 links give 8 ms. Propagation = 10^6 / (2 × 10^8) = 5 ms. Total = 8 + 5 = 13 ms.