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.
More on Network Models, TCP, UDP & Ports
What are the layers of the OSI model, and why does a DevOps engineer care?BeginnerHow does the TCP/IP model map to the OSI model?BeginnerWhat is the difference between TCP and UDP?BeginnerDescribe the TCP three-way handshake.BeginnerHow does TCP close a connection, and what is TIME_WAIT?IntermediateWhat is a port, and what are well-known, registered and ephemeral ranges?Beginner