Pcornel
Networking · IP Services

QoS

Cheat sheet · https://pcornel.dk/topic.php?topic=667

Back to the Topic

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 functionPrimary purpose
ClassificationIdentify traffic class
MarkingCarry class intent (for example DSCP/CoS)
QueuingDecide service order under contention
PolicingEnforce rate by dropping/remarking excess
ShapingBuffer/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

Confirmation

Confirm action

Continue?