You are on page 1of 2

CHAPTER 8

Address Resolution
Protocol (ARP)

Exercises
1. The size of an ARP packet is variable, depending on the length of addresses.
2. 8 (general header) + 12 (physical addresses) + 8 (IP addresses) = 28 bytes.
3. An ARP packet is normally less than minimum Ethernet payload. The size of an
Ethernet frame carrying an ARP packet is therefore 72 bytes.
4. 0xFFFFFFFFFFFF
5. See Figure 8.E5. Note that although the problem mentions the physical address of
the destination, it is assumed that ARP will find this address. The problem gives
the destination physical address to be filled in the ARP reply packet.
Figure 8.E5 Solution to Exercise 5

ARP Request 0x0001 0x0800


0x06 0x04 0x0001
0xB2345AB4F67CD
125.42.23.12 0x7D2A170C
0x000000000000
125.11.78.10 0x7D0B4E0A

Preamble Data and


0xFFFFFFFFFFFF 0xB2345AB4F67CD 0x0806 CRC
and SFD padding

ARP Reply 0x0001 0x0800


0x06 0x04 0x0002
0xAABBA24F67CD
125.11.78.10 0x7D0B4E0A
0xB2345AB4F67CD
125.42.23.12 0x7D2A170C

Preamble Data and


0xB2345AB4F67CD 0xAABBA24F67CD 0x0806 CRC
and SFD padding

1
2

6. This situation is different from Exercise 5. If the source can find the destination
physical address in the routing table, it means there is no need for ARP (the desti-
nation physical address is in the cache table).
7. See Figure 8.E7
Figure 8.E7 Solution to Exercise 7

0x0013 0x0800 0x0013 0x0800


0x14 Reserved 0x0008 0x14 Reserved 0x0009
0x04 0x14 Reserved 0x04 0x04 0x14 Reserved 0x04
0x22 22 ... 22 22 0x33 33 ... 33 33
(20 bytes) (20 bytes)
172.14.20.16/16 180.25.23.14/24
0x00 00 ... 00 00 0x22 22 ... 22 22
(20 bytes) (20 bytes)
180.25.23.14/24 172.14.20.16/16
a. Inverse request b. Inverse replied

8. See Figure 8.E8.


Figure 8.E8 Solution to Exercise 8

0x0013 0x0800 0x0013 0x0800


0x14 Reserved 0x0001 0x14 Reserved 0x0002
0x04 0x14 Reserved 0x04 0x04 0x14 Reserved 0x04
0x44 44 ... 44 44 0x55 55 ... 55 55
(20 bytes) (20 bytes)
14.56.12.8 200.23.54.8
0x00 00 ... 00 00 0x44 44 ... 44 44
(20 bytes) (20 bytes)
200.23.54.8 14.56.12.8
a. Request b. Reply

9. See Figure 8.E9.


Figure 8.E9 Solution to Exercise 9

B C D

1.1.1.2 1.1.1.3 1.1.1.4

A E
1.1.1.6 III III III 1.1.1.5
2.2.2.6 2.2.2.5

2.2.2.2 2.2.2.3 2.2.2.4

H G F

10. The ATMARP packet is 60 bytes in length; each cell can carry 48 bytes, so 2 cells
are needed

You might also like