Latency, Bandwidth and the Delay Product

Topics Covered

What Latency Is Actually Made Of

The four components

Why the lower bound is larger than people expect

Bandwidth is not speed

Where queueing delay comes from

Excessively deep buffers

Asymmetry and the return path

What the application adds on top

Latency on the paths inside a data centre

Comparing against storage and memory

Variability matters more than the average

Latency and bandwidth are the two numbers people quote about a network and they are routinely confused, which leads to buying the wrong thing. Latency is how long one byte takes to arrive; bandwidth is how many bytes per second can be in flight. They are independent, and most application slowness is the former.

The four components

The time for a packet to travel from sender to receiver decomposes into four parts, and knowing which one dominates tells you what can be changed.

Propagation delay is distance divided by the speed of signal in the medium. In fibre, light travels at roughly two thirds of its vacuum speed, about 200,000 kilometres per second, so every 200 kilometres costs about a millisecond each way. This component is physics and cannot be optimised, only shortened by moving closer.

Transmission delay is the time to clock the bits onto the link, which is the packet size divided by the link rate. For a 1,500 byte packet on a gigabit link this is about 12 microseconds, usually negligible, but on a slow last mile link it is not.

Queueing delay is time spent waiting in buffers, and it is the component that varies wildly and causes most of what users experience as inconsistency. Processing delay is the time routers and hosts spend examining and forwarding, normally small.

Tone way=dv⏟propagation+SR⏟transmission+Tqueue+TprocessT_{\text{one way}} = \underbrace{\frac{d}{v}}_{\text{propagation}} + \underbrace{\frac{S}{R}}_{\text{transmission}} + T_{\text{queue}} + T_{\text{process}}

Why the lower bound is larger than people expect

A useful habit is estimating the floor from distance before measuring anything, because it tells you whether a number is good.

Great-circle distance from London to New York is about 5,600 kilometres, so one way in fibre is at least 28 milliseconds and a round trip at least 56. Real paths are not straight, so the measured round trip is typically 70 to 80 milliseconds, and that is a well-engineered path. London to Sydney is around 17,000 kilometres, a 170 millisecond round trip floor, measured typically 250 to 290.

Knowing these floors prevents two mistakes: expecting a cross-continental call to be fast, and chasing a 10 millisecond improvement on a path whose physics floor is 150. It also makes the case for placement concrete, since the only way to beat the floor is to be closer.

Propagation is physics and cannot be optimised, only shortened. Queueing is the component that varies and causes most perceived inconsistency.

Bandwidth is not speed

The word speed is used for bandwidth in marketing and it is the wrong word, which causes a persistent category error.

Doubling bandwidth does not halve the time for a small request. A request and response of a few kilobytes on a path with a 100 millisecond round trip takes just over 100 milliseconds on a 10 megabit link and just over 100 milliseconds on a 10 gigabit link, because the time is round trips, not bytes.

Bandwidth matters when there are enough bytes for transmission time to be significant: video, large downloads, backups, bulk transfer. For an interactive application exchanging small messages, more bandwidth changes nothing and lower latency changes everything. This is the distinction to hold onto, because it determines whether a proposed improvement can possibly help.

Where queueing delay comes from

The variable component deserves its own explanation because it is both the most confusing and the most addressable.

A router receiving packets faster than it can forward them stores them in a buffer. The buffer drains at the link rate, so a packet arriving behind others waits for them. When the buffer is nearly empty, delay is near the physics floor; when it is full, delay is the buffer's depth divided by the link rate, which can be hundreds of milliseconds.

This is why a saturated link produces terrible latency for everything sharing it, including small interactive traffic that has nothing to do with the bulk transfer filling the buffer. A large upload making a video call unusable is this mechanism, and it is the most common networking complaint there is.

Excessively deep buffers

A specific and widespread version of the queueing problem is worth naming, because it explains behaviour that otherwise looks inexplicable.

