版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
第二章
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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 新進廠員工安全培訓試題含答案(精練)
- 商業(yè)地產(chǎn)聯(lián)盟合作方案
- 公司、項目部、各個班組安全培訓試題附答案(研優(yōu)卷)
- 大班數(shù)學活動走小路
- 高中籃球模塊教學設計
- 媒體行業(yè)競業(yè)限制協(xié)議書
- 食品行業(yè)審計方案與安全監(jiān)管流程
- 公共設施拆除工程安全方案
- 安全與自救課程
- 幼兒培訓工作匯報
- 新人教版小學美術三年級上冊教學設計(全冊)
- 變配電系統(tǒng)安全風險辨識清單
- 教學課件:《C++程序設計教程》章韻
- 2014國際航運函電英語課件國航第七課時
- 《民法典》全文學習PPT
- 破產(chǎn)法PPT課件
- 金融衍生工具ppt課件
- 光電效應測定普朗克常數(shù).ppt
- “讓學引思”高效課堂推進策略的研究
- 《培訓機構教師薪酬制度》
- 點子圖方格紙合計
評論
0/150
提交評論