All of lore.kernel.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] batman-adv: loop caused by tinc and wifi
@ 2011-09-26  0:15 Bjoern Franke
  2011-09-26  7:05 ` P. Mazart
  2011-09-26  9:36 ` Marek Lindner
  0 siblings, 2 replies; 12+ messages in thread
From: Bjoern Franke @ 2011-09-26  0:15 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Hi,

we are using the following configuration in our freifunk network:

B.A.T.M.A.N. advanced 2011.0.0 (compatibility version 12)

ath1 (ad-hoc) as batman-adv-interfaces
ath0 (ap), tap0, eth0.1 and bat0 as a bridge

stp is enabled for the bridge.
Most of the nodes are connected via tinc and the network runs fine. But if two 
nodes which have a tinc connection also get a ath1-connection, the whole 
network crashes.

What are we doing wrong?

regards
Bjoern
-- 
jabber: bjo@schafweide.org
bjo.nord-west.org | nord-west.org | freifunk-ol.de

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

* Re: [B.A.T.M.A.N.] batman-adv: loop caused by tinc and wifi
  2011-09-26  0:15 [B.A.T.M.A.N.] batman-adv: loop caused by tinc and wifi Bjoern Franke
@ 2011-09-26  7:05 ` P. Mazart
  2011-09-26  9:15   ` Bjoern Franke
  2011-09-26  9:36 ` Marek Lindner
  1 sibling, 1 reply; 12+ messages in thread
From: P. Mazart @ 2011-09-26  7:05 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Hi,

On Mo, 26.09.2011 02:15:46, Bjoern Franke wrote:
> ath1 (ad-hoc) as batman-adv-interfaces
> ath0 (ap), tap0, eth0.1 and bat0 as a bridge

> Most of the nodes are connected via tinc and the network runs fine. But if two 
> nodes which have a tinc connection also get a ath1-connection, the whole 
> network crashes.

Did I get you right, that »ath1-connection« refers to a second
connction of two tinc hosts over another interface?
In this case I suspect it’s a tinc matter,
and iptables could be a solution.
Is there anything in the tinc logs?
Maybe „two“ hosts with the _same_ identity?

Regards
P.M.

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

* Re: [B.A.T.M.A.N.] batman-adv: loop caused by tinc and wifi
  2011-09-26  7:05 ` P. Mazart
@ 2011-09-26  9:15   ` Bjoern Franke
  0 siblings, 0 replies; 12+ messages in thread
From: Bjoern Franke @ 2011-09-26  9:15 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Hi,

> Did I get you right, that »ath1-connection« refers to a second
> connction of two tinc hosts over another interface?

No, ath1 is the ad-hoc wifi connection.

ath0 and ath1 are wifi interfaces, tap0 is the tinc connection.

regards
-- 
jabber: bjo@schafweide.org
bjo.nord-west.org | nord-west.org | freifunk-ol.de

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

* Re: [B.A.T.M.A.N.] batman-adv: loop caused by tinc and wifi
  2011-09-26  0:15 [B.A.T.M.A.N.] batman-adv: loop caused by tinc and wifi Bjoern Franke
  2011-09-26  7:05 ` P. Mazart
@ 2011-09-26  9:36 ` Marek Lindner
  2011-09-26 12:33   ` Bjoern Franke
  1 sibling, 1 reply; 12+ messages in thread
From: Marek Lindner @ 2011-09-26  9:36 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking


Hi,

> B.A.T.M.A.N. advanced 2011.0.0 (compatibility version 12)
> 
> ath1 (ad-hoc) as batman-adv-interfaces
> ath0 (ap), tap0, eth0.1 and bat0 as a bridge
> 
> stp is enabled for the bridge.

STP is no solution. Did you try enabling the bridge loop avoidance ?
http://www.open-mesh.org/wiki/batman-adv/Bridge-loop-avoidance

You might need to upgrade to a later batman-adv version though.

Regards,
Marek

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

