Interview Prep/Networking/Network Models, TCP, UDP & Ports

What happens at each layer when you curl https://example.com?

AdvancedConceptNetwork Models, TCP, UDP & Ports
Answer

App: curl resolves the name (DNS over UDP/53, possibly via systemd-resolved), builds an HTTP request. Transport: TCP handshake to port 443. Then TLS: ClientHello with SNI, certificate validation, key exchange (1 RTT for TLS 1.3). Network: IP packets routed via the default gateway, NAT possibly at the edge. Link: ARP for the gateway MAC, Ethernet framing.

The server replies in reverse. Seeing this end to end with curl -v --trace-time and tcpdump is how you decide which layer an outage belongs to.

All Networking questions Roadmap: Networking for DevOps

More on Network Models, TCP, UDP & Ports