Re: [dhcwg] Please review version -07 of draft-ietf-dhc-dhcpv6-stateful-issues

神明達哉 <jinmei@wide.ad.jp> Fri, 17 October 2014 17:27 UTC

Return-Path: <jinmei.tatuya@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 F1DB81A001D for <dhcwg@ietfa.amsl.com>; Fri, 17 Oct 2014 10:27:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.978
X-Spam-Level:
X-Spam-Status: No, score=-0.978 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=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 u20fYnv_BsHy for <dhcwg@ietfa.amsl.com>; Fri, 17 Oct 2014 10:27:26 -0700 (PDT)
Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8A67A1A000F for <dhcwg@ietf.org>; Fri, 17 Oct 2014 10:27:26 -0700 (PDT)
Received: by mail-wi0-f170.google.com with SMTP id hi2so4309564wib.3 for <dhcwg@ietf.org>; Fri, 17 Oct 2014 10:27:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=mvCCcHUyp0wWELnBG64Wqs2UZXeiC19PWrjwggp0cNg=; b=Iq0Ql2kN/ynJmzVq+XgxyOPBdoW/vO30CRiNYwuTX6BO/DLQ4sgP1vn5kUAW280rN0 XEuomVogfQ5WLyBINpZ3EXmkWURLdvLzY6WXsmcaeSZlXBQf8H4rhTznmYGZ15CUZRdZ ebTR+Z11nzfL6MrBzyc+dzRV0s57eWy+afrOpn//zAPZmPq2JS7NHN2YX1Ho7zN3cF7n J4kDuattgeStPgrTXgbqA7Te/awyXpXubdW4TxyEr0BFoK7dNnLZvNzXb3SjBJk1HtH2 tD1VkBy6/HyvlYmuUTe4NYeHnq/i1th0Hw+WEPN+8IiLqiPjlph6gM8XMwD4hDmoMXmt UHYA==
MIME-Version: 1.0
X-Received: by 10.180.149.130 with SMTP id ua2mr347301wib.31.1413566845138; Fri, 17 Oct 2014 10:27:25 -0700 (PDT)
Sender: jinmei.tatuya@gmail.com
Received: by 10.195.13.83 with HTTP; Fri, 17 Oct 2014 10:27:25 -0700 (PDT)
In-Reply-To: <489D13FBFA9B3E41812EA89F188F018E1B6D18F3@xmb-rcd-x04.cisco.com>
References: <542D1698.7030203@gmail.com> <CAJE_bqcJS45ULDLaGgzgE5ZeS-hFZhWUX4819-T_jObroJnv4Q@mail.gmail.com> <489D13FBFA9B3E41812EA89F188F018E1B6CEE2D@xmb-rcd-x04.cisco.com> <CAJE_bqeNyWa=hxyaaDRqUR0zgnfQCSZZOnToXSaSWm0m4CjUYg@mail.gmail.com> <489D13FBFA9B3E41812EA89F188F018E1B6D18F3@xmb-rcd-x04.cisco.com>
Date: Fri, 17 Oct 2014 10:27:25 -0700
X-Google-Sender-Auth: 0mf4emAQC6pqL3Iyy6VIKQgSbTw
Message-ID: <CAJE_bqffHJfaYPcmt5GygpDn6Hb+2BWqejsvA0imD09ONorMmw@mail.gmail.com>
From: 神明達哉 <jinmei@wide.ad.jp>
To: "Bernie Volz (volz)" <volz@cisco.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/dhcwg/TiSPWWUOG-wIFtzZgsOQam4EUqo
Cc: "dhcwg@ietf.org" <dhcwg@ietf.org>
Subject: Re: [dhcwg] Please review version -07 of draft-ietf-dhc-dhcpv6-stateful-issues
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: <http://www.ietf.org/mail-archive/web/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, 17 Oct 2014 17:27:28 -0000

At Thu, 16 Oct 2014 18:13:30 +0000,
"Bernie Volz (volz)" <volz@cisco.com> wrote:

> Well, what this was there for was to indicate that if there were no IAADDR/IAPREFIX options or the lifetimes were all 0, the "effective" T1 (and T2) for this IA_NA or IA_PD would be 0 and we would NOT want to use that. If the "effective" T1 is 0, we want the client to skip that set of T1/T2 values.
>
> In this case, the server would have had to send 0 not because it didn't calculate the T1/T2 values, but because that is what the values are. But the client is told that if these values are 0, it needs to calculate them (from the lifetimes in that IA). Thus the resulting ("effective") values are 0 too. And we don't want the client to Renew/Rebind immediately?

To be accurate: "if these values are 0", the client can send next
renew at any timing (slightly different from "the client is told to
calculate it") per Section 18.1.3 of RFC 3315:

   If T1 or T2 is set to 0 by the server (for an IA_NA) or there are no
   T1 or T2 times (for an IA_TA), the client may send a Renew or Rebind
   message, respectively, at the client's discretion.

And, since it's up to the client how to calculate the value, the
"effective" value is not necessarily 0.

Obviously, we wouldn't want immediate (and repeated) renew/rebind if
the calculated value is somehow 0.  RFC 3315 is just silent about
these corner cases, and in my understanding it's left to implementor's
choice.  In a DHCPv6 client I'm relatively familiar with, it sets T2 to
30 (sec) and T1 to 18:

        /*
         * Be proactive for too-small timeout values.  Note that
         * the adjusted values may make some information expire
         * without renewal.
         */
        if (ia->t2 < DHCP6_DURATION_MIN) { /* DHCP6_DURATION_MIN=30*/
            ia->t2 = DHCP6_DURATION_MIN;
            ia->t1 = ia->t2 * 5 / 8;
        }

Anyway, these are minor technicality in this context.  As I said
in my previous message, I'm okay with any sensible and clearly-written
behavior since the basic assumption is T1/T2 and lifetimes should be
same for all IAs and other cases are exceptions.  I just tried to say
that the current text of the draft is not clear enough.

--
JINMEI, Tatuya