RE: Calculating number of bytes to assign to a queue

From: Jon Carmichael (jonc@xxxxxxxxxxx)
Date: Sun Mar 03 2002 - 23:30:28 GMT-3


   
Yes, you should memorize a four step process.

Step One:

For each queue, divide the percentage of bandwidth by the packet size, in
bytes.

The example on the CD is exactly the same as Page 95 of Vegesna,

Protocol A has 1068 bytes, protocol B is 291 bytes and protocol C is 831
bytes. You want to get as close to 20/60/20 percent for each protocol.

So first, take

20/1086 = .01842
60/291 = .20619
20/831 = .02407

Step Two:

Normalize the numbers by dividing all of them by the lowest number

Protocol A is .01842/.01842 = 1
Protocol B is .20619/.01842 = 11.2
Protocol C is .02407/.01842 = 1.3

Step Three:

Because a fraction of a packet can't be processed, round all the above
numbers up to the next whole number.

Protocol A is still = 1
Protocol B is now 12
Protocol C is now 2

Step Four:

Multiply those numbers by the number of bytes in each protocol, and that's
what you put on the custom-queue-list byte-size configuration.

Protocol A is (1086 * 1) = 1086
Protocol B is (291 * 12) = 3492
Protocol C is (831 * 2) = 1662

And that's the answer you're looking for. There are steps that follow,
where you figure out how close you came to the actual percentages, but I
won't cover those here as they are not relevant to finding the right answer.

JONC

Take the byte's per protocol and divide by

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
Babacar Diop
Sent: Sunday, March 03, 2002 3:32 PM
To: cciegroup
Subject: Calculating number of bytes to assign to a queue

How do you calculate the number of bytes to assign to
a custom queue? Is there a formula that works for
every scenario.



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:56:52 GMT-3