当前位置: 代码网 > 科技>操作系统>Windows > 工具:组播测试工具iperf

工具:组播测试工具iperf

2024年08月01日 Windows 我要评论
Windows下测试局域网下,两台终端的组播通信是否正常,验证组播的丢包情况。

介绍

windows下测试局域网下,两台终端的组播通信是否正常,验证组播的丢包情况。

官方下载地址:https://iperf.fr/iperf-download.php

下载版本:iperf-1.7.0-win32

注意:iperf2 iperf3 都不支持 udp组播测试

使用

测试组播的丢包情况(iperf2 iperf3 都不支持 udp组播测试),建议开启测试后,关闭防火墙测试。

  • 参数说明

    c:\users\administrator\downloads\iperf-1.7.0-win32 (1)>iperf --help
    usage: iperf [-s|-c host] [options]
           iperf [-h|--help] [-v|--version]
    
    client/server:
      -f, --format    [kmkm]   format to report: kbits, mbits, kbytes, mbytes
      -i, --interval  #        seconds between periodic bandwidth reports
      -l, --len       #[km]    length of buffer to read or write (default 8 kb)
      -m, --print_mss          print tcp maximum segment size (mtu - tcp/ip header)
      -o, --output    <filename> output the report or error message to this specified file
      -p, --port      #        server port to listen on/connect to
      -u, --udp                use udp rather than tcp
      -w, --window    #[km]    tcp window size (socket buffer size)
      -b, --bind      <host>   bind to <host>, an interface or multicast address
      -c, --compatibility      for use with older versions does not sent extra msgs
      -m, --mss       #        set tcp maximum segment size (mtu - 40 bytes)
      -n, --nodelay            set tcp no delay, disabling nagle's algorithm
      -v, --ipv6version        set the domain to ipv6
    
    server specific:
      -s, --server             run in server mode
      -d, --daemon             run the server as a daemon
      -r, --remove             remove service in win32
    
    client specific:
      -b, --bandwidth #[km]    for udp, bandwidth to send at in bits/sec
                               (default 1 mbit/sec, implies -u)
      -c, --client    <host>   run in client mode, connecting to <host>
      -d, --dualtest           do a bidirectional test simultaneously
      -n, --num       #[km]    number of bytes to transmit (instead of -t)
      -r, --tradeoff           do a bidirectional test individually
      -t, --time      #        time in seconds to transmit for (default 10 secs)
      -f, --fileinput <name>   input the data to be transmitted from a file
      -i, --stdin              input the data to be transmitted from stdin
      -l, --listenport #       port to recieve bidirectional tests back on
      -p, --parallel  #        number of parallel client threads to run
      -t, --ttl       #        time-to-live, for multicast (default 1)
    
    miscellaneous:
      -h, --help               print this message and quit
      -v, --version            print version information and quit
    
  • 客户端发送组播包

    # -c 客户端模式,指定服务端地址
    # -u 使用udp
    # -t 发送时间
    # -b 发送速率
    # -i 报告间隔时间
    iperf -c 239.0.0.67 -u --ttl 5 -t 3600 -b 1m -i 1
    
  • 服务端接收组播包

    # -s 服务端模式运行
    # -u 使用udp
    # -b 绑定组播地址
    # -i 报告间隔时间
    iperf -s -u -b 239.0.0.67 -i 1
    

    服务端接收数据统计:

介绍

windows下测试局域网下,两台终端的组播通信是否正常,验证组播的丢包情况。

官方下载地址:https://iperf.fr/iperf-download.php

下载版本:iperf-1.7.0-win32

注意:iperf2 iperf3 都不支持 udp组播测试

使用

测试组播的丢包情况(iperf2 iperf3 都不支持 udp组播测试),建议开启测试后,关闭防火墙测试。

  • 参数说明

    c:\users\administrator\downloads\iperf-1.7.0-win32 (1)>iperf --help
    usage: iperf [-s|-c host] [options]
           iperf [-h|--help] [-v|--version]
    
    client/server:
      -f, --format    [kmkm]   format to report: kbits, mbits, kbytes, mbytes
      -i, --interval  #        seconds between periodic bandwidth reports
      -l, --len       #[km]    length of buffer to read or write (default 8 kb)
      -m, --print_mss          print tcp maximum segment size (mtu - tcp/ip header)
      -o, --output    <filename> output the report or error message to this specified file
      -p, --port      #        server port to listen on/connect to
      -u, --udp                use udp rather than tcp
      -w, --window    #[km]    tcp window size (socket buffer size)
      -b, --bind      <host>   bind to <host>, an interface or multicast address
      -c, --compatibility      for use with older versions does not sent extra msgs
      -m, --mss       #        set tcp maximum segment size (mtu - 40 bytes)
      -n, --nodelay            set tcp no delay, disabling nagle's algorithm
      -v, --ipv6version        set the domain to ipv6
    
    server specific:
      -s, --server             run in server mode
      -d, --daemon             run the server as a daemon
      -r, --remove             remove service in win32
    
    client specific:
      -b, --bandwidth #[km]    for udp, bandwidth to send at in bits/sec
                               (default 1 mbit/sec, implies -u)
      -c, --client    <host>   run in client mode, connecting to <host>
      -d, --dualtest           do a bidirectional test simultaneously
      -n, --num       #[km]    number of bytes to transmit (instead of -t)
      -r, --tradeoff           do a bidirectional test individually
      -t, --time      #        time in seconds to transmit for (default 10 secs)
      -f, --fileinput <name>   input the data to be transmitted from a file
      -i, --stdin              input the data to be transmitted from stdin
      -l, --listenport #       port to recieve bidirectional tests back on
      -p, --parallel  #        number of parallel client threads to run
      -t, --ttl       #        time-to-live, for multicast (default 1)
    
    miscellaneous:
      -h, --help               print this message and quit
      -v, --version            print version information and quit
    
  • 客户端发送组播包

    # -c 客户端模式,指定服务端地址
    # -u 使用udp
    # -t 发送时间
    # -b 发送速率
    # -i 报告间隔时间
    iperf -c 239.0.0.67 -u --ttl 5 -t 3600 -b 1m -i 1
    
  • 服务端接收组播包

    # -s 服务端模式运行
    # -u 使用udp
    # -b 绑定组播地址
    # -i 报告间隔时间
    iperf -s -u -b 239.0.0.67 -i 1
    

    服务端接收数据统计:
    在这里插入图片描述

(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2025  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com