๐ŸŒ Placement

Computer Networks for Interviews โ€” What Happens When You Type a URL

๐Ÿ“… Jul 2, 2026 โฑ 4 min read

One CN question towers over the rest โ€” walk it well and the round is yours.

"What happens when you type google.com and press Enter?"

  1. DNS: browser โ†’ OS cache โ†’ resolver โ†’ root/TLD servers โ†’ the IP address
  2. TCP handshake: SYN โ†’ SYN-ACK โ†’ ACK โ€” connection open
  3. TLS handshake (HTTPS): certificates verified, session keys agreed
  4. HTTP request: GET / with headers; server responds with HTML
  5. Rendering: parse HTML โ†’ fetch CSS/JS/images (repeat the above per resource) โ†’ paint

Each step is a follow-up hook โ€” know one sentence more about whichever they pick.

TCP vs UDP

OSI in one line each (bottom-up)

Physical (bits/cables) โ†’ Data Link (MAC, switches) โ†’ Network (IP, routers) โ†’ Transport (TCP/UDP, ports) โ†’ Session โ†’ Presentation (encryption/encoding) โ†’ Application (HTTP, DNS). Mnemonic: "Please Do Not Throw Sausage Pizza Away".

Rapid-fire

โ† All Articles