← System Owner · Learner
Lesson 1 of 414 min

TCP (Transmission Control Protocol)/IP (Internet Protocol) and the OSI (Open Systems Interconnection) model — for real

Seven layers, four practical ones. What lives at L2 vs L3, why it matters when you troubleshoot.

Engineer methodically debugging code on-screen
Photo by Christina Morillo on Pexels

OSI model layers (bottom-up): Physical, Data Link, Network, Transport, Session, Presentation, Application. In practice you care about L1 (cables), L2 (MAC (Media Access Control)/switching), L3 (IP/routing), L4 (TCP/UDP (User Datagram Protocol)), L7 (apps).

'Can't reach the server' could be: cable unplugged (L1), wrong VLAN (L2), no route or wrong gateway (L3), firewall dropping port (L4), or app crashed (L7). Knowing which layer narrows the fix.

Diagram · Small-office network
InternetFirewallSwitchPCPCServerAPInternet → Firewall → Switch → Endpoints

TCP is reliable and ordered (web, email, SSH (Secure Shell)). UDP is fast and lossy (DNS (Domain Name System) lookups, VoIP audio).

Key takeaways

Next: DNS — the phone book of the internet →