PROTOCOL FIELD GUIDE
How IP works
Follow an IPv4 packet through a router. IP supplies addressing and best-effort routing; transport protocols supply ports and additional delivery behavior.
- Default port
- No ports
- Transport / carrier
- Link layer
- Category
- core
1. Choose a next hop
A host compares the destination with its local subnet. Off-subnet traffic is sent to a default gateway at the link layer.
2. Forward across a router
A router selects a route using the destination prefix and decrements TTL. Link-layer addresses change at a routed hop.
3. Respect the path MTU
An IPv4 router can fragment if permitted. With DF set, an oversized packet is dropped and an ICMP error can help path MTU discovery. IPv6 routers do not fragment.
4. Deliver to transport
The destination uses the IP Protocol field to choose TCP, UDP or ICMP. This IPv4 example uses 6 for TCP.
Protocol relationships
Protocols cooperate across layers. Compare the neighboring lessons to distinguish addressing, delivery, application semantics and encryption.
Standards and editorial method
Written and implemented independently by NavSprout. Lessons summarize public protocol standards using synthetic documentation addresses and fictional credentials. Consult the standards for complete wire formats and normative behavior.
RFC 791 ↗ RFC 8200 ↗