compressionipv6

Compression Rules to IPv6


I'm having trouble compressing the IPv6 address: 8​b​f​a​:​9​9​f​0​:​d​4​c​5​:​0​b​8​c​:​0​f​6​f​:​0​4​d​f​:​2​8​0​4​:​2​8​3​d​

I think it would be: 8bfa:99f:d4c5:b8c:f6f:4df:284:283d

Unfortunately, this is not correct.


Solution

  • Just like regular decimal numbers you work with every day, only leading zeros can be removed. Trailing zeros and zeros in the middle must stay.

    If the other ones could be removed you wouldn't know whether 284 means 0284, 2084, 2804, or 2840.