Ubuntu 12.04上的网络绑定模式802.3ad和Cisco交换机

我试图在2台服务器上组合3个网卡.我试图实现3Gbps的最大吞吐量,以在服务器之间复制数据.设置很简单,我有2台服务器与3千兆网卡连接在同一个思科交换机上.服务器1的端口1-2-3和服务器2的端口4-5-6.我的接口配置如下:
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet manual
        bond-master bond0

auto eth1
iface eth1 inet manual
        bond-master bond0

auto eth2
iface eth2 inet manual
        bond-master bond0

auto bond0
iface bond0 inet static
        address 192.168.1.11
        netmask 255.255.255.0
        gateway 192.168.1.1

        bond-miimon 100
        bond-mode 802.3ad
        #bond-downdelay 200
        #bond-updelay 200
        bond-lacp-rate 1
        # tried bond with slaves and no slaves interfaces
        bond-slaves eth0 eth1 eth2 
        # bond-slaves none

我在这些卡上尝试了多种配置,但我总是最终只使用1张网卡.

我用iperf和netcat测试了性能

# server-1
iperf -s

# server-2 
iperf -c 192.168.1.10

# Wait for trafic
nc.traditional -l -p 5000 | pv > /dev/null 

# Push trafic
dd if=/dev/zero | pv | nc.traditional 192.168.1.11 5000

我们还在Cisco交换机上尝试了许多配置,没有端口通道和端口通道,当时只使用了1个网卡.如果我们单独测试每张卡,它们以1Gbps的速度工作.

我还可以说在/ proc / net / bonding / bond0中,模式显示802.3ad,LACP速率显示为FAST.我没有链接计数失败,并显示3个界面.我还用ethtool验证每个eth接口,它们看起来很好.

我按照本指南设置了https://help.ubuntu.com/community/UbuntuBonding并使用modprobe绑定启用了内核中的绑定模块,当我使用lsmod验证绑定模块是否启动时,是的,它在列表中.

我们缺少什么让这个工作?

在两台服务器之间,您永远不会获得超过1 NIC的性能.交换机不会在链路聚合组(LAG)中的多个链路上传播来自单个源的帧.他们实际做的是散列源MAC或IP(或两者)并使用该散列将客户端分配给一个NIC.

因此,您的服务器可以根据需要传输尽可能多的NIC,但这些帧将全部通过一个链接发送到目标服务器.

相关文章

文章浏览阅读2.3k次,点赞4次,收藏22次。最近安装了CARLA预...
文章浏览阅读6.3k次,点赞5次,收藏15次。在清华镜像中下载U...
文章浏览阅读5k次。linux环境, python3.7.问题描述: 安装...
文章浏览阅读4.2k次,点赞4次,收藏17次。要安装这个 standa...
文章浏览阅读894次,点赞51次,收藏31次。在安卓使用vscode主...