🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
3 messages
3 total messages Started by Andrew Lunn Wed, 21 Oct 2026 19:10
Re: MAC Privacy Protection Protocol Driver Announcement
#6155
Author: Andrew Lunn
Date: Wed, 21 Oct 2026 19:10
36 lines
10442 bytes
On Wed, Oct 21, 2026 at 06:33:58PM +0000, Smith, Cameron T wrote:
> Hello networking and Rust maintainers,
> 
> I'm working on a Rust network driver for MAC Privacy Protection protocol (IEEE
> 802.1AEdk).

Hi Cameron

[Goes and looks at 802.1AEdk]

  Abstract: This amendment specifies a MAC Privacy protection
  encapsulating protocol and its use in conjunction with the MAC
  Security protocol (MACsec) to hide the source and destination MAC
  addresses of user data frames, and to reduce any correlation between
  observable frame sizes and transmission timing. This helps to
  protect user and application identities and to hide the purpose and
  content of communications. Management of MACsec and privacy
  protection is supported by YANG models and SNMP MIBs. Privacy
  considerations for bridged networks are reviewed.

So this is part of macsec?

You probably want to include Sabrina Dubroca <sd@queasysnail.net> in
the discussion, the macsec maintainer.

Lets start with architecture. How does this interactive with macsec?
Is it a layer on top? Is it integrated into the existing macsec
driver? Is it layered below? Are there devices which support 802.1AEdk
in hardware? There are PHYs which can do macsec and there is an API to
perform this offload. Do we need to extend this API?

We should first make sure the architecture is correct. There is no
point discussion rust abstractions until the basic design is correct.

	Andrew
Re: MAC Privacy Protection Protocol Driver Announcement
#6634
Author: Andrew Lunn
Date: Fri, 23 Oct 2026 01:00
56 lines
11736 bytes
On Thu, Oct 22, 2026 at 10:55:59PM +0000, Smith, Cameron T wrote:
> Hi Andrew,
> 
> Thanks for the recommendation to include Sabrina Dubroca.
> 
> On 10/21/26, 12:10, "Andrew Lunn" <andrew@lunn.ch <mailto:andrew@lunn.ch>> wrote:
> > So this is part of macsec?
> 
> Yes and no. It's standardized by IEEE as an amendment to 802.1AE and 
> intended for use with MACsec. However, it's defined as a separate protocol 
> with a dedicated ethertype, and the specification allows it to be used 
> without MACsec. 

I spent maybe 10 minutes looking at standard, so i've not got a good
understanding of it, so maybe i'm asking dumb questions.

So if you use it without MACSEC, you preappend a new header, and send
it out. Isn't the inner header than in plain text, making it somewhat
pointless?

> > Lets start with architecture. How does this interactive with macsec?
> > Is it a layer on top? Is it integrated into the existing macsec
> > driver? Is it layered below? Are there devices which support 802.1AEdk
> > in hardware? There are PHYs which can do macsec and there is an API to
> > perform this offload. Do we need to extend this API?
> 
> When used with MACsec, each MAC Privacy protection Protocol Data Unit
> (MPPDU) is placed within the payload of a MACsec data unit. Also, as 
> mentioned above, use of MACsec is not required, and one could use another 
> protocol, such as Ethernet, instead. Because of this, I think it makes 
> sense to implement MAC Privacy as a separate driver from MACsec. 

For the timing part, how does this interact with TSN, sk_buff->tstamp
TAPRIO and ETF Qdisc? Clearly you want to reuse as much of that as
possible.

> To my knowledge there are not currently any devices which support 802.1AEdk
> in hardware. Implementing MAC Privacy as a separate driver means
> hardware offload for MACsec can be used without changes while allowing
> Linux to perform MAC Privacy.

But we need a path for when MAC privacy is in hardware. However, is
that actually possible? The encapsulation to hide the MAC addresses
and perform padding should be possible, but what about the timing
part? Can that be offloaded? I guess not in a PHY, but a MAC
implementation would be possible, it pulling packets out of a queue at
a given rate, adding the extra header and padding, and then putting it
on the wire.

What does you user configuration API look like? Can you give us
examples of what you think iproute2 would look like, both with it
stacked on macsec, and directly on top of Ethernet. And what tc
commands are required.

   Andrew
Re: MAC Privacy Protection Protocol Driver Announcement
#7920
Author: Andrew Lunn
Date: Tue, 27 Oct 2026 13:15
56 lines
11665 bytes
On Mon, Oct 26, 2026 at 10:54:34PM +0000, Smith, Cameron T wrote:
> On Fri, Oct 23, 2026 at 03:00:23AM +0200 Andrew Lunn wrote:
> > So if you use it without MACSEC, you preappend a new header, and send
> > it out. Isn't the inner header than in plain text, making it somewhat
> > pointless?
> 
> Yes. In practice if MAC Privacy data is not encrypted, the changes 
> it's made to traffic can be trivially observed and reversed. However,
> the standard doesn't require encryption or mandate how encryption
> should take place.

What happens in practice? Just because the standard allows you to do
something does not mean we actually need to support it, especially if
it gives a sense of privacy when in fact it does not.

From an architecture perspective, i'm wondering if it should be a thin
sublayer in drivers/net/macsec.c. That then forces you to use it in
the correct way, it does actually give you privacy.

> This flexibility allows the use case where mac
> privacy encryption takes place on another device, such as an 
> Ethernet Data Encryptor. (See 802.1AEdk-2023 Section 21.8)

Does linux support this? And since this is 802.1AE, i assume it is an
extension to MACSEC? So would it be implemented in
drivers/net/macsec.c ?

> > For the timing part, how does this interact with TSN, sk_buff->tstamp
> > TAPRIO and ETF Qdisc? Clearly you want to reuse as much of that as
> > possible.
> 
> I definitely want to reuse as much as possible. MAC Privacy can use
> VLAN tags to indicate priority (See 802.1AEdk-2023 Figure 17-2), but
> I will need to look more closely at this topic.

I suspect this work will split into two parts. You will need TC and
some form of Qdisc, maybe extensions to the existing one, or maybe a
new one. And you need a layer somewhere to do the packet manipulation.

> Adding a MAC Privacy link to an existing Ethernet link named eth0
> without macsec might look like this:
> 
> ip link add link eth0 name macpriv0 type macpriv
> 
> Adding a MAC Privacy link to an existing macsec link named macsec0
> might look like this:
> 
> ip link add link macsec0 name macpriv0 type macpriv

As you can see above, i'm not yet convinced it should be a new device
stacked on top of macsec. Please explore what it would mean if the
packet manipulation part was inside the existing macsec driver. And
the packet scheduling is done via a Qdisc.

    Andrew
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads