我有一台安装了 QLogic 千兆以太网的 DL380 服务器。只是想创建一个绑定,但似乎无法获得超过 1 Gig 的链路。2 台服务器的所有 3 根电缆都连接到 S40 交换机,我在该交换机上创建了 LACP(滞后),链路建立并且滞后显示为活动状态,但我就是无法获得超过 1 Gig 的吞吐量。我正在使用 iperf3 进行测试。尝试了所有不同的绑定模式、rr、802.3d 等,但速度都无法超过 900 Mbps 左右。我遗漏了一些东西,但无法弄清楚。
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer3+4 (1)
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
802.3ad info
LACP rate: fast
Min links: 0
Aggregator selection policy (ad_select): stable
System priority: 65535
System MAC address: 9c:8e:99:0b:78:70
Active Aggregator Info:
Aggregator ID: 4
Number of ports: 3
Actor Key: 9
Partner Key: 418
Partner Mac Address: 00:01:e8:d5:f4:f3
Slave Interface: enp3s0f1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 9c:8e:99:0b:78:70
Slave queue ID: 0
Aggregator ID: 4
Actor Churn State: none
Partner Churn State: none
Actor Churned Count: 0
Partner Churned Count: 0
details actor lacp pdu:
system priority: 65535
system mac address: 9c:8e:99:0b:78:70
port key: 9
port priority: 255
port number: 1
port state: 63
details partner lacp pdu:
system priority: 32768
system mac address: 00:01:e8:d5:f4:f3
oper key: 418
port priority: 128
port number: 12
port state: 63
Slave Interface: enp4s0f0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 9c:8e:99:0b:78:72
Slave queue ID: 0
Aggregator ID: 4
Actor Churn State: none
Partner Churn State: none
Actor Churned Count: 0
Partner Churned Count: 0
details actor lacp pdu:
system priority: 65535
system mac address: 9c:8e:99:0b:78:70
port key: 9
port priority: 255
port number: 2
port state: 63
details partner lacp pdu:
system priority: 32768
system mac address: 00:01:e8:d5:f4:f3
oper key: 418
port priority: 128
port number: 7
port state: 63
Slave Interface: enp4s0f1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 9c:8e:99:0b:78:74
Slave queue ID: 0
Aggregator ID: 4
Actor Churn State: none
Partner Churn State: none
Actor Churned Count: 0
Partner Churned Count: 0
details actor lacp pdu:
system priority: 65535
system mac address: 9c:8e:99:0b:78:70
port key: 9
port priority: 255
port number: 3
port state: 63
details partner lacp pdu:
system priority: 32768
system mac address: 00:01:e8:d5:f4:f3
oper key: 418
port priority: 128
port number: 5
port state: 63
尝试了各种谷歌搜索,但似乎无法解决问题。我没有任何想法。如果有人能给我指明正确的方向,我将不胜感激。
谢谢。
答案1
@ewwhite是的。我来解释一下。当你测试两台机器之间的链路时,你只使用一个网卡,LACP 不会将数据包拆分到多个接口上,用于单个流/线程。例如,单个 TCP 流将始终在同一个网卡上发送/接收数据包。因此,只有在使用多个目的地进行测试时,你才能看到更高的速度。好答案,其中描述了。
答案2
看来绑定和 LACP 是网络领域中最难理解的概念之一。
但简而言之,您永远无法通过单个源-目标对实现多条连接的传输。如果您需要在单个连接上获得更多带宽,则必须迁移到 10GbE。