IP网络技术基础-路由协议详解_第1页
IP网络技术基础-路由协议详解_第2页
IP网络技术基础-路由协议详解_第3页
IP网络技术基础-路由协议详解_第4页
IP网络技术基础-路由协议详解_第5页
已阅读5页,还剩36页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

路由协议基础内容路由协议基本介绍静态路由协议及动态路由协议路由协议分类常用路由协议概念Internet:inter+network路由器(router):route+er路由协议:routingprotocol概念地址:10.10.10.10/24路由表:10.10.10.0/24via10.10.9.1AS:AutonomoussystemToroute,arouterneedstodothefollowing:KnowthedestinationaddressIdentifythesourcesitcanlearnfromDiscoverpossibleroutesSelectthebestrouteMaintainandverifyroutinginformationWhatIsRouting?Routersmustlearndestinationsthatarenotdirectlyconnected.WhatIsRouting?(Cont.)路由StaticDefaultDynamic(1)信息的传播(2)路由的计算StaticRouteUsesaroutethatanetworkadministratorentersintotheroutermanuallyDynamicRouteUsesaroutethatanetworkroutingprotocoladjustsautomaticallyfortopologyortrafficchangesIdentifyingStaticandDynamicRoutesStaticRoutesConfigureunidirectionalstaticroutestoandfromastubnetworktoallowcommunicationstooccur.StaticRouteExampleThisisaunidirectionalroute.Youmusthavearouteconfiguredintheoppositedirection.DefaultRoutesThisrouteallowsthestubnetworktoreachallknown networksbeyondrouterA.路由协议种类按应用范围分:IGP:InteriorgatewayprotocolEGP:exteriorgatewayprotocol按作用原理分:距离矢量:distancevector链路状态:link-state

Anautonomoussystemisacollectionofnetworksunderacommonadministrativedomain.IGPsoperatewithinanautonomoussystem.EGPsconnectdifferentautonomoussystems.AutonomousSystems:InteriororExteriorRoutingProtocolsAdministrativeDistance:

RankingRoutes距离矢量路由协议

初始化时,所有路由器在本机形成与本地直接连接的链路记录路由器向所有相连的路由器广播路由表内已有的记录路由器向外广播接收到的路由信息,再在邻路由器形成记录相关内容路由更新:定期更新路由计算:hop或复合路由收敛:缺点:收敛慢、路由回环、路由表全部更新优化措施:毒性翻转、水平分割、触发更新增强型距离矢量协议典型协议RIPIGRPEIGRP链路状态路由协议当路由器初始化或当网络结构发生变化时,路由器会产生链路状态广播数据包LSA(Link-StateAdvertisement)所有路由器会通过一种被称为刷新(Flooding)的方法来交换链路状态数据。路由协议收敛以后,所有的路由器会根据其各自的链路状态信息数据库计算出各自的路由表。相关内容SPF算法层次结构Metric典型协议OSPFIS-ISAfterinitialflood,passsmallevent-triggeredlink-state

updatestoallotherroutersLink-StateRoutingProtocolsMinimizesroutingtableentriesLocalizesimpactofatopologychangewithin

anareaLink-StateNetworkHierarchyExampleLink-StateRouting

ProtocolAlgorithmsBenefitsofLink-StateRoutingFastconvergence:changesarereportedimmediatelybythesourceaffected.Robustnessagainstroutingloops:Routersknowthetopology.Link-statepacketsaresequencedandacknowledged.Bycareful(hierarchical)networkdesign,youcanutilizeresourcesoptimally.DrawbackstoLink-StateRoutingProtocolsInitialdiscoverymaycauseflooding.Memory-andprocessor-intensive.距离矢量VS链路状态距离矢量路由协议:shareinformationlocallyuseadistributedroutecalculation链路状态路由协议:informationdistributedunchanged;eachrouterperformalocalbest-pathcalculationBGP协议BorderGatewayProtocol广泛应用于目前Internet上路径矢量IBGP,EBGP路由对等体策略AutonomousSystemsAutonomousSystem65000AutonomousSystem65500IGPs:RIP,IGRP,OSPF,EIGRPEGPs:BGPAnautonomoussystem(AS)isacollectionofnetworksunderasingletechnicaladministrationIGPsoperatewithinanautonomoussystemEGPsconnectdifferentautonomoussystemsBGPIsUsedBetweenAutonomousSystemsBGPisusedbetweenautonomoussystemsGuaranteesexchangeofloop-freeroutinginformationBGPBBGPAS

65500AS

65250BGPAS

64520AS

65000ABCFEDRoutingTablePrefixes

020501 104,027BGPCharacteristicsBGPisadistancevectorprotocolwithenhancements:Reliableupdates—BGPrunsontopof

TCP(port179)Incremental,triggeredupdatesonlyPeriodickeepalivestoverifyTCPconnectivityRichmetrics(calledpathvectorsorattributes)Designedtoscaletohugeinternetworks

(forexample,theInternet)BGPinIPPacketsBGPisanadvanceddistancevectorroutingprotocolReliesonTCPforreliablesessionmanagementUsesTCPportnumber179TCPHeaderPortNo.SegmentPayloadIPHeaderProtocolNumberFrameHeaderCRCPacketPayloadFramePayload6—TCP17—UDP179—BGP23—Telnet25—SMTPTablesIGP

Routing

ProtocolBGP

Routing

ProtocolIPBGPBGPhasitsowntable,inadditiontotheIProutingtableInformationcanbeexchangedbetweenthe

twotablesAnytworoutersthathaveformedaTCPconnectioninordertoexchangeBGProutinginformationarecalledpeersorneighborsPeers=NeighborsAS65000NeighborsAS65500NeighborsACBInternalBGPWhenBGPneighborsbelongtothesameASitiscalledinternalBGP(IBGP)NeighborsdonothavetobedirectlyconnectedAIBGPNeighborsAS65000AS65500NeighborsBCExternalBGPWhenBGPneighborsbelongtodifferentautonomoussystemsitiscalledexternalBGP(EBGP)NeighborsshouldbedirectlyconnectedAAS65000AS65500EBGPNeighborsIBGPNeighborsCBPolicy-BasedRoutingBGPallowsadministratorstodefinepolicies,orrules,forhowdatawillflowthroughtheautonomoussystemsBGPAttributesBGPattributesinclude:AS-pathNext-hopLocalpreferenceMulti-exitdiscriminator(MED)OriginCommunityBGPdefinesthefollowingmessagetypes:OpenIncludesholdtimeandBGProuterIDKeepaliveUpdateInformationforonepathonly

(couldbetomultiplenetworks)IncludespathattributesandnetworksNotificationWhenerrordetectedBGPconnectionclosedaftersentBGPMessageTypesRouteSelectionDecisionProcessConsideronly(synchronized)routeswithnoASloopsandavalidnexthop,andthen:Preferhighestweight(localtorouter)Preferhighestlocalpreference(globalwithinAS)PreferrouteoriginatedbythelocalrouterPrefershortestAS-pathPreferlowestorigincode(IGP<EGP<incomplete)PreferlowestMED(fromotherAS)PreferEBGP

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论