Monday, December 7, 2020

HOWTO run iperf client from fortigates

 The fortios has a iperf server/client. The documentation does not clearing tell you how to setup a test session.


1st identify the iperf server you want to test to.

e.g 

Public Iperf3 servers  ( in my test I 'm using scottlinux.com )

iperf.scottlinux.com
5201TCP/UDP


Now you need to first use the diag traffictest show command to see what interface are defined and the protocol and tcp/udp-port number.

Now set your criteria using the interface that you are going to use;



You can run these test for a long time just keep in mind that you should do this during low bandwidth periods, use UDP if you want to avoid tcp-window size and buffering issues if the iperf server supports it.


this is a test using udp for connectivity;

brooklyn01 # diag traffictest proto 1
proto:  UDP

brooklyn01 # diag traffictest show
server-intf:    wan1
client-intf:    wan1
port:   5201
proto:  UDP

 
brooklyn01 # diag traffictest run -c 177.125.27.122
Connecting to host 177.125.27.122, port 5201
[  9] local 182.xx.xx.111. port 15859 connected to 177.125.27.122 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  9]   0.00-1.02   sec   120 KBytes   966 Kbits/sec  15
[  9]   1.02-2.02   sec   128 KBytes  1.05 Mbits/sec  16
[  9]   2.02-3.02   sec   128 KBytes  1.05 Mbits/sec  16
[  9]   3.02-4.02   sec   128 KBytes  1.05 Mbits/sec  16
[  9]   4.02-5.02   sec   128 KBytes  1.05 Mbits/sec  16
[  9]   5.02-6.02   sec   128 KBytes  1.05 Mbits/sec  16
[  9]   6.02-7.02   sec   128 KBytes  1.05 Mbits/sec  16
[  9]   7.02-8.02   sec   128 KBytes  1.05 Mbits/sec  16
[  9]   8.02-9.02   sec   128 KBytes  1.05 Mbits/sec  16
[  9]   9.02-10.02  sec   128 KBytes  1.05 Mbits/sec  16
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  9]   0.00-10.02  sec  1.24 MBytes  1.04 Mbits/sec  0.092 ms  1/159 (0.63%)
[  9] Sent 159 datagrams





Ken Felix 
NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o

        /  \



No comments:

Post a Comment