Routing
Routing is the process of selecting paths for traffic across interconnected networks. Routers examine destination IP addresses, consult routing tables built from static configuration or dynamic protocols, and forward packets hop by hop toward their destination using the longest prefix match.
itNetworking | OpenSkills.info
Course pathWalk it in order
Look it upDip in anytime
Go furtherLeaves this page
Intro
Routing
Routing moves IP packets across network boundaries. A switch forwards frames within a single broadcast domain; a router forwards packets between different networks by reading destination IP addresses and choosing the best next hop.
Every device connected to a network makes routing decisions. Hosts decide whether to send directly (same subnet) or to the default gateway. Routers decide which of several possible paths leads closest to the destination.
This course covers how routing works at the protocol-independent level: the routing table, forwarding decisions, static routes, dynamic routing protocol categories, route selection, and the design choices that make networks converge, scale, and remain stable.
The routing table
A routing table is a data structure that maps destination network prefixes to next-hop addresses and outgoing interfaces. Every router and every host has one.
A routing table entry contains:
- Destination prefix. A network address and prefix length (e.g.,
10.1.0.0/16). - Next hop. The IP address of the next router toward the destination, or "directly connected" for local networks.
- Outgoing interface. The local interface to send the packet through.
- Metric. A cost value used to compare routes learned from the same protocol.
- Administrative distance. A preference value used to compare routes learned from different sources.
Routes enter the table through three mechanisms: directly connected networks (learned automatically from interface configuration), static routes (configured manually by an administrator), and dynamic routing protocols (learned from neighboring routers).
The forwarding decision
When a packet arrives, the router:
Continue the course
This section is part of the paid course.
See pricing to subscribe, or log in if you already have access.
Where this skill leads
Relevant careers
See how this topic contributes to broader role-level skill maps.
Sources
- https://www.rfc-editor.org/rfc/rfc1812
Supports
- IP forwarding algorithm and longest prefix match rule
- TTL handling and ICMP Time Exceeded generation
- Routing table structure and requirements
- Default route behavior (0.0.0.0/0)
- https://www.rfc-editor.org/rfc/rfc2328
Supports
- Link-state protocol design and SPF computation
- OSPF cost metric derived from interface bandwidth
- Area hierarchy and inter-area summarization
- Hello protocol and adjacency formation
- https://www.rfc-editor.org/rfc/rfc4271
Supports
- Path-vector protocol design
- AS path as loop prevention mechanism
- BGP best path selection algorithm
- Inter-domain routing and policy application
- https://www.cisco.com/c/en/us/support/docs/ip/routing-information-protocol-rip/13769-5.html
Supports
- Administrative distance comparison between routing sources
- Static vs dynamic route characteristics
- Route redistribution concepts
- Distance-vector vs link-state operational comparison
- https://www.rfc-editor.org/rfc/rfc4632
Supports
- CIDR prefix notation replacing classful addressing
- Route aggregation and summarization principles
- Hierarchical address assignment for scalable routing
