简体   繁体   English

为什么路由信息协议 RIP(距离矢量路由协议)不能使用 Dijkstra 而不是 bellman ford?

[英]Why cant Routing Information Protocol RIP (distance-vector routing protocol) use Dijkstra instead of bellman ford?

Hello I am learning networking and am confused about why both the interior routing protocols (RIP and OSPF) use the same algorithm to calculate the shortest path?您好,我正在学习网络,我很困惑为什么内部路由协议(RIP 和 OSPF)都使用相同的算法来计算最短路径? I think I understand how they differ (RIP and OSPF) but am not clear on using a different algorithm for calculating the shortest path?我想我了解它们有何不同(RIP 和 OSPF),但不清楚使用不同的算法来计算最短路径?

RIP was invented a long time before OSPF and for that reason it uses a much simpler algorithm (distance vector) than OSPF (Dijkstra). RIP 比 OSPF 早很长时间发明,因此它使用比 OSPF (Dijkstra) 简单得多的算法(距离矢量)。

Distance vector is much simpler than Dijkstra because it only needs local information from the direct neighbors, whereas Dijkstra requires knowledge of the topology of the entire network.距离向量比 Dijkstra 简单得多,因为它只需要来自直接邻居的本地信息,而 Dijkstra 需要了解整个网络的拓扑结构。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM