Re: [babel] Shepherd's review of draft-ietf-babel-hmac-02

Donald Eastlake <d3e3e3@gmail.com> Thu, 27 December 2018 05:23 UTC

Return-Path: <d3e3e3@gmail.com>
X-Original-To: babel@ietfa.amsl.com
Delivered-To: babel@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 14449128B01; Wed, 26 Dec 2018 21:23:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.749
X-Spam-Level:
X-Spam-Status: No, score=-1.749 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=no 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 Wm5wQ3Yjl9O7; Wed, 26 Dec 2018 21:23:44 -0800 (PST)
Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) (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 8D57812894E; Wed, 26 Dec 2018 21:23:44 -0800 (PST)
Received: by mail-io1-xd31.google.com with SMTP id r200so13706309iod.11; Wed, 26 Dec 2018 21:23:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8M54/dJqvKpk7zrktjwvOaN5KSBVIeM3c/EWNfAaLSY=; b=Zv23wgMnUwfnfqL5laLPIsmE/CEHn4u2P+fC2jpyTmfCT8I11RfGtKYbpsPUd9lScy rVsvzdH1QBRjSRY6AeecM+shp5/aMavwMVibAnfuoyjXtanlTIiyMp2/ziT3YX0QpWx2 VjXK9PorHHQ3MoXeNf6LmdctTRw0NU8iTx1nIO1tX8dm2x1YMHxUGPfl46AP+JIBopTT un50HV0vJfFQBKbgBWBhFx2Ku6Cfc8LCUa/8HIp8IN/diccuJP0aXCOtCsYtGAxBDB2o BTOf2kGWzZTD6YQtmIOshY52QhOkzgOMf6b+cpC1zeZvDtwRI9/AVsDMNRMx/JJIrIM9 q9Ug==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8M54/dJqvKpk7zrktjwvOaN5KSBVIeM3c/EWNfAaLSY=; b=Mt3t4HfzEtKaDm9qS8JK1cyJ7fLKtL6JWlAh2CiMinb6j7SDl4zST4PGJDL0Z5lcS3 gtTlnmGlquwPnI2H2xtOJGhNwoNMyVDR+wsK5d/RVuAu9/eebbLmy5RDM5zDTIgQS4TH KmTcqcR8EZ0+Yp/neR1XEfGFc9j7CJ/k8uHBDTysBubABjfwO8UExK68Rnip5zzv0kGM oCHCATX+A2pda0iVSAJcqsbodGc9q8ugh0piAcf+6ycgemH1rs34SMOBiluoPPF6M0+F S05iTMTbXEg3WzfCJla9lPdaEkfkgu6QNaOnlqv4SXCdnXCl1OtLAb/AQ4W4hdl/4giL 3vyw==
X-Gm-Message-State: AJcUukckaph+PqOVcCy5NhLimYC8Hp2bGo6t0T+hlSgdZIGEGM93lPjL B6PBEj1j0ZjllMkCvjtJ2LjiwMbmblKxomGsRW4=
X-Google-Smtp-Source: ALg8bN73bIqgEii4jMEBFgPwFTxsY5zdRuQ5GYZ/0DAKRZDUbrIjP+39Phl+N/+P9Brgb0z+Od35t4+tu7Q6cWP+Llo=
X-Received: by 2002:a6b:e919:: with SMTP id u25mr15731502iof.132.1545888223736; Wed, 26 Dec 2018 21:23:43 -0800 (PST)
MIME-Version: 1.0
References: <CAF4+nEGhxKF0ChmLyJzYy9QimhitCvjGGiw7U3stXP3uDkyd=Q@mail.gmail.com> <87ftuk9klr.wl-jch@irif.fr>
In-Reply-To: <87ftuk9klr.wl-jch@irif.fr>
From: Donald Eastlake <d3e3e3@gmail.com>
Date: Thu, 27 Dec 2018 00:23:32 -0500
Message-ID: <CAF4+nEG3VDi8ZRkbA3ZhXe5fdi+7txmrJc017FLjeBtir0J=PA@mail.gmail.com>
To: Juliusz Chroboczek <jch@irif.fr>
Cc: Babel at IETF <babel@ietf.org>, babel-chairs <babel-chairs@ietf.org>, draft-ietf-babel-hmac@ietf.org
Content-Type: multipart/alternative; boundary="00000000000070392f057dfa262e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/OKAClJSRAxtDUyVYE2cm1kAXXL0>
Subject: Re: [babel] Shepherd's review of draft-ietf-babel-hmac-02
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "A list for discussion of the Babel Routing Protocol." <babel.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/babel>, <mailto:babel-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/babel/>
List-Post: <mailto:babel@ietf.org>
List-Help: <mailto:babel-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/babel>, <mailto:babel-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 27 Dec 2018 05:23:49 -0000

Hi Juliusz,

Deleting stuff where we don't disagree:

On Wed, Dec 26, 2018 at 2:03 PM Juliusz Chroboczek <jch@irif.fr> wrote:
>
> ...
>
> > Section 5.2:
> > The diagram is odd. I would recommend sliding the Index field and
> > preceding vertical bar character to the left so it starts aligned
> > with the Type.
>
> I've tried, but I didn't like the result.  I'll leave it as it is, if
> that's okay with you.

I'm pretty sure the draft with the current figure is going to run into
problems at AD review and if it survives that, I can pretty much guarantee
the draft will run in problems with at least one AD when it hits the IESG.
The current figure tries to be in the style used for protocol headers but
that isn't the style normally used in the IETF for TLVs. The alternative
figures I included in my comments are more in the traditional figure style
for a Routing area TLV. See, for example, the numerous TLV and sub-TLV
diagrams in https://tools.ietf.org/html/rfc7176 which are close to my
second suggestion (except that I squeezed the lines a bit, dropping the
alternative "+" signs so that four bytes would fit more easily on a line).
Or https://tools.ietf.org/html/rfc8401 which has diagrams closer to my
first example.

If you really want to use a protocol header style figure for this TLV, I
think you will end up needing to change it to something like the following:
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     Type      |    Length     |         PC - upper half       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |         PC - lower half       |            Index...
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

> ...
>
> > While it is reasonable, for implementation convenience, that there is
> > a maximum size for Index, perhaps for cryptographic strength, there
> > should be a minimum length, maybe 12 bytes?
>
> I disagree.  The only property that the index needs to satisfy is that it
> is never reused for a different PC sequence for a given (key, sender)
> pair.  In particular, if a node never loses state (e.g. it has reliable
> persistent storage), then it never needs to change indices -- and in that
> case, a 0-octet index is suitable.

The assumption that a node will never lose state and never count out the PC
space seems quite brittle to me.

>
> ...

Thanks,
Donald
===============================
 Donald E. Eastlake 3rd   +1-508-333-2270 (cell)
 1424 Pro Shop Court, Davenport, FL 33896 USA
 d3e3e3@gmail.com

> Thanks again,
>
> -- Juliusz