Routing
Also called: IP routing, packet forwarding, longest-prefix match
Routing establishes how network destinations can be reached; forwarding applies that information to individual packets. A router’s forwarding table maps destination prefixes to next hops or outgoing interfaces. Routes may be configured manually or learned through routing protocols.
When both 192.0.2.0/24 and 192.0.2.64/26 match destination 192.0.2.70, ordinary destination-based IP forwarding selects the more specific /26 entry. A default route matches when no more specific entry applies. This longest-prefix choice does not mean that every router knows a packet’s entire future path or chooses the geographically shortest journey.
- Read first
- IP address and subnet
- Related
- IP address and subnet, Internet Protocol, ICMP, BGP, OSPF
- Further reading
- IETF RFC 4632 — Classless Inter-domain Routing (CIDR)