Re: [Gen-art] Gen-art LC review: draft-mm-netconf-time-capability-05

Tal Mizrahi <talmi@marvell.com> Thu, 06 August 2015 05:47 UTC

Return-Path: <talmi@marvell.com>
X-Original-To: gen-art@ietfa.amsl.com
Delivered-To: gen-art@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 42C2E1B326F; Wed, 5 Aug 2015 22:47:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.267
X-Spam-Level:
X-Spam-Status: No, score=-2.267 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
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 sydS2gzWIrag; Wed, 5 Aug 2015 22:47:03 -0700 (PDT)
Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (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 9CE151A8940; Wed, 5 Aug 2015 22:47:03 -0700 (PDT)
Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.15.0.59/8.15.0.59) with SMTP id t765j6o5002747; Wed, 5 Aug 2015 22:47:02 -0700
Received: from il-exch01.marvell.com ([199.203.130.101]) by mx0b-0016f401.pphosted.com with ESMTP id 1w3t9h91ga-1 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 05 Aug 2015 22:47:02 -0700
Received: from IL-EXCH01.marvell.com (10.4.102.220) by IL-EXCH01.marvell.com (10.4.102.220) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Thu, 6 Aug 2015 08:46:59 +0300
Received: from IL-EXCH01.marvell.com ([fe80::41:1c9f:8611:3a4a]) by IL-EXCH01.marvell.com ([fe80::41:1c9f:8611:3a4a%20]) with mapi id 15.00.1044.021; Thu, 6 Aug 2015 08:46:59 +0300
From: Tal Mizrahi <talmi@marvell.com>
To: Andy Bierman <andy@yumaworks.com>
Thread-Topic: Gen-art LC review: draft-mm-netconf-time-capability-05
Thread-Index: AdDIdyKlVE3ctVSLQXagUYpGMyo4/wEDs/AgAGeQZQAAKy6jQP//6tyA//92GYCAAP/LAP/+5GTQ
Date: Thu, 06 Aug 2015 05:46:58 +0000
Message-ID: <b59d1f963bd6482193d97ec9b7d75dea@IL-EXCH01.marvell.com>
References: <60322a704b1e4d1cbc85f6a3b6a33b8e@IL-EXCH01.marvell.com> <55BFEDC8.6040800@nostrum.com> <03c295837c984138bb30bd9aacf21999@IL-EXCH01.marvell.com> <55C0FDD7.1050203@nostrum.com> <a788b8d09b104d9a9f48a8486fbdb33c@IL-EXCH01.marvell.com> <CABCOCHSBs2qXqxb=VCNPVHg6KOARK7oaUE=MyFv2hWU66=3NMw@mail.gmail.com>
In-Reply-To: <CABCOCHSBs2qXqxb=VCNPVHg6KOARK7oaUE=MyFv2hWU66=3NMw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [199.203.130.14]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2015-08-06_04:, , signatures=0
X-Proofpoint-Spam-Details: rule=inbound_notspam policy=inbound score=0 kscore.is_bulkscore=0 kscore.compositescore=1 compositescore=0.9 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 kscore.is_spamscore=0 rbsscore=0.9 spamscore=0 urlsuspectscore=0.9 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1506180000 definitions=main-1508060104
Archived-At: <http://mailarchive.ietf.org/arch/msg/gen-art/ssDHbUpT5svjTL5LHJ1YH9yvZQk>
Cc: General Area Review Team <gen-art@ietf.org>, "draft-mm-netconf-time-capability.all@ietf.org" <draft-mm-netconf-time-capability.all@ietf.org>, "ietf@ietf.org" <ietf@ietf.org>
Subject: Re: [Gen-art] Gen-art LC review: draft-mm-netconf-time-capability-05
X-BeenThere: gen-art@ietf.org
X-Mailman-Version: 2.1.15
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: Thu, 06 Aug 2015 05:47:05 -0000

Hi Andy,

We appreciate the detailed review.

>The draft adds the invoke-at-time capability to a small set
>of NETCONF operations (via augment-stmt).
>The mechanism cannot be used for any other operations.
>It appears this is the entire list of operations supported:

>   - get-config
>   - get
>   - copy-config
>   - edit-config
>   - delete-config
>   - lock
>   - unlock
>   - close-session
>   - kill-session
>   - commit

>Why was this subset of all operations selected?

This list contains most of the RPCs defined in RFC6241, with the exception of three RPCs: cancel-commit, validate, and discard-changes. It did not make sense to us to support the <scheduled-time> element for these RPCs.
The intended status of this document is experimental. For experimental purposes, it appears that this list of RPCs is sufficient. However, if you feel that there is an RPC that needs to be added to the list please let us know.


>I cannot find any text in the draft that says what happens
>if the client session terminates for any reason.  

(*) Agreed. We will add text that says that when a session terminates, the server cancels all scheduled RPCs that were received in that session.

>There are
>commands that support the 'execution-time' parameter
>like <lock> that explicitly require a session to be maintained.
>Not sure a delayed <close-session> even makes sense.

Agreed. We will remove the <close-session> RPC from the YANG module.

>If the session is gone when the scheduled operation is about
>to be executed, does the server cancel it or attempt it?
>Without a session, the server cannot send an <rpc-reply>,
>so it should not attempt the command.

Agreed. See the response to (*) above.

>What if commands are scheduled at the same time?
>Is the server expected to serialize these commands or
>invoke them in parallel?  Note that operations within
>a single session MUST be invoked in order, but this only
>seems to apply to the original <rpc> to schedule the delayed
>operation.

Good point. Scheduled RPCs should be processed serially, as is currently defined in RFC 6241. If two or more scheduled RPCs have the same <scheduled-time> the server can process them in an arbitrary order.
We will add text that clarifies this in the draft.


>I think this draft is severely constrained by RFC 6241, sec. 4.5.

>4.5.  Pipelining

>   NETCONF <rpc> requests MUST be processed serially by the managed
>   device.  Additional <rpc> requests MAY be sent before previous ones
>   have been completed.  The managed device MUST send responses only in
>   the order the requests were received.

Yes, the PURPOSE of the :time capability is to allow RPCs to be executed according to their scheduled time, and not according to their reception order. 
I suggest that we add some text that clarifies that replies to scheduled RPCs are sent in the order of their schedule, while replies of unscheduled RPCs (as defined in RFC 6241) are sent by the reception order of the corresponding RPCs.

>There are no existing NETCONF servers that will start processing rpc(N+1)
>while rpc(N) is in progress for a session.  It might violate the MUST
>in sec. 4.5.

Indeed, that is the behavior of *existing* servers, but this does not impose an interoperability problem with the :time capability. As all capability-based extension, interoperability with *existing* servers is guaranteed by the capability exchange: a server that does not support the :time capability will continue to send RPC replies according to their arrival order. A server that supports the :time capability will perform (and reply to) scheduled RPCs according to their schedule, and unscheduled RPCs according to their reception order.  

The :time capability must be:
1. Interoperable with existing servers by means of the capability exchange (we believe this is currently satisfied).
2. Well defined.
To guarantee (2), I suggest that in the capability definition (section 4) we will clarify how the :time capability affects the order of RPC replies of scheduled RPCs.

>A different NETCONF session is required for each scheduled operation.
>Only 1 scheduled operation can be pending on each session.
>A different session is also required to receive the <netconf-scheduled-message>
>since the session sending the scheduled operation is busy waiting for the
><rpc-reply>.  The <cancel-schedule> RPC also must be on another session,
>for the same reason.

If I understand correctly, you are suggesting a workaround that allows the :time capability without violating the reply-in-reception-order requirement. Right?

Thanks,
Tal.