Wireshark TCP – How to Calculate MSS When Window Scaling is Set

tcpwireshark

I have a TCP packet as displayed by Wireshark:

enter image description here

The MSS is reported at 1430 bytes, and the Window scale suggests that this should be multiplied by 128, giving 183040 bytes.

Question: is this the correct way to calculate the MSS?

Best Answer

No, the correct way to calculate the MSS is to look at the value in the MSS option. As per RFC 1323, the Window Scale option scales the TCP window size, not the maximum segment size. The maximum segment size should be set appropriately for the network path between the two endpoints, so that no segment has to be fragmented; there's no requirement that the MSS be big enough that a single segment can always fill the entire receive window, so there'd only be a need for scaling the MSS if you have a network path with an MTU bigger than 65535.