[Gen-art] Gen-ART Last Call review of draft-ietf-anima-grasp-api-07

Paul Kyzivat <pkyzivat@alum.mit.edu> Wed, 28 October 2020 15:50 UTC

Return-Path: <pkyzivat@alum.mit.edu>
X-Original-To: gen-art@ietfa.amsl.com
Delivered-To: gen-art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 779593A0898; Wed, 28 Oct 2020 08:50:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=alum.mit.edu
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 OJrgpasGkYJc; Wed, 28 Oct 2020 08:50:15 -0700 (PDT)
Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2084.outbound.protection.outlook.com [40.107.92.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E96093A08A9; Wed, 28 Oct 2020 08:50:13 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=axd9ERSNCiRvsgQ5R13s1ImqUxmESw6I4JgTWWye5X2bAf1IOcY01UbaPszVEIX97DaQ3FjbEGsy+tgGdwjxCZzj6Vsde3BWWIyyUvCWGMr+o00RNS3mMT6F1fG2V41LwMXiJbgzCw+Gt4xJUyX5ouo2ftfljxtCp+GkJNVi8O+SzPTKPkDm0rvo2BPXxA0UMNdRRVkPi0rtuL6VxJM1KDO2ZaEk9kTUX8QINizql4ZNNidR9EM7cZKOjaAickBLfsoi4o/oqdQi/Q5OxtTjyC7B6VHYu1WBounfFp0Ps1PEbCXa8IRWQKxV0amIm4kBA9Rsv+ZziDCBNROYNdMqQQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tsHDgOO0yKHbQxf88CFherHH6dNXA10RmDdITD6kWZA=; b=KenUTqVru3AS53MCPzwP8EGhKHqeBEqoTYSIKwNnX0FhXkD46yb+f1DRs3rx0XcQEJQ7YkGKXWRwr5FwtzIYXdJlaKcfg5KqujyjDkgyWjRlk/R8zJg1aXfk6SMKCwiK0ln36w8P5Sx3AUkmjn6wfAld348VblddFWWlrs2ea1bBgAs6EnlYjzt1t56+WF7OW6cSFGM9E3Y7VnBipKJmx4KzaBwSnvromMzFUAVrIk8J0vtmX9DRpsNXmjiyUS2Q5VJAl/xXuQ/YED5SJ31USOP9S5+iUCML4VDRiITc+fNb9w8mZHOVZAPJKaGfB/kdlxq9PFJyuI9MfpnDbSOEBQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 18.7.68.33) smtp.rcpttodomain=ietf.org smtp.mailfrom=alum.mit.edu; dmarc=bestguesspass action=none header.from=alum.mit.edu; dkim=none (message not signed); arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alum.mit.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tsHDgOO0yKHbQxf88CFherHH6dNXA10RmDdITD6kWZA=; b=L3hdSOXY2DhmExFZe3ULJL7JgxX6iAAeGMNj6RSCrf6NCyu5aHcaA8RLvfmqgcAzR2Cw18+6knZD92IWqOzsLoxXgWHG1ZD64TRPJCrvAcqC6pZPil8RsqdaGEH+PzYiXJNcx+p4yRAyJYcmqAVIlVuiZHsxzI8Aee1M4I7Ug+Y=
Received: from BL1PR13CA0178.namprd13.prod.outlook.com (2603:10b6:208:2bd::33) by DM5PR1201MB0092.namprd12.prod.outlook.com (2603:10b6:4:54::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Wed, 28 Oct 2020 15:50:12 +0000
Received: from BL2NAM02FT047.eop-nam02.prod.protection.outlook.com (2603:10b6:208:2bd:cafe::2a) by BL1PR13CA0178.outlook.office365.com (2603:10b6:208:2bd::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.11 via Frontend Transport; Wed, 28 Oct 2020 15:50:11 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 18.7.68.33) smtp.mailfrom=alum.mit.edu; ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=bestguesspass action=none header.from=alum.mit.edu;
Received-SPF: Pass (protection.outlook.com: domain of alum.mit.edu designates 18.7.68.33 as permitted sender) receiver=protection.outlook.com; client-ip=18.7.68.33; helo=outgoing-alum.mit.edu;
Received: from outgoing-alum.mit.edu (18.7.68.33) by BL2NAM02FT047.mail.protection.outlook.com (10.152.77.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.20 via Frontend Transport; Wed, 28 Oct 2020 15:50:10 +0000
Received: from PaulKyzivatsMBP.localdomain (c-24-62-227-142.hsd1.ma.comcast.net [24.62.227.142]) (authenticated bits=0) (User authenticated as pkyzivat@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.14.7/8.12.4) with ESMTP id 09SFo9qr006561 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 28 Oct 2020 11:50:10 -0400
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
To: draft-ietf-anima-grasp-api.all@ietf.org
Cc: General Area Review Team <gen-art@ietf.org>
Message-ID: <d71097bc-c37a-c322-d478-7435c35cc5c4@alum.mit.edu>
Date: Wed, 28 Oct 2020 11:50:09 -0400
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:78.0) Gecko/20100101 Thunderbird/78.4.0
MIME-Version: 1.0
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-EOPAttributedMessage: 0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: bf67e1a0-e6a7-4e92-3011-08d87b5926f5
X-MS-TrafficTypeDiagnostic: DM5PR1201MB0092:
X-Microsoft-Antispam-PRVS: <DM5PR1201MB00928DF7B1EC27B3379F1E56F9170@DM5PR1201MB0092.namprd12.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: GgWuX+Ta7U+SvdEDbaj/92/aPC8cPPguOP2VQMmk3cXUBNZzJv1bEffLzEew7XeBgkirRR9rwfuFZH65ZRyOij+B7T4S4EX0k8DDjlxlCIrmYYgsIaBQBxX3BUu74Q/zEwfaKKHJX0pydl8r4oK5DQwK73XM4+/4rjVbDmT4xzcuQNclpb+EU/d3Rs1HnmK0OzvlLf2srHnZB9rJNIBZo6bzwrVJaD/7GpG89yinmulqdLaR0m93ttcdiSXmlt+N1V/wa0aBaQxW6wt5ss/P9FON6mWCKBNTxWNKUxF+XBCtCAom6I4NPutVMkHQ4VYuB7v+ypIVCxzxmLqs6mffGUK8fJuJccWuz16VSwWavzsiFGw5ObFPRpwK5ijW9DmNSEnNTxOhlQqarxI7fnXjzMvsH2FUQcQIyGiLetDbz003rfwjSm1aPKi4Y48oVFnBhJQ8yZzSWvY0v4lUwWc4EcoBOosou8svB6hzYaAtQ2J8fSm7bI7YbOKFkp8fHAfo
X-Forefront-Antispam-Report: CIP:18.7.68.33; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:outgoing-alum.mit.edu; PTR:outgoing-alum.mit.edu; CAT:NONE; SFS:(396003)(136003)(376002)(39860400002)(346002)(46966005)(450100002)(356005)(82740400003)(478600001)(316002)(36906005)(83380400001)(8936002)(6916009)(786003)(31686004)(47076004)(82310400003)(70586007)(5660300002)(7596003)(31696002)(336012)(4001150100001)(956004)(70206006)(2616005)(26005)(2906002)(8676002)(75432002)(86362001)(4326008)(186003)(43740500002); DIR:OUT; SFP:1101;
X-OriginatorOrg: alum.mit.edu
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2020 15:50:10.8214 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: bf67e1a0-e6a7-4e92-3011-08d87b5926f5
X-MS-Exchange-CrossTenant-Id: 3326b102-c043-408b-a990-b89e477d582f
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3326b102-c043-408b-a990-b89e477d582f; Ip=[18.7.68.33]; Helo=[outgoing-alum.mit.edu]
X-MS-Exchange-CrossTenant-AuthSource: BL2NAM02FT047.eop-nam02.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0092
Archived-At: <https://mailarchive.ietf.org/arch/msg/gen-art/E6hZlRTNnPw4xGWBjzYKY3InYsU>
Subject: [Gen-art] Gen-ART Last Call review of draft-ietf-anima-grasp-api-07
X-BeenThere: gen-art@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "GEN-ART: General Area Review Team" <gen-art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/gen-art>, <mailto:gen-art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/gen-art/>
List-Post: <mailto:gen-art@ietf.org>
List-Help: <mailto:gen-art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/gen-art>, <mailto:gen-art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Oct 2020 15:50:23 -0000

I am the assigned Gen-ART reviewer for this draft. The General Area
Review Team (Gen-ART) reviews all IETF documents being processed
by the IESG for the IETF Chair.  Please treat these comments just
like any other last call comments.

For more information, please see the FAQ at

<https://trac.ietf.org/trac/gen/wiki/GenArtfaq>.

Document: draft-ietf-anima-grasp-api-07
Reviewer: Paul Kyzivat
Review Date: 2020-10-28
IETF LC End Date: 2020-10-28
IESG Telechat date: ?

This draft is on the right track but has open issues, described in the 
review.

General:

I began this review without any knowledge of Anima. I did read several 
of the related documents for context, but my overall understanding 
remains somewhat sketchy. So take my comments with with that in mind. 
(At least you get a fresh, untainted perspective.)

Issues:

Major: 5
Minor: 6
Nits:  2

1) MAJOR: Unclear model for API function usage

