Solved

Cisco QOS - Policing

Posted on 2010-08-22
2
629 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Article by: user_n
How Sip Phone (User Agent) works and communicates with sip servers 1.  There is a sip server and a sip registrar.  The sip server and sip registrar can be one server or two different servers. The sip registrar is the server on which it is record…
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 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

20 Experts available now in Live!

Get 1:1 Help Now