1.

What happens when you enter google.com in the web browser?

Answer»

Below are the steps that are being followed:

  • Check the browser cache first if the content is fresh and present in cache display the same.
  • If not, the browser checks if the IP of the URL is present in the cache (browser and OS) if not then request the OS to do a DNS LOOKUP using UDP to get the corresponding IP address of the URL from the DNS server to establish a new TCP connection.
  • A new TCP connection is set between the browser and the server using three-way handshaking.
  • An HTTP request is sent to the server using the TCP connection.
  • The web servers running on the Servers handle the INCOMING HTTP request and send the HTTP response.
  • The browser process the HTTP response sent by the server and may close the TCP connection or reuse the same for future requests.
  • If the response data is cacheable then BROWSERS cache the same.
  • Browser decodes the response and renders the content.
Conclusion

In today’s world, it is very hard to stay away from the Internet and that is what makes networking one of the most important interview topics. As of 2021 if we check the facts, there is a total of 1.3 million kilometers of submarine optical fiber cables set globally to connect the world to the Internet. These cables are more than ENOUGH to revolve around the earth more than 100 times.

Resources

Learn Coding

How To Become Network Engineer

Network Engineer Salary



Discussion

No Comment Found