public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Antonio Quartulli <antonio@meshcoding.com>
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.] lost connection to a client / Q: transglobal-table
Date: Sat, 23 Nov 2013 17:15:16 +0100	[thread overview]
Message-ID: <20131123161516.GH311@neomailbox.net> (raw)
In-Reply-To: <20131123092445.GN886@medion.lan>

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

On Sat, Nov 23, 2013 at 10:24:45AM +0100, Bastian Bittorf wrote:
> * Gui Iribarren <gui@altermundi.net> [03.11.2013 20:37]:
> > btw, even with the ebtables rule, we had to turn off DAT in a
> > scenario equivalent to yours, because the DAT cache was also acting
> > funny (DUP arp replies from each node in the cloud)
> > haven't got around to properly debug it / report it, but still, be warned :)

I think all these strange behaviours are coming from the fact that what you guys
are trying to do is not really supported by the underlying layer (batman-adv).

I think a better idea is to start thinking how to bring anycast support in
batman-adv other than trying to mess up the rest :) That would surely help the
entire community.

After the last WBM we concentrated our efforts in creating a starting point for
a "more general" solution and we collected the results in this page [*].

This page describes what you probably want to achieve at the end, so working all
together to make it possible would probably be the best option (instead of
trying to workaround unsupported setup and then asking for help to debug
inconsistent behaviours....).

> root@box:~ batctl dc
> Distributed ARP Table (bat0):
>           IPv4             MAC           last-seen
>  *  192.168.222.61 00:21:6a:32:7c:1c      3:50
> 
> after some seconds the client disappaers from DAT-cache:

As you can imagine DAT is a cache and if it does not get refreshed
often enough the content will slowly disappear. Right now the timeout is 4
minutes and this is why "after" few second your entry goes away (it is at 3:50
at that moment). If you have not yet read the documentation, [1] explains the
mechanism behind it.

> 
> root@box:~ batctl tl
> Locally retrieved addresses (from bat0) announced via TT (TTVN: 2 CRC:
> 0x6023):
>        Client        Flags   Last seen 
>  * 00:21:6a:32:7c:1c [....W]   0.010
> 
> root@box:~ batctl dc
> Distributed ARP Table (bat0):
>           IPv4             MAC           last-seen
> 
> after some time even the 'translocal-table' is empty, although with
> 'iw dev wlan0 station dump' i can see the active client. i'm
> normally connected, can ping/ssh the node itself but not further.
> (only hop by hop)
> 
> how does batman detect, if a client is active? (can i trigger is somehow?)
> what can i do tho debug further?
> 

As written in [2]:
"Every client MAC address that is recognized through the mesh interface will be
stored in a node local table called "local translation table" which will contain
all the clients the node is currently serving."

So if your client is timing out it means that no packet originated by it is
reaching your mesh interface.

If you want to debug further now you have to ask yourself what are you doing to
prevent packets to reach bat0 :-)


Cheers,


[*] http://www.open-mesh.org/projects/open-mesh/wiki/Connecting-Batman-adv-clouds
[1] http://www.open-mesh.org/projects/batman-adv/wiki/DistributedArpTable-technical
[2] http://www.open-mesh.org/projects/batman-adv/wiki/Client-announcement

-- 
Antonio Quartulli

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

      reply	other threads:[~2013-11-23 16:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-01  7:55 [B.A.T.M.A.N.] lost connection to a client / Q: transglobal-table Bastian Bittorf
2013-11-01 12:36 ` Antonio Quartulli
2013-11-01 14:33   ` Bastian Bittorf
2013-11-01 14:39     ` Antonio Quartulli
2013-11-01 15:16       ` Bastian Bittorf
2013-11-03  7:10         ` Gui Iribarren
2013-11-03  9:18           ` Bastian Bittorf
2013-11-03  9:42             ` Gui Iribarren
2013-11-23  9:24               ` Bastian Bittorf
2013-11-23 16:15                 ` Antonio Quartulli [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=20131123161516.GH311@neomailbox.net \
    --to=antonio@meshcoding.com \
    --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