CCNA Study Guide Logo

Wednesday, August 11, 2010

Simple Cisco Switch Traffic Shaping

Why would we need to limit bandwidth on cisco switch ?
I never think why until my friend ask me how to do that couple of times (may 2 months ago). Here is a sample scenario and configuration on cisco switch to limit interface bandwidth.

Sample Scenario
As you can see on figure 1, we need to connect Customer LAN in building A to LAN building B. We need to limit their bandwidth to for example 256Kb because customer pay less $ in amonth. Ok, lets jump to configuration detail. We will skip in depth discussion of QoS and how it works (check Cisco QoS for detail).

We need globally enable QoS with the “mls qos” configuration command. This command will enable QoS on all ports with default settings. “mls qos” is the key, without it, our next steps will be use less.

SW(config)#mls qos

Define criteria to select traffic for policing, define a class-map to select traffic using defined criteria, define a service-policy using class, and applying a policer to the specified class.

SW(config)#class-map all_traffic
SW(config-cmap)#match ip dscp 0
SW(config-cmap)#exit
SW(config)#policy-map limit_256
SW(config-pmap)#class all_traffic
SW(config-pmap-c)#police 256000 32000 exceed-action drop
SW(config-pmap-c)#


Apply a service policy to a port

SW(config)#int fa0/13
SW(config-if)#service-policy output limit_256
SW(config-if)#service-policy input limit_256

OK, we are done !
We need to check whether what we have done already work properly or not.

SW#sh policy-map int fa0/13 | i rate
30 second offered rate 0 bps, drop rate 0 bps
30 second rate 0 bpsqm_police_inform_feature: CLASS_SHOW
30 second offered rate 0 bps, drop rate 0 bps
30 second rate 0 bpsqm_police_inform_feature: CLASS_SHOW
SW#

It’s normal that we don’t see any traffic count with above command on switch, but if we issue above command on router and no traffic counted, then be aware, maybe you missed something. Otherwise, the following command will show you some counter (if configuration work).

SW#sh mls qos int fa0/13 statistics
FastEthernet0/13
Ingress
dscp: incoming       no_change      classified      policed      dropped (in bytes)
Others: 208054281    192207476    15846805      0           4398
Egress
dscp: incoming       no_change      classified      policed      dropped (in bytes)
Others: 368212302        n/a                n/a                 0                4593

Finally, here is test result to speedtest…

Speed Test Result

Related Posts by Categories



46 comments:

Anonymous said...

thanks for the tip.. Could you post a link where to find good CCNA material?

Unknown said...

It was so nice article.I was really satisified by seeing this article and we are giving QA online training.The QA online Training is one of the best QA online training institute in worldwide.

Unknown said...

This was so nice article.I was really satisified by seeing this article The CCNA CCNP online Training is one of the best CCNA CCNP online training institute in worldwide.

Unknown said...

It was very nice article and it is very useful to
CCNA learners.We also provide CCNA online training

Technologypartner.in said...

Great Blog ,TechnologyPartner.in Provide Free online CCNA Tutorial,CCNA Syllabus and online CCNA practice test , improve Networking skills To Students & CCNA Expert.

Unknown said...


SAP by definition is also name of the ERP (Enterprise Resource Planing) software as well the name of the company. SAP system comprises of a number of fully integrated modules, which covers virtually every aspect of the business management.
Success factor training in chennai | sap training in chennai

prem said...

Thanks for sharing.
sap training in chennai | SAP Success factor training in chennai | SAP ABAP Training in chennai | Workday training in chennai

Unknown said...

Thanks for giving these study guide. Its relly useful and its the easy way to gain the knowledge SAP ABAP Training in chennai | SAP Success factor training in chennai | Workday training in chennai | Success factor training in chennai

Unknown said...

This post is really nice and informative. The explanation given is really comprehensive and informative..
SAS Training In Chennai

shiv said...

It is very useful information.Thanks for your sharing.
We also provide the abap training in our institute.It is concentrates on real time training.
abap-training in chennai

Anonymous said...
This comment has been removed by the author.
Anonymous said...

Thanks for your valuable post...We got lot of valuable information...these information are will be used for us..keep updating like this..sap training in chennai

shalu said...

In that Traffic Shaping is good and it is explained in clearly understandable way.We also provide the abap training in our institute.It is enough for anyone who wants the certified course in abap and also your dream jobs are fulfill here.
abap-training in chennai

Aashi siva said...

It's like you read my mind! You seem to know a lot about this, like you wrote the book in it or something. I think that you can do with some pics to drive the message home a little bit, but instead of that, this is fantastic blog. A great read. I will definitely be back.

Online Training in Chennai

prethikarajesh said...

This information is impressive..I am inspired with your post writing style & how continuously you describe this topic. After reading your post,thanks for taking the time to discuss this, I feelhappy about it and I love learning more about this topic
seo company in chennai

sindhu said...


Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..Keep update more information..

CRO Agency in Chennai

Keerthi said...


