Pasted image 20260803093109.png

How the Internet Works

Summary

The Internet is a global system of interconnected computer networks operating on standardized communication protocol suites, primarily TCP/IP.[1] At its physical base, data travels through a vast infrastructure of fiber-optic subsea cables, copper wiring, and wireless signals in the form of light or electrical pulses.[1:1] Logically, information is split into small units called "packets," assigned IP addresses for routing, navigated across independent networks via Border Gateway Protocol (BGP), resolved through the Domain Name System (DNS), and reassembled at its final destination.[1:2]

1. Physical Infrastructure: The Global Hardware Web

While end users interact with the Internet through wireless interfaces, the backbone of global networking is physical hardware.[1:3]

Essential Hardware Layers

2. Logical Architecture: Protocols and Packet Switching

To allow millions of different computer hardware and operating system combinations to talk to one another, the Internet relies on standardized rules called protocols.[1:7]

The TCP/IP vs. OSI Model

Network communications are conceptualized using layered models where each layer handles a distinct function and communicates with the layers directly above and below it.[2]

Layer OSI Model (7 Layers) TCP/IP Model (4 Layers) Key Protocols / Technologies Primary Function
Application Application, Presentation, Session Application HTTP, HTTPS, DNS, SSH, SMTP Formats data for end-user applications and web browsers.
Transport Transport Transport TCP, UDP Manages end-to-end data transfer, error detection, and ordering.
Internet / Network Network Internet IP (IPv4, IPv6), ICMP, BGP Handles logical addressing and determines packet routing across networks.
Network Access Data Link, Physical Network Access / Link Ethernet, Wi-Fi (802.11), Fiber Converts data into electrical, optical, or radio signals over physical media.

[2:1]

Packet Switching Mechanism

Rather than establishing a continuous, dedicated circuit between two machines (like traditional landline telephones), the Internet utilizes packet switching.[1:8]

  1. Fragmentation: The sending device breaks data files into smaller chunks called packets.[1:9]

  2. Encapsulation: Each packet is given a Header containing metadata (source IP, destination IP, sequence number, checksum) and a Payload (the actual data content).[2:2]

  3. Independent Routing: Packets are sent individually through the network. Routers along the route inspect each packet's header and send it along the most efficient path available.[1:10]

  4. Reassembly: The destination host receives the packets out of order, uses TCP sequence numbers to re-arrange them correctly, checks for missing data, and reassembles the original file.[1:11]

3. Addressing & Routing: IP, DNS, and BGP

For data packets to navigate from source to destination, the Internet relies on three main navigation mechanisms.

IP Addressing (IPv4 vs. IPv6)

An Internet Protocol (IP) address serves as a unique digital location for any device connected to the network.[1:12]

Domain Name System (DNS)

Since humans remember text names rather than numerical IP addresses, DNS converts human-friendly hostnames into machine-readable IP addresses.[1:13]

User enters "example.com"
        │
        ▼
1. Recursive Resolver (ISP or Public 1.1.1.1)
        │
        ▼
2. Root Name Server (Directs to TLD)
        │
        ▼
3. TLD Name Server (.com authority)
        │
        ▼
4. Authoritative Name Server (Returns IP: 93.184.216.34)

Border Gateway Protocol (BGP)

The Internet is divided into over 100,000 independent networks called Autonomous Systems (AS), managed by ISPs, tech corporations, or universities. BGP acts as the Internet's routing control system, enabling autonomous systems to constantly broadcast reachable routes to each other and select the optimal path for data movement across global networks.

4. End-to-End Data Journey: Requesting a Webpage

When a user enters [https://example.com](https://example.com) into a web browser, the system executes a precise, multi-step sequence within milliseconds:

  1. DNS Resolution: The client checks local caches for example.com. If not found, a DNS query resolves the IP address of the target server.[1:14]

  2. TCP Three-Way Handshake: The browser initiates a reliable transport connection with the web server via TCP:[3]

    • SYN: The client sends a synchronization packet to request a connection.

    • SYN-ACK: The server acknowledges the request and sends back its own synchronization signal.

    • ACK: The client acknowledges the server's response. The connection is established.[3:1]

  3. TLS Encryption Negotiation: For secure connections (https), the browser and server execute a TLS handshake to authenticate server identities and establish encrypted symmetric session keys.

  4. HTTP Request Forwarding: The browser transmits an HTTP GET request. The OS packages this request into TCP segments, encapsulates them in IP packets, and forwards them to the local network router.[1:15]

  5. Transit Across the Backbone: Core routers use BGP tables to pass the packets across intermediate Autonomous Systems until they reach the target server.[1:16]

  6. Server Response & Rendering: The server processes the request and sends the webpage components back in packets. The client reassembles the packets in order, decodes the HTML, CSS, and JavaScript, and renders the webpage on the user's screen.[1:17]

5. Security & Network Reliability

Important

Core internet protocols like IP and TCP were originally designed for open academic collaboration and lacked built-in security features.[4] Modern security protocols wrap these foundational layers to ensure data privacy, authenticity, and infrastructure resilience.

Key Security Layers

Resonant Notes

References


  1. Cloudflare / How does the Internet work? / cloudflare.com ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎

  2. Cloudflare / What is the network layer? / cloudflare.com ↩︎ ↩︎ ↩︎

  3. Jon Postel / Transmission Control Protocol (RFC 793) / ietf.org ↩︎ ↩︎

  4. Internet Society / TCP/IP 25th Anniversary / internetsociety.org ↩︎