[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq 33] ALTQ/CBQ calculations
Hi all,
I recently started going thru the source code for ALTQ (and CBQ) and
came across the function cbq_class_spec (rsvp_cbq.c). I came across few
calculations in this function which I am not able to understand how they
are derived:
1. cptime = ptime * (1.0 - f) / f;
2. maxidle = ((1.0 / f - 1.0) * ((1.0 - gton) / gton));
3. offtime = cptime * (1.0 + 1.0/(1.0 - g) * (1.0 - gtom) / gtom);
I am sure there is some basis for these calculations.
Could you please help me understand these calculations?
Thanks,
Muthu