edited by
19,446 views
38 votes
38 votes

Suppose that in an IP-over-Ethernet network, a machine X wishes to find the MAC address of another machine Y  in its subnet. Which one of the following techniques can be used for this?

  1. X sends an ARP request packet to the local gateway’s IP address which then finds the MAC address of Y and sends to X
  2. X sends an ARP request packet to the local gateway’s MAC address which then finds the MAC address of Y and sends to X
  3. X sends an ARP request packet with broadcast MAC address in its local subnet
  4. X sends an ARP request packet with broadcast IP address in its local subnet
edited by

12 Answers

1 votes
1 votes

What is ARP?

The protocol that helps a host fetch the MAC address of some other host, whose IP address is already known.

 

How does a host use ARP?

Since IP address is already known; first the host uses the Subnet Mask to determine if the other host is in the same network. If yes, broadcast to all. If no, send it to the gateway.

(Options A and B eliminated)

 

How to broadcast? The simple logic is to do so via MAC address; because that's the address the hosts in the same subnet use to communicate with each other. IP address is used for hosts of different subnets (or networks).
We don't know the target MAC address, so in that field pul all 1's. Hence, Option C

 

If we consider Option D true, then the target host would never know the intended packet is for it. Because it won't have it's IP or MAC address.

0 votes
0 votes

Initially I was also thinking C is correct but seeing the question correctly I also think D is correct because Arp request packet contain empty or false MAC address source ishttps://www.geeksforgeeks.org/computer-network-arp-reverse-arprarp-inverse-arpinarp-proxy-arp-gratuitous-arp/. And we achieve broad cast  by limited broadcast address.ie 255.255.255.255 (It is used to broad cast with in a LAN) . IT make sense . Broadcast mac is used only if we want to send data within a LAN to all the people .This was flaws of bridge (as per best of my knowledge ) so we used Virtual  LAN concept. Tell me if I am wrong.

0 votes
0 votes
Answer is : C

We need to find MAC address that what ARP does,

We have Source Ip, Dest Ip, Source Mac. Then broadcasting Dest IP is of no use. How would destination know that MAC is needed. So MAC bit's set to all 1's. Simply put Dest Ip, source ip and source mac and broadcast MAC. this would send the packet to every stations and whosoever sees their IP would send the ARP reply with their MAC.
Answer:

Related questions

26 votes
26 votes
6 answers
2
Arjun asked Feb 7, 2019
19,920 views
Consider that $15$ machines need to be connected in a LAN using $8$-port Ethernet switches. Assume that these switches do not have any separate uplink ports. The minimum ...
13 votes
13 votes
6 answers
3
7 votes
7 votes
2 answers
4
makhdoom ghaya asked Sep 8, 2016
2,222 views
Which of the following file transfer protocols use $TCP$ and establishes two virtual circuits between the local and remote server ?$FTP$$TFTP$ $TELNET$$NFS$