Course contents

Unit 7: IPsec and BFDLesson 7.2 (2 of 5 in this unit)43 of 62 in the Cisco SD-WAN course

BFD roles, sessions and telemetry

BFD as failure detection and path measurement in each tunnel, the timers and detection time, and how to read the session list.

Intermediate · 8 min read

You'll learn to explain the two jobs of BFD in SD-WAN, calculate detection time from the timers, and read a BFD session list.

Technical definition

BFD in SD-WAN is a lightweight hello protocol that runs inside every data tunnel between two TLOCs. A tunnel is considered usable only while its BFD session is up. The same exchange also gives loss, latency and jitter measurements for each path.

Two jobs

Diagram
What BFD does
What BFD does

Detection and measurement.

DetectDeclares the tunnel downwhen hellos stop
MeasureLoss, latency, jitterper path
One exchange serves both.

Timers

Diagram
BFD timers
BFD timers
SettingMeaningCommon default
Hello intervalTime between hellos1 second
MultiplierMissed hellos before the session is declared down7
Detection timeInterval multiplied by multiplierAbout 7 seconds
Path measurement intervalHow often loss, latency and jitter are summarised for policyLonger, set separately
Defaults can differ by release. They are set per colour, so MPLS and internet links can use different values.
Diagram
Failure detection
Failure detection

Hellos stop and the session drops.

  1. Hellosstop arriving
  2. Multiplierreached
  3. Sessiongoes down
  4. Trafficmoves to another path
Routes through that tunnel are then withdrawn.
Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show sdwan bfd sessions
SYSTEM IP    SITE  STATE  SOURCE TLOC   REMOTE TLOC   DETECT MULT  TX INTERVAL
10.255.1.1   100   up     mpls          mpls          7            1000
10.255.1.1   100   up     biz-internet  biz-internet  7            1000
BR-01 has two sessions to HUB-01, one per transport, both up with the default timer values. A session that flaps between up and down points to loss on that path. The columns are illustrative.
  • Read the state first: up, down, or flapping.
  • If a session is down but the TLOC is present, check reachability, NAT, firewall and IPsec.
  • Tuning timers is a trade-off; test in a lab before changing production values.

Learn more: IPsec Transport SecurityApplication-Aware RoutingTLOC Components

Test yourself

Predict · scenario 1

BFD hello is 1 second and the multiplier is 7. About how long until a failure is declared?

Predict · scenario 2

Which two jobs does BFD do in SD-WAN?

FAQ

What is the detection time?
The hello interval multiplied by the multiplier. With a one-second interval and a multiplier of seven, a failure is declared after about seven seconds. Lowering the values detects failures sooner and raises the risk of false alarms on noisy links.
Is BFD sent to the Controller?
No. BFD runs between WAN Edges, through the data tunnels. Controller connections have their own keepalives.
Why does application-aware routing depend on BFD?
The loss, latency and jitter it compares with a service-level agreement are measured from the BFD exchange, so its accuracy depends on the BFD settings.