Re: [Netconf] the name "checksum" in YANG library

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Fri, 12 October 2018 11:37 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 46166130E17 for <netconf@ietfa.amsl.com>; Fri, 12 Oct 2018 04:37:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] 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 UnRF6Uuej4p4 for <netconf@ietfa.amsl.com>; Fri, 12 Oct 2018 04:37:23 -0700 (PDT)
Received: from atlas5.jacobs-university.de (atlas5.jacobs-university.de [212.201.44.20]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 28D8E130E0F for <netconf@ietf.org>; Fri, 12 Oct 2018 04:37:23 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id E6EF1E16; Fri, 12 Oct 2018 13:37:20 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas5.jacobs-university.de ([10.70.0.217]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10032) with ESMTP id DRKfxcAVTZ1b; Fri, 12 Oct 2018 13:37:19 +0200 (CEST)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas5.jacobs-university.de (Postfix) with ESMTPS; Fri, 12 Oct 2018 13:37:20 +0200 (CEST)
Received: from localhost (demetrius2.jacobs-university.de [212.201.44.47]) by hermes.jacobs-university.de (Postfix) with ESMTP id CF10F20038; Fri, 12 Oct 2018 13:37:20 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius2.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id gLclI9cDfCLM; Fri, 12 Oct 2018 13:37:20 +0200 (CEST)
Received: from exchange.jacobs-university.de (SXCHMB01.jacobs.jacobs-university.de [10.70.0.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "exchange.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by hermes.jacobs-university.de (Postfix) with ESMTPS id DED2A20037; Fri, 12 Oct 2018 13:37:19 +0200 (CEST)
Received: from anna.localdomain (10.50.218.117) by sxchmb03.jacobs.jacobs-university.de (10.70.0.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1415.2; Fri, 12 Oct 2018 13:37:19 +0200
Received: by anna.localdomain (Postfix, from userid 501) id 2544D3000E6032; Fri, 12 Oct 2018 13:37:18 +0200 (CEST)
Date: Fri, 12 Oct 2018 13:37:18 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Robert Wilton <rwilton@cisco.com>
CC: Rohit R Ranade <rohitrranade@huawei.com>, "netconf@ietf.org" <netconf@ietf.org>
Message-ID: <20181012113718.zvamdsuwqjj3divu@anna.jacobs.jacobs-university.de>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Robert Wilton <rwilton@cisco.com>, Rohit R Ranade <rohitrranade@huawei.com>, "netconf@ietf.org" <netconf@ietf.org>
References: <20181011.124600.2085483972062437440.mbj@tail-f.com> <991B70D8B4112A4699D5C00DDBBF878A6BC567C6@dggeml510-mbx.china.huawei.com> <20181011.133113.643945777606446073.mbj@tail-f.com> <991B70D8B4112A4699D5C00DDBBF878A6BC57080@dggeml510-mbx.china.huawei.com> <674660c8-13e4-2fad-8a7e-1fef2dd3f572@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: inline
X-Clacks-Overhead: GNU Terry Pratchett
Content-Transfer-Encoding: 8bit
In-Reply-To: <674660c8-13e4-2fad-8a7e-1fef2dd3f572@cisco.com>
User-Agent: NeoMutt/20180716
X-ClientProxiedBy: SXCHMB03.jacobs.jacobs-university.de (10.70.0.155) To sxchmb03.jacobs.jacobs-university.de (10.70.0.155)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/hcNKAUDuRWqIc57Yt7K_wf0l57A>
Subject: Re: [Netconf] the name "checksum" in YANG library
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Oct 2018 11:37:27 -0000

I think the point is that we do not require this to be a counter nor
do we require this to be a hash of the yang library. Implementations
can do what they think is best as long as the content-id changes when
the content of the yang library changes, i.e., the content-id value
can be used to check whether a cached version of yang library can
still be used.

/js

On Fri, Oct 12, 2018 at 12:26:50PM +0100, Robert Wilton wrote:
> Hi Rohit,
> 
> If the server restarts, or the YANG management daemon on the server
> restarts, and the YANG library content is the same then it is less work on
> the client to return the same content-id value.
> 
> It isn't the end of the world if it is different because it just forces the
> client to re-download and re-parse YANG library. However, it could be a
> problem for the client if the server returns the same value if the server
> reboots and uses a different set of YANG modules after it has rebooted (e.g.
> after a software upgrade).
> 
> Perhaps if you write the counter to persistent storage this can still be
> made to work in a reliable way, but using a robust hash function over the
> contents in YANG library is probably a simpler approach.   I would predict
> that if MurmurHash3, generating a 128 bit hash value, is used over the Yang
> Library contents then the risk of a collision (i.e. where the content
> differs, but hashes to the same value) would be extremely low in practice.
> 
> Thanks,
> Rob
> 
> 
> On 12/10/2018 06:59, Rohit R Ranade wrote:
> > Hi Martin,
> > 
> > " The value of this leaf MUST change whenever the
> >        information in the YANG library changes." ==> This statement in Section 3, indicates that the value must change when content changes.
> > 
> > The draft has also placed a constraint that it is a " unique implementation-specific identifier". When the contents changes, especially if the length of the data which is used for checksum changes, then the resulting checksum values may not be unique.
> > 
> > So I feel it is simpler, if a counter is used.
> > 
> > With Regards,
> > Rohit
> > 
> > -----Original Message-----
> > From: Martin Bjorklund [mailto:mbj@tail-f.com]
> > Sent: 11 October 2018 17:01
> > To: Rohit R Ranade <rohitrranade@huawei.com>
> > Cc: netconf@ietf.org
> > Subject: Re: [Netconf] the name "checksum" in YANG library
> > 
> > Rohit R Ranade <rohitrranade@huawei.com> wrote:
> > > Since this leaf has to change every-time the content of YANG library
> > > changes, "content-modify-count" can also be used which is simple for a
> > > server to implement (just increment when content changes) and also for
> > > client or a human reader to understand.
> > But it doesn't have to change everytime, it could very well be implemented as a checksum of the contents.
> > 
> > 
> > /martin
> > 
> > 
> > > 
> > > -----Original Message-----
> > > From: Netconf [mailto:netconf-bounces@ietf.org] On Behalf Of Martin
> > > Bjorklund
> > > Sent: 11 October 2018 16:16
> > > To: netconf@ietf.org
> > > Subject: [Netconf] the name "checksum" in YANG library
> > > 
> > > Hi,
> > > 
> > > Several reviewers in the IESG have commented that the name "checksum"
> > > in YANG library is misleading.  It is not really a checksum ('There is
> > > no requirement that the same information always results in the same
> > > "checksum" value.')
> > > 
> > > So since many people have complained, maybe we should change it.
> > > 
> > > After a quick discussion among (some of the) authors, we suggest that
> > > we call it "YANG library content identifier" or "content-id" for
> > > short.
> > > 
> > > The changes would be:
> > > 
> > > OLD:
> > > 
> > >     o  YANG library checksum: A server-generated checksum of the contents
> > >        of the YANG library.
> > > 
> > > NEW:
> > > 
> > >     o  YANG library content identifier: A server-generated identifier of
> > >        the contents of the YANG library.
> > > 
> > > 
> > > OLD:
> > > 
> > >     o  The "/yang-library/checksum" leaf contains the YANG library
> > >        checksum, which is a unique implementation-specific identifier
> > >        representing the current information in the YANG library on a
> > >        specific server.
> > > 
> > > 
> > > NEW:
> > > 
> > >     o  The "/yang-library/content-id" leaf contains the YANG library
> > >        content identifier, which is a unique implementation-specific
> > >        identifier representing the current information in the YANG
> > >        library on a specific server.
> > > 
> > > 
> > > .... and various simpler search&replaces.
> > > 
> > > 
> > > We would also update the schema-mount and netconf-nmda documents to
> > > use the new term.
> > > 
> > > 
> > > Does anyone object to this change?
> > > 
> > > 
> > > 
> > > /martin
> > > 
> > > _______________________________________________
> > > Netconf mailing list
> > > Netconf@ietf.org
> > > https://www.ietf.org/mailman/listinfo/netconf
> > > 
> > _______________________________________________
> > Netconf mailing list
> > Netconf@ietf.org
> > https://www.ietf.org/mailman/listinfo/netconf
> > .
> > 
> 
> _______________________________________________
> Netconf mailing list
> Netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>