[Click] Changing Counter element to also measure bit rate

Eddie Kohler kohler at cs.ucla.edu
Wed Aug 29 02:46:19 EDT 2007


Hi Samuel;

Yes, something like _rate.update(p->length()) should suffice here!

Eddie


Samuel wrote:
> Hi,
> 
> thanks beyers! I had a look at your element and it looks promising,
> especially because it can be easily understood and expandable.
> Unfortunately it doesn't fit my purposes. I will check the rate every
> 200 ms or even in a shorter time and I think it would need a little
> more complexity. I would like to build sometime more in the line of
> the ewma.{cc, hh} although I tried to read the code and couldn't grasp
> it entirely. I wonder if it continues working if I would call it from
> the Counter element just doing
> _rate.update(p->length());
> It seems valid but it would be just "too easy" :), but as I said, I
> couldn't figure if it would work or not just inspecting the code. Does
> someone knows if it could (or won't) work this way? It seems just too
> easy to me. I will try it, though.
> 
> Cheers,
> Samu
> 
> On 6/16/07, Beyers Cronje <bcronje at gmail.com> wrote:
>> Hi Samuel,
>>
>> The attached simple BWCounter element works out bit rate over 5 second
>> intervals. It is not accumulative, so each interval rate is only calculated
>> for that interval. I'm sure there are much more advanced and accurate
>> methods to use but for my purposes this was sufficient.
>>
>> You might also want to have a look at <clickdir>/include/gaprate.hh
>>
>> Cheers
>>
>> Beyers
>>
>>
>> On 6/15/07, Samuel < samufuentes at gmail.com> wrote:
>>> Hi,
>>>
>>> I was interested in measuring the bit rate and not only the packet
>>> rate with the Counter element. I was thinking about programming it,
>>> but wanted to ask first in case it has been done, or it is not
>>> achievable. I imagine I am not the first one to think about it and
>>> perhaps someone has some views on how to get it or even some code. Has
>>> anyone any patches to do it? Is it perhaps doable with another element
>>> which I missed? Any useful ideas on program to do it, perhaps?
>>>
>>> Thanks in advance,
>>> Samu
>>> _______________________________________________
>>> click mailing list
>>> click at amsterdam.lcs.mit.edu
>>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>>>
>>
>>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click



More information about the click mailing list