All of lore.kernel.org
 help / color / mirror / Atom feed
* Does batman choose DHCP server by random?
@ 2020-09-17 20:23 MK
  2020-09-18  6:06 ` Sven Eckelmann
  0 siblings, 1 reply; 8+ messages in thread
From: MK @ 2020-09-17 20:23 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hi meshing list.

We are running a batman 2020.2 based mesh network.

Clients connect to one gateway but pull IPv4 addresses from _another_
gateway. This leads to packets flowing between gateways instead of
leaving the mesh on the shortest route possible.

Is this intended behaviour? Is it random? Is there a config option to
alter this packet flow?

gw_mode is set to "server" on all gateways, bandwith announcement is the
same on all gateways (10/10 MBit). So no imbalance here.

Regards,
Martin

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Does batman choose DHCP server by random?
  2020-09-17 20:23 Does batman choose DHCP server by random? MK
@ 2020-09-18  6:06 ` Sven Eckelmann
  2020-09-29 20:04   ` MK
  0 siblings, 1 reply; 8+ messages in thread
From: Sven Eckelmann @ 2020-09-18  6:06 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: MK

[-- Attachment #1: Type: text/plain, Size: 433 bytes --]

On Thursday, 17 September 2020 22:23:24 CEST MK wrote:
> Clients connect to one gateway but pull IPv4 addresses from _another_
> gateway. This leads to packets flowing between gateways instead of
> leaving the mesh on the shortest route possible.
> 
> Is this intended behaviour? Is it random? Is there a config option to
> alter this packet flow?

See https://www.open-mesh.org/projects/batman-adv/wiki/Gateways

Kind regards,
	Sven

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Does batman choose DHCP server by random?
  2020-09-18  6:06 ` Sven Eckelmann
@ 2020-09-29 20:04   ` MK
  2020-09-29 20:08     ` Marek Lindner
  2020-09-29 20:22     ` Sven Eckelmann
  0 siblings, 2 replies; 8+ messages in thread
From: MK @ 2020-09-29 20:04 UTC (permalink / raw)
  To: b.a.t.m.a.n


[-- Attachment #1.1: Type: text/plain, Size: 990 bytes --]

Hi Sven.

> See https://www.open-mesh.org/projects/batman-adv/wiki/Gateways

We did set up all batctl values according to the manual, but still get
IPs/Leases from other gateway's ranges and therefore cross-traffic...

Any hint on what we did wrong?

Server:
$ batctl gwl
[B.A.T.M.A.N. adv 2020.2, MainIF/MAC: fastd_mesh/ (bat0/ BATMAN_V)]
  Router            ( throughput) Next Hop          [outgoingIf]  Bandwidth
   (        7.7)  [fastd_mesh]: 10.0/10.0 MBit
   (        7.7)  [fastd_mesh]: 10.0/10.0 MBit
   (       10.0)  [fastd_mesh]: 10.0/10.0 MBit
   (        8.8)  [fastd_mesh]: 10.0/10.0 MBit
   (        7.7)  [fastd_mesh]: 10.0/10.0 MBit
   (        8.8)  [fastd_mesh]: 10.0/10.0 MBit

$ batctl gw_mode
server (announced bw: 10.0/10.0 MBit)

$ batctl -v
batctl 2020.2 [batman-adv: 2020.2]

Client:
https://github.com/ffulm/firmware/blob/ec1d061e20557662dd8c7fc75dc603fee9bf77e0/files/etc/uci-defaults/50_freifunk-setup#L207

Regards,
 Martin



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Does batman choose DHCP server by random?
  2020-09-29 20:04   ` MK
@ 2020-09-29 20:08     ` Marek Lindner
  2020-09-29 20:22     ` Sven Eckelmann
  1 sibling, 0 replies; 8+ messages in thread
From: Marek Lindner @ 2020-09-29 20:08 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

