39
1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

  • View
    224

  • Download
    2

Embed Size (px)

Citation preview

Page 1: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

1

IPv6 CONCEPTS

Presenter: Yaoyu, Zhang 07.11.14

Page 2: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

IPv6 NEEDS AND APPLICATIONS

222

Page 3: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

333

A Need for IPv6?

• IETF IPv6 WG began in early 1990s, to solve addressing growth issues, but CIDR, NAT,…were developed

• IPv4 32 bit address = 4 billion hosts

But previous and current allocation practice limit the number of public address space to few hundred million

Despite very conservative allocation of address (NAT, DHCP) 2/3 of the address was allocated by mid 2002

The rising of Internet connected device and appliance will eventually deplete the IPv4 address space

• So, only compelling reason: More IP addresses!

Page 4: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

444

A Need for IPv6?

• Internet population~945M by end CY 2004—only 10–15% of the total population

How to address the future Worldwide population? (~9B in CY 2050)

Emerging Internet countries need address space

• Mobile Internet introduces new generation of Internet devices

PDA (~20M in 2004), mobile phones (~1.5B in 2003), tablet PC

• Transportation—mobile networks1B automobiles forecast for 2008—begin now on vertical markets

Internet access on planes, e.g. Lufthansa—train, e.g. Narita express

• Consumer, home and industrial appliances

Page 5: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

555

IP Version 6

Eth

erne

t

Op

tical

E-P

ow

er

Wireless

Sto

rage

chan

nel

CA

TV

PS

DN

xDS

L

Mo

re toco

me

IP: The Application’s Convergence Layer

With MILLIONS of New Devices Becoming IP Aware, the Need for Increased Addressing and Plugplay Networking

Is Only Met with the Implementation of IPv6

Page 6: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

IPv6 TECHNOLOGY

666© 2005 Cisco Systems, Inc. All rights reserved.

RST-121010987_04_2005_c2

Page 7: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

777

• Simplification of header format

• Expanded address space

• Extensibility (improved option support)

• Stateless auto-configuration

• Built-in security and mobility

IPv6 Protocol

Changes in Some Key Areas

Page 8: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

888

IPv4 and IPv6 Header Comparison

IPv4 Header IPv6 Header

Field’s name kept from IPv4 to IPv6

Fields not kept in IPv6

Name and position changed in IPv6

New field in IPv6

Leg

end

Version Traffic Class Flow Label

Payload Length Next Header Hop Limit

Source Address

Destination Address

Version IHLType of Service

Total Length

Identification FlagsFragment

Offset

Time to Live Protocol Header Checksum

Source Address

Destination Address

Options Padding

Page 9: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

999

IPv6 HeaderNext Header = 6 (TCP)

TCP Segment

IPv6 HeaderNext Header = 43 (Routing)

TCP SegmentRouting HeaderNext Header = 6 (TCP)

Authentication HeaderNext Header = 6 (TCP)

IPv6 HeaderNext Header = 43 (Routing)

Routing HeaderNext Header = 51 (AH)

TCP Segment

The Chain of Pointers Formed by the Next Header Field

Page 10: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

101010

IPv6 Protocol

• New field

• Flow label (RFC3697)

Sequence of packets for which a source desires to label a flow

Flow classifiers have been based on 5-tuple: source/destination address, protocol type and port numbers of transport

Page 11: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

111111

Flow Label

IPv6 Protocol

• Some of these fields may be unavailable due to fragmentation, encryption or locating them past extension headers.

• Looking for classifier only into IP header

• Only three tuple, flow label, source/destination address

Page 12: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

ADDRESSING

121212

Page 13: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

131313

The IPv6 Address Space

• 128-bit address space

2128 possible addresses

340,282,366,920,938,463,463,374,607,431,768,211,456 addresses (3.4 x 1038)

• 128 bits were chosen to allow multiple levels of hierarchy and flexibility in designing hierarchical addressing and routing

• Typical unicast IPv6 address:

64 bits for subnet ID, 64 bits for interface ID

Page 14: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

141414

Addressing

• Representation

16 bit hexadecimal numbers

Numbers are separated by (:)

Hex numbers are not case sensitive

Leading zeros in contiguous block could be represented by (::)

Example:

2003:0000:130F:0000:0000:087C:876B:140B

2003:0:130F::87C:876B:140B

Double colon only appears once in the address

Page 15: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

151515

Addressing

• Prefix Representation

Representation of prefix is just like CIDR

In this representation you attach the prefix length

Like v4 address 198.10.0.0/16

V6 address is represented the same way 3ef8:ca62:12::/40

Page 16: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

161616

Types of IPv6 Addresses

• Unicast

Address of a single interface; one-to-one delivery to single interface

• Multicast

Address of a set of interfaces; one-to-many delivery to all interfaces in the set

• Anycast

Address of a set of interfaces; one-to-one-of-many delivery to a single interface in the set that is closest

• No more broadcast addresses

Page 17: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

171717

Let’s Talk a Little More on Anycast

• Anycast allows a source node to transmit IP datagrams to a single destination node out of a group destination nodes with same subnet id based on the routing metrics

Page 18: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

181818

Anycast

• Anycast address assignment

Only routers should respond to Anycast addresses

Routers along the path to the destination just process the packets based on network prefix

Routers configured to respond to Anycast packets will do so when they receive a packet send to the Anycast address

Page 19: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

191919

Addressing

Type Binary Hex

Aggregatable global unicast address

Link local unicast address 1111 1110 10 FE80::/10

Unique local unicast address 1111 1100 FC00::/7

1111 1111 FF00::/16Multicast address

0010 2

Unspecified 00000000 ::

Loopback 00000001 ::1

Some Special Addresses

Page 20: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

202020

IPv6: Addressing Model

• Addresses are assigned to interfaces

Change from IPv4 model:

• Interface “expected” to have multiple addresses

• Addresses have scope

Link local

Unique local

Global

• Addresses have lifetime

Valid and preferred lifetime

Link—LocalUnique—LocalGlobal

Page 21: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

212121

Aggregatable Global Unicast Addresses

• Aggregatable Global Unicast addresses are:

Addresses for generic use of IPv6

Structured as a hierarchy to keep the aggregation

Interface IDGlobal Routing Prefix SLA

001

64 bits3 45 bits 16 bits

Provider Site Host

Page 22: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

222222

• 001 TLA Reserved NLA SLA Interface ID

• 3bits 13bits 8bits 24bits 16bits 64bits

• The structure is as follows:A fixed prefix: 001

A Top-Level Aggregator (TLA) ID, which spans over 13 bits

A reserved field of 8 bits

24 bits for intermediate providers, called Next-Level Aggregator (NLA)

16 bits for the site subnetting, called the Site-Level Aggregator (SLA)

64 bits for the host with the interface ID

• A TLA is a tier-1 provider. Having 13 bits means that more than 8K providers are possible, under the current allocation scheme. The TLAs are connected together in a default-free zone.

• The NLA field can be subdivided into more fields so a chain of intermediate providers will be possible while still keeping the aggregation.

• The SLA field represents the site subnetting, where the site can further cut the 16 bits into a hierarchy, but the rightmost part would be the subnet ID.

• A site has 16 bits to subnet its network.

Aggregatable Global Unicast Addresses

Page 23: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

232323

IPv6 Address Allocation and Assignment Policy

Internet Assigned Numbers Authority

Page 24: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

242424

IPv6 Interface Identifiers

• The last 64 bits of unicast IPv6 addresses

• Interface identifier based on:

Extended Unique Identifier (EUI)-64 address

Either assigned to a network adapter card or derived from IEEE 802 addresses

Temporarily assigned, randomly generated value that changes over time

A value assigned by DHCP

A value assigned during a Point-to-Point Protocol connection establishment

A manually configured value

Page 25: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

252525

IEEE EUI-64 Addresses

• Extended Unique Identifier (EUI)

• Company ID—Extension ID

• U/L bit (u)Universally (=0)/Locally (=1) Administered

• U/G bit (g)Unicast (=0)/Group (=1) Address

ccccccug cccccccc cccccccc

24 bits 40 bits

xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx

IEEE-Administered Company ID Manufacturer-Selected Extension ID

Page 26: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

262626

Conversion of an IEEE 802 Address to an EUI-64 Address

ccccccug cccccccc cccccccc

24 bits 24 bits

xxxxxxxx xxxxxxxx xxxxxxxx

ccccccug cccccccc cccccccc xxxxxxxx xxxxxxxx xxxxxxxx11111111 11111110

