Kamran Mushtaq
Back to Networking
Networking

Packet

Added: June 15, 2026Nurtured: June 18, 2026

Definition

A Packet is the smallest formatted unit of data transmitted over a network containing:

  • Source Address
  • Destination Address
  • Control Information
  • Actual Data (Payload)

What Problem It Solves

Packets solve the issue of a single large file transfer monopolizing a network line. By breaking data into small, manageable units, multiple devices can share the same physical cable concurrently (packet switching), and only lost segments need to be retransmitted.

What Happens If Not Used

Without packets, downloading a single large file would completely block all other network traffic on the line until finished, and any network error mid-transfer would require restarting the entire download from scratch.

Easy Wording

A packet is a small piece of a large file or message sent over the internet.

Layman Example

Suppose you want to send:

500 Page Book

But courier allows:

1 Page per Envelope

So you do:

Envelope 1 -> Page 1
Envelope 2 -> Page 2
Envelope 3 -> Page 3
...
Envelope 500 -> Page 500

Your friend receives:

Page 1
Page 2
Page 3
...

and recreates the book.

These envelopes are like Packets.

Technical Example

Suppose Browser sends:

GET /dashboard

Backend responds:

{
   "user":"Kami",
   "tasks":[1000 records]
}

The response is too large.

So:

Response
↓

Packet 1
{
 Source IP: 104.21.1.1
 Destination IP: 192.168.1.10
 Sequence: 1
 Data: First Part
}

↓

Packet 2
{
 Sequence: 2
 Data: Second Part
}

↓

Packet 3
{
 Sequence: 3
 Data: Third Part
}

Browser receives:

Packet 1
Packet 2
Packet 3

and joins them back:

Original JSON Response