As I read through sections 2.3.2 through 2.3.6 these I got progressively 
more confused. I finally concluded that a big picture of how API 
functions interact is lacking.

For one thing, there isn't a clear delineation between those calls used 
by requesters and those used by responders. And then valid sequencing of 
calls is hard to tease out.

It would be helpful to have one state model for requesters and another 
for responders. It may also be helpful to break this out for threaded 
and event loop variants.

My subsequent issues regarding these sections are reflective of this 
confusion.

2) MAJOR: What state does GRASP retain for Objectives?

It is clear that the GRASP must retain the names of registered 
objectives. There are implications that it must keep more. Seemingly it 
must retain received flooded objectives, on a per-source basis. It is 
unclear if it is only for registered objectives, or also for 
unregistered objectives. This could potentially become a large resource 
drain if there are lots of nodes flooding values.

Negotiated objectives seem to be treated differently. It isn't clear to 
me if GRASP needs to retain copies of their values.

3) MAJOR: Consistency of Objective definitions

In section 2.3.1.2 and elsewhere, presumably all parties that use a 
particular objective must agree on the values of synch, neg, dry, and 
the format of the value.

Apparently you are relying on each caller getting this right. What 
happens when this isn't the case? How can blame be ascribed so that the 
problem can be fixed?

4) MAJOR: Confusing semantics of 'request_negotiate'

