NTU-Exam 板


LINE

課程名稱︰計算機網路 課程性質︰必修 課程教師︰周承復 開課學院:電資 開課系所︰資工 考試日期(年月日)︰2015/11/12 考試時限(分鐘):120 試題 : Computer Network 2015 Mid-Term Exam Question: "Basic of Computer Networks and the Internet" Please fill into the blanks (15%) a) The amount of time required to push all of a packet's bits into a link is called ______. b) The Internet's application layer includes many protocols, such as the ______ protocol (which provides for Web document request and transfer), ______ (which provides for the transfer of e-mail messages), and ______ (which provides for the transfer of files between two end systems). c) How many IP Protocols are there in the Internet? ______ d) An application-layer process sends messages into, and receives messages from, the network through a software interface called a ______. This is also referred to as an API which stands for ______. e) Internet protocols are defined in ______. f) In order to deal with the issue of scale, the DNS uses a large number of servers, organized in a ______ fashion and distributed around the world. No single DNS server has all of the mappings for all of the hosts in the Internet. Instead, the mappings are distributed across the DNS servers. To a first approximantion, there are three classes of DNS servers-- ______ DNS servers, ______ DNS servers, and ______ DNS servers. g) In a DNS server, a resource record is a four-tuple that contains the following fields: (Name, Value, Type, TTL) The meaning of Name and Value depend on Type: * If Type = A, then Name is a ______ and Value is the ______ for the host-name. Thus, a Type A record provides the standard hostname-to-IP address mapping. As an example, (relay1.bar.foo.com,145.37.93.126,A) is a Type A record. * If Type = ______, then Name is a domain and Value is the host-name of an authoritative DNS server that knows how to obtain the IP addresses for hosts in the domain. This record is used to route DNS queries further along in the query chain. Answer each of the following questions briefly, i.e., in at most a few sentecnes a) (5%)(True or false) In a circuit switched network, all data belonging to a connection traverses the same route, whereas in a packet switched network, different packets belonging to the same connection may take different routes. b) (5%)(True or false) An IP header contains a source port and a destination port number thar are each 2 bytes long. c) (5%)(True or false) Sequence numbers are necessary to tolerate losses, but are not needed to tolerate bit errors alone. d) (5%)(True or false) Describe the use of the "If-Modified-Since" header in the HTTP protocol. e) (10%) NTU Computer Center hires you as the p2p expert to reduce its rising bandwidth costs due the rising use of BitTorrent. How would you address their problem? f) (20%) Consider an http client that wants to retrieve a WWW document at a given URL. The IP address of the http server is initially unknown. The WWW object at the URL has one embadded GIF image that resides at the same server as the orgiginal object. a. What transport application layer protocols besides http are needed in this scenario? b. Suppose that the time needed to contact and receive a reply from any server (for any protocols) is RTT, and the time to transmint the WWW object and GIF image is T. How much time (in RTT and T) is needed from when the user first enters the URL until the complete document is displayed? Assume that non-persistent http is used. Consider the delays of all protocols in your answer, not just thoss of http. Question 2: "DHT": Distributed Hash Table (a) (20%) Consider a circular Distributed Hash Table(DHT) with node identifiers in the range[0:15]. Suppose there are seven peers with identifiers 1, 4, 7, 9, 11, 13 and 15. (i) Suppose that the following (key,value) pairs should be stored in the DHT: (2,0), (6,5), (8,13) and (14,7). Which peers will store which (key,value) pairs? Fill in the table below. (key,value) Identifier of the responsible peer (2,0) (6,5) (8,13) (14,7) (ii) Suppose that peer 7 learns that peer 9 has left the DHT. How does peer 7 update its successor state information? Which peer is now its first successor? Its second successor? (b) (10%) Explain how DHT improves search performance from O(n) to O(log n), where n is the total number hosts in DHT method. Question: A reliable data transfer protocol (25%) Suppose we have two network entities, A and B. B has a supply of data messages that will be sent to A according to the following conventions. When A gets request from the layer above to get the next data (D) message from B, A must send a request (R) message to B on the A-to-B channel. Only when B receives an R message can it send a data (D) message back to A on the B-to-A channel. A should deliver exactly one copy of each D message to the layer above. R messages can be lost (but not corrupted) in the A-to-B channel; D messages, once sent, are always delivered correctly. The delay along both channels is unknown and variable. Assume no reordering occurs. Design (give an FSM description of) a protocol that incorporates the apporpriate mechanisms to compensate for the loss-prone A-to-B channel and implements message passing to the layer above at entity A, as discussed above. Use only those mechanisms that are absolutely necessary. Use a pencil or a rough sheet before finalizing your answer. Question: Homework Review: These problems are not the same as homeworks, which means that we have modified some description. Please be careful when answering. (a) (15%) Consider two hosts, X and Y connected by a single link of rate A bps. Suppose that the two hosts are seperated by B meters, and suppose the propagation speed along the link is C meters/sec. Host X is to send a packet of size D bits to Host Y. (1) (5%) Ignoring processing and queing delays, obtain an expression for the end-to-end delaye in terms of A, B, C, and D. Remember to write the unit. (2) (5%) Suppose propagation delay is greater than transmission delay. At time t = transmission delay, where is the first bit of the packet? (3) (5%) Suppose link rate A = 8 Mbps, distance B = 120 lm, and packet size D = 30 bytes. Find the propagation speed C so that propagation delay equals transmission delay. Remember to write the unit. (b) (15%) Answer true or false for each statement, and briefly explain your answer if it's flase. (1) (5%) A user requests a Web page that consists of some text and four images. For this page, the client will send four request messages and receive four respond messages. (2) (5%) Two distinct Web pages (for example, www.mit.edu/research.html and www.mit.edu/students.html) can be sent over the same nonpersistent connection. (3) (5%) With persistent connections between browser and origin server, it is possible for a single TCP segment to carry two distinct HTTP request messages. --



※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.112.16.143
※ 文章網址: https://webptt.com/m.aspx?n=bbs/NTU-Exam/M.1447297880.A.704.html
1F:推 rod24574575 : 已收資訊系! 11/12 13:55
2F:→ Akaz : 104上吧? 11/13 00:22
3F:→ qui0914 : 打錯了 抱歉 11/13 07:27
※ 編輯: qui0914 (140.112.77.54), 11/15/2015 12:15:52







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:WOW站內搜尋

TOP