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

how to find the maximum segment size

0

I have this wireshark file with a list of traffics. I want to find the maximum segment size of a TCP segment but I can't find it. I saw online that this is normally found when you expand the TCP line and under the "Options" line, but I can't seem to find the Options line, all it has under TCP is "Flags", "Checksum", and "SEQ/ACK Analysis".

asked 06 May '12, 23:29

JenniferJ88's gravatar image

JenniferJ88
1111
accept rate: 0%


One Answer:

1

You can find the MSS option only in the SYN and SYN/ACK packets. They are set once and will be used for the whole session.

answered 06 May '12, 23:54

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245
accept rate: 20%

Ya it's an SYN packet but there's still no MSS option...

(07 May '12, 00:00) JenniferJ88

it only has the window size, but I guess that's not the MSS...

(07 May '12, 00:06) JenniferJ88

Then a MSS is not advertised, which means both sides will base the MSS on the MTU of the link they use for sending the traffic.

Assuming both systems are connected by ethernet, they will use 1500 minus the IP header length minus the TCP header length. So when no additional IP and TCP options are used, they will use an MSS of 1500 - 20 - 20 = 1460.

(07 May '12, 00:06) SYN-bit ♦♦

So is there a way to find the MTU in wireshark traces?

(07 May '12, 00:23) JenniferJ88

Only by deducting it from the maximum packet length found in a TCP session. The actual MTU value is not sent.

(07 May '12, 00:27) SYN-bit ♦♦

@ SYN-Bit: You gotta be careful about that -> I have seen systems using a fallback MSS os 536 (576 min. MTU -20 -20) when no MSS in found in TCP options during handshake

(07 May '12, 01:33) Landi
showing 5 of 6 show 1 more comments