Description | This article describes a solution to an issue where, after enabling traffic shaping on a FortiGate device (NP7 model), it becomes impossible to access the network. The resolution involves using a CLI command related to the npu system. |
Scope | FortiGate. |
Solution |
Problem: When enabling traffic shaping on a FortiGate device (NP7 model), network access is lost/slow/drop
Symptoms:
... FGT # diagnose npu np7 dce-drop-all
FGT # diag npu np7 dsw-ingress-stats 0 verbose
FGT # diag npu np7 getreg 0 qtm.qtm_dbg
Solution
config system npu set default-qos-type policing
Note: Running the above command will trigger a request for permission to apply changes. Choosing 'yes' for the changes to be applied triggers a reboot on the device. If the FortiGate is part of a HA, all FortiGate HA cluster members will reboot at the same time.
It is recommended to schedule a downtime to apply these changes. When modifying the default QoS type to policing, it leverages the TPE (Traffic Policy Engine) module. This means a restart of the FortiGate device is mandatory.
The 'set default-qos-type policing' command, when used within the FortiGate device's CLI, pertains to the way Quality of Service (QoS) is handled in the context of traffic management.
Command breakdown:
Below is a more detailed explanation of policing: Policing: Policing is a traffic management approach where traffic rates are monitored, and actions are taken on packets once they exceed the configured rate limits. The typical actions include:
Using policing effectively creates a 'hard ceiling' for traffic, ensuring that it does not exceed specified limits. However, one downside is that the immediate dropping of packets can lead to increased retransmissions and reduced application performance, depending on the nature of the traffic.
In the context of the FortiGate command provided (set default-qos-type policing), this would mean that the default behavior for handling QoS on the device would be to use the policing mechanism. It will be especially relevant when the device is set up for traffic shaping, as it dictates how exceeding traffic would be treated.
Notes: QTM was introduced from NP7 model, NP6/NP6lite/NP6xlite uses TPE module for traffic shaping/shaping profile/class-id. |