Scheduled interface speedtest
The SD-WAN Network Monitor service supports running a speed test based on a schedule. The test results are automatically updated in the interface measured-upstream-bandwidth
and measured-downstream-bandwidth
fields. These fields do not impact the interface inbound bandwidth, outbound bandwidth, estimated upstream bandwidth, or estimated downstream bandwidth settings.
An SD‑WAN Network Monitor license is required to use the speedtest. The License widget and the System > FortiGuard page show the license status.
When the scheduled speed tests run, it is possible to temporarily bypass the bandwidth limits set on the interface and configure custom maximum or minimum bandwidth limits. These configurations are optional.
config system speed-test-schedule edit <interface> set schedules <schedule> ... set update-inbandwidth enable {enable | disable} set update-outbandwidth enable {enable | disable} set update-inbandwidth-maximum <integer> set update-inbandwidth-minimum <integer> set update-outbandwidth-maximum <integer> set update-outbandwidth-minimum <integer> next end
update-inbandwidth enable {enable | disable} |
Enable/disable bypassing the interface's inbound bandwidth setting. |
update-outbandwidth enable {enable | disable} |
Enable/disable bypassing the interface's outbound bandwidth setting. |
update-inbandwidth-maximum <integer> |
Maximum downloading bandwidth to be used in a speed test, in Kbps (0 - 16776000). |
update-inbandwidth-minimum <integer> |
Minimum downloading bandwidth to be considered effective, in Kbps (0 - 16776000). |
update-outbandwidth-maximum <integer> |
Maximum uploading bandwidth to be used in a speed test, in Kbps (0 - 16776000). |
update-outbandwidth-minimum <integer> |
Minimum uploading bandwidth to be considered effective, in Kbps (0 - 16776000). |
In the following example, a speed test is scheduled on port1 at 10:00 AM, and another one at 14:00 PM.
To run a speed test based on a schedule:
- Configure the recurring schedules:
config firewall schedule recurring edit "10" set start 10:00 set end 12:00 set day monday tuesday wednesday thursday friday next edit "14" set start 14:00 set end 16:00 set day monday tuesday wednesday thursday friday next end
- Configure the speed test schedule:
config system speed-test-schedule edit "port1" set schedules "10" "14" set update-inbandwidth enable set update-outbandwidth enable set update-inbandwidth-maximum 60000 set update-inbandwidth-minimum 10000 set update-outbandwidth-maximum 50000 set update-outbandwidth-minimum 10000 next end
- View the speed test results:
config system interface edit port1 get | grep measure measured-upstream-bandwidth: 23691 measured-downstream-bandwidth: 48862 bandwidth-measure-time: Wed Jan 27 14:00:39 2021 next end