Complete Guide on Working of Internet
Have you ever wondered what happens in the background when you send a WhatsApp message to your friend? ๐ค๐ฑHow does it happen so easily that we donโt even notice the number of things happening in milliseconds during the transfer of data? ๐โก If youโr...
- internet
- ChaiCode
- http
- https
- dns
- Browsers
- data

Have you ever wondered what happens in the background when you send a WhatsApp message to your friend? ๐ค๐ฑ
How does it happen so easily that we donโt even notice the number of things happening in milliseconds during the transfer of data? ๐โก If youโre thinking about all this, youโre absolutely in the right place! ๐ค๏ธโจ
Letโs explore this in this article. ๐๐ก
This guide is for absolute beginners, so donโt worry if you donโt have any prior knowledgeโweโve got you covered. ๐๐
What is Internet? ๐
Before we jump into the internet, letโs first understand what a network is and how itโs related to the internet. ๐ค
A network is basically a collection of devices (like computers, routers, etc.) connected to each other to share information or resources. ๐ฅ๏ธ๐ก You can think of a computer network like your cohort group in Discord ๐งโ๐คโ๐ง๐ฌ, where everyone shares and accesses each other's blogs.
The internet, on the other hand, is a vast collection of networks connected to each other. ๐โจ In fact, the word "internet" comes from the concept of interconnected networks. ๐
Working of Internet
Now that we understand the basic concept of the internet, letโs dive deeper into how these connections actually work. ๐๐
When I mentioned the connection of devices, you might wonder what happens under the hood of this connection.๐ป Letโs break it down step by step: ๐ ๏ธ๐
Physical Connections
Computer connect with each other via :
Wires and Cables:
-
Ethernet cables are used for smaller nearby distances that connects devices directly to network for fast and stable connection.
-
Fiber-optic cables are used for longer distances that transmits data as light signals, enabling high-speed data transfer.

Radio Waves:
-
Wi-Fi: A wireless technology that allows devices to connect to the internet within a certain range using radio waves.
-
Cellular Networks: Mobile data connects devices through 4G/5G networks, using radio waves to communicate with cell towers.

These connections form the foundation of how devices communicate with each other.๐ค
Now we will understand the flow of how the internet works. ๐โก๏ธ๐ถ
Internet Protocols ๐ง
Every device on the internet communicates using a set of rules called protocols:
-
TCP/IP (Transmission Control Protocol/Internet Protocol):
-
Ensures reliability during the transfer of data packets. โ
-
Splits data into small packets for transmission. ๐ฆ
-
-
HTTP/HTTPS (HyperText Transfer Protocol):
-
Used for browsing websites. ๐
-
HTTPS adds encryption for secure communication. ๐
-
๐ Learn more about protocols here: GeeksforGeeks - Types of Internet Protocols
Addresses and Domain Names ๐ท๏ธ
Each device is assigned a unique identifier known as an IP address (like 192.168.0.1). To make it easier for humans to access resources:
-
Domain Names (e.g.,
www.google.com) act as the contact list app in your phone. ๐ -
DNS (Domain Name System) converts these names into IP addresses so devices know where to send requests. ๐
Routing Data ๐
Once the connection is established:
-
The browser knows the address to send the data. It prepares the data along with metadata (extra information) and divides it into packets. โ๏ธ๐ฆ
-
Packets are routed via multiple devices like:
-
Routers: Direct packets between networks, ensuring they follow the optimal path. ๐ฃ๏ธ
-
Switches: Manage packet transfer within a local network. ๐
-
-
Packets might pass through undersea cables, satellites, or multiple networks to reach their destination. ๐๐ฐ๏ธ
Servers and Data Processing ๐พ
When packets reach their destination:
-
Servers (powerful computers) process the request. For example:
-
A web server retrieves and sends a webpage. ๐๐ค
-
A database server fetches or updates data. ๐
-
-
The server then sends the response back as packets. ๐จ
Receiving and Rendering Data ๐ฅ
The packets travel back to your device via the same or a different path:
-
Your device reassembles the packets into their original form. ๐ ๏ธ
-
Applications (e.g., a browser or video player) interpret the data:
-
A web browser renders HTML, CSS, and JavaScript into a viewable webpage. ๐ฅ๏ธ๐
-
A video player streams the video content. ๐ฅ๐บ
-
Bonus Info ๐
-
Real-Time Communication:
For activities like video streaming or online gaming:- Data is sent and received continuously in real-time using protocols like UDP (User Datagram Protocol), which prioritizes speed over reliability. ๐โก
-
Security and Encryption:
To ensure secure communication:-
Encryption (like SSL/TLS) protects sensitive data from interception. ๐
-
Protocols like HTTPS, VPNs, and firewalls help safeguard information. ๐ก๏ธ
-
Internet Workflow for Query Search

You must be wondering why the data packets travels to the nearest data centers ?
Google has data centers all over the world to:
-
Reduce Latency:
- A nearby server means the request doesn't have to travel far, making it faster.
-
Load Balancing:
- Google ensures traffic is distributed efficiently across their servers to avoid overloading any one data center.
-
Caching:
- Many Google data centers have cached copies of popular queries and results. If the data youโre requesting is already available at the nearest data center, it can respond immediately, avoiding unnecessary delays.
What Happens at the Nearest Data Center?
-
The nearest data center receives your request and processes it.
- If the result for your query (e.g., "chaicode") is already cached at that data center, it immediately sends back the response.
If it isnโt cached, the data center might:
-
Forward your request to another Google server where the full search index is stored.
-
Or fetch the necessary data from Googleโs core infrastructure and send it back to you.
Imagine youโre ordering pizza: ๐๐ฆ
-
You place your order at the nearest branch of a pizza chain (this is the nearest data center*). ๐ ๐ก*
-
If the branch already has the pizza type you want ready (cached), they immediately deliver it to you. ๐ดโโ๏ธโก
-
If they donโt have it, they contact the main kitchen (core Google server) to prepare the pizza, then deliver it to you via the local branch*. ๐ญโก๏ธ๐ ๐
Conclusion
If you have reached here means now you know everything related to the internet how it works its workflow youโre now equipped with internet more effectively. Keep exploring, as the digital world has endless opportunities waiting for you! ๐๐
If you liked this article do give it a like and share with your friendsโค
Connect with me on ๐
Originally published on Hashnode