Home » Linux

Explain IPv4 and IPv6 protocols with differences

Learn: What are the IPv4 and IPv6 protocols, what are the differences between IPv4 and IPv6, what are their address formats?

In our last posts, we have discussed about two commands ping - to ping a node connected with IPv4 based network and ping6 - to ping a node connected with IPv6 based network.

In this post, we are going to learn about IPv4 and IPv6 network protocols with their differences and address formats.

1) IPv4 protocol

IPv4 is version 4th of Internet protocol, which is first widely, used internet protocol. It is most popular protocols of standards-based inter-networking methods over the Internet and It was deployed for production in the ARPANET in 1983 for production.

IPv4 protocol is represented by 32-bit integer value. it uses dot-decimal notation, it consists of four octets separated by dot(.) .

Maximum value of one octet can be 255.

Example of Internet Protocol: 

Here, First octet is 192, second is 168, third is 10 and fourth octet is 25.

IPv4 is a connection-less protocol, which is used in packet-switched networks. Network setting based on IPv4 is contains following things:

  • IP Address
  • Subnet Mask
  • Default gateway

IPv4 is support by almost all operating systems like: Windows, Linux, MAC and others.

Sometimes for subnet mask we use CIDR notations.

IPv4 network protocl

2) IPv6 protocol

IPv6 is the 6th version of internet protocol, which is recent and widely used version of internet protocol.

Every device in network has its unique IPv6 address for identification, it is successor of IPv4 protocol, which was launch in 1998 for production.

IPv6 was developed by the Internet Engineering Task Force (IETF) to resolve the problem, when IPv4 addresses limit is exceeds in network.

Actually, in IPv6 we have freedom to use address more than IPv4. It uses 128 bit to represent an IP address and it allows 2^128, or approximately 3.4×1038 addresses.

IPv6 is an internet Layer protocol of TCP/IP (Transmission control protocol) model. It is used for packet-switched internetworking and it provides end-to-end datagram transmission across multiple IP networks.

IPv6 supports multiple features:

  • It supports stateless address auto configuration.
  • Network renumbering.
  • Router announcements etc.

Example of IPv6 address:


Network setting based on IPv6 is contains following things:

  • IP Address
  • Prefix
  • Default gateway

IPv4 is support by almost all operating systems like: Windows, Linux, MAC and others.

IPv6 network protocl

Difference between IPv4 and IPv6

These are the differences between IPv4 and IPv6 protocols:




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© some rights reserved.