This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM2431:如果 TCP_WND 可设置为小于 tcp_snd_BUF 的值

Guru**** 2907270 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1579463/am2431-if-tcp_wnd-can-be-set-to-a-value-smaller-than-tcp_snd_buf

器件型号:AM2431


我目前正在使用 MCU_PLUS_SDK_am243x_08_03_00_18(目前可能无法升级到新版本)。

我使用 LWIP 作为客户端、需要接收大量数据。 在文件 lwipopt.h 中、有 #define TCP_WND (TCP_SND_BUF)

我想确认是否可以将 TCP_WND 设置为小于 tcp_snd_BUF 的值?

我认为将 TCP_WND 设置为较小的值可以帮助我接收和处理大量数据。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、

    从技术上讲、可以将 TCP_WND 设置为比 tcp_snd_BUF 更小的值。 除非遇到内存限制、否则建议使用 tcp_wnd 大小为 (4*mss)、tcp_snd_BUF 为 (2*mss)。 这可确保实现最佳性能。 在接收大量数据的情况下、如果网络具有足够的弹性而不会频繁地进行重新传输、则通常最好使用更大的 TCP_WND。  

    此致、
    Teja。