Network Layer – Part A (IPv6)
Network Layer 4-1
Network Layer Part A (IPv6) Network Layer 4-1 Chapter 4: outline - - PowerPoint PPT Presentation
Network Layer Part A (IPv6) Network Layer 4-1 Chapter 4: outline 4.1 Overview of Network 4.4 Generalized Forward and layer SDN data plane match control plane action 4.2 What s inside a router OpenFlow examples of
Network Layer 4-1
4-2 Network Layer: Data Plane
Network Layer 4-3
initial motivation: 32-bit address space soon to be
additional motivation:
Overcome IPv4 scaling problem
Flexible transition mechanism. New routing capabilities. Quality of service. Security. Ability to add features in the future.
Network Layer 5
1000 2000 3000 4000 5000 6000 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007
IPv4 Doomsday ?
Distribution Statement A: Cleared for Public Release; Distribution is unlimited.
Network Layer 6
Exponential Growth No Growth Linear Growth CIDR deployment Exponential Growth - CIDR breaking down
http://www.telstra.net/ops/bgptable.html
Distribution Statement A: Cleared for Public Release; Distribution is unlimited.
Network Layer 7
Network Layer 8
Network Layer 9
Dial-access / PPP / DHCP
Strict allocation policies
policy based on ‘projected-maximum-size’.
CIDR
Additional enforced aggregation actually lowered routing table growth rate to linear for a few years.
NAT
Network Layer 10
Actual allocation history
The lifetime-extending efforts & technologies delivered the
Network Layer 11
NAT enforces a ‘client-server’ application model where the server has
topological constraints.
(e.g., IP phones)
in the path have to be upgraded BEFORE the application can be deployed.
NAT compromises the performance, robustness, and security of the
Internet.
NAT increases complexity and reduces manageability of the local
network.
Public address consumption is still rising even with current NAT
deployments.
Network Layer 12
IP has been patched (subnets, supernets) but there is
IETF started effort to specify new version of IP in 1991
Same architectural principles as v4 – only bigger
Network Layer 13
IP March 1977 version (deprecated) 1 IP January 1978 version (deprecated) 2 IP February 1978 version A (deprecated) 3 IP February 1978 version B (deprecated) 4 IPv4 September 1981 version (current widespread) 5 ST Stream Transport (not a new IP, little use) 6 IPv6 December 1998 version (formerly SIP, SIPP) 7 CATNIP IPng evaluation (formerly TP/IX; deprecated) 8 Pip IPng evaluation (deprecated) 9 TUBA IPng evaluation (deprecated) 10-15 unassigned
Network Layer 14
1752 - Recommendations for the IP Next Generation
2460 - Overall specification 2373 - addressing structure others (find them) www.rfc-editor.org
Network Layer 15
Expectation of a resurgence of “always-on” technologies
Expectation of new users with multiple devices.
– (1015 endpoints)
Expectation of millions of new networks.
– (1012 sites)
Network Layer 16
Room for many levels of structured hierarchy and routing
Easy address auto-configuration Easier address management and delegation than IPv4 Ability to deploy end-to-end IPsec
(NATs removed as unnecessary)
Network Layer 17
Chance to eliminate some complexity in IP header
Chance to upgrade functionality
Chance to include new features
Network Layer 18
Expanded address space
Improved option mechanism
Address autoconfiguration
Network Layer 19
Increased addressing flexibility
Support for resource allocation
Network Layer 20
Expanded addressing capabilities Structured hierarchy to manage routing table growth Serverless autoconfiguration and reconfiguration Streamlined header format and flow identification Improved support for options / extensions
Network Layer 21
IPv6 actually has many kinds of addresses
most of this complexity is also present in IPv4,
one simplification: no broadcast addresses in IPv6!
Network Layer 22
Unicast
Anycast
Multicast
Network Layer 23
128 bits - written as eight 16-bit hex numbers.
High order bits determine the type of address.
24
Network Layer
Unicast address assignment is similar to CIDR
Provider-based plan
Anycase addresses are treated just like unicast addresses
25
Classless addressing/routing (similar to CIDR) Notation: x:x:x:x:x:x:x:x (x = 16-bit hex number)
Address assignment
Network Layer 26
001 Registry ID Provider ID Subscriber ID Subnet ID Interface ID n bits m bits
p bits (125-m-n-o-p) bits
Top Level and Next Level Aggregators Interface ID typically from MAC address Special site-local and link-local addresses Special multicast and anycast addresses Special IPv4 compatible addresses TLA NLA SLA Interface ID resv 3 13 8 24 16 64 F Public Topology Site Topology
IPv4-Mapped addresses allow a host that support
The IPv6 address is based completely on the IPv4
28
Network Layer
80 bits of 0s followed by 16 bits of ones, followed
29
An IPv6 application asks DNS for the address of a
DNS creates the IPv4-Mapped IPv6 address
Kernel understands this is a special address and
30
Start with link-local address Neighbor Discovery (ND) multicast to find prefix
Stateful assignment via DHCPv6 Stateless assignment via a routing prefix Entire sites can renumber with new prefix Mobility via dynamic care-of address
Allocation is classless
Standard representation is set of eight 16-bit values separated by
colons
32
33
0000 0000 Reserved 0000 0001 Unassigned 0000 001 Reserved for NSAP (non-IP addresses used by ISO) 0000 010 Reserved for IPX (non-IP addresses used by IPX) 0000 011 Unassigned 0000 1 Unassigned 0001 Unassigned 001 Unicast Address Space 010 Unassigned 011 Unassigned 100 Unassigned 101 Unassigned 110 Unassigned 1110 Unassigned 1111 0 Unassigned 1111 10 Unassigned 1111 110 Unassigned 1111 1110 0 Unassigned 1111 1110 10 Link Local Use addresses 1111 1110 11 Site Local Use addresses 1111 1111 Multicast addresses
IP Options
Vers 4
IHL
Type of Service
Total Length Identification
Flags
Frag Offset
Time to Live
Protocol Header Checksum Source Address Destination Address Source Address Destination Address Payload Length Hop Limit Next Hdr Flow Label
Traffic Class Vers 6
v4 Header = 20 Bytes + Options v6 Header = 40 Bytes
Simpler header - faster processing by routers.
Support for multiple headers
35
VERS: 6 (IP version number) Priority: will be used in congestion control Flow Label: experimental - sender can label a
Payload Length: number of bytes in everything
36
Next Header is similar to the IPv4 “protocol”
Hop Limit is similar to the IPv4 TTL field (but
37
No checksum
No length variability in header
No more fragmentation and reassembly in header
38
Network Layer 39
Network Layer 40 Stallings HSNET 2ed
Network Layer 4-41
Basic header Next header = TCP TCP segment Basic header Next header = routing Routing header Next header = fragment Fragment header Next header = authentication TCP segment Authentication header Next header = TCP
Network Layer 42 Stallings HSNET 2ed
Network Layer 43
Next header Header extension length Options
Network Layer 44
Similar to v4 fragmentation
Fragmentation is done on end host Node must perform path discovery to find smallest MTU of
45
next header reserved
M reserved ID
Same “longest-prefix match” routing as IPv4 CIDR Straightforward changes to existing IPv4 routing protocols to
Use of Routing header with anycast addresses allows routing
List of one or more intermediate nodes to be visited
Network Layer 46
Without this header, routing is essentially the same as v4 With this header essentially same as the source routing option in v4
Header length is in 64-bit words Up to 24 addresses can be included
Segments left tracks current target
47
8 16 24 31 Next header
Segmnts left 1 – 24 addresses
Network Layer 48
Reserved Strict/Loose Bit Mask Address 1 Address 2 0 8 16 24 31 Next Header Header Length Routing Type = 0 Segment Left
. . .
Address 24
Network Layer 49
Network Layer 4-50
Network Layer 4-51
Network Layer 52
Network Layer 4-53
not all routers can be upgraded simultaneously
tunneling: IPv6 datagram carried as payload in IPv4
IPv4 source, dest addr IPv4 header fields
IPv4 datagram IPv6 datagram
IPv4 payload UDP/TCP payload IPv6 source dest addr IPv6 header fields
Network Layer 4-54
physical view:
IPv4 IPv4
A B
IPv6 IPv6
E
IPv6 IPv6
F C D logical view:
IPv4 tunnel connecting IPv6 routers
E
IPv6 IPv6
F A B
IPv6 IPv6
Network Layer 4-55
flow: X src: A dest: F data
A-to-B: IPv6
Flow: X Src: A Dest: F data
src:B dest: E
B-to-C: IPv6 inside IPv4 E-to-F: IPv6
flow: X src: A dest: F data
B-to-C: IPv6 inside IPv4
Flow: X Src: A Dest: F data
src:B dest: E physical view: A B
IPv6 IPv6
E
IPv6 IPv6
F C D logical view:
IPv4 tunnel connecting IPv6 routers
E
IPv6 IPv6
F A B
IPv6 IPv6
IPv4 IPv4