Unofficial Hacker News companion — get notified on comment replies, and more.

Uncovering Hidden TCP Throttling in the Linux Kernel (opens external site)

401 points by josefinaspidlen 1 day ago | www.cdn77.com | 48 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. TL;DR: TCP delayed acknowledgments should never have been in the IETF RFC in the first place (as per John Nagle himself) and Linux is known for stalling this issue. TCP_QUICKACK is trash. MacOS and FreeBSD (and IIRC even Windows) already have options to kill it globally. The few cases where this makes sense, seem to be covered by client-side a.k.a. sender-side TCP_NODELAY.

    Linux still has no decent option for killing off TCP delayed acknowledgments. Socket option TCP_QUICKACK on the server needs to be set for every interaction with the socket, like read(2) and write(2). Try forcing that through all the library layers. Sigh.

    Linux kernel mailing list complained that there was insufficient measurements backing up a proposed build time kernel config for eliminating delayed ACK. Anecdotally, MacOS and FreeBSD respond better on crappy Motel WiFi when their global sysctl values set ack delay to zero.

    Still cannot shake the feeling that the statistics for TCP congestion control failed to correct for the statistical effects of delayed acknowledgements and that structurally every other acknowledgement is often dropped. EDIT: Dropped in the server-side a.k.a. receiver-side kernel TCP stack due to delay settings. Nukes bandwith-delay-product.

    John Nagle posted important information on how it got into the IETF RFC erroneously here: https://news.ycombinator.com/item?id=9048947

    CETERAM CENSEO TCP DELAYED ACK DELENDAM ESSE.

    Replies (1)
    1. OP's issue has nothing to do with delayed acknowledgement