4.7 Explain QoS per-hop behavior: classification, marking, queuing, congestion handling, policing, shaping

CCNA 200-301 v1.1 · 4.0 IP Services

When a link is congested, something has to wait or be dropped. QoS decides what: it classifies traffic, marks it, gives each class its own queue, and polices or shapes rates. Voice and video need low delay, low jitter and little loss; bulk transfers can wait. For the CCNA you explain each per-hop behaviour and the markings that carry the decision across the network.

What you must know

Classification and marking

Classification identifies traffic (by ACL, port, application with NBAR, or an existing marking). Marking writes the class into the packet so later devices need not repeat the work: CoS is 3 bits in the 802.1Q tag (Layer 2); DSCP is 6 bits in the IP header (Layer 3) and survives routing.

DSCPValueTypical traffic
EF46Voice (RTP)
AF4134Interactive video
CS3 / AF3124 / 26Call signalling
AF2118Business data
Default (BE)0Everything else
CS18Scavenger: below best effort

Mark as close to the source as you can trust it. The trust boundary is where the network starts believing markings: usually the access switch port, trusting an IP phone but re-marking the PC behind it.

Queuing and congestion

Queues only matter when the outgoing interface is busy. CBWFQ gives each class a guaranteed share of bandwidth; LLQ adds a strict-priority queue for voice, served first but policed so it cannot starve the rest. Voice (1) is served before data (2). Voice targets: one-way delay under 150 ms, jitter under 30 ms, loss under 1%.

When a queue fills, tail drop discards everything arriving, which makes all TCP flows slow down together (global synchronisation). WRED drops a few packets early, preferring low-priority markings, so TCP flows back off gradually.

Policing and shaping

PolicingShaping
Excess trafficDropped (or re-marked)Buffered and sent later
DirectionIn or outOut
EffectNo delay, but lossDelay, little loss
Typical useAn ISP enforcing a contractA customer sending under the ISP's rate

Commands

show policy-map interface Gi0/0Per class: matches, queue depth, drops and policer actions.
show class-mapHow each class is identified.
show mls qos interfaceOn older switches: trust state of a port.

Exam traps

Check yourself

Which DSCP marking is used for voice?
EF, decimal 46.
What is the difference between policing and shaping?
Policing drops or re-marks traffic above the rate; shaping buffers it and sends it later.
Where is the trust boundary usually placed?
At the access switch port, trusting the IP phone's marking but not the PC's.

More topics in 4.0 IP Services