iperf- multiple client requests (多對一)

Loading

第一次用 iperf 可以參考 https://benjr.tw/462

-s, –server :
這麼參數蠻常使用的.在 iPerf2 server 端可以同時接受多個 Clients 端的請求,但 iPerf3 使用這個參數就不行接受多個 Clients 端的請求(只能 1 對1).

New Features in iPerf 3.0 – https://iperf.fr/iperf-doc.php

  • -s, –server : iPerf2 can handle multiple client requests. iPerf3 will only allow one iperf connection at a time.
  • -D, –daemon :
    Run the server in background as a daemo (不確定這個 參數是不是可以用在多對一).

-D, –daemon 不知道要怎麼使用.

root@benjr-VirtualBox1:~# iperf -D
Usage: iperf [-s|-c host] [options]
Try `iperf --help' for more information.
root@benjr-VirtualBox1:~# iperf --daemon
Usage: iperf [-s|-c host] [options]
Try `iperf --help' for more information.

我來試試看
iperf_multi01
一開始 benjr-VirtualBox2 (Client) -> benjr-VirtualBox1 (Server) 之後過 30 秒再加入另外一台變成.Box2 與 Box3 同時對到 Box1
benjr-VirtualBox2 (Client) -> benjr-VirtualBox1 (Server)
benjr-VirtualBox3 (Client) -> benjr-VirtualBox1 (Server)

  1. benjr-VirtualBox1 (Server)
    root@benjr-VirtualBox1:~# iperf -s
    ------------------------------------------------------------
    Server listening on TCP port 5001
    TCP window size: 85.3 KByte (default)
    ------------------------------------------------------------
    [  4] local 192.168.42.254 port 5001 connected with 192.168.42.27 port 59314
    [  5] local 192.168.42.254 port 5001 connected with 192.168.42.9 port 41410
    [ ID] Interval       Transfer     Bandwidth
    [  4]  0.0-60.1 sec  2.89 GBytes   414 Mbits/sec
    [  5]  0.0-60.0 sec  2.89 GBytes   413 Mbits/sec
    
  2. benjr-VirtualBox2 (Client)
    root@benjr-VirtualBox2:~# iperf -c 192.168.42.254 -t 60 -i 5
    ------------------------------------------------------------
    Client connecting to 192.168.42.254, TCP port 5001
    TCP window size: 85.0 KByte (default)
    ------------------------------------------------------------
    [  3] local 192.168.42.27 port 59314 connected with 192.168.42.254 port 5001
    [ ID] Interval       Transfer     Bandwidth
    [  3]  0.0- 5.0 sec   326 MBytes   547 Mbits/sec
    [  3]  5.0-10.0 sec   353 MBytes   592 Mbits/sec
    [  3] 10.0-15.0 sec   329 MBytes   552 Mbits/sec
    [  3] 15.0-20.0 sec   352 MBytes   591 Mbits/sec
    [  3] 20.0-25.0 sec   370 MBytes   621 Mbits/sec
    [  3] 25.0-30.0 sec   367 MBytes   616 Mbits/sec
    [  3] 30.0-35.0 sec   167 MBytes   280 Mbits/sec
    [  3] 35.0-40.0 sec   142 MBytes   239 Mbits/sec
    [  3] 40.0-45.0 sec   136 MBytes   229 Mbits/sec
    [  3] 45.0-50.0 sec   142 MBytes   238 Mbits/sec
    [  3] 50.0-55.0 sec   137 MBytes   230 Mbits/sec
    [  3] 55.0-60.0 sec   141 MBytes   237 Mbits/sec
    [  3]  0.0-60.0 sec  2.89 GBytes   414 Mbits/sec
    
  3. benjr-VirtualBox3 (Client)
    root@benjr-VirtualBox3:~# iperf -c 192.168.42.254 -t 60 -i 5
    ------------------------------------------------------------
    Client connecting to 192.168.42.254, TCP port 5001
    TCP window size: 85.0 KByte (default)
    ------------------------------------------------------------
    [  3] local 192.168.42.9 port 41410 connected with 192.168.42.254 port 5001
    [ ID] Interval       Transfer     Bandwidth
    [  3]  0.0- 5.0 sec   150 MBytes   252 Mbits/sec
    [  3]  5.0-10.0 sec   140 MBytes   234 Mbits/sec
    [  3] 10.0-15.0 sec   142 MBytes   238 Mbits/sec
    [  3] 15.0-20.0 sec   139 MBytes   233 Mbits/sec
    [  3] 20.0-25.0 sec   144 MBytes   242 Mbits/sec
    [  3] 25.0-30.0 sec   171 MBytes   286 Mbits/sec
    [  3] 30.0-35.0 sec   352 MBytes   591 Mbits/sec
    [  3] 35.0-40.0 sec   346 MBytes   580 Mbits/sec
    [  3] 40.0-45.0 sec   352 MBytes   591 Mbits/sec
    [  3] 45.0-50.0 sec   340 MBytes   571 Mbits/sec
    [  3] 50.0-55.0 sec   353 MBytes   593 Mbits/sec
    [  3] 55.0-60.0 sec   327 MBytes   549 Mbits/sec
    [  3]  0.0-60.0 sec  2.89 GBytes   413 Mbits/sec
    

在 benjr-VirtualBox1 (Server) 觀察到的結果.
iperf_multi02
不知道是不是虛擬機器的關係,兩台對一台的結果反而比較差.

沒有解決問題,試試搜尋本站其他內容

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料