ipv6 introduction · ipv6 header l simpler l40 bytes (fixed size) lonly twice bigger than the older...

28
Alejandro Acosta [email protected] @ITandNetworking IPv6 Introduction (may 2020)

Upload: others

Post on 19-Jun-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

Alejandro [email protected]@ITandNetworking

IPv6 Introduction

(may 2020)

Page 2: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

�.- Little bit of history�.- IPv6 Header�.- IPv6 Neighbor Discovery (ND)

Today’s content

Page 3: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

�.- Little bit of history

Today’s content

Page 4: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

� 1969 – Start of ARPANET� 1981 – IPv4 definitions and the RFC 791� 1983 – ARPANET adopts TCP/IP � 1990 – First studies about IPv4 address exhaustion� 1993 – Internet begins to be commercially exploited

- Increased discussion about a possible address depletion and the increase of the addess routing tables

Internet and the TCP/IP protocols

Page 5: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

IPv4 Address exhaustion

� IPv4 = 4.294.967.296 addresses (*)� Initial distribution policy directions

§ Class Ao IBM o HPo AT&To MIT

§ Class B§ Class C§ Reserved Addresses

o DoDo US Armyo USPSo ........

IPv4 = 4.294.967.296 addresses NOT FULLY TRUE

Page 6: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

IPv4 Address Exhaustion

Page 7: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

Palliative Solutions§1992 - IETF started ROAD working group (ROuting and ADdressing).

§CIDR (RFC 4632)§End use of “classes” = appropriately sized blocks§Network addresses = prefix/length§Routing aggregation = the growth in the size of the routing tables

§DHCP§Dynamic address assignment

§NAT + RFC 1918 (Address Allocation for Private Internets)§Enable to connect an entire network with only one public address

Proposed solutions

Page 8: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

N A T (Network Address TranslationAdvantages

• Reduces the need of public internet addresses• Facilitates the internal network address numbering• Hides the network topology• Only allows the packet entry to our network as a response to a request from the network

Disadvantages• Breaks the internet point-to-point model• Hinder the functioning of a number of applications• Not scalable• Increase the process load in the traduction device• False sense of security• Unable to trace the path of the packet• Prevents the use of security mechanisms such as IPSec• Limits of HW & SW

Solutions

Page 9: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

Palliative Solutions: Fall of only 14%

Solutions

Page 10: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

The measures discussed above generate more time to develop a new version of the IP protocol

•1992 - IETF make the IPng working group (IP Next Generation)•Main questions:

•Escalability•Security•Network configuration and management•QoS support•Movility•Routing policies•Transition

Solutions

Page 11: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

Definitive solution

Solutions

Protocols closelyevaluated

Page 12: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

•1998 Defined in RFC 2460 (now RFC 8200)•128 bits for addressing•Base header simplified•Extension headers•Flow identification data (QoS).•IPSEC mechanisms built into the protocol•Performs packet fragmentation/reassembly on the source and destination•NAT is not necessary, allowing point-to-point mechanisms that facilitate network configuration•....

IPv6

Page 13: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient
Page 14: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

IPv4 Header

It’s integrated by 12 fixed fields. It may contain options or not, therefore it’s size can vary from 20 to 60 Bytes.

Page 15: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

IPv6 Header

l Simplerl40 Bytes (fixed size)lOnly twice bigger than the older versionl

l More flexiblelExtensions through additional headersl

l More efficientlHeader overhead is minimizedlPacket processing cost is reduced

Page 16: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

IPv6 Header

l Six fields from the IPv4 header were removed

Page 17: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

IPv6 Header

l Six fields from the IPv4 header were removedl Four fields had it’s name and it’s location changed

1 12

2

3

3 4

4

Page 18: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

IPv6 Header

l Six fields from the IPv4 header were removedl Four fields had it’s name and it’s location changedl The Flow Label field was enlarged

Page 19: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

IPv6 Header

l Six fields from the IPv4 header were removedl Four fields had it’s name and it’s location changedl The Flow Label field was enlargedl Three fields were unchanged

Page 20: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

IPv6 Header

Page 21: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

more

Page 22: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

lIt uses five types of ICMPv6 messages:lRouter Solicitation (RS) – ICMPv6 type 133;lRouter Advertisement (RA) – ICMPv6 type 134;lNeighbor Solicitation (NS) – ICMPv6 135;lNeighbor Advertisement (NA) – ICMPv6 type 136;lRedirect - ICMPv6 Type 137

lA value of 255 is set to the Hop Limit field.lIt can contain options:

lSource link-layer address.lTarget link-layer address.lPrefix Information.lRedirected header.lMTU

Neighbor Discovery

Page 23: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

Neighbor Discovery (NS)lLink layer address discovering

lIt determines the link layer addressing of neighbors on the same link.lReplaces the ARP protocol.lIt uses multicast address “solicited-node” instead of broadcast.lThe host sends a NS message informing his MAC address and requests that of the neighbor.

Page 24: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

lLink layer address discoveringlIt determines the link layer addressing of neighbors on the same link.lReplaces the ARP protocol.lIt uses multicast address “solicited-node” instead of broadcast.

lThe host sends a NS message informing his MAC address and requests that of the neighbor.lThe neighbor answers by sending a NA message informing his MAC address.

Neighbor Discovery (NA)

Page 25: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

l Router and neighbor discoveringlFinds neighboring routers on the same link.lDetermines prefixes and parameters related to the address auto configuration.lIn IPv4, this function is held by the ARP request.lRouters send RA messages to the multicast address “all-nodes”

Neighbor Discovery (RA)

Page 26: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

Hosts inquire with Router Solicitation messages to locate routers on an attached linkRouters which forward packets not addressed to them generate Router Advertisements immediately upon receipt of this message rather than at their next scheduled time

l.- Hosts will send to the ‘All Router IPv6 Multicast Address’ (FF02::2) l.- All layer 3 multicast addresses have a corresponding layer 2 mac address (33:33:xx:xx:xx:xx) where xx:xx:xx:xx are the last 32 bits of the layer 3 multicast address)

Router Solicitation (RS)

https://www.slideshare.net/kriz5/cisco-i-pv6labandtechtorialworkshop-v0

Page 27: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

lRedirectlIt sends Redirect messages.lIt redirects a host to a more appropriate first hop router.lIt informs the originator host that the destination is on the same link.lThis mechanism is the same as the existing one in IPv4.

Neighbor Discovery (redirect)

Paquete IPv6

Somewhereelse

Page 28: IPv6 Introduction · IPv6 Header l Simpler l40 Bytes (fixed size) lOnly twice bigger than the older version l l More flexible lExtensions through additional headers l l More efficient

Questions?Comments?

Alejandro [email protected]@ITandNetworking