edubun
English
Computer basics and typing · 6 units · about 142 min · 60 practice questions

How the internet works

A photo sent from your phone does not travel as one piece. It is cut into packets that hop from router to router and are put back together at the other end. Six units follow those packets: what the internet is, IP addresses, routing, TCP and UDP with ports, DNS, and everything that happens when you open a web page. A packet simulator lets you drop packets, cut links and watch DNS look up a name step by step.

Progress
Start

What you will learn

  • Explain why switches and routers beat a cable for every pair
  • Read an IPv4 address as four bytes
  • Choose between TCP and UDP for a job
  • Read a domain name as a path down a tree
  • Split a URL into scheme, host, path, query and fragment

Units

  1. 1What the internet is21 pages24 minExplain7Explore2Problem10Practice1
  2. 2IP addresses22 pages26 minExplain7Explore3Problem10Practice1
  3. 3How packets find their way22 pages25 minExplain8Explore2Problem10Practice1
  4. 4TCP, UDP and ports19 pages22 minExplain5Explore2Problem10Practice1
  5. 5DNS: turning names into addresses21 pages23 minExplain7Explore2Problem10Practice1
  6. 6What happens when you open a web page19 pages22 minExplain5Explore2Problem10Practice1

About this course

A photo sent from your phone does not travel as one piece. It is cut into packets that hop from router to router and are put back together at the other end. In the lab you press Send and watch a message become four packets, numbered 1 to 4. They may take different routes through five routers and reach the server out of order, and the server puts them back in order. One sorting-out comes early: the internet is the connected networks, the web is one service on top of them, and email, video calls and games use the same networks without being part of the web.

The six units follow a packet. What the internet is comes first, then IP addresses, where every packet carries a source and a destination address and a router reads only the destination to decide the next hop. IPv6 uses 128 bits against 32, so there are about 7.9 × 10²⁸ times as many addresses. Routing includes a traceroute button that sends probes with rising TTL to reveal each router in turn. Then come TCP, UDP and ports, DNS, and what happens when you open a web page, including how HTTP/3 runs on QUIC so that DNS, one handshake round trip and the request make three steps in all.

The DNS unit has a short history. Before DNS, every computer on the ARPANET kept a copy of one text file, HOSTS.TXT, listing every host name and address, maintained by the Stanford Research Institute's Network Information Center. A port number is 16 bits, so it runs from 0 to 65535, and four numbers together identify one TCP connection, which is how a server on port 443 can talk to thousands of browsers at once without mixing them up.

Before you start

No networking background is needed; a packet simulator in the page shows each step. Addresses and port numbers are described in bits, so How computers work helps if binary is new to you, especially for seeing why no part of an IPv4 address goes above 255.

Course map

Computer basics and typing · Courses: 4
Sources for this course (27)
  • (checked 2026-10-17)
  • IETF RFCs (rfc-editor.org): RFC 768 UDP (1980, 8-byte header)
  • RFC 791 IPv4 (1981, 32-bit addresses, "does not provide a reliable communication facility", TTL field "measured in units of seconds" but every module must decrease it by at least one, so it is only an upper bound)
  • RFC 792 ICMP (Time Exceeded)
  • RFC 801 NCP/TCP transition plan (1 January 1983)
  • RFC 894 Ethernet (1500-byte payload)
  • RFC 1034 and RFC 1035 DNS (1987, HOSTS.TXT kept by SRI-NIC, labels up to 63 octets and names up to 255, TTL in seconds)
  • RFC 1122 (127.0.0.0/8 loopback)
  • RFC 1918 private addresses (10/8, 172.16/12, 192.168/16)
  • RFC 2131 DHCP, RFC 3022 NAT, RFC 3596 AAAA records, RFC 3849 and RFC 5737 documentation addresses, RFC 4271 BGP-4, RFC 4291 IPv6 text form, RFC 6298 TCP retransmission timer (initial RTO 1 second)
  • RFC 6335 port ranges (0-1023, 1024-49151, 49152-65535)
  • RFC 7766 DNS over TCP, RFC 8200 IPv6 (128-bit addresses, Hop Limit)
  • RFC 8446 TLS 1.3 (one round-trip handshake)
  • RFC 9000 QUIC and RFC 9114 HTTP/3, RFC 9110 HTTP semantics (status code classes)
  • RFC 9293 TCP (three-way handshake, sequence numbers)
  • IANA: ip-parameters registry (recommended default TTL 64)
  • IPv4 free pool depleted 3 February 2011 (NRO and ARIN announcements)
  • Official documentation: MDN Web Docs "How does the Internet work?" (45 cables for 10 computers, switches, routers, MAC and IP addresses, internet and web)
  • "What is a URL?", "HTTP response status codes" (developer.mozilla.org)
  • Cloudflare Learning Center: "What is DNS?" (four kinds of DNS server, 8 steps of an uncached lookup, browser and OS caches, TTL)
  • "What is HTTP/3?" (cloudflare.com/learning)
  • Google Chrome Help, "Browse in Incognito mode" (support.google.com/chrome/answer/95464, checked 2026-10-19: Incognito limits what is saved to the device; websites and organisations that manage your network, like your school, employer or internet service provider, may be able to observe your activity)
  • Operators and papers: root-servers.org (13 root name servers run by 12 organisations, 2047 instances on 2026-10-17)
  • Jacobson and Karels 1988, Congestion Avoidance and Control (loss mostly congestion)
  • History blocks only: UCLA Samueli School of Engineering, Internet50 (first ARPANET message "LO", UCLA to SRI, 29 October 1969, 22:30)
  • historyofinformation.com and Wikipedia ARPANET (Kline)
  • Spiceworks/SRI history (HOSTS.TXT kept by SRI-NIC).

Checked: 2026-10-17