[ee122] question about winsize and ack in tcp
Lisa Fowler
fowler at eecs.berkeley.edu
Wed Nov 21 16:40:37 PST 2007
On Nov 21, 2007 4:36 PM, Davide Cerri <davide.cerri at gmail.com> wrote:
> Hello,
> 1 - if i advertise a window size of zero will the other side of the
> connection stop to send packages?
It depends on your design and implementation....
> 2 - if i have a window size that can fit 5 packages and i receive
> packet 1 2 4 5, when i send the second duplicate ack, do i advertise a
> windowsize of 0 or of 1 ?
If your client has a buffer size of 5, it should advertise a window
size of 1 because that's what it has available at that moment.
> 3 - is it correct to always try to send the min(CWND, windowsize)?
? In TCP, that's what happens, so it's correct in TCP.
-Lisa
More information about the ee122
mailing list