Re: [6tisch] 6tisch join requirements for 6top

Michael Richardson <mcr+ietf@sandelman.ca> Sun, 30 November 2014 21:36 UTC

Return-Path: <mcr@sandelman.ca>
X-Original-To: 6tisch@ietfa.amsl.com
Delivered-To: 6tisch@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 71A0E1A1A94 for <6tisch@ietfa.amsl.com>; Sun, 30 Nov 2014 13:36:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level:
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 1pxPhF0ksNwc for <6tisch@ietfa.amsl.com>; Sun, 30 Nov 2014 13:36:03 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 108C51A024E for <6tisch@ietf.org>; Sun, 30 Nov 2014 13:36:02 -0800 (PST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id DCE8120012; Sun, 30 Nov 2014 16:39:11 -0500 (EST)
Received: by sandelman.ca (Postfix, from userid 179) id 3E118637F5; Sun, 30 Nov 2014 16:36:01 -0500 (EST)
Received: from sandelman.ca (localhost [127.0.0.1]) by sandelman.ca (Postfix) with ESMTP id 2722563740; Sun, 30 Nov 2014 16:36:01 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Tero Kivinen <kivinen@iki.fi>
In-Reply-To: <21620.25926.119766.130028@fireball.kivinen.iki.fi>
References: <D0876D12.C03C%rsudhaak@cisco.com> <32412.1415737868@sandelman.ca> <D087B62D.C081%rsudhaak@cisco.com> <10653.1415740821@sandelman.ca> <CADJ9OA_LFkGDuyG_0bf=07d7cvC9FNRr5cMGTmYw2PR=g9XQHA@mail.gmail.com> <8193.1416253349@sandelman.ca> <21619.12717.53454.214321@fireball.kivinen.iki.fi> <E045AECD98228444A58C61C200AE1BD848A77CB5@xmb-rcd-x01.cisco.com> <21620.25926.119766.130028@fireball.kivinen.iki.fi>
X-Mailer: MH-E 8.2; nmh 1.3-dev; GNU Emacs 23.4.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha1"; protocol="application/pgp-signature"
Date: Sun, 30 Nov 2014 16:36:01 -0500
Message-ID: <5693.1417383361@sandelman.ca>
Sender: mcr@sandelman.ca
Archived-At: http://mailarchive.ietf.org/arch/msg/6tisch/B9dcEWRekKdNXOKbUT9X6IqsczU
Cc: "Raghuram Sudhaakar (rsudhaak)" <rsudhaak@cisco.com>, "Pascal Thubert (pthubert)" <pthubert@cisco.com>, Robert Moskowitz <rgm@htt-consult.com>, "6tisch@ietf.org" <6tisch@ietf.org>
Subject: Re: [6tisch] 6tisch join requirements for 6top
X-BeenThere: 6tisch@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "Discuss link layer model for Deterministic IPv6 over the TSCH mode of IEEE 802.15.4e, and impacts on RPL and 6LoWPAN such as resource allocation" <6tisch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/6tisch>, <mailto:6tisch-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/6tisch/>
List-Post: <mailto:6tisch@ietf.org>
List-Help: <mailto:6tisch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6tisch>, <mailto:6tisch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 30 Nov 2014 21:36:05 -0000

Tero Kivinen <kivinen@iki.fi> wrote:
    >> [PT] The use of a well-known beacon key (Defaulting to"6TISCHJOIN")
    >> has been debated for a while. The lack of an ethertype has already
    >> lead in the field to frame from protocol A being understood -wrong-
    >> by protocol B. 

    > So when someone is running the protocol A and B both over the same
    > default well-known key then you still have the problem...

The point is that protocol A says, "join key is FOO",
and protocol B says "join key is BAR".  They never conflict that way.

    >> Even if that looks anecdotic, we are now facing the need to reuse
    >> some messaging footprint in 6LoWPAN, and if that happens, we need to
    >> make sure that the overlapping protocol elements never mix in a same
    >> network. 

    > Didn't 6LoWPAN add some multiplexer in the beginning of data, or do I
    > remember wrong? 

Yes-ish, but it's only a few bits.

    > Hmmm..actually even Key Identifier Modes 2 or 3 cannot be used, as
    > they also require the MAC to fill the KeyDescriptor beforehand, and
    > there they will need to now the extended address of the coordinator.

    > Of course the 15.4 does not tell how the KeyDescritors are created, I
    > have always assumed that upper layer creates them when the inbound
    > security processing fails with UNAVAILABLE_KEY. I.e. this error would
    > somehow be passed to the upper layer along with the KeyIdMode,
    > KeySource, KeyIndex, device addressing mode, device PANID and device
    > address. The upper layer would then see if it can create KeyDescriptor
    > entry for the key and if so, it would do so and for the next packet
    > from the same peer the entry would be there. All of this is of course
    > NOT specified in the 15.4, so there is no way to say what
    > implementations do.

I'm hoping that Jonathan and Chris will chime in here and explain how they
implemented the well known join key in WirelessHART.

    > So if this kind of joining key for beacon is wanted, I think the best
    > way would be to use Key Identifier Mode 3, as then the beacon actually
    > has all the information needed to create the KeyDescriptor. This will
    > then mean that beacons will have 14 bytes of auxiliary security
    > header, and 4 to 16 bytes of MIC. Adding for example 10-byte SSID
    > Header IE would make packets smaller...

    > Note, that receiving peer needs to know the extended address of the
    > sender in the 15.4 to be able to decrypt the packet, as the nonce
    > generation depends on that. There is no way around that. 

When you say "extended address", do you mean 64-bit EUI?

-- 
]               Never tell me the odds!                 | ipv6 mesh networks [ 
]   Michael Richardson, Sandelman Software Works        | network architect  [ 
]     mcr@sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [