On 01/03/2013 09:39 PM, Marek Lindner wrote:
On Friday, January 04, 2013 08:06:17 NicoEchániz wrote:
Would mode 3 accomplish this fast switching? It doesn't mention if this mode will consider advertised throughput or not; only selection class 1 mentions throughput.
Selection class 3 and beyond do change the gateway when a better one becomes available. But as you correctly pointed out these selection classes don't consider the announced bandwidth for the simple reason that nobody cared. In most wireless scenarios (the main playground for batman-adv) the path towards the gateway turned out to be more critical than the gateway's pipe to the internet.
Feel free to propose something if you care about having this option. The necessary code shouldn't be too hard to add. Backward compatibility will be more difficult to achieve.
I believe that those of us who chose to use selection class 1 would prefer if it were "dynamic". So if a new gateway appears, then the client would evaluate with the same previous criteria if it is better or not (considering "the gateway's advertised throughput as well as the link quality") and switch accordingly. I see no reason why when someone chooses selection class 1 she would be expecting to choose the best available gw once and not ever check again.
If a network is stable, when a new better gw appears in some area it won't be selected until nodes are restarted, and that might be a long time.
In my town, where partial energy outages are frequent, I've had to manually switch off gw_mode and play around with this from time to time because clients would be stuck with the wrong gw after an energy shortage in the main gw.
One other change that might be interesting would be the addition of a setting for how much the advertised throughput affects gw selection. I've seen Jan uses 96/96Mbit as advertised throughput on one router; I do the same on our "main gateway", but maybe it would be better if we could actually advertise the real throughput and have a setting to control how much the bandwidth difference affects the selection.
By the way, I posted a patch to improve the man page explanation a couple of hours ago.
good, it reads better now :)
Cheers, NicoEchániz