From: Marek Lindner <lindner_marek@yahoo.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: encourage batman to take shorter routes by changing the default hop penalty
Date: Sun, 29 Jan 2012 04:57:58 +0800 [thread overview]
Message-ID: <201201290457.58976.lindner_marek@yahoo.de> (raw)
In-Reply-To: <20120127191334.GF27169@lunn.ch>
On Saturday, January 28, 2012 03:13:34 Andrew Lunn wrote:
> When iperf was used to measure the traffic from one end of the chain
> to the other. With the default hop penalty we got poor
> performance. With the traceroute facility of batctl, we could see it
> was route flipping between 3 hops and 4 hops. When it used 3 hops, the
> packet loss was too high and we got poor bandwidth. Then it went up to
> 4 hops, the packet loss was lower, so we got more bandwidth.
>
> This was repeatable, with each deploy we made.
>
> Then we tried with a lower hop penalty. I think it was 5, but i don't
> remember. BATMAN then used 5 hops and there was no route flipping. We
> also got the best iperf bandwidth for end to end of the chain.
I have a hard time understanding this because the hop penalty has less
influence on bad links. As you can see in my previous mail below a TQ of 100
the default penalty of 10 make less then a 4 TQ points difference.
Did you try setting a higher multicast rate ? This tends to also eliminate
flaky direct connections.
> The fact BATMAN was route flipping with a hop penalty of 10 suggests
> to me the links had similar TQ. So OGMs are getting through at the
> lowest coding rate. But data packets are having trouble, maybe because
> they are full MTU, or because the wifi driver is using the wrong
> coding rate.
Actually, in most of my setups the connection all neighboring nodes is
perfect. Maybe that is another corner case ? :-)
> I suspect the TQ measurements as determined by OGMs are more
> optimistic than actual data packets. Linus's played with different NDP
> packet sizes, and i think he ended up with big packets in order to
> give more realistic TQ measurements.
>
> Unfortunately, this project is now finished. I do have access to the
> hardware, but no time allocated to play with it :-(
It was a good idea and is not forgotten. Hopefully I have the code ready by
the time of the WBMv5. Then we can play a bit with that.
> > Nevertheless, this patch was intended to get a discussion going.
>
> Well, i'm happy to take part in the discussion. I've no idea if our
> use case is typical, or an edge case. So comments, and results from
> other peoples networks would be useful.
>
> If this change it to help 11n, maybe some more intelligence would be
> better, to ask the wireless stack is the interface abg or n, and from
> that determine what hop penalty should be used?
It is not directly related with 11n. The pain level grows with 11n as the gap
between packet loss and throughput grows. This setting is more intended for
setups in which all nodes have rather good connections to all other nodes.
Then the direct TQs and the "hop" TQs are too similar and batman starts using
multi-hop connections.
Regards,
Marek
next prev parent reply other threads:[~2012-01-28 20:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-27 15:11 [B.A.T.M.A.N.] [PATCH] batman-adv: encourage batman to take shorter routes by changing the default hop penalty Marek Lindner
2012-01-27 15:19 ` Andrew Lunn
2012-01-27 15:54 ` Marek Lindner
2012-01-27 18:17 ` Daniele Furlan
2012-01-28 21:03 ` Marek Lindner
2012-01-27 19:13 ` Andrew Lunn
2012-01-28 14:12 ` Antonio Quartulli
2012-01-28 20:49 ` Marek Lindner
2012-01-30 8:06 ` Andrew Lunn
2012-01-28 20:57 ` Marek Lindner [this message]
2012-01-28 15:35 ` Simon Wunderlich
2012-02-05 18:52 ` Marek Lindner
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=201201290457.58976.lindner_marek@yahoo.de \
--to=lindner_marek@yahoo.de \
--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