计算机网络自顶向下方法(第四版)课后答案

上传人:无*** 文档编号:85686657 上传时间:2022-05-06 格式:DOC 页数:120 大小:3.12MB
收藏 版权申诉 举报 下载
计算机网络自顶向下方法(第四版)课后答案_第1页
第1页 / 共120页
计算机网络自顶向下方法(第四版)课后答案_第2页
第2页 / 共120页
计算机网络自顶向下方法(第四版)课后答案_第3页
第3页 / 共120页
资源描述:

《计算机网络自顶向下方法(第四版)课后答案》由会员分享,可在线阅读,更多相关《计算机网络自顶向下方法(第四版)课后答案(120页珍藏版)》请在装配图网上搜索。

1、Computer Networking: A Top-Down Approach Featuring the Internet, 4th EditionSolutions to Review Questions and ProblemsVersion Date: Aug 02, 2007This document contains the solutions to review questions and problems for the 4th edition of Computer Networking: A Top-Down Approach Featuring the Internet

2、 by Jim Kurose and Keith Ross. These solutions are being made available to instructors ONLY. Please do NOT copy or distribute this document to others (even other instructors). Please do not post any solutions on a publicly-available Web site. Well be happy to provide a copy (up-to-date) of this solu

3、tion manual ourselves to anyone who asks.All material copyright 1996-2007 by J.F. Kurose and K.W. Ross. All rights reservedChapter 1 Review Questions1. There is no difference. Throughout this text, the words “host” and “end system” are used interchangeably. End systems include PCs, workstations, Web

4、 servers, mail servers, Internet-connected PDAs, WebTVs, etc.2. Suppose Alice, an ambassador of country A wants to invite Bob, an ambassador of country B, over for dinner. Alice doesnt simply just call Bob on the phone and say, “come to our dinner table now”. Instead, she calls Bob and suggests a da

5、te and time. Bob may respond by saying hes not available that particular date, but he is available another date. Alice and Bob continue to send “messages” back and forth until they agree on a date and time. Bob then shows up at the embassy on the agreed date, hopefully not more than 15 minutes befor

6、e or after the agreed time. Diplomatic protocols also allow for either Alice or Bob to politely cancel the engagement if they have reasonable excuses.3. A networking program usually has two programs, each running on a different host, communicating with each other. The program that initiates the comm

7、unication is the client. Typically, the client program requests and receives services from the server program. 4. 1. Dial-up modem over telephone line: residential; 2. DSL over telephone line: residential or small office; 3. Cable to HFC: residential; 4. 100 Mbps switched Etherent: company; 5. Wirel

8、ess LAN: mobile; 6. Cellular mobile access (for example, WAP): mobile5. Current possibilities include: dial-up; DSL; cable modem; fiber-to-the-home. 6. HFC bandwidth is shared among the users. On the downstream channel, all packets emanate from a single source, namely, the head end. Thus, there are

9、no collisions in the downstream channel.7. Ethernet most commonly runs over twisted-pair copper wire and “thin” coaxial cable. It also can run over fibers optic links and thick coaxial cable.8. Dial up modems: up to 56 Kbps, bandwidth is dedicated; ISDN: up to 128 kbps, bandwidth is dedicated; ADSL:

10、 downstream channel is .5-8 Mbps, upstream channel is up to 1 Mbps, bandwidth is dedicated; HFC, downstream channel is 10-30 Mbps and upstream channel is usually less than a few Mbps, bandwidth is shared.9. Ethernet LANs have transmission rates of 10 Mbps, 100 Mbps, 1 Gbps and 10 Gbps. For an X Mbps

11、 Ethernet (where X = 10, 100, 1,000 or 10,000), a user can continuously transmit at the rate X Mbps if that user is the only person sending data. If there are more than one active user, then each user cannot continuously transmit at X Mbps.10. There are two most popular wireless Internet access tech

12、nologies today:a) Wireless LANIn a wireless LAN, wireless users transmit/receive packets to/from a base station (wireless access point) within a radius of few tens of meters. The base station is typically connected to the wired Internet and thus serves to connect wireless users to the wired network.

13、b) Wide-area wireless access networkIn these systems, packets are transmitted over the same wireless infrastructure used for cellular telephony, with the base station thus being managed by a telecommunications provider. This provides wireless access to users within a radius of tens of kilometers of

