1 Computer Communication & Networks Lecture 20 Network Layer: IP and Address Mapping (contd.) Waleed.

Slides:



Advertisements
Similar presentations
Computer Networks21-1 Chapter 21. Network Layer: Address Mapping, Error Reporting, and Multicasting 21.1 Address Mapping 21.2 ICMP 21.3 IGMP 21.4 ICMPv6.
Advertisements

21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
CSCI 4550/8556 Computer Networks Comer, Chapter 23: An Error Reporting Mechanism (ICMP)
Helper Protocols Protocols that either make it easier for IP to do its job, or extend the capabilities of the network layer.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 9 Internet Control Message Protocol (ICMP)
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 8 Address Resolution Protocol.
Internet Control Message Protocol (ICMP)
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
Subnetting.
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 03/04/2007.
1 CCNA 2 v3.1 Module 8. 2 TCP/IP Suite Error and Control Messages CCNA 2 Module 8.
McGraw-Hill©The McGraw-Hill Companies, Inc., Chapter 20 Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv6.
1 K. Salah Module 5.3: Internet Control Message Protocol Why need ICMP? IP and ICMP ICMP Message Format ICMP Error Reporting messages ICMP Query messages.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
TCP/IP Protocol Suite 1 Chapter 9 Upon completion you will be able to: Internet Control Message Protocol Be familiar with the ICMP message format Know.
TELE202 Lecture 10 Internet Protocols (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Internet Protocols (1) »Source: chapter 15 ¥This Lecture »Internet.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 9 Internet Control Message.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
Internet Control Message Protocol (ICMP)
Network Layer – Subnetting and Control Protocols Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing,
23-Support Protocols and Technologies Dr. John P. Abraham Professor UTPA.
1 Version 3.1 modified by Brierley Module 8 TCP/IP Suite Error and Control Messages.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Internet Control Message Protocol (ICMP). Objective l IP and ICMP l Why need ICMP? l ICMP Message Format l ICMP fields l Examples: »Ping »Traceroute.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 8 TCP/IP Suite Error and Control Messages.
© 2002, Cisco Systems, Inc. All rights reserved..
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
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.
Hyung-Min Lee ©Networking Lab., 2001 Chapter 8 ARP and RARP.
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.
Chapter 19 - Binding Protocol Addresses
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.
Basic IP Protocol Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Chapter 7 ARP and RARP.
ARP The Process and the Protocol. Note to reader The information explained in this section is a simplification and extrapolation of the actual ARP determination.
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)
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 8 Address Resolution Protocol.
1 Kyung Hee University Chapter 8 ARP(Address Resolution Protocol)
By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Network Layer: Address Mapping, Error Reporting, and Multicasting
TCP/IP Illustrated, Volume 1: The Protocols Chapter 6. ICMP: Internet Control Message Protocol ( 월 ) 김 철 환
ADDRESS MAPPING ADDRESS MAPPING The delivery of a packet to a host or a router requires two levels of addressing: logical and physical. We need to be able.
Network Layer Protocols COMP 3270 Computer Networks Computing Science Thompson Rivers University.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
1 Chapter 23 Internetworking Part 3 (Control Messages, Error Handling, ICMP)
Computer Communication & Networks
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
IP: Addressing, ARP, Routing
ICMP The IP provides unreliable and connectionless datagram delivery. The IP protocol has no error-reporting or error-correcting mechanism. The IP protocol.
Chapter 21 Address Mapping
Chapter 8 ARP(Address Resolution Protocol)
6 Network Layer Part III Computer Networks Tutun Juhana
21-2 ICMP(Internet control message protocol)
Chapter 9 ICMP.
Objective: ARP.
ARP and RARP Objectives Chapter 7 Upon completion you will be able to:
Byungchul Park ICMP & ICMPv DPNM Lab. Byungchul Park
Net 323: NETWORK Protocols
Net 323: NETWORK Protocols
NAT/ARP/RARP (Ch 5 & 8) Dr. Clincy Lecture.
8PM – Quickly Overview Final Project
Internet Control Message Protocol Version 4 (ICMPv4)
Chapter 7 ARP and RARP Prof. Choong Seon HONG.
1 ADDRESS RESOLUTION PROTOCOL (ARP) & REVERSE ADDRESS RESOLUTION PROTOCOL ( RARP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University,
Internet Control Message Protocol
Presentation transcript:

1 Computer Communication & Networks Lecture 20 Network Layer: IP and Address Mapping (contd.) Waleed Ejaz

2 Address Mapping

3 logical physical The delivery of a packet to a host or a router requires two levels of addressing: logical and physical. We need to be able to map a logical address to its corresponding physical address and vice versa. This can be done by using either static or dynamic mapping.

4 ARP and RARP

5 ARP - The Address Resolution Protocol An IP datagram must be encapsulated in a frame to pass through the physical network. This requires the physical address of the receiver. ARP associates an IP address with its physical address. When the physical address of another host is required an ARP query packet is sent which includes  IP address of sender  IP address of the receiver The intended recipient recognises its IP address and send back an ARP response which contains the physical address.

6 ARP operation

7 ARP Request & Reply

8 Proxy ARP

9 ARP functions Sender knows IP address IP asks ARP to create an ARP request message  sender physical address  sender IP address  target IP address  target physical address filled with 0's Message passed to data link layer; destination address = broadcast address All hosts receive frame; only target host accepts the packet Target host replies (unicast) with an ARP reply message containing the physical address Sender receives reply; it now knows the physical address of the target host IP datagram's are now unicast to the destination host

10 Cache Table A sender usually has more than one IP datagram to send to the same destination It is inefficient to use ARP for each datagram A cache table is used  limited size  mappings retained only for a limited time

11 RARP Finds the logical address for a host that only knows its physical address RARP request packets are broadcast; RARP reply packets are unicast Used by diskless machines to obtain their IP addresses

12 Operation

13 An ARP request is broadcast; an ARP reply is unicast. Note

14 ICMP

15 ICMP protocol IP protocol is a best-effort delivery service, however it has two deficiencies  Lack of error control  Lack of assistance mechanisms IP protocol has no error-reporting or error-correction mechanism  What happens when something goes wrong?  What happens if a router must discard a datagram because it cannot find a route to the final destination?  What if the time-to-live field has a zero value?  What if it has to discard all fragments because not all were received in a predetermined time limit? IP protocol also lacks a mechanism for host and management queries. ICMP was designed to compensate for these deficiencies.

16 Internet Control Message Protocol (ICMP) ICMP is used by routers for exchanging error information and for testing. The principal ICMP message types are shown below.

17 Internet Control Message Protocol (ICMP) Encapsulated in IP packet Handles error and control messages If router cannot deliver or forward a packet, it sends an ICMP “host unreachable” message to the source If router receives packet that should have been sent to another router, it sends an ICMP “redirect” message to the sender; Sender modifies its routing table ICMP “router discovery” messages allow host to learn about routers in its network and to initialize and update its routing tables ICMP echo request and reply facilitate diagnostic and used in “ping”

18 Example – Echo request

19 Example – Echo Reply

20 General format of ICMP messages

21 ICMP always reports error messages to the original source. Note

22 Quiz 4 Assuming class full addressing, what is the default subnet mask for the IP address : [1] Assuming classless IP addressing, what is the subnet mask for the IP address /23: [1] Consider the IP address /25. What is the maximum number of interfaces (hosts) supported by the network, of which this IP address is a part? [1] An organization is granted the block of IP addresses: /26. The organization needs to have four subnets of equal size, i.e. with equal number of hosts. Provide the range of IP addresses (of the form a.b.c.d/x) for each subnet. Explain your work! [8]