* Re: [B.A.T.M.A.N.] batman-adv: loop caused by tinc and wifi
  2011-09-26  9:36 ` Marek Lindner
@ 2011-09-26 12:33   ` Bjoern Franke
  2011-09-26 15:26     ` Marek Lindner
  0 siblings, 1 reply; 12+ messages in thread
From: Bjoern Franke @ 2011-09-26 12:33 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking


> STP is no solution. Did you try enabling the bridge loop avoidance ?
> http://www.open-mesh.org/wiki/batman-adv/Bridge-loop-avoidance
> 
> You might need to upgrade to a later batman-adv version though.
> 
> Regards,
> Marek

We did not enable bridge loop avoidance, IIRC we did not run batman on the 
bridge interface due to overhead on the vpn links.

But we'll enable it on the nodes we have access to.

thx
bjo
-- 
jabber: bjo@schafweide.org
bjo.nord-west.org | nord-west.org | freifunk-ol.de

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

* Re: [B.A.T.M.A.N.] batman-adv: loop caused by tinc and wifi
  2011-09-26 12:33   ` Bjoern Franke
@ 2011-09-26 15:26     ` Marek Lindner
  2011-09-27 10:45       ` Bjoern Franke
  0 siblings, 1 reply; 12+ messages in thread
From: Marek Lindner @ 2011-09-26 15:26 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Monday, September 26, 2011 14:33:57 Bjoern Franke wrote:
> We did not enable bridge loop avoidance, IIRC we did not run batman on the
> bridge interface due to overhead on the vpn links.
> 
> But we'll enable it on the nodes we have access to.

Please give it a try. It sounds like a bridge loop.
We are working towards an enhanced bridge loop mechanism which aims to reduce 
the overhead. Are you interested in testing it when it gets ready ?

Regards,
Marek

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

* Re: [B.A.T.M.A.N.] batman-adv: loop caused by tinc and wifi
  2011-09-26 15:26     ` Marek Lindner
@ 2011-09-27 10:45       ` Bjoern Franke
  2011-09-27 11:44         ` Marek Lindner
  0 siblings, 1 reply; 12+ messages in thread
From: Bjoern Franke @ 2011-09-27 10:45 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Am Montag, 26. September 2011, 17:26:37 schrieb Marek Lindner:
> On Monday, September 26, 2011 14:33:57 Bjoern Franke wrote:
> > We did not enable bridge loop avoidance, IIRC we did not run batman on
> > the bridge interface due to overhead on the vpn links.
> > 
> > But we'll enable it on the nodes we have access to.
> 
> Please give it a try. It sounds like a bridge loop.

Ok, we have running now the following setup:

ath1 (ad-hoc) as batman-interface
br-mesh (ath0 (ap-mode), eth0.1, tap0, bat0) as batman-interface

batman complains about the mtu 1500 of br-mesh, but it can't be set to 1527 
because bat0 does not like any mtu setting.

> We are working towards an enhanced bridge loop mechanism which aims to
> reduce the overhead. Are you interested in testing it when it gets ready ?
> 

Yes, this would be nice :)

regards
Bjoern

-- 
jabber: bjo@schafweide.org
bjo.nord-west.org | nord-west.org | freifunk-ol.de

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

* Re: [B.A.T.M.A.N.] batman-adv: loop caused by tinc and wifi
  2011-09-27 10:45       ` Bjoern Franke
@ 2011-09-27 11:44         ` Marek Lindner
  2011-09-27 22:03           ` Bjoern Franke
  0 siblings, 1 reply; 12+ messages in thread
From: Marek Lindner @ 2011-09-27 11:44 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Tuesday, September 27, 2011 12:45:01 Bjoern Franke wrote:
> ath1 (ad-hoc) as batman-interface
> br-mesh (ath0 (ap-mode), eth0.1, tap0, bat0) as batman-interface
> 
> batman complains about the mtu 1500 of br-mesh, but it can't be set to 1527
> because bat0 does not like any mtu setting.

Ok, does it solve your loop ?


> > We are working towards an enhanced bridge loop mechanism which aims to
> > reduce the overhead. Are you interested in testing it when it gets ready
> > ?
> 
> Yes, this would be nice :)

Great! We will contact you once we have something testable.

Cheers,
Marek

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

