Linux

對簡單的債券吞吐量感到困惑,只能獲得 Gig

  • August 14, 2017

我有安裝了 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

嘗試了各種穀歌的東西,但似乎無法讓它工作。我沒有任何想法。感謝是否有人可以將我帶到正確的方向。

謝謝。

@ewwhite對。我只是解釋一些事情。當您測試兩台機器之間的連結時,您只使用一個 NIC,LACP 不會將數據包拆分為單個流/執行緒的多個介面。例如,單個 TCP 流將始終在同一個 NIC 上發送/接收數據包。因此,只有在多個目的地進行測試時,您才能看到更高的速度。有很好的答案,它描述的地方。

似乎綁定和 LACP 是網路中最難理解的概念之一。

但簡短的解釋是,您永遠不會通過單個源-目的地對實現多個連接。如果您在單個連接上需要更多頻寬,則必須遷移到 10GbE。

引用自:https://serverfault.com/questions/868608