Course contents

Unit 4: Advanced AARLesson 4.2 (2 of 7 in this unit)16 of 63 in the Advanced Cisco SD-WAN course

BFD timing, aggregation and measurement limitations

What the BFD probes can and cannot see: the smallest loss a window can resolve, probe size and marking, hello interval, multiplier and hub load, and a worked case where a provider cap hid voice loss.

Advanced · 15 min read

You'll learn to work out the smallest loss a measurement window can resolve, explain why a probe can report a clean path while user traffic suffers, relate hello interval, multiplier and session count to detection time and load, and cross-check the probe numbers with an independent measure.

Technical definition

A measurement limit is a property of how the edge measures a path that stops the number from describing everything users experience. BFD probes are a small, regular sample sent through each tunnel. They show loss, delay and jitter for that sample. They do not show what happens only to larger packets, only to one traffic class, or only at the moments between probes.

The probe is a sample, not the traffic

Application-aware routing decides from numbers that BFD measures inside each tunnel. Those numbers are only as good as the probe. A BFD probe is one small packet that travels the same tunnel as user traffic, but it is not user traffic. It has its own size, its own rate and its own marking, and the network between the two edges can treat it differently from a voice packet or a file transfer.

Diagram
The probe and the user packet
The probe and the user packet

A BFD probe is small, regular and marked for control traffic. A user packet can be large, bursty and marked for voice or data. The two share the tunnel but can be queued, policed or dropped differently along the path.

BFD probesmall, regular,its own marking
User packetlarger, bursty,marked by class
A clean probe shows that the path carried the probe. It is strong evidence for liveness and weaker evidence for the quality of one traffic class.
Diagram
What the probe tells you and what it hides
What the probe tells you and what it hides
PropertyProbeWhy it can differ from user traffic
SizeSmallA fault that drops only large packets is invisible
RateOne per intervalA cap that only bites at a higher rate is invisible
MarkingIts ownA provider queue for another class can be congested or capped alone
TimingRegularBursts between probes are averaged away
DirectionRound tripDelay that differs in each direction is combined into one figure
Each row is a way for a path to look healthy to the probe and bad to users.

How fine can the measurement be

Loss is counted in whole probes. In a measurement interval the edge sends a fixed number of probes, and one lost probe moves the loss figure by one divided by that number. A limit that is smaller than that step cannot be measured, however it is written in the SLA class.

Diagram
Smallest resolvable loss, one probe per second (assumed)
Smallest resolvable loss, one probe per second (assumed)
Poll intervalProbes in itEach lost probe addsOver five intervals
60 seconds601.67 %0.33 %
120 seconds1200.83 %0.17 %
600 seconds6000.17 %0.03 %
Computed as 1 divided by the probes in the interval. The hello interval of one second is an assumption for the table. Real defaults differ by release.
Diagram
From lost probes to a loss figure
From lost probes to a loss figure

The edge sends a fixed number of probes in each interval, counts how many were answered, converts the missing ones to a percentage, and averages the last few intervals into the figure that is compared with the SLA class.

  1. Senda fixed numberof probes
  2. Countanswered andmissing
  3. Percentmissing dividedby sent
  4. Averagelast fewintervals
With 120 probes, three lost probes in one interval read as 2.5 percent. The average over several intervals dilutes it, as the earlier lesson shows.

The step size matters most when an SLA limit is set. A limit is crossed only when enough whole probes are lost in one interval, and a small limit needs just one.

Diagram
Lost probes needed to cross an SLA loss limit (computed)
Lost probes needed to cross an SLA loss limit (computed)
SLA loss limit60 probes in the interval120 probes in the interval600 probes in the interval
0.1 percent limit1 probe (1.67 %)1 probe (0.83 %)1 probe (0.17 %)
1 percent limit1 probe (1.67 %)2 probes (1.67 %)7 probes (1.17 %)
2 percent limit2 probes (3.33 %)3 probes (2.50 %)13 probes (2.17 %)
5 percent limit4 probes (6.67 %)7 probes (5.83 %)31 probes (5.17 %)
Computed as the smallest whole number of lost probes whose share of the probes sent is above the limit. One probe per second is an assumption. Whether a class acts on loss above the limit or at the limit differs by release, so check it. The figure in brackets is the loss that number of probes produces.

The same limit applies to delay and jitter, which are computed from few samples per interval. They are good for telling a tunnel that is 40 milliseconds apart from one that is 120 milliseconds apart. They are not a precise instrument for differences of a millisecond or two, so an SLA limit should leave room for noise.

Hello interval, multiplier and the cost of speed

Liveness uses the hello interval and the multiplier: a tunnel is declared down when no probe is answered for the interval multiplied by the multiplier. Shorter values detect a dead tunnel sooner, and they also send more packets and tolerate less jitter on the path. Because a hub carries a session for every tunnel from every branch, the packet load grows with the number of branches as well as with the interval.

Diagram
Detection time for example timers
Detection time for example timers
Hello intervalMultiplierDetects a dead tunnel in
1,000 ms77.0 seconds
1,000 ms33.0 seconds
300 ms61.8 seconds
5,000 ms735 seconds
Computed as interval multiplied by multiplier. The values are examples; the defaults and the allowed range differ by release and platform.
Diagram
Probe load on a hub with 1,000 BFD sessions
Probe load on a hub with 1,000 BFD sessions
Hello intervalProbes per second in each directionCompared with one second
1,000 ms1,000Same
500 ms2,0002 times
200 ms5,0005 times
Computed as sessions divided by the interval in seconds. Platforms publish limits for sessions and for rates, so check them before shortening timers at a hub.
Diagram
Trade-offs of faster timers
Trade-offs of faster timers

