Skip to content

Networking & Edge

A request spends much of its life on the network, and the time it spends there is not set by how fast the servers are. It is set by how many round trips the protocols need and how long each takes. This module counts them: for finding the server, for opening a connection, for securing it, for sending the request, and for getting the answer from somewhere nearby.

You will step through the messages of a DNS lookup and of a new connection under TLS 1.2, TLS 1.3 and QUIC, compare two requests with and without a kept-open connection, compare an edge hit, an edge miss and no CDN with a hit rate that you set, sort statements into TCP or UDP and into the three versions of HTTP, and work out what proximity is worth. Every lesson has a “what happens if” moment.

  1. DNS: finding the server (15 min). How a name becomes an address, what each cache saves, and what a time to live trades off.
  2. TCP and UDP (14 min). A reliable stream that costs a round trip to set up, and datagrams that promise nothing.
  3. TLS handshakes (17 min). What a secure connection costs in round trips, and what 0-RTT risks.
  4. HTTP/1.1, HTTP/2 and HTTP/3 (18 min). One request at a time, many streams on TCP, and many streams over QUIC.
  5. Connection pooling and keep-alive (16 min). Open a connection once and use it many times, and how to size a pool.
  6. CDNs, edge caching and anycast (25 min). What a hit and a miss cost, what may be cached, what the origin sees, and how one address announced from many places finds a nearby site.
  7. Recap and quiz (12 min). The module in one page, a list for estimating a request, and a quiz.
  • Count the round trips a request needs, from the lookup to the answer, and say how each protocol changes the count.
  • Compute the time of a new connection, a reused one, an edge hit and an edge miss from the round-trip times.
  • Say what a time to live trades off, and how long an old address can survive a change.
  • Choose between TCP and UDP, and tell the three versions of HTTP apart by how they behave on loss.
  • Say what a CDN’s hit rate does to the average time and to the origin’s load.

All the numbers in the labs and calculators are illustrative. They are for comparing choices, not for forecasting any real product.

Built by GhaziAlibi.

© ShardCraft. All rights reserved.