[Click] RED avg value

Eddie Kohler kohler at cs.ucla.edu
Tue Sep 19 10:30:43 EDT 2006


Hi John,

Well, this sounds like a huge bug.

You mean the RED element, yes?  How are you measuring the average queue size, 
with the avg_queue_size handler, or some other way?

I mean the thing is that avg is an unsigned value, so I don't see how it could 
possibly be negative.

RED calculates the average queue size using an algorithm derived from the RED 
paper.  It's an exponentially weighted moving average, pretty simple.  The 
relevant code is at red.cc:221-234 and include/click/ewma64.hh.

Eddie


John Stille wrote:
> I was wondering if someone could explain why I would be getting an avg value within RED of -1.94 give or take 1/100th or a point.  I am looking to force RED to drop packets in the user level, however the condition if avg>max_thresh is never evaluated as true because of the value.  Maybe some explaination of exactly how the avg is calculated and an understanding of why I might be getting these values.  I am throwing approximately 12 MB/sec at the router with a 2MB/sec outgoing linerate.  I am just looking for a little help.
> 
> Thank you,
> John C Stille
> 
>  		
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs.Try it free. 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list