Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difference between MSS and MTU

Status
Not open for further replies.

hack12

IS-IT--Management
Dec 26, 2003
24
US
Hi, what is the difference between the MSS and the MTU. I for some reason think and always thought it was the same but reading a few of the posts on this forum just wanted to confirm. Thanks
 
MSS and MTU almost the same, but not quite. MSS is the Maximum Segment Size which is the largest segment (layer 4, yet not including the layer 4 header) that can fit on the current physical medium. MTU is the Maximum Transmission Unit which is the largest packet (layer 3, including the layer 3 header) that can be transmitted.

The MSS is used during the 3-way handshake of TCP to let each side know that maximum segment size they can transmitt in a single frame. It's purpose is to minimize IP fragmentation. However, that is only each side. Who only knows what is in the middle. That is why each entity in between must know what its MTU size is in case fragmentation is required somewhere along the path.

For example, if you were on an ethernet segment:

[tt]
Maximum frame size: 1518
less the DLC header - 18 *
equals MTU: 1500
less IP header - 20 **(default)
less TCP header - 20 ***(default)
equals MSS: 1460[/tt]

* DLC contains 6 bytes for destination MAC address, 6 for source, 2 for Ethertype, and 4 for CRC
** IP header is 20 bytes by default, but can be as large as 60 bytes.
*** TCP header is 20 bytes by default, but can be as large as 60 bytes. It is much more common for the TCP header to have options and therefore be larger than the default than the IP header.

Hope that helps,
Betty

Life is better in BettyLand!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top