Post

EIGRP Metric Calculations

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 ComponentDescriptionTechnical Details
Bandwidth (BW)Lowest configured bandwidth along the entire pathExpressed in kbps. Used as inverse minimum bandwidth, scaled by a factor of 10โท
Delay (DLY)Cumulative transmission delay across all outgoing interfacesMeasured 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 congestionRange 1โ€“255, where 255 = 100% saturation
MTUMinimum MTU size along the pathNot 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:

  1. Scaling Factor:
    • Classic: ร—256
    • Wide: ร—65,535
  2. Delay Unit:
    • Classic: microseconds (10โปโถ)
    • Wide: picoseconds (10โปยนยฒ) โ€” much finer granularity
  3. 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:

  1. 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>
      
  2. 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
      
  3. 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. โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

๐Ÿ™Œ Connect With Me

GitHub LinkedIn YouTube Gmail

This post is licensed under CC BY 4.0 by the author.