Skip to the workspace
Pebellslearn by building
What Are Networks?  ›  Lesson

TCP, UDP and ICMP

TCP 15 minTCP delivers every byte reliably and in order after a handshake, UDP sends quickly with no guarantees, and ICMP carries messages about the network itself.

network engineer / TCP, UDP and ICMP

Explore each scene at your own pace.

01 · The rule

The rule

TCP, UDP and ICMP

In one minute on Kite Studio's network, Asha downloads a font file, joins a video call and, when the call freezes, types ping to see whether the internet is up. Three different jobs, three different protocols. A lost byte ruins a font file; a late video frame is useless even if it arrives perfectly; and a network test does not need a conversation at all.

The rule

TCP: every byte, in order. UDP: fast, no promises. ICMP: the network's messages.

TCP (Transmission Control Protocol) is connection-based. Before any data, the two ends shake hands in three steps: SYN ("let's talk"), SYN-ACK ("agreed"), ACK ("starting"). After that, TCP numbers every byte, the receiver acknowledges what arrived, lost pieces are sent again, and the data is handed over complete and in order. TCP also slows down when the network is congested. Web pages, email, file transfers and SSH use TCP.

UDP (User Datagram Protocol) has no handshake and no retransmission. It sends each message (a datagram) and moves on. That makes it light and quick, and it suits traffic where late is as bad as lost: voice and video calls, online games, and small single-question exchanges like DNS lookups. If an application needs some reliability over UDP, it builds its own.

ICMP (Internet Control Message Protocol) carries messages about the network rather than user data: "destination unreachable", "time exceeded", and the echo request and reply that ping uses. traceroute also relies on ICMP messages. ICMP has no ports; it sits alongside IP rather than above it like TCP and UDP.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.