Faster timers detect a dead tunnel sooner. They also raise the packet and processing load, make short provider hiccups look like failures, and consume more of the hub's session capacity.

Faster timers
  • Soonerdead tunnelfound quickly
  • More loadprobes andprocessing
  • More flapsshort glitcheslook like faults
  • Less scalefewer sessionsper hub
Choose the slowest timers that still meet the recovery time the application needs.

A worked case: clean probes and bad calls

Users at BR-02 report choppy calls every morning between 09:00 and 10:00. The SLA dashboard for the mpls tunnel to HUB-01 shows no violations. Priya reads what the edge measures.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-02#show sdwan app-route stats
TUNNEL (remote)                   LOSS  LATENCY  JITTER
mpls to HUB-01 mpls               0     46       7
biz-internet to HUB-01 biz-inet   1     62       12
The mpls tunnel measures no loss, 46 ms of latency and 7 ms of jitter. These are the values compared with the voice class, and they are clean. The probes see a healthy path, which is correct for the probes.

Next she checks something that does not depend on the probes: the call quality report from the voice system, and the provider's report for the voice class on that circuit.

Diagram
Independent evidence for 09:00 to 10:00 (example data)
Independent evidence for 09:00 to 10:00 (example data)
SourceWhat it shows
BFD probes, mpls0 % loss, 46 ms, 7 ms
Call quality report25 simultaneous calls, about 26 % reported packet loss
Provider voice classContract 2.0 Mbps, offered 2.7 Mbps, about 0.7 Mbps dropped
Example data written for this lesson. The offered rate is 25 calls at about 108 kbps each, the encapsulated G.711 rate used in the QoS lesson. The loss is (2.7 minus 2.0) divided by 2.7.
Diagram
Evidence from the case
Evidence from the case

The probes report no loss on the mpls tunnel. The call quality report shows about a quarter of voice packets lost during the morning peak. The provider's voice class is capped at 2 megabits and the site offers 2.7 megabits at peak. The probes use a different class and are not dropped, so the SLA numbers stay clean while voice is damaged.

  1. Probesmpls: 0 % loss, 46 ms, 7 msThe tunnel looks healthy
  2. UsersAbout 26 % voice loss at 25 callsChoppy calls every morning
  3. ProviderVoice class capped at 2.0 MbpsOffered 2.7 Mbps, 0.7 Mbps dropped
  4. FixRaise the voice rate or move calls off mplsAdd independent monitoring
Two independent sources agreed with each other and disagreed with the probes. The probes were right about the probes.

The repair is outside the SD-WAN policy. The contracted voice rate has to cover the busiest hour, so Priya asks the provider to raise it to 3.5 Mbps and the network team checks at the next morning peak that the reported loss has fallen. She also adds the call quality report to the weekly review next to the SLA dashboard, because the dashboard only reports what the probes can see.

Diagram
Symptoms and the first check
Symptoms and the first check
SymptomFirst checkLikely cause
Bad calls, clean SLA numbersIndependent call quality and provider class countersA cap or queue that the probes do not cross
A tunnel flaps often with short timersDetect time against the typical path jitterTimers tighter than the path can hold
SLA limit does not trigger on small lossProbes per interval against the limitA limit finer than one probe
Hub CPU or session limit reachedNumber of sessions and hello intervalTimers shortened across many sessions
Cross-check the probe with a second source before changing the SLA class.

Learn more: BFD-derived Loss, Latency and JitterSLA Classes and Policy ThresholdsSD-WAN QoS Concepts

Test yourself

Predict · scenario 1

The probes on a tunnel show 0 percent loss, but voice sounds choppy and the call quality report shows about 26 percent packet loss. Which explanation fits best?

Predict · scenario 2

With one probe a second and a 120 second poll interval, what does one lost probe add to the loss figure for that interval?

Predict · scenario 3

An SLA class has a loss limit of 0.1 percent. The poll interval holds 120 probes. What is the problem?

Predict · scenario 4

A hub has 1,000 BFD sessions and the hello interval is shortened from 1,000 ms to 200 ms. What happens to the probe rate in each direction?

Predict · scenario 5

What is the most reliable way to check whether the probe numbers represent what voice users experience on a transport?

Predict · scenario 6

An SLA class has a loss limit of 2 percent and acts when loss is above the limit. The poll interval holds 120 probes. How many lost probes in one interval push the figure past the limit?

Predict · scenario 7

A branch tunnel flaps several times a day after the hello interval was cut from 1,000 ms with a multiplier of 7 to 300 ms with a multiplier of 3. The provider has short hiccups of about one second. What explains the flaps?

Predict · scenario 8

Priya compares the probe figures for a tunnel with the call quality report. Both show about 3 percent loss in the same hour. What does that tell her?

FAQ

Can a tunnel show zero loss while voice sounds bad?
Yes. The probes are small packets sent at a low rate, and the provider may treat them differently from voice. A provider cap on the voice class, for example, drops voice packets and leaves the probes untouched.
What is the smallest loss the edge can measure?
One probe out of the probes sent in the measurement interval. With one probe a second and a 120 second interval that is about 0.83 percent for each lost probe. A limit finer than that cannot be told apart from noise.
Is a shorter hello interval better in every case?
No. It detects a dead tunnel sooner, but it also raises the probe load on both ends, which grows with the number of sessions, and it makes brief provider hiccups look like failures. Platform limits on sessions and rates apply, so check them for your hardware.
How do I know the probe numbers are trustworthy for a transport?
Compare them with something independent: call quality reports, the provider's per-class counters, or a test flow marked like real traffic. Agreement builds trust. A gap shows what the probes miss.