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):
- URL parsing — the browser works out the protocol (HTTPS), the host (
shop.example.com) and the path (/products). - DNS lookup — it checks the browser cache, the OS cache, then asks a DNS resolver, which may query root →
.com→example.comname servers. Result: an IP like203.0.113.10(often a CDN or load balancer IP). - TCP connection — a three-way handshake (SYN, SYN-ACK, ACK) on port 443. (HTTP/3 uses QUIC over UDP instead.)
- TLS handshake — the server sends its certificate; the browser checks it's valid and trusted for that domain; they agree on encryption keys.
- HTTP request —
GET /productswith headers (cookies, user agent, accepted formats). - 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.
- HTTP response — a status code (200, 301, 404, 500), headers and the HTML/JSON body.
- 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.
More on Networking basics for DevOps
What is DNS, and what are common DNS record types?BeginnerWhat is the difference between TCP and UDP?BeginnerWhat are ports, and which common ports should a DevOps engineer know?BeginnerWhat is the difference between a forward proxy and a reverse proxy?BeginnerWhat is a CDN, and how does it help applications?BeginnerWhat are VPCs, subnets and security groups?Beginner