How the OSI and TCP/IP models work
medium 40 minA 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
| Thing | Value |
|---|---|
| Ethernet header, trailer | 14 bytes, 4 bytes |
| IPv4 header, IPv6 header | 20 bytes minimum, 40 bytes |
| TCP header, UDP header | 20 bytes minimum, 8 bytes |
| Ethernet MTU, TCP MSS | 1500, 1460 |
| IPv6 minimum MTU | 1280 |
| Linux default TTL | 64 |
| Linux ephemeral ports | 32768 to 60999 |
| Initial retransmission timeout | 1 second (RFC 6298) |
| HTTP, HTTPS, DNS ports | 80, 443, 53 |