首页 计算机网络原理习题答案

计算机网络原理习题答案

举报
开通vip

计算机网络原理习题答案ReviewQuestionsSection2.11)Listfivenon-proprietary(非专有的)Internetapplicationsandtheapplication-layerprotocolsthattheyuse.列举五种非专用的英特网应用以及它们所使用的应用层协议。 applications protocols  e-mail  SMTP  WEB HTTP streamingmultimedia HTTP ,RTP filetransfer&nb...

计算机网络原理习题答案
ReviewQuestionsSection2.11)Listfivenon-proprietary(非专有的)Internetapplicationsandtheapplication-layerprotocolsthattheyuse.列举五种非专用的英特网应用以及它们所使用的应用层协议。 applications protocols  e-mail  SMTP  WEB HTTP streamingmultimedia HTTP ,RTP filetransfer   FTP remoteterminalaccess   Telnet 2)Foracommunicationsession(会议)betweentwohosts,whichhostistheclientandwhichistheserver?对俩主机之间的通信会话,哪个主机是客户机,哪个主机是服务器?Theprocesswhichinitiates(发起)thecommunicationistheclient;theprocessthatwaitstobecontactedistheserver.3)Whatinformationisusedbyaprocessrunningononehosttoidentifyaprocessrunningonanotherhost?运行在一台主机上的进程使用什么信息标识运行在另一台主机上的进程?TheIPaddressofthedestinationhostandtheportnumberofthedestinationsocket.3)Listthevariousnetwork-applicationuseragentsthatyouuseonadailybasis.列举你每天都会使用的网络应用程序用户代理。WebbrowserE-mailapplicationuseragent FileTransferuseragentP2puseragentaudio/videouseragent 5)ReferringtoFigure2.1-2,weseethatnotnoneofapplicationslistedinthetablerequireboth"nodataloss"and"timing".Canyouconceiveofanapplicationthatrequiresnodatalossandthatisalsohighlytimesensitive?参见图2.1-2,我们可以看到 关于同志近三年现实表现材料材料类招标技术评分表图表与交易pdf视力表打印pdf用图表说话 pdf 中所列举的应用没有一个既要求没有数据丢失又要求定时。你能设想出一个应用,既既要求没有数据丢失又要求定时吗?Therearenogoodexamplesofanapplicationthatrequiresnodatalossandtiming.Sections2.2-2.56)Whatismeantbyahandshakingprotocol?握手协议的意义?Aprotocoluseshandshakingifthetwocommunicatingentitiesfirstexchangecontrolpacketsbeforesendingdatatoeachother.SMTPuseshandshakingattheapplicationlayerwhereasHTTPdoesnot.7)WhydoHTTP,FTP,SMTP,POP3andIMAPrunontopofTCPratherthanUDP?为什么HTTP,FTP,SMTP,POP3和IMAP都运行在TCP协议而不是UDP协议上?Theapplicationsassociatedwiththoseprotocolsrequirethatallapplicationdatabereceivedinthecorrectorderandwithoutgaps.TCPprovidesthisservicewhereasUDPdoesnot.8)Considerane-commercesitethatwantstokeepapurchaserecordforeachofitscustomers.DescribehowthiscanbedonewithHTTPauthentication.(认证)Describehowthiscanbedonewithcookies.考虑一个电子商务网站需要保留每一个客户的购买记录,描述如何使用HTTP认证;描述这是如何用cookies来实现的。Whentheuserfirstvisitsthesite,thesitereturnsacookienumber.Thiscookienumberisstoredontheuser’shostandismanagedbythebrowser.Duringeachsubsequentvisit(andpurchase),thebrowsersendsthecookienumberbacktothesite.Thusthesiteknowswhenthisuser(moreprecisely,thisbrowser)isvisitingthesite.9)WhatisthedifferencebetweenpersistentHTTPwithpipelining(持久HTTP流水线)andpersistentHTTPwithoutpipelining(没有流水线的持久HTTP连接)?WhichofthetwoisusedbyHTTP/1.1?InpersistentHTTPwithoutpipelining,thebrowserfirstwaitstoreceiveaHTTPresponsefromtheserverbeforeissuinganewHTTPrequest.InpersistentHTTPwithpipelining,thebrowserissuesrequestsassoonasithasaneedtodoso,withoutwaitingforresponsemessagesfromtheserver.persistentHTTPwithpipeliningisusedbyHTTP/1.1。10)TelnetintoaWebserverandsendamuli-linerequestmessage.IncludeintherequestmessagetheIf-modified-since:headerlinetoforce aresponsemessagewiththe304NotModifiedstatuscode.用Telnet向web服务器发送一条多行的请求报文。在该请求报文中包含If-modified-since:首部行,迫使响应报文中出现304NotModified状态码。11)WhyisitsaidthatFTPsendscontrolinformation"outofband"?(频带外的)为什么说FTP在“带外“发送控制信息?FTPusestwoparallel(平行的)TCPconnections,oneconnectionforsendingcontrolinformation(suchasarequesttotransferafile)andanotherconnectionforactuallytransferringthefile.Becausethecontrolinformationisnotsentoverthesameconnectionthatthefileissentover,FTPsendscontrolinformationoutofband.12)SupposeAlicewithaWeb-basede-mailaccount(suchasYahoo!mailorHotmail)sendsamessagetoBob,whoaccesseshismailfromhismailserverusingPOP3.DiscusshowthemessagegetsfromAlice'shosttoBob'shost.Besuretolisttheseriesofapplication-layerprotocolsthatareusedtomovethemessagebetweenthetwohosts.假设Alice使用一个基于web的电子邮件账户向Bob发送邮件,而Bob使用POP3协议访问他的邮件服务器来获取邮件。讨论信息是如何从Alice的主机到Bob的主机的。一定要列出在两台主机间移动信息所用的应用层协议。MessageissentfromAlice’shosttohermailserveroverHTTP.Alice’smailserverthensendsthemessagetoBob’smailserveroverSMTP.BobthentransfersthemessagefromhismailservertohishostoverPOP3.13)Supposethatyousendane-mailmessagewhoseonlydataisaMicrosoftExcelattachment.Whatmighttheheaderlines(includingMIMElines)looklike?假定你发送一封电子邮件,唯一的数据就是一个表格附件。可能的首部行(包含MIME行)是什么样的?From:123@xxx.comTo:456@yyy.comSubject:helloMIME-Version:1.0Content-Transfer-Encoding:base64Content-Type:Application/MS-Excel14)Printouttheheaderofamessagethatyouhaverecentlyreceived.HowmanyRecieved:headerlinesarethere?Analyzeeachoftheheaderlinesinthemessage.打印出你最近收到的报文的首部,在Received中,首部行有多少行? 分析 定性数据统计分析pdf销售业绩分析模板建筑结构震害分析销售进度分析表京东商城竞争战略分析 该报文首部行的每一行。15)Fromauser'sperspective,whatisthedifferencebetweenthedownload-and-deletemodeandthedownload-and-keepmodeinPOP3?从用户的观点来看,POP3中“下载并删除”模式和“下载并保留”模式有什么区别?Withdownloadanddelete,afterauserretrieves(取回)itsmessagesfromaPOPserver,themessagesaredeleted.Thisposesaproblemforthenomadic(游动的)user,whomaywanttoaccessthemessagesfrommanydifferentmachines(officePC,homePC,etc.).Inthedownloadandkeepconfiguration(配置),messagesarenotdeletedaftertheuserretrievesthemessages.Thiscanalsobeinconvenient,aseachtimetheuserretrievesthestoredmessagesfromanewmachine,allofnon-deletedmessageswillbetransferredtothenewmachine(includingveryoldmessages).16)RedrawFigure2.5-4forwhenallqueriesfromthelocalnameserverareiterative.重绘时,从本地域名服务器所有查询迭代图2.5-4。17)EachInternethostwillhaveatleastonelocalnameserverandoneauthoratativenameserver.WhatroledoeseachoftheseservershaveinDNS?每一台英特网主机都至少有一个本地域名服务器和一个权威域名服务器。这两种服务器在域名解析中起什么作用?AhostauthoritativenameserverprovidestheofficialtranslationofahostnametoanIPaddress(amongotherthings).Ahostlocalnameserverisaproxy(代理服务器)totheDNSsystem:thehostfirstqueriesitslocalnameserverforamapping;thelocalnameserverthenobtainsthemappingonthebehalfof(代表)thequeryinghost.18)Isitpossiblethatanorganization'sWebserverandmailserverhaveexactlythesamealias(别名)forahostname(e.g.,foo.com)?Whatwouldbethe"type"fortheRRthatcontainsthehostnameofthemailserver?一个机构的web服务器和邮件服务器可以有有完全相同的主机别名吗?包含了邮件服务器的主机名的RR有什么样的类型?Yes。AnorganizationmailserverandWebservercanhavethesamealiasforahostname.TheMXrecordisusedtomapthemailserverhostnametoitsIPaddress.19)UsenslookuptofindaWebserverthathasmultipleIPaddresses.DoestheWebserverofyourinstitution(school,company,etc.)havemultipleIPaddresses?使用nslookup找到一个Web服务器有多个IP地址。贵机构的Web服务器(如学校,公司,等)是否有多​​个IP地址?Myinsititutiondoesn’thavemultipleIPaddress.Sections2.6-2.920)TheUDPserverdescribedinSection2.7onlyneededonesocket,whereastheTCPserverdescribedinSection2.6neededtwosockets.Why?IftheTCPserverweretosupportnsimultaneous(同时发生的)connections,eachfromadifferentclienthost,howmanysocketswouldtheTCPserverneed?2.7节描述的UDP服务器仅需要一个套接字,而2.6节描述的TCP服务器则需要两个套接字。为什么?如果TCP服务器要支持n个并行连接,且每个连接都来自不同的客户机主机,那么TCP服务器需要多少个套接字?WiththeUDPserver,thereisnowelcomingsocket,andalldatafromdifferentclientsenterstheserverthroughthisonesocket.WiththeTCPserver,thereisawelcomingsocket,andeachtimeaclientinitiates(发起)aconnectiontotheserver,anewsocketiscreated.Thus,tosupportnsimultaneousconnections,theserverwouldneedn+1sockets.21)Fortheclient-serverapplicationoverTCPdescribedinSection2.6,whymusttheserverprogrambeexecutedbeforetheclientprogram?Fortheclient-serverapplicationoverUDPdescribedinSection2.7,whymaytheclientprogrambeexecutedbeforetheserverprogram?在2.6节所描述的运行于TCP上的客户机-服务器应用程序,为什么服务器程序要先于客户机程序运行?在2.7节描述的运行于UDP上的客户机-服务器应用程序,为什么客户机程序要先于服务器程序运行?FortheTCPapplication,assoonastheclientisexecuted,itattemptstoinitiateaTCPconnectionwiththeserver.IftheTCPserverisnotrunning,thentheclientwillfailtomakeaconnection.FortheUDPapplication,theclientdoesnotinitiateconnections(orattempttocommunicatewiththeUDPserver)immediatelyuponexecutionProblems1)Trueorfalse.a)SupposeauserrequestsaWebpagethatconsistsofsometextandtwoimages.Forthispagetheclientwillsendonerequestmessageandrecievethreeresponsemessages?假设一个用户请求一个网页,包含一些文本和两个图像。这个页面的客户端将发送一个请求消息和接收三个响应消息?Fb)Trueorfalse.TwodistinctWebpages(e.g.,www.mit.edu/research.htmlandwww.mit.edu/students.html)canbesentoverthesamepersistentconnection?真或假。两种截然不同的网页(例如,www.mit.edu/research.html和www.mit.edu/students.html)可发送相同的持久连接?Tc)Withnon-persistentconnectionsbetweenbrowserandoriginserver,itispossibleforasingleTCPsegmenttocarrytwodistinctHTTPrequestmessages?浏览器和源服务器之间的非持久连接,它有可能为一个单一的TCP段进行两个不同的HTTP请求消息?Fd)TheDate:headerintheHTTPresponsemessageindicateswhentheobjectintheresponsewaslastmodified?日期: 在HTTP响应消息头指示的最后修订在响应对象时?F2)ReadRFC959forFTP.ListalloftheclientcommandsthataresupportedbytheRFC.FTP阅读RFC959。列出所有的客户端支持的命令是由RFC。Accesscontrolcommands:USER,PASS,ACT,CWD,CDUP,SMNT,REIN,QUIT.Transferparameter(参数)commands:PORT,PASV,TYPESTRU,MODE.Servicecommands:RETR,STOR,STOU,APPE,ALLO,REST,RNFR,RNTO,ABOR,DELE,RMD,MRD,PWD,LIST,NLST,SITE,SYST,STAT,HELP,NOOP.3)ReadRFC1700. Whatarethewell-knownportnumbersforthe"simplefiletransferprotocol"(sftp)?Forthe"networknewstransfoerprotocol"(nntp)?阅读RFC1700中。什么是“简单文件传输协议”(SFTP)众所周知的端口号?对于“新闻联播transfoer协议”(NNTP)?4)Supposewithinyourwebbrowseryouclickonalinktoobtainawebpage.SupposethattheIPaddressfortheassociatedURLisnotcached(缓存)inyourlocalhost,sothataDNSlookupisnecessarytoobtaintheIPaddress.SupposethatnDNSserversarevisitedbeforeyourhostreceivestheIPaddressfromDNS;thesuccessivevisitsincur(产生)aRTTofRTT1,...,RTTn.Furthersupposethatwebpageassociatedwiththelinkcontainsexactlyoneobject,asmallamountofHTMLtext.LetRTT0denote(表示)theRTTbetweenthelocalhostandtheservercontainingtheobject.Assumingzerotransmissiontimeoftheobject,howmuchtimeelapses(流逝)fromwhentheclientclicksonthelinkuntiltheclientreceivestheobject.假定在你的浏览器中,你点击一个超链接来获得一个web页面。假定相关的URL的IP地址没有缓存在你的本地主机上,因此必须进行DNS查询以获得IP地址。假设你的主机从DNS获得IP地址之前,已经访问了n个DNS服务器,相继产生的RTT依次为RTT1,~RTTn。进一步假设,与连接相关的web网页只含有一个对象,即少量的HTML文本。让RTT0表示本地主机和包含对象的服务器之间的RTT。假设对象传输时间为0,从客户点击连接到接收到对象需要多长时间?ThetotalamountoftimetogettheIPaddressis.OncetheIPaddressisknown,elapsestosetuptheTCPconnectionandanotherelapsestorequestandreceivethesmallobject.Thetotalresponsetimeis4)Referringtoquestion(4),supposethepagecontainsthreeverysmallobjects.Neglectingtransmissiontimes,howmuchtimeelapseswith(a)nonpersistentHTTPwithnoparallelTCPconnections,(b)nonpersistentHTTPwithparallelconnections,(c)persistentHTTPwithpipelining.提到的问题(4),假设该页面包含三个非常小的物体。忽略的传输时间,间隔时间多长(一)非持久的HTTP没有并行的TCP连接,(b)与并行连接的非持久的HTTP,(c)与持久HTTP流水线。a).b).c)6)TwoHTTPrequestmethodsareGETandPOST.ArethereanyothermethodsinHTTP/1.0?Ifso,whataretheyusedfor?HowaboutHTTP/1.1?两个HTTP请求 方法 快递客服问题件处理详细方法山木方法pdf计算方法pdf华与华方法下载八字理论方法下载 是GET和POST。在HTTP/1.0是否有任何其他的方法?如果是这样,它们是什么使用?关于HTTP/1.1的怎么样?7)WriteasimpleTCPprogramforaserverthatacceptslinesofinputfromaclientandprintsthelinesontotheserver'sstandardoutput.(YoucandothisbymodifyingtheTCPServer.javaprograminthetext.)Compileandexecuteyourprogram.OnanyothermachinewhichcontainsaWebbrowser,settheproxyserverinthebrowsertothemachineinwhichyourserverprogramisrunning;alsoconfiguretheportnumberappropriately.YourbrowsershouldnowsenditsGETrequestmessagestoyourserver,andyourservershoulddisplaythemessagesonitsstandardoutput.UsethisplatformtodeterminewhetheryourbrowsergeneratesconditionalGETmessagesforobjectsthatarelocallycached.写一个简单的TCP服务器接受从客户端的输入线和输出到服务器的标准输出线 方案 气瓶 现场处置方案 .pdf气瓶 现场处置方案 .doc见习基地管理方案.doc关于群访事件的化解方案建筑工地扬尘治理专项方案下载 。(您可以通过修改文本TCPServer.java方案。)编译和执行程序。在任何其他机器,其中包含一个Web浏览器,在浏览器中设置代理服务器在您的服务器程序运行的机器,也适当配置的端口号。您的浏览器现在应该GET请求消息发送到您的服务器,您的服务器上显示的消息,它的标准输出。利用这一平台,以确定是否您的浏览器生成本地缓存的对象,有条件的GET消息。8)ReadthePOP3RFC,RFC1939. What isthepurposeoftheUIDLPOP3command?阅读的POP3RFC,RFC1939中。UIDLPOP3命令的目的是什么?UIDLabbreviates(是~的缩写)“unique-IDlisting”.WhenaPOP3clientissuestheUIDLcommand,theserverrespondswiththeuniquemessageIDforallofthemessagespresentintheusersmailbox.Thiscommandisusefulfor“downloadandkeep”.Bykeepingafilethatliststhemessagesretrievedinearliersessions,theclientcanusetheUIDLcommandtodeterminewhichmessagesontheserverhavealreadybeenseen.8)InstallandcompiletheJavaprogramsTCPClientandUDPClientononehostandTCPServerandUDPServeronanotherhost.a)SupposeyourunTCPClientbeforeyourunTCPServer.Whathappens?Why?b)SupposeyourunUDPClientbeforeyourunUDPServer.Whathappens?Why?c)Whathappensifyouusedifferentportnumbersfortheclientandserversides?9)RewriteTCPServer.javasothatitcanacceptmultipleconnections.(Hint:Youwillneedtousethreads.) 重写TCPServer.java,以便它能够接受多个连接。(提示:您将需要使用线程)。DiscussionQuestions1)WhatisaCGIscript?GiveexamplesoftwopopularWebsitesthatuseCGIscripts.ExplainhowthesesitesuseCGI.WhichlanguagesareCGIscriptstypicallywrittenin?什么是CGI脚本?给出了两个流行的网站,使用CGI脚本的例子。说明这些网站如何使用CGI。哪些语言是CGI脚本通常写在?Abbreviationof Common Gateway Interface,aspecificationfortransferringinformationbetweena WorldWideWeb server andaCGI program. wcanyouconfigureyourbrowserforlocalcaching?Whatkindsofoptionsdoyouhave?2)Canyouconfigureyourbrowsertoopenmultiplesimultaneous(同时发生的)connectionstoaWebsite?WhataretheadvantagesanddisadvantagesofhavingalargenumberofsimultaneousTCPconnections?您可以配置您的浏览器打开多个同时连接到一个网站吗?什么是有大量并发的TCP连接的优势和劣势?3)Discussionquestion:ConsiderSMTP,POP3andIMAP.Arethesestatelessprotocols?Whyorwhynot?讨论的问题:考虑SMTP,POP3和IMAP。这些无状态协议?为什么或为什么不呢?4)WehaveseenthatInternetTCPsocketstreatthedatabeingsentasabytestreambutUDPsocketsrecognizemessageboundaries. Whatisoneadvantageandonedisadvantageofbyte-orientedAPIversushavingtheAPIexplicitly recognizeandpreserveapplication-definedmessageboundaries?我们已经看到,互联网TCP套接字治疗作为一个字节流,但UDP套接字发送的数据识别消息边界。一个优势,而不是API的明确承认和保护应用程序定义的消息边界面向字节API的一个缺点是什么?6)Woulditbepossibletoimplementaconnection-orientedservice (e.g.,SMTPorHTTP)ontopofaconnectionlessservice?Whatwouldbesomeofthedifficultiesinvolvedindoingso,and howcouldthesebeovercome?怎样才有可能实现一个无连接的服务上的一个面向连接的服务(如SMTP或HTTP)?什么会参与这样的一些困难,以及如何能加以克服?_1088550890.unknown_1089622219.unknown_1089622271.unknown_1089622279.unknown_1089622285.unknown_1089622252.unknown_1089622215.unknown_1088550832.unknown_1088550848.unknown_1088550699.unknown
本文档为【计算机网络原理习题答案】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
个人认证用户
真诚文档交流
本人从事临床麻醉五年有余,工作兢兢业业,拥有丰富的临床麻醉经验及临床医学资料,并取得了助理医师资格。
格式:doc
大小:141KB
软件:Word
页数:0
分类:
上传时间:2020-02-13
浏览量:46