Cisco – BGP convergence issue

bgpciscorouting

I have 2 different carriers on my Cisco 2921 router and I have set weight to 350 for my first carrier to force it for my outbound traffic, and I set second carrier weight to 300.

I am receiving BGP full table from both providers.

My problem here is when my BGP session with carrier #1 disconnects, it takes about 5-10 minutes for the routes received from carrier #1 to be deleted from my routing table so to force my outbound to second carrier.
How can I solve this issue? Is there anyway when BGP session with carrier #1 disconnects, all routes are removed immediately ?

Best Answer

There are two issues here:

  1. BGP keepalives are 60 seconds, and the hold down timer is 3 times that. So that's your lower limit, unless you work with your carrier and adjust your timers. You both need to have the same timer values.

  2. You are receiving full routes from both carriers. That's over 400,000 routes from each carrier. So your router needs to process that many entries when a carrier drops a session. That can take time on a small router like a 2900.

One idea is to only receive default routes from your carrier. You can still use local preference to prioritize carriers, but it's much faster to process one route than 400,000. Don't forget that you are still limited by #1.