Development discussion of WireGuard
 help / color / mirror / Atom feed
From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: John Huttley <john@mib-infotech.co.nz>
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: MTU
Date: Sun, 18 Dec 2016 19:04:39 +0100	[thread overview]
Message-ID: <CAHmME9oZmH5mRyCySGRssQ0ytDuaUUe-Qo5ycnMHkL9stVwYAA@mail.gmail.com> (raw)
In-Reply-To: <1d684ee8-9f6c-a9f0-4cec-df0116cb97b7@mib-infotech.co.nz>

Hey John,

The old WireGuard gave you a default MTU of 1423. The new one gives
you a default MTU of 1420. That's your minus 3. From your email, it
looks like you subtracted twice!

If you're not using IPv6 as the outer endpoint IP address, then you
can make this 1440. The breakdown of the wireguard packet is:

20 byte IPv4 header or 40 byte IPv6 header
8 byte UDP header
1 byte type
3 byte reserved
4 byte index
8 byte nonce
CIPHERTEXT
16 byte authtag

So either you wind up with 20+8+1+3+4+8+16 bytes of overhead, or you
wind up with 40+8+1+3+4+8+16 bytes of overhead.

Regards,
Jason

      reply	other threads:[~2016-12-18 17:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-15 16:09 CodeBlue WireGuard Talk Now Online Jason A. Donenfeld
2016-12-18  5:33 ` MTU John Huttley
2016-12-18 18:04   ` Jason A. Donenfeld [this message]

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=CAHmME9oZmH5mRyCySGRssQ0ytDuaUUe-Qo5ycnMHkL9stVwYAA@mail.gmail.com \
    --to=jason@zx2c4.com \
    --cc=john@mib-infotech.co.nz \
    --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).