THE CLASSIC INTERNET PROTOCOL (RFC 791) Dr. Rocky K. C. Chang 20 September 2010 1.

Slides:



Advertisements
Similar presentations
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
Advertisements

Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
IPv4 - The Internet Protocol Version 4
IP Fragmentation. MTU Maximum Transmission Unit (MTU) –Largest IP packet a network will accept –Arriving IP packet may be larger IP Packet MTU.
Network Layer – IPv4 Dr. Sanjay P. Ahuja, Ph.D.
CSE 461: IP/ICMP and the Network Layer. Next Topic  Focus:  How do we build large networks?  Introduction to the Network layer  Internetworks  Service.
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
Network Layer Packet Forwarding IS250 Spring 2010
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
1 TDC TDC 365 Network Interconnections Technologies Lecture #4 Notes Spring, 2009.
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
Internet Control Message Protocol (ICMP). Introduction The Internet Protocol (IP) is used for host-to-host datagram service in a system of interconnected.
Chapter 5 The Network Layer.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Internet Networking Spring 2003
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
1 The Classic Internet Protocol (RFC 791) Dr. Rocky K. C. Chang 18 September 2006.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Internet Control Message Protocol (ICMP) Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Internet Command Message Protocol (ICMP) CS-431 Dick Steflik.
1 Internet Control Message Protocol (ICMP) RIZWAN REHMAN CCS, DU.
1 CMPT 471 Networking II ICMP © Janice Regan, 2012.
4: Network Layer4a-1 IP datagram format ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier Internet checksum time.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Internet Control Message Protocol (ICMP) Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
TCOM 515 IP Routing Lab Lecture 1. Class information Instructor: Wei Wu –Lecture and Lab session 2 – Instructor:
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
© Jörg Liebeherr (modified by M. Veeraraghavan) 1 ICMP: A helper protocol to IP The Internet Control Message Protocol (ICMP) is the protocol used for error.
TCOM 515 IP Routing. Syllabus Objectives IP header IP addresses, classes and subnetting Routing tables Routing decisions Directly connected routes Static.
Chapter 81 Internet Protocol (IP) Our greatest glory is not in never failing, but in rising up every time we fail. - Ralph Waldo Emerson.
1 Internet Control Message Protocol (ICMP) Used to send error and control messages. It is a necessary part of the TCP/IP suite. It is above the IP module.
The Internet Protocol Dr. Adil Yousif. 2  IP (Internet Protocol) is a Network Layer Protocol. Orientation.
Internet Protocols. Address Resolution IP Addresses are not recognized by hardware. If we know the IP address of a host, how do we find out the hardware.
CS 4396 Computer Networks Lab
Error and Control An IP datagram travels from node to node on the way to its destination Each router operates autonomously Failures or problems may occur.
Chapter 23 Internet Control Message Protocol used to report information and errors IP uses ICMP when it sends an error message ICMP uses IP to transport.
1 An Error Reporting Mechanism (ICMP). 2 IP Semantics IP is best-effort Datagrams can be –Lost –Delayed –Duplicated –Delivered out of order –Corrupted.
1 Chapter 23 Internetworking Part 3 (Control Messages, Error Handling, ICMP)
Internet Protocols (chapter 18) CSE 3213 Fall 2011.
CSC 600 Internetworking with TCP/IP Unit 5: IP, IP Routing, and ICMP (ch. 7, ch. 8, ch. 9, ch. 10) Dr. Cheer-Sun Yang Spring 2001.
ICMPv6 Error Message Types Informational Message Types.
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
1 Chapter 4: Internetworking (Internet Protocol) Dr. Rocky K. C. Chang 16 March 2004.
TCP/IP Illustrated, Volume 1: The Protocols Chapter 6. ICMP: Internet Control Message Protocol ( 월 ) 김 철 환
IP Protocol CSE TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol.
1 Chapter 23 Internetworking Part 3 (Control Messages, Error Handling, ICMP)
Internet Control Message Protocol (ICMP)
IP Fragmentation. MTU Maximum Transmission Unit (MTU) –Largest IP packet a network will accept –Arriving IP packet may be larger IP Packet MTU.
Internet Control Message Protocol (ICMP)
IP - The Internet Protocol
Internet Control Message Protocol (ICMP)
Chapter 9 ICMP.
Internet Control Message Protocol
COMPUTER NETWORKS CS610 Lecture-33 Hammad Khalid Khan.
8 Network Layer Part V Computer Networks Tutun Juhana
IP - The Internet Protocol
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
IP - The Internet Protocol
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
IP - The Internet Protocol
Net 323 D: Networks Protocols
Chapter 15. Internet Protocol
IP - The Internet Protocol
IPv4 Addressing By, Ishivinder Singh( ) Sharan Patil ( )
IP - The Internet Protocol
NET 323D: Networks Protocols
32 bit destination IP address
Presentation transcript:

