public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] Ping related issue in batman-adv-2013.0.0
@ 2013-03-12  5:55 ajeet singh
  2013-03-12  8:33 ` Antonio Quartulli
  0 siblings, 1 reply; 2+ messages in thread
From: ajeet singh @ 2013-03-12  5:55 UTC (permalink / raw)
  To: b.a.t.m.a.n

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.

Thanks
Ajeet

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [B.A.T.M.A.N.] Ping related issue in batman-adv-2013.0.0
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Antonio Quartulli @ 2013-03-12  8:33 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-12  8:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox