Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
What is Payload in Computer Network?
In computer networking and telecommunications, when a transmission unit is sent from the source to the destination, it contains both a header and the actual data to be transmitted. This actual data is called the payload. The header contains the protocol information as well as the source and destination addresses, which are required for delivery of the payload. The payload is the essential information required by the destination client.
Types of Payload
The payload can contain various types of data depending on the layer and protocol being used:
-
Application data − User files, web pages, emails, or multimedia content
-
Protocol data units − Encapsulated data from higher protocol layers
-
Control information − Management and signaling data for network operations
Fixed and Variable Payload
The payload field may be of fixed size or variable size, which affects the overall frame structure and processing methods.
Fixed Size Payload
If the payload field is of fixed size, then the frame becomes of fixed size. Fixed size frames do not need any end flag, since the frame length acts as delimiter of the frame. This approach simplifies processing but may lead to inefficient bandwidth usage.
Variable Size Payload
In case of variable length payload, a pattern is used as a delimiter to determine the size of frame. Alternatively, a length field is kept in the header that contains the frame size. This method provides flexibility but requires additional processing overhead.
Payload in Different Network Layers
| Network Layer | Payload Contains | Example |
|---|---|---|
| Physical Layer | Raw bits from Data Link Layer | Electrical signals, light pulses |
| Data Link Layer | Network layer packets | IP packets in Ethernet frames |
| Network Layer | Transport layer segments | TCP/UDP segments in IP packets |
| Transport Layer | Application data | HTTP requests, file data |
Conclusion
The payload represents the actual data being transmitted in a network communication, distinguished from the control information in headers. Understanding payload structure is essential for network design, as it affects efficiency, processing overhead, and bandwidth utilization across different network layers.
