Quick answer
Internet latency, or network latency, is the time data takes to travel between a device and a server, usually quoted as round-trip time (RTT) in milliseconds. It measures delay, not capacity, and multiplies across the DNS, TCP, TLS and request round trips before a page's first byte arrives.
Formula: Cold HTTPS TTFB ≈ DNS + 1 RTT (TCP) + 1–2 RTT (TLS 1.3 / 1.2) + 1 RTT (request) + server time
What is internet latency?
Internet latency, or network latency, is the time it takes for data to travel from one device to another across a network. On the web it is usually quoted as round-trip time (RTT): the milliseconds between a browser sending a small packet to a server and receiving the reply. Distance sets a floor: even in a straight fibre, a round trip between New York and London cannot take less than about 56 ms, and real routes are slower.
Latency is a measure of time, not of capacity. MDN's guide to latency describes it as the time a packet takes from source to destination, generally measured as a round trip. How much data the connection can move per second is a separate property, bandwidth. A fast fibre line and a slow mobile line can have similar bandwidth on paper and still feel very different, because one needs 10 ms per round trip and the other 100 ms.
Latency matters more than its size suggests, because loading a page is not one round trip but a chain of them. Before the first byte of HTML arrives, the browser may need a DNS lookup, a TCP handshake, a TLS handshake and the HTTP request itself, each waiting a full RTT for the other side to answer.
What causes network latency
- Distance. Light in optical fibre travels at roughly 200,000 km per second, about two-thirds of its speed in a vacuum. High Performance Browser Networking calculates the best possible fibre RTT as 42 ms between New York and San Francisco (4,148 km), 56 ms between New York and London (5,585 km) and 160 ms between New York and Sydney (15,993 km). Real routes are longer than great-circle distance, so real RTTs are higher.
- The last mile. The same source, citing FCC measurements, reports average last-mile latency of 10–20 ms on fibre, 15–40 ms on cable and 30–65 ms on DSL, before a packet even reaches the provider's core network.
- Mobile radio. Cellular links add scheduling and radio delays. Browser developer tools model this with throttling presets; MDN lists minimum latencies of 20 ms for its regular 4G/LTE profile, 40 ms for good 3G and 100 ms for regular 3G. These are simulation settings, not measurements, but they show the order of magnitude.
- Routing and congestion. Every router hop and every queue in a busy link adds delay, and queues are why latency rises under load.
- Satellite links. A geostationary satellite link sends every packet up to orbit and back down, so its round trips are far longer than any terrestrial route; interactive pages suffer most.
How latency adds up in a page load
A simplified model for the first visit to an HTTPS page:
TTFB ≈ DNS lookup + TCP handshake (1 RTT) + TLS handshake (1 RTT on TLS 1.3, 2 RTT on TLS 1.2) + request and first byte (1 RTT) + server processing time
TLS 1.3 completes its full handshake in one round trip; TLS 1.2 needs two. If you treat the DNS lookup as roughly one RTT to a resolver (often less when cached), a cold HTTPS request costs about four round trips plus server time.
Sample data: the same page, with 80 ms of server processing time, requested by two users.
| User | RTT | Cold load, TLS 1.3 | Cold load, TLS 1.2 | Reused connection |
|---|---|---|---|---|
| Same region as the server | 20 ms | 4 × 20 + 80 = 160 ms | 5 × 20 + 80 = 180 ms | 20 + 80 = 100 ms |
| Another continent, mobile | 180 ms | 4 × 180 + 80 = 800 ms | 5 × 180 + 80 = 980 ms | 180 + 80 = 260 ms |
The server did exactly the same work for both users. The distant user's time to first byte is five times longer, and it sits right at the 800 ms boundary that web.dev uses for a "good" TTFB. Nothing in the application code caused it.
Compare that with bandwidth. A 500 KB page takes 500 × 8 ÷ 50 = 80 ms to transfer at 50 Mbps and 40 ms at 100 Mbps: doubling bandwidth saves 40 ms. Halving RTT from 180 ms to 90 ms saves 4 × 90 = 360 ms on the cold load. (The model ignores TCP slow start, which adds further round trips for larger files and makes latency count even more.)
Latency vs bandwidth vs TTFB
| Term | What it measures | Unit | Fixed mainly by |
|---|---|---|---|
| Latency (RTT) | Time for one round trip | Milliseconds | Moving content closer (CDN, regional servers), fewer round trips |
| Bandwidth | Maximum data per second | Mbps | Faster connection, smaller files |
| Throughput | Data actually delivered per second | Mbps | Bandwidth, latency and packet loss together |
| Jitter | Variation in latency between packets | Milliseconds | Less congestion; matters most for calls and games |
| TTFB | Navigation start until the first response byte | Milliseconds | Latency × number of round trips, plus server time |
TTFB is not a network metric by itself: it bundles redirects, DNS, connection setup, TLS, the request and the server's own work. A slow TTFB from one country and a fast one from another points to latency; a slow TTFB everywhere points to the server. For the related idea of delay in analytics data rather than in networks, see data latency.
How to tell whether latency or the server is slowing a page
- Break TTFB down by country. If TTFB is 200 ms in the server's region and 900 ms elsewhere, the gap is distance.
- Read the median and the tail. Compare the P50 with the 75th percentile: mobile users on poor connections pull the tail up while the median looks healthy.
- Inspect one request in DevTools. The Network panel's timing tab splits a request into DNS lookup, initial connection, TLS, waiting for the server and content download. Long DNS, connection and TLS bars are latency; a long "waiting" bar is server time.
- Simulate the slow case. Network throttling in browser developer tools adds a fixed minimum latency, so you can see what a 100 ms or 300 ms user experiences before shipping.
- Fix latency with fewer and shorter trips. A CDN or regional servers cut RTT; HTTP/2 and HTTP/3 reuse connections; TLS 1.3 removes a round trip; preconnect hints start handshakes early; fewer third-party domains mean fewer DNS lookups.
Seeing latency in TapCub
The example above, one page that is fast at home and slow on another continent, is what Monitoring › Performance in TapCub is designed to show. The numbers come from real visitors' browsers, not a lab run.
- Start from the TTFB card. TapCub rates TTFB good at 800 ms or less and poor above 1.8 seconds, and the cards switch between P95, P75, median and average.
- Break it down by country and device. The breakdown dimensions are page, country, device, browser and operating system, with P50, P75, P90 or P99. A country whose P75 TTFB is several times the server region's is the distant user in the table above.
- Separate network from rendering. Load timing splits each load into backend (time to first byte), network transfer and frontend render, so a page that is slow because of TTFB is not confused with one that is slow because of heavy scripts.
- Know the limit. TapCub does not split TTFB into DNS, TCP and TLS phases. For that, use the browser's Navigation Timing data or the DevTools timing tab on a sample request from the slow country.
- Check the effect on visitors. The Core Web Vitals help page explains the other metrics on the same report; compare slow countries with their conversion in Web analytics › Goals to decide whether a CDN or regional server is worth it.
Sources
- MDN Web Docs, Understanding latency (definition, round-trip measurement, DNS, TCP and TLS timings, throttling presets).
- web.dev, Time to First Byte (TTFB) (phases included in TTFB; good at 0.8 s or less, poor above 1.8 s).
- Ilya Grigorik, High Performance Browser Networking, Primer on latency and bandwidth (fibre RTT table; last-mile latency by access type).
- IETF, RFC 8446: The Transport Layer Security (TLS) Protocol Version 1.3 (one-round-trip full handshake).
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Product Experience Specialist
Writes about product experience, practical workflows, and growth, turning complex processes into clear steps for everyday decisions.