MartinWu
0D

iperf3 测速疑问

  •  
  •   MartinWu · Apr 20, 2019 · 5954 views
    This topic created in 2605 days ago, the information mentioned may be changed or developed.

    当前情况是这样的,我有三台托管服务器 A,B,C,带宽分别是 电信 70M,联通 70M,电信 50M。我用一台服务器阿里云的 D,出口是 100Mb 的。来进行测速。结果是(都是用 D 跑 iperf3 -c XXX -b 100M,ABC 跑 iperf3 -s来测试):

    A:

    [ ID] Interval           Transfer     Bandwidth       Retr
    [  4]   0.00-10.00  sec  40.9 MBytes  34.3 Mbits/sec  239             sender
    [  4]   0.00-10.00  sec  39.9 MBytes  33.5 Mbits/sec                  receiver
    

    B:

    [ ID] Interval           Transfer     Bandwidth       Retr
    [  4]   0.00-10.00  sec  86.6 MBytes  72.7 Mbits/sec  371             sender
    [  4]   0.00-10.00  sec  85.0 MBytes  71.3 Mbits/sec                  receiver
    

    C:

    [ ID] Interval           Transfer     Bandwidth       Retr
    [  4]   0.00-10.00  sec  28.9 MBytes  24.2 Mbits/sec   44             sender
    [  4]   0.00-10.00  sec  28.5 MBytes  23.9 Mbits/sec                  receiver
    

    这就很奇怪了,为什么电信的都是 5 折,而联通的不打折呢。。

    16 replies    2019-04-22 18:09:20 +08:00
    zhs227
        1
    zhs227  
       Apr 20, 2019
    iperf 测速请加-R,要不然测的是上行出口。
    MartinWu
        2
    MartinWu  
    OP
       Apr 20, 2019
    @zhs227 #1 我看了下 man 手册:

    ```
    -R, --reverse
    run in reverse mode (server sends, client receives)
    ```

    但是我现在就是想测试 D 下载 A B C 数据的带宽上限。我现在的操作对了的吧?
    MartinWu
        3
    MartinWu  
    OP
       Apr 20, 2019
    @zhs227 #1 哦哦哦! 你是对的!
    MartinWu
        4
    MartinWu  
    OP
       Apr 20, 2019
    @zhs227 #1 我加 -R 测试了一下: `iperf3 -c XXX -b 100M -R ` 结果还是一样。。。
    zhs227
        5
    zhs227  
       Apr 20, 2019
    那就真的是那么多。
    hlz0812
        6
    hlz0812  
       Apr 20, 2019 via iPhone
    电信 qos 比较严重,尝试一下多线程拉文件能不能跑满
    weyou
        7
    weyou  
       Apr 20, 2019 via Android
    测 tcp 不需要加-b。家里的联通宽带测出来都是偏高的,有时候高出 10%, 感觉联通好慷慨的样子
    MartinWu
        8
    MartinWu  
    OP
       Apr 21, 2019
    @hlz0812 #6 就感觉好奇怪,为什么偏偏就是宣称的 50%,不多不少。
    hlz0812
        9
    hlz0812  
       Apr 21, 2019 via iPhone
    @MartinWu 电信 200M,单线程 70M,多线程跑满
    Showfom
        10
    Showfom  
    PRO
       Apr 22, 2019 via iPhone
    加到 10 个线程试试
    MartinWu
        11
    MartinWu  
    OP
       Apr 22, 2019
    @Showfom #10 但是测试联通那条能跑满 70 啊。电信的就偏偏刚好一半么?
    qwerrewt
        12
    qwerrewt  
       Apr 22, 2019
    ABC: iperf -s -u
    D: iperf -c xxx -u -b 100M -P2
    MartinWu
        13
    MartinWu  
    OP
       Apr 22, 2019
    @qwerrewt #12 用 udp 来测试跟用 tcp 来测试的区别是?
    qwerrewt
        14
    qwerrewt  
       Apr 22, 2019
    @MartinWu UDP 单向阿, TCP 有 ACK 回来的, 你这情况用 UDP 合适
    goofool
        15
    goofool  
       Apr 22, 2019
    D 服务器是联通还是电信的
    MartinWu
        16
    MartinWu  
    OP
       Apr 22, 2019
    @goofool #15 是阿里云的 ECS,应该是 BGP 的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5505 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 07:48 · PVG 15:48 · LAX 00:48 · JFK 03:48
    ♥ Do have faith in what you're doing.