Skip to contentSkip to conversation

Multiple DHCP Gateways

B.A.T.M.A.N. [email protected] 4 participants 4 messages Aug 10, 2011 – Aug 14, 2011

lore
Share & tools
lore
#0 lore raw

Hi

I´m testing the Gateway roaming capabilities of Batman-adv (using 2011.1.0 version). I setted two computers as Gateway servers with DHCP servers running on them and other as Gateway client, configured as class 3. Then i stressed individually the Gateway server´s links to make the client choose the not stressed one. I confirmed that when te client sends a layer 3 broadcast DHCP request, Batman redirects that request only to the best gateway. However, when the original gateway becomes worse than the alternative, and the client chooses the new one as preferred (observed with batctl gwl) i noticed that the subsequent request DHCP messages are sent to the original server, even if it doesn´t have the best link.

I guess that´s because these subsequent DHCP requests are made as Unicast to the original server and so Batman doesn´t redirect them, but i wonder how this behavior affects the network balance, because the computers would get tied always to the original DHCP and IP default gateway even if they moved, right?

Thank you very much

#1 lore raw

Hello and thank you for sharing your gw experience with us,

Quoted 1 line · On Wed, Aug 10, 2011 at 02:52:06PM -0300, [email protected] wrote:

Hi

[CUT]

Quoted 8 lines

However, when the original gateway becomes
worse than the alternative, and the client chooses the new one as preferred (observed with batctl gwl) i noticed that the subsequent request DHCP messages are sent to the original server, even if it doesn´t have the best link.

I guess that´s because these subsequent DHCP requests are made as Unicast to the original server and so Batman doesn´t redirect them,

Unicast renewal requests are "dropped" only if the TQ towards the destination is smaller than the "current_GW_TQ - GW_THRESHOLD" (GW_THRESHOLD = 50). To clarify:

In your topology you have three nodes: A, B and C. A and C are GWs. A is the current best GW for B and B got an IP from the DHCP server running on A. Then the link A <--> B becomes worse than B <--> C. At this point Batman-adv will drop a DHCP unicast renewal request directed to A

if and only if TQ(C) - TQ(A) > 50

Is this condition verified in your topology when your are observing the renewal DHCP packets?

I hope I've been clear. :-)

Quoted 4 lines

but
i wonder how this behavior affects the network balance, because the computers would get tied always to the original DHCP and IP default gateway even if they moved, right?

As above. Clients will keep the same GW as long as the link is still "usable" (difference on TQs greater than 50)

Quoted 2 lines

Thank you very much

Thank you too,
Antonio

#2 lore raw
Quoted 6 lines · On Friday, August 12, 2011 18:02:20 Antonio Quartulli wrote:

In your topology you have three nodes: A, B and C. A and C are GWs. A is the current best GW for B and B got an IP from the DHCP server running on A. Then the link A <--> B becomes worse than B <--> C. At this point Batman-adv will drop a DHCP unicast renewal request directed to A

if and only if TQ(C) - TQ(A) > 50

Be aware that only happens if you use the git repository. The "DHCP request drop" feature was not released yet.

What version are you using ?

Cheers,
Marek

#3 lore raw
In reply to [email protected]

Hi,

Quoted 3 lines

I´m testing the Gateway roaming capabilities […] […], even if it doesn´t […]
[…] I guess that´s because these subsequent DHCP requests […]

Please don’t use the accute as an apostrophe.
You could use “ ' ” (U+0027/ASCII) or even better
a typografically true “ ’ ” (U+2019)…

Best Regards,
P.M.