Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Aptitude
  • Engineering Mathematics
  • Discrete Mathematics
  • Operating System
  • DBMS
  • Computer Networks
  • Digital Logic and Design
  • C Programming
  • Data Structures
  • Algorithms
  • Theory of Computation
  • Compiler Design
  • Computer Org and Architecture
Open In App
Next Article:
Payload in Computer Networks
Next article icon

Payload in Computer Networks

Last Updated : 14 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

During the transmission of data using Internet Protocol from sender to receiver, data is sent in the form of packets. Each packet contains a header and data, which is referred to as payload. Headers are appended to payload for transport and are discarded once they successfully reach their destination. If this payload is malicious it can infect the systems.

Payload length

Payload length is simply the size of actual data being sent in a packet, not including extra information like headers or control data. When data is sent over a network, it's broken into smaller pieces called packets. Each packet contains two main parts: the header (which holds information about how to route and control data) and the payload (which contains actual data you want to send).

  • Total packet length = Header length + Payload length.
  • Payload length = Total packet length - Header length.
  • The 16-bits size of this field limits its maximum value to 65,535 (64KB), which applies to payload length.

Payload length is important because it indicates the size of useful data that is being transported and can affect network performance and efficiency.

Payload in IPv6 Format

  • IPv6 Header – Fixed size of 40 bytes.
  • Payload – This includes:
    • Any extension headers (optional but important).
    • The upper-layer data (e.g., TCP, UDP, ICMPv6).
    • The application data (like the contents of a web page or an email).

This is the format of the latest IPv6 Header Format. The length of the payload is 16bits.

Payload in IPv4 Format

frame_2995
IPv4 Format

An IPv4 packet is divided into two main parts:

  • Header: Contains metadata and control information such as source and destination IP addresses, protocol type, time-to-live (TTL), and others. Minimum 20 bytes, but can be longer if options are use.
  • Payload: The actual data being transmitted (e.g., HTTP data, file contents, etc.), which follows the header. The rest of the packet, up to a total size of 65,535 bytes.
  • The size of the payload can vary depending on the total size of the packet and the size of the header.

Next Article
Payload in Computer Networks

Z

zack_aayush
Improve
Article Tags :
  • Computer Networks
  • GATE CS
  • Write From Home

Similar Reads

    Socket in Computer Network
    A socket is one endpoint of a two way communication link between two programs running on the network. The socket mechanism provides a means of inter-process communication (IPC) by establishing named contact points between which the communication take place. How Sockets Work in Computer NetworksLike
    2 min read
    TCP/IP in Computer Networking
    Introduction : TCP/IP (Transmission Control Protocol/Internet Protocol) is a suite of communication protocols that define the standards for transmitting data over computer networks, including the internet. The TCP/IP protocol is the foundation of the internet and enables devices to communicate with
    8 min read
    Computer Network Tutorial
    A Computer Network is a system where two or more devices are linked together to share data, resources and information. These networks can range from simple setups, like connecting two devices in your home, to massive global systems, like the Internet. Below are the main components of a computer netw
    7 min read
    Dimensions of Computer Network
    Dimensions of computer networks mean under what characteristics or factors can the computer networks be categorized. Computer networks can be divided into different groups under the pattern which recognizes the transmission of information or messages by the sender to the receiver and the area it cov
    3 min read
    Protocol and Standard in Computer Networks
    Protocols and standards are important in computer networks. They are like the rules and guidelines that allow different devices and systems to communicate and work together smoothly. Protocols define how data is sent, received, and processed, while standards ensure that various technologies are comp
    9 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences