This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Zero window size .

0

what are the cases in which a host supposed to send Zero window size ?

asked 24 Jul '13, 11:35

ManojMaity's gravatar image

ManojMaity
1111
accept rate: 0%


2 Answers:

3

Define "supposed to" :-)

Zero Window is used in two situations:

  1. In a TCP reset packet. No problem at all
  2. When the receiver can't take more data. This indicates a performance problem of the receiving hardware

answered 24 Jul '13, 11:58

Jasper's gravatar image

Jasper ♦♦
23.8k551284
accept rate: 18%

Jasper, In what circumstances tcp reset packet will have a zero window size.My doubt is will zero window size on receiver triggers reset and causes connection termination?

Thanks

(24 Jul '13, 12:10) krishnayeddula
1

When a receiver closes a port, the TCP stack will send a Reset packet unless FIN has been used earlier. In the Reset packet, the window size is always 0.

A zero window value will not cause the Reset, it is the Reset that has a zero window value.

When a receiver sets its window to zero and does not go back to a window greater than zero (even after the sender tested it with Zero Window Probes) the sender will at some point give up and send a Reset. Just because it is never allowed to continue to send, and it will reach a time out depending on the OS/application.

(24 Jul '13, 12:23) Jasper ♦♦

Thanks that cleared.

(24 Jul '13, 12:40) krishnayeddula

@ Jasper 3. When an application is telling the stack to just accept xxx bytes of data and wait for further user input e.g. "save as" dialogs in browsers used to to that back in IE9 times

(24 Jul '13, 15:28) Landi

@Landi: I know. It's still sort of a performance "problem", because theoretically it could just accept the data and buffer it somewhere ;-)

(24 Jul '13, 15:34) Jasper ♦♦

0

One cause i can think of:

If the receive buffer of host reaches it's maximum point then the host will notify the sender with zero window size so that sender won't send any data until further notification of window update from receiver.

answered 24 Jul '13, 11:37

krishnayeddula's gravatar image

krishnayeddula
629354148
accept rate: 6%

edited 24 Jul '13, 11:38