public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Marek Lindner <lindner_marek@yahoo.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.] BATMAN routing (via gate0)
Date: Mon, 24 Nov 2008 10:24:00 +0800	[thread overview]
Message-ID: <200811241024.01650.lindner_marek@yahoo.de> (raw)
In-Reply-To: <53187.149.5.32.200.1227469817.squirrel@www.rivertowermail.com>


Hey,

> How does the routing work for inter-node communications for > 1 hop
> neighbors?
>
> If the gate0 tunnel is the default route for Internet communications how
> does a node know how to talk to a node two hops (or more) away (that
> doesn't go though the gate0 tunnel)?
>
> I can understand how it works with OLSRd because each node has a big
> routing table but I'm still confused about how BATMAN does it

Batman also has a "big" routing table - nothing is different to OLSR (in this 
aspect). To get information about the routing tables read here:
https://dev.open-mesh.net/batman/wiki/RoutingVodoo

The major difference to OLSR is that batman does not know every single step 
towards the final node. Consider this example:

source node -> neighbour1 -> neighbour2 -> destination

The source node will have a routing entry for the destination in its routing 
table which says "use neighbour1 as next hop". In that very moment the source 
node does not know how neighbour1 will route the packets. It simply assumes 
that neighbour1 knows the following step. Once the packet arrives at 
neighbour1 it will get forwarded according to the routing table of neighbour1 
until it arrives neighbour2 and then the destination.

Why does it work that way ?
We think its impossible to keep all nodes of the network in sync about all 
routing changes between all the nodes. If some nodes are out of sync you will 
encounter routing loops. Furthermore, it does not make sense to know the whole 
path because every node can send the packets to its neighbours only. Once the 
packet leaves the host it can't be influenced anymore. Your neighbour may have 
a totally different view regarding the routing and will send the packet into 
another direction. Neighbour2 even does not know what neighbour1 considered 
being the best route.


> This is the bit I don't understand - I thought that range mentioned by
> Marek did mean radio range for local (one hop) neighbors.

Ok, thanks Simon for clarifying that.  :-)

Regards,
Marek


      reply	other threads:[~2008-11-24  2:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-22 16:20 [B.A.T.M.A.N.] BATMAN routing (via gate0) Derek C
2008-11-22 16:35 ` Marek Lindner
2008-11-22 21:05   ` Derek C
2008-11-23  3:37     ` Marek Lindner
2008-11-23 12:16       ` Simon Wunderlich
2008-11-23 19:50         ` Derek C
2008-11-24  2:24           ` Marek Lindner [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=200811241024.01650.lindner_marek@yahoo.de \
    --to=lindner_marek@yahoo.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