Solved

Cisco QOS - Policing

Posted on 2010-08-22
2
633 Views
Last Modified: 2012-08-14
Hi All,

Need your help to understand what is the Token Bucket Concept? I dont understand what it really means by new tokens are added into the token bucket based on the interpacket arrival rate and the CIR. Every time a packet is policed, new tokens are added back into the token bucket.  

In the below case, is my TOken Bucket size 884000? Can you please help me to understand what really cause the exceed action to drop kick in?

police 884000 8000 conform-action set-dscp-transmit ef exceed-action drop
Thanks
Hari
0
Comment
Question by:kamalgopi
2 Comments
 
LVL 9

Accepted Solution

by:
Alex Bahar earned 500 total points
ID: 33499988
You're not alone. People often get confused with policing calculations.
Your bucket size is 8000 bytes. This means you are allowed to send 8000 bytes from your bucket within Tc period.
To simplify assume you receive packets every 5 msec (0.005 sec). You add tokens at the rate of (0.005 * 884000) = 4420 bits in 0.005 sec = 552 bytes. That means you are allowed to add 552 bytes to your bucket every 0.005 seconds.
Assume you started with your bucket full. You have 8000 bytes in it. 0.005 seconds later, you received 5000 bytes in a packet. This packet conforms because you have 8000 bytes in your bucket. So set-dscp-transmit is executed. 8000-5000=3000 bytes remain in your bucket. Referring previous calculation, you add 552 bytes to your token in 0.005 secs later. Your bucket has 3552 bytes in it. Now another packet arrives with 4000 bytes in it. This is more than the bytes in your bucket (3352). So you execute exceed action drop the packet. Referring previous calculation, you add 552 bytes to your token in 0.005 secs later. Your bucket now has 4114 bytes in it. Now another packet arrives with 4000 bytes in it.  This packet conforms because you have 4114 bytes in your bucket. So set-dscp-transmit is executed. 4114-4000=114 bytes remain in your bucket. Then there is a silence of 0.5 second period you did not receive any packets. This means 552*100=5520 bytes get added to your bucket.
I hope this helps.
0
 
LVL 11

Author Closing Comment

by:kamalgopi
ID: 33508093
Fantastic. Now i have some understanding on how it works. Now i need to go and look for what is the best figure for a Bucket for a 1M Link.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently purchased a Bluetooth headset called the Music Jogger (model BSH10). The control buttons on it look like this: One of my goals is to use it as the microphone and speakers for Skype calls. In that respect, it works well. However, I …
The Cisco RV042 router is a popular small network interfacing device that is often used as an internet gateway. Network administrators need to get at the management interface to make settings, change passwords, etc. This access is generally done usi…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now