QoS
Cheat sheet · https://pcornel.dk/topic.php?topic=667
Answer
QoS classifies traffic and applies per-hop behavior such as marking, queuing, policing, shaping or congestion avoidance.
Remember
- QoS gives important traffic priority when links are congested.
- It works by classifying, marking, queuing, policing and shaping.
- QoS does not create bandwidth; it only manages it.
First checks
show policy-map interface <if>— per-class matches, queue depth and drops.show class-map— how classes are matched (DSCP, ACL, NBAR).show policy-map <name>— actions per class (priority, bandwidth, police, shape).show interfaces <if> | include drops|rate— total output drops and load.show mls qos interface <if>/show platform hardware fed switch active qos queue stats interface <if>— switch queues (platform-specific).
Commands
show policy-map interface- Local state
Verify in this order
traffic classified at the edge → marked with DSCP → trusted along the path → queued by class on congested interfaces → priority for voice, bandwidth for business data, drops in best effort
Where it usually breaks
packet selector → class match → marking → policy attachment → queue/policer/shaper → egress counters/drops → receiver behavior
QoS · reference boundaries
| QoS function | Primary purpose |
|---|---|
| Classification | Identify traffic class |
| Marking | Carry class intent (for example DSCP/CoS) |
| Queuing | Decide service order under contention |
| Policing | Enforce rate by dropping/remarking excess |
| Shaping | Buffer/delay traffic toward a target rate |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=667