30
[email protected] 07/09/2012 1 Edgardo Scrimaglia CCIE [email protected] Introducing IPv6 and Defining IPv6 Addressing

Como definir un esquema de direcciones IPv6

Embed Size (px)

Citation preview

Page 1: Como definir un esquema de direcciones IPv6

[email protected]/09/2012 1

Edgardo [email protected]

Introducing IPv6 and

Defining IPv6 Addressing

Page 2: Como definir un esquema de direcciones IPv6

[email protected]

Objectives

• Explain the need for IPv6 address space.

• Explain how IPv6 deals with the limitations of IPv4.

• Describe the features of IPv6 addressing.

• Describe the structure of IPv6 headers in terms of format and extension headers.

• Show how an IPv6 address is represented.

• Describe the three address types used in IPv6.

07/09/2012 2

Page 3: Como definir un esquema de direcciones IPv6

[email protected]

Introducing IPv6

07/09/2012 3

Page 4: Como definir un esquema de direcciones IPv6

[email protected]

Internet Organization

IANA Internet Assigned Numbers Authority

ARIN APNIC LACNIC AFRINIC RIPE

American Registry for Internet NumbersAsia Pacific Network Information Centre

Latin America and Caribbean Network Information CentreAfrican Network Information Centre Réseaux Internet Protocol Européens

Page 5: Como definir un esquema de direcciones IPv6

[email protected]

IANA Registries

Page 6: Como definir un esquema de direcciones IPv6

[email protected]

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

07/09/2012 6

Page 7: Como definir un esquema de direcciones IPv6

[email protected]

0%

10%

20%

30%

40%

50%

60%

70%

80%

90%

100%

1980 1985 1990 1995 2000 2005 2010

IP Address Allocation History

In 1981, IPv4 Protocol was published. In 1985, about 1/16 of the total IPv4 address space was in use. By mid-2001, about 2/3 of the total IPv4 address space was in use.

07/09/2012 7

Page 8: Como definir un esquema de direcciones IPv6

[email protected]

IPv6 Advanced Features

Larger address space

• Global reachability and flexibility

• Aggregation

• Autoconfiguration

• Plug-and-play

• End to end without NAT

• Renumbering

Simpler header

• Routing efficiency

• Performance and forwarding rate scalability

• No broadcasts

• No checksums

• Extension headers

• Flow labels

07/09/2012 8

Page 9: Como definir un esquema de direcciones IPv6

[email protected]

IPv6 Advanced Features (Cont.)

Mobility and security

• Mobile IP RFC-compliant

• IPSec mandatory(or native) for IPv6

Transition richness

• Dual stack

• 6to4 tunnels

• Translation

07/09/2012 9

Page 10: Como definir un esquema de direcciones IPv6

[email protected]

IPv4• 32 bits or 4 bytes long

• 4,200,000,000 possible addressable nodesIPv6• 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

07/09/2012 10

Page 11: Como definir un esquema de direcciones IPv6

[email protected]

Larger Address Space Enables Address Aggregation

• Aggregation of prefixes announced in the global routing table

• Efficient and scalable routing

• Improved bandwidth and functionality for user traffic

07/09/2012 11

Page 12: Como definir un esquema de direcciones IPv6

[email protected]

Self Check

1. How much of the address space was in use by mid-2001?

2. How many bits are included in an IPv6 address?

3. How will IPv6 enable smaller routing tables in Internet routers?

4. Why is NAT not a requirement for IPv6?

07/09/2012 12

Page 13: Como definir un esquema de direcciones IPv6

[email protected]

Defining IPv6 Addressing

07/09/2012 13

Page 14: Como definir un esquema de direcciones IPv6

[email protected]

Simple and Efficient Header

A simpler and more efficient header means:

• 64-bit aligned fields and fewer fields

• Hardware-based, efficient processing

• Improved routing efficiency and performance

• Faster forwarding rate with better scalability

07/09/2012 14

Page 15: Como definir un esquema de direcciones IPv6

[email protected]

MTU Issues

• Minimum link MTU for IPv6 is 1280 octets(vs. 68 octets for IPv4).

– On links with MTU < 1280, link-specific fragmentation and reassembly must be used

• Implementations are expected to perform path MTU discovery to send packets bigger than 1280.

• Minimal implementation can omit PMTU discovery as long as all packets kept ≤ 1280 octets.

• A hop-by-hop option supports transmission of “jumbograms” with up to 232

octets of payload.

07/09/2012 15

Page 16: Como definir un esquema de direcciones IPv6

[email protected]

IPv4 and IPv6 Header Comparison

Fragment Offset

Flags

Total LengthType of Service

IHL

PaddingOptions

Destination Address

Source Address

Header ChecksumProtocolTime to Live

Identification

Version

IPv4 Header

Next Header

Hop Limit

Flow LabelTraffic Class

Destination Address

Source Address

Payload Length

Version

IPv6 Header

Field’s Name Kept from IPv4 to IPv6

Fields Not Kept in IPv6

Name and Position Changed in IPv6

New Field in IPv6Le

ge

nd

07/09/2012 16

Page 17: Como definir un esquema de direcciones IPv6

[email protected]

IPv6 Extension Headers

Simpler and more efficient header means:• IPv6 has extension headers.• IPv6 handles the options more efficiently.• IPv6 enables faster forwarding rate and end nodes processing.

07/09/2012 17

Page 18: Como definir un esquema de direcciones IPv6

[email protected]/09/2012 18

