From: Sabrina Dubroca <sd@queasysnail.net>
To: Josh Coombs <jcoombs@staff.gwi.net>
Cc: netdev@vger.kernel.org
Subject: Re: Bug in MACSec - stops passing traffic after approx 5TB
Date: Sun, 14 Oct 2018 22:25:10 +0200 [thread overview]
Message-ID: <20181014202510.GA19253@bistromath.localdomain> (raw)
In-Reply-To: <CACcUnf8uKOFjJQq6AAroKjArUTwOuLx4HhteZg8y0wDT9NdZDA@mail.gmail.com>
2018-10-14, 10:59:31 -0400, Josh Coombs wrote:
> I initially mistook this for a traffic control issue, but after
> stripping the test beds down to just the MACSec component, I can still
> replicate the issue. After approximately 5TB of transfer / 4 billion
> packets over a MACSec link it stops passing traffic.
I think you're just hitting packet number exhaustion. After 2^32
packets, the packet number would wrap to 0 and start being reused,
which breaks the crypto used by macsec. Before this point, you have to
add a new SA, and tell the macsec device to switch to it.
That's why you should be using wpa_supplicant. It will monitor the
growth of the packet number, and handle the rekey for you.
If you start with a PN already close to exhaustion (say, 4294967000),
you should hit the "bug" very quickly.
> # Bring up macsec:
> echo "* Enable MACSec"
> modprobe macsec
> ip link add link "$dif" "$eif" type macsec
> ip macsec add "$eif" tx sa 0 pn 1 on key 02 "$txkey"
Keep the rest of the configuration, and replace that one with:
ip macsec add "$eif" tx sa 0 pn 4294967000 on key 02 "$txkey"
to trigger the issue faster.
--
Sabrina
next prev parent reply other threads:[~2018-10-15 4:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-14 14:59 Bug in MACSec - stops passing traffic after approx 5TB Josh Coombs
2018-10-14 20:25 ` Sabrina Dubroca [this message]
2018-10-14 20:52 ` Josh Coombs
2018-10-15 15:45 ` Josh Coombs
2018-10-17 13:45 ` Josh Coombs
2018-10-17 14:46 ` Josh Coombs
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=20181014202510.GA19253@bistromath.localdomain \
--to=sd@queasysnail.net \
--cc=jcoombs@staff.gwi.net \
--cc=netdev@vger.kernel.org \
/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).