Skip to content
Know.itKnow.it

How the Internet Works

Every time you open a page, your data is chopped into packets, addressed, routed hop by hop across networks, and reassembled on the other side, usually in well under a second.

These explainers follow that journey piece by piece: your Wi-Fi and router, the DNS lookup, the servers and data centres, and the protocols such as HTTPS and email that sit on top.

Start here

Every explainer in this guide · 76

How does Wi-Fi work?
Wi-Fi works by sending data over radio waves between your device and a wireless router that's connected to the internet. The router and device take turns transmitting tiny encoded radio signals that carry your data.
How does a modem work?
A modem works by converting digital data from your devices into signals that travel over phone, cable, or fiber lines — and back again. Its name comes from 'modulator-demodulator,' describing how it translates between your computer and the provider's network.
How does DNS work?
DNS (the Domain Name System) is the internet's phone book. When you type a website name, DNS looks up the numeric IP address behind it so your device can connect. It translates human-friendly names like knowit.guru into the addresses computers use.
How does packet switching work?
Packet switching is how the internet moves data. Instead of sending a message all at once, it's broken into small 'packets' that travel independently across the network — possibly by different routes — and are reassembled in order at the destination.
How does HTTPS work?
HTTPS secures the connection between your browser and a website. When you connect, the two sides exchange keys and agree on a shared secret, then encrypt everything sent afterward — so passwords and card numbers travel as scrambled data nobody in between can read.
How does a web browser work?
A web browser turns code into the pages you see. It requests a site's files from a server, then reads the HTML, CSS, and JavaScript to build and display the page — handling layout, styling, and interactivity all in a fraction of a second.
How does a search engine work?
A search engine works by constantly crawling the web, indexing what it finds, and ranking pages to answer your queries. When you search, it doesn't scan the live web — it instantly sorts its pre-built index to surface the most relevant results.
How does a CDN work?
A CDN (Content Delivery Network) speeds up websites by storing copies of their files on servers around the world. When you visit a site, the CDN serves its content from a server near you, cutting the distance data travels and making pages load faster.
How does the cloud work?
The cloud works by letting you store data and run programs on powerful remote computers over the internet, instead of on your own device. Companies run huge data centers, and you rent a slice of their computing power and storage on demand.
How does cloud storage work?
Cloud storage keeps your files on powerful computers (servers) in remote data centers instead of only on your device. When you save a photo to the cloud, it uploads over the internet to those servers, which copy it across machines so you can reach it from any device, anytime.
How does streaming work?
Streaming works by sending media to you in small chunks that play as they arrive, instead of downloading the whole file first. Your device buffers a few seconds ahead, so video or music starts almost instantly and plays continuously.
How does fiber optic internet work?
Fiber optic internet works by sending data as pulses of light through thin glass strands. Because light travels incredibly fast and the signal barely fades, fiber carries huge amounts of data over long distances far quicker than copper wires.
How does 5G work?
5G works by using higher-frequency radio waves and denser networks of small cell towers to move data much faster than older networks. It cuts delay (latency) and handles far more connected devices, enabling things like real-time apps and smart cities.
How does Bluetooth work?
Bluetooth connects devices wirelessly over short distances using low-power radio waves. Two devices 'pair', agree on a secure connection, and then exchange data — like audio to your earbuds — over the 2.4 GHz radio band.
How does NFC work?
NFC (Near-Field Communication) works by letting two devices exchange small amounts of data when held very close together, within a few centimeters. It powers contactless payments and transit cards using a short-range radio signal that even works without its own battery.
How does a VPN work?
A VPN (virtual private network) works by creating an encrypted tunnel between your device and a remote server, hiding your traffic from outsiders. Your internet activity travels scrambled through that tunnel, so others see only the VPN server, not what you're doing.
How does a firewall work?
A firewall works as a security guard for a network, deciding which data is allowed in or out based on a set of rules. It inspects incoming and outgoing traffic and blocks anything that looks unauthorized or dangerous.
How does a browser cookie work?
A browser cookie works as a small text file a website stores on your device to remember information between visits. It lets sites keep you logged in, save your preferences, and track items in a cart — by sending the saved data back each time you return.
How does encryption work?
Encryption works by scrambling readable data into ciphertext using a mathematical algorithm and a key. Only someone with the matching key can reverse it — and modern encryption relies on math that's easy one way but practically impossible to undo without the key.
How does two-factor authentication work?
Two-factor authentication (2FA) adds a second check beyond your password. After entering your password (something you know), you confirm a second factor — like a code from your phone (something you have) — so a stolen password alone isn't enough to get in.
How do spam filters work?
Spam filters work by analyzing incoming emails for signs of junk — suspicious words, links, senders, and patterns — and scoring how likely each is to be spam. Many use machine learning that improves as users mark messages as spam or not.
How does a CAPTCHA work?
A CAPTCHA works by giving a quick challenge that's easy for humans but hard for bots, to keep automated programs out. Tasks like reading distorted text or picking images test for human perception that software has historically struggled to match.
How does an API call work?
An API call is how one program asks another for data or an action. Your app sends a request to a specific URL (the endpoint), the server processes it, and sends back a structured response — often JSON — which your app then uses.
How does a website load?
A website loads when your browser sends a request to a web server, which returns files like HTML, CSS, and JavaScript. The browser then renders these files into the page you see.
How does a proxy server work?
A proxy server is an intermediary computer that sits between your device and the internet, forwarding your requests and returning the responses. When you use a proxy, your traffic goes to the proxy first, which then contacts the destination on your behalf, hiding your IP address from the target site.
How does a password manager work?
A password manager stores all your passwords in an encrypted vault that is unlocked by one master password. It uses that single password to encrypt and decrypt the vault, so you only need to remember one secret instead of dozens.
How does mesh Wi-Fi work?
Mesh Wi-Fi uses multiple router units that communicate wirelessly to form a single network, so your devices stay connected as you move around. One unit connects to the internet, and the others relay the signal, eliminating dead zones.
How does Ethernet work?
Ethernet sends data over a wired network by breaking it into frames that carry source and destination MAC addresses. Each device on the same local network receives every frame, but only the one whose MAC address matches the destination accepts it.
How does a mobile hotspot work?
A mobile hotspot is a smartphone or dedicated device that shares its cellular data connection with other devices over Wi-Fi. It converts the cellular signal into a local Wi-Fi network that nearby devices can join to access the internet.
How do undersea internet cables work?
Undersea internet cables work by carrying data as pulses of light through hair-thin glass fibers laid on the ocean floor. Repeaters along the cable boost the light signal every 50–80 kilometers to keep it strong across entire oceans.
How does satellite internet work?
Satellite internet sends data between a user's dish and a satellite in orbit, which relays it to a ground station connected to the internet. This allows broadband access in remote areas where cables cannot reach.
How do cell towers work?
Cell towers connect mobile phones to the wider phone network by sending and receiving radio signals. They hand calls and data off between towers as you move, keeping the connection alive.
How does a SIM card work?
A SIM card is a small smart card that stores your mobile subscriber identity and authentication key. When inserted into a phone, it lets the network recognize you, verify your subscription, and connect your calls and data to your account.
How does an eSIM work?
An eSIM is a tiny chip soldered inside a phone that stores subscriber credentials digitally instead of on a removable plastic card. When you scan a carrier's QR code or use its app, the phone downloads a profile onto that chip and connects to the network.
How does phishing work?
Phishing works by sending fraudulent messages that impersonate trusted sources, tricking people into revealing passwords, card numbers or clicking malicious links. Attackers then use those credentials to access accounts, steal money or install malware.
How does a DDoS attack work?
A DDoS attack overwhelms a server or network with traffic from many compromised devices, making it unavailable to real users. The attacker uses a botnet to send a flood of requests, exhausting the target's resources.
How does ransomware work?
Ransomware is malicious software that secretly encrypts a victim's files, making them unreadable until a payment is made. It spreads through phishing emails, software vulnerabilities, or exposed remote access, then demands cryptocurrency for the decryption key.
How does a URL work?
A URL is a text address that identifies a resource on the internet and tells your browser how to fetch it. It combines a protocol, a domain name, and a path so computers can locate and request the right file or page.
How does end-to-end encryption work?
End-to-end encryption scrambles messages on the sender's device so only the recipient's device can decrypt them. The service provider relays the encrypted data but never holds the keys, so it cannot read the content.
How does a phone call work?
A phone call works by converting your voice into electrical signals, transmitting them through a network of cables, switches, and cell towers, and then converting them back into sound at the other end. The entire process happens in milliseconds, allowing two people to converse as if they were in the same room.
How does VoIP work?
VoIP converts your voice into digital data packets that travel over the internet instead of traditional phone lines. The packets are reassembled at the other end, allowing calls from any device with an internet connection.
How do video calls work?
A video call works by capturing your camera and microphone, compressing that data into a digital stream, and sending it over the internet to the other person's device, where it is decompressed and played back. The process happens in milliseconds, creating the illusion of real-time conversation.
How does USB work?
USB works by using a host controller to manage a tiered network of devices over a cable whose classic USB 2.0 core has four wires, two for power and two for differential data; newer versions add high-speed pairs. The host polls each device, and data packets travel between host and device endpoints using assigned addresses and pipe configurations.
How does a USB flash drive work?
A USB flash drive stores data by trapping electric charge in a grid of tiny memory cells, each holding one or more bits. When plugged into a USB port, a controller chip reads or writes those charges and sends the data to or from the computer.
How does a computer virus spread?
A computer virus spreads when an infected file or program runs on a new device, letting the virus copy itself into other files or systems. It typically travels via email attachments, downloads, shared drives, or infected removable media, then executes and replicates when a user opens or runs the malicious code.
How does an ad blocker work?
An ad blocker works by intercepting network requests that browsers make for advertising content and blocking those that match known ad-serving patterns. It relies on filter lists that map domains, URLs and element signatures to rules, so ads never load or render.
How does incognito mode work?
Incognito mode stops your browser from saving local records of your activity, such as history, cookies, and form data, by using a temporary session that is discarded when you close the window. It does not hide your activity from your internet provider, employer, or the websites you visit.
How does web hosting work?
Web hosting works by storing a website's files on a powerful computer called a server that stays connected to the internet around the clock. When someone types the site's address, their browser requests those files from the server, which sends them back for display.
How do torrents work?
Torrents let many computers share one file directly, each trading small pieces instead of downloading from a single server. A tracker or distributed hash table helps peers find each other, and the file is reassembled from pieces once all are collected.
How do map apps know about traffic?
Map apps know about traffic by collecting anonymous location and speed data from smartphones and vehicles, then combining it with historical patterns, road sensors, and official reports. Algorithms compare current speeds to expected free-flow speeds to color roads green, yellow, or red in real time.
How do contactless payments work?
Contactless payments work by using radio waves to send encrypted card or phone data to a reader a few centimetres away. The reader forwards the data to a bank network, which approves the transaction in seconds without a physical swipe or PIN for small amounts.
How do chip cards work?
A chip card works by running a tiny computer inside the card that generates a unique one-time code for every transaction, so a copied card number cannot be reused. The terminal sends the transaction data to the chip, the chip signs it with a secret key, and the bank verifies that signature before approving payment.
How does RFID work?
RFID (Radio Frequency Identification) works by using radio waves to automatically identify and track tags attached to objects. A reader emits a radio signal that powers a tag, which then transmits back its unique identifier.
How does an OTP work?
An OTP works by generating a short numeric or alphanumeric code that is valid for only one login or transaction, so a stolen password alone cannot be reused. Authenticator apps and tokens derive the same code as the server from a shared secret plus the time or a counter; SMS codes are simply generated by the server and texted.
How does Wi-Fi calling work?
Wi-Fi calling routes your phone's voice calls over a Wi-Fi internet connection instead of a cellular network. The phone packages the call as data, sends it through the Wi-Fi router to your carrier's servers, which connect it to the regular phone network.
How does airplane mode work?
Airplane mode disables the radios in a device so it stops transmitting and receiving cellular, Wi-Fi and Bluetooth signals. This prevents interference with aircraft navigation and communication systems, which are sensitive to electromagnetic emissions.
How does fast charging work?
Fast charging works by pushing more electrical current into a battery than standard charging, using a higher-voltage or higher-current supply and a battery designed to accept it. The charger and battery communicate to raise power safely, then taper the current as the battery fills to avoid damage.
How does image stabilization work?
Image stabilization reduces blur by counteracting unwanted camera or lens movement during exposure. Optical systems shift a lens element or the image sensor to hold the projected image steady on the sensor.
How does file compression work?
File compression works by finding repeated patterns in data and replacing them with shorter codes, so the same information takes up fewer bytes. A decoder later reverses this mapping to rebuild the original file exactly, or close enough for images and sound.
How do logic gates work?
Logic gates work by taking one or more binary inputs and producing a single binary output based on a fixed rule. Each gate type, such as AND, OR, or NOT, implements a specific logical operation that forms the building blocks of digital circuits.
How does a computer boot up?
A computer boots up when power reaches the CPU, which runs firmware that tests hardware, finds a bootable drive, and loads the operating system into memory. The OS then takes control and starts the programs that make the machine usable.
How does an LCD screen work?
An LCD screen works by controlling the orientation of liquid crystal molecules with an electric field to twist or untwist polarized light. Each pixel combines these light valves with color filters and a backlight to produce the image you see.
How does an OLED screen work?
An OLED screen works by passing electric current through organic compounds that emit light directly, so each pixel produces its own illumination without a backlight. Because these pixels can switch off completely, the screen achieves true blacks and high contrast.
How does an e-ink display work?
An e-ink display works by moving tiny black and white pigment particles through a clear fluid inside microscopic capsules using electric fields. The particles stay where they are pushed, so the image remains visible without power until the next page change.
How does satellite TV work?
Satellite TV works by transmitting TV signals from a ground station to a satellite in orbit, which amplifies and rebroadcasts them to a dish antenna at the viewer's location. The dish reflects the signals to a feed horn, which sends them to a receiver that decodes them into viewable channels.
How does a VR headset work?
A VR headset works by showing each eye a slightly different image while tracking your head's position and orientation in real time. The headset updates both images as you move, so your brain fuses them into a single, solid-feeling 3D world.
How do passkeys work?
Passkeys replace passwords by storing a cryptographic key pair: the private key stays with you, on your device or in an encrypted synced keychain, while the public key is kept by the website. When you sign in, your device proves it holds the private key without ever sending it over the internet.
How do SSL certificates work?
An SSL certificate proves a website's identity and enables encrypted communication, so data sent between a browser and server cannot be read or altered by eavesdroppers. It works by combining public-key cryptography with a trusted third-party signature that verifies the certificate belongs to the site's owner.
How does public-key cryptography work?
Public-key cryptography works by giving each person two mathematically linked keys: a public key anyone can use to encrypt a message, and a private key only the owner holds to decrypt it. The security rests on the fact that deriving the private key from the public key is computationally infeasible.
How does an internet speed test work?
An internet speed test works by downloading and uploading a temporary file between your device and a nearby test server, timing how long the transfer takes to calculate speed. It also measures latency by timing how quickly a small data packet makes a round trip.
How do online ads target you?
Online ads target you by tracking your activity across websites, then using that data to place you in audience segments that advertisers bid to reach in real time. The entire process runs on cookies, pixels, and auction systems that exchange your behavioural signals for ad space.
How does a fitness tracker count steps?
A fitness tracker counts steps by using a three-axis accelerometer to detect the repetitive up-and-down motion of your arm or hip as you walk. An algorithm then filters out other movements and increments the step count for each recognised step pattern.
How does an accelerometer work?
An accelerometer measures acceleration by detecting how a small proof mass inside the device moves relative to its fixed frame. That displacement is converted into an electrical signal proportional to the acceleration, which electronics then read as motion, tilt or vibration.

