in Computer Networks retagged by
65 views
0 votes
0 votes
Does the window size parameter in TCP header means segment size?
in Computer Networks retagged by
65 views

1 comment

Tcp segment size means only the ‘data part’ or ‘the data part plus the header size’.
0
0

1 Answer

1 vote
1 vote

The TCP receive window size is the amount of receive data (in bytes) that can be buffered during a connection. The sending host can send only that amount of data before it must wait for an acknowledgment and window update from the receiving host. The Windows TCP/IP stack is designed to self-tune itself in most environments and uses larger default window sizes than earlier versions.

Instead of using a hard-coded default receive window size, TCP adjusts to even increments of the maximum segment size (MSS). The MSS is negotiated during connection setup. Adjusting the receive window to even increments of the MSS increases the percentage of full-sized TCP segments used during bulk data transmissions.

The received window size is determined in the following manner:

  1. The first connection request sent to a remote host advertises a receive window size of 16K (16,384 bytes).
  2. When the connection is established, the receive window size is rounded up to an even increment of the MSS.
  3. The window size is adjusted to four times the MSS, to a maximum size of 64 K, unless the window scaling option is used.