Can I implement load balancing in BGP?
views:
45answers:
2Yes. However, the full nuances of how to do this depend greatly on the particular circumstances, and would prevent anybody from giving an accurate answer about your specific case without more details.
See:
- Load Balancing in BGP Networks
- How Does Load Balancing Work?
- Load Sharing with BGP in Single and Multihomed Environments
for more information.
Not exactly yes, not exactly no
BGP is not a load balancing protocol but it is often used for traffic engineering and it can certainly be tweaked to direct traffic over multiple links.
If the multiple exits connect identical autonomous systems, then it would be better to make a channel or do whatever Cisco tricks are intended for load balancing.
But in the traditional multi-homed-to-different providers case, one typically announces the routes to both and measures the traffic. By prepending your own ASN to the busier path you can tune the metric that remote AS's use to choose one received route over the other. This doesn't always work because of remote route filtering but it should give you some control.
There are other ways. It's hard to appropriately treat this subject in a SO answer but there are a couple of well-known many-times-reviewed books on BGP and this is the first question they all answer.