SW
Doc. SEW-001 · Field Reference

Systems of the Web

How a request finds a server, and everything that happens in between.
RevA
Sheet01 / 07
ScaleConceptual
Sheet 01 — Foundations

Networking

Before any application logic runs, two machines have to find each other, agree to talk, and — usually — agree to keep the conversation private. This is the plumbing underneath every request.

What an IP address is

An IP address is a numeric label assigned to a device on a network, so other devices know where to send data. Every server you talk to on the internet has one.

  • IPv4 Four numbers 0–255, e.g. 142.250.72.14. ~4.3 billion possible addresses — running out.
  • IPv6 A longer format, e.g. 2607:f8b0::14. Built to never run out.
AnalogyA street address for a building. It doesn't tell you who lives there, just where to physically deliver something.

Domain Name System

Humans use names like example.com; machines route by IP address. DNS is the lookup system that translates one into the other before a connection can even start.

  • Step 1 Browser checks its own cache — has it looked this up recently?
  • Step 2 If not, it asks a resolver (often your ISP or a public one like 1.1.1.1).
  • Step 3 The resolver walks a hierarchy — root → .com registry → the domain's own nameserver — until it gets an answer.
AnalogyA phone contacts list. You tap "Mom," the phone looks up the actual number, and only then does it dial.

Establishing a reliable connection

Once the browser has an IP address, it can't just start firing data at it. TCP (Transmission Control Protocol) first opens a reliable, ordered connection with a three-step handshake — a bit like confirming both sides are on the line before you start talking.

Browser
1. SYN
Server
Browser
2. SYN-ACK
Server
Browser
3. ACK
Server
Reading itBrowser: "Can we talk? (SYN)" → Server: "Yes — can you hear me? (SYN-ACK)" → Browser: "Confirmed. (ACK)" Only after this does either side send real data. UDP, used for things like video calls, skips this entirely and trades reliability for speed.

What TLS adds on top

TCP gets two machines talking, but that channel is plain text by default — anyone between you and the server could read or tamper with it. If the URL starts with https://, a TLS handshake runs immediately after the TCP handshake to fix that.

Certificate check

The server presents a certificate, signed by a trusted Certificate Authority, proving it's really who the domain claims it is.

Key exchange

Browser and server agree on a shared secret key, without ever sending that key in the open.

Encrypted from here

Every request and response after this point is encrypted with that key — confidentiality, integrity, and authentication in one pass.