[ieee-ietf-coord] Whether or not RFC 4944 can produce address collisions

Charlie Perkins <charles.perkins@earthlink.net> Fri, 29 June 2018 23:43 UTC

Return-Path: <charles.perkins@earthlink.net>
X-Original-To: ieee-ietf-coord@ietfa.amsl.com
Delivered-To: ieee-ietf-coord@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F0CB9130F28 for <ieee-ietf-coord@ietfa.amsl.com>; Fri, 29 Jun 2018 16:43:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.731
X-Spam-Level:
X-Spam-Status: No, score=-2.731 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=earthlink.net; domainkeys=pass (2048-bit key) header.from=charles.perkins@earthlink.net header.d=earthlink.net
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 L_-MCg24Y72e for <ieee-ietf-coord@ietfa.amsl.com>; Fri, 29 Jun 2018 16:43:48 -0700 (PDT)
Received: from elasmtp-galgo.atl.sa.earthlink.net (elasmtp-galgo.atl.sa.earthlink.net [209.86.89.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BC6C1130E2C for <ieee-ietf-coord@ietf.org>; Fri, 29 Jun 2018 16:43:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=earthlink.net; s=dk12062016; t=1530316018; bh=Yvfidhp7lXLhAG+VZN3nhv85LlLZfQRAE1aU XNbsPj4=; h=Received:Subject:To:Cc:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:Content-Type: Content-Transfer-Encoding:Content-Language:X-ELNK-Trace: X-Originating-IP; b=c1Uu5Ov6//a48p2IfgfHWzBvnmpliGBCVsrvX+hZkycPww vnv2s6CmJ7I5QnL7yPMAdcgg17QzDV9W2M4+1E63l6UENzxWbA+7cyZTG6jHGD2HTpr j0aSf8VZX2RFmH6rD+Dmy4ccBrHMmQ1aG3K6acWTd+bH475QyV6g6/dq1HMOVOH22b6 FepccVrNAmX9CfT25li033+bsIa2BqJjiTMsbLSkonjcnGXWBcrEDIyRnuzqKYyXIPj 2Bmnb5f4gWhxb4mryWNf9Qw7Io4Gx554wxaG2NUcCgGtaVlL5wBkk610A8N3EHWqwVe ZTv5qXHU+b60144tRwWkeIcCXCCw==
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk12062016; d=earthlink.net; b=n8MQ6JXXlmyyRRFB0b9ipAIwvQSItvH0PcFoFIrIAFGD+eGYwk+DGMunw/Jev96l2SQcaHhWGUMJo97L604G+l8SulNhJIBhTeNJNVc9aAwmRRU+OyGpRiDxrlqWiwTP9E/V2Weee+wCHUpdT81fPoWyr0KZFuKVNGJ54gkyJgRH26epvlv0+/f1k8GGjI+meNhCvF8GctURiQBE/PUXdn8EUHVItozHIH5SNh3o3MP2Uul5R6u/T1IjipY5ejpibZmcrMdrzaAWaoyUILSrgG9VE7Imgk8l9BuwEyzZrZHMKUhJI1kqM6lY8CrNmbEPrI5pOAz83W1HQD7KCRj5Xg==; h=Received:Subject:To:Cc:References:From:Message-ID:Date:User-Agent:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Content-Language:X-ELNK-Trace:X-Originating-IP;
Received: from [99.51.72.196] (helo=[192.168.1.82]) by elasmtp-galgo.atl.sa.earthlink.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4) (envelope-from <charles.perkins@earthlink.net>) id 1fZ36O-0008uf-Ms; Fri, 29 Jun 2018 19:46:56 -0400
To: "Pascal Thubert (pthubert)" <pthubert@cisco.com>, "Pascal Thubert (pthubert)" <pthubert=40cisco.com@dmarc.ietf.org>
Cc: "ieee-ietf-coord@ietf.org" <ieee-ietf-coord@ietf.org>
References: <TU4PR8401MB06214FDFC0652364F7728557ED750@TU4PR8401MB0621.NAMPRD84.PROD.OUTLOOK.COM> <70d78698-7ec3-3a6e-3200-a958ba520141@earthlink.net> <CAF4+nEEYtZ4diFxLDtwKT=jxXzoyPxmSK3HPKeGHhaDzQKcquQ@mail.gmail.com> <FE807CB8-8EDB-475C-9CF6-B7564CF74AF9@ieee.org> <CAF4+nEE4WpNnkrN+LWL6sXeBLyyqPD6L9Mw0+ddqMMYVafZA8w@mail.gmail.com> <1d723f40-f816-ce07-c807-fde49fc215f4@earthlink.net> <C1AC193E-730A-4897-A5A4-C63A77BEAB3C@cisco.com> <1f8a9039-6efe-3a29-27e7-53d798d1e099@earthlink.net> <3Nxt1y00P0xxhYs01Nxuaq> <15B88F7B-0A03-4713-98DB-3C2F636A545E@cox.net> <3TKK1y02A0xxhYs01TKLWY> <71C4D07F-AF10-4191-91EF-ACAEE177ED0F@cox.net> <45883c7613a84ba18ae973301476ada7@XCH-RCD-001.cisco.com>
From: Charlie Perkins <charles.perkins@earthlink.net>
Message-ID: <85e9b4ed-f056-dd09-a69e-b856333c9236@earthlink.net>
Date: Fri, 29 Jun 2018 16:43:45 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
MIME-Version: 1.0
In-Reply-To: <45883c7613a84ba18ae973301476ada7@XCH-RCD-001.cisco.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-ELNK-Trace: 137d7d78656ed6919973fd6a8f21c4f2d780f4a490ca6956846b590522b13c95fe9ceea021ecc5513e4b25e81849137e350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 99.51.72.196
Archived-At: <https://mailarchive.ietf.org/arch/msg/ieee-ietf-coord/CKNgTq3LDsv6nmGefwqvnlJXeHA>
Subject: [ieee-ietf-coord] Whether or not RFC 4944 can produce address collisions
X-BeenThere: ieee-ietf-coord@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: Management-level discussions between IEEE and IETF on topics of interest to both SDOs <ieee-ietf-coord.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ieee-ietf-coord>, <mailto:ieee-ietf-coord-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ieee-ietf-coord/>
List-Post: <mailto:ieee-ietf-coord@ietf.org>
List-Help: <mailto:ieee-ietf-coord-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ieee-ietf-coord>, <mailto:ieee-ietf-coord-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 29 Jun 2018 23:43:53 -0000

Hello Pascal and all,

Yes there are quite a few cases.  My original observation was that RFC 
4944 followed by RFC 2464 might produce 64-IIDs that were the same from 
devices residing on PANs with different PAN IDs.  I was wondering what I 
might be missing.  The ensuing discussion has been quite interesting!

If PAN_ID_1 = 0xFC78 and PAN_ID_2 = 0xFE78, and on each PAN there were a 
device with the 16-bit short address 0x1234, applying RFC 4944 would 
produce two 48-bit MAC addresses MAC_1 = 0xFC34-0000-1234 and MAC_2 = 
0xFE78-0000-1234.  And then for both MAC_1 and MAC_2, RFC 2464 would 
produce the 64-bit Interface ID = 0xFC-34-00-FF-FE-00-12-34.

It seems to me that it would have been better to put the PAN_ID bits in 
the middle, and the filler bits as the prefix when extending the 48-bit 
MAC address to be a 64-bit Interface ID.

Or, I might *still* be missing something...  I understand that the IID 
is not an EUI-64, and that IPv6 Duplicate Address Detection was designed 
just to eliminate such conflicts as these.

Regards,
Charlie P.


On 6/26/2018 10:40 AM, Pascal Thubert (pthubert) wrote:
> Makes sense to me Robert;
>
> I understand that the 48 bits and then the 64 bits values generated by RFC 4944 and the by adding FFFE in the middle will not collide with EUI-64 assigned by the IEEE-RA because of the U/L bit setting.
> At least, the IPv6 IIDs will not collide. So in the particular case of RFC4944, IPv6 autoconf works and does not create a risk of a collision between an IPv6 address derived from a short address and one derived from a long address. Also to Charlie's original point, there is not collision between IPv6 addresses derived from short addresses if the PAN IDs are different.
>
> Cheers,
>
> Pascal
>
>> -----Original Message-----
>> From: ieee-ietf-coord <ieee-ietf-coord-bounces@ietf.org> On Behalf Of Robert
>> Grow
>> Sent: mardi 26 juin 2018 19:23
>> To: Pascal Thubert (pthubert) <pthubert=40cisco.com@dmarc.ietf.org>
>> Cc: Charlie Perkins <charles.perkins@earthlink.net>; ieee-ietf-coord@ietf.org
>> Subject: Re: [ieee-ietf-coord] Rationale for 0xFFFE as octets 4 and 5 pf EUI-64?
>>
>> Pascal:
>>
>> The only restriction on EUI-64 is that the bits corresponding to U/L and I/G
>> are zero (allowing the EUI-64 to be used as MAC addresses).  Virtually all of
>> the other 2^62 values could be already assigned or assigned in the future to
>> an equipment manufacturer and used for any purpose, including as 64-bit
>> MAC addresses.
>>
>> Yes, an EUI-64 used as a 64-bit MAC address can have 0xFFFE in octets 4 and
>> 5.
>>
>> The few exceptions where existing OUI assignments, (e.g., IAB, and Xerox
>> Block ID assignments) that were not to be used for creating EUI-64 probably
>> aren’t worth going into.
>>
>> Therefore, in general, any EUI-48 or 48-bit value that looks like an EUI-48
>> (using any mapping that preserves the U/L and I/G bits) into a 64-bit value
>> could produce a duplicate of an EUI-64.
>>
>> And consequentially IMHO,  the output of the mapping is not an EUI-64!  We
>> need to stop calling things that are not EUI values assigned by the IEEE-RA by
>> the name EUI.  That leads people to think the output of a mapping has the
>> same uniqueness as an EUI, when it doesn’t.  And, when we mix a value
>> created by some mapping the same as an EUI, we are defining protocols that
>> will encounter duplicates for reasons other than hardware failure or
>> manufacturing error.  Those human errors and failure have for decades been
>> the only cause of duplicate values.  If protocols are going to use mappings
>> instead of or in addition to EUIs, people need to know the assumption of
>> global uniqueness assumed with an EUI is violated and there will be
>> additional causes for seeing duplicates.
>>
>> —Bob
>>
>>
>>
>>> On Jun 26, 2018, at 8:18 AM, Pascal Thubert (pthubert)
>> <pthubert=40cisco.com@dmarc.ietf.org> wrote:
>>> Hello Bob:
>>>
>>> This is very specific to 802.15.4 which natively uses EUI-64. So that
>> particular confusion between the EUI-48 derived from PANid/short_addr  and
>> a real network address is impossible.
>>> Now, whether the EUI-64 derived from that EUI-48 can collision with a EUI-
>> 64 derived from a MAC-64 is beyond me.
>>> I guess the U/L bit at least will differ, no? Can a MAC-64 have 0xFFFE in the
>> middle?
>>> Take care,
>>>
>>> Pascal
>>>
>>>> -----Original Message-----
>>>> From: Robert Grow <bobgrow@cox.net>
>>>> Sent: mardi 26 juin 2018 17:12
>>>> To: Pascal Thubert (pthubert) <pthubert@cisco.com>
>>>> Cc: Charlie Perkins <charles.perkins@earthlink.net>;
>>>> ieee-ietf-coord@ietf.org
>>>> Subject: Re: [ieee-ietf-coord] Rationale for 0xFFFE as octets 4 and 5 pf EUI-
>> 64?
>>>> But, is there anything that prevents it from being a duplicate of an
>>>> EUI-48?  I don’t think so.
>>>>
>>>> —Bob
>>>>
>>>>> On Jun 26, 2018, at 3:57 AM, Pascal Thubert (pthubert)
>>>> <pthubert=40cisco..com@dmarc.ietf.org> wrote:
>>>>> Hello Charlie,
>>>>>
>>>>> As I understand RFC 4944, the 48bits address is built on pan-id (2
>>>>> octets)
>>>> concatenated with 0s (2 octets) concatenated with short address (2
>> octets).
>>>>> So no, two devices on different PANs that happen to have the same
>>>>> 16-bit
>>>> short address cannot end up with the same IPv6 address.
>>>>> Take care,
>>>>>
>>>>> Pascal
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Charlie Perkins <charles.perkins@earthlink.net>
>>>>>> Sent: lundi 25 juin 2018 20:45
>>>>>> To: Pascal Thubert (pthubert) <pthubert@cisco.com>
>>>>>> Cc: ieee-ietf-coord@ietf.org
>>>>>> Subject: Re: [ieee-ietf-coord] Rationale for 0xFFFE as octets 4 and
>>>>>> 5 pf EUI-
>>>> 64?
>>>>>> Hello Pascal,
>>>>>>
>>>>>> Yes, I saw that specification, but it seemed to me that it still
>>>>>> has the same problem as I mentioned in the previous email.  By RFC
>>>>>> 4944, two devices on different PANs that happen to have the same
>>>>>> 16-bit short address could end up with the same IPv6 address.
>>>>>>
>>>>>> It doesn't have to be that way, to my understanding.
>>>>>>
>>>>>> Regards,
>>>>>> Charlie P.
>>>>>>
>>>>>>
>>>>>>> On 6/25/2018 11:20 AM, Pascal Thubert (pthubert) wrote:
>>>>>>> Hello Charlie
>>>>>>>
>>>>>>> Section 6 of RFC 4944 builds an EUI 48 out of panid :0: short
>>>>>>> address and
>>>>>> from there an interface ID for IPv6. Is that what you are after?
>>>>>>>
>>>>>>> Pascal
>>>>>>>
>>>>>>>> Le 25 juin 2018 à 19:46, Charlie Perkins
>>>>>>>> <charles.perkins@earthlink.net> a
>>>>>> écrit :
>>>>>>>> Hello folks,
>>>>>>>>
>>>>>>>> The reason why I asked about why 0xFFFE was chosen, was because I
>>>>>>>> am
>>>>>> trying to understand how best to do something similar for 802.15
>>>>>> devices that have a PAN-ID and a 16-bit short address as in IEEE
>>>>>> 1901.2.  Or, if someone has already done it, then even better.
>>>>>>>> What I saw was to make the PAN-ID into the leading 16 bits, by
>>>>>>>> analogy to
>>>>>> making the OUI into the leading 24 bits.  But the OUI already had
>>>>>> bits set aside for U/L and I/G, whereas the PAN ID does not.  So,
>>>>>> setting the U/L bit would effectively change the PAN-ID and that
>>>>>> seems wrong to me.  A similar problem exists already in IEEE 1901.1
>>>>>> because the NID (Network ID) is made into the leading 24 bits of
>>>>>> the EUI-64.  So, two devices on different Networks that happen to
>>>>>> have the same 16-bit equipment identifier could end up with the
>>>>>> same IPv6
>>>> address.
>>>>>>>> I have looked in a number of places for an existing design, or
>>>>>>>> for
>>>>>> information to guide the design, so far coming up empty handed.
>>>>>>>> Thanks for any help!
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Charlie P.
>>>>>>>>
>>>>>>>>
>>>>>>>>> On 6/24/2018 9:22 PM, Donald Eastlake wrote:
>>>>>>>>> OK, it would have been better if I had said "converts the format
>>>>>>>>> of X to Y" instead of "converts X to Y".
>>>>>>>>>
>>>>>>>>> In any case, the original question from Charlie had nothing to
>>>>>>>>> do with why or how a larger 64 bit MAC address space would be of
>>>>>>>>> benefit or what its goals were. I believe he was just asking
>>>>>>>>> where the 0xFFFE came from that is actually and currently used
>>>>>>>>> in, for example, construction of some IPv6 addresses from 48 bit
>>>>>>>>> MAC addresses. As far as I know it came from the IEEE. See for
>>>>>>>>> example http://standards.ieee.org/develop/regauth/tut/eui.pdf
>>>>>>>>> which, while it deprecates this "mapping", still documents FF-FF
>>>>>>>>> and FF-FE as insertions. An earlier IEEE tutorial which, as I
>>>>>>>>> call, documented this mapping without any deprecation, seems to
>>>>>>>>> no longer be on the
>>>> web..
>>>>>>>>> Thanks,
>>>>>>>>> Donald
>>>>>>>>> ===============================
>>>>>>>>> Donald E. Eastlake 3rd   +1-508-333-2270 (cell)
>>>>>>>>> 155 Beaver Street, Milford, MA 01757 USA  d3e3e3@gmail.com
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> On Sun, Jun 24, 2018 at 9:27 PM, Geoff Thompson
>>>>>> <thompson@ieee.org> wrote:
>>>>>>>>>> Inserting "0xFFFF to convert a MAC-48 to and EUI-64" or "0xFFFE
>>>>>>>>>> to convert an EUI-48 to an EUI-64"
>>>>>>>>>> does not actually "convert" anything in a useful way except to
>>>>>>>>>> to make a "EUI-48" readable in a 64 bit system.
>>>>>>>>>>
>>>>>>>>>> The purpose of developing EUI-64 was to have a larger address
>>>>>>>>>> space that could be used for (among other things) software
>> instances.
>>>>>>>>>> Having a fixed 16 bit value in a 64 bit address does nothing
>>>>>>>>>> towards achieving that goal or slowing down the usage of 48 bit
>>>>>>>>>> addresses to extend the life of 802 physical networks.
>>>>>>>>>>
>>>>>>>>>> Geoff Thompson
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Jun 24, 2018, at 5:52 PMPDT, Donald Eastlake
>>>>>>>>>> <d3e3e3@gmail.com>
>>>>>> wrote:
>>>>>>>>>> Hi Charlie,
>>>>>>>>>>
>>>>>>>>>> As I recall, there is/was this distinction between MAC-48 and
>>>>>>>>>> EUI-48 addresses. I think MAC-48 was just for hardware and
>>>>>>>>>> EUI-48 was for other devices and software. Anyway, you inserted
>>>>>>>>>> 0xFFFF to convert a MAC-48 to and
>>>>>>>>>> EUI-64 and 0xFFFE to convert an EUI-48 to an EUI-64. The RFCs
>>>>>>>>>> that talk about extending a 48 bit address to 64 bits to use as
>>>>>>>>>> the low order bits of an IPv6 address say that 0xFFFE was used
>>>>>>>>>> by mistake and that 0xFFFF should have been used (see for
>>>>>>>>>> example the Note on page 22 of RFC 4291) but it was decided to
>>>>>>>>>> stick with 0xFFFE for that
>>>>>> purpose. Hope this helps.
>>>>>>>>>> Thanks,
>>>>>>>>>> Donald
>>>>>>>>>> ===============================
>>>>>>>>>> Donald E. Eastlake 3rd   +1-508-333-2270 (cell)
>>>>>>>>>> 155 Beaver Street, Milford, MA 01757 USA  d3e3e3@gmail.com
>>>>>>>>>>
>>>>>>>>>> On Fri, Jun 22, 2018 at 9:54 PM, Charlie Perkins
>>>>>>>>>> <charles.perkins@earthlink.net> wrote:
>>>>>>>>>>> Hello folks,
>>>>>>>>>>>
>>>>>>>>>>> Does anyone here remember why 0xFFFE were chosen to be the
>>>>>>>>>>> filler bits (i.e., bytes 4 and 5 of 8) when expanding a 48-bit
>>>>>>>>>>> MAC address to
>>>>>> be EUI-64?
>>>>>>>>>>> It is not explained in RFC 2464.
>>>>>>>>>>>
>>>>>>>>>>> Or maybe there was not a reason...?
>>>>>>>>>>>
>>>>>>>>>>> Thanks in advance,
>>>>>>>>>>> Charlie P.
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> ieee-ietf-coord mailing list
>>>>>>>>>>> ieee-ietf-coord@ietf.org
>>>>>>>>>>> https://www.ietf.org/mailman/listinfo/ieee-ietf-coord
>>>>>>>>>> _______________________________________________
>>>>>>>>>> ieee-ietf-coord mailing list
>>>>>>>>>> ieee-ietf-coord@ietf.org
>>>>>>>>>> https://www.ietf.org/mailman/listinfo/ieee-ietf-coord
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> ieee-ietf-coord mailing list
>>>>>>>>> ieee-ietf-coord@ietf.org
>>>>>>>>> https://www.ietf.org/mailman/listinfo/ieee-ietf-coord
>>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> ieee-ietf-coord mailing list
>>>>>>>> ieee-ietf-coord@ietf.org
>>>>>>>> https://www.ietf.org/mailman/listinfo/ieee-ietf-coord
>>>>>>> _______________________________________________
>>>>>>> ieee-ietf-coord mailing list
>>>>>>> ieee-ietf-coord@ietf.org
>>>>>>> https://www.ietf.org/mailman/listinfo/ieee-ietf-coord
>>>>> _______________________________________________
>>>>> ieee-ietf-coord mailing list
>>>>> ieee-ietf-coord@ietf.org
>>>>> https://www.ietf.org/mailman/listinfo/ieee-ietf-coord
>>> _______________________________________________
>>> ieee-ietf-coord mailing list
>>> ieee-ietf-coord@ietf.org
>>> https://www.ietf.org/mailman/listinfo/ieee-ietf-coord
>> _______________________________________________
>> ieee-ietf-coord mailing list
>> ieee-ietf-coord@ietf.org
>> https://www.ietf.org/mailman/listinfo/ieee-ietf-coord