




已阅读5页,还剩24页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
,生成树协议SpanningTreeProtocol,Objectives,RedundanttopologiesSpanningTreeProtocol,冗余(Redundancy),冗余网络拓扑确保网络持续工作,避免单点故障Redundantnetworkingtopologiesaredesignedtoensurethatnetworkscontinuetofunctioninthepresenceofsinglepointsoffailure.,冗余拓扑(RedundantTopologies),冗余拓扑(RedundantTopologies),1.冗余拓扑的目标是为了避免网络出现单点故障Agoalofredundanttopologiesistoeliminatenetworkoutagescausedbyasinglepointoffailure.2.所有的网络需要冗余来提高可靠性Allnetworksneedredundancyforenhancedreliability.,简单的冗余交换拓扑(SimpleRedundantSwitchedTopology),简单的冗余交换拓扑(SimpleRedundantSwitchedTopology),1.冗余拓扑消除了单点故障Redundanttopologieseliminatesinglepointsoffailure.2.交换机对不知道地址的帧进行泛洪Switcheswillfloodframesforunknowndestinations.3.交换机对广播和组播也进行泛洪。Broadcastsandmulticastsarealsoflooded.4.冗余交换拓扑或许会带来广播风暴、多帧拷贝以及MAC地址表不稳定的问题Aredundantswitchedtopologymaycausebroadcaststorms,multipleframecopies,andMACaddresstableinstabilityproblems.,广播风暴(BroadcastStorm),多帧传输(MultipleFrameTransmissions),在冗余交换网络中,对终端设备来讲,收到多帧相同数据是可能的。Inaredundantswitchednetworkitispossibleforanenddevicetoreceivemultipleframes.,创建逻辑无环路拓扑(Creatingalogicalloopfreetopology),1.冗余增加了可靠性,但是同时将物理环路带进网络。Reliabilityisincreasedbyredundancy.redundancyconnectionsintroducephysicalloopsintothenetwork.2.解决办法就是创建逻辑无环路拓扑,同时保留物理环存在Thesolutionistoallowphysicalloops,butcreatealoopfreelogicaltopology.3.无环路拓扑称为树,并且是可扩展的树。Theloopfreelogicaltopologycreatediscalledatree.Itisaspanningtreebecausealldevicesinthenetworkarereachableorspanned.4.创建无环路拓扑的算法称为生成树算法。Thealgorithmusedtocreatethisloopfreelogicaltopologyisthespanning-treealgorithm.,STP术语(STPTerms),1.桥ID(BridgeID)2.开销(Cost)3.桥协议数据单元(BPDU),桥ID(BridgeID),1.BID用来识别每一个交换机/网桥。2.BID用来确定网络的中心,在STP中称为根桥。3.优先级默认为32768TheBIDconsistsofabridgeprioritythatdefaultsto32768,开销(Cost),最短路径是cost累加,而cost是基于链路的速率的。Shortestpathisbasedoncumulativelinkcosts.Linkcostsarebasedonthespeedofthelink.,桥协议数据单元(BPDU),1.交换机发送的创建逻辑无环路的数据包称为BPDUThemessagethataswitchsends,allowingtheformationofaloopfreelogicaltopology,iscalledaBridgeProtocolDataUnit(BPDU).2.BPDU在阻塞的接口上也可以接收,这确保如果链路或设备出现问题,新的生成树会被计算BPDUscontinuetobereceivedonblockedports.Thisensuresthatifanactivepathordevicefails,anewspanningtreecanbecalculated.3.默认,BPDU2秒发送一次BydefaultBPDUsaresenteverytwoseconds.,Spanning-TreeProtocol,生成树操作(Spanning-TreeOperation),Spanning-TreeOperation(cont.),1.选举根桥,BID最小即是Selectasingleswitchthatwillactastherootofthespanningtree2.计算自己到根桥距离Calculatetheshortestpathfromitselftotherootswitch3.选择根端口,距离根桥最近的接口Chooseoneofitsportsasitsrootport,foreachnon-rootswitch.Thisistheinterfacethatgivesthebestpathtotherootswitch.4.选指定端口和非指定端口,非指定端口被阻塞。Selectportsthatarepartofthespanningtree,thedesignatedports.Non-designatedportsareblocked.,生成树操作规则(Spanning-TreeOperationRules),1.每个网络只有一个根桥Onerootbridgepernetwork.2.每个非根桥只有一个根端口Onerootportpernonrootbridge.3.每个段只有一个指定端口Onedesignatedportpersegment.4.非指定端口不被使用Nondesignatedportsareunused.,STP实例(STPExample),生成树端口状态(Spanning-TreePortStates),生成树端口状态(Spanning-TreePortStates),1.在阻塞状态,端口仅能接收BPDU,需要20秒改变这种状态Intheblockingstate,portscanonlyreceiveBPDUs.Itmaytakeupto20secondstochangefromthisstate.2.在侦听状态,交换机确定是否有到根桥的其它路径。该状态持续15秒。在该状态,用户的数据不能转发,也不能学习MAC地址。Inlisteningstate,switchesdetermineifthereareanyotherpathstotherootbridge.theforwarddelayandlastsfor15seconds.Inthelisteningstate,userdataisnotbeingforwardedandMACaddressesarenotbeinglearned.,生成树端口状态(Spanning-TreePortStates),3.在学习状态,用户的数据不能转发,但是可以学习MAC地址,该状态持续15秒。Inlearningstateuserdataisnotforwarded,butMACaddressesarelearnedfromanytrafficthatisseen.Thelearningstatelastsfor15secondsandisalsocalledtheforwarddelay.4.在转发状态,用户数据被转发,MAC地址继续学习,BPDU仍然工作。InforwardingstateuserdataisforwardedandMACaddressescontinuetobelearned.BPDUsarestillprocessed.,CaseStudy,Refertotheexhibit.AllswitcheshavethedefaultSTPconfigurationandalllinksareFastEthernet.WhichportonwhichswitchwillSpanningTreeplaceinblockingmode?,EnablingSpanningTree打开生成树协议,Switch(config)#spanning-treevlan200,EnablesspanningtreeonaspecificVLAN打开特定VLAN的生成树协议,默认时,所有VLAN的STP都是开启的,因此以上命令可以不配置,ConfiguringtheRootBridge配置根桥,Switch(config)#spanning-treevlan200priority4096,Lowersthespanningtreepriority,forcingthisswitchtobetherootbridge把网桥的优先级值降低,会使得网桥成为根桥,SettingPortCostandVLANPortCost设置端口的cost值,Switch(config-if)#spanning-treecost18,Configuresthespanningtreeportcostofaninterface配置端口的cost值,Switch(config-if)#spanning-treevlan200cost17,ConfiguresthespanningtreeVLANportcostofaninterfaceforaspecificVLAN可以在端口下为某一特定的VLAN指定cost值,VerifyingSTP检查STP,ASW11#showspanning-treevlan200VLAN0200SpanningtreeenabledprotocolieeeRootIDPriority49352Address0008.2199.2bc0ThisbridgeistherootHelloTime2secMaxAge20secForwardDelay15secBridgeIDPriority49352(priority49152sys-id-ext200)Address0008.2199.2bc0HelloTime2secMaxAge20secForwardDelay15secAgingTime300UplinkfastenabledInterfacePortIDDesignatedPortIDNamePrio.NbrCostStsCostBridgeIDPrio.Nbr-Fa0/1128.13019LIS0493520008.2199.2bc0128.1Fa0/2128.23019LIS0493520008.2199.2bc0128.2,Switch#showspanning-treevlanvlan-id,Displaysspanning-treeconfiguratio
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- (完整版)人教八年级下册期末物理模拟测试试题
- 数学苏教七年级下册期末真题模拟真题及解析
- 物理初中人教版八年级下册期末重点初中真题A卷答案
- 上海储能中学五年级下学期期末数学试题
- 2025新版保安员考试试题附含答案
- 2025年新能源汽车考试历年参考题库含答案详解
- 2025公路水运试验检测师桥梁隧道工程真题及参考答案
- 2025年数据库系统工程师考试数据库系统高级维护试卷及答案
- 2025年国际注册营养师CIN临床营养学病例分析模拟试卷及答案
- 2025年消除艾梅乙母婴传播及反医疗歧视培训试题含答案
- 水利工程水利工程施工技术规范
- 创建平安医院课件
- 2025年高压电工考试题库:基础理论知识要点
- 2025中证金融研究院招聘11人考试参考题库及答案解析
- 2025年全国中小学校党组织书记网络培训示范班在线考试题库及答案
- 商场保安礼仪培训课件
- 全国2025年质量月活动知识竞赛题库及答案
- 氧气吸入的注意事项课件
- 20以内加减法口算题(10000道)(A4直接打印-每页100题)
- 天惊牌中药消毒剂专家讲座
- 中国建设工程造价管理协会《建设工程造价鉴定规程》
评论
0/150
提交评论