




已阅读5页,还剩137页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
ModifiedbyLangFei2010,Chapter5Peer-to-PeerProtocolsandDataLinkLayer,PARTI:Peer-to-PeerProtocolsPeer-to-PeerProtocolsandServiceModelsARQProtocolsandReliableDataTransferFlowControlTimingRecoveryTCPReliableStreamServiceandAllocateresources,e.g.buffersMessagetransferphaseExchangeofSDUsDisconnectphaseExample:TCP,PPP,Connection-OrientedTransferService,pipePDU,ModifiedbyLangFei2010,NoConnectionsetup,simplysendSDUEachmessagesendindependentlyMustprovidealladdressinformationpermessageSimpleblockrequestsfromhigherlayerIftimeoutexpiresretransmitframeandresettimerIfACKreceived:Ifsequencenumberisincorrectoriferrorsdetected:ignoreACKIfsequencenumberiscorrect(Rnext=(Slast+1)mod2):acceptframe,gotoReadystate,ModifiedbyLangFei2010,ReceiverAlwaysinReadyStateWaitforarrivalofnewframeWhenframearrives,checkforerrorsIfnoerrorsdetectedandsequencenumberiscorrect(Slast=Rnext),thenacceptframe,updateRnext=(Rnext+1)mod2Send-backACKframewithupdatedRnext,Deliver-forwardpackettohigherlayerIfnoerrorsdetectedandwrongsequencenumberdiscardframesendACKframewithnon-updatedRnextIferrorsdetecteddiscardframeandnofurtheractiontaken,ModifiedbyLangFei2010,ApplicationsofStop-and-WaitARQp297,IBMBinarySynchronousCommunicationsprotocol(Bisync):character-orienteddatalinkcontrolXmodem:modemfiletransferprotocolTrivialFileTransferProtocol(RFC1350):simpleprotocolforfiletransferoverUDP,ModifiedbyLangFei2010,PerformanceIssuesStop-and-WaitEfficiency,10000bitframe1Mbpstakes10mstotransmitIfwaitforACK=1ms,thenefficiency=10/11=91%IfwaitforACK=20ms,thenefficiency=10/30=33%,P297exampleprefered,ModifiedbyLangFei2010,Delay-BandwidthProductImpacttransmissionEfficiency,FromFig.5.13,SsendwindowemptyAllarriveatreceiverAllACKslostTransmitterresendsframe0,Receiverwindowstartsat0,WrWindowslidesforwardtoWs,Ws+Wr-1Receiverrejectsframe0becauseitisoutsidereceivewindow,ModifiedbyLangFei2010,ApplicationsofSelectiveRepeatARQ,TCP(TransmissionControlProtocol):transportlayerprotocolusesvariationofselectiverepeattoprovidereliablestreamserviceServiceSpecificConnectionOrientedProtocol:errorcontrolforsignalingmessagesinATMnetworks,ModifiedbyLangFei2010,EfficiencyofSelectiveRepeat,AssumePfframelossprobability,thennumberoftransmissionsrequiredtodeliveraframeis:tf/(1-Pf),ModifiedbyLangFei2010,Example:ImpactBitErrorRateonSelectiveRepeat,nf=1250bytes=10000bits,na=no=25bytes=200bitsCompareSClient-to-Serverconnectionestablished,ACKSeq.#=Init.Seq.#+1,ModifiedbyLangFei2010,2ndHandshake:ServertoClientConnectionRequest,SYNbitsetindicatesrequesttoestablishconnectionfromservertoclient,InitialSeq.#fromservertoclient,ModifiedbyLangFei2010,3rdHandshake:ACKfromClient,ACKbitsetacknowledgesconnectionrequest;Connectionsinbothdirectionsestablished,ACKSeq.#=Init.Seq.#+1,ModifiedbyLangFei2010,WhyThree-wayhandshakes?p608,HostAcanalwaysusethesameinitialsequencenumberintwodifferentconnections.HostBcannotdistinguishadelayedsegmentfromthenewone.Weshouldverifythatiftheinitialsequencenumberisalwaysunique,thedelayedsegmentisveryunlikelytopossessalegalsequencenumberandthuscanbedetectedanddiscarded.,ModifiedbyLangFei2010,TCPDataExchange,ApplicationLayerswritebytesintobuffersTCPsenderformssegmentsWhenbytesexceedthresholdortimerexpiresUponPUSHcommandfromapplicationsConsecutivebytesfrombufferinsertedinpayloadSequence#client-to-serverconnectionclosed,ACKSeq.#=PreviousSeq.#+1,ModifiedbyLangFei2010,FlowControl,TCPreceivercontrolsrateatwhichsendertransmitstopreventbufferoverflowTCPreceiveradvertisesawindowsizespecifyingnumberofbytesthatcanbeaccommodatedbyreceiverWA=WR(RnewRlast)WA:advertisedwindowsTCPsenderobligedtokeep#outstandingbytesbelowWA(Srecent-Slast)WA,ModifiedbyLangFei2010,TCPwindowflowcontrol,ModifiedbyLangFei2010,TCPRetransmissionTimeout,TCPretransmitsasegmentaftertimeoutperiodTimeouttooshort:excessivenumberofretransmissionsTimeouttoolong:recoverytooslowTimeoutdependsonRTT:timefromwhensegmentissenttowhenACKisreceivedRoundtriptime(RTT)inInternetishighlyvariableRoutesvaryandcanchangeinmid-connectionTrafficfluctuatesTCPusesadaptiveestimationofRTTMeasureRTTeachtimeACKreceived:tntRTT(new)=atRTT(old)+(1a)tna=7/8typical,ModifiedbyLangFei2010,RTTVariability,Estimatevariances2ofRTTvariationEstimatefortimeout:tout=tRTT+ksRTTIfRTThighlyvariable,timeoutincreaseaccordinglyIfRTTnearlyconstant,timeoutclosetoRTTestimateApproximateestimationofdeviationdRTT(new)=bdRTT(old)+(1-b)|tn-tRTT|tout=tRTT+4dRTT,ModifiedbyLangFei2010,Chapter5Peer-to-PeerProtocolsandDataLinkLayer,PARTII:DataLinkControlsFramingPoint-to-PointProtocolHigh-LevelDataLinkControlLinkSharingUsingStatisticalMultiplexing,ModifiedbyLangFei2010,DataLinkProtocols,Directlyconnected,wire-likeLossesConnectionsacrossWANs,DataLinksServicesFramingErrorcontrolFlowcontrolMultiplexingLinkMaintenanceSecurity:AuthenticationETX(endoftext)=0 x03;Byteusedtocarrynon-printablecharactersinframeDLE(datalinkescape)=0 x10DLESTX(DLEETX)usedtoindicatebeginning(end)offrameInsertextraDLEinfrontofoccurrenceofDLESTX(DLEETX)inframeAllDLEsoccurinpairsexceptatframeboundaries,ModifiedbyLangFei2010,2.Flag-BasedFrameSynchronizationFlag,BitStuffing,andByteStuffing,FramedelineatedbyflagcharacterHDLCusesbitstuffingtopreventoccurrenceofflag01111110insidetheframeTransmitterinsertsextra0aftereachconsecutivefive1sinsidetheframeReceiverchecksforfiveconsecutive1sifnextbit=0,itisremovedifnexttwobitsare10,thenflagisdetected6个1Ifnexttwobitsare11,thenframehaserrors7个1,ModifiedbyLangFei2010,Example:Bitstuffingdial-uptorouter1.ProvidesFramingandErrorDetectionCharacter-orientedHDLC-likeframestructure2.LinkControlProtocolBringingup,testing,bringingdownlines;negotiatingoptionsAuthentication:keycapabilityinISPaccess3.AfamilyofNetworkControlProtocolsspecifictodifferentnetworklayerprotocolsIP,OSInetworklayer,IPX(Novell),Appletalk,ModifiedbyLangFei2010,PPPApplications,PPPusedinmanypoint-to-pointapplicationsTelephoneModemLinks30kbpsPacketoverSONET600Mbpsto10GbpsIPPPPSONETPPPisalsousedoversharedlinkssuchasEthernettoprovideLCP,NCP,andauthenticationfeaturesPPPoverEthernet(RFC2516)UsedoverDSL,ModifiedbyLangFei2010,PPPcansupportmultiplenetworkprotocolssimultaneouslySpecifieswhatkindofpacketiscontainedinthepayloade.g.LCP,NCP,IP,OSICLNP,IPX.,PPPFrameFormat,ModifiedbyLangFei2010,PPPExample,ModifiedbyLangFei2010,PPPPhases,HomePCtoInternetServiceProvider1.PCcallsrouterviamodem2.PCandrouterexchangeLCPpacketstonegotiatePPPparameters3.Checkonidentities4.NCPpacketsexchangedtoconfigurethenetworklayer,e.g.TCP/IP(requiresIPaddressassignment)5.Datatransport,e.g.send/receiveIPpackets6.NCPusedtoteardownthenetworklayerconnection(freeupIPaddress);LCPusedtoshutdowndatalinklayerconnection7.Modemhangsup,ModifiedbyLangFei2010,PPPAuthentication,PasswordAuthenticationProtocolInitiatormustsendIDSecondarysetsF=1inlastI-frameinresponsePrimariesandsecondariesalwaysinteractviapairedP/Fbits,ModifiedbyLangFei2010,Frameslostduetoloss-of-synchorreceiverbufferoverflowFramesmayundergoerrorsintransmissionCRCsdetecterrorsandsuchframesaretreatedaslostRecoverythroughACKs,timeouts&retransmissionSequencenumberingtoidentifyout-of-sequence&duplicateframesHDLCprovidesforoptionsthatimplementseveralARQmethods,ErrorDetection&LossRecovery,ModifiedbyLangFei2010,Supervisoryframes,Usedforerror(ACK,NAK)andflowcontrol(DontSend):ReceiveReady(RR),SS=00ACKsframesuptoN(R)-1whenpiggybacknotavailableREJECT(REJ),SS=01NegativeACKindicatingN(R)isfirstframenotreceivedcorrectly.TransmittermustresendN(R)andlaterframesReceiveNotReady(RNR),SS=10ACKsframeN(R)-1&requeststhatnomoreI-framesbesentSelectiveREJECT(SREJ),SS=11NegativeACKforN(R)requestingthatN(R)beselectivelyretransmitted,ModifiedbyLangFei2010,UnnumberedFrames,SettingofModes:SABM:SetAsynchronousBalancedModeUA:acknowledgesacceptanceofmodesettingcommandsDISC:terminateslogicallinkconnectioInformationTransferbetweenstationsUI:UnnumberedinformationRecoveryusedwhennormalerror/flowcontrolfailsFRMR:framewithcorrectFCSbutimpossiblesemanticsRSET:indicatessendingstationisresettingsequencenumbersXID:exchangestationidandcharacteristics,ModifiedbyLangFei2010,ConnectionEstablishment&Release,SupervisoryframesusedtoestablishandreleasedatalinkconnectionInHDLCSetAsynchronousBalance
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 课件汉字笔画书写规范
- 幼儿美术粽子课件
- 老年心理健康培训
- 手工小蛋糕制作课件
- 理财沙龙培训课件
- 网络画板课件嵌入
- 人文素养方面培训
- 课件格式设置
- 培训管理与开发
- 联想与戴尔课件
- Unit 4 My Favourite Subject教学设计2024年秋人教版新教材七年级英语上册
- 桥梁安全管理制度
- JGJ-T+235-2011建筑外墙防水工程技术规程
- 黄石二中高一年级10月月考英语试卷含答案
- 第二章-食品标准化与标准的制定和编写课件
- 《陆上风电场工程设计概算编制规定及费用标准》(NB-T 31011-2019)
- SJ-T 11805-2022 人工智能从业人员能力要求
- 高职大学生心理健康教育 第四版 课件 第二单元 完善自我意识
- 电机与拖动(高职)全套教学课件
- 建筑质量事故分析全套教学课件
- 急诊科护士的突发事件应急处置
评论
0/150
提交评论