From 6f26e72817be82e2b4aac0f967494ef157c0c8c7 Mon Sep 17 00:00:00 2001 From: xiehang Date: Wed, 3 Jun 2020 17:05:52 +0800 Subject: [PATCH] Change the default value of TCP_MSS to 1440 and TCP_MSS Range : [536 1460] --- components/lwip/Kconfig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig index 586246755..34c21f0ac 100644 --- a/components/lwip/Kconfig +++ b/components/lwip/Kconfig @@ -312,12 +312,14 @@ menu "LWIP" config TCP_MSS int "Maximum Segment Size (MSS)" - default 1436 - range 1220 1436 + default 1440 + range 536 1436 help Set maximum segment size for TCP transmission. - Can be set lower to save RAM, the default value 1436 will give best throughput. + Can be set lower to save RAM, the default value 1460(ipv4)/1440(ipv6) will give best throughput. + IPv4 TCP_MSS Range: 576 <= TCP_MSS <= 1460 + IPv6 TCP_MSS Range: 1220<= TCP_MSS <= 1440 config TCP_MSL int "Maximum segment lifetime (MSL)"