silverspecv
Programmer
There is some debate amongst my group on these 2 separate topics. For some reason ARP and RARP are always grouped together, but this is 2 questions: What OSI layer are ARP and RARP?
As far as I can tell, they are both layer 2 protocols, although they obviously compliment or supplement higher layers.
RARP is either a predecessor of DHCP or it at least has a similar function. You send out a layer 2 frame to the broadcast address FF:FF:FF:FF:FF:FF and ask for an IP address, and then hopefully and RARP server receives the frame and gives you one. Since the whole point is to GET an IP address, this would completely exclude above layer 2, so it would HAVE to be a layer 2 protocol right?
ARP is for communicating on the local ethernet broadcast segment. If you have a layer 3 packet from one ip address to another ip address, that alone does not enable communication, because the layer 3 packet must be encapsulated in a later 2 frame which requires the destination MAC address in the ethernet header. So before you send the packet, you send out an ARP request to broadcast address FF:FF:FF:FF:FF:FF with the data portion containing an ARP request instead of an encapsulated IP packet. The data contains the requested IP address. All hosts on the segment "hear" the request since it is sent to the mac broadcast address, and the host that has the requested IP address sends a layer 2 ARP reply directly to the requesting host's mac address (which was contained in the sender portion of the original ARP request) and containing its own MAC address. Upon receipt of the MAC address of the cooresponding IP address, the sending host encapsulates the original layer 3 packet in a layer 2 frame and sends the frame to the ethernet.
I can see how there might be some debate over ARP, but RARP is pretty clear-cut right? These guys are saying they have found material on CISCO's web site and in various books stating that ARP/RARP are layer 3 protocols. I am completely open to expert testimony, but I have done research myself, and I have found nothing to the contrary except one web site which claims they are layer 4 protocols, but I will not believe that unless someone else confirms it.
web links much appreciated, btw.. I could use some ammo
As far as I can tell, they are both layer 2 protocols, although they obviously compliment or supplement higher layers.
RARP is either a predecessor of DHCP or it at least has a similar function. You send out a layer 2 frame to the broadcast address FF:FF:FF:FF:FF:FF and ask for an IP address, and then hopefully and RARP server receives the frame and gives you one. Since the whole point is to GET an IP address, this would completely exclude above layer 2, so it would HAVE to be a layer 2 protocol right?
ARP is for communicating on the local ethernet broadcast segment. If you have a layer 3 packet from one ip address to another ip address, that alone does not enable communication, because the layer 3 packet must be encapsulated in a later 2 frame which requires the destination MAC address in the ethernet header. So before you send the packet, you send out an ARP request to broadcast address FF:FF:FF:FF:FF:FF with the data portion containing an ARP request instead of an encapsulated IP packet. The data contains the requested IP address. All hosts on the segment "hear" the request since it is sent to the mac broadcast address, and the host that has the requested IP address sends a layer 2 ARP reply directly to the requesting host's mac address (which was contained in the sender portion of the original ARP request) and containing its own MAC address. Upon receipt of the MAC address of the cooresponding IP address, the sending host encapsulates the original layer 3 packet in a layer 2 frame and sends the frame to the ethernet.
I can see how there might be some debate over ARP, but RARP is pretty clear-cut right? These guys are saying they have found material on CISCO's web site and in various books stating that ARP/RARP are layer 3 protocols. I am completely open to expert testimony, but I have done research myself, and I have found nothing to the contrary except one web site which claims they are layer 4 protocols, but I will not believe that unless someone else confirms it.
web links much appreciated, btw.. I could use some ammo