




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、homework assignment 3 solution problem 11 in the textbook in a nak only protocol, the loss of packet x is only detected by the receiver when packet x+1 is received. that is, the receivers receives x-1 and then x+1, only whenx+1 is received does the receiver realize that x was missed. if there is a l
2、ong delay between the transmission of x and the transmission of x+1, then it will be a long time until x can be recovered, under a nak only protocol. on the other hand, if data is being sent often, then recovery under a nak-only scheme could happen quickly. moreover, if errors are infrequent, then n
3、aks are only occasionally sent (when needed), and ack are never sent a significant reduction in feedback in the nak-only case over the ack-only case. problem 14 in the textbook in our solution, the sender will wait until it receives an ack for a pair of messages (seqnum and seqnum+1) before moving o
4、n to the next pair of messages. data packets have a data field and carry a two-bit sequence number. that is, the valid sequence numbers are 0, 1, 2, and 3. (note: you should think about why a 1-bit sequence number space of 0, 1 only would not work in the solution below.) ack messages carry the seque
5、nce number of the data packet they are acknowledging. the fsm for the sender and receiver are shown in figure 2. note that the sender state records whether (i) no acks have been received for the current pair, (ii) an ack for seqnum (only) has been received, or an ack for seqnum+1 (only) has been rec
6、eived. in this figure, we assume that the seqnum is initially 0, and that the sender has sent the first two data messages (to get things going). a timeline trace for the sender and receiver recovering from a lost packet is shown below: figure 2: sender and receiver for problem 3.11 sender receiver m
7、ake pair (0,1) send packet 0 packet 0 drops send packet 1 receive packet 1 buffer packet 1 send ack 1 receive ack 1 (timeout) resend packet 0 receive packet 0 deliver pair (0,1) send ack 0 receive ack 0problem 16 in the textbook a) here we have a window size of n=3. suppose the receiver has received
8、 packet k-1, and has acked that and all other preceeding packets. if all of these acks have been received by sender, then senders window is k, k+n-1. suppose next that none of the acks have been received at the sender. in this second case, the senders window contains k-1 and the n packets up to and
9、including k-1. the senders window is thus k-n,k-1. by these arguments, the senders window is of size 3 and begins somewhere in the range k-n,k. b) if the receiver is waiting for packet k, then it has received (and acked) packet k-1 and the n-1 packets before that. if none of those n acks have been y
10、et received by the sender, then ack messages with values of k-n,k-1 may still be propagating back. because the sender has sent packets k-n, k-1, it must be the case that the sender has already received an ack for k-n-1. once the receiver has sent an ack for k-n-1 it will never send an ack that is le
11、ss that k-n-1. thus the range of in-flight ack values can range from k-n-1 to k-1. figure 3. sender and receiver for problem 3.12 problem 18 in the textbook in order to avoid the scenario of figure 3.26, we want to avoid having the leading edge of the receivers window (i.e., the one with the “highes
12、t ” sequence number) wrap around in the sequence number space and overlap with the trailing edge (the one with the lowest sequence number in the senders window). that is, the sequence number space must be large enough to fit the entire receiver window and the entire sender window without this overla
13、p condition. so - we need to determine how large a range of sequence numbers can be covered at any given time by the receiver and sender windows (see problem 13). suppose that the lowest-sequence number that the receiver is waiting for is packet m. in this case, its window is m,m+w-1 and it has rece
14、ived (and acked) packet m-1 and the w-1 packets before that, where w is the size of the window. if none of those w acks have been yet received by the sender, then ack messages with values of m-w,m-1 may still be propagating back. if no acks with these ack numbers have been received by the sender, th
15、en the senders window would be m-w,m-1. thus, the lower edge of the senders window is m-w, and the leading edge of the receivers window is m+w-1. in order for the leading edge of the receivers window to not overlap with the trailing edge of the senders window, the sequence number space must thus be
16、big enough to accommodate 2w sequence numbers. that is, the sequence number space must be at least twice as large as the window size, wk2problem 19 in the textbook a) true. suppose the sender has a window size of 3 and sends packets 1, 2, 3 at 0t. at 1t)01(ttthe receiver acks 1, 2, 3. at 2t)12(ttthe
17、 sender times out and resends 1, 2, 3. at 3tthe receiver receives the duplicates and re-acknowledges 1, 2, 3. at 4tthe sender receives the acks that the receiver sent at 1 tand advances its window to 4, 5, 6. at 5tthe sender receives the acks 1, 2, 3 the receiver sent at 2t. these acks are outside i
18、ts window. b) true. by essentially the same scenario as in (a). c) true. d) true. note that with a window size of 1, sr, gbn, and the alternating bit protocol are functionally equivalent. the window size of 1 precludes the possibility of out-of-order packets (within the window). a cumulative ack is just an ordinary ack in this situation, since it can only refer to the single packet within the window. problem 21 in the textbook problem 28 in the textbook if tcp were a stop-and-wait protocol, then the doubling of the time ou
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 洛陽(yáng)市企業(yè)如何利用技術(shù)提升市場(chǎng)競(jìng)爭(zhēng)力研究報(bào)告
- 2025年公務(wù)員考試-執(zhí)法資格-稅務(wù)執(zhí)法資格考試歷年真題??键c(diǎn)試題帶答案
- 2025至2030國(guó)內(nèi)身高體重測(cè)試儀行業(yè)市場(chǎng)深度研究與戰(zhàn)略咨詢分析報(bào)告
- 開(kāi)題報(bào)告計(jì)算機(jī)學(xué)院
- 2025至2030功率逆變器行業(yè)市場(chǎng)深度研究與戰(zhàn)略咨詢分析報(bào)告
- 涉密人員崗前培訓(xùn)
- 地稅廉政培訓(xùn)
- 2025陜西省煙草專賣局(公司)生產(chǎn)操作類崗位招聘(28人)筆試參考題庫(kù)附帶答案詳解版
- 2025江西南昌高新招商集團(tuán)招聘52人筆試參考題庫(kù)附帶答案詳解版
- 泌尿外科特色健康教育體系構(gòu)建
- 2025-2030全球及中國(guó)乙酰檸檬酸三丁酯(ATBC)行業(yè)市場(chǎng)現(xiàn)狀供需分析及市場(chǎng)深度研究發(fā)展前景及規(guī)劃可行性分析研究報(bào)告
- 2025濟(jì)寧市泗水縣泗河街道社區(qū)工作者考試真題
- 初二化學(xué)全套試題及答案
- 融資代建合同模板5篇
- 甲方工期回復(fù)函
- 直播肖像權(quán)使用合同協(xié)議
- 2024年山東滕州市屬國(guó)有企業(yè)第三批次招聘120人筆試參考題庫(kù)附帶答案詳解
- 中科曙光2025測(cè)評(píng)
- 貨場(chǎng)租賃協(xié)議
- 兒科換錯(cuò)藥護(hù)理不良事件
- 英語(yǔ)四六級(jí)資料 全國(guó)大學(xué)英語(yǔ)四六級(jí)全部詞匯
評(píng)論
0/150
提交評(píng)論