Skip to content
Related Articles

Related Articles

Internet and Web programming
  • Difficulty Level : Basic
  • Last Updated : 01 Apr, 2021
GeeksforGeeks - Summer Carnival Banner

The Internet is a vast network of computers, and servers, which communicate with each other. The internet connects with the whole wide world together. How does it actually work at a very low level? 

Client-side: 
First, when we type a URL like www.google.com, the browser converts it into a file containing: 
 

  1. GET /HTTP/1.1 (where GET means we are requesting some data from the server and HTTP refers to a protocol that we are using, 1.1 refers to the version of the HTTP request)
  2. Host: www.google.com
  3. And some other information

Now this file is converted to binary code by the browser and it is sent down the wires if we are connected through Ethernet and if we are using WiFi, first it converts it to a radio signal which is decoded by a router in a very low level. It is converted to binary and then sent to the servers. 

This information or ‘binary codes’ go to the destination and respond if it is received by the sender only because of the IP address. 

One router will send the information to another and this keeps on going until the binary codes reach the destination. 



Server-side: 
Now the server receives the binary code and decodes it and sends the response in the following manner: 
 

  1. HTTP/1.1 200 ok (where 200 ok is the status)
  2. Content-type:type/HTML
  3. Body of page

Now, this is converted back to binary by the server and sent to the IP address that is requesting it. Once the codes are received by the client, the browser again decodes the information in the following way: 

 

  1. First, it checks the status
  2. It starts reading the document from the HTML tag and constructs a Tree-like structure.
  3. The HTML tree is then converted to corresponding binary code and rendered on the screen.
  4. In the end, we see the website front-end.

Below is the tree structure of the HTML document: 

 

The following diagram show the whole process: 

 

To understand the basic web terminology refer: The Internet and the Web
 

Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :