IPv6 address is short form of IP address version 6. It is basically a 128 bit address. In IPv6 adress, hexadecimal notation is preferred. There are total 8 fields in IPv6 hexadecimal notation and each field consists of 16 bits.
Hence, total bits are 8 x 16 = 128
Rules for compression:
There are basically three rules for compression:
- Rule-1: When only 0 (zero) is available in a field then it is removed from the IPv6 address notation.
IPv6 = FE82:1234:0:1235:1416:1A12:1B12:1C1F After compression, IPv6 = FE82:1234::1235:1416:1A12:1B12:1C1F
- Rule-2: When continuous 0s (zeros) are available in IPv6 address notaion then all zeros are replaced by ::.
IPv6 = FE82:0:0:0:0:1A12:1234:1A12 After compression, IPv6 = FE82::1A12:1234:1A12
- Rule-3: When zeros are present in discontinuous places then at only one junction, 0s (zeros) are replaced by ::.
IPv6 = 2001:1234:0:0:1A12:0:0:1A13 After compression, IPv6 = 2001:1234::1A12:0:0:1A13 or = 2001:1234:0:0:1A12::1A13
Unspecified Address: When in hexadecimal notation of IPv6 all fields are 0. It is denoted by ::.
:: = 0:0:0:0:0:0:0:0
Loop Back Address: When in hexadecimal notation of IPv6 all fields are 0 except the last field and last field value is 1. It is denoted by ::1.
::1 = 0:0:0:0:0:0:0:1
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Difference between Lossy Compression and Lossless Compression
- Transition from IPv4 to IPv6 address
- Difference Between Network Address Translation (NAT) and Port Address Translation (PAT)
- Difference between MAC Address and IP Address
- Difference between 3-address instruction and 1-address instruction
- Difference between 3-address instruction and 0-address instruction
- Difference between 3-address instruction and 2-address instructions
- Difference between 2-address instruction and 1-address instructions
- Internet Protocol version 6 (IPv6)
- Internet Protocol version 6 (IPv6) Header
- IPv6 Addressing Format and Conventions
- What is IPv6?
- IPv6 Fragmentation Header
- Differences between IPv4 and IPv6
- LZW (Lempel–Ziv–Welch) Compression technique
- Data Compression With Arithmetic Coding
- Shannon-Fano Algorithm for Data Compression
- PGP - Compression
- Difference between Inter and Intra Frame Compression
- DjVu Compression in Computer Network
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.