Browsing the Web(Working)

How we get a Web Page on Our browser?

Note: To get a better under standing read my previous post on IP address and continue here...


We all would have used some browsers such as Mozila firefox,chrome,safari,opera etc... 

you would have entered some website such as "www.google.com" in the url of the browser and you have the google page on the browser window. 

Do you admired how it works? Let's explore how it works in this post.

Before we see how it works we have to know about some terms such as Web Server, DNS and Browser .

First we will Start with Browser.so what is a browser?

                     A Browser is a software that can request files to                 server and receive files from the Web server and display it on           the browser screen.(i.e. Downloading and viewing website) 
     Examples:      Google Chrome, Mozilla Firefox , Opera Mini           ,Internet Explorer etc...

what is  a Web Server?
            
                      A web server is simply a computer that has a higher           performance and a dedicated software what servers the request         from the client  by sending response  .The servers are                       connected with data centres to retrive the data required by the           client. 
                      It is estimated that 75 million servers powering the             Internet.
                      Each server has a IP address e.g. www.google .com            has a IP address of 172.217.7.23  you can reach out google              using this IP also. there are many google servers at different            location and google has some more IP also.


Lets see what is a DNS Server,
                      A DNS stands for Domain Name System or Domain           Name Server.
                     The purpose of a DNS server is to map the website              name (domain name)in to its respective IP address.
                     As I said before google has Ip address of                              172.217.7.23      
                      Each node in a network is identified with the help of             IP address only .for the easy usage for humans only we are               using names such as google.com , youtube.com etc..

Lets now see how it works,

step 1: You type in your browser url www.google .com and hit enter.then the browser see that it is a domain name so it send the request to DNS server to find out its IP address.and the DNS maps its name with respective IP address and send back the IP address to the browser.

step 2:Now the browser has the IP address now it request that particular server on that IP address and it copies the index.html and some files of google and download it to the browser screen.
Step 3: now you can see google page on your browser.


 other cases,
      now your browser knows the IP address of google.com it will store it on the browser's cache memory,so the next time when you search for google.com the IP address is found on the computer itself so the step 1(request to DNS) is skipped.


Note: we will discuss about the Advance working of DNS server , what is html, css, js in upcoming post .....

If any doubts type in comment section below....  Thank you.....                                     
      



Previous Post
Next Post
Related Posts

0 comments:

Popular Posts