iPerf3 命令通用选项

2023-05-16

iPerf3 命令通用选项

同时适用于客户端与服务器端

命令选项命令描述
-p, --port nThe server port for the server to listen on and the client to connect to. This should be the same in both client and server. Default is 5201.
–cport nOption to specify the client-side port. (new in iPerf 3.1)
-f, --format [kmgKMG]格式化带宽数输出。支持的格式有:

‘k’ = Kbits/sec ‘K’ = KBytes/sec

‘m’ = Mbits/sec ‘M’ = MBytes/sec

‘g’ = Gbits/sec ‘G’ = GBytes/sec

自适应格式是kilo-和mega-二者之一。除了带宽之外的字段都输出为字节,除非指定输出的格式,默认的参数是a。

注意:在计算字节byte时,Kilo = 1024, Mega = 1024^2,Giga = 1024^3。通常,在网络中,Kilo = 1000, Mega = 1000^2, and Giga = 1000^3,所以,Iperf也按此来计算比特(位)。如果这些困扰了你,那么请使用-f b参数,然后亲自计算一下。
-i, --interval nSets the interval time in seconds between periodic bandwidth, jitter, and loss reports. If non-zero, a report is made every interval seconds of the bandwidth since the last report. If zero, no periodic reports are printed. Default is zero.
- F , --file nameclient-side: read from the file and write to the network, instead of using random data; server-side: read from the network and write to the file, instead of throwing the data away.
-A, --affinity n/n,m-FSet the CPU affinity, if possible (Linux and FreeBSD only). On both the client and server you can set the local affinity by using the n form of this argument (where n is a CPU number). In addition, on the client side you can override the server’s affinity for just that one test, using the n,m form of argument. Note that when using this feature, a process will only be bound to a single CPU (as opposed to a set containing potentialy multiple CPUs).
- B , --bind hostBind to host , one of this machine’s addresses. For the client this sets the outbound interface. For a server this sets the incoming interface. This is only useful on multihomed hosts, which have multiple network interfaces.
-V, --verbosegive more detailed output
-J, --jsonoutput in JSON format
–logfile filesend output to a log file. (new in iPerf 3.1)
–d, --debugemit debugging output. Primarily (perhaps exclusively) of use to developers.
-v, --versionShow version information and quit.
-h , --helpShow a help synopsis and quit.

iPerf3 服务端命令特有选项

命令选项命令描述
-s, --serverRun iPerf in server mode. (This will only allow one iperf connection at a time)
-D, --daemonRun the server in background as a daemon.
- I, --pidfilefilewrite a file with the process ID, most useful when running as a daemon.

iPerf3 客户端命令特有选项

命令选项命令描述
-c, --client hostRun iPerf in client mode, connecting to an iPerf server running on host .
–sctpUse SCTP rather than TCP (Linux, FreeBSD and Solaris). (new in iPerf 3.1)
-u , --udpUse UDP rather than TCP. See also the -b option.
-b, --bandwidth n[KM]Set target bandwidth to n bits/sec (default 1 Mbit/sec for UDP, unlimited for TCP). If there are multiple streams (-P flag), the bandwidth limit is applied separately to each stream. You can also add a ’/’and a number to the bandwidth specifier. This is called “burst mode”. It will send the given number of packets without pausing, even if that temporarily exceeds the specified bandwidth limit.
-t, --time nThe time in seconds to transmit for. iPerf normally works by repeatedly sending an array of len bytes for time seconds. Default is 10 seconds. See also the -l, -k and - n options.
-n , --num n[KM]The number of buffers to transmit. Normally, iPerf sends for 10 seconds. The -n option overrides this and sends an array of len bytes num times, no matter how long that takes. See also the -l, -k and -t options.
-k, --blockcount n[KM]The number of blocks (packets) to transmit. (instead of -t or -n) See also the -t, - l and -n options.
-l, --length n[KM]The length of buffers to read or write. iPerf works by writing an array of len bytes a number of times. Default is 128 KB for TCP, 8 KB for UDP. See also the -n, - k and -t options.
- P, --parallel nThe number of simultaneous connections to make to the server. Default is 1.
- R, --reverseRun in reverse mode (server sends, client receives).
-w , --window n[KM]Sets the socket buffer sizes to the specified value. For TCP, this sets the TCP window size. (this gets sent to the server and used on that side too)
- M , --set-mss nAttempt to set the TCP maximum segment size (MSS). The MSS is usually the MTU - 40 bytes for the TCP/IP header. For ethernet, the MSS is 1460 bytes (1500 byte MTU).
- N, --no-delaySet the TCP no delay option, disabling Nagle’s algorithm. Normally this is only disabled for interactive applications like telnet.
-4 , --version4only use IPv4.
-6 , --version4only use IPv6.
-S , --tos nThe type-of-service for outgoing packets. (Many routers ignore the TOS field.) You may specify the value in hex with a ‘0x’ prefix, in octal with a ‘0’ prefix, or in decimal. For example, ‘0x10’ hex = ‘020’ octal = ‘16’ decimal. The TOS numbers specified in RFC 1349 are:

