Pcornel
Networking · Network & Protocols › IP Services & Monitoring

QoS Classification, Marking & Queuing Reference

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

Back to the Topic

Answer

QoS works in three steps: classify traffic into classes, mark the class in the packet (DSCP in the IP header, CoS in the VLAN tag), and treat the classes differently at a congested interface — priority, guaranteed bandwidth, shaping, policing.

Remember

On Cisco: class-map selects traffic, policy-map says what to do, service-policy output attaches it. Voice is marked EF (46) and put in the priority queue. Queuing only acts on output and only under congestion. CoS is lost on access ports and routed hops; DSCP survives.

First checks

  • show policy-map interface <interface> — matches, offered rate and drops per class.
  • show class-map — what each class matches.
  • show policy-map <name> — the actions per class.
  • show interfaces <interface> | include rate|drops — the interface totals.

Commands

show policy-map interface

Verify in this order

class-map matches the traffic → marking set or trusted → policy-map assigns priority or bandwidth → service-policy attached outbound → congestion occurs → classes served according to the policy

Where it usually breaks

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

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

Confirmation

Confirm action

Continue?