1.4 Interpret QoS configurations
ENCOR 350-401 v1.2 · 1.0 Architecture
ENCOR asks you to read QoS configurations written with the Modular QoS CLI (MQC): class maps classify, policy maps act on each class, and service policies apply them to interfaces. You should be able to say what a given configuration does to voice, video and data when a link is congested.
What you must know
- Read class maps:
match-anyversusmatch-all, matching DSCP, ACLs and NBAR protocols. - Read policy maps:
priority(LLQ),bandwidth(CBWFQ),police,shape,set dscp,random-detect. - Explain where a policy is applied (input or output) and why queuing is output only.
- Explain hierarchical policies (shaping a parent, queuing a child) for sub-rate WAN links.
- Verify with
show policy-map interface.
Reading MQC
class-map match-any VOICE
match dscp ef
class-map match-any VIDEO
match dscp af41
class-map match-all SCAVENGER
match protocol bittorrent
!
policy-map WAN-EDGE
class VOICE
priority percent 20
class VIDEO
bandwidth percent 30
class SCAVENGER
police cir 1000000 conform-action transmit exceed-action drop
class class-default
fair-queue
random-detect dscp-based
!
policy-map SHAPE-50M
class class-default
shape average 50000000
service-policy WAN-EDGE
!
interface GigabitEthernet0/0/0
service-policy output SHAPE-50M| Line | Effect |
|---|---|
priority percent 20 | LLQ: voice is sent first, up to 20% (10 Mbps); above that it is policed during congestion |
bandwidth percent 30 | CBWFQ: video is guaranteed 30% when the link is congested and may use more when idle |
police … exceed-action drop | Scavenger traffic above 1 Mbps is dropped, congested or not |
fair-queue + random-detect dscp-based | Everything else shares fairly; WRED drops lower-priority DSCP values first as the queue fills |
shape average 50000000 with a child policy | Hierarchical QoS: the parent creates congestion at 50 Mbps so the child's queues work |
Voice reaches the priority queue (1); ordinary data takes class-default (2). Without the parent shaper the 1 Gbps port would never be congested, packets would queue in the provider's network instead, and the child policy would do nothing.
Commands
show policy-map interface Gi0/0/0 output | Per class: packets matched, rate, queue depth, drops and police actions. |
show class-map | Every class and what it matches. |
show policy-map | The policies as configured. |
Exam traps
match-anyneeds one match;match-allneeds every match.- Queuing (
priority,bandwidth) only works outbound; policing works in both directions. - LLQ is policed to its rate when the link is congested.
- On a sub-rate circuit, shape to the contracted rate or the queues never engage.
- Unmatched traffic goes to
class-default.
Check yourself
- What does
priority percent 20give voice? - Strict priority up to 20% of the bandwidth, policed to that rate during congestion.
- Why is the WAN-EDGE policy nested under a shaper?
- The port runs at 1 Gbps but the service at 50 Mbps; shaping creates congestion locally so the child queues decide what goes first.
- A class map says
match-allwith two lines. What must a packet match? - Both lines.