SlideShare a Scribd company logo
Network layer functions Logical Addressing:  Every device that communicates over a network has associated with it a logical address, sometimes called a  layer three  address.  On the Internet  every machine has an  IP address .  L ogical addresses are independent of particular hardware and must be unique across an entire internetwork.   Routing:  Moving data across a series of interconnected networks is  an important  function of the network layer.  Datagram Encapsulation:  The network layer normally encapsulates   messages received from higher layers by placing them into datagrams (also called  packets ) with a network layer header.  Fragmentation and Reassembly:  The network layer must send messages down to the data link layer for transmission. If the packet that the network layer wants to send is too large, the network layer must split the packet up, send each piece to the data link layer, and then have pieces reassembled once they arrive at the network layer on the destination machine.  Error Handling and Diagnostics:  Special protocols are used at the network layer to allow devices that are logically connected to exchange inform ation  about the status of hosts on the   network or the devices thems elves
Current Internet Protocol Current version 4 : IPv4  Substantially unchanged since 1981:RFC 791 Proven to be robust, easily implemented and interoperable Stood the test of time for over two decades A tribute to its initial design IPv4 lead to wired networks  in business and in homes leaving mainframes behind
Longevity of TCP/IP Sound Architecture Simple and Open Layered Open standard Good Support systems Communication Technology growth Prerogative of US
Problems with IPv4 IPv4 has been designed early in the 70s Many « add-ons» to the protocol : Mobileip QoS Security (IPsec) Others Using « add-ons »  not easy
Problems with IPv4 Impending exhaustion of address space Configuration complexities Poor security at the IP level Inadequate QoS support for real-time delivery of data.
IP Datagram Header VERS HLEN TOS TOTAL LENGTH IDENTIFICATION FLAG FRAGMENT OFFSET TTL PROTOCOL CHECKSUM SOURCE ADDRESS DESTINATION ADDRESS OPTIONS (if any) + PADDING 0 4 8 16 19 31
IP datagram format how much overhead with TCP? 20 bytes of TCP 20 bytes of IP = 40 bytes + app layer overhead ver length 32 bits data  (variable length, typically a TCP  or UDP segment) 16-bit identifier header checksum time to live 32 bit source IP address IP protocol version number header length (bytes) max number remaining hops (decremented at  each router) for fragmentation/ reassembly total datagram length (bytes) upper layer protocol to deliver payload to head. len type of service “ type” of data  flgs fragment offset upper layer 32 bit destination IP address Options (if any) E.g. timestamp, record route taken, specify list of routers  to visit.
IP Fragmentation & Reassembly network links have MTU (max.transfer size) - largest possible link-level frame. different link types, different MTUs  large IP datagram divided (“fragmented”) within net one datagram becomes several datagrams “ reassembled” only at final destination IP header bits used to identify, order related fragments fragmentation:  in:  one large datagram out:  3 smaller datagrams reassembly
IP Fragmentation and Reassembly Example 4000 byte datagram MTU = 1500 bytes 1480 bytes in  data field offset = 1480/8  ID =x offset =0 fragflag =0 length =4000 ID =x offset =0 fragflag =1 length =1500 ID =x offset =185 fragflag =1 length =1500 ID =x offset =370 fragflag =0 length =1040 One large datagram becomes several smaller datagrams
Problems with IPv4: Limited Address Space IPv4 has 32 bit addresses. Flat addressing (only netid + hostid with “fixed” boundaries). Results in inefficient use of address space. Class B addresses are almost over. Addresses will exhaust very shortly. IPv4 is victim of its own success.
 
