计算机网络7-DataLinkControl

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

DataandComputerCommunicationsNinthEditionbyWilliamStallingsChapter7–DataLinkControlProtocolsDataandComputerCommunications,NinthEditionbyWilliamStallings,(c)PearsonEducation-PrenticeHall,2011DataLinkControlProtocols“Greatandenlightenedone,”saidTen-teh,assoonashisstuporwaslifted,“hasthispersondeliveredhismessagecompetently,forhismindwasstillasearedvisionofsnowandsandandperchancehistonguehasstumbled?”“Bendyourearstothewall,”repliedtheEmperor,“andbeassured.”—KaiLung'sGoldenHours,EarnestBramahDataLinkControlProtocolswhensendingdata,toachievecontrol,alayeroflogicisaddedabovethePhysicallayerdatalinkcontroloradatalinkcontrolprotocoltomanageexchangeofdataoveralink:framesynchronizationflowcontrolerrorcontroladdressingcontrolanddatalinkmanagementFlowControlensuresendingentitydoesnotoverwhelmreceivingentitypreventbufferoverflowinfluencedby:transmissiontime•timetakentoemitallbitsintomediumpropagationtime•timeforabittotraversethelinkassumptionis:allframesaresuccessfullyreceivedwithnoframeslostorarrivingwitherrorsModelofFrameTransmissionStopandWaitsimplestformofflowcontrolworkswellforamessagesentinafewlargeframesstopandwaitbecomesinadequateiflargeblockofdataissplitintosmallframesbysourceStopandWaitItalldependsonthevalueofa=B/L=(Rd)/(VL)B:lengthoflink(inbits)L:messagelength(inbits)R:datarate(inbps)d:distance(inmeters)V:velocityofpropagation(m/s)StopandWaitLinkUtilizationSlidingWindowsFlowControlallowsmultiplenumberedframestobeintransitreceiverhasbufferWlongtransmittersendsuptoWframeswithoutACKACKincludesthenumberofnextframeexpectedsequencenumberisboundedbysizeoffield(k)•framesarenumberedmodulo2k•givingmaxwindowsizeofupto2k–1receivercanACKframeswithoutpermittingfurthertransmission(RNR:ReceiveNotReady)mustsendanormalacknowledgetoresumeifhavefull-duplexlink,canpiggybackACKsSlidingWindowDiagramSlidingWindowExampleErrorControlTechniqueserrordetectionpositiveacknowledgmentretransmissionaftertimeoutnegativeacknowledgement&retransmissiondetectionandcorrectionoferrorssuchas:lostframes-aframefailstoarriveattheothersidedamagedframes-framearrivesbutsomeofthebitsareinerrorAutomaticRepeatRequest(ARQ)collectivenameforerrorcontrolmechanismseffectofARQistoturnanunreliabledatalinkintoareliableoneversionsofARQare:stop-and-waitgo-back-Nselective-rejectStopandWaitARQsourcetransmitssingleframewaitsforACK•nootherdatacanbesentuntildestination’sreplyarrivesifframereceivedisdamaged,discardittransmitterhastimeoutifnoACKwithintimeout,retransmitifACKisdamaged,transmitterwillnotrecognizetransmitterwillretransmitreceivergetstwocopiesofframeusealternatenumberingandACK0/ACK1StopandWaitARQpros•simplisticcons•inefficientGo-Back-NARQmostcommonlyusederrorcontrolbasedonsliding-windowusewindowsizetocontrolnumberofoutstandingframesifnoerror,ACKasusualiferror,replywithrejectiondestinationwilldiscardthatframeandallfutureframesuntilframeinerrorisreceivedcorrectlytransmittermustgobackandretransmitthatframeandallsubsequentframes(GoBackN-Handling)DamagedframeerrorinframeisoreceiverrejectsframeitransmitterretransmitsframesfromiLostframeframeilostandeither•transmittersendsi+1andreceivergetsframei+1outofsequenceandrejectsframei•ortransmittertimesoutandsendsACKwithPbitsetwhichreceiverrespondstowithACKitransmitterthenretransmitsframesfromi(GoBackN–Handling)DamagedAcknowledgementreceivergetsframei,sendsACK(i+1)whichislostACKsarecumulative,sonextACK(i+n)mayarrivebeforetransmittertimesoutonframeiiftransmittertimesout,itsendsACKwithPbitsetcanberepeatedanumberoftimesbeforearesetprocedureisinitiatedDamagedRejectionrejectfordamagedframeislosthandledaslostframewhentransmittertimesoutSelective-Reject(ARQ)alsocalledselectiveretransmissiononlyrejectedframesareretransmittedsubsequentframesareacceptedbythereceiverandbufferedminimizesretransmissionreceivermustmaintainlargeenoughbuffermorecomplexlogicintransmitterlesswidelyusedusefulforsatellitelinkswithlongpropagationdelaysGo-Back-Nvs.SelectiveRejectHighLevelDataLinkControl(HDLC)mostimportantdatalinkcontrolprotocol•specifiedasISO3009,ISO4335•basisforotherdatalinkcontrolprotocolsstationtypes:•Primary-controlsoperationoflink•Secondary-undercontrolofprimarystation•Combined-issuescommandsandresponseslinkconfigurations•Unbalanced-1primary,multiplesecondary•Balanced-2combinedstations(HDLCTransferModes)NormalResponseMode(NRM)•usedwithanunbalancedconfiguration•primaryinitiatestransferAsynchronousBalancedMode(ABM)•usedwithabalancedconfiguration•eitherstationinitiatestransmission•hasnopollingoverhead•mostwidelyusedAsynchronousResponseMode(ARM)•usedwithunbalancedconfiguration•secondarymaytransmitwithoutpermissionfromprimary•primarystillresponsiblefortheline(initialization,errorrecovery,…)•rarelyusedHDLCFrameStructureusessynchronoustransmissiontransmissionsareintheformofframessingleframeformatusedThecontrolfieldgivesameaningtotheframe(data,command,RR,RNR,…)CRC-16orCRC-32FlagFieldsandBitStuffingdelimitframeatbothendswith01111110receiverhuntsforflagsequencetosynchronizebitstuffi

1 / 32
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功