Information

Author(s) Emilie Deprez
Deadline No deadline
Submission limit No limitation
Category tags ipv6

Tags

Sign in

Compress IPv6 addresses

An IPv6 address has a full representation of eight groups of four digits separated by colons (:). However, it can be written in compressed form to allow a better lisibility. For example, the address 2001:db8:bad:cafe:: is a compressed form of 2001:0db8:0bad:cafe:0000:0000:0000:0000.

More information about format can be found in the IPv6 addressing architecture chapter of Computer Networking: Principles, Protocols and Practice.

Compress the following IPv6 addresses into a shortest form.


Question 1: Compress address
Compress the IPv6 address 2001:0db8:07b7:0000:0000:0000:0000:0000

Question 2: Compress address
Compress the IPv6 address 0000:0000:0000:0000:0000:0000:0000:000d

Question 3: Compress address
Compress the IPv6 address 0930:0000:0000:0000:0000:0000:0000:0000

Question 4: Compress address
Compress the IPv6 address 2001:0db8:e000:0000:0000:0000:0000:00e5

Question 5: Compress address
Compress the IPv6 address 0000:0000:00b7:0000:0000:0000:0000:0046

Question 6: Compress address
Compress the IPv6 address 4977:0000:0000:0000:0efc:0000:0000:0000

Question 7: Compress address
Compress the IPv6 address fc73:0e20:0243:0d20:0010:006a:000e:0900

Question 8: Compress address
Compress the IPv6 address 2001:0db8:074f:1944:0000:0000:0002:0000