From: Antonio Quartulli <ordex@autistici.org>
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.] Ping related issue in batman-adv-2013.0.0
Date: Tue, 12 Mar 2013 09:33:23 +0100 [thread overview]
Message-ID: <20130312083323.GB8563@ritirata.org> (raw)
In-Reply-To: <CAHQ_bginU7MXj-EAiy9PUEaWXC0JWTD-1ZbaEH6K4VLad2t89g@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1801 bytes --]
On Tue, Mar 12, 2013 at 11:25:18 +0530, ajeet singh wrote:
> Hello All,
>
> I am getting a problem with batman-adv-2013.0.0,
>
> Please find the details,
>
> I have two batman-adv nodes A and B,
>
> Initial setup:
> A (bat0: 192.0.0.1) ---------- B (bat0: 192.0.0.2)
> Ping is working properly between node A and node B.
>
> Setup after restarting B:
> A (bat0: 192.0.0.1) ---------- B (bat0: 192.0.0.2)
> After restarting node B, I am setting the same IP as previously to B
> (192.0.0.2) but this node (B) is not reachable from A for quite some
> time.
>
> Note: If I assign some other IP to B after restart for example
> 192.0.0.3, node A is able to ping B without any delay.
>
> Please let me know this is the problem due to DAT or something else.
Hello Ajeet,
I thought about it and I think this is a consequence of DAT caching bat0's
address.
When you restart B, its bat0's MAC address is randomly renewed and therefore
you have to wait for its IP address to timeout on A's DAT cache table.
If you change IP you don't see this problem because A does not have it in its
cache and will store it along with the new bat0's MAC address.
Other than the bat0 mac address (which change at any restart) long timeouts are
usually ok because the ARP entries do not change so often.
However, since batman-adv knows when a MAC address is removed from the network
(see the Translation Table mechanism for this), we are thinking about a solution
which combines the two components in order to proactively remove obsolete ARP
entries from the DAT cache.
Thank you very much for reporting!
If you have any better idea or suggestion feel free to share! :)
Cheers,
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2013-03-12 8:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-12 5:55 [B.A.T.M.A.N.] Ping related issue in batman-adv-2013.0.0 ajeet singh
2013-03-12 8:33 ` 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=20130312083323.GB8563@ritirata.org \
--to=ordex@autistici.org \
--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