Open In App

EIGRP Cost Calculation

Prerequisite – EIGRP 

As Enhanced Interior Gateway Routing Protocol (EIGRP) is a hybrid vector routing protocol as it contains features of both distance vector routing protocol and link-state routing protocol. It is a network layer protocol which uses protocol number 88. 



Cost Calculation – Composite matrix is used to calculate the cost and also used for neighbourship discovery purpose. It has values: 

K1(bandwidth)- 1 



K2(load)- 0 

K3(delay) -1 

K4(reliability)- 0 

K5(MTU)-0 

As only bandwidth and delay is used to calculate the cost. The formula used for cost calculation is: 

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

As values of K1 and K3 are set to 1, and K2, K4 and K5 are set to 0. Therefore the formula becomes: 

Metric = 256*( Bandwidth +Sum of all Delay) 

Where the bandwidth = (10^7/least bandwidth) and 

Delay = (sum of all delays /10) 

The bandwidth is the lowest bandwidth between the source and destination and the delay is the cumulative interface delay along a path between source and destination. 

Some important terms are:

Reliable Transport Protocol – 

EIGRP uses RTP for the exchange of EIGRP messages between the neighboring EIGRP routers. EIGRP sends multicast messages at 224.0.0.10. The list is built and maintained of which neighbors have acknowledged the messages. In case, if the neighbor doesn’t acknowledge the message then messages are unicast to the neighboring router 16 times. If there is no reply even after the unicast messages then the neighbor is declared dead. This is known as a reliable multicast. 

Diffusing Update Algorithm (DUAL) – 

DUAL maintains several metrics about the paths, including the successor, feasible distance, feasible successor, reported distance and feasible condition.DUAL is used to prevent routing loops by continuously computing the routes. It finds the shorter loop-free path from the router to a destination network. There are 2 scenarios in DUAL:

  1. When the successor path goes down, the router will search for a feasible successor. If a feasible successor is present then it is used
  2. When there are no feasible successors but there are neighbors advertising the destination, a recomputation must occur(query message is multicast). This is the process where a new successor is determined. The amount of time it takes to recompute the route affects the convergence time.
Article Tags :