Search

Differences Between IPv4 and IPv6

The following table lists the important differences between IPv4 and IPv6.

IPv4 IPv6
IPv4 addresses are 32-bit (four bytes) in length. IPv6 addresses are 128-bit (sixteen bytes) in length.
Maximum of 232 IPv4 addresses are only possible. That is 4,294,967,296 IPv4 addresses. Maximum of 2128 IPv6 addresses are possible. 340,282,366,920,938,463,463,374,607,431,768,211,456 number of IPv6 addresses are possible. Very huge number indeed.
IPv4 addresses are binary numbers represented in decimals. IPv6 addresses are binary numbers represented in hexadecimals.
An example of IPv4 address is 8.8.8.8 An example of IPv6 address is 2001:4860:4860::8888
Each part of IPv4 address are separated by a dot (.). Each part of IPv6 address are separated by a colon (:).
IPv4 supports Variable Length Subnet Masking (VLSM). IPv6 does not supports Variable Length Subnet Masking (VLSM).
IPv4 header size is between 20 to 60 bytes. IPv6 header size is 40 bytes.
IPv4 has Unicast, Multicast and Broadcast addresses. IPv6 has Unicast, Multicast and Anycast addresses.
IPSec support is only optional. Inbuilt IPSec support.
Fragmentation is done by sender and forwarding routers. Fragmentation is done only by sender.
No packet flow identification. Packet flow identification is available within the IPv6 header using the Flow Label field.
Checksum field is available in IPv4 header No checksum field in IPv6 header.
Options fields are available in IPv4 header. No option fields, but IPv6 Extension headers are available.

Address Resolution Protocol (ARP) is available to map IPv4 addresses to MAC addresses.

Address Resolution Protocol (ARP) is replaced with a function of Neighbor Discovery Protocol (NDP).
Address Resolution Protocol (ARP) messages are used to map IPv4 address to MAC address. Instead, IPv6 uses Neighbour Discovery Protocol (NDP) ’s Neighbour Solicitation (NS) messages to map IPv6 address to MAC address.
Internet Group Management Protocol (IGMP) is used to manage multicast group membership. IGMP is replaced with Multicast Listener Discovery (MLD) messages.
Broadcast messages are available. Broadcast messages are not available. Instead a link-local scope "All nodes" multicast IPv6 address (FF02::1) is used for broadcast similar functionality.
Manual configuration (Static) of IPv4 addresses or DHCP (Dynamic configuration) is required to configure IPv4 addresses. Auto-configuration of addresses is available.

 

Written by Jajish Thomas.
Last updated on 14th May, 2024.

 

Related Tutorials
Limitations of IPv4
IPv6 History and related RFCs
IPv6 Features
Unicast, Multicast and Anycast - Types of communication in IPv6
IPv6 Datagram Header Format
Comparison between IPv4 Header and IPv6 Header
Introduction to IPv6 Addressing
What is prefix and prefix length in IPv6, Similarity between IPv4 subnet mask and IPv6 prefix
IPv6 Address formats
How to Simplify Shorten and Compress IPv6 Addresses
Types of IPv6 Addresses, Global Unicast, Link-local, Multicast, Anycast, Loopback addresses
Global Unicast IPv6 Addresses, Global Unicast IPv6 Address prefix, format and range
Different methods to assign a Global Unicast IPv6 address to an interface
What are IEEE EUI-64 based Global Unicast IPv6 addresses
How to configure Static Global Unicast IPv6 Address in a Cisco Router Interface
How to configure EUI-64 based Global Unicast IPv6 Address in a Cisco Router Interface
How to configure static Global Unicast IPv6 Address in a Windows Server
What is SLAAC - Stateless Address Auto-configuration in IPv6
How SLAAC works in IPv6
Link Local IPv6 Addresses, How Link Local IPv6 addresses are generated
Unique Local IPv6 Addresses
Multicast IPv6 Address Format, Prefix, Flags and Scope
Anycast IPv6 Addresses
IPv6 Loopback Address and IPv6 Unspecified address
IPv6 Special Addresses and IPv6 well known prefixes
Solicited-Node Multicast IPv6 Address, How Solicited Node Multicast IPv6 Address are generated
ICMPv6 Functions, ICMPv6 Header Packet Format and Types of ICMPv6 messages
Types of ICMPv6 messages, ICMPv6 message format, ICMPv6 message fields
ICMPv6 Error messages
ICMPv6 informational messages
Introduction to Neighbour Discovery Protocol (NDP) and Functions of NDP
NDP (Neighbour Discovery Protocol), functions of NDP, Neighbour Solicitation and Advertisement, Router Solicitation and Advertisement
Router Solicitation and Router Advertisement Messages