0xFF 0xFE

IEEE-administered company ID Manufacturer-selected extension ID

EUI-64 Address

IEEE 802 Address

Page 27: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

272727

00 90 27 FF FE 17 FC 0F

FF FE

00 90 27 17 FC 0F

00 90 27 17 FC 0F

000000U0

02 90 27 FF FE 17 FC 0F

U = 1

Ethernet MAC address (48 bits)

EUI-64

64 bits version

Invert the U bit

IPv6 interface ID

Conversion of an IEEE 802 Address to Interface ID

Page 28: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

282828

IPv6 Multicast Address

• IP multicast address has a prefix FF00::/8 (1111 1111); the second octet define the lifetime and scope of the multicast address

Lifetime0 If permanent

1 If temporary

Scope1 node

2 link

5 site

8 organization

E global

8-bit 4-bit 4-bit 112-bit

1111 1111 Lifetime Scope Group-ID

Page 29: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

292929

Solicited-Node Multicast Address

• For each unicast and anycast address configured there is a corresponding solicited-node multicast

• This address is link local significance only

• Acts as a pseudo-unicast address for very efficient address resolution

Page 30: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

303030

Solicited-Node Multicast Address

• FF02::1:FF00:0000/104

• Example:

For FE80::2AA:FF:FE28:9C5A, the corresponding solicited-node address is FF02::1:FF28:9C5A

Page 31: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

NEIGHBOR DISCOVERY

313131

Page 32: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

323232

Neighbor Discovery

• Replaces ARP, ICMP (redirects, router discovery)

• Reachability of neighbors

• Hosts use it to discover routers, auto configuration of addresses

• Duplicate Address Detection (DAD)

Page 33: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

333333

Neighbor Discovery

• Neighbor discovery uses ICMPv6 messages, originated from node on link local with hop limit of 255

• Consists of IPv6 header, ICMPv6 header, Neighbor discovery header, and neighbor discovery options

• Five Neighbor discovery messages

1. Router solicitation (ICMPv6 type 133)

2. Router advertisement (ICMPv6 type 134)

3. Neighbor solicitation (ICMPv6 type 135)

4. Neighbor advertisement (ICMPv6 type 136)

5. Redirect (ICMPV6 type 137)

Page 34: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

343434

Router Solicitation

Neighbor Discovery

• Host send to inquire about presence of a router on the link

• Send to all routers multicast address of FF02::2 (all routers multicast address)

• Source IP address is either link local address or unspecified IPv6 address (::)

Page 35: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

353535

2. ICMP Type = 134 (RA)

Src = Link-local address (FE80::/10)

Dst = All-nodes multicast address (FF02::1)

Data = options, subnet prefix, lifetime, autoconfig flag

Router Solicitation and Advertisement

• Router Solicitations (RS) are Sent by Booting Nodes to Request RAs for Configuring the Interfaces

1. ICMP Type = 133 (RS)

Src = Link-local address (FE80::/10)

Dst = All-routers multicast address (FF02::2)

Query = please send RA

2. RA1. RS

Page 36: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

363636

Neighbor Solicitation

• Send to discover link layer address of IPv6 node

• For layer two it is set to multicast for address resolution, unicast for node reachability

• IPv6 header, source address is set to unicast address of sending node, or :: for DAD

• Destination address is set to the unicast address for reachability and solicited node multicast for DAD

Page 37: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

373737

Neighbor Advertisement

• Response to neighbor solicitation message

• Also send to inform change of link layer address

Page 38: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

383838

Neighbor Solicitation and Advertisement

Neighbor Solicitation:

ICMP type = 135

Src = A

Dst = Solicited-node multicast address

Data = link-layer address of A Query = what is your link-layer address?

Neighbor Advertisement:

ICMP type = 136 Src = B Dst = A Data = link-layer address of B

A and B can now exchange packets on this link

A B

Page 39: 1 IPv6 CONCEPTS Presenter: Yaoyu, Zhang 07.11.14

393939

Redirect

• Redirect is used by a router to signal the reroute of a packet to a better router

Redirect:Src = R2Dst = AData = good router = R13FFE:B00:C18:2::/64

R1

R2A B

Src = A Dst IP = 3FFE:B00:C18:2::1 Dst Ethernet = R2 (default router)