How the internet actually loads a page: DNS to pixels in six steps
The syllabus lists DNS, HTTP, TCP and IP as separate definitions. Students memorise four definitions and cannot say what happens when they type a web address. Here is what happens, in order, in the time it takes to blink.
Step 1, the name. You type ideatopic.com. Computers do not route by name; they route by IP address, a number like 76.76.21.21. So the browser asks a DNS server, which is a phone book, for the number behind the name. Your device usually asks your ISP's DNS, which asks up the chain if it does not know. A few milliseconds, and the browser has an address.
Step 2, the connection. The browser opens a TCP connection to that address on port 443. TCP is the part that makes the internet reliable: it numbers every piece of data, the other side acknowledges what it got, and anything lost is sent again. The famous three-way handshake, SYN, SYN-ACK, ACK, is just both sides agreeing they are ready.
Step 3, the lock. Because the address starts with https, the browser and the server now do a TLS handshake. The server proves who it is with a certificate, both sides agree on a key, and from here everything is encrypted. Nobody between you and the server can read it, including the ISP that answered the DNS question.
Step 4, the request. Only now does the browser send the HTTP request: GET / HTTP/1.1, Host: ideatopic.com, plus headers describing what it accepts. HTTP is the language; TCP is the postal service; IP is the road system.
Step 5, the response. The server sends back a status code, 200 for success, 404 for not found, and the HTML of the page. The browser reads the HTML, finds it needs a stylesheet, some scripts and images, and repeats steps 4 and 5 for each of them, usually over the same connection.
Step 6, the pixels. The browser builds the page structure from the HTML, applies the CSS, runs the JavaScript, and paints. What you see is the end of a chain that crossed a dozen machines you never named.
The exam question is usually 'explain the role of DNS' or 'differentiate TCP and IP'. If you can tell this story, every one of those definitions is a sentence in it, and the marker can see you understand rather than remember. The full version with diagrams is in the How the Internet Works slides I shared.
0 Comments
Loading comments…