While the primary goal of Quality of Service (QoS) is often to shape or prioritize traffic, the underlying classification mechanism can also be leveraged purely for monitoring bandwidth utilization. By classifying traffic into different QoS Classes based on criteria like application, user, or zone, you can track how much bandwidth each category consumes on an egress interface without necessarily applying strict bandwidth limits initially.
This approach provides valuable insights into network usage patterns, helping administrators:
The strategy relies on using the standard QoS components primarily for classification and tracking, rather than strict enforcement:
Even for monitoring, QoS must be enabled on the egress interface, and an `Interface Egress Max` bandwidth value must be set. This activates the QoS engine and its counters for that interface.
Navigate to
Network > Interfaces > [Select Egress Interface] > QoS
tab.
0
Mbps (or a very small value) for all classes.
Interface Egress Max
(or just ensure it's non-zero and high enough not to cause unintentional limiting) for all classes you intend to monitor.
Navigate to
Objects > QoS Profile
.
Monitor-Streaming-C6
-> Assign to Class 6.
Monitor-BusinessApps-C3
-> Assign to Class 3.
Monitor-BulkTransfer-C7
-> Assign to Class 7.
Monitor-GeneralWeb-C4
-> Assign to Class 4.
Navigate to
Policies > QoS
.
Monitor-BusinessApps-C3
.
Monitor-Streaming-C6
.
Monitor-BulkTransfer-C7
.
web-browsing
,
ssl
(potentially broader match below others).
Monitor-GeneralWeb-C4
.
Commit the configuration to activate QoS and the policy rules.
Use the following methods to view the per-class statistics:
show qos interface [interface_name]
(e.g.,
show qos interface ethernet1/1
)
packets_queued
packets_transmitted
packets_dropped
bytes_queued
bytes_transmitted
bytes_dropped
bytes_transmitted
counter for each class over time, you can determine the bandwidth consumed by the traffic categories you assigned to those classes.
admin@PA-VM> show qos interface ethernet1/1
QoS statistics for interface ethernet1/1
--------------------------------------------------------------------------------
Class Pkts queued Pkts xmitted Pkts dropped Bytes queued Bytes xmitted Bytes dropped Queue delay(ms) Throughput(kbps) Queue depth
--------------------------------------------------------------------------------
1 0 0 0 0 0 0 0 0 0
2 0 512345 0 0 61481400 0 0 1500 0 <-- Business Apps
3 0 0 0 0 0 0 0 0 0
4 0 10987654 0 0 13185184800 0 0 8500 0 <-- General Web / Default
5 0 0 0 0 0 0 0 0 0
6 0 2345678 0 0 2814813600 0 0 4500 0 <-- Streaming
7 0 123456 0 0 148147200 0 0 500 0 <-- Bulk Transfer
8 0 1000 0 0 120000 0 0 10 0
--------------------------------------------------------------------------------
PAN-QOS-MIB
provides SNMP objects to poll per-class statistics remotely using an SNMP management system.
For the PCNSE exam, understand:
show qos interface [name]
) used to view per-class statistics.
1. To use PAN-OS QoS for monitoring bandwidth per application, what is the first essential step on the egress interface?
2. Which PAN-OS component is used to map specific applications (identified by App-ID) to distinct QoS Classes for monitoring purposes?
3. What is the primary CLI command to view the bytes and packets transmitted per QoS class on a specific interface?
4. When configuring interface QoS settings purely for monitoring (not shaping), how should the 'Maximum Egress' bandwidth for each class ideally be set?
5. What is a primary benefit of using QoS for bandwidth monitoring?