On Thursday, January 03, 2013 23:01:07 Jan Lühr wrote:
> > Ah! You failed to mention this part in your initial email.
> > 
> > The behavior is easily explained: batman-adv does not switch gateway
> > whenever a new gateway is found (even if it is a better gateway) unless
> > the selection class is on fast or late switching.
> 
> It is. - Sorry, forgot to mention:
> Freifunk-b0487acb2d58:~# batctl gw_mode
> client (selection class: 1)
> 
> => 1 -> fast connection consider the gateway's advertised  throughput as
> well as the link quality towards the gateway

You did mention you were using selection class 1. I was referring to your test 
in which you turn on/off your best gateway. As I explained in my previous 
mail: batman-adv does not switch the gateway once it has chosen a gateway 
unless you select fast or late switching as selection class. Selection class 1 
does not fall into this category which means a gateway reselection only 
happens if the currently selected gateway disappears.

Run the foloowing test: enable both gateways before setting the gateway client 
to selection class 1. The gateway announcing the higher bandwidth should be 
selected.

Cheers,
Marek

Reply via email to