How does the Internet actually work?
Ajay Ghimire
Software Engineer || JavaScript, TypeScript, Java, React.js, Spring Boot, Ruby on Rails, SQL, AWS || Exploring New Opportunities || Let’s Chat!
In this follow up article, I will try to explain how actually the internet functions in easiest way we can understand. I will focus on topics like, how is information transported from one device to other through internet, and the steps behind it. References are taken from "https://roadmap.sh/guides/what-is-internet" and tools like ChatGPT.
Disclaimer: The concepts and examples presented in this article are intended to simplify complex technical subjects for the benefit of a general audience. While every effort has been made to provide accurate and understandable explanations, it's important to acknowledge that the workings of the internet involve intricate processes and technologies. Therefore, the explanations offered here may not encompass the entirety of the topic and may, in some cases, involve simplifications for clarity.
Information on the internet moves from one device or computer to another in the forms of bits over various mediums like ethernet cables, Fiber-Optic cables and wireless signals.
A bit has two possible states. "On or Off" or "Yes or No" which computes to "1 or 0". This is why we call it a binary code.
8 bits make 1 byte. 1024 bytes make 1 kilobyte. 1024 kilobytes is 1 megabyte. A song is encoded as around 3-4 megabytes. Every format or type of information is converted into these atomic bits of 1s and 0s, in order to transmit through the internet. These bits are are not the data that are physically transported, however, electric pulses, light waves and radio waves are used to represent the bit of the information sent which are read, collected and processed by the receiver.
Ethernet cables which are made up of copper wires, transmit data as electrical signals. In this case, electrical voltage represents the 0s and 1s. For example, a higher voltage might stand for a 1, while a lower voltage could indicate a 0.
Fibre-Optic cables are made up of glass threads that carry light signals. Data is converted into pulses of light, where "on" (1) represents a pulse, and "off" (0) means no pulse.
These pulses travel through the cable at the speed of light, making it one of the fastest transmission methods. Massive, specialised undersea cables that lay on the ocean floor and connect continents are vital for global internet connectivity. They often use fiber-optic technology for data transmission. Fiber-Optic cables are the preferred choice for undersea communication due to their high bandwidth and reliability. The "hello" message you sent from Australia, to your mate in USA, travels through Pacific Ocean. In general, for typical internet communication, messages can travel at the speed of light through fiber-optic cables. The speed of light to fly around the earth is just 0.1338763440860215 seconds. So we can imagine how fast it can be.
领英推荐
Wireless communication uses radio waves to transmit data. Binary code (0s and 1s) is represented by different frequencies or amplitudes of radio waves. Our Wi-Fi router and mobile phone use wireless technology to send and receive data without physical cables.
Similarly, satellites are also used to transmit data over long distances. Satellite TV or GPS are commonly used for global communications. Bluetooth is also a wireless technology used for connecting devices like headphones and smartphones, where audio data is transmitted as radio waves. Infrared or IR is commonly used for short-range communication, such as TV remote controls where binary data is sent as pulses of infrared light.
Steps of transmission:
The mechanisms of the transmission is much more complex than explained, and involves other various steps like error detection and correction, bi-directional communication, acknowledge and handshake, encryption and security, etc. If you wish to learn more in detail, you can find plenty of contents in the internet.
So, in a nutshell, the internet is like a massive postal system for digital information. It takes data, breaks it into small pieces, addresses them, sends them across a vast network, reassembles them, and delivers the content to its destination.
Thank you for reading, and in the next article, we will read about "What happens when we search a url or link in the browser?"
Happy Learning!