Problems with IPv4: Routing Table Explosion IP does not permit route aggregation (limited supernetting possible with new routers) Mostly only class C addresses remain Number of networks is increasing very fast (number of routes to be advertised goes up) Very high routing overhead lot more memory needed for routing table lot more bandwidth to pass routing information lot more processing needed to compute routes
IP Datagram Header VERS HLEN TOS TOTAL LENGTH IDENTIFICATION FLAG FRAGMENT OFFSET TTL PROTOCOL CHECKSUM SOURCE ADDRESS DESTINATION ADDRESS OPTIONS (if any) + PADDING 0 4 8 16 19 31
Problems with IPv4: Header Limitations Maximum header length is 60 octets. (Restricts options) Maximum packet length is 64K octets. (Do we need more than that ?) ID for fragments is 16 bits. Repeats every 65537th packet.   (Will two packets in the network have same ID?) Variable size header. (Slower processing at routers.) No ordering of options. (All routers need to look at all options.)
Problems with IPv4: Other Limitations Lack of quality-of-service support. Only an 8-bit ToS field, which is hardly used. Problem for multimedia services. No support for security at IP layer. Mobility support is limited.
Problems with IPv4: Inadequate support to newer applications Many applications larger than Web VoIP, 3G, P2P (gaming, file sharing, ..) Grid Computing, Ad hoc networks, networked RFIDs  Remote sensing, Intelligent Transport Systems (ITS) Smart Homes, Mobile devices, Consumer Electronics, Home appliances
Extended Life for IPv4 Strict monitoring of  IP address assignment Private IP addresses for intranets Only class C or a part of class C to an organization Encourage use of proxy services Application level proxies Network Address Translation (NAT) Remaining class A addresses may use CIDR Reserved addresses may be assigned But these will only postpone address exhaustion. They do not address problems like QoS, mobility, security.
Next generation IP:IPng Security Issues
IPv6: Distinctive Features Header format simplification Expanded routing and addressing capabilities Improved support for extensions and options Flow labeling (for QoS) capability Auto-configuration and Neighbour discovery Authentication and privacy capabilities Simple transition from IPv4
IPng Criteria At least 10 9  networks, 10 12  end-systems Datagram service (best effort delivery) Independent of physical layer technologies Robust (routing) in presence of failures Flexible topology (e.g., dual-homed nets) Better routing structures (e.g., aggregation) High performance (fast switching) Support for multicasting
IPng Criteria Support for mobile nodes Support for quality-of-service Provide security at IP layer Extensible Auto-configuration (plug-and--play) Straight-forward transition plan from IPv4 Minimal changes to upper layer protocols
IPv6 road map Feb 1992  Dec 1992  March 1993  May 1993  Nov 1993 Simple CLNP  TUBA Nimrod CNAT IP encaps  IPAE  SIP  SIPP SIP   PIP    TP/IX CATNIP
IPv6 RFCs Internet Protocol, version 6 (IPv6) Specication , RFC-2460 [IPv6] IPv6 Addressing Architecture  [RFC-2373] Neighbor Discovery for IPv6  [RFC-2461] IPv6 Stateless Address Autoconguration  [RFC-2462] Internet Control Message Protocol (ICMPv6) for IPv6  [RFC-2463] Path MTU Discovery for IPv6  [RFC-1981] Since the version number assigned by IANA was 6, the short name used for the Internet Protocol version 6 is IPv6.
IPv6 RFCs Internet Protocol, version 6 (IPv6) Specication , RFC-2460 [IPv6] IPv6 Addressing Architecture  [RFC-2373] Neighbor Discovery for IPv6  [RFC-2461] IPv6 Stateless Address Autoconguration  [RFC-2462] Internet Control Message Protocol (ICMPv6) for IPv6  [RFC-2463] Path MTU Discovery for IPv6  [RFC-1981] Since the version number assigned by IANA was 6, the short name used for the Internet Protocol version 6 is IPv6.
IPv4 header to IPv6 header Source address Destination Address Payload Length Next Header Ver Hop Limit Traffic class Flow Label
IPv6 Header Fields Version number (4-bit field)  The value is always 6. Flow label (20-bit field) Used to label packets requesting special handling by routers. Traffic class (8-bit field) Used to mark classes of traffic. Payload length (16-bit field) Length of the packet following the IPv6 header, in octets. Next header (8-bit field) The type of header immediately following  the IPv6 header.
IPv6 Header Fields Hop limit (8-bit field) Decremented by 1 by each node that forwards the packet.  Packet discarded if hop limit is decremented to zero. Source Address (128-bit field) An address of the initial sender of the packet. Destination Address (128-bit field) An address of the intended recipient of the packet. May not be the ultimate recipient, if Routing Header is present.
Header Changes from IPv4 Longer address -  32 bits    128 bits Fragmentation field moved to separate header Header checksum removed Header length removed (fixed length header) Length field excludes IPv6 header Time to live    Hop limit Protocol    Next header 64-bit field alignment TOS replaced by flow label, traffic class
Extension Headers Less used functions moved to extension headers. Only present when needed. Processed only by node identified in IPv6 destination field. => much lower overhead than IPv4 options Exception: Hop-by-Hop option header Eliminated IPv4’s 40-byte limit on options Order of extension headers in a packet is defined. Headers are aligned on 8-byte boundaries.
Extension Headers
IPv6 Core Protocols:  IPv6 Extension Headers Order of Extension Headers when more than one is used in same packet: IPv6 Header Hop-by-hop Options Header Destination Options Header ( every  Routing Header destination) Routing Header Fragment Header Authentication Header (AH) Encapsulation Security Payload (ESP) Header Destination Options Header ( last  Routing Header destination) Upper-Layer Header TCP Header  + Data Payload IPv6 Header Next Header = Routing Fragment Header Next Header = Security (ESP) Security Header (ESP) Next Header = TCP  Routing Header Next Header = Fragment
Address Types Unicast Address for a single interface. ( one to one) Multicast Identifier for a set of interfaces. Packet is sent to  all  these interfaces. ( one to many) Anycast   Identifier for a set of interfaces. Packet is sent to the  nearest  one. ( one to one of many)
Text Representation of Addresses HEX in blocks of 16 bits BC84 : 25C2 : 0000 : 0000 : 0000 : 55AB : 5521 : 0018 leading zero suppression BC84 : 25C2 : 0 : 0 :55AB : 5521 : 18 Compressed format removes strings of  0 s BC84 : 25C2 :: 55AB : 5521 : 18 ::  can appear only once in an address. can also be used to compress leading or trailing  0 s Mixed Notation (X:X:X:X:X:X:d.d.d.d) e.g.,  ::144.16.162.21
Unicast IPv6 addresses:  Global unicast addresses Link-local addresses Site-local addresses Special addresses Compatible addresses
Global Unicast Addresses
Link-Local Addresses FE80::/64
Site-Local Addresses FEC0::/10
Special addresses The unspecified address  0:0:0:0:0:0:0:0 or :: only used to indicate the absence of an address.  Equivalent to the IPv4 unspecified address of 0.0.0.0. It is typically used as a source address for packets attempting to verify the uniqueness of a tentative address.   The loop back address  0:0:0:0:0:0:0:1 or ::1 Enables a node to send packets to itself.  Equivalent to the IPv4 loop back address 127.0.0.1
Compatible addresses The IPv4-compatible address 0:0:0:0:0:0: w.x.y.z  or :: w.x.y.z w.x.y.z  is the dotted decimal representation of an IPv4 address   Used by IPv6/IPv4 nodes that are communicating using IPv6   For auto tunneling over IPv4 infrastructure The IPv4-mapped address 0:0:0:0:0:FFFF: w.x.y.z  or ::FFFF: w.x.y.z Only for internal representations The 6to4 address Formed by combining the prefix 2002::/16 & 32 bit IPv4 address to get a 48 bit prefix Used for configured tunneling over IPv4 infrastructure between two IPv6/IPv4 nodes.
Interface ID
MAC address format
Mapping IEEE 802 Addresses to EUI-64 Addresses
Anycast address overview Types of Addresses in IPv6/IPv4 Unicast – one to one Multicast – one to many  Broadcast – one to all ( only in IPv4 ) Anycast – one to one of many ( Only in IPv6) A new type in IPv6. Not defined for IPv4 It is assigned to more than one interface Refers to one among many address A packet sent to an anycast address is routed to the nearest interface with that address.
Anycast address & use Allocated from unicast address space Link local, site local, global It is an unicast address assigned to many interfaces Nodes with anycast address must be explicitly configured to receive anycast packets. Used to identify  a set of routers of an ISP a set of routers in a subnet A set of routers providing entry to a routing domain
Anycast address restrictions Cannot be used as a source address Cannot be assigned to a host May be assigned to a router only
Multicasting One to many addressing Delivery of packets to many destinations Interactive conferencing Dissemination of mail News to multiple recepients Webcasts to multiple registered recipients Location of servers by clients
IPv4 multicast address Class D Range from 224.0.0.0 through 239.255.255.255 A set of hosts listening to a IP multicast address is called a host group A host group can span multiple networks Membership to a host group is dynamic No restriction on number of hosts to a group Non member can send a message to a group 1 1 1 0 28 bit multicast gp ID
Special multicast addresses 224.0.0.0   Reserved; not used 224.0.0.1 All devices on the subnet 224.0.0.2 All routers on the subnet 224.0.0.11 Mobile agents (for Mobile IP) 224.0.0.12 DHCP Server / Relay Agent
Ethernet Multicast address Host group to multicast source IP : group IP address MAC : next hop address Multicast source to Host group IP : group IP address MAC :  Ethernet multicast address
Mapping of class D IP address into Ethernet Multicast Address IANA has allotted 01:00:5e:00:00:00 through 01:00:5e:7f:ff:ff for multicast Lower order 23 bits if gp id copied to ethernet address  Eg1: 224.128.64.32 (hex e0.80.40.20) maps to hex 01:00:5e:00:40:20 Eg2 : 224.0.64.32 (hex e0.00.40.20) also maps to hex 01:00:5e:00:40:20 IEEE 802 address
IPv6 Multicast address Format prefix : FF Flags: 000T T= 0: well known permanent T=1: temporary  Scope: 0 to 15 0: reserved 1: interface local 2: link local 3 : reserved 4 : admin local  5 : site local 8 : org local E : global F : reserved Multicast address structure
IPv6 Multicast address Group ID  – Identifies the multicast group and is unique within the scope Two well known group IDs 1 : all nodes 2 : all routers Examples:  FF01::1 (interface-local scope all-nodes multicast address) FF02::1 (link-local scope all-nodes multicast address) FF01::2 (interface-local scope all-routers multicast address) FF02::2 (link-local scope all-routers multicast address) FF05::2 (site-local scope all-routers multicast address)
Mapping IPv6 Multicast Addresses to Ethernet Addresses When sending IPv6 multicast packets on an Ethernet link, the corresponding destination MAC address is 33-33-mm-mm-mm-mm where mm-mm-mm-mm is a direct mapping of the last 32 bits of the IPv6 multicast address, as shown in Figure above
Solicited node multicast address Format: FF02:0:0:0:0:1:FFXX:XXXX It is formed by taking the lower order 24 bits of ( unicast or anycast ) When A node n1 which wants to find MAC address of node n2, it will send neighbor solicitation message with solicited multicast address to n2. Node n2 will reply with neighbor advertisement message
An IPv6 Node’s multi cast addresses For example, a host with the Ethernet MAC address of 00-AA-00-3F-2A-1C (link-local address of FE80::2AA:FF:FE3F:2A1C) registers the following multicast MAC addresses with the Ethernet adapter:            The address of 33-33-00-00-00-01, which corresponds to the link-local scope all-nodes multicast address of FF02::1.            The address of 33-33-FF-3F-2A-1C, which corresponds to the solicited-node address of FF02::1:FF3F:2A1C. Remember that the solicited-node address is the prefix FF02::1:FF00:0/104 and the last 24-bits of the unicast IPv6 address.
THANK YOU For your patient hearing

