• No results found

IPv6 Next Generation Internet Protocol

N/A
N/A
Protected

Academic year: 2021

Share "IPv6 Next Generation Internet Protocol"

Copied!
50
0
0

Loading.... (view fulltext now)

Full text

(1)

schmidt@informatik. haw-hamburg.de

IPv6

Next Generation Internet Protocol

• The limits of IPv4 – IPv6 Highlights

• Addressing

• IPv6 Packet formats

• Routing, QoS

• Further aspects

(2)

schmidt@informatik. haw-hamburg.de

The Limits of IPv4

• Basic design about 30 years old

- Packet format, ... outdated

- Hardware development of networks overran IP algorithms

• Address space exhausted

- ‚Regular‘ Internet growth runs out of addresses

- New kinds of Internet devices (mobile telephones, intelligent devices,...) need new quantities of addresses

- Caused by address bottle-neck: NAT-ALGs

(3)

schmidt@informatik. haw-hamburg.de IP IP IP IP

The Internet Idea

One Internet-Layer with global addresses

(4)

schmidt@informatik. haw-hamburg.de NAT-ALG IP NAT-ALG NAT-ALG

The Internet Today

NAT Application-Layer Gateways

• No global addressing

(5)

schmidt@informatik. haw-hamburg.de

IP Service Problems

• Address configuration: Static

• Backbone Routing: Little address structures

• Security: IP over IP tunnelling

• Multicasting: Routing too complex

• Anycasting: Application specific solutions

• QoS: No flow support

(6)

schmidt@informatik. haw-hamburg.de

IP Routing: CIDR

• Static subnet masks in IPv4 (classes) lead to two main problems: Class B exhaustion & explosion of R-T

• Internet backbone routers need methods for aggregation, to limit routing tables:

– Classless Interdomain Routing (CIDR) – Variable Length Subnet Masks (VLSM)

• Approach:

(7)

schmidt@informatik. haw-hamburg.de

Route Aggregation via VLSM

(8)

schmidt@informatik. haw-hamburg.de

Why IPng?

Why don‘t continue with IPv4 + additional services?

IPng tackles the Internet scaling problem

IPng brings new Services and openness for further development

IPng is a well matured architectural evolution of IP

IPng brings a carefully designed transition concept

(9)

schmidt@informatik. haw-hamburg.de

IPv6: Important Markets

• Asia

• Mobile telephone business • Home device manufacturer • VoIP/VCoIP manufacturer • Game industry

(10)

schmidt@informatik. haw-hamburg.de

IPv6 Innovations

Addressing and routing

- Elimination of address bottle-neck: 128 Bit addresses - Address hierarchy can simplify backbone routing

- Several addresses per interface

• Simple administration

- Autoconfiguration of interfaces without DHCPv6 - Floating net masks, renumbering via prefix change

• Security: IPSec

(11)

schmidt@informatik. haw-hamburg.de

IPv6 Innovations(2)

• Protocol configuration

– Slim header for fast processing – Optional extension headers – Fixed format for all headers – No header checksum

– No fragmentation in routers

(12)

schmidt@informatik. haw-hamburg.de

IPng History

• IETF WG IPng began to work in the early 90er • Winter 1992: 7 proposals for development of IP

– CNAT, IP Encaps, Nimrod, Simple CLNP, PIP, SIP, TP/IX

• Autumn 1993: several mergers lead to

– ‚Simple Internet Protocol Plus‘ (SIPP) and ‚Common Architecture for the Internet‘ CATNIP

• July 1994: IPng Area Director recommend roadmap (RFC 1752) on basis of SIPP (Steve Deering)

• Dec. 1995: S. Deering, R. Hinden, „Internet Protocol,

(13)

schmidt@informatik. haw-hamburg.de

IPv6 Standardisation

Key components in standard track:

Specification (RFC2460) Neighbour Discovery (RFC2461) ICMPv6 (RFC2463) IPv6 Addresses (RFC2373/4/5) RIP (RFC2080) BGP (RFC2545)

IGMPv6 (RFC2710) OSPF (RFC2740)

Router Alert (RFC2711) Jumbograms (RFC2675) Auto configuration (RFC2462) ….

• IPv6 over:PPP (RFC2023) Ethernet (RFC2464) FDDI (RFC2467) Token Ring (RFC2470) NBMA(RFC2491) ATM (RFC2492)

Frame Relay (RFC2590) ARCnet (RFC2549)

(14)

schmidt@informatik. haw-hamburg.de

IPv6 Implementations

• Most IP stack manufacturer have implementations (in different

phases)

Supported Products: 3Com, Epilogue, Ericsson, IBM, Hitachi, KAME, Nortel, Sun, Cisco, Compaq, FreeBSD, HP, Juniper, Linux, Microsoft, Enterasys, Alcatel,

Novell, …

• Active cooperation at test events:

(15)

schmidt@informatik. haw-hamburg.de

Addressing

• IPv6 addresses are 128-bit long and variably built

• Address architecture: RFC 3513 (April ´03, Hinden & Deering) • Automatic address configuration

• Global address hierarchy from top level

allocation to the interface-ID designated

• Aggregation-based allocation to simplify

the global routing (possible)

(16)

schmidt@informatik. haw-hamburg.de

Notation of IPv6 Addresses

• Standard Form: 8 x 16 bit Hexadecimal

Example: 1080:0:FF:0:8:800:200C:417A

• Short form: sequences of nulls replaced by ::

Example: FF01:0:0:0:0:0:0:43 → FF01::43

• IPv4 compatible addresses:

Example: 0:0:0:0:0:0:13.1.68.3 → ::13.1.68.3

• CIDR notation for prefixes:

(17)

schmidt@informatik. haw-hamburg.de

Address Types

Type Binary Prefix

• Unicast (one-to-one)

– global all not specified elsewhere – site-local 1111 1110 11 (FEC0::/10) – link-local 1111 1110 10 (FE80::/10) – compatible (IPv4, a.a.) 0000...0 (96 zero bits)

– Loop back 0000..1 ::1/128

(18)

schmidt@informatik. haw-hamburg.de

Global Unicast Addresses

(RFC 3513)

n bits m bits 128–m–n bits

Subnet

ID Interface Identifier Global Routing

Prefix

• All fields have variable length and are not ‚self-explanatory ‘ (as of CIDR)

• All global unicast addresses, which do not begin with 000 (binary), carry a 64 bit interface ID, this means m + n = 64

(19)

schmidt@informatik. haw-hamburg.de

Previous Unicast Format

Aggregatable Global Unicast Format - RFC2374

(20)

schmidt@informatik. haw-hamburg.de

Local Unicast Addresses

• Link-local addresses for use during auto-configuration and in nets without routers:

1111111010 0 Interface ID

• Site-local addresses independent of TLA/NLA:

(21)

schmidt@informatik. haw-hamburg.de

Multicast Addresses

11111111 flags scope Group ID

8 4 4 112 bits

• Flag field: lower bit indicates permanent (=0) respectively transient (=1)

group, rest is reserved (==0)

• Scope field: 1 - node local

2 - link-local 5 - site-local

8 - organisation local B - community-local

(22)

schmidt@informatik. haw-hamburg.de

Example: FHTW IPv6 Net

• 2001:: /16 - Pre-set prefix

2001:0600:: /23 - Regional registry Europa (RIPE)

2001:0638:: /29 - DFN prefix

2001:0638:0801:: /48 - FHTW net address

2001:0638:0801:0001:: /64 - First FHTW subnet

2001:0638:0801:0001:0000:0000:0000:0001 /128

(23)

Internet Control Message

Protocol (ICMPv6)

schmidt@informatik. haw-hamburg.de

RFC 2463 (Conta, Deering)

• Defines two (expandable) message classes:

Informational Messages

• Echo Request (128) • Echo Reply (129)

Error Messages

• Destination Unreachable (1) • Packet Too Big (2)

(24)

schmidt@informatik. haw-hamburg.de

IPv6 Neighbour Discovery

• RFC 2461

• Protocol over ICMPv6

– Combination of IPv4 Protocols (ARP, ICMP,…) • Autonomous interaction between hosts and routers

– Defines 5 ICMPv6 packet types:

• Router Solicitation / Router Advertisements

(25)

schmidt@informatik. haw-hamburg.de

• Defines communication mechanisms for nodes on the same link: – Router discovery

– Prefix discovery

– Parameter discovery, i.e.: link MTU, hop limit,… – Address auto-configuration

– Address resolution (same function as ARP) – Next-hop determination

– Neighbour unreachable detection (useful for default routers) – Duplicate address detection

– Redirect

(26)

schmidt@informatik. haw-hamburg.de

Stateless Auto-Configuration

1. Interface assigns a link-local address on activation (e.g. built from a hardware address).

2. Interface sends router solicitation, to omit waiting for router advertisements.

3. Router sends router advertisement (prefix, default gateway, …). 4. The interface creates its global address from prefix and link-local

address.

(27)

schmidt@informatik. haw-hamburg.de

Auto-Reconfiguration

New address-prefixes can be distributed and retreated:

– Coexistence periods between old and new prefixes

planned

– Hosts learn prefix-lifecycle and priorities via router

advertisements

– Old TCP-connections survive within coexistence periods,

new TCP-connections survive prefixchange

(28)

schmidt@informatik. haw-hamburg.de

IPv6 Packet Format: Basic Header

(29)

schmidt@informatik. haw-hamburg.de

1 4 8 16 19 24 32

Version Servicetypen Paketlänge

Identifikation D

F M

F Fragmenabstand Lebenszeit Transport Kopfprüfsumme

(30)

schmidt@informatik. haw-hamburg.de

Header Changes of IPv4

• Addressing grows from 32 to 128 Bit

• Fragmenting will be deleted from basis header

• IP Options will be deleted from basis header

• Header Checksum drop out

• Header length field drop out

• Flow Label newly included

• Time to Live → Hop Limit

• Protocol → Next Header

• Service types → Traffic Class

• Length field describes data without header

(31)

schmidt@informatik. haw-hamburg.de

IPv6 Packet Format: Option Headers

• Extended option mechanisms: Each header references a possible successive header or data, e.g.:

I P v 6 h e a d e r N H : r o u t i n g I P v 6 h e a d e r N H : r o u t i n g f r a g m e n t h e a d e r N H : T C P T C P h e a d e r d a t a r o u t i n g h e a d e r N H : f r a g m e n t

• Option headers have no length limit (IPv4: 40 Octets), Padding to 8 Octets

(32)

schmidt@informatik. haw-hamburg.de

Basic Option Headers

Routing

Advanced routing information (source routing)

• Fragmentation

Fragmentation / defragmentation information

• Authentication

Security information: authentication and integrity

• Encapsulation

‚Tunnelling‘, i.g. for confidential data

• Hop-by-Hop Option

Dedicated options to be processed by every router

• Destination Option

(33)

schmidt@informatik. haw-hamburg.de

Order of Headers

The processing order of the headers will be arranged by the sender according to the following recommendation :

(34)

schmidt@informatik. haw-hamburg.de

Fragmentation

• IPv6 avoids the expensive fragmentation process on routers. The sender hast to fragment, if necessary.

• Sender should execute path-MTU discovery. • Routers answer with ICMP „Packet too big“.

• IPv6 Fragmentation Header can be used to support upper layers without dynamically executing MTU-Discovery.

Next Header Fragment Offset 0 0 M

(35)

schmidt@informatik. haw-hamburg.de

Packet Tunnelling of IPv6

• RFC 2473 (Conta, Deering)

• Mainly used for explicit routing path control • Defines (statefull) ‚ends‘:

- Tunnel Entry-Point - Tunnel Exit-Point

• State variables contain MTU, Traffic Class, Flow Label • Fragmentation may be necessary at tunnel entry point

(36)

schmidt@informatik. haw-hamburg.de

MTU Handling

• The minimal Link-MTU for IPv6 is 1280 Bytes (versus 68 Bytes for IPv4).

• Path-MTU discovery necessary only for packets > 1280 Bytes.

• Minimal IP implementation can live without path-MTU discovery and without fragmentation (Packets ≤ 1280 Bytes).

• Upper Layer (TCP): MSS = MTU – 60.

(37)

schmidt@informatik. haw-hamburg.de

IPv6 Routing

• Using CIDR „longest prefix match“/ largest mask to go for. • Hierarchical addressing is key issue for a scalable Routing • Dynamical routing protocols from IPv4 updated:

Unicast: OSPF, RIP-II, BGP4+,... Multicast: MOSPF, PIM, ...

• Can send packets through predefined regions by using routing headers and anycast addresses

(38)

schmidt@informatik. haw-hamburg.de

IPv6 & QoS

Priority: Traffic Class Feld (8 Bit) break down in two classes: • Flow controlled traffic (0 - 7)

0 Not specified 4 Bulk (i.g. ftp, http) 1 ‚Feeder‘ (i.g. netnews) 5 (Reserved)

2 Unnoticed (i.g. email) 6 Interactive (i.g. telnet, X11) 3 (Reserved) 7 Internet control (i.g. rip)

• Traffic without flow control (Realtime, Constant Bitrate, ...)

(39)

schmidt@informatik. haw-hamburg.de

Flow Labels

24-bit Flow Labels can be uses by senders to mark associated packets. • RFC 3697 – Use at present still experimental

• Goal: accelerated, uniform handling of packet streams through routers • Flow label: Random per Flow

(40)

schmidt@informatik. haw-hamburg.de

More to IPv6

Domain Name System, closed disscussion – A-Record → AAAA - Record versus

– A-Record → [A6 - Record (storage of address parts)]

• SNMP: in review, SNMP(v4) can manage IPv6 interfaces • IPsec is mandatory part of IPv6

• Secure Neighbour Discovery (Send) • IPv6 over 3GPP

(41)

schmidt@informatik. haw-hamburg.de

IPv4

→ IPv6 Porting

• Source and binary code compatibility for existent application: ‘all goes on’

• Address data structure: New for IPv6

• Name-to-address translation:

New functions to support IPv6 and IPv4 • Address converting functions:

New functions to support IPv6 and IPv4 • DNS resolver:

(42)

schmidt@informatik. haw-hamburg.de

IPv4

→ IPv6 Porting:

API Changes

Address conversion functions inet_aton() inet_addr() inet_ntoa() AF_INET in_addr sockaddr_in inet_pton() inet_ntop() getipnodebyname() getipnodebyaddr getnameinfo() * getaddrinfo() * AF_INET6 in6_addr sockaddr_in6 IPv4 IPv6 Data structures Name-to-address functions IP v4 and I P v6 fu nctio n s gethostbyname() gethostbyaddr()

(43)

schmidt@informatik. haw-hamburg.de

IPv6 Ported Services (as of 2004)

For all services in open source area native IPv6-Support is offered, few only per patch – particularly through the KAME-Project

• SMTP: native: Sendmail, Exim - Patch: qmail, Postx

• HTTP: native: Apache 2.x (, PHP4) - Patch: Apache 1.3.x • HTTP-Proxy: Patch: squid 1.x, Internet Junkbuster, wwwoe • DNS (Transport): nativ: BIND9

• FTP: native: BSD-ftp - Patch: wu-ftpd, proftpd • SSH: native: OpenSSH

• POP3: native: Courier-popd - Patch: qpopper • IMAP: native: Courier

(44)

schmidt@informatik. haw-hamburg.de

IPv4

→ IPv6 Migration

Many techniques for migration are designed and implemented

according to the following approach:

– Dual-Stack techniques, which allow the coexistence of IPv4 and

IPv6 for the same devices and nets

– Tunnel, which connect IPv6 regions over IPv4 regions

– Protocol translator, which let IPv6 devices with IPv4 devices

speak

(45)

schmidt@informatik. haw-hamburg.de DRIVER IPv4 IPv6 IPv4 IPv6 TCP/UDP

Dual Stack

• On activation of IPv6 the IPv4 can continously being used (multi protocol approach)

• Devices can keep their addresses (IPv4 in IPv6) • Application / libraries choose the IP version:

– On approach in dependency of DNS answer

– On answering in dependency from received packets

(46)

schmidt@informatik. haw-hamburg.de

Transition by Tunnels

• Embedding of IPv6 packets in IPv4 packets • Diverse methods to build a tunnel:

– Manuel

– Tunnel Broker (web based application to build a tunnel) – 6-over-4 (intradomain)

– 6-to-4 (interdomain, IPv4 address as IPv6 site prefix)

• View:

(47)

schmidt@informatik. haw-hamburg.de

IPv6-Tunnels

(48)

schmidt@informatik. haw-hamburg.de

Protocol Translation

Simple extension of NAT to translate header formats and

addresses

– IPv6 nodes behind translator speaks with full IPv6 functionality – Normal (limited) NAT functionality in contacting IPv4 hosts

• Scenario:

(49)

schmidt@informatik. haw-hamburg.de

Network Address and Protocol

(50)

schmidt@informatik. haw-hamburg.de

Bibliography

• Marc Blanchet: Migrating to IPv6, Wiley, 2006.

• Benedikt Stockebrand: IPv6 in Practice, Springer, 2007.

• Pete Loshin: IPv6 – Theory, Protocol and Practice. Elsevier, 2004. • 6Net Consortium: An IPv6 Deployment Guide, Sept. 2005.

References

Related documents

– Packets destined for anycast address are delivered to the “nearest” interface. – Subnet router anycast

Local Addresses With Network Prefix •  Unique Local IPv6 Unicast Address. –  Addresses similar to the RFC 1918 / private address like in IPv4 but will

This is a perfect comb for anyone who wants to groom their hair very neat and quick as it comes with hair product dispenser and also straightener feature.. Thus,

These variables are related to traffic flow such as: (1) Average An- nual Daily Traffic (AADT) and (2) percentage of heavy good vehicles (%HGV), infrastructure management

As a result, t he demand curve will shift leftward from D  1 to D  2 , as fewer tickets are demanded at any given price; other things equal, this results in a fall in both

In April 2013 the Chartered Institute of Public Finance & Accountancy’s Finance Advisory Network issued a briefing entitled ‘Housing Revenue Account

Using geographical variation in school admissions policies, we are able to split this difference into an age of starting school or length of schooling effect, and an age of sitting

Workshop on Strategic Executive Leadership International Bank of Qatar 5/20/2010 12/20/2010 Business & Management Training of Medical Services Director Qatar Petroleum