Computer Networks · TEE · papers

Q5(c) · ARP

2023-11-22 · Final 2023-24 / Re-exam 2022-23

Actual paper; 100 marks attempted. Current-syllabus alignment is stated per question.

Q5(c). Explain briefly the significance of ARP protocol in LAN. Illustrate its working with diagram. [5 marks]

Answer

Definition. Address Resolution Protocol (ARP) resolves a known IPv4 address to a link-layer hardware address on the local network.

Simple meaning. IP pata hai; local delivery ke liye MAC chahiye.

Swipe across the diagram to read its labels ↔
ARP resolves the selected local next hop
Diagram: ARP resolves the selected local next hop. Labels: ARP resolves the selected local next hop | ARP resolves the selected local next hop | 1. Decide local destination or gateway | Compare the destination with the local prefix. | 2. Look in the ARP cache | If the next-hop mapping is missing, send a local broadcast request. | 3. Receive the mapping | The address owner normally replies with its hardware address. | 4. Build the local frame | Use that MAC for the next link; retain the final destination IP.
ARP: find the local next-hop MAC address

Understand it step by step

  1. First determine whether the destination is on the local subnet. If local, the next hop is the destination itself. If remote, the next hop is a router such as the default gateway.
  2. Check the ARP cache. If the next-hop mapping is absent, broadcast an ARP request on the local link.
  3. The owner of the requested IPv4 address normally replies with its hardware address. The sender caches the mapping and constructs its data frame.
  4. Routers do not normally forward a host’s ARP broadcast across networks. ARP resolves the next hop, not the MAC of a remote Internet server.

ARP maps a known local next-hop IPv4 address to a hardware address. A sender broadcasts a request when the mapping is missing; the address owner replies, and the mapping is cached. For a remote IP destination, the sender resolves its gateway’s local MAC address, then forwards the packet toward that gateway.

Yaad rakho: Remote packet ka next-hop MAC gateway ka hota hai.