EIGRP Metric
$Metric_{EIGRP} =\begin{cases}[\frac{K_1B+K_2B}{256-L}+K3D)*{\frac{K_5}{R+K_4}}]*256 & K_5!=0\\ [\frac{K_1B+K_2B}{256-L}+K3D)]*256 & K_5=0\end{cases}$
you will have to round down to the nearest integer
• default K values: (K1,K2,K3,K4,K5) = (1,0,1,0,0)
• default EIGRP metric: B+D
• remember it as BuiLDeR 20
• The EIGRP metric is 256 times larger than IGRP metric.

# Metric Components

• Bandwidth – B
• inverse lowest bandwidth along the path in kbps, scaled by 10^7
• Interfaces with bandwidth higher than 10Gbps (10^7 kbps) are considered similar from EIGRP’s metric standpoint (B=1).
$B = \frac{10^7}{\min_{path}(Bandwidth[kbps])}$
• Highest load along the path
• Dynamically determined by the router. It has values starting from 1 (no usage) to 255(fully utilized)
$L = \max_{path}(Load)$
• Delay – D
• cumulative delay along the path in 10s of microseconds
• EIGRP uses Delay to signal an unreachable route, by using the Delay value of 0xFFFFFF
$D = \sum_{path}(Delay[10 \mu s]$
• Reliability – R
• Lowest reliability along the path
• Dynamically determined by the router as the percentage of successfully received packets on the interface scaled by 255. The maximum value of 255 means 100% reliability.
$R=\min_{path} (Reliability)$
• MTU
• MTU is used as a tiebreaker if the metric is the same for more paths
• Largest MTU wins the tiebreak
$MTU = \min_{path}(MTU_{interface})$
• Hop Count
• Not used in the actual metric, but the value is passed from router to router
• There is a default limit of 100 to the number of hops to a destination, but this can be changed up to 255.
$Hop_{count}=\sum_{path}(Hops)$
When route information for a destination is received, it also contains the metric parameters used by the advertising router: Bandwidth, Delay, Load, Reliability, MTU. The receiving router compares the received information with the data it has for the incoming interface so it can find the lowest Bandwidth along the path, the highest Load along the path, the sum of Delays along the path, the lowest Reliability along the path and the lowest MTU along the path. Then, it can apply the formula to find the metric value for each path. The router that advertised the best path is considered the Successor, and the metric for that path is known as „Feasible Distance” (FD)
For each destination, the router also applies the formula on the parameters it received from the advertising router to calculate the metric from that router towards the destination. This is known as the Advertised Distance (AD) or Reported Distance (RD).
Using the DUAL algortithm, EIGRP will consider all paths that have a RD<FD as loop free backup paths and will call the routers advertising them Feasable Successors(FS) for the route. The FS will be kept in the topology table and when the route through the successor fails, the router will imediately use the best FS. For all other routes, DUAL will not consider them as backup paths, because they can be part of a routing loop (even if they aren’t actually). The idea is that if RD>FD, then that router is closer to the destination then us and it should route through us. If we use it as our next hop then it could send it back to us resulting in a routing loop.

# How to modify metric

## Changing metric components

• Bandwidth
1
R(config-if)# bandwidth BANDWIDTH
2
! in kbps
Copied!
• Delay
1
R(config-if)# delay DELAY
2
! in 10s of usec
Copied!
• Load and Reliability cannot be changed manually. They are caculated by the router based on a 5 minute average. The values can be seen using:
1
R# show interface INTERFACE
2
R3#sh int fa0/0 | i MTU|load
3
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
4
Copied!

## Changing K values

1
R(config-router)# metric weights TOS K1 K2 K3 K4 K5
Copied!
Default values for (K1,K2,K3,K4,K5) is (1,0,1,0,0) and only 0 is supported for TOS. K values must match between neighbors.

## Using offset lists

1
R(config-router)# offset-list ACL {in|out} OFFSET
Copied!
Adds the OFFSET to the metric. It can be used to create multiple equal cost links.

# Maximum Hops

Even though EIGRP doesn’t use hop count in it’s metric calculation, it still counts how many hops away is the router that first advertised this network. You can see the hop count value using:
1
R1#show ip eigrp topology 4.4.4.0/24
2
IP-EIGRP (AS 10): Topology entry for 4.4.4.0/24
3
State is Passive, Query origin flag is 1, 1 Successor(s), FD is 2323456
4
Routing Descriptor Blocks:
5
24.0.0.2 (Serial1/0), from 24.0.0.2, Send flag is 0x0
6
Composite metric is (2323456/409600), Route is Internal
7
Vector metric:
8
Minimum bandwidth is 1544 Kbit
9
Total delay is 26000 microseconds
10
Reliability is 255/255
11
12
Minimum MTU is 1500
13
Hop count is 2
Copied!
You can invalidate routes that are more than a number of hops away by running:
1
R(config-router)# metric maximum-hops HOPS
2
!Default: 100
Copied!
All routes that have a hop-count greater than the maximum-hops, will not be added to the routing table.

# Wide metric

Newer IOS implementations support wide metrics, which can differentiate between interfaces higher than 10Gbps. Wide metric uses the following formula: [pmath size=12]K5!WideMetric_EIGRP = [(K1B+K2B/{256-L}+K3D+K6E)*{K5/{R+K4}}]*65535[/pmath]
$Metric_{EIGRP} =\begin{cases}[\frac{K_1T+K_2T}{256-L}+K3D+K_6E)*{\frac{K_5}{R+K_4}}]*256 & K_5!=0\\ [\frac{K_1T+K_2T}{256-L}+K3D+K_6E)]*256 & K_5=0\end{cases}$
where T = Throughput and E = Extended Attributes. See here for details. Supporting Wide metric, requires changes in the EIGRP packets to add the additional information. For this reason, a router will send packets for both standard metric and wide metric, so additional bandwidth will be used. If it detects that all neighbors on an interface support wide metrics, then it will only send this version.