http://www.kernelchina.org/?q=node/222

Linux bonding interface and HA

内 核研究 | 技术看点

linux bonding interface实现了ieee 802.3ad协议,它可以把多个网卡聚合成一个虚拟网卡,从而使带宽倍增,或者实现网卡之间的备份,在一定程度上实现了HA(high availibility)。配置bonding interface需要对端同样支持802.3ad,对端可以是一台linux box或者是交换机,路由器等。
通常的应用场景如下:
(1)

   +----------+            +----------+            +--------+
   |          |eth0   port1|          |port3  eth0|        |
   |  Host A  +------------+  switch  |-----------+ Host B |
   |          +------------+          |-----------+        |    
   |          |eth1   port2|          |port4  eth1|        |
   +----------+            +----------+           +--------+

假设Host A和Host B上的网卡只有100M,那么通过聚合,就可以达到200M的带宽。
(2)

                      +-----------+
                      |  Switch A | 
                      +-+---+---+-+
                        |   |   |
               +--------+   |   +---------+
               |            |             |
        +------+---+  +-----+----+  +-----+----+
        | FW A     |  | FW   B   |  | FW C     |
        +------+---+  +-----+----+  +-----+----+
               |            |             |
               +--------+   |   +---------+
                        |   |   |
                      +-+---+---+-+
                      |  Switch B | 
                      +-----------+

在这个场景中,如果FW A,B,C的各有一个口在Switch A,B上配置成聚合链接,那么,在一定程度上,就可以实现FW A,B,C直接的备份,active-backup或者active-active都可以。
参考资料:
http://www.linuxfoundation.org/en/Net:Bonding
http://ieee802.org/3/ad/index.html




Reply via email to