More Related Content

PPT
I pv4 format
PPT
Ippptspk 3
PPT
Ipv4 ppt
PDF
IPv6: Internet Protocol version 6
PPTX
IPv6 header
PPTX
IPv4 to IPv6
PDF
The Internet Protocol version 4 (IPv4)
PPT
Comparison between ipv4 and ipv6
I pv4 format
Ippptspk 3
Ipv4 ppt
IPv6: Internet Protocol version 6
IPv6 header
IPv4 to IPv6
The Internet Protocol version 4 (IPv4)
Comparison between ipv4 and ipv6

What's hot (20)

PPT
INTERNET PROTOCOL VERSION 6
PPT
PPT
Internet Protocol Version 6
PPTX
Internet Protocol Version 4
PPTX
Internet Protocol version 6
DOCX
PDF
Comparative study of IPv4 & IPv6 Point to Point Architecture on various OS pl...
PPTX
IPV6 Introduction
PPTX
Why we need ipv6...
PPT
Internet Protocol Version 6 By Suvo 2002
PPTX
I pv6(internet protocol version 6)
PPTX
IPV4 vs IPV6
PPTX
IPv4 and IPv6
PPT
IPv6_Quick_Start_Guide
PPT
ipv6 ppt
PPTX
Comparative study of IPv4 and IPv6 on Windows and Linux.
PPTX
10 coms 525 tcpip - internet protocol - ip
PPTX
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
PPT
Ip4 vs ip6
PPTX
Compatibility between IPv4 and IPv6
INTERNET PROTOCOL VERSION 6
Internet Protocol Version 6
Internet Protocol Version 4
Internet Protocol version 6
Comparative study of IPv4 & IPv6 Point to Point Architecture on various OS pl...
IPV6 Introduction
Why we need ipv6...
Internet Protocol Version 6 By Suvo 2002
I pv6(internet protocol version 6)
IPV4 vs IPV6
IPv4 and IPv6
IPv6_Quick_Start_Guide
ipv6 ppt
Comparative study of IPv4 and IPv6 on Windows and Linux.
10 coms 525 tcpip - internet protocol - ip
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
Ip4 vs ip6
Compatibility between IPv4 and IPv6
Ad

Viewers also liked (20)

PDF
Ipv6 1-091110143246-phpapp01
PPT
PPTX
Interfaz dte dce
PDF
Dynamics
PPT
Sistema de Señalización de Canal Común SS7
PPT
Ch06 1
DOCX
Interfaz dte
PPT
Jaimin chp-5 - network layer- 2011 batch
PPTX
Modosdetransmisin
PDF
IPv6 Overview
PPT
OSI Model (Data Communication) DC3
PPTX
Datacom module 5 (UART, USRT, Serial Interface, Modem)
PPTX
Introduction to ipv6 v1.3
KEY
ipv6 introduction & environment buildup
PPTX
X.25 protocol
PPT
Digital data transmission
PPT
Line coding
PPT
Transmission of Digital Data(Data Communication) DC11
PPTX
Internet Access via Cable TV Network
Ipv6 1-091110143246-phpapp01
Interfaz dte dce
Dynamics
Sistema de Señalización de Canal Común SS7
Ch06 1
Interfaz dte
Jaimin chp-5 - network layer- 2011 batch
Modosdetransmisin
IPv6 Overview
OSI Model (Data Communication) DC3
Datacom module 5 (UART, USRT, Serial Interface, Modem)
Introduction to ipv6 v1.3
ipv6 introduction & environment buildup
X.25 protocol
Digital data transmission
Line coding
Transmission of Digital Data(Data Communication) DC11
Internet Access via Cable TV Network
Ad

Similar to Network Layer And I Pv6 (20)

PPT
mohammad.ppt jahsjajajajajajwjjwjwjwjajajaja
PDF
I.p. protocol
PPTX
CN Unit 4.pptx related to ip network klk;k;hgkjkgkdk
PPTX
IPv6 - The Next next generation protocol
PPTX
subnetting
PPT
Curs_IPv6.ppt
PPTX
Ipv4 and Ipv6
PPT
I pv4 and ipv6
PPTX
Networking essentials lect2
PDF
IPv6 Community Event: IPv6 Protocol Architecture
PPT
Final Presentation
PPT
PPT
Ipv6up
PPTX
Ipv4 over ipv6 by Jigar Tarsariya
PPT
nat.ppt
PPTX
ip v6 subnetting-Ip v6 subnetting and intro
PPT
Basics on IPV4 & IPv6 with comparison.ppt
PDF
PPTX
evolution of mobile communication from 1g-5g.pptx
mohammad.ppt jahsjajajajajajwjjwjwjwjajajaja
I.p. protocol
CN Unit 4.pptx related to ip network klk;k;hgkjkgkdk
IPv6 - The Next next generation protocol
subnetting
Curs_IPv6.ppt
Ipv4 and Ipv6
I pv4 and ipv6
Networking essentials lect2
IPv6 Community Event: IPv6 Protocol Architecture
Final Presentation
Ipv6up
Ipv4 over ipv6 by Jigar Tarsariya
nat.ppt
ip v6 subnetting-Ip v6 subnetting and intro
Basics on IPV4 & IPv6 with comparison.ppt
evolution of mobile communication from 1g-5g.pptx

More from Ram Dutt Shukla (20)

PPT
Ip Sec Rev1
PPT
Message Authentication
DOC
PPT
Web Security
PPT
I Pv6 Addressing
PPT
Anycast & Multicast
DOC
Congestion Control
PPT
Congestion Control
DOC
Retransmission Tcp
PPT
Tcp Congestion Avoidance
PPT
Tcp Immediate Data Transfer
PPT
Tcp Reliability Flow Control
DOC
Tcp Udp Notes
PPT
Transport Layer [Autosaved]
PPT
Transport Layer
PPT
PPT
Anycast & Multicast
PPT
Mobile I Pv6
Ip Sec Rev1
Message Authentication
Web Security
I Pv6 Addressing
Anycast & Multicast
Congestion Control
Congestion Control
Retransmission Tcp
Tcp Congestion Avoidance
Tcp Immediate Data Transfer
Tcp Reliability Flow Control
Tcp Udp Notes
Transport Layer [Autosaved]
Transport Layer
Anycast & Multicast
Mobile I Pv6

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Encapsulation theory and applications.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Electronic commerce courselecture one. Pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Modernizing your data center with Dell and AMD
PDF
Empathic Computing: Creating Shared Understanding
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Approach and Philosophy of On baking technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
KodekX | Application Modernization Development
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
Network Security Unit 5.pdf for BCA BBA.
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Encapsulation theory and applications.pdf
cuic standard and advanced reporting.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Per capita expenditure prediction using model stacking based on satellite ima...
Electronic commerce courselecture one. Pdf
NewMind AI Monthly Chronicles - July 2025
Modernizing your data center with Dell and AMD
Empathic Computing: Creating Shared Understanding
Machine learning based COVID-19 study performance prediction
Understanding_Digital_Forensics_Presentation.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Approach and Philosophy of On baking technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
KodekX | Application Modernization Development
Dropbox Q2 2025 Financial Results & Investor Presentation
Chapter 3 Spatial Domain Image Processing.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
20250228 LYD VKU AI Blended-Learning.pptx

