hyprspace icon indicating copy to clipboard operation
hyprspace copied to clipboard

QUIC, MTU and fragmentation

Open max-privatevoid opened this issue 3 years ago • 1 comments

It seems that when you have a network that can't carry full 1500 byte IP packets (1468 bytes in my case), Hyprspace over QUIC may end up with a broken connection. Hyprspace uses an internal hardcoded MTU of 1420 bytes. Maybe there's a way to automatically negotiate appropriate MTU sizes?

max-privatevoid avatar Nov 11 '21 21:11 max-privatevoid

Manually setting MTU, like how it's handled in Wireguard, would also be nice alongside it, MTU: auto for negotiated; MTU: 1420 for manual.

Does libp2p support per-connection MTU settings or is it across all connections the node manages? If it's not doable per-connection then it might interfere with this: https://github.com/hyprspace/hyprspace/discussions/47#discussioncomment-1448528

Winterhuman avatar Nov 12 '21 16:11 Winterhuman