Re: [Rats] draft-birkholz-rats-network-device-subscription-00

"Panwei (William)" <william.panwei@huawei.com> Thu, 13 August 2020 03:52 UTC

Return-Path: <william.panwei@huawei.com>
X-Original-To: rats@ietfa.amsl.com
Delivered-To: rats@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D55FC3A1635 for <rats@ietfa.amsl.com>; Wed, 12 Aug 2020 20:52:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=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 uP6oStRj0stI for <rats@ietfa.amsl.com>; Wed, 12 Aug 2020 20:52:26 -0700 (PDT)
Received: from huawei.com (lhrrgout.huawei.com [185.176.76.210]) (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 9ADED3A1634 for <rats@ietf.org>; Wed, 12 Aug 2020 20:52:25 -0700 (PDT)
Received: from lhreml703-chm.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 85C5D1F259BDE4C9F53D; Thu, 13 Aug 2020 04:52:22 +0100 (IST)
Received: from nkgeml704-chm.china.huawei.com (10.98.57.158) by lhreml703-chm.china.huawei.com (10.201.108.52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Thu, 13 Aug 2020 04:52:21 +0100
Received: from nkgeml705-chm.china.huawei.com (10.98.57.154) by nkgeml704-chm.china.huawei.com (10.98.57.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Thu, 13 Aug 2020 11:52:19 +0800
Received: from nkgeml705-chm.china.huawei.com ([10.98.57.154]) by nkgeml705-chm.china.huawei.com ([10.98.57.154]) with mapi id 15.01.1913.007; Thu, 13 Aug 2020 11:52:19 +0800
From: "Panwei (William)" <william.panwei@huawei.com>
To: "Eric Voit (evoit)" <evoit@cisco.com>, Dave Thaler <dthaler=40microsoft.com@dmarc.ietf.org>, Dave Thaler <dthaler@microsoft.com>, "rats@ietf.org" <rats@ietf.org>
CC: "Birkholz, Henk" <henk.birkholz@sit.fraunhofer.de>
Thread-Topic: draft-birkholz-rats-network-device-subscription-00
Thread-Index: AdZKRjugUmuktT1iTCKR70EUNGNj/gaoi4kQAAPEPuAC/lbRQAABxp6gAAcrZWA=
Date: Thu, 13 Aug 2020 03:52:19 +0000
Message-ID: <c920579ea02d4b158ac90a9f3c744798@huawei.com>
References: <BL0PR11MB31221B4EE75AADDB4685CBDEA1950@BL0PR11MB3122.namprd11.prod.outlook.com> <BL0PR2101MB1027CB2B71CA83305B9608BAA3730@BL0PR2101MB1027.namprd21.prod.outlook.com> <BL0PR11MB3122F7A9111660B4D3C8B85CA1730@BL0PR11MB3122.namprd11.prod.outlook.com> <BL0PR2101MB10271C5037D1F9BC826AE1F5A3420@BL0PR2101MB1027.namprd21.prod.outlook.com> <BL0PR11MB3122F0BF9EB8674F0B07FBF3A1420@BL0PR11MB3122.namprd11.prod.outlook.com>
In-Reply-To: <BL0PR11MB3122F0BF9EB8674F0B07FBF3A1420@BL0PR11MB3122.namprd11.prod.outlook.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.164.120.6]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/rats/DHPaT3qtLslE1T_HmXkMbFC6a9E>
Subject: Re: [Rats] draft-birkholz-rats-network-device-subscription-00
X-BeenThere: rats@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Remote ATtestation procedureS <rats.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rats>, <mailto:rats-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rats/>
List-Post: <mailto:rats@ietf.org>
List-Help: <mailto:rats-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rats>, <mailto:rats-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Aug 2020 03:52:28 -0000

Hi Eric,
Hi Dave,

I think Dave's question is that how the YANG module reflects the different time points in Figure 1, e.g., time(VG), time(EG), time(NS), and time(RG, RA).
My feeling is that time(VG), time(EG), and time(NS) don't need to be reflected. For the routers and switches, the time(VG) is usually when the devices boot, and it can be much earlier than the Evidence generation and appraisal, so usually the Verifier doesn't care about it. When the Verifier wants to establish the subscription, it generates a nonce and sends the subscription request to the Attester at the time(NS). The Attester doesn't need to know the time(NS), it just generates the Evidence according to the 'values' and nonce, and theoretically it should send back the Evidence to the Verifier immediately after generation. The Verifier can appraise the Evidence's freshness based on the nonce and the time interval between sending the subscription and receiving the Evidence, so there is usually no need for the Verifier to know the exact time(EG).
The time(RG, RA) may need to be reflected in the Attestation Result, but neither CHARRA nor this subscription draft includes this scope. I think draft-voit-rats-trustworthy-path-routing should consider this because it defines the Attestation Result YANG module.
After subscription, when a new event happens (e.g., the PCRs extends with a new value), the Attester will generate a new Evidence and send it to the Verifier. Usually the time(VG'), time(EG') and time(RG') are very close. But the "marshalling-period" leaf defined in this draft do give the Attester an opportunity to fold multiple 'values' into one Evidence to reduce the amount of notifications when multiple events happen in short succession. It reflects the max time interval between the first time(VG') and the time(EG') to the Verifier.
So for now, I think current CHARRA and RATS subscription YANG modules don't need to explicitly reflect the exact time of these time points.

Regards & Thanks!
Wei Pan

> From: Eric Voit (evoit) Thursday, August 13, 2020 6:58 AM
>
> > The topic being discussed here is about *timing* (and windows of how
> long
> > things can be out of date for,
> > etc.)   I expect that most other YANG drafts/RFCs do not cover that topic,
> > whereas Figure 1 of
> > draft-birkholz-rats-network-device-subscription specifically *does*.
> That's
> > what brings it in scope and why I believe it must be mentioned, even if
> it's by
> > reference to another document where the topic is covered.
> 
> There are a YANG nodes relevant to such timings.  For YANG datastores the
> best place to start is:
> https://datatracker.ietf.org/doc/draft-ietf-netconf-notification-capabilitie
> s/
> and look through definitions like:
> 
>        +--ro subscription-capabilities
>           +--ro max-nodes-per-update?               uint32
>           +--ro periodic-notifications-supported?   notification-support
>           +--ro (update-period)?
>           |  +--:(minimum-update-period)
>           |  |  +--ro minimum-update-period?        uint32
>           |  +--:(supported-update-period)
>           |     +--ro supported-update-period*      uint32
>           +--ro on-change-supported?
> notification-support
>           |       {yp:on-change}?
>           +--ro minimum-dampening-period?           uint32
>           |       {yp:on-change}?
>           +--ro supported-excluded-change-type*     union
>                   {yp:on-change}?
> 
> However it is important to note that these capabilities above are for
> reporting on changes YANG datastore nodes.  This is not the same thing as
> the placement of YANG notifications into event streams.  Therefore for this
> event subscription draft, look to the definition of the "marshalling-period"
> leaf.   This leaf attempts to define the problem from the perspective of the
> maximum amount of time from when an event extends a PCR to when the
> notification leaves the Attester.
> 
> Eric
> 
> 
> > Dave