下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、Chapter 5 作業(yè)題,請同學(xué)們注意題目描述。1. (R1)What are some of the possible services that a link-layer protocol can offer to the network layer? Which of these link-layer services have corresponding services in IP? In TCP?答:可能提供的服務(wù):鏈路接入,成幀,可靠傳輸,流量控制,差錯檢測,差錯糾正,半雙工和全雙工; In IP:成幀,差錯檢測; In TCP: 成幀,可靠傳輸,差錯檢測,半雙工和全雙工。2.
2、 (R2)If all the links in the Internet were to provide reliable delivery service, would the TCP reliable delivery service be redundant? Why or why not?答:不會多余,因?yàn)門CP保證的是傳輸層的數(shù)據(jù)傳送,而link提供穩(wěn)定可靠傳輸保證鏈路層的傳輸穩(wěn)定,二者不完全重疊,所以TCP可靠傳輸也不會多余。例如,鏈路層協(xié)議不能保證端到端的順序,就需要TCP協(xié)議進(jìn)行排序;路由器緩存溢出丟包,鏈路層協(xié)議無法解決這個問題,但是TCP可以。3. (R8)How big
3、 is the MAC address space? The IPv4 address space? The IPv6 address space?答:248 個MAC addresses; 232 個IPv4 addresses; 2128 個IPv6 addresses4. (R9)Why is an ARP query sent within a broadcast frame? Why is an ARP response sent within a frame with a specific destination MAC address?答:因?yàn)樾录尤刖W(wǎng)絡(luò)的主機(jī)是不知道路由器的IP
4、的,自己也沒有IP,所以只能廣播才能得到IP,特定的主機(jī)就會特定響應(yīng)。因?yàn)槊總€主機(jī)的MAC地址都是唯一的,而ARP建立轉(zhuǎn)發(fā)表的時候會帶上MAC地址。5. (P5)Consider the 4-bit generator, G, shown in Figure 5.8, and suppose that D has the value 11111010. What is the value of R? G=1001答:D2RG的余數(shù), R=1106. (P11)Consider a broadcast channel with N nodes and a transmission rate of
5、 R bps. Suppose the broadcast channel uses polling (with an additional polling node) for multiple access. Suppose the amount of time from when a node completes transmission until the subsequent node is permitted to transmit (that is, the polling delay) is dpoll. Suppose that within a polling round,
6、a given node is allowed to transmit at most Q bits. What is the maximum throughput of the broadcast channel? 答:情況1:QRQR+Ndpoll情況2:NQRN(QR+dpoll)兩種極端情況進(jìn)行比較,明顯情況2為最大值;情況1為最小值。7. (P12)Consider three LANs interconnected by two routers, as shown in Figure 5.38.a. Redraw the diagram to include adapters.Fi
7、gure 5.38 Three subnets, interconnected by routersb. Assign IP addresses to all of the interfaces. For Subnet I use addresses of the form 111.111.111.xxx; for Subnet 2 uses addresses of the form 122.222.222.xxx; and for Subnet 3 use addresses of the form 133.333.333.xxx. (注:本題目略有修改,見紅色標(biāo)注)c. Assign M
8、AC addresses to all of the adapters.d. Consider sending an IP datagram from Host A to Host F. Suppose all of the ARP tables are up to date. Enumerate all the steps, as done for the single-router example in Section 5.4.2.e. Repeat (d), now assuming that the ARP table in the sending host is empty(and
9、the other tables are up to date).答:a.b.c.d. 1. 由A的轉(zhuǎn)發(fā)表決定了數(shù)據(jù)報應(yīng)該被轉(zhuǎn)發(fā)到路由器端口111.111.111.002.2. 由A的適配器生成一個攜帶以太網(wǎng)目的地址22-22-22-22-22-22的以太網(wǎng)分組.3. 第一個路由器即收到該分組并且解析了數(shù)據(jù)報。該路由器中的轉(zhuǎn)發(fā)表提示該數(shù)據(jù)報應(yīng)該被轉(zhuǎn)發(fā)到122.222.222.003.4. 第一個路由器發(fā)送帶有目的地址為55-55-55-55-55-55并且源地址為33-33-33-33-33-33的以太網(wǎng)分組,經(jīng)過IP地址為122.222.222.002的端口。5. 過程以此類推,直到分組到達(dá)
10、主機(jī)F .e. 主機(jī)A的ARP模塊一定知道本網(wǎng)段網(wǎng)關(guān)的IP地址為 111.111.111.002。主機(jī)A發(fā)送一個ARP請求(包含在一個以太網(wǎng)廣播幀中)。第一個路由器接收到這個請求分組并且發(fā)送給主機(jī)A一個ARP響應(yīng)分組。這個ARP響應(yīng)分組裝載于一個包含以太網(wǎng)目的地址00-00-00-00-00-00的以太網(wǎng)幀上。得知了路由器端口的MAC地址后,以他作為目的地址成幀,以后的步驟與上一問相同。8. (P15)Suppose nodes A and B are on the same 10 Mbps Ethernet bus, and the propagation delay between the
11、 two nodes is 225 bit times. Suppose A and B send frames at the same time, the frames collide, and then A and B choose different values of K in the CSMA/CD algorithm. Assuming no other nodes are active, can the retransmissions from A and B collide? For our purposes, it suffices to work out the follo
12、wing example. Suppose A and B begin transmission at t = 0 bit times. They both detect collisions at t = 225 bit times. They finish transmitting a jam signal at t = 225 + 48 = 273 bit times. Suppose and , At what time does B schedule its retransmission? At what time does A begin transmission? (Note:
13、The nodes must wait for an idle channel after returning to Step 2-see protocol.) At what time does As signal reach B? Does B refrain from transmitting at its scheduled time?答:9. (P16)Suppose nodes A and B are on the same 10 Mbps Ethernet bus, and the propagation delay between the two nodes is 225 bi
14、t times. Suppose node A begins transmitting a frame and, before it finishes, node B begins transmitting a frame. Can A finish transmitting before it detects that B has transmitted? Why or why not? If the answer is yes, then A incorrectly believes that its frame was successfully transmitted without a
15、 collision. Hint: Suppose at time t = 0 bit times, A begins transmitting a frame. In the worst case, A transmits a minimum-sized frame of 512 + 64 bit times. So A would finish transmitting the frame at t = 512 + 64 bit times. Thus, the answer is no, if Bs signal reaches A before bit time t = 512 + 6
16、4 bits. In the worst case, when does Bs signal reach A?答:假設(shè)在 t = 0 時刻 A開始傳輸??紤]到以太網(wǎng)的最短幀長為576bit,最早在 t = 576 時刻, A 可以完成傳輸。在最壞的情況下,B 在 t = 224 時刻開始傳輸, 此時它還不知道A正在傳輸。在t = 224 + 225 = 449 時刻,B 的第一個比特到達(dá)A,因?yàn)?49576,A將在完成分組傳輸之前中斷。因此A不能在他察覺到B的傳輸之前完成傳輸。10. (P19)Suppose two nodes, A and B, are attached to opposi
17、te ends of a 900 m cable, and that they each have one frame of 1,000 bits (including all headers and preambles) to send to each other. Both nodes attempt to transmit at time t = 0. Suppose there are four repeaters between A and B, each inserting a 20-bit delay. Assume the transmission rate is 10Mbps
18、, and CSMA/CD with backoff intervals of multiples of 512 bits is used. After the first collision, A draws K = 0 and B draws K = 1 in the exponential backoff protocol. Ignore the jam signal and the 96-bit time delay.a. What is the one-way propagation delay (including repeater delays) between A and B
19、in seconds? Assume that the signal propagation speed is m/sec.b. At what time (in seconds) is As packet completely delivered at B?c. Now suppose that only A has a packet to send and that the repeaters are replaced with switches. Suppose that each switch has a 20-bit processing delay in addition to a store-and-forwar
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 餐飲安全培訓(xùn)內(nèi)容摘要課件
- 急診護(hù)理金點(diǎn)子匯報
- 中醫(yī)脈相辯男女
- 基于深度學(xué)習(xí)的管道泵智能控制與優(yōu)化研究
- 《紅樓夢》林黛玉人物性格深度分析
- 建筑業(yè)職業(yè)健康安全管理實(shí)務(wù)指南
- 金融數(shù)據(jù)安全風(fēng)險預(yù)警-第1篇
- 小學(xué)科學(xué)自然探究教學(xué)案例匯編
- 我國的個人收入分配+高中政治統(tǒng)編版必修二
- 青年教師培養(yǎng)計劃及效果評估報告
- 6.1.3化學(xué)反應(yīng)速率與反應(yīng)限度(第3課時 化學(xué)反應(yīng)的限度) 課件 高中化學(xué)新蘇教版必修第二冊(2022-2023學(xué)年)
- 2026屆北京市清華大學(xué)附中數(shù)學(xué)高二上期末調(diào)研模擬試題含解析
- 2026年馬年德育實(shí)踐作業(yè)(圖文版)
- 醫(yī)院實(shí)習(xí)生安全培訓(xùn)課課件
- 四川省成都市武侯區(qū)西川中學(xué)2024-2025學(xué)年八上期末數(shù)學(xué)試卷(解析版)
- 2026年《必背60題》抖音本地生活BD經(jīng)理高頻面試題包含詳細(xì)解答
- 土方回填工程質(zhì)量控制施工方案
- 2025年湖南城建職業(yè)技術(shù)學(xué)院單招職業(yè)適應(yīng)性測試題庫附答案
- 2026貴州大數(shù)據(jù)產(chǎn)業(yè)集團(tuán)有限公司第一次社會招聘考試題庫新版
- 珠海高新區(qū)2025年下半年公開招聘公辦中學(xué)事業(yè)編制教師備考題庫及答案詳解一套
- 2024人教版七年級數(shù)學(xué)上冊全冊教案
評論
0/150
提交評論