zoukankan      html  css  js  c++  java
  • iperf

    -f [k|m|K|M] 分别表示以Kbits, Mbits, KBytes, MBytes显示报告,默认以Mbits为单位,eg:iperf -c 222.35.11.23 -f K
    -i sec 以秒为单位显示报告间隔,eg:iperf -c 222.35.11.23 -i 2
    -l 缓冲区大小,默认是8KB,eg:iperf -c 222.35.11.23 -l 16 -m 显示tcp最大mtu值
    -o 将报告和错误信息输出到文件eg:iperf -c 222.35.11.23 -o c:iperflog.txt
    -p 指定服务器端使用的端口或客户端所连接的端口eg:iperf -s -p 9999;iperf -c 222.35.11.23 -p 9999
    -u 使用udp协议
    -w 指定TCP窗口大小,默认是8KB
    -B 绑定一个主机地址或接口(当主机有多个地址或接口时使用该参数)
    -C 兼容旧版本(当server端和client端版本不一样时使用)
    -M 设定TCP数据包的最大mtu值
    -N 设定TCP不延时
    -V 传输ipv6数据包 server专用参数
    -D 以服务方式运行ipserf,eg:iperf -s -D -R 停止iperf服务,针对-D,eg:iperf -s -R
    client端专用参数
    -d 同时进行双向传输测试
    -n 指定传输的字节数,eg:iperf -c 222.35.11.23 -n 100000
    -r 单独进行双向传输测试
    -t 测试时间,默认10秒,eg:iperf -c 222.35.11.23 -t 5
    -F 指定需要传输的文件
    -T 指定ttl值

    实例:
    iperf3 -c 172.17.2.3 -t 300 -u -l 1000

    iperf3 -c 172.17.2.3 -t 300 -ul 1000 -b 100M -P 16

    iperf 与iperf3的差异
    1, udp时候:
    iperf3 如果没有服务端没有开启 iperf3 -s ,客服端发送不了udp数据
    iperf 不需要服务端存在iperf3 -s -u ,如果存在,udp的情况也要加上 -u, 另外服务端没有回包。

  • 相关阅读:
    asp.net的Context.Cache缓存过期策略
    sql语句执行时算术运算导致溢出。
    sqlserver进行join的方式选择
    Apollo配置中心
    sqlserver的left join优化
    iis设置上传文件大小限制
    Android中的颜色值
    Network authentication method and device for implementing the same
    MongoDB GridFS
    MongoDB 正则表达式
  • 原文地址:https://www.cnblogs.com/ims-/p/14494029.html
Copyright © 2011-2022 走看看