导航:首页 > 程序命令 > iperfudp命令

iperfudp命令

发布时间:2022-07-01 14:24:48

㈠ 怎样在一台server上使用iperf

1、下载、scp进两个linux(一个做server一个做client)。
2、源码安装。没有特别的东西,装好了就有iperf这个命令了。
3、做server的机器上运行#iperf -s,启动iperf。
4、做client的机器上运行#iperf -c serverip -t 30 -i 2,每2秒测试一次到serverip的网络性能,测试时间30秒。
jperf是图形界面的,安装jre(java runtime)后运行jperf.bat就可以运行。

参数说明:
-s 以server模式启动。#iperf -s
-c host以client模式启动。host是server端地址。#iperf -c serverip
通用参数:
-f [kmKM] 分别表示以Kbits, Mbits, KBytes, MBytes显示报告,默认以Mbits为单位,#iperf -c 222.35.11.23 -f K
-i sec 以秒为单位显示报告间隔,#iperf -c 222.35.11.23 -i 2
-l 缓冲区大小,默认是8KB,#iperf -c 222.35.11.23 -l 16
-m 显示tcp最大mtu值
-o 将报告和错误信息输出到文件#iperf -c 222.35.11.23 -o ciperflog.txt
-p 指定服务器端使用的端口或客户端所连接的端口#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 以服务方式运行。#iperf -s -D
-R 停止iperf服务。针对-D,#iperf -s -R
client端专用参数:
-d 同时进行双向传输测试
-n 指定传输的字节数,#iperf -c 222.35.11.23 -n 100000
-r 单独进行双向传输测试
-t 测试时间,默认20秒,#iperf -c 222.35.11.23 -t 5
-F 指定需要传输的文件
-T 指定ttl值

㈡ iperf打不开的解决方法

Iperf是一个TCP/IP和UDP/IP的性能测量工具,能够提供网络吞吐率信息,以及震动、丢包率、最大段和最大传输单元大小等统计信息;从而能够帮助我们测试网络性能,定位网络瓶颈。

㈢ 求教linux向指定目标机器发一个udp包,应该怎么发呢

用iperf命令
#iperf -u -c 10.32.0.254
-u 就是以udp包发送
-c 就是目标机器ip

㈣ iperf下载后怎么打开

打开cmd,输入iperf的路径,如图

㈤ iperf3工具测试udp速度,server端测试结果0.00-10.00sec的带宽为0,这是为什么呢

㈥ 测试路由器该怎么测,用命令行还是界面

家用路由器使用手机或者笔记本电脑,分别尝试有线、无线连上路由器以后看电影或者下载大文件、运行游戏,测速等,看路由器网速是否正常、会不会突然断线、游戏延迟是否会跳动增加的情况等即可,如果没有出现上述问题基本就是稳定的,不需要打开管理页面。
如果是企业及运营商路由器,这类设备都会提供测试用的接口,可以用命令行或者图形化的配置软件进行配置。

㈦ iperf测试网络速率

首先要介绍的命令用来启动iperf服务器监听进程以便监听客户端连接的。命令如下:

iperf.exe -s -P 2 -i 5 -p 5999 -f k

这个命令会启动iperf,后续参数用来设定监听5999 端口(默认端口是5001), 限定iperf只允许两个连接,每5秒汇报一次连接情况。连接限制参数(-P参数)非常重要,当两个连接建立后,服务器进程就会退出。如果这个参数设定为0,那么iperf 进程将持续监听端口,并且不限制连接数量。在 Windows主机上键入该命令,会显示出如图A所示界面
启动一个iperf 客户端连接

iperf 的另一半就是客户端,用来连接到服务器监听端口。比如我们要连接到一台叫做 s-network1.amcs.tld 的服务器,端口为5999,连接60 秒并且每5秒显示一次状态,命令行如下:

iperf.exe -c s-network1.amcs.tld -P 1 -i 5 -p 5999 -f B -t 60 -T 1

命令启动后,s-network1 主机被用来进行网络性能检测。与Jperf GUI 界面提供的漂亮图形不同, iperf只会根据测量参数简单的报告网络带宽状况,在本例中是以 比特为单位(-f 参数)进行带宽表示的。图B显示了远程客户端与s-network1主机间的带宽性能。
为了应对日常便捷应用的需求,我们可以建立一个 .bat批处理文件,届时填入服务器名称即可实现快速检测。以下为实际使用的拷屏:

C:\jperf\jperf\bin>iperf
Usage: iperf [-s|-c host] [options]
Try `iperf –help’ for more information.

C:\jperf\jperf\bin>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, –altest Do a bidirectional test simultaneously
-n, –num #[KM] number of bytes to transmit (instead of -t)
-r, –tradeoff Do a bidirectional test indivially
-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.

㈧ 我用iperf 测试 udp 包到 vps 的丢包率,一点反应都没有

telnet:connecttoaddress . . . :Connectionrefused此时,可以使用nc这个工具,大多数的发行版都自带这个工具,fedora 的/usr/bin/nc所属的安装包是nc- . - .fc .i nc-l-u . . . 使用命令nc-u . . . ,在这里输入字符串,服务端就会回显相同的字符串,表示 端口上的udp服务是否启用。suse上的是用netcat,方法基本上差不多:netcat-l-u-p 这样就可以在 . . . 上侦听udp的 端口从另外一台机器,或者打开本机的另外一个虚拟终端,输入:netcat-u . . . 在这里输入字符串,就会回显一个相同的字符串,表示链接是OK的

㈨ realtek网卡,iperf测试UDP带宽只有15Mbps,请问各位是怎么回事啊

是iperf软件的问题,xp系统的话用iperf 1.7好像是可以的,win7系统的话要用iperf 2.0.4

㈩ 能接受UDP,不能接受TCP包

UDP面向的是无连接,仅仅发送过去,不管是否接受到,并对接收无响应,而TCP面向的是连接,先保证连接状态,发送,并确保接收到,响应接收。可能此系统开发时就是基于UDP(非连接状态),

阅读全文

与iperfudp命令相关的资料

热点内容
男主娶母女 浏览:482
阁瑞斯压缩机漏电怎么处理 浏览:19
有个叫阿水的在一个岛上的电影叫什么 浏览:161
韩剧食物链酒吧老板娘的演员叫什么 浏览:485
linux关闭java进程 浏览:886
想学编程报什么专业 浏览:22
阿里云服务器带宽哪里看 浏览:18
python怎么验证等式 浏览:564
喋血劫花磁力下载 浏览:37
房地产开发管理pdf 浏览:794
日韩美女网站。 浏览:502
舞会电影未删减版 浏览:988
什么中web服务器 浏览:801
php开发实战权威指南光盘 浏览:947
永新优品app怎么找不到 浏览:245
海外服务器如何找客户 浏览:579
单片机学51 浏览:158
自助审核系统源码 浏览:383
python小数矩阵 浏览:599
安卓微信拍了拍功能怎么打开 浏览:48