Some parameters in Police command

From: The Great Ryan (pv.ryan@gmail.com)
Date: Mon Oct 10 2005 - 15:28:18 GMT-3


Hi Group,

I read the document and understand that in police command that Bc is
the Token Bucket size in policer and CIR is the rate of filling Token
in Token Bucket

(Q1) CIR & Bc
=========================
i.e. police 128000 16000
It means that the Token Bucket depth is 16000byte and the filling rate
128000bps such that it take one second to fill up the bucket.

I want to know if it is meaningful that I set
"police 128000 20000" => larger bucket, or
"police 128000 10000" => smaller bucket ?

(Q2) CIR & PIR
=========================
If I set the following:
police cir 64000 pir 128000
 conform-action set-prec-transmit 5
 exceed-action set-prec-transmit 1

Since I haven't set the violate-action, it will drop all packets if
the rate is above 128kbps

If now I have 256kbps rate passing through the policer, will the
result be the following:
- first 64kbps marks as precedence 5 and transmit
- next 64kbps marks as precedence 1 and transmit
- last 128kbps drop

Am I right ?

(Q3) CIR, Bc and Be
=========================
If I set the following
police cir 128000 bc 16000 be 8000
In the situration that , at time T= 0ms, traffic flow such that Bc is
empty and the next packet (size = 1500byte) use Token in Be. After
sending this packet, the time is T1= 5ms. The Token gain in this
period= 128000*0.005/8 = 80byte. I want to know this token will be
put on Bc or Be ? If the next packet size is 100 byte, it will use Bc
or Be ?

Thanks a lot !
Sorry if I have any mistake/mis-understanding.

Ryan



This archive was generated by hypermail 2.1.4 : Sun Nov 06 2005 - 22:00:50 GMT-3