版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
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. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 土地轉讓協議書2023標準版
- 顱縫分離病因介紹
- 2024賓館轉讓協議
- 雙方協議離婚嗎
- 中考歷史基礎知識第7講中華民族的抗日戰(zhàn)爭
- (2024)果蔬交易市場建設項目可行性研究報告(一)
- 湖南省永州市道縣2024-2025學年八年級上學期期中生物學試題(原卷版)-A4
- 2024秋新滬科版物理八年級上冊課件 第一章 運動的世界 第一節(jié) 動與靜 1
- 管理評審會議材料匯編培訓課件
- 熱工基礎模擬習題
- 2024-2030年水培蔬菜行業(yè)市場發(fā)展分析及發(fā)展趨勢與投資戰(zhàn)略研究報告
- 2024年部編版語文五年級上冊全冊單元檢測題及答案(共8套)
- 集成電路制造工藝 課件 6光刻工藝2
- 建筑邊坡工程施工質量驗收標準
- 2020海灣JTW-LD-GST85B纜式線型感溫火災探測器
- 微測網題庫完整版行測
- 2024中華人民共和國農村集體經濟組織法詳細解讀課件
- 2024年貴州省中考理科綜合試卷(含答案)
- 2024應急管理部國家自然災害防治研究院公開招聘34人(高頻重點提升專題訓練)共500題附帶答案詳解
- 2002版《水利工程施工機械臺時費定額》
- 創(chuàng)意思維與演講口才智慧樹知到期末考試答案章節(jié)答案2024年宜賓學院
評論
0/150
提交評論