From: Daniel Seither <post@tiwoc.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.net>
Subject: Re: [B.A.T.M.A.N.] IP from MAC
Date: Thu, 17 Sep 2009 21:21:17 +0200 [thread overview]
Message-ID: <4AB28C2D.7060600@tiwoc.de> (raw)
In-Reply-To: <8c906fa50909171115v2b296844h69c5f93eea99403c@mail.gmail.com>
Gustavo Lindberg wrote:
> Then, At a meeting of 60 people there is the 99% probability of the least
> two men have a birthday the same day. So,, Similarly to the case of
> MAC-Adress is:
>
> P(r)=1-65536!/(65536^r * (65536-r)!)
Robin uses 3 bytes of the MAC address to choose the IP address of the
mesh interface, not only 2 bytes = 65536 possibilities. This leads to
2^24 = 16777216 different addresses.
Expressed in PARI/GP syntax, you get the following formula:
p(n) = 1 - (factorial(2^24) / ((2^24)^n * factorial(2^24 - n)))
For a network of n=1000 nodes, PARI/GP calculates a probability of about
3 % for an address collision, which should pose no problem.
This is only valid if the NIC vendors randomly choose the MAC addresses
of their cards; chances are that they simply increment the address for
each NIC manufactured. This would increase the possibility of collisions.
However, as Marek already wrote, the focus of the batman development
moves to layer 2 where IP addresses are not used. On top of batman-adv,
you can use any IP address distribution scheme you like. For example,
you could simply run a DHCP server.
Regards,
Daniel
next prev parent reply other threads:[~2009-09-17 19:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-17 2:01 [B.A.T.M.A.N.] IP from MAC Lick A Prize
2009-09-17 18:15 ` Gustavo Lindberg
2009-09-17 19:21 ` Daniel Seither [this message]
2009-09-17 20:14 ` Gustavo Lindberg
2009-09-17 20:36 ` Daniel Seither
2009-09-18 4:38 ` Lick A Prize
2009-09-18 8:19 ` Sven Eckelmann
2009-09-18 8:42 ` Lick A Prize
2009-09-18 9:03 ` Sven Eckelmann
2009-09-18 18:04 ` Simon Wunderlich
2009-09-18 19:15 ` Gustavo Lindberg
2009-09-21 4:31 ` Lick A Prize
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=4AB28C2D.7060600@tiwoc.de \
--to=post@tiwoc.de \
--cc=b.a.t.m.a.n@lists.open-mesh.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.