cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2269
Views
15
Helpful
5
Replies

TCP Windows size | Max Segment Size

Ibrahim Jamil
Level 6
Level 6

Hi

would you pls help me to understand the below  in red?

JPREF.JPG

Thanks

Ibrahim

5 Replies 5

Raju Sekharan
Cisco Employee
Cisco Employee

Hi Ibrahim

TCP Widnow size is the amount of unacknowledged data that can be in transit at any given time and , and is communicated via a 16-bit field in the TCP header.

The maximum segment size (MSS) is a parameter of the TCP protocol that specifies the largest amount of data, specified in octets, that a computer or communications device can receive in a single TCP segment, and therefore in a single IP datagram. It does not count the TCP header or the IP header

Both these values will be communicated to TCP neighbor during negotiation and it will use that for communication

Raju

Hi Ibrahim,

Let me also explain with the values you have it in your config. The numbers here are in bytes

MSS= 8960.

Tcp Window = 56K=56000

If the other side accepts the TCP negotiation session with these values and if there is a requirement for a large  data transfer, the other side will do like this

Each packet size will be 9000 ( 8960 + 20 Byts IP header + 20 bytes TCP header)

At a time it will send 6 packets of 9000+ 1 packet of 2000 ( 9000X6+ 2000 = 56000)

Then it wiill wait for the acknowledment. once it receives ACK, it can send again 56k Bytes as explained above

Thanks

Raju

thanks rajs

Joseph W. Doherty
Hall of Fame
Hall of Fame

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

To add to what the other posters have provided.  Normally, to avoid IP fragmentation, you don't want MSS larger than what a MTU L3 packet can contain (discounting IP and TCP options - MTU - 40).

Ideally you configure receive window in a multiple even number of MSS.

Newer TCP implementations support a scale option for receive window, so it can be (much) larger than what a 16 bit field supports.  (This is needed to support larger BDPs.)

thanks joseph

Review Cisco Networking products for a $25 gift card