Re: [dhcwg] comments on draft-ietf-dhc-sedhcpv6-10.txt

Lishan Li <lilishan48@gmail.com> Fri, 26 February 2016 07:30 UTC

Return-Path: <lilishan48@gmail.com>
X-Original-To: dhcwg@ietfa.amsl.com
Delivered-To: dhcwg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7DFA91ACDF0; Thu, 25 Feb 2016 23:30:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.449
X-Spam-Level:
X-Spam-Status: No, score=-1.449 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, MIME_8BIT_HEADER=0.3, SPF_PASS=-0.001] autolearn=no
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 bZkBSv_VSQO3; Thu, 25 Feb 2016 23:30:08 -0800 (PST)
Received: from mail-lb0-x232.google.com (mail-lb0-x232.google.com [IPv6:2a00:1450:4010:c04::232]) (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 CF14B1ACDEC; Thu, 25 Feb 2016 23:30:07 -0800 (PST)
Received: by mail-lb0-x232.google.com with SMTP id x1so41948993lbj.3; Thu, 25 Feb 2016 23:30:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=c0cLeZYHV7sRkS97k0fFM3hFciy1maOCN8ZWlWkBxmc=; b=EaG2h9/A42KpHm+EFYXAFaWQzWo65pXIMUu1Yu+dZ6uUlX4eIChOD+zNEyEb/Bxmbs e91b6lqUbtP/ACG+pDnzgatJ31jx/KsjoTQnPYLHzyUDYRCA52V+3HxegM6lvrd3Mm5y fWc7+V0o8Vidnyl6ih8stwKvg5O8XYbJs1mxvsEoNTe2E7xu0HH0bBTmL4vIz35bS8lg 3vYawdqTrJZ5HRaQErxBrMmR3/Zs8vmhyZpzRGFJ/yD3HokS5oPvZAzWrNhqffCs20NN fzBGcdaGTKpdzax/U1yF0akingN1ML/DLzKWY3Xf5OlR5FMsnwtPZbYVbgdg3ajoktgu pkLg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=c0cLeZYHV7sRkS97k0fFM3hFciy1maOCN8ZWlWkBxmc=; b=cEf4kQEukEylGM7PjJ3xfkPCSaXjOVzUQraJtqc5fNzamEGuNaS1lk0MfsHEdVw35y fSImrXdUQjuH917U/IqVsdtJpWDvqlgmsVXK7g/P8yXLg5Bjv9AnVMxTCc/BuPqXHb6Q TjUlwG5tBbHdwEIghLG08C68SQekhEd2ITbcGe4He3XnrV1Zb+PzRf5Kc6+3vJlyC3Kt 0ayYs+NvBwJ6c9zKfDl7e/cgwAlWcg3eLcUAOUrTKRNVWxrPX5ejfHYhT4Jw8quZ9K8A yuvR7WHthZUwxpWXm3UxGLm+xFNCVeWboyX3SG/D2gEbdSXvZKs0C1Ldp/TwvRqZ2ovb 4ExA==
X-Gm-Message-State: AD7BkJKWT7F+nBaCzMkNf3ebVpFt7a/0Ue/OqbL03XgmcRkfYq8C4aH+hdBGB6BCfOuJ1+OBE38DCrB6HIlUZw==
MIME-Version: 1.0
X-Received: by 10.112.12.98 with SMTP id x2mr36245lbb.76.1456471805904; Thu, 25 Feb 2016 23:30:05 -0800 (PST)
Received: by 10.114.79.194 with HTTP; Thu, 25 Feb 2016 23:30:05 -0800 (PST)
In-Reply-To: <CAJE_bqdH_0G+2RWz8H4k8qsgK3iSHrzKnMG+jP-Kjp7Ka5rtjw@mail.gmail.com>
References: <CAJE_bqdZTc57BGzVq8-EaOa7kT2ME9_3bXNKFr0WGk_MzLNOBQ@mail.gmail.com> <CAJ3w4NermaJtDzf3V4+WQcpJ5kEdWX6RQ9CyWiFmOmKw8+QZSQ@mail.gmail.com> <CAJE_bqc+1=CT66f88tB_DbavBmvnnYcK3a+LR_OwUWu_O-WnVw@mail.gmail.com> <CAJ3w4Ne8rU-cnvNqeM0x0PFw+mAD-TEmyegOJDgQuCiccFY2hg@mail.gmail.com> <CAJE_bqdBqjSG0UnGuKfjtQMB-Rp81pU7n_+Eq_Fb=yar+673hA@mail.gmail.com> <CAJ3w4NcmG18puJpzPFFvn4U8P7eQwh2WeMvcvH+UJHNPQd_BRw@mail.gmail.com> <CAJE_bqc9JHcUGCGW9VSPrHTBUe4tKowh9OHVbUA1qWwanWyYBg@mail.gmail.com> <CAJ3w4Nd+PbmQ3+fXGgMZHrh3NNejZmBaV0ytECjRc5KJ57HzPw@mail.gmail.com> <CAJE_bqdH_0G+2RWz8H4k8qsgK3iSHrzKnMG+jP-Kjp7Ka5rtjw@mail.gmail.com>
Date: Fri, 26 Feb 2016 15:30:05 +0800
Message-ID: <CAJ3w4NfU+aBMyvDMF8kxHV6TdWgFz3uNL61YpdsLWBGoXHQ1aQ@mail.gmail.com>
From: Lishan Li <lilishan48@gmail.com>
To: 神明達哉 <jinmei@wide.ad.jp>
Content-Type: multipart/alternative; boundary="001a11c39ea89dd1f8052ca74419"
Archived-At: <http://mailarchive.ietf.org/arch/msg/dhcwg/qMmBolbhfwowFD5mEdAmzYFLgtY>
Cc: "dhcwg@ietf.org" <dhcwg@ietf.org>, draft-ietf-dhc-sedhcpv6@ietf.org
Subject: Re: [dhcwg] comments on draft-ietf-dhc-sedhcpv6-10.txt
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <dhcwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dhcwg/>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Feb 2016 07:30:10 -0000

2016-02-26 1:53 GMT+08:00 神明達哉 <jinmei@wide.ad.jp>:

> At Thu, 25 Feb 2016 20:45:16 +0800,
> Lishan Li <lilishan48@gmail.com> wrote:
>
> > > Okay.  So focusing on the Reply message (#2): my point was:
> > >
> > > - in effect, its only content is the certificate (or public key).
> > > - the recipient is already expected to validate this only content
> > >   directly (by comparing it with locally pre-configured info, by using
> > >   a PKI, etc), so we do not necessarily need to provide additional
> > >   integrity protection for it by signing the message.
> > > - on the other hand, if we eliminate the signing and the signature
> > >   option from this, we'll completely eliminate this option from the
> > >   protocol.  This will help make the protocol simpler and reduce
> > >   development costs.
> > >
> > > If you still disagree, perhaps it helps if you can show a specific
> > > attack vector because of the lack of the signature.
> > >
> > > [LS]: Agree. But if we don't need the signature option, then the
> timestamp
> > option makes no sense, which is used to defend against anti-replay
> > attack before.
>
> For #2, correct.  We'll still need the timestamp option, though, for
> the anti-reply protection of encrypted messages. (We might be able to
> make it simpler such as a trivial sequence number, exploiting the fact
> that the message is encrypted.  In that sense, it may not have to be a
> "time stamp").
>
> [LS]: Agree. For the Reply message (#2), it does not contain the timestamp
option
because of the cleartext transmission. For the subsequent encrypted
message, the
timestamp option is used for message integrity check.
In general, in order to defend against the anti-replay attack, the
timestamp option
is used. As you said, the trivial sequence number can make it more simpler.
But if
the trivial sequence number is use, we need to define the format of the
trivial
sequence number. If the timestamp option is used, we can use the format
defined in
Section 5.3.1 of RFC3971.

> > > Right, but this argument also holds even if we have TOFU...
> [...]
> > > > > [LS]: In consideration of the support of TOFU and the add of all
> such
> > > > discussions and consensus, the better way for us is to add the
> public key
> > > > option as the before secure DHCPv6 version.
> > > > Am I correct?
> > >
> > > No, I just didn't see why the public key option was removed (the
> > > explanation regarding TOFU didn't make sense to me).  As I already
> > > said, I'm not necessarily opposed to removing it if there's a
> > > convincing reason that can outweigh its cons.
> > >
> > > [LS]: The self-signed certificate is the argument of the remove of the
> > public
> > key option. And we also need to supply some text to illustrate that it
> can
> > outweigh its cons. For the drawback of the method, the size of the DHCPv6
> > message is increased when we actually only need the public key, not the
> > certificate. However, the size of the X.509 certificate is not very
> large,
> > such as 1KB, which will not cause IPv6 fragment and other problem.
>
> Repeating my previous point just to make it sure that we are on the
> same page: the argument that a self-signed certificate should make a
> public key option redundant isn't new in our recent changes.  So I'd
> wonder why we are now bothering it.  If this is a completely new
> attempt of cleanup, I suggest making it very clear (i.e., it has
> nothing to do with mandated encryption etc) and discussing it
> accordingly.
>
> [LS]: The self-signed certificate make the DHCPv6 option redundant, which
is not a new problem caused by our defined mechanism. So we don't need to
bother it. Could you please check whether my understanding is correct?

Best Regards,
Lishan