Spring 20071 Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 03/04/2007.

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.
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)
TCP/IP Protocol Suite 1 Chapter 7 Upon completion you will be able to: ARP and RARP Understand the need for ARP Understand the cases in which ARP is used.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
1 CCNA 2 v3.1 Module 8. 2 TCP/IP Suite Error and Control Messages CCNA 2 Module 8.
Address Resolution Protocol (ARP). Mapping IP Address to Data-Link Address  How does a machine map an IP address to its Data- Link layer (hardware or.
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.
Network Layer (Part IV). Overview A router is a type of internetworking device that passes data packets between networks based on Layer 3 addresses. A.
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.
Chapter 4: Managing LAN Traffic
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,
1 Computer Communication & Networks Lecture 20 Network Layer: IP and Address Mapping (contd.) Waleed.
1 Version 3.1 modified by Brierley Module 8 TCP/IP Suite Error and Control Messages.
Page 19/13/2015 Chapter 8 Some conditions that must be met for host to host communication over an internetwork: a default gateway must be properly configured.
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.
TCP/IP Protocol Suite 1 Chapter 8 Upon completion you will be able to: ARP and RARP Understand the need for ARP Understand the cases in which ARP is used.
© 2002, Cisco Systems, Inc. All rights reserved..
CCNA 2 Week 8 TCP/IP Suite Error Control Messages.
TCP/IP Protocol Suite 1 Chapter 7 Upon completion you will be able to: ARP and RARP Understand the need for ARP Understand the cases in which ARP is used.
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.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
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.
1 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
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.
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.
BAI513 - PROTOCOLS ARP BAIST – Network Management.
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)
Cisco 2 - Routers Perrine. J Page 112/19/2015 Chapter 8 TCP/IP Error Message Some of the conditions that must be met in order for host to host communication.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
1 Connectivity with ARP and RARP. 2 There needs to be a mapping between the layer 2 and layer 3 addresses (i.e. IP to Ethernet). Mapping should be dynamic.
TCP/IP Protocol Suite 1 Chapter 7 Upon completion you will be able to: ARP ( and ARP ( RFC-826) and RARP ( RARP ( RFC-903) Understand the need for ARP.
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.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
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
Scaling the Network: The Internet Protocol
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
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
Scaling the Network: The Internet Protocol
Presentation transcript:

Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 03/04/2007

Spring Outline ARP, RARP ICMP

Spring Logical vs Physical addresses Internetwork addresses –Jurisdiction is universal –IP addresses  All networks understand the addressing scheme –Implemented in software Physical addresses –Jurisdiction is local –Implemented in hardware –Depends on the technology used at the physical layer (and hence the protocols at MAC layer)

Spring A packet using one logical addressing scheme may pass through networks with different physical layer technologies Thus we need to consider two different and independent addressing schemes; logical and physical

Spring Problem Whenever a host needs to send a message to another host, it has the IP address. However the IP datagram must be encapsulated in a frame (by the MAC layer) so that it may be delivered over the physical layer Hence the need for the physical address The only way to get the physical address is to have a mapping scheme

Spring Static mapping Create a table that associates a logical address with a physical address

Spring Static mapping Assumptions –Each machine knows the IP of the destination machine –In case the machine address is not known, it can be looked up in the table

Spring Drawbacks of static mapping A machine could change its NIC –Hence a new physical address In some physical & data link layer protocols, the machine addresses changes whenever a machine is turned on A mobile computer can move from one network to another –Hence a change in the physical address (depending upon the underline protocols)

Spring Solution The static mapping table must be updated periodically or whenever the need arises

Spring Dynamic mapping Each time the machine knows one of the two addresses (physical or logical) it can obtain the other

Spring ARP & RARP Protocols defined for the dynamic mapping of logical and physical addresses

Spring ARP & RARP ARP: Address Resolution Protocol RARP: Reverse Address Resolution Protocol Use unicast and broadcast physical addresses Position of ARP & RARP in the TCP/IP stack

Spring ARP Instead of maintaining a static table, we can obtain the physical address at runtime –This is where ARP comes in ARP associates an IP address with a physical address On a typical network, each interface is identified by a physical address

Spring ARP Anytime a host needs to find the physical address, it send an ARP query The datagram contains the IP and the physical address of the sender as well as the IP address of the intended recipient Since the sender does not knows the destinations physical address, the datagram is broadcasted over the network

Spring ARP Every host receives the query However only the intended recipient finds its IP address in the query message and responds This response is sent as a unicast

Spring ARP

Spring ARP packet format 16-bits: type of network e.g. Ethernet 1 16-bits: protocol e.g. IPv bits: length of physical address e.g. Ethernet 6 8-bits: length of logical address e.g. IPv4 4 Variable length field

Spring Encapsulation ARP packet is encapsulated into a data-link frame Ethernet frame

Spring Steps 1.Sender knows the IP of the destination 2.IP asks ARP to create a request 3.Message is passed to the data-link layer and after encapsulation, the frame is transmitted 4.Every host receives the frame and pass it to ARP as the “type” field has the ARP code. All machines drop the packet, since the IP of the intended recipient do not match with their IP

Spring Steps … 5.The host then replies with another ARP message (response) that contains the physical address. This response is transmitted as a unicast message. 6.The sender receives the reply 7.The sender then compiles and transmits the required datagrams using the physical address

Spring Four cases

Spring A host with IP address and physical address B2:34:55:10:22:10 has a packet to send to another host with IP address and physical address A4:6E:F4:59:83:AB (which is unknown to the first host). The two hosts are on the same Ethernet network. Show the ARP request and reply packets encapsulated in Ethernet frames. Example 1 See Next Slide

Spring Solution Note that the ARP data field in this case is 28 bytes, and that the individual addresses do not fit in the 4- byte boundary. That is why we do not show the regular 4-byte boundaries for these addresses. Also note that the IP addresses are shown in hexadecimal. For information on binary or hexadecimal notation see Appendix B. Example 1 (Continued) See Next Slide

Spring

Spring Proxy ARP Proxy ARP is used to create subnetting effect Proxy ARP: An ARP that acts on behalf of a set of hosts –Whenever a router receives an ARP request which asks for the physical address of any one of the hosts it is representing, the router responds with its own physical address

Spring Proxy ARP

Spring ARP’s Hypothetical Implementation The software package would include five modules: –Cache table –Queues –The output module –The input module and a –Cache control module

Spring

Spring Cache table Usually one or more IP datagrams to send to the same destination –Inefficient to use ARP for every datagram –Thus the need of a cache table Limited space –Hence the mappings are not stored indefinitely –The result is an up-to-date cache table

Spring Cache table FREE, PENDING and RESOLVED Hardware type, Protocol type, hardware length, protocol length, interface number

Spring Queues, Output and Input Modules Queues; one for each destination –To hold the IP packets while ARP tries to resolve the hardware address The output module send unresolved packets into the corresponding queue The input module removes a packet from a queue and sends it –with the resolved physical address –to the data link layer for transmission

Spring Output Modules Waits for an IP packet from the network layer Checks the cache table to find an entry –The destination IP address must match the protocol address If RESOLVED => data-link layer If PENDING => wait till the address is found If none exists => create a queue and enqueue the packet

Spring The ARP output module receives an IP datagram (from the IP layer) with the destination address It checks the cache table and finds that an entry exists for this destination with the RESOLVED state (R in the table). It extracts the hardware address, which is ACAE32, and sends the packet and the address to the data link layer for transmission. The cache table remains the same. Example

Spring Cache table

Spring Twenty seconds later, the ARP output module receives an IP datagram (from the IP layer) with the destination address It checks the cache table and does not find this destination in the table. The module adds an entry to the table with the state PENDING and the Attempt value 1. It creates a new queue for this destination and enqueues the packet. It then sends an ARP request to the data link layer for this destination. The new cache table is shown in Table 7.2. Example See Next Slide

Spring Updated cache table for Example

Spring Input Modules Wait untill request/reply arrives If the entry exists & PENDING => updates the entry as per the reply and change to RESOLVED, sets the timeout, delivers the packets If the entry exists & RESOLVED => updates the entry as per the reply, resets the timeout If no entry exists => creates an entry, state is set to RESOLVED and timeout is set

Spring Cache control module Responsible for maintaining the cache table Periodically checks each entry If FREE, it moves on to the next If PENDING, increments the attempts field by one –If greater than max, state => FREE, queue destroyed If RESOLVED, decrements the timeout –If FREE, queue destroyed

Spring Fifteen seconds later, the ARP input module receives an ARP packet with target protocol (IP) address The module checks the table and finds this address. It changes the state of the entry to RESOLVED and sets the time-out value to 900. The module then adds the target hardware address (E ACA) to the entry. Now it accesses queue 18 and sends all the packets in this queue, one by one, to the data link layer. The new cache table is shown in Table 7.3. Example See Next Slide

Spring Updated cache table for Example

Spring Twenty-five seconds later, the cache-control module updates every entry. The time-out values for the first three resolved entries are decremented by 60. The time-out value for the last resolved entry is decremented by 25. The state of the next-to-the last entry is changed to FREE because the time-out is zero. For each of the three pending entries, the value of the attempts Example See Next Slide

Spring Updated cache table for Example

Spring RARP Reverse Address Resolution Protocol

Spring RARP Finds the logical address for a machine that only knows its physical address –Logical addresses are unique and independent of the physical address Diskless machines have ROM (and an RARP client) –Broadcast the RARP request –Machine with all the IP addresses replies (RARP server) - unicast

Spring Packet Format

Spring RARP

Spring Encapsulation

Spring Alternates to RARP BOOTP DHCP

Spring ICMP

Spring Why ICMP? IP provides connectionless & unreliable (best- effort) datagram delivery IP has deficiencies –Lack of error control/correction  What if something goes wrong? –Router drops a packet, how to know? –TTL is decremented by one at each hop, how will the source know that TTL has reached 0 –Lack of host and management queries  Host is alive or not? Misc information is required, how to fetch?

Spring ICMP w.ref.t Network layer Supporting protocol for IP –As is ARP and RARP –ICMP is shown above, since ICMP datagrams are not sent to the data-link layer directly. They are encapsulated in IP datagrams and then forwarded

Spring ICMP Encapsulation IPheader.protocol = 1

Spring Types of ICMP Messages Errors which a router or a host (destination) may encounter Query messages to get specific information from a router or a host. Always occur in pairs

Spring ICMP Messages

Spring Message Format An ICMP message has an 8-byte header and a variable-size data section An ICMP message has an 8-byte header and a variable-size data section The general format of the header is different for each message type yet the first 4 bytes are common to all The general format of the header is different for each message type yet the first 4 bytes are common to all

Spring Error Messages

Spring Error Reporting vs Error Correction ICMP does not –Provide interaction between a router and the source of trouble –Maintain state information (each packet is handled independently) When a datagram causes an error, ICMP can only report the error condition back to the original source of the datagram

Spring ICMP always reports error messages to the original source. Note: Error Reporting

Spring The following are important points about ICMP error messages: ❏ No ICMP error message will be generated in response to a datagram carrying an ICMP error message. ❏ No ICMP error message will be generated for a fragmented datagram that is not the first fragment. ❏ No ICMP error message will be generated for a datagram having a multicast address. ❏ No ICMP error message will be generated for a datagram having a special address such as or Note:

Spring Error Messages

Spring Destination unreachable ~ 3 Generated by the router to inform the client that the destination host is unreachable Reasons for this message may include the –physical connection to the host does not exist (distance is infinite), –the indicated protocol or port is not active, or –the data must be fragmented but the 'don't fragment' flag is on e

Spring Destination unreachable ~ 3 Defined codes for each type of failure –Refer to the book for the values

Spring Source Quench ~ 4 Message which requests the sender to decrease the traffic rate of messages to a router or host Generated if the router or host does not have sufficient buffer space to process the request, or may occur if the router or host's buffer is approaching its limit

Spring Source Quench ~ 4 No mechanism for Flow-control in IP A source-quench message informs the source that a datagram has been discarded due to congestion in a router or the destination host The source must slow down the sending of datagrams until the congestion is relieved One source-quench message is sent for each datagram that is discarded due to congestion

Spring Time exceeded ~ 11 Generated by a gateway to inform the source of a datagram that the datagram has been discarded due to the time to live field reaching zero message may also be sent by a host if it fails to reassemble a fragmented datagram

Spring Parameter Problem ~ 12 Sent to the source host for any problem not specifically covered by another ICMP message –0 ~ ambiguous –1 ~ missing option field

Spring Redirection ~ 5

Spring Redirection ~ 5

Spring Questions? That’s all for today!