BFD parameters not taken into account
Hello, After some lab tests with bfd and bgp, I've encountered a problem. bfd sessions associated with bgp sessions are up but bfd parameters in config file are not taken into account and there is no sign of error in the logs. I have reproduced it with bird 1.5.0 and bird 1.6.0. I've not found any trace of a problem like this in the mailing list. I don't know if I've missed something or if this is a bug. For debug purpose, I have two nodes with a config like this : log syslog all; debug protocols all; define local_as = 65101; # Router params router id 192.168.10.1; # Protocols protocol device { scan time 10; } protocol direct { interface "*"; } protocol kernel { persist; scan time 20; import none; export all; } protocol bgp { local as local_as; source address 192.168.10.1; import none; export none; neighbor 192.168.10.2 as local_as; bfd; } protocol bfd { interface "*" { interval 400 ms; multiplier 10; }; } But when I display the bfd session, I can see that interval and timeout are on default values : bird> show bfd sessions bfd1: IP address Interface State Since Interval Timeout 192.168.10.2 --- Up 18:19:37 0.100 0.500 Explicitly declaring the bfd neighbors in the config block doesn't change anything. Does someone have already encountered this problem ? Regards, -- Benoit Portrat
On Fri, Jul 29, 2016 at 07:00:36PM +0200, Benoit Portrat wrote:
Hello,
After some lab tests with bfd and bgp, I've encountered a problem. bfd sessions associated with bgp sessions are up but bfd parameters in config file are not taken into account and there is no sign of error in the logs. I have reproduced it with bird 1.5.0 and bird 1.6.0. I've not found any trace of a problem like this in the mailing list. I don't know if I've missed something or if this is a bug.
Hi You are using it for IBGP, which is by default multi-hop, not single-hop like EBGP, so you have to configure BFD parameters in 'multihop' block instead of in 'interface' block. Or you could add 'direct' option to BGP to configure it as single-hop. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
Thanks, it's working. I was thinking that multihop didn't relate to the mode of BGP and only to the number of hops between the two bfd peers. Now, I understand better. Thanks again for your quick response and explanation. -- Benoît Portrat Le 2016-07-29 19:54, Ondrej Zajicek a écrit :
On Fri, Jul 29, 2016 at 07:00:36PM +0200, Benoit Portrat wrote:
Hello,
After some lab tests with bfd and bgp, I've encountered a problem. bfd sessions associated with bgp sessions are up but bfd parameters in config file are not taken into account and there is no sign of error in the logs. I have reproduced it with bird 1.5.0 and bird 1.6.0. I've not found any trace of a problem like this in the mailing list. I don't know if I've missed something or if this is a bug.
Hi
You are using it for IBGP, which is by default multi-hop, not single-hop like EBGP, so you have to configure BFD parameters in 'multihop' block instead of in 'interface' block.
Or you could add 'direct' option to BGP to configure it as single-hop.
participants (2)
-
Benoit Portrat -
Ondrej Zajicek