Hurricane Electric's IPv6 Tunnel Broker Forums

Tunnelbroker.net Specific Topics => Questions & Answers => Topic started by: gplhost on February 12, 2013, 12:16:10 PM

Title: BGP session flapping
Post by: gplhost on February 12, 2013, 12:16:10 PM
Hi,

It seems that quite often, we get BGP session flapping. The result is quite a disaster, as Quagga seems to flush all the v6 routing tables until it gets some fresh ones from Tunnelbroker.

How to prevent this?
Title: Re: BGP session flapping
Post by: kcochran on February 12, 2013, 04:19:49 PM
When a BGP session drops, it's supposed to pull all the learned routes.  Anything else would cause a blackholing of traffic.

That said, what do you have in your logs showing the cause of the session drop, and for which tunnel?  Feel free to fire that information off to ipv6@he.net.
Title: Re: BGP session flapping
Post by: kasperd on February 14, 2013, 10:13:01 AM
Quote from: kcochran on February 12, 2013, 04:19:49 PMWhen a BGP session drops, it's supposed to pull all the learned routes.  Anything else would cause a blackholing of traffic.
Dropping the only route you have to a destination isn't going to get the traffic there either. And depending on why the BGP session dropped, the routes you learned from it might still work.

When stuff breaks, it is always a good idea to look for multiple ways to avoid the problem. If you can find only one fix, it means there is only one thing that has to go wrong before it breaks again.

The following sounds like a good list to me:

Are there any other providers, which offer BGP tunnels similar to HE suitable for a redundant setup? Wikipedia (http://en.wikipedia.org/wiki/List_of_IPv6_tunnel_brokers) lists local providers in Ukraine and Indonesia, but no provider with a global presence apart from HE.
Title: Re: BGP session flapping
Post by: gplhost on February 17, 2013, 12:33:47 AM
It turned out that doing:
echo "net.ipv6.route.max_size = 40960" >>/etc/sysctl.conf
sysctl -p

solved the problem. The default max in the Linux kernel is 4096, which is by far not enough to hold all the HE routes.

Thanks for the help,

Thomas