lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] STM32F4+lwIP: TCP MSS sets to 536 bytes on its own


From: Sergio R. Caprile
Subject: Re: [lwip-users] STM32F4+lwIP: TCP MSS sets to 536 bytes on its own
Date: Fri, 22 Jun 2018 10:37:40 -0300
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

Well, besides the fact that one thing is TCP, layer-4, with its Maximum
_Segment_ Size and another is Ethernet, layer-2, with the number of
bytes in a frame, which is what you are seeing in wireshark;
You are on the right track. There are a number of algorithms to
gracefully handle the life of a transfer, including the start of it, and
if I'm correct lwIP starts sending 536 bytes and will then update
according to what happens during the transfer.

But, there is also your MTU, which will limit what can fit in an
Ethernet frame, and lwIP has code that adapts TCP segment size to that
too. The MTU is set by your driver in its low-level init function. this
is normally set higher, but you might check anyway.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]