版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Chapter5:TheDataLinkLayerOurgoals:
understandprinciplesbehinddatalinklayerservices:errordetection,correctionsharingabroadcastchannel:multipleaccesslinklayeraddressingreliabledatatransfer,flowcontrol:done!instantiationandimplementationofvariouslinklayertechnologies15:DataLinkLayerLinkLayer:IntroductionSometerminology:hostsandroutersarenodesLinks:
communicationchannelsthatconnectadjacentnodeswiredlinkswirelesslinksLANslayer-2packetisaframe,
encapsulatesdatagramdata-linklayerhasresponsibilityoftransferringdatagramfromonenodetoadjacentnodeoveralink25:DataLinkLayerLinklayer:contextdatagramtransferredbydifferentlinkprotocolsoverdifferentlinks:EthernetlinkPpplinkATMlinkframerelayFiberlink802.11link…eachlinkprotocolprovidesdifferentservicese.g.,mayormaynotproviderdtoverlink35:DataLinkLayerLinkLayerServicesframing,linkaccess:
encapsulatedatagramintoframe,addingheader,trailerchannelaccessifsharedmedium“MAC”addressesusedinframeheaderstoidentifysource,destdifferentfromIPaddress!reliabledeliverybetweenadjacentnodeswelearnedhowtodothisalready(chapter3)!seldomusedonlowbit-errorlink(fiber,sometwistedpair)wirelesslinks:higherrorratesQ:whybothlink-levelandend-endreliability?45:DataLinkLayerLinkLayerServices(more)flowcontrol:
pacingbetweenadjacentsendingandreceivingnodeserrordetection:
errorscausedbysignalattenuation,noise.receiverdetectspresenceoferrors:signalssenderforretransmissionordropsframeerrorcorrection:
receiveridentifiesandcorrectsbiterror(s)withoutresortingtoretransmissionhalf-duplexandfull-duplexwithhalfduplex,nodesatbothendsoflinkcantransmit,butnotatsametime55:DataLinkLayerWhereisthelinklayerimplemented?ineachandeveryhostlinklayerimplementedin“adapter”(akanetworkinterfacecardNIC)Ethernetcard,PCMCIcard,802.11cardimplementslink,physicallayerattachesintohost’ssystembusescombinationofhardware,software,firmwarecontrollerphysicaltransmissioncpumemoryhostbus(e.g.,PCI)networkadaptercardhostschematicapplicationtransportnetworklinklinkphysical65:DataLinkLayerAdaptersCommunicatingsendingside:encapsulatesdatagraminframeaddserrorcheckingbits,rdt,flowcontrol,etc.receivingsidelooksforerrors,rdt,flowcontrol,etcextractsdatagram,passestoupperlayeratreceivingsidecontrollercontrollersendinghostreceivinghostdatagramdatagramdatagramframe75:DataLinkLayerErrorDetectionEDC=ErrorDetectionandCorrectionbits(redundancy)D=Dataprotectedbyerrorchecking,mayincludeheaderfields
Errordetectionnot100%reliable!protocolmaymisssomeerrors,butrarelylargerEDCfieldyieldsbetterdetectionandcorrectionotherwise85:DataLinkLayerParityCheckingSingleBitParity:DetectsinglebiterrorsTwoDimensionalBitParity:Detectandcorrectsinglebiterrors0095:DataLinkLayerCRC:CyclicRedundancyCheckviewdatabits,D,asabinarynumberchooser+1bitpattern(generator),G
goal:chooserCRCbits,R,suchthat<D,R>exactlydivisiblebyG(modulo2)receiverknowsG,divides<D,R>byG.Ifnon-zeroremainder:errordetected!candetectallbursterrorslessthanr+1bitswidelyusedinpractice(Ethernet,802.11WiFi,ATM)105:DataLinkLayerCRCExampleWant:D.2rXORR=nGequivalently:D.2r=nGXORRequivalently:
ifwedivideD.2rbyG,wantremainderRR=remainder[]D.2rG115:DataLinkLayerMultipleAccessLinksandProtocolsTypesof“links”:point-to-pointPPPfordial-upaccesspoint-to-pointlinkbetweenEthernetswitchandhostbroadcast(sharedwireormedium)old-fashionedEthernetupstreamHFC802.11wirelessLANSwitched
Ethernetsharedwire(e.g.,cabledEthernet)sharedRF(e.g.,802.11WiFi)sharedRF(satellite)humansatacocktailparty(sharedair,acoustical)125:DataLinkLayerMultipleAccessprotocolssinglesharedbroadcastchanneltwoormoresimultaneoustransmissionsbynodes:interferencecollisionifnodereceivestwoormoresignalsatthesametimemultipleaccessprotocolsDecentralizedcontroldistributedalgorithmthatdetermineshownodessharechannel,i.e.,determinewhennodecantransmitcommunicationaboutchannelsharingmustusechannelitself!noout-of-bandchannelforcoordinationCentralizedcontrolThereisacontroller135:DataLinkLayerIdealMultipleAccessProtocolBroadcastchannelofrateRbps1.whenonenodewantstotransmit,itcansendatrateR.2.whenMnodeswanttotransmit,eachcansendataveragerateR/M3.fullydecentralized:nospecialnodetocoordinatetransmissionsnosynchronizationofclocks,slots4.simple145:DataLinkLayerMACProtocols:ataxonomyThreebroadclasses:ChannelPartitioningdividechannelintosmaller“pieces”(timeslots,frequency,code)allocatepiecetonodeforexclusiveuseRandomAccesschannelnotdivided,allowcollisions“recover”fromcollisions“Takingturns”nodestaketurns,butnodeswithmoretosendcantakelongerturns155:DataLinkLayerChannelPartitioningMACprotocols:TDMATDMA:timedivisionmultipleaccess
accesstochannelin"rounds"eachstationgetsfixedlengthslot(length=pkttranstime)ineachroundunusedslotsgoidleexample:6-stationLAN,1,3,4havepkt,slots2,5,6idle1341346-slotframe165:DataLinkLayerChannelPartitioningMACprotocols:FDMAFDMA:frequencydivisionmultipleaccess
channelspectrumdividedintofrequencybandseachstationassignedfixedfrequencybandunusedtransmissiontimeinfrequencybandsgoidleexample:6-stationLAN,1,3,4havepkt,frequencybands2,5,6idlefrequencybandstimeFDMcable175:DataLinkLayerRandomAccessProtocolsWhennodehaspackettosendtransmitatfullchanneldatarateR.noaprioricoordinationamongnodestwoormoretransmittingnodes➜“collision”,randomaccessMACprotocolspecifies:howtodetectcollisionshowtorecoverfromcollisions(e.g.,viadelayedretransmissions)ExamplesofrandomaccessMACprotocols:slottedALOHAALOHACSMA,CSMA/CD,CSMA/CA185:DataLinkLayerSlottedALOHAAssumptions:allframessamesizetimedividedintoequalsizeslots(timetotransmit1frame)nodesstarttotransmitonlyslotbeginningnodesaresynchronizedif2ormorenodestransmitinslot,allnodesdetectcollisionOperation:whennodeobtainsfreshframe,transmitsinnextslotifnocollision:nodecansendnewframeinnextslotifcollision:noderetransmitsframeineachsubsequentslotwithprob.puntilsuccess195:DataLinkLayerSlottedALOHAProssingleactivenodecancontinuouslytransmitatfullrateofchannelhighlydecentralized:onlyslotsinnodesneedtobeinsyncsimpleConscollisions,wastingslotsidleslotsnodesmaybeabletodetectcollisioninlessthantimetotransmitpacketclocksynchronization205:DataLinkLayerSlottedAlohaefficiencysuppose:Nnodeswithmanyframestosend,eachtransmitsinslotwithprobabilitypprobthatgivennodehassuccessinaslot=p(1-p)N-1probthatanynodehasasuccess=Np(1-p)N-1
maxefficiency:findp*thatmaximizes
Np(1-p)N-1formanynodes,takelimitofNp*(1-p*)N-1asNgoestoinfinity,gives:Maxefficiency=1/e=.37Efficiency:long-run
fractionofsuccessfulslots
(manynodes,allwithmanyframestosend)Atbest:channelusedforusefultransmissions37%oftime!!215:DataLinkLayerPure(unslotted)ALOHAunslottedAloha:simpler,nosynchronizationwhenframefirstarrivestransmitimmediatelycollisionprobabilityincreases:framesentatt0collideswithotherframessentin[t0-1,t0+1]225:DataLinkLayerPureAlohaefficiencyP(successbygivennode)=P(nodetransmits).P(noothernodetransmitsin[p0-1,p0].P(noothernodetransmitsin[p0-1,p0]=p.(1-p)N-1.(1-p)N-1
=p.(1-p)2(N-1)
max(p)=1/(2e)=.18
evenworsethanslottedAloha!G=offeredload=Np0.51.01.52.00.10.20.30.4PureAlohaSlottedAlohaS=throughput=“goodput”(successrate)protocolconstrainseffectivechannelthroughput!235:DataLinkLayerCSMA(CarrierSenseMultipleAccess)CSMA:listenbeforetransmit:Ifchannelsensedidle:transmitentireframeIfchannelsensedbusy,defertransmission
humananalogy:don’tinterruptothers!245:DataLinkLayerCSMAcollisionscollisionscanstilloccur:propagationdelaymeanstwonodesmaynotheareachother’stransmissioncollision:entirepackettransmissiontimewastedspatiallayoutofnodesnote:roleofdistance&propagationdelayindeterminingcollisionprobability255:DataLinkLayerCSMA/CD(CollisionDetection)CSMA/CD:carriersensing,deferralasinCSMAcollisionsdetectedwithinshorttimecollidingtransmissionsaborted,reducingchannelwastagecollisiondetection:
easyinwiredLANs:measuresignalstrengths,comparetransmitted,receivedsignalsdifficultinwirelessLANs:receivedsignalstrengthoverwhelmedbylocaltransmissionstrength265:DataLinkLayerCSMA/CDcollisiondetection275:DataLinkLayer“TakingTurns”MACprotocolschannelpartitioningMACprotocols:sharechannelefficientlyandfairlyathighloadinefficientatlowload:delayinchannelaccess,1/Nbandwidthallocatedevenifonly1activenode!RandomaccessMACprotocolsefficientatlowload:singlenodecanfullyutilizechannelhighload:collisionoverhead“takingturns”protocolslookforbestofbothworlds!285:DataLinkLayer“TakingTurns”MACprotocolsPolling:
masternode“invites”slavenodestotransmitinturntypicallyusedwith“dumb”slavedevicesconcerns:pollingoverheadlatencysinglepointoffailure(master)masterslavespolldatadata295:DataLinkLayer“TakingTurns”MACprotocolsTokenpassing:controltokenpassedfromonenodetonextsequentially.tokenmessageconcerns:tokenoverheadlatencysinglepointoffailure(token)
Tdata(nothingtosend)T305:DataLinkLayer
SummaryofMACprotocolschannelpartitioning,bytime,frequencyorcodeTimeDivision,FrequencyDivisionrandomaccess(dynamic),ALOHA,S-ALOHA,CSMA,CSMA/CDCollisiondetection:easyinsometechnologies(wire),hardinothers(wireless)CSMA/CDusedinEthernetCSMA/CAusedin802.11takingturnspollingfromcentralsite,tokenpassingBluetooth,FDDI,IBMTokenRing315:DataLinkLayerMACAddressesandARP32-bitIPaddress:network-layeraddressusedtogetdatagramtodestinationIPsubnetMAC(orLANorphysicalorEthernet)address:
function:
getframefromoneinterfacetoanotherphysically-connectedinterface(samenetwork)48bitMACaddress(formostLANs)burnedinNICROM,alsosometimessoftwaresettable325:DataLinkLayerLANAddressesandARPEachadapteronLANhasuniqueLANaddressBroadcastaddress=FF-FF-FF-FF-FF-FF=adapter1A-2F-BB-76-09-AD58-23-D7-FA-20-B00C-C4-11-6F-E3-9871-65-F7-2B-08-53
LAN(wiredorwireless)335:DataLinkLayerLANAddress(more)MACaddressallocationadministeredbyIEEEmanufacturerbuysportionofMACaddressspace(toassureuniqueness)MACflataddress➜portabilitycanmoveLANcardfromoneLANtoanotherIPhierarchicaladdressNOTportableaddressdependsonIPsubnettowhichnodeisattached345:DataLinkLayerARP:AddressResolutionProtocolEachIPnode(host,router)onLANhasARPtableARPtable:IP/MACaddressmappingsforsomeLANnodes
<IPaddress;MACaddress;TTL>
TTL(TimeToLive):timeafterwhichaddressmappingwillbeforgotten(typically20min)Question:howtodetermineMACaddressofBknowingB’sIPaddress?1A-2F-BB-76-09-AD58-23-D7-FA-20-B00C-C4-11-6F-E3-9871-65-F7-2B-08-53
LAN3848AB355:DataLinkLayerARPprotocol:SameLAN(network)AwantstosenddatagramtoB,andB’sMACaddressnotinA’sARPtable.AbroadcastsARPquerypacket,containingB'sIPaddressdestMACaddress=FF-FF-FF-FF-FF-FFallmachinesonLANreceiveARPquery
BreceivesARPpacket,repliestoAwithits(B's)MACaddressframesenttoA’sMACaddress(unicast)Acaches(saves)IP-to-MACaddresspairinitsARPtableuntilinformationbecomesold(timesout)softstate:informationthattimesout(goesaway)unlessrefreshedARPis“plug-and-play”:nodescreatetheirARPtableswithoutinterventionfromnetadministrator365:DataLinkLayerAddressing:routingtoanotherLANR1A-23-F9-CD-06-9B2010E6-E9-00-17-BB-4BCC-49-DE-D0-AB-7D1211A74-29-9C-E8-FF-552188-B2-2F-54-1A-0FB2249-BD-D2-C7-56-2Awalkthrough:senddatagramfromAtoBviaRassumeAknowsB’sIPaddresstwoARPtablesinrouterR,oneforeachIPnetwork(LAN)375:DataLinkLayerAcreatesIPdatagramwithsourceA,destinationBAusesARPtogetR’sMACaddressfor10Acreateslink-layerframewithR'sMACaddressasdest,framecontainsA-to-BIPdatagramA’sNICsendsframeR’sNICreceivesframeRremovesIPdatagramfromEthernetframe,seesitsdestinedtoB,forwarditusingroutingtableRusesARPtogetB’sMACaddressRcreatesframecontainingA-to-BIPdatagramsendstoBR1A-23-F9-CD-06-9B2010E6-E9-00-17-BB-4BCC-49-DE-D0-AB-7D1211A74-29-9C-E8-FF-552188-B2-2F-54-1A-0FB2249-BD-D2-C7-56-2AThisisareallyimportantexample–makesureyouunderstand!385:DataLinkLayerEthernet“dominant”wiredLANtechnology:cheap$20forNICfirstwidelyusedLANtechnologysimpler,cheaperthantokenLANsandATMkeptupwithspeedrace:10Mbps–10Gbps
Metcalfe’sEthernetsketch395:DataLinkLayerStartopologybustopologypopularthroughmid90sallnodesinsamecollisiondomain(cancollidewitheachother)today:startopologyprevailsactiveswitchincentereach“spoke”runsa(separate)Ethernetprotocol(nodesdonotcollidewitheachother)switchbus:coaxialcablestar405:DataLinkLayerEthernetFrameStructureSendingadapterencapsulatesIPdatagram(orothernetworklayerprotocolpacket)inEthernetframePreamble:
7byteswithpattern10101010followedbyonebytewithpattern10101011usedtosynchronizereceiver,senderclockrates415:DataLinkLayerEthernetFrameStructure(more)Addresses:6bytesifadapterreceivesframewithmatchingdestinationaddress,orwithbroadcastaddress(egARPpacket),itpassesdatainframetonetworklayerprotocolotherwise,adapterdiscardsframeType:2B,indicateshigherlayerprotocol(mostlyIPbutotherspossible,e.g.,NovellIPX,AppleTalk)CRC:4B,checkedatreceiver,iferrorisdetected,frameisdroppedData:46B~1500B425:DataLinkLayer
ServicesmodelofEthernetConnectionless,unreliableservicesOnlyCRCcheck,nohandshaking,noretransmissionNoACKorNACKWhenaframefails,discarditandlefttheprocessingtouplayersEthernetusesbasebandtransmission,sendsadigitalsignaldirectlytothebroadcastchannelDifferentfromADSL,ModemManchesterencodingisused,fromuptodownrepresents1,fromdowntouprepresents0CRC+CSMA/CD435:DataLinkLayer
Ethernet:CSMA/CDalgorithmA:sensechannel,ifidlethen{ transmitandmonitorthechannel;Ifdetectanothertransmission//collisiondetection
then{abortandsendjamsignal;update#collisions;delayasrequiredbyexponentialbackoffalgorithm;gotoA}
else{donewiththeframe;setcollisionstozero}}else{waituntilongoingtransmissionisoverandgotoA}445:DataLinkLayerEthernet’sCSMA/CD(more)JamSignal:makesureallothertransmittersareawareofcollision;48bitsBittime:.1microsecfor10MbpsEthernet;
forK=1023,waittimeisabout50msec
ExponentialBackoff:
Goal:adaptretransmissionattemptstoestimatedcurrentloadheavyload:randomwaitwillbelongerfirstcollision:chooseKfrom{0,1};delayisK*512bittransmissiontimesaftersecondcollision:chooseKfrom{0,1,2,3}…aftertencollisions,chooseKfrom{0,1,2,3,4,…,1023}455:DataLinkLayerCSMA/CDefficiencyTprop=maxpropdelaybetween2nodesinLANttrans=timetotransmitmax-sizeframeefficiencygoesto1astpropgoesto0asttransgoestoinfinitybetterperformancethanALOHA:andsimple,cheap,decentralized!465:DataLinkLayer802.3EthernetStandards:Link&PhysicalLayersmanydifferentEthernetstandardscommonMACprotocolandframeformatdifferentspeeds:2Mbps,10Mbps,100Mbps,1Gbps,10Gbpsdifferentphysicallayermedia:fiber,cableapplicationtransportnetworklinkphysicalMACprotocolandframeformat100BASE-TX100BASE-T4100BASE-FX100BASE-T2100BASE-SX100BASE-BXfiberphysicallayercopper(twisterpair)physicallayer475:DataLinkLayerManchesterencodingusedin10BaseTeachbithasatransitionallowsclocksinsendingandreceivingnodestosynchronizetoeachothernoneedforacentralized,globalclockamongnodes!Hey,thisisphysical-layerstuff!485:DataLinkLayerHubs…physical-layer(“dumb”)repeaters:bitscominginonelinkgooutallotherlinksatsamerateallnodesconnectedtohubcancollidewithoneanothernoframebufferingnoCSMA/CDathub:hostNICsdetectcollisionstwistedpairhub495:DataLinkLayerSwitchlink-layerdevice:smarterthanhubs,takeactiverolestore,forwardEthernetframesexamineincomingframe’sMACaddress,selectivelyforwardframetoone-or-moreoutgoinglinkswhenframeistobeforwardedonsegment,usesCSMA/CDtoaccesssegmenttransparenthostsareunawareofpresenceofswitchesplug-and-play,self-learningswitchesdonotneedtobeconfigured505:DataLinkLayerSwitch:allowsmultiplesimultaneoustransmissionshostshavededicated,directconnectiontoswitchswitchesbufferpacketsEthernetprotocolusedoneachincominglink,butnocollisions;fullduplexeachlinkisitsowncollisiondomainswitching:
A-to-A’andB-to-B’simultaneously,withoutcollisionsnotpossiblewithdumbhubAA’BB’CC’switchwithsixinterfaces(1,2,3,4,5,6)
123456515:DataLinkLayerSwitchTableQ:howdoesswitchknowthatA’reachableviainterface4,B’reachableviainterface5?A:eachswitchhasaswitchtable,eachentry:(MACaddressofhost,interfacetoreachhost,timestamp)lookslikearoutingtable!Q:howareentriescreated,maintainedinswitchtable?somethinglikearoutingprotocol?AA’BB’CC’switchwithsixinterfaces(1,2,3,4,5,6)
123456525:DataLinkLayerSwitch:self-learningswitch
learnswhichhostscanbereachedthroughwhichinterfaceswhenframereceived,switch“learns”locationofsender:incomingLANsegmentrecordssender/locationpairinswitchtableAA’BB’CC’123456AA’Source:ADest:A’MACaddrinterfaceTTLSwitchtable(initiallyempty)A160535:DataLinkLayerSwitch:framefiltering/forwardingWhenframereceived:
1.recordlinkassociatedwithsendinghost2.indexswitchtableusingMACdestaddress3.ifentryfoundfordestination
then{ifdestonsegmentfromwhichframearrived
thendroptheframe
elseforwardtheframeoninterfaceindicated
}
elseflood
forwardonallbuttheinterfaceonwhichtheframearrived545:DataLinkLayer
BridgeSelf-learningAbridgehasself-learningabilityThebridgetableisbuiltautomatically,dynamicallyandautonomously—withoutanyinterventionfromtheadministratororconfigurationprotocolSelf-learningprocedure:ThebridgetableisinitiallyemptyWhenaframearrivesononeinterface,thebridgeforwardsittoallotherinterfaces.RemembertheLANaddress,inputinterfacenumberandtimestamp.Ifeverynodeeventuallysendsaframe,everynodewillgetrecordedinthetable:(address,interfaces,time)Whenaframearrivesandthedest.Addressisinthetable,forwardittoappropriateinterfaceIfnoframereceivedaftersometime,deletecorrespondingrecord555:DataLinkLayerSelf-learning,forwarding:AA’BB’CC’123456AA’Source:ADest:A’MACaddrinterfaceTTLSwitchtable(initiallyempty)A160AA’AA’AA’AA’AA’framedestinationunknown:floodA’AdestinationAlocationknown:A’460selectivesend565:DataLinkLayer
BridgeSelf-learning:exampleSupposeCsendsframetoDandDrepliesbackwithframetoCCsendsframe,bridgehasnoinfoaboutD,sofloodstobothLANs
bridgenotesthatCisonport1frameignoredonoriginalLANframereceivedbyD575:DataLinkLayerInterconnectingswitchesswitchescanbeconnectedtogetherABQ:sendingfromAtoG-howdoesS1knowtoforwardframedestinedtoGviaS4andS3?A:selflearning!(worksexactlythesameasinsingle-switchcase!)S1CDEFS2S4S3HIG585:DataLinkLayerSelf-learningmulti-switchexampleSupposeCsendsframetoI,IrespondstoCQ:showswitchtablesandpacketforwardinginS1,S2,S3,S4
ABS1CDEFS2S4S3HIG12595:DataLinkLayerInstitutionalnetworktoexternalnetworkrouterIPsubnetmailserverwebserver605:DataLinkLayerSwitchesvs.Routersbothstore-and-forwarddevicesrouters:networklayerdevices(examinenetworklayerheaders)switchesarelinklayerdevicesroutersmaintainroutingtables,implementroutingalgorithmsswitchesmaintainswitchtables,implementfiltering,learningalgorithms
615:DataLinkLayerVLANs:motivationWhathappensif:CSusermovesofficetoEE,butwantsconnecttoCSswitch?singlebroadcastdomain:alllayer-2broadcasttraffic(ARP,DHCP)crossesentireLAN(security/privacy,efficiencyissues)eachlowestlevelswitchhasonlyfewportsinuseComputerScienceElectricalEngineeringComputerEngineeringWhat’swrongwiththispicture?625:DataLinkLayerVLANsPort-basedVLAN:switchportsgrouped(byswitchmanagementsoftware)sothatsinglephysicalswitch……Switch(es)supportingVLANcapabilitiescanbeconfiguredtodefinemultiplevirtualLANSoversinglephysicalLANinfrastructure.VirtualLocalAreaNetwork189161027…ElectricalEngineering(VLANports1-8)ComputerScience(VLANports9-15)15…ElectricalEngineering(VLANports1-8)ComputerScience(VLANports9-16)…operatesasmultiplevirtualswitches635:DataLinkLayerPort-basedVLAN189161027…ElectricalEngineering(VLANports1-8)ComputerScience(VLANports9-15)15…trafficisolation:framesto/fromports1-8canonlyreachports1-8canalsodefineVLANbasedonMACaddressesofendpoints,ratherthanswitchportdynamicmembership:portscanbedynamicallyassignedamongVLANsrouterforwardingbetweenVLANS:doneviarouting(justaswithseparateswitches)inpracticevendorssellcombinedswitchesplusrouters645:DataLinkLayerVLANSspanningmultipleswitchestrunkport:carriesframesbetweenVLANSdefinedovermultiplephysicalswitchesframesforwardedwithinVLANbetweenswitchescan’tbevanilla802.1frames(mustcarryVLANIDinfo)802.1qprotocoladds/removedadditionalheaderfieldsforframesforwardedbetweentrunkports1891027…ElectricalEngineering(VLANports1-8)ComputerScience(VLANports9-15)15…273Ports2,3,5belongtoEEVLANPorts4,6,7,8belongtoCSVLAN5468161655:DataLinkLayerType2-byteTagProtocolIdentifier(value:81-00)TagControlInformation(12bitVLANIDfield,3bitpriorityfieldlikeIPTOS)
RecomputedCRC
802.1QVLANframeformat802.1frame802.1Qframe665:DataLinkLayerPointtoPointDataLinkControlonesender,onereceiver,onelink:easierthanbroadcastlink:noMediaAccessControlnoneedforexplicitMACaddressinge.g.,dialuplink,ISDNlinepopularpoint-to-pointDLCprotocols:PPP(point-to-pointprotocol)HDLC:Highleveldatalinkcontrol(Datalinkusedtobeconsidered“highlayer”inprotocolstack!675:DataLinkLayerPPPDesignRequirements[RFC1557]packetframing:encapsulationofnetwork-layerdatagramindatalinkframecarrynetworklayerdataofanynetworklayerprotocol(notjustIP)atsametimeabilitytodemultiplexupwardsbittransparency:mustcarryanybitpatterninthedatafielderrordetection(nocorrection)connectionliveness:detect,signallinkfailuretonetworklayernetworklayeraddressnegotiation:endpointcanlearn/configureeachother’snetworkaddress685:DataLinkLayerPPPnon-requirementsnoerrorcorrection/recoverynoflowcontroloutoforderdeliveryOKnoneedtosupportmultipointlinks(e.g.,polling)Errorrecovery,flowcontrol,datare-orderingallrelegatedtohigherlayers!695:DataLinkLayerPPPDataFrameFlag:delimiter(framing)Address:doesnothing(onlyoneoption)Control:doesnothing;inthefuturepossiblemultiplecontrolfieldsProtocol:upperlayerprotocoltowhichframedelivered(eg,PPP-LCP,IP,IPCP,etc)705:DataLinkLayerPPPDataFrameinfo:upperlayerdatabeingcarriedcheck:cyclicredundancycheckforerrordetection715:DataLinkLayerByteStuffing
“datatransparency”requirement:datafieldmustbeallowedtoincludeflagpattern<01111110>Q:isreceived<01111110>dataorflag?Sender:adds(“stuffs”)extra<01111110>byteaftereach<01111110>databyteReceiver:
two01111110bytesinarow:discardfirstbyte,continuedatareceptionsingle01111110:flagbyte725:DataLinkLayerByteStuffingflagbytepatternindatatosendflagbytepatternplusstuffedbyteintransmitteddata735:DataLinkLayerPPPDataControlProtocolBeforeexchangingnetwork-layerdata,datalinkpeersmustconfigurePPPlink(max.framelength,authentication)learn/configurenetwork
layerinformationforIP:carryIPControlProtocol(IPCP)msgs(protocolfield:8021)toconfigure/learnIPaddress745:DataLinkLayerVirtualizationofnetworksVirtualizationofresources:powerfulabstractioninsystemsengineering:computingexamples:virtualmemory,virtualdevicesVirtualmachines:e.g.,javaIBMVMosfrom1960’s/70’slayeringofabstractions:don’tsweatthedetailsofthelowerlayer,onlydealwithlowerlayersabstractly755:DataLinkLayerTheInternet:virtualizingnetw
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 丑小鸭读后感(15篇)
- 现代物流产业与物流
- 读书月活动演讲稿4篇
- canon打印机维修技术手册
- 化工课程设计心得体会
- 课时5:大数的改写(教学实录)-2024-2025学年五年级上册数学苏教版
- 平面设计师实习报告(5篇)
- 幼儿园教师心得模板10篇
- 房产销售工作总结合集15篇
- 陕西省石泉县高中生物 第五章 生物的进化 5.1 生物进化理论教学实录 苏教版必修2
- 2024-2025年职业技能:全国高速公路收费员从业资格知识考试题库与答案
- 阜阳师范大学《法学概论》2023-2024学年期末试卷
- 湘教版八年级音乐下册教案全册
- 2024年新人教版三年级数学上册《第8单元第8课时 分数的初步认识复习》教学课件
- 特种设备安全管理电梯模拟考核题库888题(含标准答案)
- 2024-2030年中国混凝土管桩行业发展分析及发展前景与趋势预测研究报告
- 全区国有企业资产全面清查工作方案
- 职业技能大赛-密码技术竞赛理论知识题库(附参考答案)
- 明源地产ERP管理系统
- 狼王梦-完整课件
- 2024解读《弘扬教育家精神》全文
评论
0/150
提交评论