Skip to content
StackDecode
System Design
2. Networking FundamentalsAnimated

Packet Switching

Data is split into packets that travel independently.

The idea

Each packet is routed on its own and may take a different path. The receiver reassembles them in order.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

ClientServerSYN seq=x
  • current message
  • earlier
  • failure or attack

The client asks to open a connection and proposes a starting sequence number.

step:
1/5
from:
Client
to:
Server
1/5

Time runs downward. Solid arrows are requests, dashed arrows are replies.

Step by step

  1. 1Split the message into packets
  2. 2Number each packet
  3. 3Route each independently
  4. 4Reassemble in order at the destination

Where it is used

The whole internet.

Watch out for

Packets can arrive out of order or be dropped.

Related