public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Simon Wunderlich <sw@simonwunderlich.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] [PATCHv2 7/7] batman-adv: handle race condition for claims between gateways
Date: Thu, 10 Mar 2016 15:55 +0100	[thread overview]
Message-ID: <4750317.OxPK4g4mQE@prime> (raw)
In-Reply-To: <1456492790-29897-1-git-send-email-apape@phoenixcontact.com>

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

Hi Andreas,

On Friday 26 February 2016 14:19:50 Andreas Pape wrote:
> Consider the following situation which has been found in a test setup:
> Gateway B has claimed client C and gateway A has the same backbone
> network as B. C sends a broad- or multicast to B and directly after
> this packet decides to send another packet to A due to a better TQ
> value. B will forward the broad-/multicast into the backbone as it is
> the responsible gw and after that A will claim C as it has been
> chosen by C as the new gateway. If it now happens that A claims C
> before it has received the broad-/multicast forwarded by B (due to
> backbone topology or due to some delay in B when forwarding the
> packet) we get a critical situation: in the current code A will
> immediately unclaim C when receiving the multicast due to the
> roaming client scenario although the position of C has not changed
> in the mesh. If this happens the multi-/broadcast forwarded by B
> will be sent back into the mesh by A and we have looping packets
> until one of the gateways claims C again.
> In order to prevent this, unclaiming of a client due to the roaming
> client scenario is only done after a certain time is expired after
> the last claim of the client. 100 ms are used here, which should be
> slow enough for big backbones and slow gateways but fast enough not
> to break the roaming client use case.

That's an interesting solution. My original idea was to make clients "race" 
for clients, which wasn't ever implemented because in the scenarios I tested 
this was not a problem (Check batadv_bla_rx(), there is a note on a possible 
optimization).

I believe your solutions looks valid, let's implement that.

Acked-by: Simon Wunderlich <sw@simonwunderlich.de>

Thanks,
     Simon

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

      reply	other threads:[~2016-03-10 14:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-26 13:19 [B.A.T.M.A.N.] [PATCHv2 7/7] batman-adv: handle race condition for claims between gateways Andreas Pape
2016-03-10 14:55 ` 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=4750317.OxPK4g4mQE@prime \
    --to=sw@simonwunderlich.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