26
IPv6 Introduction Roque Gagliano [email protected] Philipsburg, July 2009

IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano [email protected] Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

  • Upload
    haminh

  • View
    226

  • Download
    0

Embed Size (px)

Citation preview

Page 1: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

IPv6 Introduction

Roque [email protected]

Philipsburg, July 2009

Page 2: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

Agenda

Initial Concepts. IPv6 History. What is IPv6? Planning IPv6.

Page 3: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

Why is IPv4 to IPv6 transition so important?

Page 4: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

Agenda

IPv6 History. What is IPv6? Planning IPv6.

Page 5: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

IPv6 History

1983: TCP/IP became “the protocol” of ARPANet with ~100 computers from Research Networks.

1991: First signs of shortcut of Class B Networks. Some report mentioned 1994 as the depletion date!.

1992: Commercial activities started. Allocations started booming.

Page 6: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

IPv6 History

Emergency Measurements: CIDR: Classless Inter-domain Routing:

network address = prefix/prefix length Classes abandon = less address waste Allows aggregation (reduces routing table size)

NAT: Network Address Translation: Allows several users to share one address.

Page 7: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

IPv6 History

NAT (continued)•Advantages:

– Reduce the need of public addresses

– Ease the internal addressing plan

– Transparent to some applications

– “Security” vs obscurity– Clear delimitation point for

ISPs.

• Disadvantages:– Translation sometime complex (e.g.

FTP, VOIP).– Apps using dynamic ports (UPnP).– Does not scale (today avg. of 500

active sessions per user). – Introduce states inside the network:

• Multi-homed networks– Breaks the end-to-end paradigm.– Security with IPsec.– Difficulties for operations when done

inside a Provider network.

Page 8: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

IPv6 History: Beyond the Emergency.

In 1992 the IETF creates the group IPng (IP Next Generation) that proposes IPv6 as the evolution of IPv4.

Requirements: Big amount of available addresses. Hierarchical addressing space. Embedded security. “Plug and Play” configuration for hosts. Improvements to QoS. Improvements to Network Mobility.

Page 9: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

IPv6 Evolution:

1991:ROADFirst Studies

1994: SIPP is chosen

1995: 1st IPv6 RFC1883

1998: IPv6 RFC2460

1996:6Bone

2003: DHCPv6

2004: MIPv6

2006:6Bone ends

ICMPv6, DNS, IPv6 over X,Multicast, routing, MIBs

20081991

“Commercial only” IPv6

Page 10: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

IPv6 Evolution:What are we still working on?

The IETF is currently working on: Particular transitions scenarios (will go there later). Recommendations for IPv6 implementation

(addressing, provisioning). Enhanced Network Mobility. Mobility in a Layer 2 environment. Security issues with Auto-configuration. IP over 802.16.

The main IPv6 specification have already been finished!.

Page 11: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

Agenda

IPv6 History. What is IPv6? Planning IPv6.

Page 12: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

What is IPv6 in one Page:

IPv6 is a Network Protocol with many more addresses than IPv4:

340,282,366,920,938,463,374,607,431,768,211,456 available addresses.

With so many addresses we can overcome the shortage in IPv4 supply and continuing support the growth of Internet.

In IPv6 some tasks are simpler than in IPv4: (Auto-configuration, Renumbering, Multicast, IP Mobility, etc.)

IPv6 Enables Innovation. Particularly for applications without NAT

Page 13: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

IPv6 terminology

Node: IPv6 device

Router: Node that forwards IPv6 packets

Host: A node that is not a router

Neighbors: nodes connected to the same link

Interface: node's connection to the link

Address: value given to an IPv6 interface of a node

Packet: IPv6 message (IPv6 header + data)‏

Link MTU: Link's Maximum Transmission Unit

Path MTU: Minimum Link MTU of the path between two end nodes

20080828 [email protected] 6deploy 8

Page 14: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

IPv4 and IPv6 headers

20080828 [email protected] 6deploy 10

Page 15: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

IPv6 header changes

Fixed length: 40 bytes 128 bit addresses Fragmentation and options removed Length only accounts effective payload New field: flow label TOS -> Traffic Class Protocol -> Next Header Time to live -> Hop Count

20080828 [email protected] 6deploy 12

Page 16: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

Things that change in IPv6, that are good to know:

IPv6 addresses are represented by Hexadecimal numbers. Example: 2001:DB8:12FF:1231:FFB5::F9DA/64.

In IPv6 there is not Network Mask, only Prefix Length. In IPv6 the header is always 40 bytes long, extensions are

