Pcornel
Networking · Infrastructure

QoS Classification & Marking

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

Back to the Topic

Answer

QoS classification identifies traffic (by ACL, DSCP, NBAR application or interface) and marking writes a value (DSCP in IP, CoS in 802.1Q) so later hops can treat it without re-classifying. The trust boundary decides where markings from endpoints are accepted.

Remember

Classify and mark as close to the source as possible; trust IP phones (conditionally) and re-mark untrusted endpoints. Common values: EF (46) voice, AF41 (34) video, CS3 (24) signalling, 0 best effort. Mark once, trust along the path, act at congestion points.

First checks

  • show class-map — match criteria per class.
  • show policy-map interface <if> input — packets matched and set actions on ingress.
  • show running-config interface <if> | include trust|service-policy — trust and policies on the port.
  • Capture — DSCP value in the IP header along the path.

Commands

show mls qos
Shows whether QoS is enabled globally on older Catalyst switches that use MLS QoS (for example 2960, 3560, 3750).
show policy-map interface [interface]
Display QoS class counters, rates and drops.
show policy-map interface

Verify in this order

traffic enters at the edge → classified (ACL/NBAR/DSCP) → marked or trusted at the trust boundary → marking preserved hop by hop → used by queuing at congestion points

Where it usually breaks

packet selector → class match → marking → policy attachment → queue/policer/shaper → egress counters/drops → receiver behavior

QoS evidence boundaries

FunctionEvidence question
ClassificationDid the intended packets hit the intended class?
MarkingWere DSCP/CoS values set or trusted as intended?
PolicingDid conform/exceed/violate counters and actions match policy?
ShapingIs excess traffic buffered/delayed toward the target rate?
QueuingWhich queue/class experienced backlog or drops?

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=69

Confirmation

Confirm action

Continue?