EIGRP Metric Calculations
๐งฎ EIGRP Metric Calculation Understanding the โBest Pathโ
Enhanced Interior Gateway Routing Protocol (EIGRP) is fundamentally a distance vector routing protocol, but it surpasses older protocols like RIP by using a sophisticated, multi-component metric system. This system determines the โbest pathโ in the network, ensuring rapid convergence and accurate path selection across modern high-speed infrastructures.
If youโre preparing for an interview or want a deep technical revision, mastering EIGRPโs metric formula is essential โ itโs the heart of the protocolโs routing logic.
๐ PART 1: THE BUILDING BLOCKS (VECTOR METRICS)
Unlike RIP, which relies solely on hop count, EIGRP uses multiple vector metrics to calculate the desirability of a route. These are accumulated from the destination back to the source.
EIGRP uses five key vector metrics:
| Metric Component | Description | Technical Details |
|---|---|---|
| Bandwidth (BW) | Lowest configured bandwidth along the entire path | Expressed in kbps. Used as inverse minimum bandwidth, scaled by a factor of 10โท |
| Delay (DLY) | Cumulative transmission delay across all outgoing interfaces | Measured in tens of microseconds (ฮผs) |
| Reliability (REL) | Indicates link quality (error rate) | Value between 1โ255, with 255/255 = 100% reliable |
| Load (LOAD) | Indicates link utilization or congestion | Range 1โ255, where 255 = 100% saturation |
| MTU | Minimum MTU size along the path | Not used in composite metric but carried in vector |
Accumulation Rules:
- Bandwidth: Minimum value across the path
- Delay: Summation of all delays
- Reliability: Minimum value
- Load: Maximum value
- MTU: Minimum value
- Hop Count: Accumulative
โ๏ธ PART 2: THE CLASSIC METRIC FORMULA (32-BIT)
EIGRPโs composite metric is derived from IGRPโs formula, multiplied by 256 to extend it from 24 bits to 32 bits.
๐ Full Formula:
Metric = 256 ร [(K1 ร BW + (K2 ร BW) / (256 - Load) + K3 ร Delay) ร (K5 / (K4 + Reliability))]
Where:
- BW โ Inverse minimum bandwidth (scaled to 10โท)
- Delay โ Total delay in tens of microseconds (ฮผs)
- If K5 = 0, the reliability quotient is defined as 1
โ๏ธ Default K Values:
| Coefficient | Purpose | Default Value | |โโโโโ|โโโ-|โโโโโ-| | K1 | Bandwidth | 1 | | K2 | Load | 0 | | K3 | Delay | 1 | | K4 | Reliability | 0 | | K5 | Reliability | 0 | | K6 | Extended Attributes (Wide Metrics only) | 0 |
Note:
All K-values must match between neighbors for adjacency formation and route exchange.
๐งฎ Simplified Default Formula:
When default K-values are applied:
Metric = 256 ร ( (10โท / Minimum Bandwidth) + Total Delay )
- Bandwidth โ in kilobits per second (kbps)
- Delay โ in tens of microseconds (ฮผs)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ๐ PART 3: WHY WIDE METRICS WERE INTRODUCED โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Classic metrics had scalability issues on high-speed links (1G, 10G, etc.). For instance, both GigabitEthernet and TenGigabitEthernet could result in the same calculated metric โ preventing accurate differentiation of link speeds.
Wide Metrics were introduced to address this issue by providing greater precision and scalability.
๐ง Key Enhancements in Wide Metrics:
- Scaling Factor:
- Classic: ร256
- Wide: ร65,535
- Delay Unit:
- Classic: microseconds (10โปโถ)
- Wide: picoseconds (10โปยนยฒ) โ much finer granularity
- New Coefficient:
- K6 introduced for Extended Attributes (e.g., Jitter, Energy metrics)
๐ Wide Metric Formula:
Wide Metric = 65,535 ร [(K1 ร BW + (K2 ร BW) / (256 - Load) + K3 ร Latency + K6 ร Extended) ร (K5 / (K4+ Reliability))]
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ๐งญ PART 4: CONFIGURATION & KEY TAKEAWAYS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ธ Metric Styles:
| Configuration Mode | Metric Type Used | |โโโโโโโ|โโโโโโ| | Classic Mode | Classic Metric | | Named Mode | Wide Metric |
๐ธ Influencing EIGRP Path Selection:
You can modify EIGRPโs route decision process by tuning metric components:
- Interface Delay
- Adjusting delay affects only EIGRP calculations (preferred method).
- Configured in tens of microseconds.
- Command Example:
1
Router(config-if)# delay <tens-of-microseconds>
- K-Values (Metric Weights)
- Modify the influence of bandwidth, delay, load, or reliability.
- K-values must match between neighbors.
- Command Example:
1
Router(config-router)# metric weights 0 K1 K2 K3 K4 K5
- Offset Lists
- Add a static offset to route metrics to make a path less desirable.
- Commonly used for manual route preference tuning.
- Command Example:
1
Router(config-router)# offset-list <access-list> in/out <offset-value> <interface>
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ๐ SUMMARY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
EIGRP Metric Components: Bandwidth, Delay, Load, Reliability, MTU
โ
Default Calculation Uses: Bandwidth + Delay
โ
Classic Metric: 32-bit; scaled by ร256
โ
Wide Metric: 64-bit-like precision; scaled by ร65,535
โ
Key Configuration Difference: Classic โ Classic Mode; Wide โ Named Mode
โ
Influence Path Selection: Adjust Delay or Offset Lists
โ
Successor Route: The path with the lowest composite metric
โ
Supports: Unequal-cost load balancing using the variance command
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ๐ฏ FINAL THOUGHT: โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ The EIGRP metric formula is the beating heart of EIGRPโs intelligence. It not only determines the successor and feasible successor routes but also enables loop-free convergence and load balancing in real time. Understanding it gives you complete control over how EIGRP โthinksโ when choosing the best path in your network. โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