1 Basic IPv6 Header -2 Hop-by-Hop Options 03 Destination Options (with Routing Options) 604 Routing Header 435 Fragment Header 446 Authentication Header 517 Encapsulation Security Payload Header 508 Destination Options 609 Mobility Header 135UL TCP 6UL UDP 17U L ICMPv6 58

IPv6 Extension Headers

Any combination of 64-bits Extension Headers may follow the IPV6 header but according to the following order:

Page 19: Como definir un esquema de direcciones IPv6

[email protected]

IPv6 Address Representation

• x:x:x:x:x:x:x:x, where x is a 16-bit hexadecimal field

• 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

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 >>> ::

07/09/2012 19

Page 20: Como definir un esquema de direcciones IPv6

[email protected]

IPv6—Addressing Model

• Addresses are assigned to interfaces

– Change from IPv4 mode:

• Interface “expected” to have multiple addresses

• Addresses have scope

– Link Local

– Unique Local

– Global

• Addresses have lifetime

– Valid and preferred lifetime

Link LocalUnique LocalGlobal

07/09/2012 20

Page 21: Como definir un esquema de direcciones IPv6

[email protected]

IPv6 Address Types• 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.

07/09/2012 21

Page 22: Como definir un esquema de direcciones IPv6

[email protected]

IPv6 Global Unicast (and Anycast) Addresses

The global unicast and the anycast share the same address format.

• 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.

07/09/2012 22

Page 23: Como definir un esquema de direcciones IPv6

[email protected]

NAT-PT#sho ipv6 interface fa0/0FastEthernet0/0 is up, line protocol is upIPv6 is enabled, link-local address is FE80::20D:BDFF:FE75:3D01No Virtual link-local address(es):Global unicast address(es):2001:A:B::1, subnet is 2001:A:B::/64

Joined group address(es):FF02::1FF02::2FF02::1:FF00:1FF02::1:FF75:3D01

MTU is 1500 bytesICMP error messages limited to one every 100 millisecondsICMP redirects are enabledICMP unreachables are sentND DAD is enabled, number of DAD attempts:

IPv6 Addresses assigned (example)

Page 24: Como definir un esquema de direcciones IPv6

[email protected]

IPv6 Global Unicast Addresses (RFC 3587)

• Global unicast and anycast addresses are defined by a global routing prefix, a subnet ID, and an interface ID.

07/09/2012 24

Page 25: Como definir un esquema de direcciones IPv6

[email protected]

IPv6 Global Unicast Addresses Range (example)

• Global unicast and anycast addresses are defined by a global routing prefix, a subnet ID, and an interface ID.

• Global Routing prefix = /53

• Subnet ID (Routing Prefix) = /64

• Interface ID = /64

• 64M of clients using only an Address (2001) from the Global Unicast Address Space

• Addresses from 2000/3 (0010) – E000/3 (1110), with the exception of the FF00::/8, are available to form Global Unicast (EUI-64) Addresses.

• Thirteen blocks of 4096 (16^3) addresses each = 53.248 blocks of 67M of clients each= 3.567.616.000.000 of clients (3.5 trillions).

• IANA is currently allocating addresses in the range of 2001::/16 to the registries.

07/09/2012 25

2001:rrr ../19 2^3=8 Registries2001:rrriiiiiiii .. /27 2^8=256 ISPs2001:rrriiiiiiiiccccc:cccccc .. /53 2^26=67M Clients2001:rrriiiiiiiiccccc:cccccc ..:ssssssss..:: /64 2^11=2048 Subnetworks2001:xxxx:xxxx:xxxx:HHHH:HHHH:HHHH::/128 2^64=18446 Trill. hosts

Page 26: Como definir un esquema de direcciones IPv6

[email protected]

IPv6 Unicast Addressing

• IPv6 addressing rules are covered by multiple RFCs.

– Architecture defined by RFC 4291.

• Unicast: One to one

– Global

– Link local (FE80::/10)

• A single interface may be assigned multiple IPv6 addresses of any type: unicast, anycast, or multicast.

07/09/2012 26

Page 27: Como definir un esquema de direcciones IPv6

[email protected]

Self Check

1. Describe the MTU discovery process used by IPv6 devices.

2. Why is the IP checksum header not used in IPv6 implementations?

3. How are successive zeros represented in an IPv6 address?

4. What are 3 types of IPv6 addresses?

5. Which address type from IPv4 was eliminated in IPv6?

07/09/2012 27

Page 28: Como definir un esquema de direcciones IPv6

[email protected]

Summary

• IPv6 is a powerful enhancement to IPv4. Features that offer functional improvement include a larger address space, simplified header, and mobility and security.

• IPv6 increases the number of address bits by a factor of four, from 32 to 128.

• The IPv6 header has 40 octets and is simpler and more efficient than the IPv4 header.

• IPv6 addresses use 16-bit hexadecimal number fields separated by colons (:) to represent the 128-bit addressing format.

• The three types of IPv6 addresses are unicast, multicast, and anycast.

07/09/2012 28

Page 29: Como definir un esquema de direcciones IPv6

[email protected]

Q and A

07/09/2012 29

Page 30: Como definir un esquema de direcciones IPv6

[email protected]

Resources

• IPv6 Addressing At-A-Glance

– http://cisco.com/application/pdf/en/us/guest/tech/tk872/c1550/cdccont_0900aecd8026003d.pdf

• IPv6 Extension Headers Review and Considerations

– http://cisco.com/en/US/partner/tech/tk872/technologies_white_paper0900aecd8054d37d.shtml

• IPv6 Headers At-A-Glance

– http://cisco.com/application/pdf/en/us/guest/tech/tk872/c1482/cdccont_0900aecd80260042.pdf

07/09/2012 30