2022年网络复习 .pdf
《2022年网络复习 .pdf》由会员分享,可在线阅读,更多相关《2022年网络复习 .pdf(27页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、HW1 Problem 1 Design and describe an application-level protocol to be used between an automatic teller machine and a banks centralized computer. You protocol should allow a users card and password to be verified, the account balance (which is maintained at the centralized computer) to be queried, an
2、d an account withdrawal to be made (that is, money disbursed to the user). Your protocol entities should be able to handle the all-too-common case in which there is not enough money in the account to cover the withdrawal. Specify your protocol by listing the messages exchanged and the action taken b
3、y the automatic teller machine or the banks centralized computer on transmission and receipt of messages. Sketch the operation of your protocol for the case of a simple withdrawal with no errors, using a diagram similar to that in Figure 1.2. Explicitly state the assumption made by your protocol abo
4、ut underlying end-to-end transport service. Answer:automatic teller machinecentralized computerStart(UserID)Error-Unvalid UserIDEndError-Not Enough BalanceShowBalanceError-WrongPWDcheck UserIDcheck UserPWDcheck Enough BalanceDispenses MoneyPWDPWD(UserPWD)Right(ChooseService)BalanceWithDrawl(Amount)E
5、noughEnd名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 27 页 - - - - - - - - - Messages from automatic teller machine to centralized computer Start(UserID) Let server know that there is a card in the automatic teller machineautomatic teller machinetransmits User
6、ID to centralized computerPWD(UserPWD) User enters PWD, which is sent to centralized computerBalance User requests balance WithDrawl(Amount) User asks to withdraw money End user all done Messages from centralized computer to automatic teller machine PWD Ask user for UserPWd Right(ChooseService) last
7、 requested operation (PASSWD, WITHDRAWL) OK Error last requested operation (UserID,PWD, WithDrawl) in Error ShowBalance(Balance)sent in response to BALANCE request Enough sent in response to WithDrawl request End user done, display welcome screen at automatic teller machine Problem 5 Consider sendin
8、g a packet of F bits over a path of Q links. Each link transmits at R bps. The network is lightly loaded so that there are no queuing delays. Propagation delay is negligible. a. Suppose the network is a packet-switched virtual circuit network. Denote the VC set-up time by ts seconds. Suppose the sen
9、ding layers add a total of h bits of header to each packet. How long does it take to send the file from source to destination? b. Suppose the network is a packet-switched datagram network and a connectionless service is used. Now suppose each packet has 2h bits of header. How long does it take to se
10、nd the file? c. Finally, suppose that the network is a circuit-switched network. Further suppose that the transmission rate of the circuit between source and destination is R bps. Assuming ts set-up time and h bits of header appended to the entire file, how long does it take to send the file? Answer
11、:(1). The length of each packet: (F+h) bits The time ench packet takes: (F+h)/R seconds Q links total time: Q(F+h)/R secondsThe total time: st+Q(F+h)/R seconds(2) Q(F+h)/R seconds (3) st+(F+h)/R seconds Problem6 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 27
12、 页 - - - - - - - - - This elementary problem begins to explore propagation delay and transmission delay, two central concepts in data networking. Consider two hosts, Host A and B, connected by a single link of rate R bps. Suppose that the two hosts are separated by m meters, and suppose the propagat
13、ion speed along the link is s meters/sec. Host A is to send a packet of size L bits to Host B. a. Express the propagation delay, dprop in terms of m and s. b. Determine the transmission time of the packet, dtrans in terms of L and R.c. Ignoring processing and queuing delays, obtain an expression for
14、 the end-to-end delay. d. Suppose Host A begins to transmit the packet at time t = 0. At time t = dtrans, where is the last bit of the packet?e. Suppose dprop is greater than dtrans. At time t = dtrans, where is the first bit of the packet? f. Suppose dprop is less than dtrans. At time t = dtrans, w
15、here is the first bit of the packet? g. Suppose s = 2.5*108, L = 100 bits, and R = 28 kbps. Find the distance m so that dprop equals dtrans. Answer:a)smdprop/seconds. b)RLdtrans/seconds. c)/(RLsmdendtoendseconds. d) The bit is just leaving Host A. e) The first bit is in the link and has not reached
16、Host B. f) The first bit has reached Host B. g) Want 8 9 3105.2102810083SRLmkm. Problem7 In this problem we consider sending voice from Host A to Host B over a packet-switched network (for example, Internet phone). Host A converts on-the-fly analog voice to a digital 64- Kbps bit stream. Host A then
17、 groups the bits into 48-byte packets. There is one link between host A and B; its transmission rate is 1 Mbps and its propagation delay is 2 mesc. As soon as Host A gathers a packet, it sends it to Host B. As soon as Host B receives an entire packet, it converts the packets bits to an analog signal
18、. How much time elapses from the time a bit is created (from the original analog signal at A) until a bit is decoded (as part of the analog signal at B)? Answer:Before the first bit in a packet can be transmitted, all of the bits in the packet must be generated. This requires 31064848sec=6msec. 名师资料
19、总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 27 页 - - - - - - - - - The time required to transmit the packet is 6101848sec=384sec. Propagation delay = 2 msec. The delay until decoding is 6msec +384sec + 2msec = 8.384msec Problem 10 Consider the queuing delay in a
20、 router buffer (preceding an outbound link). Suppose all packets are L bits, the transmission rate is R bps, and that N packets arrive to the buffer every LN/R seconds. Find the average queuing delay of a packet. Answer:RNLnNRLRLnNNnNn2)1(/) 1(1101Problem 13 Perform a traceroute between source and d
21、estination on the same continent at three different hours of the day. a. Find the average and standard deviation of the round-trip delays at each of the three hours. b. Find the number of routers in the path at each of the three hours. Did the paths change during any of the hours? c. Try to identify
22、 the number of ISP networks that the Traceroute packets pass through from source to destination. Routers with similar names and/or similar IP addresses should be considered as part of the same ISP. In your experiments, do the largest delays occur at peering interfaces between adjacent ISPs? d. Repea
23、t the above for a source and destination on different continents. Compare the intracontinent and intercontinent results. Answer:名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 4 页,共 27 页 - - - - - - - - - (1) the average and standard deviation of the round-trip delays
24、: (20/3+18/3+21/3+28/3+18/3+17/3+29/3)/7+(10/3+4/3+8/3+19/3+53/3+49/3+34/3)/7)/2=7.81 ms the standard deviation of the round-trip delays: 0.3613 (2) the number of routers in first experiment: 7 the number of routers in second experiment: 7 The paths din not chang. (3) In my experiment,123.126.6.198
25、and 123.126.248.74 are similar IP address. They should be considered as part of the same ISP. The largest delays did notoccur at peering interfaces between adjacent ISPs. Problem 14 Suppose two hosts, A and B, are separated by 10,000 kilometers and are connected by a direct link of R = 1 Mbps. Suppo
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022年网络复习 2022 网络 复习
限制150内