DNS, TCP & TLS Lifecycle
Before HTTP bytes can flow, client and server execute three sequential network phases: DNS IP resolution, TCP connection establishment, and TLS cryptographic key exchange.
Think of it like this: Like making an overseas delivery: look up the recipient warehouse coordinates in a registry (DNS), establish an open shipping corridor (TCP 3-way handshake), verify customs credentials and seal containers with cryptographic locks (TLS), then exchange cargo (HTTP).
Step 1 of 4
1 · ClientHello
The browser offers the TLS versions and cipher suites it supports, plus a random nonce.
DNS Resolution Chain
Browser cache → OS resolver → Recursive DNS server (ISP/1.1.1.1) → Root (.) → TLD (.com) → Authoritative nameserver → IP Address returned with a Time-To-Live (TTL).
TCP 3-Way Handshake & Keep-Alive
- SYN — Client sends SYN packet with Initial Sequence Number (ISN).
- SYN-ACK — Server responds with SYN-ACK, acknowledging client ISN and sending its own.
- ACK — Client acknowledges server ISN. The reliable bidirectional socket is established.
- Keep-Alive Pooling — Persistent sockets reuse open connections across requests, eliminating repeated 3-way handshake overhead.
TLS 1.3 1-RTT Handshake
Client transmits ClientHello with supported ciphers and an ephemeral KeyShare in the very first flight. The server returns its KeyShare, certificate chain, and Finished message in 1 roundtrip (1-RTT), initiating forward-secret symmetric encryption.
Study kit
Module 17 of 18
Intermediate · 4 min · 0 of 18 complete
Module status
Not completed yet
Notessaved locally+
Notes stay in this browser. They are not uploaded.
Suggest an editLearning graph
Prerequisites
Discussion
Loading discussion…
Sign in to ask a question.