Network Layer And I Pv6

  • 1. Network layer functions Logical Addressing: Every device that communicates over a network has associated with it a logical address, sometimes called a layer three address. On the Internet every machine has an IP address . L ogical addresses are independent of particular hardware and must be unique across an entire internetwork. Routing: Moving data across a series of interconnected networks is an important function of the network layer. Datagram Encapsulation: The network layer normally encapsulates messages received from higher layers by placing them into datagrams (also called packets ) with a network layer header. Fragmentation and Reassembly: The network layer must send messages down to the data link layer for transmission. If the packet that the network layer wants to send is too large, the network layer must split the packet up, send each piece to the data link layer, and then have pieces reassembled once they arrive at the network layer on the destination machine. Error Handling and Diagnostics: Special protocols are used at the network layer to allow devices that are logically connected to exchange inform ation about the status of hosts on the network or the devices thems elves
  • 2. Current Internet Protocol Current version 4 : IPv4 Substantially unchanged since 1981:RFC 791 Proven to be robust, easily implemented and interoperable Stood the test of time for over two decades A tribute to its initial design IPv4 lead to wired networks in business and in homes leaving mainframes behind
  • 3. Longevity of TCP/IP Sound Architecture Simple and Open Layered Open standard Good Support systems Communication Technology growth Prerogative of US
  • 4. Problems with IPv4 IPv4 has been designed early in the 70s Many « add-ons» to the protocol : Mobileip QoS Security (IPsec) Others Using « add-ons » not easy
  • 5. Problems with IPv4 Impending exhaustion of address space Configuration complexities Poor security at the IP level Inadequate QoS support for real-time delivery of data.
  • 6. IP Datagram Header VERS HLEN TOS TOTAL LENGTH IDENTIFICATION FLAG FRAGMENT OFFSET TTL PROTOCOL CHECKSUM SOURCE ADDRESS DESTINATION ADDRESS OPTIONS (if any) + PADDING 0 4 8 16 19 31
  • 7. IP datagram format how much overhead with TCP? 20 bytes of TCP 20 bytes of IP = 40 bytes + app layer overhead ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier header checksum time to live 32 bit source IP address IP protocol version number header length (bytes) max number remaining hops (decremented at each router) for fragmentation/ reassembly total datagram length (bytes) upper layer protocol to deliver payload to head. len type of service “ type” of data flgs fragment offset upper layer 32 bit destination IP address Options (if any) E.g. timestamp, record route taken, specify list of routers to visit.
  • 8. IP Fragmentation & Reassembly network links have MTU (max.transfer size) - largest possible link-level frame. different link types, different MTUs large IP datagram divided (“fragmented”) within net one datagram becomes several datagrams “ reassembled” only at final destination IP header bits used to identify, order related fragments fragmentation: in: one large datagram out: 3 smaller datagrams reassembly
  • 9. IP Fragmentation and Reassembly Example 4000 byte datagram MTU = 1500 bytes 1480 bytes in data field offset = 1480/8 ID =x offset =0 fragflag =0 length =4000 ID =x offset =0 fragflag =1 length =1500 ID =x offset =185 fragflag =1 length =1500 ID =x offset =370 fragflag =0 length =1040 One large datagram becomes several smaller datagrams
  • 10. Problems with IPv4: Limited Address Space IPv4 has 32 bit addresses. Flat addressing (only netid + hostid with “fixed” boundaries). Results in inefficient use of address space. Class B addresses are almost over. Addresses will exhaust very shortly. IPv4 is victim of its own success.
  • 11.  
  • 12. Problems with IPv4: Routing Table Explosion IP does not permit route aggregation (limited supernetting possible with new routers) Mostly only class C addresses remain Number of networks is increasing very fast (number of routes to be advertised goes up) Very high routing overhead lot more memory needed for routing table lot more bandwidth to pass routing information lot more processing needed to compute routes
  • 13. IP Datagram Header VERS HLEN TOS TOTAL LENGTH IDENTIFICATION FLAG FRAGMENT OFFSET TTL PROTOCOL CHECKSUM SOURCE ADDRESS DESTINATION ADDRESS OPTIONS (if any) + PADDING 0 4 8 16 19 31
  • 14. Problems with IPv4: Header Limitations Maximum header length is 60 octets. (Restricts options) Maximum packet length is 64K octets. (Do we need more than that ?) ID for fragments is 16 bits. Repeats every 65537th packet. (Will two packets in the network have same ID?) Variable size header. (Slower processing at routers.) No ordering of options. (All routers need to look at all options.)
  • 15. Problems with IPv4: Other Limitations Lack of quality-of-service support. Only an 8-bit ToS field, which is hardly used. Problem for multimedia services. No support for security at IP layer. Mobility support is limited.
  • 16. Problems with IPv4: Inadequate support to newer applications Many applications larger than Web VoIP, 3G, P2P (gaming, file sharing, ..) Grid Computing, Ad hoc networks, networked RFIDs Remote sensing, Intelligent Transport Systems (ITS) Smart Homes, Mobile devices, Consumer Electronics, Home appliances
  • 17. Extended Life for IPv4 Strict monitoring of IP address assignment Private IP addresses for intranets Only class C or a part of class C to an organization Encourage use of proxy services Application level proxies Network Address Translation (NAT) Remaining class A addresses may use CIDR Reserved addresses may be assigned But these will only postpone address exhaustion. They do not address problems like QoS, mobility, security.
  • 18. Next generation IP:IPng Security Issues
  • 19. IPv6: Distinctive Features Header format simplification Expanded routing and addressing capabilities Improved support for extensions and options Flow labeling (for QoS) capability Auto-configuration and Neighbour discovery Authentication and privacy capabilities Simple transition from IPv4
  • 20. IPng Criteria At least 10 9 networks, 10 12 end-systems Datagram service (best effort delivery) Independent of physical layer technologies Robust (routing) in presence of failures Flexible topology (e.g., dual-homed nets) Better routing structures (e.g., aggregation) High performance (fast switching) Support for multicasting
  • 21. IPng Criteria Support for mobile nodes Support for quality-of-service Provide security at IP layer Extensible Auto-configuration (plug-and--play) Straight-forward transition plan from IPv4 Minimal changes to upper layer protocols
  • 22. IPv6 road map Feb 1992 Dec 1992 March 1993 May 1993 Nov 1993 Simple CLNP TUBA Nimrod CNAT IP encaps IPAE SIP SIPP SIP PIP TP/IX CATNIP
  • 23. IPv6 RFCs Internet Protocol, version 6 (IPv6) Specication , RFC-2460 [IPv6] IPv6 Addressing Architecture [RFC-2373] Neighbor Discovery for IPv6 [RFC-2461] IPv6 Stateless Address Autoconguration [RFC-2462] Internet Control Message Protocol (ICMPv6) for IPv6 [RFC-2463] Path MTU Discovery for IPv6 [RFC-1981] Since the version number assigned by IANA was 6, the short name used for the Internet Protocol version 6 is IPv6.
  • 24. IPv6 RFCs Internet Protocol, version 6 (IPv6) Specication , RFC-2460 [IPv6] IPv6 Addressing Architecture [RFC-2373] Neighbor Discovery for IPv6 [RFC-2461] IPv6 Stateless Address Autoconguration [RFC-2462] Internet Control Message Protocol (ICMPv6) for IPv6 [RFC-2463] Path MTU Discovery for IPv6 [RFC-1981] Since the version number assigned by IANA was 6, the short name used for the Internet Protocol version 6 is IPv6.
  • 25. IPv4 header to IPv6 header Source address Destination Address Payload Length Next Header Ver Hop Limit Traffic class Flow Label
  • 26. IPv6 Header Fields Version number (4-bit field) The value is always 6. Flow label (20-bit field) Used to label packets requesting special handling by routers. Traffic class (8-bit field) Used to mark classes of traffic. Payload length (16-bit field) Length of the packet following the IPv6 header, in octets. Next header (8-bit field) The type of header immediately following the IPv6 header.
  • 27. IPv6 Header Fields Hop limit (8-bit field) Decremented by 1 by each node that forwards the packet. Packet discarded if hop limit is decremented to zero. Source Address (128-bit field) An address of the initial sender of the packet. Destination Address (128-bit field) An address of the intended recipient of the packet. May not be the ultimate recipient, if Routing Header is present.
  • 28. Header Changes from IPv4 Longer address - 32 bits  128 bits Fragmentation field moved to separate header Header checksum removed Header length removed (fixed length header) Length field excludes IPv6 header Time to live  Hop limit Protocol  Next header 64-bit field alignment TOS replaced by flow label, traffic class
  • 29. Extension Headers Less used functions moved to extension headers. Only present when needed. Processed only by node identified in IPv6 destination field. => much lower overhead than IPv4 options Exception: Hop-by-Hop option header Eliminated IPv4’s 40-byte limit on options Order of extension headers in a packet is defined. Headers are aligned on 8-byte boundaries.
  • 31. IPv6 Core Protocols: IPv6 Extension Headers Order of Extension Headers when more than one is used in same packet: IPv6 Header Hop-by-hop Options Header Destination Options Header ( every Routing Header destination) Routing Header Fragment Header Authentication Header (AH) Encapsulation Security Payload (ESP) Header Destination Options Header ( last Routing Header destination) Upper-Layer Header TCP Header + Data Payload IPv6 Header Next Header = Routing Fragment Header Next Header = Security (ESP) Security Header (ESP) Next Header = TCP Routing Header Next Header = Fragment
  • 32. Address Types Unicast Address for a single interface. ( one to one) Multicast Identifier for a set of interfaces. Packet is sent to all these interfaces. ( one to many) Anycast Identifier for a set of interfaces. Packet is sent to the nearest one. ( one to one of many)
  • 33. Text Representation of Addresses HEX in blocks of 16 bits BC84 : 25C2 : 0000 : 0000 : 0000 : 55AB : 5521 : 0018 leading zero suppression BC84 : 25C2 : 0 : 0 :55AB : 5521 : 18 Compressed format removes strings of 0 s BC84 : 25C2 :: 55AB : 5521 : 18 :: can appear only once in an address. can also be used to compress leading or trailing 0 s Mixed Notation (X:X:X:X:X:X:d.d.d.d) e.g., ::144.16.162.21
  • 34. Unicast IPv6 addresses: Global unicast addresses Link-local addresses Site-local addresses Special addresses Compatible addresses
  • 38. Special addresses The unspecified address 0:0:0:0:0:0:0:0 or :: only used to indicate the absence of an address. Equivalent to the IPv4 unspecified address of 0.0.0.0. It is typically used as a source address for packets attempting to verify the uniqueness of a tentative address. The loop back address 0:0:0:0:0:0:0:1 or ::1 Enables a node to send packets to itself. Equivalent to the IPv4 loop back address 127.0.0.1
  • 39. Compatible addresses The IPv4-compatible address 0:0:0:0:0:0: w.x.y.z or :: w.x.y.z w.x.y.z is the dotted decimal representation of an IPv4 address Used by IPv6/IPv4 nodes that are communicating using IPv6 For auto tunneling over IPv4 infrastructure The IPv4-mapped address 0:0:0:0:0:FFFF: w.x.y.z or ::FFFF: w.x.y.z Only for internal representations The 6to4 address Formed by combining the prefix 2002::/16 & 32 bit IPv4 address to get a 48 bit prefix Used for configured tunneling over IPv4 infrastructure between two IPv6/IPv4 nodes.
  • 42. Mapping IEEE 802 Addresses to EUI-64 Addresses
  • 43. Anycast address overview Types of Addresses in IPv6/IPv4 Unicast – one to one Multicast – one to many Broadcast – one to all ( only in IPv4 ) Anycast – one to one of many ( Only in IPv6) A new type in IPv6. Not defined for IPv4 It is assigned to more than one interface Refers to one among many address A packet sent to an anycast address is routed to the nearest interface with that address.
  • 44. Anycast address & use Allocated from unicast address space Link local, site local, global It is an unicast address assigned to many interfaces Nodes with anycast address must be explicitly configured to receive anycast packets. Used to identify a set of routers of an ISP a set of routers in a subnet A set of routers providing entry to a routing domain
  • 45. Anycast address restrictions Cannot be used as a source address Cannot be assigned to a host May be assigned to a router only
  • 46. Multicasting One to many addressing Delivery of packets to many destinations Interactive conferencing Dissemination of mail News to multiple recepients Webcasts to multiple registered recipients Location of servers by clients
  • 47. IPv4 multicast address Class D Range from 224.0.0.0 through 239.255.255.255 A set of hosts listening to a IP multicast address is called a host group A host group can span multiple networks Membership to a host group is dynamic No restriction on number of hosts to a group Non member can send a message to a group 1 1 1 0 28 bit multicast gp ID
  • 48. Special multicast addresses 224.0.0.0 Reserved; not used 224.0.0.1 All devices on the subnet 224.0.0.2 All routers on the subnet 224.0.0.11 Mobile agents (for Mobile IP) 224.0.0.12 DHCP Server / Relay Agent
  • 49. Ethernet Multicast address Host group to multicast source IP : group IP address MAC : next hop address Multicast source to Host group IP : group IP address MAC : Ethernet multicast address
  • 50. Mapping of class D IP address into Ethernet Multicast Address IANA has allotted 01:00:5e:00:00:00 through 01:00:5e:7f:ff:ff for multicast Lower order 23 bits if gp id copied to ethernet address Eg1: 224.128.64.32 (hex e0.80.40.20) maps to hex 01:00:5e:00:40:20 Eg2 : 224.0.64.32 (hex e0.00.40.20) also maps to hex 01:00:5e:00:40:20 IEEE 802 address
  • 51. IPv6 Multicast address Format prefix : FF Flags: 000T T= 0: well known permanent T=1: temporary Scope: 0 to 15 0: reserved 1: interface local 2: link local 3 : reserved 4 : admin local 5 : site local 8 : org local E : global F : reserved Multicast address structure
  • 52. IPv6 Multicast address Group ID – Identifies the multicast group and is unique within the scope Two well known group IDs 1 : all nodes 2 : all routers Examples: FF01::1 (interface-local scope all-nodes multicast address) FF02::1 (link-local scope all-nodes multicast address) FF01::2 (interface-local scope all-routers multicast address) FF02::2 (link-local scope all-routers multicast address) FF05::2 (site-local scope all-routers multicast address)
  • 53. Mapping IPv6 Multicast Addresses to Ethernet Addresses When sending IPv6 multicast packets on an Ethernet link, the corresponding destination MAC address is 33-33-mm-mm-mm-mm where mm-mm-mm-mm is a direct mapping of the last 32 bits of the IPv6 multicast address, as shown in Figure above
  • 54. Solicited node multicast address Format: FF02:0:0:0:0:1:FFXX:XXXX It is formed by taking the lower order 24 bits of ( unicast or anycast ) When A node n1 which wants to find MAC address of node n2, it will send neighbor solicitation message with solicited multicast address to n2. Node n2 will reply with neighbor advertisement message
  • 55. An IPv6 Node’s multi cast addresses For example, a host with the Ethernet MAC address of 00-AA-00-3F-2A-1C (link-local address of FE80::2AA:FF:FE3F:2A1C) registers the following multicast MAC addresses with the Ethernet adapter:           The address of 33-33-00-00-00-01, which corresponds to the link-local scope all-nodes multicast address of FF02::1.           The address of 33-33-FF-3F-2A-1C, which corresponds to the solicited-node address of FF02::1:FF3F:2A1C. Remember that the solicited-node address is the prefix FF02::1:FF00:0/104 and the last 24-bits of the unicast IPv6 address.
  • 56. THANK YOU For your patient hearing

