Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport v3.7-branch] net: tcp: Keep track of recv window size change since last ACK #76543

Merged
merged 1 commit into from
Aug 6, 2024

Commits on Jul 31, 2024

  1. net: tcp: Keep track of recv window size change since last ACK

    Windows TCP stack has a peculiar behavior - when running iperf, it will
    fill out the RX window almost entirely, but will not set PSH flag on
    packets. In result, our stack would delay the ACK and thus window
    update, affecting throughputs heavily.
    
    In order to avoid that, keep track of the most recent window size
    reported to the peer, and reduce it when receiving new data. In case the
    RX window, as seen from the peer perspective, drops below certain
    threshold, and the real RX window is currently empty, send an ACK
    immediately when updating window, so that peer can continue
    with sending data.
    
    Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
    (cherry picked from commit 349bf81)
    rlubos authored and github-actions[bot] committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    b15692b View commit details
    Browse the repository at this point in the history