Modular QoS CLI (MQC)

Modular QoS CLI (MQC)

0. Access-List
1. Class-map _____
Match _____
2. Policy-map _____
Class _____
ACTION(Shaping/Policing/CB-LLQ/CB-WFQ) _____
3. int x/x
Service-policy input/output* ____

* only policing

Step 1: Classify Traffic -> CLASS-MAP
R1(config)#class-map match-any EMAIL
R1(config-cmap)#match protocol pop3
R1(config-cmap)#match protocol imap
R1(config-cmap)#match protocol smtp
R1(config)#class-map P2P
R1(config-cmap)#match protocol kazaa2
R1(config-cmap)#match protocol napster
R1(config)#class-map VOICE
R1(config-cmap)#match protocol rtp

Step 2: Assign Policies to the Traffic Classes -> POLICY-MAP
R1(config)#policy-map QoS_TRAFFIC
R1(config-pmap)#class EMAIL
R1(config-pmap-c)#bandwidth percent 30
R1(config-pmap)#class P2P

R1(config-pmap-c)#police 32000
R1(config-pmap)#class VOICE
R1(config-pmap-c)#priority 256 ! Priority Treatment for 256kpbs

Step 3: Apply the policy to an interface
R1(config)#interface serial 0/1
R1(config-if)#service-policy output QoS_TRAFFIC

Sh runn output
class-map match-all P2P
match protocol kazaa2
match protocol napster
class-map match-any EMAIL
match protocol pop3
match protocol imap
match protocol smtp
class-map match-all VOICE
match protocol rtp
policy-map QoS_Traffic
class EMAIL
bandwidth percent 30
class P2P
police 32000
class VOICE
priority 256
interface Serial0/0
ip address
serial restart-delay 0
clock rate 64000
service-policy output QoS_Traffic

Traffic Conditions
Policing—Limits traffic rates, the excess traffic is dropped
Shaping—Limits traffic rates, excess traffic is delayed


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s