RE: QOS with nbar

From: Jared Scrivener (jscrivener@ipexpert.com)
Date: Wed Feb 18 2009 - 13:37:04 ARST


Policy maps are processed top down. In both answers you'll ignore the mime
type as you are applying the WEB policy first. Try changing it to this:

class-map match-any IMAGES
match protocol http mime "*.jpg"
match protocol http mime "*.jpeg"
match protocol http mime "*.gif"

class-map match-all WEB
match protocol http host "www.abc.com"

policy-map POLICY
class IMAGES
drop
class WEB
bandwidth 32000

int f0/0
service-policy input POLICY

Cheers,

Jared Scrivener CCIE3 #16983 (R&S, Security, SP), CISSP
Technical Instructor - IPexpert, Inc.
Telephone: +1.810.326.1444
Fax: +1.810.454.0130
Mailto: jscrivener@ipexpert.com

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Henry Ugwuadu
Sent: Wednesday, 18 February 2009 7:33 AM
To: olumayokun fowowe
Cc: Cisco certification
Subject: Re: QOS with nbar

Hello mayokun,

You can try this.

class-map match-any IMAGES
match protocol http mime "*.jpg"
match protocol http mime "*.jpeg"
match protocol http mime "*.gif"

class-map match-all WEB
match protocol http host "www.abc.com"

class-map match-all DROP
match class-map WEB
match class-map IMAGES

policy-map POLICY
class WEB
bandwidth 32000
class DROP
drop

int f0/0
ip nbar protocol-discovery
service-policy input POLICY

HTH,

Henro

On 18 Feb 2009, at 13:07, olumayokun fowowe wrote:

> Hello all,
>
> I ve got a scenario here, I want to allocate 32kbps for replies from a
> webserver for address with the url http:// www.abc.com . And I want my
> router to drop any image file of type jpeg, jpg and gif. Is the
> following
> config correct:
>
> class-map match-all WEB
> match protocol http url http://www.abc.com/*
>
> class-map mat-all IMAGES
> match protocol http url http://www.abc.com/*
> match protocol http url *.jpg|*.jpeg|*.gif
>
> policy-map POLICY
> class WEB
> police 32000
> class IMAGES
> drop
>
> int f0/0
> service-policy in POLICY
>
>
> What I'm really concerned about is the IMAGES class where I have a
> match-all. Will my solution still be correct?
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html

Blogs and organic groups at http://www.ccie.net



This archive was generated by hypermail 2.1.4 : Sun Mar 01 2009 - 09:44:11 ARST