The measurement rides inside the tunnel
Every tunnel between two edges runs BFD, which exists to tell the edge whether the tunnel is alive. The same small packets carry enough information, such as sequence numbers and timestamps, for each side to work out how many were lost and how long and how steadily they travelled. The edge therefore measures the real path that user traffic takes, using packets that cross the same encrypted tunnel as the traffic itself.
BFD packets cross the tunnel in both directions, the edge counts what is missing and times what arrives, stores the result for the current interval, averages the recent intervals, and compares the average with the SLA class.
- ProbeBFD packetsinside the tunnel
- Countmissing andlate packets
- Storeone result perinterval
- Averagerecent intervalstogether
- Comparewith the SLAclass
| Number | What it measures | What it hurts first |
|---|---|---|
| Loss | The share of probes that did not arrive | Voice and video, which cannot wait for a retransmission |
| Latency | How long a probe takes to cross the path | Interactive traffic and anything with a strict delay budget |
| Jitter | How much the delay varies from one probe to the next | Voice and video, which need a steady arrival rhythm |
Two clocks: liveness and quality
The edge runs two clocks over the same probes. The fast one decides whether the tunnel is alive: if no BFD packet is answered for the hello interval multiplied by the multiplier, the tunnel is declared down within seconds, and traffic moves. The slow one decides whether the tunnel is good enough: quality is calculated per interval and averaged over several intervals, which takes minutes or longer. A tunnel that stops answering is found quickly. A tunnel that answers but loses a few percent of its packets is found slowly.
| Hello interval | Multiplier | Detection time | Reading |
|---|---|---|---|
| 1,000 ms | 7 | 7 seconds | A common starting point, but check the release default |
| 1,000 ms | 3 | 3 seconds | Faster failover, less tolerance for lost hellos |
| 500 ms | 7 | 3.5 seconds | Faster failover and twice the hello traffic |
| 3,000 ms | 7 | 21 seconds | Slower failover, less hello traffic on a metered circuit |
Liveness reacts to a tunnel that stops answering, within seconds, using the hello interval and multiplier. Quality reacts to a tunnel that answers badly, over minutes, using the poll interval and the number of intervals averaged.
Intervals and the averaging window
Two settings control the quality clock. The poll interval is the length of one measurement interval. The multiplier is how many recent intervals the edge keeps and averages. Multiply them to get the window. On many releases the defaults are a poll interval of 600 seconds and six intervals, which is a window of one hour, so check what your release uses before you assume anything.
sdwan
bfd color biz-internet
hello-interval 1000
multiplier 7
!
bfd app-route multiplier 5
bfd app-route poll-interval 120000Outline of the timers on an edge. The first block is liveness for one color: a one second hello and seven misses. The last two lines are quality: five intervals of 120 seconds, a window of ten minutes. The poll interval is in milliseconds. The layout, the defaults and the allowed values differ between releases and between templates and CLI.
BR-04#show sdwan app-route stats remote-system-ip 10.255.1.1 local-color biz-internet TUNNEL: biz-internet to HUB-01 biz-inet poll interval 600 s, 6 intervals INTERVAL AGE LOSS LATENCY JITTER 0 0-10 min 11 71 38 1 10-20 min 0 58 6 2 20-30 min 0 57 5 3 30-40 min 0 59 7 4 40-50 min 0 58 6 5 50-60 min 0 57 5 AVERAGE 1.8 60 11
| Poll interval | Intervals kept | Window | One interval at 11 percent loss averages to | Voice limit 2 percent |
|---|---|---|---|---|
| 600 seconds | 6 | 60 minutes | 1.8 percent | Still eligible, event not seen |
| 300 seconds | 6 | 30 minutes | 1.8 percent | Still eligible, event not seen |
| 120 seconds | 5 | 10 minutes | 2.2 percent | Not eligible for up to 10 minutes |
| 60 seconds | 3 | 3 minutes | 3.7 percent | Not eligible for up to 3 minutes |
| Intervals kept | One bad interval above | Two bad intervals, each above | Three bad intervals, each above |
|---|---|---|---|
| 6 | 12 percent | 6 percent | 4 percent |
| 5 | 10 percent | 5 percent | 3.3 percent |
| 3 | 6 percent | 3 percent | 2 percent |
A worked case: the burst the average hid
Users at BR-04 reported broken calls for about ten minutes around 14:00, then normal service. The Internet provider confirmed a short congestion event. The voice policy prefers the biz-internet tunnel and keeps mpls as the spare, and mpls was healthy the whole time, yet the calls were not moved. The statistics for biz-internet show why.
The output above is from that tunnel. One interval had 11 percent loss and the five others were clean. The average of 1.8 percent stayed under the voice limit of 2 percent, so the tunnel remained eligible and the calls stayed on it while they were degraded. Nothing was misconfigured. The window was long enough to dilute the event below the limit.
Calls were broken for ten minutes and then recovered. One measurement interval shows eleven percent loss and five show none. The average is below the voice limit. The tunnel stayed eligible, so traffic was not moved.
- SymptomCalls broken for about 10 minutesNormal again afterwards
- IntervalsOne interval: 11 percent lossFive intervals: no loss
- Average1.8 percent lossUnder the voice limit of 2
- ResultTunnel stayed eligibleTraffic was not moved
The choice is between a window that ignores short events and one that reacts to them. A window of 120 seconds and five intervals would have averaged the same event to 2.2 percent and made the tunnel ineligible for voice within one interval. It would also react to every short burst, and paths would change more often. Decide with data: read the statistics for several tunnels over a week, count how often short bursts occur, and set a window that matches how long users tolerate a problem. Then test it against a failure in the lab.
What the measurement can and cannot see
| Event | Seen by | Speed | Note |
|---|---|---|---|
| Tunnel stops answering | BFD liveness | Seconds | Traffic moves without the quality averages |
| Steady loss or jitter above the limit | Quality average | One window | The tunnel becomes ineligible for the class |
| Short burst inside one interval | Quality average, diluted | Often not seen | Depends on the window and the size of the burst |
| Loss in the local egress queue | Probes share the queue | Partly | Check the queue counters on the interface as well |
A long window dilutes a short burst. A threshold close to normal values makes the result jumpy. A congested local queue delays the probes themselves. The two ends can see different values.
- Long windowshort burstsdiluted
- Thresholdtoo loose ortoo close
- Local queueprobes sharethe interface
- Other enddirectiondiffers
Learn more: SLA Classes and Policy ThresholdsQoS, AAR and Application PerformanceIPsec/BFD Failures and Packet Drops
Test yourself
A tunnel stops answering completely. Which mechanism moves the traffic, and how fast?
Six intervals show loss of 8, 0, 0, 0, 0 and 0 percent. The voice limit is 2 percent. What is the average, and is the tunnel eligible for loss?
The poll interval is 120 seconds and five intervals are kept. How long is the averaging window?
Why not set the shortest possible window on every tunnel?
A tunnel uses a 500 ms hello interval and a multiplier of 7. About how long after it stops answering is it declared down?
Six intervals are kept. One interval shows 15 percent loss and the other five are clean. The voice limit is 2 percent. What happens?
Three intervals are kept and the voice limit is 2 percent. What single bad interval, with the others clean, is enough to push the average over the limit?