IPv4 which is mainly for identifying the different types of hosts, you need to understand that this IP type certainly is very different and the concept of similarity between two protocols is very much misguided. This type of IP works with class-full and class-less concepts of internet technology and has many other aspects to understand well. You also need to understand that IPv4 has different classes from A, B, C, E. You can say if first class which is A has 8bits of 32 bits identifying the network as well, the class B will have different amount of bits in it. As the limitation of the address spaces, CIDR Classless Inter-Domain Routing has also been introduced to help out the difficult process. You can say that if address space increase the information data will also increase in less time. As CIDR also introduce different types of network and their variable lengths.
- Image Courtesy: amazon.com
IPv6 on the other hand, works and provides help to overcome the shortage of the IP address space. It works with having 128 bit number with address of 2128. This, IPv6 also gives some relief and more flexibility to overcome difficult addressing as we need to focus on the overall network where IPv6 is considered very essential. You should also know that IPv6 basically provide and represented with eight groups of 16 bit hexadecimal. For example 2607:f0d0:1002:0051:0000:0000:0202:0004.
You can also write the single occurrence of digits as it is shown in the example. 2607:f0d0:1002:0051:0000:0000:0202:0004
- Image Courtesy: webtrain4u.co.uk