routeprotocol.com

EIGRP Path Metric Calculation

Before EIGRP

IGRP uses multiple factors to calculate the metric for a path.

Metric calculation uses bandwidth and delay by default, but can include load and reliability too.

Metric = (K1 * Bandwidth + ( (K2 * Bandwidth) / (256 – Load) ) + K3 * Delay) * ( K5 / (K4 + Reliability)

IGRP uses K values ( K1, K2, K3… ) to define which factors are used in the formula and the associated impact of a factor when calculating the metric.

Bandwidth represents the slowest link in a path, scaled to a 10Gbps link. Link speed is collected from the bandwidth command configured on the interface. Delay is a total measure of delay in path, measured in tens of microseconds.

Classic EIGRP

The EIGRP formula is based on the IGRP metric formula above, except the output is multiplied by 256 to change the metric from 24 bits to 32 bits.

EIGRP Metric = 256 * (K1 * (10,000,000 / Minimum Bandwidth)) + (( 10,000,000 / (K2 * Minimum Bandwidth)) / (256 – Load)) + (K3 * Total Delay) / 10) * K5 / (K4 + Total Reliability)

In a default EIGRP setup, K1 and K3 have the value of 1, and K2, K4, and K5 have the value of 0.

With this default setup, the formula of calculating the metric can be streamlined:

Metric = 256 * (( 10,000,000 / Minimum Bandwidth) + (Total Delay / 10))

If a bandwidth or delay setting is not set on the interface, it may revert to using one of the default values listed in the table below

Interface TypeLink Speed (Kbps)DelayDefault Metric
Serial642000040,512,000
T11544200002,170,031
Ethernet100001000281,600
FastEthernet100000010028160
GigabitEthernet1000000102816
10 GigabitEthernet1000000010512
Default Classic EIGRP Interface Metrics

Wide Metrics

EIGRP includes support for an additional set of metrics beyond the classic set, and that is wide metrics.

Wide metrics address the issue with higher bandwidth interface links coming into play with modern networks and how metric calculation affects them.

Wide metrics includes an additional K value in the formula, K6, that can be set to measure jitter, or other future attributes.

Wide EIGRP changes the scaling in a similar way that EIGRP did to IGRP, except its now 65536 instead of 256, the formula is below:

Wide Metric = 65536 * (((K1 * 10000000) / Minimum Bandwidth) + ((K2 * 10000000) / Minimum Bandwidth) / 256 – Load) + ((K3 * Latency) / 1000000) + (K6 * Extended)) * (K5 / (K4 + Reliability))

Backwards Compatibility Between Metrics

The wide metric system was designed with backwards compatibility. The K values are set to the same values as the classic metric system allowing for adjacency between the routers (routers can only form an adjacency if the K-values remain identical).

EIGRP can also detect if a peer is using the classic metric, and unscale the metric accordingly.


Posted

in

, ,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.