预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共75页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

通信网理论基础第三部分图论基础与应用基本概念图的一个例子图的邻接矩阵邻接矩阵一例Terminology简单路径(1)简单图(2)有向图加权图加权图与邻接矩阵V1至V6的路径距离和路径长度树树中顶点的等级关系树的例子图生成树生成树的“先广搜索”算法例上例的图示AvoidingLoopsAvoidingLoopsSpanningTreeAlgorithmLAN1LAN1LAN1最短距离路径的距离最短长度路径路由决策一跳的代价Dijkstra算法(1)–定义Dijkstra算法(2)–步骤Dijkstra算法原理图示Dijkstra’s算法(3)–说明Dijkstra算法用于例图Bellman-Ford算法(1)–定义Bellman-Ford算法(2)–步骤Bellman-FordAlgorithm(3)–说明Bellmin-Ford算法原理图示Bellman-Ford算法用于例图Dijkstra和Bellman-Ford算法的运算结果比较所需要的信息–Bellman-Ford算法比较两种算法所需要的信息-------------Dijkstra算法其他事项AutonomousSystemsASNumberInterandIntraDomainRoutingOutlineRFC1058 RIPbasedonrouted,“routed”,distributedinBSDUNIX Usesthedistance-vectoralgorithm RunsontopofUDP,portnumber520 Metric:numberofhops Maxlimitedto15 suitableforsmallnetworks(localareaenvironments) valueof16isreservedtorepresentinfinity smallnumberlimitsthecount-to-infinityproblemRIPOperationRIPProtocolCommand:requestorresponse Version:v1orv2 Oneormoreof: AddressFamily:2forIP IPAddress:networkorhostdestination Metric:numberofhopstodestination Doesnothaveaccesstosubnetmaskinformation Cannotworkwithvariable-lengthsubnetmasks RIPv2(RFC2453): Subnetmask,nexthop,routingdomain canworkwithCIDR stillusesmaxcostof16OutlineUsedinOSPFtodistributelinkstate(LS)information Forwardincomingpackettoallportsexceptwherepacketcamein Packeteventuallyreachesdestinationaslongasthereisapathbetweenthesourceanddestination Generatesexponentialnumberofpackettransmissions Approachestolimit#oftransmissions: UseaTTLateachpacket;won’tfloodifTTLisreached Eachrouteraddsitsidentifiertoheaderofpacketbeforeitfloodsthepacket;won’tfloodifitsidentifierisdetected Eachpacketfromagivensourceisidentifiedwithauniquesequencenumber;won’tfloodifsequencenumberissameExampleOSPFTopologyToimprovescalability,ASmaybepartitionedintoareas Areaisidentifiedby32-bitAreaID Routerinareaonlyknowscompletetopologyinsidearea&limitsthefloodingoflink-stateinformationtoarea Areaborderrouterssummarizeinfofromotherareas Eachareamustbeconnectedtobackbonearea(0.0.0.0) Distributesroutinginfobetweenareas In