IPerf简单使用

IPerf简单使用一点睛 1IPerf 是一个服务器 客户端运行的程序 2 在服务器端运行 iPerf 也需要在客户端运行 IPerf 3 服务器端 在命令行下使用 iperf 加参数 s 4 客户端 在命令行下使用 iperf 加参数 c 5 经过一段时间测试 默认 10 秒 在 Server 端和 Client 端就会打印出网络连接的各种性能参数 二实战 1 准备服务器和客户端服务器 192 168 0

一 点睛

1 IPerf是一个服务器/客户端运行的程序

2 在服务器端运行iPerf,也需要在客户端运行IPerf。

3 服务器端,在命令行下使用iperf加参数-s。

4 客户端,在命令行下使用iperf加参数-c。

5 经过一段时间测试(默认10秒),在Server端和Client端就会打印出网络连接的各种性能参数。

二 实战

1 准备服务器和客户端

服务器:192.168.0.110

客户端:192.168.0.120

2 确保服务器和客户端都关闭了防火墙

[root@localhost iperf-1.7.0]# firewall-cmd --state not running

3 启动服务端

[root@localhost iperf-1.7.0]# iperf -s ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 85.3 KByte (default) ------------------------------------------------------------

4 运行客户端

[root@localhost iperf-1.7.0]# iperf -c 192.168.0.110 ------------------------------------------------------------ Client connecting to 192.168.0.110, TCP port 5001 TCP window size: 85.0 KByte (default) ------------------------------------------------------------

5 此时服务端打印如下

[root@localhost iperf-1.7.0]# iperf -s ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 85.3 KByte (default) ------------------------------------------------------------ [ 4] local 192.168.0.110 port 5001 connected with 192.168.0.120 port 39046

6 使用帮助

[root@localhost iperf-1.7.0]# iperf -h 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) -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 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 [KM] Indicates options that support a K or M suffix for kilo- or mega- The TCP window size option can be set by the environment variable TCP_WINDOW_SIZE. Most other options can be set by an environment variable IPERF_<long option name>, such as IPERF_BANDWIDTH. Report bugs to <>

 

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

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/232930.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • ceph常用命令详解_ceph osd

    ceph常用命令详解_ceph osd1.OSD概念OSD:ObjectStorageDevice,主要负责响应客户端请求返回具体数据的守护进程,一般一个集群会有多个OSD,每一块盘都会对应一个OSD。2.OSD状态[root@data1~]#cephosdstat4osds:3up(since23m),3in(since13m);epoch:e345OSD状态说明:a.集群内(in)b.集群外(out)c.活着且在运行(up)d.挂了且不再运行(down).

    2025年6月29日
    2
  • deepfacelab第七步换脸失败_CUBASE AI

    deepfacelab第七步换脸失败_CUBASE AI首先需要选择合适的DeepFaceLab下载(https://www.deepfacelabs.com/list-5-1.html),然后安装相应的显卡驱动,如果已经准备好这些工作,那么恭喜你,终于开

    2022年8月3日
    14
  • 10种方法缓解所显示器造成的眼睛疲劳

    10种方法缓解所显示器造成的眼睛疲劳

    2021年9月18日
    44
  • C# 多线程详细讲解「建议收藏」

    C# 多线程详细讲解「建议收藏」C#多线程一、基本概念1、进程首先打开任务管理器,查看当前运行的进程:从任务管理器里面可以看到当前所有正在运行的进程。那么究竟什么是进程呢?进程(Process)是Windows系统中的一个基本概念,它包含着一个运行程序所需要的资源。一个正在运行的应用程序在操作系统中被视为一个进程,进程可以包括一个或多个线程。线程是操作系统分配处理器时间的基本单元,在进程中可以有多个线程同时执行代码。进程之间是相对独立的,一个进程无法访问另一个进程的数据(除非利用分布式计算方式),一个进程运

    2025年8月24日
    1
  • Java设计模式之命令模式

    继续23种设计模式系列,本文介绍命令模式。

    2022年3月11日
    38
  • 【通信系统仿真设计】基于MATLAB的直接序列扩频通信系统仿真

    【通信系统仿真设计】基于MATLAB的直接序列扩频通信系统仿真直接扩频序列调制是用速率很高的伪噪声码序列与信息码序列模二相加(波形相乘)后得到复合码序列,用复合码序列去控制载波相位,从而获得直接扩频序列信号的。直接扩频通信具有低截获概率、抗干扰能力强以及易于实现码分多址等优点,在抗干扰通信及民用移动通信中都得到了广泛的应用。

    2022年6月3日
    48

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号