Protocols
A protocol is an agreement on the format and order of messages between two programs. The internet stacks them in layers: IP gets a packet to the right machine, TCP or UDP gets it to the right program, and application protocols such as HTTP, DNS and SSH define what the bytes mean. Each page below follows real messages over the wire, step by step.
| Layer | Protocols here | Job |
|---|---|---|
| Application | HTTP, HTTPS, DNS, SSH | Meaning of the messages |
| Transport | TCP, UDP | Ports, reliability, ordering |
| Internet | IP (see IP addressing) | Addressing and routing between networks |
| Link | Ethernet, Wi-Fi, ARP | One hop on a local network |
TCP/IP
The three-way handshake, sequence numbers, retransmission and teardown that make a reliable byte stream.
DNS
How a name becomes an IP: resolvers, root, TLD and authoritative servers, records and TTLs.
HTTP
Requests, responses, methods, status codes, caching, and HTTP/1.1 vs HTTP/2 vs HTTP/3.
HTTPS
The TLS 1.3 handshake, certificates and chains of trust, and how to debug certificate errors.
Start with TCP/IP, then UDP, then the application protocols in any order. To see which of them your machine is using right now:
ss -tuln # TCP and UDP ports listening on this machine
ss -tn state established # open TCP connections and their remote ends
curl -sI https://example.com | head -1 # which HTTP version the server speaks