★109學年開始,陳裕賢已經擺明要跟學生懟著幹了。期中考古題除了必考的FSM和Python程式碼外完全不一樣,有人在導生聚反應考太難他也只是說想要換種(跟考古題不一樣)的方式考。甚至助教改鬆,他還重改扣分。
考試內容均為講義上的題目,每個圖都要記得看,上課說會考的一定會考,上課輕輕帶過的也會有可能考。講義一定要讀熟。
109-2期中考題與作業 完全沒有任何關聯 ,請以PPT講義上的內容為準備方向。
ANS: bits
Given there is N active peers and m routers
There will be N nodes and edges
A. Plot the total delay as a function of .
B. Provide a formula for the total delay, that is, the queuing delay plus the transmission delay. (year 100)
total delay = transmission delay + queing delay =
Let x = L/R. Use the result from B you can get:
total delay =
There are F/S packets.
time for last packet to be received 2 routers:
Thus delay of the whole file is:
d/ds*delay = 0
S =
minimum distribution time for client-server distribution:
max{}
minimum distribution time for P2P distribution:
max{}
Mbits
Mbps
Mbps
Service client
U \ N | 10 | 100 | 1000 |
---|---|---|---|
100 | 102400 | 1024000 | 10240000 |
500 | 102400 | 1024000 | 10240000 |
1000 | 102400 | 1024000 | 10240000 |
P2P APPROXIMATE
U \ N | 10 | 100 | 1000 |
---|---|---|---|
100 | 93290 | 518061 | 951175 |
500 | 68804 | 174066 | 205506 |
1000 | 51808 | 95120 | 103798 |
chapter 2
Draw finite state machines(FSMs) of protocol rdt2.0
Draw finite state machines(FSMs) for (a)sender (b)receiver sides of protocol rdt2.1 (handling duplicates)
Draw FSMs for (a)sender (b)receiver sides of protocol rdt2.2 (a NAK-free protocal)
Draw FSMs for (a)sender (b)receiver sides of protocol rdt3.0 (underlying can also lose packets)
a. With the Selective Repeat (SR) protocol, it is possible for the sender to
receive an ACK for a packet that falls outside of its current window.
b. With Go-Back-N (GBN), it is possible for the sender to receive an ACK for a
packet that falls outside of its current window
c.The alternating-bit protocol is the same as the SR protocol with a sender and
receiver window size of 1
d..he alternating-bit protocol is the same as the SR protocol with a sender and
receiver window size of 1
True.
Suppose the sender has a window size of 3 and sends packets 1, 2, 3 at 𝑡0. At 𝑡1 (𝑡1 > 𝑡0) the receiver ACKs 1, 2, 3. At 𝑡2 (𝑡2 > 𝑡1) the sender times out and resends 1, 2, 3. At 𝑡3 the receiver receives the duplicates and re-acknowledges 1, 2, 3. At 𝑡4 the sender receives the ACKs that the receiver sent at 𝑡1 and advances its window to 4, 5, 6. At 𝑡5 the sender receives the ACKs 1, 2, 3 the receiver sent at 𝑡2. These ACKs are outside its window.
By essentially the same scenario as in (a).
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.
he explanation is the same as ©.
Computer Network
CSnote