Bidirectional Forwarding Detection (BFD) on a Palo

To improve the convergence times of a routing protocol, BFD can be used. This feature monitors the adjacencies using some kind of ping packets. It detects link failures much faster than the routing protocol’s built-in keepalive timeouts.

The interesting part: You must only enable BFD rather than configure it in detail. The BFD peers are derived from the routing protocol’s adjacencies, e.g. the OSPF neighbours. Let’s have a look:

For this example, I’m using a PA-440 with PAN-OS 11.2.12, ARE/LR enabled. The adjacent routers are 2x other Palos (one via 2x VPNs) and a Cisco router 2811, IOS Version 15.1(4)M12a. OSPF for legacy IP and OSPFv3 for IPv6 are used.

Enabling BFD

I’m using the default BDF profile with a 1000 ms interval and a multiplier of 3. This profile is referenced in the OSPF/OSPFv3 global settings, while the OSPF-enabled interfaces only inherit those global settings:

Verifying BFD

When new BFD peers appear, you’ll see such entries in the system log:

You can further investigate the BFD peers at the “More Runtime Stats” of the logical router:

Session details:

Just another example: These are the logs that were generated during a reboot of the Cisco router (dual-stack, hence 1x IPv4 and 1x IPv6 neighbour/peer). That is: everything went down and up again:

And by the way, this is the plus of traffic through those BFD packets, measured by Checkmk. (Before I enabled BFD, it was only the Palo’s tunnel monitor on this VPN.) [Note that the IF-MIB counters for tunnel interfaces on a Palo have a well-known feature bug, which doubles the incoming packet counters due to the tunnel inspection. 🤦 Anyway:]

Those who prefer the CLI can use the following commands: show advanced-routing bfd summary, show advanced-routing bfd details interface <interface-id>, show counter global | match bfd.

Examples:

And for the sake of completeness, this is the view from the Cisco router:

 

Further Reading

Some Wireshark screenshots of BFD packets are here. If you want to look at them by yourself, please download and use the Ultimate PCAP.

Soli Deo Gloria!

Photo by Rosie Steggles on Unsplash.

Leave a Reply

Your email address will not be published. Required fields are marked *