OSI and TCP/IP models
OSI model (7 layers)
- Physical: bits, cables, radios
- Data link: frames, MAC, switching (Ethernet)
- Network: IP routing (IPv4/IPv6)
- Transport: TCP/UDP, ports
- Session: session management (often merged into app stacks)
- Presentation: encoding, TLS, serialization
- Application: HTTP, DNS, SSH, SMTP
TCP/IP model (common practical view)
- Link: Ethernet/Wi‑Fi
- Internet: IP
- Transport: TCP/UDP
- Application: HTTP/DNS/SSH/…
Quick mappings
- OSI L3 ≈ IP routing
- OSI L4 ≈ TCP/UDP ports
- “It’s not pinging” → L3/L2
- “DNS fails” → application layer (but depends on L3/L4)
Troubleshooting approach
- Start from the bottom (link/IP) and move up (DNS/HTTP)