Skip to content

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

@marten-seemann

Description

@marten-seemann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions