A common complaint about IPv6 is that addresses are “hard to read”. If you’ve been in the networking world any length of time IPv4’s dotted quad is most likely seared into your brain and clumps of hexadecimal digits of varying lengths can can be hard to wrap your head around. However, those clumps can provide useful information.
Below I’ll go over some of the address types I’ve seen and show you what information they provide.
NOTE: I’m not going to explain the basics of IPv6 address formats. Plenty of others have done that elsewhere. Wikipedia and RFC 4291 are good places to start.
Many of Wireshark’s web sites have been available over IPv6 for a while and as I’ve looked through various capture files and server logs patterns have emerged. Most of the addresses in this post are from IPv6 traffic captured in late January 2011. In Wireshark you can view IPv6 addresses via Statistics→Endpoint List→IPv6 or Statistics→Conversation List→IPv6 or by using the display filter “ipv6”.
First let’s look at the network prefixes that were captured. In my sample capture I see the following /16s (which we’ll call chunks for now):
Most of the traffic in the capture starts with “2”. The prefix 2000::/3 has been assigned for global unicast traffic — that is, traffic you should see on the public internet. Right now you should only see prefixes between 2001::/16 and 2c00::/16 since IANA has only assigned prefixes in that range.
This alone is incredibly useful. A simple regular expression “…:” (a “2” or “3” followed by three characters followed by a “:”) can be used to match public IPv6 traffic. I use this to find IPv6 addresses in Apache access logs.
Wireshark’s display filter engine doesn’t support prefix lengths for IPv6 addresses (not yet, at least) but you can use arithmetic comparisons to find public addresses, e.g. “ipv6.src >= 2000:: && ipv6.src < 4000::”.
Many prefixes in the assigned range are recognizable:
- 2002:: — 6to4 traffic. MTUs from these addresses will probably be lower than normal.
- 2001:470:: — Hurricane Electric. HE provides a popular tunnel broker service, so MTUs from these address will often be lower than normal.
- 2001:0:: — Teredo tunneling.
- Organizations with large v6 deployments such as 2001:420 (Cisco) 2001:4860 (Google)
The prefixes outside the global unicast range (fe80:: and ff02::) are link-local and multicast addresses respectively. Both of these are limited to the local network and typically used for ICMPv6 neighbor discovery.
Now let’s skip over to the last half of the addresses and look at some of the recognizable bits in the host portion:
- ::5efe:xxyy:zzqq — ISATAP. Yet another tunneling technology. xx, yy, zz, and qq represent a tunnelled IPv4 address.
- ::xxyy:zzff:feqq:rrss — SLAAC. This is the machine’s MAC address (xx:yy:zz:qq:rr:ss) with “ff:fe” shoved in the middle.
- ::random digits — A SLAAC privacy extension address.
There are two things of note about these last two. Windows has SLAAC privacy extensions enabled by default, while other operating systems (particularly Linux and OS X) don’t. You can often tell machine’s OS by looking at the host portion its IPv6 address. Furthermore, one of the big complaints about IPv6 (big hairy addresses) is actually a feature.
Now take a look at the following addresses. Notice anything unusual?
Compared to the formats above they’re short. The host portion is mostly zeroes. These are manually assigned. In this case they’re all web server addresses. I added them to demonstrate that the length of IPv6 addresses is often up to you.
Are there any patterns or address types I missed? Feel free to share them below.
Great post Gerald!
Interesting that you too have noticed the need for a better name for the Chazwazza/Chunk/Hextet in IPv6: http://www.netresec.com/?page=Blog&month=2011-02&post=Name-the-Chazwazza-in-IPv6
The explanations are clear, thank you. Indeed, they’re not that hard to read, when you think about it.
Just thought I’d let you know your FAQ page talks about the “man page” instead of the “main page”. While I’m sure a man page would be interesting, I’m also fairly sure it’s not what you meant. 😉
Q 1.10: What protocols are currently supported?
A: There are currently hundreds of supported protocols and media. Details can be found in the wireshark(1) man page.
@Cassondra In this case “man page” means just that. It’s an abbreviation for “manual page”: http://en.wikipedia.org/wiki/Man_page
This is completely unrelated to your post, but I wrote a script that helps automate the Wireshark install for OS X 10.6. The script only requires that you mount the dmg. It will then prompt you for the admin password and user short name to modify the permissions necessary for Wireshark to function. I’d love to send it to you if I could.
@Rob Can you send the script to the wireshark-dev mailing list or attach it to a bug at bugs.wireshark.org?
Thanks Gerald. Just send the script to the dev mailing list.
Facebook has a quite amusing IPv& address:
http://www.v6.facebook.com. 3600 IN AAAA 2620:0:1cfe:face:b00c::3