How the Internet Actually Works

The internet is a network of networks: thousands of independently operated autonomous systems, run by ISPs, universities, governments and companies, that interconnect using shared protocols over physical infrastructure like fiber cables and routers. These networks use BGP to announce which addresses they can reach, and no single company or government controls the whole.

3 min read

The internet isn't one single network owned by any one company or government, it's a network of networks: thousands of independently operated networks (run by ISPs, universities, governments, and companies) that agree to interconnect using shared protocols, so that any device on any of those networks can reach any device on any other.

The physical layer

Underneath everything, the internet is physical infrastructure: fiber optic cables (including undersea cables connecting continents), routers, switches, and data centers. Data ultimately travels as electrical signals or pulses of light through this real physical infrastructure, no matter how abstract the higher-level protocols feel.

Autonomous systems and BGP

Each independently operated network is called an autonomous system (AS), identified by a unique AS number. Autonomous systems connect to each other at points called internet exchange points, or through direct private connections, and use BGP (Border Gateway Protocol) to announce which address ranges they can deliver traffic to and to negotiate routing paths between each other.

A worked example: what happens when you load a website

  1. Your device asks DNS to resolve the website's domain name to an IP address (potentially involving several DNS servers, as covered separately).
  2. Your device sends a request toward that IP address; the request first goes to your home router, then to your ISP's network.
  3. Your ISP, one autonomous system, may not have a direct connection to the destination server's network (a different autonomous system), so BGP-determined routing decides which intermediate autonomous systems the traffic passes through.
  4. The request crosses potentially several other networks, each one forwarding it closer to the destination, until it reaches the autonomous system hosting the destination server.
  5. The destination server processes the request and sends a response back, which may take a different path through the network of autonomous systems on the way back.

All of this typically happens in well under a second, even when the request and response cross multiple countries and several independently operated networks along the way.

Where this matters in real systems

Because the internet is a network of independently operated networks rather than one centrally controlled system, there's no single point anyone can flip a switch on to "shut down the whole internet," though individual countries or ISPs can restrict access within their own portion of it. This decentralized structure is also exactly why the internet is so resilient: if one autonomous system or physical link fails, traffic can often reroute through alternate paths via other autonomous systems, rather than the entire network failing as one unit.

What interviewers actually ask about how the internet works

  • "Is the internet owned by one company or government?" No, it's a network of thousands of independently operated networks (autonomous systems) that agree to interconnect using shared protocols like BGP; no single entity owns or controls the whole thing.
  • "What is an autonomous system?" An independently operated network (run by an ISP, company, or organization) with its own unique identifying number, that makes its own routing decisions and connects to other autonomous systems to form the larger internet.
  • "Walk me through what happens when you load a website, at a high level." DNS resolves the domain to an IP address, the request travels from your device through your ISP and potentially several other autonomous systems (via BGP-determined routing) to reach the destination server, which responds along a path that may differ from the outbound one.
  • "Why is the internet considered resilient to individual failures?" Its decentralized structure, many independently operated networks with multiple interconnection points, means traffic can often reroute around a failed link or network rather than the whole system going down.

Key takeaways

  • The internet is a network of thousands of independently operated networks (autonomous systems), not one centrally owned system.
  • Physical infrastructure (fiber, undersea cables, routers) underlies everything, no matter how abstract the protocols feel.
  • BGP is the protocol autonomous systems use to announce reachability and negotiate routing paths between each other.
  • The internet's decentralized structure is a major reason for its resilience against individual network or link failures.
All 101 Computer Networks interview questions

Log in to save which topics you've read across every subject.

Frequently asked questions

Is the internet owned by one company or government?

No, it's a network of thousands of independently operated networks (autonomous systems) that agree to interconnect using shared protocols like BGP; no single entity owns or controls the whole thing.

What is an autonomous system?

An independently operated network (run by an ISP, company, or organization) with its own unique identifying number, that makes its own routing decisions and connects to other autonomous systems to form the larger internet.

Walk me through what happens when you load a website, at a high level.

DNS resolves the domain to an IP address, the request travels from your device through your ISP and potentially several other autonomous systems (via BGP-determined routing) to reach the destination server, which responds along a path that may differ from the outbound one.

Why is the internet considered resilient to individual failures?

Its decentralized structure, many independently operated networks with multiple interconnection points, means traffic can often reroute around a failed link or network rather than the whole system going down.