版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
第二章
1.(Q2)Foracommunicationsessionbetweenapairofprocesses,whichprocessistheclientandwhichistheserver?
Answer:Theprocesswhichinitiatesthecommunicationistheclient;theprocessthatwaitstobecontactedistheserver.
.
2.(Q3)Whatisthedifferencebetweennetworkarchitectureandapplicationarchitecture?
Answer:Networkarchitecturereferstotheorganizationofthecommunicationprocessintolayers(e.g.,thefive-layerInternetarchitecture).Applicationarchitecture,ontheotherhand,isdesignedbyanapplicationdeveloperanddictatesthebroadstructureoftheapplication(e.g.,client-serverorP2P)
3.(Q4)Whatinformationisusedbyaprocessrunningononehosttoidentifyaprocessrunningonanotherhost?
Answer:TheIPaddressofthedestinationhostandtheportnumberofthedestinationsocket.
4.(Q6)ReferringtoFigure2.4,weseethatnoneoftheapplicationlistedinFigure2.4requiresbothnodatalossandtiming.Canyouconceiveofanapplicationthatrequiresnodatalossandthatisalsohighlytime-sensitive?
Answer:Therearenogoodexampleofanapplicationthatrequiresnodatalossandtiming.Ifyouknowofone,sendane-mailtotheauthors
5.(Q9)WhydoHTTP,FTP,SMTP,andPOP3runontopofTCPratherthanonUDP?
Answer:Theapplicationsassociatedwiththoseprotocolsrequirethatallapplicationdatabereceivedinthecorrectorderandwithoutgaps.TCPprovidesthisservicewhereasUDPdoesnot.
6.(Q11)Whatismeantbyahandshakingprotocol?
Answer:Aprotocoluseshandshakingifthetwocommunicatingentitiesfirstexchangecontrolpacketsbeforesendingdatatoeachother.SMTPuseshandshakingattheapplicationlayerwhereasHTTPdoesnot.
7.(Q13)TelnetintoaWebserverandsendamultilinerequestmessage.IncludeintherequestmessagetheIf-modified-since:headerlinetoforcearesponsemessagewiththe304NotModifiedstatuscode.
Answer:Issuedthefollowingcommand(inWindowscommandprompt)followedbytheHTTPGETmessagetothe“”webserver:
>telnet80
Sincetheindex.htmlpageinthiswebserverwasnotmodifiedsinceFri,18May200709:23:34GMT,thefollowingoutputwasdisplayedwhentheabovecommandswereissuedonSat,19May2007.Notethatthefirst4linesaretheGETmessageandheaderlinesinputbytheuserandthenext4lines(startingfromHTTP/1.1304NotModified)istheresponsefromthewebserver.
8.(Q14)Considerane-commercesitethatwantstokeepapurchaserecordforeachofitscustomers.Describehowthiscanbedonewithcookies.
Answer:Whentheuserfirstvisitsthesite,thesitereturnsacookienumber.Thiscookienumberisstoredontheuser’shostandismanagedbythebrowser.Duringeachsubsequentvisit(andpurchase),thebrowsersendsthecookienumberbacktothesite.Thusthesiteknowswhenthisuser(moreprecisely,thisbrowser)isvisitingthesite.
9.(Q15)SupposeAlice,withaWeb-basede-mailaccount(suchasHotmailorgmail),sendsamessagetoBob,whoaccesseshismailfromhismailserverusingPOP3.DiscusshowthemessagegetsfromAlice’shosttoBob’shost.Besuretolisttheseriesofapplication-layerprotocolsthatareusedtomovethemessagebetweenthetwohosts.
Answer:MessageissentfromAlice’shosttohermailserveroverHTTP.Alice’smailserverthensendsthemessagetoBob’smailserveroverSMTP.BobthentransfersthemessagefromhismailservertohishostoverPOP3.
10.(Q10)RecallthatTCPcanbeenhancedwithSSLtoprovideprocess-to-processsecurityservices,includingencryption.DoesSSLoperateatthetransportlayerortheapplicationlayer?IftheapplicationdeveloperwantsTCPtobeenhancedwithSSL,whatdoesthedeveloperhavetodo?
Answer:SSLoperatesattheapplicationlayer.TheSSLsockettakesunencrypteddatafromtheapplicationlayer,encryptsitandthenpassesittotheTCPsocket.IftheapplicationdeveloperwantsTCPtobeenhancedwithSSL,shehastoincludetheSSLcodeintheapplication.
To:Thisfieldindicatestheemailaddressofthereceiverofthemail.Intheexample,thereceiveris
prithula@
Subject:Thisgivesthesubjectofthemail(ifanyspecifiedbythesender).Intheexample,thesubjectspecifiedbythesenderis“Testmail”
Date:Thedateandtimewhenthemailwassentbythesender.Intheexample,thesendersentthemailon19thMay2007,attime23:52:36GMT.
Mime-version:MIMEversionusedforthemail.Intheexample,itis1.0.
Content-type:Thetypeofcontentinthebodyofthemailmessage.Intheexample,itis“text/html”.
Return-Path:Thisspecifiestheemailaddresstowhichthemailwillbesentifthe
receiverofthismailwantstoreplytothesender.Thisisalsousedbythesender’s
mailserverforbouncingbackundeliverablemailmessagesofmailer-daemon
errormessages.Intheexample,thereturnpathis
“prithuladhungel@”.
12.(Q18)Isitpossibleforanorganization’sWebserverandmailservertohaveexactlythesamealiasforahostname(forexample,)?WhatwouldbethetypefortheRRthatcontainsthehostnameofthemailserver?
Answer:Yesanorganization’smailserverandWebservercanhavethesamealiasforahostname.TheMXrecordisusedtomapthemailserver’shostnametoitsIPaddress.
13.(Q19)WhyisitsaidthatFTPsendscontrolinformation“out-of-band”?
Answer:FTPusestwoparallelTCPconnections,oneconnectionforsendingcontrolinformation(suchasarequesttotransferafile)andanotherconnectionforactuallytransferringthefile.Becausethecontrolinformationisnotsentoverthesameconnectionthatthefileissentover,FTPsendscontrolinformationoutofband.
14.(P6)ConsideranHTTPclientthatwantstoretrieveaWebdocumentatagivenURL.TheIPaddressoftheHTTPserverisinitiallyunknown.Whattransportandapplication-layerprotocolsbesidesHTTPareneededinthisscenario?
Answer:
Applicationlayerprotocols:DNSandHTTP
Transportlayerprotocols:UDPforDNS;TCPforHTTP
15.(P9)ConsiderFigure2.12,forwhichthereisaninstitutionalnetworkconnectedtotheInternet.Supposethattheaverageobjectsizeis900,000bitsandthattheaveragerequestratefromtheinstitution’sbrowserstotheoriginserversis10requestspersecond.AlsosupposethattheamountoftimeittakesfromwhentherouterontheInternetsideoftheaccesslinkforwardsanHTTPrequestuntilitreceivestheresponseistwosecondsonaverage(seeSection2.2.5).Modelthetotalaverageresponsetimesasthesumoftheaverageaccessdelay(thatis,thedelayfromInternetroutertoinstitutionrouter)andtheaverageInternetdelay.Fortheaverageaccessdelay,use△/(1-△β),where△istheaveragetimerequiredtosendanobjectovertheaccesslinkandβisthearrivalrateofobjectstotheaccesslink.
a.Findthetotalaverageresponsetime.
b.NowsupposeacacheisinstalledintheinstitutionalLAN.Supposethehitrateis0.6.Findthetotalresponsetime.
Answer:
ThetimetotransmitanobjectofsizeLoveralinkorrateRisL/R.TheaveragetimeistheaveragesizeoftheobjectdividedbyR:
Δ=(900,000bits)/(1,500,000bits/sec)=0.6sec
Thetrafficintensityonthelinkis(1.5requests/sec)(0.6sec/request)=0.9.Thus,theaverageaccessdelayis(0.6sec)/(1-0.9)=6seconds.Thetotalaverageresponsetimeistherefore6sec+2sec=8sec.
Thetrafficintensityontheaccesslinkisreducedby40%sincethe40%oftherequestsaresatisfiedwithintheinstitutionalnetwork.Thustheaverageaccessdelayis (0.6sec)/[1–(0.6)(0.9)]=1.2seconds.Theresponsetimeisapproximatelyzeroiftherequestissatisfiedbythecache(whichhappenswithprobability0.4);theaverageresponsetimeis1.2sec+2sec=3.2secforcachemisses(whichhappens60%ofthetime).Sotheaverageresponsetimeis(0.4)(0sec)+(0.6)(3.2sec)=1.92seconds.Thustheaverageresponsetimeisreducedfrom8secto1.92sec.
16.(P12)WhatisthedifferencebetweenMAILFROM:inSMTPandFrom:inthemailmessageitself?
Answer:TheMAILFROM:inSMTPisamessagefromtheSMTPclientthatidentifiesthesenderofthemailmessagetotheSMTPserver.TheFrom:onthemailmessageitselfisNOTanSMTPmessage,butratherisjustalineinthebodyofthemailmessage.
17.(P16)ConsiderdistributingafileofF=5GbitstoNpeers.Theserverh
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年租賃協(xié)議新模板3篇
- 2024版全新場(chǎng)地租賃協(xié)議安全
- 辦公用品合同(2篇)
- 2024年駕校場(chǎng)地租賃合同范本
- 二零二五年KTV員工福利保障及激勵(lì)方案協(xié)議
- 2024版房產(chǎn)墊資合同
- 2024年融資租賃合同中的租賃物報(bào)廢處理與回收流程3篇
- 皮膚發(fā)黑的健康宣教
- 2025年普洱市中級(jí)人民法院遴選法官及工作人員歷年高頻重點(diǎn)提升(共500題)附帶答案詳解
- 2025年日照五蓮縣公安局招考聘用警務(wù)輔助人員45人高頻重點(diǎn)提升(共500題)附帶答案詳解
- GB/T 5130-1997電氣用熱固性樹脂工業(yè)硬質(zhì)層壓板試驗(yàn)方法
- FZ/T 01041-2014絨毛織物絨毛長(zhǎng)度和絨毛高度的測(cè)定
- 《經(jīng)濟(jì)學(xué)導(dǎo)論》考試復(fù)習(xí)題庫(kù)(含答案)
- 農(nóng)田水利渠道灌溉與排水課件
- 精品解析浙教版科學(xué) 九年級(jí)上冊(cè) 3.43 簡(jiǎn)單機(jī)械之機(jī)械效率 同步練習(xí)
- 六棱塊護(hù)坡施工方案
- 機(jī)械制圖課件(完整版)
- 夸美紐斯-大教學(xué)論-文本細(xì)讀
- 《行政組織學(xué)小抄》word版
- 日立多聯(lián)機(jī)系統(tǒng)調(diào)試培訓(xùn)教材
- (完整版)環(huán)境科學(xué)與工程-專業(yè)英語(yǔ)詞匯必備(免費(fèi))
評(píng)論
0/150
提交評(píng)論