Network Layer: Address Mapping
Network Layer: Address Mapping
Address Mapping
1
ARP– The Address Resolution Protocol
2
Packet has to be sent on data link & physical link
3
For example, every Ethernet board has a 48-bit MAC
address
4
Address mapping can be :
– Static
• Administratively assigned
or
– Dynamic
• Automatically assigned
5
Static mapping
• Manually creating a table in each machine on the
network
Limitations :
1. Machine can change network card –resulting new MAC address
2. A mobile computer can move from one physical network to
another , resulting in a change in its MAC address
7
Static IP Addresses
8
Dynamic mapping
In dynamic mapping, each time a machine knows one of
the two addresses, it can use a protocol to find the other
one
9
Figure 8-1
10
Figure 20.2 ARP operation
11
Note:
12
Cache memory
•Using ARP is inefficient if system A needs to
broadcast an ARP request for every IP packet
• Hence ARP reply is cached and kept for 20 to
30 minutes
• Before sending an ARP request the system first
checks its cache to see if it can find IP address
13
Figure 21.3 Encapsulation of ARP packet
14
ARP Operation
15
ARP Operation
19
ARP Operation
20
ARP Operation
21
Figure 21.2 ARP packet
22
Figure 21.5 Example 21.1, an ARP request and reply
23
Four cases using ARP
24
Four cases using ARP
25
Example 21.1
Solution
Figure 21.5 shows the ARP request and reply packets. 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.
26
Proxy ARP
27
Proxy ARP
28
RARP
29
BOOTP
• The bootstrap protocol (BOOTP) operates in a client-server environment
• BOOTP packets can include the IP address, as well as the address of a router, the
address of a server, and vendor-specific information
• One problem with BOOTP is that it was not designed to provide dynamic address
assignment.
• With BOOTP, a network administrator manually creates a configuration file for every
host on the network that contains a BOOTP profile along with an IP address
assignment in it
30