Description | This article describes different ways of testing speeds after applying traffic shapers. |
Scope | FortiGate. |
Solution |
It is a common practice to test the speed of traffic shaping after they are applied to a Traffic shaping policy. The most common way of doing it is using free tools such as Speedtest.
Considering the complex nature of the network environment, using just a single machine to test speed is not recommended. It is always better to test them with multiple machines in the network. Also, the values in these speed tests are not 100% accurate, and most of them are close to the traffic shaper profile. This is acceptable considering the previously mentioned reason.
When troubleshooting traffic shaper-related speed values, it is always advisable to test in multiple ways to verify the speeds. The interface bandwidth widget in FortiGate GUI is also a good way to get a better idea of the speeds that are achieved. IPerf is one good way of testing speeds. iPerf can be set up using this KB article: Troubleshooting Tip: iPerf speed test on a FortiGate.
IPerf can be used to test the speeds for UDP and TCP separately, which helps to isolate issues.
Below are different commands used to test speed:
To test with UDP traffic.:
iperf3 -c 10.3.2.34 -u -t 30 -i 3 -b 20M
To test with TCP with different window sizes:
iperf3 -c 10.3.2.34 -R -t 30 -i 3 -w 256k
It is also important to observe the server speed to get a better idea.
In traffic shaping, it is necessary to consider the following:
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.