What is an IP Address?
An IP address, or Internet Protocol address, is a unique string of numbers assigned to each
device connected to a computer network that uses the Internet Protocol for communication.
It serves as an identifier that allows devices to send and receive data over the network,
ensuring that this data reaches the correct destination. There are two primary versions of
Internet Protocol in use: IPv4 and IPv6.
What is IPv4?
IPv4, or Internet Protocol version 4, is the original addressing system of the Internet,
introduced in 1983. It uses a 32-bit address scheme, which theoretically allows for over 4
billion unique addresses (2^32). IPv4 addresses are typically displayed in decimal format,
divided into four octets separated by dots. For example, [Link] is a common IPv4
address you might find in a home network.
IPv4 Address Format
IPv4 Address Format is a 32-bit Address that comprises binary digits separated by a dot (.).
IPv4 Address Format
Characteristics of IPv4
• 32-bit address length: Allows for approximately 4.3 billion unique addresses.
• Dot-decimal notation: IP addresses are written in a format of four decimal numbers
separated by dots, such as [Link].
• Packet structure: Includes a header and payload; the header contains information
essential for routing and delivery.
• Checksum fields: Uses checksums in the header for error-checking the header
integrity.
• Fragmentation: Allows packets to be fragmented at routers along the route if the
packet size exceeds the maximum transmission unit (MTU).
• Address Resolution Protocol (ARP): Used for mapping IP network addresses to the
hardware addresses used by a data link protocol.
• Manual and DHCP configuration: Supports both manual configuration of IP
addresses and dynamic configuration through DHCP (Dynamic Host Configuration
Protocol).
• Limited address space: The main limitation which has led to the development of IPv6
to cater to more devices.
• Network Address Translation (NAT): Used to allow multiple devices on a private
network to share a single public IP address.
• Security: Lacks inherent security features, requiring additional protocols such as
IPSec for secure communications.
Drawbacks of IPv4
• Limited Address Space : IPv4 has a limited number of addresses, which is not enough
for the growing number of devices connecting to the internet.
• Complex Configuration : IPv4 often requires manual configuration or DHCP to assign
addresses, which can be time-consuming and prone to errors.
• Less Efficient Routing : The IPv4 header is more complex, which can slow down data
processing and routing.
• Security Issues : IPv4 does not have built-in security features, making it more
vulnerable to attacks unless extra security measures are added.
• Limited Support for Quality of Service (QoS) : IPv4 has limited capabilities for
prioritizing certain types of data, which can affect the performance of real-time
applications like video streaming and VoIP.
• Fragmentation : IPv4 allows routers to fragment packets, which can lead to
inefficiencies and increased chances of data being lost or corrupted.
• Broadcasting Overhead : IPv4 uses broadcasting to communicate with multiple
devices on a network, which can create unnecessary network traffic and reduce
performance.
What is IPv6?
Another most common version of the Internet Protocol currently is IPv6. The well-known
IPv6 protocol is being used and deployed more often, especially in mobile phone markets.
IPv6 was designed by the Internet Engineering Task Force (IETF) in December 1998 with the
purpose of superseding IPv4 due to the global exponentially growing internet of users.
IPv6 stands for Internet Protocol version 6. IPv6 is the new version of Internet Protocol,
which is way better than IPv4 in terms of complexity and efficiency. IPv6 is written as a group
of 8 hexadecimal numbers separated by colon (:). It can be written as 128 bits of 0s and 1s.
IPv6 Address Format
IPv6 Address Format is a 128-bit IP Address, which is written in a group of 8 hexadecimal
numbers separated by colon (:).
IPv6 Address Format
To switch from IPv4 to IPv6, there are several strategies:
• Dual Stacking : Devices can use both IPv4 and IPv6 at the same time. This way, they
can talk to networks and devices using either version.
• Tunneling : This method allows IPv6 users to send data through an IPv4 network to
reach other IPv6 users. Think of it as creating a "tunnel" for IPv6 traffic through the
older IPv4 system.
• Network Address Translation (NAT) : NAT helps devices using different versions of IP
addresses (IPv4 and IPv6) to communicate with each other by translating the
addresses so they understand each other.
Characteristics of IPv6
• IPv6 uses 128-bit addresses, offering a much larger address space than IPv4's 32-bit
system.
• IPv6 addresses use a combination of numbers and letters separated by colons,
allowing for more unique addresses.
• The IPv6 header has fewer fields, making it more efficient for routers to process.
• IPv6 supports Unicast, Multicast, and Anycast, but no Broadcast, reducing network
traffic.
• IPv6 allows flexible subnetting (VLSM) to divide networks based on specific needs.
• IPv6 uses Neighbor Discovery for MAC address resolution instead of ARP.
• IPv6 uses advanced routing protocols like OSPFv3 and RIPng for better address
handling.
• IPv6 devices can self-assign IP addresses using SLAAC, or use DHCPv6 for more
control.
• IPv6 handles fragmentation at the sender side, not by routers, improving speed.
Difference Between IPv4 and IPv6
IPv4 IPv6
IPv4 has a 32-bit address length IPv6 has a 128-bit address length
It Supports Manual It supports Auto and renumbering address
and DHCP address configuration configuration
In IPv4 end to end, connection In IPv6 end-to-end, connection integrity is
integrity is Unachievable Achievable
It can generate 4.29x10 9 address The address space of IPv6 is quite large it can
space produce 3.4x10 38 address space
The Security feature is dependent IPSEC is an inbuilt security feature in the IPv6
on the application protocol
Address representation of IPv4 is in
Address representation of IPv6 is in hexadecimal
decimal
Fragmentation performed by In IPv6 fragmentation is performed only by the
Sender and forwarding routers sender
In IPv4 Packet flow identification is In IPv6 packet flow identification are Available and
not available uses the flow label field in the header
IPv4 IPv6
In IPv4 checksum field is available In IPv6 checksum field is not available
It has a broadcast Message In IPv6 multicast and anycast message
Transmission Scheme transmission scheme is available
In IPv4 Encryption and In IPv6 Encryption and Authentication are
Authentication facility not provided provided
IPv4 has a header of 20-60 bytes. IPv6 has a header of 40 bytes fixed
IPv4 can be converted to IPv6 Not all IPv6 can be converted to IPv4
IPv4 consists of 4 fields which are IPv6 consists of 8 fields, which are separated by a
separated by addresses dot (.) colon (:)
IPv4's IP addresses are divided into
five different classes. Class A , Class IPv6 does not have any classes of the IP address.
B, Class C, Class D , Class E.
IPv4 supports VLSM( Variable
IPv6 does not support VLSM.
Length subnet mask ).
Example of IPv6:
Example of IPv4: [Link]
2001:0000:3238:DFE1:0063:0000:0000:FEFB
Benefits of IPv6 over IPv4
The recent Version of IP IPv6 has a greater advantage over IPv4. Here are some of the
mentioned benefits:
• Larger Address Space: IPv6 has a greater address space than IPv4, which is required
for expanding the IP Connected Devices. IPv6 has 128 bit IP Address rather and IPv4
has a 32-bit Address.
• Improved Security: IPv6 has some improved security which is built in with it. IPv6
offers security like Data Authentication, Data Encryption, etc. Here, an Internet
Connection is more Secure.
• Simplified Header Format: As compared to IPv4, IPv6 has a simpler and more
effective header Structure, which is more cost-effective and also increases the speed
of Internet Connection.
• Prioritize: IPv6 contains stronger and more reliable support for QoS features, which
helps in increasing traffic over websites and increases audio and video quality on
pages.
• Improved Support for Mobile Devices: IPv6 has increased and better support for
Mobile Devices. It helps in making quick connections over other Mobile Devices and
in a safer way than IPv4.