IPv6 Addressing
IPv6 Addressing
Addressing
Presented By,
Rafiqul Islam
Senior Engineer
Broadband Service Delivery and Operation
Technology & Operations
Content
IPv6 Overview of
IPv6 Address Special Unicast Global Unicast
Addressing IPv6 Address
Representation Addresses Addresses
Model Types
Well-known What is a
IPv6 Address
Multicast IPv6 Subnetting nibble
Planning
Addresses boundary?
2
IPv6 Address Representation
IPv6 address is 128 bits
2001:db8:1234::8DC0:A910 nibble
3
IPv6 Address Representation
2001:0DB8:0000:0000:0000:036E:1250:2B00
• Abbreviated form
2001:0DB8:0000:0000:0000:036E:1250:2B00 Leading 0s
4
IPv6 Address Representation
Double colons (::) representation
• RFC5952 recommends that the largest set of :0: be replaced with :: for
consistency
• 2001:0:0:0:2F:0:0:5
• 2001::2F:0:0:5 instead of 2001:0:0:0:2F::5
• Where there is same number of :0:, the first set be replaced with ::
• 2001:DB8:0:0:2F:0:0:5
Prefix Representation
• Representation of prefix is similar to IPv4 CIDR
5
IPv6 Addressing Model
• Unicast Address
– Assigned to a single interface
B
– Packet sent only to the interface with that address
A
B
• Anycast Address
– Same address assigned to more than one interface B
(on different nodes)
– Packet for an anycast address routed to the nearest A
interface (routing distance) B
• Multicast Address
– group of interfaces (on different nodes) join a
multicast group B
– A multicast address identifies the interface group
– Packet sent to the multicast address is replicated to A
all interfaces in the group
9
Overview of IPv6 Address Types
IPv6 Addressing
Unicast • ::/128
8
Globally unique and routable IPv6
address
Global
Unicast
The Internet Assigned Numbers
Authority (IANA) currently assigns IPv6
addresses only out of the binary range
starting with 001, that means 2000::/3.
Addresses
IANA has allocated Global Unicast
Addresses to RIRs (Regional Internet
Registry). There are five RIRs. For
example, APNIC has been allocated
2400::/12.
IPv6 Addressing Structure
Network Prefix
10
IPv6 Addressing Structure
0 63 64 127
Network Prefix Interface ID
32
16
16
ISP /32
64
C ustomer Site /48
End Site Subnet /64 Device 128 BitAddress
Link-local Unicast Addresses
• The link-local address is used by routers as the next-hop address when forwarding IPv6
packets
• All IPv6 hosts on a subnet/link, use the router’s link-local as the default gateway
• Routers use the link-local as the source in ND-RA messages
12
Unique Local Unicast Addresses
• Similar to RFC1918 addresses (but within a “site”)
– Unique within a site
– Routable within site(s)
– Not ‘expected’ to be routed on the internet
FC00::/7
13
Modified EUI-64 format
• Allows IPv6 device to compute a
unique 64 bit Interface ID using
the interface MAC address (48 bit)
OUI NIC
14
IPv6 Addressing EUI-64
LAN: 2001:db8:213:1::/64
Eth0
interface Ethernet0
ipv6 address 2001:db8:213:1::/64 eui-64 MAC address: 0060.3e47.1530
16
Well-known Multicast Addresses
2001:DB8::/32
IPv6 Subnetting
Q. Find the blocks provided to the first 4 customers
v1.0
IPv6 Subnetting
Original block: 2001:0DB8::/32
This is your
Rewrite as a /48 block: 2001:0DB8:0000::/48 network prefix!
2^16 = 65536
Find only the first 4 /48 blocks…
v1.0
IPv6 Subnetting
Start by manipulating the LSB of your
network prefix – write in bits
2001:0DB8:0000::/48
In bits
In the context of IPv6, the nibble boundary refers to 4 bits. Any change in multiples of 4 bits is easy to calculate.
For example, we have an allocation: 2001:db8::/32. Taking slices from this pool within a 4-bit boundary is quite
easy.
/36 slices (1 x 4 bits) /40 slices (2 x 4 bits) /44 slices (3 x 4 bits) /48 slices (4 x 4 bits)
2001:db8:0000::/36 2001:db8:0000::/40 2001:db8:0000::/44 2001:db8:0000::/48
2001:db8:1000::/36 2001:db8:0100::/40 2001:db8:0010::/44 2001:db8:0001::/48
2001:db8:2000::/36 2001:db8:0200::/40 2001:db8:0020::/44 2001:db8:0002::/48
2001:db8:3000::/36 2001:db8:0300::/40 2001:db8:0030::/44 2001:db8:0003::/48
…. …. …. ….
v1.0
IPv6 Address Planning
• Network Operators normally are allocated /32 by RIRs
/12
APNIC Allocation
v1.0
IPv6 Address Planning Considerations
• Shift in thought:
o IPv4: number of hosts
o For example,
v1.0
THANK YOU
Any Question?
24