Usually I do not read post on blogs, but I would like to say that this write-up very forced me to try and do it! Your writing style has been surprised me. Thanks, very nice article.

Corporate Training in Chennai

Unknown said...

This blog explains the details of most popular technological details. This helps to learn about what are all the different method is there. And the working methods all of that are explained here. Informative blog.
Sharepoint Training in Chennai

Unknown said...

Syntax:
Catalyst Training Services
Nice Blog,This Blog Is About CCNA ,In This Blog Great Posting As Study Gudie To CCNA Course in cisco.

EmbLogic Research said...

This is an informational post share by you. Thanks for sharing it with us.

Linux Device Drivers Course

Shalini said...

Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your.
Digital Marketing Company in India
seo company in india

Unknown said...

Nicely explained and understandable post. Thank you for the post.

Best Dotnet Training in Bangalore
Best Oracle Training in Bangalore

ananya shri said...

Lot of peoples seeking to pass CCNA certification. But they dont get any material for it. If any good material available for it share it to all...
Workday training in chennai I can get some knowledge about networking from your site

Raghu said...

Just read your website. Good one. I liked it. Keep going. you are a best writer your site is very useful and informative thanks for sharing!
Herbal Shampoo
Dandruff Treatment
Antifungal Cream
Vitiligo Medicines

హాట్‌గర్ల్స్ said...

Best English Classes in Bangalore

RIA Institute of Technology said...

That was a very great and informative article.
Ethical Hacking Courses in bangalore

హాట్‌గర్ల్స్ said...

Best top 10 digital marketing companies Tirupati
Great Information, Thanks for sharing

హాట్‌గర్ల్స్ said...

Best igital marketing agencies in Anantapur

helpful information, thanks for writing and share this information

Unknown said...

I read your blog it has a useful information. Thanks for sharing this information...

Best Training Institute in chennai

ciitnoida said...

Thank you for your post, I look for such article along time, today i find it finally. this post give me lots of advise it is very useful for me.

Best Linux training in Noida
Linux Training Institute in Noida
Shell Scripting Training Institute in Noida

Unknown said...

Thanks for the informative article.This is one of the best resources I have found in quite some time.Nicely written and great info.I really cannot thank you enough for sharing.

Herbalife in Chennai
Subamwellness in Chennai
Weight Loss in Chennai
Weight Gain in Chennai


rohini said...

Nice tutorial. Thanks for sharing the valuable information. it’s really helpful. Who want to learn this blog most helpful. Keep sharing on updated tutorials…
Selenium Training in Chennai | Selenium Training in Bangalore | Selenium Training in Pune | Selenium online Training

w3webschool said...

You have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
Web Design Training

Unknown said...
This comment has been removed by the author.
హాట్‌గర్ల్స్ said...

very useful info, and please keep updating........
sobha dream gardens

chandana said...

Thank you for your post. This is excellent information.
DOT NET training in Marathahalli

dot net training institute in Marathahalli

dot net course in Marathahalli

best dot net training institute in Marathahalli

tejaswini said...






Nice information
Sobha Dream Gardens

شركة المثالي سوبر said...

شركة تسليك مجاري بالدمام


التخلص من رائحة الحمام بالخبر





شركة تنظيف منازل مكافحة حشرات عوازل 0550171619

Anonymous said...

It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command
Acer service centre in Chennai | acer mobile service center in chennai | Laptop display replacement in chennai | Laptop motherboard service in chennai | Laptop Water damage service in chennai | acer services in chennai | Laptop data recovery services in chennai | Laptop battery replacement in chennai

Tutorialspoint said...

Thank you for sharing the info. Great blog, we want to learn new things
"Tutorialspoint"
Free Online Tutorials and Courses
Free Online Video Tutorials
Free Online Education Book store
Java
Current Affairs
UPSC

rithiaanandh said...

I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
Sql server dba online training

TIC Academy said...

Wonderful blog for Hardware and Networking which I have seen and it's absolutely great stuff on Java Topics. Thanks for such a cool blog about Hardware and Networking topics. Very good explanation on Hardware and Networking concepts we do Hardware and Networking Training in Chennai.
Regards,
Hardware and Networking Training Institutes in Chennai | Best Hardware and Networking Training in Chennai

Realtime Experts said...

Thanks for sharing your post with us..
This is amazing and really inspiring!! goals.Oracle Applications Training in Bangalore

Rose said...
This comment has been removed by the author.
Rose said...

Thanks for sharing this information,share more posting..
UI UX Design Companies In Bangalore | UX Design Companies In Bangalore |Top UI UX Companies In Bangalore |UI UX Design and Development Company in Bangalore |UI Development companies bangalore

iteducationcentre said...

Nice article. That was wonderful to read.
CCNA classes in Pune

Post a Comment

 
© Copyright 2010. CCNA Study Guide. All rights reserved | CCNA Study Guide is proudly powered by Blogger.com | Template by o-om.com
Edited by CCNA Study Guide August 2010.