Resources | Subject Notes | Computer Science
In data transmission, information is broken down into smaller units called packets. Each packet has a specific structure that allows it to be routed and reassembled correctly at the destination. Understanding this structure is fundamental to comprehending how data travels across networks.
The packet header contains crucial information about the packet itself. This information helps routers and other network devices to process the packet efficiently.
Typical fields found in a packet header include:
The packet payload contains the actual data being transmitted. This could be a portion of a file, a web page request, or any other type of information.
Field Name | Description |
---|---|
Source Address | IP address of the sender |
Destination Address | IP address of the receiver |
Protocol | Protocol used for data transmission (e.g., TCP, UDP) |
Sequence Number | Number indicating packet order |
Checksum | Error detection value |
Time To Live (TTL) | Number of hops allowed |
The following table illustrates a simplified example of a packet structure. Note that the exact fields and their order can vary depending on the network protocol.
Field | Size (bytes) | Description |
---|---|---|
Version | 4 | Indicates the IP protocol version |
Header Length | 4 | Specifies the length of the header |
Type of Service | 3 | Indicates the packet's priority |
Total Length | 2 | Total length of the packet (header + payload) |
Identification | 4 | Unique identifier for the packet |
Flags | 3 | Control flags (e.g., SYN, ACK) |
Fragment Offset | 8 | Offset of the fragment within the original packet |
Data (Payload) | Variable | The actual data being transmitted |