AlgoViz

How the OSI and TCP/IP models work

medium 40 min

A network request is a message wrapped in headers, one per layer, like dolls inside dolls.

What each level should show

The same question is judged differently for mid, senior and staff.

  • Junior

    Must show

    • Names both models and maps them
    • Headers and PDUs per layer
    • TCP handshake, TCP versus UDP

    Will be probed on

    • Where DNS and TLS sit
    • What a switch and a router read

    Stands out

    Explains encapsulation with real header sizes.

  • Mid

    Must show

    • Refused versus timeout
    • ARP, routing, NAT
    • The URL question layer by layer

    Will be probed on

    • TTL and traceroute
    • Ephemeral ports

    Stands out

    Names the command and expected output for each layer.

  • Senior

    Must show

    • MTU and path MTU discovery
    • L4 versus L7 proxies and 502 or 504 causes
    • Window and round-trip limits

    Will be probed on

    • Where layering breaks
    • QUIC

    Stands out

    Debugs from symptoms to one layer quickly and explains the evidence.

  • Staff

    Must show

    • Kernel ownership of each layer
    • Captures on both ends
    • Cloud and container data paths

    Will be probed on

    • NAT and conntrack at scale
    • Offloads

    Stands out

    Turns the layers into monitoring: which signal would show each layer failing.