Purpose
Verify eSurfing Cloud server bandwidth and PPS performance metrics.
Before You Begin
Prepare two cloud servers of the same specifications in the same VPC with security group rules open to each other, to ensure that network communication will not be blocked by the security group.
Environment preparation
1. Create two cloud servers A and B with the same specifications in the same VPC.
Taking S-4C8G as an example, the maximum bandwidth is 2Gbps, the reference bandwidth is 0.35Gbps, and the maximum packet sending/receiving capacity is 25W.
2. After the two cloud servers A and B are created, go to the system and install the test tool iperf3.
Execute yum install - y iperf3 under the system.
Performance verification
Bandwidth
1. Server
Cloud server A runs as a server and starts 4 iperf3 server processes.
#!/bin/bash
for i in $(seq 0 3); do
iperf3 -s -p 520$i -A $i > /dev/null &
done
Run the script bash server.sh.
2. Client
Cloud server B runs as a client, starts 4 iperf3 client processes, and sends data packets to cloud server A.
#!/bin/bash
for i in $(seq 0 3); do
iperf3 -c $1 -t 300 -p 520$i -P 8 > /dev/null &
done
Run the script bash tcp.sh 10.0.0.3 (cloud server A IP).
3. Monitoring
Cloud server A runs sar -n DEV 1 to check the network bandwidth.
The inbound traffic bandwidth of cloud server A is about 250000kB/s, which is 2Gbps after conversion, exceeding the benchmark bandwidth by 0.35Gbps and conforming to the maximum bandwidth constraint of 2Gbps.
PPS
1. Server
Cloud server A runs as a server and starts 4 iperf3 server processes.
#!/bin/bash
for i in $(seq 0 3); do
iperf3 -s -p 520$i -A $i > /dev/null &
Done
Run the script bash server.sh.
2. Client
Cloud server B runs as a client, starts 4 iperf3 client processes, and sends data packets to cloud server A
#!/bin/bash
for i in $(seq 0 3); do
iperf3 -c $1 -u -b 2G -t 300 -p 520$i -P 8 -l 64 > /dev/null &
done
Run the script bash udp.sh 10.0.0.3 (cloud server A IP).
3. Monitoring
Cloud server A runs sar -n DEV 1 to check the PPS.
The packet receiving rate of cloud server A is 25W, which meets the constraint of PPS 25W.