What happens if the IP MTU is smaller than the MSS?












3















Let's say i configure the MSS > IP MTU. Even if it doesn't make sense, would this be possible?



Assuming i then try to send a file of the size of MSS or bigger, the network layer will receive the data (plus TCP headers) from the transport layer and append it's own headers. The MTU of the datagram will now be greater than the configured MTU. Will the local network layer fragment the datagram or discard it (sending some kind of error to the upper layer)?










share|improve this question









New contributor




Chinchillo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • If i remember correctly, then the frames will be fragmented, but i'm not 100% sure.

    – Cown
    8 hours ago
















3















Let's say i configure the MSS > IP MTU. Even if it doesn't make sense, would this be possible?



Assuming i then try to send a file of the size of MSS or bigger, the network layer will receive the data (plus TCP headers) from the transport layer and append it's own headers. The MTU of the datagram will now be greater than the configured MTU. Will the local network layer fragment the datagram or discard it (sending some kind of error to the upper layer)?










share|improve this question









New contributor




Chinchillo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • If i remember correctly, then the frames will be fragmented, but i'm not 100% sure.

    – Cown
    8 hours ago














3












3








3








Let's say i configure the MSS > IP MTU. Even if it doesn't make sense, would this be possible?



Assuming i then try to send a file of the size of MSS or bigger, the network layer will receive the data (plus TCP headers) from the transport layer and append it's own headers. The MTU of the datagram will now be greater than the configured MTU. Will the local network layer fragment the datagram or discard it (sending some kind of error to the upper layer)?










share|improve this question









New contributor




Chinchillo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












Let's say i configure the MSS > IP MTU. Even if it doesn't make sense, would this be possible?



Assuming i then try to send a file of the size of MSS or bigger, the network layer will receive the data (plus TCP headers) from the transport layer and append it's own headers. The MTU of the datagram will now be greater than the configured MTU. Will the local network layer fragment the datagram or discard it (sending some kind of error to the upper layer)?







ip mtu data






share|improve this question









New contributor




Chinchillo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Chinchillo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 9 hours ago









Cown

6,36531030




6,36531030






New contributor




Chinchillo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 9 hours ago









Chinchillo Chinchillo

183




183




New contributor




Chinchillo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Chinchillo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Chinchillo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • If i remember correctly, then the frames will be fragmented, but i'm not 100% sure.

    – Cown
    8 hours ago



















  • If i remember correctly, then the frames will be fragmented, but i'm not 100% sure.

    – Cown
    8 hours ago

















If i remember correctly, then the frames will be fragmented, but i'm not 100% sure.

– Cown
8 hours ago





If i remember correctly, then the frames will be fragmented, but i'm not 100% sure.

– Cown
8 hours ago










1 Answer
1






active

oldest

votes


















2














It depends which MTU you are actually talking about:



If you are talking about the layer-2 MTU, the IP packets are fragmented:



Let's say you want to send an UDP packet with 5000 bytes length over Ethernet. In this case one IP packet is generated that is 5068 bytes long. This packet is then split into fragments of 1500 bytes length. The fragments are transmitted.



If you are talking about the maximum IP packet length:



If one of the hosts involved does not support IP packets of the given length, the data transfer will fail. If the destination host does not support IP packets of 5068 bytes length (in the example), the packet cannot be received.



I read about an ISP using DS-Lite which does not support DS-Lite tunneling (IPv4-in-IPv6) if the resulting packet is longer than 1500 bytes. As a result a TCP/IPv4 packet with more than 1460 bytes length cannot be routed.



I think that most operating systems will silently limit the MSS to the maximum size of IP packets supported on the own host. However, many TCP/IP implementations do not send an MSS option in the first packet so it is possible that a TCP packet is longer than the maximum IP packet size allowed by the receiver. (Exactly this seem to be the case with the ISP mentioned above.)






share|improve this answer
























  • Your "layer-2 MTU" is the maximum L2 PDU. "MTU" is an IETF term coined for IP, so it's generally L3.

    – Zac67
    5 hours ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "496"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Chinchillo is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f57569%2fwhat-happens-if-the-ip-mtu-is-smaller-than-the-mss%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














It depends which MTU you are actually talking about:



If you are talking about the layer-2 MTU, the IP packets are fragmented:



Let's say you want to send an UDP packet with 5000 bytes length over Ethernet. In this case one IP packet is generated that is 5068 bytes long. This packet is then split into fragments of 1500 bytes length. The fragments are transmitted.



If you are talking about the maximum IP packet length:



If one of the hosts involved does not support IP packets of the given length, the data transfer will fail. If the destination host does not support IP packets of 5068 bytes length (in the example), the packet cannot be received.



I read about an ISP using DS-Lite which does not support DS-Lite tunneling (IPv4-in-IPv6) if the resulting packet is longer than 1500 bytes. As a result a TCP/IPv4 packet with more than 1460 bytes length cannot be routed.



