cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
507
Views
0
Helpful
0
Replies

Wrong EIGRP Metric Calculation when calculate BW included floating point

halldentong
Level 1
Level 1

Hi all,

 

Can some one help me out and expalain this calculation with wrong metric output? is it a bug?

Show eigrp topology 6.0.0.0/8 with following BW and Delay for EIGRP metric calculation

Minimun bandwidth = 30000 Kbit

Total Delay = 1130 microseconds

 

Calculation 1 without floating point value when calculate BW

 

BW = (10000000/30000) * 256

BW = (333.33333333333333333333333333333) * 256

rounded 333.33333333333333333333333333333 to integer 333

BW = 333 * 256 = 85248

Delay = (1130/10) * 256 = 28928

Metric = 85248 + 28928 = 114176

114176 does not match the metric output from show ip eigrp topology.

 

Wrong Metric on NX-OS.jpg

So calculate again with floating point in BW, then I found the answer correct which sames different than what we know.

 

Calculation 2 with floating point value when calculate BW

 

BW = (10000000/30000) * 256

BW = (333.33333333333333333333333333333) * 256

BW = 333 * 256 = 85333.333333333333333333333333333

Delay = (1130/10) * 256 = 28928

Metric = 85333.333333333333333333333333333 + 28928

Metric = 114261.33333333333333333333333333

After rounded to integer, we got 114261 match the metric output from show ip eigrp topology.

0 Replies 0
Review Cisco Networking for a $25 gift card