Skip to content

alphaPlan · How Computers & the Internet Work · Cheat-sheet 01

The internet

A message travels as addressed packets that routers forward one hop at a time, after DNS has turned the name you typed into the IP address the network needs.

Ideas to remember

  1. 01A phone and a server are not joined by one private wire; connected networks and devices forward data one step at a time.
  2. 02A message is split into small addressed pieces called packets, and the destination is identified by an IP address.
  3. 03A router uses the destination address to choose a next hop; it does not need to understand the message content.
  4. 04When one path fails, routing can find another, but delivery continues only while a usable route exists, and IP by itself does not guarantee retransmission.
  5. 05DNS works like a phonebook: it turns the readable name you typed into the numeric IP address packets need.
  6. 06Caching keeps a recent answer close at hand until its TTL expires, which is one quiet reason the web feels fast.

Words

Packet
A small addressed piece of a message that travels through the network on its own.
Router
A device that forwards a packet to the next hop using the destination address.
IP address
The number that identifies the destination; more a network address than a physical location.
TCP
A reliability protocol at a higher layer that can detect missing data and arrange retransmission.
DNS
The Domain Name System, which looks up the IP address that matches a website name.
TTL
The time to live on a DNS answer: how long a cache may reuse it before asking again.

Do this

  • Model the journey before you learn the names: what must travel, what it must carry, what a device in the middle can decide.
  • Explain the sequence to someone else: what the sender does, what a packet carries, what a router decides, what the destination does.
  • Say what changes, and what stays unchanged, when one path fails.
  • Walk through the DNS lookup chain: your computer asks the resolver, the resolver asks a root server, then the directory for the ending, then the site's own servers.
  • Name the trade in caching: speed from reusing an answer, against a delayed address change until the TTL expires.

Watch out

  • 'The router understands the message' is the classic mistake; forwarding and understanding are different jobs.
  • The classroom model simplifies: a message is not always exactly three packets, packets need not take different routes or arrive in order, and a congested route is delayed, not unavailable.
  • DNS finds addressing information only; it does not make the destination trustworthy or encrypt the connection.

Found something unclear, outdated or improvable? Suggest an improvement