IPTOS_ LOWDELAY minimize delay 0x10
IPTOS_THROUGHPUT maximize throughput 0x08
IPTOS_RELIABILITY maximize reliability 0x04
IPTOS_ LOWCOST minimize cost 0x02
-O, --omit nspecified in RFC 1349 are:Omit the first n seconds of the test, to skip past the TCP TCP slowstart period.

常用参数

-f [kmKM] 分别表示以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 ciperflog.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数据包

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

iPerf3 命令通用选项 的相关文章

  • Cannot resolve module 'fs'

    可能很多人都会遇到这个问题 xff0c 反正我的话已经遇到两次了 xff0c 上一次解决的时候没有记录解决办法 xff0c 这次又遇到了 xff0c 而且国内搜索引擎是搜不到这个问题的解决办法的 xff0c 所以写个博客记录一下吧 xff0
  • 调整浏览器滚动条样式

    我们知道浏览器自带滚动条很丑 xff0c 有时影响整个页面到美观 xff0c 尤其在页面内嵌一个滚动列表 xff0c 显得奇丑无比 xff0c 下面我们根据如下代码调节滚动条样式 span class token punctuation s
  • 空指针的查找经验

    对象为空不会空指针 而对象的属性方法为空就会报空指针异常 那么我们来看一个出空指针的例子 从报错行开始 每一个参数都输出 发现都有参数 ctrl 43 左键 进入每一个非jdk内部的方法查看 发现在map方法中 Map lt String
  • centos 8 将普通用户添加到sudoers

    centos 系统并没有将普通用户默认添加到sudoers用户组 xff0c 所以在centos xff08 6 xff0c 7 xff0c 8 xff09 中普通用户是无法使用sudo的 xff0c 可是为了系统安全 xff0c 特别如果
  • idea操作hadoop

    cd span class token operator span opt span class token operator span software tar span class token operator span zcvf ha
  • 基于VMware 的 hive安装与启动

    1将have jar文件解压到software目录下 tar span class token operator span zxf have span class token punctuation span span class toke
  • 配置本地镜像--配置华为镜像---安装mysql

    查看镜像是否挂载 df h 本地镜像挂载 mount dev sr0 mnt 配置本地镜像源 cd etc yum repos d 创建备份文件夹 xff0c 将默认的镜像文件备份至该文件夹 mkdir bak mv repo bak 创建
  • java实现简单的生成行为日志文件 (一)

    第一步 在windows中创建目录 第二部 写properties 配置信息 log4j span class token punctuation span rootLogger span class token operator 61 s
  • jdbc实现 mysql 表导入windows文件在导入hbase 并实现打胖包到centos7环境中运行

    此项目由二部分组成 一 配置文件 1配置文件的位置 D d 笔记目录 jdbchbase datasource properties 2配置文件的内容 span class token comment java连接hbase配置 span
  • Hbase底层设计 hbase命令

    hbase web http 20 0 0 180 60010 hbase构成 服务 HMaster 1 为Region server分配region 2 负责Region server的负载均衡 3 xff09 发现失效的Regionse
  • mybatis连接数据库 实现增删改查操作

    框架 pom xml span class token operator lt span span class token operator span xml version span class token operator 61 spa
  • sparkgraph

    什么是sparkgragh xff1a 它是为了为用户建立关系的视图 SparkGraph图计算 基础篇 1 what xff1f 表示数据关系的数据结构 基本元素 xff1a 点Vertex xff0c 边Edge Vertex Vert
  • 萌小宠项目————环境搭建(一)

    大数据环境搭建 一 Docker安装 1 1 Centos Docker安装 镜像比较大 需要准备一个网络稳定的环境 其中 mirror Aliyun代表使用阿里源 curl fsSL https get docker com bash s
  • Lunix下大数据相关软件安装及配置(更新至Kafka)

    https blog csdn net sweet19920711 article details 118309793
  • centos8编译安装指定版本的内核(保姆级教程)

    在实际工作中经常会遇到默认安装的或者通过官方更新的内核版本无法实现具体的业务需求的情况 xff0c 因此我们需要更换系统的内核 本文为centos 8更换5 10 10一个简单记录 1 当前系统的内核版本 span class token
  • Ubuntu 20.04 安装和使用nvm

    克隆nvm镜像 span class token function git span clone https gitee com mirrors nvm 安装nvm span class token function bash span i
  • GitHub Pages域名绑定2018,别被旧文章误导了

    1 创建GitHub Pages 如果不知道如何创建GitHub Pages xff0c https pages github com 2 注册域名 到阿里云或者腾讯云买个自己喜欢的域名 xff08 top域名不能作为腾讯域名邮箱 xff0
  • 机票预定系统 软工

    系统的问题描述 1 xff0e 系统简介 航空公司为给旅客乘机提供方便 xff0c 需要开发一个机票预定系统 各个旅行社把预定机票的旅客信息 xff08 姓名 性别 工作单位 身份证号码 xff08 护照号码 xff09 旅行时间 旅行始发
  • 2022 Kubernetes 批处理和HPC发展一览

    2022 Kubernetes 批处理和HPC发展一览 2022 年 5 月 16 日到 20 日 xff0c 年度最顶级的云原生旗舰会议 KubeCon 43 CloudNativeCon Europe 2022 xff0c 在西班牙 瓦
  • Docker运行ubuntu22.04出现异常

    问题 我在ubuntu22 04的容器里面运行apt update的时候出现了以下报错 span class token punctuation span root 64 VM 16 9 centos docker kubuntu span

