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 1.
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 an HA, all FortiGate HA cluster members will reboot at the same time.
It is recommended to schedule 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.
Solution 2. Upgrade to v7.4.8/v7.6.1 or above. The shaping option has been removed from the regular interface shaping. 'Policing' is automatically selected. It can be checked by using the command 'get system npu | grep default-qos-type' as shown below:
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.
Note: QTM was introduced from the NP7 model. NP6/NP6lite/NP6xlite uses the TPE module for traffic shaping/shaping profile/class-id.
Related article: |
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.