路由協議使用量度來確定當有兩路有效路由可以送往同一目標文件時,把路由表放入哪個路由中。路由器把路由表放入量度最小的路由中,因為它認為這個路由是最近的因此是最好的。
與管理間距相反,量度只有一個路由協議。他們不能處理多個資源庫中路由。
例如:輸入一個show ip eigrp topology命令:
P 10.55.103.0/24, 1 successors, FD is 6049536
via 10.220.100.1 (6049536/5537536), Serial3/0
via 10.55.100.14 (52825600/281600), Tunnel55
注意這個EIGRP路由協議有兩路路由輸送給這個網絡。但是,這個路由器只接受路由表中量度最短的其中一個路由。這有一個關于路由表條目的例子:
Router# show ip route 10.55.103.0
Routing entry for 10.55.103.0/24
Known via "eigrp 100", distance 120, metric 6049536, type internal
Redistributing via eigrp 100
Last update from 10.220.100.1 on Serial3/0, 00:56:12 ago
Routing Descriptor Blocks:
* 10.220.100.1, from 10.220.100.1, 00:56:12 ago, via Serial3/0
Route metric is 6049536, traffic share count is 1
Total delay is 41000 microseconds, minimum bandwidth is 512 Kbit
Reliability 226/255, minimum MTU 1500 bytes
Loading 1/255, Hops 2
不同的路由協議對量度有不同的算法。RIP的算法是基于跳數的,OSPF是基于帶寬,而EIGRP根據帶寬、延滯時間、負荷和可靠度來決定的。