TECHNOLOGY

Hardware timestamps need a clock-domain and packet identity join

In this article
THE QUICK TAKE

Nanosecond timestamp representation does not establish synchronized clocks, correct packet pairing or nanosecond measurement accuracy.

Precise-looking subtraction produces impossible latency

A fabric report subtracts a sender hardware timestamp from a receiver timestamp and obtains occasional negative one-way delays. The representation may have fine resolution while the clocks remain offset, the measurement points differ or the samples refer to different packets. Treat timestamp source and identity as part of every sample. More decimal places cannot repair an invalid clock-domain or packet-correlation join.

Identify what each timestamp measures

The Linux timestamping documentation distinguishes timestamps generated in the adapter, software transmit path, packet scheduler and other stages. A send-call timestamp and a wire-adjacent timestamp contain different queueing boundaries. Record the requested source, the source actually returned and its location. A missing hardware timestamp should remain missing rather than silently becoming a software value under the same label, because that substitution changes the quantity being compared.

Relate hardware clocks explicitly

Raw hardware timestamps are not automatically system-time values. The PTP hardware-clock interface exposes registered clock devices and adjustment facilities, with driver-dependent features. Establish which PHC supplied each endpoint’s value and what synchronizes or converts those clocks during the observation interval. Preserve offset, drift and uncertainty evidence appropriate to the claimed delay. A daemon reporting that it is running does not by itself prove the alignment accuracy needed for a small one-way latency result.

Do not pair by arrival order

Transmit timestamps arrive through the socket error queue and can be reordered relative to send calls. The timestamping reference documents an identifier option for correlation, with protocol-specific behavior and counter lifecycle. Preserve socket generation, identifier and send association, including resets or wraparound handling. Matching the next received timestamp to the next outstanding application write can create false latency spikes or negative values. A TCP write can also span packetization boundaries, so define the measured unit before assigning one timestamp to a message.

Qualify the measurement chain

In an isolated fixture, validate source selection, complete ancillary-data parsing, expected identifiers and endpoint clock relationships before collecting a workload distribution. Include a missing timestamp and reordered reporting case so the collector rejects or labels incomplete samples. Report the accepted population and excluded samples with reasons. Acceptance establishes a coherent measurement path and justified error budget; it does not require manufacturing a value for every send or assuming that all NICs provide identical timestamp features.

Keep one-way claims within their evidence

If clock alignment is insufficient, retain endpoint-local timing or another measurement whose assumptions are justified instead of presenting raw subtraction as path latency. The clock-skew guide explains broader timing failures, while capture boundaries shows why host observations differ from wire representations. Report timestamp resolution separately from accuracy and application latency. A correct clock-domain and packet identity join is the prerequisite for a useful one-way distribution, not a performance improvement to the network itself.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles