01 Ipv6 Core en
01 Ipv6 Core en
01 Ipv6 Core en
IP
Powerline ATM
1
GSM/UMTS Ethernet
Bluetooth Satellite
Wi-Fi SONET
Limitations of IPv4
Shortage of IPv4 addresses Problems with routing scalability Need for new and more efficient services
Situation (2010)
Situation (2011)
Problems
Router limitations
Too much information to manage
10
11
Private addresses
Intranet, RFC 1918 Not enough to solve the problem
It should be used in conjunction with NAT or ALG
12
Solutions: DHCP, PPP, etc. It allows a host to contact the rest of the world
Client interaction with a server, but not the other way around
Mobility
Possibility to move from a point to another of the network, in a fully transparent way for IP.
13
Higher security requirements (protecting data in transit) Solution: Mobile IP (RFC 2002) never really implemented in IPv4
Mobile IP requires several addresses, which are lacking
Fundamental networks
problem
for
full
support
to
3G
14
Solution
IPsec (RFC 2401)
IP Authentication Header (AH) Encapsulating Security Paylod (ESP)
15
Stateful assignment
Based on recognition of the interface MAC address If the network interface changes, the IP address changes too
Problems
Requires an "ad hoc" server Network re-numbering is not managed with this protocol
Autoconfiguration for the hosts, not for the network
16
DiffServ Model
Stochastic quality Service class definition
Multicast
No specific solution defined for IPv4 Research advances applicable to both IPv4 and IPv6 Multicast is still an open problem
17
Major problems
Routing scalability Need for public addresses required by peer-to-peer applications
E.g. Voice over IP
18
Birth of di IPv6
Meeting IETF Boston (1992), Call for proposals
Appointment of dedicated Working Groups
Several proposals
TUBA: adopting OSI CNLP as new IP CATNIP: integration of different network (IP, CLNP, IPX) and transport (TP4, SPX, TCP, UDP) protocols
TCP/IP allowedat one end of the connection, and TCP/CLNP at the other end
Winning proposal
List of requirements with 17 goals The winner should satisfy the higher number of requirements
SIPP with 128 bit addresses
19
Source IP Address
IPv6
Destination IP Address
0 Vers.
4 HLEN
8 Traffic Class
16
19 Total Length
31
Flags
IPv4
PAD
Details
8 fields in IPv6 rather than 12 in IPv4
Some field re-named, other added
Fixed size header (40 bytes), no Header Length No checksum No fragmentation allowed in intermediate nodes (router)
21
22
23
24
25
Headers chaining
26
Extension Headers
Six types defined, so far:
Hop By Hop Option Header Routing Header Fragment Header Authentication Header Encrypted Security Payload Header Destination Option Header
Order of appearence
27
0 Next Header
16
31
28
Common options
Pad1 and PadN to align packets to a 8 byte boudary Classical extension header classici do not need padding
0 Type
8 Length
16
31
Value
29
01 10
11
The packet must be descrded, and an ICMPv6 Parameter Problem must be generated, unless the destination addres is a multicast one
30
0 Next Header
16
31
31
Routing Header
The sender indicates the path to follow to reach the destination
Similar to Source Routing in IPv4
Main fields
Segment Left: number of path segments to go Routing Type: cuirrently 0 (classical source routing) Header Length: in multiples of 8 bytes, excluding the first 8 0 Next Header 8 Header Length 16 Routing Type 24 Segment Left 31
Type-Specific Data (min 4 bytes) Reserved Router Address 1 ... Router Address N
32
IPv6 Hdr From: S To: R1 NextHdr: Routing Routing Hdr Segment Left: 2 Hop 1: R2 Hop 2: D
IPv6 Hdr From: S To: R2 NextHdr: Routing Routing Hdr Segment Left: 1 Hop 1: R1 Hop 2: D
IPv6 Hdr From: S To: D NextHdr: Routing Routing Hdr Segment Left: 0 Hop 1: R1 Hop 2: R2
List of routers that have used the header (may be the list of router traversed by the packet) 33
Fragment Header
Fargmentation in IPv4 and IPv6
IPv4: any node along the path is allowed to fragment datagrams IPv6: only the sender node is allowed to fragment the datagram
Identification
34
Fragmentation mechanism
Each packet includes to sections:
A section that can be fragmented A section the cannot be fragmented
Includes IPv6 header and all the Extension Header written before the Fragment Header (that is, up to the Routing Header included) It should be repeated in all the fragments
Do not fragment
Fragment 1
Fragment 2
Fragment 3
Fragmentation example
40 24 24 IPv6 Ext Hdr Ext Hdr Header non framm. framm. 520 Data (1412 bytes) Data (1412 ottetti) 544 348
MTU=620
40 24 8 24 IPv6 Ext Hdr Fragm. Ext Hdr Header non framm. Header framm.
520 Data
348 Data
Payload Length = 576 Fragm. Hdr Next Hdr= Ext. Hdr. Fragm Identification = 777 40 24 8 Offset = 0 MF Flag = 1 IPv6 Ext Hdr Fragm. Header non framm. Header
544 Data
Payload Length = 412 Fragm. Hdr Next Hdr= Ext. Hdr. Fragm Identification = 777 Offset = 136 [(520+24+544)/8] MF Flag = 0
36
Payload Length = 576 Fragm. Hdr Next Hdr= Ext. Hdr. Fragm Identification = 777 Offset = 68 [(520+24)/8] MF Flag = 1
37
Security Association
Relation between two ore more entities, with an associated set of security options One-way It si defined in each host by the triple SPI, Destination Address, security mechanism used (AH/ESP) It is negotiated in a preliminary phase
Internet Key Exchange (IKE)
38
Authentication Header
Authentication Header
Sender authentication
Authentication Data
Includes the Integrity Check Value 0 Next Header 8 Payload Length 16 Reserved 31
39
40
Encrypted
Usage modes
Tunnel mode
Avoids plaintext data Problems: fragmentation, more overhead, need for additional entities to manage the tunnel
ESP
Data to encrypt
encrypted
ESP
Header v6
41
At the end of the Extension Header chain, before the header of the upper layer protocol
0 Next Header
16
31
42
Addressing architecture
Three types of IP addresses:
Unicast: host addresses
Global (aggregatable), equivalent to public ones (in IPv4) Site-local, equivalent to private ones Link-local, equivalent to autoconfigured ones (always present)
43
44
Prefix
No more Netmask It is substituted by the Prefix concept Prefix is indicated by adding /N at the end, where N is the length of the prefix in bits Example:
FEDC:0123:8700::/36 is the prefix 1111 1110 1101 1100 0000 0001 0010 0011 1000
45
Address prefixes
Reserved (IPv4) Unassigned Reserved for NSAP Allocation Reserved for IPX Allocation Unassigned Unassigned Unassigned Aggregatable Global Unicast Addr. Unassigned (was Provider-Based Unicast Addr.) Unassigned Unassigned (was Geographic-Based Unicast Addr.) Unassigned Unassigned Unassigned Unassigned Unassigned Private (substitutes site local) Unassigned Link Local Use Addresses Site Local Use Addresses (deprecated in 2004) Multicast Addresses 0000 0000 0000 0000 0000 0000 0001 001 010 011 100 101 110 1110 1111 1111 1111 1111 1111 1111 1111 0000 0001 001 010 011 1 1/256 1/256 1/128 1/128 1/128 1/32 1/16 1/8 1/8 1/8 1/8 1/8 1/8 1/16 1/32 1/64 1/256 1/512 1/1024 1/1024 1/256
46
TLA
To other Interchanges
Site topology
Site-Level Aggregation Identifier (instradamento intra-sito)
Interface ID
ID dellhost 3 k n m NLA ID 16 SLA ID site topology 64 Interface ID interface identifier
FP TLA ID RES
Il formato EUI-64
48 bit MAC address
cccccc0gcccccccccccccccc xxxxxxxxxxxxxxxxxxxxxxxx
OUI
Universal bit
manufacturer-selected
cccccc1gcc............cc
11111111 11111110
xxxxxx...xxxxxxx
OUI
0xFF
0xFE
manufacturer-selected
49
10
54 0
64 Interface ID
link local
1111-1110-10 (FE80)
50
Loopback
::1
with
different
network
51
Stazioni dual-stack
application
sockets
IPv4
IPv6
Ethernet
52
Multi-homing
Users with more than one provider Configuration problems (destination routing, doble registration in DNS) address-based
2001:B6EF::0/32
Provider a
Provider b
3001:45CD::0/32
2001:B6EF:25::0/48
3001:45CD:F300::0/48
utente
53
Anycast addresses
Non reserved address space
unicast addresses assigned to a group of interfaces nodes should known that it is an anycast address
The target is the machine of the group "closest" to the sender They can be assigned only to routers, and not to generic hosts
54
Anycast: formati
Only one anycast address defined, so far:
subnet router anycast address : n Subnet prefix 128-n 000..00
64 Subnet prefix
57 111111011....11
7 Anycast ID
interface identifier
55
Multicast address
Flag
format: 000T T is set (1) for a temporary address o reset (0) for a permanent one
8 1111-1111
56
4 Flag
4 Scope Group ID
112
Type
Code
Checksum Reserved
57
ICMPv6
Internet Control Message Protocol Three main usages
Diagnostics Neighbor Discovery Multicast group management
58
Field Type
Currently defined values
1 2 3 4 128 129 130 131 132 133 134 135 136 137
59
Destination Unreachable Packet too big Time exceeded Parameter Problem Echo Request Echo Reply Group Membership Query Group Membership Report Group Membership Termination Router Solicitation Router Advertisement Neighbor Solicitation Neighbor Advertisement Redirect
60
ICMPv6: Echo
Tipes of messages
Echo request (type= 128) Echo reply (type= 129)
8 Type Identifier
8 Code
61
Type
Code
Checksum Unused
62
State-of-the-art of IPv6
All the major aspects are defined and stabilized Implementations:
router: all the major manufacturers have their implementation Host
very good compatibility in all modern operating systems default installation in many operating systems
63
64
Conclusions
IPv6 reached a mature stage for wide adoption Adoption has been slow down by massive usage of IPv4 The lack of available IPv4 will push to IPv6 adoption
65