Ebay Interview Question
Software Engineer / DevelopersFirst a DNS lookup is performed which gets the IP address of the server. The client then requests a connection on port 80 of that IP address. Once the connection is established, the client makes a request of the URL page. The server responds to the client. The browser then formats the data received and displays the webpage.
You type in the URL and hit go. The browser needs to translate that URL www(dot)somesite(dot)com into an IP address so it knows what computer on the internet to connect to (That URL is just there to make it easier for us humans - kinda like speed-dial for phone numbers I guess). So your browser will see if it already has the appropriate IP address cached away from previous visits to the site. If not, it will make a DNS query to your DNS server (might be your router or your ISP's DNS server) . Once your browser knows what IP to use, it will connect to the appropriate webserver and ask for the page. The webserver then returns the requested page and your browser renders it to the screen.
- A bored nerd October 24, 2012