Re: [netmod] [Technical Errata Reported] RFC7950 (6855)

Andy Bierman <andy@yumaworks.com> Tue, 01 March 2022 19:20 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BFEF93A0B60 for <netmod@ietfa.amsl.com>; Tue, 1 Mar 2022 11:20:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20210112.gappssmtp.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 yHdZ64ZcrP26 for <netmod@ietfa.amsl.com>; Tue, 1 Mar 2022 11:20:48 -0800 (PST)
Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) (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 232E83A0AE5 for <netmod@ietf.org>; Tue, 1 Mar 2022 11:20:48 -0800 (PST)
Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-2d07c4a0d06so155520087b3.13 for <netmod@ietf.org>; Tue, 01 Mar 2022 11:20:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Rl+gMsyYSvsU1E09fQ6mdgJSrvQ8+u1trSlv6sR1NdQ=; b=olicdLBzIkqjOYh4MJDFO4F4qiQTljOEGMcS10Z5jaWpFUvxRJhVVMC5KT3B8yxeeU 5/f+TYeowKmqPz8eXa0aA8waGkkl6c3gZCX0lTxKtddMze2r6ofEKmYKIhZB2Z4qD+H5 Ho7VPIikPtxr5JO5xApZARNmmVMy0bWk8Hti9/S4A26GM5Jlc+Zc4l54TntssPi7HQZv VKHdUZqJ/BHgql7RuW0ca4vgeqGTxtdLCRqyzus5418P6BlnPJn3iBjWDAuygKHjydY4 gQ6/GaG6ih79qUGd8PGoZeO9TryB+GJt9XGGkxjYNv9Cg52d/tR8flYaUD9H8/oHQ0NT MCag==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Rl+gMsyYSvsU1E09fQ6mdgJSrvQ8+u1trSlv6sR1NdQ=; b=J66o4Wfff7/zAMWXdJJSnIt5ErCAJvz7vxOHPoQH7pzuAr6KBjtW+lRWvRMymoP+i3 E+MDgMHu3Hjgkd1nJAcH3k5CZoFXM1DLxYkNeN5SbTgTGlkCyUCrLmRvZ9FD+B4xej3M SkpoqR9EjVsjT9pSWd7wpxvcFT37WDZPVKMe7nlXDQtgxQlQp3YhMGbQDVAps31cG2JR WskSOLjzDkNgKKNsc6ANpxbOXnD/ziM75wnKyiduAIa+bDl2PPKyjnknCZ3WUxa9JdHv LiR9L75NfvEYucjFbJAPmtLG01mNO5ZydM9pf2zxSAsIc2q77kSUO107FUuhDaEebY8t Ckww==
X-Gm-Message-State: AOAM530apRKpWAgdkoCYh5puEKYeIYaCAWpkD5QmyEXANaR57rD82/Uw s/MC3MZ6ai89cxh44s3t0enqiQ/9u8iV47Fhy7tMtA==
X-Google-Smtp-Source: ABdhPJyVGujpjLlmVa6Gkx3e317qUAgFZoWbQylBu+y9p2V+Vv9hcHP893Xbua4JIob8J6dWJObgOTrtum190YTr1AI=
X-Received: by 2002:a81:d85:0:b0:2d1:1b8d:f236 with SMTP id 127-20020a810d85000000b002d11b8df236mr26515559ywn.212.1646162446776; Tue, 01 Mar 2022 11:20:46 -0800 (PST)
MIME-Version: 1.0
References: <20220228185306.fr4xpjiwp6dnhlcj@anna> <CABCOCHQ6SdDxTxXvG77aWC+CDsi6W_2CkiH-TDfhxBT6PvxT8A@mail.gmail.com> <879E0AF5-1C26-454F-A46F-1ED4DED526A6@att.com> <20220301.083451.2242216390284098385.id@4668.se> <45582273-6897-4FAF-BA58-55EA5BA08F6F@att.com> <79DD3FF1-8167-412F-A67F-31BDEE092C62@tzi.org>
In-Reply-To: <79DD3FF1-8167-412F-A67F-31BDEE092C62@tzi.org>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 01 Mar 2022 11:20:36 -0800
Message-ID: <CABCOCHQbSUOFgUK87ysHo0V1YXT9jCnweDRkMskEMCnAFr_D-w@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: "SADOVNIKOV, ALEXEI" <AS549R@att.com>, "mbj@tail-f.com" <mbj@tail-f.com>, "warren@kumari.net" <warren@kumari.net>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000e20fa705d92d0ffb"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/-Ry7EEc2VXlO5DPdMgd2JvgRLas>
Subject: Re: [netmod] [Technical Errata Reported] RFC7950 (6855)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 01 Mar 2022 19:20:54 -0000

On Tue, Mar 1, 2022 at 8:15 AM Carsten Bormann <cabo@tzi.org> wrote:

> (Removing RFC-editor from the list:)
>
> On 2022-03-01, at 16:42, SADOVNIKOV, ALEXEI <AS549R@att.com> wrote:
> >
> > I continue to doubt if this optimization continues to have value in
> presence of JSON processing, where such optimization is not possible.   I
> am expecting an implementation these days to implement both XML and JSON,
> and then it either implements something which can deal with unordered for
> both, or have two different implementations one of which is optimized.
>
> This is very interesting also for YANG-CBOR.  We modeled our
> representation after that used in YANG-JSON, but of course CBOR can be much
> more efficient (in particular in conjunction with YANG-SIDs).
> If there is a performance problem with the YANG-JSON approach that we
> could work around on the CBOR side, I would certainly like to hear about it!
>
>
IMO JSON is too stateful, making it fragile (e.g., missing or extra comma).
It is also unordered, making implementation of annotations defined in RFC
7952 much more difficult.

The issues with JSON are more pronounced for a streaming server, where
there is
no JSON document in memory, just a lot of internal API calls to get data.
The API calls are easier if "what came before" and "what comes next" are
irrelevant (like for XML).

I am very interested in the CBOR encoding of YANG annotations (still TBD in
the drafts).




> Grüße, Carsten
>

Andy


>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>