edited by
19,426 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

6 votes
6 votes
d
that it sends a broadcast request with having IP in local......:o
5 votes
5 votes

The correct answer is C.

Refer page 467 of Computer Networking: A top down approach, attaching a screenshot here

 

3 votes
3 votes

According to RFC 826 machine will create a ARP REQUEST Packet as follows: 

HARDWARE TYPE PROTOCOL TYPE
HLEN  PLEN OPCODE
SOURCE MAC ADDRESS (X's MAC):(known)
SOURCE IP(X's IP):(known)
TARGET MAC(Y's MAC) : 00:00:00:00:00
TARGET IP(Y's IP):(known)

       

This ARP requests must be sent as broadcasts. There is no way that an ARP request can be sent to the right system. After all, the whole reason for sending an ARP request is that X does not  know the Ethernet address Y . So an Ethernet address of all ones is used, i.e. FF:FF:FF:FF:FF:FF

This ARP Packet will be encapsulated inside a Ethernet frame  and broadcasted. 

FF:FF:FF:FF:FF:FF X's MAC TYPE ARP REQUEST PACKET CRC

 

By convention, every machine on the Ethernet is required to pay attention to packets with this as an address. So every machine sees every ARP requests. They all look to see whether the request is for their own address. If so, they respond. If not, they could just ignore it.

Answer:

Related questions

26 votes
26 votes
6 answers
2
Arjun asked Feb 7, 2019
19,899 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,214 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$