# IP Protocol Concepts (ARP, RARP, ICMP, IGMP)

> ARP, RARP, ICMP and IGMP are supporting protocols that work alongside IP. ARP finds the MAC address for a known IP address, RARP finds an IP address for a known MAC address (now largely replaced by DHCP), ICMP reports errors and diagnostics, and IGMP manages multicast group membership.

Canonical: https://devsunite.com/resources/core-subjects/computer-networks/ip-protocol-concepts
Last updated: 2026-11-22

Subject: Computer Networks · Category: Network Layer · 4 min read

IP handles addressing and routing, but it relies on several supporting protocols to do things it can't do alone: finding a device's physical address, reporting errors, and managing group communication.

## ARP (Address Resolution Protocol)

IP addresses identify devices logically, but on a local network, data is actually delivered using physical MAC addresses (a hardware identifier burned into a network card). ARP is how a device discovers the MAC address that corresponds to a known IP address on the same local network. It broadcasts "who has this IP address?" and the device with that IP responds with its MAC address, which the sender then caches for future use.

## RARP (Reverse Address Resolution Protocol)

The reverse of ARP: a device that knows its own MAC address but not its IP address broadcasts a request asking "what IP address belongs to this MAC address?" RARP was historically used by diskless workstations booting without any stored configuration, but it's largely obsolete today, replaced by DHCP, which provides the same capability plus a lot more configuration information in one exchange.

## ICMP (Internet Control Message Protocol)

Used to report errors and diagnostic information about IP packet delivery, rather than carrying application data itself. If a router can't deliver a packet (say, the destination is unreachable, or the packet's time-to-live counter expired), it sends an ICMP message back to the sender explaining why. The `ping` command works by sending ICMP Echo Request messages and waiting for ICMP Echo Reply messages, which is exactly how it measures whether a host is reachable and how long the round trip takes.

## IGMP (Internet Group Management Protocol)

Manages multicast group membership, letting a device tell its local router "I want to receive traffic sent to this multicast group address," so the network only needs to deliver that traffic to routers with actual interested receivers, rather than flooding it everywhere. This is used for things like IPTV and some video conferencing setups, where the same stream needs to reach many receivers efficiently.

## A worked example

A laptop wants to send data to another device, 192.168.1.50, on the same local network. It doesn't know that device's MAC address yet, so it broadcasts an ARP request: "who has 192.168.1.50?" The device at that IP address responds directly with its MAC address, `AA:BB:CC:DD:EE:FF`. The laptop caches this mapping and can now send data directly to that MAC address on the local network. If the destination device were unreachable instead (say, powered off), the response wouldn't come as an ARP reply, but if the packet were instead being routed through a router and failed to reach a destination further away, the router would send back an ICMP "destination unreachable" message explaining the failure.

## Where this matters in real systems

ARP runs on every local network constantly and invisibly; it's one of the most fundamental, if easy to forget, pieces of how any local network actually functions. ICMP is directly exposed to end users through the `ping` and `traceroute` tools, both essential everyday network troubleshooting utilities. Note that many networks and firewalls block or rate-limit ICMP traffic deliberately (since ICMP has historically been used in denial-of-service attacks, like a flood of ping requests), which is a real, common reason a host might not respond to ping even though it's genuinely online and reachable for other traffic.

## What interviewers actually ask about ARP, ICMP, and related protocols

- **"What does ARP actually do?"** Resolves a known IP address to the corresponding MAC address on a local network, since data delivery on a local network happens using physical MAC addresses, not IP addresses directly.
- **"How does the `ping` command actually work?"** It sends ICMP Echo Request messages to a target and waits for ICMP Echo Reply messages, using the round trip to determine reachability and measure latency.
- **"Why might a real, online server not respond to ping?"** The server or a firewall in between may be deliberately blocking or rate-limiting ICMP traffic, a common security practice since ICMP has been used in denial-of-service attacks.
- **"What replaced RARP in modern networks?"** DHCP, which provides IP address assignment (RARP's core function) plus subnet mask, gateway, and DNS configuration in one exchange.

## Key takeaways

- ARP resolves a known IP address to its corresponding MAC address on a local network.
- ICMP reports errors and diagnostic information about packet delivery, and powers tools like ping and traceroute.
- RARP (obsolete, replaced by DHCP) resolved a known MAC address to an IP address.
- IGMP manages multicast group membership so multicast traffic only reaches routers with genuinely interested receivers.

## Related

- [Previous: Routing Protocols (RIP, OSPF, BGP)](https://devsunite.com/resources/core-subjects/computer-networks/routing-protocols)
- [Next: NAT (Network Address Translation)](https://devsunite.com/resources/core-subjects/computer-networks/nat)
- [More in Network Layer: IPv4 vs IPv6 Addressing](https://devsunite.com/resources/core-subjects/computer-networks/ipv4-vs-ipv6-addressing)
- [More in Network Layer: Subnetting, Supernetting, and CIDR](https://devsunite.com/resources/core-subjects/computer-networks/subnetting-supernetting-cidr)
- [More in Network Layer: Routing Algorithms (Distance Vector, Link State)](https://devsunite.com/resources/core-subjects/computer-networks/routing-algorithms)
- [More in Network Layer: How the Internet Actually Works](https://devsunite.com/resources/core-subjects/computer-networks/how-the-internet-works)
- [All 101 Computer Networks interview questions](https://devsunite.com/resources/core-subjects/computer-networks)
