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

How to implement message communication elegantly?

[[339299]] This article is reprinted from the WeC...

Analysis of 5G network security issues

The fifth generation of mobile communication tech...

5G is coming, these 10 common things will disappear in the future

Hello everyone, I am a senior. Recently, you may ...

5G in 2021: Expectations and Developments

5G is the fastest growing mobile technology in hi...

Share: Construction skills of integrated wiring system

In the process of implementing the integrated wir...

Misaka: $44/year KVM-2GB/32G NVMe/2TB/Germany (optional CN2)

Misaka is a Chinese merchant (the same company as...

RackNerd: San Jose AMD Ryzen+DDR4+NVMe series KVM starts at $14.18 per year

Previously, we have shared information about the ...

80% of the network traffic returned by Internet applications comes from it?

What is a CDN? Content Distribution Network (CDN)...

The emergence of 6G technology: growth opportunities for modern industry

The potential of 6G technology will become appare...

Now is the time to use 5G indoors

Operators have made huge investments in 5G RAN, w...