ARP_Address Resolution Protocol

2025. 7. 30. 23:19·Computer Science/Network

While it is commonly assumed that communication between computers happens through IP addresses, the actual transmission at the data link layer relies on MAC addresses.

In reality, IP addresses are used to find corresponding MAC addresses using ARP, and communication is performed based on those MAC addresses.


What is ARP?

ARP (Address Resolution Protocol) is a network protocol used to map an IP address to a MAC address—essentially acting as a "bridge" between Layer 3 (network layer) and Layer 2 (data link layer).

  • ARP translates a virtual/logical IP address into a physical MAC address.
  • The reverse process can be done using RARP (Reverse ARP), which maps a MAC address to an IP address.

 


ARP in Action

  1. IP-to-MAC Address Resolution
    •    A host(any devices connected to network) may know the IP address of a target, but the actual transmission requires the MAC address at the data link layer.
    •    The host sends an ARP request to resolve the MAC address associated with the known IP address.
  2. ARP Cache
    •    Once the mapping is resolved, the host stores it in the ARP cache (a local table).
    •    Future communications to the same IP can retrieve the MAC address directly from the cache without sending another request.
  3. ARP Request/Reply Process
    •    If the MAC address is not in the cache, the host sends an ARP request as a broadcast to all devices on the network.
    •    The device with the matching IP responds with an ARP reply, containing its MAC address.
  4. ARP Packet Structure
    • The ARP header includes:
      •    Hardware type
      •    Protocol type
      •    Hardware address length (MAC length)
      •    Protocol address length (IP length)
      •    Operation type (request/reply)
      •    Sender/target MAC and IP addresses

Broadcast vs. Unicast

  • Broadcast: A data transmission sent to all hosts on a local network.
  • → Used by ARP requests when the target MAC is unknown.
  • Unicast: A 1:1 transmission directed to a specific device using its unique address.
  • → Used for normal communication once the MAC address is known.

Understanding ARP is fundamental to grasping how Layer 2 and Layer 3 interact in real-world networking environments.

'Computer Science > Network' 카테고리의 다른 글

IP Address  (0) 2025.08.06
MAC address  (0) 2025.08.01
Load Balancer  (0) 2025.07.25
PDU  (0) 2025.07.25
The process of sending and receiving data between layers  (1) 2025.07.21
'Computer Science/Network' 카테고리의 다른 글
  • IP Address
  • MAC address
  • Load Balancer
  • PDU
JTB
JTB
웹/앱 개발 정보를 공유하고 있습니다.
  • JTB
    JTechBlog
    JTB
  • 전체
    오늘
    어제
    • All About Programming;) N
      • Computer Science
        • Terminology and Concepts
        • Network
        • Operating System
        • Database
        • Data Structure
      • Frontend
        • Javascript Essentials
        • Perfomance Optimization
        • JS Patterns
        • Next.js
        • Flutter
      • Backend
        • Node.js
      • DevOps
        • Docker & Kubernetes
      • Coding Test N
        • LeetCode N
        • Programmers
      • Tech Books & Lectures
        • Javascript_Modern JS Deep d..
        • Network_IT 엔지니어를 위한 네트워크 입문
      • Projects
        • PolyLingo_2025
        • Build Your Body_2024
        • JStargram_2021
        • Covid19 Tracker_2021
        • JPortfolio_2021
      • BootCamp_Codestates
        • TIL
        • TILookCloser
        • Pre Tech Blog
        • IM Tech Blog
        • Daily Issues and DeBugging
        • First Project
        • Final Project
        • Sprint Review
        • Good to Know
        • Socrative Review
        • HTML & CSS
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • 글쓰기
    • 관리
  • 공지사항

  • 인기 글

  • 태그

    How memory manage data
    자바스크립트 딥다이브
    Threads and Multithreading
    DOM
    Time complexity and Space complexity
    Operating System
    자바스크립트
    TCP/IP
    이벤트
    mobile app
    Shared resources
    leetcode
    indie hacker
    polylingo
    structure of os
    need a database
    모던 자바스크립트 Deep Dive
    Network
    Data Structure
    Binary Tree BFS
    js pattern
    CPU scheduling algorithm
    database
    스코프
    JavaScript
    커리어
    프론트엔드 성능 최적화 가이드
    딥다이브
    VoiceJournal
    testing
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
JTB
ARP_Address Resolution Protocol
상단으로

티스토리툴바