Re:Linux kernel bug delivers corrupt TCP/IP data
by makomk on Friday February 12, 2016 @04:02PM
(#11090559)
I believe SYN cookies affect the TCP window because the kernel can't actually guarantee it has enough RAM to allocate a reasonably sized buffer when it sends the SYN-ACK, as by design it doesn't allocate any memory until after the ACK is returned from the other side.
[ Parent
| on HN ]
Re:Linux kernel bug delivers corrupt TCP/IP data
by cawoodfield on Friday February 12, 2016 @06:32PM
(#11091465)
One potential explanation depending on your kernel version - traditional SYN cookies cannot encode TCP extensions, including window scaling, which will (nearly) always result in slower transfers. Newer kernels (The Googles aren't giving me a kernel version, unfortunately) use the TCP timestamp option in addition to the sequence to encode a limited number of TCP options, including WS.
More info: http://www.inesc-id.pt/pt/indicadores/Ficheiros/165.pdf
Re:Linux kernel bug delivers corrupt TCP/IP data
by felixge on Friday February 12, 2016 @04:08PM
(#11090606)
Sure, but after the connection is established, and "memory pressure" [1] is gone, shouldn't the tcp implementation grow the window again?
[1] I'm putting this in quotes, because the machines in questions have ridiculous amounts of memory, and the pressure merely came from SOMAXCONN being at their default value of 128.