欢迎来到天天文库
浏览记录
ID:57665211
大小:704.29 KB
页数:7页
时间:2020-08-31
《STP基本概念的理解.docx》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、STP基本概念STPDefinitionsBridgeID:bridgepriority+MACAddressBridgePriority:0-65,535(defaultis32,768,incrementsof4096)PortID:portpriority+portnumberPortPriority:0-240(defaultis128,incrementsof16)PathCost:Thecumulativecostofalllinksbetweentheswitchandtheroot
2、bridgeRootBridgeSelectionSTPexchangeinformationbymulticastingBPDUsframeevery2seconds(bydefault).TheBridge-ID(priority+MACaddress)isusedbySTPtodeterminetherootbridge.Iftwoswitcheshavethesamepriority,thentheonehaslowerMACaddresswillbetherootbridge.STPPa
3、thSelectionSpanningtreebuildsthetreestructureattemptingtousethefastestlinksithasavailablefortheactivepaths.STPusesthefollowingstepstoselectitspaths:1.LowestrootbridgeID(BIP)2.Lowestpathcosttotheroot(pathcostisconfigurableonsometypeofswitch/bridge)3.Lo
4、westsenderbridgeID4.LowestsenderportID(PID)STPConvergence1.RootbridgeelectionEachVLANelectsonerootbridge.Allportsontherootbridgeactasdesignatedports,whichsendandreceivetrafficaswellasBPDUs.Thebridgewiththelowestprioritybecomesroot.2.Rootportsaredeterm
5、inedonallnon-rootbridgesEachnon-rootbridgeisassignedasinglerootportthatsendsandreceivestraffic.Therootportischosenbasedontheportwiththelowest-costpathbetweenthenon-rootbridgeandtherootbridge.Iftwopathsareequalcost,theportwiththelowestportID(priority+p
6、ortnumber)willwin.3.DesignatedportselectionEachsegmenthasasingledesignatedport.Designatedportsarechosenfromonnon-rootportsthathavethelowestpathcosttotherootbridge.Intheeventofatie,thebridgeIDactsasatiebreaker(lowestwins).Allportsonarootbridgearedesign
7、atedports.STPPortRolesRootportOnnon-rootbridgesonlyForwardstraffictowardstherootbridgeOnlyoneperswitchCanpopulatetheMACtableDesignatedportOnrootandnon-rootbridgesAllportsonrootbridgearedesignatedportsReceivesandforwardsframestowardstherootbridgeasneed
8、edOnlyonepersegmentCanpopulatetheMACtableNondesignatedportDoesnotforwardpackets(blocking)DoesnotpopulatetheMACtableDisabledportAportthatisshutdownSTPPortStatesBlockingInnondesignatedstatusanddoesnotforwardframesReceivesBPDUstodeterminerootswit
此文档下载收益归作者所有