Introduction
“You type a URL. Seconds later, a webpage appears. What happened in between?”
It feels almost instantaneous, but loading a website triggers a surprisingly long chain of events. Your browser needs to find the server, establish a connection, send a request, travel across multiple networks, receive a response, and finally turn that response into the page you see.
All of the concepts we've covered so far — networks, packets, protocols, layers, TCP/IP, and routing — come together in this single journey. Understanding what happens when you open a website is one of the easiest ways to see networking as one connected system instead of a collection of separate topics.
Step 1: You Enter a URL
“Before your browser can request a website, it needs to know where that website lives.”
Suppose you type example.com into your browser. Your computer can't send a network request to a domain name directly. It first needs an IP address.
That's where DNS, or the Domain Name System, comes in. Your browser or operating system asks a DNS server to translate the domain name into an IP address. Once it receives the address, your computer knows which server it needs to contact.
It's similar to looking up someone's name in your contacts before making a phone call. You know who you want to reach, but you still need their actual number.
Step 2: TCP Builds the Connection
“Knowing the destination isn't enough. The two devices still need to agree to communicate.”
If the connection uses TCP, your computer first performs a TCP three-way handshake with the server. It sends a SYN packet, the server responds with SYN-ACK, and your computer sends back an ACK.
This establishes the connection and allows both sides to begin communicating reliably.
Only after this handshake does the actual application data begin moving. The browser can now send its request to the server, usually using HTTP or HTTPS.







