Full Byte Developer.

What is latency?

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

Published here , updated · 8 sources

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 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.

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

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.
Latency is delay on a path. Bandwidth is how much can pass. Throughput is how much actually moved.

Keep this guide

By Full Byte Developer

Filed under Dev explainers

Questions about this guide

Is latency the same as bandwidth?

No. Cloudflare Learning defines latency as time for data to pass from one point to another. Bandwidth is the maximum data that can pass at a given time. Throughput is how much actually moved over a period.

Why do people quote round-trip time?

One-way latency needs synchronized clocks at both ends. Round-trip time is easier to measure with tools like ping or HTTP client timings, so RTT is the common field number.

Does buying more bandwidth fix latency?

Not by itself. AWS and Cloudflare both separate capacity from delay. A high-bandwidth path can still feel slow if every request waits a long time.

What does low latency mean in an ad?

Treat it as marketing until you see the method: one-way or RTT, idle or under load, which path, and which tool. Lab device latency in RFC 1242 is a different definition from a browser page load.

Sources

Next in this stack