Continue where you left off ×
It won’t load: the ladder (network debugging)
The Parcel's Journey · Open board
One parcel tracked from a laptop to example.com, hop by hop. This lesson is about the day the parcel never arrives, and the five questions that find out where it stopped.
Before you start. One click, every layer (what happens when you load a page) walked one page load through five stops: the concierge turns a name into a number (DNS Resolution ), depots pass the parcel one hop closer, each reading only its own list of rows (How a parcel finds any house on earth ), the phone call opens on a numbered door called a port (TCP vs UDP, and the 3-way handshake ), the whisper code checks the site’s ID card and makes the line private (The whisper code (how a call goes private) ), and the order goes in and the reply comes back (What a request actually says (HTTP) ). This lesson asks the same five stops as questions, for the day one of them fails.
The idea in 30 seconds
A page that won’t load is debugged in a fixed order: name, route, port, TLS (the whisper code), HTTP. Each question only makes sense once the one before it has passed.
dig answers the name question. Read its status and the SERVER line, because asking the wrong resolver is as common as asking about the wrong name.
A default route that points at a missing router makes every address beyond your own network unreachable, and ping reports it from your own address.
“Connection refused” in an instant means the house answered and nobody listens on that port. A timeout means something dropped your knock without a word, usually a firewall.
openssl s_client ends in one line, Verify return code, that names a wrong-name, expired or untrusted certificate outright.
When small replies arrive and large ones hang, suspect a smaller MTU in the middle whose “too big” notes are being thrown away: the route rung, failing at the top.
Read the story
Lesson 37 of 44 in Networking
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year .
See plans Already a member? Sign in
Or start free : a free account opens lessons 2 and 3 of every track.
In this lesson 4 October 2021: Facebook vanishes, and everyone blames the address book The ladder: five questions, asked from the bottom Rung one, the name: which resolver did you ask? Rung two, the route: the default route, where every road starts Rung three, the port: connection refused, timeout, and the firewall Rung four, the whisper code: the certificate and its one verdict line Rung five, the order: headers arrive, the body never does (the MTU) 1. The name: a client that asks the wrong resolver 2. The route: a default route to nowhere 3. The port: nothing listening on the door you knocked on 4. The port: a firewall that drops one door and rejects another 5. TLS: a card for the wrong name, and one that expired 6. The black hole: every rung passes, and the page never arrives What the six have in common Terms it explains: TLS, HTTP, resolver, default route, Connection refused, timeout, firewall, MTU.
Review Networking
Mark as read Saved in this browser, and to your account when you sign in.