0

So far as I know, Address Resolution Protocol (ARP), translates the IP address of a computer on a local network to an equivalent layer 2 address (MAC address), such as sending a packet from machine A to B using level-2 switch.

It is therefore necessary that all involved parties are on the same LAN, isn't it?

Must an ARP broadcast query packet contain the target node's MAC address?

Perhaps only the IP address will suffice?

MikeyB
  • 39,291
  • 10
  • 105
  • 189

2 Answers2

5

The entire point of an ARP broadcast is to resolve the MAC address of a particular computer owning an IP address.

Wireshark translates the packet like this: Who has 192.168.x.254? Tell 192.168.x.23.

When broadcast, all machines check their IP configuration for the listed IP and reply to the source machine if their own IP matches.

Without a target IP, there isn't much sense to the protocol. Note that the MAC is FF:FF:FF:FF:FF:FF meaning "broadcast to everyone" and all computers can read the packet sent. Otherwise, the packet goes to a specific MAC if in the packet, or is silently ignored if there's no MAC.

Nathan C
  • 15,059
  • 4
  • 43
  • 62
3

Q: It is therefore necessary that all involved parties are on the same LAN, isn't it?

A: Yes.

Q: Must an ARP broadcast query packet contain the target node's MAC address?

A: An ARP query is a query for the destination MAC address. If the querying host already knows the destination MAC address then it doesn't have to query for it via ARP.

joeqwerty
  • 109,901
  • 6
  • 81
  • 172
  • To use the layer-2 packet forwarding, is it necessary to enable ARP on all nodes of a cluster? –  May 05 '14 at 17:31
  • I don't understand the question. On a TCP/IP Ethernet network ARP is required in order to send data from one host to another. AFAIK, there's nothing that would preclude ARP from being a necessity. – joeqwerty May 05 '14 at 17:38
  • ah, ok cool. please forgive my ignorance I'm quite new to these concepts and I'm trying to get my head on straight. thank you for your help in that. –  May 05 '14 at 17:40