Equipment is often built with buffers far larger than necessary, on the reasoning that dropping packets is bad. But loss is the signal that tells a sender to slow down, and a deep buffer delays that signal, so senders keep increasing their rate while the queue grows. The result is a link that is fully utilised, drops almost nothing, and has latency hundreds of milliseconds above its floor.

The symptom is a round trip time that rises dramatically whenever anything is transferring, with little or no loss. It is addressed by queue management that signals congestion early rather than buffering, and by congestion control that reacts to delay rather than only to loss, both of which are now common defaults but not universal.

Asymmetry and the return path

Measurements usually report a round trip, which hides that the two directions can be very different.

Paths are frequently asymmetric, taking different routes with different hop counts and different congestion. Access links are usually asymmetric by design, with upload capacity a fraction of download, so a saturated upload can delay the acknowledgements that a download depends on and throttle the download too.

This matters when interpreting measurements: a round trip of 200 milliseconds might be 30 one way and 170 the other, and the remedy for each direction differs. One-way measurement requires synchronised clocks, which is why it is rarely done, but knowing the asymmetry exists prevents over-reading a symmetric assumption.

What the application adds on top

Network latency is the floor for a request, and the application sits on top of it.

Server processing time, queueing inside the server, time waiting for a database or another service, serialisation and deserialisation, and client-side rendering all add to what the user experiences. A request with a 20 millisecond network round trip and a 400 millisecond server time is a server problem that no network change will fix.

So the first question about any latency complaint is the split between network and server, which client-side instrumentation answers directly by reporting connection and handshake time separately from time to first byte. Starting there avoids a great deal of misdirected work.

Latency on the paths inside a data centre

The numbers inside a facility are different by orders of magnitude and worth memorising, because they set expectations for internal calls.

Within a rack, a round trip is tens of microseconds. Across a data centre, a few hundred microseconds. Between availability zones in the same region, typically under a millisecond to a few milliseconds, since zones are separate facilities kilometres apart. Between regions, tens to hundreds of milliseconds.

The practical consequence is that a call to a service in the same zone is effectively free compared to anything crossing a region, and that cross-zone traffic, while fast, is not free in cost terms. A request fanning out to fifty internal services in the same zone adds under a millisecond of network time in total, which means internal network latency is almost never the cause of a slow internal request. Processing and queueing are.

Comparing against storage and memory

Placing network latency next to other operations prevents a category of bad decisions.

A memory reference is around 100 nanoseconds. A solid-state read is tens to hundreds of microseconds. A same-zone network round trip is a few hundred microseconds, so comparable to a disk read. A spinning disk seek is several milliseconds. A cross-region round trip is tens of milliseconds, so thousands of times a local read.

This ordering explains why a cache in memory beats one over the network for small, frequently read data, and why a cross-region read is worse than reading from local disk even when the remote system is faster. The distance dominates whatever is at the other end.

Variability matters more than the average

For user experience, how much latency varies is often more important than its typical value.

A system with a consistent 100 milliseconds feels predictable and responsive. A system averaging 50 but ranging from 10 to 800 feels broken, because the user cannot form an expectation and occasionally waits a long time for no apparent reason. Interface design can hide consistent latency with feedback; it cannot hide unpredictability.

The sources of variability are queueing, retransmission after loss, garbage collection and other pauses, contention, and occasional slow paths through the code. Reducing variance is therefore often a better investment than reducing the mean, and it is measured by looking at the spread between the median and the high percentiles rather than at any single number.

Level Expectations

The strong answer separates latency from bandwidth before proposing anything. Doubling bandwidth does not reduce the time for a small request at all, because that time is round trips multiplied by distance, not bytes divided by rate. Bandwidth matters for bulk transfer; latency matters for interactive work. Proposing a bandwidth upgrade to fix a slow API, or expecting a cross-continent call to beat its physics floor, are the two errors this distinction prevents.