DEV Community

Lucky.
Lucky.

Posted on

How The Internet Works

Our digital content, such as files, videos, and webpages, may be stored in data centers that are thousands of miles away or even on different continents. Due to the high latency introduced by bouncing data off satellites, data does not reach our devices via satellites, regardless of distance. The current internet would feel slow and unusable with that much delay. Subterranean and underwater fiber optic cables, which efficiently connect data centers to devices worldwide, are used by the internet instead. These cables carry data at the speed of light.

Servers, which are specialized devices that house enormous volumes of data, including the videos and websites we visit on a daily basis, are located inside these data centers. The server's task is to find the content and get it ready for delivery to the user when they send a request, such as clicking on a YouTube video.

Each internet-connected device is assigned a unique IP address by its Internet Service Provider (ISP). The requested content is delivered to the appropriate device thanks to this IP address, which functions as a digital home address that enables data to find the right destination. IP addresses are also present on the servers themselves. Although entering the server's IP address can allow you to access a website, it is impractical to commit a series of numbers to memory for each website. The purpose of domain names, such as youtube.com, is to make access easier for people.

Multiple websites can occasionally be hosted on a single server. Host headers are utilized to route traffic to the appropriate website because a single IP address is unable to differentiate between all of them. However, because of the massive data demand, entire data centers may be devoted to a single platform in the case of large-scale platforms like Facebook or Google.

A system called the DNS (Domain Name System) takes over when you type a website into your browser. To find the IP address that corresponds to that domain, the browser makes a request to a DNS server. The request is forwarded to the relevant data center and server after the IP address has been located.

Your data is transmitted back to your device via the extensive fiber optic cable network that spans nations and ocean floors once the server has prepared it. These cables use light pulses to carry data. The light is transformed into electrical signals once it gets to your local router. When using a wired connection, the signal is sent to your computer via an Ethernet cable. The electrical signal is transmitted to neighboring cell towers if you're using a mobile connection, and they subsequently send it to your mobile device as electromagnetic waves.

The Internet Corporation for Assigned Names and Numbers, or ICANN, is a global organization with its headquarters located in the United States that coordinates all of these systems. Assigning IP addresses, registering domain names, and overseeing essential internet operations are all handled by ICANN, which makes sure everything runs smoothly on a global basis.

Packets are smaller units of data that are transmitted over the internet. A sequence number and a portion of the data are contained in each packet. Packets are reassembled in the proper order once they arrive at your device. Your device will automatically request the packet again if it doesn't arrive. Even over long distances, this system guarantees data reliability.

The internet uses protocols—sets of rules that specify how data packets are arranged, sent, and put back together—to manage this complexity. Various protocols are used by various services and applications based on their requirements. Web browsing, email, and video streaming, for instance, may all require distinct combinations of internet protocols in order to operate efficiently.

In conclusion, the internet is a sophisticated yet effective global system that is made possible by a confluence of digital addressing (IP and DNS), standardized protocols, and physical infrastructure (such as servers and fiber optics). We can instantly access information from anywhere in the world thanks to these systems cooperating with one another.

Top comments (0)