1.-第一章课后习题及答案_第1页
1.-第一章课后习题及答案_第2页
1.-第一章课后习题及答案_第3页
1.-第一章课后习题及答案_第4页
1.-第一章课后习题及答案_第5页
已阅读5页,还剩20页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1.-第一章课后习题及答案LtD第一章(Q1)Whatisthedifferencebetweenahostandanendsystem?Listthetypesofendsystems.IsaWebserveranendsystem?Answer:Thereisnodifference.Throughoutthistext,thewords“host”and“endsystem”areusedinterchangeably.EndsystemsincludePCs,workstations,Webservers,mailservers,Internet-connectedPDAs,WebTVs,etc.(Q2)Thewordprotocolisoftenusedtodescribediplomaticrelations.Giveanexampleofadiplomaticprotocol.Answer:SupposeAlice,anambassadorofcountryAwantstoinviteBob,anambassadorofcountryB,overfordinner.Alicedoesn’tsimplyjustcallBobonthephoneandsay,cometoourdinnertablenow”.Instead,shecallsBobandsuggestsAnswer:Currentpossibilitiesinclude:dial-up(upto56kbps);DSL(upto1Mbpsupstream,upto8Mbpsdownstream);cablemodem(upto30Mbpsdownstream,2Mbpsupstream.(Q7)WhataresomeofthephysicalmediathatEthernetcanrunover?Answer:Ethernetmostcommonlyrunsovertwisted-paircopperwireand“thin”coaxialcable.Italsocanrunoverfibersopticlinksandthickcoaxialcable.(Q8)Dial-upmodems,HFC,andDSLareallusedforresidentialaccess.Foreachoftheseaccesstechnologies,providearangeoftransmissionratesandcommentonwhetherthetransmissionrateissharedordedicated.Answer:Dialupmodems:upto56Kbps,bandwidthisdedicated;ISDN:upto128kbps,bandwidthisdedicated;ADSL:downstreamchannelis.5-8Mbps,upstreamchannelisupto1Mbps,bandwidthisdedicated;HFC,downstreamchannelis10-30MbpsandupstreamchannelisusuallylessthanafewMbps,bandwidthisshared.(Q13)Whyisitsaidthatpacketswitchingemploysstatisticalmultiplexing?ContraststatisticalmultiplexingwiththemultiplexingthattakesplaceinTDM.Answer:Inapacketswitchednetwork,thepacketsfromdifferentsourcesflowingonalinkdonotfollowanyfixed,pre-definedpattern.InTDMcircuitswitching,eachhostgetsthesameslotinarevolvingTDMframe.(Q14)Supposeuserssharea2Mbpslink.Alsosupposeeachuserrequires1Mbpswhentransmitting,buteachusertransmitsonly20percentofthetime.(SeethediscussionofstatisticalmultiplexinginSection1.3.)Whencircuitswitchingisused,howmanyuserscanbesupported?Fortheremainderofthisproblem,supposepacketswitchingisused.Whywilltherebeessentiallynoqueuingdelaybeforethelinkiftwoorfeweruserstransmitatthesametime?Whywilltherebeaqueuingdelayifthreeuserstransmitatthesametime?Findtheprobabilitythatagivenuseristransmitting.Supposenowtherearethreeusers.Findtheprobabilitythatatanygiventime,allthreeusersaretransmittingsimultaneously.Findthefractionoftimeduringwhichthequeuegrows.Answer:2userscanbesupportedbecauseeachuserrequireshalfofthelinkbandwidth.Sinceeachuserrequires1Mbpswhentransmitting,iftwoorfeweruserstransmitsimultaneously,amaximumof2Mbpswillberequired.Sincetheavailablebandwidthofthesharedlinkis2Mbps,therewillbenoqueuingdelaybeforethelink.Whereas,ifthreeuserstransmitsimultaneously,thebandwidthrequiredwillbe3Mbpswhichismorethantheavailablebandwidthofthesharedlink.Inthiscase,therewillbequeuingdelaybeforethelink.Probabilitythatagivenuseristransmitting=0.2Probabilitythatallthreeusersaretransmittingsimultaneously=33p(Q16)Considersendingapacketfromasourcehosttoadestinationhostoverafixedroute.Listthedelaycomponentsintheend-to-enddelay.Whichofthesedelaysareconstantandwhicharevariable?Answer:Thedelaycomponentsareprocessingdelays,transmissiondelays,propagationdelays,andqueuingdelays.Allofthesedelaysarefixed,exceptforthequeuingdelays,whicharevariable.(Q19)SupposeHostAwantstosendalargefiletoHostB.ThepathfromHostAtoHostBhasthreelinks,ofratesR1=250kbps,R2=500kbps,andR3=1Mbps.Assumingnoothertrafficinthenetwork,whatisthethroughputforthefiletransfer.Supposethefileis2millionbytes.Roughly,howlongwillittaketotransferthefiletoHostB?Repeat(a)and(b),butnowwithR2reducedto200kbps.Answer:250kbps64seconds200kbps;80seconds(P2)Considerthecircuit-switchednetworkinFigure1.8.Recallthattherearencircuitsoneachlink.Whatisthemaximumnumberofsimultaneousconnectionsthatcanbeinprogressatanyonetimeinthisnetwork?Supposethatallconnectionsarebetweentheswitchintheupper-left-handcornerandtheswitchinthelower-right-handcorner.Whatisthemaximumnumberofsimultaneousconnectionsthatcanbeinprogress?Answer:Wecannconnectionsbetweeneachofthefourpairsofadjacentswitches.Thisgivesamaximumof4nconnections.Wecannconnectionspassingthroughtheswitchintheupper-right-handcornerandanothernconnectionspassingthroughtheswitchinthelower-left-handcorner,givingatotalof2nconnections.(P4)Reviewthecar-caravananalogyinSection1.4.Assumeapropagationspeedof50km/hour.Supposethecaravantravels150km,beginninginfrontofonetollbooth,passingthroughasecondtollbooth,andfinishingjustbeforeathirdtollbooth.Whatistheend-to-enddelay?Repeat(a),nowassumingthattherearefivecarsinthecaravaninsteadoften.Answer:Tollboothsare150kmapart,andthecarspropagateat50km/hr,Atollboothservicesacaratarateofonecarevery12seconds.Therearetencars.Ittakes120seconds,ortwominutes,forthefirsttollboothtoservicethe10cars.Eachofthesecarshasapropagationdelayof180minutesbeforearrivingatthesecondtollbooth.Thus,allthecarsarelinedupbeforethesecondtollboothafter182minutes.Thewholeprocessrepeatsitselffortravelingbetweenthesecondandthirdtollbooths.Thusthetotaldelayis364minutes.Delaybetweentollboothsis5*12secondsplus180minutes,i.e.,181minutes.Thetotaldelayistwicethisamount,i.e.,362minutes.(P5)Thiselementaryproblembeginstoexplorepropagationdelayandtransmissiondelay,twocentralconceptsindatanetworking.Considertwohosts,AandB,connectedbyasinglelinkofrateRbps.Supposethatthetwohostsareseparatedbymmeters,andsupposethepropagationspeedalongthelinkissmeters/sec.HostAistosendapacketofsizeLbitstoHostB.Expressthepropagationdelay,dprop,intermsofmands.Determinethetransmissiontimeofthepacket,dtrans,intermsofLandR.Ignoringprocessingandqueuingdelays,obtainanexpressionfortheend-to-enddelay.SupposeHostAbeginstotransmitthepacketattimet=0.Attimet=dtrans,whereisthelastbitofthepacket?Supposedpropisgreaterthandtrans.Attimet=dtrans,whereisthefirstbitofthepacket?Supposedpropislessthandtrans.Attimet=dtrans,whereisthefirstbitofthepacket?Supposes=2.5*108,L=100bits,andR=28kbps.Findthedistancemsothatdpropequalsdtrans.Answer:dprop=m/sseconds.dtrans=L/Rseconds.dend-to-end=(m/s+L/R)seconds.ThebitisjustleavingHostA.ThefirstbitisinthelinkandhasnotreachedHostB.ThefirstbithasreachedHostB.Wantm=(P6)Inthisproblemweconsidersendingreal-timevoicefromHostAtoHostBoverapacket-switchednetwork(VoIP).HostAconvertsanalogvoicetoadigital64kbpsbitstreamonthefly.HostAthengroupsthebitsinto56-Bytepackets.ThereisonelinkbetweenHostAandB;itstransmissionrateis500kbpsanditspropagationdelayis2msec.AssoonasHostAgathersapacket,itsendsittoHostB.AssoonasHostBreceivesanentirepacket,itconvertsthepacket’sbitstoananalogsignal.Howmuchtimeelapsesfromthetimeabitiscreated(fromtheoriginalanalogsignalatHostA)untilthebitisdecoded(aspartoftheanalogsignalatHostB)?Answer:Considerthefirstbitinapacket.Beforethisbitcanbetransmitted,allofthebitsinthepacketmustbegenerated.Thisrequires56*864*10Thetimerequiredtotransmitthepacketis 56*8Propagationdelay=2msec.Thedelayuntildecodingis7msec+896μsec+2msec=9.896msecAsimilaranalysisshowsthatallbitsexperienceadelayof9.896msec.(P9)ConsiderapacketoflengthLwhichbeginsatendsystemA,travelsoveronelinktoapacketswitch,andtravelsfromthepacketswitchoverasecondlinktoadestinationendsystem.Letdi,si,andRidenotethelength,propagationspeed,andthetransmissionrateoflinki,fori=1,2.Thepacketswitchdelayseachpacketbydproc.Assumingnoqueuingdelays,intermsofdi,si,Ri,(i=1,2),andL,whatisthetotalend-to-enddelayforthepacket?SupposenowthepacketLengthis1,000bytes,thepropagationspeedonbothlinksis2.5*108m/s,thetransmissionratesofbothlinksis1Mbps,thepacketswitchprocessingdelayis2msec,thelengthofthefirstlinkis6,000km,andthelengthofthelastlinkis3,000km.Forthesevalues,whatistheend-to-enddelay?Answer:ThefirstendsystemrequiresL/R1totransmitthepacketontothefirstlink;thepacketpropagatesoverthefirstlinkind1/s1;thepacketswitchaddsaprocessingdelayofdproc;afterreceivingtheentirepacket,thepacketswitchrequiresL/R2totransmitthepacketontothesecondlink;thepacketpropagatesoverthesecondlinkind2/s2.Addingthesefivedelaysgivesdend-end=L/R1+L/R2+d1/s1+d2/s2+dprocToanswerthesecondquestion,wesimplyplugthevaluesintotheequationtoget8+8+24+12+2=54msec.(P10)Intheaboveproblem,supposeR1=R2=Randdproc=0.Furthersupposethepacketswitchdoesnotstore-and-forwardpacketsbutinsteadimmediatelytransmitseachbititreceiversbeforewaitingforthepackettoarrive.Whatistheend-to-enddelay?Answer:Becausebitsareimmediatelytransmitted,thepacketswitchdoesnotintroduceanydelay;inparticular,itdoesnotintroduceatransmissiondelay.Thus,dend-end=L/R+d1/s1+d2/s2ForthevaluesinProblem9,weget8+24+12=44msec.(P11)SupposeNpacketsarrivesimultaneouslytoalinkatwhichnopacketsarecurrentlybeingtransmittedorqueued.EachpacketisoflengthLandthelinkhastransmissionrateR.WhatistheaveragequeuingdelayfortheNpackets?Answer:Thequeuingdelayis0forthefirsttransmittedpacket,L/Rforthesecondtransmittedpacket,andgenerally,(n-1)L/Rforthenthtransmittedpacket.Thus,theaveragedelayfortheNpacketsis(L/R+2L/R+.......+(N-1)L/R)/N=L/RN(1+2+.....+(N-1))=LN(N-1)/(2RN)=(N-1)L/(2R)Notethathereweusedthewell-knownfactthat1+2+.......+N=N(N+1)/2(P14)Considerthequeuingdelayinarouterbuffer.LetIdenotetrafficintensity;thatis,I=La/R.SupposethatthequeuingdelaytakestheformIL/R(1-I)forI<1.Provideaformulaforthetotaldelay,thatis,thequeuingdelayplusthetransmissiondelay.PlotthetotaldelayasafunctionofL/R.Answer:ThetransmissiondelayisL/R.ThetotaldelayisILLetx=L/R.Totaldelay=(P16)PerformaTraceroutebetweensourceanddestinationonthesamecontinentatthreedifferenthoursoftheday.Findtheaverageandstandarddeviationoftheround-tripdelaysateachofthethreehours.Findthenumberofroutersinthepathateachofthethreehours.Didthepathschangeduringanyofthehours?TrytoidentifythenumberofISPnetworksthattheTraceroutepacketspassthroughfromsourcetodestination.Routerswithsimilarnamesand/orsimilarIPaddressesshouldbeconsideredaspartofthesameISP.Inyourexperiments,dothelargestdelaysoccuratthepeeringinterfacesbetweenadjacentISPs?Repeattheaboveforasourceanddestinationondifferentcontinents.Comparetheintra-continentandinter-continentresults.Answer:Experiments.(P18)Supposetwohosts,AandB,areseparatedby10,000kilometersandareconnectedbyadirectlinkofR=2Mbps.Supposethepropagationspeedoverthelinkis2.5•108meters/sec.Calculatethebandwidth-delayproduct,R•dprop.Considersendingafileof400,000bitsfromHostAtoHostB.Supposethefileissentcontinuouslyasonelargemessage.Whatisthemaximumnumberofbitsthatwillbeinthelinkatanygiventime?Provideaninterpretationofthebandwidth-delayproduct.Whatisthewidth(inmeters)ofabitinthelink?Isitlonger

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论