AP Networking • Routing • Path Selection

Routing Metrics Explained

Learn where routing metrics fit in the path-selection process, why “lowest number wins” is incomplete, how metrics differ from longest-prefix matching and route-source preference, and how to use routing artifacts without overclaiming.

Independent AP Networking resource • Updated 2026-09-14 • Includes 24 free digital flashcards
Metric rule: longest-prefix matching answers “which destination prefix?”; preference answers “which route source?”; metric answers “which path within that comparable route set?”
Practice with Flashcards
Three separate decisions

Prefix specificity, route-source preference, and metric are not interchangeable

Students often see several numbers in a routing table and assume the smallest number always wins. Routing decisions are more structured. The router first deals with destination specificity, then with competing ways to reach the same prefix, and only then does metric become meaningful within the relevant set.

Reasoning chain: Destination → Longest matching prefix → Route-source/preference decision → Metric/cost decision → Installed next hop(s) → Forwarding.
Decision ladder

Use this order when a question gives you several route values

1. Match prefixWhich routes contain the destination?
2. Pick specificityWhich matching route has the longest prefix?
3. Compare sourceIf the same prefix is learned different ways, which source is preferred?
4. Compare metricWithin the comparable route set, which path cost is better?
Metric purpose

A routing metric is a protocol-specific idea of path cost

A metric is not a universal physical measurement. It is the value a routing protocol or routing process uses to rank candidate paths under its own rules.

Hop count

Some protocols prefer paths with fewer routing hops.

Link cost

Other protocols use configured or calculated link costs, often influenced by bandwidth or design intent.

Composite ideas

Some routing systems can consider multiple properties such as bandwidth, delay, or other configured values.

Exam trap: metric 10 in one protocol is not automatically “better” than metric 20 in a completely different protocol unless the question defines those values as directly comparable.
Same prefix

Metrics matter most clearly when candidate paths describe the same destination prefix

Path A: 10.20.30.0/24 OSPF cost 40 Path B: 10.20.30.0/24 OSPF cost 15 Same destination prefix Same route source/protocol Preferred path: Path B, cost 15

Because the prefix and route source are comparable, metric is now a meaningful discriminator.

Different prefixes

A lower metric does not beat a more-specific route

Route A: 10.20.30.0/24 metric 100 Route B: 10.20.0.0/16 metric 5 Destination: 10.20.30.50 Winner: 10.20.30.0/24

The /24 wins because longest-prefix matching occurs before metric comparison. The /16's lower metric is irrelevant for this destination as long as the /24 route is active.

Route-source preference

Administrative preference is about trust in how a route was learned

A router may learn the same prefix from a connected interface, static configuration, or multiple routing protocols. It needs a rule for deciding which source is preferred. Different platforms use different terminology and default values, so AP Networking questions should rely on the preference information provided in the prompt rather than treating one vendor's numeric table as universal.

Key distinction: route-source preference compares how the route was learned; metric compares paths within a routing protocol or otherwise comparable candidate set.
Worked case 1

Same prefix, different route sources

10.20.30.0/24 learned by: Static route — preference 10 Dynamic route — preference 110 Assume lower preference value is better. Selected source: Static route

The metric inside the dynamic protocol never gets a chance to compete if the route-source rule already selects the static route for that same prefix.

Worked case 2

Same source, same prefix, different metric

10.20.30.0/24 via R2 metric 25 10.20.30.0/24 via R3 metric 70 Same protocol Same prefix Preferred: R2, metric 25

Now the metric is directly relevant because the candidate routes are otherwise comparable.

Equal-cost paths

Equal metrics can result in multiple active next hops

Many routers can install multiple equal-cost paths when route source, prefix, and cost tie. Traffic may then be distributed across those next hops.

10.20.30.0/24 via R2 cost 20 via R3 cost 20 Possible forwarding state: both next hops active

This is called equal-cost multipath behavior in many environments. It can improve resilience and capacity, but it can also mean different flows take different paths.

Changed metric

Traffic can move even when no physical link fails

Before: WAN-A cost 10 WAN-B cost 30 Preferred → WAN-A After tuning: WAN-A cost 40 WAN-B cost 30 Preferred → WAN-B

