All Emvero products use one prepaid credit balance. See how credits work

Start for free

Round-trip timings

Timing becomes useful when you know which endpoint replies. TCP, TLS and HTTP/2 can measure different parts of the same path.

Published

On this page

One connection, several clocks

Round-trip time (RTT) is the time between sending something and receiving its response. It includes travel, queues and any work the recipient does before replying.

Different protocol layers can have different recipients:

Measurement Who responds Extra delay to consider
TCP The endpoint of the TCP connection Queues, acknowledgements and retransmissions
TLS handshake The endpoint handling TLS Certificate checks and cryptographic work
HTTP/2 SETTINGS acknowledgement The endpoint handling HTTP/2 Scheduling and packet loss

HTTP/2 requires the peer to acknowledge received settings; this exchange gives a measurement beyond the TCP layer. See RFC 9113, section 6.5.

How a proxy creates a gap

Consider a proxy that terminates TCP but forwards TLS bytes unchanged:

Browser ────── Proxy ────── Observation server
              ◄── TCP ───►
◄────────── TLS and HTTP/2 ────────────────►

The server’s TCP acknowledgement comes from the proxy. The TLS and HTTP/2 replies travel to the browser and back. That extra part of the journey can make both measurements longer than TCP RTT.

For illustration, suppose TCP takes 10 ms, TLS takes 100 ms and HTTP/2 takes 90 ms. The similar extra delay in TLS and HTTP/2 is consistent with an intermediary. These values are an example, not detection thresholds.

Why one slow reply is insufficient

A slow TLS handshake can reflect certificate validation on a busy phone. Packet loss can delay one exchange. Mobile radio and network queues can delay several exchanges differently.

Compare multiple layers and account for how each timer starts. For example, starting a timer on a preconnected socket before the browser begins HTTP/2 can accidentally measure the page’s waiting time.

Which paths hide the gap

Arrangement Why there may be no useful difference
IP-level VPN tunnel TCP, TLS and HTTP/2 all reach the device through the tunnel
TLS-inspecting proxy All three layers end at the proxy
Remote browser The browser itself runs on the remote machine
Proxy close to the browser The additional journey is too short to distinguish from noise

An intermediary can also manipulate delays. Thresholds depend on the observer’s location and audience, so they should not be copied as universal constants.

Distance checks and missing measurements

An extremely short RTT can contradict a distant location claimed by an IP database. That inconsistency can point to a misleading location or an intermediary; it does not locate the person. A long RTT cannot confirm a distant location because congestion can make a nearby endpoint slow.

If HTTP/2 is unused, an acknowledgement arrives too late, or the observer sits behind a load balancer, the relevant comparison may be unavailable. Unavailable means the comparison could not be made.

Read TCP SYN evidence for stack clues and proxies, VPNs and tunnels for a comparison of connection paths.