How to stress test network traffic?

How to stress test network traffic?

There are many network testing software. Today, we will introduce two commonly used ones, namely iptraf3 and netperf. The indicators of network testing are: PPS and peak intranet bandwidth.

iptraf software

  1. yum -y install gcc gcc-c++ autoconf glibc glibc-devel sysstat nload
  2. yum install -y iptraf3

(1) Description of some iptraf3 parameters:

(2) Query bandwidth peak value

Server execution: iperf3 -s -i 1 -p 10000

Client execution: iperf3 -c 192.168.10.163 -t 30 -P 2 -p 10000 (parameter -P means parallel operation)

(3) Query pps

Server: iperf3 -s -i 1 -p 10000

Client: iperf3 -u -l 16 -c 192.168.10.163 -t 30 -P 2 -p 10000

Note: sar -n DEV 1 100 to view the packet frequency

Netpraf software installation

  1. yum -y install gcc gcc-c++ autoconf glibc glibc-devel sysstat nload
  2. wget -c "https://github.com/HewlettPackard/netperf/archive/netperf-2.7.0.tar.gz" -O netperf-2.7.0.tar.gz
  3. tar -zxvf netperf-2.7.0.tar.gz
  4. cd netperf-netperf-2.7.0
  5. ./configure && make && make install && cd ..

(1) After Netperf is installed, two tools will be generated: netserver and netperf. The following are the main parameters of the two tools.

(2) Query the bandwidth peak server: netserver -p 16000

Client: netperf -H 10.10.40.5 -p 16000 -t UDP_STREAM -l 30 -- -m 1400

Parameter Explanation

(3) Query PPS data packets

Server: netserver -p 16000

Client netperf -H 10.10.40.5 -p 16000 -t UDP_STREAM -l 30 -- -m 1

This data may not be accurate, it is better to use sar -n DEV 1 1000.

Tip: If you are performing network stress testing on multiple machines, it is best to use one of the tools to perform stress testing.

<<:  Let's talk about IPv4 to IPv6 tunnel

>>:  IP address planning in corporate intranet, you should master these 6 points!

Recommend

WonderShaper: Network card speed limit tool

1. What is WonderShaper WonderShaper is a tool fo...

Microsoft Build 2017: Officially released Visual Studio for Mac

On the evening of May 10th, Beijing time, Microso...

A brief discussion on common tunneling technologies: IPSec

IPSec is not a single protocol, but a set of netw...

How to build supply chain finance modernization from Shengye

The report of the 20th National Congress of the C...

Robotics and AI: The future of software testing and development

【51CTO.com Quick Translation】 About a year ago, a...