V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
webdev
V2EX  ›  问与答

iperf3 的结果分析疑问

  •  
  •   webdev · 2016-03-11 21:18:07 +08:00 · 4943 次点击
    这是一个创建于 3183 天前的主题,其中的信息可能已经有所发展或是发生改变。

    [ ID] Interval Transfer Bandwidth
    [ 4] 0.00-0.05 sec 512 KBytes 85.1 Mbits/sec


    [ ID] Interval Transfer Bandwidth
    [ 4] 0.00-0.05 sec 512 KBytes 85.1 Mbits/sec sender
    [ 4] 0.00-0.05 sec 327 KBytes 54.2 Mbits/sec receiver

    [ ID] Interval Transfer Bandwidth
    [ 4] 0.00-0.02 sec 512 KBytes 264 Mbits/sec


    [ ID] Interval Transfer Bandwidth
    [ 4] 0.00-0.02 sec 512 KBytes 264 Mbits/sec sender
    [ 4] 0.00-0.02 sec 344 KBytes 177 Mbits/sec receiver

    [ ID] Interval Transfer Bandwidth
    [ 4] 0.00-0.05 sec 512 KBytes 77.5 Mbits/sec


    [ ID] Interval Transfer Bandwidth
    [ 4] 0.00-0.05 sec 512 KBytes 77.5 Mbits/sec sender
    [ 4] 0.00-0.05 sec 287 KBytes 43.4 Mbits/sec receiver

    [ ID] Interval Transfer Bandwidth
    [ 4] 0.00-0.00 sec 512 KBytes 1.05 Gbits/sec


    [ ID] Interval Transfer Bandwidth
    [ 4] 0.00-0.00 sec 512 KBytes 1.05 Gbits/sec sender
    [ 4] 0.00-0.00 sec 458 KBytes 941 Mbits/sec receiver

    测试出来的结果相差很大,是网络不稳定问题的缘故吗?

    13 条回复    2016-03-12 11:15:45 +08:00
    lhbc
        1
    lhbc  
       2016-03-11 22:43:28 +08:00
    1G 网络传 512K 文件,这能准吗……
    至少测十几秒吧

    [ ID] Interval Transfer Bandwidth
    [ 4] 0.0-10.0 sec 12.3 GBytes 10.6 Gbits/sec
    webdev
        2
    webdev  
    OP
       2016-03-11 22:46:51 +08:00 via iPhone
    测试过百兆 几十 M 都一样 10M 到 1.6G 的跳 1/10 的概率 100M 以下
    webdev
        3
    webdev  
    OP
       2016-03-11 22:48:13 +08:00 via iPhone
    关键在于网络传输的数据 99% 是 500K 以下的数据 是 API 服务器
    lhbc
        4
    lhbc  
       2016-03-11 22:52:59 +08:00
    iperf 跑几分钟,然后 netstat -s 看下哪里不正常吧
    webdev
        5
    webdev  
    OP
       2016-03-11 22:54:20 +08:00 via iPhone
    netstat -s 如何分析? 求科普
    raptium
        6
    raptium  
       2016-03-11 22:55:12 +08:00   ❤️ 1
    你们俩这头像看着真是精分……
    lhbc
        7
    lhbc  
       2016-03-11 22:55:42 +08:00
    @webdev 那你这样单线程测 500K 文件,也是不准的,除非你的 API 同一时间只能接受一个连接
    lhbc
        8
    lhbc  
       2016-03-11 22:59:40 +08:00
    @webdev
    Tcp:
    3 active connections openings 3 个主动连接
    1 passive connection openings 1 个被动连接
    0 failed connection attempts 连接失败
    2 connection resets received 2 个连接被重置
    1 connections established 已建立 1 个连接
    111817 segments received 收到的包
    72082 segments send out 发出的包
    4 segments retransmited 重发的包
    0 bad segments received. 接收到的错误包
    0 resets sent 已发送的断开连接次数
    webdev
        9
    webdev  
    OP
       2016-03-12 00:01:29 +08:00 via iPhone
    @lhbc 多谢 玩待会多测试下
    webdev
        10
    webdev  
    OP
       2016-03-12 01:15:24 +08:00 via iPhone
    Microsoft Windows [Version 6.3.9600]
    (c) 2013 Microsoft Corporation. All rights reserved.



    IPv4 Statistics

    Packets Received = 504677785
    Received Header Errors = 0
    Received Address Errors = 139
    Datagrams Forwarded = 0
    Unknown Protocols Received = 0
    Received Packets Discarded = 6379
    Received Packets Delivered = 532006802
    Output Requests = 479681693
    Routing Discards = 0
    Discarded Output Packets = 521
    Output Packet No Route = 7
    Reassembly Required = 0
    Reassembly Successful = 0
    Reassembly Failures = 0
    Datagrams Successfully Fragmented = 0
    Datagrams Failing Fragmentation = 0
    Fragments Created = 0

    IPv6 Statistics

    Packets Received = 11223
    Received Header Errors = 0
    Received Address Errors = 0
    Datagrams Forwarded = 0
    Unknown Protocols Received = 0
    Received Packets Discarded = 1130
    Received Packets Delivered = 11223
    Output Requests = 12916
    Routing Discards = 0
    Discarded Output Packets = 0
    Output Packet No Route = 2
    Reassembly Required = 0
    Reassembly Successful = 0
    Reassembly Failures = 0
    Datagrams Successfully Fragmented = 0
    Datagrams Failing Fragmentation = 0
    Fragments Created = 0

    ICMPv4 Statistics

    Received Sent
    Messages 12858 12779
    Errors 0 0
    Destination Unreachable 222 143
    Time Exceeded 0 0
    Parameter Problems 0 0
    Source Quenches 0 0
    Redirects 0 0
    Echo Replies 23 12613
    Echos 12613 23
    Timestamps 0 0
    Timestamp Replies 0 0
    Address Masks 0 0
    Address Mask Replies 0 0
    Router Solicitations 0 0
    Router Advertisements 0 0

    ICMPv6 Statistics

    Received Sent
    Messages 3 5
    Errors 0 0
    Destination Unreachable 0 0
    Packet Too Big 0 0
    Time Exceeded 0 0
    Parameter Problems 0 0
    Echos 0 0
    Echo Replies 0 0
    MLD Queries 0 0
    MLD Reports 0 0
    MLD Dones 0 0
    Router Solicitations 0 3
    Router Advertisements 0 0
    Neighbor Solicitations 0 1
    Neighbor Advertisements 3 1
    Redirects 0 0
    Router Renumberings 0 0

    TCP Statistics for IPv4

    Active Opens = 9065373
    Passive Opens = 13056031
    Failed Connection Attempts = 51561
    Reset Connections = 46828
    Current Connections = 34
    Segments Received = 528990436
    Segments Sent = 479046867
    Segments Retransmitted = 452114

    TCP Statistics for IPv6

    Active Opens = 0
    Passive Opens = 0
    Failed Connection Attempts = 0
    Reset Connections = 0
    Current Connections = 0
    Segments Received = 0
    Segments Sent = 0
    Segments Retransmitted = 0

    UDP Statistics for IPv4

    Datagrams Received = 3003686
    No Ports = 6295
    Receive Errors = 0
    Datagrams Sent = 170009

    UDP Statistics for IPv6

    Datagrams Received = 11220
    No Ports = 1130
    Receive Errors = 0
    Datagrams Sent = 12884

    帮忙分析下? 刚跑了 2 分钟 平均速度 220M 貌似不正常
    lhbc
        11
    lhbc  
       2016-03-12 02:18:50 +08:00
    看不出什么问题?
    你这是内网?延时多少?上层有没有限制带宽?
    webdev
        12
    webdev  
    OP
       2016-03-12 10:04:10 +08:00 via iPhone
    @lhbc netstat -s 在服务端跑的 是否应该在客户端跑?
    webdev
        13
    webdev  
    OP
       2016-03-12 11:15:45 +08:00 via iPhone
    @lhbc 是内网 延时我要测下 带宽限制还真不清楚
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5923 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 01:57 · PVG 09:57 · LAX 17:57 · JFK 20:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.