IPv 6
IPv 6
Introducing IPv6
IPv6 Network
1. What is IPv4?
IPv4 is 32-bit addresses divided into four octets (8-bits).
IP addresses are grouped into classes. Each class has a range of IP addresses.
1
IPv6 Network
2
IPv6 Network
IPv4 addresses gives us 4,294,467,295 IP addresses which was enough back in the days,
but when internet growth we need more addresses, so we came up with several short-
term solutions to make IPv4 addresses last longer like:
▪ CIDR: Classless interdomain routing, Classless networks means we don’t use the
class A, B or C networks anymore but are free to use any subnet mask we like.
Example: 192.168.1.0 with subnet mask 255.255.255.0 is the same thing as
192.168.1.0 /24.
3
IPv6 Network
▪ NAT/PAT (Network Address Translation): is used to translate private source IP
addresses to public IP addresses, allowing many hosts on our LAN to access the
Internet using a single public IP address as shown in figure below.
4
IPv6 Network
5
IPv6 Network
6
IPv6 Network
2. What About IPv5?
IPv5 is the IP number of the Internet Stream Protocol, because it uses the same data
link layer framing as IPv4:
▪ Experimental protocol.
▪ Addresses resource reservation.
▪ Designed to coexist with Ipv4; not a replacement – same addressing scheme.
Resource reservation is now done using other protocols.
1. What is IPv6?
IPv6 address is 128 bits, or 16 bytes. The address is divided into eight 16-bit hex‐
adecimal blocks separated by colons. For example:
2001:0db8:0000:0000:0202:b1ff:fe1e:8310
IPv6 Address is a long address, to abbreviate or shorten this Address there are two basic
rules.
7
IPv6 Network
Example: FE00:0000:0000:0000:0000:00FF:1930:00CD
Applying both rules we would get:
FE00::FF:1930:CD
NOTE: If two instances exist where more than one quartet in a row has
only a 0. Pick the longest such sequence, and replace it with ::
Example : FE00:0:0:1:0:0:0:56 ----> FE:0:0:1::56
8
IPv6 Network
• Migration Tools: IPv4 and IPv6 are not compatible so we need migration tools
(also called transition mechanisms). Those transition mechanisms allow hosts
on an IPv4 network to communicate with hosts on an IPv6 network, and vice
versa.
II. Unique Local: Unique local addresses are similar to private IPv4
addresses, we use this these addresses to communicate in our
own network. The FC00::/7 prefix thru FDFF::/7 is reserved for
9
IPv6 Network
unique local addresses. the figure below is an example of a unique
local address.
III. Link Local: link local addresses are used to send and receive IPv6
packets on a single subnet, especially for control plan like neighbor
discovery (the replacement of ARP) and Routing protocols. The link
local addresses use the FE80::/10 range thru FEBF::/10, the figure
below is an example of a unique local address.
10
IPv6 Network
• Multicast address: An IPv6 multicast address defines a group of
devices known as a multicast group. IPv6 multicast addresses use
the prefix FF30::/12, in which a device sends a single packet to
multiple destinations simultaneously (one-to-many), below are
the most common reserved IPv6 multicast addresses
11
IPv6 Network
12
IPv6 Network
The ISP then contact his RIR who will assign him an IPv6 prefix. The ISP
can then assign prefixes to their customers.
13
IPv6 Network
• Auto configuration:
❖ SLAAC: SLAAC provides the ability to address a host based
on a network prefix that is advertised from a local network
router via Router Advertisements (RA). The figure below
show how a host allocate ipv6 address using SLAAC
14
IPv6 Network
15
IPv6 Network
16
IPv6 Network
ICMP and ICMPv6 very similar; however, ICMPv6 is more than just ICMP
for IPv6 containing new features and improving on similar functionality
in ICMPv4.
Below are the main features of ICMPv6 :
• ICMPv6 Neighbor Discovery Protocol (NDP) is used for on-link
(same subnet) device discovery and messaging. It has five
message types, four of which are new:
• Neighbor Solicitation and Neighbor Advertisement messages:
Used for Layer 3 to Layer 2 address resolution, the Neighbor
Solicitation and Neighbor Advertisement messages are similar to
the ARP Request and ARP Reply messages in IPv4. They use
message type field value of 135 And 136.
Below a Comparison of IPv4 ARP Request and ARP Reply to IPv6 NS and
NA Messages
17
IPv6 Network
18
IPv6 Network
Here are some ICMPv6 informational messages
19
IPv6 Network
20
IPv6 Network
runs SPF, etc. There are however some differences. Here are
some of the differences:
Link-local addresses: OSPFv3 packets are sourced from link-local IPv6
addresses.
Links, not networks: OSPFv3 uses the terminology links where we
use networks in OSPFv2.
New LSA types: there are two new LSA types, and LSA type 1 and 2
have changed.
Interface commands: OSPFv3 uses interface commands to enable it on
the interface, we don’t use the network command anymore as OSPFv2
does.
OSPFv3 router ID: OSPFv3 is unable to set its own router ID like OSPFv2
does. Instead, you have to manually configure the router ID. It is
configured as a 32-bit value, same as in OSPFv2.
Multiple prefixes per interface: if you have multiple IPv6 prefixes on an
interface then OSPFv3 will advertise all of them.
Authentication: OSPFv3 doesn’t use plain text or MD5 authentication
as OSPFv2 does. Instead, it uses IPv6’s IPSec authentication.
❖ Configuration of OSPv3:
21
IPv6 Network
OSPFv3 process :
▪ EIGRP for IPv6: similar to IPv4 ,This is how you enable EIGRP for
IPv6
22
IPv6 Network
Three tools allow this transition mechanism:
• Dual IPv4/IPv6 stacks (dual stacks)
• Tunneling
• NAT Protocol Translator (NAT-PT)
• Tunneling:
Tunneling refers to a process by which one router or host encapsulates
the IPv6 packet inside an IPv4 packet.
Allows isolated IPv6 end system and routers to communicate without
the need to upgrade the IPv4 infrastructure that exists between them.
▪ The two main categories of tunnels are: point-to-point tunnels
and multi-point tunnels.
23
IPv6 Network
1. point-to-point tunnels:
Point-to-point tunnels (MCT and GRE) have many similarities:
» They both create a virtual point-to-point link between two IPv4
routers.
» IPv6 IGP routing protocols can run over these virtual links.
» The difference between GRE and MCT is that MCT encapsulates
packets without an additional header, whereas GRE uses an addition
stub header.
1.1 MCT TUNNEL (manually configured tunnel):
24
IPv6 Network
▪ Supports IPv6 IGPs
▪ Slightly less overhead than GRE.
2. multi-point tunnels:
» These tunnels also do not support IPv6 IGPs, requiring the use of
either static routes or multiprotocol BGP.
25
IPv6 Network
» These tunnels are best for less frequent traffic.
» There are two types of multipoint tunnels: automatic 6to4 tunnels
and ISATAP tunnels
26
IPv6 Network
• NAT Protocol Translator (NAT-PT)
The translation from IPv4 to IPv6 and vice versa on a router , NAT-PT
translates both the source and destination IP address , it also translates
the entire IPv4 and IPv6 header
27
IPv6 Network
NAT-PT also translates DNSv4 to DNSv6 and keeps track of the names
and address bindings.
28