Re: NBAR Classification Question

From: YourPal (dearprudence28@gmail.com)
Date: Wed Mar 19 2008 - 12:09:27 ART


Hi Joseph,

Checking out the second URL you provided, I notice a config example at the
bottom of the page.

It shows this:

Router(config)# class-map match-all http_transact
Router(config-cmap)# match protocol http url "/transact/*"
Router(config)# class-map match-all http_secure
Router(config-cmap)# match protocol secure-http
Router(config)# class-map match-any ecommerce
Router(config-cmap)# match class-map http_transact
Router(config-cmap)# match class-map http_secure

Is the nested class-map really necessary? Can't we do this way?:

!
class-map match-any ecommerce
 match protocol http url "/transact/*"
 match protocol secure-http
!

It also shows:

Router(config)# class-map match-any audio_video
Router(config-cmap)# match protocol http mime "audio/*"
Router(config-cmap)# match protocol http mime "video/*"
Router(config)# class-map match-any web_images
Router(config-cmap)# match protocol http url "*.gif"
Router(config-cmap)# match protocol http url "*.jpg|*.jpeg"
Router(config)# class-map match-any av_im_web
Router(config-cmap)# match class-map audio_video
Router(config-cmap)# match class-map web_images

Can we do it this way?:

!
class-map match-any av_im_web
 match protocol http mime "audio/*|video/*"
 match protocol http url "*.jpg|*.jpeg|*.gif"
!

Please advise.

Thank you.

BR,
Emil

On 3/16/08, Joseph Saad <joseph.samir.saad@gmail.com> wrote:
>
> How about a quick read through?
> NBAR is a classification technique under QoS.
>
>
> http://www.cisco.com/en/US/docs/ios/12_4/qos/configuration/guide/hdtnbara.html#wp1073317
> with the regular expressions documented in
>
> http://www.cisco.com/en/US/docs/ios/12_4/qos/configuration/guide/hdtnbara.html#wp1079748
>
> Cheers,
> Joseph.
>
> On Sun, Mar 16, 2008 at 11:48 AM, Mike Haddad <mike.haddad@hotmail.com>
> wrote:
>
> > Thanks Shine clear enough now!
> >
> > I appreciate it! :-)
> >
> > Regards,
> > > From: shinepjoseph@iprimus.com.au> To: mike.haddad@hotmail.com;
> > ccielab@groupstudy.com> Subject: RE: NBAR Classification Question> Date:
> > Sun,
> > 16 Mar 2008 18:35:59 +1100> > Any URL containing root.exe> > > > _____ >
> >
> > From: Mike Haddad [mailto:mike.haddad@hotmail.com] > Sent: Sunday, 16
> > March
> > 2008 6:34 PM> To: Shine Joseph; ccielab@groupstudy.com> Subject: RE:
> NBAR
> > Classification Question> > > > Hello Joseph,> > Then what about "*
> > root.exe*"?>
> > > Thanks,> > > > From: shinepjoseph@iprimus.com.au> > To:
> > mike.haddad@hotmail.com; ccielab@groupstudy.com> > Subject: RE: NBAR
> > Classification Question> > Date: Sun, 16 Mar 2008 18:05:57 +1100> > > >
> *
> > is
> > the wild card representation. That means if you specify *cisco.com*>
> any>
> > >
> > url containing cisco.com will be matched. You are telling the router to>
> >
> > match only cisco.com while specifying "cisco.com" as the match
> criteria.>
> > >
> > This won't match anything as there wouldn't be any such url. If you
> need>
> > to>
> > > match cisco.com, it would be better to use host option.> > > > HTH,> >
> > Shine> > > > > > -----Original Message-----> > From:
> nobody@groupstudy.com
> > [mailto:nobody@groupstudy.com] On Behalf Of> Mike> > Haddad> > Sent:
> > Sunday,
> > 16 March 2008 3:01 PM> > To: ccielab@groupstudy.com> > Subject: NBAR
> > Classification Question> > > > Hello,> > > > I am a bit lost between the
> > two>
> > > > > match protocol http host *cisco.com* --> Using *> > match protocol
> > http
> > host "cisco.com" --> Using ""> > > > Are they the same?> > > > Thanks,>
> >
> > > >
> > _________________________________________________________________> >
> Your
> > chance to win great prizes with Windows Live Mail and Rogers> >
> > MobileMail.> >
> > Click here to learn how.> > http://g.msn.ca/ca55/207> > > >
> > _______________________________________________________________________>
> >
> > Subscription information may be found at: > >
> > http://www.groupstudy.com/list/CCIELab.html> > > > > > > > _____ > >
> Your
> > chance to win great prizes with Windows Live Mail and Rogers>
> MobileMail.
> > Click here to learn how. <http://g.msn.ca/ca55/207> > >
> > _______________________________________________________________________>
> > Subscription information may be found at: >
> > http://www.groupstudy.com/list/CCIELab.html
> > _________________________________________________________________
> > Your chance to win great prizes with Windows Live Mail and Rogers
> > MobileMail.
> > Click here to learn how.
> > http://g.msn.ca/ca55/207
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Tue Apr 01 2008 - 07:53:54 ART