THE CLASSIC INTERNET PROTOCOL (RFC 791) Dr. Rocky K. C. Chang 20 September

IPv4 header 2

IPv4 datagrams 3 VersionHLen TOSLength Identification FlagsFragment offset Time to live (TTL)ProtocolHeader checksum Source address Options (variable) Pad (variable) Data Destination address

IPv4 header 4  Version: 4 for the current IP.  Type of service (TOS) for specifying how a router should handle this datagram.  Recently replaced by a 6-bit differentiated services codepoint (RFC 2474) and  a 2-bit explicit congestion notification (RFC 3168)  Header length handles a variable-length header.  20-byte IP header without IP options

IPv4 header 5  A 16-bit length (count in bytes) limits the size of an IP datagram to 65,535 bytes, including the IP header.  Identification, flags, and offset are used for packet fragmentation and reassembly.  Time to live (TTL) limits the number of times that a datagram processed by routers  Packets caught in routing loops  Packet scoping, especially for multicast packets.  Initial TTL value?

IPv4 header 6  Protocol specifies the type of payload.  Protocol messages on the network layer, such as ICMP (1) and IGMP (2)  TCP data (6) and UDP data (17)  Checksum is a 16-bit word checksum for header ’ s error detection  IP options: Source routing, record route, timestamp, etc, but they are rarely used today in practice.

7

Implementing IP fragmentation 8  Support unambiguous fragment reassembly.  Support multiple fragmentations.  Support the options of fragmentation.  Cater for packet reordering.  Detect fragment losses.

Fragment reassembly 9  Each fragment must share the same identity.  This identity should not rely on other protocol information.  The identification field is incremented after sending an IP packet.  Each fragment should include its position in the original packet.  Fragment offset: the offset of this fragment from the beginning of the original packet.  Fragments are counted in units of 8 octets, why?

Fragment reassembly 10  As a result of using the fragment offset to indicate the fragment ’ s position, need to identify the last fragment.  If the More-Fragment bit (the last flag) is off, this fragment is the last fragment.  If any fragment does not arrive within a certain time, other received fragments in the same datagram will be discarded.  Need a fragment timer.

Fragment reassembly 11  Should allow the source to have some control over IP fragmentation.  A Don ’ t Fragment flag (the second flag) indicates whether the datagram should be fragmented.

IP fragmentation: An example 12 H1R1R2R3H8 ETHIP(1400)FDDIIP(1400)PPPIP(512) PPPIP(376) PPPIP(512) ETHIP(512) ETHIP(376) ETHIP(512)

13 Ident = xOffset = 0 Start of header 0 Rest of header 1400 data bytes (a) Ident = xOffset = 0 Start of header 1 Rest of header 512 data bytes (b) Ident = xOffset = 512 Start of header 1 Rest of header 512 data bytes Ident = xOffset = 1024 Start of header 0 Rest of header 376 data bytes

How to reduce the IPv4 header ’ s complexity? 14  More items in an IP header  higher computation  No options  Remove the 4-bit header length field  No hop-by-hop fragmentation in the network  Remove the 4 bytes of identification, flags and offset.  Instead, support end-to-end fragmentation.  No error detection for headers  Remove the 16-bit checksum.

IPv6 header 15

ICMP 16

Internet control message protocol (ICMP) 17  RFCs 792 and 950  The main services provided by ICMP are:  Error reporting (error)  Reachability test (query)  Congestion control (error)  Route-change notification (error)  Time stamping (query)  Subnet addressing (query)  Router advertisement and solicitation (query)

ICMP messages 18  ICMP messages, protected by 16-bit checksums, are encapsulated in IP datagrams.  ICMP messages are classified into error messages and query messages.  Query messages include echo request and reply (Ping) router advertisement and solicitation timestamp request and reply address mask request and reply  The rest are error messages

ICMP error messages 19

20

ICMP error messages 21  An ICMP error message always contains  the IP header and the first 8 bytes of the IP datagram that caused the ICMP error to be generated.  An ICMP error message is never generated in response to  An ICMP error message  A datagram destined to an IP broadcast address or an IP multicast address  A datagram sent as a link-layer broadcast  A fragment other than the first

Summary 22  The IPv4 header contains sufficient information for implementing the IP service.  But there are rooms for IPv4 to simplify the header structures.  ICMP provides some useful feedbacks (queries and error reporting) for IP and the transport layer.

References “ Special-Use IPv4 addresses, ” RFC 3330, Sept