V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
kalebroccoli
V2EX  ›  Linux

Ubuntu 16.04 LACP 下复制文件速度没有提升的疑惑?

  •  
  •   kalebroccoli · 2019-07-30 17:47:21 +08:00 · 3354 次点击
    这是一个创建于 1725 天前的主题,其中的信息可能已经有所发展或是发生改变。

    操作系统: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 信息]

    root@ubuntu:~# 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 信息]

    <cdn-s5700s-2>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</cdn-s5700s-2>

    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

    5 条回复    2020-10-23 16:14:28 +08:00
    kalebroccoli
        1
    kalebroccoli  
    OP
       2019-07-30 17:51:55 +08:00
    在本站找到一个类似的帖子 ,只是场景不同。还有熟悉的朋友解答一下疑惑,谢谢
    https://www.v2ex.com/t/562311
    ipwx
        2
    ipwx  
       2019-07-30 17:58:18 +08:00
    LACP 不能点对点提升带宽。如果你有两台客户端同时访问这台主机,那么这两台客户端有机会同时跑满 1000Mbps。

    要真提升带宽,你要用高级的网管型交换机。比如 cisco 企业级的。
    ipwx
        3
    ipwx  
       2019-07-30 17:59:13 +08:00
    嗯,看了你给的那个帖子的链接。一台机器两个进程也可能分别同时跑满 1000Mbps。但总之一条 TCP 链接不行。
    exiaohao
        4
    exiaohao  
       2019-07-30 19:06:13 +08:00
    试试起多个连接就行了。单个连接 LACP 没提速效果的

    对,思科也不行...
    namgking
        5
    namgking  
       2020-10-23 16:14:28 +08:00
    只能增加总带宽,无法增加单点带宽
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2403 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 16:06 · PVG 00:06 · LAX 09:06 · JFK 12:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.