[Olsr-users] Calculating LQ in 0.5.0 (Was: olsrd-0.5.0: LQ larger than 1.0)

Aaron Kaplan (spam-protected)
Fri Jun 1 12:54:27 CEST 2007


On Jun 1, 2007, at 11:19 AM, Joerg Pommnitz wrote:

> Hello all,
> can somebody explain the thinking behind the new formula for  
> calculating the link quality? In 0.4.10 it is
> calculated this way:
>
>   entry->loss_link_quality =
>     (float)(entry->total_packets - entry->lost_packets) /
>     (float)(entry->loss_window_size);
>
> while in 0.5.0 the formula changed to:
>
>   entry->loss_link_quality =
>     (float)(entry->total_packets - entry->lost_packets) /
>     (float)(entry->loss_window_size < (2 * 4) ? entry- 
> >loss_window_size:
>     4 * ((entry->loss_window_size / 4 - 1) * entry->total_packets +  
> entry->loss_window_size) / entry->loss_window_size);


IMHO this formula is bogus. I did some calculations on paper and I  
don't see any benefit.
Maybe sven-ola can explain more about it?
Otherwise I would vote to revert that one.

all the best,
a.




More information about the Olsr-users mailing list