AM2431: if TCP_WND can be set to a value smaller than TCP_SND_BUF

Part Number: AM2431


I am currently using mcu_plus_sdk_am243x_08_03_00_18 (and it might not be possible to upgrade to a new version at the moment).

I am using LWIP as a client and need to receive large amounts of data. In the file lwipopt.h, there is #define TCP_WND (TCP_SND_BUF).

I want to confirm if TCP_WND can be set to a value smaller than TCP_SND_BUF?

I think setting TCP_WND to a smaller value can help me receive and process large amounts of data.

  • Hi,

    Technically, you can set the TCP_WND to a smaller value than TCP_SND_BUF. Unless you are running into memory constraints, we would suggest to use the TCP_WND size as (4*MSS) and TCP_SND_BUF as (2*MSS). This ensures optimum performance. In case of receiving large amounts of data, it is usually preferred to have larger TCP_WND, if the network is resilient enough to not have retransmissions frequently. 

    Regards,
    Teja.