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.

Numbers that decide

Work out a number when the answer changes what you build.

Know cold

Numbers worth having ready

ThingValue
Ethernet header, trailer14 bytes, 4 bytes
IPv4 header, IPv6 header20 bytes minimum, 40 bytes
TCP header, UDP header20 bytes minimum, 8 bytes
Ethernet MTU, TCP MSS1500, 1460
IPv6 minimum MTU1280
Linux default TTL64
Linux ephemeral ports32768 to 60999
Initial retransmission timeout1 second (RFC 6298)
HTTP, HTTPS, DNS ports80, 443, 53