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