March 20, 2014

Lab 36: CBFWQ

First, configure class maps to classify your traffic. Let's configure 3 class-maps for important traffic from a specific source (10.0.0.1), kazaa and ftp:

ip cef
access-list 100 permit ip host 10.0.0.1 any

class-map match-all IMPORTANT
match access-group 100
class-map match-all KAZAA
match protocol kazaa2
class-map match-all FTP
match protocol ftp


Then, configure the policy-may for CBFWQ:

policy-map PM-CBWFQ
class IMPORTANT
bandwidth percent 50
class KAZAA
bandwidth percent 15
class FTP
bandwidth percent 15

If you apply the policy-may under the interface, you get an error:

R1(config)#int eth 0/0
R1(config-if)#service-policy output PM-CBWFQ
I/f Ethernet0/0 class FTP requested bandwidth 15%, available only 10%

After changing FTP's percentage to 10, you can apply the service policy:

policy-map PM-CBWFQ
class FTP
bandwidth percent 10

You can also check the policy:

R1#sh policy-map interface ethernet 0/0
Ethernet0/0

Service-policy output: PM-CBWFQ

Class-map: IMPORTANT (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group 100
Queueing
Output Queue: Conversation 265
Bandwidth 50 (%)
Bandwidth 5000 (kbps)Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0

Class-map: KAZAA (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol kazaa2
Queueing
Output Queue: Conversation 266
Bandwidth 15 (%)
Bandwidth 1500 (kbps)Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0

Class-map: FTP (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol ftp
Queueing
Output Queue: Conversation 267
Bandwidth 10 (%)
Bandwidth 1000 (kbps)Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0

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

# DOWNLOAD LAB 36 GNS3 FILE