[-- Attachment #1: Type: text/plain, Size: 401 bytes --]

On Tuesday, 29 September 2020 22:04:58 CEST MK wrote:
> > See https://www.open-mesh.org/projects/batman-adv/wiki/Gateways
> 
> We did set up all batctl values according to the manual, but still get
> IPs/Leases from other gateway's ranges and therefore cross-traffic...

Have you also taken care of the gateway client settings ? If so, feel free to 
share your config.

Kind regards,
Marek Lindner




[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Does batman choose DHCP server by random?
  2020-09-29 20:04   ` MK
  2020-09-29 20:08     ` Marek Lindner
@ 2020-09-29 20:22     ` Sven Eckelmann
  2020-10-02  8:29       ` MK
  1 sibling, 1 reply; 8+ messages in thread
From: Sven Eckelmann @ 2020-09-29 20:22 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: MK

[-- Attachment #1: Type: text/plain, Size: 399 bytes --]

On Tuesday, 29 September 2020 22:04:58 CEST MK wrote:
[...]
> Client:
> https://github.com/ffulm/firmware/blob/ec1d061e20557662dd8c7fc75dc603fee9bf77e0/files/etc/uci-defaults/50_freifunk-setup#L207

I think you forgot to paste the information here. It is not really relevant 
what the server sees when the gw client has to decide where the IPv4 DHCP 
Broadcast packet has to go.

Kind regards,
	Sven

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Does batman choose DHCP server by random?
  2020-09-29 20:22     ` Sven Eckelmann
@ 2020-10-02  8:29       ` MK
  2020-10-02  9:25         ` Sven Eckelmann
  0 siblings, 1 reply; 8+ messages in thread
From: MK @ 2020-10-02  8:29 UTC (permalink / raw)
  To: b.a.t.m.a.n


[-- Attachment #1.1: Type: text/plain, Size: 727 bytes --]

Hi Sven & Marek!

Thanks for your help. Find the client side config down below:

$ batctl -v
batctl openwrt-2019.2-3 [batman-adv: openwrt-2019.2-4]

$ batctl gwl
[B.A.T.M.A.N. adv openwrt-2019.2-4, MainIF/MAC: fastd_mesh/ (bat0/
BATMAN_V)]
  Router            ( throughput) Next Hop          [outgoingIf]  Bandwidth
   (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
   (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
   (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
   (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
   (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
*  (        1.0)  [fastd_mesh]: 10.0/10.0 MBit

 Star means choosen gateway?

$ batctl gw_mode
client (selection class: 5.0 MBit)


Regards,
Martin


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Does batman choose DHCP server by random?
  2020-10-02  8:29       ` MK
@ 2020-10-02  9:25         ` Sven Eckelmann
  2020-10-02  9:40           ` MK
  0 siblings, 1 reply; 8+ messages in thread
From: Sven Eckelmann @ 2020-10-02  9:25 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: MK

[-- Attachment #1: Type: text/plain, Size: 1328 bytes --]

On Friday, 2 October 2020 10:29:16 CEST MK wrote:
[...]
> $ batctl gwl
> [B.A.T.M.A.N. adv openwrt-2019.2-4, MainIF/MAC: fastd_mesh/ (bat0/
> BATMAN_V)]
>   Router            ( throughput) Next Hop          [outgoingIf]  Bandwidth
>    (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
>    (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
>    (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
>    (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
>    (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
> *  (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
> 
>  Star means choosen gateway?

Yes, this is the chosen gateway. And the "1.0" here means most likely that the 
throughput to this gateway is for some reason always the same - so it has no 
good way to figure out the best gateway.

Please make sure that you either only use links that provide an expected 
throughput for its peers - OR use the throughput_override [1] on interfaces
which cannot provide an automated expected throughput for its peers. Also
make sure that you don't forget this setting on one side of the connection.


And can you please explain how you were able to get this output without the 
router mac address? Because this is a bug and I cannot reproduce it at the 
moment.

Kind regards,
	Sven

[1] https://www.open-mesh.org/projects/batman-adv/wiki/Tweaking#throughput_override

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Does batman choose DHCP server by random?
  2020-10-02  9:25         ` Sven Eckelmann
@ 2020-10-02  9:40           ` MK
  0 siblings, 0 replies; 8+ messages in thread
From: MK @ 2020-10-02  9:40 UTC (permalink / raw)
  To: Sven Eckelmann, b.a.t.m.a.n

Hi Sven.

Thanks for the hints!
I deleted MACs manually. So this is not a bug ;)

Regards
Martin

02.10.2020 11:25:43 Sven Eckelmann <sven@narfation.org>:

> On Friday, 2 October 2020 10:29:16 CEST MK wrote:
> [...]
>> $ batctl gwl
>> [B.A.T.M.A.N. adv openwrt-2019.2-4, MainIF/MAC: fastd_mesh/ (bat0/
>> BATMAN_V)]
>> Router            ( throughput) Next Hop          [outgoingIf]  Bandwidth
>> (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
>> (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
>> (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
>> (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
>> (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
>> *  (        1.0)  [fastd_mesh]: 10.0/10.0 MBit
>> 
>> Star means choosen gateway?
> 
> Yes, this is the chosen gateway. And the "1.0" here means most likely that the
> throughput to this gateway is for some reason always the same - so it has no
> good way to figure out the best gateway.
> 
> Please make sure that you either only use links that provide an expected
> throughput for its peers - OR use the throughput_override [1] on interfaces
> which cannot provide an automated expected throughput for its peers. Also
> make sure that you don't forget this setting on one side of the connection.
> 
> And can you please explain how you were able to get this output without the
> router mac address? Because this is a bug and I cannot reproduce it at the
> moment.
> 
> Kind regards,
> Sven
> 
> [1] https://www.open-mesh.org/projects/batman-adv/wiki/Tweaking#throughput_override
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-10-02  9:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-17 20:23 Does batman choose DHCP server by random? MK
2020-09-18  6:06 ` Sven Eckelmann
2020-09-29 20:04   ` MK
2020-09-29 20:08     ` Marek Lindner
2020-09-29 20:22     ` Sven Eckelmann
2020-10-02  8:29       ` MK
2020-10-02  9:25         ` Sven Eckelmann
2020-10-02  9:40           ` MK

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.