Code-Memo

OSI and TCP/IP models

OSI model (7 layers)

  1. Physical: bits, cables, radios
  2. Data link: frames, MAC, switching (Ethernet)
  3. Network: IP routing (IPv4/IPv6)
  4. Transport: TCP/UDP, ports
  5. Session: session management (often merged into app stacks)
  6. Presentation: encoding, TLS, serialization
  7. Application: HTTP, DNS, SSH, SMTP

TCP/IP model (common practical view)

Quick mappings

Troubleshooting approach