public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: "Nicolás Echániz" <nicoechaniz@codigosur.org>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] link alternation when radios are not on batman-adv router?
Date: Sat, 31 Mar 2012 22:31:09 -0300	[thread overview]
Message-ID: <4F77AFDD.7050909@codigosur.org> (raw)
In-Reply-To: <CAA_JP8XtADXO=J6rKdQNTz3vGeLr0+a1fJSsyS9Lb=-zttWgug@mail.gmail.com>

On 03/31/2012 06:03 PM, dan wrote:
> On Sat, Mar 31, 2012 at 12:11 PM, Guido Iribarren
> <guidoiribarren@buenosaireslibre.org> wrote:
>> On Sat, Mar 31, 2012 at 12:45 PM, Dan Denson <dandenson@gmail.com> wrote:
>>>  I think I understand. Basically, so long as two interfaces both have a path the to destination of acceptable quality, it will send the packets out the interface that did not receive the packets. Hop count doesn't have a direct effect, we don't really care about hop count, only about link quality.
>>>
>>> Is that the case?
>>>
>>>
>>> If hop count doesn't really matter, how do I identify my high quality, high capacity backhauls?
>>
>> In batworld, by their high TQ (= AFAIU lack of packet loss to destination.)
>> no capacity involved in the calculations.
>>
>> (but devs might correct me if i'm being too shortsighted!)
> 
> according to the docs, capacity is not used in the calculation.  It is
> assumed that lowest TQ is always the best route.  Hop count adds a
> default '10' to the TQ which is adjustable.  I figure this means that
> I can give a supernode a lower hop cost than the default 10 which
> should slide the TQ in favor of using this node as the optimal path.
> 
> I also infer that this means that picostations running batman-adv that
> are part of the supernode 'cluster' are going to also add a hop
> penalty to the TQ.  From what I can tell though, link aggregation only
> cares if a interaces/links have an acceptable TQ, not an equal TQ,
> though I suspect that two picos in a supernode config would end up
> providing the same hop count and similar TQ anyway, assuming solid
> wireless links.

it's a tricky task to try and convince batman-adv to favour certain routes.

Our strategy in QuintanaLibre has been to lower the hop penalty but also
to increase multicast rate where necessary.

This effectively "invisibilizes" some links for batman.

You should use this with care, mainly if you are playing with it
remotely because you may be left out of a portion of your network.

We have reduced hop_penalty to zero on certain "preferred" nodes and
also increased mcast_rate where necessary.

Your mcast_rate can actually be heterogeneous across the network.

For example, we have an Ubiquiti BulletM2 with a 14db panel antenna
which is "seen" even by the furthest node, which establishes a low rate
link that has low throughput but looses very few packets, so batman
"thinks" it's actually a good route when in practice it's not.

So we set the Bullet mcast_rate high like so:

config 'wifi-iface'
	option 'device' 'radio0'
	option 'mcast_rate' '54000'
        ...

and then only those nodes than can establish a really good link to the
Bullet will see it as a valid route while others will ignore it.


It took a lot of time to find out this subtleties and we don't even know
if this is the "canonical" method but it does work very well to discard
undesired low rate routes.

In your setup, I think you could increase hop penalty for your
picostations, lower the hop penalty for your supernodes and also set
their mcast_rate high, so that picostations won't choose to route
directly to a far supernode but rather send traffic to their nearest
supernode which will have a solid route to the next one...  that is if I
correctly understood what you are trying to accomplish.



Please share your findings on these matters, as we may all profit from
each other's experimentation work!


Cheers,
NicoEchániz






  reply	other threads:[~2012-04-01  1:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-30 13:35 [B.A.T.M.A.N.] link alternation when radios are not on batman-adv router? dan
2012-03-30 16:33 ` Guido Iribarren
2012-03-30 17:18   ` dan
2012-03-31  3:48     ` Guido Iribarren
2012-03-31 15:45       ` Dan Denson
2012-03-31 18:11         ` Guido Iribarren
2012-03-31 21:03           ` dan
2012-04-01  1:31             ` Nicolás Echániz [this message]
2012-04-01  1:53               ` [B.A.T.M.A.N.] [OT] ruci / Was: " Nicolás Echániz
2012-04-01  2:10                 ` dan
2012-06-14 19:51       ` [B.A.T.M.A.N.] " gtolon
2012-06-15  9:55         ` Simon Wunderlich
2012-06-18 18:46           ` gtolon
2012-07-13 20:56             ` gtolon
2012-07-14 21:30               ` Guido Iribarren
2012-07-14 21:35                 ` Guido Iribarren
2012-07-17 13:36                   ` gtolon

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=4F77AFDD.7050909@codigosur.org \
    --to=nicoechaniz@codigosur.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /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