[netconf] Re: YANG Push Lite presentation
Andy Bierman <andy@yumaworks.com> Mon, 11 November 2024 19:49 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 704CDC180B40 for <netconf@ietfa.amsl.com>; Mon, 11 Nov 2024 11:49:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pNqb4Q2MwoCo for <netconf@ietfa.amsl.com>; Mon, 11 Nov 2024 11:49:12 -0800 (PST)
Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7B5D2C14F5FE for <netconf@ietf.org>; Mon, 11 Nov 2024 11:49:12 -0800 (PST)
Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-7ea64af4bbbso309859a12.1 for <netconf@ietf.org>; Mon, 11 Nov 2024 11:49:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1731354552; x=1731959352; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pSD4WtmyBHXJKCCEODMjImo2I4YYwCE2/ILnXGjSFqY=; b=nSgFHut+HranhAFZWp9H86HtfPTnZcZtiMhj4nZEdvPPK+3G9nWTYSVsG2NGi6qaMD KNy0aYPGNLpPDyaUqqvjR++r5vVLYgaD9PhegW/V4JXRX4yobvCyKHRvTj408fiUJrd8 T4yoE9CMHxgt8kxLdV7gSOzPU0otZdYx/tlMWXiZlIDTAovmH5p81+SzABrTLQluzZSG gD1AVxrG4EYfVpN0GVFRdTEA2YQVnhyafiAagfjgnvvTaAoT4r0uuf7p7uIVU7pYRvRI TjUmIpVHKc3tl9BIBztXpS0BM8P6yPvQnw1cYQelc4cc/FOX8CtNT3B4eZWdh9U+QvyT 5IwQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731354552; x=1731959352; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pSD4WtmyBHXJKCCEODMjImo2I4YYwCE2/ILnXGjSFqY=; b=myLfTfAtvsgClSdr4h3P9DEKh2cLG9u01Kf1p/VMQorrFYbKMwBj7HSH3zj3NDWe8D 6b9FRjRKuSO6TBiBG6kXNj0phYnnLkqSEQTOtl8L8atT+lYwQdtotme4qsBuizEPUDj7 8gr9toa7plCz3D9n28Ny6CqhRjHbeWLyBdn3f158N6q9lNUIqJDXkfG0fqcFtuCFZvTm 5AOp8JWceTnHajRRPhIT++ihHtaH9VE9Z0z3ZpY2mRiGi9R/Z5iebNpvxwIoxP2d/3dB IvEzlde9SmgLr014wLnqYuJB+yjoW1/Tp9Q9q7fQplVJxzsNY9ywF7w6jX9z15eShH+r Bn6A==
X-Gm-Message-State: AOJu0Yw5dTsCJBvKKTASUsRWa7sVGlp+6T6Wxwgi0+YN1NFN6/CeNX6i 9YjTia8NaU+Vl5UHVWFSXphVBXbniZ6gEnKSazQ8TxzmfQ0GQsW46OdZkISL8mwJIrXb/0The1i dTOX+J44LSGO6/lnP1nT7VR8XfHwGC3fB7bs3Dw==
X-Google-Smtp-Source: AGHT+IFCMguLy/yIY/RwPIsNipP0KNqW5bcz/dexKT1I1bmCCGlSJ/OerejalzO2BYaHDOQ6IJYxwD0SrZ74oWzSplw=
X-Received: by 2002:a17:902:fc87:b0:20d:345a:965b with SMTP id d9443c01a7336-211835293e7mr81974745ad.7.1731354551684; Mon, 11 Nov 2024 11:49:11 -0800 (PST)
MIME-Version: 1.0
References: <CABCOCHTxV=wxAVkQBiGK1ounrP+CPpcvYyoGKVxWwsT5ybT4rg@mail.gmail.com> <LV8PR11MB85366257038D9CE09DCB164CB5582@LV8PR11MB8536.namprd11.prod.outlook.com>
In-Reply-To: <LV8PR11MB85366257038D9CE09DCB164CB5582@LV8PR11MB8536.namprd11.prod.outlook.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Mon, 11 Nov 2024 11:49:00 -0800
Message-ID: <CABCOCHT1DN77-wEx9ShaSuBdSGevksiudA08Zk+NLY5U5m+kug@mail.gmail.com>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>
Content-Type: multipart/alternative; boundary="00000000000008adcc0626a86535"
Message-ID-Hash: EQCTK6T6UUHEWDLJLF5523OP2VKIIFKV
X-Message-ID-Hash: EQCTK6T6UUHEWDLJLF5523OP2VKIIFKV
X-MailFrom: andy@yumaworks.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-netconf.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Netconf <netconf@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [netconf] Re: YANG Push Lite presentation
List-Id: NETCONF WG list <netconf.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/Kmv9rK3McJ8I8Rc52GvJRQY8mFA>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Owner: <mailto:netconf-owner@ietf.org>
List-Post: <mailto:netconf@ietf.org>
List-Subscribe: <mailto:netconf-join@ietf.org>
List-Unsubscribe: <mailto:netconf-leave@ietf.org>
On Mon, Nov 11, 2024 at 9:55 AM Rob Wilton (rwilton) <rwilton@cisco.com> wrote: > Hi Andy: > > > > Re: Issue with Dampening: > > > > The way dampening is defined in RFC 8641 is per subscription. So, if you > are subscribed for interface link state changes for all interfaces in a > single subscription (reasonably plausible), that will mean that if one > interface goes down within the dampening period, then it would also dampen > link state change notifications for all interfaces, which is probably not > that useful or helpful. Alternatively, you could have a separate > subscription per interface, but that could then mean 10K+ subscriptions for > interface state changes, i.e., also not that helpful. > > > > Really, for dampening to be useful for on-change, it needs to be done per > list entry or per leaf, and that requires the server to maintain much more > operational state so that it can determine whether anything has actually > changed. When we discussed dampening with the operators then no-one > wanted/needed it. Instead, if a particular leaf needs to be dampened then > the suggestion was to define that within the data model. E.g., this is > exactly what we do on our systems for interface link state. We have > various configuration options (interface dampening and carrier-delay) that > allow dampening to be applied on a per-interface basis that means that for > a subscription we would notify interface state changes more slowly (perhaps > fast down, slow up) and hence no telemetry subscription level dampening is > needed – it is handled elsewhere or a needed basis. > > > Yes the server or linecard is required to collect data and only send it all when the dampening period for the subscription has passed. It is per subscription, not per-linecard or per-receiver. This seems nearly impossible to implement across multiple linecards, each contributing to multiple subscriptions. Probably we want to have some text to allow a server to dampen on-change > notifications if appropriate, as long as it doesn’t completely lose the > fact that a change has occurred and must be reported after the dampening > period. I.e., a much softer guarantee of on-change events than the > existing RFC 8641 text that requires that every single change is always > notified (including if a value has been reverted). > > > OK OLD: leaf dampening-period { type centiseconds; default "0"; NEW: leaf dampening-period { if-feature dampening; type centiseconds; default "0"; On the subject of getting rid of complexity: RFC 8639, sec 2.8 To understand the flow of event records in a subscription, there are two counters available for each receiver. The first counter is "sent-event-records", which shows the number of events identified for sending to a receiver. The second counter is "excluded-event- records", which shows the number of event records not sent to a receiver. "excluded-event-records" shows the combined results of both access control and per-subscription filtering. For configured subscriptions, counters are reset whenever the subscription's state is evaluated as "valid" (see (1) in Figure 8). These counters are too complicated to implement if distributed linecards are the publishers. The excluded-event-records is too complex to maintain in any implementation. IMO these counters should be deprecated or made optional with if-feature. A byte and event counter for each receiver and each publisher would be easier to maintain and maybe more useful to the operator. In short, my goal is to put the minimum requirements on the server to > satisfy the requirements coming from the operators for the collectors. > Extra complexity can always be augmented in to the model by separate drafts > if really needed, but it helps keep the base model simpler and easier to > implement. > > > +1 It is clear that different use-cases for YANG Push exist and changes are need to support them. > Regards, > > Rob > > > Andy > > > > > *From: *Andy Bierman <andy@yumaworks.com> > *Date: *Friday, 8 November 2024 at 16:08 > *To: *Netconf <netconf@ietf.org> > *Subject: *[netconf] YANG Push Lite presentation > > Hi, > > > > I hope this work gets high priority. > > There are many I-Ds already so please do not start over or greatly expand > the scope. > > I have been saying that YANG Push is too complicated since I was on the DT > > that created RFC 8639,40,41. > > > > We have a fairly complete implementation of dynamic subscriptions. > > Glad to see there is now consensus to get rid of the YANG Patch update. > > We decided the same thing a long time ago: > > > https://docs.yumaworks.com/en/latest/cli/netconfd-pro.html#push-simop-patch-update > > > > Also agree that a push update is not a full replace, but rather just > > gather what is being reported. That is also how our server works. > > > > I do not understand the issue with dampening. > > Within the implementation, it means how often you check for changes. > > It is effectively the same as the 'period' for a periodic subscription. > > How does an on-change subscription work without this parameter? > > > > > > Andy > > > > > > >
- [netconf] YANG Push Lite presentation Andy Bierman
- [netconf] Re: YANG Push Lite presentation Reshad Rahman
- [netconf] Re: YANG Push Lite presentation Andy Bierman
- [netconf] Re: YANG Push Lite presentation Andy Bierman
- [netconf] Re: YANG Push Lite presentation BL
- [netconf] Re: YANG Push Lite presentation BL
- [netconf] Re: YANG Push Lite presentation Andy Bierman
- [netconf] Re: YANG Push Lite presentation Rob Wilton (rwilton)
- [netconf] Re: YANG Push Lite presentation Rob Wilton (rwilton)
- [netconf] Re: YANG Push Lite presentation Rob Wilton (rwilton)
- [netconf] Re: YANG Push Lite presentation Andy Bierman
- [netconf] Re: YANG Push Lite presentation BL