Ipv6 unique address for each person

  • Context: Undergrad 
  • Thread starter Thread starter Smarky
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on the probability of IP address collisions in IPv6, which has an address size of 128 bits compared to IPv4's 32 bits. The probability of two individuals randomly selecting the same IPv6 address is calculated using the formula P(A has same address as B) = 1/(2^128) x 1/(2^128) = 1/2^(256). The population of 7 billion does not affect this probability under the assumption of independent selections. The model simplifies the complexities of real-world IP address allocation and usage.

PREREQUISITES
  • Understanding of IPv4 and IPv6 address structures
  • Basic knowledge of probability theory
  • Familiarity with binomial models
  • Concept of independent events in probability
NEXT STEPS
  • Research the implications of IPv6 address allocation and structure
  • Study the birthday paradox in probability theory
  • Explore the differences in IP address management between IPv4 and IPv6
  • Learn about collision resistance in cryptographic applications
USEFUL FOR

Network engineers, cybersecurity professionals, and anyone interested in understanding IP address allocation and probability theory related to networking.

Smarky
Messages
5
Reaction score
0
I read about the differences between Ipv4 and Ipv6, regarding address size.
Ipv4 = address size of 32 bits
Ipv6 = address size of 128 bits

My question is:
If we pick a random address from all 2^128 possibilities for each person on earth, assuming population of 7 billion people, what is the probability of there being a collision (2 or more people with the same address).

How do you calculate such a thing?
 
Physics news on Phys.org
Smarky said:
I read about the differences between Ipv4 and Ipv6, regarding address size.
Ipv4 = address size of 32 bits
Ipv6 = address size of 128 bits

My question is:
If we pick a random address from all 2^128 possibilities for each person on earth, assuming population of 7 billion people, what is the probability of there being a collision (2 or more people with the same address).

How do you calculate such a thing?

Hey smarky and welcome to the forums.

I'm not exactly sure about your assumptions, but I'm going to assume that a) every IP address has an equally likely chance of being selected (normally this would be false due to the fact that IP addresses have inherent structure in them for specific locations and on top of that certain addresses are reserved for special uses) and b) Both trials are based on drawing an IP from a barrel with every choice of IP address.

If these assumptions are correct, we know that both draws from the barrel are independent and each choice is equally likely.

Based on this P(A has same address as B) = P(A has I.P. Z AND B as I.P. Z) = P(A has I.P. Z) x P(B has I.P. Z) = 1/(2^128) x 1/(2^128) = 1/2^(256)

The population of 7 billion doesn't come into play in this model because we assume that every single person has the same chance of picking any address, along with other assumptions like independent selections (like you would find with a binomial model).

This is a pretty simplified model, but it is a little hard trying to figure out the assumptions should be.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
Replies
15
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
2K
Replies
3
Views
2K
  • · Replies 12 ·
Replies
12
Views
5K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K