已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Chapter 2注:括弧之中红色标注为与课本习题对应的编号2.1,2.2节后作业:1. (R2)For a communication session between a pair of processes, which process is the client and which is the server?答:The process is always-on host called the server.The process which initiates the communication is the client. 2. (R3)What is the difference between network architecture and application architecture?答:Network architecture refers to the organization of the communication process into layers.Application architecture, on the other hand, is designed by an application developer and dicates the broad structure of the application.3. (R4)What information is used by a process running on one host to identify a process running on another host?答:The IP address of the destination host and the port number of the destination socket.4. (R7)Suppose you wanted to do a transaction from a remote client to a server as fast as possible. Would you use UDP or TCP? Why?答:We would use UDP. With UDP, the transaction can be completed in one roundtrip time the client sends the transaction request into a UDP socket, and the server sends the reply back to the clients UDP socket. With TCP, a minimum of two RTTs are needed one to set-up the TCP connection, and another for the client to send the request, and for the server to send back the reply.5. (R8)List the four broad classes of services that a transport protocol can provide. For each of the service classes, indicate if either UDP or TCP (or both) provides such a service.答:(1) Reliable Data Transfer: TCP provides a reliable byte-stream between client and server but UDP does not.(2) Throughput: A guarantee that a certain value for throughput will be maintained; Neither.(3) Timing: A guarantee that data will be delivered within a specified amount of time; Neither.(4) Security: Neither.6. (R9)Why do HTTP, FTP, SMTP, and POP3 run on top of TCP rather than on UDP?答:The applications associated with those protocols require that all application data be received in the correct order and without gaps. TCP provides this service whereas UDP does not.7. (R11)What is meant by a handshaking protocol?答:A protocol uses handshaking if the two communicating entities first exchange control packets before sending data to each other. SMTP uses handshaking at the application layer whereas HTTP does not.2.3,2.4节后作业8. (R15)Suppose Alice, with a Web-based e-mail account (such as Hotmail or gmail), sends a message to Bob, who accesses his mail from his mail server using POP3. Discuss how the message gets from Alices host to Bobs host. Be sure to list the series of application-layer protocols that are used to move the message between the two hosts.答:Message is sent from Alices host to her mail server over HTTP. Alices mail server then sends the message to Bobs mail server over SMTP. Bob then transfers the message from his mail server to his host over POP3.9. (R17)From a users perspective, what is the difference between the download-and-delete mode and the download-and-keep mode in POP3?答:With download and delete, after a user retrieves its messages from a POP server, the messages are deleted. This poses a problem for the nomadic user, who may want to access the messages from many different machines. In the download and keep configuration, messages are not deleted after the user retrieves the messages. This can also be inconvenient, as each time the user retrieves the stored messages from a new machine, all of non-deleted messages will be transferred to the new machine.10. (R18)Is it possible for an organizations Web server and mail server to have exactly the same alias for a hostname (for example, foo. com)? What would be the type for the RR that contains the hostname of the mail server?答:Yes, an organizations mail server and Web server can have the same alias for a host name. The MX record is used to map the mail servers host name to its IP address.11. (R19)Why is it said that FTP sends control information out-of-band?答:FTP uses two parallel TCP connections, one connection for sending control information and another connection for actually transferring the file. Because the control information is not sent over the same connection that the file is sent over, FTP sends control information out of band.2.5,2.6节后作业12. (P1)True or false?a. A user requests a Web page that consists of some text and three images. For this page, the client will send one request message and receive four response messages.b. Two distinct Web pages (for example, /research.Html and /students. html) can be sent over the same persistent connection.c. With nonpersistent connections between browser and origin server, it is possible for a single TCP segment to carry two distinct HTTP request messages.d. The Date: header in the HTTP response message indicates when the object in the response was last modified.答:a. Fb. Tc. Fd. F13. (P7)Suppose within your Web browser you click on a link to obtain a Web page. The IP address for the associated URL is not cached in your local host, so a DNS lookup is necessary to obtain the IP address. Suppose that n DNS servers are visited before your host receives the IP address from DNS; the successive visits incur an RTT of . Further suppose that the Web page associated with the link contains exactly one object, consisting of a small amount of HTML text. Let denote the RTT between the local host and the server containing the object. Assuming zero transmission time of the object, how much time elapses from when the client clicks on the link until the client receives the object?答:The time to get IP address is RTT1+RTT2+RTTn, once the IP address is known, the response time is 2RTT0+RTT1+RTTn.14. (P8)Referring to Problem P7, suppose the HTML file references three very small objects on the same server. Neglecting transmission times, how much time elapses witha. Non-persistent HTTP with no parallel TCP connections?b. Non-persistent HTTP with parallel connections?c. Persistent HTTP (with pipelining)?答:a. RTT1+RTT2+RTTn+2RTT0+32RTT0=8RTT0+RTT1+RTTn.b. RTT1+RTT2+RTTn+2RTT0+2RTT0=4RTT0+RTT1+RTTn.c. RTT1+RTT2+RTTn+2RTT0+RTT0=3RTT0+RTT1+RTTn.2.7,2.8节后作业15. (P9)Consider Figure2.12, for which there is an institutional network connected to the Internet. Suppose that the average object size is 900,000 bits and that the average request rate from the institutions browsers to the origin servers is 10 requests per second. Also suppose that the amount of time it takes from when the routers on the Internet side of the access link forwards an HTTP request until it receives the response is two seconds on average (see Section 2.2.5). Model the total average response time as the sum of the average access delay (that is, the delay from Internet router to institution router) and the average Internet delay. For the average access delay, use/(1-), where is the average time required to send an object over the access link andis the arrival rate of objects to the access link.a. Find the total average response time.b. Now suppose a cache is installed in institution LAN. Suppose the hit rate is 0.6. Find the total response time. 答:a. The time to transmit an object of size L over a link or rate R is L/R.The average time is the average size of the object divided by R : =(900000 bits)/(15000000bits/sec)=0.06secThe traffic intensity on the link is ( 10 requests/sec)(0.06msec/request )=0.6The average access delay is ( 0.06sec )/( 1-0.6 )=0.15secThe total average response time is therefore 0.6sec+2sec=2.15sec.b. The average access delay is ( 0.06sec )/( 1-0.60.4 )=0.0456secWith cache and the hit rate is 0.6 , when miss the cache the average response time is 0.0456sec+2sec=2.0456secThe average response time is (1-0.6)2.0456sec=0.832sec16. (P20)In our coverage of an overlay network using query flooding in Section 2.6, we describe in some detail how a new peer joins the overlay network. In this problem we want to explore what happens when a peer leaves the overlay network. Suppose every participating peer maintains TCP connections to at least four distinct peers at all times. Suppose Peer X, which has five TCP connections to other peers, wants to leave.a. First consider the case of a graceful departure, that is, Peer X explicitly close its application, thereby graceful closing its five TCP connections. What actions would each of the five formerly connected peers take?b. Now suppose that Peer X abruptly disconnects from the Internet without notifying its five neighbors that is closing the TCP connections. What would happen?答:a. Each of the five Gnutella clients immediately learns that it has one less neighbor. The one of these five clients called A. Suppose A has only three neighbors after X drops out . Then A needs to establish a TCP connection with another peer . A should have a fresh list of active peers; he sequentially contacts peers on this list until one accepts his TCP connection attempt.b. We still use A. A doesnt immediately know that X has departed. A will only learn about Xs departure when it attempts to send a message (query or ping) to X. When A attempts to send a message, As TCP will make several unsuccessful attempts to send the message to B. As TCP will then inform the Gnutella client that X is down. A will try to establish a TCP connection with a new peer to rebuild a fifth connection.17. (P21)Consider query flooding, as discussed in Section 2.6. Suppose that each peer is connected to at most N neighbors in the overlay network. Also suppose that the node-count field is initially set to K. Suppose Alice makes a query. Find an upper bound on the number of query messages that are sent into the overlay network.答:
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年德阳科贸职业学院单招职业适应性测试题库新版
- 2026年江南影视艺术职业学院单招职业适应性考试题库完美版
- 2026年武汉民政职业学院单招职业倾向性测试必刷测试卷带答案
- 2026年浙江艺术职业学院单招职业技能测试题库及答案1套
- 2025年下半年全国教师资格证笔试幼儿《综合素质》真题及答案
- 2025年下半年教师资格(小学)《综合素质》真题及答案
- 2026年武汉铁路桥梁职业学院单招职业技能测试题库带答案
- 2026年河北外国语学院单招职业倾向性测试题库必考题
- 2026年景德镇陶瓷职业技术学院单招职业技能考试题库完美版
- 2026年沧州幼儿师范高等专科学校单招职业倾向性考试题库含答案
- 2025年北京朝阳社区考试题库
- 煤矿设备安装安全作业技术规程
- 2025年江苏省中职职教高考统考语文试卷真题(含答案详解)
- 港口属地管理办法
- 沙僧介绍课件图片
- 五年级英语上册总复习句子外研版
- 肝癌护理常规课件
- 搅拌站安全应急预案
- 四川美术学院《高级英语视听说(1)》2023-2024学年第一学期期末试卷
- 大宗商品市场分析师培训
- 银行不良资产处置与回收
评论
0/150
提交评论