The Internet is a vast network of computers, and server’s, which communicate with each other. The internet connect’s with the whole wide world together. How does it actually work at a very low level?
First when we type a url like www.google.com, the browser converts it into a file containing:
- GET /HTTP/1.1 (where GET means we are requesting some data from the server and HTTP refers to protocol that we are using, 1.1 refers to version of HTTP request)
- Host: www.google.com
- 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 radio signal which is decoded by 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.
Now the server receives the binary code and decodes it and sends the response in the following manner:
- HTTP/1.1 200 ok (where 200 ok is the status)
- 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:
- First it checks the status
- It starts reading the document from html tag and constructs a Tree like structure.
- The html tree is then converted to corresponding binary code and rendered on the screen.
- In the end we see the website front-end.
Below is the tree structure of 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.
- Web 1.0, Web 2.0 and Web 3.0 with their difference
- What’s difference between The Internet and The Web ?
- The Internet and the Web
- How world-wide-web (www) is different from the Internet ?
- Difference between Deep Web and Dark Web
- Difference between Antivirus and Internet Security
- Difference between Internet and Intranet
- Difference between Serial Line Internet Protocol (SLIP) and Point-to-Point Protocol (PPP)
- Difference between Network and Internet
- Internet of Things and careers in IoT
- Difference between Wifi and Internet
- Difference between Internet and Extranet
- Internet Control Message Protocol (ICMP)
- Program to remotely Power On a PC over the internet using the Wake-on-LAN protocol.
- Internet Protocol version 6 (IPv6)
- Internet Protocol version 6 (IPv6) Header
- Mobile Internet Protocol (or Mobile IP)
- Multipurpose Internet Mail Extension (MIME) Protocol
- Voice over Internet Protocol (VoIP)
- Internet of Everything
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : joshhazelhurst123