
cd /d <path>
In this command, path is where you extracted iPerf on the target server in 2.
iperf3 -p <port> -s
In this command, port is the port the iperf server listens on. It is recommended that port 8900 be used for Windows and port 22 for Linux since the two ports are configured as data transmission ports. You can also use another port for testing, but ensure that the TCP or UDP port is allowed in security group rules configured for the target server.
For details about more parameters, run the iperf -h command.
Assuming that port 8900 is used for Windows, if Server listening on 8900 is displayed in the command output, the iPerf server is running.

cd /d <path>
In this command, path is where you extracted iPerf on the source server in 2.
iperf3 -c <target-IP-address> -p <port> -t <time>
In the preceding command, -c is used to run iPerf in client mode.
Wait for the iPerf client to connect to the iPerf server and the bandwidth test to complete, and then check the results.

iperf3 -c <target-IP-address> -p <port> -u -t <time>
-u is used to measure the UDP jitter, packet loss rate, and bandwidth.
Wait for the iPerf client is connected to the iPerf server and the test is complete, and check the result.

ping <target-IP-address>
target_IP is the IP address of the target server (iPerf server).
Ensure the ICMP packets are allowed to pass through by the security group rules of the VPC to which the target server belongs.
iperf3 -h