Mapping Internet Addresses to Physical Addresses - PowerPoint PPT Presentation

1 / 22
About This Presentation
Title:

Mapping Internet Addresses to Physical Addresses

Description:

Communication is accomplished at the Network Access Layer through physical address ... What if a network card fails? New physical address ... – PowerPoint PPT presentation

Number of Views:490
Avg rating:3.0/5.0
Slides: 23
Provided by: jamesda8
Category:

less

Transcript and Presenter's Notes

Title: Mapping Internet Addresses to Physical Addresses


1
Mapping Internet Addresses to Physical Addresses
  • Chapter 5

2
TCP/IP Layers
Telnet
FTP
SMTP
SNMP
Application
TCP
UDP
Transport
IP
ICMP
Internet
ARP
Ethernet, FDDI, ATM, Frame Relay
Network Interface
Copper Wire, Fiber optic
Hardware
3
Address Resolution Problem
  • Hosts have both an IP address and a physical
    address (MAC media access control)
  • Communication is accomplished at the Network
    Access Layer through physical address
  • Must map IP address to physical address

4
Two Types of Physical Address
  • Some physical addresses are user configurable
  • PA f(LA)
  • proNET token ring network
  • Assign last part of IP address as physical
    address
  • 192.5.48.3 maps to 3

5
Dynamic Binding
  • Ethernet has 48 bit address, IP address is 32
    bit address
  • Ethernet card address is preset
  • Must determine physical address dynamically
  • Address Resolution Protocol

6
Address Resolution Protocol
  • Allows a host to find the physical address of
    another host on the same physical network given
    the target hosts IP address
  • Broadcast a request for resolution
  • All hosts look at packet
  • Target host responds

7
Address Resolution Protocol
  • ARP is automatic when a request is made to send a
    packet to another host
  • Several could stack up for same host from
    different applications
  • Inefficient if done for every communication with
    host
  • Why not just broadcast packet to be delivered?

8
Address Resolution Protocol
A
X
B
Y
9
Address Resolution Protocol
  • Request includes
  • Source IP address
  • Source MAC address
  • Destination IP address

10
Address Resolution Protocol
  • Response includes
  • Source IP address
  • Source MAC address
  • Destination IP address
  • Destination MAC address

11
Address Resolution Protocol
  • Address Resolution Cache
  • Most communications consist of multiple packets
  • Saves ARP responses in cache
  • Saves ARP requests in cache why?
  • Target
  • Everyone else
  • LRU algorithm used if cache full
  • Cache entries expire

12
Address Resolution Protocol
  • What if a network card fails?
  • New physical address
  • Broadcast message includes source physical
    address
  • All hosts can record source mapping

13
Address Resolution Protocol
  • ARP is a low-level protocol that hides the
    underlying network physical addressing,
    permitting one to assign an arbitrary IP address
    to every machine. We think of ARP as part of the
    physical network system, not as part of the
    internet protocols.

14
ARP ImplementationSend Request
  • Looks in cache first
  • If there, sends packet out
  • Broadcast ARP packet and wait for reply
  • Ethernet is best effort delivery packet may be
    lost
  • Host must timeout and retry
  • During ARP, original packet must be saved
  • More packets may come in during ARP and should be
    queued

15
ARP ImplementationReceive Request
  • When a broadcast request is received
  • Add/update senders cache entry
  • See if request is for this host
  • If it is, send response to sender

16
ARP ImplementationReceive Response
  • When ARP Response is received
  • Add/update cache
  • Send packets which are waiting (if any)

17
ARP Encapsulation
  • Ethernet packet
  • Preamble (8 bytes)
  • Destination Address (6 bytes)
  • Source Address (6 bytes)
  • Frame Type ( 2 bytes 0x0806)
  • Frame Data (ARP Packet)
  • CRC

18
ARP Packet
Hardware Type
Protocol Type
Ethernet 0001
IP 0800
Hdw Addr Len
Prot. Addr Len
Operation
0006
0004
Reqst 0001 Resp 0002
Sender Hardware Address (0-3)
Sender HA (4-5)
Sender IP (0-1)
Sender IP (2-3)
Target HA (0-1)
Target Hardware Address (2-5)
Target IP (0-3)
19
Proxy ARP
  • ARP based on trust
  • No consistency checking performed
  • Proxy ARP uses these facts
  • Responds to ARP request with own physical address
  • Accepts packets and forwards them to real host
  • Appears that several hosts have same physical
    address

20
Proxy ARP
Host A
Host B
Bridge
Host X
Host Y
21
The Future
  • Direct mapping is more efficient
  • Next generation of IP is designed to allow 48-bit
    addresses to be encoded in IP addresses

22
ARP Administration
  • Unix ARP command
  • arp
  • man arp
  • Windows ARP command
  • arp -?
Write a Comment
User Comments (0)
About PowerShow.com