Best afterPacket switching

Packets take different routes

A message does not cross the internet in one piece. It is chopped into numbered packets, each of which finds its own way to the destination — so they arrive out of order and have to be put back together by sequence number. Switch the abstraction on and watch three packets (the numbered dots) fan out across the network and reassemble at D.

Send one message as three packets across the network and reassemble it correctly at the destination.

Packet switching — the unsorted message execution-derived · CPython model: author-asserted
same data, two zoom levels
state after line 1 runs
ABCD
path:
step 1 / 55

Click a line, drag the slider, or use the keys.

What you are looking at

One message, three packets (0, 1, 2), each handed a different route from A to D. Packet 0 takes the long way, so it is sent first but arrives last — the packets reach D in the order 1, 2, 0.

The packets' movements are real execution output; the little network is a hand-built model (marked model: author-asserted) — see how GlassBox stays honest.