listed as “next header”. In IPv6 there is no Broadcast, only Multicast. In IPv6 there is no ARP or IGMP, ICMPv6 takes those jobs. In IPv6 routers do not fragment, only Terminals. Path MTU

Discover is Mandatory.

Page 17: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

Things that change in IPv6, that are good to know:

IPv6 header does not include a checksum, so if designing software, UDP checksum is mandatory.

There are different types (reserved, unicast, multicast and anycast) of IPv6 Addresses and different scopes (global and link-local). Example:2001:13c7:7002:1::1 is a Unicast Global Address.

fe80::217:f2ff:fe4d:a80e%en1 is a Link Local Address.

Typically a host has more than one IPv6 unicast address configured with the same or different scopes (plus the IPv4 address).

Page 18: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

IPv6 address space

IPv6 Prefix Allocation Reference 0000::/8 Reserved by IETF [RFC4291]0100::/8 Reserved by IETF [RFC4291]0200::/7 Reserved by IETF [RFC4048]0400::/6 Reserved by IETF [RFC4291]0800::/5 Reserved by IETF [RFC4291]1000::/4 Reserved by IETF [RFC4291]2000::/3 Global Unicast [RFC4291]4000::/3 Reserved by IETF [RFC4291]6000::/3 Reserved by IETF [RFC4291]8000::/3 Reserved by IETF [RFC4291]A000::/3 Reserved by IETF [RFC4291]C000::/3 Reserved by IETF [RFC4291]E000::/4 Reserved by IETF [RFC4291]F000::/5 Reserved by IETF [RFC4291]F800::/6 Reserved by IETF [RFC4291]FC00::/7 Unique Local Unicast [RFC4193]FE00::/9 Reserved by IETF [RFC4291]FE80::/10 Link Local Unicast [RFC4291]FEC0::/10 Reserved by IETF [RFC3879] site localFF00::/8 Multicast [RFC4291]

http://www.iana.org/assignments/ipv6-address-space

20080828 [email protected] 6deploy 30

Page 19: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

Global Unicast Address (RFC 3587)‏

Global routing prefix: is the value assigned to a site. Hirerarchicaly, RIRs and ISPsSub-net ID: network identifier inside a site RIRs and ISPs administer and allocate this blocksInterface ID: usually built using EUI-64

001 Glob.rout.prefix subnetID interface ID

45 bits 16 bits 64 bits

20080828 [email protected] 6deploy 31

Page 20: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

Interface ID

The “rightmost” 64 bits of an IPv6 unicast address can be allocated through different means: auto-configuration (modified EUI-64)‏ using ICMPv6. DHCPv6 manually configured randomly future methods supported

Prefix interface ID

64 bits

20080828 [email protected] 6deploy 35

Page 21: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

Interface ID – modified EUI 64

http://www.tcpipguide.com/free/t_IPv6InterfaceIdentifiersandPhysicalAddressMapping-2.htm

20080828 [email protected] 6deploy 36

Page 22: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

IPv4 and IPv6 dual reference stacks

Data link / physical layers Ethernet PPP HDLC …

IP (v4)‏ IP (v6)‏

TCP UDP …

DNS SSH SMTP HTTP …

Network layer

Transport layer

Application layer

IGMP ICMP ARP ICMPv6

Page 23: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

ICMPv6

Functions: Network Control Protocol: echo, port unreachable,

etc. Neighbor Discovery Protocol: Auto-configuration,

L2 Address Resolution (ex ARP), Duplicate Address Detection (DAD) and Neighbor Unreachability Detection (NUD).

Multicast Listener Discovery (MLD): MLD and MLDv2.

Page 24: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

Stateless Auto-configuration:

Terminals are passive or can send “route solicitation” messages (RS) to multicast group: ff02::2 (all routers).

RA messages sent periodically to multicast group: ff02::1. Includes network parameters and timers (they do expire).

Does not include information about DNS servers, NTP server, etc. I will need DHCPv6 for that.

Page 25: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

PATH MTU DISCOVERY

The minimum MTU a link MUST support for IPv6 is 1280bytes. PMTUD is mandatory in IPv6.

TCP will adjust automatically the segment size it sends to the IPv6 layer to adjust to the path MTU.

Page 26: IPv6 Introduction Roque Gagliano roque@lacnic Introduction Roque Gagliano roque@lacnic.net Philipsburg, July 2009 Agenda Initial Concepts. IPv6 History. What is IPv6? Planning IPv6

Thank [email protected]