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
- Name the problems QoS solves: bandwidth, delay, jitter and loss, and the targets for voice.
- Explain classification and marking with CoS (802.1Q PCP) and DSCP (EF, AF, CS).
- Describe queuing: LLQ priority queue plus CBWFQ classes.
- Explain congestion avoidance (WRED) and compare policing with shaping.
- Explain trust boundaries.
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.
| DSCP | Value | Typical traffic |
|---|---|---|
| EF | 46 | Voice (RTP) |
| AF41 | 34 | Interactive video |
| CS3 / AF31 | 24 / 26 | Call signalling |
| AF21 | 18 | Business data |
| Default (BE) | 0 | Everything else |
| CS1 | 8 | Scavenger: 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
| Policing | Shaping | |
|---|---|---|
| Excess traffic | Dropped (or re-marked) | Buffered and sent later |
| Direction | In or out | Out |
| Effect | No delay, but loss | Delay, little loss |
| Typical use | An ISP enforcing a contract | A customer sending under the ISP's rate |
Commands
show policy-map interface Gi0/0 | Per class: matches, queue depth, drops and policer actions. |
show class-map | How each class is identified. |
show mls qos interface | On older switches: trust state of a port. |
Exam traps
- QoS does nothing without congestion; it does not create bandwidth.
- Voice is marked EF (DSCP 46) and goes in the LLQ priority queue.
- CoS lives in the 802.1Q tag and is lost at a router; DSCP lives in the IP header.
- Policing drops excess traffic; shaping delays it.
- WRED avoids TCP global synchronisation.
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
- 4.1 Configure and verify NAT for inside hosts using static mappings and address pools
- 4.2 Configure and verify NTP clients and servers
- 4.3 Explain what DHCP and DNS do for hosts
- 4.4 Explain how SNMP is used in network operations
- 4.5 Describe syslog, including facilities and severity levels
- 4.9 Describe what TFTP and FTP do on a network