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

HTTP methods and usage scenarios

HTTP (Hypertext Transfer Protocol) methods, also ...

What does the TTL value returned by the Ping command mean and what does it do?

The ping command is used to test the connection t...

Why TCP/IP is a threat to the Internet of Things

This article is reproduced from the WeChat public...

Introduction to DeepTech DAC Series Products

With the rapid development of the Internet of Thi...

What does Wi-Fi bring to Matter’s push for home IoT?

As Matter’s foundational technology, Wi-Fi can he...

Riverbed Digital Experience Management

Today, most businesses realize that in order to a...

How the wireless network market will develop in 2022

​A wireless network is a computer network that re...

War in the SDN World: SR and Openflow

In the past two years, SDN technology has continu...