




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
Chapter5switchingLocalAreaNetworkInordertoensurethatthesenderandthereceivercancoordinatewitheachother,anumberofstandardizationorganizationspromotethedevelopmentofcommunicationstandards.LocalAreaNetworkANSIAmericanNationalStandardInstituteANSIdesignedaSCIIcodeset.Itisawidelyusedcommunicationsstandardcode.ITU:InternationalTelecommunicationUnionITUhasthreemaindepartments:WirelessCommunicationDepartment(ITU-R),TelecommunicationStandardization(ITU-T),DevelopmentDepartment(ITU-D).1953-1993,ITU-TisknownasCCITT(InternationalTelegraphandTelephoneConsultativeCommittee).BothITU-TandCCITTputforwardrecommendationsinthefieldoftelephoneanddatacommunications.WeoftenencountermanyCCITTrecommendations,suchasCCITT'sX.25,althoughsince1993theseproposalsaremarkedwiththeITU-Tmark.LocalAreaNetworkEIA:
ElectronicIndustriesAssociationEIAisanAmericanelectroniccompaniesorganizations,suchas:RS-232interface,thiscommunicationinterfaceallowsdataexchangebetweendevices.IEEE:
InstituteofElectricalandElectronicsEngineersIEEEsetsstandardsfortheelectronicsindustry.IEEEisdividedintoanumberofstandardsorganizations(orworkinggroup),andeachworkinggroupisresponsibleforanareaofstandards.Theworkinggroup802setsnetworkequipmentsandhowtocommunicatewitheachother'sstandards.ISO:
InternationalStandardOrganizationLocalAreaNetwork5.1DefinitionofLANswitchingLANswitchingtechnologyisbasicallysimilartothebridge,buttheexchangeoftwolayerisbasedonthebridgeconnectionofthehardware,inwhichtheframeishandledbythespecialhardware(ASIC:Application-specificIntegratedCircuit).LocalAreaNetwork5.1DefinitionofLANswitchingComparisonofswitchesandhubsTaskhierarchiesaredifferent.Hubforwardsthepackettoallports;Fortheswitch,thedestinationaddressesaredifferentacrossbroadcast,multicast,unicast.Similarwiththebridge,forexample,itistransparentforthenetworklayer.LocalAreaNetworkLANextensionwithhubsAdvantages:EnabledifferentcomputersontheLANoforiginalcollisiondomainstocommunicateacrossthecollisiondomain.Expandthegeographicscopeoflocalareanetworkcoverage.Disadvantages:Collisiondomainincreases,butthetotalthroughputdoesnotincrease.Ifdifferentcollisiondomainsusedifferentdatarates,thenthehubcannotbeusedtointerconnectthem.LocalAreaNetworkLANextensioninthedatalinklayerNetworkBridgeisusedtoextendLANinthedatalinklayer.Bridgeworksinthedatalinklayer,whichforwardsthereceivedframeaccordingtothedestinationaddressofMACframe.Framebridgehasthefunctionoffilteringanddevelopingaspecificpath.LocalAreaNetwork5.2SwitchesClassificationoftheswitchaccordingtoarchitecture:SingledesktopswitchesHeapbattlementswitchesModularswitchesLocalAreaNetwork5.2SwitchesSwitchesareconnectedphysicallyandlogicallythroughaspecificbusLocalAreaNetwork5.2SwitchesModularswitchesLocalAreaNetwork5.2SwitchesAccordingtothelocationinthenetworkAccesslayerswitchAggregationlayerswitchCorelayerswitchAccordingtothefunctionThreelayersswitch(alsoknownasroutingswitch)TwolayersswitchLocalAreaNetwork5.2SwitchesLocalAreaNetwork5.3ForwardingandfilteringdataframesDataframesforwardingofswitchesmustmeetfollowingconditions:1)Meettheaddressingprovisions2)Provide:When48-bitgeneral-purposemanagementaddressdoesn’tsupport,groupMACaddressisassignedtoidentifythebridgeprotocolentity.Portidentifierintherealizationofspanningtreealgorithmandprotocolidentifieseachportintheswitch.LocalAreaNetwork5.3ForwardingandfilteringdataframesFramesforwardedbyswitches1)Providethecapacityofcontrollingtheprioritymappinginforwarding.2)Provideavarietyoftrafficclassifications.3)ProvidethebehaviorofforwardingofindependentMACaddress.4)Managetheprioritiesofframestransmitted.LocalAreaNetwork5.3ForwardingandfilteringdataframesTheforwardingofdataframescanbaseonStore-andForwardandDirectForward.TheswitchmustsupportStore-andForward.TheswitchcansupportDirectForward.TheswitchsupportingDirectForwardmustbesettothedefaultStore-andforward.LocalAreaNetwork5.3ForwardingandfilteringdataframesFilterframeThedataframesfilteringoftheswitchmustbeconsistent:ItAchievesbasicfilteringservice,andforeachport,asingleTrafficClassisassociatedwith.Thefollowingparametersinfilteringdatabaseusethevaluesspecified.Sizeoffilteringdatabase,thelargestnumberofentriesthatthefilterdatabasecanaccommodate.Sizeofpermanentdatabasesize,thelargestnumberofentriesthatthepermanentdatabasecanaccommodate.LocalAreaNetwork5.3ForwardingandfilteringdataframesDataframesfilteredbytheswitchProvidethecapacityofreadingandupdatingthefilteringdatabaseandthepermanentdatabase.Providethecapacityofsettingtheupdate-timeofthefilterdatabase.Switchessupportingthisabilityshouldimplementalloptionalvaluesspecifiedbythestandard.ProvidethebehavioroffilteringofindependentMACaddress.LocalAreaNetwork5.3ForwardingandfilteringdataframesNote:TheagingtimeofforwardingandfiltersmustbeinMactable(5minutes).Tocontroltheforwardingrange,thevlan
stpcouldbeintroduced.Vlan:ForwardingpacketsinvirtualLANStp:Becausetheporthasadifferentstatus,someportsdonotallowforwardingpackets.LocalAreaNetwork5.4TechnicalproblemsAuto-negotiationAuto-negotiationallowsanetworkequipmenttosendthemessageofworkmodesupportedtotheoppositeside,andacceptthecorrespondinginformationdeliveredfromtheoppositeside.Thetwosidesnegotiateaoptimalportworkmodesupportedbybothofthemtocommunicate.LocalAreaNetwork5.4TechnicalproblemsAuto-negotiation(1)DetectLinkstatusDeterminewhethertheindicatorlightornotbyreadingphy
(2)Duplex:halfandfull-duplexoperation(3)FlowControlforfull-duplex
DA=01-80-C2-00-00-01andtype=88-08(pause)(4)SpeedLocalAreaNetworkLocalAreaNetworkLocalAreaNetworkLocalAreaNetworkLocalAreaNetworklearningandForwardingLearningprocessTheindexofpacketismainlySA(sourceaddress).MACTableissearchedtofindifthereisrelevantinformation.Ifitexists,theprocessofexchangeiscarriedout.Otherwise,therelevantinformationsuchasSA,PORT,etc,arewrittenintheMACTable.SothatthereisanewtableentryintheMACTable.LocalAreaNetworkForwardingprocessTheindexofForwardingismainlybasedonDA(destinationaddress).IfthecorrespondingrecordcanbefoundintheMACtable,thenthepackageisforwardedtothespecificportinthevlantable.Otherwise,thepackageisbroadcastedasabroadcastpackage.Thisimpliesthatallportsoftheswitchshouldreceivethispackage.LocalAreaNetworkNoteAlltableentriesintheMactablehaveagingtime.Ifthesecondrepetitivelearningcan’tbecarriedoutwithinagingtime,thenthistableentryshouldbedeletedinagingtime.LocalAreaNetworkSpecificalgorithmSupposethattheframe(src=x,dst=y)reachestheportNofBridgeBridgesearchestheforwardingtableIfthetableentry<x,N,Age>isfound,thenUpdateAgetothecurrenttimeOtherwiseInsertthenewtableentry<x,N,currenttime>DeletethetableentrieswhoseAgesaretimeout.LocalAreaNetworkLocalAreaNetworkLocalAreaNetworkFlowcontrolCurrentlyused:rate-basedflowcontrolFull-duplexflowcontrol(IEEE802.3hasthefollowingprovisions)A,pause
controlPauseframe
DA=01-80-C2-00-00-01andtype=88-08(pause)Itisusedtopreventthesidetoreducetheframesendingratewithinacertaintimeorstopforsometimetosend.LocalAreaNetworkVirtualLAN(VLAN)LocalAreaNetworkTheconceptofvirtualLANVirtuallocalareanetwork(VLAN)isconstitutedbyanumberofLANsegmentsandlogicgroupsthatareindependentofthephysicallocation.Thesesegmentshavesomecommonneeds.EachframehasaspecificVLANidentifier.TheidentifierspecifieswhichVLANdoestheworkstationthatsendsthisframebelongto.VirtualLANisonlytheLANprovidingaservicetousers,ratherthananewlocalareanetwork.LocalAreaNetworkReasonsforusingVLANLocalAreaNetwork……broadcastBroadcastdomainandbroadcaststormTheswitchnetworkformsabroadcastdomainReasonsforusingVLANLocalAreaNetwork……broadcastrouterItiscostlytouserouterstoisolatebroadcastdomainsReasonsforusingVLANLocalAreaNetworkBroadcastdomain1VLAN10Broadcastdomain2VLAN20Broadcastdomain3VLAN30MarketingDepartmentEngineering
DepartmentFinanceDepartmentItislowcosttouseVLANtoisolatebroadcastdomainsReasonsforusingVLANAllEthernetpacketssuchaspacketsofunicast,multicast,broadcastandunknownareonlytransmittedinVLAN.Controltheinternetstorm.Itcanchangethenetworktopology.ThemainpurposeofsettingVLANistorestrictthescopeofbroadcastpacketsandreducetheeffectofbroadcastpackets,soastoImprovenetworksecurity.LocalAreaNetworkPhysicalnetworksegment:vlanLogicalnetworksegment:ipLocalAreaNetworkLocalAreaNetworkEthernetSwitchA4B1EthernetSwitchVLAN3C3B3VLAN1VLAN2C1A2A1A3C2B2EthernetSwitchEthernetSwitchThecompositionofthreevirtuallocalareanetworksVLAN1,VLAN2
andVLAN3LocalAreaNetworkEthernetSwitchA4B1EthernetSwitchVLAN3C3B3VLAN1VLAN2C1A2A1A3C2B2EthernetSwitchEthernetSwitchThecompositionofthreevirtuallocalareanetworksVLAN1,VLAN2
andVLAN3WhenB1sendsdatatothememberofworkinggroupVLAN2,workstationB2and
B3willreceivetheinformationbroadcasted.LocalAreaNetworkEthernetSwitchA4B1EthernetSwitchVLAN3C3B3VLAN1VLAN2C1A2A1A3C2B2EthernetSwitchEthernetSwitchThecompositionofthreevirtuallocalareanetworksVLAN1,VLAN2
andVLAN3WhenB1sendsdata,workstationA1,A2and
C1willnotacceptthetheinformationbroadcastedbyB1.LocalAreaNetworkEthernetSwitchA4B1EthernetSwitchVLAN3C3B3VLAN1VLAN2C1A2A1A3C2B2EthernetSwitchEthernetSwitchThecompositionofthreevirtuallocalareanetworksVLAN1,VLAN2
andVLAN3Virtuallocalareanetworkrestrictsthenumberofworkstationstoreceivebroadcastinformation.Itmakesthenetworkwillnotbroadcasttoomuchinformation(thatis,"broadcaststorm")tocausedeterioration.VLANclassificationPort-basedVLANMACaddressbasedVLANProtocol-basedVLANSubnet-basedVLANLocalAreaNetworkVLANbasedonMACaddressSwitchsupportsupto12entries.SwitchportsdetermineVLANbelongingaccordingtothedeviceMACaddressconnectingtotheport.althoughthephysicallocationofthesitehaschanged,itstillbelongstotheoriginalVLAN.Itisconvenienceandflexibilityformobileusers.LocalAreaNetworkLocalAreaNetworkVLANbasedonMACaddressLocalAreaNetwork
VLANbasedonportVLANbasedonportItisastaticVLAN.Vlanisdesignedastheports.AVLANcanspanmultipleswitches.AswitchportcanbelongtoseveraldifferentVLAN,calledthepublicport.Ifaportbelongstoacertainport,allsitesconnectingtotheportwillbecomethesamevlan.0-4095vlanentrieswillbesupported.LocalAreaNetworkVLANbasedonprotocolLocalAreaNetworkVLAN
TableTypeVLANIPXprotocolIPprotocol……VLAN5VLAN10……HostAHostBHostCHostDEthernetswitchUsingtheIPXprotocolRunningIPprotocolUsingtheIPXprotocolRunningIPprotocolVLANbasedonsubnetLocalAreaNetworkVLANTableIP
NetworkVLANIP/24IP/24……VLAN5VLAN10……HostAHostBHostCHostDEthernetswitch89VLANstandard:IEEE802.1QOverviewVLANframeformatVLANlinktypeVLANframeforwardingalgorithmLocalAreaNetworkIEEE802.1QOverviewLocalAreaNetworkIEEE802.1Qcanbefreedownloadedfrom
IEEE802.1QtagEthernetcodetagformatLocalAreaNetworkDestinationMAC
address
6bytesSourceMACaddress
6bytesData/Fill46~1500bytesFCS4bytesTPID2bytesTCI2bytes
2bytes加入的VLAN頭0123456701234567User-priorityTokenRingEncapsulationFlag(TR-encap)0123456701234567VLANIdentifier(VID)
VType(0x8100)1000000100000000vid(1)802.1Qtype
2bytes(2)UserPriority
3bit(3)CFIThestandardformatindicatorrepresentsthe followingarehexadecimalnumbers
(4)VID12bitSupplementIEEE802.1QissupportedSwitchesofIEEE802.1QarenotsupportedBothofthemsupportthevlan,butthelattercannotreadIEEE802.1QEthernetframe.LocalAreaNetworkPVID/VIDImportantConceptsPort-basedVLAN'sID(PortVLANIDnumbers,abbreviatedPVID)VLAN'sID(VLANIDnumbers,abbreviatedasVID)PVIDdefinestheswitchforwardsdatapacketstowhichVLAN,andwhenthepacketwillbeforwardedtoanotherswitchport,orsomewhereinthenetwork.Eachporthasonlyonepvid.LocalAreaNetworkPVID/VIDImportantConceptsVid,thenumberofpacketsinthenetworkreceivedoverVLAN.AportbelongstomultipleVLAN(VIDs)PVIDandVID,twovariablesareusedtocontrolcapabilitiesoftheportsendingandreceivingVLANdatastreams,andthedifferencebetweenthemisthatthelatterallowstheinformationcanbesharedbymultipleVLAN.LocalAreaNetwork802.1QVLANsegmentForexample,thedatapacketisfromPort12,pvid=2,thenthepacketwillbedisseminatedinvid=?.Thedestinationaddressisintheotherport10,anditspvid=?Vid=?Ifvid=?etc,thepacketwillbetransmittedtothedestinationaddress.LocalAreaNetworkLocalAreaNetworkfunction?Vlantable?LocalAreaNetworkInthepictureabove,therearethreedifferentVLAN,eachportaccordingtotheirportVLANID(PVID)tosendpacketsintheirownVLAN.However,thereisaporttoreceivealltheVLANpackets.Thesettingasfollows:Serverconnectedtoport7,itcanbesharedbyVLAN1,2,3,sotheport7canreceivepacketsfromVLAN1,2,andallports(client)couldsendthedatapackettoport7.Ports1,2and3inVLAN1(theirPVID=1)sendpacketstoit,whiletheports11and12inVLAN2(theirPVID=2)sendpacketstoit.ServerusesthethirdVLAN(PVID=3)tosendfilesrequestedbycomputersinVLAN1andVLAN2.LocalAreaNetworkVLANsSpanningMultipleSwitches802.1QVLANcanbesetbetweenmultipleswitches.InthesettingofthisVLAN,youneedtopayattentiontotwopoints:WhethertheseswitchessupportIEEE802.1Q(IEEE802.1Q-compliant).ThepacketofVLANisrequiredtoaddtags(tagged)orremovetags(untagged).LocalAreaNetworkTaggingTheoperationadding802.1QVLANinformationintothepacketheader.Theportthathastheabilitytoenabletagging(taggingenabled)willaddPVID,priorityandotherVLANinformationintoalldatapacketsincomingandoutgoingthroughtheport.LocalAreaNetworkTaggingIfthepackethasbeentaggedpreviously,thentheportwillnotchangethedatapackets,allowingittomaintaintheirexistingVLANinformation.Tag(Tagging)allowsdatapacketstobetransferredfromaswitchsupporting802.1Qtoanothersimilarswitch.802.1QframeLocalAreaNetworkUntaggingTheoperationremoving802.1QVLANinformationfromthepacketheader.Theportthathastheabilitytoenableuntagging(untaggingenabled)willremovePVID,priorityandotherVLANinformationformheadersofalldatapacketsincomingandoutgoingthroughtheport.802.3frameLocalAreaNetworkUntaggingIfthepackethasn’tbeentaggedpreviously,thentheportwillnotchangethedatapackets.Tag(Tagging)allowsdatapacketstobetransferredfromaswitchsupporting802.1Qtotheswitchnotsupporting802.1Q.LocalAreaNetworkIngressportIftheingressportontheIngressFilterissettoenabled,thentheswitchwillcheckeverypacketpassingthroughtodeterminewhetheritisamemberofthesameVLANtodecidewhethertoforwardthepacket.Ifselfport(ingressport)isamemberofVLANtagging,thenthepacketwillbeforwarded.Otherwise,discardthepacket.LocalAreaNetworkIngressportIfIngressfilteringissettodisabled,thentheswitchwillhandleallpacketsreceivedbyinboundportwiththeconventionalway.Implementation:pvidbelongstothevlaninthetagLocalAreaNetworkEgressport
Iftheegressportisconnectedtoaswitchsupporting802.1Q,thentagsmustbeaddedtothedatapacketssothatotherswitchcandeterminewhetherforwardingthepacketaccordingtothetags.Iftheegressportisconnectedtoaswitchnotsupporting802.1Qoraworkstation,thenthetaginthepacketwillberemoved,andthepacketbecomestoaEthernetdatapacketsothatthedevicescanreadthispacket.LocalAreaNetworkVLANbasedon802.1QWhentheswitchmaintainstheVLANbasedon802.1Q,taggingisneeded.Theoperationoftaggingcanaddtheinformationof802.1QVLANintotheheaderofeachpacket.LocalAreaNetworkVLANbasedon802.1QAccordingthetaginformationreceived,theswitchsupporting802.1QcanmaintaintheintegrityofVLAN,andforwardpacketsbasedonitspriority,andsoonTheprincipleofthedatatransferbetweentheswitchsupporting802.1Qandtheswitchnotsupportingasfollows:LocalAreaNetworkThinkingQuestionsEquipments:3pcasclient,2serverasswitchDemands:Pc1invlan1communicateswiththeserver1Pc2,3invlan2communicatewiththeserver2pcandtheserverareindifferentphysicallocations.Drawthenetworkdiagram?SetPvid
vidtag/untag.LocalAreaNetworkLocalAreaNetworkBasiclearningstrategiesItisconsistentwithlearningstrategiesofthetransparentbridgegeneralbasically.Thedifferencesare:Therelationofmactableandthenumberofvlanisone-to-onecorrespondence.Learningsourcemac+vidLocalAreaNetworkBasicforwardingstrategiesIfthemacframeincomingisuntaggedorvid=0,pvidisaddedintothisframe.Notonlyaccordingtothedestinationaddressofthemacframetofindtheoutputportnumber.Itistodeterminetheoutputportbymacandvidofthedestination.Whenoutputtingthepacketfromthedestinationport,itisneedtodecidewhetherstrippingvidfromthemacframeaccordingtountagedortagged.LocalAreaNetworkSTPThoughtEnableallswitchestocommunicatewitheachother.UsingaspanningtreeconnectingwitheachLANtocovertheactualtopology.LocalAreaNetworkSpanningTreeAlgorithmLocalAreaNetworkFFFFFFFReasonsoftheintroductionofSpanningTreeProtocolLocalAreaNetworkByblockingredundantlinkstoeliminatethepathloopthatmayexistinthebridgenetwork.Whenthepathcurrentactivatedfails,itcanrestorenetworkconnectivitybyactivatingredundantback-uplinks.ROOTLANALANBLANCLANDLANEPrinciple
twostandards:802.1D、802.1wBPDU(Bridgeprotocoldataunit)Whenthereisaloop,theswitchwillselectalinktotransferdatabyusingspanningtreealgorithm,andsetthestateofrelatedportsasblockingtobroketheotherlinkvirtually.Oncethelinkcurrentlybeingusedcrashes,atreewillbebuiltagain.LocalAreaNetworkRootBridgeThebridgewiththeminimumIdistherootbridge.RootPortThebridgeselectstheportwiththeminimumcosttotherootbridgeistherootport.Whentherearemultipleports,theportwiththeminimumIDistherootport.LocalAreaNetworkSomeconcepts:DesignatedPort/BridgeForeachLANsegment,abridgeischosenasitsdesignatedbridge.Thestandardisthatthepathcostfromthedesignatedbridgetotherootbridgeislowest.TheportoftheLANsegmentconnectingtothedesignatedbridgeisthedesignatedportofthisLANsegment.Whentherearemultipleports,theportwiththeminIDisthedesignatedport.PathCostThecostofMACframeistransferredthroughtheporttoacertainLAN.Rootpathcost:Foranybridge,thepathcostisfromtherootporttotherootbridgeLocalAreaNetworkLocalAreaNetworkInthesamenetwork(broadcastdomain-wide),aswitchisselectedastherootbridge(Root).Ineachnon-rootbridge,therootportisselected(RootPort).Ineachsegment,thedesignatedportisselected.otherPortsareblocked.HowSTPworks?EachbridgeinitiallyassumestobeRoot(RootPathCost=0)ElectasingleRootbridge(smallestID)CalculateshortestpathfromthemselvestotheRootbridgechoosetheRootport(shortestpathtoRootbridge)ForeachbridgeElectaDesignatedBridgeforeachLANastheoneclosesttotheRootbridgeSelecttheportstobeDesignated
Allotherportsarebackup/alternated(notforwardingstate)inblockedstate.LocalAreaNetworkConfigurecontentsofthemessageConfigurationinformationisalsocalledbridgeprotocoldataunit(BPDU)ThemaincontentsincludeIdentifieroftherootbridge(RootID).Theminimumpathcostfromthedesignatedbridgetotherootbridge(RootPathCost).Identifierofthedesignatedbridge.Identifierofthedesignatedportofthedesignatedbridge.Inaword:RootID,RootPathCost,DesignatedBridgeID,DesignatedPortIDLocalAreaNetworkLocalAreaNetworkDMALLCHeaderSMAL/TPayloadDMA:DestinationMACaddressThedestinationaddressofconfigurationmessageisafixedmulticastaddressofbridge(0x0180c2000000).SMA:SourceMACaddressTheMACaddressofthebridgesendingthisconfigurationmessage.L/T:framesizeLLCHeader:FixedlinkheaderofconfigurationmessagePayload:BPDU
dataValueDomainByteProtocolID2ProtocolversionBPDU
TypeFlagBitRootbridgeIDPathCost開銷DesignatedBridgeIDDesignatedportIDMessageAge11184822MaxAgeHelloTimeForwardDelay222BPDUexchangeLocalAreaNetworkEachbridgeperiodicallysendsthefollowingBPDUtotheLANconnectingwithit.rootbridge(whatthesenderthinksitis)rootpathcostforsendingbridge
Identifiessendingbridge
IdentifiesthesendingportrootIDcostbridgeIDportIDInitializationInthebeginningoftheprotocol,eachbridgeregardsitselfasRootBridge.SoeachBridgesendstheBPDUasthefollowingformtotheLANconnectingwithit.LocalAreaNetworkB0BPComparisonofBPDULocalAreaNetworkGiven
twoBPDUsM1andM2:IDR1C1IDB1M1M2IDP1IDR2C2IDB2IDP2Wesaid
M1isbetterthanM2,if(R1<R2), Or(R1==R2)and(C1<C2), Or(R1==R2)and(C1==C2)and(B1<B2), Or(R1==R2)and(C1==C2)and(B1==B2)and(P1<P2)UpdateBPDULocalAreaNetworkR1C1B1P1M1R2C2B2P2M2Then
BridgeBupdatesitsownBPDUasfollowing:R2C2+1B1P1EachBridgecomparesallBPDUsreceivedbyittotheBPDUsentbyitself.IfBridgeBsendsaBPDUM1asfollowing:ReceivesabetterBPDUM2:ConfigurationinformationhandlingIfitisrootbridge,thentheshortestpathcostis0,otherwise,itisthesummationofRootPathCostoftheoptimalconfigurationinformationandthecostoftheportreceivingthisconfigurationinformation.LocalAreaNetworkTheconstructionofthetreeAfterdeterminingRootPortandDesignatedPort,eachBridgeconsiders:RootPortsareinthespanningtree,whichareforwardingstate.DesignatedPortsareinthespanningtree,whichisforwardingstate.Allotherportsaren’tinthespanningtree,whichareblockedstate.LocalAreaNetworkAnexampleforacceptanceandprocessofconfigurationinformation
LocalAreaNetworkAccordingtothepriorityoftheconfigurationinformationreceived,Port4isselectedastherootport,Port1andPort2asthedesignatedports,Port3andPort5areblocked.TheconfigurationinformationsentfromPort1andPort2:(23,15,81)WhereRootId=23RootPathCost=14+1=15RootPort=Port4Port1Port2Port3Port4Port5blockingblocking32,0,3232,18,12323,14,32123,14,10023,15,80root23,15,81B8123,15,81HowtodealwithlinkfailureHelloTimeBridgesendstheconfigurationinformationperiodicallyinHelloTimefromthespecifiedport.MessageAgeandMaxAgeTheconfigurationinformationsavedbyporthasalifetimeMessageAgefield.Itincreasesaccordingtothetime.Whenitreceivesaconfigurationinformationwithasmallerlifetime,itwillupdateitsconfigurationinformation.Whenitdoesn’treceiveanyconfigureinformationandthelifetimeisup,thenthebridgeconsidersthatthelinkconnectingwiththisportfails,andcarriesoutthefailuretreatment.LocalAreaNetworkLinkfailuretreatmentILocalAreaNetwork23,18,123ThelifetimeofconfigurationinformationofPort4isovertime,thenthisconfigurationinformationisabandoned,andSpanningPort1Port2Port3Port4Port5blocking23,14,32123,15,8023,15,81rootB8132,0,3223,15,8123,15,81LinkfailuretreatmentIILocalAreaNetworkThelifetimeofconfigurationinformationofPort3isalsoovertime,thenthisconfigurationinformationisabandoned,andSpanningTreeisre-calculated.Port1Port2Port3Port4Port523,15,8023,16,81root23,16,8132,0,3232,18,12323,16,8123,16,81B81LinkfailuretreatmentIIILocalAreaNetworkThelifetimeofconfigurationinformationofPort5isalsoovertime,thenthisconfigurationinformationisabandoned,anditsendstheconfigurationinformation(81,0,81)forrootbridge,untilitreceivestheconfigurationinformationwithhigherpriorityfromanyport.Port1Port2Port3Port4Port581,0,8181,0,8181,0,8181,0,8181,0,81B81Redrepresentscost10,Bluerepresentscost5,BID
are42,97,45,57,83separatelyLocalAreaNetworkEvolutionSpanning-TreeProtocol(STP)Std802.1DDisadvantages:Itneedstowaitforthetimeoutofthetimer,andthenetworkrecoveryisslow.RapidSpanningTreeProtocol(RSTP,RapidSTP)Std802.1wAdvantages:Itdoesn’tneedtowaitforthetimeoutofthetimer,andincrea
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 7 開國大典 教學設計-2024-2025學年統編版語文六年級上冊
- 2023八年級數學下冊 第十六章 二次根式本章專題整合訓練教學設計 (新版)新人教版
- 10自然世界與人工世界 ( 教學設計)一年級上冊科學蘇教版
- 2023八年級英語下冊 Unit 9 Have you ever been to a museum Section A 第2課時 (3a-4c)教學設計 (新版)人教新目標版
- 2023一年級數學上冊 二 10以內數的認識和加減法(二)加減混合運算教學設計 西師大版
- 輪椅的選擇和使用安全
- 2024-2025學年高中物理 第一章 分子動理論 第4節 分子間的相互作用力教學設計 粵教版選修3-3
- 《設計食譜》(教案)-2024-2025學年五年級上冊勞動人教版
- 9《黃山奇石》教學設計-2024-2025學年統編版(五四制)語文二年級上冊
- 綠色清新個人工作總結
- 《中國老年糖尿病診療指南(2024版)》解讀課件
- 2025年高考政治一輪復習知識清單選擇性必修三 《邏輯與思維》知識點復習
- 初三班級學生中考加油家長會課件
- 廣東省2024年修訂醫療服務價格項目表
- 基于物聯網的農產品質量安全監測平臺建設方案
- 臨床腸氣囊腫病影像診斷與鑒別
- 產學合作協同育人項目教學內容和課程體系改革項目申報書模板-基于產業學院的實踐應用型人才培養
- 2023年上海市普通高中學業水平合格性考試地理試題及答案
- 楊必勝-無人系統自主協同三維信息獲取
- 2024年煙葉制絲操作工(二級)理論考試題庫大全-上(單選題)
- T-CPQS C010-2024 鑒賞收藏用潮流玩偶及類似用途產品
評論
0/150
提交評論