6.2.a Implement and troubleshoot end-to-end QoS

modular qos cli… utilizing NBAR (can you say MPF, modular policy framework?)

define the class, the actions to be taken on the class (policy-map) and slap it on the interface (service-policy)…

example:

r2(config-cmap)#do sh run class-map
Building configuration…

Current configuration : 81 bytes
!
class-map match-all facebook
match protocol http url “*facebook.com*”
!
end

r2(config-cmap)#policy-map facebook
r2(config-pmap)#?
QoS policy-map configuration commands:
class        policy criteria
description  Policy-Map description
exit         Exit from QoS policy-map configuration mode
no           Negate or set default values of a command
rename       Rename this policy-map

r2(config-pmap)#class facebook
r2(config-pmap-c)#?
QoS policy-map class configuration commands:
bandwidth        Bandwidth
compression      Activate Compression
drop             Drop all packets
exit             Exit from QoS class action configuration mode
netflow-sampler  NetFlow action
no               Negate or set default values of a command
police           Police
priority         Strict Scheduling Priority for this Class
queue-limit      Queue Max Threshold for Tail Drop
random-detect    Enable Random Early Detection as drop policy
service-policy   Configure Flow Next
set              Set QoS values
shape            Traffic Shaping

r2(config-pmap-c)#set dscp 0

r2(config-pmap-c)#int f0/0
r2(config-if)#service-policy output ?
WORD  policy-map name

r2(config-if)#service-policy output facebook

r2(config)#do sh policy-map int
FastEthernet0/0

Service-policy output: facebook

Class-map: facebook (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol http url “*facebook.com*”
QoS Set
dscp default
Packets marked 0

Class-map: class-default (match-any)
51 packets, 4967 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any

r2(config)#do sh class-map
Class Map match-all facebook (id 1)
Match protocol http url “*facebook.com*”

Class Map match-any class-default (id 0)
Match any

r2(config)#do sh policy-map
Policy Map facebook
Class facebook
set dscp default