What is the Internet?
I love asking as many questions as I can, not only in school, but all throughout life. Who knows what manner of intrigue and unexpected discoveries you’ll uncover if you just ask? In web development, like in most areas, curiosity will serve you well. Web dev involves research and constant learning. So if you’re not a natural question whore, your first checkpoint to hackerdom is to become one. Ask about everything. Let Google be your best friend.
Today’s question is: what is the Internet, anyway?
The Internet is simply computers connected to each other having conversations back and forth. Like ping pong, a client (you) sends a request for a specific page. You can do this by entering a URL in the browser, or clicking a link on a page you’re already on. That request travels to whichever server is storing the webpage you want. Then that server “serves” you a response. Request, response, on repeat. At its core, that’s all the web is.
To go slightly more in depth, your computer, cell phone, and all devices connected to the Internet get an IP address. An IP address is an identification tag, similar to a your home’s street address, or a GPS locator. When you type in a URL like www.facebook.com and hit “Enter,” your Internet Service Provider (ISP) uses something called the Domain Name System (DNS) resolver to translate the human-readable “Facebook” into an ugly but computer-friendly IP address. Computers don’t actually know what “Facebook” is, they only know what its IP address is. So after translation, the request knows where its supposed to go to get the proper response.
Once the request hits Facebook’s server, Facebook queries its database for the information belonging your individual account. That data is passed through a template which generates a unique page just for you. Here’s where things start getting crazy. In order to get you a response as fast as possible, the webpage is actually broken down into tiny bits of information called packets. You can think of packets like ordering building materials for a house and the manufacturer ships different pieces separately. It would be too inconvenient and inefficient to send materials for an entire house as a huge bundle that blocks the whole road while it’s traveling to your build site, thus the breakdown into smaller pieces. These packets each contain your IP address so they know where to go, and assembly instructions so they can fall back into place. Interestingly, these packets can take different routes to your device, traveling across the world through different Internet hubs. The only thing they care about is getting to you as fast as possible.
Once these little packets make it to your browser, they reassemble back into files which have content tags. The browser reads the content tag to know what kind of content it’s supposed to be rendering. Is it turning these files into HTML? CSS? An image? A video? Usually it’s a mixture of all these at the same time. The final step is your browser acting as mediator between the code written in those files and the visually-appealing websites we frequent and love. It translates those files and viola! a website. All of this usually happens in about a second.
Have other questions about the Internet? You should! Remember your first checkpoint to hackerdom. Leave a comment below and let me know :)
Get CodeJoy’s stories in your inbox
Join Medium for free to get updates from this writer.
Keywords:
- Client
- Server
- IP address
- ISP
- DNS resolver
- packets
- content tag






