6. Tests

6.1. Throughput Test

The performance of Wifi can be observed and tuned through throughput test. The most commonly used tool for throughput testing is iperf3. The test environment is as follows:

_images/im2.png

PC is connected with wireless AP by wired Ethernet, while CVITEK platform is connected with wireless AP through Wi-Fi. Suppose in this example, the IP address of PC is 192.168.0.11, and that of CVITEK platform is 192.168.0.112. Both PC and CVITEK platform have iperf3 tools.

6.1.1. Sending Throughput Test

Step 1. Enter iperf3 tool directory on PC and execute the following command:

iperf3 -s

Step 2. The platform executes shell commands as follows:

  • Test TCP protocol

    iperf3 -c 192.168.0.11 -t 10
    
  • Test UDP protocol

    iperf3 -c 192.168.0.11 -t 10 -u -b 100M -l 32k
    
_images/Tests002.png

The results can be obtained through iperf3 sending test, as shown in the figure above. The meaning of each parameter can be explained by executing “iperf3 -h”.

It can be seen from the above figure that the average throughput of 10 seconds is 7.98 Mbps.

6.1.2. Receiving Throughput Test

Step 1. Execute the shell instruction on the platform as follows:

iperf3 -s

Step 2. Enter iperf3 tool directory on PC and execute the following commands:

  • Test TCP protocol

iperf3 -c 192.168.0.112 -t 10
  • Test UDP protocol

iperf3 -c 192.168.0.112 -t 10 -u -b 100M -l 32k