资源描述:
《ip路由高级技术(-)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、IP路由协议(一)NE实验室,2008西安邮电学院7/23/20211YangWu-Jun,xi'anInstituteofPostandTelecommuniations什么是路由(Routing)?路由是将一个分组从一个位置转发到另一个位置的过程。在计算机网络中,路由器转发分组的目的地用一个逻辑地址表示。路由器的两个基本功能:Routing学习网络的拓扑结构-构造路由表Forwarding将分组从入端口转发到去往目的地的出端口7/23/20212YangWu-Jun,xi'anInstituteofPostandTelecommuniat
2、ions执行路由功能的需要哪些信息设备上必须有相应的路由协议组件路由设备必须知道相应的目的网络路由表上是否有相应的路由项?路由当前是否可用?哪一个出端口代表最佳路径?拥有最小metric值的路径优先等值路径则负荷分担7/23/20213YangWu-Jun,xi'anInstituteofPostandTelecommuniations路由信息大部分路由信息都已经包含在路由表中!rip172.16.8.0[100/118654]via172.16.7.9,00:00:23,Fei-0/1rip--Howtheroutewaslearned(r
3、ip)172.16.8.0--Destinationlogicalnetworkorsubnet[100--Administrativedistance(trustworthinessfactor)/118654]--Metricvalue(reachability)via172.16.7.9--Next-hoplogicaladdress(nextrouter)00:00:23--Ageofentry(inhours:minutes:seconds)Fei-0/1--Interfacethroughwhichtheroutewaslearn
4、edandthroughwhichthepacketwillleave7/23/20214YangWu-Jun,xi'anInstituteofPostandTelecommuniations管理距离(AdministrativeDistance)管理距离提供了一种路由协议的选择方式管理距离越小,则路由的可信度越高手工输入的静态路由由于通过路由协议学到的动态路由使用复杂metrics计算方式的路由协议优先级高于计算简单的路由协议7/23/20215YangWu-Jun,xi'anInstituteofPostandTelecommuniati
5、ons管理距离实例表Connectedinterface0Staticrouteoutaninterface0Staticroutetoanexthop1EIGRPsummaryroute5ExternalBGP20InternalEIGRP90IGRP100OSPF110IS-IS115RIPv1,v2120EGP140ExternalEIGRP170InternalBGP200Unknown255RouteSourceDefaultDistance7/23/20216YangWu-Jun,xi'anInstituteofPostandTe
6、lecommuniations路由选择路由协议为每个目的网络保持一条无环路的路径路由和metric值一起在路由器间广播到一个目的网络路径的metric值等于由构成该路径的所有中间链路的metric值之和选路过程就是根据metric值选择一条到目的网络的最优路径。假如到同一目的网络存在多条路径Metric值相等,则可以使用多路径。7/23/20217YangWu-Jun,xi'anInstituteofPostandTelecommuniationsRIP路由的MetricsRIP使用跳数作为路由的metric值使用一个邻居的接口就是1跳RIP
7、路由进程会从多条等值路由中任意选一条,加入路由表TR10.05.15.25.35.4C4.0dirconnSer0C5.0dirconnEth0R10.0[120/4]via5.2,Eth0R10.0[120/4]via5.3,Eth0R10.0[120/4]via5.4,Eth04.0FDDI7/23/20218YangWu-Jun,xi'anInstituteofPostandTelecommuniations路由器转发分组路由协议维持和邻接路由器的邻居关系邻居路由器之间通过路由协议交换以下分组:Hello分组路由更新分组路由表中包含从邻
8、居路由器学来的路由路由器通过将分组转发到下一跳设备的方式来将分组最终传递到目的网络。7/23/20219YangWu-Jun,xi'anInstituteofPos