EC312 PS27 - Solutions
EC312 PS27 - Solutions
Name: ____SOLUTIONS_______________
1. Given the following ARP table, make the necessary change(s) to cause all Ethernet traffic destined for
192.168.14.10 to flow to you (192.168.14.13) instead?
IP MAC
192.168.14.8 AA:BB:CC:DD:EE:FF
192.168.14.9 AA:BB:AA:BB:AA:BB
192.168.14.10 A4:B5:C6:D7:E8:F9
192.168.14.12 EE:FF: EE:FF:EE:FF
192.168.14.13 A4:B5:C6:D7:E8:F9
192.168.14.21 C6:D7:C6:D7:C6:D7
192.168.14.25 E8:F9: E8:F9:E8:F9
2. Why is the destination hardware address all 0s in the ARP request message?
Because when a request is made, the sender does not know the destinations hardware address
yet. This destination hardware address of all 0s is part of the ARP request packet. It
should not be confused with the datalink layer Ethernet frame which has a destination
hardware address of all fs (broadcast address).
3. Why is the destination hardware address of the frame from A to B a broadcast address?
The frame uses a broadcast address so that the intended recipient on the network will receive the
frame even though the sender does not know the specific hardware address of the
intended recipient.
4. To acquire an IP address, the sourec address is 0.0.0.0 and the destination address is 255.255.255.255.
22.18
Fi gur e 22.8 L on gest mask mat chi ng
22 .18
F igu re 22.8 L onge st mas k m at ch in g
22 .18
22.18
22.18
7. Assume router R2 above has fixed its routing table to have longest mask matching below, and it receives
a packet with destination address 140.24.7.42. How is the packet routed to its final destination?
22.18
F igure 22 . 8 Longe st m ask m at c hi n g
2 2.1 8
Router R2 will compare the destination address with its forwarding table. Using the mask, R2
determines if the destination address is part of the 140.24.7.192 network. It is not. R2
compares the destination address with the 140.24.7.0 network. It is part of this
network. R2 will forward the packet to R1 via interface m0. When R1 receives the
packet, it will use its forwarding table similar to R2, starting at the top and working
its way down. In this case, the packet is destined for an IP address that is part of the
network 140.24.7.0. R1 will send to packet to the appropriate host in Organization 1 via
interface m0.
8. Construct the routing table for router RB in the picture shown below.