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

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
LineEffect
priority percent 20LLQ: voice is sent first, up to 20% (10 Mbps); above that it is policed during congestion
bandwidth percent 30CBWFQ: video is guaranteed 30% when the link is congested and may use more when idle
police … exceed-action dropScavenger traffic above 1 Mbps is dropped, congested or not
fair-queue + random-detect dscp-basedEverything else shares fairly; WRED drops lower-priority DSCP values first as the queue fills
shape average 50000000 with a child policyHierarchical 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 outputPer class: packets matched, rate, queue depth, drops and police actions.
show class-mapEvery class and what it matches.
show policy-mapThe policies as configured.

Exam traps

Check yourself

What does priority percent 20 give 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-all with two lines. What must a packet match?
Both lines.

More topics in 1.0 Architecture