Build and update tables
Routing finds shortest or best paths from each source to destinations, then fills and updates routing tables.
A richer breakdown of routing tables, default routes, destination-address forwarding, shortest path routing, distance vector, link state, autonomous systems, and common routing protocols.
Routing protocols are network-layer software that implement routing algorithms and support forwarding decisions.
Routing finds shortest or best paths from each source to destinations, then fills and updates routing tables.
Forwarding decides which output interface an incoming packet should use by referring to the routing/forwarding table.
The Internet has too many routers and hosts for one flat table. Hierarchical routing divides the problem into manageable parts.
Routing algorithms often treat the network as a graph so costs can be calculated systematically.
Routers are graph nodes. Physical links are edges. Each edge has a cost such as delay or bandwidth-based cost.
The shortest path is the path with the least total cost. It does not always mean the fewest hops unless hop count is the metric.
A least-cost tree shows the lowest-cost paths from one router to destinations in the routing domain.
Destination-address forwarding applies masks to destination IP addresses and compares results with table entries.
A network-specific route lists a destination network address. It matches many hosts in that network.
A host-specific route lists one destination host address. It is more specific than a general network route.
The default route is used when no more specific route is found. The route 0.0.0.0/0 can match any destination and acts as fallback.
Routing algorithms differ in how routers learn and update route information.
Static routes change slowly and can be entered by an administrator or precomputed offline.
Each node maintains a distance vector table containing distances to destinations. Routers share distance information with neighbors and update minimum costs.
Each router measures the cost to directly connected neighbors, creates link-state packets, floods them, and builds a link-state database. Routers then compute shortest paths.
| Concept | Meaning | Exam clue |
|---|---|---|
| Distance vector | Sends distance information to neighbors | Think table sharing |
| Link state | Floods link facts and builds LSDB | Think map building |
| Static | Configured and slow-changing | No automatic adaptation |
The Internet is divided into autonomous systems to make global routing manageable.
An AS is a single network or group of networks under one administrator and assigned a globally unique AS number.
Interior routing protocols operate inside one autonomous system. Examples listed in the slides include RIP, OSPF, and EIGRP.
Exterior routing connects autonomous systems. BGP is the main protocol between ASs and border gateway routers.
Use this as the last-pass memory page before a quiz or exam.
These questions target the facts, comparisons, and calculations that are easiest to test.
Answer: The default route.
Explanation: A /0 mask can match any destination when no specific route matches.
Answer: DV shares distance tables with neighbors; LS floods link facts and builds a shared database.
Explanation: They learn topology information differently.
Answer: No, hosts normally send to a default router.
Explanation: Routers perform most forwarding decisions.
Answer: BGP.
Explanation: BGP routes between autonomous systems.
Answer: Least total cost according to the metric.
Explanation: Cost may not equal hop count.