public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Bastian Bittorf <bittorf@bluebottle.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 10:24:45 +0100	[thread overview]
Message-ID: <20131123092445.GN886@medion.lan> (raw)
In-Reply-To: <52761A86.5080106@altermundi.net>

* Gui Iribarren <gui@altermundi.net> [03.11.2013 20:37]:
> .....until then, ebtables WORKSFORME :D
> and all this doesn't make batman-adv any less awesome than what it
> was already ;)
> 
> 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 :)

since a few days we have running those 2 ebtable-rules on all nodes:
ebtables -A FORWARD -j DROP -d "$mac_gateway"
ebtables -t nat -A POSTROUTING -o bat0 -j DROP -s "$mac_gateway"

it looks like this:
root@box:~ ebtables -L FORWARD --Lc
Bridge table: filter

Bridge chain: FORWARD, entries: 1, policy: ACCEPT
-d 2:0:c0:ca:c0:1a -j DROP , pcnt = 9581 -- bcnt = 1116077

root@box:~ ebtables -t nat -L POSTROUTING --Lc
Bridge table: nat

Bridge chain: POSTROUTING, entries: 1, policy: ACCEPT
-s 2:0:c0:ca:c0:1a -o bat0 -j DROP , pcnt = 4 -- bcnt = 352

so most of the time it is working fine. but we have seen another
issue, but i'am unsure where is it coming from:

"clients time out in translocal-table"

A laptop connected to always the same router / no roaming involved
times out in 'translocal-table' and so it also times out on the
other nodes in the 'transglobal-table', so it is not reachable anymore.

a bad translocal-table/dat-cache with this client looks like this:
(i have removed other clients, for better readablility)

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
 *  192.168.222.61 00:21:6a:32:7c:1c      3:50

after some seconds the client disappaers from DAT-cache:

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?

thanks & bye, bastian


  reply	other threads:[~2013-11-23  9:24 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 [this message]
2013-11-23 16:15                 ` Antonio Quartulli

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=20131123092445.GN886@medion.lan \
    --to=bittorf@bluebottle.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