Nanosecond Accuracy Across WANs with Lucky Packet Filtering

Blog · WAN timing

Nanosecond Accuracy Across WANs with Lucky Packet Filtering

Lucky packet filtering is a statistical technique for extracting precision time from WAN-distributed PTP by ignoring high-jitter packets and weighting the low-jitter ones. How it works and where it earns its place in a long-haul timing fabric.

Lasse Johnsen
Lasse JohnsenCo-founder & CTO, TimeBeat
8 min read
WANLucky packetPTP

TL;DR

  • Lucky packet filtering extracts precision time from a noisy WAN PTP stream by selecting the fastest packets and weighting them more heavily.
  • The intuition is that the fastest packets approximate the true minimum network delay; the slower packets are dominated by transient queueing and contribute noise.
  • Right tool for shared WAN links where the operator doesn't control the infrastructure end to end.

The intuition

PTP measurements over a noisy network produce a distribution of round-trip delays — most packets are delayed by transient queueing, congestion or scheduling jitter, but a few packets get through with minimum delay because they happened to arrive at the switch when the queue was empty. The fastest packets in any measurement window approximate the true minimum network delay between the master and slave clocks. The slower packets are dominated by transient noise and contribute error rather than information.

Lucky packet filtering uses this observation to extract a precision time estimate from the fastest few packets in each measurement window, ignoring the noisy majority. In practical deployments this can extract microsecond-class precision from a network where naive PTP would deliver tens of microseconds.

When to use it

Lucky packet filtering is the right tool for WAN-distributed PTP where the link is shared with other traffic and individual packet delays vary significantly. It's not magic — the achievable precision is bounded by the lowest-jitter packets the filter can find — but it's the best available technique when the operator doesn't control the WAN infrastructure and can't engineer for symmetric paths.

Common use cases include precision time distribution across a third-party transport network, multi-site deployments where the inter-site connectivity is leased rather than owned, and any deployment where lucky packet filtering is the only way to extract microsecond-class precision from a link that's shared with general traffic.

What it can't do

Lucky packet filtering can't deliver sub-nanosecond precision. The achievable precision is bounded by the minimum network delay variability, which on most WAN links is in the low microseconds. For applications that need sub-nanosecond precision over long distances, White Rabbit on operator-controlled fibre is the right answer.

Where TimeBeat fits

TimeBeat's PTP grandmaster implementations support lucky packet filtering for slave clocks operating across WAN links, and the Sync Insight observability platform tracks the filter's performance continuously so the operator can verify the precision is meeting the deployment's budget. For customers running multi-site deployments across shared WAN links, the conversation about whether lucky packet filtering meets the precision requirement is one we have regularly.

Frequently asked questions

What is lucky packet filtering?+
A statistical technique for extracting precision time from a noisy WAN PTP stream. The filter selects the fastest packets in each measurement window — the ones least delayed by transient queueing — and weights them more heavily in the time estimate. The intuition is that the fastest packets approximate the true minimum network delay; the slower packets are dominated by noise.
How precise can lucky packet filtering get?+
Depends on the network. On a moderately loaded shared WAN link, lucky packet filtering can extract microsecond-class precision from a stream where naive PTP would deliver tens of microseconds. On a heavily congested link, the precision floor rises with the noise level. On a controlled link with low jitter, the difference between filtered and unfiltered PTP is smaller.
Is lucky packet filtering a substitute for symmetric fibre engineering?+
No. Lucky packet filtering addresses jitter (the variability in packet delays) but not asymmetry (the systematic difference between forward and reverse path delays). For applications where path asymmetry is the binding error source, you need to either engineer the path symmetrically or measure the asymmetry explicitly and compensate for it.

Talk to us

Got a time-sync question like this in your network?

Book a 30-minute call with a Timebeat engineer — we will tell you which products fit, what the install looks like and what it would cost.