Loading learning content...
We've explored individual routing metrics—hop count, bandwidth, delay, and reliability—each capturing a single dimension of path quality. But real network paths exhibit all these characteristics simultaneously. A path might offer high bandwidth with high delay, or low delay with questionable reliability. How do routing protocols reconcile these competing considerations?
The answer lies in composite metrics: mathematical formulas that combine multiple individual metrics into a single value for path comparison. Composite metrics represent the most sophisticated approach to routing metric design, enabling nuanced trade-offs between competing network characteristics.
By the end of this page, you will understand how composite metrics combine individual metrics into unified path costs, master EIGRP's composite metric formula and K-value tuning, learn traffic engineering techniques through metric manipulation, appreciate the trade-offs between metric complexity and operational simplicity, and recognize when composite metrics provide value versus unnecessary complexity.
Single-dimensional metrics inevitably make trade-offs that may not align with network requirements. Consider these scenarios where individual metrics fail:
| Metric Used | Scenario | Problem |
|---|---|---|
| Hop Count | 2-hop path over 56Kbps vs 3-hop path over 10Gbps | Selects the dramatically slower path |
| Bandwidth Only | Two 10Gbps paths: one 10ms delay, one 500ms delay | Cannot prefer the lower-latency path |
| Delay Only | Low-delay 100Mbps path vs higher-delay 10Gbps path | May prefer slow path for bulk transfers |
| Reliability Only | 100% reliable 56Kbps path vs 99.9% reliable 10Gbps path | Overweights minor reliability differences |
The Multi-Objective Optimization Problem:
Path selection is inherently a multi-objective optimization problem. We want paths that are:
These objectives often conflict—high-bandwidth submarine cables have higher delay than terrestrial paths; the most reliable paths may not be the fastest. Composite metrics provide a framework for making principled trade-offs.
The Generic Composite Metric Concept:
Composite Metric = f(Bandwidth, Delay, Reliability, Load, ...)
Where f() is a function that:
1. Normalizes different metrics to comparable scales
2. Applies weighting factors based on priorities
3. Produces a single comparable value for path selection
The specific function varies by protocol, but the concept remains consistent: transform multiple dimensions into one.
OSPF deliberately avoids composite metrics, using bandwidth-only cost for simplicity and stability. EIGRP embraces composite metrics for flexibility. IS-IS uses configurable costs similar to OSPF. BGP uses attribute-based selection rather than numeric metrics. Each approach reflects different design philosophies and target use cases.
EIGRP (Enhanced Interior Gateway Routing Protocol) provides the most widely deployed composite metric implementation. Understanding EIGRP's formula reveals how composite metrics work in practice.
1234567891011121314151617181920212223242526272829303132333435363738394041
EIGRP Classic Metric Formula:════════════════════════════════════════════════════════════════════════ Metric = [K1 × BW + K2 × (BW / (256 - Load)) + K3 × Delay] × [K5 / (K4 + Reliability)] Then multiply entire result by 256 for final metric value. Component Definitions:─────────────────────────────────────────────────────────────────────────BW (Bandwidth) = 10^7 / minimum_bandwidth_in_Kbps → Uses MINIMUM bandwidth along entire path (bottleneck) → Higher bandwidth → Lower BW value → Better metric Delay = Sum of interface delays in tens of microseconds / 10 → Uses SUM of delays along path (cumulative) → Lower delay → Better metric Load = Interface utilization (1-255, where 255 = 100% loaded) → Higher load → Worse metric → Value of 1 means essentially unloaded Reliability = Success rate (1-255, where 255 = 100% reliable) → Higher reliability → Better metric → Value of 255 means perfect reliability K Values (Weights):─────────────────────────────────────────────────────────────────────────K1 = Bandwidth weight (default: 1)K2 = Load weight (default: 0 - DISABLED)K3 = Delay weight (default: 1)K4 = Reliability weight (default: 0 - DISABLED)K5 = Reliability weight (default: 0 - DISABLED) Default Simplified Formula (K1=1, K2=0, K3=1, K4=0, K5=0):═════════════════════════════════════════════════════════════════════════When K4=0 and K5=0, the reliability term [K5/(K4+Rel)] becomes 1.When K2=0, the load term disappears. Metric = (BW + Delay) × 256 This is the formula used in almost all production EIGRP deployments!Why Bandwidth Uses Minimum (Bottleneck):
EIGRP uses the minimum bandwidth along the path rather than summing bandwidths. This reflects physical reality: the effective throughput of a path is limited by its slowest link.
Path: 10Gbps → 1Gbps → 10Gbps
Effective throughput: 1Gbps (the bottleneck)
EIGRP BW component = 10^7 / 1,000,000 = 10
(Not 10^7 / 21,000,000 which would be incorrect)
Why Delay Uses Sum (Cumulative):
Unlike bandwidth, delay adds up. Each link contributes its delay to the total.
Path: 10ms + 5ms + 10ms = 25ms total
EIGRP Delay = 25000 tens of microseconds / 10 = 2500
This asymmetry—minimum for bandwidth, sum for delay—accurately models how paths behave physically.
All EIGRP neighbors MUST use identical K values. Mismatched K values prevent neighbor formation—the routers will not form adjacency. This is a safety mechanism: routers using different formulas would calculate different metrics, leading to routing inconsistencies. Always verify K values match when troubleshooting EIGRP adjacency failures.
Let's work through complete EIGRP metric calculations to build intuition for how composite metrics behave in practice.
BW component = 10^7 / 100,000 = 100. Delay component = 110 / 10 = 11. Metric = (100 + 11) × 256 = 28,416. The 100 Mbps link dominates the bandwidth component; both links contribute to delay.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
Example 2: Comparing Two Paths (Default K values)════════════════════════════════════════════════════════════════════════ ┌── 10Gbps / 100μs ──┐Source ── R1 ───────┤ ├─── Destination └── 1Gbps / 50μs ────┘ Path A: 10 Gbps, 100μs delay─────────────────────────────────────────────────────────────────────────BW = 10^7 / 10,000,000 Kbps = 1Delay = 100 / 10 = 10Metric = (1 + 10) × 256 = 2,816 Path B: 1 Gbps, 50μs delay─────────────────────────────────────────────────────────────────────────BW = 10^7 / 1,000,000 Kbps = 10Delay = 50 / 10 = 5Metric = (10 + 5) × 256 = 3,840 Result: Path A is preferred (lower metric: 2,816 < 3,840)─────────────────────────────────────────────────────────────────────────Despite Path B having HALF the delay, Path A's 10× bandwidth advantagemakes it preferred overall. The composite metric balances both factors. ═══════════════════════════════════════════════════════════════════════ Example 3: When Delay Matters More═══════════════════════════════════════════════════════════════════════ Path C: 10 Gbps, 20,000μs (20ms) delay (satellite)Path D: 1 Gbps, 1,000μs (1ms) delay (terrestrial) Path C Calculation:BW = 10^7 / 10,000,000 = 1Delay = 20,000 / 10 = 2,000Metric = (1 + 2,000) × 256 = 512,256 Path D Calculation:BW = 10^7 / 1,000,000 = 10Delay = 1,000 / 10 = 100Metric = (10 + 100) × 256 = 28,160 Result: Path D preferred (28,160 < 512,256)─────────────────────────────────────────────────────────────────────────The massive delay on the satellite link overwhelms its bandwidth advantage.The composite metric correctly identifies the terrestrial path as better.Key Insights from Examples:
Bandwidth has diminishing returns: The BW formula (10^7 / BW) means the difference between 1 Gbps and 10 Gbps is only 9 units, while the difference between 100 Mbps and 1 Gbps is 90 units. Improving already-fast links has less metric impact.
Delay scales linearly: Each microsecond of delay adds equally to the metric. High-delay links (satellite, intercontinental) accumulate significant metric penalties.
Both factors matter: Neither bandwidth nor delay dominates unconditionally. The metric provides balanced consideration of both.
For quick estimates with default K values: BW component = 10,000 / BW_in_Mbps. So 100 Mbps = 100, 1 Gbps = 10, 10 Gbps = 1. Delay component is just delay_in_μs / 10. Add them and multiply by 256. This approximation helps during troubleshooting and planning.
EIGRP's K values allow administrators to customize how the composite metric weighs different factors. While changing from defaults is rarely recommended, understanding the capability illustrates composite metric flexibility.
| K Value | Default | Purpose | Effect of Increase |
|---|---|---|---|
| K1 | 1 | Bandwidth weight | Bandwidth differences have more impact on path selection |
| K2 | 0 | Load weight | Current utilization affects path selection (NOT recommended) |
| K3 | 1 | Delay weight | Delay differences have more impact on path selection |
| K4 | 0 | Reliability divisor | Enables reliability in metric (NOT recommended) |
| K5 | 0 | Reliability multiplier | Enables reliability in metric (NOT recommended) |
1234567891011121314151617181920
! View current K valuesshow ip protocols | include K! K1=1, K2=0, K3=1, K4=0, K5=0 (defaults) ! Syntax for changing K values (NOT recommended for production)router eigrp 100 metric weights TOS K1 K2 K3 K4 K5 ! Example: Make delay twice as important as bandwidth! (Theoretical - use with extreme caution!)router eigrp 100 metric weights 0 1 0 2 0 0 ! K1=1 (bandwidth normal) ! K3=2 (delay doubled) ! Result formula becomes:! Metric = (BW + 2×Delay) × 256 ! WARNING: All EIGRP routers must have matching K values!! Mismatched K values = no adjacency formationWhy K2 (Load) and K4/K5 (Reliability) Are Disabled:
As discussed in previous pages, dynamic metrics cause routing instability:
Load (K2=0 by default):
Reliability (K4=0, K5=0 by default):
Scenarios Where K-Value Tuning Might Be Considered:
While rare, some scenarios theoretically warrant K-value changes:
In virtually all production networks, default K values (K1=1, K2=0, K3=1, K4=0, K5=0) are appropriate and recommended. K-value tuning introduces complexity, requires network-wide coordination, and rarely provides meaningful improvement. Cisco TAC strongly advises against enabling K2, K4, or K5. If you think you need to change K values, reconsider your network design first.
Classic EIGRP metrics were designed for networks of the 1980s-1990s. As bandwidth increased dramatically, the classic formula encountered scaling limitations. EIGRP Wide Metrics (introduced with EIGRP Named Mode) address these issues.
| Characteristic | Classic Metrics | Wide Metrics |
|---|---|---|
| Metric value size | 32-bit integer | 64-bit integer |
| Maximum bandwidth | ~10 Gbps effective discrimination | Up to 4.2 Tbps |
| Delay resolution | Tens of microseconds | Picoseconds |
| High-speed differentiation | Poor (10G, 40G, 100G all similar) | Excellent granularity |
| Configuration mode | Classic 'router eigrp ASN' | Named mode 'router eigrp NAME' |
| Backward compatibility | N/A | Automatic conversion when needed |
The High-Speed Problem:
With classic metrics, high-speed links become indistinguishable:
BW calculation = 10^7 / BW_in_Kbps
10 Gbps: 10^7 / 10,000,000 = 1
40 Gbps: 10^7 / 40,000,000 = 0.25 → rounds to 1
100 Gbps: 10^7 / 100,000,000 = 0.1 → rounds to 1
All three calculate to the same BW component of 1!
Wide Metrics Solution:
Wide metrics scale the formula to provide differentiation:
Wide BW = 10^7 × 65536 / BW_in_Kbps
10 Gbps: 655,360,000 / 10,000,000 = 65,536
40 Gbps: 655,360,000 / 40,000,000 = 16,384
100 Gbps: 655,360,000 / 100,000,000 = 6,554
Now we have meaningful differentiation!
12345678910111213141516171819202122
! EIGRP Named Mode Configuration (enables wide metrics)router eigrp ENTERPRISE address-family ipv4 unicast autonomous-system 100 topology base ! Wide metrics enabled by default in named mode exit-topology network 10.0.0.0 0.255.255.255 ! Interface-specific settings af-interface GigabitEthernet0/0 bandwidth-percent 50 hello-interval 5 exit-af-interface ! Verificationshow eigrp protocols! Look for: "Metric weight K1=1, K2=0, K3=1, K4=0, K5=0, K6=0 (extended)"! K6 is new in wide metrics show eigrp address-family ipv4 topology all-links! Metrics now show with 64-bit precisionWhen migrating from classic to named mode EIGRP, the protocol automatically handles metric conversion between neighbors using different modes. Internal calculations use wide metrics, but advertisements to classic neighbors are scaled appropriately. This allows gradual migration without network disruption.
Composite metrics—or their components—can be strategically manipulated to influence traffic flow. This practice, known as metric-based traffic engineering, allows network engineers to implement routing policies without complex policy routing configurations.
12345678910111213141516171819202122232425262728293031323334353637383940
! ═══════════════════════════════════════════════════════════════! OSPF Traffic Engineering - Reference BW = 10 Gbps (10000)! ═══════════════════════════════════════════════════════════════ ! Scenario 1: Primary/Backup Design! ─────────────────────────────────────────────────────────────────! Primary: 10 Gbps fiber (auto-cost = 1)interface TenGigabitEthernet0/0 description Primary WAN ! Uses auto-calculated cost = 10000/10000 = 1 ! Backup: 1 Gbps (should be last resort)interface GigabitEthernet0/1 description Backup WAN - Emergency Only ip ospf cost 1000 ! Traffic only uses this when primary is down ! ═══════════════════════════════════════════════════════════════ ! Scenario 2: ECMP Load Balancing! ─────────────────────────────────────────────────────────────────! Two parallel paths - want 50/50 traffic splitinterface GigabitEthernet0/0 ip ospf cost 100 interface GigabitEthernet0/1 ip ospf cost 100 ! Equal costs = ECMP; both paths used simultaneously ! ═══════════════════════════════════════════════════════════════ ! Scenario 3: Maintenance Preparation! ─────────────────────────────────────────────────────────────────! Before maintenance, drain traffic by increasing costinterface GigabitEthernet0/0 ip ospf cost 65000 ! Traffic shifts to alternatives ! Wait for in-flight sessions to complete ! Then perform maintenance safelyIn EIGRP, manipulating bandwidth affects the minimum (bottleneck) calculation—it only matters if you're reducing below the current minimum. Manipulating delay adds cumulatively to all paths through that interface. For predictable traffic engineering, delay manipulation is often more controllable because its effect is additive rather than conditional.
With OSPF using simple bandwidth-derived costs and EIGRP offering sophisticated composite metrics, which approach is better? The answer depends on network requirements and operational capabilities.
Operational Reality:
In practice, the sophistication gap is smaller than it appears:
OSPF with manual tuning can achieve similar results to EIGRP's composite metric by manually setting costs to reflect delay where needed.
EIGRP with defaults uses only bandwidth and delay, which OSPF administrators can replicate through cost configuration.
Neither protocol typically uses dynamic load or reliability in production—the problematic features are disabled.
Modern overlay solutions (SD-WAN) increasingly handle application-aware routing, reducing the importance of IGP metric sophistication.
When Composite Metrics Provide Clear Value:
Choose your routing protocol based on overall requirements (vendor support, convergence speed, scalability), not just metric sophistication. Either OSPF or EIGRP, properly configured, can provide excellent routing in most environments. The 'best' metric is the one your operations team understands and can troubleshoot at 3 AM during an outage.
We've completed our exploration of routing metrics with composite metrics—the sophisticated approach to combining multiple path characteristics into unified values for comparison. Let's consolidate our knowledge from this page and the entire module:
| Metric | What It Measures | Protocol Usage | Key Characteristic |
|---|---|---|---|
| Hop Count | Router traversals | RIP, RIPng | Simplest; ignores link quality |
| Bandwidth | Link capacity | OSPF (cost), EIGRP | Most common; inversely proportional |
| Delay | Propagation + transmission time | EIGRP | Cumulative; static values used |
| Reliability | Delivery success probability | EIGRP (disabled) | Dynamic; causes instability |
| Composite | Combined factors | EIGRP | Flexible; requires understanding |
Module Conclusion:
Routing metrics form the decision-making foundation of network routing. From the primitive simplicity of hop count through the sophistication of composite metrics, each approach represents trade-offs between accuracy, stability, and operational complexity.
The key insights for network engineers:
Understand your metrics: Know exactly how your routing protocol calculates costs and what factors influence path selection.
Configure appropriately: OSPF reference bandwidth and EIGRP bandwidth/delay settings must reflect your actual network.
Prefer stability: Avoid dynamic metrics (load, reliability) in production; architectural redundancy provides more reliable outcomes.
Use metrics for engineering: Strategic metric manipulation enables traffic engineering without complex policy configurations.
Match complexity to need: Don't use sophisticated features you can't troubleshoot. Simple, understood configurations beat complex, mysterious ones.
With this foundation in routing metrics, you're prepared to understand how routing protocols like RIP, OSPF, EIGRP, and BGP use these metrics to build and maintain routing tables across networks of any scale.
Congratulations! You've completed the Routing Metrics module. You now understand hop count, bandwidth, delay, reliability, and composite metrics—the fundamental building blocks that routing protocols use to determine optimal paths through networks. This knowledge is essential for network design, troubleshooting, and optimization.