14、the base station.11. A circuit-switched network can guarantee a certain amount of end-to-end bandwidth for the duration of a call. Most packet-switched networks today (including the Internet) cannot make any end-to-end guarantees for bandwidth. 12. At time t0 the sending host begins to transmit. At

15、time t1 = L/R1, the sending host completes transmission and the entire packet is received at the router (no propagation delay). Because the router has the entire packet at time t1, it can begin to transmit the packet to the receiving host at time t1. At time t2 = t1 + L/R2, the router completes tran

16、smission and the entire packet is received at the receiving host (again, no propagation delay). Thus, the end-to-end delay is L/R1 + L/R2.13. In a packet switched network, the packets from different sources flowing on a link do not follow any fixed, pre-defined pattern. In TDM circuit switching, eac

17、h host gets the same slot in a revolving TDM frame. 14. a) 2 users can be supported because each user requires half of the link bandwidth. b) Since each user requires 1Mbps when transmitting, if two or fewer users transmit simultaneously, a maximum of 2Mbps will be required. Since the available band

18、width of the shared link is 2Mbps, there will be no queuing delay before the link. Whereas, if three users transmit simultaneously, the bandwidth required will be 3Mbps which is more than the available bandwidth of the shared link. In this case, there will be queuing delay before the link. c) Probab

19、ility that a given user is transmitting = 0.2 d) Probability that all three users are transmitting simultaneously = = (0.2)3 = 0.008. Since the queue grows when all the users are transmitting, the fraction of time during which the queue grows (which is equal to the probability that all three users a

20、re transmitting simultaneously) is 0.008. 15. A tier-1 ISP connects to all other tier-1 ISPs; a tier-2 ISP connects to only a few of the tier-1 ISPs. Also, a tier-2 ISP is a customer of one or more tier-1.16. The delay components are processing delays, transmission delays, propagation delays, and qu

21、euing delays. All of these delays are fixed, except for the queuing delays, which are variable.17. 10msec; d/s; no; no18. Java Applet19. a) 250 kbps b) 64 seconds c) 200kbps; 80 seconds20. Java Applet21. End system A breaks the large file into chunks. To each chunk, it adds header generating multipl

22、e packets from the file. The header in each packet includes the address of the destination: end system B. The packet switch uses the destination address to determine the outgoing link. Asking which road to take is analogous to a packet asking which outgoing link it should be forwarded on, given the

23、packets address.22. Five generic tasks are error control, flow control, segmentation and reassembly, multiplexing, and connection setup. Yes, these tasks can be duplicated at different layers. For example, error control is often provided at more than one layer.23. The five layers in the Internet pro

24、tocol stack are from top to bottom the application layer, the transport layer, the network layer, the link layer, and the physical layer. The principal responsibilities are outlined in Section 1.5.1.24. Routers process layers 1 through 3. (This is a little bit of a white lie, as modern routers somet

25、imes act as firewalls or caching components, and process layer four as well.) Link layer switches process layers 1 through 2. Hosts process all five layers.25. Application-layer message: data which an application wants to send and passed onto the transport layer; transport-layer segment: generated b

26、y the transport layer and encapsulates application-layer message with transport layer header; network-layer datagram: encapsulates transport-layer segment with a network-layer header; link-layer frame: encapsulates network-layer datagram with a link-layer header. 26. a) Virus Requires some form of h

27、uman interaction to spread. Classic example: E-mail viruses.b)WormsNo user replication needed. Worm in infected host scans IP addresses and port numbers, looking for vulnerable processes to infect.c) Trojan horseHidden, devious part of some otherwise useful software.27. Trudy can pretend to be Bob t

28、o Alice (and vice-versa) and partially or completely modify the message(s) being sent from Bob to Alice. For example, she can easily change the phrase “Alice, I owe you $1000” to “Alice, I owe you $10,000”. Furthermore, Trudy can even drop the packets that are being sent by Bob to Alice (and vise-ve

29、rsa), even if the packets from Bob to Alice are encrypted. 28. Creation of a botnet requires an attacker to find vulnerability in some application or system (e.g. exploiting the buffer overflow vulnerability that might exist in an application). After finding the vulnerability, the attacker needs to

30、scan for hosts that are vulnerable. The target is basically to compromise a series of systems by exploiting that particular vulnerability. Any system that is part of the botnet can automatically scan its environment and propagate by exploiting the vulnerability. An important property of such botnets

