Beginner Topic 7 of 50 Computer Networks
IPv4 vs IPv6
Older 32-bit and newer 128-bit addressing schemes.
How it works
IPv4 uses 32-bit addresses, about 4.3 billion in total, which ran out and led to NAT and address trading. IPv6 uses 128-bit addresses, giving a practically unlimited space, simplified headers, built-in support for auto-configuration, mandatory support for IPsec in the original design and no broadcast, replaced by multicast. The two are not directly compatible, so transition uses dual stack, tunneling and translation.
Step-by-step walkthrough
- IPv4 addresses are 32 bits, like 192.168.1.1.
- That gives about 4.3 billion addresses, which have run out.
- IPv6 uses 128-bit addresses written in hexadecimal.
- The space is so large every device can have a public address.
- Both run in parallel during the long transition.
Where it is used
Mobile networks and large content providers deliver much of their traffic over IPv6, and many cloud services offer dual-stack endpoints. IPv6 removes the need for NAT and simplifies end-to-end connectivity.
Common pitfall
Firewalls, monitoring tools and applications that assume IPv4 break, for example when parsing addresses or storing them in 32-bit fields. Misconfigured IPv6 can bypass security controls that only cover IPv4. Address text has shortening rules such as double colons. Test applications on both protocols and keep firewall rules equivalent.
Where it fits in the course
IPv4 vs IPv6 is topic 7 of 50 in Computer Networks, rated Beginner. It follows IP Addresses. The next topic is Subnetting.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Computer Networks quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Computer Networks quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is IPv4 vs IPv6?
Where do people use IPv4 vs IPv6?
What is the most common mistake with IPv4 vs IPv6?
What should I learn before this topic?
How can I practice it?
Is IPv4 vs IPv6 hard to learn?
How long does it take to learn IPv4 vs IPv6?
Which topics are related to IPv4 vs IPv6?
What should I study after IPv4 vs IPv6?
Related topics
- IP Addresses (Computer Networks)
- Subnetting (Computer Networks)
- TCP/IP Model (Computer Networks)
- MAC Addresses (Computer Networks)