How to test network speed with iperf

Install iperf

sudo apt-get install iperf3

Testing network speed

Testing network speed with UDP

  • Run command on server

    iperf -s -u
    
  • Run command on client

    iperf -c -u
    
  • Testing network speed with TCP

    • Server side.
    iperf -s
    
    • Client side.
    iperf -c
    

Command for

-s  server
-c client + server IP
-u udp
-b bandwith(the max bandwidth
-t time,how long to send packet.
-i interval  output per seconds.