Re: OpenBGP load balancing between 2 ISP (multihoming)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Simon Slaytor
Date: Wednesday, October 8, 2008 - 12:50 pm

One way to do this is to have both client fw/routers running in their 
own right, i.e. no carp failover.

Each router peers with one of the ISP routers via eBGP and then peers 
with it's partner via iBGP.

On each router use the 'weight' option to make each router believe it's 
learned routes are the best.

Each router will now install it's best route in the kernel routing table 
and believing it has the best route will also redistribute it's routes 
to the iBGP partner.

The result each router will have two routes to any network in it's BGP 
table, one via its eBGP which it regards as 'best' and another with a 
higher weight via it's partner router.

It's also important to tune the BGP dead timers as low as you can so 
that if a link is lost to an upstream BGP session is cleared as soon as 
possible minimizing the amount of black holed traffic. Once the BGP 
session is down the alternate route learned from the partner router will 
be used to replace the failed route in the actual routing table.

To control which route is used for outbound traffic CARP can be setup on 
the 'internal' interfaces. Which ever router is the master will be used 
as the egress point for the network. Padding the announcement to the 
secondary provider could also help with controlling incoming traffic, 
although in my experience the results are mixed.

Now I've never tried it on OpenBGP but on Cisco this works like a charm.

e.g.

[ISP1]            [ISP2]
  |                 |
 ebgp              ebgp
  |                 |
[PRIV1]---iBGP---[PRIV2]
  |                 |
  M                 S
  |                 |
  ---------|---------

All traffic would flow out of PRIV1 / ISP1, if PRIV1 or ISP1 failed 
traffic would flow out of PRIV2 / ISP2.





BARDOU Pierre wrote:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
OpenBGP load balancing between 2 ISP (multihoming), BARDOU Pierre, (Tue Oct 7, 6:40 am)
Re: OpenBGP load balancing between 2 ISP (multihoming), Frans Haarman, (Tue Oct 7, 9:53 am)
Re: OpenBGP load balancing between 2 ISP (multihoming), Mariusz Makowski, (Tue Oct 7, 12:38 pm)
Re: OpenBGP load balancing between 2 ISP (multihoming), BARDOU Pierre, (Tue Oct 7, 11:31 pm)
Re: OpenBGP load balancing between 2 ISP (multihoming), BARDOU Pierre, (Tue Oct 7, 11:38 pm)
Re: OpenBGP load balancing between 2 ISP (multihoming), cnav@talamasca.pl, (Wed Oct 8, 12:04 am)
Re: OpenBGP load balancing between 2 ISP (multihoming), BARDOU Pierre, (Wed Oct 8, 12:14 am)
Re: OpenBGP load balancing between 2 ISP (multihoming), BARDOU Pierre, (Wed Oct 8, 1:21 am)
Re: OpenBGP load balancing between 2 ISP (multihoming), Frans Haarman, (Wed Oct 8, 1:55 am)
Re: OpenBGP load balancing between 2 ISP (multihoming), Claudio Jeker, (Wed Oct 8, 2:08 am)
Re: OpenBGP load balancing between 2 ISP (multihoming), BARDOU Pierre, (Wed Oct 8, 2:10 am)
Re: OpenBGP load balancing between 2 ISP (multihoming), Simon Slaytor, (Wed Oct 8, 12:23 pm)
Re: OpenBGP load balancing between 2 ISP (multihoming), Simon Slaytor, (Wed Oct 8, 12:50 pm)