computing-networking
How Internet Packets Travel
The internet delivers your message like a postal system built for tiny envelopes.
A large drawing is easier to send when you cut it into numbered pieces, put each piece in an addressed envelope, and rebuild it at the destination.
Step 1
A message becomes pieces
For a TCP connection, data is divided into manageable pieces. TCP labels segments so the receiver can track the byte stream.
Step 2
Each packet gets an address
IP wraps each piece with a header containing source and destination addresses, much like writing addresses on an envelope.
Step 3
Your router sends it onward
Your device sends the packet across its local network to a router that can reach other networks.
Step 4
Routers choose the next hop
Each router reads the destination address and forwards the packet to another useful router or to the destination network.
Step 5
Packets travel independently
IP handles each packet separately. Packets from one message can arrive by different routes or at different times.
Step 6
The receiver rebuilds the message
For TCP traffic, the receiver orders data. When bytes are missing, TCP gets the sender to retransmit them.
Common trap
Every packet follows one fixed road.
IP forwards each packet independently. Routers can send related packets along different useful paths before the destination receives them.
Quick check
What does a router inspect to choose a packet's next hop?
- The destination IP address
- The packet's color
- The sender's screen size
Show the answer
The destination IP address tells the router which network the packet is trying to reach.
Sources
- Internet Protocol — RFC 791RFC Editor
- Requirements for Internet Hosts — RFC 1122RFC Editor
- Transmission Control Protocol — RFC 9293RFC Editor