Re: 64bit MAC addresses and SLAAC

Bob Hinden <bob.hinden@gmail.com> Wed, 17 June 2020 18:00 UTC

Return-Path: <bob.hinden@gmail.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 39D613A0C71 for <ipv6@ietfa.amsl.com>; Wed, 17 Jun 2020 11:00:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12qWNM5FkKm2 for <ipv6@ietfa.amsl.com>; Wed, 17 Jun 2020 11:00:18 -0700 (PDT)
Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 295863A0AF7 for <ipv6@ietf.org>; Wed, 17 Jun 2020 11:00:18 -0700 (PDT)
Received: by mail-wm1-x32f.google.com with SMTP id c71so2733127wmd.5 for <ipv6@ietf.org>; Wed, 17 Jun 2020 11:00:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=NAzFFYxnP97dLHaRjsv3D6tfmFo/HKQz8P02FifNu4c=; b=nA88JFDb6n0OXTO6P7bdZ3I85VmBbkmHRS0pfSOf+l5WmVvlcekZ0suSiHgDfe7l+r VhdLqeJ75UmQcJMxoh1G9dMzRKkBU8D10rJEnm6NVVYpUMSsQ9PSD3NwRkqwFWQLDJAK Z03YKVpniuweYc0n3T7iPZBIEvUIrxjDZSeiq5b8JuO0VGR7ulcFy8pj1qyfAoYc2cyw WFQ9dswtraHmO8tLD666039/YbkV/1c4/aWwORf8HAwpdGfkbWgUwISfJD+Yaq58/Q/g A6Qnfh/dw1Gd6v7C4kcSbbaQ6dllv6LGWrHF9u71N361G5puBLwKBSOXOVgIg1Jh9pDr A1BQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=NAzFFYxnP97dLHaRjsv3D6tfmFo/HKQz8P02FifNu4c=; b=NvNM+KPp61SOil+GbBU4h3WEQ15zPLdwfnXgqVyrTZ3xJ+uBaVrq0Kh3qV2nkmDlex m+wBEPuQXw2QxvymmdXb4XsKGpwTVV5sd5PcPjoW76dTYY32Ak0XnlpdHYjYpu7/wHWO a8K41yzN05Fa6XFHvWlfxSeTTNSNOdboDAJnsjp7VSNcp+T3ecjUFPkgT4tG/IPoD1qK ZGv9ycwF5CzeSrjRTWSqUMs5Ojwwygw+PNr8fkxRdBLTaKU+jKSbVc0ZVXP0j/e5rNNA FiHb3NT3MMUJKcl149tqPxuEaE46xpiRik1FzEBh2VG3NGw0+vESV07t6f7BFaGOICKu RVoA==
X-Gm-Message-State: AOAM533ceEXmyd9D4Oa/bgAW0EUyjDi3qBSIu60djSDATJ0GvUFR6Qeq 9P5hRI3JbWf+NJoor80E+lEYMCEWO2U=
X-Google-Smtp-Source: ABdhPJzrqO1yxiyCv72uOGjurZ8L7i8pEFwqyhyMpk80S1nIMCrxYviz+1agvgXdd0z0eX5FXe2cTg==
X-Received: by 2002:a1c:808d:: with SMTP id b135mr9446021wmd.94.1592416816539; Wed, 17 Jun 2020 11:00:16 -0700 (PDT)
Received: from ?IPv6:2601:647:5a00:ef0b:f9b4:4028:ffd8:e235? ([2601:647:5a00:ef0b:f9b4:4028:ffd8:e235]) by smtp.gmail.com with ESMTPSA id y17sm415720wrd.58.2020.06.17.11.00.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jun 2020 11:00:15 -0700 (PDT)
From: Bob Hinden <bob.hinden@gmail.com>
Message-Id: <34F70C54-04C1-48F9-80C9-8DEB59B97ECD@gmail.com>
Content-Type: multipart/signed; boundary="Apple-Mail=_17773109-7A58-4CEF-A169-4AC1DA327582"; protocol="application/pgp-signature"; micalg="pgp-sha512"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\))
Subject: Re: 64bit MAC addresses and SLAAC
Date: Wed, 17 Jun 2020 11:00:07 -0700
In-Reply-To: <CAAcx0vDB3qdiAdLx02Kf1ps0j9R9RBFnrKVsSHqpuEs47QGcFg@mail.gmail.com>
Cc: Bob Hinden <bob.hinden@gmail.com>, IPv6 List <ipv6@ietf.org>
To: Etienne-Victor Depasquale <edepa@ieee.org>
References: <e8a25961-5ac9-d35e-77dd-bf86f45cd077@gmail.com> <a17ae9f3-001c-07f6-84f9-a0ca583e6a00@gmail.com> <7AE5B6D0-AB01-4077-A9EF-5BD86F428681@gmail.com> <7a3b839f-099e-8fd3-35a2-4625df3c369e@gmail.com> <679B240C-6057-4549-AF3F-752707CBD1C8@gmail.com> <CAAcx0vDB3qdiAdLx02Kf1ps0j9R9RBFnrKVsSHqpuEs47QGcFg@mail.gmail.com>
X-Mailer: Apple Mail (2.3445.104.14)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/_C8rsF_Nz3MTzd2_GMGN58X49ok>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Jun 2020 18:00:25 -0000

Etienne,

Good to hear that SLACC requires less energy than IPv4 automatic address configuration.

I agree it is a tradeoff when privacy is needed or not.  I suspect that if the calculation to generate a random number is only done very occasionally or only on boot-up, I would think that the energy required isn’t very significant over time.

Bob


> On Jun 17, 2020, at 10:23 AM, Etienne-Victor Depasquale <edepa@ieee.org> wrote:
> 
> Bob,
> 
> In the case of resource-constrained nodes, such as wireless sensor networks (WSNs),
> the use of algorithms to generate addresses consumes energy.
> 
> In my lectures to date (I'm an academic),
> I've emphasized that SLAAC in IPv6
> requires less energy than automatic address configuration in IPv4.
> 
> RFC7217's method of address generation seems to load WSNs unnecessarily,
> unless the identity of a sensor is somehow considered important.
> 
> Etienne
> 
> On Wed, Jun 17, 2020 at 6:37 PM Bob Hinden <bob.hinden@gmail.com> wrote:
> Alexandre,
> 
> > On Jun 17, 2020, at 4:39 AM, Alexandre Petrescu <alexandre.petrescu@gmail.com> wrote:
> >
> > Le 15/06/2020 à 23:01, Bob Hinden a écrit :
> >> Alexandre,
> >>> On Jun 15, 2020, at 1:23 PM, Alexandre Petrescu <alexandre.petrescu@gmail.com> wrote:
> >>> Hi,
> >>> Before the sanitary situation I was studying an issue at ISO.
> >>> The issue is about 64bit MAC addresses and SLAAC.
> >>> SLAAC needs a 48bit MAC addresses in order to work, and it can not work with a 64bit MAC address; (but yes, it can with 64bit IIDs).
> >> SLACC does not specify the length of the Interface ID, it does not require require 48-bit MAC addresses, and the reason for Modified EUI-64 Format Interface Identifiers in RFC4291 was to support 64bit EUI-64 Identifiers.   We have since moved away from using MAC addresses as Interface IDs.  See RFC 8064.
> >
> > Bob,
> >
> > RFC8064 says "this document [...] recommends against embedding stable
> > link-layer addresses in IPv6 Interface Identifiers”.
> 
> The actual text is:
> 
>    By default, nodes SHOULD NOT employ IPv6 address generation schemes
>    that embed a stable link-layer address in the IID.
> 
> It is more than a recommendation.
> 
> >
> > But a 64bit MAC address could be a random number as well, not
> > necessarily stable.  Windows randomizes some of its MAC addresses.
> 
> RFC7721 discusses this, along with what Windows does.
> 
> >
> > That aside, I am not sure how much RFC8064 is clear about the length of
> > an IID (it refers to RFC7217 '_could_ any len'), neither am I sure how
> > much is it implemented (linux and freebsd implement random IIDs but of
> > fixed length).
> 
> The length of an Interface ID is not defined in RFC8063.  That is a bigger topic, the current specification is RFC4291 as updated by RFC5952, RFC6052, RFC7136, RFC7346, RFC7371, and RFC8064.
> 
> Bob
> 
> 
> >
> > Alex
> 
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
> 
> 
> --
> Ing. Etienne-Victor Depasquale
> Assistant Lecturer
> Department of Communications & Computer Engineering
> Faculty of Information & Communication Technology
> University of Malta
> Web. https://www.um.edu.mt/profile/etiennedepasquale