Re: [j-nsp] Finding interface queue length

From: Jesper Skriver (jesper@skriver.dk)
Date: Sat Jan 19 2002 - 11:18:41 EST


On Tue, Jan 15, 2002 at 11:38:51PM -0500, paolrossi@genie.it wrote:

> If I apply the following profile to an interface queue, how can I find
> out the absolute value of my thresholds in packets? How can I find
> the max queue length? HOw many msecs worth of traffic can be stored
> in a queue?
>
> drop-profiles {
> ARGENTO-DROP-HIGH {
> interpolate {
> fill-level [ 25 75 ];
> drop-probability [ 0 100 ];
> }
> }

      Z jcells
--------------------------- * 100 = A
          Y * 390 jcell/Mbps
X Mbps * ------------------
                100

A is the fill-level in %
X is the Interface speed in Mbps
Y is the allocated bandwidth to the queue in %
Z is the number of jcells currently in the queue

So what you want is:

    A * X * Y * 390
Z = ---------------
       10000

So if you have a 155 Mbps interface, the queue is allocated 20%
of the bandwith and you have a fill level of 25, it translates
into

25 * 155 * 20 * 390
------------------- = 3023 jcells = 193472 bytes
      10000

/Jesper

-- 
Jesper Skriver, jesper(at)skriver(dot)dk  -  CCIE #5456
Work:    Network manager   @ AS3292 (Tele Danmark DataNetworks)
Private: FreeBSD committer @ AS2109 (A much smaller network ;-)

One Unix to rule them all, One Resolver to find them, One IP to bring them all and in the zone to bind them.



This archive was generated by hypermail 2b29 : Mon Aug 05 2002 - 10:42:38 EDT