PDU

2025. 7. 25. 00:17·Computer Science/Network

 

When data is transmitted between layers in a network stack,

the unit of data at each layer is referred to as a PDU (Protocol Data Unit).

 

A PDU typically consists of:

  • A header: control information specific to the layer
  • A payload: the actual data being transmitted

Each layer has its own name for the PDU:

  • Application Layer: Message
  • Transport Layer: Segment (TCP) / Datagram (UDP)
  • Internet Layer: Packet
  • Link Layer: Frame
  • Physical Layer: Bit

 

 

Among these, bits at the physical layer are the fastest and most efficient to transmit. However, at the application layer, data is typically transmitted as strings because it allows easy extension—such as including authorization tokens or metadata in headers.

 

 


Required Header Information

Although headers may be complex, they must always include two essential types of information:

  1. Layer-Specific Information (defined by the current layer)
    • Transport Layer (Layer 4):
      •    Handles segmentation and reassembly of large data.
      •    Includes fields like sequence number and acknowledgment number (in TCP) to ensure reliable delivery and correct ordering.
    • Internet Layer (Layer 3):
      •    Contains source and destination IP addresses to support logical routing.
    • Link Layer (Layer 2):
      •    Includes source and destination MAC addresses for physical delivery within a local network.
  2. Upper-Layer Protocol Identifier
    •    During decapsulation, the receiving system must determine which upper-layer protocol should handle the payload.
    •    Without this information in the header, the system cannot decide whether to pass the data to TCP, UDP, or other protocols.
    Examples of protocol identifiers:
    •    EtherType (at Layer 2)
    •    Protocol Number (at Layer 3)
    •    Port Number (at Layer 4)

⚠️ A common misconception is that port numbers, while defined in the Layer 4 header, actually indicate which application-layer protocol (e.g., HTTP, DNS) the payload belongs to.

Therefore, each layer's header must include metadata about the protocol used by the next upper layer, not itself.

 

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

ARP_Address Resolution Protocol  (0) 2025.07.30
Load Balancer  (0) 2025.07.25
The process of sending and receiving data between layers  (1) 2025.07.21
TCP/IP 4-layer model  (0) 2025.07.19
Network Bottleneck  (0) 2025.07.19
'Computer Science/Network' 카테고리의 다른 글
  • ARP_Address Resolution Protocol
  • Load Balancer
  • The process of sending and receiving data between layers
  • TCP/IP 4-layer model
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
  • 블로그 메뉴

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

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

  • 인기 글

  • 태그

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

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
JTB
PDU
상단으로

티스토리툴바