Fragmentation on UDP layer possible?
coder at poorlab.com
Mon Aug 13 08:53:41 CEST 2018
On Mon, Aug 13, 2018 at 4:41 PM Jason A. Donenfeld <Jason at zx2c4.com> wrote:
> WireGuard's socket.c calls udp_tunnel_xmit with the DF bit set to 0,
> which means if the underlying endpoint's path has an MTU that is too
> small, the UDP packet will simply be fragmented, not dropped.
Thank you for your answer.
Yes. This is how Wireguard handles fragmenting on IP layer. And thanks
to this feature I can build my network with high MTU inside.
For Roman Mamedov's question, I said there is such bug if you use
VXLAN inside Wireguard: You need to turn checksum offload off if
fragment is on.
But my doubt is "can we do fragment on UDP layer", or "on application
layer". That is because I found some public Wi-Fi simply does not
allow me to transmit any fragmented IP packets. Would you please
comment on this question? (For details, you may see my first post.)
More information about the WireGuard