In section 2.3.4 I don't understand the following:

          1.  The 'session_nonce' parameter is null.  In this case the
              negotiation has succeeded immediately (the peer has
              accepted the request).  The returned 'proffered_objective'
              contains the value accepted by the peer.

IIUC this requires a network exchange with the peer. I don't see how 
this can complete *immediately*. ISTM that this could only complete 
immediately if it were satisfied from a local cache. That doesn't seem 
appropriate for this function.

Similarly, in bullet 2 I don't see how the proffered_objective would be 
available in the initial call.

Or is this text only applicable to a threaded implementation with 
synchronous calls?

Bullet 2 also says:

              ... The
              returned 'proffered_objective' contains the first value
              proffered by the negotiation peer.  The contents of this
              instance of the objective must be used in the subsequent
              negotiation call because it contains the updated loop
              count, sent by the negotiation peer.

Do you mean this must be used in the call to negotiate_step? But that 
would mean asking for what has already been granted. For the the 
negotiation to be useful I would expect that the next round would ask 
for a value somewhere between what was originally requested and what was 
initially offered.

I think you need to say more about the whole concept of negotiation and 
how it is expected to work. Also, additional discussion of the purpose 
and semantics of dry run negotiation.

One more thing: you don't explain the semantics of 'timeout'. Is it only 
used locally, to terminate the synchronous form of the call? Or is it 
transmitted and used by the responder to control how long it might spend 
trying to fulfill the request before giving up?

5) MAJOR: Confusing semantics of 'negotiate_step'

In section 2.3.4, I'm confused by:

             Called in the same thread as the
             preceding 'request_negotiate' or 'listen_negotiate'

