The Runtime Theory
NetworkingIn production

TCP Three-Way Handshake Explained

Recording in progress
#tcp#handshake#networking

Two hosts agree on initial sequence numbers before any data moves. We trace the three packets — SYN, SYN-ACK, ACK — and show what each side records when it receives them: the other host's ISN, its own next expected sequence, and the state transition from LISTEN to ESTABLISHED.

Topics covered:

  • Why sequence numbers must be synchronized in both directions
  • The packets: SYN with an ISN, SYN-ACK with both numbers, ACK
  • State transitions on both hosts: LISTEN, SYN-SENT, SYN-RECEIVED, ESTABLISHED
  • What the handshake does not do: no authentication, no congestion state
  • SYN cookies: how a kernel defends against handshake floods
  • Fast Open and why the handshake survives IPv6 unchanged

Related articles

More in Networking

08:56
networking

HTTP/3 and QUIC Explained

The transport protocol that replaces TCP — multiplexing without head-of-line blocking, connection migration, and 0-RTT.

Watch
05:20
networking

The Full Lifecycle of an HTTP Request

Watch a single request travel from a browser through DNS, TCP, TLS, HTTP, a load balancer, a server, and a database — with live packet-level tracing.

Watch
In production
networking

IP Routing Explained

How a packet travels from host to host — longest-prefix matching in forwarding tables, next-hop resolution, and what actually changes at every router along the way.

Details
In production
networking

Load Balancing Protocols

Layer 4 vs. layer 7 balancing, NAT rewrites, and health checks — the actual packet and request flows that distribute traffic across a backend pool.

Details
In production
networking

Sockets and the Network Stack

The path a byte takes from a syscall to the wire — sockets, kernel buffers, queues, and protocol layers, and where sendto and recvfrom actually do their work.

Details
In production
networking

Congestion Control Visualized

How TCP probes for available bandwidth — slow start, congestion avoidance, and packet loss as the signal that tells senders when to back off.

Details
In production
networking

HTTP/2 and HTTP/3

Streams, frames, and the transports underneath — what HTTP/2 multiplexing changes at the application layer and what moving to QUIC changes at the transport layer.

Details
In production
networking

TLS Handshake Explained

The cryptographic negotiation inside TLS 1.3 — key exchange, certificate validation, and the single round trip that encrypts everything after it.

Details
In production
networking

DNS Resolution Visualized

Follow a query from stub resolver to authoritative server — cache hits, recursive walking, TTL expiry, and the exact packet flow that turns a hostname into an IP.

Details

Depth, delivered weekly

One technical dispatch a week — articles and episode notes before they go public.

One technical dispatch per week. No noise.