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

limit packet size to typical MTUs used on the public internet #1385

Open
marten-seemann opened this issue Jul 16, 2022 · 1 comment
Open
Labels
hint/needs-triage Hint: Needs Triage

Comments

@marten-seemann
Copy link

Testground is used to compare the performance between different transport protocols (e.g. raw TCP vs. libp2p TCP vs. libp2p QUIC).

When running on a local connection, raw TCP is able to use jumbo frames, sending segments up to 65 kB. quic-go limits the UDP packet size to 1452 bytes, since this is the absolute maximum packet size that can be transmitted over the public internet (with an Ethernet (?) MTU of 1500 bytes).
I'm still investigating how this impacts libp2p TCP, my suspicion is that we're limiting our buffer size somewhere in the stack (security? muxer?).

Using huge packets gives TCP an unfair and unrealistic advantage. It would be great if Testground could impose realistic limits on packet sizes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hint/needs-triage Hint: Needs Triage
Projects
None yet
Development

No branches or pull requests

2 participants