public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Marek Lindner <mareklindner@neomailbox.ch>
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.] Suggestion for routing improvement on poor links
Date: Thu, 20 Feb 2014 18:33:49 +0800	[thread overview]
Message-ID: <53576640.B8QRQyvXn3@diderot> (raw)
In-Reply-To: <5305CE85.6020201@meshcoding.com>

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

On Thursday 20 February 2014 10:44:37 Antonio Quartulli wrote:
> The missing degradation is the part where I don't agree.
> 
> Just to be sure we are understanding each other, I am talking about the
> scenario depicted in this picture:
> 
> http://www.open-mesh.org/attachments/download/52/triangle.png
> 
> 'A' is the source node and 'B' is our destination. B moves and breaks
> the line-of-sight with A, thus making the A<->B link unusable at all (we
> assume that now packet loss on A<->B is 100%).
> 
> At this point A still receives B's OGMs via N1.
> 
> According to batadv_iv_ogm_orig_update() (in bat_iv_ogm.c) each time a
> packet with a _new_seqno_ is received the global window of _each_
> neighbour for the given originator is shifted by one slot and the
> averages are computed again.
> 
> This operation makes the average degrade because we are now averaging
> N-1 old values and one 0 (with N being the size of the global window).
> On the next OGM it will be worse: average on N-2 values and two 0s. And
> so on..
> 
> Doesn't this mean that the metric is degrading (consider that the metric
> is the average)?

Your explanation is mostly correct - one minor objection though: Values of '0' 
are not considered when the global average is computed (bat_iv_ogm.c line 73). 
The idea being: The unilateral degradation of TQ values without any network 
event will eventually lead to loops.
Nonetheless, the general idea of your statement still holds true: Since new 
sequence numbers keep coming in via an alternative, albeit less optimal route, 
the stale route will be purged as soon as the global TQ window has elapsed 
(default: 5 seqnos). Long before the neighbor timeout has had the time to 
purge the neighbor entirely.

@Andrew: The algorithm always worked that way. In fact, it was your suggestion 
to reduce the global window to 5 seqnos in order to speed it up. 
Furthermore, ELP only improves reaction time on a local basis (single hop 
neighborhood). Network-wide route updates are as slow as before which is why 
we had to devise yet-another-improvement: RIP
http://www.open-mesh.org/projects/batman-adv/wiki/RIP

Cheers,
Marek

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

  parent reply	other threads:[~2014-02-20 10:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-19 20:56 [B.A.T.M.A.N.] Suggestion for routing improvement on poor links whangarei & opua
2014-02-19 21:27 ` Antonio Quartulli
2014-02-19 22:12   ` whangarei & opua
2014-02-19 22:30     ` Antonio Quartulli
2014-02-20  8:54       ` Andrew Lunn
2014-02-20  9:03         ` Antonio Quartulli
2014-02-20  9:09           ` Andrew Lunn
2014-02-20  9:44             ` Antonio Quartulli
2014-02-20 10:10               ` Andrew Lunn
2014-02-20 10:33               ` Marek Lindner [this message]
     [not found]       ` <F42F9132-14DE-4496-A715-389CF13D6C49@gmx.de>
     [not found]         ` <5305C654.5020605@meshcoding.com>
2014-02-20 10:20           ` whangarei & opua
2014-02-22 13:20             ` Marek Lindner
2014-02-23 10:35               ` whangarei & opua

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=53576640.B8QRQyvXn3@diderot \
    --to=mareklindner@neomailbox.ch \
    --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