I understand use of this following request_negotiate, but not with 
listen_negotiate. A negotiation should consist of an ordered sequence of 
"rounds" of bidding. Allowing both requester and responder to initiate a 
next step can lead to a disruption of the ordering. I would expect this 
to only be used by the caller of request_negotiate. What am I missing?

6) MINOR(MAJOR?): Confusing semantics of 'negotiate_wait'

Regarding section 2.3.4: I understand that the GRASP Confirm Waiting 
message (from [I-D.ietf-anima-grasp]) and hence 'negotiate_wait' is only 
used by the responder. How is the effect manifested in the requester? Is 
a synchronous requester just silently extended? What about an event loop 
requester?

7) MINOR(MAJOR?): Role of 'peer' in 'synchronize'

The description of 'synchronize' (in section 2.3.5) says:

       -  If the objective was already flooded, the flooded value is
          returned immediately in the 'result' parameter.  In this case,
          the 'peer' and 'timeout' are ignored.

Do you really want to ignore 'peer' in this case?

I infer from the description of get_flood that the GRASP retains flooded 
values separately for each flood source. So you should have the 
capability to return only a value flooded by the requested peer.

8) MINOR(MAJOR?): Confusing semantics of 'flood'

The descriptions of 'flood' in section 2.3.5 seem to imply that the 
GRASP in each of the nodes receiving the flood saves the value, for use 
in get_flood and synchronize. Is that right? (Actually, the description 
of get_flood implies that flooded values are saved separately for every 
flood source!)

Are only registered objectives saved? Or must the GRASP save all the 
values from every flood that it receives?

What if one flood contains X, Y, and Z. Then a later flood from the same 
source contains only X and Y. Presumably the new values of X and Y 
replace the old ones. Does GRASP retain the value of Z, or discard it?

ISTM (based on my limited understanding) that it would make more sense 
for the GRASP to simply cache all objectives that have been registered 
and/or received as a result of synchronization, together with their TTL. 
And then subsequent requests would be satisfied from the cache as long 
as the TTL hasn't expired.

9) MINOR: Clarify Session

Section 2.2.3 implies that Session is a full fledged entity. It would be 
helpful to flesh this out in more detail. E.g., describe it as a 
distinct entity in the API and include a state model.

10) MINOR: Representing mutually exclusive items with booleans

In section 2.3.1.3, 'synch' and 'neg' are mutually exclusive. By 
representing them as independent booleans you introduce the possibility 
of invalidly setting them both or neither. ISTM it would be better to 
represent these as a single value (enumeration).

A similar situation occurs in section 2.3.1.4.

11) MINOR: Managing thread for 'listen_negotiate'

In section 2.3.4, suppose the ASA wants try to ensure that it always has 
a listener ready for an incoming request. IIUC the only way to achieve 
that is to create the maximum number of threads it is willing to devote 
and set them all to listening. That is sub-optimal. It would be better 
if it could somehow learn that another one is needed and create it. Some 
additional API mechanisms would be needed to support that.

12) NIT: Idempotence

Bullet #2 of section 2.2.1 says:

        To facilitate this, the API implementation would provide non-
        blocking versions of all the functions that otherwise involve
        blocking and queueing.  In these calls, a 'noReply' code will be
        returned by each call instead of blocking, until such time as the
        event for which it is waiting (or a failure) has occurred.  Thus,
        for example, discover() would return 'noReply' instead of waiting
        until discovery has succeeded or timed out.  The discover() call
        would be repeated in every cycle of the main loop until it
        completes.  Effectively, it becomes a polling call.

This seems to contradict the earlier statement (in 2.2) that the calls 
are not idempotent. Section 2.2.2 tries to clarify this, but it is not 
very clear.

13) NIT: Confusing terminology in 'discover'

In the description of 'discover()' (in section 2.3.3) the 'age_limit' 
parameter is confusing. At the least the name seems wrong for the 
described semantics. The implication is that an expiration date/time is 
what GRASP stores, and that remaining time until expiration is what is 
being used here. It is hard to see how it is appropriate to call that an 
"age". ISTM that would better be called a TTL, and that is parameter 
might then be called 'minimum_TTL'.