What is a Data Packet?
In wireless communications, large files (like an image or a video stream) are never sent as one continuous block. Instead, they are chopped up into thousands of tiny, manageable chunks called Data Packets. Think of a packet as a digital envelope moving through the postal system.
Anatomy of a Packet (Hover to expand)
1. Header
The routing instructions.
2. Payload
The actual raw data being sent.
3. Trailer (FCS)
The error checker.
The Anatomy of a Wireless Packet
Wireless data must be wrapped in a structured Frame containing sync pulses, addresses, and error checkers to survive the journey to the router.
1. Preamble & PHY Header
A radio burst that alerts the receiver an incoming packet is arriving.
- Synchronization: Aligns sender and receiver clocks.
- Modulation Specs: Identifies the encoding scheme (e.g., 16-QAM or OFDM).
2. MAC Header (Control)
Identifies the source and destination for routing via access points.
- Addresses: Contains MAC IDs for the sender, access point, and destination.
- Frame Control: Indicates the packet type (Data, Management, or Ack).
3. The Payload (Cargo)
The core cargo containing the actual IP packet being transmitted (video, text, or HTML).
- Variable Size: Carries up to 2,312 bytes in standard Wi-Fi frames.
- Encryption: Heavily encrypted (WPA2/WPA3) to prevent eavesdropping.
4. FCS Trailer (Security)
A mathematical safety net to detect interference and corruption.
- CRC Math: Sender adds a 32-bit checksum based on the payload.
- Detection: Receiver verifies the math and drops the packet if corrupted.
Packet Encapsulation & Fragmentation
A continuous visualization of how headers are added to raw data (Encapsulation), and how large files are chopped into smaller pieces (Fragmentation) to respect the network’s Maximum Transmission Unit (MTU) limit of 1,500 bytes.
Scenario 1: 1 KB Text Message
Total size (~1,098 bytes) is under the 1,500 byte limit. Result: Sent in a single packet.
Scenario 2: 5 KB Compressed Image
Total size (5,120 bytes) exceeds the MTU limit. Result: TCP chops the data into 4 fragments. Each fragment gets its own set of headers.