Couple of IPv6 Notes
Ive been skimming over IPv6 over the last couple of days, and my written date is imminent so I wont be blogging in huge detail just skimming over some weak spots in my knowledge.
IPv6 Address Types
Most of us are familiar with the fact that IPv6 supports Multicast, Unicast and Anycast. Just like in IPv4 we can tell alot from the destination IP address, some of this is summarised below;
Aggregatable Global Unicast addresses belong in the 200::/3 range and are globally routable addresses for host to host communication. While the first 3 bits are always 001, the next 45 bits are allocated by the RIR (IPv6 allocations are generally given a /48), the following 16 bits can be used to define the subnet or Site Level Aggregator (SLA) and the final 64 bits are used as the interface ID.
Multicast - As in IPv4 they are used for one to many, or many to many communication, all IPv6 multicast addresses belong in the FF00::/8 range
Link Local Unicast addresses types are used for communication on the local link and are in the FE80::/10 range. While the first few bits are FE80, the next 54 bits are always set to 0 and the remaining 64 bits are the MAC address in an EUI-64 format. Remember an EUI-64 formatted address is simply the mac with FFFE placed directly in the middle!
Solicited-node Multicast addresses are used for querying of network nodes for address resolution, it fulfils a similar purpose to ARP but is not broadcast. The messages to sent to the address FF02::1:FF00:0/10 with the last 24 bits set to the IPv6 address it is trying to be resolved.
IPv6 Message Types
There are a variety of message types which fulfil different functions which I should be aware of these are;
Router Advertisement (RA) – these messages are sent by the routers link local address to FF02::1 and advertise the link prefixes, MTU and hop limits. They are sent periodically or in response to a host seeing a RS message
Router Solicitation (RS) – these message are sent by hosts to FF02::2 to query for the presence of a router, an RA message will be sent by the router in response
Neighbour Solicitation (NS) - these messages are sent by hosts to the solicited node multicast address or if known the target nodes address to query the other hosts link layer address. An NS message will receive a NA response from the host and used to detect duplicate addresses and ensure network reachability.
Neighbour Advertisement (NA) – these messages are sent in response to NS messages via unicast or sent to the address FF02::1 as a periodic advertisement
Redirect - this message type is sent by routers to a the link local address to inform them of a better next hop router.
