Communication Networks · Visualized

Packet Switching

Switching & Transmission

How networks move data: reserved circuits, independent packets, and the direction of the channel.

4 interactive subtopics — each one animated, step-through and explained.

Packet Switching

Switching & Transmission

Packet switching slices data into small self-addressed packets that share links statistically. Each packet may follow a different route, queues absorb bursts, and the receiver reorders everything by sequence number. It squeezes far more traffic out of the same cable than circuit switching — at the price of variable delay and occasional loss.

How Packet Switching Works

  1. Sender chops the message into packets, each carrying source/destination addresses and a sequence number.
  2. Routers store-and-forward: fully receive a packet, inspect the header, pick the best next hop.
  3. Busy links hold packets briefly in buffers (queueing) instead of refusing them.
  4. Different packets of one file may take different paths and arrive out of order.
  5. Receiver re-sequences and acknowledges; missing pieces trigger retransmission.

Packet Switching Worked Example

Try it: Play — PHOTO splits into P1–P3; watch them interleave through different routers and get reassembled in order.

P2 takes the longer path yet arrives last; the reorder buffer holds it only until sequence numbers line up. No capacity was reserved anywhere — links were simply shared moment by moment.

SRCR1R2R3DSTreorder:
chunk 1 chunk 2 chunk 3
Stage 1 / 6
PHOTO split into chunks P1–P3. No path reserved — every packet carries its own addresses.

Packet Switching: Key Facts to Remember

Efficiencyidle slots go to whoever has traffic — near-full utilisation
Trade-offqueueing delay, jitter, possible loss under congestion
Foundationthe entire Internet is store-and-forward packet switching

Recommended resourcesAffiliate links · may earn us a commission

Recommended for learners

Cloud hosting for side projectsShip the portfolio project that gets you hired — free credits for new accounts.Claim credits Pro code editor & AI assistantWrite, debug and explain code faster while you practice the patterns here.Try it free Structured coding coursesVideo courses that pair well with visual practice — pick one language and go deep.Browse courses

See how packets really travel

Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.