网络性能测试工具

ab

# server
wget http://nginx.org/download/nginx-1.14.0.tar.gz
tar zxvf nginx-1.14.0.tar.gz
cd nginx-1.14.0
./configure && make && make install
vim /usr/local/nginx/conf/nginx.conf
/usr/local/nginx/sbin/nginx

# client
yum -y install httpd
ab -c 1000 -n 10000 http://x.x.x.x/

netperf

wget https://github.com/HewlettPackard/netperf/archive/netperf-2.7.0.tar.gz
tar zxvf netperf-2.7.0.tar.gz
cd netperf-2.7.0
./configure && make && make install
cd src

# server
netserver

# client
netperf -H x.x.x.x

iperf

wget https://iperf.fr/download/fedora/iperf3-3.1.3-1.fc24.x86_64.rpm
rpm -ivh iperf3-3.1.3-1.fc24.x86_64.rpm

# server
iperf3 -s

# client
iperf3 -c x.x.x.x

trafgen

详见https://github.com/wenfengshi/ddos-dos-tools
一直发送syn或ack包,支持自定义源和目的MAC、IP、Port(修改配置文件synflood.trafgen或ackflood.trafgen)

猜你喜欢

转载自blog.csdn.net/hz5034/article/details/79878500