BSCI30S08 IPv6
BSCI30S08 IPv6
BSCI30S08 IPv6
Introducing IPv6
Why Do We Need a Larger Address Space?
• Internet population
– Approximately 973 million users in November 2005
– Emerging population and geopolitical and address space
• Mobile users
– PDA, pen-tablet, notepad, and so on
– Approximately 20 million in 2004
• Mobile phones
– Already 1 billion mobile phones delivered by the industry
• Transportation
– 1 billion automobiles forecast for 2008
– Internet access in planes – Example: Lufthansa
• Consumer devices
– Sony mandated that all its products be IPv6-enabled by 2005
– Billions of home and industrial appliances
IPv6 Advanced Features
IPv4
• 32 bits or 4 bytes long
– ~
= 4,200,000,000 possible addressable nodes
IPv6
• 128 bits or 16 bytes: four times the bits of IPv4
– ~
= 3.4 * 1038 possible addressable nodes
– ~
= 340,282,366,920,938,463,374,607,432,768,211,456
– ~
= 5 * 1028 addresses per person
Larger Address Space Enables
Address Aggregation
Format:
• x:x:x:x:x:x:x:x, where x is a 16-bit hexadecimal field
– Case-insensitive for hexadecimal A, B, C, D, E, and F
• Leading zeros in a field are optional:
– 2031:0:130F:0:0:9C0:876A:130B
• Successive fields of 0 can be represented as ::, but only once per address.
Examples:
– 2031:0000:130F:0000:0000:09C0:876A:130B
– 2031:0:130f::9c0:876a:130b
– 2031::130f::9c0:876a:130b—incorrect
– FF01:0:0:0:0:0:0:1 FF01::1
– 0:0:0:0:0:0:0:1 ::1
– 0:0:0:0:0:0:0:0 ::
IPv6 Address Types
IPv6 uses:
• Unicast
– Address is for a single interface.
– IPv6 has several types (for example, global and IPv4 mapped).
• Multicast
– One-to-many
– Enables more efficient use of the network
– Uses a larger address range
• Anycast
– One-to-nearest (allocated from unicast address space).
– Multiple devices share the same address.
– All anycast nodes should provide uniform service.
– Source devices send packets to anycast address.
– Routers decide on closest device to reach that destination.
– Suitable for load balancing and content delivery services.
IPv6 Global Unicast (and Anycast)
Addresses
IPv6 has same address format for global unicast and for anycast.
• Uses a global routing prefix—a structure that enables aggregation upward,
eventually to the ISP.
• A single interface may be assigned multiple addresses of any type (unicast,
anycast, multicast).
• Every IPv6-enabled interface must contain at least one loopback (::1/128) and one
link-local address.
• Optionally, every interface can have multiple unique local and global addresses.
• Anycast address is a global unicast address assigned to a set of interfaces
(typically on different nodes).
• IPv6 anycast is used for a network multihomed to several ISPs that have multiple
connections to each other.
IPv6 Unicast Addressing
• Link-local addresses have a scope limited to the link and are dynamically
created on all IPv6 interfaces by using a specific link-local prefix FE80::/10
and a 64-bit interface identifier.
• Link-local addresses are used for automatic address configuration, neighbor
discovery, and router discovery. Link-local addresses are also used by many
routing protocols.
• Link-local addresses can serve as a way to connect devices on the same
local network without needing global addresses.
• When communicating with a link-local address, you must specify the
outgoing interface because every interface is connected to FE80::/10.
EUI-64 to IPv6 Interface Identifier
• The MAC address may form a portion of the IPv6 system ID.
• IPv6 multicast addresses are defined by the prefix FF00::/8.
Multicast is frequently used in IPv6 and replaces broadcast.
• IPv6 provides an efficient means to implement mobile IP,
which has not been possible with IPv4.
Implementing IPv6
Same as IPv4
• Distance vector, radius of 15 hops, split horizon, and poison
reverse
• Based on RIPv2
Updated features for IPv6
• IPv6 prefix, next-hop IPv6 address
• Uses the multicast group FF02::9, the all-rip-routers multicast
group, as the destination address for RIP updates
• Uses IPv6 for transport
• Named RIPng
OSPF Version 3 (OSPFv3) (RFC 2740)
Similar to IPv4
• Same mechanisms, but a major rewrite of the internals of the
protocol
Updated features for IPv6
• Every IPv4-specific semantic removed
• Carry IPv6 addresses
• Link-local addresses used as source
• IPv6 transport
• OSPF for IPv6 currently an IETF proposed standard
Integrated Intermediate
System-to-Intermediate System (IS-IS)
• All OSPFv3 packets have a 16-byte header vs. the 24-byte header in
OSPFv2.
OSPFv3 Differences from OSPFv2
Multicast addresses:
• FF02::5—Represents all SPF routers on the link-local scope; equivalent to 224.0.0.5 in
OSPFv2
• FF02::6—Represents all DR routers on the link-local scope; equivalent to 224.0.0.6 in
OSPFv2
Removal of address semantics
• IPv6 addresses are no longer present in OSPF packet header (part of payload information).
• Router LSA and network LSA do not carry IPv6 addresses.
• Router ID, area ID, and link-state ID remain at 32 bits.
• DR and BDR are now identified by their router ID and not by their IP address.
Security
• OSPFv3 uses IPv6 AH and ESP extension headers instead of variety of the mechanisms
defined in OSPFv2.
LSA Overview
LSA Function
LSA Type
Code
Router LSA 1 0x2001
Network LSA 2 0x2002
Interarea prefix LSA 3 0x2003
Interarea router LSA 4 0x2004
AS external LSA 5 0x2005
Group membership LSA 6 0x2006
Type 7 LSA 7 0x2007
Link-LSA 8 0x2008
Intra-area prefix LSA 9 0x2009
Larger Address Space Enables
Address Aggregation
• Similar to OSPFv2
– Prefixes existing interface and EXEC mode commands
with “ipv6”
• Interfaces configured directly
– Replaces network command
• “Native” IPv6 router mode
– Not a submode of router ospf command
Enabling OSPFv3 Globally
ipv6 unicast-routing
!
ipv6 router ospf 1
router-id 2.2.2.2
Enabling OSPFv3 on an Interface
interface Ethernet0/0
ipv6 address 3FFE:FFFF:1::1/64
ipv6 ospf 1 area 0
ipv6 ospf priority 20
ipv6 ospf cost 20
Cisco IOS OSPFv3-Specific Attributes
interface S2/0
ipv6 address
3FFE:B00:FFFF:1::2/64
ipv6 ospf 100 area 1
Router2#
interface S3/0
ipv6 address
3FFE:B00:FFFF:1::1/64
ipv6 ospf 100 area 1
• RIP, EIGRP, IS-IS, BGP, and OSPF all have new versions to
support IPv6.
• OSPFv3 is OSPF for IPv6.
• Most of the algorithms of OSPFv2 are the same in OSPFv3.
Some changes have been made in OSPFv3, particularly to
handle the increased address size in IPv6 the fact that OSPF
runs directly over IP and all of the OSPF for IPv4 optional
capabilities, including on-demand circuit support and NSSA
areas. The multicast extensions to OSPF (MOSPF) are also
supported in OSPF for IPv6.
Summary (Cont.)
• There are two new LSAs in IPv6: LSA type 8 and LSA type 9.
The router LSA and the network LSA do not carry IPv6
addresses.
• Configuring OSPFv3 requires a good background
understanding of IPv6.
• There are Cisco IOS software configuration commands for
OSPFv3 to support all of the new and old capabilities of
OSPFv3.
• Numerous OSPFv3 IOS show commands support the
verification of OSPFv3 configurations.
Implementing IPv6
6to4
• Is an automatic tunnel method
• Gives a prefix to the attached IPv6 network
Translation—NAT-PT