[PATCH 0/2] Enable the batman-adv Gateway selection

Tom Green koe_fue at gmx.de
So Sep 20 11:33:58 CEST 2015


Hi Tim,
Hallo Zusammen,

Wie wir gestern diskutiert haben, macht es für die B.A.T.M.A.N Gateway
Selection auf dem Gateway Sinn, nur die  freie Bandbreite an die Router
zu annoncieren,  und nicht die gesamte.

Ich hab ein einfaches Skript geschrieben, dass diesen Zweck erfüllen sollte.

Es liegt unter:
https://wiki.freifunk-franken.de/w/Freifunk-Gateway_aufsetzen#B.A.T.M.A.N_Gateway_Selection

Gruß
Torben



On 14.09.2015 22:42, Tim Niemeyer wrote:
> Hi Tom
>
> Am Montag, den 14.09.2015, 22:38 +0200 schrieb Tom Green:
>> Wechseln dann alle Clients das GW mit, oder nur die neuen?
> Nur die neuen. Aber bitte schau mal hier, da ist der Mechanismus prima
> erklärt:
> http://www.open-mesh.org/projects/batman-adv/wiki/Gateways
>
> Hier sind die verfügbaren Parameter dokumentiert:
> http://downloads.open-mesh.org/batman/manpages/batctl.8.html
>
> Um den Algorithmus dahinter zu sehen / zu verstehen, muss man leider in
> den Code gucken:
> http://git.open-mesh.org/batman-adv.git/blob/f5e3096f8f7e4135a651a2b0cb78ae1ba1dc805f:/gateway_client.c#l144
>
> Tim
>
>
>> Wenn es alle sind, stell mir das so vor, als ob dann ganze Herrscharen
>> das GW wechseln, auslasten, um dann als Schwarm ein oder zwei Minuten
>> über das nächste GW herzufallen (und dabei die externe IP zu wechseln,
>> was mitten im Youtube Video vielleicht nicht so gut kommt).
>>
>>
>> On 14.09.2015 21:58, Tim Niemeyer wrote:
>>> This Patchset enables the gateway selection and adds a cron to reset the
>>> selection every one minute. I didn't find a better way to tell batman to
>>> look for newer and better gateways.
>>>
>>> I tried different gateway selection classes, only class 1 allows us to
>>> take care of the selection via the announced bandwidth. Unfortunately the
>>> class 1 stick with the selection until the gateway disappears. Even if a
>>> much better gateway is announced the node will stay with that gateway. To encounter this behaviour, the cron disables the client mode for one second.
>>> This will tell batman to make a new evaluation.
>>>
>>> Attention: By applying this patches only Hoods with enabled gateway selection
>>> can serve DHCP to Client.
>>>
>>>
>>> Tim Niemeyer (2):
>>>   batman-adv: enabled client gateway mode
>>>   cron: disable every 1min the gw selection for 1s
>>>
>>>  bsp/default/root_file_system/etc/config/batman-adv | 4 ++--
>>>  bsp/default/root_file_system/etc/crontabs/root     | 1 +
>>>  2 files changed, 3 insertions(+), 2 deletions(-)
>>>




Mehr Informationen über die Mailingliste franken-dev