技术解析

Ubuntu 16.04 LACP 下复制文件速度没有提升的疑惑?
0
1975-02-24 01:34:02
idczone

操作系统:ubunt 16.04.2 网卡数量:3 个 交换机:HW S5700-52P-LI

交换机配置了 3 个 eth-trunk ,并配置为 lacp 模式 每个 eth-trunk 绑定 3 个端口; 3 台服务器上也是 3 个网口绑定 ethtool 查看 bond0 已经是 3000Mb/s 了

[问题] 目前从一台机器拷贝数据到另一台主机速度在 100MB/s 左右呢,只占用了一个端口,如何设置才能让 3 个端口同时工作,速度达到 300MB/s 左右?

主机网卡配置如下: auto eno1 iface eno1 inet manual bond-master bond0

auto eno2 iface eno2 inet manual bond-master bond0

auto eno3 iface eno3 inet manual bond-master bond0

auto bond0 iface bond0 inet static address 172.171.8.12 netmask 255.255.240.0 network 172.171.0.0 broadcast 172.171.15.255 gateway 172.171.0.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 221.6.4.66 #slaves eno1 eno2 eno3 bond-mode 4 bond-miimon 100 bond-lacp-rate 1 bond-slaves eno1 eno2 eno3

[ bond 信息]

[email protected]:~# ethtool bond0 Settings for bond0: Supported ports: [ ] Supported link modes: Not reported Supported pause frame use: No Supports auto-negotiation: No Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Speed: 3000Mb/s Duplex: Full Port: Other PHYAD: 0 Transceiver: internal Auto-negotiation: off Link detected: yes

[交换机配置] interface Eth-Trunk1 port link-type access mode lacp max active-linknumber 4 lacp selected speed

……………… interface GigabitEthernet0/0/25 eth-trunk 1 lacp priority 100

interface GigabitEthernet0/0/26 eth-trunk 1 lacp priority 100

interface GigabitEthernet0/0/27 eth-trunk 1 lacp priority 100

interface GigabitEthernet0/0/28 eth-trunk 1 lacp priority 100

[ ETH-trunk 信息]

dis eth-trunk 1 Eth-Trunk1's state information is: Local: LAG ID: 1 WorkingMode: LACP Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP System Priority: 100 System ID: 9404-9cc4-29f0 Least Active-linknumber: 1 Max Active-linknumber: 4 Operate status: up Number Of Up Port In Trunk: 3

ActorPortName Status PortType PortPri PortNo PortKey PortState Weight GigabitEthernet0/0/25 Selected 1GE 100 1 305 10111100 1 GigabitEthernet0/0/27 Selected 1GE 100 2 305 10111100 1 GigabitEthernet0/0/28 Unselect 1GE 100 3 305 10100010 1 GigabitEthernet0/0/26 Selected 1GE 100 12 305 10111100 1

Partner:

ActorPortName SysPri SystemID PortPri PortNo PortKey PortState GigabitEthernet0/0/25 65535 7486-7ad7-761e 255 3 9 11111100 GigabitEthernet0/0/27 65535 7486-7ad7-761e 255 1 9 11111100 GigabitEthernet0/0/28 0 0000-0000-0000 0 0 0 10100011 GigabitEthernet0/0/26 65535 7486-7ad7-761e 255 2 9 11111100


在本站找到一个类似的帖子 ,只是场景不同。还有熟悉的朋友解答一下疑惑,谢谢
https://www.v2ex.com/t/562311

LACP 不能点对点提升带宽。如果你有两台客户端同时访问这台主机,那么这两台客户端有机会同时跑满 1000Mbps。
要真提升带宽,你要用高级的网管型交换机。比如 cisco 企业级的。

嗯,看了你给的那个帖子的链接。一台机器两个进程也可能分别同时跑满 1000Mbps。但总之一条 TCP 链接不行。

试试起多个连接就行了。单个连接 LACP 没提速效果的
对,思科也不行...

只能增加总带宽,无法增加单点带宽

数据地带为您的网站提供全球顶级IDC资源
在线咨询
专属客服