您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 管理学资料 > TCPIP_Chapter11RoutingProtocol.
TCP/IP协议原理吴凡通信与信息工程学院网络工程系E-mail:wufan@uestc.edu.cnPhone:61830521(O)2020/1/10TCP/IPProtocolSuite2Chapter11RoutingProtocolsInterior(内部)andexterior(外部)routingRIPOSPFBGP-42020/1/10TCP/IPProtocolSuite3Introduction互联网由许多路由器连接起来的网络组成数据从源站点到目的站点,可能经过多个路由器一个路由器连接多个网络,当路由器收到分组,应该将分组转发到哪个网络?2020/1/10TCP/IPProtocolSuite4Introduction路由选择协议(Routingprotocol)——使得路由器能够找到到达目的地的最佳路径TosharetheknowledgeabouttheinternetTocalculatetheroutingtablebasedonthetopologyorthepolicies(策略)RoutingTableStaticroutemanuallydefineDynamicrouteroutingprotocolTable-drivenrouting(表驱动路由选择)OnerouterMoreroutedprotocolsOneroutedprotocol(例如IP)OneroutingtableOneroutedprotocolMoreroutingprotocolsConvergenceOverheadScalability2020/1/10TCP/IPProtocolSuite5Metric(度量)Metric:用来衡量通过某一网络所需的代价代价是什么?代价的度量取决于RoutingProtocolHopcount(跳数),bandwidth(带宽),delay(延迟),MTU,load(负载),reliability(可靠性),…Routingprotocol使用Metric来选择一条bestpath(最优路)forroutingThemetricofaroute=MIN{SUM(Metricn)}Themetricofaroute=MAX{MIN(Metricn)}64K64K10M10M10MHopcount:ABNetBandwidth:ACDNetADCBNetn∈Pathn∈Path度量取决于所需要的服务类型2020/1/10TCP/IPProtocolSuite6Convergence(收敛)ConvergenceAllroutersinanetworkagreeonthetopologyConvergencetime(收敛时间)Ameasureofhowquicklytorecoverfromnetworkchanges从不一致到一致所经历的时间体现路由算法的效率ABCDest.D2020/1/10TCP/IPProtocolSuite7Convergence(收敛)FactorsaffectingconvergenceTheroutingprotocolusedArouter’sdistancefromthepointofchangeThenumberofroutersinthenetworkBandwidthandtrafficloadoncommunicationslinksArouter’sloadTrafficpatternsinrelationtothetopologychange2020/1/10TCP/IPProtocolSuite8AutonomoussystemAutonomoussystem(自治系统,AS)AgroupofnetworksandroutersundertheauthorityofasingleadministrationEachAStypicallyrepresentsanindependentorganizationandappliesitsownuniqueroutingandsecuritypolicies域内路由和域间路由为什么需要AS?主要原因:Internet网络太大,一种路由协议无法更新所有路由器的路由表引入AS之后,路由分为intra-domainroutingIGP:InteriorGatewayProtocol(内部网关协议/域内路由)inter-domainroutingEGP:ExteriorGatewayProtocol(外部网关协议/域间路由)2020/1/10TCP/IPProtocolSuite9IGPvs.EGPIGP(intra-domain)TobeusedwithinanautonomoussystemTofindthebestpathtothenetworkIGP具有多样性,AS可自主选择Example:RIP、OSPF、IS-ISEGP(inter-domain)TobeusedbetweenautonomoussystemsTofindthebestpathtotheASAS间必须使用统一的EGPExample:BGP-4NoteThestaticroutingoranIGPcouldalsobeusedbetweenautonomoussystemsinsomecaseAS1AS2RREGPIGPIGP2020/1/10TCP/IPProtocolSuite10RoutingProtocolsRoutingprotocolsConceptoftheroutingmethodOperation:discover,topologychange,calculateFeaturesandmessagesQuestionsandsolutionsProtocolTypeRoutingmethodPopularver.RIP(路由信息协议)IGPDistancevectorroutingRIPv1,RIPv2OSPF(开放最短通路优先)IGPLinkstateroutingOSPFv2BGP(边界网关协议)EGPPathvectorroutingBGP42020/1/10TCP/IPProtocolSuite11AutonomoussystemASnumberAnidentifyingnumberthatisassignedbyanInternetregistryoraserviceprovideRange:1~65535(PrivateASnumber:64512~65535)Internet由若干AS互相连接构成每个AS内可能有多个网络存在核心主干网也可以构成一个AS核心主干网提供到所有可能的目的地的可靠的、统一的、权威的路由ASxASyAS1核心主干网AS3AS22020/1/10TCP/IPProtocolSuite12TypesofAutonomousSystemsSingle-homedAS(残桩AS)OnlyoneexitpointtotheoutsideExample:AS1,AS3数据通信量不能通过残桩ASMulti-homedASMorethanoneexitpointtotheoutsideExample:AS2NontransitAS——例如:大型公司网络notallowtransittraffictopassthroughitTransitAS(转接AS)allowtransittraffictopassthroughitAS1AS2RRRAS3R2020/1/10TCP/IPProtocolSuite13Chapter11RoutingProtocolsInteriorandexteriorroutingRIPOSPFBGP-42020/1/10TCP/IPProtocolSuite14RIPRoutingInformationProtocol,RIPv1:RFC1058,v2:RFC2453,路由信息协议IPLANsMANsWANsICMPIGMPARPRARPNetworkLayerNetworkAccessLayerTCPUDPTransportLayerRIPApplicationLayer520软件实现层次RIP=RIPv1internetGraphGraph:asetofnodesandedgesInaninternet,aroutercannormallyberepresentedbyanodeandanetworkberepresentedbyaedgesconnectingtwonodes2020/1/10TCP/IPProtocolSuite15Net2Net4internetGraph2020/1/10TCP/IPProtocolSuite16什么是DV?一个有序对(v,d)v:目的网络d:到该目的网络的距离准确说:应该是到目的网络的Metric从哪获得DV?邻居节点周期性的路由通告报文中怎么理解DV?假设路由器j从邻居i获得DV=(v,div),表示邻居i告诉路由器j:“我可以到达某个目的网络v,我到那儿的距离是div”那么,对于路由器j就可以推出以下结论:“我通过邻居i,可以到达v,且距离是div+dji”距离向量(DistanceVector,DV)jivdjidivDNext_hopMvidiv+djiBellman-FordAlgorithmGiventhecostbetweeneachpairofnodes,thealgorithmcanfindtheleastcost(shortestpath)betweenanytwonodes2020/1/10TCP/IPProtocolSuite172020/1/10TCP/IPProtocolSuite18DistanceVector(距离向量)Routing基本原理:每一个路由器周期性地与其邻居路由器分享关于整个网络的路由信息“我可以通过谁到达哪些网络”“分享”WhattheentireroutingtableWhenatregularintervalsWhereonlywithneighborTocalculatetheroutingtable距离向量算法(Bellman-Ford或Ford-Fulkerson算法)通过累积distancevectors,来不断更新路由表2134561121111113465321333112244446552020/1/10TCP/IPProtocolSuite19RIPMessageFormat(=512bytes)Encapsulation:UDP(port520)采用广播的方式通告路由CommandVersionIPaddressAll0sAll0sAll0sMetric(hopcount)All0sFamilyRepeated2020/1/10TCP/IPProtocolSuite20TypesofMessagesRequest(Command=1):broadcast功能:askforaresponsecontainingallorpartoftherouter‘sroutingtable.(“问路”)AllentriesTobesentbyarouterthathasjustcomeup(当路由器刚接入网络)SpecificentriesTobesentbyarouterthathassometime-outentries(询问超时表项)Response(Command=2)Solicited(询问响应):响应Request分组Unicasttotheas
本文标题:TCPIP_Chapter11RoutingProtocol.
链接地址:https://www.777doc.com/doc-2862167 .html