Packet

Also known as: data packet, network packet

definition

A small unit of data transmitted over a network, containing both the data payload and routing information (headers). Packet-based communication is the foundation of the internet.

๐Ÿ’ก Intuition

Sending data over a network is like sending a book by mail โ€” you break it into chapters (packets), label each one with the destination, and reassemble at the other end.

Core Idea

Packet switching means data is broken into pieces that can travel independently โ€” making networks resilient and efficient.

๐Ÿ”ฌ Example

Loading a webpage might involve hundreds of packets traveling different routes across the internet, all reassembled by your browser.

๐ŸŽฏ Why It Matters

Packet-based communication is the foundation of the internet. It allows multiple users to share the same network simultaneously.

โš ๏ธ Common Confusion

Packets from the same message can take different routes and arrive out of order โ€” the receiving device reassembles them.

Related Concepts

Prerequisites

Next Steps

How Packet Connects to Other Ideas

To understand packet, you should first be comfortable with network and internet. Once you have a solid grasp of packet, you can move on to protocol.

Go Deeper

Frequently Asked Questions

What is Packet in CS Thinking?

A small unit of data transmitted over a network, containing both the data payload and routing information (headers).

Why is Packet important?

Packet-based communication is the foundation of the internet. It allows multiple users to share the same network simultaneously.

What do students usually get wrong about Packet?

Packets from the same message can take different routes and arrive out of order โ€” the receiving device reassembles them.

What should I learn before Packet?

Before studying Packet, you should understand: network, internet.