是否可以使用边界网关协议(BGP)实现负载均衡?
BGP 可以实现负载均衡吗?
Can I implement load balancing in BGP?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
BGP 可以实现负载均衡吗?
Can I implement load balancing in BGP?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
不完全是,也不完全没有
BGP 不适合流量工程,但它肯定可以在一定限制内用于该目的。
在传统的多宿主到不同提供商的情况下,通常会公布到两者的所有路由。测量产生的流量。通过将您自己的 ASN 添加到较繁忙的路径中,您可以调整远程 AS 用于选择一条接收路由而不是另一条接收路由的度量。由于远程路由过滤,这并不总是有效,但它应该给您一些控制权。
还有其他方法。很难在 SO 答案中适当地处理这个主题,但是有一些关于 BGP 的著名的多次评论的书籍,这是他们都回答的第一个问题。
Not exactly yes, not exactly no
BGP was not intended for traffic engineering but it can certainly be used for that purpose within some limits.
In the traditional multi-homed-to-different providers case, one typically announces all routes to both. Measures the resulting 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.
是的。然而,如何做到这一点的全部细微差别在很大程度上取决于具体情况,并且会阻止任何人在没有更多细节的情况下就您的具体案例给出准确的答案。
请参阅:
了解更多信息。
Yes. 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:
for more information.
如果您使用 Cisco IOS,并且有多个节点对等互连,则可以使用 BGP 多路径:
http://www.cisco.com/en/US/docs/ios/12_2t/12_2t11/feature/guide/ft11bmpl.html
If you're using Cisco IOS, there's BGP Multipath if you have multiple nodes peering:
http://www.cisco.com/en/US/docs/ios/12_2t/12_2t11/feature/guide/ft11bmpl.html
是的,BGP 中可以实现负载平衡,方法有很多种。这是一篇关于单宿主eBGP 负载均衡的好文章BGP环境&两个ISP通过静态路由连接。
Yes load balancing is possible in BGP, there are many way. Here is a good post about eBGP load balancing with single-homed BGP environment & two ISP connected through Static route.