

You can use the both zero and leading zero compression together by following the rules of these compression techniques. IPv6 address with Leading zero compression:Ģ001:1265:0:0:AE4:0:5B:6B0 Both Zero and Leading zero compression If you have all zero in a hextex you can represent this hextex with one zero. In leading zero compression you can eliminate the starting zero(s) from any hextex. Review the example for better understanding.Ģ001:1265::0AE4:0000:005B:06B0 IPv6 Leading Zero Compression In zero compression you can represent group of zeros by one double-colon (::) but you can perform this only once in your IPv6 address, means if you have two group of zeros in your IPv6 address you can use the double-colon only once. These compression rules and methods are as follow: In Ipv6 addresses, a contiquous sequence of blocks set to 0 can be compressed to :: (double colon). IPv6 address consist of 8 hextets or parts which is normally difficult to remember, therefore there are some compression method, using compression techniques you can represent IPv6 in more understandable and simple way. This is a simple example of IPv6 address, you can see in below figure IPv6 address have eight hextets/parts and each hextet/part consist of 4 digits and of 16bits, while every digits is of 4bits that you can find from above table. Representation of all hexadecimal number/digits in binary form is as follows: Hexadecimal # IPv6 addresses are in hexadecimal form, so each digit is of four bits, IPv6 address’s consist of possible digits are 0 1 2 3 4 5 6 7 8 9 A B C D E F.

This can only be applied once per IPv6 address, otherwise, the shortened representation becomes ambiguous. Rule 1, called Zero Compression, omits a group of consecutive zeros and replaces them with a double colon (::). Two rules have been introduced that shorten the address representation. IPv6 address is of 128 bits and represented in eight octets of 16 bits. Due to its length, it is hard to work with.
