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
[email protected]
https://www.ietf.org/mailman/listinfo/rtg-yang-coord



--- End Message ---
_______________________________________________
rtgwg mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/rtgwg

Reply via email to