Created on 01-29-2024 10:08 PM Edited on 08-13-2024 03:22 AM By Anthony_E
Description |
This article describes which technique can be used to prioritize traffic as stated in the example below:
|
Scope | Traffic Shaping, FortiOS, FortiGate, QoS. |
Solution |
Traffic Shaping Profile configuration includes creating Class IDs (Identifier that can be used to apply Traffic Shaping Policies) and assigning Guaranteed Bandwidth, Maximum Bandwidth, and Priority per Class ID.
The Class ID named CEO will identify Management Users' traffic, and the Class ID named Agent will identify Agent Users' Traffic.
Guaranteed Bandwidth: 99%. Priority: Top. Class ID AGENT Configurations:
The Traffic Shaping Policy will determine the traffic that is going to be tagged with a Class ID.
Traffic Shaping Policies work similarly to the Firewall Policies and the traffic is matched from top to bottom.
The primary goal in this scenario is to prioritize traffic based on Class ID. To achieve this, Traffic Shaping Policies are essential as they enable the assignment of a Class ID to specific traffic. Since there are two distinct Class IDs, the creation of two Traffic Shaping Policies is necessary, each dedicated to assigning a unique Class ID.
Following the setup of Traffic Shaping Policies and Traffic Shaping Profiles, the subsequent task involves configuring the WAN interface. It is essential to establish the Inbound Bandwidth and specify the Ingress Traffic Shaping Profile. Additionally, it is possible to configure the Egress Traffic Shaping Profile and set the Outbound Bandwidth, with the specifics contingent on the particular traffic flow.
config system interface edit "port1" <----- The WAN Interface. set inbandwidth 100000 <- Specify the bandwidth for the interface in kbps. The percentage configured on the Class ID will be calculated based on this value. set outbandwidth <- Specify the bandwidth for the interface in kbps. The percentage configured on the Class ID will be calculated based on this value. set ingress-shaping-profile TEST <- Name of the Shaping Profile created in the First Step. set egress-shaping-profile <- Name of the Shaping Profile created in the First Step.
With this configuration, traffic between Agent Users and Management Users will be prioritized. It is possible to verify this by downloading a file on an Agent Machine. It will utilize all available bandwidth. However, when a download is initiated on a Management User Machine, the download speed on the Agent Machine will decrease to 1%, while the Management User Machine will start utilizing all available bandwidth. Agent Machine would start using all the BW again after the Download on Management User Machine has ended or if it is canceled.
Note: If the shaping-profile mode needs to be changed from the default (policing) to queuing, this can only be done via the CLI, as in the example below:
config firewall shaping-profile edit "TEST" set type queuing <- Policing by default. next end
If the type = 'queuing' and the Fortigate devices contain either NP6lite or NP6xlite chips, then ASIC offloading must be disabled on the appropriate firewall policy/policies (example below), otherwise the shaping-profile has no effect. Since v6.4.4 policing mode is offloaded by default on NP6lite/NP6xlite devices. config firewall policy edit 1 set auto-asic-offload disable <- Enabled by default. next end |
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.