Sliding Window: Handling P Acket Loss
Sliding Window: Handling P Acket Loss
1 2 3 4 5 6
Sndr
a1 a3
x
6.02 Fall 2012
Rcvr
Lecture #22 p1 p3
RTT Ks
x AC
620
RTO
Rcvr
p1 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p2 600
Rxmit ACKs for rxmitted
Data packet 2 is lost. The receiver must save packets all later packets (most probably)
packets until packet 2 arrives, to deliver them to the application in 580
proper order. Note that with our definition of the window, there’s
no limit to the number of packets that might arrive out of order.
560
Q: Can the receiver discard these later packets (3, 4, …, 12?) 800 820 840 860 880 900
Time (ms)
6.02 Fall 2012 Lecture 22, Slide #3 6.02 Fall 2012 Lecture 22, Slide #5
1
12/3/12
6.02 Fall 2012 Lecture 22, Slide #6 6.02 Fall 2012 Lecture 22, Slide #7
How to Set the Window Size to Maximize Throughput? Throughput of Sliding Window Protocol
Apply Little’s Law • If there are no lost packets, protocol delivers W packets every
RTT seconds, so throughput is W/RTT
Host A Host B • Goal: to achieve high utilization, select W so that the
• If we can get Idle to 0, will achieve goal
bottleneck link is never idle due to lack of packets
• Without packet losses:
• W = #packets in window
– Throughput = W/RTTmin if W ≤ B·RTTmin,
• B = rate of slowest (bottleneck) link in
Time
= B otherwise
packets/second
– If W > B·RTTmin, then W = B·RTTmin + Q, where Q is the queue
• RTTmin= Min RTT along path, in the
occupancy
Idle absence of any queueing (in seconds)
• With packet losses:
– Pick W > B·RTTmin to ensure bottleneck link is busy even if there
• If W = B·RTTmin, then path is fully
are packet losses
utilized (if no losses occur)
– Expected # of transmissions, T, for successful delivery of pkt and
– B·RTTmin is the bandwidth-delay
ACK satisfies: T = (1-L) ·1 + L·(1 + T), so T = 1/(1L),
product
where L = Prob(either packet OR its ACK is lost)
– A key concept in the performance of
– Therefore, throughput = (1L)*B
windowed transport protocols
• If W >> B·RTTmin, then delays too large, timeout too big, and
other connections may suffer
6.02 Fall 2012 Lecture 22, Slide #8 6.02 Fall 2012 Lecture 22, Slide #9
2
12/3/12
6.02 Fall 2012 Lecture 22, Slide #10 6.02 Fall 2012 Lecture 22, Slide #11
3
12/3/12
Delay (milliseconds)
http://nms.csail.mit.edu/papers/index.php?detail=208
15 Time (s)
© Association for Computing Machinery. All rights reserved. This content is excluded from
our Creative Commons license. For more information, see http://ocw.mit.edu/fairuse. 6.02 Fall 2012 Lecture 22, Slide #15
6.02 Fall 2012 Lecture 22, Slide #14
4
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.