Re: hierarchical shaping versus shaping in conjunction to cbwfq

From: Petr Lapukhov (petrsoft@gmail.com)
Date: Sat Jun 03 2006 - 14:35:24 ART


As for subinterface example.

Let's imagine that we have FastEthernet with two vlans: 10 and 20

We want to limit sending rate to every VLAN up to 1Mbs, and provide
some traffic reservation at the same time. Say give RTP priority, and
guarantee HTTP 384Kb on every vlan.

We can not directly put CBWFQ at subinterface - subinterface is never
congested, hence queueing in never activated. So we need to come
with a little bit more complicated idea.

First, we create CBWFQ strategy:

class-map VOICE
  match protocol rtp

class-map HTTP
  match protocol http

policy-map CBWFQ
class VOICE
  priority 128
class HTTP
  bandwith 384

Now, we should shape ALL the subinterface traffic to 1Mbs:

policy-map VLAN10_SHAPE
class class-default
  shape average 1000000
  service-policy CBWFQ

interface fastethernet 0/0.10
  encapsulation dot1q 10
  ip address 10.10.10.1 255.255.255.0
  service-policy output VLAN10_SHAPE

So now we shape all VLAN10 traffic to 1Mbs, yet give some traffic
priority treatment.

HTH
Petr



This archive was generated by hypermail 2.1.4 : Sat Jul 01 2006 - 07:57:31 ART