Fortinet black logo

Administration Guide

CLI speed test

The speed test tool is compatible with iPerf3.6 with SSL support. It can test the upload bandwidth to the FortiGate Cloud speed test service. It can initiate the server connection and send download requests to the server. The tool can be run up to 10 times a day.

The FortiGate downloads the speed test server list. The list expires after 24 hours. One of the speed test servers is selected based on user input.

To configure the speed test settings:
config system speed-test-setting
    set latency-threshold <integer>
    set multiple-tcp-stream <integer>
end

latency-threshold <integer>

Set the speed test threshold for the auto mode, in milliseconds (0 - 2000, default = 60). If the latency exceeds this threshold, the speed test will use the UDP protocol; otherwise, it will use the TCP protocol.

multiple-tcp-stream <integer>

Set the number of parallel client streams for the TCP protocol to run during the speed test (1 - 64, default = 4).

To download the server list of speed tests:
  1. Download the server list from FortiCloud:

    # execute speed-test-server download
    Download completed.
  2. Verify the list:

    # execute speed-test-server list
    ...
    FTNT_CA_Toronto valid
            Host: 154.52.23.67 5200 fortinet
            ...
    FTNT_CA_Vancouver valid
            Host: 154.52.20.6 5200 fortinet
            ...
    FTNT_Global valid
            Host: 154.52.6.95 5203 fortinet
            ...
To run the speed test:

A speed test can be run with or without specifying a server. The system will automatically choose one server from the list and run the speed test. The test results are shown in the command terminal.

# execute speed-test <interface> <server> {Auto | TCP | UDP}
# diagnose netlink interface speed-test <interface> <server> {Auto | TCP | UDP}

See Speed test examples for a sample configurations.

The speed test tool is compatible with iPerf3.6 with SSL support. It can test the upload bandwidth to the FortiGate Cloud speed test service. It can initiate the server connection and send download requests to the server. The tool can be run up to 10 times a day.

The FortiGate downloads the speed test server list. The list expires after 24 hours. One of the speed test servers is selected based on user input.

To configure the speed test settings:
config system speed-test-setting
    set latency-threshold <integer>
    set multiple-tcp-stream <integer>
end

latency-threshold <integer>

Set the speed test threshold for the auto mode, in milliseconds (0 - 2000, default = 60). If the latency exceeds this threshold, the speed test will use the UDP protocol; otherwise, it will use the TCP protocol.

multiple-tcp-stream <integer>

Set the number of parallel client streams for the TCP protocol to run during the speed test (1 - 64, default = 4).

To download the server list of speed tests:
  1. Download the server list from FortiCloud:

    # execute speed-test-server download
    Download completed.
  2. Verify the list:

    # execute speed-test-server list
    ...
    FTNT_CA_Toronto valid
            Host: 154.52.23.67 5200 fortinet
            ...
    FTNT_CA_Vancouver valid
            Host: 154.52.20.6 5200 fortinet
            ...
    FTNT_Global valid
            Host: 154.52.6.95 5203 fortinet
            ...
To run the speed test:

A speed test can be run with or without specifying a server. The system will automatically choose one server from the list and run the speed test. The test results are shown in the command terminal.

# execute speed-test <interface> <server> {Auto | TCP | UDP}
# diagnose netlink interface speed-test <interface> <server> {Auto | TCP | UDP}

See Speed test examples for a sample configurations.