Re: [alto] Update review of draft-ietf-alto-cost-calendar-02

Jensen Zhang <jingxuan.n.zhang@gmail.com> Thu, 07 December 2017 02:43 UTC

Return-Path: <jingxuan.n.zhang@gmail.com>
X-Original-To: alto@ietfa.amsl.com
Delivered-To: alto@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C05B01241F3; Wed, 6 Dec 2017 18:43:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.698
X-Spam-Level:
X-Spam-Status: No, score=-2.698 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham 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 s10faeLAmSFd; Wed, 6 Dec 2017 18:43:05 -0800 (PST)
Received: from mail-oi0-x229.google.com (mail-oi0-x229.google.com [IPv6:2607:f8b0:4003:c06::229]) (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 E8CCA1242F5; Wed, 6 Dec 2017 18:43:04 -0800 (PST)
Received: by mail-oi0-x229.google.com with SMTP id w131so4003297oiw.0; Wed, 06 Dec 2017 18:43:04 -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=jgSTTHG/02zVHYjCViJoXPBvZI1AXR7IASBaiEtqdO8=; b=OKd0v+KauymZnh0ncu6ze6OT1XnPbIuXOeT/MYnMr4vNiEDOijumQaOoAREm8GotQR yrSj/fPdk6vjCtgNS/SnR7XgxjvPqLOEEF23Ftp2jffu+VzWHAnncK+e3PfV0CzWrob2 WHrX9fDViQy2R/6sUGw8ebGeyCX6pOcUo75EEQ2qWah30EqUFsm+f7zwL7hPwFcSMz25 bUGx3QFgiWRL4P1o9BnmIoEhQSI5CQJFjyO4HvTdSE76wShbpSVdGe3YCrsSXu3+evEb nDiagHJbCX7XEIet7mXB0Tf5pkpiu1YcxHRcPMg+2iBLXXm2weVJ+Q7qRe3wxvSwD0aO rSqg==
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=jgSTTHG/02zVHYjCViJoXPBvZI1AXR7IASBaiEtqdO8=; b=RaHFp9nbrsfmYFACc3bWgIKzXik5aVn/bM9mS+4WuFbIOwjpCxPd/aUBaAxeRjqyNN fC2kq1ufO1FXMhZIHYkans3vGMCOZpFrZUQmnzfPOImPmBh5NYharwSHpUm8oEO6OIz4 xtl74AYaBDPi1NX3lpaFslm1Jwa4ao445oY4fegicZb/NycwcrPsjbPRj8IyL0l1ZQZW wcX1C3IqrtBM6zSarANOIWDQYbBf4RwPZpW6DsIGVftH6eRZqHN8sg6XlIlyVvOne8Mh eX+1Iwf5bMilgzlLv9zBvPethHjkpDD+iq483H6aDhvn06BatUn5cH8Sdrg2y2kx973R WA3g==
X-Gm-Message-State: AKGB3mJUvVyfkwmI9cVsjEg72riUiPqWeKNR/AkzKsG51ea5ygXeN3dq H1j87alVmFFvcZRKerwGEFqfcxGI+RgkPo7yjPs=
X-Google-Smtp-Source: AGs4zMYpyB4xZlDU8E9GHMehH8v7diZCbacIPIY7nM6uz/liiryHaKDCQYJNuEahsmNF4UdTp6PkPWbzrjJuWj7Hyac=
X-Received: by 10.202.44.17 with SMTP id s17mr2124444ois.309.1512614584067; Wed, 06 Dec 2017 18:43:04 -0800 (PST)
MIME-Version: 1.0
References: <CAAbpuyrt9yo_TE-nKGOHaSSHg-M8VprcT-4c2PAKZaXXTOXe3w@mail.gmail.com> <HE1PR0701MB24593310746D7F896A23FDBD95320@HE1PR0701MB2459.eurprd07.prod.outlook.com>
In-Reply-To: <HE1PR0701MB24593310746D7F896A23FDBD95320@HE1PR0701MB2459.eurprd07.prod.outlook.com>
From: Jensen Zhang <jingxuan.n.zhang@gmail.com>
Date: Thu, 07 Dec 2017 02:42:53 +0000
Message-ID: <CAAbpuyqAXjQM-MLW_2T4oRRDEhj56067KAu+yEjsrkrkgZV15A@mail.gmail.com>
To: "Randriamasy, Sabine (Nokia - FR/Paris-Saclay)" <sabine.randriamasy@nokia-bell-labs.com>
Cc: "draft-ietf-alto-cost-calendar@ietf.org" <draft-ietf-alto-cost-calendar@ietf.org>, IETF ALTO <alto@ietf.org>
Content-Type: multipart/alternative; boundary="001a1137c536f72dfc055fb70659"
Archived-At: <https://mailarchive.ietf.org/arch/msg/alto/JZESLf3cWsslwWXeiPSeUN_V74M>
Subject: Re: [alto] Update review of draft-ietf-alto-cost-calendar-02
X-BeenThere: alto@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Application-Layer Traffic Optimization \(alto\) WG mailing list" <alto.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/alto>, <mailto:alto-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/alto/>
List-Post: <mailto:alto@ietf.org>
List-Help: <mailto:alto-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/alto>, <mailto:alto-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Dec 2017 02:43:08 -0000

Hi Sabine,

It is good to know the revision is in progress. Please see my comments
inline.

Best,
Jensen

On Thu, Dec 7, 2017 at 2:18 AM Randriamasy, Sabine (Nokia -
FR/Paris-Saclay) <sabine.randriamasy@nokia-bell-labs.com> wrote:

> Hi Jensen,
>
>
> Indeed, the revison of the drafts is in progress and thanks a lot for your
> comments that will be considered for the next version. Please see my
> feedback inline.
>
> In the new text proposals, text in ++blabla++ format means "blabla" is
> added to the initial text.
>
>
> Thanks,
>
> Sabine
>
>
>
>
> ------------------------------
> *De :* Jensen Zhang <jingxuan.n.zhang@gmail.com>
> *Envoyé :* samedi 2 décembre 2017 09:04
> *À :* Randriamasy, Sabine (Nokia - FR/Paris-Saclay);
> draft-ietf-alto-cost-calendar@ietf.org
> *Cc :* IETF ALTO
> *Objet :* Update review of draft-ietf-alto-cost-calendar-02
>
> Hi Sabine and other authors,
>
> How are you? Since the last review from Dawn (
> https://mailarchive.ietf.org/arch/msg/alto/ZSH5Z1ujBvh4YjQxZLwjPNocXRM/?qid=4922c9c845f02b2bd9c02cc751c74c87),
> I have not found the draft was updated yet. From the agreement in IETF 99,
> there are a lot of text harmonization work. I assume the revision is in
> progress. I just append some technical review for the current version
> below. Hopefully, it will be helpful.
>
> ===
>
> Section 3.1., paragraph 3:
>
> >    A member "calendar-attributes" MUST appear only once for each
> >    applicable cost type name of a resource entry.  If "calendar-
> >    attributes" are specified several times for a same "cost-type-name"
> >    in the capabilities of a resource entry, the ALTO client SHOULD
> >    ignore any calendar capabilities on this "cost-type-name" for this
> >    resource entry.
>
>   I think it will be much better to adopt the finest granularity than
>   just ignore all, if there are more than one "calendar-attributes"
>   object for the same "cost-type-name".
>
> => OK, the text may be too careful and we may allow a client to consider
> the first set of attributes and ignore the next ones.
> The sentence would then become: "... the ALTO client SHOULD  ++ only
> consider the first occurrence of "calendar-attributes and++  ignore any
> ++additional++  calendar capabilities   ..."
>
> (Jensen) The modification looks fine for me.

>
> Section 3.1., paragraph 9:
>
> >       *  is the duration of an ALTO calendar time interval, expressed as
> >          a time unit appended to the number of these units.  The time
> >          unit, ranges from "second" to "year".  The number is encoded
> >          with an integer.  Example values are: "5 minute" , "2 hour",
> >          meaning that each calendar value applies on a time interval
> >          that lasts respectively 5 minutes and 2 hours.
>
>   I prefer to use another field (i.e. "time-interval-unit")
>   to express the time unit and make "time-interval-size" a simple
>   JSONNumber. Because it can simplify the data validation. In this way,
>   the server and client only need to check the data type (number and
>   enumeration) without validating the data content.
>
> ==> the motivation here was mainly to lighten the data volume by using
> only one fieldand make sure that a change in either units and number of
> units will not be missed by the client.
> Do you mean that the parsing of the value of the current
> "time-interval-size" is longer and more complex?
>
> (Jensen) I just concern the potential error from the different
implemetations, when introducing the extra syntax in the data content.

For example, if we follow the current definition of "time-interval-size",
different servers may implement the description "a time unit appended to
the number of these units" in different ways:

- One server may specify a regex like
/^\d+\w*(second|minute|hour|month|year)$/.
- But another server may enforce the expression as a number with **exact
one space** with a unit.
- And some other server may allow "week" as a unit.
- ...

But these information cannot be provided by the capabilities in the IRD
entry. So the client may assume the server implementation in some
inconsistent way and conduct some unexpected errors.

I don't know how strong the motivation to lighten the data volume is.
Because the IRD resource is always very small and seldom updated. It's not
like cost map and other resources which may achieve hundred MB volume.


> Section 4.1.1., paragraph 5:
>
> >    This field MUST NOT be specified if member "calendar-attributes" is
> >    not present for this information resource.
>
>   From section 8.3.7 of RFC7285, "ALTO implementations MUST ignore
>   unknown fields when processing ALTO messages", I think we need
>   to change "This field MUST NOT be specified" to "This field MUST
>   be ignored". Because if "calendar-attributes" is not present,
>   the server should be a legacy ALTO server which doesn't support
>   calendar extension. So the "calendared" field is an unknown field
>   in the request.
>
> ==> Indeed, we should minimize the error messages. So how about writing: "This
> field SHOULD NOT be specified if ++no++ member "calendar-attributes" is
> present for this information resource.  ++ It  will be ignored by a
> legacy ALTO Server, according to section 8.3.7 of RFC 7285. A
> Calendar-aware Server will return a response with a single cost value as
> specified in RFC 7285 ++ ".
>
> (Jensen) Looks fine for me.


> Section 4.2.1., paragraph 1:
>
> >    The extensions to the requests for calendared Endpoint Cost Maps are
> >    the same as for the Filtered Cost Map Service, specified in section
> >    XXXX of this draft.
>
>   Just a reminder. Don't forget to change "section XXXX".
>
> ==> good catch, thanks a lot.
>
> ===
>
> Once we have an update, I would like to proofread the revision.
>
> Chears,
> Jensen
>