您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > 高级计算机网络课件Chapter5_4th_ed_June_13_2007
5:DataLinkLayer5-1Chapter5LinkLayerandLANsAnoteontheuseofthesepptslides:We’remakingtheseslidesfreelyavailabletoall(faculty,students,readers).They’reinPowerPointformsoyoucanadd,modify,anddeleteslides(includingthisone)andslidecontenttosuityourneeds.Theyobviouslyrepresentalotofworkonourpart.Inreturnforuse,weonlyaskthefollowing:Ifyouusetheseslides(e.g.,inaclass)insubstantiallyunalteredform,thatyoumentiontheirsource(afterall,we’dlikepeopletouseourbook!)Ifyoupostanyslidesinsubstantiallyunalteredformona(orperhapsidenticalto)ourslides,andnoteourcopyrightofthismaterial.Thanksandenjoy!JFK/KWRAllmaterialcopyright1996-2007J.FKuroseandK.W.Ross,AllRightsReservedComputerNetworking:ATopDownApproach4thedition.JimKurose,KeithRossAddison-Wesley,July2007.5:DataLinkLayer5-2Chapter5:TheDataLinkLayerOurgoals:understandprinciplesbehinddatalinklayerservices:errordetection,correctionsharingabroadcastchannel:multipleaccesslinklayeraddressingreliabledatatransfer,flowcontrol:done!instantiationandimplementationofvariouslinklayertechnologies5:DataLinkLayer5-3LinkLayer5.1Introductionandservices5.2Errordetectionandcorrection5.3Multipleaccessprotocols5.4Link-layerAddressing5.5Ethernet5.6Link-layerswitches5.7PPP5.8Linkvirtualization:ATM,MPLS5:DataLinkLayer5-4LinkLayer:IntroductionSometerminology:hostsandroutersarenodescommunicationchannelsthatconnectadjacentnodesalongcommunicationpatharelinkswiredlinkswirelesslinksLANslayer-2packetisaframe,encapsulatesdatagramdata-linklayerhasresponsibilityoftransferringdatagramfromonenodetoadjacentnodeoveralink5:DataLinkLayer5-5Linklayer:contextdatagramtransferredbydifferentlinkprotocolsoverdifferentlinks:e.g.,Ethernetonfirstlink,framerelayonintermediatelinks,802.11onlastlinkeachlinkprotocolprovidesdifferentservicese.g.,mayormaynotproviderdtoverlinktransportationanalogytripfromPrincetontoLausannelimo:PrincetontoJFKplane:JFKtoGenevatrain:GenevatoLausannetourist=datagramtransportsegment=communicationlinktransportationmode=linklayerprotocoltravelagent=routingalgorithm5:DataLinkLayer5-6LinkLayerServicesframing,linkaccess:encapsulatedatagramintoframe,addingheader,trailerchannelaccessifsharedmedium“MAC”addressesusedinframeheaderstoidentifysource,dest•differentfromIPaddress!reliabledeliverybetweenadjacentnodeswelearnedhowtodothisalready(chapter3)!seldomusedonlowbit-errorlink(fiber,sometwistedpair)wirelesslinks:higherrorrates•Q:whybothlink-levelandend-endreliability?5:DataLinkLayer5-7LinkLayerServices(more)flowcontrol:pacingbetweenadjacentsendingandreceivingnodeserrordetection:errorscausedbysignalattenuation,noise.receiverdetectspresenceoferrors:•signalssenderforretransmissionordropsframeerrorcorrection:receiveridentifiesandcorrectsbiterror(s)withoutresortingtoretransmissionhalf-duplexandfull-duplexwithhalfduplex,nodesatbothendsoflinkcantransmit,butnotatsametime5:DataLinkLayer5-8Whereisthelinklayerimplemented?ineachandeveryhostlinklayerimplementedin“adaptor”(akanetworkinterfacecardNIC)Ethernetcard,PCMCIcard,802.11cardimplementslink,physicallayerattachesintohost’ssystembusescombinationofhardware,software,firmwarecontrollerphysicaltransmissioncpumemoryhostbus(e.g.,PCI)networkadaptercardhostschematicapplicationtransportnetworklinklinkphysical5:DataLinkLayer5-9AdaptorsCommunicatingsendingside:encapsulatesdatagraminframeaddserrorcheckingbits,rdt,flowcontrol,etc.receivingsidelooksforerrors,rdt,flowcontrol,etcextractsdatagram,passestoupperlayeratreceivingsidecontrollercontrollersendinghostreceivinghostdatagramdatagramdatagramframe5:DataLinkLayer5-10LinkLayer5.1Introductionandservices5.2Errordetectionandcorrection5.3Multipleaccessprotocols5.4Link-layerAddressing5.5Ethernet5.6Link-layerswitches5.7PPP5.8LinkVirtualization:ATM.MPLS5:DataLinkLayer5-11ErrorDetectionEDC=ErrorDetectionandCorrectionbits(redundancy)D=Dataprotectedbyerrorchecking,mayincludeheaderfields•Errordetectionnot100%reliable!•protocolmaymisssomeerrors,butrarely•largerEDCfieldyieldsbetterdetectionandcorrectionotherwise5:DataLinkLayer5-12ParityCheckingSingleBitParity:DetectsinglebiterrorsTwoDimensionalBitParity:Detectandcorrectsinglebiterrors005:DataLinkLayer5-13Internetchecksum(review)Sender:treatsegmentcontentsassequenceof16-bitintegerschecksum:addition(1’scomplementsum)ofsegmentcontentssenderputschecksumvalueintoUDPchecksumfieldReceiver:computechecksumofreceivedsegmentcheckifcomputedchecksumequalschecksumfieldvalue:NO-errordetectedYES-noerrordetected.Butmaybeerrorsnonetheless?Goal:detect“errors”(e.g.,flippedbits)intransmittedpacket(note:usedattransportlayeronly)5:DataLinkLayer5-14Checksumming:CyclicRedundancyCheckviewdatabits,D,asabinarynumberchooser+1bitpattern(generator),Ggoal:chooserCRCbits,R,suchthatD,RexactlydivisiblebyG(modulo2)receiverknowsG,dividesD,RbyG.Ifnon-zeroremainder:errordetected!candetectallbursterrorslessthanr+1bitswidelyusedinpractice(802.11WiFi,ATM)5:DataLinkLayer5-15CRCExampleWant:D.2rXORR=nGequivalently:D.2r=
本文标题:高级计算机网络课件Chapter5_4th_ed_June_13_2007
链接地址:https://www.777doc.com/doc-3328805 .html