Re: [lisp] Jari Arkko's Discuss on draft-ietf-lisp-lcaf-17: (with DISCUSS and COMMENT)
Dino Farinacci <farinacci@gmail.com> Fri, 14 October 2016 13:30 UTC
Return-Path: <farinacci@gmail.com>
X-Original-To: lisp@ietfa.amsl.com
Delivered-To: lisp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EED371294F2; Fri, 14 Oct 2016 06:30:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=unavailable 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 nIT1P04iZMd5; Fri, 14 Oct 2016 06:30:08 -0700 (PDT)
Received: from mail-lf0-x22b.google.com (mail-lf0-x22b.google.com [IPv6:2a00:1450:4010:c07::22b]) (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 79A121294E7; Fri, 14 Oct 2016 06:20:32 -0700 (PDT)
Received: by mail-lf0-x22b.google.com with SMTP id x79so201017501lff.0; Fri, 14 Oct 2016 06:20:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=XIHFjCeLaAsgfzcT97JGOW8TN8mj8niBpQAfcda0jfg=; b=d/f7WWnUWG8qmHVpXwhcjk4g3+PEuCEmGu5lu4DUuMoGhgWJiHGzUhPBKpQfvza7D4 51XHIfSPNOOSIBRFgNAOpSS/AZfuwyzSIN53Est8EfCE6VfIC6h1M6WQGuctfYEaxmJr NFDm4KQ83tPGdTSMDNWri1R+JDAumBFXrSMxHS3E65VDlzOHw0pmcp9wO1tOZgG6Xdys fmuJgmyB3prW/GW/tZvhly343ZNZpu+qilTbxeMCN19/MgkxrM3+YjMQC/y0jcQGlDmu 6E0rJzGt9H+cToGY2PRjrSccT4zgRuR/R72Tj6s5j4NYsSElcopsG5+16gJYlxihRSCB gYLg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=XIHFjCeLaAsgfzcT97JGOW8TN8mj8niBpQAfcda0jfg=; b=NTxwYdOEISumHTPuZEUTBW368toIxr4uMW2TJMEnCJO6AOQuvUtMaMZVoP3+JEqvVO cETrY1j3H9m5wW9qpeyMGljgK8zFsERJ+JFK7KVkL0WlTwuLDdEcTgKIVB1l4Vb05ukN zNfBmhTBmEa8L7jrs3AiW4fdtOZ9v7N6nqnKKDVB5MXG7wFfGbBrDOqaDJj0RGjQicJ9 7GeWJqj54V9FlERe7FEHF4zDphXQaUcz/z9nLbcye40wapd72XkbAj2t5CxhMrWzlkhB EcXoNV9fCoVrq75ksoh4cyHBzqNr8erF8dVwziWlevShFlSTQQgaNaFXHNslxn79LPd0 AVoA==
X-Gm-Message-State: AA6/9Rnxaln9ejPGsiEFEcEXyJ2L1xdjeA5qTkSl5lSUxHWwIR89PrI7Bh/enc1nqDiIOg==
X-Received: by 10.28.66.26 with SMTP id p26mr5631404wma.120.1476451230676; Fri, 14 Oct 2016 06:20:30 -0700 (PDT)
Received: from [10.12.7.153] ([37.205.61.206]) by smtp.gmail.com with ESMTPSA id pe5sm31919035wjb.15.2016.10.14.06.20.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Oct 2016 06:20:30 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 10.0 \(3226\))
From: Dino Farinacci <farinacci@gmail.com>
In-Reply-To: <147634852994.2910.361748252588624377.idtracker@ietfa.amsl.com>
Date: Fri, 14 Oct 2016 06:20:29 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <0961C855-7F15-49E0-89B8-C1BB2CF8E834@gmail.com>
References: <147634852994.2910.361748252588624377.idtracker@ietfa.amsl.com>
To: Jari Arkko <jari.arkko@piuha.net>
X-Mailer: Apple Mail (2.3226)
Archived-At: <https://mailarchive.ietf.org/arch/msg/lisp/VpeOM3dBref2jQ5OP_3CeZ911pg>
Cc: lisp-chairs@ietf.org, lisp@ietf.org, peter@akayla.com, The IESG <iesg@ietf.org>, draft-ietf-lisp-lcaf@ietf.org
Subject: Re: [lisp] Jari Arkko's Discuss on draft-ietf-lisp-lcaf-17: (with DISCUSS and COMMENT)
X-BeenThere: lisp@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: List for the discussion of the Locator/ID Separation Protocol <lisp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lisp>, <mailto:lisp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lisp/>
List-Post: <mailto:lisp@ietf.org>
List-Help: <mailto:lisp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lisp>, <mailto:lisp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Oct 2016 13:30:15 -0000
> Thanks for writing this doc. I plan to recommend its approval, but there
> were a couple of things that I think should be fixed for clarity before
> issuing the RFC. First, I agree with Peter Yee who did a Gen-ART review
> on this document:
Thanks for your comments Jari. See responses inline.
> Page 6, Rsvd2 definition: the definition both says "reserved for future
> use"
>> and then says some types actually use it. That sounds like present
> use.
>> And to generically say that it should be sent as zero and ignored, but
> then
>> to give uses (such as Type 2) for it is confusing. I suggest
> rethinking
>> the wording here.
>
> The type that seems to differ from the "ignore" advice in Section 3 is
> Type 14. Perhaps you can reword somehow, or name the Rsvd2 field to
> Flags, and let the Subsections define that as "set to 0 and ignore on
> receipt". Or something along those lines?
I have suggested (and rewritten) that Rsvd2 be sent as 0 and ignored on receipt throughout.
> I also agree with this comment and believe the text should be corrected:
>
>> Page 6, Length definition: there's mention of a "Reserved" field
> that's
>> included in the minimum length of 8 bytes that are not part of the
> length
>> value. Since there are actually Rsvd1 and Rsvd2 fields in the generic
>> version of the LCAF and sometimes even Rsvd3 and Rsvd4 fields when
> using
>> specific Types, it might be better to spell out which reserved fields
> (Rsvd1
>> and Rsvd2) are meant here rather than giving the field a summary name
> that
>> doesn't actually appear in the format. This is also important because
> any
>> Rsvd3 and Rsvd4 fields are included in the Length field, so using a
> generic
>> "Reserved" description is ambiguous at best.
When the Length field is 0, it means that no more data follows (for the LCAF encoding), however the first 8 bytes of the LCAF are still included in the message. So I am trying to discuss the minimum length of the message (which is 8 bytes).
I have fixed the text to refer to Rsvd1 and Rsvd2 instead of “Reserved” since there is nothing labled “Reserved”.
>
> And this seems like a bug as well:
>
>> Page 13, RTR RLOC Address definition, 4th sentence: The ability to
> determine
>> the number of RTRs encoded by looking at the value of the LCAF length
>> doesn't seem feasible. 3 IPv4 RTR RLOCs will produce the same LCAF
> Length
>> as 1 IPv6 RTR RLOC.
It is not a bug. The number of addresses encoded can only be determined by parsing each one. And there is no value to include a count since you can compute while parsing (since you have to parse the message to retrieve and store variable length addresses).
> ----------------------------------------------------------------------
> COMMENT:
> ----------------------------------------------------------------------
>
> Subsections under Section 4 treat some of the fields in different ways.
> For instance, in most cases the subsections do not indicate anything
> about the base fields, but for instance Subsection 4.9 does say something
> about Rsvd1 and Rsvd2:
>
> Rsvd{1,2,3,4}: must be set to zero and ignore on receipt.
I will make consistent that Rsvd1 and Rsvd2 fields are described up front and Rsvd3/Rsvd4 in the specific type definitions, since they do not appear in all definitions.
> This text was raised as an issue by Peter as well:
>
> When there are no RTRs
> supplied, the RTR fields can be omitted and reflected by the LCAF
> length field or an AFI of 0 can be used to indicate zero RTRs
> encoded.
>
> Why are we giving two options? Or is this a
> be-conservative-what-you-send-but-liberal-in-what-you-accept situation?
Because the message can be truncated (to reduce size of message), or the RTR field can be encoded with an AFI=0 (which means no RTR address follows).
Dino
- [lisp] Jari Arkko's Discuss on draft-ietf-lisp-lc… Jari Arkko
- Re: [lisp] Jari Arkko's Discuss on draft-ietf-lis… Dino Farinacci
- Re: [lisp] Jari Arkko's Discuss on draft-ietf-lis… Dino Farinacci
- Re: [lisp] Jari Arkko's Discuss on draft-ietf-lis… Jari Arkko