当前位置: 首页 > 工具软件 > netperf > 使用案例 >

netperf测试工具

斜高翰
2023-12-01

一、使用步骤

1、终端执行解压缩命令:tar xvf netperf-netperf-2.5.0.tar.gz

2、进入解压缩目录下:cd netperf-netperf-2.5.0

3、终端执行./configure

4、终端执行make

5、终端执行make install

6、执行运行命令 netperf [global options]--[test options]

服务器端:192.168.1.2 客户端:192.168.1.3

(1)启动服务器端:netserver -p 4444

(2)启动客户端:netperf -H 192.168.1.2 -l 60 7、测试命令 netperf -H 192.168.1.2 -l 60

二、问题记录

(1)终端执行./configure报错时 configure: error: cannot guess build type; you must specify one

解决方法 https://blog.csdn.net/hebbely/article/details/53993141

或者./configure --build=arm-linux

或者./configure --build=mips

(2)客户端执行启动命令时报错

establish control: are you sure there is a netserver listening on *.*.*.* at port 12865? establish_control could not establish the control connection from 0.0.0.0 port 0 address

上网查询说是服务器端未关闭防火墙,但是执行关闭防火墙命令(sudo iptables -F),客户端执行还是报错https://www.iots.vip/post/vps-assessment2.html

最后调换服务器与客户端的身份,执行成功,是因为端口被调用了 服务端重新指定未被占用的端口即可 系统查看端口占用的命令语法格式:netstat -tunlp | grep 端口号

三、参考网站

(1) https://www.jianshu.com/p/42e0fa6bf79c

(2)https://www.cnblogs.com/davidesun/p/12726006.html

 类似资料: