Soru

Zorluk: OrtaRouting Concepts and Dynamic Routing Protocols

A core router receives a packet destined for a remote subnet and must select the best path from multiple overlapping entries in its routing database. Place the decision criteria in the exact sequence the routing logic applies them to determine the single active forwarding path.

  1. 1Filter matching routing table entries to find the route with the longest prefix length (most specific subnet mask).
  2. 2Compare the Administrative Distance (AD) values of the remaining matching routes if they originate from different routing sources.
  3. 3Compare the internal metric (cost) among remaining routes learned from the exact same dynamic routing protocol.
  4. 4Install the winning path into the Forwarding Information Base (FIB) or initiate Equal-Cost Multi-Path (ECMP) load balancing if metrics are identical.

Cevap

The router first evaluates the longest prefix match to narrow candidate routes. If multiple routes match the same prefix length, it evaluates Administrative Distance to select the most trustworthy protocol. If routes originate from the same protocol with equal AD, it uses the metric to break the tie, and finally installs the path or enables ECMP load balancing.
The proper decision path evaluation sequence starts with Longest Prefix Match (prefix specificity), followed by Administrative Distance (protocol believability), then internal protocol metric (path cost), culminating in forwarding path installation or load balancing.

Adım Adım Çözüm

1
Evaluate subnet mask prefix length
Candidate routes are narrowed to those with the most specific prefix matching the destination IP.
Prefix length takes absolute precedence over protocol trustworthiness or metric values.
2
Evaluate Administrative Distance
The route with the lowest AD is selected among matching routes with identical prefix lengths.
Administrative distance rates the believability of different routing sources (e.g., OSPF vs. RIP).
3
Evaluate protocol metric cost
The route with the lowest metric cost is chosen if multiple routes come from the same routing protocol.
Metrics are internal values (like hop count or bandwidth cost) used to rank paths within a single protocol instance.
4
Perform FIB installation or ECMP
The single best route is active in the FIB, or traffic is load-balanced across equal-cost paths.
This is the final operational phase of path selection before packet transmission.

Anahtar Kavram

IP Route Selection Decision Process
Bu soruyu puanla