Key ideas behind them

What is the internet?
The internet is a global network of computers that communicate using shared rules (protocols), letting any connected device exchange data with any other. The web, email, and apps all run on top of it.
What is a server?
A server is a computer that provides data or services to other computers, called clients, over a network. When you visit a website or send an email, a server somewhere stores the information and sends it to your device.
What is an IP address?
An IP address is a unique number that identifies a device on a network, like a postal address for the internet. It tells data where to go, so the right web page or message reaches the right computer or phone.
What is a computer network?
A computer network is a group of devices connected so they can share data and resources. From a home Wi-Fi setup to the global internet, networks let computers, phones, and servers communicate using shared rules called protocols.
What is bandwidth?
Bandwidth is how much data your internet connection can carry per second — like the width of a pipe. More bandwidth means more data flows at once, so pages load faster and videos stream without buffering. It's usually measured in megabits per second (Mbps).
What is an API?
An API (Application Programming Interface) is a set of rules that lets two pieces of software talk to each other. It's like a waiter taking your order to the kitchen and bringing back food — you ask for data or an action, and the API delivers it.
What is a data center?
A data center is a building full of servers and storage that powers the internet's apps, websites, and cloud services. These facilities run around the clock with massive power and cooling to keep data flowing reliably and securely.
What is load balancing?
Load balancing is spreading incoming work — like website traffic — across multiple servers so no single one gets overwhelmed. It keeps apps fast and available, and lets services handle huge numbers of users by sharing the load.
What is caching?
Caching is storing copies of data somewhere fast so it can be served quickly next time, instead of fetching or computing it again. Browsers, apps, and servers all use caches to make things load faster and reduce repeated work.
What are browser cookies?
Browser cookies are small text files that websites store on your device to remember information about you — like your login, settings, or items in a cart. They make browsing smoother, but some also track your activity across sites.
What is HTML?
HTML (HyperText Markup Language) is the code that structures web pages. It uses tags to label content — headings, paragraphs, images, links — so browsers know how to display it. It's the basic building block of every website.
What is edge computing?
Edge computing means processing data near where it's created — on or close to the device — instead of sending it all to a distant cloud server. This cuts delay and saves bandwidth, which matters for things like self-driving cars and smart sensors.
What is cybersecurity?
Cybersecurity is the practice of protecting computers, networks, and data from digital attacks, theft, and damage. It combines technology, processes, and habits to keep information safe and systems running.
What is Web3?
Web3 is a vision for a new, decentralized internet built on blockchain technology. Instead of big companies controlling data and platforms, Web3 aims to give users ownership of their data, identity, and digital assets through shared, transparent networks.

हिंदी में पढ़ें: इंटरनेट कैसे काम करता है? · राउटर कैसे काम करता है? · ईमेल कैसे काम करता है? · Wi-Fi कैसे काम करता है? · मॉडेम कैसे काम करता है? · DNS कैसे काम करता है? · पैकेट स्विचिंग कैसे काम करता है? · HTTPS कैसे काम करता है?

Frequently asked questions

What is the difference between a router and a modem?
A modem connects your home to your internet provider's network; a router shares that one connection among your devices and directs traffic between them. Many home boxes combine both.
What happens when you type a website address?
Your browser asks DNS for the site's IP address, opens a secure connection to that server, requests the page, and renders the files that come back — all usually in under a second.
Who owns the internet?
No single owner. It is thousands of independently run networks — internet providers, companies, universities and governments — that agree to exchange traffic using shared protocols such as TCP/IP.