Authors: Ian Marsh, Liam McNamara and Rebecca Portelli (SICS Swedish ICT)
Venue: 14th International Conference on Advances in Mobile Computing and Multimedia (MoMM 2016), Singapore, pp. 89–93
DOI: 10.1145/3007120.3007166
Year: 2016
Topic: Internet measurements
Paper (ACM) · CheesePi project · Rebecca Portelli's thesis
Summary
The standard way to measure Internet delay is ping: send an ICMP echo request and time the reply. But ping is extra traffic, routers often treat ICMP differently from real traffic (lower priority, rate limits, or blocked entirely), and it says nothing about the delay an application actually sees.
This paper presents an in-protocol technique for web browsing. Every TCP connection begins with a three-way handshake (SYN, SYN-ACK, ACK) and ends with a tear-down (FIN exchange). Those exchanges are timers that are already there. By timestamping them, the round-trip time can be estimated without an external tool, command or ICMP, and without sending a single extra packet.
How it works

- At the client, the time from sending SYN to receiving SYN-ACK is one round trip plus the time the server took to respond. Handshakes are handled in the operating system kernel, so that processing time is small, but it is not zero.
- At the server, the time from sending SYN-ACK to receiving the ACK is a clean round trip, with only the client's (small) processing included.
- The tear-down gives a second sample per connection.
- Comparing these with each other, and with the time to retrieve the object, separates network delay from server and application delay.
Because a web page opens many connections, a browsing session yields many samples for free.
Results
The technique was built into the CheesePi measurement platform and tested from Stockholm to Karlstad University, taking 3,000 ICMP pings at the same time as TCP handshakes for comparison.

The handshake estimate tracks ping closely once server processing is removed, and the difference between the green and red distributions is the server's contribution. Sub-millisecond differences are visible because the network path (Swedish research network, SUNET) is short and lightly loaded.
Discussion
- Advantages. No extra traffic, works where ICMP is blocked, measures the path real TCP traffic takes, and scales with normal use. It is also passive from the network's point of view.
- Limits. One sample per handshake and tear-down, so idle periods have none. Long-lived connections (streaming, HTTP/2 keep-alive) give few new handshakes. Delayed ACKs, TCP offload in network cards, and middleboxes that terminate TCP (proxies, load balancers) all distort the timing.
- The protocol landscape has changed. Since 2016, QUIC (RFC 9000) and HTTP/3 have moved much web traffic to encrypted UDP. The handshake is still there, but encrypted. QUIC therefore includes a spin bit (RFC 9000, section 17.4) that an observer can use to measure RTT, a deliberate continuation of this idea. TCP-based tools such as
tcptrace,pping(passive ping) and eBPF probes in the Linux kernel now apply the same principle at scale.
Future work
- Extend to QUIC using the spin bit and endpoint logging (qlog).
- Run continuously in the kernel with eBPF, and on home gateways, to build delay maps without active probing.
- Combine with dimensionality reduction to separate network, server and WiFi delays in coupled systems (Dimensionality reduction in (large) measurement datasets).
- Use the handshake timing for latency-aware server selection in CDNs and edge networks.
The EU perspective
- Delay ("latency") is one of the quality parameters regulators monitor under the Open Internet Regulation (EU) 2015/2120, and BEREC's measurement methodology includes it. In-protocol methods measure the delay real traffic sees, which ICMP-based measurements can miss when operators prioritise or rate-limit ping.
- Passive measurement of real traffic raises privacy questions. Under GDPR and the ePrivacy Directive 2002/58/EC, measuring connection timing on a user's own device with consent is very different from an operator inspecting subscribers' traffic. Handshake timing needs no payload inspection, which keeps it on the right side of that line.
- The European Electronic Communications Code (Directive (EU) 2018/1972) and the Digital Decade's focus on latency-sensitive services (5G, edge computing) keep delay measurement central to EU telecom policy.
References
- I. Marsh, L. McNamara and R. Portelli, "Delay characterization through in-protocol measurements," MoMM 2016, pp. 89–93.
- R. Portelli, CheesePi: delay characterization through TCP-based analysis from end-to-end monitoring, MSc thesis, KTH, 2016.
- I. Marsh, CheesePi: research, results, and the regulator, ACM ANRW, 2017.
- H. Jiang and C. Dovrolis, "Passive estimation of TCP round-trip times," ACM SIGCOMM CCR 32(3), 2002.
- J. Iyengar and M. Thomson (eds.), "QUIC: a UDP-based multiplexed and secure transport," RFC 9000, 2021.
Citation
Ian Marsh, Liam McNamara and Rebecca Portelli, Delay characterisation through in-protocol measurements, MoMM, 2016, Paper.
BibTeX
@inproceedings{marsh2016delay,
author = {Marsh, Ian and McNamara, Liam and Portelli, Rebecca},
title = {Delay characterization through in-protocol measurements},
booktitle = {Proceedings of the 14th International Conference on Advances in Mobile Computing and Multi Media (MoMM)},
pages = {89--93},
year = {2016},
doi = {10.1145/3007120.3007166}
}
Related student thesis
More in Internet measurements: ← CheesePi: Research, Results, and the Regulator | CheesePi →