Clearing counters

"Reshad Rahman (rrahman)" <rrahman@cisco.com> Fri, 27 March 2015 15:52 UTC

Return-Path: <rrahman@cisco.com>
X-Original-To: rtgwg@ietfa.amsl.com
Delivered-To: rtgwg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7B4DA1A0368 for <rtgwg@ietfa.amsl.com>; Fri, 27 Mar 2015 08:52:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.51
X-Spam-Level:
X-Spam-Status: No, score=-14.51 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham
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 dCqLQ41wvCxo for <rtgwg@ietfa.amsl.com>; Fri, 27 Mar 2015 08:52:08 -0700 (PDT)
Received: from alln-iport-3.cisco.com (alln-iport-3.cisco.com [173.37.142.90]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DA3D81A00D4 for <rtgwg@ietf.org>; Fri, 27 Mar 2015 08:52:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=10537; q=dns/txt; s=iport; t=1427471527; x=1428681127; h=from:to:cc:subject:date:message-id:mime-version; bh=gXOgyGmsDaSHuUG5rHsF4cjJYPpEN+z9mQw+cC51ID0=; b=hgKB8aLgCVcWgWTPVL2yBo+S7bJ6BJxCMppz8cezrj6XjIxZN6JoAr/5 h8erzde2ytQ0O97WsU8KQQnnhkGn+FJ56bnE/H7CImmAXYccr9/EbA3hg O9+eKNbvVajQs9HlaeaPcgC3XiJ3RcJ9KTL1iZULiY/beIDpFAnWXIxka g=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CNBAAzfBVV/4oNJK1ZA4JDQ1JaBIcDvGQGgUUBCYV1gTk4FAEBAQEBAQF8hAsLAQQBAQFrCw4EAQsBDAhJDAsnBA4FDoghDcxEAQEBAQEBAQEBAQEBAQEBAQEBAQEYBI86EQEkJwUQCIQcBY5Jgg6BaYgHgRuGC40LIoNub4ELOX8BAQE
X-IronPort-AV: E=Sophos;i="5.11,479,1422921600"; d="scan'208,217";a="135972428"
Received: from alln-core-5.cisco.com ([173.36.13.138]) by alln-iport-3.cisco.com with ESMTP; 27 Mar 2015 15:52:07 +0000
Received: from xhc-aln-x15.cisco.com (xhc-aln-x15.cisco.com [173.36.12.89]) by alln-core-5.cisco.com (8.14.5/8.14.5) with ESMTP id t2RFq7Fa010496 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 27 Mar 2015 15:52:07 GMT
Received: from xmb-rcd-x03.cisco.com ([169.254.7.184]) by xhc-aln-x15.cisco.com ([173.36.12.89]) with mapi id 14.03.0195.001; Fri, 27 Mar 2015 10:52:06 -0500
From: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
To: "rtgwg@ietf.org" <rtgwg@ietf.org>
Subject: Clearing counters
Thread-Topic: Clearing counters
Thread-Index: AQHQaKX5bnat6n90dU+DdZ9+D4b/fQ==
Date: Fri, 27 Mar 2015 15:52:06 +0000
Message-ID: <D13AE6EF.A6E8A%rrahman@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.4.8.150116
x-originating-ip: [10.86.255.234]
Content-Type: multipart/mixed; boundary="_004_D13AE6EFA6E8Arrahmanciscocom_"
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtgwg/JhW1cgVn9jnW7rIlM-iGcfu7l4w>
Cc: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
X-BeenThere: rtgwg@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Routing Area Working Group <rtgwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtgwg>, <mailto:rtgwg-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtgwg/>
List-Post: <mailto:rtgwg@ietf.org>
List-Help: <mailto:rtgwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtgwg>, <mailto:rtgwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Mar 2015 15:52:09 -0000

This is regarding the comment I made yesterday during draft-liu-rtgwg-yang-vrrp, Xufeng rightfully stated that this was a question which had to be addressed for all YANG models.

I have attached Juergen’s email on this topic.

Regards,
Reshad.


--- Begin Message ---
On Wed, Mar 04, 2015 at 10:30:37PM -0800, Mahesh Jethanandani wrote:
> Assuming one has defined stat counters in one container, like
ietf-interfaces has done with its statistics, does anyone have suggestions
on how one can essentially clear (reset to 0) all the counters in that
container.
>

Resetting counters is a bad idea. Once you have more than one
application trying to reset counters you get into trouble. Note
this RFC 6991 (lifted from RFC 2578):

       Counters have no defined 'initial' value, and thus, a
       single value of a counter has (in general) no information
       content.

Applications have to read a counter C at time t0 and then again at
time t1 and then calculate the difference C(t1) - C(t0). This allows
applications to obtain statistics at different time granularities
without stepping on each other.

/js

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

_______________________________________________
Rtg-yang-coord mailing list
Rtg-yang-coord@ietf.org
https://www.ietf.org/mailman/listinfo/rtg-yang-coord


--- End Message ---