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

What are the layers of the OSI model, and why does a DevOps engineer care?

BeginnerConceptNetwork Models, TCP, UDP & Ports
Answer

Seven layers: Physical, Data Link, Network, Transport, Session, Presentation, Application. In practice we use it as a shared vocabulary for where a problem lives: L2 is MAC/switching/VLANs, L3 is IP/routing, L4 is TCP/UDP ports, L7 is HTTP/DNS/TLS-aware behavior.

When someone says "L4 load balancer" or "L7 WAF" or "security groups are L3/L4", they are telling you what the device can see. An NLB sees IPs and ports only; an ALB can route on host header and path.

All Networking questions Roadmap: Networking for DevOps

More on Network Models, TCP, UDP & Ports