Lectures notes for 2010 - KTH

Lectures notes for 2010 - KTH Lectures notes for 2010 - KTH

20.01.2014 Views

Sliding window Flow control • receiver: offered window - acknowledges data sent and what it is prepared to receive • thus the sender can send an ACK, but with a offered window of 0 • later the sender sends a window update with a non-zero offered window size • the receiver can increase or decrease this window size as it wants • sender: usable window - how much data it is prepared to send immediately receiver’s offered window Usable Window segment number 1 2 3 4 5 6 6 7 8 9 10 11 12 13 14 sent and acknowledged sent but unacknowledged can’t send until can send window advances this much more Maguire TCP header continued 5: 14 of 77 maguire@kth.se 2010.03.21 Internetworking/Internetteknik

Window size Increasing window size can improve performance - more recent systems have increased buffer size ranging from 4096 ... 16,384 bytes. The later produces ~40% increase in file transfer performance on an ethernet. Socket API allows user to change the size of the send and receive buffers. Maguire TCP header continued 5: 15 of 77 maguire@kth.se 2010.03.21 Internetworking/Internetteknik

Sliding window Flow control<br />

• receiver: offered window - acknowledges data sent and what it is<br />

prepared to receive<br />

• thus the sender can send an ACK, but with a offered window of 0<br />

• later the sender sends a window update with a non-zero offered window size<br />

• the receiver can increase or decrease this window size as it wants<br />

• sender: usable window - how much data it is prepared to send<br />

immediately<br />

receiver’s<br />

offered window<br />

Usable Window<br />

segment<br />

number<br />

1 2 3 4 5 6 6 7 8 9 10 11 12 13 14<br />

sent and<br />

acknowledged<br />

sent but<br />

unacknowledged<br />

can’t send until<br />

can send window advances<br />

this much more<br />

Maguire TCP header continued 5: 14 of 77<br />

maguire@kth.se <strong>2010</strong>.03.21 Internetworking/Internetteknik

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!