How does the internet work? Do you know when you chat with somebody or surf the net, what is actually happening? How is the internet working? Well, today we are going to learn that with simple steps.
Behind the internet, there are some really complex tasks which are in process right starting from your browser. When you type google.com in your browser, thousands of queries hit the servers which are located far away from you and you get the result that too in just fraction of seconds. So this post will give you a glimpse of how all these tasks are done which collectively serve you with the internet.
So this post will give you a glimpse of how all these tasks are done which collectively serve you with the internet.
We are so much into the “www.coms” that we enquire each and every query with it. So, let’s check out what is really happening in the Internet world.
Here are the steps which are followed when you browse the Internet. So let’s see how does the internet works:
Step 1: The web browser sends a request.
When you type a URL in the URL box of your web browser, first it is verified( by verification I mean it is checked whether it is in the format of a URL or not). Once it is verified, the web browser carries out other necessary steps. These steps include :
It will start by looking up which protocol it will use. If the URL starts with HTTP:// it will use the HTTP protocol. If it starts with FTP://, the web browser will use the FTP protocol and so on so forth for different protocols.
It will then locate where the server is situated with the help of DNS or Domain Name Server. Every website has an IP address associated with it which is in the form of numbers and decimal (i.e 127.0.0.1). On the DNS side, website names are linked to its IP address. This IP address is the address of the server on which website is located.
So, the DNS are servers that can bring associate a domain name (www.google.com for example) to an IP address (184.108.40.206). It is just like the yellow pages with a name and phone number mapping. If the URL is .edu then it will lead the query to that respective Server.
It is the IP address that your web browser will contact and will communicate with the HTTP or FTP server. The request will aim at obtaining the index.html page which is generally the main page of the website as per standards.
Step 2: The web server sends back the info.
The web server has received a request from a machine that wishes to obtain the index.html file or any other file depending upon the request. It will then look up for the appropriate file on its hard drive, take it’s displayed and the information it holds, to finally send all that to the web browser.
The web server knows where to send the information because since you’re on the internet you also have a unique IP address. So the web server just sends back the required content to your IP address.
Step 3: The web browser processes the files.
The web browser receives the content of the HTML file. Since it has an extension .html so it is considered as an HTML file as all the user interface files on the web are. Thus, it must, before showing the page, gather all the images and other elements that are held in the file. Once all the elements are gathered the page content will appear on your screen all this in few seconds and therefore you get to your respective address. Now again when you click on any other button or page on the website, the whole cycle is repeated with different parameters in the request for getting you the content you asked.