[Click] About the Counter element
Eddie Kohler
kohler at cs.ucla.edu
Tue Aug 28 22:48:05 EDT 2007
Hi Roberto,
Actually, the smoothing factor for that RateEWMA is 1/16, as extrapolated from
the stability_shift of 4 (the first template parameter).
None of this was easy to figure out before, since none of it was documented.
But it is now.
http://www.read.cs.ucla.edu/click/doxygen/classDirectEWMAX.html
http://www.read.cs.ucla.edu/click/doxygen/classFixedEWMAXParameters.html
http://www.read.cs.ucla.edu/click/doxygen/classStabilityEWMAXParameters.html
http://www.read.cs.ucla.edu/click/doxygen/classRateEWMAX.html
http://www.read.cs.ucla.edu/click/doxygen/structRateEWMAXParameters.html
Note that this documentation applies ONLY to the current version of Click.
Eddie
Roberto Riggio wrote:
> Hi,
>
> from the click documentation i read that the counter element:
>
> "Returns the recent arrival rate, measured by exponential
> weighted moving average, in packets per second."
>
> However i do not understand how to set the smoothing factor.
> I gave a look at ewma.hh and i saw that you ewma class used in
> counter uses 1 as value for N so also the smoothing factor
> would be 1 in this case.
>
> So as far as I've understood i should use the EWMAX class in
> order to implement my own exponential average. Do you have
> any documentation about this class?
>
> Thanks
>
More information about the click
mailing list