Chapter 21 Address Mapping

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.
ARP: Address Resolution Protocol
Media Access Control (MAC) addresses in the network access layer ▫ Associated w/ network interface card (NIC) ▫ 48 bits or 64 bits IP addresses for the.
1 Address Resolution Protocol (ARP) Relates to Lab 2. This module is about the address resolution protocol.
Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
Helper Protocols Protocols that either make it easier for IP to do its job, or extend the capabilities of the network layer.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 8 Address Resolution Protocol.
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.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
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.
Host Configuration: BOOTP and DHCP
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.
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.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
TELE202 Lecture 10 Internet Protocols (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Internet Protocols (1) »Source: chapter 15 ¥This Lecture »Internet.
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.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Cisco – Chapter 11 Routers All You Ever Wanted To Know But Were Afraid to Ask.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 15 Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv6.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
Bootstrap and Autoconfiguration Chapter 23. Introduction Each computer attached to a TCP/IP internet needs to know: –its IP address –the address of a.
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.
Connecting The Network Layer to Data Link Layer. ARP in the IP Layer The Address Resolution Protocol (ARP) The Address Resolution Protocol (ARP) Part.
Hyung-Min Lee ©Networking Lab., 2001 Chapter 8 ARP and RARP.
1 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
Chapter 7 ARP and RARP.
1 Network Layer Lecture 12 Imran Ahmed University of Management & Technology.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 8 Address Resolution Protocol.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing
1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Dynamic Host Configuration Protocol (DHCP)
Chapter 18 Host Configuration : DHCP
1 Kyung Hee University Chapter 8 ARP(Address Resolution Protocol)
Mapping IP Addresses to Hardware Addresses Chapter 5.
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.
( Address Resolution Protocol )
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 Protocol Suite and IP Addressing Presented By : Dupien AMS.
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.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
Chapter 9 Introduction To Data-Link Layer
Chapter 9 Introduction To Data-Link Layer 9.# 1
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Address Resolution Protocol (ARP)
IP: Addressing, ARP, Routing
Chapter 8 ARP(Address Resolution Protocol)
Bootstrap And Autoconfiguration (BOOTP, DHCP)
6 Network Layer Part III Computer Networks Tutun Juhana
Objective: ARP.
ARP and RARP Objectives Chapter 7 Upon completion you will be able to:
BOOTP and DHCP Objectives
Net 323: NETWORK Protocols
Net 323: NETWORK Protocols
NAT/ARP/RARP (Ch 5 & 8) Dr. Clincy Lecture.
Chapter 18 Host Configuration : DHCP
8PM – Quickly Overview Final Project
ARP: Address Resolution Protocol
Chapter 9 Introduction To Data-Link Layer 9.# 1
Chapter 7 ARP and RARP Prof. Choong Seon HONG.
Chapter 16 Host Configuration : BOOTP and DHCP
1 ADDRESS RESOLUTION PROTOCOL (ARP) & REVERSE ADDRESS RESOLUTION PROTOCOL ( RARP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University,
ARP: Address Resolution Protocol
Ch 17 - Binding Protocol Addresses
Chapter 18 Host Configuration : DHCP
Presentation transcript:

Chapter 21 Address Mapping Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Objective Address Mapping ONLY Logical Address to Physical/Local Address – e.ge, IP to MAC address (ARP) Local Address to Logical Address – MAC to IP address (RARP)

Protocols Used for Mapping 21-1 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 to map a logical address to its corresponding physical address and vice versa. This can be done by using either static or dynamic mapping. Protocols Used for Mapping Address Resolution Protocol (ARP) Reverse Address Resolution Protocol (RARP) Bootstrap Protocol (BOOTP) Dynamic Host Configuration Protocol (DHCP)

Address Resolution Protocol Internet is made of a combination of physical networks connected by internetworking devices such as routers Hosts and routers are recognized at the network level by their logical IP addresses Packets pass through physical networks to reach these hosts and routers At the physical level, the hosts and routers are recognized by their physical addresses ARP is the protocol used to map IP address to MAC address. View ARP cache (Command prompt): arp –a, arp /?

ARP operation

Performance: Cache Memory Using ARP is inefficient if system A needs to broadcast an ARP request for each IP packet it needs to send to system B ARP can be useful if the ARP reply is cached (kept in cache memory) A system that receives ARP reply stores the mapping in cache memory and keep it for 20 to 30 minutes unless there is no space in the cache.

ARP PACKET FORMAT

ARP Packet Hardware type: define the type of the network on which ARP is running. Ethernet is given type 1. Protocol Type: define the protocol. 0800 for IPv4 Hardware length: define the length of the physical address in bytes. Ethernet the value is 6. Protocol Length: define the length of the logical address in bytes. For IPv4 protocol the value is 4. Operation: define the type of packets. ARP request (1) or ARP reply (2). Sender hardware address: the physical address of the sender. Sender protocol address: the IP address of the sender Target hardware address: the physical address of the receiver. Target protocol address: the IP address of the receiver.

Encapsulation Data is encapsulated with protocol information at each layer when it is transmitted across a network. As data moves through the layers, communication occurs within the peer layer before moving to the next layer. One important piece of information to keep in mind is that data flows two ways in the OSI model, DOWN (data encapsulation) and UP (data decapsulation). An ARP packet is encapsulated directly into a data link frame. Next slide shows you an ARP packet is encapsulated in an Ethernet frame. http://www.cbtplanet.com/articles-tutorials/what-is-data-encapsulation.htm http://www.firewall.cx/networking-topics/the-osi-model/179-osi-data-encapsulation.html

Encapsulation of ARP Packet The type field indicates that the data carried by the frame is an ARP Packet

Encapsulation A packet at level 7 is encapsulated in the packet at level 6. The whole packet at level 6 is encapsulated in a packet at level 5, and so on. The data part of a packet at level N is carrying the whole packet (data and overhead) from level N – 1. The concept is called encapsulation because level N is not aware what part of the encapsulated packet is data and what part is the header or trailer.

Encapsulation

ARP FOUR CASES

ARP FOUR CASES be delivered to the appropriate router.

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

Example 21.1 A host with IP address 130.23.43.20 and physical address B2:34:55:10:22:10 has a packet to send to another host with IP address 130.23.43.25 and physical address A4:6E:F4:59:83:AB. The two hosts are on the same Ethernet network. Show the ARP request and reply packets encapsulated in Ethernet frames. Solution Figure 21.5 shows the ARP request and reply packets.

Figure 21.5 Example 21.1, an ARP request and reply

Figure 21.6 Proxy ARP A proxy ARP is an ARP that acts on behalf of a set of hosts.

Reverse Address Resolution Protocol (RARP) Finds the logical address for a machine that knows only its physical address. To create an IP datagram, a host or a router needs to know its own IP address or addresses. A RARP request is created and broadcast on the local network. The requesting machine must be running a RARP client program; the responding machine must be running a RARP server program. There is a serious problem with RARP: Broadcasting is done at the data link layer. This means that if an administrator has several networks or several subnets, it needs to assign a RARP server for each network or subnet.

BOOTSTRAP PROTOCOL - BOOTP It is a client/server protocol Designed to provide physical address to logical address mapping Can be kept on same network or on different networks It is an application layer protocol BOOTP messages are encapsulated in a UDP packet and UDP packet is encapsulated in IP packet One of the advantages of BOOTP over RARP is that the client and server are application-layer processes

BOOTSTRAP PROTOCOL - BOOTP

BOOTP The BOOTP request is broadcast because the client does not know the IP address of the server. A broadcast IP datagram cannot pass through any router. To solve the problem, there is a need for an intermediary. One of the hosts can be used as a relay. The host in this case is called a relay agent. The relay agent knows the unicast address of a BOOTP server. When it receives this type of packet, it encapsulates the message in a unicast datagram and sends the request to the BOOTP server.

RELAY AGENT

Note DHCP provides static and dynamic address allocation that can be manual or automatic.

DHCP Static Address Allocation: In this capacity DHCP acts as BOOTP does. So, A host running the BOOTP client can request a static address from a DHCP server. A DHCP server has a database that statically binds physical addresses to IP addresses. Dynamic Address Allocation: DHCP has a second database with a pool of available IP addresses. When a DHCP client requests a temporary IP address, the DHCP server goes to the pool of available (unused) IP address and assigns an IP address for a negotiable period of time. Command prompt: ipconfig/all, ipconfig/release, ipcnfig/renew.