public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@open-mesh.net>
Subject: Re: [B.A.T.M.A.N.] Using batman L2 on multiple wireless cards
Date: Sat, 14 Feb 2009 11:17:12 +0100	[thread overview]
Message-ID: <20090214101712.GA26153@pandem0nium> (raw)
In-Reply-To: <238a15490902131258r3f44f405m75ce70b7fff09738@mail.gmail.com>

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

Hello Gargi,

the design of the main interface in BATMAN has the effect that only
OGM packets from the main interface are distritibuted over the whole
network. OGM packets from secondary interfaces are only sent with TTL=1,
that means the next neighbor will drop them. 

The reason for this system is that the secondary interfaces need an unique 
ID/MAC (not the same address as the main interface), because physically this
address must be used to send the frames. The "secondary neighbor" will want 
to send only to the main interface, because this address is known 
in the whole mesh. The "secondary neighbor" therefore needs to address
the "secondary interface" correctly, so he (and he alone) receives the 
secondary OGMs. This allows the neighbor to build a route to the main 
interface. 
Flooding the secondary OGMs throughout the mesh would have been another
possible alternative, but thats redundandant, and we don't want to flood
too much.

Hope that makes it somewhat clear. ;)

The consequence is that by design you won't see the secondary interfaces
of the nodes if you're not physically connected (and in range) with
them. 

> I am wondering why
> 
> Node A: Cannot reach mac 23
> Node B: Cannot reach mac 23
> Node C: Cannot reach 20, 22
> 

So i guess for your scenario 22 is As secondary interface, 20 is Bs
secondary interface, and 23 is Cs secondary interface.

You can verify that with your local setups: The first interface added is
the main interface, the following ones are the secondary interfaces.

best regards,
	Simon

On Fri, Feb 13, 2009 at 02:58:03PM -0600, Gargi Purohit wrote:
> > Yes, batman has the concept of "main interface" (the first given interface) to
> > reduce overhead but on the node that has 2 interfaces you should see both
> > interfaces in the originator table (on a more distant host this might be
> > different).
> > Could you post the important lines from originators and explain the
> > corresponding setup ?
> 
> Ok...now I get that...However I think not always I am able to
> reproduce this scenario.  I have node A, node B, node C - each with 2
> radios
> 
> --ch60---| A |---ch56---------ch56---| B |---ch40-------ch40---| C |---ch48
>       (1C)..........(22)...............(20)............(21).................(1D).........(23)...
> 
> The terminating mac addresses for the radios are shown in ( )
> 
> My originator tables for node a, b, c are as follows:
> For Node A
> =======
> root@OpenWrt:/# cat /proc/net/batman-adv/originators
>   Originator     (#/255)           Nexthop [outgoingIF]:   Potential nexthops .
> 00:02:6f:52:80:20  (255) 00:02:6f:52:80:20 [      ath1]: 00:02:6f:52:80:20 (255)
> 00:02:6f:52:80:1d  (177) 00:02:6f:52:80:20 [      ath1]: 00:02:6f:52:80:20 (177)
> 00:02:6f:52:80:21  (255) 00:02:6f:52:80:20 [      ath1]: 00:02:6f:52:80:20 (255)
> 
> For Node B
> =======
> root@OpenWrt:/# cat /proc/net/batman-adv/originators
>   Originator     (#/255)           Nexthop [outgoingIF]:   Potential nexthops .
> 00:02:6f:52:80:22  (255) 00:02:6f:52:80:22 [      ath1]: 00:02:6f:52:80:22 (255)
> 00:02:6f:52:80:1d  (250) 00:02:6f:52:80:1d [      ath0]: 00:02:6f:52:80:1d (250)
> 00:02:6f:52:80:1c  (255) 00:02:6f:52:80:22 [      ath1]: 00:02:6f:52:80:22 (255)
> 
> For Node C
> =======
> root@OpenWrt:/# cat /proc/net/batman-adv/originators
>   Originator     (#/255)           Nexthop [outgoingIF]:   Potential nexthops .
> 00:02:6f:52:80:1c  (241) 00:02:6f:52:80:21 [      ath0]: 00:02:6f:52:80:21 (241)
> 00:02:6f:52:80:21  (255) 00:02:6f:52:80:21 [      ath0]: 00:02:6f:52:80:21 (255)
> 
> I am wondering why
> 
> Node A: Cannot reach mac 23
> Node B: Cannot reach mac 23
> Node C: Cannot reach 20, 22
> 
> Should they be able to reach out "each of the radios" on "a node" or
> "just one of the radios" on "the node". Sometimes they can and some
> times they dont seem to..
> 
> For instance...
> I am not sure if it is more of a radio issue than software problem...
> _______________________________________________
> B.A.T.M.A.N mailing list
> B.A.T.M.A.N@open-mesh.net
> https://lists.open-mesh.net/mm/listinfo/b.a.t.m.a.n
> 

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2009-02-14 10:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-12  3:06 [B.A.T.M.A.N.] Using batman L2 on multiple wireless cards Gargi Purohit
2009-02-12 12:53 ` Simon Wunderlich
2009-02-12 14:58   ` Gargi Purohit
2009-02-12 16:14     ` Dennis Bartsch
2009-02-12 16:29     ` Marek Lindner
2009-02-13 20:58       ` Gargi Purohit
2009-02-14 10:17         ` Simon Wunderlich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090214101712.GA26153@pandem0nium \
    --to=simon.wunderlich@s2003.tu-chemnitz.de \
    --cc=b.a.t.m.a.n@open-mesh.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox