Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Host A wants to send a packet to Host B. What role does the Router R play in

ID: 3572407 • Letter: 1

Question

1. Host A wants to send a packet to Host B. What role does the Router R play in this transfer?

2. Now Host A wants to send a packet to Host D. What role does the Router R play in this transfer?

3. Let IP(a) be the IP address of Host A, network interface a. Let MAC(a) be the MAC address. Give the source and destination IP

and MAC addresses for the frame on each wire for the previous two scenarios:

1. A sending to B

2. A sending to D

4. Assuming all ARP tables are empty, describe the ARP message exchange for each of these scenarios:

1. A sending to B

2. A sending to D

Host A a Host B b Host C c Router R Host D

Explanation / Answer

1) Role of router R from Host A to Host B:
Host A will look in the routing table to see how its data must be transmitted.
and then A finds an entry for hosts on the same subnet as Host B is in same subnet.
A send the package to the NIC on that subnet, addressed to B.
No router is involved in this case.

2)Role of Router R From Host A to Host D
When router R receives packet from Host A, first of all it strips down the MAC layer header and looks into the IP header which contains destination IP address of Host D.
After getting the destination IP of D , router looks into it database(Routing Table) in order to find where should this packet be forwarded to make it reach to destination ie. Host D.