Editor's Notes

  • #4: Why a Layered Network model? (A conceptual model) Reduce complecity (one big problem to seven smaller ones) Standardizes interfaces Facilitates modular engineering Assures interoperable technology Accelerates evolution Simplifies teaching and learning Open architecture Implementations can very from one system to another. For interoperability one has to adhere to MUST criteria.
  • #7: Version – Indicates the version of IP and is set to 4. The size of this field is 4 bits. Internet Header Length – Indicates the number of 4-byte blocks in the IPv4 header. The size of this field is 4 bits. Because an IPv4 header is a minimum of 20 bytes in size, the smallest value of the Internet Header Length (IHL) field is 5. IPv4 options can extend the minimum IPv4 header size in increments of 4 bytes. If an IPv4 option does not use all 4 bytes of the IPv4 option field, the remaining bytes are padded with 0’s, making the entire IPv4 header an integral number of 32-bits (4 bytes). With a maximum value of 0xF, the maximum size of the IPv4 header including options is 60 bytes (15´4). Type of Service – Indicates the desired service expected by this packet for delivery through routers across the IPv4 internetwork. The size of this field is 8 bits, which contain bits for precedence, delay, throughput, and reliability characteristics. Total Length – Indicates the total length of the IPv4 packet (IPv4 header + IPv4 payload) and does not include link layer framing. The size of this field is 16 bits, which can indicate an IPv4 packet that is up to 65,535 bytes long. Identification – Identifies this specific IPv4 packet. The size of this field is 16 bits. The Identification field is selected by the originating source of the IPv4 packet. If the IPv4 packet is fragmented, all of the fragments retain the Identification field value so that the destination node can group the fragments for reassembly. Flags – Identifies flags for the fragmentation process. The size of this field is 3 bits, however, only 2 bits are defined for current use. There are two flags—one to indicate whether the IPv4 packet might be fragmented and another to indicate whether more fragments follow the current fragment. Fragment Offset – Indicates the position of the fragment relative to the original IPv4 payload. The size of this field is 13 bits. Time to Live – Indicate the maximum number of links on which an IPv4 packet can travel before being discarded. The size of this field is 8 bits. The Time-to-Live field (TTL) was originally used as a time count with which an IPv4 router determined the length of time required (in seconds) to forward the IPv4 packet, decrementing the TTL accordingly. Modern routers almost always forward an IPv4 packet in less than a second and are required by RFC 791 to decrement the TTL by at least one. Therefore, the TTL becomes a maximum link count with the value set by the sending node. When the TTL equals 0,an ICMP Time Expired message is sent to the source IPv4 address and the packet is discarded. Protocol – Identifies the upper layer protocol. The size of this field is 8 bits. For example, TCP uses a Protocol of 6, UDP uses a Protocol of 17, and ICMP uses a Protocol of 1. The Protocol field is used to demultiplex an IPv4 packet to the upper layer protocol. Header Checksum – Provides a checksum on the IPv4 header only. The size of this field is 16 bits. The IPv4 payload is not included in the checksum calculation as the IPv4 payload and usually contains its own checksum. Each IPv4 node that receives IPv4 packets verifies the IPv4 header checksum and silently discards the IPv4 packet if checksum verification fails. When a router forwards an IPv4 packet, it must decrement the TTL. Therefore, the Header Checksum is recomputed at each hop between source and destination. Source Address – Stores the IPv4 address of the originating host. The size of this field is 32 bits. Destination Address – Stores the IPv4 address of the destination host. The size of this field is 32 bits. Options – Stores one or more IPv4 options. The size of this field is a multiple of 32 bits. If the IPv4 option or options do not use all 32 bits, padding options must be added so that the IPv4 header is an integral number of 4-byte blocks that can be indicated by the Internet Header Length field.
  • #11: Table 30-1 Reference Information About the Five IP Address Classes IP Address Class Format Purpose High-Order Bit(s) Address Range No. Bits Network/Host Max. Hosts A N.H.H.H Few large organizations 1.0.0.0 to 126.0.0.0 7/24 16,777, 214 (2 24 - 2) B N.N.H.H Medium-size organizations 0 128.1.0.0 to 191.254.0.0 14/16 65, 543 (2 16 - 2) C N.N.N.H Relatively small organizations 0 192.0.1.0 to 223.255.254.0 22/8 254 (2 8 - 2) D N/A Multicast groups (RFC 1112) 0 224.0.0.0 to 239.255.255.255 N/A (not for commercial use) N/A E N/A Experimental 240.0.0.0 to  254.255.255.255 N/A N/A Efficiency Ratio because of wastage of bits The basic result from this is that the current Internet using 32-bit Internet addresses are estimated to have a practical maximum of less than 250 million nodes in the IPv4 Internet!
  • #14: Version – Indicates the version of IP and is set to 4. The size of this field is 4 bits. Internet Header Length – Indicates the number of 4-byte blocks in the IPv4 header. The size of this field is 4 bits. Because an IPv4 header is a minimum of 20 bytes in size, the smallest value of the Internet Header Length (IHL) field is 5. IPv4 options can extend the minimum IPv4 header size in increments of 4 bytes. If an IPv4 option does not use all 4 bytes of the IPv4 option field, the remaining bytes are padded with 0’s, making the entire IPv4 header an integral number of 32-bits (4 bytes). With a maximum value of 0xF, the maximum size of the IPv4 header including options is 60 bytes (15´4). Type of Service – Indicates the desired service expected by this packet for delivery through routers across the IPv4 internetwork. The size of this field is 8 bits, which contain bits for precedence, delay, throughput, and reliability characteristics. Total Length – Indicates the total length of the IPv4 packet (IPv4 header + IPv4 payload) and does not include link layer framing. The size of this field is 16 bits, which can indicate an IPv4 packet that is up to 65,535 bytes long. Identification – Identifies this specific IPv4 packet. The size of this field is 16 bits. The Identification field is selected by the originating source of the IPv4 packet. If the IPv4 packet is fragmented, all of the fragments retain the Identification field value so that the destination node can group the fragments for reassembly. Flags – Identifies flags for the fragmentation process. The size of this field is 3 bits, however, only 2 bits are defined for current use. There are two flags—one to indicate whether the IPv4 packet might be fragmented and another to indicate whether more fragments follow the current fragment. Fragment Offset – Indicates the position of the fragment relative to the original IPv4 payload. The size of this field is 13 bits. Time to Live – Indicate the maximum number of links on which an IPv4 packet can travel before being discarded. The size of this field is 8 bits. The Time-to-Live field (TTL) was originally used as a time count with which an IPv4 router determined the length of time required (in seconds) to forward the IPv4 packet, decrementing the TTL accordingly. Modern routers almost always forward an IPv4 packet in less than a second and are required by RFC 791 to decrement the TTL by at least one. Therefore, the TTL becomes a maximum link count with the value set by the sending node. When the TTL equals 0,an ICMP Time Expired message is sent to the source IPv4 address and the packet is discarded. Protocol – Identifies the upper layer protocol. The size of this field is 8 bits. For example, TCP uses a Protocol of 6, UDP uses a Protocol of 17, and ICMP uses a Protocol of 1. The Protocol field is used to demultiplex an IPv4 packet to the upper layer protocol. Header Checksum – Provides a checksum on the IPv4 header only. The size of this field is 16 bits. The IPv4 payload is not included in the checksum calculation as the IPv4 payload and usually contains its own checksum. Each IPv4 node that receives IPv4 packets verifies the IPv4 header checksum and silently discards the IPv4 packet if checksum verification fails. When a router forwards an IPv4 packet, it must decrement the TTL. Therefore, the Header Checksum is recomputed at each hop between source and destination. Source Address – Stores the IPv4 address of the originating host. The size of this field is 32 bits. Destination Address – Stores the IPv4 address of the destination host. The size of this field is 32 bits. Options – Stores one or more IPv4 options. The size of this field is a multiple of 32 bits. If the IPv4 option or options do not use all 32 bits, padding options must be added so that the IPv4 header is an integral number of 4-byte blocks that can be indicated by the Internet Header Length field.
  • #18: The exhaustion of the class B network number could be counterweighted by allocating a number of class C networks instead. The drawback was that allocating more than one network number to an organization necessitated more than one entry in the routing tables to advertise connectivity. This allocation policy gave cause to extreme growth in the forwarding tables of central routers, a growth that was so immense that it was termed the routing table explosion. In fact it was growing at a rate about 1.5 times as fast as memory technology at the time [RFC-1752] ! The answer to the problem was a migration from classfull (A/B/C) routing to Classless Inter-Domain Routing (CIDR). The cornerstone of CIDR is the introduction of supernets. Like the division of a network into subnets with subnet masks, a set of small networks could be combined into one supernet. Consecutive network numbers could be aggregated with a common subnet mask, and advertised as a single classless network address. An example is shown in gure 4.2 where four Class C networks are combined to form a supernet using a subnet mask that says how many networks (two bits equals four networks) and a base network number 192.0.8.0 (a starting point) which identies them as 192.0.8.0, 192.0.9.0, 192.0.10.0 and 192.0.11.0. Classfull routing 255.255.255.0 255.255.255.0 255.255.255.0 255.255.255.0 Inherent subnet mask 192.0.10.0 192.0.11.0 192.0.09.0 Classless routing (CIDR) 192.0.08.0 Base network/prefix 192.0.8.0/22 4 Class C networks Subnet mask (252d=11111100b) Supernet 192.0.08.0 255.255.252.0 Figure 4.2: Route aggregation: four becomes one When describing classless addresses it is enough to specify the base network number and the prex length, since the network mask is required to have consecutive ones in the most signicant places. The single classless network address in the above example which has a prex of 22 can thus be uniquely described as 192.0.8.0/22 or 192.0.8/22. The other part of CIDR was the distributed allocation of address space. The idea was that instead of individual organization requesting addresses from a central authority, the central authority should allocate a block of Class C network numbers to each Internet service provider (ISP). The providers themselves would then allocate network numbers from this range to their customers. In the perfect world all customers of an ISP would have addresses in the providers routing domain - resulting in optimal aggregation and only a single classless network address, the one allocated by the central authority, would be advertised in routers upstream from the ISP. In the real world organizations change network providers or receive service from several ISPs. When changing provider it would be preferable, from an Internet point of view, to renumber according to the new providers allocation, which is why address autoconguration is also becoming an important issue here. Organizations connected to more than one ISP, multi-homed organizations, may also limit the effect of proper CIDR aggregation, because routes to the organization might have to be advertised by all connected ISPs. The resulting routing cost depends on the actual conguration, but is no worse than before implementation of CIDR. In fact the routes advertised might be aggregated at a higher level. If the organization is connected to two ISPs in the same country, the routes could possibly be aggregated on a country level. Addresses on the Internet is currently being allocated such that aggregation is maximized and the lifetime of the IPv4 address space is extended. This very cumbersome procedure is in my opinion leading some people to believe that IPv4 addresses are not running out - and they might be right altogether. The cost however is that some applications are not introduced in the current Internet at all because they need more addresses - more than IPv4 can accommodate.
  • #21: Larger Address Space: IPv6 can ideally offer about 340 trillion, trillion, trillion addresses which can provide over 1027 globally unique addresses to every individual on the earth in the year 2050. With this large address space IPv6 can offer end-to-end (E2E) connectivity to all hosts
  • #23: Decimal Keyword Version References ------- ------- ------- ---------- 0 Reserved [JBP] 1-3 Unassigned [JBP] 4 IP Internet Protocol [RFC-791,JBP] 5 ST ST Datagram Mode [RFC-1190,JWF] 6 SIP Simple Internet Protocol [RH6] 7 TP/IX TP/IX: The Next Internet [RXU] 8 PIP The P Internet Protocol [PXF] 9 TUBA TUBA [RXC] 10-14 Unassigned [JBP] 15 Reserved [JBP]
  • #26: The fields in the IPv6 header are: Version – 4 bits are used to indicate the version of IP and is set to 6. Traffic Class – Indicates the class or priority of the IPv6 packet. The size of this field is 8 bits. The Traffic Class field provides similar functionality to the IPv4 Type of Service field. In RFC 2460, the values of the Traffic Class field are not defined. However, an IPv6 implementation is required to provide a means for an application layer protocol to specify the value of the Traffic Class field for experimentation. Flow Label – Indicates that this packet belongs to a specific sequence of packets between a source and destination, requiring special handling by intermediate IPv6 routers. The size of this field is 20 bits. The Flow Label is used for non-default quality of service connections, such as those needed by real-time data (voice and video). For default router handling, the Flow Label is set to 0. There can be multiple flows between a source and destination, as distinguished by separate non-zero Flow Labels. Payload Length – Indicates the length of the IPv6 payload. The size of this field is 16 bits. The Payload Length field includes the extension headers and the upper layer PDU. With 16 bits, an IPv6 payload of up to 65,535 bytes can be indicated. For payload lengths greater than 65,535 bytes, the Payload Length field is set to 0 and the Jumbo Payload option is used in the Hop-by-Hop Options extension header. Next Header – Indicates either 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 above the Internet layer, the same values used in the IPv4 Protocol field are used here. Changes Longer address - 32 bits  128 bits Fragmentation field moved to separate header Header checksum removed Header length removed (fixed length header) Length field excludes IPv6 header Time to live  Hop limit Protocol  Next header 64-bit field alignment TOS replaced by flow label, traffic class
  • #27: The fields in the IPv6 header are: Version – 4 bits are used to indicate the version of IP and is set to 6. Traffic Class – Indicates the class or priority of the IPv6 packet. The size of this field is 8 bits. The Traffic Class field provides similar functionality to the IPv4 Type of Service field. In RFC 2460, the values of the Traffic Class field are not defined. However, an IPv6 implementation is required to provide a means for an application layer protocol to specify the value of the Traffic Class field for experimentation. Flow Label – Indicates that this packet belongs to a specific sequence of packets between a source and destination, requiring special handling by intermediate IPv6 routers. The size of this field is 20 bits. The Flow Label is used for non-default quality of service connections, such as those needed by real-time data (voice and video). For default router handling, the Flow Label is set to 0. There can be multiple flows between a source and destination, as distinguished by separate non-zero Flow Labels. Payload Length – Indicates the length of the IPv6 payload. The size of this field is 16 bits. The Payload Length field includes the extension headers and the upper layer PDU. With 16 bits, an IPv6 payload of up to 65,535 bytes can be indicated. For payload lengths greater than 65,535 bytes, the Payload Length field is set to 0 and the Jumbo Payload option is used in the Hop-by-Hop Options extension header. Next Header – Indicates either 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 above the Internet layer, the same values used in the IPv4 Protocol field are used here.
  • #28: Hop Limit – Indicates the maximum number of links over which the IPv6 packet can travel before being discarded. The size of this field is 8 bits. The Hop Limit is similar to the IPv4 TTL field except that there is no historical relation to the amount of time (in seconds) that the packet is queued at the router. When the Hop Limit equals 0, an ICMPv6 Time Exceeded message is sent to the source address and the packet is discarded. Source Address –Stores the IPv6 address of the originating host. The size of this field is 128 bits. Destination Address – Stores the IPv6 address of the current destination host. The size of this field is 128 bits. In most cases the Destination Address is set to the final destination address. However, if a Routing extension header is present, the Destination Address might be set to the next router interface in the source route list.
  • #32: Here are the extension headers listed in order. Note that the two security headers (AH and ESP) come after Routing and Fragmentation. That is, when we prepare a packet, they are at a higher layer and done first. So, this means the routing headers are processed after IPsec has been applied and what we are securing is a full, unfragmented, end-to-end IPv6 datagram. One can see from the example how the chaining works: first comes the IPv6 header with its next header set to Routing; then comes the Routing Header with its Next Header set to Fragment; then the Fragment Header has its Next Header ESP for security. ESP has Next Header TCP, but this value is actually encrypted “on the wire.” The headers are chained together; most have fixed, known lengths, which are defined in RFCs. The exception is destination options which are encoded as TLVs.