iPerf Notes

       iPerf Notes

       iperf is a network performance testing tool that can test maximum TCP and UDP bandwidth quality, with various parameters and UDP characteristics, can report bandwidth, delay jitter and packet loss. It can be used to test some network devices, such as routers.

       TCP:

               1. measure network bandwidth;

               2. Report the magnitude and observations of MSS/MTU values;

              3. Support for TCP window values ​​to be buffered through sockets;

              4. Multithreading is supported when P threads or win32 threads are available. The client and server support multiple connections at the same time.

      UDP:

              1. Clients can create UDP streams of specified bandwidth;

              2. measure packet loss;

              3. measurement delay;

              4. Support multicast;

              5. Multithreading is supported when P threads are available. The client and server support multiple connections at the same time ( windows is not supported).

 

      Test preparation:

                     1. PC, data cable, mobile phone;

                     2. Install the apk of iperf on the mobile phone;

                     3. Put the executable program ( .exe) of iperf in the adb directory on the PC side ;

                     4. Run after inputting corresponding commands at both ends;

                     5. After the operation is completed, the corresponding data is returned.

 

      iperf --help View the help information of iperf, which is displayed by the iperf command.

      Enter netstat in the terminal and press Enter to view the network port.

 

      Upstream throughput test

                               PC端:iperf  -s  -u  -i1  -p[port]

                              Device side: iperf -u -c [pc-ip] -t 60 -i 1 -b 120M -p [port]

      Downlink throughput test

                              Device side: iperf -s -u -i 1 -p[port]

                              PC端:iperf -u -c [pc-ip] -t 60 -i 1 -b 85M

 

                       Note: -s server;

                              -u for UDP test;

                              -p[port] port number;

                              -i 1 print the result every 1 second;

                              -c client;

                              -t 60 for 60 seconds;

                              -b 120M requires the device to input data at 120Mbps;

                              [pc-ip]: PC IP address.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325250072&siteId=291194637