IPv6Addressing BrianMcGehee
IPv6Addressing BrianMcGehee
IPv6 Addressing
• How is an IPv6 address represented
– represented in Hexadecimal
• Classifications of IPv6 addresses
• Reserved Multicast addresses
IPv6 Addressing
• How do we count?
• Base 10 numbering system (10 symbols)
• 0–9
• Known as the “decimal” system
IPv6 Addressing
• How do computers count? (a.k.a, “bits”)
• Base 2 numbering system (2 symbols)
• 0–1
• Known as the “binary” system
IPv6 Addressing
• What is hexadecimal?
• Base 16 numbering system (16 symbols)
• 0–F
• A simplified way to represent groups of 4
binary “bits”
IPv6 Addressing
Counting hexadecimal
0 9 14
1 A 15
B 16
2
C 17
3 D 18
4 E 19
5 F 1A
6 10 1B
11 1C
7
12 1D
8 13
IPv6 Addressing
• How was it done with IPv4?
• 32 bit address
• Divided into 4 “octets” (8 bits or a byte)
• Each octet ranging from (0-255)
3FFE:80F0:2:0:0:10:0:0
3FFE:80F0:2::10:0:0
3FFE:80F0:2:0:0:10::
3FFE::22::
3FFE::22:0:0:0 or 3FFE:0:0:0:22::
2001:CB8E:002A:0000:0000:0000:0000:0D15
0010 0000 0000 0001 1100 1011 1000 1110 0000 0000 0010 1010 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1101 0001 0101
2001:CB8E:2A::/64 is network
IPv6 Prefix
2002:3F0E:102A::7/48
2002:3F0E:102A:0000:0000:0000:0000:0007
0010 0000 0000 0010 0011 1111 0000 1110 0001 0000 0010 1010 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0111
2002:3F0E:102A::/48 is network
IPv6 Prefix
3FFE:10C2:43EE:D0C:F::C15/126
3FFE:10C2:43EE:0D0C:000F:0000:0000:0C15
0011 1111 1111 1110 0001 0000 1100 0010 0100 0011 1110 1110 0000 1101 0000 1100
0000 0000 0000 1111 0000 0000 0000 0000 0000 0000 0000 0000 0000 1100 0001 0101
3FFE:10C2:43EE:D0C:F::C14/126 is network
IPv6 Prefix
2002:3F0E:102A:3010:33::7/75
IPv6 Prefix
2002:3F0E:102A:3010:33::7/75
2002:3F0E:102A:3010:0033:0000:0000:0007
0010 0000 0000 0010 0011 1111 0000 1110 0001 0000 0010 1010 0011 0000 0001 0000
0000 0000 0011 0011 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0111
2002:3F03:102A:3010:20::/75
Types of IPv6 Addresses
• Unicast
• Multicast (no broadcast)
• Anycast
Unicast Address
• A single unique address identifying an IPv6
interface
Multicast Address
• An identifier for a group of interfaces.
– Usually belonging to more than one node
– Interfaces may belong to more than one
multicast group
– Replaces broadcasts
– May not be used as a source address
Anycast Address
• An IPv6 address that is assigned to more
than one interface (typically more than one
node).
– Same as Unicast addresses
– Derived from the same address space
– Packets destined for anycast address are
delivered to the “nearest” interface
– Subnet router anycast address definition
Anycast example
router
advertising
192.88.99.0/
24
router
router advertising
advertising 192.88.99.0/
192.88.99.0/ 24
24
Other IPv6 Addresses
• The unspecified Address
– 0:0:0:0:0:0:0:0 ::
• The loopback Address
– 0:0:0:0:0:0:0:1 ::1
IPv6 Addressing
0000 0000 Unassigned* 011 Unassigned
0000 0001 Unassigned 100 Unassigned
0000 001 NSAP 101 Unassigned
0000 01 Unassigned 110 Unassigned
0000 1 Unassigned 1110 Unassigned
0001 Unassigned 1111 0 Unassigned
001 Aggregatable 1111 10 Unassigned
010 Unassigned 1111 110 Unassigned
1111 1110 0 Unassigned
* Being deprecated
IPv6 Addressing
• Unicast Addressing
– ISPs assign these addresses to organizations
– Offers globally-unique addresses
IPv6 Addressing
• Site-Local-Use Addresses*
– Assigned to interfaces within an isolated
intranet
– Can easily be migrated to provider-based
addresses
– Much like private addressing in IPv4 (i.e.
10.0.0.0 network)
*Being deprecated
IPv6 Addressing
• Link-Local-Use Addresses
– All IPv6 interfaces have a link-local address
– Used to reach neighboring nodes attached to
same link
– Self-configured by interface
– Router will not forward packets with Link-
Local source or destination
IPv6 Addressing
• Link-Local-Use Addresses
– Usually formed by pre-pending the “well
known” Link-Local prefix FE80::0 to the
Interface Identifier
– Can be statically assigned or created through a
pseudo random process
IPv6 Addressing
• Interface Identifier
– Always 64 bits (least significant)
– Can be “randomly” generated – RFC 3041
– Ethernet uses MAC (or EUI-64)
IPv6 Addressing
• What is EUI-64
– Extended Unique Identifier. Replaces MAC
addresses
– 24-bit company_id (tracked by IEEE)
– 40-bit “unique” identifier
IPv6 Addressing
• What is MAC and how does it work w/ EUI
– Media Access Control. 48 bits
– 24-bit company_id (tracked by IEEE)
– 24-bit “unique” identifier
– Mapped into EUI-64 for creation of an
Interface Identifier
IPv6 Addressing
• How is MAC converted to EUI
– Example MAC CC-CC-CC-UU-UU-UU
• CC = Company identifier
• UU = Unique identifier
– Insert FF-FE between CC and UU
– CC CC CC FF FE UU UU UU
IPv6 Addressing
• Example MAC-to-EUI conversion
– MAC = 00-D0-59-0C-61-F3
– EUI = 00-D0-59-FF-FE-0C-61-F3
IPv6 Addressing
• The IPv6 interface identifier is formed by
complimenting the “Universal/Local” bit in
an EUI-64 address
– EUI = 00-D0-59-0C-61-F3
– 0000 0000 1101 0000 0101 1001 0000 1100 0110 0001 1111 0011
Interface Identifier
Interface Identifier