Re: [netconf] draft-ietf-netconf-udp-notif encoding option

Andy Bierman <andy@yumaworks.com> Thu, 19 November 2020 16:47 UTC

Return-Path: <andy@yumaworks.com>
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 9F5603A0AD3 for <netconf@ietfa.amsl.com>; Thu, 19 Nov 2020 08:47:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.887
X-Spam-Level:
X-Spam-Status: No, score=-1.887 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_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.20150623.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 OKnC9WEKXRdI for <netconf@ietfa.amsl.com>; Thu, 19 Nov 2020 08:47:22 -0800 (PST)
Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) (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 A5CC83A0ADE for <netconf@ietf.org>; Thu, 19 Nov 2020 08:47:22 -0800 (PST)
Received: by mail-lj1-x233.google.com with SMTP id 11so6971378ljf.2 for <netconf@ietf.org>; Thu, 19 Nov 2020 08:47:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=whuqSQ9Tn95BZuXmiHIQaepgLFS8952ahcOZPxTj+bU=; b=TQCcWvr/4SOemin8CyBNrcNTs9xC+oz22xy9GCjKvWlTWGel9gQdM6X0kt798HBnh9 usiV6QMOKLzArSZwTevjpAtImk6gpEN7BaBIDHTmtEL6tW9hgtThdB2KmhBPiNwatJCx qcYdoSwfL9dAZnmuJLUSdjFT75S4Has2LBXXe8agI/k+XPgOQtvdaSo+21sJOjdBNtjY GvGqpMxusnnLZWXyMzJTS6J8cQBeeCguG9umzV2m2roGP+LTmMCkuGz5GKeVoCmOn3bi rfgbcbuNSKyeGR1w2xMp6/5Yd8aphgzuPMzwXkg893qXyu3OzRXOHDP/qROYZkLKAe8Y uPRw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=whuqSQ9Tn95BZuXmiHIQaepgLFS8952ahcOZPxTj+bU=; b=pRLh2cmxX32r8Ut97C5VRmEKYuf9h10sPbHP0ieYxrhkDU8FviIChPhGrmmCcYJPw9 7/z13CBFw9DSzUOsi6BRLe64rmlSiwt/T+5BJ4D/al9v46OrBZw9mJ38nLUZz52Taa+f Uh8BZEOkp5lZY0aT7fzJ/YCnwqTmI7tVOMxCJStclIBe2f/tTvlqQCx5RzWzmWf2x4cc 0o1FylFZ+moS73vMsio0j2ffW1LBTjmvGEWC4G69yqaPRf2/nDf6bsLEnUbLq8hLByLg 3/L4qz/rIvSG1ewz0QqRxqg4Lt0pnuVB/8UMVZyZLX3J3LHu5Y3eIDntNXVju8g3G1Tr E2gw==
X-Gm-Message-State: AOAM532d07WFPH+CGu5YfQZQAH9qnS4LZ+tKi0i0WEA+pq7oRA0xfKd3 mL6s7syrjj96vrbCXB+fbI8nz2zwpjXBM8RgLgM2Sg==
X-Google-Smtp-Source: ABdhPJyN6a+DsPDD513tq421fMGYXy2ujoj3u0qM2VctxgU8Sd5rWwjGGRosuspXWPxw/IPPBMBSE3stDKR8cYPcyH0=
X-Received: by 2002:a2e:8546:: with SMTP id u6mr6486365ljj.125.1605804439312; Thu, 19 Nov 2020 08:47:19 -0800 (PST)
MIME-Version: 1.0
References: <CABCOCHSitc8n5Mv4iFzPig8msoJHJ7dTq2xiK-x5oL7boguD6Q@mail.gmail.com> <CAFNmoOFuzviU2P+H746tU_DyDHQUAZ8NJM7cJi3P6cm9J964GA@mail.gmail.com>
In-Reply-To: <CAFNmoOFuzviU2P+H746tU_DyDHQUAZ8NJM7cJi3P6cm9J964GA@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 19 Nov 2020 08:47:08 -0800
Message-ID: <CABCOCHRp4KP5tXFJw5n0s2MREMmO8KYBbOGrSore8zag0rQsfQ@mail.gmail.com>
To: Pierre Francois <pierre.francois.ietf@gmail.com>
Cc: Netconf <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000002f379205b4787b2c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/t8USx1fpiToLo2-iV99xPHphLuk>
Subject: Re: [netconf] draft-ietf-netconf-udp-notif encoding option
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG 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: Thu, 19 Nov 2020 16:47:25 -0000

On Thu, Nov 19, 2020 at 12:01 AM Pierre Francois <
pierre.francois.ietf@gmail.com> wrote:

> Hey Andy,
>
> I like this. Let me check around and get back to you.
>
>

There are some details like padding (to maintain quad alignment), but
this completely decouples the encoding politics from the transport layer.

Remember the content-id field I asked about awhile back?
This can be used for that.

Rob touched on the $64 question in the meeting that got ignored

How do you know which protobuff it is? Is it gNMI? OC-telemetry? vendor
gRPC data?

Perhaps:

  encoding-id = gpb/gnmi
                      = gpb/openconfig-telemetry
                      = gpb/example-bgp-state


Cheers,
>
> Pierre.
>

Andy


>
> Le jeu. 19 nov. 2020 à 05:07, Andy Bierman <andy@yumaworks.com> a écrit :
>
>> Hi,
>>
>> There was a suggestion to assign an encoding enumeration to
>> represent "other".  I think this could work, if it meant that the
>> receiver should check the options for an "Encoding ID Option",
>>
>>   Type = to be assigned
>>   Length = 2 + length of variable data
>>   Variable data = some string identifying the encoding type
>>
>> IMO this allows a good balance between message size and interoperability,
>> and it is very extensible.
>>
>>
>> Andy
>>
>>
>> _______________________________________________
>> netconf mailing list
>> netconf@ietf.org
>> https://www.ietf.org/mailman/listinfo/netconf
>>
>