BFD Templates
Last updated
Last updated
Load base.ipv4.and.ipv6.cfg.
Configure OSPF bewteen R4 and R6 using BFD. Configure timers as follows:
R4 and R6 will both transmit and receive at 750msec intervals with a multiplier of 3
MD5 auth should be used for the BFD session, with BFD_AUTH as the password
Echos should be used
BFD dampening should be used with the default timers
BFD templates allow for several features: multi-hop, authentication, microsecond BFD timers, and dampening. We will explore multi-hop BFD sessions in a later lab.
BFD authentication is fairly straightforward. You simply use a keychain and apply it to the template. You can specify md5, sha1, or “meticulous md5/sha1”. I am not clear what the “meticulous” option means. Perhaps stronger keys.
We can also enable dampening for BFD. This helps when the interface is flapping. We don’t want to continuously establish and tear down the BFD session over and over again. The dampening rules work exactly like BGP dampening. The default values use a half-life time of 3 seconds, unsuppress value of 1500, suppress value of 3000, and max duration to supress a session of 5 seconds.
It is also important to note that the BFD echo function is off by default when using a template. This is very tricky, because echos are on by default when you simply use the interface-level bfd interval command. So you must ensure to turn echos on under the BFD template.
We can verify dampening and authentication with the show bfd neighbor detail command.
We can cause BFD flaps by turning on uRPF on R6. The BFD session will continually go up and down, as the BFD control packets re-establish the session but the echos never work. After several flaps, the flapping stops for some time. First we will need to greatly increase the dampening half life time. 3 seconds is not long enough to cause flap dampening using this method.
I can get the flap count to increase, but never actually dampen the neighbor. It seems that it simply takes a bit too long to re-establish the BFD session each time.
Decreasing the suppress threshold should help:
Strangely, the BFD session will still never be dampened in the lab.
Nevertheless we can at least theoretically understand how this feature works.