Está en la página 1de 7

Outline

IPv6: An Introduction

„ Problems with IPv4


„ Basic IPv6 Protocol
„ IPv6 features
Dheeraj Sanghi
– Auto-
Auto-configuration, QoS, Security, Mobility
Department of Computer Science and Engineering
„ Transition Plans
Indian Institute of Technology Kanpur
dheeraj@iitk.ac.in
http://www.cse.iitk.ac.in/users/dheeraj

May 2005 IIT Kanpur 1

Internet Protocol IP Datagram Header


0 4 8 16 19 31
Transports a datagram from source host to destination,
possibly via several intermediate nodes (“routers”) VERS HLEN TOS TOTAL LENGTH

IDENTIFICATION FLAG FRAGMENT OFFSET


Service is:
„ Unreliable: Losses, duplicates, out-
out-of-
of-order delivery TTL PROTOCOL CHECKSUM
„ Best effort: Packets not discarded capriciously, delivery
failure not necessarily reported SOURCE ADDRESS
„ Connectionless: Each packet is treated independently
DESTINATION ADDRESS

OPTIONS (if any) + PADDING

May 2005 IIT Kanpur 2 May 2005 IIT Kanpur 3

Problems with IPv4: Limited Address Space Problems with IPv4: Routing Table Explosion

„ IP does not permit route aggregation


(limited supernetting possible with new routers)
„ IPv4 has 32 bit addresses. „ Mostly only class C addresses remain
„ Flat addressing (only netid + hostid with “fixed” „ Number of networks is increasing very fast
boundaries)
(number of routes to be advertised goes up)
„ Results in inefficient use of address space.
„ Very high routing overhead
„ Class B addresses are almost over.
– lot more memory needed for routing table
„ Addresses will exhaust in the next 5 years. – lot more bandwidth to pass routing information
„ IPv4 is victim of its own success. – lot more processing needed to compute routes

May 2005 IIT Kanpur 4 May 2005 IIT Kanpur 5

1
Problems with IPv4: Header Limitations
Problems with IPv4: Other Limitations
„ Maximum header length is 60 octets.
(Restricts options)
„ Lack of quality-
quality-of-
of-service support.
„ Maximum packet length is 64K octets. – Only an 8-
8-bit ToS field, which is hardly used.
(Do we need more than that ?)
– Problem for multimedia services.
„ ID for fragments is 16 bits. Repeats every 65537th packet.
„ No support for security at IP layer.
(Will two packets in the network have same ID?)
„ Mobility support is limited.
„ Variable size header.
(Slower processing at routers.)
„ No ordering of options.
(All routers need to look at all options.)

May 2005 IIT Kanpur 6 May 2005 IIT Kanpur 7

IP Address Extension IPng Criteria


„ Strict monitoring of IP address assignment
„ Private IP addresses for intranets „ At least 109 networks, 1012 end-
end-systems
– Only class C or a part of class C to an organization „ Datagram service (best effort delivery)
– Encourage use of proxy services „ Independent of physical layer technologies
ƒ Application level proxies
„ Robust (routing) in presence of failures
ƒ Network Address Translation (NAT)
„ Flexible topology (e.g., dual-
dual-homed nets)
„ Remaining class A addresses may use CIDR
„ Better routing structures (e.g., aggregation)
„ Reserved addresses may be assigned
„ High performance (fast switching)
But these will only postpone address exhaustion. „ Support for multicasting
They do not address problems like QoS, mobility, security.

May 2005 IIT Kanpur 8 May 2005 IIT Kanpur 9

IPng Criteria IPv6: Distinctive Features

„ Support for mobile nodes „ Header format simplification


„ Support for quality-
quality-of-
of-service „ Expanded routing and addressing capabilities
„ Provide security at IP layer „ Improved support for extensions and options
„ Extensible „ Flow labeling (for QoS) capability
„ Auto-
Auto-configuration (plug-
(plug-and--
and--play)
play) „ Auto-
Auto-configuration and Neighbour discovery
„ Straight-
Straight-forward transition plan from IPv4 „ Authentication and privacy capabilities
„ Minimal changes to upper layer protocols „ Simple transition from IPv4

May 2005 IIT Kanpur 10 May 2005 IIT Kanpur 11

2
IPv6 Header Format Extension Headers

0 4 12 16 24 31 „ Less used functions moved to extension headers.


„ Only present when needed.
Vers Traffic Class Flow Label
„ Processed only by node identified in IPv6 destination field.
Payload Length Next Header Hop Limit => much lower overhead than IPv4 options
Exception: Hop-
Hop-by-
by-Hop option header
„ Eliminated IPv4’s 40-
40-byte limit on options
Source Address
„ Currently defined extension headers: Hop-
Hop-by-
by-hop,
Routing, Fragment, Authentication, Privacy, End-
End-to-
to-end.
„ Order of extension headers in a packet is defined.
„ Headers are aligned on 8-
8-byte boundaries.
Destination Address

May 2005 IIT Kanpur 12 May 2005 IIT Kanpur 13

Address Types IPv6 Addresses

„ 128-
128-bit addresses
Unicast Address for a single interface.
Multicast Identifier for a set of interfaces. „ Multiple addresses can be assigned to an interface
Packet is sent to all these interfaces. „ Provider-
Provider-based hierarchy to be used in the beginning
„ Addresses should have 64-
64-bit interface IDs in EUI-
EUI-64
Anycast Identifier for a set of interfaces.
format
Packet is sent to the nearest one.
„ Following special addresses are defined :
– IPv4-
IPv4-mapped
– IPv4-
IPv4-compatible
– link-
link-local
– site-
site-local

May 2005 IIT Kanpur 14 May 2005 IIT Kanpur 15

IPv6 Routing QoS Capabilities

„ Hierarchical addresses are to be used.


„ Initially only provider-
provider-based hierarchy will be used. „ Protocol aids QoS support, not provide it.
„ Longest prefix match routing to be used. „ Flow labels
– To identify packets needing same quality-
quality-of-
of-service
(Same as IPv4 routing under CIDR.)
– 20-
20-bit label decided by source
„ OSPF, RIP, IDRP, ISIS, etc., will continue as is – Flow classifier: Flow label + Source/Destination addresses
(except 128-
128-bit addresses). – Zero if no special requirement
„ Easy renumbering should be possible. – Uniformly distributed between 1 and FFFFFF
„ Provider selection possible with anycast groups. „ Traffic class
– 8-bit value
– Routers allowed to modify this field

May 2005 IIT Kanpur 16 May 2005 IIT Kanpur 17

3
IPv6: Security Issues Mobility Support in IPv6

„ Provision for „ Mobile computers are becoming commonplace.


– Authentication header „ Mobile IPv6 allows a node to move from one link to
ƒ Guarantees authenticity and integrity of data another without changing the address.
– Encryption header
„ Movement can be heterogeneous, i.e., node can move
ƒ Ensures confidentiality and privacy
from an Ethernet link to a cellular packet network.
„ Encryption modes:
„ Mobility support in IPv6 is more efficient than mobility
– Transport mode
support in IPv4.
– Tunnel mode
„ Independent of key management algorithm. „ There are also proposals for supporting micro-
micro-mobility.
„ Security implementation is mandatory
requirement in IPv6.

May 2005 IIT Kanpur 18 May 2005 IIT Kanpur 19

Operation of Mobile IPv6 Care-


„ Care-of address is obtained using auto-
auto-configuration
mechanisms of neighbour discovery.
„ Mobile node is always addressable by its home „ Mobile node, when away, registers its binding with a
address.
address. router on the home link called home-
home-agent.
agent.
„ Home link is the link to which mobile nodes home „ Binding update and Binding Ack destination options
address is bound. are used for this purpose.
„ When attached to home link, packets are routed „ Home agent uses proxy neighbour discovery to
conventionally. intercept packets destined for the mobile node.
„ When the node moves to foreign links, it gets a „ It then tunnels the packet to mobile node’s care-
care-of
care-
care-of address.
address. address.
„ Binding is an association between a home address „ Mobile node when away uses its care-
care-of address for
and a care-
care-of address. communication.

May 2005 IIT Kanpur 20 May 2005 IIT Kanpur 21

Neighbour Discovery

„ Mobile node uses a Home Address option to tell the


„ Router Discovery - determines set of routers on the link.
other nodes its original address.
„ Prefix Discovery - set of on-
on-link address prefixes.
„ Communicating nodes can cache the bindings and
communicate with the mobile node directly. „ Parameter Discovery - to learn link parameters such as
link MTU, or internet parameters like hop limit, etc.
„ They use Binding Request destination option to
„ Address Auto-
Auto-configuration - address prefixes that can
learn the current binding.
be used for automatically configuring interface address.
„ A mobile node can send a Binding Update to a
„ Address resolution - IP to link-
link-layer address mapping.
communicating node which is using its home address
as destination address. „ Duplicate Address Detection.
„ The communicating node should acknowledge it with „ Route Redirect - inform of a better first hop node to
reach a particular destination.
a Binding Acknowledgement.
Acknowledgement.

May 2005 IIT Kanpur 22 May 2005 IIT Kanpur 23

4
Neighbour Discovery Operation Neighbour Discovery Operation (contd..)

„ Based on ICMPv6 messages


– Router Solicitation (RS) „ Router advertisement
– Router Advertisement (RA) – Sent by routers periodically or in response to RS.
– Neighbour Solicitation (NS) – Hosts build a set of default routers based on this
information.
– Neighbour Advertisement (NA)
– Provides information for address auto-
auto-
– Redirect
configuration, set of on-
on-link prefixes etc.
– Supplies internet/subnet parameters, like MTU,
„ Router Solicitation and hop limit.
– sent when an interface becomes enabled, hosts – Includes router’s link-
link-layer address.
request routers to send RA immediately.

May 2005 IIT Kanpur 24 May 2005 IIT Kanpur 25

Address Auto-
Auto-configuration
Neighbour Discovery Operation (contd..)
The problem
„ Neighbour Solicitation „ System bootstrap (“plug and play”)
„ Address renumbering
– To request link-
link-layer address of neighbour
– Also used for Duplicate Address Detection
Addressing Possibilities
„ Neighbour Advertisement Manual Address configured by hand
– Sent in response to NS Autonomous Host creates address with no external
– May be sent without solicitation to announce change interaction (e.g., link local)
in link-
link-layer address Semi-
Semi-autonomous Host creates address by combining a priori
information and some external information.
„ Redirect - used to inform hosts of a better first hop
Stateless Server Host queries a server, and gets an address.
for a destination. Server does not maintain a state.
Stateful Server Host queries a server, and gets an address.
Server maintains a state.

May 2005 IIT Kanpur 26 May 2005 IIT Kanpur 27

Auto-
Auto-configuration in IPv6 Address Renumbering

Link- „ To migrate to a new address


„ Link-local prefix concatenated with 64-
64-bit MAC address.
(Autonomous mode) – change of provider
„ Prefix advertised by router concatenated with 64-
64-bit MAC – change in network architecture
address. (Semi-
(Semi-autonomous mode.) „ Methods
„ DHCPng (for server modes) – router adds a new prefix in RA, and informs that the old
prefix is no longer valid.
– Can provide a permanent address (stateless mode)
– When DHCP lease runs out, assign a new address to node.
– Provide an address from a group of addresses, and keep track
of this allocation (stateful mode) – DHCPng can ask nodes to release their addresses.
– Can provide additional network specific information. „ Requires DNS update. DHCPng can update DNS for clients.
– Can register nodes in DNS. „ Existing conversations may continue if the old address
continues to be valid for some time.

May 2005 IIT Kanpur 28 May 2005 IIT Kanpur 29

5
Upper Layer Issues
„ The pseudo-
pseudo-header is changed in checksum
computation:
„ Minor changes in TCP
– Address are 128 bits.
– Maximum segment size should be based on Path MTU.
– Payload length is 32 bits.
– The packet size computation should take into account larger
size of IP header(s).
header(s). – Payload length is not copied from IPv6 header.
– Pseudo-
Pseudo-header for checksum is different. (Extension headers should not be counted.)
– Next header field of last extension header is used in place
„ UDP checksum computation is now mandatory. of protocol.
„ Most application protocol specifications are „ UDP packets must also have checksum.
independent of TCP/IP - hence no change.
(Since no IP checksum now.)
„ FTP protocol exchanges IPv4 addresses - hence needs
to be changed.

May 2005 IIT Kanpur 30 May 2005 IIT Kanpur 31

Changes in Other Protocols Transition to IPv6: Design Goal

„ ICMPv6 „ No “flag”day.
– Rate limiting feature added „ Incremental upgrade and deployment.
ƒ Timer based „ Minimum upgrade dependencies.
ƒ Bandwidth based „ Interoperability of IPv4 and IPv6 nodes.
– IGMP, ARP merged „ Let sites transition at their own pace.
– Larger part of offending packet is included „ Basic migration tools
„ DNS – Dual stack and tunneling
– AAAA type for IPv6 addresses – Translation
– A6 type: recursive definition of IP address
– Queries that do additional section processing are redefined
to do processing for both ‘A’ and ‘AAAA’ type records

May 2005 IIT Kanpur 32 May 2005 IIT Kanpur 33

Transition Mechanisms: Dual Stack


Transition Mechanism: Tunnels

„ Tunnel IPv6 packets across IPv4 topology.


„ Configured tunnels:
„ New nodes support both IPv4 and IPv6. – Explicitly configured tunnel endpoints.
„ Upgrading from IPv4 to v4/v6 does not break anything. – Router to router, host to router.
„ Same transport layer and application above both. „ Automatic tunnels:
„ Provides complete interoperability with IPv4 nodes. – Automatic address resolution using embedded IPv4
address (like IPv4-
IPv4-compatible address).
– Host to host, router to host

May 2005 IIT Kanpur 34 May 2005 IIT Kanpur 35

6
Transition mechanism: Translation Transition Plan for Internet

„ This will allow communication between IPv6 only „ Maintain complete V4 routing till addresses last.
hosts and IPv4 only hosts. „ Upgrade V4 routers to dual stack.
„ A typical translator consists of two components: „ Incrementally build up V6 backbone routing system.
– translation between IPv4 and IPv6 packets. – Use v6-
v6-over-
over-v4 tunnels to construct 6bone.
6bone.
– Address mapping between IPv4 and IPv6 – Grow like Mbone (multicast backbone).
„ For translation, three technologies are available: „ De-
De-activate tunnels as soon as underlying path
– header conversion upgraded to V6.
– transport relay
– application proxy

May 2005 IIT Kanpur 36 May 2005 IIT Kanpur 37

Transition Options for User Sites

„ Incrementally upgrade V4 hosts to dual V4/V6


– Use IPv4-
IPv4-compatible addresses with existing IPv4
address assignments

Thank You
– Host-
Host-to-
to-host automatic tunneling over IPv4
„ Upgrade routers to IPv6.
– Hosts may require native IPv6 addresses
– DNS upgrade is needed before hosts get IPv6
addresses
„ Connect IPv6 router to an IPv6-
IPv6-enabled ISP.
„ Install translators like NAT-
NAT-PT or SIIT.

May 2005 IIT Kanpur 38 May 2005 IIT Kanpur 39

También podría gustarte