31、 is that the originator of the botnet can remotely control and issue commands to all the nodes in the botnet. Hence, it becomes possible for the attacker to issue a command to all the nodes, that target a single node (for example, all nodes in the botnet might be commanded by the attacker to send a

32、TCP SYN message to the target, which might result in a TCP SYN flood attack at the target). Chapter 1 Problems:Problem 1. There is no single right answer to this question. Many protocols would do the trick. Heres a simple answer below:Messages from ATM machine to ServerMsg namepurpose-HELO Let serve

33、r know that there is a card in the ATM machineATM card transmits user ID to ServerPASSWD User enters PIN, which is sent to serverBALANCEUser requests balanceWITHDRAWL User asks to withdraw moneyBYEuser all doneMessages from Server to ATM machine (display)Msg namepurpose-PASSWDAsk user for PIN (passw

34、ord)OKlast requested operation (PASSWD, WITHDRAWL) OKERRlast requested operation (PASSWD, WITHDRAWL) in ERRORAMOUNT sent in response to BALANCE requestBYEuser done, display welcome screen at ATMCorrect operation:client serverHELO (userid)-(check if valid userid)-PASSWDPASSWD -(check password)-AMOUNT

35、 WITHDRAWL -check if enough $ to cover withdrawl(check if valid userid)-PASSWDPASSWD -(check password)-AMOUNT WITHDRAWL -check if enough $ to cover withdrawl-BYEProblem 2.a) We can n connections between each of the four pairs of adjacent switches. This gives a maximum of 4n connections.b) We can n c

36、onnections passing through the switch in the upper-right-hand corner and another n connections passing through the switch in the lower-left-hand corner, giving a total of 2n connections. Problem 3. a) A circuit-switched network would be well suited to the application described, because the applicati

37、on involves long sessions with predictable smooth bandwidth requirements. Since the transmission rate is known and not bursty, bandwidth can be reserved for each application session circuit with no significant waste. In addition, we need not worry greatly about the overhead costs of setting up and t

38、earing down a circuit connection, which are amortized over the lengthy duration of a typical application session.b) Given such generous link capacities, the network needs no congestion control mechanism. In the worst (most potentially congested) case, all the applications simultaneously transmit ove

39、r one or more particular network links. However, since each link offers sufficient bandwidth to handle the sum of all of the applications data rates, no congestion (very little queuing) will occur.Problem 4.Tollbooths are 75 km apart (assuming equal distance between tollbooths), and the cars propaga

40、te at 50km/hr. A tollbooth services a car at a rate of one car every 12 seconds (from section 1.4).a) There are ten cars. It takes 120 seconds, or two minutes, for the first tollbooth to service the 10 cars. Each of these cars has a propagation delay of 90 minutes (75/50=1.5 hr) before arriving at t

41、he second tollbooth. Thus, all the cars are lined up before the second tollbooth after 92 minutes. The whole process repeats itself for traveling between the second and third tollbooths. Thus the total delay is 184 minutes. b) Delay between tollbooths is 5*12 seconds plus 90 minutes, i.e., 91 minute

42、s. The total delay is twice this amount, i.e., 182 minutes.Problem 5a) seconds.b) seconds.c) seconds.d) The bit is just leaving Host A.e) The first bit is in the link and has not reached Host B.f) The first bit has reached Host B.g) Wantkm.Problem 6Consider the first bit in a packet. Before this bit

43、 can be transmitted, all of the bits in the packet must be generated. This requiressec=7msec.The time required to transmit the packet issec=.Propagation delay = 2 msec.The delay until decoding is7msec +0.896msec + 2msec = 9.896msecA similar analysis shows that all bits experience a delay of 9.896 ms

44、ec.Problem 7a) 10 users can be supported because each user requires one tenth of the bandwidth.b) .c) .d) .We use the central limit theorem to approximate this probability. Let be independent random variables such that .“11 or more users” when is a standard normal r.v. Thus “10 or more users”.Proble

45、m 8a) 10,000b)Problem 9The first end system requires L/R1 to transmit the packet onto the first link; the packet propagates over the first link in d1/s1; the packet switch adds a processing delay of dproc; after receiving the entire packet, the packet switch requires L/R2 to transmit the packet onto

46、 the second link; the packet propagates over the second link in d2/s2. Adding these five delays givesdend-end = L/R1 + L/R2 + d1/s1 + d2/s2 + dprocTo answer the second question, we simply plug the values into the equation to get 8msec + 8msec + 24msec + 12msec + 2msec = 54 msec.Problem 10Because bit

