Boss lesson · Unit 03
What happens when you press Enter
One URL, every step: DNS, TCP, TLS, HTTP, and three HTTP versions
What you practise
- URL parts, DNS lookup, TCP handshake, TLS handshake, the HTTP request, the response, rendering
- Then HTTP/1.1 keep-alive, HTTP/2 multiplexing, HTTP/3 over QUIC
Try a question from this lesson
Pick one
You type https://example.com/ and press Enter. Which of these has to happen first?
Correct answer
Find the IP address for example.com
Why
Every other step needs somewhere to send packets, and a name is not an address. So the journey starts with DNS, unless the answer is still in a cache from an earlier visit.
The ideas
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
The journey
Loading a page is a chain, and each link needs what the one before produced: an address, then a connection, then encryption keys, then a page.
The first response is only the HTML. It names more files, and the browser fetches each of those too.
1 DNS name -> IP address
2 TCP SYN, SYN-ACK, ACK
3 TLS check certificate, agree keys
4 HTTP request -> response
5 Render fetch the CSS, JS, imagesConcept
Three HTTPs
The request and response look the same in every version. What changed is how many can travel at once.
HTTP/1.1 handles one request at a time on a connection, so browsers open about six. HTTP/2 interleaves many requests as streams on one connection. HTTP/3 does the same over QUIC.
HTTP/1.1 1 request at a time
per TCP connection
HTTP/2 many streams, 1 TCP conn.
HTTP/3 many streams, QUIC on UDP10 more exercises in the app
- 1× fill the blanks
- 1× order the lines
- 3× type the answer
- 3× multiple choice
- 1× true or false
- 1× match the pairs
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.