180 likes | 343 Views
IPv6. IPv6. Problem: 32-bit address space will be completely allocated by 2008. Solution: Design a new IP with a larger address space, called the IP version 6, IPv6 Expanded Address Space: 128-bit addresses
E N D
IPv6 • Problem:32-bit address space will be completely allocated by 2008. • Solution: Design a new IP with a larger address space, called the IP version 6, IPv6 • Expanded Address Space: 128-bit addresses • IP Address Auto-configuration: Stateless (no servers) host IP Address Configuration (Plug-and-Play) • Security Capabilities: IPSec required • Better and hierarchical routing mechanisms: Current IPv4 routing infrastructure is a combination of flat and hierarchical routing. Leads to bigger routing tables at the backbone routers. • Improved Options Mechanism: Options are located between the IPv4 main header and transport headers. Most routers do not examine these option fields
IPv6 Addressing • 128-bit addresses • IPv4 – dotted decimal representation • 223.1.1.1 • IPv6 – 128-bit address divided along 16-bit boundaries, each 16-bit block converted to a 4 digit hexadecimal number separated by colons • 0010000111011010 0000000011010011 0000000000000000 0010111100111011 • 21DA:00D3:0000:2F3B:02AA:00FF:FE28:9C5A • Can be simplified by removing leading 0’s within each 16-bit block • 21DA:D3:0:2F3B:02AA:FF:FE28:9C5A
IPv6 Addressing – Compressing 0’s • Some type of addresses contain long sequences of 0s. To further simplify the representation of IPv6 addresses, a contiguous sequence of 16-bit blocks set to 0 in the colon format can be compressed to “::”, known as double colon • Example1: • FE80:0:0:0:2AA:FF:FE9A:4CA2 • FE80::2AA:FF:FE9A:4CA2 • Example2: • FF02:0:0:0:0:0:0:2 • FF02::2
Types of IPv6 Addresses • 3 types of addresses • Unicast Addresses • Identifies a single interface within the whole IPv6 Network. A packet sent to a unicast address is delivered to a single interface • Multicast Addresses • Identifies multiple interfaces. A packet sent to a multicast address is delivered to ALL multicast interfaces. • Anycast Addresses • Identifies multiple interfaces. A packet sent to a anycast address is delivered to ANY one of the interfaces. Typically the closest interface
Unicast IPv6 Addresses • Global unicast addresses • Link-Local addresses • Site-Local addresses -- deprecated • Special addresses
Link-Local Unicast IPv6 Addresses • Always start with FE80::/64 • Equivalent to IPv4 169.254/16 address range • An IPv6 router never forwards link-local traffic beyond the link
Site-Local Unicast IPv6 Addresses • Always start with FEC0::/10 • Equivalent to IPv4 10/8, 172.16/12, 192.168/16 address ranges • Scope of a site-local address is the site. • Deprecated – Not to be used any longer!
Special Unicast IPv6 Addresses • 0:0:0:0:0:0:0:0 or :: • Indicates the lack of an address • Corresponds to IPv4 0.0.0.0 • 0:0:0:0:0:0:0:1 or ::1 • Loopback interface address • Corresponds to IPv4 loopback IP address 127.0.0.1
Interface ID Generation - Example • MAC: 00-AA-00-3F-2A-1C • EUI-64: 00-AA-00-FF-FE-3F-2A-1C • Intf ID: 02-AA-00-FF-FE-3F-2A-1C • Colon Hexadecimal Notation: 2AA:FF:FE3F:2A1C • Link-Local Address: FE80::2AA:FF:FE3F:2A1C • Notice that the above algorithm generates the same UID from the same MAC • To provide anonymity, RFC 3041 suggests an alternative that generates IDs that change over time
INTERNET 2000::2:InterfaceID 2000::1:InterfaceID 2000::2:InterfaceID 2000::1:InterfaceID 2000::3:InterfaceID 2000::3:InterfaceID 2000::3:InterfaceID IPv6 Subnets – Example • Similar to IPv4, an IPv6 subnet prefix (subnetID) is assigned to a single link • Multiple subnetIDs may be assigned to the same link • 3 IPv6 Subnets in above network • 2000::1/64, 2000::2/64, 2000::3/64 • No need for netmask
IPv6 Datagram Format • Ver: 6 • Priority: identify priority among datagrams in flow • Flow Label: identify datagrams in same “flow.” • Next header: identify upper layer protocol for data; • or the offset of the next options header • 128-bit source & destination addresses • Fixed-length 40 byte header
Other Changes from IPv4 • Checksum:removed entirely to reduce processing time at each hop • Options: allowed, but outside of header, indicated by “Next Header” field • ICMPv6: new version of ICMP • additional message types, e.g. “Packet Too Big” • multicast group management functions
IPv6 Forwarding • Similar to IPv4 Forwarding • If the destination is on the same IPv6 Subnet • Deliver the packet directly using LL • Otherwise, deliver the packet to the default router • IPv6 Address MAC Resolution? • No ARP in IPv6 • MAC resolution performed by ICMP Neighbor solicitation messages sent to multicast solicited node address • Disturbs less nodes on the network
large IP datagram divided (“fragmented”) ONLY at the source one datagram becomes several datagrams “reassembled” ONLY at final destination Optional Fragmentation header is used if the packet is fragmented. What if the packet needs to be fragmented within the network? Router drops the packet and sends a “PACKET TOO BIG” ICMP response back to the sender. IPv6 Fragmentation & Reassembly fragmentation: in: one large datagram out: 3 smaller datagrams reassembly
Host IPv6 Address Configuration HIGH-LEVEL DESCRIPTION • Always configure a link-local address • Listen for router advertisements • If router advertisement indicates that a stateful address configuration is to be used, then use DHCP to get another address • If router advertisement indicates that a stateless address configuration is to be used, then take the routing prefix from the router advertisement and configure an address