Development discussion of WireGuard
 help / color / mirror / Atom feed
From: tlhackque <tlhackque@yahoo.com>
To: wireguard@lists.zx2c4.com
Subject: Re: WireGuard Windows should have default MTU of 1280.
Date: Mon, 21 Feb 2022 13:52:05 -0500	[thread overview]
Message-ID: <3fea080f-9d01-6471-31e2-e14e39c02575@yahoo.com> (raw)
In-Reply-To: <nezEceJdtFCD_k8UXUzZUbcLJaTaAPGZWw50RGCGmGJd1kfQ9uVfFzuiv9eXFrM9vidRFDjl-xXyV3iIypSBiMX4kDsPcEMP-2mAH_YfXag=@protonmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1881 bytes --]

On 18-Feb-22 20:23, Rujbin wrote:
> Hello,
>
> i am just confused. When i use default MTU the Performance on Windows is VERY poor. It is almost unuseable. It happens on multiple Windows devices. I started using MTU 1280 for a while, but why is it only Windows with that issue? First, the speed is limited to 100mbps maximum. Thats weird, when i use MTU 1280 i have 1gbps. https://i.imgur.com/ELGOWDQ.png
>
> This bug exists for a long time to me. I ran Wireguard on almost every provider, (i didnt check if it happens on Azure) but this bug exists on Hetzner, DigitalOcean, OVH. This is not normal. I am running the latest stable version of Wireguard Windows. Kernel module on servers and BoringTun.

The question is so vague that you're not going to get unconfused without 
doing more work.

Sounds like a fragmentation issue.  Where can't be determined from the 
information given.  But if path MTU discovery is disabled/broken, that 
kind of slowdown isn't surprising.

1280 is the minimum MTU for IPv6.  (Path discovery is encouraged to use 
larger if possible.)  See RFC2460 section 5.

Where are you setting the MTU?  On the physical IF, or the WireGuard IF?

If the former, you want to increase by the size of the WG overhead.

If your physical IF is IPv4, but you're tunneling IPv6 over WG - the 
minimum MTU for IPv4 is 512, so unless some MTU is set (and available 
for the complete route), WG packets will definitely fragment.

In short, you need to provide more information (including a complete 
configuration, traceroutes with packet sizes, see if MTU discovery is 
blocked, ...), and do more work in order to get a useful answer.

This includes the Windows question.  Is WG running on windows, or on 
some router?  IPv4?  How does this differ from the other devices?  What 
are they (IOS, Android, Linux, VMS, ZOS, ...)?



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

  reply	other threads:[~2022-02-21 18:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-19  1:23 Rujbin
2022-02-21 18:52 ` tlhackque [this message]
2022-02-21 18:53 ` Michael Tokarev
     [not found]   ` <Mailbird-87f65eb5-1417-4955-ae28-858c7511900b@gmail.com>
2022-02-21 19:16     ` Michael Tokarev
2022-02-21 19:57       ` Roman Mamedov
2022-02-21 21:44         ` Roman Mamedov
2022-02-23  5:21           ` David Anderson
2022-02-21 19:18     ` Michael Tokarev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3fea080f-9d01-6471-31e2-e14e39c02575@yahoo.com \
    --to=tlhackque@yahoo.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).