Packet

2025. 7. 16. 22:50·Computer Science/Network

Packet Structure

 

A packet is the basic unit of data transmission in a network.

It consists of three main parts: the header, payload, and trailer.

  1. Header
    •    Destination Address: The network address of the target device.
    •    Source Address: The network address of the sending device.
    •    Protocol Information: Indicates which protocol is used (e.g., TCP or UDP).
    •    Length: Specifies the size of the packet.
    •    Other Control Info: Includes sequencing, fragmentation indicators, etc.
    •    Error Checking: Typically includes a *checksum to verify data integrity.
  2. Payload (Data):
    •   The actual content or data being transmitted.
  3. Trailer:
    •   Additional error-checking information, often a duplicate checksum for integrity verification.

Network devices use this packet structure to efficiently transmit and process data:

  • They inspect the header to determine the destination and appropriate protocol.
  • Based on this information, they can route or filter the packet as needed.
  • The trailer allows them to validate that the packet arrived intact and without corruption.

 

 

*Checksum by Location

1. Checksum in the Header:

  • IP Header Checksum: The IPv4 header includes a checksum field. It verifies errors by calculating the checksum over the entire IP header. This field was removed in IPv6.
  • TCP/UDP Header Checksum: The TCP and UDP protocols also include checksums, which are calculated over both the header and the data (payload).

2. Checksum in the Trailer:

  • Frame Check Sequence (FCS): At the data link layer (e.g., Ethernet frames), a checksum may be placed in the frame trailer in the form of an FCS. This is used to detect any errors across the entire frame.

Summary

  • Header-included: TCP and UDP protocols include checksums in their headers.
  • Trailer-included: At the data link layer, checksums may be located in the trailer (FCS) to verify the frame.

The location of the checksum varies by protocol and layer, but it is generally placed in either the header or trailer to detect transmission errors.

 

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

PDU  (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
Throughput  (0) 2025.07.17
'Computer Science/Network' 카테고리의 다른 글
  • The process of sending and receiving data between layers
  • TCP/IP 4-layer model
  • Network Bottleneck
  • Throughput
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
  • 블로그 메뉴

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

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

  • 인기 글

  • 태그

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

  • 최근 글

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

티스토리툴바