Nothing had to go physically down. A metric change alone can alter the preferred path.

★ Routing Practice • Routing Metrics Explained

A five-minute warm-up for Routing Metrics Explained

Tomorrow’s opening question can pick up where this page leaves off: have students trace the connection and explain why traffic takes that path. The 300 Bell Ringers give you short questions and teacher answers you can use without preparing a new starter each morning.

300 AP Networking Bell Ringers
$74.99
BUY TEACHER PACK → See what is included in the 300 Bell Ringers →
Instant Access • Full-Year Teacher Resource
Troubleshooting implication: a changed traceroute or path does not automatically prove a link failure. Check routing state and metric changes.
Failure vs preference

A metric problem and a reachability problem are different failure classes

Preference problem

Traffic reaches the destination, but it takes an undesired or expensive path. Metric or routing policy may need adjustment.

Reachability problem

The route is missing, next hop is unreachable, interface is down, or return path is broken. Metric tuning alone may not fix anything.

Do not tune blindly

Before changing metrics, identify why the current path is installed

Checklist: 1. Destination prefix 2. Longest match 3. Route source 4. Preference value 5. Metric/cost 6. Next hop 7. Outgoing interface 8. Operational reachability

If the wrong prefix is winning, metric tuning may be irrelevant. If the desired route is absent entirely, changing another route's metric does not magically create the missing route.

Metric evidence

What a metric value proves—and what it does not prove

ArtifactSupportsStill unproven
OSPF path cost 10Protocol-assigned path costThat the route wins over a more-specific prefix
Lower metric than another same-prefix OSPF pathPreference within that comparable OSPF setEnd-to-end application success
Equal-cost next hopsMultiple equally preferred paths may be installedEvery packet uses both paths equally
Metric changed after configurationRouting preference may shiftThat a physical fault caused the shift
Preferred route installedControl-plane selection succeededNext-hop and return-path health

Swipe horizontally to see the full evidence-boundary table.

Routing Lab • 120 Missions

Let students try Routing Metrics Explained for themselves

Reading the explanation is a start. In the browser simulator, students work through a broken network, choose what to test and see whether their fix worked. It gives them another chance to use what they learned about Routing Metrics Explained.

AP Networking Browser Troubleshooting Simulator
$29.99
120 Missions • 60 Failure Patterns • Offline Copy
GET THE SIMULATOR → See all 120 missions & features
Control plane vs data plane

The best route can be selected correctly and forwarding can still fail

The routing process may choose the intended route based on prefix, preference, and metric. But actual packet forwarding still depends on interface state, next-hop resolution, neighboring devices, security policy, and the return path.

Important: “the routing metric chose the right path” is a control-plane conclusion. It does not prove the full data-plane transaction succeeds.
Worked case 3

Lower metric path exists, but the next hop is unreachable

10.20.30.0/24 via 192.168.1.2 metric 10 10.20.30.0/24 via 192.168.1.3 metric 30 Selected: 192.168.1.2 Observed: neighbor resolution for 192.168.1.2 fails

The metric comparison correctly chooses the lower-cost path, but forwarding fails at the next-hop boundary. This is why route selection and route usability must stay separate.

Routing Exam Practice • Routing Metrics Explained

Check whether Routing Metrics Explained has really stuck

Once students have worked through this topic, give them questions mixed in with the rest of the course. The Exam Prep Vault includes practice exams, multiple-choice questions and artifact labs so they cannot rely on a chapter heading to tell them what to do.

AP Networking Complete Exam Prep Vault
$39.99
GET THE EXAM PREP VAULT → See the Exam Prep Vault contents →
4 Practice Exams • 320 MCQs • 60 Artifact Labs
Worked case 4

More-specific route overrides a “better” metric on a broader route

10.0.0.0/8 via R1 metric 1 10.20.30.0/24 via R2 metric 100 Destination: 10.20.30.77 Selected: 10.20.30.0/24 via R2

Metric 1 does not rescue the /8 because the /24 is the more-specific match.

Worked case 5

Route source preference beats metric when the sources are different

Same prefix: Static route preference 5 Dynamic route preference 100, metric 1 Assume lower preference is better. Winner: Static route

The dynamic metric of 1 looks attractive, but it is evaluated inside the dynamic protocol's path set. Route-source preference already decided which source wins for the same prefix.

Premium Routing Feedback

Spend less time marking explanations about Routing Metrics Explained

When students explain their answer, it takes more than a right-or-wrong check to see what they understand. The Grading Copilot helps you review how they used the clues, where their explanation falls short and what feedback to give next. You make the final grading decision.

AP Networking Artifact Analysis Grading Copilot
$49.99
8 Criteria • 5 Task Modes • Offline Premium Copy
GET THE GRADING COPILOT → See the free Copilot preview
Protocol-specific thinking

“Metric” means whatever the protocol defines it to mean

Metric styleWhat it emphasizesStudent caution
Hop countNumber of routing hopsFewer hops do not always mean more bandwidth or lower delay.
Link costProtocol/configured path costCost may be abstract rather than measured latency.
Bandwidth-sensitiveCapacity characteristicsDo not assume the value is raw Mbps.
CompositeMultiple path propertiesInterpret according to the protocol/prompt.

Swipe horizontally to compare metric styles.

Changed-fact drills

Change one fact and watch which decision stage changes

Change #1: prefix

Original: two /24 OSPF routes compete by metric. Changed fact: one becomes /25 and matches the destination. Result: prefix specificity decides before metric.

Change #2: route source

Original: two OSPF paths compete by cost. Changed fact: one route is static and the prompt says static is preferred. Result: route-source preference decides first.

Change #3: metric

Original: equal-cost paths both install. Changed fact: one cost rises. Result: only the lower-cost path remains preferred.

Change #4: next hop

Original: lower-cost route forwards successfully. Changed fact: its next hop becomes unreachable. Result: route usability becomes the troubleshooting boundary.

Failure signature matrix

Use the route artifact to identify the right question

ObservationLikely issueBest next check
Wrong prefix chosenMore-specific route existsPrefix lengths and route table
Right prefix, wrong sourceRoute-source preferenceAdministrative/preference values
Right source, undesired pathMetric/cost selectionProtocol metric values
Preferred route selected but traffic failsNext-hop/data-plane problemNeighbor/interface/ACL/return path
Two equal-cost paths activeECMP behaviorForwarding hash/path observations

Swipe horizontally to see the troubleshooting matrix.

NEW • COMPLETE 180-DAY TEACHER CURRICULUM

Teach Routing Metrics Explained as part of a planned school year

This page gives you one topic. The 180-Day Teacher Curriculum puts it into a full course plan, with daily teaching notes, student activities and checks for understanding. Use it when you need to know what comes before this lesson and what to teach next.

AP Networking Complete 180-Day Teacher Curriculum
$199.99
180 Lessons • 180 Daily Simulators • 36 Teaching Weeks
GET THE 180-DAY CURRICULUM → See 3 free curriculum examples
Exam traps

Reject these tempting but incomplete rules

AP explanation pattern

Build answers in this order

1. Prefix: Both routes match the same /24. 2. Route source: Both came from the same protocol. 3. Metric: Path A cost 10; Path B cost 30. 4. Selection: Path A is preferred. 5. Evidence boundary: This proves routing preference, not final application success. 6. Verification: Confirm next-hop reachability and test the destination.
Capstone

Solve a mixed route-selection table without skipping stages

Route 1: 10.0.0.0/8 static preference 20 Route 2: 10.20.0.0/16 OSPF preference 110 cost 5 Route 3: 10.20.30.0/24 OSPF preference 110 cost 50 Route 4: 10.20.30.0/24 OSPF preference 110 cost 10 Destination: 10.20.30.55

First choose the /24 because it is the longest matching prefix. Then compare the two OSPF /24 paths. They have the same route source and preference, so metric becomes decisive: cost 10 wins over cost 50. The static /8 never competes because it is less specific for this destination.

Free digital flashcards

24 routing-metric digital flashcards

Practice prefix specificity, route-source preference, protocol metric, ECMP, path tuning, evidence boundaries, and troubleshooting logic.

All metric cards
Click or press Enter/Space to reveal.
Separate prefix, source preference, and metric.
0 seen•24 cards
Continue studying

Connect metrics to complete routing decisions