Skip to content

Networking: The Big Picture (One Packet's Trip) ​

Season 2 · Note 1

In Plain English (30-Second Refresher) ​

TL;DR

Everything you send online is chopped into small packets: little envelopes of data, each with a "to" and "from" address.

  1. DNS (Domain Name System) turns a name like coindash.example into a number: the server's IP (Internet Protocol) address.
  2. Your Wi-Fi router and your ISP (Internet Service Provider) pass each packet to the internet.
  3. Routers forward it hop by hop. Each one only reads the address and sends it one step closer.
  4. TCP (Transmission Control Protocol) numbers the pieces and resends any that get lost. TLS (Transport Layer Security) locks them so only the two ends can read them. Web traffic locked this way is HTTPS (HyperText Transfer Protocol Secure).

The Mission We Follow ​

You just beat your Coin Dash high score: 52. A tenth of a second later, a friend on another continent sees it on the online leaderboard.

This note follows one packet carrying that score, from your laptop to the Coin Dash server and back. Every networking idea in this season is just one stop on that trip.

Real-World Analogy: Mailing a Letter Abroad 📮 ​

Imagine posting a letter to an office overseas. You look up their address, pack the letter, and the postal system passes it from building to building until it arrives. Networking works the same way, just in milliseconds.

In the postIn the networkWhat it does
✉️ One envelope of a long letterPacketA small piece of your data, about 1,500 bytes
📖 Looking up the address in a phone bookDNSTurns a name into a number
🏠 Street addressIP addressSays where a device is on the internet
🚪 Room number in the buildingPortSays which app on that device gets it (443 = secure web)
📬 Your building's mailroomWi-Fi router + NAT (Network Address Translation)Sends mail out and swaps in the building's address
🏤 Local post officeISPYour home's way out to the world
🏭 Sorting centresRoutersEach one sends the envelope one step closer
🧾 Numbered pages + delivery receiptsTCPSpots missing pieces and resends them
🔒 A locked box only the recipient can openTLSNobody on the way can read the letter

Visual Mental Model ​

One packet's trip: laptop, Wi-Fi router, internet provider, routers, undersea cable and data centre, with envelopes inside envelopes

How It Works (Interactive Animated Flow) ​

Switch between everything goes well and a piece gets lost:

One Packet's Trip Across the Internet
Follow your score from your laptop to the Coin Dash server and back
🎯 Mission Get your new high score (52) onto the online leaderboard.
START💻Your laptopCoin Dash: score 52~20 ms📖Address bookname → numberHOP 1📶Wi-Fi routerswaps the return addressHOP 2🏢Internet providerway out of your homeHOPS 3–15🧭Routers + ocean cableone hop at a timeARRIVED🖥️Coin Dash serversaves it, repliesWhere is it?Here’s the numberRadio wavesCableHop by hopAcross the oceanReply: 200 OK
  1. Find the address: DNS turns the name into an IP address (and remembers it for next time).
  2. Pack it: the message is cut into packets, and each packet is wrapped in envelopes inside envelopes (layers).
  3. Leave home: Wi-Fi carries it to your router, which swaps in your home's public address.
  4. Cross the internet: your ISP hands it to routers, hop by hop, sometimes under an ocean.
  5. Arrive: a load balancer picks a free server, which opens the envelopes and does the work.
  6. Reply: an answer comes back the same way. Lost pieces are resent along the way.

The 4 Core Principles (Remember Just These) ​

  1. Packets, not one long stream. Big messages are cut into small pieces that travel separately and are rebuilt at the end.
  2. Names are for people, numbers are for machines. DNS translates one into the other.
  3. Nobody knows the whole route. Every router makes one small decision: "which neighbour is closer?" That's why the internet survives broken links.
  4. Layers, each with one job. Wi-Fi gets it to the next hop, IP to the right computer, TCP to the right app in one piece, TLS keeps it private.

Where the Time Goes ​

StepTypical time
DNS lookup~0 ms if remembered, up to ~50 ms if not
Home Wi-Fi to router1–5 ms
Handshakes before sending (TCP + TLS)1–2 round trips
Across an ocean≈ 30–40 ms each way (light in glass covers ~200 km per millisecond)
Server worka few ms

Rule of thumb: a server in your city answers in 10–30 ms; one on another continent in 100–200 ms. Distance, not your internet plan, sets that floor.

Trade-offs (Why It's Built This Way) ​

ChoiceUpsideDownside
Packets instead of a reserved line (like old phone calls)Millions of people share the same cablesPieces can arrive late, out of order, or not at all
TCP (resend everything that's lost)Complete, in-order data: web pages, scores, filesA lost piece holds up the ones behind it
UDP (User Datagram Protocol) (no resending)Lowest delay: live games, video callsLost pieces stay lost; the app must cope
Hop-by-hop routingNo single point of failureNobody can promise a fixed path or travel time

Season 2 Roadmap ​

Three names you’ll meet along the way:

  • OSI (Open Systems Interconnection) model: the textbook list of 7 network layers. Engineers say “Layer 3” or “an L7 (layer 7) load balancer”, so note 2 maps each of my envelopes to its layer number.
  • SSL (Secure Sockets Layer): the old, retired name for TLS. People still say “SSL certificate”; note 7 explains why.
  • CDNs (content delivery networks): keep copies of websites in cities near you, so your packets travel less.
#NoteThe packet learns…Ready
1The Big Picture (this note)the whole trip, start to finish✅
2Packets & Layers (the OSI model)why I wear envelopes inside envelopes, and the 7 numbered layers engineers talk about✅
3Your Home NetworkWi-Fi, device addresses, and sharing one public address✅
4DNS: Names to Numbershow the address book really works✅
5Routing Across the Internethow routers and providers pass me around the planet✅
6TCP & UDPreliable vs fast delivery, and what happens when I'm lost✅
7HTTPS, TLS & SSLthe locked box, how strangers agree on a secret, and why people still say “SSL”✅
8Servers, Load Balancers & CDNswhat happens at the other end, and why copies sit near you✅

Common Gotchas ​

Watch Out For

  • The internet isn't the web. The internet moves packets; the web (HTTP pages) is just one app that uses it. Games, email and video calls are others.
  • Full Wi-Fi bars ≠ fast internet. Bars only describe the first hop, laptop to router. The slow part can be anywhere after that.
  • A faster plan doesn't fix lag. Your plan raises how much data flows per second, not how long each trip takes. Distance sets the delay.
  • 192.168.x.x addresses are private. They only work inside a home; the outside world sees your home's single public address.
  • HTTPS hides the letter, not the envelope. Routers can't read your score, but they can see which server you're talking to.

Quick Self-Check (Restore Your Memory) ​

1. What's the difference between coindash.example and 198.51.100.20?

The first is a name for people. The second is the IP address machines use to route packets. DNS turns the name into the number.

2. Does any router know the whole route from your laptop to the server?

No. Each router only reads the destination address and forwards the packet to the neighbour that's one step closer. That's why the internet keeps working when a link breaks.

3. A packet carrying part of your score is dropped by a busy router. What happens?

TCP notices: the server's receipts show the piece is missing, so your laptop sends just that piece again. The server rebuilds the message in order, and you never notice.

🎬 Now Watch It Happen ​

2-minute episode

Ride along as the packet: from Coin Dash on your laptop, through your router, under the ocean, to the server and back. S2 · E1 — The Journey →

Built for clear thinking and fast 2-minute refreshers.