I think that most operating systems will silently limit the MSS to the maximum size of IP packets supported on the own host. However, many TCP/IP implementations do not send an MSS option in the first packet so it is possible that a TCP packet is longer than the maximum IP packet size allowed by the receiver. (Exactly this seem to be the case with the ISP mentioned above.)






share|improve this answer
























  • Your "layer-2 MTU" is the maximum L2 PDU. "MTU" is an IETF term coined for IP, so it's generally L3.

    – Zac67
    5 hours ago
















2














It depends which MTU you are actually talking about:



If you are talking about the layer-2 MTU, the IP packets are fragmented:



Let's say you want to send an UDP packet with 5000 bytes length over Ethernet. In this case one IP packet is generated that is 5068 bytes long. This packet is then split into fragments of 1500 bytes length. The fragments are transmitted.



If you are talking about the maximum IP packet length:



If one of the hosts involved does not support IP packets of the given length, the data transfer will fail. If the destination host does not support IP packets of 5068 bytes length (in the example), the packet cannot be received.



I read about an ISP using DS-Lite which does not support DS-Lite tunneling (IPv4-in-IPv6) if the resulting packet is longer than 1500 bytes. As a result a TCP/IPv4 packet with more than 1460 bytes length cannot be routed.



I think that most operating systems will silently limit the MSS to the maximum size of IP packets supported on the own host. However, many TCP/IP implementations do not send an MSS option in the first packet so it is possible that a TCP packet is longer than the maximum IP packet size allowed by the receiver. (Exactly this seem to be the case with the ISP mentioned above.)






share|improve this answer
























  • Your "layer-2 MTU" is the maximum L2 PDU. "MTU" is an IETF term coined for IP, so it's generally L3.

    – Zac67
    5 hours ago














2












2








2







It depends which MTU you are actually talking about:



If you are talking about the layer-2 MTU, the IP packets are fragmented:



Let's say you want to send an UDP packet with 5000 bytes length over Ethernet. In this case one IP packet is generated that is 5068 bytes long. This packet is then split into fragments of 1500 bytes length. The fragments are transmitted.



If you are talking about the maximum IP packet length:



If one of the hosts involved does not support IP packets of the given length, the data transfer will fail. If the destination host does not support IP packets of 5068 bytes length (in the example), the packet cannot be received.



I read about an ISP using DS-Lite which does not support DS-Lite tunneling (IPv4-in-IPv6) if the resulting packet is longer than 1500 bytes. As a result a TCP/IPv4 packet with more than 1460 bytes length cannot be routed.



I think that most operating systems will silently limit the MSS to the maximum size of IP packets supported on the own host. However, many TCP/IP implementations do not send an MSS option in the first packet so it is possible that a TCP packet is longer than the maximum IP packet size allowed by the receiver. (Exactly this seem to be the case with the ISP mentioned above.)






share|improve this answer













It depends which MTU you are actually talking about:



If you are talking about the layer-2 MTU, the IP packets are fragmented:



Let's say you want to send an UDP packet with 5000 bytes length over Ethernet. In this case one IP packet is generated that is 5068 bytes long. This packet is then split into fragments of 1500 bytes length. The fragments are transmitted.



If you are talking about the maximum IP packet length:



If one of the hosts involved does not support IP packets of the given length, the data transfer will fail. If the destination host does not support IP packets of 5068 bytes length (in the example), the packet cannot be received.



I read about an ISP using DS-Lite which does not support DS-Lite tunneling (IPv4-in-IPv6) if the resulting packet is longer than 1500 bytes. As a result a TCP/IPv4 packet with more than 1460 bytes length cannot be routed.



I think that most operating systems will silently limit the MSS to the maximum size of IP packets supported on the own host. However, many TCP/IP implementations do not send an MSS option in the first packet so it is possible that a TCP packet is longer than the maximum IP packet size allowed by the receiver. (Exactly this seem to be the case with the ISP mentioned above.)







share|improve this answer












share|improve this answer



share|improve this answer










answered 7 hours ago









Martin RosenauMartin Rosenau

1,13318




1,13318













  • Your "layer-2 MTU" is the maximum L2 PDU. "MTU" is an IETF term coined for IP, so it's generally L3.

    – Zac67
    5 hours ago



















  • Your "layer-2 MTU" is the maximum L2 PDU. "MTU" is an IETF term coined for IP, so it's generally L3.

    – Zac67
    5 hours ago

















Your "layer-2 MTU" is the maximum L2 PDU. "MTU" is an IETF term coined for IP, so it's generally L3.

– Zac67
5 hours ago





Your "layer-2 MTU" is the maximum L2 PDU. "MTU" is an IETF term coined for IP, so it's generally L3.

– Zac67
5 hours ago










Chinchillo is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Chinchillo is a new contributor. Be nice, and check out our Code of Conduct.













Chinchillo is a new contributor. Be nice, and check out our Code of Conduct.












Chinchillo is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Network Engineering Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f57569%2fwhat-happens-if-the-ip-mtu-is-smaller-than-the-mss%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b