IPV6 Headers and Features
IPV6 Headers and Features
IPV6 Headers and Features
Topics Covered
Comparison of IPv4 and IPv6 IPv6 header IPv6 header fields IPv6 Extension Headers IPv6 Mobility Transition from IPv4 to IPv6
Extension Headers
Zero or more extension headers can be present and are of varying lengths. If extension headers are present, a Next Header field in the IPv6 header indicates the first extension header. Within each extension header is another Next Header field, indicating the next extension header. The last extension header indicates the header for the upper-layer protocol
IPv6 Header
IPv4 Header
Ver. IHL TOS (DS) Total Length 4 4 8 16 Identification Flag Fragment Offset 16 3 13 TTL Protocol Header Checksum 8 8 16 Source Address 32 Destination 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
IPv6 Header
Ver. Traff. Class 4 8 Payload Length 16 Flow Label 20 Next Head. Hop Count 8 8
IPv6 Header
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 IPv4 Type of Service field. The first 6 bits of the Traffic Class field are the DSCP field and the last 2 bits are used for ECN.
Header
Hop-by-Hop Options header TCP UDP Encapsulated IPv6 header Routing header Fragment header Encapsulating Security Payload header Authentication header ICMPv6 No next header Destination Options header
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 address of the next intermediate destination.
CHECKSUM
Since intermediate routers decrement the TTL, they also have to recalculate the checksum each time they handle a packet, resulting in more processing resources being used throughout the network
Since upper layer protocols perform a checksum anyway, the IPv6 header does not include a checksum field This results in more efficient forwarding.
FRAGMENTATION
Fragmentation information has been moved to an extension header Intermediate routers fragment packets no longer
If fragmentation is required, it is performed by the source node, reducing the processing burden on the network.
header
checksum,
perform
Features of IPv6
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
addresses,
address-conservation
techniques,
configuration.
Link-local addresses are auto configured within
seconds, and communication with neighbouring nodes on the link is possible immediately.
The 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.
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
Extension HeadersZero or more extension headers follow the basic IPv6 header (for example, before the transport layer data). The next header field within an extension header points to the next header in the chain. The extension headers (in their suggested order) could include: Hop-by-Hop options Options for intermediate routers along the path. Destination options Options for the end node (and intermediate routers if the routing header is also present). RoutingUsed to specify intermediate routers that the route must include; the effect is to force routing along an administratively defined path.
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 fields of the IPv4 packet header
Authentication and Encapsulating Security Payload (ESP)Used by IPsec to provide packet authentication, integrity, and confidentiality. The authentication header (AH) and ESP header are identical in IPv4 and IPv6.
ODL
Option data
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
Routing Header
Next header value 43
NH HEL Routing TypeSegment left
Type specific data
For type 0
Reserved (4 bytes)
Address 1 (16 bytes) Address 2 (16 bytes) Address x (16 bytes)
Fragment Header
Next header value 44
NH Res.
Frag. Offset Res. M (13 bit) (2 bit) (1 bit) Identification (4 byte)
Last Frag.
ODL
Option data
No identification of packet flow for Packet flow identification for prioritized prioritized delivery handling by routers delivery handling by routers is present is present within the IPv4 header. within the IPv6 header using the Flow Label field. Fragmentation is performed by the Fragmentation is performed only by the sending host and at routers, slowing sending host. router performance. Has no link-layer packet-size Link layer must support a 1280-byte requirements, and must be able to packet and be able to reassemble a reassemble a 576-byte packet. 1500-byte packet.
IPv6
Header does not include a checksum.
All optional data is moved to IPv6 extension headers.
ARP uses broadcast ARP Request ARP Request frames are replaced with frames to resolve an IPv4 address to a multicast Neighbor Solicitation link-layer address. messages. Internet Group Management Protocol IGMP is replaced with Multicast Listener (IGMP) is used to manage local subnet Discovery (MLD) messages. group membership. ICMP Router Discovery is used to ICMPv4 Router Discovery is replaced determine the IPv4 address of the best with ICMPv6 Router Solicitation and default gateway and is optional. Router Advertisement messages, and it is required.
Must be configured either manually or Does not require manual configuration through DHCP for IPv4. or DHCP for IPv6. Uses host address (A) resource Uses AAAA records in the DNS to map records in the Domain Name System host names to IPv6 addresses. (DNS) to map host names to IPv4 addresses. Uses pointer (PTR) resource records in Uses pointer (PTR) resource records in the INADDR.ARPA DNS domain to the IP6.ARPA DNS domain to map map IPv4 addresses to host names. IPv6 addresses to host names.
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 address on its current network A node communicating with a mobile node is called a correspondent node of the mobile node. The association between the home address and the careof 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 its home network. There are two ways that a mobile node and a correspondent node can communicatevia the home agent or directly.
IPV6 MOBILITY
If the mobile node moves it sends a binding update to its home agent and to all correspondent nodes
IPv6 Header and Features
Dual stack
Tunneling
Translation
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
TUNNELING
With tunneling, routers that straddle the IPv4 and IPv6 worlds encapsulate the IPv6 traffic inside IPv4 packets. The source of the IPv4 packet is the local router and the destination is the peer router at the other end of the tunnel. When the destination router receives the IPv4 packet, it decapsulates the external IPv4 header and forwards the enclosed IPv6 traffic
IPv6 Header and Features
TUNNELING METHODS
Manual 6-to-4
MANUAL TUNNELS
A 6-to-4 tunnel works similarly to a manual 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
TEREDO
Another type of tunnel is called Teredo (also known as shipworm). Teredo encapsulates IPv6 packets in IPv4/UDP segments and works similarly to other tunnels but with the added benefit of being able to traverse network address translation (NAT) devices and firewalls
ISATAP
ISATAP treats the IPv4 network as an NBMA network and allows an IPv4 private network to incrementally implement IPv6 without upgrading the network. ISATAP is documented in RFC 4214
Summary
Comparison of IPv4 and IPv6 IPv6 header IPv6 header fields IPv6 Extension Headers IPv6 Mobility Transition from IPv4 to IPv6
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/
IPv6 Header and Features