版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1.-第一章課后習(xí)題及答案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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度木工行業(yè)展會策劃與執(zhí)行分包合同4篇
- 二零二五年度辦公樓綠化帶養(yǎng)護與清潔合同3篇
- 2025年產(chǎn)權(quán)激勵轉(zhuǎn)讓合同
- 2025版門窗產(chǎn)品進出口貿(mào)易合同范本7篇
- 2025年住宿服務(wù)預(yù)付款合同
- 2025版模具采購合同與模具租賃合作協(xié)議4篇
- 2025年土地測繪勘測合同范本
- 2025年度南京市二手房購房合同(附裝修改造協(xié)議)4篇
- 2025年分期合同簽訂書籍
- 2025版創(chuàng)業(yè)孵化器創(chuàng)業(yè)培訓(xùn)班合作協(xié)議合同范本4篇
- (完整版)高考英語詞匯3500詞(精校版)
- 我的家鄉(xiāng)瓊海
- (2025)專業(yè)技術(shù)人員繼續(xù)教育公需課題庫(附含答案)
- 《互聯(lián)網(wǎng)現(xiàn)狀和發(fā)展》課件
- 【MOOC】計算機組成原理-電子科技大學(xué) 中國大學(xué)慕課MOOC答案
- 2024年上海健康醫(yī)學(xué)院單招職業(yè)適應(yīng)性測試題庫及答案解析
- 2024年湖北省武漢市中考語文適應(yīng)性試卷
- 非新生兒破傷風(fēng)診療規(guī)范(2024年版)解讀
- 2024-2030年電炒鍋項目融資商業(yè)計劃書
- EDIFIER漫步者S880使用說明書
- 上海市華東師大二附中2025屆高二數(shù)學(xué)第一學(xué)期期末統(tǒng)考試題含解析
評論
0/150
提交評論