© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.

Slides:



Advertisements
Similar presentations
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
Advertisements

CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 8 Address Resolution Protocol.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
IP: The Internet Protocol
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
CSCI 4550/8556 Computer Networks Comer, Chapter 19: Binding Protocol Addresses (ARP)
CS335 Networking & Network Administration Tuesday, May 11, 2010.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
COS 420 Day 3.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
Chapter 19 Binding Protocol Addresses (ARP) Chapter 20 IP Datagrams and Datagram Forwarding.
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.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
1 CSCI 233 Internet Protocols Class 3 Dave Roberts.
NET0183 Networks and Communications Lectures 19 and 20 Support Protocols: ARP and ICMP 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks.
Mapping Internet Addresses to Physical Addresses (ARP)
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
1 Internet Protocol: Forwarding IP Datagrams Chapter 7.
1 Chapter Internetworking Part 1 (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution.
CEN Network Fundamentals Chapter 19 Binding Protocol Addresses (ARP) To insert your company logo on this slide From the Insert Menu Select “Picture”
FALL, 2005CSI Part 2.3 Internetworking & Addressing (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution Robert L. Probert, SITE,
Chapter 15 - Internetworking Motivation Universal service Internetworking Routers Internet architecture Routers in an organization A virtual network A.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
Part 3: Internetworking Internet architecture, addressing, encapsulation, reliable transport and the TCP/IP protocol suite.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
Hyung-Min Lee ©Networking Lab., 2001 Chapter 8 ARP and RARP.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Chapter 19 - Binding Protocol Addresses
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
1 Java EE Programming Internetworking. 2 Motivation for Internetworking LAN technologies provide high speed communication across short distances WAN technologies.
1 Network Administration Module 3 ARP/RARP. 2 Address Resolution The problem Physical networks use physical addresses, not IP addresses Need the physical.
Chapter 19 Binding Protocol Addresses (ARP) A frame transmitted across a physical network must contain the hardware address of the destination. Before.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Internet Application Theory & Applications. Internet Application - Ibrahim Otieno SCI/ICT Building 2 nd Floor Rm.
COS 420 Day 3. Agenda Assignment Due Jan 29, 2003 Next Class Individual Projects assigned Today.
Chapter 9 Hardware Addressing and Frame Type Identification 1.Delivering and sending packets 2.Hardware addressing: specifying a destination 3. Broadcasting.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 8 Address Resolution Protocol.
Internet Protocol: Routing IP Datagrams Chapter 8.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
1 Kyung Hee University Chapter 8 ARP(Address Resolution Protocol)
CSIT 220 (Blum)1 ARP Based on Computer Networks and Internets (Comer)
Mapping IP Addresses to Hardware Addresses Chapter 5.
CS470 Computer Networking Protocols Huiping Guo Department of Computer Science California State University, Los Angeles 4. Internetworking.
1 Binding Protocol Addresses (ARP ). 2 Resolving Addresses Hardware only recognizes MAC addresses IP only uses IP addresses Consequence: software needed.
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.
The Concept of Universal Service
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
IP: Addressing, ARP, Routing
COMPUTER NETWORKS CS610 Lecture-27 Hammad Khalid Khan.
COMPUTER NETWORKS CS610 Lecture-28 Hammad Khalid Khan.
CS4470 Computer Networking Protocols
Chapter 8 ARP(Address Resolution Protocol)
Objective: ARP.
Computer Networks and Internets, 5e By Douglas E. Comer
ARP and RARP Objectives Chapter 7 Upon completion you will be able to:
Computer Networks and Internets, 5e By Douglas E. Comer
Internetworking & Address Resolution
Net 323: NETWORK Protocols
Chapter 7 ARP and RARP Prof. Choong Seon HONG.
Ch 17 - Binding Protocol Addresses
Presentation transcript:

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas E. Comer Lecture PowerPoints By Lami Kaya,

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.2 Chapter 19 Binding Protocol Addresses ARP

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.3 Topics Covered 19.1 Introduction 19.2 Protocol Addresses And Packet Delivery 19.3 Address Resolution 19.4 Address Resolution Techniques 19.5 Address Resolution With Table Lookup 19.6 Address Resolution With Closed-Form Computation 19.7 Address Resolution With Message Exchange 19.8 Address Resolution Protocol 19.9 ARP Message Delivery ARP Message Format Sending An ARP Message Identifying ARP Frames Caching ARP Responses Processing An Incoming ARP Message Layering, Address Resolution, Protocol Addresses

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Introduction IP addresses are “virtual”, maintained by SW A frame transmitted across a physical NW –must have the HW address (HWA) of the destination SW must translate the protocol address (PRA) of the destination into an equivalent HWA This chapter describes three general mechanisms that are used to perform address mapping: –1 st relies on a table that contains address translation information –2 nd uses a mathematical function to perform the translation. –3 rd makes two computers exchange messages across a NW

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Protocol Addresses And Packet Delivery SW in each host or router uses the destination PRA to select a next hop for the packet PRA cannot be used when transmitting frames across physical NW –the HW does not understand PRA A frame must use the HW's frame format –and all addresses in the frame must be a HWA PRA of a next hop must be translated to an equivalent HWA before a frame can be sent

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Address Resolution (AR) Mapping between a PRA and a HWA –called “address resolution” (AR) A host/router uses AR when it needs to send a packet to another computer on the same physical NW –AR is local to a NW A computer never resolves the address of a computer that attaches to a remote NW. Each computer that handles a packet resolves a next- hop address before sending

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.7

Address Resolution Techniques Different methods needed –To resolve a PRA to an Ethernet address differs from the method used to resolve a PRA to an ATM address AR algorithms can be grouped into three categories: Table lookup –Bindings or mappings are stored in a table in memory Closed-form computation –HWA can be computed from the protocol address using basic Boolean and arithmetic operations Message exchange –Computers exchange messages across a NW for AR; “request” and “reply” messages

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved AR With Table Lookup Table is an array with a pair of ( P, H ) entries –P  PRA –H  equivalent HWA A separate binding table is used for each NW Table in Figure 19.2 corresponds to a NW with prefix / 24. Each IP address has prefix –We can save space by omitting the prefix from table entries Chief advantage of the table lookup is generality –a table can store the address bindings for an arbitrary set –arbitrary # of PRAs can map to an arbitrary # of HWA

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.10

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved AR With Table Lookup (cont) Sequential search for a match for a given PRA For large NWs a sequential search requires excessive CPU time –For computational efficiency –We can use “hashing” or “direct indexing” Administrators may choose non-sequential numbers for PRA to help identify the purpose of a computer, e.g. –hosts with suffixes 200 –host suffix from an IP address as an index into the array To prevent an illegal PRA from causing a subscript error –must check to ensure the suffix is in range

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.12

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved AR With Closed-Form Computation Some technologies use configurable addressing –A NW interface can be assigned a specific HWA –values can be chosen to optimize the translation –especially, the host portion of PRA can be chosen to be identical to the computer's HWA HWA can be computed by a Boolean and (&) operation: HWA = PRA & 0xFF

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved AR With Message Exchange A request HWA corresponding to a PRA Reply carries the corresponding HWA Where should an AR request be sent? Most protocols choose one of two possible designs –A NW may include one or more servers contact servers in turns broadcasts its request to all servers –Each computer on the NW participates by agreeing to answer resolution requests for its address: broadcasts a request on the NW, all machines examine If request matches a computer's address, then responds Centralization versus distributed mechanism ?

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.15

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Address Resolution Protocol TCP/IP can use any of the three methods depending on the addressing scheme used by HW –Table lookup  to resolve PRA across a WAN –Closed-form computation  for configurable NWs –Message exchange  on LAN with static/dynamic addressing TCP/IP has an Address Resolution Protocol (ARP), which defines two message types: –A request for a HWA correspond to an PRA (namely IP address) –A reply returning the HWA

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved ARP Message Delivery An ARP request message should –Be placed in a HW frame and broadcast to all computers All receive the request and examines the IP address –The computer mentioned in the request sends a response; –All others discard the request The ARP response is not broadcast –Response is sent directly back to the computer that issued the request

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.18

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved ARP Message Format ARP describes the general form for messages, –and specifies how to determine the details for each type of HW To increase the generality of ARP –the designers included an address length field for PRA and HWA ARP is not restricted to IP addresses or specific HWA –In practice, these generality of ARP is seldom used: –ARP is almost always used to bind a 32-bit IP address (a PRA) to a 48-bit Ethernet address (a HWA)

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.20

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Sending An ARP Message When sending an ARP, the message travels inside a HW frame The ARP message is treated as data being transported –the NW HW does not know about the ARP message format and does not examine the contents of individual fields Placing a message inside a frame for transport is called encapsulation –an ARP message is encapsulated directly in a HW frame Figure 19.7 illustrates the concept

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.22

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Identifying ARP Frames How does a host know whether an incoming frame contains an ARP message? –The type field specifies that the frame contains an ARP msg Sender must assign the appropriate value to the type field before transmitting the frame Receiver examine the type field in each incoming frame Figure 19.8 illustrates the concept

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.24

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Caching ARP Responses To reduce NW traffic –ARP extracts and saves the information from a response so it can be used later ARP maintains a small table in memory (cache) –An entry is replaced whenever a response arrives –Oldest entry is removed whenever the table runs out of space –An entry is removed if it has not been updated for a long time Whenever ARP performs address binding, it searches the cache before using the NW –If present, ARP uses the binding without transmitting a request –If not present, ARP broadcasts a request, waits for a response, updates the cache, and then proceeds to use the binding

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Processing An Incoming ARP Message Receiver perform two steps when a message arrives –extracts the sender's address binding –checks to see if the sender's address is present in the cache ARP contains a further optimization: –after a reply to an ARP request, adds to its cache for later use Most computer communication involves two-way traffic –if a message travels from one computer to another, probability is high that a reply will travel back Because memory constraints –only the target of an ARP request perform caching

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Layering, Address Resolution, Protocol Addresses AR is an example of a function associated with the NW interface layer AR SW hides the details of HWA, allowing SW (applications) in higher layers to use PRA There is an important conceptual boundary –imposed between the NW interface layer and all higher layers Figure 19.9 illustrates the addressing boundary

© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.28