Envelopes: packets, small labelled pieces of a messageBlocks: nodes (devices) and the boxes that join themCables and dotted radio (Wi-Fi): linksBlue mat: the home LAN · grey pad: other networks (the internet)A network is nodes (devices) joined by links (cables or radio). On the home LAN a print job is cut into packets, each labelled with who it is for; they hop from the laptop to the switch and on to the printer, which puts them back together. The router joins the LAN to other networks: the phone's packet leaves over Wi-Fi, crosses the provider's WAN and reaches a data centre. The internet is many such networks joined by routers. 192.168.1.0/24 is a private home range (RFC 1918); 203.0.113.5 and 198.51.100.20 are RFC 5737 documentation addresses. Addresses get their own lessons later.

Nodes and links

  1. A laptop, a printer and a phone sit in one home. Each is a node: a device that can send or receive data. On their own they share nothing; the laptop has no way to reach the printer.

Packets

LAN, router, internet

What is happening

;; step 1/9 · nodes
;; about: laptop, printer, phone
nodes     laptop · printer · phone
links     none
shared    nothing: each device is alone

1,500 bytes is the standard Ethernet maximum (RFC 894); 40 bytes of each packet go to the smallest IPv4 and TCP labels (RFC 791, RFC 9293), leaving 1,460 for the job. Real print jobs are usually much larger; this one is tiny so every packet fits on screen. A switch sends a packet only out of the printer's port once it has learned where the printer is; before that it copies it to every port. The "How a switch learns" lesson shows this.