Quality of Service (QoS) on Palo Alto Networks firewalls allows administrators to manage network bandwidth and prioritize critical applications during periods of congestion. By classifying traffic and assigning different levels of service (bandwidth guarantees, priority), QoS ensures that essential applications receive the necessary resources, while less critical traffic can be rate-limited or handled on a best-effort basis.
The primary goal is to improve the performance and reliability of key applications by controlling how bandwidth is allocated on egress interfaces .
Note: PAN-OS QoS is primarily applied on egress to control traffic *leaving* an interface. While QoS Policy rules can match ingress traffic, the actual queuing and bandwidth management occur on the egress interface.
PAN-OS QoS relies on several interconnected components working together:
class 1
to
class 8
). These represent distinct priority queues. Class 1 has the highest priority, and Class 8 has the lowest (best-effort).
Fundamental Order: You MUST configure QoS on the egress interface (defining total bandwidth and class bandwidths) *before* QoS Policy rules referencing that interface can effectively manage traffic.
QoS functionality is enabled and configured on a per-interface basis, typically the external-facing or congested egress interface.
Network > Network Profiles > QoS Profile
(confusingly named, this profile applies settings *to an interface*, distinct from the QoS Profile object used in policy). Alternatively, access directly via
Network > Interfaces > [Select Interface] > QoS
tab.
Once QoS is enabled on an interface, you allocate bandwidth to the 8 fixed classes:
Example: On a 100 Mbps interface, you might guarantee 20 Mbps for Class 2 (VoIP) and set its maximum to 30 Mbps. You might guarantee 5 Mbps for Class 6 (Bulk Transfers) and set its maximum to 50 Mbps.
PAN-OS uses 8 fixed priority queues (Classes 1-8). You cannot add or remove classes.
class 1
: Highest Priority
class 2
: High Priority
class 3
: Medium-High Priority
class 4
: Medium Priority (Often the default)
class 5
: Medium-Low Priority
class 6
: Low Priority
class 7
: Lower Priority
class 8
: Lowest Priority (Best Effort)
PAN-OS employs a Strict Priority Queuing mechanism for Classes 1 through 7. This means:
Implication: If higher-priority classes consistently consume all available bandwidth up to their maximums, lower-priority classes might experience packet loss or significant delays, even if they have guaranteed bandwidth configured (as the guarantee only applies during congestion when higher classes aren't demanding *all* the bandwidth).
A QoS Profile object is simple but essential. Its primary function is to link traffic identified by a QoS Policy rule to one of the 8 QoS classes.
Objects > QoS Profile
QoS-VoIP-Class2
,
QoS-Bulk-Class6
).
QoS Profiles can optionally be used to modify the Differentiated Services Code Point (DSCP) or Type of Service (ToS) value in the IP header of packets matching the associated QoS Policy rule.
EF
for Expedited Forwarding,
AFxx
for Assured Forwarding classes).
QoS Policy rules determine *which* traffic sessions receive specific QoS treatment.
Policies > QoS
Interaction with Security Policy: QoS Policy evaluation occurs *after* a session has been allowed by Security Policy. You only apply QoS to traffic that is permitted to pass through the firewall.
ethernet1/1
), defines its total
Egress Max
bandwidth, and allocates
Guaranteed
and
Maximum
bandwidth limits for each of the 8 QoS classes.
Profile-VoIP
maps to
Class 2
,
Profile-Web
maps to
Class 4
,
Profile-Bulk
maps to
Class 6
).
Profile-VoIP
.
Profile-Web
.
Profile-Bulk
.
Class 4
).
Profile-VoIP
) is applied, marking the packet internally for
Class 2
treatment.
ethernet1/1
), it's placed into the queue for
Class 2
.
It's crucial to understand the distinct roles of QoS Policy rules and QoS Profile objects, as they work together but serve different functions:
QoS Policy Rule (
Policies > QoS
):
QoS Profile Object (
Objects > QoS Profile
):
In summary: The QoS Policy rule asks "*Which* traffic gets QoS?", while the associated QoS Profile object answers "*What* class (and maybe DSCP marking) should that traffic receive?". You need both configured correctly, along with the interface QoS settings, for QoS to function.
Attribute | QoS Policy Rule | QoS Profile Object |
---|---|---|
Primary Goal | Identify/Match Traffic | Define QoS Treatment |
Location |
Policies > QoS
|
Objects > QoS Profile
|
Key Action | Apply a QoS Profile (or directly remark DSCP) | Assign QoS Class (1-8) |
Configuration Focus | Matching Criteria (Zones, IPs, Apps, Users, Services, DSCP) | QoS Class selection, Optional DSCP/ToS Remarking |
Dependency | Requires a QoS Profile (or direct remarking) to apply | Is applied *by* a QoS Policy rule or as an Interface Default |
Important Point of Clarity: The term "QoS Profile" can be confusing because it's used in two distinct contexts within the PAN-OS configuration. Understanding where each is applied is key:
Interface QoS Settings (Sometimes called Network QoS Profile):
Network > Interfaces > [Select Interface] > QoS
tab OR via
Network > Network Profiles > QoS Profile
(where you create a profile that is then *assigned* to one or more interfaces).
QoS Profile Object:
Objects > QoS Profile
Policies > QoS
)
. When a QoS policy rule matches traffic, it applies the settings defined in this QoS Profile object *to that matched traffic*, primarily telling the system which QoS Class that traffic belongs to.
In essence:
Both are needed for QoS to function: the interface needs its class bandwidths defined, and policies need to assign traffic to those classes using the QoS Profile objects.
Understanding QoS is important for the PCNSE exam. Key areas include:
1. Where is the total maximum egress bandwidth for an interface defined in PAN-OS QoS?
2. How many QoS classes are available in PAN-OS, and which has the highest priority?
3. What is the primary function of a QoS Profile object?
4. Which PAN-OS policy type determines if traffic is allowed or denied *before* QoS policy is evaluated?
5. What does the 'Guaranteed Egress' bandwidth setting for a QoS class on an interface ensure?
6. In the PAN-OS strict priority queuing model, when does QoS Class 3 receive bandwidth?
7. A QoS Policy rule matches traffic based on Application 'ms-rdp' and applies a QoS Profile named 'RDP-Class3'. What does this achieve?
8. What happens to traffic that does NOT match any specific QoS Policy rule?
9. Can a QoS Profile be used to change the DSCP value of IP packets?
10. What is the main prerequisite before any QoS Policy rule can effectively manage bandwidth for a specific class?