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!

Blog    

Recommend

Some Discussions on the Transmission Network in DCI

Preface The exploration of DCI technology has bee...

Huawei Software Development Cloud helps improve WeChat mini-program code quality

In the early morning of January 9, after more tha...

2018 Yunnan-Huawei Software Industry Summit was held on December 20

The 2018 Yunnan-Huawei Software Industry Summit w...

How do 5G and 6G networks support smart city applications?

However, lower latency and the ability to support...

Architect: We are more afraid of 200 than 404!

Young man, you are reading a short hardcore scien...

...

Cisco ACI original core technology expert reveals the birth of ACI

The official development of ACI began in January ...

Exploration and practice of full-link grayscale solution based on Istio

background Under the microservice software archit...