Interview Prep/DevOps Fundamentals/Networking basics for DevOps

What happens when you type a URL in the browser and press Enter?

BeginnerConceptNetworking basics for DevOps
Answer

In one line: The browser finds the server's IP address with DNS, opens a TCP connection, sets up encryption with TLS, sends an HTTP request, and then shows the response — passing through load balancers and other layers on the way.

Step by step (for https://shop.example.com/products):

  1. URL parsing — the browser works out the protocol (HTTPS), the host (shop.example.com) and the path (/products).
  2. DNS lookup — it checks the browser cache, the OS cache, then asks a DNS resolver, which may query root → .com → example.com name servers. Result: an IP like 203.0.113.10 (often a CDN or load balancer IP).
  3. TCP connection — a three-way handshake (SYN, SYN-ACK, ACK) on port 443. (HTTP/3 uses QUIC over UDP instead.)
  4. TLS handshake — the server sends its certificate; the browser checks it's valid and trusted for that domain; they agree on encryption keys.
  5. HTTP request — GET /products with headers (cookies, user agent, accepted formats).
  6. On the server side — the request often goes through a CDN (cached response?), a load balancer (chooses a healthy backend), maybe an Ingress controller in Kubernetes, then reaches the application, which may call databases, caches and other services.
  7. HTTP response — a status code (200, 301, 404, 500), headers and the HTML/JSON body.
  8. Rendering — the browser parses the HTML, downloads CSS, JavaScript and images (more requests), and draws the page.

Why DevOps engineers care: every step is a place where things can break or get slow:

  • DNS misconfiguration or long TTLs during migrations.
  • Expired or wrong TLS certificates.
  • Security groups or firewalls blocking ports.
  • Unhealthy targets behind the load balancer (502/503 errors).
  • Slow application or database queries.

Useful debugging commands: dig shop.example.com, curl -v https://shop.example.com/products, openssl s_client -connect shop.example.com:443, traceroute.

Tip for interviews: go step by step, and mention where you'd look if each step failed — that turns a textbook answer into an engineer's answer.

All DevOps Fundamentals questions

More on Networking basics for DevOps