Skip to main content

Regarding MSS and MTU

More
15 years 7 months ago #29958 by cscrtr
Regarding MSS and MTU was created by cscrtr
Hi all dear friends,

As usual this is always greatful website for me. Recently here I found article on TCP ( I know I am very late to read this article ).

This Article is very much in depth.. I don't know who wrote this article..btw whoever done it... really really done wonderful job. I salute him ( or entire firewall team ) for this fantastic article.

I read that article in depth, everything is properly ( acutally in depth ) explained.. But I didnot understand following thing which is really made me more confused...


***TCP Analysis - Section 6: TCP Options****
_________________________________________


It would also benefit us to recognise the correct terminology that corresponds to each level of the OSI Model: The TCP Header and Data is called a Segment (Layer 4), while the IP Header and the Segment is called an IP Datagram (Layer 3).

---skipped ---


TCP usually computes the Maximum Segment Size (MSS) that results in IP Datagrams that match the network MTU. In practice, this means the MSS will have such a value that if we add the IP Header as well, the IP Datagram (IP Header+TCP Header+DATA) would be equal to the network MTU.

If the MSS option is omitted by one or both ends of the connection, then the value of 536 bytes will be used. The MSS value of 536 bytes is defined by RFC 1122 and is calculated by taking the default value of an IP Datagram, 576 bytes, minus the standard length of the IP and TCP Header (40 bytes), which gives us 536 bytes.

*******************


My question is that If you said like

MSS = TCP header + Data = Segment

MTU = IP header + TCP header + Data = IP Datagram

Then on what basis and how can you say that

The MSS value of 536 bytes is defined by RFC 1122 and is calculated by taking the default value of an IP Datagram, 576 bytes, minus the standard length of the IP and TCP Header (40 bytes), which gives us 536 bytes.

whereas Ip datagram = IP header + TCP header + Data

if you minus both the IP and TCP header then surely you will get 536 bytes.. but then how come it will be IP datagram as you already removed IP header from it.

Please advice where am I wrong.

I really applogize for asking silly question.

Awaiting your kind reply.

Thanks.

cscrtr
More
15 years 7 months ago #29963 by S0lo
Replied by S0lo on topic Re: Regarding MSS and MTU
I think you raised a good point. MSS = MTU - 40, thats for sure. Then MSS will certainly not include the TCP header, only the data. Check here:

technet.microsoft.com/en-us/library/cc940069.aspx
msdn.microsoft.com/en-us/library/aa916746.aspx
www.windowsecurity.com/whitepapers/MS_Wi...ntation_Details.html

Some diagrams shown above prove that MSS does not include the TCP header.

So I think that there might be a slight error in our TCP options section. Specially that headers/format diagram. I will inform Chris about that to let us know if it needs correction or correct me if I'm wrong.

Studying CCNP...

Ammar Muqaddas
Forum Moderator
www.firewall.cx
More
15 years 7 months ago #29965 by Chris
Replied by Chris on topic Re: Regarding MSS and MTU
cscrtr,

You are correct. MSS actually refers to the data segment size and does not include the TCP Header!

The article has been corrected and thank you letting us know !

If you happen to find any other errors, please feel free to notify us.

Cheers mate,

Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx
More
15 years 7 months ago #29971 by cscrtr
Replied by cscrtr on topic Re: Regarding MSS and MTU

cscrtr,

You are correct. MSS actually refers to the data segment size and does not include the TCP Header!

The article has been corrected and thank you letting us know !

If you happen to find any other errors, please feel free to notify us.

Cheers mate,


Hi Chris,

Thanks for correcting the diagram.

But still in discription ( very first line after the diagram ) it is mentioned same thing. i.e.

********

You can see the Maximum Segment Size consists of the TCP Header and Data, while the Maximum Transfer Unit includes the MSS plus the IP Header.

********

Thanks again.

cscrtr
Time to create page: 0.123 seconds