Packet
ELI5 — The Vibe Check
A packet is a small chunk of data with an envelope around it. When you send a big file, it gets chopped up into many packets, each with a label saying where it came from and where it's going. They can take different routes and get reassembled at the destination.
Real Talk
A packet is a formatted unit of data carried by a network. It consists of a header (containing addressing and control information like source/destination IP, sequence number) and a payload (the actual data). IP defines the packet structure at the network layer.
Show Me The Code
# Capture packets with tcpdump
tcpdump -i eth0 -n host google.com
# Capture and save to file
tcpdump -i eth0 -w capture.pcap
# Analyze with Wireshark
wireshark capture.pcap
When You'll Hear This
"Packets are being dropped somewhere on the network." / "Use Wireshark to inspect the packets."
Related Terms
Bandwidth
Bandwidth is how wide your internet pipe is — how much data can flow through per second. A narrow pipe means slow speeds, a wide pipe means fast speeds.
IP (Internet Protocol)
IP is the postal system of the internet. Every device gets an address (an IP address) and all data gets wrapped in envelopes called packets.
Latency
Latency is the delay before data starts moving — the time it takes for a request to go from your device to the server and back.
TCP (Transmission Control Protocol)
TCP is like sending a package with delivery confirmation.
UDP (User Datagram Protocol)
UDP is like shouting information across a room — fast but no guarantee anyone heard you. There's no handshake, no confirmation.