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

Fixed bug that led to inaccurate max_packet_length based on TCP Options #853

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

phillip-stephens
Copy link
Contributor

The module's max_packet_length is used for accurately computing the send rate to stay under any user-given bandwidth limitations.

This bug meant that the packet length was only accurate for the case where no TCP options were used (--probe-args="none") and incorrect for all other options.

Testing

Before fix, --probe-args="windows" -B 1G and --probe-args="linux" -B 1G would give the same send rate on a non-bandwidth constrained system, even though windows sends 8 bytes less per probe packet.

After fix, the same test results in 1.34 Mpps for windows and 1.24 Mpps for linux.

@phillip-stephens phillip-stephens marked this pull request as ready for review April 18, 2024 19:05
@zakird zakird merged commit 7c8ddfd into main Apr 18, 2024
11 checks passed
@zakird zakird deleted the phillip/tcp-syn-inaccurate-max-packet-len branch April 18, 2024 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants