Computer Networking - Use RULE 2 to reduce the IPv6 addresses to their shortened form. Please do at least a couple so I get the idea.
Rule 2: Omission of the All-0 Hextets Using Rule 2 ONLY reduce the IPv6 addresses to their shortened form.
1. 0000:0000:0000:0000:0000:0000:0000:0000
2. 0000:0000:0000:0000:0000:0000:0000:0001
3. 2000:0000:0000:0000:0000:ABCD:0000:0025
4. 3F00:0090:0000:0000:0000:0098:0000:0001
5. 2001:3756:0005:0000:ACAD:0000:0000:0025
6. 3FFF:FF00:0000:0000:ACAD:0025:0000:0127
7. 2001:ACAD:0000:ABCD:FFFF:0000:0000:0001
8. 3ABC:0001:ACAD:0000:0000:1234:0000:0005
9. FC00:0000:0000:0000:3E00:1275:0000:0034
10. FE95:FC6C:C540:0000:0000:0000:0000:9800
11. FF00:ACAD:0000:0000:1234:0000:0000:0001
To remove the all-0 hextets from an IPv6 address, all you have to do is, replace a consecutive string of hextets with colon, but you can do it only once.
For example, let us take the third one
IPv6 address- 2000:0000:0000:0000:0000:ABCD:0000:0025
In order to compress this, you can take the zeroes after 2000 up till ABCD and replace them with :
So the compressed IPv6 address becomes - 2000::ABCD:0000:0025
4) 3F00:0090:0000:0000:0000:0098:0000:0001
In order to compress this, replace the zeroes after 0090 till 0098 and so the compressed address becomes
3F00:0090::0098:0000:0001
Note, you can do this for, only one consecutive string of zeroes and therefore, the zeroes after 0098 were not replaced with ':'.
5) 2001:3756:0005:0000:ACAD:0000:0000:0025
In this one, you will replace the zeroes after ACAD and before 0025. and so the compressed address becomes
2001:3756:0005:0000:ACAD::0025
Notice here that, we replace the longest consecutive hextets of zeroes.
6) 3FFF:FF00:0000:0000:ACAD:0025:0000:0127
Also, here it compresses to 3FFF:FF00::ACAD:0025:0000:0127
7) 2001:ACAD:0000:ABCD:FFFF:0000:0000:0001
This compresses to 2001:ACAD:0000:ABCD:FFFF::0001
NOTE:
There are two other rules also used for compressing the IPv6 addresses
1) You can replace a hextet of 4 zeroes with a single zero.
So, the 7th number IP address compresses to
2001:ACAD:0:ABCD:FFFF::0001
The 6th number further compresses to 3FFF:FF00::ACAD:0025:0:0127 and the 5th one will be compressed to 2001:3756:0005:0:ACAD::0025 so on.
2) Also, if there are leading zeroes, they can be removed.
So, for example 5th address will be further compressed to 2001:3756:5:0:ACAD::25 and the 6th one will become 3FFF:FF00::ACAD:25:0:127 and the 7th one will become 2001:ACAD:0:ABCD:FFFF::1
Compressing the remaining values, using only the earlier mentioned rule:
1) 0000:0000:0000:0000:0000:0000:0000:0000 => :
2) 0000:0000:0000:0000:0000:0000:0000:0001 => ::1
3) 2000:0000:0000:0000:0000:ABCD:0000:0025 => 2000::ABCD:0000:0025
8) 3ABC:0001:ACAD:0000:0000:1234:0000:0005 => 3ABC:0001:ACAD::1234:0000:0005
9) FC00:0000:0000:0000:3E00:1275:0000:0034 => FC00::3E00:1275:0000:0034
10) FE95:FC6C:C540:0000:0000:0000:0000:9800 => FE95:FC6C:C540::9800
11) FF00:ACAD:0000:0000:1234:0000:0000:0001 => FF00:ACAD::1234:0000:0000:0001
Hope you understood the concept of compressing IPv6 address, and if I have been of any help, please give a thumbs up to the answer.
Computer Networking - Use RULE 2 to reduce the IPv6 addresses to their shortened form. Please...