Skip to main content

Early Review of draft-ietf-opsawg-discardmodel-03
review-ietf-opsawg-discardmodel-03-yangdoctors-early-lhotka-2024-08-28-00

Request Review of draft-ietf-opsawg-discardmodel
Requested revision No specific revision (document currently at 16)
Type Early Review
Team YANG Doctors (yangdoctors)
Deadline 2024-08-30
Requested 2024-08-08
Requested by Joe Clarke
Authors John Evans , Oleksandr Pylypenko , Jeff Haas , Aviran Kadosh , Mohamed Boucadair
I-D last updated 2026-08-21 (Latest revision 2026-07-30)
Completed reviews Yangdoctors Early review of -03 by Ladislav Lhotka (diff)
Opsdir Early review of -09 by Sergio Belotti (diff)
Intdir Early review of -09 by Satoru Matsushima (diff)
Yangdoctors Early review of -10 by Ladislav Lhotka (diff)
Secdir IETF Last Call review of -13 by Derrell Piper (diff)
Tsvart IETF Last Call review of -13 by Michael Tüxen (diff)
Genart IETF Last Call review of -13 by Roni Even (diff)
Intdir Telechat review of -14 by Carlos Pignataro (diff)
Comments
This document has just been revised to be Proposed Standard.  Prior to that, it was informational.  The rub is it is using YANG and the YANG data format to define an informational model for packet discards.  The info models I have seen use something like UML or a pseudo-language.  In this case, using YANG is a plus, and it has been shown that this info model can be turned into a data model for implementation.

We'd appreciate a review from the perspective of using YANG in this manner.  We decided to push to Standards Track to work within existing guidelines around YANG module and namespace naming.
Assignment Reviewer Ladislav Lhotka
State Completed
Request Early review on draft-ietf-opsawg-discardmodel by YANG Doctors Assigned
Posted at https://mailarchive.ietf.org/arch/msg/yang-doctors/-6B35y0sNRYNjjy3gbkJMM38Z5M
Reviewed revision 03 (document currently at 16)
Result Ready w/issues
Completed 2024-08-28
review-ietf-opsawg-discardmodel-03-yangdoctors-early-lhotka-2024-08-28-00
The reviewed Internet-Draft introduces YANG module
“ietf-packet-discard-reporting” that defines a hierarchical schema for
reporting received, transmitted and discarded network packets along with a
detailed classification of reasons for packet discard.

Whilst the module is relatively long, it is pretty trivial from the YANG point
of view in that it defines just the data hierarchy and no additional “business
rules” expressed e.g. via features or “when”/“must” statements.

It is not clear to me why the YANG module is touted as a representation of an
*information* model. Does it mean that an ensuing data model will contain more
details or be different in another way?

Perhaps related to the previous question is this: what is the reason for using
the data structure extension per RFC 8791? The I-D text indicates that the
schema could eventually be implemented in network devices for reporting packet
statistics, so “ietf-packet-discard-reporting” could IMO simply define regular
state data.

In many places, the module defines sibling containers “v4” and “v6” with
identical contents. This repetitive character is properly handled by YANG
groupings but, from the design point of view, I would prefer using a list with
address family as the key — using either “address-family” type from
“iana-routing-types” (RFC 8294) or an ad hoc type. This would not only make the
schema tree shorter but also make the module potentially applicable to other
address families. If there is a reason for using the hard-coded containers, it
should be stated in the I-D.

Nit: The module revisions in the “revision” statement and the file name in
“<CODE BEGINS>” differ.