




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025湖北襄陽市中醫(yī)醫(yī)院(襄陽市中醫(yī)藥研究所)招聘急需專業(yè)技術(shù)人才55人模擬試卷附答案詳解
- 2025江蘇南通市崇川區(qū)衛(wèi)生系統(tǒng)面向畢業(yè)生招聘備案制高層次衛(wèi)生人才15人考前自測高頻考點模擬試題及答案詳解(新)
- 2025合肥市口腔醫(yī)院招聘工作人員81人模擬試卷及一套參考答案詳解
- 百合的種植技術(shù)
- 2025年紹興市上虞區(qū)中醫(yī)醫(yī)院醫(yī)共體公開招聘編外人員46人考前自測高頻考點模擬試題及答案詳解(各地真題)
- 2025湖南省永州市雙牌縣引進急需緊缺人才(醫(yī)衛(wèi)崗25人)考前自測高頻考點模擬試題及答案詳解(名校卷)
- 2025廣東云浮市羅定市市場監(jiān)督管理局招用青年見習人員2人考前自測高頻考點模擬試題(含答案詳解)
- 2025年中國戶外面罩行業(yè)市場分析及投資價值評估前景預(yù)測報告
- 2025春季內(nèi)蒙古包頭市九原區(qū)機關(guān)事業(yè)單位引進高層次和緊缺急需人才27人考前自測高頻考點模擬試題及答案詳解(歷年真題)
- 2025年甘肅隴南事業(yè)單位預(yù)計將于5月中旬發(fā)布考前自測高頻考點模擬試題及參考答案詳解一套
- 2025年四川省情省況考試復(fù)習題庫題庫(含答案)
- 科學教育:未來啟航
- GB/T 46134-2025天然酯在電氣設(shè)備中的維護和使用導則
- 金太陽九年級數(shù)學月考試卷及答案
- 地質(zhì)技能競賽試題及答案
- GB/T 45963.2-2025數(shù)字政府架構(gòu)框架第2部分:架構(gòu)設(shè)計
- 現(xiàn)代農(nóng)業(yè)裝備與應(yīng)用課件
- 土工壓實度試驗規(guī)程課件
- 2025年安徽省標準化專業(yè)技術(shù)資格考試(標準化基礎(chǔ)知識)歷年參考題庫含答案詳解(5卷)
- 售電招聘試題及答案
- 酸堿平衡管理課件
評論
0/150
提交評論