计算机网络原理习题答案.docx

上传人:b****1 文档编号:13291667 上传时间:2023-06-12 格式:DOCX 页数:13 大小:85.93KB
下载 相关 举报
计算机网络原理习题答案.docx_第1页
第1页 / 共13页
计算机网络原理习题答案.docx_第2页
第2页 / 共13页
计算机网络原理习题答案.docx_第3页
第3页 / 共13页
计算机网络原理习题答案.docx_第4页
第4页 / 共13页
计算机网络原理习题答案.docx_第5页
第5页 / 共13页
计算机网络原理习题答案.docx_第6页
第6页 / 共13页
计算机网络原理习题答案.docx_第7页
第7页 / 共13页
计算机网络原理习题答案.docx_第8页
第8页 / 共13页
计算机网络原理习题答案.docx_第9页
第9页 / 共13页
计算机网络原理习题答案.docx_第10页
第10页 / 共13页
计算机网络原理习题答案.docx_第11页
第11页 / 共13页
计算机网络原理习题答案.docx_第12页
第12页 / 共13页
计算机网络原理习题答案.docx_第13页
第13页 / 共13页
亲,该文档总共13页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

计算机网络原理习题答案.docx

《计算机网络原理习题答案.docx》由会员分享,可在线阅读,更多相关《计算机网络原理习题答案.docx(13页珍藏版)》请在冰点文库上搜索。

计算机网络原理习题答案.docx

计算机网络原理习题答案

计算机网络原理习题答案

ReviewQuestions

Section2.1

1)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 

FileTransferuseragent

P2puseragent

audio/videouseragent 

5)ReferringtoFigure2.1-2,weseethatnotnoneofapplicationslistedinthetablerequireboth"nodataloss"and"timing".Canyouconceiveofanapplicationthatrequiresnodatalossandthatisalsohighlytimesensitive?

参见图2.1-2,我们可以看到表中所列举的应用没有一个既要求没有数据丢失又要求定时。

你能设想出一个应用,既既要求没有数据丢失又要求定时吗?

Therearenogoodexamplesofanapplicationthatrequiresnodatalossandtiming.

Sections2.2-2.5

6)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@

To:

456@

Subject:

hello

MIME-Version:

1.0

Content-Transfer-Encoding:

base64

Content-Type:

Application/MS-Excel

14)Printouttheheaderofamessagethatyouhaverecentlyreceived.HowmanyRecieved:

headerlinesarethere?

Analyzeeachoftheheaderlinesinthemessage.

打印出你最近收到的报文的首部,在Received中,首部行有多少行?

分析该报文首部行的每一行。

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(代理服务器)totheDNS

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)immediatelyuponexecution

Problems

1)Trueorfalse.

a)SupposeauserrequestsaWebpagethatconsistsofsometextandtwoimages.Forthispagetheclientwillsendonerequestmessageandrecievethreeresponsemessages?

假设一个用户请求一个网页,包含一些文本和两个图像。

这个页面的客户端将发送一个请求消息和接收三个响应消息?

F

b)Trueorfalse.TwodistinctWebpages(e.g.,www.mit.edu/research.htmlandwww.mit.edu/students.html)canbesentoverthesamepersistentconnection?

真或假。

两种截然不同的网页(例如,www.mit.edu/research.html和www.mit.edu/students.html)可发送相同的持久连接?

T

c)Withnon-persistentconnectionsbetweenbrowserandoriginserver,itispossibleforasingleTCPsegmenttocarrytwodistinctHTTPrequestmessages?

浏览器和源服务器之间的非持久连接,它有可能为一个单一的TCP段进行两个不同的HTTP请求消息?

F

d)TheDate:

headerintheHTTPresponsemessageindicateswhentheobjectintheresponsewaslastmodified?

日期:

 在HTTP响应消息头指示的最后修订在响应对象时?

F

2)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

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 幼儿教育 > 幼儿读物

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2