Visualize

TCP/IP communication

Layers and the handshake, made visible. Change the inputs and step through it.

TCP/IP communication: what it shows

Every message travels wrapped in layers. Each layer adds a header with the information it needs (ports, IP addresses, MAC addresses), and the other side unwraps them in reverse order. Step through the TCP handshake and the journey of one message.

Lessons that use it

  • How networks work: layers and packets (Networks)Packets, packet switching, and the five layers of the internet, each adding its own header to your data.
  • Ports, UDP and TCP (Networks)The transport layer: ports and sockets, UDP's quick messages, and TCP's reliable connections with the three-way handshake and sequence numbers.

See also