[Olsr-dev] [PATCH v2 1/1] smart gateway: add threshold configuration parameter

Teco Boot (spam-protected)
Mon Dec 12 13:48:09 CET 2011

Op 12 dec. 2011, om 13:07 heeft Ferry Huberts het volgende geschreven:

> On 12/12/2011 01:01 PM, Ferry Huberts wrote:
>> From: Ferry Huberts <(spam-protected)>
>> We can now keep choosing a better gateway by setting the
>> configuration setting "SmartGatewayThreshold" to a value
>> larger than zero.
>> The costs for a new smart gateway must be less than the
>> costs of the current smart gateway multiplied by
>> SmartGatewayThreshold (its default is 1.0) in order for
> default is 0.0
> However, we would like some sensible default here, something like
> 0.667 or 0.75.
> That way a better gateway will always be chosen when available.

With NatThreshold, default was 1.0 and values were 0.1 to 1.0.
Now with SmartGateway, we don't have the loop risk, so we can 
use a low default, to prefer keep using an in-use gateway.
0.0 is allowed, which disables switchover to a better gateway.

Dampening helps, e.g. switch only after a new candidate is selected 
twice in successive runs. Then, the current lazy selection could be 
disabled. Switching a few times during startup is not worse than
not using a tunnel. It may be somewhat better.

I support a default of 0.67 (stick to two decimals?).


> -- 
> Ferry Huberts
> -- 
> Olsr-dev mailing list
> (spam-protected)
> https://lists.olsr.org/mailman/listinfo/olsr-dev

More information about the Olsr-dev mailing list