# What is latency?

> Latency is path delay, often measured as RTT. Bandwidth is capacity. High capacity can still feel slow.

Source: https://fullbytedeveloper.com/blog/what-is-latency
Published here: 2026-11-21, updated 2026-12-03

Latency is delay: how long data takes to travel a path. Cloudflare Learning states it as the time for data to pass from one point on a network to another [1]. Bandwidth is capacity. Throughput is how much actually moved. A "fast" plan with high bandwidth can still feel slow if every request waits [1] [2] [4].

Glossary on-ramp for later CPU and ops posts. Pair it with [what is a server](/blog/what-is-a-server) when you want the other end of the path.

## Time one HTTP round trip with curl

curl can print named timing fields without saving the body. The manpage documents `-w` / `--write-out` and variables such as `time_namelookup`, `time_connect`, `time_starttransfer`, and `time_total` [6]:

```bash
curl -o /dev/null -s -w 'namelookup:%{time_namelookup}\nconnect:%{time_connect}\nappconnect:%{time_appconnect}\nstarttransfer:%{time_starttransfer}\ntotal:%{time_total}\n' https://example.com
```

You should see five lines of seconds for that request. Numbers change per path and moment. Teach the fields, not a universal millisecond claim. Your path and moment will differ from any sample you see elsewhere.

## Optional ICMP probe with ping

When ICMP is allowed, `ping` reports round-trip time for echo requests. AWS describes ping as a probe RTT tool with limits [4]:

```bash
ping -c 3 1.1.1.1
```

You should see transmitted and received counts plus min/avg/max RTT when the network permits ICMP. Some clouds and office firewalls drop ping entirely. If ICMP is blocked on your network, use curl instead.

## Separate latency, bandwidth, and throughput

Cloudflare Learning: bandwidth is the maximum data that can pass at a given time; throughput is the average that actually passes over a period and is affected by latency and other factors; latency measures time, not download volume [1]. Cloudflare's home-Internet post argues that marketed "speed" is often bandwidth, while interactive feel tracks delay [2]. AWS: more bandwidth does not necessarily mean better interactive performance if latency is high [4].

MDN frames latency for the web as the time from a user request until a response returns, and notes that network latency is generally measured as round-trip delay [3]. First requests can include DNS, TCP, and TLS; later requests on an open connection can be lower [3].

## Measure idle delay separately from delay under load

Cloudflare's AIM / network-quality writing distinguishes idle latency from latency under load. Large queues can inflate delay (bufferbloat) even when a capacity test looks fine [5]. When someone says "low latency," ask whether the number was idle, under load, one-way, or RTT, and which path was measured.

## Lab latency is a different definition

RFC 1242 defines device-benchmark latency for store-and-forward and bit-forwarding gear [7]. RFC 2544 says a latency report MUST state which RFC 1242 definition was used [8]. That is interconnect lab language, not an ISP ad and not browser page-load time. Read those RFC definitions carefully when you need them for gear benchmarks, and do not paste them into a consumer plan claim.

You now have a plain definition, a curl timing recipe, and a checklist for what "low latency" must disclose before it means anything.

Inside a core, instruction wait often means a pipeline hazard or a branch mispredict rather than a network RTT; that teaching strip is in [pipelining and why CPUs speculate](/blog/cpu-pipelining-speculate).

Send this to the friend paying for faster internet when their games still lag.

Image: Client box sends a request, a middle wait box labeled RTT or one-way, then a server box returns a response. Three cards under the diagram: Latency is time, Bandwidth is capacity, Throughput is actual rate. No people.
https://fullbytedeveloper.com/media/what-is-latency/latency-vs-bandwidth.webp
Latency is delay on a path. Bandwidth is how much can pass. Throughput is how much actually moved.

## Sources

1. [Cloudflare Learning: What is latency?, accessed 2026-11-20](https://www.cloudflare.com/learning/performance/glossary/what-is-latency/)
2. [Cloudflare Blog: Making home Internet faster, accessed 2026-11-20](https://blog.cloudflare.com/making-home-internet-faster/)
3. [MDN: Understanding latency, accessed 2026-11-20](https://developer.mozilla.org/en-US/docs/Web/Performance/Guides/Understanding_latency)
4. [AWS: What is Latency?, accessed 2026-11-20](https://aws.amazon.com/what-is/latency/)
5. [Cloudflare Blog: AIM database for Internet quality, accessed 2026-11-20](https://blog.cloudflare.com/aim-database-for-internet-quality/)
6. [curl manpage: -w / --write-out, accessed 2026-11-20](https://curl.se/docs/manpage.html)
7. [RFC 1242 section 3.8 Latency, accessed 2026-11-20](https://www.rfc-editor.org/rfc/rfc1242.html)
8. [RFC 2544 section 26.2 Latency, accessed 2026-11-20](https://www.rfc-editor.org/rfc/rfc2544.html)