47、s are immediately transmitted, the packet switch does not introduce any delay; in particular, it does not introduce a transmission delay. Thus,dend-end = L/R + d1/s1 + d2/s2For the values in Problem 9, we get 8 + 24 + 12 = 44 msec. Problem 11The queuing delay is 0 for the first transmitted packet, L

48、/R for the second transmitted packet, and generally, (n-1)L/R for the nth transmitted packet. Thus, the average delay for the N packets is(L/R + 2L/R + . + (N-1)L/R)/N = L/RN(1 + 2 + . + (N-1) = LN(N-1)/(2RN) = (N-1)L/(2R)Note that here we used the well-known fact that1 + 2 + . + N = N(N+1)/2Problem

49、 12The arriving packet must first wait for the link to transmit 4,375 bytes (1250 X 3 + 625) or 35,000 bits. Since these bits are transmitted at 1 Mbps, the queuing delay is 35 msec. Generally, the queuing delay is nL + (L - x)/R.Problem 13It takes seconds to transmit the packets. Thus, the buffer i

50、s empty when a batch of packets arrive.The first of the packets has no queuing delay. The 2nd packet has a queuing delay of seconds. The th packet has a delay of seconds.The average delay is.Problem 14a) The transmission delay is . The total delay isb) Let .Total delay = Problem 15a) There are nodes

51、 (the source host and the routers). Let denote the processing delay at the th node. Let be the transmission rate of the th link and let. Let be the propagation delay across the th link. Then.b) Let denote the average queueing delay at node . Then.Problem 16The command:traceroute -q 20 www.eurecom.fr

52、will get 20 delay measurements from the issuing host to the host, www.eurecom.fr. The average and standard deviation of these 20 measurements can then be collected. Do you see any differences in your answers as a function of time of day?Problem 17Throughput = minRs, Rc, R/MProblem 18a) 80,000 bitsb)

53、 80,000 bitsc) The bandwidth-delay product of a link is the maximum number of bits that can be in the linkd) 1 bit is 125 meters long, which is slightly larger the size of a football fielde) s/R Problem 1925 bpsProblem 20a) 40,000,000 bitsb) 400,000 bitsc) .25 metersProblem 21a) ttrans + tprop = 400

54、 msec + 40 msec = 440 msecb) 10 * (ttrans + 2 tprop) = 10*(40 msec + 80 msec) = 1.2 secProblem 22a) 180 msecb) 1,800,000 bitsc) 600,000,000 bits Problem 23Lets suppose the passenger and his/her bags correspond to the data unit arriving to the top of the protocol stack. When the passenger checks in,

55、his/her bags are checked, and a tag is attached to the bags and ticket. This is additional information added in the Baggage layer if Figure 1.20 that allows the Baggage layer to implement the service or separating the passengers and baggage on the sending side, and then reuniting them (hopefully!) o

56、n the destination side. When a passenger then passes through security, and additional stamp is often added to his/her ticket, indicating that the passenger has passed through a security check. This information is used to ensure (e.g., by later checks for the security information) secure transfer of

57、people.Problem 24a) Time to send message from source host to first packet switch = . With store-and-forward switching, the total time to move message from source host to destination host = b) Time to send 1st packet from source host to first packet switch = . . Time at which 2nd packet is received a

58、t the first switch = time at which 1st packet is received at the second switch = c) Time at which 1st packet is received at the destination host = . . After this, every 1msec one packet will be received; thus time at which last (4000th) packet is received = . It can be seen that delay in using messa

59、ge segmentation is significantly less (almost 1/3rd). d) Drawbacks:i. Packets have to be put in sequence at the destination.ii. Message segmentation results in many smaller packets. Since header size is usually the same for all packets regardless of their size, with message segmentation the total am

60、ount of header bytes is more.Problem 25Java AppletProblem 26Time at which the 1st packet is received at the destination = sec. After this, one packet is received at destination every sec. Thus delay in sending the whole file = To calculate the value of S which leads to the minimum delay,Chapter 2 Re

61、view Questions1. The Web: HTTP; file transfer: FTP; remote login: Telnet; Network News: NNTP; e-mail: SMTP.2. The process which initiates the communication is the client; the process that waits to be contacted is the server.3. Network architecture refers to the organization of the communication process into layers (e.g., the five-layer Internet architecture). Application architecture, on the other hand, is designed by an application developer and dict

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!