IPV6 Headers and Features
-
Upload
ritesh-singh -
Category
Documents
-
view
231 -
download
0
Transcript of IPV6 Headers and Features
-
7/30/2019 IPV6 Headers and Features
1/57
IPV6 HEADER AND FEATURES
Yashvant Singh
Centre for Excellence in Telecom Technology and
Management
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
2/57
IPv6 Header and Features
IPv6 Header and Features
Topics Covered
Comparison of IPv4 and IPv6
IPv6 header
IPv6 header fields
IPv6 Extension Headers
IPv6 Mobility
Transition from IPv4 to IPv6
-
7/30/2019 IPV6 Headers and Features
3/57
IPv6 Header and Features
The IPv6 Header
An Internet Protocol version 6 (IPv6)
packet consists of an IPv6 header,
extension headers, and an upper-
layer protocol data unit.
-
7/30/2019 IPV6 Headers and Features
4/57
IPv6 Header and Features
The IPv6 Header
The components of an IPv6 packet areIPv6 Header
The IPv6 header is always present and is a fixed sizeof 40 bytes.
Extension Headers
Zero or more extension headers can be present andare of varying lengths.
If extension headers are present, a Next Header fieldin the IPv6 header indicates the first extensionheader.
Within each extension header is another NextHeader field, indicating the next extension header.
The last extension header indicates the header forthe upper-layer protocol
-
7/30/2019 IPV6 Headers and Features
5/57
IPv6 Header and Features
The IPv6 Header
Upper-Layer Protocol Data Unit The upper-layer protocol data unit (PDU)
consists of an upper-layer protocol header and
its payload
The IPv6 packet payload is the combination ofthe IPv6 extension headers and the upper-layer
PDU.
Normally, it can be up to 65,535 bytes long.
IPv6 packets with payloads larger than 65,535bytes in length, known asjumbograms, can also
be sent.
-
7/30/2019 IPV6 Headers and Features
6/57
IPv6 Header and Features
IPv6 Header and Features
IPv6 Header
Ver.4
IHL4
TOS (DS)8
Total Length16
Ver.4
Flow Label20
IPv4 Header IPv6 Header
Identification
16
Fragment Offset
13
Flag
3
Payload Length
16
Traff. Class8
Next Head.
8
Hop Count
8
TTL
8
Protocol
8
Header Checksum
16
Source Address128
Source Address
32Destination Address
32
Options (Var.) Pad
4
Enhanced in IPv6
Enhanced in IPv6
Enhanced in IPv6
Enhanced in IPv6
No Change in IPv6
Removed in IPv6
Destination Address128
-
7/30/2019 IPV6 Headers and Features
7/57
IPv6 Header and Features
Version The Version field indicates the version of IP and is set
to 6.
The size of this field is 4 bits.
Traffic Class The Traffic Class field indicates the IPv6 packets class
or priority.
The size of this field is 8 bits.
This field provides functionality similar to the IPv4Type of Service field.
The first 6 bits of the Traffic Class field are the DSCPfield and the last 2 bits are used for ECN.
IPv6 Header
-
7/30/2019 IPV6 Headers and Features
8/57
IPv6 Header and Features
Flow Label The Flow Label field indicates that this packet
belongs to a specific sequence of packets betweena source and destination, requiring specialhandling by intermediate IPv6 routers.
The size of this field is 20 bits.
The flow label is used for prioritized delivery, suchas delivery needed by real-time data (voice andvideo).
For default router handling, Flow Label field is setto 0
To distinguish a given flow, an intermediate routercan use the packets source address, destinationaddress, and flow label.
The IPv6 Header
-
7/30/2019 IPV6 Headers and Features
9/57
IPv6 Header and Features
Flow Label Therefore, there can be multiple flows between a
source and destination, as distinguished byseparate non-zero flow labels.
The flow label field allows flows to be tagged asthey enter the network so that similar traffic may be
tagged and switched quickly along a path insteadof being examined at each intermediate router.
The IPv6 Header
-
7/30/2019 IPV6 Headers and Features
10/57
IPv6 Header and Features
Payload Length The Payload Length field indicates the length of the
IPv6 payload.
The size of this field is 16 bits.
The Payload Length field includes the extensionheaders and the upper-layer PDU.
With 16 bits, an IPv6 payload of up to 65,535 bytescan be indicated.
For payload lengths greater than 65,535 bytes, the
Payload Length field is set to 0 and the JumboPayload option is used in the Hop-by-Hop Optionsextension header
The IPv6 Header
-
7/30/2019 IPV6 Headers and Features
11/57
IPv6 Header and Features
Next Header The Next Header field indicates either the
type of the first extension header (if present)
or the protocol in the upper-layer PDU (such
as TCP, UDP, or ICMPv6).
The size of this field is 8 bits.
When indicating an upper-layer protocol, the
Next Header field uses the same values that
are used in the IPv4 Protocol field.
The IPv6 Header
-
7/30/2019 IPV6 Headers and Features
12/57
IPv6 Header and Features
Value (Decimal) Header0 Hop-by-Hop Options header
6 TCP
17 UDP
41 Encapsulated IPv6 header43 Routing header
44 Fragment header
50 Encapsulating Security
Payload header51 Authentication header58 ICMPv6
59 No next header
60 Destination Options header
Values of the Next Header Field
-
7/30/2019 IPV6 Headers and Features
13/57
IPv6 Header and Features
Hop Limit The Hop Limit field indicates the maximum number of
links over which the IPv6 packet can travel beforebeing discarded.
The size of this field is 8 bits.
The Hop Limit field is similar to the IPv4 TTL field,except that there is no historical relation to theamount of time (in seconds) that the packet is queuedat the router.
When Hop Limit equals 0 at a router, the router sendsan ICMPv6 Time Exceeded-Hop Limit Exceeded inTransit message to the source and discards the packet.
The IPv6 Header
-
7/30/2019 IPV6 Headers and Features
14/57
IPv6 Header and Features
Source Address The Source Address field indicates the IPv6 address of
the originating host.
The size of this field is 128 bits.
Destination Address The Destination Address field indicates the IPv6
address of the current destination node.
The size of this field is 128 bits.
In most cases, the Destination Address field is set to
the final destination address. If a Routing extension header is present, the
Destination Address field might be set to the addressof the next intermediate destination.
The IPv6 Header
-
7/30/2019 IPV6 Headers and Features
15/57
CHECKSUM
In IPv4, each packet includes a header checksum
Since intermediate routers decrement the TTL,they also have to recalculate the checksum eachtime they handle a packet, resulting in moreprocessing resources being used throughout the
network
Since upper layer protocols perform a checksumanyway, the IPv6 header does not include achecksum field
This results in more efficient forwarding.
IPv6 Header and Features
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
16/57
FRAGMENTATION
Fragmentation information has beenmoved to an extension header
Intermediate routers no longerfragment packets
If fragmentation is required, it isperformed by the source node,reducing the processing burden onthe network.
IPv6 Header and Features
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
17/57
IPv6 Header and Features
The number of fields has dropped from 12 (including
options) in the IPv4 header to 8 in the IPv6 header.
The number of fields that must be processed by an
intermediate router has dropped from 6 to 4, making
the forwarding of normal IPv6 packets more efficient.
Seldom-used fields such as fields supporting
fragmentation and options in the IPv4 header have
been moved to extension headers in the IPv6
header.
Comparing the IPv4 and IPv6 Headers
-
7/30/2019 IPV6 Headers and Features
18/57
IPv6 Header and Features
Comparing the IPv4 and IPv6 Headers
The size of the IPv6 header has doubled from 20
bytes for a minimum-sized IPv4 header to 40
bytes.
The new IPv6 header contains source and
destination addresses that are four times longer
than IPv4 source and destination addresses.
-
7/30/2019 IPV6 Headers and Features
19/57
IPv6 Header and Features
IPv4 Header
Field
IPv6 Header Field
Version Same field but with a different version number.
Internet Header
Length
Removed in IPv6. IPv6 does not include a Header
Length field because the IPv6 header is always a
fixed length of 40 bytes. Each extension header is
either a fixed length or indicates its own length.
Type of Service Replaced by the IPv6 Traffic Class field.
Total Length Replaced by the IPv6 Payload Length field, which
indicates only the size of the payload.
IdentificationFlags
Fragment Offset
Removed in IPv6. Fragmentation information isnot included in the IPv6 header. It is contained in a
Fragment extension header.
Time-to-Live Replaced by the IPv6 Hop Limit field.
IPv4 Header Fields & IPv6 Equivalents
-
7/30/2019 IPV6 Headers and Features
20/57
IPv6 Header and Features
IPv4 Header Fields & IPv6 Equivalents
IPv4 Header Field IPv6 Header Field
Protocol Replaced by the IPv6 Next Header field.
Header Checksum Removed in IPv6. The link layer has a
checksum that performs bit-level error
detection for the entire IPv6 packet
Source Address The field is the same except that IPv6
addresses are 128 bits in length.
Destination Address The field is the same except that IPv6
addresses are 128 bits in length.
Options Removed in IPv6. IPv6 extension
headers replace IPv4 options.
-
7/30/2019 IPV6 Headers and Features
21/57
IPv6 Header and Features
The process to forward an IPv6 packet is
much simpler than for an IPv4 packet, as
it does not have to verify and recalculate
a header checksum, perform
fragmentation, or process options notintended for the router.
Comparing the IPv4 and IPv6 Headers
IP 6 H d d F t
-
7/30/2019 IPV6 Headers and Features
22/57
IPv6 Header and Features
New header format Large address space
Stateless and stateful address
configuration IPSec header support required
Better support for prioritized delivery
New protocol for neighbouring node
interaction
Extensibility
Features of IPv6
IP 6 H d d F t
-
7/30/2019 IPV6 Headers and Features
23/57
IPv6 Header and Features
designed to minimize header processing
nonessential and optional fields are moved to
extension headers that are placed after the IPv6
header.
The new default IPv6 header is only twice the
size of the default IPv4 header, even though the
number of bits in IPv6 addresses is four times
larger than IPv4 addresses.
New Header Format
IP 6 H d d F t
-
7/30/2019 IPV6 Headers and Features
24/57
IPv6 Header and Features
IPv6 has 128-bit (16-byte) source and destinationaddresses.
128 bits can express over 3.4 10^38 possible
combinations
With a much larger number of available
addresses, address-conservation techniques,
such as the deployment of NATs, are no longer
necessary.
Large Address Space
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
25/57
IPv6 Header and Features
Stateless and Stateful Address Configuration
To simplify host configuration, IPv6 supports
both stateful address configuration and
stateless address configuration
With stateless address configuration, hosts
on a link automatically configure themselves
with
IPv6 addresses for the link (called link-local
addresses), with IPv6 transition addresses,and with addresses derived from prefixes
advertised by local routers.
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
26/57
IPv6 Header and Features
Stateless and Stateful Address Configuration
Even in the absence of a router, hosts on the same linkcan automatically configure themselves with link-local
addresses and communicate without manual
configuration.
Link-local addresses are auto configured within
seconds, and communication with neighbouring nodes
on the link is possible immediately.
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
27/57
IPv6 Header and Features
IPSec Header Support Required
Support for the IPSec headers is an IPv6 protocol suite
requirement.
This requirement provides a standards-based solution for
network protection needs and promotes interoperability
between different IPv6 implementations.
IPSec consists of two types of extension headers and aprotocol to negotiate security settings.
The Authentication header (AH) provides data integrity,
data authentication, and replay protection for the entire
IPv6 packet (excluding fields in the IPv6 header that must
change in transit). The Encapsulating Security Payload (ESP) header and
trailer provide data integrity, data authentication, data
confidentiality, and replay protection for the ESP-
encapsulated payload.
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
28/57
IPv6 Header and Features
Better Support for Prioritized Delivery
New fields in the IPv6 header define how traffic is handled
and identified.
Traffic is prioritized using a Traffic Class field, which
specifies a DSCP value just like IPv4.
A Flow Label field in the IPv6 header allows routers to
identify and provide special handling for packets that belong
to a flow (a series of packets between a source and
destination).
Because the traffic is identified in the IPv6 header, support
for prioritized delivery can be achieved even when thepacket payload is encrypted with IPSec and ESP.
IPv6 Header and Features
N P l f N i hb i N d
-
7/30/2019 IPV6 Headers and Features
29/57
IPv6 Header and Features
New Protocol for Neighbouring Node
InteractionThe Neighbour Discovery protocol for IPv6 is a series
of Internet Control Message Protocol for
IPv6 (ICMPv6) messages that manages the interaction
of neighbouring nodes (nodes on the same link).
Neighbour Discovery replaces and extends the
Address Resolution Protocol (ARP) (broadcast-based),
ICMPv4 Router Discovery, and ICMPv4 Redirect
messages with efficient multicast and unicast
Neighbour Discovery messages.
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
30/57
IPv6 Header and Features
Extensibility
IPv6 can easily be extended for new features by adding
extension headers after the IPv6 header.
The size of IPv6 extension headers is constrained only
by the size of the IPv6 packet.
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
31/57
IPv6 Header and Features
The IPv4 header includes all options.Each intermediate router must check for their
existence and process them when present.
This can cause performance degradation in theforwarding of IPv4 packets.
With IPv6, delivery and forwarding options aremoved to extension headers.
The only extension header that must beprocessed at each intermediate router is theHop-by-Hop Options extension header.
This increases IPv6 header processing speedand improves the performance of forwardingIPv6 packets.
IPv6 extension headers
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
32/57
IPv6 Header and Features
Hop-by-Hop Options header
Destination Options header
Routing header
Fragment header
Authentication header
Encapsulating Security Payload header
IPv6 extension headers
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
33/57
THE IPV6 PACKET HEADER
Extension HeadersZero or more extension
headers follow the basic IPv6 header (for example,before the transport layer data). The next headerfield within an extension header points to the nextheader in the chain. The extension headers (in theirsuggested order) could include:
Hop-by-Hop options Options for intermediaterouters along the path. Destination options Options for the end node
(and intermediate routers if the routing header isalso present).
RoutingUsed to specify intermediate routersthat the route must include; the effect is to forcerouting along an administratively defined path.
IPv6 Header and Features
IPv6 Header and Features
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
34/57
THE IPV6 PACKET HEADER
FragmentUsed to divide packets that are
too large for the maximum transmission unit(MTU) of a link along the path.
This header replaces the fragmentation fieldsof the IPv4 packet header
Authentication and EncapsulatingSecurity Payload (ESP)Used by IPsec toprovide packet authentication, integrity, andconfidentiality.
The authentication header (AH) and ESPheader are identical in IPv4 and IPv6.
IPv6 Header and Features
IPv6 Header and Features
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
35/57
IPv6 Header and Features
Hop by Hop Options Header
Next header value 0
Header Extension Length
Option type: first two bits
00 skip and continue processing
01 discard packet
10 discard and send ICMP parameter problem(unrecognized option type)
11 discard and send ICMP parameter problem (dest is
not multicast)
NH HEL Option Type ODL Option data
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
36/57
IPv6 Header and Features
Hop by Hop Options Header
Option type:
3rd bit 1 if option information can change en route 0 if not
194 for jumbo payload option (32 bit Jumbo payload length)
Option Router Alert:
value 5 in next 5 bits
Option data length 2
0 packet with MLD message
1 Packet with RSVP message
2 Packet with Active Network Message
3 - 35 Packet with Aggregated Reservation Nesting Level(RSVP RFC3175) (36-65535 reserved by IANA)
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
37/57
IPv6 Header and Features
Routing Header
Next header value 43
For type 0
Reserved (4 bytes)
Address 1 (16 bytes)
Address 2 (16 bytes)
Address x (16 bytes)
NH HEL Routing TypeSegment leftType specific
data
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
38/57
IPv6 Header and Features
Fragment Header
Next header value 44
NH Res.Frag. Offset
(13 bit)Res.(2 bit)
Identification (4 byte)M
(1 bit)
Unfragmentable part Frag. Header First Frag.
Unfragmentable part Frag. Header Sec Frag.
Unfragmentable part Frag. Header Last Frag.
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
39/57
IPv6 Header and Features
Destination Options Header
Next header value 60
NH HEL Option Type ODL Option data
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
40/57
IPv6 Header and Features
Comparison of IPv4 and IPv6
IPv4 IPv6Source and destination addresses are32 bits (4 bytes) in length.
Source and destination addresses are128 bits (16 bytes) in length.
IPsec header support is optional. IPsec header support is required.
No identification of packet flow for
prioritized delivery handling by routers
is present within the IPv4 header.
Packet flow identification for prioritized
delivery handling by routers is present
within the IPv6 header using the FlowLabel field.
Fragmentation is performed by the
sending host and at routers, slowing
router performance.
Fragmentation is performed only by the
sending host.
Has no link-layer packet-size
requirements, and must be able to
reassemble a 576-byte packet.
Link layer must support a 1280-byte
packet and be able to reassemble a
1500-byte packet.
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
41/57
IPv6 Header and Features
IPv4 IPv6Header includes a checksum. Header does not include a checksum.
Header includes options. All optional data is moved to IPv6
extension headers.
ARP uses broadcast ARP Request
frames to resolve an IPv4 address to a
link-layer address.
ARP Request frames are replaced with
multicast Neighbor Solicitation
messages.
Internet Group Management Protocol
(IGMP) is used to manage local subnet
group membership.
IGMP is replaced with Multicast Listener
Discovery (MLD) messages.
ICMP Router Discovery is used todetermine the IPv4 address of the best
default gateway and is optional.
ICMPv4 Router Discovery is replacedwith ICMPv6 Router Solicitation and
Router Advertisement messages, and it
is required.
Comparison of IPv4 and IPv6
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
42/57
IPv6 Header and Features
IPv4 IPv6
Broadcast addresses are used to send
traffic to all nodes on a subnet.
There are no IPv6 broadcast
addresses. Instead, a link-local scope
all-nodes multicast address is used.
Must be configured either manually or
through DHCP for IPv4.
Does not require manual configuration
or DHCP for IPv6.
Uses host address (A) resource
records in the Domain Name System
(DNS) to map host names to IPv4
addresses.
Uses AAAA records in the DNS to map
host names to IPv6 addresses.
Uses pointer (PTR) resource records in
the INADDR.ARPA DNS domain to
map IPv4 addresses to host names.
Uses pointer (PTR) resource records in
the IP6.ARPA DNS domain to map
IPv6 addresses to host names.
Comparison of IPv4 and IPv6
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
43/57
IPV6 MOBILITY
Feature, defined in RFC 3775, Mobility Support in IPv6,
allows users to stay connected while roaming An IPv6 mobile node has a home address on its home
network and a care-of addresson its current network
A node communicating with a mobile node is called acorrespondent nodeof the mobile node.
The association between the home address and the care-of address of a mobile node is known as a binding.
When a mobile node roams away from its home network,it sends a binding update to its home agent, a router on itshome network.
There are two ways that a mobile node and acorrespondent node can communicatevia the homeagent or directly.
IPv6 Header and Features
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
44/57
IPV6 MOBILITY
IPv6 Header and Features
If the mobile node moves it sends a binding update to its
home agent and to all correspondent nodes
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
45/57
TRANSITIONING FROM IPV4 TO IPV6
Dual stack
Tunneling
Translation
IPv6 Header and Features
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
46/57
DUAL STACK
The dual-stack approach simply means to run IPv6 and IPv4
concurrently, with no communication between the two
Hosts and routers have both IPv4 and IPv6 addresses and
use whichever is appropriate to reach a given resource
If a resource, such as a server, is reachable using either
protocol, IPv6 should be used
IPv6 Header and Features
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
47/57
TUNNELING
With tunneling, routers that straddlethe IPv4 and IPv6 worlds encapsulatethe IPv6 traffic inside IPv4 packets.
The source of the IPv4 packet is the
local router and the destination is thepeer router at the other end of thetunnel.
When the destination router receives
the IPv4 packet, it decapsulates theexternal IPv4 header and forwardsthe enclosed IPv6 traffic
IPv6 Header and Features
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
48/57
TUNNELING METHODS
Manual
6-to-4
Teredo
Intra-Site Automatic TunnelAddressing Protocol (ISATAP)
IPv6 Header and Features
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
49/57
MANUAL TUNNELS
IPv6 Header and Features
MANUAL TUNNELIPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
50/57
MANUAL TUNNEL
CONFIGURATION
IPv6 Header and Features
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
51/57
IPV6-TO-IPV4 (6-TO-4) TUNNELS
A 6-to-4 tunnel works similarly to amanual tunnel, except that the
tunnel is set up automatically
6-to-4 tunnels use IPv6 addresses
that concatenate 2002::/16 with
the 32-bit IPv4 address of the
edge router, creating a 48-bit
prefix
IPv6 Header and Features
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
52/57
IPV6-TO-IPV4 (6-TO-4) TUNNELS
IPv6 Header and Features
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
53/57
TEREDO
Another type of tunnel is calledTeredo (also known as shipworm).
Teredo encapsulates IPv6 packets in
IPv4/UDP segments and workssimilarly to other tunnels but with the
added benefit of being able to
traverse network address translation(NAT) devices and firewalls
Teredo is described in RFC 4380IPv6 Header and Features
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
54/57
ISATAP
ISATAP treats the IPv4 network as anNBMA network and allows an IPv4
private network to incrementally
implement IPv6 without upgrading the
network.
ISATAP is documented in RFC 4214
IPv6 Header and Features
IPv6 Header and Features
-
7/30/2019 IPV6 Headers and Features
55/57
IPv6 Header and Features
The Case for IPv6 Deployment
The following present the key technological andbusiness benefits in the case to deploy IPv6:
IPv6 Solves the Address Depletion Problem
IPv6 Solves the Disjoint Address Space Problem
IPv6 Solves the International Address AllocationProblem
IPv6 Restores End-to-End Communication
IPv6 Uses Scoped Addresses and Address Selection
IPv6 Has More Efficient Forwarding
IPv6 Has Support for Security and Mobility
IPv6 Header and Features
S
-
7/30/2019 IPV6 Headers and Features
56/57
IPv6 Header and Features
Summary
Comparison of IPv4 and IPv6
IPv6 header
IPv6 header fields
IPv6 Extension Headers
IPv6 Mobility
Transition from IPv4 to IPv6
IPv6 Header and Features
R f
-
7/30/2019 IPV6 Headers and Features
57/57
IPv6 Header and Features
References
Books:
IPv6 essentials by S. Hagen
Deploying IPv6 networks by C. Pooviciu and
E.L.Abegnoli
URLs:
1)http://www.icann.org/
2)http://www.cisco.com/
3)http://en.wikipedia.org
4)www.ipv6.org/