Rate Limit and Traffic Shaping

Answered Question
Mar 22nd, 2012

I am looking for step-by-step configuration on how to enable rate-limit and traffic shaping on Cisco 6513 vlan interfaces.  I am not able to find this particular document on CCO.

I have this problem too.
0 votes
Correct Answer by Latchum Naidu about 3 years 5 months ago

Hi Abbas,

As long as you have a seperate Vlan's then it would be possible to allocate bandwidth under the vlan's

See the below two individual examples may help in your scenario.


STEP-1:

Apply rate-limit on each L3 vlan interface in your 2851
Example (for 1024kbits for vlan 2):

Router# conf t
Router(config)# int vlan 2
Router(config-if)#rate-limit input 1000000 187500 375000 conform-action transmit exceed-action drop
Router(config-if)#rate-limit output 1000000 187500 375000 conform-action transmit exceed-action drop


STEP-2:

Policy a specific VLAN number on VLAN interface.

class-map vlan5
match vlan 5
match class-map class-default

policy-map vlan5-limit
class vlan5
police 2000000 250000 exceed-action drop

int vlan5
service-policy input vlan5-limit


After you apply this configuration, the traffic with VLAN 5 coming from any will be policed at 2Mbps.
Hope this will help you.


Please rate the helpfull posts.
Regards,
Naidu.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Correct Answer
Latchum Naidu Thu, 03/22/2012 - 00:24

Hi Abbas,

As long as you have a seperate Vlan's then it would be possible to allocate bandwidth under the vlan's

See the below two individual examples may help in your scenario.


STEP-1:

Apply rate-limit on each L3 vlan interface in your 2851
Example (for 1024kbits for vlan 2):

Router# conf t
Router(config)# int vlan 2
Router(config-if)#rate-limit input 1000000 187500 375000 conform-action transmit exceed-action drop
Router(config-if)#rate-limit output 1000000 187500 375000 conform-action transmit exceed-action drop


STEP-2:

Policy a specific VLAN number on VLAN interface.

class-map vlan5
match vlan 5
match class-map class-default

policy-map vlan5-limit
class vlan5
police 2000000 250000 exceed-action drop

int vlan5
service-policy input vlan5-limit


After you apply this configuration, the traffic with VLAN 5 coming from any will be policed at 2Mbps.
Hope this will help you.


Please rate the helpfull posts.
Regards,
Naidu.

abbas.ali@nth.com Thu, 03/22/2012 - 00:30

Thanks Naidu!  Two questions,  The sample config you sent is related to 2851 Router.  Will it work with Internal LAN traffic by enabling on Cisco 6513 Switches. 

The rate-limit and policing will simply drop the packet if it exceeds the configured bandwidth.  Wouldn't traffic shaping be a better option where traffic will be buffered and prirotized instead of drop.  If traffic shaping will be a better option then can you post the sample config for traffic shaping on Cisco 6513 swtiches

Regards,

Actions

This Discussion