Dynamic routing in AP Networking
Dynamic routing is when routers automatically build and update their routing tables using a routing protocol, choosing paths based on metrics like hop count or time instead of having each route typed in by hand.
This definition is part of Fiveable's AP Networking review, which also has guided practice questions.
What is dynamic routing?
Dynamic routing is how routers figure out the best path to a destination network on their own. Instead of a human manually typing every route into the table (that's static routing), routers run a routing protocol that lets them talk to each other, share what they know, and update their routing tables when the network changes.
Here's the picture: every routing table entry holds four things, including a metric, which is a cost measure like the number of hops or the time to reach the next hop. A dynamic routing protocol uses an algorithm to compare those metrics and pick the cheapest path. When a link goes down or a faster route opens up, the routers recalculate and reroute automatically. Different protocols use different algorithms, which is why you'll see names like RIP, OSPF, IS-IS, and BGP in Unit 4.
Why dynamic routing matters in AP Networking
This term lives in Unit 4: Managing Our Global Connections, specifically Topic 4.4, and it's the heart of learning objective AP Networking 4.4.B, which asks you to explain how routing protocols and metrics shape which route data follows. Dynamic routing is the "self-adjusting" half of that objective. It's also tied to 4.4.A (how data move between networks through routers and gateways) and 4.4.C (using traceroute/tracert to actually see the path a packet took). If you understand dynamic routing, you understand why the internet keeps working even when individual links fail.
Keep studying AP Networking Unit 4
Official unit cheatsheet
open one-pagerHow dynamic routing connects across the course
Routing protocol and routing metric (Unit 4)
Dynamic routing is the big idea; a routing protocol is the specific rulebook that makes it happen, and the metric is the number the protocol compares. Think of the protocol as the language routers speak and the metric as the score they argue over.
Hop count and link-state routing (Unit 4)
These are two different ways a dynamic protocol can measure "best." RIP counts hops (fewest routers wins), while link-state protocols like OSPF build a full map of the network and calculate the shortest path, which is usually smarter for larger networks.
Next hop and the routing table (Unit 4)
Dynamic routing doesn't just pick a destination, it fills in the next hop, which is the very next router the packet goes to. Each router only needs to know the next step, and the chain of next hops is what actually delivers your data across the internet.
Network Address Translation (Unit 4)
NAT and dynamic routing both happen as data leave your network, but they solve different problems. NAT swaps private IPs for a public one so inside devices can reach the outside, while dynamic routing decides which path that outbound traffic actually takes once it's past the gateway.
Is dynamic routing on the AP Networking exam?
Expect multiple-choice questions that ask you to tell dynamic routing apart from static routing, or to match a protocol (RIP, OSPF, IS-IS, BGP) to the kind of metric it uses. You might be shown a scenario where a link fails and asked what dynamic routing does in response (answer: the routers recalculate and find a new path). No released FRQ uses the phrase "dynamic routing" verbatim, but the concept supports any question built on 4.4.B about how metrics decide a path, and it pairs naturally with traceroute/tracert tasks from 4.4.C where you read the actual hops a packet took. Be ready to explain why a protocol chose one route over another based on its metric.
Dynamic routing vs static routing
Static routing means a human manually types each route into the table, and those routes don't change unless someone edits them. Dynamic routing means a protocol builds and updates the table automatically. Static is predictable but can't adapt when a link dies; dynamic adapts on its own but takes more router resources to run the protocol.
Key things to remember about dynamic routing
Dynamic routing means routers automatically learn and update their routing tables using a routing protocol, with no human typing in each route.
The protocol picks paths by comparing metrics, which are cost measures like hop count or response time, and the lowest-cost path wins.
When a link fails or a better path appears, dynamic routing recalculates and reroutes traffic on its own, which is why the internet is resilient.
Different dynamic protocols use different algorithms, so RIP, OSPF, IS-IS, and BGP can each choose different "best" routes.
This all lives in Unit 4 Topic 4.4 and is the core of learning objective AP Networking 4.4.B about how protocols and metrics shape routing.
Frequently asked questions about dynamic routing
What is dynamic routing in AP Networking?
Dynamic routing is when routers use a routing protocol to automatically build and update their routing tables, choosing the best path based on a metric like hop count or time. It's covered in Unit 4, Topic 4.4, under objective AP Networking 4.4.B.
Is dynamic routing the same as static routing?
No. Static routing requires a person to manually enter each route, and those routes stay fixed until someone changes them. Dynamic routing lets routers learn and update routes automatically using a protocol, so it adapts when the network changes.
How does dynamic routing decide which path to use?
A dynamic routing protocol runs an algorithm that compares the metric for each possible route, where the metric is a cost like the number of hops or the time to reach the next hop. The route with the lowest metric wins and gets written into the routing table.
What is the difference between dynamic routing and a routing protocol?
Dynamic routing is the overall concept of routers updating paths automatically, while a routing protocol (like RIP, OSPF, or BGP) is the specific set of rules that makes dynamic routing work. You can't have dynamic routing without a protocol running underneath it.
Can I see dynamic routing results with traceroute?
Yes, kind of. traceroute (Mac/Linux) or tracert (Windows) shows the actual hops your packet took and how long each hop responded, which reflects the path dynamic routing chose. Each line is one hop, so you can count hops and spot delays or failures along the route.
Keep studying AP Networking
Connect this key term to the AP exam workflow: review the course, practice questions, and check related study tools.