随机推荐

  • k8s实战系列:3-存储的花样玩法(上)

    从存储 到后面的容器运行时 网络接口 可观察性组件等就可以感受到云原生的开放性 包容性和生态的丰富性 我们再回顾下云原生景观图 https landscape cncf io Docker存储 容器服务之所以如此流行 一大优势即来自于运行容
  • k8s实战系列:3-存储的花样玩法(下)

    k8s实战系列 3 存储的花样玩法 上 中我们谈论了Docker存储 已经Kubernetes中的配置数据中的ConfigMap和Secret 接下来我们会讨论下Kubernetes中的临时存储 持久存储等 3 DownwardAPI Do
  • 基于kube-scheduler-simulator编写自己的调度程序

    基于kube scheduler simulator编写自己的调度程序 由于默认的 Kubernetes 调度程序是高度可配置的 在许多情况下 我们不必编写任何代码来定制调度行为 然而 想要了解调度程序如何工作 以及如何与其他组件交互的人
  • Goland嗖嗖的: 快捷键,自动生成代码等效率小技巧

    快捷键大全 Windows Linux版本 Mac版本 代码自动生成 1 动态模板 在 GoLand 中 xff0c 预定义的动态模板位于 Preferences Editor Live Templates xff0c 并且分组 插入动态模
  • 基于Goland和dlv远程调试Kubernetes组件

    一个正常运行的 Kubernetes 集群包含以下的各种组件 通常开发者日常编码都基于Windows Mac上的IDE xff08 VsCode Goland xff09 xff0c 编码完成后再部署到远端Linux机器运行 因此 xff0
  • centos8 mips交叉编译环境搭建(保姆级教程)

    最近一直在折腾我的光猫 路由器以及学习嵌入式开发的相关知识 xff0c 于是有了下面这篇文章 xff0c 参考了网上很多文章 xff0c 终于实现了自己的目标 xff0c 简单的记录下来 xff0c 名为 保姆级 其实是因为自己技术很菜 x
  • Docker load 大镜像(17G) 报错no space left on device

    span class token comment 导入加载镜像 xff0c test tar大小有16G左右 span span class token function docker span load span class token
  • 收集yum install安装的软件的全量依赖 rpm 包

    离线安装主要有两种方式 xff1a 源码编译 rpm包安装 源码编译耗费时间长且缺乏编译环境 xff0c 所以一般都选择使用离线 rpm 包安装 有时候离线 rpm 包有比较难于收集齐全 xff0c 但测试环境我们又可以通过 yum ins
  • 镜像搬运工具 Skopeo 使用

    镜像搬运工具 Skopeo 使用 搬砖工具 作为公司内部 PaaS toB 产品的打包发布人员 xff0c 容器镜像对我们打工人而言就像是工地上的砖头 x1f9f1 xff0c 而我的一部分工作就是将这些砖头在各个仓库之间搬来搬去 xff0
  • Habor数据迁移方式有多少,skopeo效率最好

    迁移流程 两个不同的Harbor实例迁移数据 含镜像数据和数据库数据 迁移方式 Harbor 镜像skopeoimage syncer手工机制基于策略的内容机制 xff1a 支持多种过滤器 xff08 镜像库 tag和标签 xff09 与多
  • Harbor新建仓库目标提示 the registry is unhealthy

    两个harbor需要通过镜像复制策略来同步镜像 在仓库管理添加的harbor状态是unhealthy 问题排查 两个harbor需要通过镜像复制策略来同步镜像 在仓库管理添加的harbor状态是unhealthy 本文中 目标仓库的地址是i
  • Harbor断电重启postgres报错 could not locate a valid checkpoint record

    Harborv2 2 2内置的数据库是postgres9 6 21 服务器突然断电 重启harbor后报错 信息如下 Oct span class token number 21 span span class token number 1
  • Harbor镜像层膨胀,占用存储过大

    问题现象 使用Harbor镜像复制策略后 本地镜像存储目录飙升到1T 外链图片转存失败 源站可能有防盗链机制 建议将图片保存下来直接上传 img imf8FtHs 1666958403009 AppData Roaming Typora t
  • Harbor 镜像复制 每 30 分钟发生一次超时

    报错信息 span class token number 2022 span 10 27T22 27 13Z span class token punctuation span ERROR span class token punctuat
  • 配置对 Harbor 的 HTTPS 访问

    配置对 Harbor 的 HTTPS 访问 默认情况下 xff0c Harbor 不附带证书 可以在没有安全性的情况下部署 Harbor xff0c 以便你可以通过 HTTP 连接到它 但是 xff0c 在生产环境中 xff0c 建议使用
  • 申请阿里云免费证书

    阿里云免费SSL证书申请 阿里云免费SSL证书是赛门铁克 xff08 Symantec xff09 品牌的 xff0c 免费证书只能保护一个域名 xff08 带www和不带www可以通用 xff09 阿里云个人账号和企业账号均可申请 xff
  • centos 7 / 8 texinfo安装

    在安装一些软件时会出现缺少texinfo的提示 xff0c 在centos7中texinfo非常容易安装 xff0c 只要执行 yum span class token function install span y texinfo 就可以
  • Harbor使用公网证书

    Harbor使用公网证书 申请公网证书 申请阿里云免费证书 因为Harbor使用Nginx做代理 xff0c 因此在公网证书审核通过后 xff0c 在证书下载面板 xff0c 单击Nginx服务器操作列的下载 下载解压后您将会获得以下文件
  • mysql查看实时语句和慢sql

    mysql查看实时语句和慢sql 查看实时语句 Mysql除了手动执行的语句 xff0c 还有很多在后台由其他模块执行的语句 xff0c 按理来说 xff0c 那些由其他模块执行的语句是不能实时查看的 xff0c 因为这个资源消耗特别的大
  • iPerf3 命令通用选项

    iPerf3 命令通用选项 同时适用于客户端与服务器端 命令选项命令描述 p port nThe server port for the server to listen on and the client to connect to Th