* Re: [B.A.T.M.A.N.] batman-adv: loop caused by tinc and wifi
  2011-09-27 11:44         ` Marek Lindner
@ 2011-09-27 22:03           ` Bjoern Franke
  2011-09-29 10:08             ` Marek Lindner
  0 siblings, 1 reply; 12+ messages in thread
From: Bjoern Franke @ 2011-09-27 22:03 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Am Dienstag, 27. September 2011, 13:44:26 schrieb Marek Lindner:
> On Tuesday, September 27, 2011 12:45:01 Bjoern Franke wrote:
> > ath1 (ad-hoc) as batman-interface
> > br-mesh (ath0 (ap-mode), eth0.1, tap0, bat0) as batman-interface
> > 
> > batman complains about the mtu 1500 of br-mesh, but it can't be set to
> > 1527 because bat0 does not like any mtu setting.
> 
> Ok, does it solve your loop ?

I don't know, yesterday one of the loop-routers crashed, so I was not able to 
test it yet.

BTW, how can I solve the MTU issue? 

regards
Bjoern
-- 
jabber: bjo@schafweide.org
bjo.nord-west.org | nord-west.org | freifunk-ol.de

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

* Re: [B.A.T.M.A.N.] batman-adv: loop caused by tinc and wifi
  2011-09-27 22:03           ` Bjoern Franke
@ 2011-09-29 10:08             ` Marek Lindner
  2011-09-29 13:51               ` Bjoern Franke
  2011-09-29 20:25               ` Bjoern Franke
  0 siblings, 2 replies; 12+ messages in thread
From: Marek Lindner @ 2011-09-29 10:08 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Wednesday, September 28, 2011 00:03:24 Bjoern Franke wrote:
> I don't know, yesterday one of the loop-routers crashed, so I was not able
> to test it yet.

Ok.


> BTW, how can I solve the MTU issue?

You probably can't. However, I don't think this is a critical problem. It only 
means that batman-adv will have to fragment the traffic.

Cheers,
Marek

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

* Re: [B.A.T.M.A.N.] batman-adv: loop caused by tinc and wifi
  2011-09-29 10:08             ` Marek Lindner
@ 2011-09-29 13:51               ` Bjoern Franke
  2011-09-29 20:25               ` Bjoern Franke
  1 sibling, 0 replies; 12+ messages in thread
From: Bjoern Franke @ 2011-09-29 13:51 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Am Donnerstag, 29. September 2011, 12:08:01 schrieb Marek Lindner:
> On Wednesday, September 28, 2011 00:03:24 Bjoern Franke wrote:
> > I don't know, yesterday one of the loop-routers crashed, so I was not
> > able to test it yet.
> 
> Ok.

It's up again, we added br-mesh as bat-if and the loop-protection seems to 
work now.
 
regards
bjo
-- 
jabber: bjo@schafweide.org
bjo.nord-west.org | nord-west.org | freifunk-ol.de

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

* Re: [B.A.T.M.A.N.] batman-adv: loop caused by tinc and wifi
  2011-09-29 10:08             ` Marek Lindner
  2011-09-29 13:51               ` Bjoern Franke
@ 2011-09-29 20:25               ` Bjoern Franke
  1 sibling, 0 replies; 12+ messages in thread
From: Bjoern Franke @ 2011-09-29 20:25 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Am Donnerstag, 29. September 2011, 12:08:01 schrieb Marek Lindner:
> On Wednesday, September 28, 2011 00:03:24 Bjoern Franke wrote:
> > I don't know, yesterday one of the loop-routers crashed, so I was not
> > able to test it yet.
> 
> Ok.
> 

There is something stupid going on. Our network behaves now more unstable as 
before. I'll try to find out more what's going on.


regards
Bjoern
-- 
jabber: bjo@schafweide.org
bjo.nord-west.org | nord-west.org | freifunk-ol.de

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

end of thread, other threads:[~2011-09-29 20:25 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-26  0:15 [B.A.T.M.A.N.] batman-adv: loop caused by tinc and wifi Bjoern Franke
2011-09-26  7:05 ` P. Mazart
2011-09-26  9:15   ` Bjoern Franke
2011-09-26  9:36 ` Marek Lindner
2011-09-26 12:33   ` Bjoern Franke
2011-09-26 15:26     ` Marek Lindner
2011-09-27 10:45       ` Bjoern Franke
2011-09-27 11:44         ` Marek Lindner
2011-09-27 22:03           ` Bjoern Franke
2011-09-29 10:08             ` Marek Lindner
2011-09-29 13:51               ` Bjoern Franke
2011-09-29 20:25               ` Bjoern Franke

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.