[FROG] BFD with BGP

Ashvin Lakshmikantha ashvin.lakshmikantha at ericsson.com
Fri Mar 23 00:09:39 EDT 2018


Hi Donald,

I have installed ptmd (binary obtained by compiling the source code). I have topology.dot configured as below:

graph G {
    LLDP=""
    BFD="upMinTx=1000,requiredMinRx=1000"
    "bgpHost-1":"eth0" -- "bgpHost-2":"eth0";
}

I have started ptmd manually to make sure that it is running. I see the following output every few seconds

ptmd[19]: ptm_populate_nl: Post Init operations

ptmd[19]: ptm_populate_nbr: Post Init operations

ptmd[19]: ptm_populate_bfd: Post Init operations

ptmd[19]: Issue Netlink Request (0x1e)

ptmd[19]: Issue Netlink Request (0x12)


Netstat tells me that ports 3784 and 3785 are open
udp        0      0 0.0.0.0:3784            0.0.0.0:*                           19/ptmd
udp        0      0 0.0.0.0:3785            0.0.0.0:*                           19/ptmd

However, in the BGP, the BFD session does not move to established state (while BGP peering is successful). Any tips on what I could be doing wrong? 

BGP neighbor is 10.20.30.2, remote AS 7675, local AS 7675, internal link
Hostname: bgpHost-1
  BGP version 4, remote router ID 10.20.30.2
  BGP state = Established, up for 00:00:32
  Last read 00:00:00, Last write 00:00:00
  Hold time is 3, keepalive interval is 1 seconds
  Configured hold time is 3, keepalive interval is 1 seconds
  Neighbor capabilities:
    4 Byte AS: advertised and received
    AddPath:
      IPv4 VPN: RX advertised IPv4 VPN and received
    Route refresh: advertised and received(old & new)
    Address Family IPv4 VPN: advertised and received
    Hostname Capability: advertised (name: bgpHost-2,domain name: n/a) received (name: bgpHost-1,domain name: n/a)
    Graceful Restart Capabilty: advertised and received
      Remote Restart timer is 3600 seconds
      Address families by peer:
        none
  Graceful restart informations:
    End-of-RIB send: IPv4 VPN
    End-of-RIB received: IPv4 VPN
  Message statistics:
    Inq depth is 0
    Outq depth is 0
                         Sent       Rcvd
    Opens:                  3          3
    Notifications:          0          0
    Updates:                9          9
    Keepalives:           347        346
    Route Refresh:          0          0
    Capability:             0          0
    Total:                359        358
  Minimum time between advertisement runs is 1 seconds

 For address family: IPv4 VPN
  Update group 3, subgroup 3
  Packet Queue length 0
  Community attribute sent to this neighbor(all)
  30 accepted prefixes

  Connections established 3; dropped 2
  Last reset 00:00:35, due to Peer closed the session
Local host: 10.20.30.3, Local port: 179
Foreign host: 10.20.30.2, Foreign port: 45744
Nexthop: 10.20.30.3
Nexthop global: ::
Nexthop local: ::
BGP connection: non shared network
BGP Connect Retry Timer in Seconds: 120
Read thread: on  Write thread: on

  BFD: Type: multi hop
    Detect Multiplier: 3, Min Rx interval: 500, Min Tx interval: 250
    Status: Unknown, Last update: never
 

-----Original Message-----
From: Donald Sharp [mailto:sharpd at cumulusnetworks.com] 
Sent: Wednesday, March 21, 2018 6:14 PM
To: Ashvin Lakshmikantha <ashvin.lakshmikantha at ericsson.com>
Cc: Rafael Zalamena <rzalamena at opensourcerouting.org>; frog at lists.frrouting.org
Subject: Re: [FROG] BFD with BGP

Yes, the same requirements are true for 4.0.X as well.

donald

On Wed, Mar 21, 2018 at 2:32 AM, Ashvin Lakshmikantha <ashvin.lakshmikantha at ericsson.com> wrote:
> Hi Donald,
>
> Thanks for the feedback. Is the same requirement true for frr-4.0.1 as well? I installed frr-4.0.1 and it appeared that BFD does not establish the session.
>
> I will take a look at the feature you are working on.
>
> Thanks,
> Ashvin
>
>
> -----Original Message-----
> From: Donald Sharp [mailto:sharpd at cumulusnetworks.com]
> Sent: Tuesday, March 20, 2018 5:06 PM
> To: Ashvin Lakshmikantha <ashvin.lakshmikantha at ericsson.com>; Rafael 
> Zalamena <rzalamena at opensourcerouting.org>
> Cc: frog at lists.frrouting.org
> Subject: Re: [FROG] BFD with BGP
>
> Ashvin -
>
> With 3.0 you need to get PTMD and set it up, in order for BFD to work 
> properly w/ FRR.  We do have a current PR for much better BFD 
> integration that we are currently working on.  See
> https://github.com/FRRouting/frr/pull/1853 . We actually would love to have more feedback about how it works for people.
>
> thanks!
>
> donald
>
> On Tue, Mar 20, 2018 at 12:14 AM, Ashvin Lakshmikantha <ashvin.lakshmikantha at ericsson.com> wrote:
>> Hi all,
>>
>>
>>
>> While I was able to configure bfd in frr for BGP failover, I find 
>> that the sessions are not getting established. Is this a supported 
>> feature in frr-3.0.3?
>>
>> Thanks,
>>
>> Ashvin
>>
>>
>> _______________________________________________
>> frog mailing list
>> frog at lists.frrouting.org
>> https://lists.frrouting.org/listinfo/frog
>>


More information about the frog mailing list