Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Aaron Jones <me@aaronmdjones.net>
To: WireGuard mailing list <wireguard@lists.zx2c4.com>
Cc: Manikandan Thiagarajan <tmani@prosimo.io>
Subject: Re: Netstat bytes count doesn't match with Wireguard
Date: Wed, 15 Sep 2021 07:31:32 +0000	[thread overview]
Message-ID: <2876f8bc-9aae-31b6-3f53-97d8c95603a9@aaronmdjones.net> (raw)
In-Reply-To: <DBFC0427-180B-4757-A93A-0D9DECD959EE@prosimo.io>


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

Hello.

Netstat is only counting traffic sent or received on the interface; e.g.
the tunnelled bytes themselves, as it should. WireGuard however is
counting that, plus all of the encapsulation overhead (header, MAC,
etc), plus packets not sending or receiving tunnelled data (for example,
keep-alives and periodic re-handshaking), plus periodic response packets
when traffic is only flowing one way (common if you run unidirectional
protocols over it; for example, UDP video streaming).

These extra packets are documented in the WireGuard whitepaper on the
website.

Regards,
Aaron Jones


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

  reply	other threads:[~2021-09-15  7:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-14 20:53 Manikandan Thiagarajan
2021-09-15  7:31 ` Aaron Jones [this message]
2022-03-10  1:00 ` Wireguard Go C API Callbacks Manikandan Thiagarajan

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=2876f8bc-9aae-31b6-3f53-97d8c95603a9@aaronmdjones.net \
    --to=me@aaronmdjones.net \
    --cc=tmani@prosimo.io \
    --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).