<?xml version="1.0" encoding="US-ASCII"?>
<!-- <?xml version="1.0" encoding="UTF-8"?> -->

<!DOCTYPE rfc SYSTEM "rfc2629.dtd">

<?rfc toc="yes"?>
<?rfc rfcedstyle="yes"?>
<?rfc subcompact="no"?>
<?rfc symrefs="yes"?>

<rfc ipr="trust200902" category="std" docName="draft-ietf-i2nsf-nsf-monitoring-data-model-16">

<front>
  
  <title abbrev="NSF Monitoring Interface YANG Data Model">
    I2NSF NSF Monitoring Interface YANG Data Model
  </title>
  
  <author role="editor" initials="J." surname="Jeong" fullname="Jaehoon (Paul) Jeong">
    <organization abbrev="Sungkyunkwan University">
      Department of Computer Science and Engineering
    </organization>
    <address>
      <postal>
        <street>Sungkyunkwan University</street>
        <street>2066 Seobu-Ro, Jangan-Gu</street>
        <city>Suwon</city> 
        <region>Gyeonggi-Do</region>
        <code>16419</code>
        <country>Republic of Korea</country>
      </postal>
      <phone>+82 31 299 4957</phone>
      <facsimile>+82 31 290 7996</facsimile>
      <email>pauljeong@skku.edu</email>
      <uri>http://iotlab.skku.edu/people-jaehoon-jeong.php
      </uri>
    </address>
  </author>
  
  <author initials="P." surname="Lingga" fullname="Patrick Lingga">
    <organization abbrev="Sungkyunkwan University">
        Department of Electrical and Computer Engineering
    </organization>
    <address>
      <postal>
        <street>Sungkyunkwan University</street>
        <street>2066 Seobu-Ro, Jangan-Gu</street>
        <city>Suwon</city>
        <region>Gyeonggi-Do</region>
        <code>16419</code>
        <country>Republic of Korea</country>
      </postal>
      <phone>+82 31 299 4957</phone>
      <email>patricklink@skku.edu</email>
    </address>
  </author>
  
  <author initials="S." surname="Hares" fullname="Susan Hares">
    <organization abbrev="Huawei">
      Huawei 
    </organization>
    <address>
      <postal>
        <street>7453 Hickory Hill</street>
        <city>Saline</city> <region>MI</region>
        <code>48176</code>
        <country>USA</country>
      </postal>
      <phone>+1-734-604-0332</phone>
      <email>shares@ndzh.com</email>
    </address>
  </author>

  <author initials="L." surname="Xia" fullname="Liang (Frank) Xia">
    <organization abbrev="Huawei">
      Huawei
    </organization>
    <address>
      <postal>
        <street>101 Software Avenue, Yuhuatai District</street>
        <city>Nanjing</city> 
        <region>Jiangsu</region>
        <country>China</country>
      </postal>
      <phone></phone>
      <email>Frank.xialiang@huawei.com</email>
    </address>
  </author>

  <author initials="H." surname="Birkholz" fullname="Henk Birkholz">
    <organization abbrev="Fraunhofer SIT">
      Fraunhofer Institute for Secure Information Technology
    </organization>
    <address>
      <postal>
          <street>Rheinstrasse 75</street>
          <city>Darmstadt</city>
          <code>64295</code>
          <country>Germany</country>
      </postal>
      <phone></phone>
      <email>henk.birkholz@sit.fraunhofer.de</email>
    </address>
  </author>

  <date month="March" day="22" year="2022" />  
         
<!-- [rfced] Please insert any keywords (beyond those that appear in
the title) for use on http://www.rfc-editor.org/rfcsearch.html. -->

  <keyword>Internet-Draft</keyword>   

  <abstract>
    <t>
      This document proposes an information model and the corresponding YANG
      data model of an interface for monitoring Network Security Functions
      (NSFs) in the Interface to Network Security Functions (I2NSF) framework.
      If the monitoring of NSFs is performed with the NSF monitoring interface
      in a standard way, it is possible to detect the indication of
      malicious activity, anomalous behavior, the potential sign of 
      denial-of-service attacks, or system overload in a timely manner.  This monitoring
      functionality is based on the monitoring information that is generated
      by NSFs.  Thus, this document describes not only an information model
      for the NSF monitoring interface along with a YANG tree diagram, but
      also the corresponding YANG data model.
    </t>
  </abstract>

<!--
<note title="Editorial Note (To be removed by RFC Editor)">
  <t>Please update these statements within the document with the RFC
  number to be assigned to this document:<list style="empty">
      <t>"This version of this YANG module is part of RFC 6087;"</t>

      <t>"RFC XXXX: I2NSF NSF Monitoring YANG Data Model"</t>

      <t>"reference: RFC XXXX"</t>
    </list>Please update the "revision" date of the YANG module.</t>
</note>
-->

</front>

<middle>

  <section title="Introduction">
    <t>
      According to <xref target="RFC8329"/>, the interface
      provided by a Network Security Function (NSF) (e.g., Firewall, IPS, or
      Anti-DDoS function) to enable the collection of monitoring 
      information is referred to as an I2NSF Monitoring Interface.
      This interface enables the sharing of vital data from the NSFs 
      (e.g., events, records, and counters) to an NSF data collector 
      (e.g., Security Controller) through a variety of mechanisms
      (e.g., queries and notifications).
      The monitoring of NSF plays an important role in an overall
      security framework, if it is done in a timely way. The
      monitoring information generated by an NSF can be a good, early
      indication of anomalous behavior or malicious activity, such as denial-of-service (DoS)
      attacks.
    </t>

    <t>
      This document defines an information model of an NSF
      monitoring interface that provides visibility into an NSF for the NSF
      data collector 
      (note that an NSF data collector is defined as an entity to collect NSF
      monitoring data from an NSF, such as Security Controller).  It specifies the 
      information and illustrates the methods
      that enable an NSF to provide the information required in order to be
      monitored in a scalable and efficient way via the NSF Monitoring Interface. 
      The information model for the NSF monitoring interface presented in
      this document is complementary for the security policy provisioning
      functionality of the NSF-Facing Interface specified in
      <xref target="I-D.ietf-i2nsf-nsf-facing-interface-dm"/>.
    </t>

    <t>
      This document also defines a YANG <xref target="RFC7950" /> data model for
      the NSF monitoring interface, which is derived from the information model
      for the NSF monitoring interface.
    </t>
    
    <t>
      Note that this document covers a subset of monitoring data for systems
      and NSFs, which are related to security.
    </t>
  </section> <!-- End Section for Introduction -->

<!--
<section anchor="section:Requirements-Language" title="Requirements Language">
  <t>
  The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", 
  "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be 
  interpreted as described in <xref target="RFC2119" /><xref target="RFC3444" />
  <xref target="RFC8174" />.
  </t>
</section>
-->

  <section anchor="section:Terminology" title="Terminology">
    <t>
      The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
      "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
      "OPTIONAL" in this document are to be interpreted as described in BCP 14
      <xref target="RFC2119" /> <xref target="RFC8174" />  when, and only
      when, they appear in all capitals, as shown here.
    </t>
    <t>
      This document uses the terminology described in <xref target="RFC8329" />.
      In addition, the following terms are defined in this document:
      <list style="symbols">
        <t>
          I2NSF User: An entity that delivers a high-level security policy
          to the Security Controller and may request monitoring
          information via the NSF data collector.
        </t>
        <t>
          Monitoring Information: Relevant data that can be processed
          to know the status and performance of the network and the NSF.
          The monitoring information in an I2NSF environment consists of 
          I2NSF Events, I2NSF Records, and I2NSF Counters 
          (see <xref target="retention-and-emission"/> for the detailed 
          definition). This information is to be delivered to the NSF 
          data collector.
        </t>
        <t>
          Notification: Unsolicited transmission of monitoring information.
        </t>
        <t>
          NSF Data Collector: An entity that collects NSF monitoring information
          from NSFs, such as Security Controller.
        </t>
        <t>
          Subscription: An agreement initialized by the NSF data collector
          to receive monitoring information from an NSF. The method to subscribe 
          follows the method by either NETCONF or RESTCONF, explained in 
          <xref target="RFC5277"/> and <xref target="RFC8650"/>, respectively.
        </t>
      </list>
    </t>
      
    <t>
      This document follows the guidelines of <xref target="RFC8407" />, uses
      the common YANG types defined in <xref target="RFC6991" />, and adopts
      the Network Management Datastore Architecture (NMDA)
      <xref target="RFC8342" />.  The meaning of the symbols in tree diagrams
      is defined in <xref target="RFC8340" />.
    </t>
  </section> <!-- End Section For Terminology -->

<!-- START: Information Model -->

  <section anchor="use-cases-for-nsf-monitoring-data" title="Use Cases for NSF Monitoring Data">

    <t>
      As mentioned earlier, monitoring plays a critical role in an
      overall security framework. The monitoring of the NSF provides very
      valuable information to an NSF data collector (e.g., Security
      Controller) in maintaining the provisioned security posture. 
      Besides this, there are various other reasons to monitor the NSF
      as listed below:
    </t>

    <t>
      <list style="symbols">
        <t>
          The I2NSF User that is the security administrator can configure a policy that is
          triggered on a specific event occurring in the NSF or the network <xref target="RFC8329"/>
          <xref target="I-D.ietf-i2nsf-consumer-facing-interface-dm"/>.
          If an NSF data collector (e.g., Security Controller) detects the specified event, it can
          configure additional security functions as defined by policies.
        </t>
        <t>
          The events triggered by an NSF as a result of security policy
          violation can be used by Security Information and Event 
          Management (SIEM) to detect any suspicious activity in a 
          larger correlation context.
        </t>
        <t>
          The information (i.e., events, records, and counters)
          from an NSF can be used to build advanced analytics, such as
          behavior and predictive models to improve security posture in 
          large deployments.
        </t>
        <t>
          The NSF data collector can use events from the NSF for
          achieving high availability. It can take corrective actions 
          such as restarting a failed NSF and horizontally scaling up
          the NSF.
        </t>
        <t>
          The information (i.e., events, records, and counters)
          from the NSF can aid in the root cause analysis of an operational
          issue, so it can improve debugging.
        </t>
        <t>
          The records from the NSF can be used to build historical
          data for operation and business reasons.
        </t>
      </list>
    </t>

  </section> <!-- End Section for Use Cases -->
  
  <section anchor="classification-of-nsf-monitoring-data" title="Classification of NSF Monitoring Data">

    <t>
      In order to maintain a strong security posture, it is not only
      necessary to configure an NSF's security policies but also to continuously
      monitor the NSF by checking acquirable and observable data. This enables
      security administrators to assess the state of the networks in a timely fashion. 
      It is not possible to block all the internal and external threats based
      on static security posture. A more practical approach is supported
      by enabling dynamic security measures, for which continuous visibility 
      is required. This document defines a set of monitoring elements
      and their scopes that can be acquired from an NSF and can be used as
      NSF monitoring data. In essence, this monitoring data can be
      leveraged to support constant visibility on multiple levels of
      granularity and can be consumed by the corresponding functions.
     </t>

    <t>
      Three basic domains of monitoring data originating from a system 
      entity <xref target="RFC4949"/>, i.e., an NSF, are discussed 
      in this document.
    </t>

    <t>
      <list style="symbols">
        <t>
          Retention and Emission from NSFs
        </t>
        <t>
          Notifications for Events and Records
        </t>
        <t>
          Push and Pull for the retrieval of monitoring data from NSFs
        </t>
      </list>
    </t>
    
    <t>
      Every system entity creates information about some context with defined I2NSF
      monitoring data, and so every system entity that provides such information can be an I2NSF component. 
      This information is intended to be consumed by other I2NSF components, which deals with 
      NSF monitoring data in an automated fashion.
    </t>

    <section anchor="retention-and-emission" title="Retention and Emission from NSFs">

      <t>
        A system entity (e.g., NSF) first retains I2NSF monitoring data inside its own system 
        before emitting the information to another I2NSF component (e.g., NSF Data Collector).
        The I2NSF monitoring information consist of I2NSF Events, I2NSF Records, and I2NSF Counters
        as follows:
        <list style="hanging">
          <t hangText='I2NSF Event:'>
            I2NSF Event is defined as an important occurrence at a particular time,
            that is, a change in the system being managed or a change in the
            environment of the system being managed. An I2NSF Event requires immediate attention
            and should be notified as soon as possible. When used in the context of an (imperative) I2NSF Policy Rule,
            an I2NSF Event is used to determine whether the Condition clause of that Policy Rule can
            be evaluated or not. The Alarm Management Framework in <xref target="RFC3877"/> defines an event as 
            something that happens which may be of interest. Examples of an event are a fault, a change in status, 
            crossing a threshold, or an external input to the system. In the I2NSF
            domain, I2NSF events are created following the definition of an
            event in the Alarm Management Framework. 
          </t>
          
          <t hangText='I2NSF Record:'>
            A record is defined as an item of information that is
            kept to be looked at and used in the future.  Typically, records are
            the information, which is based on operational and informational data
            (i.e., various changes in system characteristics). They are generated
            by a system entity (e.g., NSF) at particular instants to be kept
            without any changes afterward.
            A set of records has an ordering in time based on when they are generated.
            Unlike I2NSF Events, records do not require immediate attention but may be useful for visibility 
            and retroactive cyber forensics. Records are typically stored in log-files
            or databases on a system entity or NSF.  
            The examples of records include user activities, device performance,
            and network status. They are important for debugging, auditing, and security forensic of a
            system entity or the network having the system entity.
          </t>
          
          <t hangText='I2NSF Counter:'>
            An I2NSF Counter is defined as a specific representation of an information
            element whose value changes very frequently. Prominent examples are network interface
            counters for protocol data unit (PDU) amount, byte amount, drop counters, and error counters.
            <!--Other examples are integer approximations to continuous values, such as a processor
            temperature measured in tenths of a degree or the percentage of a disk that is used.-->
            Counters are useful in debugging and visibility into operational behavior of a system entity (e.g., NSF). 
            When an NSF data collector asks for the value of a counter, a system entity MUST update
            the counter information and emit the latest information to the NSF data collector.
          </t>
        </list>
          
      </t>
      
      <t>
        Retention is defined as the storing of monitoring data in NSFs.
        The retention of I2NSF monitoring information may be affected by the importance
        of the data. The importance of the data could be context-dependent,
        where it may not just be based on the type of data, but may 
        also depend on where it is deployed, e.g., a test lab and testbed. 
        The local policy and configuration will dictate the policies and 
        procedures to review, archive, or purge the collected 
        monitoring data.
      </t>
      
      <t>
        Emission is defined as the delivery of monitoring data in NSFs to an NSF data collector.
        The I2NSF monitoring information retained on a system entity 
        (e.g., NSF) may be delivered to a corresponding I2NSF User 
        via an NSF data collector. The information consists of the 
        aggregated records, typically in the form of log-files or 
        databases. For the NSF Monitoring Interface to deliver the 
        information to the NSF data collector, the NSF needs to
        accommodate standardized delivery protocols, such as
        NETCONF <xref target="RFC6241"/> and RESTCONF
        <xref target="RFC8040"/>. The NSF data collector
        can forward the information to the I2NSF User through 
        standardized delivery protocols (e.g., RESTCONF and NETCONF).
        The interface for the delivery of Monitoring Data from the 
        NSF data collector to the I2NSF User is out of the scope of 
        this document.
      </t>

    </section>
    
    <section anchor="notifications-events-and-records" title="Notifications for Events and Records">

      <t>
        A specific task of an I2NSF User is to provide I2NSF Policy Rules.
        The rules of a policy are composed of three clauses: Event, 
        Condition, and Action clauses. In consequence, an I2NSF Event is 
        specified to trigger the evaluation of the Condition clause
        of the I2NSF Policy Rule. Such an I2NSF Event is defined as an
        important occurrence at a particular time in the system 
        being managed, and/or in the environment of the system being 
        managed whose concept aligns well with the generic 
        definition of Event from <xref target="RFC3877"/>.
      </t>
  
      <t>
        Another role of the I2NSF Event is to trigger a notification
        for monitoring the status of an NSF.
        A notification is defined in <xref target="RFC3877"/> as an
        unsolicited transmission of management information. 
        System alarm (called alarm) is defined as a warning related to 
        service degradation in system hardware in <xref target="system-alarms"/>.
        System event (called alert) is defined as a warning about any 
        changes of configuration, any access violation, information
        about sessions and traffic flows in <xref target="system-events"/>. 
        Both an alarm and an alert are I2NSF Events that can be
        delivered as a notification. The model illustrated in this
        document introduces a complementary type of information that
        can be a conveyed notification.
      </t>
      
      <t>
        In I2NSF monitoring, a notification is used to deliver either 
        an event or a record via the I2NSF Monitoring Interface. The
        difference between the event and record is the timing by
        which the notifications are emitted. An event is emitted as
        soon as it happens in order to notify an NSF Data Collector
        of the problem that needs immediate attention. A record is
        not emitted immediately to the NSF Data Collector, and it can
        be emitted periodically to the NSF Data Collector.
      </t>

      <t>
        It is important to note that an NSF Data Collector as a
        consumer (i.e., observer) of a notification assesses the
        importance of the notification rather than an NSF as a
        producer. The producer can include metadata in a notification
        that supports the observer in assessing its importance (e.g.,
        severity).
      </t>

    </section>
    
    <section anchor="push-and-pull" title="Push and Pull for the retrieval of monitoring data from NSFs">
      <t>
        An important aspect of monitoring information is the freshness 
        of the information. From the perspective of security, it is 
        important to notice changes in the current status of the network. The 
        I2NSF Monitoring Interface provides the means of sending 
        monitored information from the NSFs to an NSF data collector 
        in a timely manner. Monitoring 
        information can be acquired by a client (i.e., NSF data 
        collector) from a server (i.e., NSF) using push <xref target="RFC5277"/> <xref target="RFC8641"/> 
        or pull methods <xref target="RFC6241"/> <xref target="RFC8040"/>.
      </t>
      <t>
        The pull is a query-based method to obtain information
        from the NSF. In this method, the NSF will remain passive until 
        the information is requested from the NSF data collector. Once 
        a request is accepted (with proper authentication), the NSF
        MUST update the information before sending it to the NSF data
        collector.
      </t>
      <t>
        The push is a report-based method to obtain information 
        from the NSF. The report-based method ensures the information 
        can be delivered immediately without any requests. This method 
        is used by the NSF to actively provide information to the NSF 
        data collector. To receive the information, the NSF data 
        collector subscribes to the NSF for the information.
      </t>
      <t>
        These acquisition methods are used for different types of 
        monitoring information. The information that has a high level 
        of urgency (i.e., I2NSF Event) should be provided with the
        push method, while information that has a lower level 
        of urgency (i.e., I2NSF Record and I2NSF Counter) can be 
        provided with either the pull method or push method.
      </t>
      
      <!--
<t>
  The freshness of the monitored information depends on the acquisition method.
  Ideally, an I2NSF User is accessing every relevant information about the I2NSF
  Component and is emitting I2NSF Events to an NSF data collector (e.g., Security 
  Controller) in a timely manner. Publication of events via 
  a pubsub/broker model, peer-2-peer meshes, or static defined channels are only a
  few examples on how a solicited push of I2NSF Events can be facilitated. The actual
  mechanism implemented by an I2NSF Component is out of the scope of this document.
</t>

<t>
  Often, the corresponding management interfaces have to be queried in intervals or
  on demand if required by an I2NSF Policy rule. In some cases, the collection of
  information has to be conducted via a login mechanism provided by a system
  entity. Accessing records of information via this kind of unsolicited polls can
  introduce a significant latency in regard to the freshness of the monitored
  information. The actual definition of intervals implemented by an I2NSF
  Component is also out of scope of this document.
</t>
      -->
    </section>
    
  </section> <!-- End Section for Classification of Monitoring Data -->

  <section anchor="basic-information-model-for-monitoring-data" title="Basic Information Model for Monitoring Data">

    <t>
      As explained in the above section, there is a wealth of data
      available from NSFs that can be monitored. Firstly, there must be
      some general information with each monitoring message sent from an NSF
      that helps a consumer to identify metadata with that message, which
      are listed as below:
    </t>

    <t>
      <list style="symbols">
        <t>
          message: The extra detailed description of NSF monitoring data
          to give an NSF data collector the context information as metadata.
        </t>
        <t>
          vendor-name: The vendor's name of the NSF that generates 
          the message.
        </t>
        <t>
          device-model: The model of the device, can be represented 
          by the device model name or serial number. This field is 
          used to identify the model of the device that provides the
          security service.
        </t>
        <t>
          software-version: The version of the software used to 
          provide the security service.
        </t>
        <t>
          nsf-name: The name or IP address of the NSF generating the message.
          If the given nsf-name is not an IP address, the name can be an
          arbitrary string including a FQDN (Fully Qualified Domain
          Name). The name MUST be unique in the scope of management 
          domain for a different NSF to identify the NSF that generates 
          the message.
        </t>
        <t>
          timestamp: The time when the message was generated. 
          For the notification operations (i.e., System Alarms, System Events,
          NSF Events, System Logs, and NSF Logs), this is represented by the 
          eventTime of NETCONF event notification <xref target="RFC5277"/>
          For other operations (i.e., System Counter and NSF Counter), the 
          timestamp MUST be provided separately. The time format used is 
          following the rules in Section 5.6 of <xref target="RFC3339"/>.
        </t>
        <t>
          language: describes the human language 
          intended for the user, so that it allows a user to
          verify the language that is used in the 
          notification (i.e., '../message',
          '/i2nsf-log/i2nsf-nsf-system-access-log/output', and
          '/i2nsf-log/i2nsf-system-user-activity-log/additional-info/cause'). 
          The attribute is encoded following the rules in Section 2.1 of
          <xref target="RFC5646"/>. The default language tag is "en-US".
        </t>
      </list>
    </t>

  </section> <!-- End Section for Basic Information Model -->
  
  <section anchor="extended-information-model-for-monitoring-data" title="Extended Information Model for Monitoring Data">

    <t>
      The extended information model is the specific monitoring data that
      covers the additional information associated with the detailed 
      information of status and performance of the network and the NSF over
      the basic information model.  The extended information combined 
      with the basic information creates the monitoring information (i.e.,
      I2NSF Event, Record, and Counter).
    </t>
    
    <t>
      The extended monitoring information has settable characteristics for data 
      collection as follows:
      <list style="symbols">
        <t>
          Acquisition method: The method to obtain the message. 
          It can be a "query" or a "subscription".
          A "query" is a request-based method to acquire the solicited information.
          A "subscription" is a report-based method that pushes information to the subscriber.
        </t>
        
        <t>
          Emission type: The cause type for the message to be emitted.
          This attribute is used only when the acquisition method is a "subscription" method.
          The emission type can be either "on-change" or "periodic".
          An "on-change" message is emitted when an important event happens in the NSF.
          A "periodic" message is emitted at a certain time interval.
          The time to periodically emit the message is configurable.
        </t>
        
        <t>
          Dampening type: The type of message dampening to stop the rapid
          transmission of messages. The dampening types are "on-repetition" and "no-dampening".
          The "on-repetition" type limits the transmitted "on-change" message to one message
          at a certain interval (e.g., 100 centiseconds). This interval is defined as dampening-period
          in <xref target="RFC8641"/>. The dampening-period is configurable in the unit of centiseconds.
          The "no-dampening" type does not limit the transmission for the messages of the same type.
          In short, "on-repetition" means that the dampening is active and 
          "no-dampening" is inactive. Activating the dampening for an "on-change" type of message
          is RECOMMENDED to reduce the number of messages generated.
        </t>
      </list>
    </t>
    
    <t>
      Note that the characteristic information is not mandatory to be 
      included in a monitoring message. The information is expected 
      to be stored and may or may not be useful in some ways in the 
      future. In any case, the inclusion of the characteristic 
      information is up to the implementation.
    </t>
    

    <section anchor="system-alarms" title="System Alarms">

      <t>System alarms have the following characteristics:</t>

      <t>
        <list style="symbols">
          <t>acquisition-method: subscription</t>
          <t>emission-type: on-change</t>
          <t>dampening-type: on-repetition or no-dampening</t>
        </list>
      </t>

      <section anchor="memory-alarm" title="Memory Alarm">

        <t>
          The memory is the hardware to store information temporarily or
          for a short period, i.e., Random Access Memory (RAM).
          The memory-alarm is emitted when the memory usage exceeds the
          threshold.
          The following information should be included in a Memory
          Alarm:
        </t>

        <t>
          <list style="symbols">
            <t>
              event-name: memory-alarm.
            </t>
            <t>
              usage: specifies the amount of memory used in percentage.
            </t>
            <t>
              threshold: The threshold triggering the alarm in percentage.
            </t>
            <t>
              severity: The severity level of the message. There are four
              levels, i.e., critical, high, middle, and low.
            </t>
            <t>
              message: Simple information as a human readable text string such as "The memory usage 
              exceeded the threshold" or with extra information.
            </t>
          </list>
        </t>

      </section>
      
      <section anchor="cpu-alarm" title="CPU Alarm">

        <t>
          CPU is the Central Processing Unit that executes basic operations
          of the system.
          The cpu-alarm is emitted when the CPU usage exceeds the threshold.
          The following information should be included in a CPU Alarm:
        </t>

        <t>
          <list style="symbols">
            <t>
              event-name: cpu-alarm.
            </t>
            <t>
              usage: Specifies the CPU utilization in percentage.
            </t>
            <t>
              threshold: The threshold triggering the event in percentage.
            </t>
            <t>
              severity: The severity level of the message. There are four
              levels, i.e., critical, high, middle, and low.
            </t>
            <t>
              message: Simple information as a human readable text string such as "The CPU usage 
              exceeded the threshold" or with extra information.
            </t>
          </list>
        </t>

      </section>
      
      <section anchor="disk-alarm" title="Disk (Storage) Alarm">

        <t>
          Disk or storage is the hardware to store information for a long time, i.e.,
          Hard Disk or Solid-State Drive.
          The disk-alarm is emitted when the Disk usage exceeds the threshold.
          The following information should be included in a Disk Alarm:
        </t>

        <t>
          <list style="symbols">
            <t>
              event-name: disk-alarm.
            </t>
            <t>
              usage: Specifies the ratio of the used disk space to the whole disk space in terms of percentage.
            </t>
            <t>
              threshold: The threshold triggering the event in percentage.
            </t>
            <t>
              severity: The severity level of the message. There are four
              levels, i.e., critical, high, middle, and low.
            </t>
            <t>
              message: Simple information as a human readable text string such as "The disk usage 
              exceeded the threshold" or with extra information.
            </t>
          </list>
        </t>

      </section>
      
      <section anchor="hardware-alarm" title="Hardware Alarm">

        <t>
          The hardware-alarm is emitted when a hardware, e.g., CPU, memory,
          disk, or interface, problem is detected.
          The following information should be included in a Hardware
          Alarm:
        </t>

        <t>
          <list style="symbols">
            <t>
              event-name: hardware-alarm.
            </t>
            <t>
              component-name: It indicates the hardware component responsible for
              generating this alarm.
            </t>
            <t>
              severity: The severity level of the message. There are four
              levels, i.e., critical, high, middle, and low.
            </t>
            <t>
              message: Simple information as a human readable text string such as "The hardware component has 
              failed or degraded" or with extra information.
            </t>
          </list>
        </t>

      </section>
      
      <section anchor="interface-alarm" title="Interface Alarm">

      <t>
        Interface is the network interface for connecting a device with
        the network.
        The interface-alarm is emitted when the state of the interface is changed.
        The following information should be included in an Interface Alarm:
      </t>

      <t>
        <list style="symbols">
          <t>
            event-name: interface-alarm.
          </t>
          <t>
            interface-name: The name of the interface.
          </t>
          <t>
            interface-state: The status of the interface, i.e., down,
            up (not congested), congested (up but congested), testing,
            unknown, dormant, not-present, and lower-layer-down.
          </t>
          <t>
            severity: The severity level of the message. There are four
            levels, i.e., critical, high, middle, and low.
          </t>
          <t>
            message: Simple information as a human readable text string  such as "The interface is 'interface-state'"
            or with extra information.
          </t>
        </list>
      </t>

      </section>
  
    </section>
  
    <section anchor="system-events" title="System Events">

      <t>
        System events (as alerts) have the following characteristics:
      </t>

      <t>
        <list style="symbols">
          <t>acquisition-method: subscription</t>
          <t>emission-type: on-change</t>
          <t>dampening-type: on-repetition or no-dampening</t>
        </list>
      </t>

      <section anchor="access-violation" title="Access Violation">

        <t>
          The access-violation system event is an event when a user
          tries to access (read, write, create, or delete)
          any information or execute commands above their privilege.
          The following information should be included in this event:
        </t>

        <t>
          <list style="symbols">
            <t>
              event-name: access-violation.
            </t>
            <t>
              identity: The information to identify the attempted
              access violation. The minimum information (extensible)
              that should be included:
              <list style="numbers">
                <t>
                  user: The unique username that attempted access violation.
                </t>
                <t>
                  group: Group(s) to which a user belongs. A user can 
                  belong to multiple groups.
                </t>
                <t>
                  ip-address: The IP address of the user that triggered
                  the event.
                </t>
                <t>
                  l4-port-number: The transport layer port number used by the user.
                </t>
              </list>
            </t>
            <t>
              authentication: The method to verify the valid user,
              i.e., pre-configured-key and certificate-authority.
            </t>
            <t>
              message: The message as a human readable text string to give the context of the event, 
              such as "Access is denied".
            </t>
          </list>
        </t>

      </section>
    
      <section anchor="configuration-change" title="Configuration Change">

        <t>
          A configuration change is a system event when a new configuration 
          is added or an existing configuration is modified. 
          The following information should be included in this event:
        </t>

        <t>
          <list style="symbols">
            <t>
              event-name: configuration-change.
            </t>
            <t>
              identity: The information to identify the user that 
              updated the configuration. The minimum information
              (extensible) that should be included:
              <list style="numbers">
                <t>
                  user: The unique username that changes the configuration.
                </t>
                <t>
                  group: Group(s) to which a user belongs. A user can 
                  belong to multiple groups.
                </t>
                <t>
                  ip-address: The IP address of the user that triggered
                  the event.
                </t>
                <t>
                  l4-port-number: The transport layer port number used by the user.
                </t>
              </list>
            </t>
            <t>
              authentication: The method to verify the valid user, 
              i.e., pre-configured-key and certificate-authority.
            </t>
            <t>
              message: The message as a human readable text string to give the context of the event, 
              such as "Configuration is modified", 
              "New configuration is added", or "A configuration has 
              been removed".
            </t>
            <t>
              changes: Describes the modification that
              was made to the configuration. The minimum information 
              that must be provided is the name of the policy that 
              has been altered (added, modified, or removed). Other 
              detailed information about the configuration changes is
              up to the implementation.
            </t>
          </list>
        </t>

      </section>
      
      <section anchor="session-table-event" title="Session Table Event">

        <t>
          A session is defined as a connection (i.e., traffic flow)
          of a data plane (e.g., TCP, UDP, and SCTP).
          Session Table Event is the event triggered by the session
          table of an NSF. A session table holds the information of
          the currently active sessions.
          The following information should be included in a Session Table
          Event:
        </t>

        <t>
          <list style="symbols">
            <t>event-name: detection-session-table.</t>
            <t>current-session: The number of concurrent sessions.</t>
            <t>maximum-session: The maximum number of sessions that the session table can support.</t>
            <t>threshold: The threshold (in terms of an allowed number of sessions) triggering the event.</t>
            <t>message: The message as a human readable text string to give the context of the event, such as 
            "The number of sessions exceeded the table threshold".</t>
          </list>
        </t>

      </section>

      <section anchor="traffic-flows" title="Traffic Flows">

        <t>
          Traffic flows need to be monitored because they might be used for
          security attacks to the network. The following information should be
          included in this event:
        </t>

        <t>
          <list style="symbols">
            <t>
              event-name: traffic-flows.
            </t>
            <t>
              interface-name: The mnemonic name of the network interface
            </t>
            <t>
              interface-type: The type of a network interface such as an ingress or
              egress interface.
            </t>
            <t>
              src-mac: The source MAC address of the traffic flow. This 
              information may or may not be included depending on 
              the type of traffic flow. For example, the information
              will be useful and should be included if the traffic 
              flows are traffic flows of Link Layer Discovery Protocol (LLDP) <xref target="IEEE-802.1AB"/>, 
              Address Resolution Protocol (ARP) for IPv4 <xref target="RFC0826"/>, and 
              Neighbor Discovery Protocol (ND) for IPv6 <xref target="RFC4861"/>.
            </t>
            <t>
              dst-mac: The destination MAC address of the traffic flow. This 
              information may or may not be included depending on 
              the type of traffic flow. For example, the information
              will be useful and should be included if the traffic 
              flows are LLDP, ARP for IPv4, or ND for IPv6 traffic flows.
            </t>
            <t>
              src-ip: The source IPv4 or IPv6 address of the traffic flow.
            </t>
            <t>
              dst-ip: The destination IPv4 or IPv6 address of the traffic flow.
            </t>
            <t>
              src-port: The transport layer source port number of the traffic flow.
            </t>
            <t>
              dst-port: The transport layer destination port number of the traffic flow.
            </t>
            <t>
              protocol: The protocol of the traffic flow.
            </t>
            <t>
              measurement-time: The duration of the measurement in seconds for the
              arrival rate and arrival throughput of packets of a traffic flow.
              These two metrics (i.e., arrival rate and arrival throughput) are
              measured over the past measurement duration before now.
            </t>
            <t>
              arrival-rate: Arrival rate of packets of the traffic flow in 
              packets per second measured over the past "measurement-time".
            </t>
            <t>
              arrival-throughput: Arrival rate of packets of the traffic
              flow in bytes per second measured over the past 
              "measurement-time".
            </t>
          </list>
        </t>
        
        <t>
          Note that the NSF Monitoring Interface data model is focused 
          on a generic method to collect the monitoring information of 
          systems and NSFs including traffic flows related to security
          attacks and system resource usages. On the other hand, IPFIX <xref target="RFC7011"/>
          is a standard method to collect general information on traffic 
          flows rather than security.

        </t>

      </section>
    
    </section>

    <section anchor="nsf-events" title="NSF Events">

      <t>The NSF events provide the event that is detected by a specific
      NSF that supported a certain capability. This section only discusses the
      monitoring data for the advanced NSFs discussed in 
      <xref target="I-D.ietf-i2nsf-capability-data-model"/>. 
      The NSF events information can be extended to support other types
      of NSF.
      NSF events have the following characteristics:</t>

      <t>
        <list style="symbols">
          <t>acquisition-method: subscription</t>
          <t>emission-type: on-change</t>
          <t>dampening-type: on-repetition or no-dampening</t>
        </list>
      </t>

      <section anchor="detection-ddos" title="DDoS Detection">

        <t>
          The following information should be included in a 
          Denial-of-Service (DoS) or Distributed Denial-of-Service
          (DDoS) Event:
        </t>

        <t>
          <list style="symbols">
            <t>
              event-name: detection-ddos.
            </t>
            <t>
              attack-type: The type of DoS or DDoS Attack, i.e., SYN flood, ACK flood, SYN-ACK
              flood, FIN/RST flood, TCP Connection flood, UDP flood, ICMP
              flood, HTTPS flood, HTTP flood, DNS query flood, DNS reply
              flood, SIP flood, TLS flood, and NTP amplification flood.
              This can be extended with additional types of DoS or DDoS attack.
            </t>
            <t>
              attack-src-ip: The IP addresses of the source of the DDoS attack.
              Note that not all IP addresses should be included but only limited
              IP addresses are included to conserve the server resources. 
              The listed attacking IP addresses can be an arbitrary sampling of the 
              "top talkers", i.e., the attackers that send the highest amount of
              traffic.
            </t>
            <t>
              attack-dst-ip: The destination IPv4 or IPv6 addresses of attack
              traffic. It can hold multiple IPv4 or IPv6 addresses.
            </t>
            <t>
              attack-src-port: The transport layer source port numbers of the attack traffic.
              Note that not all ports will have been seen on all the corresponding source IP addresses.
            </t>
            <t>
              attack-dst-port: The transport layer destination port numbers that the attack traffic aims at.
              Note that not all ports will have been seen on all the corresponding destination IP addresses.
            </t>
            <t>
              start-time: The time stamp indicating when the attack started. 
              The time format used is following the rules in Section 5.6
              of <xref target="RFC3339"/>.
            </t>
            <t>
              end-time: The time stamp indicating when the attack ended. If
              the attack is still ongoing when sending out the notification, this
              field can be empty. The time format used is following the rules in
              Section 5.6 of <xref target="RFC3339"/>.
            </t>
            <t>
              attack-rate: The packets per second of attack traffic.
            </t>
            <t>
              attack-throughput: The bytes per second of attack traffic.
            </t>
            <t>
              rule-name: The name of the I2NSF Policy Rule being triggered. 
              Note that rule-name is used to match a detected NSF event with a policy 
              rule in <xref target="I-D.ietf-i2nsf-nsf-facing-interface-dm"/>.
            </t>
          </list>
        </t>

      </section>
      
      <section anchor="virus-event" title="Virus Event">

        <t>
          This information is used when a virus is detected within a 
          traffic flow or inside a host. 
          Note that "malware" is a more generic word for malicious software,
          including virus and worm. In the document, "virus" is used to 
          represent "malware" such that they are interchangeable.
          The following information should be included in a Virus
          Event:
        </t>

        <t>
          <list style="symbols">
            <t>event-name: detection-virus.</t>
            <t>
              virus-name: Name of the virus.
            </t>
            <t>
              virus-type: Type of the virus. e.g., trojan, worm, and macro virus.
            </t>
            <t>
              The following information is used only when the virus is detected within
              the traffic flow and not yet attacking the host:
              <list style="symbols">
                <t>
                  dst-ip: The destination IP address of the flow where the
                  virus is found.
                </t>
                <t>
                  src-ip: The source IP address of the flow where the virus
                  is found.
                </t>
                <t>
                  src-port: The source port of the flow where the virus is
                  found.
                </t>
                <t>
                  dst-port: The destination port of the flow where the virus
                  is found.
                </t>
              </list>
            </t>
            <t>
              The following information is used only when the virus is detected within
              a host system:
              <list style="symbols">
                <t>
                  host: The name or IP address of the host/device that is
                  infected by the virus.       
                  If the given name is not an IP address, the
                  name can be an arbitrary string including a FQDN 
                  (Fully Qualified Domain Name). The name MUST be unique
                  in the scope of management domain for identifying the
                  device that has been infected with a virus.
                </t>
                <t>
                  os: The operating system of the host that has the virus.
                </t>
                <t>
                  file-type: The type of file (indicated by the file's suffix,
                  e.g., .exe) virus code is found in (if applicable).
                </t>
                <t>
                  file-name: The name of the file where the virus is hidden.
                </t>
              </list>
            </t>
            <!--<t>
              raw-info: The information describing the flow triggering
              the event.
            </t>-->
            <t>
              rule-name: The name of the rule being triggered.
            </t>
          </list>
        </t>

        <t>
          Note "host" is used only when the virus is detected within a host itself.
          Thus, the traffic flow information such as the source and destination IP
          addresses is not important, so the elements of the traffic flow (i.e., 
          dst-ip, src-ip, src-port, and dst-port) are not specified above. 
          On the other hand, when the virus is detected within a traffic flow and
          not yet attacking a host, the element of "host" is not specified above.
        </t>
      </section>

      <section anchor="intrusion-event" title="Intrusion Event">

      <t>
        The following information should be included in an Intrusion
        Event:
      </t>

      <t>
        <list style="symbols">
          <t>event-name: detection-intrusion.</t>
          <t>attack-type: Attack type, e.g., brutal force or buffer overflow.</t>
          <t>src-ip: The source IP address of the flow.</t>
          <t>dst-ip: The destination IP address of the flow.</t>
          <t>src-port: The source port number of the flow.</t>
          <t>dst-port: The destination port number of the flow</t>
          <t>
            protocol: The employed transport layer protocol. e.g., TCP or UDP.
            Note that QUIC protocol <xref target="RFC9000"/> is excluded in the data 
            model as it is not considered in the initial I2NSF documents <xref target="RFC8329"/>.
            The QUIC traffic should not be treated as UDP traffic and will be 
            considered in the future I2NSF documents.
          </t>
          <t>app: The employed application layer protocol. e.g., HTTP or FTP.</t>
          <t>rule-name: The name of the I2NSF Policy Rule being triggered.</t>
          <!-- <t>raw-info: The information describing the flow triggering the event.</t> -->
        </list>
      </t>

      </section>
      
      <!-- <section anchor="botnet-event" title="Botnet Event"> 
      
        <t>The following information should be included in a Botnet
        Event:</t>

        <t>
          <list style="symbols">
            <t>event-name: The name of event. e.g., detection-botnet</t>
            <t>botnet-name: The name of the detected botnet</t>
            <t>src-ip: The source IP address of the packet</t>
            <t>dst-ip: The destination IP address of the packet</t>
            <t>src-port: The source port number of the packet</t>
            <t>dst-port: The destination port number of the packet</t>
            <t>src-zone: The source geographical location (e.g., country, city) of the packet</t>
            <t>dst-zone: The destination geographical location (e.g., country, city) of the packet</t>
            <t>protocol: The employed transport layer protocol. e.g.,TCP and UDP</t>
            <t>role: The role of the communicating parties within the botnet:  
              <list style="numbers">
                <t>The packet from the zombie host to the attacker</t>
                <t>The packet from the attacker to the zombie host</t>
                <t>The packet from the C2 server to the zombie host</t>
                <t>The packet from the zombie host to the C2 server</t>
                <t>The packet from the attacker to the C2 server</t>
                <t>The packet from the C2 server to the attacker</t>
                <t>The packet from the zombie host to the victim</t>
                
              </list>
            </t>
            <t>rule-name: The name of the I2NSF Policy Rule being triggered</t>
            <t>raw-info: The information describing the packet triggering the event.</t>
          </list>
        </t>

       </section> -->
      
      <section anchor="web-attack-event" title="Web Attack Event">

        <t>The following information should be included in a Web Attack
        Alarm:</t>

        <t>
          <list style="symbols">
            <t>event-name: detection-web-attack.</t>
            <t>attack-type: Concrete web attack type. e.g., SQL injection, command injection, XSS, or CSRF.</t>
            <t>src-ip: The source IP address of the packet.</t>
            <t>dst-ip: The destination IP address of the packet.</t>
            <t>src-port: The source port number of the packet.</t>
            <t>dst-port: The destination port number of the packet.</t>
            <t>req-method: The HTTP method of the request. For instance, "PUT" and "GET" in HTTP.</t>
            <t>req-target: The HTTP Request Target.</t>
            <t>response-code: The HTTP Response status code.</t>
            <t>cookies: The HTTP Cookie header field of the request from the user agent.  
               The cookies information needs to be kept confidential and is not 
               RECOMMENDED to be included in the monitoring data unless the information is 
               absolutely necessary to help to enhance the security of the network.</t>
            <t>req-host: The HTTP Host header field of the request.</t>
            <t>filtering-type: URL filtering type. e.g., deny-list, allow-list, and unknown.</t>
            <t>rule-name: The name of the I2NSF Policy Rule being triggered.</t>
          </list>
        </t>

      </section>
      
      <section anchor="voip-vocn" title="VoIP/VoCN Event">
        <t>
          The following information should be included in a VoIP (Voice 
          over Internet Protocol) and VoCN (Voice over Cellular Network, 
          such as Voice over LTE or 5G) Event:
        </t>
        
        <t>
          <list style="symbols">
            <t>event-name: detection-voip-vocn</t>
            <t>source-voice-id: The detected source voice Call ID for VoIP and 
               VoCN that violates the policy.</t>
            <t>destination-voice-id: The destination voice Call ID
               for VoIP and VoCN that violates the policy.</t>
            <t>user-agent: The user agent for VoIP and VoCN that violates
               the policy.</t>
            <t>src-ip: The source IP address of the VoIP/VoCN.</t>
            <t>dst-ip: The destination IP address of the VoIP/VoCN.</t>
            <t>src-port: The source port number of the VoIP/VoCN.</t>
            <t>dst-port: The destination port number of VoIP/VoCN.</t>
            <t>rule-name: The name of the I2NSF Policy Rule being triggered.</t>
          </list>
        </t>
      </section>
      
    </section>

    <section anchor="system-logs" title="System Logs">

      <t>
        System log is a record that is used to monitor the activity of the user on the NSF and the status of the NSF.
        System logs have the following characteristics:
      </t>

      <t>
        <list style="symbols">
          <t>acquisition-method: subscription or query</t>
          <t>emission-type: on-change or periodic</t>
          <t>dampening-type: on-repetition or no-dampening</t>
        </list>
      </t>

      <section anchor="access-log" title="Access Log">

        <t>
          Access logs record administrators' login, logout, and operations
          on a device. By analyzing them, some security vulnerabilities can be
          identified. The following information should be included in
          an operation report:
        </t>

        <t>
          <list style="symbols">
            <t>
              identity: The information to identify the user. 
              The minimum information (extensible) that should be included:
              <list style="numbers">
                <t>
                  user: The unique username that attempted access violation.
                </t>
                <t>
                  group: Group(s) to which a user belongs. A user can 
                  belong to multiple groups.
                </t>
                <t>
                  ip-address: The IP address of the user that triggered
                  the event.
                </t>
                <t>
                  l4-port-number: The transport layer port number used by the user.
                </t>
              </list>
            </t>
            <t>
             authentication: The method to verify the valid user,
             i.e., pre-configured-key and certificate-authority.
            </t>
            <!--
            <t>username: The username that operates on the device.</t>
            <t>login-ip: IP address used by an administrator to log in.</t>
            <t>login-role: The login role to specify the privilege level of the user account, e.g., administrator, user, and guest.</t>
            -->
            <t>operation-type: The operation type that the administrator executed, e.g., login, logout, configuration, and other.</t>
            <t>input: The operation performed by a user after login. The operation is a command given by a user.</t>
            <t>output: The result after executing the input.</t>
          </list>
        </t>

      </section>
      
      <section anchor="resource-utilization-log" title="Resource Utilization Log">

      <t>
        Running reports record the device system's running status, which
        is useful for device monitoring. The following information should be
        included in running report:
      </t>

      <t>
        <list style="symbols">
          <t>system-status: The current system's running status.</t>
          <t>cpu-usage: Specifies the aggregated CPU usage in percentage.</t>
          <t>memory-usage: Specifies the memory usage in percentage.</t>
          <t>disk-id: Specifies the disk ID to identify the storage disk.</t>
          <t>disk-usage: Specifies the disk usage of disk-id in percentage.</t>
          <t>disk-space-left: Specifies the available disk space left of disk-id in percentage.</t>
          <t>session-number: Specifies total concurrent sessions.</t>
          <t>process-number: Specifies total number of systems processes.</t>
          <t>interface-id: Specifies the interface ID to identify the network interface.</t>
          <t>in-traffic-rate: The total inbound data plane traffic rate in packets per second.</t>
          <t>out-traffic-rate: The total outbound data plane traffic rate in packets per second.</t>
          <t>in-traffic-throughput: The total inbound data plane traffic throughput in bytes per second.</t>
          <t>out-traffic-throughput: The total outbound data plane traffic throughput in bytes per second.</t>
        </list>
      </t>

      <t>
        Note that "traffic" includes only the data plane since the monitoring interface
        focuses on the monitoring of traffic flows for applications, rather than the 
        control plane. 
        In the document, "packet" includes a layer-2 frame, so "packet" and "frame" are
        interchangeable.
        Also, note that system resources (e.g., CPU, memory, disk, and interface) are
        monitored for the sake of security in NSFs even though they are common ones to
        be monitored by a generic Operations, Administration and Maintenance (OAM) 
        protocol (or module).
      </t>
      </section>
      
      <section anchor="user-activity-log" title="User Activity Log">

      <t>
        User activity logs provide visibility into users' online records
        (such as login time, online/lockout duration, and login IP
        addresses) and the actions that users perform. User activity reports are
        helpful to identify exceptions during a user's login and network access
        activities. This information should be included in a user's 
        activity report:
      </t>

      <t>
        <list style="symbols">
          <t>
            identity: The information to identify the user. The 
            minimum information (extensible) that should be included is as follows:
            <list style="numbers">
              <t>
                user: The unique username that attempted access violation.
              </t>
              <t>
                group: Group(s) to which a user belongs. A user can 
                belong to multiple groups.
              </t>
              <t>
                ip-address: The IP address of the user that triggered
                the event.
              </t>
              <t>
                l4-port-number: The transport layer port number used by the user.
              </t>
            </list>
          </t>
          <!--
          <t>user: Name of a user.</t>
          <t>group: Group to which a user belongs.</t>
          <t>login-ip-addr: Login IP address of a user.</t>
          -->
          <t>
           authentication: The method to verify the valid user,
           i.e., pre-configured-key and certificate-authority.
          </t>
          <!-- <t>access: User access mode. e.g., PPP, SVN, LOCAL</t> -->
          <t>online-duration: The duration of a user's activeness (stays in login) during a session.</t>
          <t>logout-duration: The duration of a user's inactiveness (not in login) from the last session.</t>
          <t>additional-info: Additional Information for login:  
            <list style="numbers">
                <t>
                  type: User activities. e.g., Successful User Login, Failed
                  Login attempts, User Logout, Successful User Password Change,
                  Failed User Password Change, User Lockout, and User Unlocking.
                </t>
                <t>
                  cause: Cause of a failed user activity.
                </t>
            </list>
          </t>
        </list>
      </t>

      </section>
      
    </section>

    <section anchor="nsf-logs" title="NSF Logs">

      <t>NSF logs have the folowing characteristics:</t>

      <t>
        <list style="symbols">
          <t>acquisition-method: subscription or query</t>
          <t>emission-type: on-change</t>
          <t>dampening-type: on-repetition or no-dampening</t>
        </list>
      </t>

      <section anchor="dpi-log" title="Deep Packet Inspection Log">

        <t>
          Deep Packet Inspection (DPI) Logs provide statistics of transit traffic at
          an NSF such that the traffic includes uploaded and downloaded files/data, 
          sent/received emails, and blocking/alert records on websites. 
          It is helpful to learn risky user behaviors and why access to some URLs 
          is blocked or allowed with an alert record.
        </t>

        <t>
          <list style="symbols">
            <t>
              attack-type: DPI action types. e.g., File Blocking, Data Filtering,
              and Application Behavior Control.
            </t>
            <t>
              src-ip: The source IP address of the flow.
            </t>
            <t>
              dst-ip: The destination IP address of the flow.
            </t>
            <t>
              src-port: The source port number of the flow.
            </t>
            <t>
              dst-port: The destination port number of the flow
            </t>
            <t>
              rule-name: The name of the I2NSF Policy Rule being triggered.
            </t>
            <t>
              action: Action defined in the file blocking rule, data
              filtering rule, or application behavior control rule that
              traffic matches.
            </t>

          </list>
        </t>

      </section>
    
      <!-- <section anchor="vulnerability-scanning-log" title="Vulnerability Scanning Log">

        <t>
          Vulnerability scanning logs record the host and its
          related vulnerability information that should be fixed. The
          following information should be included in the report:
        </t>

        <t>
          <list style="symbols">
            <t>
              host-ip: IP address of the host which has
              vulnerabilities
            </t>
            <t>
              vulnerability-id: The vulnerability id
            </t>
            <t>
              level: The vulnerability level. e.g., high,
              middle, and low
            </t>
            <t>
              os: The operating system of the host with vulnerabilities
            </t>
            <t>
              service: The service which has vulnerability in the host 
            </t>
            <t>
              protocol: The protocol type. e.g., TCP and UDP
            </t>
            <t>
              port-num: The port number
            </t>
            <t>
              vulnerability-info: The information about the
              vulnerability
            </t>
            <t>
              fix-suggestion: The fix suggestion to the vulnerability.
            </t>
          </list>
        </t>

      </section> -->
    </section>

    <section anchor="system-counter" title="System Counter">

      <t>System counter has the following characteristics:</t>

      <t>
        <list style="symbols">
          <t>acquisition-method: subscription or query</t>
          <t>emission-type: periodic</t>
          <t>dampening-type: no-dampening</t>
        </list>
      </t>

      <section anchor="interface-counter" title="Interface Counter">

        <t>
          Interface counters provide visibility into traffic into and out
          of an NSF, and bandwidth usage.
        </t>

        <t>
          <list style="symbols">
            <t>interface-name: Network interface name configured in NSF.</t>
            <t>protocol: The type of network protocol (e.g., IPv4, IPv6, TCP, and UDP).
               If this field is empty, then the counter is used for all protocols.
            </t>
            <t>
              measurement-time: The duration of the measurement in seconds for the
              calculation of statistics such as traffic rate and throughput. The statistic
              attributes are measured over the past measurement duration before now.
            </t>
            <t>in-total-traffic-pkts: Total inbound packets.</t>
            <t>out-total-traffic-pkts: Total outbound packets.</t>
            <t>in-total-traffic-bytes: Total inbound bytes.</t>
            <t>out-total-traffic-bytes: Total outbound bytes.</t>
            <t>in-drop-traffic-pkts: Total inbound drop packets caused by a policy or hardware/resource error.</t>
            <t>out-drop-traffic-pkts: Total outbound drop packets caused by a policy or hardware/resource error.</t>
            <t>in-drop-traffic-bytes: Total inbound drop bytes caused by a policy or hardware/resource error.</t>
            <t>out-drop-traffic-bytes: Total outbound drop bytes caused by a policy or hardware/resource error.</t>
            <t>total-traffic: The total number of traffic packets (in and out) in the NSF.</t>
            <t>in-traffic-average-rate: Inbound traffic average rate in packets per second.</t>
            <t>in-traffic-peak-rate: Inbound traffic peak rate in packets per second.</t>
            <t>in-traffic-average-throughput: Inbound traffic average throughput in bytes per second.</t>
            <t>in-traffic-peak-throughput: Inbound traffic peak throughput in bytes per second.</t>
            <t>out-traffic-average-rate: Outbound traffic average rate in packets per second.</t>
            <t>out-traffic-peak-rate: Outbound traffic peak rate in packets per second.</t>
            <t>out-traffic-average-throughput: Outbound traffic average throughput in bytes per second.</t>
            <t>out-traffic-peak-throughput: Outbound traffic peak throughput in bytes per second.</t>
            <t>
              discontinuity-time: The time of the most recent occasion 
              at which any one or more of the counters
              suffered a discontinuity. If no such discontinuities
              have occurred since the last re-initialization of the
              local management subsystem, then this node contains 
              the time the local management subsystem was re-initialized.
              The time format used is following the rules in Section 5.6
              of <xref target="RFC3339"/>.
            </t>
          </list>
        </t>

      </section>
      
    </section>

    <section anchor="nsf-counters" title="NSF Counters">

      <t>NSF counters have the following characteristics:</t>

      <t>
        <list style="symbols">
          <t>acquisition-method: subscription or query</t>
          <t>emission-type: periodic</t>
          <t>dampening-type: no-dampening</t>
        </list>
      </t>

      <section anchor="firewall-counter" title="Firewall Counter">

        <t>
          Firewall counters provide visibility into traffic signatures
          and bandwidth usage that correspond to the policy that is 
          configured in a firewall.
        </t>

        <t>
          <list style="symbols">
            <t>policy-name: Security policy name that traffic matches.</t>
            <t>
              measurement-time: The duration of the measurement in seconds for the
              calculation of statistics such as traffic rate and throughput. The statistic
              attributes are measured over the past measurement duration before now.
            </t>
            <t>in-interface: Inbound interface of traffic.</t>
            <t>out-interface: Outbound interface of traffic.</t>
            <t>total-traffic: The total number of traffic packets (in and out) in the firewall.</t>
            <t>in-traffic-average-rate: Inbound traffic average rate in packets per second.</t>
            <t>in-traffic-peak-rate: Inbound traffic peak rate in packets per second.</t>
            <t>in-traffic-average-throughput: Inbound traffic average throughput in bytes per second.</t>
            <t>in-traffic-peak-throughput: Inbound traffic peak throughput in bytes per second.</t>
            <t>out-traffic-average-rate: Outbound traffic average rate in packets per second.</t>
            <t>out-traffic-peak-rate: Outbound traffic peak rate in packets per second.</t>
            <t>out-traffic-average-throughput: Outbound traffic average throughput in bytes per second.</t>
            <t>out-traffic-peak-throughput: Outbound traffic peak throughput in bytes per second.</t>
            <t>
              discontinuity-time: The time on the most recent occasion 
              at which any one or more of the counters
              suffered a discontinuity. If no such discontinuities
              have occurred since the last re-initialization of the
              local management subsystem, then this node contains 
              the time the local management subsystem was re-initialized.
              The time format used is following the rules in Section 5.6
              of <xref target="RFC3339"/>.
            </t>
          </list>
        </t>

      </section>

      <section anchor="policy-hit-counter" title="Policy Hit Counter">

        <t>
          Policy hit counters record the security policy that traffic
          matches and its hit count. That is, when a packet actually 
          matches a policy, it should be added to the statistics of a
          "policy hit counter" of the policy. The "policy hit counter"
          provides the "policy-name" that matches the policy's name in
          the NSF-Facing Interface YANG data model
          <xref target="I-D.ietf-i2nsf-nsf-facing-interface-dm"/>.
          It can check if policy configurations are correct or not.
        </t>

        <t>
          <list style="symbols">
            <t>policy-name: Security policy name that traffic matches.</t>
            <t>
              hit-times: The number of times that the security policy matches the
              specified traffic.
            </t>
            <t>
              discontinuity-time: The time on the most recent occasion 
              at which any one or more of the counters
              suffered a discontinuity. If no such discontinuities
              have occurred since the last re-initialization of the
              local management subsystem, then this node contains 
              the time the local management subsystem was re-initialized.
              The time format used is following the rules in Section 5.6
              of <xref target="RFC3339"/>.
            </t>
          </list>
        </t>
      </section>
      


    </section>

  </section> <!-- End Section Extended Information Model -->
    
<!-- END: Information Model -->


  <section anchor="section:YANG-Tree-Structure" title="YANG Tree Structure of NSF Monitoring YANG Module">
    <t>
      The tree structure of the NSF monitoring YANG module is provided below:
    </t>

    <figure anchor="I2NSF-Monitoring-IM" title="NSF Monitoring YANG Module Tree">
      <artwork>
<![CDATA[
module: ietf-i2nsf-nsf-monitoring
  +--ro i2nsf-counters
  |  +--ro vendor-name?          string
  |  +--ro device-model?         string
  |  +--ro software-version?     string
  |  +--ro nsf-name              union
  |  +--ro timestamp?            yang:date-and-time
  |  +--ro acquisition-method?   identityref
  |  +--ro emission-type?        identityref
  |  +--ro system-interface* [interface-name]
  |  |  +--ro interface-name                    if:interface-ref
  |  |  +--ro protocol?                         identityref
  |  |  +--ro in-total-traffic-pkts?            yang:counter64
  |  |  +--ro out-total-traffic-pkts?           yang:counter64
  |  |  +--ro in-total-traffic-bytes?           uint64
  |  |  +--ro out-total-traffic-bytes?          uint64
  |  |  +--ro in-drop-traffic-pkts?             yang:counter64
  |  |  +--ro out-drop-traffic-pkts?            yang:counter64
  |  |  +--ro in-drop-traffic-bytes?            uint64
  |  |  +--ro out-drop-traffic-bytes?           uint64
  |  |  +--ro discontinuity-time                yang:date-and-time
  |  |  +--ro measurement-time?                 uint32
  |  |  +--ro total-traffic?                    yang:counter64
  |  |  +--ro in-traffic-average-rate?          uint64
  |  |  +--ro in-traffic-peak-rate?             uint64
  |  |  +--ro in-traffic-average-throughput?    uint64
  |  |  +--ro in-traffic-peak-throughput?       uint64
  |  |  +--ro out-traffic-average-rate?         uint64
  |  |  +--ro out-traffic-peak-rate?            uint64
  |  |  +--ro out-traffic-average-throughput?   uint64
  |  |  +--ro out-traffic-peak-throughput?      uint64
  |  +--ro nsf-firewall* [policy-name]
  |  |  +--ro in-interface?                     if:interface-ref
  |  |  +--ro out-interface?                    if:interface-ref
  |  |  +--ro policy-name      -> /nsfintf:i2nsf-security-policy/name
  |  |  +--ro discontinuity-time                yang:date-and-time
  |  |  +--ro measurement-time?                 uint32
  |  |  +--ro total-traffic?                    yang:counter64
  |  |  +--ro in-traffic-average-rate?          uint64
  |  |  +--ro in-traffic-peak-rate?             uint64
  |  |  +--ro in-traffic-average-throughput?    uint64
  |  |  +--ro in-traffic-peak-throughput?       uint64
  |  |  +--ro out-traffic-average-rate?         uint64
  |  |  +--ro out-traffic-peak-rate?            uint64
  |  |  +--ro out-traffic-average-throughput?   uint64
  |  |  +--ro out-traffic-peak-throughput?      uint64
  |  +--ro nsf-policy-hits* [policy-name]
  |     +--ro policy-name      -> /nsfintf:i2nsf-security-policy/name
  |     +--ro discontinuity-time    yang:date-and-time
  |     +--ro hit-times?            yang:counter64
  +--rw i2nsf-monitoring-configuration
     +--rw i2nsf-system-detection-alarm
     |  +--rw enabled?        boolean
     |  +--rw system-alarm* [alarm-type]
     |     +--rw alarm-type          enumeration
     |     +--rw threshold?          uint8
     |     +--rw dampening-period?   centiseconds
     +--rw i2nsf-system-detection-event
     |  +--rw enabled?            boolean
     |  +--rw dampening-period?   centiseconds
     +--rw i2nsf-traffic-flows
     |  +--rw dampening-period?   centiseconds
     |  +--rw enabled?            boolean
     +--rw i2nsf-nsf-detection-ddos {i2nsf-nsf-detection-ddos}?
     |  +--rw enabled?            boolean
     |  +--rw dampening-period?   centiseconds
     +--rw i2nsf-nsf-detection-virus {i2nsf-nsf-detection-virus}?
     |  +--rw enabled?            boolean
     |  +--rw dampening-period?   centiseconds
     +--rw i2nsf-nsf-detection-session-table
     |  +--rw enabled?            boolean
     |  +--rw dampening-period?   centiseconds
     +--rw i2nsf-nsf-detection-intrusion 
                                     {i2nsf-nsf-detection-intrusion}?
     |  +--rw enabled?            boolean
     |  +--rw dampening-period?   centiseconds
     +--rw i2nsf-nsf-detection-web-attack 
                                    {i2nsf-nsf-detection-web-attack}?
     |  +--rw enabled?            boolean
     |  +--rw dampening-period?   centiseconds
     +--rw i2nsf-nsf-detection-voip-vocn 
                                     {i2nsf-nsf-detection-voip-vocn}?
     |  +--rw enabled?            boolean
     |  +--rw dampening-period?   centiseconds
     +--rw i2nsf-nsf-system-access-log
     |  +--rw enabled?            boolean
     |  +--rw dampening-period?   centiseconds
     +--rw i2nsf-system-res-util-log
     |  +--rw enabled?            boolean
     |  +--rw dampening-period?   centiseconds
     +--rw i2nsf-system-user-activity-log
     |  +--rw enabled?            boolean
     |  +--rw dampening-period?   centiseconds
     +--rw i2nsf-nsf-log-dpi {i2nsf-nsf-log-dpi}?
     |  +--rw enabled?            boolean
     |  +--rw dampening-period?   centiseconds
     +--rw i2nsf-counter
        +--rw period?   uint16

  notifications:
    +---n i2nsf-event
    |  +--ro vendor-name?                               string
    |  +--ro device-model?                              string
    |  +--ro software-version?                          string
    |  +--ro nsf-name                                   union
    |  +--ro message?                                   string
    |  +--ro language?                                  string
    |  +--ro acquisition-method?                        identityref
    |  +--ro emission-type?                             identityref
    |  +--ro dampening-type?                            identityref
    |  +--ro (sub-event-type)?
    |     +--:(i2nsf-system-detection-alarm)
    |     |  +--ro i2nsf-system-detection-alarm
    |     |     +--ro alarm-category?    identityref
    |     |     +--ro component-name?    string
    |     |     +--ro interface-name?    if:interface-ref
    |     |     +--ro interface-state?   enumeration
    |     |     +--ro severity?          severity
    |     |     +--ro usage?             uint8
    |     |     +--ro threshold?         uint8
    |     +--:(i2nsf-system-detection-event)
    |     |  +--ro i2nsf-system-detection-event
    |     |     +--ro event-category?   identityref
    |     |     +--ro user              string
    |     |     +--ro group*            string
    |     |     +--ro ip-address        inet:ip-address-no-zone
    |     |     +--ro l4-port-number    inet:port-number
    |     |     +--ro authentication?   identityref
    |     |     +--ro changes* [policy-name]
    |     |        +--ro policy-name   
                               -> /nsfintf:i2nsf-security-policy/name
    |     +--:(i2nsf-traffic-flows)
    |     |  +--ro i2nsf-traffic-flows
    |     |     +--ro interface-name?       if:interface-ref
    |     |     +--ro interface-type?       enumeration
    |     |     +--ro src-mac?              yang:mac-address
    |     |     +--ro dst-mac?              yang:mac-address
    |     |     +--ro src-ip?               inet:ip-address-no-zone
    |     |     +--ro dst-ip?               inet:ip-address-no-zone
    |     |     +--ro protocol?             identityref
    |     |     +--ro src-port?             inet:port-number
    |     |     +--ro dst-port?             inet:port-number
    |     |     +--ro measurement-time?     uint32
    |     |     +--ro arrival-rate?         uint64
    |     |     +--ro arrival-throughput?   uint64
    |     +--:(i2nsf-nsf-detection-session-table)
    |        +--ro i2nsf-nsf-detection-session-table
    |           +--ro current-session?   uint32
    |           +--ro maximum-session?   uint32
    |           +--ro threshold?         uint32
    +---n i2nsf-log
    |  +--ro vendor-name?                            string
    |  +--ro device-model?                           string
    |  +--ro software-version?                       string
    |  +--ro nsf-name                                union
    |  +--ro message?                                string
    |  +--ro language?                               string
    |  +--ro acquisition-method?                     identityref
    |  +--ro emission-type?                          identityref
    |  +--ro dampening-type?                         identityref
    |  +--ro (sub-logs-type)?
    |     +--:(i2nsf-nsf-system-access-log)
    |     |  +--ro i2nsf-nsf-system-access-log
    |     |     +--ro user              string
    |     |     +--ro group*            string
    |     |     +--ro ip-address        inet:ip-address-no-zone
    |     |     +--ro l4-port-number    inet:port-number
    |     |     +--ro authentication?   identityref
    |     |     +--ro operation-type?   operation-type
    |     |     +--ro input?            string
    |     |     +--ro output?           string
    |     +--:(i2nsf-system-res-util-log)
    |     |  +--ro i2nsf-system-res-util-log
    |     |     +--ro system-status?   enumeration
    |     |     +--ro cpu-usage?       uint8
    |     |     +--ro memory-usage?    uint8
    |     |     +--ro disks* [disk-id]
    |     |     |  +--ro disk-id            string
    |     |     |  +--ro disk-usage?        uint8
    |     |     |  +--ro disk-space-left?   uint8
    |     |     +--ro session-num?     uint32
    |     |     +--ro process-num?     uint32
    |     |     +--ro interface* [interface-id]
    |     |        +--ro interface-id              string
    |     |        +--ro in-traffic-rate?          uint64
    |     |        +--ro out-traffic-rate?         uint64
    |     |        +--ro in-traffic-throughput?    uint64
    |     |        +--ro out-traffic-throughput?   uint64
    |     +--:(i2nsf-system-user-activity-log)
    |     |  +--ro i2nsf-system-user-activity-log
    |     |     +--ro user               string
    |     |     +--ro group*             string
    |     |     +--ro ip-address         inet:ip-address-no-zone
    |     |     +--ro l4-port-number     inet:port-number
    |     |     +--ro authentication?    identityref
    |     |     +--ro online-duration?   uint32
    |     |     +--ro logout-duration?   uint32
    |     |     +--ro additional-info
    |     |        +--ro type?    enumeration
    |     |        +--ro cause?   string
    |     +--:(i2nsf-nsf-log-dpi) {i2nsf-nsf-log-dpi}?
    |        +--ro i2nsf-nsf-log-dpi
    |           +--ro attack-type?   identityref
    |           +--ro src-ip?        inet:ip-address-no-zone
    |           +--ro src-port?      inet:port-number
    |           +--ro dst-ip?        inet:ip-address-no-zone
    |           +--ro dst-port?      inet:port-number
    |           +--ro rule-name      
                         -> /nsfintf:i2nsf-security-policy/rules/name
    |           +--ro action*        identityref
    +---n i2nsf-nsf-event
       +--ro vendor-name?                            string
       +--ro device-model?                           string
       +--ro software-version?                       string
       +--ro nsf-name                                union
       +--ro message?                                string
       +--ro language?                               string
       +--ro acquisition-method?                     identityref
       +--ro emission-type?                          identityref
       +--ro dampening-type?                         identityref
       +--ro (sub-event-type)?
          +--:(i2nsf-nsf-detection-ddos) {i2nsf-nsf-detection-ddos}?
          |  +--ro i2nsf-nsf-detection-ddos
          |     +--ro attack-type?         identityref
          |     +--ro start-time           yang:date-and-time
          |     +--ro end-time?            yang:date-and-time
          |     +--ro attack-src-ip*       inet:ip-address-no-zone
          |     +--ro attack-dst-ip*       inet:ip-address-no-zone
          |     +--ro attack-src-port*     inet:port-number
          |     +--ro attack-dst-port*     inet:port-number
          |     +--ro rule-name            
                         -> /nsfintf:i2nsf-security-policy/rules/name
          |     +--ro attack-rate?         uint64
          |     +--ro attack-throughput?   uint64
          +--:(i2nsf-nsf-detection-virus) 
                                         {i2nsf-nsf-detection-virus}?
          |  +--ro i2nsf-nsf-detection-virus
          |     +--ro src-ip?       inet:ip-address-no-zone
          |     +--ro src-port?     inet:port-number
          |     +--ro dst-ip?       inet:ip-address-no-zone
          |     +--ro dst-port?     inet:port-number
          |     +--ro rule-name    
                         -> /nsfintf:i2nsf-security-policy/rules/name
          |     +--ro virus-name?   string
          |     +--ro virus-type?   identityref
          |     +--ro host?         union
          |     +--ro file-type?    string
          |     +--ro file-name?    string
          |     +--ro os?           string
          +--:(i2nsf-nsf-detection-intrusion) 
                                     {i2nsf-nsf-detection-intrusion}?
          |  +--ro i2nsf-nsf-detection-intrusion
          |     +--ro src-ip?        inet:ip-address-no-zone
          |     +--ro src-port?      inet:port-number
          |     +--ro dst-ip?        inet:ip-address-no-zone
          |     +--ro dst-port?      inet:port-number
          |     +--ro rule-name      
                         -> /nsfintf:i2nsf-security-policy/rules/name
          |     +--ro protocol?      identityref
          |     +--ro app?           identityref
          |     +--ro attack-type?   identityref
          +--:(i2nsf-nsf-detection-web-attack) 
                                    {i2nsf-nsf-detection-web-attack}?
          |  +--ro i2nsf-nsf-detection-web-attack
          |     +--ro src-ip?           inet:ip-address-no-zone
          |     +--ro src-port?         inet:port-number
          |     +--ro dst-ip?           inet:ip-address-no-zone
          |     +--ro dst-port?         inet:port-number
          |     +--ro rule-name     
                         -> /nsfintf:i2nsf-security-policy/rules/name
          |     +--ro attack-type?      identityref
          |     +--ro req-method?       identityref
          |     +--ro req-target?       string
          |     +--ro filtering-type*   identityref
          |     +--ro cookies?          string
          |     +--ro req-host?         string
          |     +--ro response-code?    string
          +--:(i2nsf-nsf-detection-voip-vocn)
                                     {i2nsf-nsf-detection-voip-vocn}?
             +--ro i2nsf-nsf-detection-voip-vocn
                +--ro src-ip?                 inet:ip-address-no-zone
                +--ro src-port?               inet:port-number
                +--ro dst-ip?                 inet:ip-address-no-zone
                +--ro dst-port?               inet:port-number
                +--ro rule-name             
                         -> /nsfintf:i2nsf-security-policy/rules/name
                +--ro source-voice-id*        string
                +--ro destination-voice-id*   string
                +--ro user-agent*             string
 ]]>
      </artwork>
    </figure>
  </section>  <!-- End Section Tree Structure -->
  
  <section anchor="section:YANGDM" title="YANG Data Model of NSF Monitoring YANG Module">
    <t> 
      This section describes a YANG module of I2NSF NSF Monitoring.
      The data model provided in this document uses identities to be used to get information of the monitored of an NSF's monitoring data.
      Every identity used in the document gives information or status about the current situation of an NSF.
      This YANG module imports from <xref target="RFC6991" />, <xref target="RFC8343"/>, and <xref target="I-D.ietf-i2nsf-nsf-facing-interface-dm"/>, and
      makes references to 
      <xref target="RFC0768"/>
      <xref target="RFC0791"/>
      <xref target="RFC0792"/>
      <xref target="RFC0826"/>
      <xref target="RFC0854"/>
      <xref target="RFC1939"/>
      <xref target="RFC0959"/>
      <xref target="RFC2595"/>
      <xref target="RFC4340"/>
      <xref target="RFC4443"/>
      <xref target="RFC4861"/>
      <xref target="RFC5321"/>
      <xref target="RFC5646"/>
      <xref target="RFC6242"/>
      <xref target="RFC6265"/>
      <xref target="RFC8200"/>
      <xref target="RFC8641"/>
      <xref target="RFC9051"/>
      <xref target="I-D.ietf-httpbis-http2bis" />
      <xref target="I-D.ietf-httpbis-messaging"/>   
      <xref target="I-D.ietf-httpbis-semantics"/>
      <xref target="I-D.ietf-tcpm-rfc793bis"/>
      <xref target="I-D.ietf-tsvwg-rfc4960-bis"/>
      <xref target="IANA-HTTP-Status-Code"/>
      <xref target="IEEE-802.1AB"/>
    </t>

    <figure anchor="Monitoring-DM" title="Data Model of Monitoring">
      <artwork>
<![CDATA[
<CODE BEGINS> file "ietf-i2nsf-nsf-monitoring@2022-03-22.yang"
module ietf-i2nsf-nsf-monitoring {
  yang-version 1.1;
  namespace
    "urn:ietf:params:xml:ns:yang:ietf-i2nsf-nsf-monitoring";
  prefix
    nsfmi;
  import ietf-inet-types {
    prefix inet;
    reference
      "Section 4 of RFC 6991";
  }
  import ietf-yang-types {
    prefix yang;
    reference
      "Section 3 of RFC 6991";
  }
  import ietf-i2nsf-policy-rule-for-nsf {
    prefix nsfintf;
    reference
      "Section 4.1 of draft-ietf-i2nsf-nsf-facing-interface-dm-17";
  }
  import ietf-interfaces {
    prefix if;
    reference
      "Section 5 of RFC 8343";
  }
  organization
    "IETF I2NSF (Interface to Network Security Functions)
     Working Group";
  contact
    "WG Web: <https://datatracker.ietf.org/wg/i2nsf>
     WG List: <mailto:i2nsf@ietf.org>

     Editor: Jaehoon Paul Jeong
     <mailto:pauljeong@skku.edu>

     Editor: Patrick Lingga
     <mailto:patricklink@skku.edu>";

  description
    "This module is a YANG module for I2NSF NSF Monitoring.
    
     The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL',
     'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED',
     'NOT RECOMMENDED', 'MAY', and 'OPTIONAL' in this
     document are to be interpreted as described in BCP 14
     (RFC 2119) (RFC 8174) when, and only when, they appear
     in all capitals, as shown here.
     
     Copyright (c) 2022 IETF Trust and the persons identified as
     authors of the code.  All rights reserved.

     Redistribution and use in source and binary forms, with or
     without modification, is permitted pursuant to, and subject to
     the license terms contained in, the Simplified BSD License set
     forth in Section 4.c of the IETF Trust's Legal Provisions
     Relating to IETF Documents
     (https://trustee.ietf.org/license-info).

     This version of this YANG module is part of RFC XXXX
     (https://www.rfc-editor.org/info/rfcXXXX); see the RFC itself
     for full legal notices.";

  revision "2022-03-22" {
    description "Latest revision";
    reference
      "RFC XXXX: I2NSF NSF Monitoring Interface YANG Data Model";

    // RFC Ed.: replace XXXX with an actual RFC number and remove
    // this note.
  }

  /*
   * Typedefs
   */
   
  typedef severity {
    type enumeration {
      enum critical {
        description
          "The 'critical' severity level indicates that
           an immediate corrective action is required.
           A 'critical' severity is reported when a service
           becomes totally out of service and must be restored.";
      }
      enum high {
        description
          "The 'high' severity level indicates that
           an urgent corrective action is required.
           A 'high' severity is reported when there is 
           a severe degradation in the capability of the
           service and its full capability must be restored.";
      }
      enum middle {
        description
          "The 'middle' severity level indicates the
           existence of a non-service-affecting fault
           condition and corrective action should be done
           to prevent a more serious fault. The 'middle' 
           severity is reported when the detected problem
           is not degrading the capability of the service, but
           some service degradation might happen if not
           prevented.";
      }
      enum low {
        description
          "The 'low' severity level indicates the detection
           of a potential fault before any effect is observed.
           The 'low' severity is reported when an action should
           be done before a fault happen.";
      }
    }
    description
      "An indicator representing severity levels. The severity
       levels starting from the highest are critical, high, middle,
       and low.";
  }
    
  typedef operation-type {
    type enumeration {
      enum login {
        description
          "The operation type is Login.";
      }
      enum logout {
        description
          "The operation type is Logout.";
      }
      enum configuration {
        description
          "The operation type is Configuration. The configuration 
           operation includes the command for writing a new
           configuration and modifying an existing configuration.";
      }
      enum other {
        description
          "The operation type is Other operation. This other
           includes all operations done by a user except login, 
           logout, and configuration.";
      }
    }
    description
      "The type of operation done by a user during a session. 
       The user operation is not considering their privileges.";
  }
  
  typedef login-role {
    type enumeration {
      enum administrator {
        description
          "Administrator (i.e., Superuser)'s login role. 
           Non-restricted role.";
      }
      enum user {
        description
          "User login role. Semi-restricted role, some data and 
           configurations are available but confidential or important
           data and configuration are restricted.";
      }
      enum guest {
        description
          "Guest login role. Restricted role, only few read data are
           available and write configurations are restricted.";
      }
    }
    description
      "The privilege level of the user account.";
  }
  
  typedef centiseconds {
    type uint32;
    description
      "A period of time, measured in units of 0.01 seconds.";
  }

  /*
   * Identity
   */
   
  identity characteristics {
    description
      "Base identity for monitoring information
       characteristics";
  }
  identity acquisition-method {
    base characteristics;
    description
      "The type of acquisition-method. It can be multiple
       types at once.";
  }
  identity subscription {
    base acquisition-method;
    description
      "The acquisition-method type is subscription.";
  }
  identity query {
    base acquisition-method;
    description
      "The acquisition-method type is query.";
  }
  identity emission-type {
    base characteristics;
    description
      "The type of emission-type.";
  }
  identity periodic {
    base emission-type;
    description
      "The emission-type type is periodic.";
  }
  identity on-change {
    base emission-type;
    description
      "The emission-type type is on-change.";
  }
  identity dampening-type {
    base characteristics;
    description
      "The type of message dampening to stop the rapid transmission 
       of messages, such as on-repetition and no-dampening.";
  }
  identity no-dampening {
    base dampening-type;
    description
      "The dampening-type is no-dampening. No-dampening type does 
       not limit the transmission for the messages of the same 
       type.";
  }
  identity on-repetition {
    base dampening-type;
    description
      "The dampening-type is on-repetition. On-repetition type limits
       the transmitted on-change message to one message at a certain
       interval.";
  }
  
  identity authentication-mode {
    description
      "The authentication mode for a user to connect to the NSF,
       e.g., pre-configured-key and certificate-authority";
  }
  identity pre-configured-key {
    base authentication-mode;
    description
      "The pre-configured-key is an authentication using a key
       authentication.";
  }
  identity certificate-authority {
    base authentication-mode;
    description
      "The certificate-authority (CA) is an authentication using a 
       digital certificate.";
  }
  
  identity event {
    description
      "Base identity for I2NSF events.";
  }
  
  identity system-event {
    base event;
    description 
      "Identity for system event";   
  }
  
  identity system-alarm {
    base event;
    description 
      "Base identity for detectable system alarm types";
  }
  
  identity memory-alarm {
    base system-alarm;
    description
      "Memory is the hardware to store information temporarily or for 
       a short period, i.e., Random Access Memory (RAM). A 
       memory-alarm is emitted when the memory usage is exceeding 
       the threshold.";
  }
  identity cpu-alarm {
    base system-alarm;
    description
      "CPU is the Central Processing Unit that executes basic 
       operations of the system. A cpu-alarm is emitted when the CPU
       usage is exceeding a threshold.";
  }
  identity disk-alarm {
    base system-alarm;
    description 
      "Disk or storage is the hardware to store information for a 
       long period, i.e., Hard Disk and Solid-State Drive. A 
       disk-alarm is emitted when the disk usage is exceeding a 
       threshold.";
  }
  identity hardware-alarm {
    base system-alarm;
    description 
      "A hardware alarm is emitted when a hardware failure (e.g., 
       CPU, memory, disk, or interface) is detected. A hardware
       failure is a malfunction within the electronic circuits or 
       electromechanical components of the hardware that makes it
       unusable.";
  }
  identity interface-alarm {
    base system-alarm;
    description 
      "Interface is the network interface for connecting a device 
       with the network. The interface-alarm is emitted when the
       state of the interface is changed.";
  }

  identity access-violation {
    base system-event;
    description
      "Access-violation system event is an event when a user tries 
       to access (read, write, create, or delete) any information or 
       execute commands above their privilege (i.e., not-conformant 
       with the access profile).";
  }
  identity configuration-change {
    base system-event;
    description
      "The configuration-change system event is an event when a user 
       adds a new configuration or modify an existing configuration 
       (write configuration).";
  }
  
  identity attack-type {
    description
      "The root ID of attack-based notification
       in the notification taxonomy";
  }
  identity nsf-attack-type {
    base attack-type;
    description
      "This ID is intended to be used
       in the context of NSF event.";
  }
  
  identity virus-type {
    base nsf-attack-type;
    description
      "The type of virus. It can be multiple types at once.
       This attack type is associated with a detected
       system-log virus-attack.";
  }
  identity trojan {
    base virus-type;
    description
      "The virus type is a trojan. Trojan is able to disguise the 
       intent of the files or programs to misleads the users.";
  }
  identity worm {
    base virus-type;
    description
      "The virus type is a worm. Worm can self-replicate and
       spread through the network automatically.";
  }
  identity macro {
    base virus-type;
    description
      "The virus type is a macro virus. Macro causes a series of 
       threats automatically after the program is executed.";
  }
  identity boot-sector {
    base virus-type;
    description
      "The virus type is a boot sector virus. Boot sector is a virus
       that infects the core of the computer, affecting the startup
       process.";
  }
  identity polymorphic {
    base virus-type;
    description
      "The virus type is a polymorphic virus. Polymorphic can 
       modify its version when it replicates, making it hard to 
       detect.";
  }
  identity overwrite {
    base virus-type;
    description
      "The virus type is an overwrite virus. Overwrite can remove 
       existing software and replace it with malicious code by 
       overwriting it.";
  }
  identity resident {
    base virus-type;
    description
      "The virus-type is a resident virus. Resident saves itself in 
       the computer's memory and infects other files and software.";
  }
  identity non-resident {
    base virus-type;
    description
      "The virus-type is a non-resident virus. Non-resident attaches
       directly to an executable file and enters the device when 
       executed.";
  }
  identity multipartite {
    base virus-type;
    description
      "The virus-type is a multipartite virus. Multipartite attacks
       both the boot sector and executables files of a computer.";
  }
  identity spacefiller {
    base virus-type;
    description
      "The virus-type is a spacefiller virus. Spacefiller fills empty
       spaces of a file or software with malicious code.";
  }
    
  identity intrusion-attack-type {
    base nsf-attack-type;
    description
      "The attack type is associated with a detected
       system-log intrusion.";
  }
  identity brute-force {
    base intrusion-attack-type;
    description
      "The intrusion type is brute-force.";
  }
  identity buffer-overflow {
    base intrusion-attack-type;
    description
      "The intrusion type is buffer-overflow.";
  }
  identity web-attack-type {
    base nsf-attack-type;
    description
      "The attack type is associated with a detected
       system-log web-attack.";
  }
  identity command-injection {
    base web-attack-type;
    description
      "The detected web attack type is command injection.";
  }
  identity xss {
    base web-attack-type;
    description
      "The detected web attack type is Cross Site Scripting (XSS).";
  }
  identity csrf {
    base web-attack-type;
    description
      "The detected web attack type is Cross Site Request Forgery.";
  }
  
  identity ddos-type {
    base nsf-attack-type;
    description
      "Base identity for detectable flood types";
  }
  identity syn-flood {
    base ddos-type;
    description
      "A SYN flood is detected.";
  }
  identity ack-flood {
    base ddos-type;
    description
      "An ACK flood is detected.";
  }
  identity syn-ack-flood {
    base ddos-type;
    description
      "A SYN-ACK flood is detected.";
  }
  identity fin-rst-flood {
    base ddos-type;
    description
      "A FIN-RST flood is detected.";
  }
  identity tcp-con-flood {
    base ddos-type;
    description
      "A TCP connection flood is detected.";
  }
  identity udp-flood {
    base ddos-type;
    description
      "A UDP flood is detected.";
  }
  identity icmpv4-flood {
    base ddos-type;
    description
      "An ICMPv4 flood is detected.";
  }
  identity icmpv6-flood {
    base ddos-type;
    description
      "An ICMPv6 flood is detected.";
  }     
  identity http-flood {
    base ddos-type;
    description
      "An HTTP flood is detected.";
  }     
  identity https-flood {
    base ddos-type;
    description
      "An HTTPS flood is detected.";
  }
  identity dns-query-flood {
    base ddos-type;
    description
      "A Domain Name System (DNS) query flood is detected.";
  }     
  identity dns-reply-flood {
    base ddos-type;
    description
     "A Domain Name System (DNS) reply flood is detected.";
  }
  identity sip-flood {
    base ddos-type;
    description
      "A Session Initiation Protocol (SIP) flood is detected.";
  }
  identity tls-flood {
    base ddos-type;
    description
      "A Transport Layer Security (TLS) flood is detected";
  }
  identity ntp-amp-flood {
    base ddos-type;
    description
      "A Network Time Protocol (NTP) amplification is detected";
  }

  identity req-method {
    description
      "A set of request types in HTTP (if applicable).";
  }
  identity put {
    base req-method;
    description
      "The detected request type is PUT.";
    reference
      "draft-ietf-httpbis-semantics-19: HTTP Semantics
       - Request Method PUT";
  }
  identity post {
    base req-method;
    description
      "The detected request type is POST.";
    reference
      "draft-ietf-httpbis-semantics-19: HTTP Semantics
       - Request Method POST";
  }
  identity get {
    base req-method;
    description
      "The detected request type is GET.";
    reference
      "draft-ietf-httpbis-semantics-19: HTTP Semantics
       - Request Method GET";
  }
  identity head {
    base req-method;
    description
      "The detected request type is HEAD.";
    reference
      "draft-ietf-httpbis-semantics-19: HTTP Semantics
       - Request Method HEAD";
  }
  identity delete {
    base req-method;
    description
      "The detected request type is DELETE.";
    reference
      "draft-ietf-httpbis-semantics-19: HTTP Semantics
       - Request Method DELETE";
  }
  identity connect {
    base req-method;
    description
      "The detected request type is CONNECT.";
    reference
      "draft-ietf-httpbis-semantics-19: HTTP Semantics
       - Request Method CONNECT";
  }
  identity options {
    base req-method;
    description
      "The detected request type is OPTIONS.";
    reference
      "draft-ietf-httpbis-semantics-19: HTTP Semantics
       - Request Method OPTIONS";
  }
  identity trace {
    base req-method;
    description
      "The detected request type is TRACE.";
    reference
      "draft-ietf-httpbis-semantics-19: HTTP Semantics
       - Request Method TRACE";
  }
  
  identity filter-type {
    description
      "The type of filter used to detect an attack,
       for example, a web-attack.  It can be applicable to
       more than web-attacks.";
  }
  identity allow-list {
    base filter-type;
    description
      "The applied filter type is an allow list. This filter blocks
       all connection except the specified list.";
  }
  identity deny-list {
    base filter-type;
    description
      "The applied filter type is a deny list. This filter opens all
       connection except the specified list.";
  }
  identity unknown-filter {
    base filter-type;
    description
      "The applied filter is unknown.";
  }
  
  identity dpi-type {
    description
      "Base identity for the type of Deep Packet Inspection (DPI).";
  }
  identity file-blocking {
    base dpi-type;
    description
      "DPI for preventing the specified file types from flowing
       in the network.";
  }
  identity data-filtering {
    base dpi-type;
    description
      "DPI for preventing sensitive information (e.g., Credit
       Card Number or Social Security Numbers) leaving a
       protected network.";
  }
  identity application-behavior-control {
    base dpi-type;
    description
      "DPI for filtering packet based on the application or 
       network behavior analysis to identify malicious or
       unusual activity.";
  }

  identity protocol {
    description
      "An identity used to enable type choices in leaves
       and leaf-lists with respect to protocol metadata. This is used 
       to identify the type of protocol that goes through the NSF.";
  }
  identity ip {
    base protocol;
    description
      "General IP protocol type.";
    reference
      "RFC 791: Internet Protocol
       RFC 8200: Internet Protocol, Version 6 (IPv6)";
  }
  identity ipv4 {
    base ip;
    description
      "IPv4 protocol type.";
    reference
      "RFC 791: Internet Protocol";
  }
  identity ipv6 {
    base ip;
    description
      "IPv6 protocol type.";
    reference
      "RFC 8200: Internet Protocol, Version 6 (IPv6)";
  }
  identity icmp {
    base protocol;
    description
      "Base identity for ICMPv4 and ICMPv6 condition capability";
    reference
      "RFC 792: Internet Control Message Protocol
       RFC 4443: Internet Control Message Protocol (ICMPv6)
       for the Internet Protocol Version 6 (IPv6) Specification
       - ICMPv6";
  }
  identity icmpv4 {
    base icmp;
    description
      "ICMPv4 protocol type.";
    reference
      "RFC 791: Internet Protocol
       RFC 792: Internet Control Message Protocol";       
  }
  identity icmpv6 {
    base icmp;
    description
      "ICMPv6 protocol type.";
    reference
      "RFC 8200: Internet Protocol, Version 6 (IPv6)
       RFC 4443: Internet Control Message Protocol (ICMPv6)
       for the Internet Protocol Version 6 (IPv6)
       Specification";
  }
  identity transport-protocol {
    base protocol;
    description
      "Base identity for Layer 4 protocol condition capabilities, 
       e.g., TCP, UDP, SCTP, DCCP, and ICMP";
  }
  identity tcp {
    base transport-protocol;
    description
      "TCP protocol type.";
    reference
      "draft-ietf-tcpm-rfc793bis-25: Transmission Control Protocol 
       (TCP) Specification";
  }
  identity udp {
    base transport-protocol;
    description
      "UDP protocol type.";
    reference
      "RFC 768: User Datagram Protocol";
  }
  identity sctp {
    base transport-protocol;
    description
      "Identity for SCTP condition capabilities";
    reference
      "draft-ietf-tsvwg-rfc4960-bis-18: Stream Control Transmission 
       Protocol";
  }
  identity dccp {
    base transport-protocol;
    description
      "Identity for DCCP condition capabilities";
    reference
      "RFC 4340: Datagram Congestion Control Protocol";
  }
  identity application-protocol {
    base protocol;
    description
      "Base identity for Application protocol. Note that a subset of
       application protocols (e.g., HTTP, HTTPS, FTP, POP3, and 
       IMAP) are handled in this YANG module, rather than all 
       the existing application protocols.";
  }
  identity http {
    base application-protocol;
    description
      "The identity for Hypertext Transfer Protocol version 1.1
       (HTTP/1.1).";
    reference
      "draft-ietf-httpbis-semantics-19: HTTP Semantics
       draft-ietf-httpbis-messaging-19: HTTP/1.1";
  }
  identity https {
    base application-protocol;
    description
      "The identity for Hypertext Transfer Protocol version 1.1
       (HTTP/1.1) over TLS.";
    reference
      "draft-ietf-httpbis-semantics-19: HTTP Semantics
       draft-ietf-httpbis-messaging-19: HTTP/1.1";
  }
  identity http2 {
    base application-protocol;
    description
      "The identity for Hypertext Transfer Protocol version 2
       (HTTP/2).";
    reference
      "draft-ietf-httpbis-http2bis-07: HTTP/2";
  }
  identity https2 {
    base application-protocol;
    description
      "The identity for Hypertext Transfer Protocol version 2
       (HTTP/2) over TLS.";
    reference
      "draft-ietf-httpbis-http2bis-07: HTTP/2";
  }
  identity ftp {
    base application-protocol;
    description
      "FTP protocol type.";
    reference
      "RFC 959: File Transfer Protocol";
  }
  identity ssh {
    base application-protocol;
    description
      "SSH protocol type.";
    reference
      "RFC 6242: Using the NETCONF Protocol over Secure Shell (SSH)";
  }  
  identity telnet {
    base application-protocol;
    description
      "The identity for telnet.";
    reference
      "RFC 854: Telnet Protocol";
  }
  identity smtp {
    base application-protocol;
    description
      "The identity for smtp.";
    reference
      "RFC 5321: Simple Mail Transfer Protocol (SMTP)";
  }
  identity pop3 {
    base application-protocol;
    description
      "The identity for Post Office Protocol 3 (POP3).";
    reference
      "RFC 1939: Post Office Protocol - Version 3 (POP3)";
  }
  identity pop3s {
    base application-protocol;
    description
      "The identity for Post Office Protocol 3 (POP3) over TLS";
    reference
      "RFC 1939: Post Office Protocol - Version 3 (POP3)
       RFC 2595: Using TLS with IMAP, POP3 and ACAP";
  } 
  identity imap {
    base application-protocol;
    description
      "The identity for Internet Message Access Protocol (IMAP).";
    reference
      "RFC 9051: Internet Message Access Protocol (IMAP) - Version
       4rev2";
  }
  identity imaps {
    base application-protocol;
    description
      "The identity for Internet Message Access Protocol (IMAP) over
       TLS";
    reference
      "RFC 9051: Internet Message Access Protocol (IMAP) - Version
       4rev2
       RFC 2595: Using TLS with IMAP, POP3 and ACAP";
  }
  
  /*
   * Grouping
   */
  
  grouping timestamp {
    description
      "Grouping for identifying the time of the message.";
    leaf timestamp {
      type yang:date-and-time;
      description
        "Specify the time of a message being delivered.";
    }
  }
  
  grouping message {
    description
      "A set of common monitoring data that is needed
       as the basic information.";
    leaf message {
      type string;
      description
        "This is a freetext annotation for
         monitoring a notification's content.";
    }
    leaf language {
      type string {
        pattern '(([A-Za-z]{2,3}(-[A-Za-z]{3}(-[A-Za-z]{3})'
              + '{,2})?|[A-Za-z]{4}|[A-Za-z]{5,8})(-[A-Za-z]{4})?'
              + '(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}'
              + '|([0-9][A-Za-z0-9]{3})))*(-[0-9A-WY-Za-wy-z]'
              + '(-([A-Za-z0-9]{2,8}))+)*(-[Xx](-([A-Za-z0-9]'
              + '{1,8}))+)?|[Xx](-([A-Za-z0-9]{1,8}))+|'
              + '(([Ee][Nn]-[Gg][Bb]-[Oo][Ee][Dd]|[Ii]-'
              + '[Aa][Mm][Ii]|[Ii]-[Bb][Nn][Nn]|[Ii]-'
              + '[Dd][Ee][Ff][Aa][Uu][Ll][Tt]|[Ii]-'
              + '[Ee][Nn][Oo][Cc][Hh][Ii][Aa][Nn]'
              + '|[Ii]-[Hh][Aa][Kk]|'
              + '[Ii]-[Kk][Ll][Ii][Nn][Gg][Oo][Nn]|'
              + '[Ii]-[Ll][Uu][Xx]|[Ii]-[Mm][Ii][Nn][Gg][Oo]|'
              + '[Ii]-[Nn][Aa][Vv][Aa][Jj][Oo]|[Ii]-[Pp][Ww][Nn]|'
              + '[Ii]-[Tt][Aa][Oo]|[Ii]-[Tt][Aa][Yy]|'
              + '[Ii]-[Tt][Ss][Uu]|[Ss][Gg][Nn]-[Bb][Ee]-[Ff][Rr]|'
              + '[Ss][Gg][Nn]-[Bb][Ee]-[Nn][Ll]|[Ss][Gg][Nn]-'
              + '[Cc][Hh]-[Dd][Ee])|([Aa][Rr][Tt]-'
              + '[Ll][Oo][Jj][Bb][Aa][Nn]|[Cc][Ee][Ll]-'
              + '[Gg][Aa][Uu][Ll][Ii][Ss][Hh]|'
              + '[Nn][Oo]-[Bb][Oo][Kk]|[Nn][Oo]-'
              + '[Nn][Yy][Nn]|[Zz][Hh]-[Gg][Uu][Oo][Yy][Uu]|'
              + '[Zz][Hh]-[Hh][Aa][Kk][Kk][Aa]|[Zz][Hh]-'
              + '[Mm][Ii][Nn]|[Zz][Hh]-[Mm][Ii][Nn]-'
              + '[Nn][Aa][Nn]|[Zz][Hh]-[Xx][Ii][Aa][Nn][Gg])))';
      }
      default "en-US";
      description
        "The value in this field indicates the language tag
         used for the human readable fields (i.e., '../message',
         '/i2nsf-log/i2nsf-nsf-system-access-log/output', and
         '/i2nsf-log/i2nsf-system-user-activity-log/additional-info
         /cause').
         The attribute is encoded following the rules in Section 2.1
         in RFC 5646. The default language tag is 'en-US'";
      reference
        "RFC 5646: Tags for Identifying Languages";
    }
  }
  
  grouping common-monitoring-data {
    description
      "A set of common monitoring data that is needed
      as the basic information.";

    leaf vendor-name {
      type string;
      description
        "The name of the NSF vendor. The string is unrestricted to 
         identify the provider or vendor of the NSF.";
    }
    leaf device-model {
      type string;
      description
        "The model of the device, can be represented by the
         device model name or serial number. This field is used to
         identify the model of the device that provides the security
         service.";
    }
    leaf software-version {
      type string;
      description
        "The version of the software used to provide the security
         service";
    }
    leaf nsf-name {
      type union {
        type string;
        type inet:ip-address-no-zone;
      }
      mandatory true;
      description
        "The name or IP address of the NSF generating the message.
         If the given nsf-name is not an IP address, the name can be
         an arbitrary string including a FQDN (Fully Qualified Domain
         Name). The name MUST be unique in the scope of management 
         domain for a different NSF to identify the NSF that
         generates the message.";
    }
  }
  grouping characteristics {
    description
      "A set of characteristics of a monitoring information.";
    leaf acquisition-method {
      type identityref {
        base acquisition-method;
      }
      description
        "The acquisition-method for characteristics";
    }
    leaf emission-type {
      when "derived-from-or-self(../acquisition-method, "
         + "'nsfmi:subscription')";
      type identityref {
        base emission-type;
      }
      description
        "The emission-type for characteristics. This attribute is
         used only when the acquisition-method is a 'subscription'";
    }
  }
  grouping characteristics-extended {
    description
      "An extended characteristics for the monitoring information.";
    uses characteristics;
    leaf dampening-type {
      type identityref {
        base dampening-type;
      }
      description
        "The dampening-type for characteristics";
    }
  }
  grouping i2nsf-system-alarm-type-content {
    description
      "A set of contents for alarm type notification.";
    leaf usage {
      type uint8 {
        range "0..100";
      }
      units "percent";
      description
        "Specifies the used percentage";
    }
    leaf threshold {
      type uint8 {
        range "0..100";
      }
      units "percent";
      description
        "The threshold percentage triggering the alarm or
         the event";
    }
  }
  grouping i2nsf-system-event-type-content {
    description
      "System event metadata associated with system events
       caused by user activity. This can be extended to provide
       additional information.";
    leaf user {
      type string;
      mandatory true;
      description
        "The name of a user";
    }
    leaf-list group {
      type string;
      min-elements 1;
      description
        "The group(s) to which a user belongs.";
    }
    leaf ip-address {
      type inet:ip-address-no-zone;
      mandatory true;
      description
        "The IPv4 or IPv6 address of a user that trigger the
         event.";
    }
    leaf l4-port-number {
      type inet:port-number;
      mandatory true;
      description
        "The transport layer port number used by the user.";
    }
    leaf authentication {
      type identityref {
        base authentication-mode;
      }
      description
        "The authentication-mode of a user.";
    }
  }
  grouping i2nsf-nsf-event-type-content {
    description
      "A set of common IPv4 or IPv6-related NSF event
       content elements";
    leaf dst-ip {
      type inet:ip-address-no-zone;
      description
        "The destination IPv4 or IPv6 address of the packet";
    }
    leaf dst-port {
      type inet:port-number;
      description
        "The destination port of the packet";
    }
    leaf rule-name {
      type leafref {
        path
          "/nsfintf:i2nsf-security-policy"
         +"/nsfintf:rules/nsfintf:name";
      }
      mandatory true;
      description
        "The name of the I2NSF Policy Rule being triggered";
    }
  }
  grouping i2nsf-nsf-event-type-content-extend {
    description
      "A set of extended common IPv4 or IPv6 related NSF 
       event content elements";    
    leaf src-ip {
      type inet:ip-address-no-zone;
      description
        "The source IPv4 or IPv6 address of the packet or flow";
    }
    leaf src-port {
      type inet:port-number;
      description
        "The source port of the packet or flow";
    }
    uses i2nsf-nsf-event-type-content;
  }
  grouping action {
    description
      "A grouping for action.";
    leaf-list action {
      type identityref {
        base nsfintf:ingress-action;
      }
      description
        "Action type: pass, drop, reject, mirror, or rate limit";
    }
  }
  grouping attack-rates {
    description
      "A set of traffic rates for monitoring attack traffic
       data";
    leaf attack-rate {
      type uint64;
      units "pps";
      description
        "The average packets per second (pps) rate of attack 
         traffic";
    }
    leaf attack-throughput {
      type uint64;
      units "Bps";
      description
        "The average bytes per second (Bps) throughput of attack 
         traffic";
    }
  }
  grouping traffic-rates {
    description
      "A set of traffic rates for statistics data";
    leaf discontinuity-time {
      type yang:date-and-time;
      mandatory true;
      description
        "The time on the most recent occasion at which any one or
         more of the counters suffered a discontinuity.
         If no such discontinuities have occurred since the last
         re-initialization of the local management subsystem, then
         this node contains the time the local management subsystem
         was re-initialized.";
    }
    leaf measurement-time {
      type uint32;
      units "seconds";
      description
        "The time of the measurement in seconds for the 
         calculation of statistics such as traffic rate and
         throughput. The statistic attributes are measured over 
         the past measurement duration before now.";
    }
    leaf total-traffic {
      type yang:counter64;
      units "packets";
      description
        "The total number of traffic packets (in and out) in the
         NSF.";
    }
    leaf in-traffic-average-rate {
      type uint64;
      units "pps";
      description
        "Inbound traffic average rate in packets per second (pps).
         The average is calculated from the start of the NSF service
         until the generation of this record.";
    }
    leaf in-traffic-peak-rate {
      type uint64;
      units "pps";
      description
        "Inbound traffic peak rate in packets per second (pps).";
    }
    leaf in-traffic-average-throughput {
      type uint64;
      units "Bps";
      description
        "Inbound traffic average throughput in bytes per second 
         (Bps). The average is calculated from the start of the NSF 
         service until the generation of this record.";
    }
    leaf in-traffic-peak-throughput {
      type uint64;
      units "Bps";
      description
        "Inbound traffic peak throughput in bytes per second (Bps).";
    }
    leaf out-traffic-average-rate {
      type uint64;
      units "pps";
      description
        "Outbound traffic average rate in packets per second (pps).
         The average is calculated from the start of the NSF service
         until the generation of this record.";
    }
    leaf out-traffic-peak-rate {
      type uint64;
      units "pps";
      description
       "Outbound traffic peak rate in packets per second (pps).";
    }
    leaf out-traffic-average-throughput {
      type uint64;
      units "Bps";
      description
        "Outbound traffic average throughput in bytes per second 
         (Bps). The average is calculated from the start of the NSF 
         service until the generation of this record.";
    }
    leaf out-traffic-peak-throughput {
      type uint64;
      units "Bps";
      description
        "Outbound traffic peak throughput in bytes per second 
         (Bps).";
    }
  }
  grouping i2nsf-system-counter-type-content {
    description
      "A set of counters for an interface traffic data.";
    leaf interface-name {
      type if:interface-ref;
      description
        "Network interface name configured in an NSF";
      reference
        "RFC 8343: A YANG Data Model for Interface Management";
    }
    leaf protocol {
      type identityref {
        base protocol;
      }
      description
        "The type of network protocol for the interface counter. 
         If this field is empty, then the counter includes all
         protocols (e.g., IPv4, IPv6, TCP, and UDP)";
    }
    leaf in-total-traffic-pkts {
      type yang:counter64;
      description
        "Total inbound packets";
    }
    leaf out-total-traffic-pkts {
      type yang:counter64;
      description
        "Total outbound packets";
    } 
    leaf in-total-traffic-bytes {
      type uint64;
      units "bytes";
      description
        "Total inbound bytes";
    }
    leaf out-total-traffic-bytes {
      type uint64;
      units "bytes";
      description
        "Total outbound bytes";
    }
    leaf in-drop-traffic-pkts {
      type yang:counter64;
      description
        "Total inbound drop packets";
    }
    leaf out-drop-traffic-pkts {
      type yang:counter64;
      description
        "Total outbound drop packets";
    }
    leaf in-drop-traffic-bytes {
      type uint64;
      units "bytes";
      description
        "Total inbound drop bytes";
    }
    leaf out-drop-traffic-bytes {
      type uint64;
      units "bytes";
      description
        "Total outbound drop bytes";
    }
    uses traffic-rates;
  }
  
  grouping i2nsf-nsf-counters-type-content {
    description
      "A set of contents of a policy in an NSF.";
    leaf policy-name {
      type leafref {
        path 
          "/nsfintf:i2nsf-security-policy"
         +"/nsfintf:name";
      }
      mandatory true;
      description
        "The name of the policy being triggered";
    }
  }
  
  grouping enable-notification {
    description
      "A grouping for enabling or disabling notification";
    leaf enabled {
      type boolean;
      default "true";
      description
        "Enables or Disables the notification.
         If 'true', then the notification is enabled.
         If 'false, then the notification is disabled.";
    }
  }  
  
  grouping dampening {
    description
      "A grouping for dampening period of notification.";
    leaf dampening-period {
      type centiseconds;
      default "0";
      description
        "Specifies the minimum interval between the assembly of
         successive update records for a single receiver of a
         subscription. Whenever subscribed objects change and
         a dampening-period interval (which may be zero) has
         elapsed since the previous update record creation for
         a receiver, any subscribed objects and properties
         that have changed since the previous update record
         will have their current values marshalled and placed
         in a new update record. But if the subscribed objects change
         when the dampening-period is active, it should update the 
         record without sending the notification until the dampening-
         period is finished. If multiple changes happen during the 
         active dampening-period, it should update the record with
         the latest data. And at the end of the dampening-period, it
         should send the record as a notification with the latest
         updated record and restart the countdown.";
      reference
        "RFC 8641:  Subscription to YANG Notifications for 
         Datastore Updates - Section 5.";
    }
  }
  
  /*
   * Feature Nodes
   */
  
  feature i2nsf-nsf-detection-ddos {
    description
      "This feature means it supports I2NSF nsf-detection-ddos
       notification";
  }
  feature i2nsf-nsf-detection-virus {
    description
      "This feature means it supports I2NSF nsf-detection-virus
       notification";
  }
  feature i2nsf-nsf-detection-intrusion {
    description
      "This feature means it supports I2NSF nsf-detection-intrusion
       notification";
  }
  feature i2nsf-nsf-detection-web-attack {
    description
      "This feature means it supports I2NSF nsf-detection-web-attack
       notification";
  }
  feature i2nsf-nsf-detection-voip-vocn {
    description
      "This feature means it supports I2NSF nsf-detection-voip-vocn
       notification";
  }
  feature i2nsf-nsf-log-dpi {
    description
      "This feature means it supports I2NSF nsf-log-dpi
       notification";
  }
  
  /*
   * Notification nodes
   */
  
  notification i2nsf-event {
    description
      "Notification for I2NSF Event. This notification provides
       general information that can be supported by most types of 
       NSFs.";
      
    uses common-monitoring-data;
    uses message;
    uses characteristics-extended;
    
    choice sub-event-type {
      description
        "This choice must be augmented with cases for each allowed
         sub-event. Only 1 sub-event will be instantiated in each 
         i2nsf-event message. Each case is expected to define one 
         container with all the sub-event fields.";
      case i2nsf-system-detection-alarm {
        container i2nsf-system-detection-alarm {
          description
            "This notification is sent, when a system alarm
             is detected.";
          leaf alarm-category {
            type identityref {
              base system-alarm;
            }
            description
              "The alarm category for
               system-detection-alarm notification";
          }
          leaf component-name {
            type string;
            description
              "The hardware component responsible for generating
               the message. Applicable for Hardware Failure
               Alarm.";
          }
          leaf interface-name {
            when "derived-from-or-self(../alarm-category, "
               + "'nsfmi:interface-alarm')";
            type if:interface-ref;
            description
              "The interface name responsible for generating
               the message. Applicable for Network Interface
               Failure Alarm.";
            reference
              "RFC 8343: A YANG Data Model for Interface Management";
          }
          leaf interface-state {
            when "derived-from-or-self(../alarm-category, "
               + "'nsfmi:interface-alarm')";
            type enumeration {
              enum up {
                value 1;
                description
                  "The interface state is up and not congested.
                   The interface is ready to pass packets.";
              }
              enum down {
                value 2;
                description
                  "The interface state is down, i.e., does not pass
                   any packets.";
              }
              enum congested {
                value 3;
                description
                  "The interface state is up but congested.";
              }
              enum testing {
                value 4;
                description
                  "In some test mode.  No operational packets can
                   be passed.";
              }
              enum unknown {
                value 5;
                description
                  "Status cannot be determined for some reason.";
              }
              enum dormant {
                value 6;
                description
                  "Waiting for some external event.";
               }
              enum not-present {
                value 7;
                description
                  "Some component (typically hardware) is missing.";
              }
              enum lower-layer-down {
                value 8;
                description
                  "Down due to state of lower-layer interface(s).";
              }
            }
            description
              "The state of the interface. Applicable for Network
               Interface Failure Alarm.";
            reference
              "RFC 8343: A YANG Data Model for Interface Management -
               Operational States";
          }
          leaf severity {
            type severity;
            description
              "The severity of the alarm such as critical, high,
               middle, and low.";
          }
          uses i2nsf-system-alarm-type-content;
        }
      }
      
      case i2nsf-system-detection-event {
        container i2nsf-system-detection-event {
          description
            "This notification is sent when an event in the system is
             detected, such as access violation and configuration
             change";
          leaf event-category {
            type identityref {
              base system-event;
            }
            description
              "The event category for system-detection-event";
          }
          uses i2nsf-system-event-type-content;
          list changes {
            when "derived-from-or-self(../event-category, "
               + "'nsfmi:configuration-change')";
            key policy-name;
            description
              "Describes the modification that was made to the 
               configuration. This list is only applicable when the
               event is 'configuration-change'.
               The minimum information that must be provided is the 
               name of the policy that has been altered (added, 
               modified, or removed).
               This list can be extended with the detailed 
               information about the specific changes made to the
               configuration based on the implementation.";            
            leaf policy-name {
              type leafref {
                path 
                  "/nsfintf:i2nsf-security-policy"
                 +"/nsfintf:name";
              }
              description
                "The name of the policy configuration that has been
                 added, modified, or removed.";
            }
          }
        }
      }
      
      case i2nsf-traffic-flows {
        container i2nsf-traffic-flows {
          description
            "This notification is sent to inform about the traffic 
             flows.";
          leaf interface-name {
            type if:interface-ref;
            description
              "The mnemonic name of the network interface";
          }
          leaf interface-type {
            type enumeration {
              enum ingress {
                description
                  "The corresponding interface-name indicates an
                   ingress interface.";
              }
              enum egress {
                description
                  "The corresponding interface-name indicates an
                   egress interface.";
              }
            }
            description
              "The type of a network interface such as an ingress or
               egress interface.";
          }
          leaf src-mac {
            type yang:mac-address;
            description
              "The source MAC address of the traffic flow. This 
               information may or may not be included depending on 
               the type of traffic flow. For example, the information
               will be useful and should be included if the traffic
               flows are traffic flows of Link Layer Discovery
               Protocol (LLDP), Address Resolution Protocol (ARP) for
               IPv4, and Neighbor Discovery Protocol (ND) for IPv6.";               
            reference
              "IEEE-802.1AB: IEEE Standard for Local and metropolitan
               area networks - Station and Media Access Control 
               Connectivity Discovery - Link Layer Discovery Protocol
               (LLDP)
               RFC 826: An Ethernet Address Resolution Protocol -
               Address Resolution Protocol (ARP) 
               RFC 4861: Neighbor Discovery for IP version 6 (IPv6) -
               Neighbor Discovery Protocol (ND)";
          }
          leaf dst-mac {
            type yang:mac-address;
            description
              "The destination MAC address of the traffic flow. This
               information may or may not be included depending on 
               the type of traffic flow. For example, the information
               will be useful and should be included if the traffic
               flows are traffic flows of Link Layer Discovery
               Protocol (LLDP), Address Resolution Protocol (ARP) for
               IPv4, and Neighbor Discovery Protocol (ND) for IPv6.";               
            reference
              "IEEE-802.1AB: IEEE Standard for Local and metropolitan
               area networks - Station and Media Access Control 
               Connectivity Discovery - Link Layer Discovery Protocol
               (LLDP)
               RFC 826: An Ethernet Address Resolution Protocol -
               Address Resolution Protocol (ARP) 
               RFC 4861: Neighbor Discovery for IP version 6 (IPv6) -
               Neighbor Discovery Protocol (ND)";
          }
          leaf src-ip {
            type inet:ip-address-no-zone;
            description
              "The source IPv4 or IPv6 address of the traffic flow";
          }
          leaf dst-ip {
            type inet:ip-address-no-zone;
            description
              "The destination IPv4 or IPv6 address of the traffic
               flow";
          }
          leaf protocol {
            type identityref {
              base protocol;
            }
            description
              "The protocol type of a traffic flow";
          }
          leaf src-port {
            type inet:port-number;
            description
              "The transport layer source port number of the flow";
          }
          leaf dst-port {
            type inet:port-number;
            description
              "The transport layer destination port number of the
               flow";
          }
          leaf measurement-time {
            type uint32;
            units "seconds";
            description
              "The duration of the measurement in seconds for the
               arrival rate and arrival throughput of packets of a 
               traffic flow. These two metrics (i.e., arrival rate 
               and arrival throughput) are measured over the past 
               measurement duration before now.";
          }
          leaf arrival-rate {
            type uint64;
            units "pps";
            description
              "The arrival rate of packets of the traffic flow in 
               packets per second measured over the past
               'measurement-time'.";
          }
          leaf arrival-throughput {
            type uint64;
            units "Bps";
            description
              "The arrival rate of packets of the traffic flow in 
               bytes per second measured over the past 
               'measurement-time'.";
          }
        }
      }
      
      case i2nsf-nsf-detection-session-table {
        container i2nsf-nsf-detection-session-table {
          description
            "This notification is sent, when a session table
             event is detected.";
          leaf current-session {
            type uint32;
            description
              "The number of concurrent sessions";
          }
          leaf maximum-session {
            type uint32;
            description
              "The maximum number of sessions that the session
               table can support";
          }
          leaf threshold {
            type uint32;
            description
              "The threshold triggering the event";
          }
        }
      }
    }
  }
  
  notification i2nsf-log {
    description
      "Notification for I2NSF log. The notification is generated
       from the logs of the NSF.";
    
    uses common-monitoring-data;
    uses message;
    uses characteristics-extended;
    
    choice sub-logs-type {
      description
        "This choice must be augmented with cases for each allowed
         sub-logs. Only 1 sub-event will be instantiated in each 
         i2nsf-logs message. Each case is expected to define one 
         container with all the sub-logs fields.";
      case i2nsf-nsf-system-access-log {
        container i2nsf-nsf-system-access-log {
          description
            "The notification is sent, if there is a new system
             log entry about a system access event.";
          uses i2nsf-system-event-type-content;
          leaf operation-type {
            type operation-type;
            description
              "The operation type that the user executes";
          }
          leaf input {
            type string;
            description
              "The operation performed by a user after login. The 
               operation is a command given by a user.";
          }
          leaf output {
            type string;
            description
              "The result in text format after executing the 
               input.";
          }
        }
      }
      
      case i2nsf-system-res-util-log {
        container i2nsf-system-res-util-log {
          description
            "This notification is sent, if there is a new log
             entry representing resource utilization updates.";
          leaf system-status {
            type enumeration {
              enum running {
                description
                  "The system is active and running the security
                   service.";
              }
              enum waiting {
                description
                  "The system is active but waiting for an event to
                   provide the security service.";
              }
              enum inactive {
                description
                  "The system is inactive and not running the 
                   security service.";
              }
            }
            description
              "The current system's running status";
          }
          leaf cpu-usage {
            type uint8;
            units "percent";
            description
              "Specifies the relative percentage of CPU utilization
               with respect to platform resources";
          }
          leaf memory-usage {
            type uint8;
            units "percent";
            description
              "Specifies the percentage of memory usage.";
          }
          list disks {
            key disk-id;
            description
              "Disk is the hardware to store information for a 
               long period, i.e., Hard Disk or Solid-State Drive.";
            leaf disk-id {
              type string;
              description
                "The ID of the storage disk. It is a free form 
                 identifier to identify the storage disk.";
            }
            leaf disk-usage {
              type uint8;
              units "percent";
              description
                "Specifies the percentage of disk usage";
            }
            leaf disk-space-left {
              type uint8;
              units "percent";
              description
                "Specifies the percentage of disk space left";
            }
          }
          leaf session-num {
            type uint32;
            description
              "The total number of sessions";
          }
          leaf process-num {
            type uint32;
            description
              "The total number of processes";
          }
          list interface {
            key interface-id;
            description
              "The network interface for connecting a device
               with the network.";
            leaf interface-id {
              type string;
              description
                "The ID of the network interface. It is a free form 
                 identifier to identify the network interface.";
            }
            leaf in-traffic-rate {
              type uint64;
              units "pps";
              description
                "The total inbound traffic rate in packets per
                 second";
            }
            leaf out-traffic-rate {
              type uint64;
              units "pps";
              description
                 "The total outbound traffic rate in packets per
                  second";
            }
            leaf in-traffic-throughput {
              type uint64;
              units "Bps";
              description
                "The total inbound traffic throughput in bytes per 
                 second";
            }
            leaf out-traffic-throughput {
              type uint64;
              units "Bps";
              description
                "The total outbound traffic throughput in bytes per 
                 second";
            }
          }
        }
      }
      
      case i2nsf-system-user-activity-log {
        container i2nsf-system-user-activity-log {
          description
            "This notification is sent, if there is a new user
             activity log entry.";
          uses i2nsf-system-event-type-content;
          leaf online-duration {
            type uint32;
            units "seconds";
            description
              "The duration of a user's activeness (stays in login)
               during a session.";
          }
          leaf logout-duration {
            type uint32;
            units "seconds";
            description
              "The duration of a user's inactiveness (not in login)
               from the last session.";
          }
          container additional-info {
            leaf type {
              type enumeration {
                enum successful-login {
                  description
                    "The user has succeeded in login.";
                }
                enum failed-login {
                  description
                    "The user has failed in login (e.g., wrong 
                     password)";
                }
                enum logout {
                  description
                    "The user has succeeded in logout";
                }
                enum successful-password-changed {
                  description
                    "The password has been changed successfully";
                }
                enum failed-password-changed {
                  description
                    "The attempt to change password has failed";
                }
                enum lock {
                  description
                    "The user has been locked. A locked user cannot 
                     login.";
                }
                enum unlock {
                  description
                    "The user has been unlocked.";
                }
              }
              description
                "User activities, e.g., Successful User Login,
                 Failed Login attempts, User Logout, Successful User
                 Password Change, Failed User Password Change, User
                 Lockout, User Unlocking, and Unknown.";
            }
            leaf cause {
              type string;
              description
                "The cause of a failed user activity related to the
                 type of user activity. For example, when the 'type' 
                 is failed-login, the value of this attribute can be 
                 'Failed login attempt due to wrong password
                 entry'.";
            }
            description
              "The additional information about user activity.";
          }
        }
      }
      case i2nsf-nsf-log-dpi {
        if-feature "i2nsf-nsf-log-dpi";
        container i2nsf-nsf-log-dpi {
          description
            "This notification is sent, if there is a new DPI
             event in the NSF log.";
          leaf attack-type {
            type identityref {
              base dpi-type;
            }
            description
              "The type of the DPI";
          }
          uses i2nsf-nsf-event-type-content-extend;
          uses action;
        }
      }
    }
  }

  notification i2nsf-nsf-event {
    description
      "Notification for I2NSF NSF Event. This notification provides
       specific information that can only be provided by an NSF
       that supports additional features (e.g., DDoS attack
       detection).";
       
    uses common-monitoring-data;
    uses message;
    uses characteristics-extended;
    
    choice sub-event-type {
      description
      "This choice must be augmented with cases for each allowed
       sub-event. Only 1 sub-event will be instantiated in each 
       i2nsf-event message. Each case is expected to define one 
       container with all the sub-event fields.";
      case i2nsf-nsf-detection-ddos {
        if-feature "i2nsf-nsf-detection-ddos";
        container i2nsf-nsf-detection-ddos {
          description
            "This notification is sent, when a specific flood type
             is detected.";
          leaf attack-type {
            type identityref {
              base ddos-type;
            }
            description
              "Any one of Syn flood, ACK flood, SYN-ACK flood,
               FIN/RST flood, TCP Connection flood, UDP flood,
               ICMP (i.e., ICMPv4 or ICMPv6) flood, HTTP flood,
               HTTPS flood, DNS query flood, DNS reply flood, SIP
               flood, etc.";
          }
          leaf start-time {
            type yang:date-and-time;
            mandatory true;
            description
              "The time stamp indicating when the attack started";
          }
          leaf end-time {
            type yang:date-and-time;
            description
              "The time stamp indicating when the attack ended. If
               the attack is still undergoing when sending out the 
               notification, this field can be omitted.";
          }
          leaf-list attack-src-ip {
            type inet:ip-address-no-zone;
            description
              "The source IPv4 or IPv6 addresses of attack
               traffic. It can hold multiple IPv4 or IPv6
               addresses. Note that all IP addresses should not be 
               included, but only limited IP addresses are included 
               to conserve the server resources. The listed attacking
               IP addresses can be an arbitrary sampling of the 
               'top talkers', i.e., the attackers that send the 
               highest amount of traffic.";
          }
          leaf-list attack-dst-ip {
            type inet:ip-address-no-zone;
            description
              "The destination IPv4 or IPv6 addresses of attack
               traffic. It can hold multiple IPv4 or IPv6
               addresses.";
          }
          leaf-list attack-src-port {
            type inet:port-number;
            description
              "The transport-layer source ports of the DDoS attack. 
               Note that not all ports will have been seen on all the
               corresponding source IP addresses.";
          }
          leaf-list attack-dst-port {
            type inet:port-number;
            description
              "The transport-layer destination ports of the DDoS 
               attack. Note that not all ports will have been seen 
               on all the corresponding destination IP addresses.";
          }
          leaf rule-name {
            type leafref {
              path
                "/nsfintf:i2nsf-security-policy"
               +"/nsfintf:rules/nsfintf:name";
            }
            mandatory true;
            description
              "The name of the I2NSF Policy Rule being triggered";
          }

          uses attack-rates;
        }
      }
      case i2nsf-nsf-detection-virus {
        if-feature "i2nsf-nsf-detection-virus";
        container i2nsf-nsf-detection-virus {
          description
            "This notification is sent, when a virus is detected.";
          uses i2nsf-nsf-event-type-content-extend;
          leaf virus-name {
            type string;
            description
              "The name of the detected virus";
          }
          leaf virus-type {
            type identityref {
              base virus-type;
            }
            description
              "The virus type of the detected virus";
          }
          leaf host {
            type union {
              type string;
              type inet:ip-address-no-zone;
            }
            description
              "The name or IP address of the host/device. This is 
               used to identify the host/device that is infected by 
               the virus. If the given name is not an IP address, the
               name can be an arbitrary string including a FQDN 
               (Fully Qualified Domain Name). The name MUST be unique
               in the scope of management domain for identifying the
               device that has been infected with a virus.";
          }
          leaf file-type {
            type string;
            description
              "The type of a file (indicated by the file's suffix,
               e.g., .exe) where virus code is found (if 
               applicable).";
          }
          leaf file-name {
            type string;
            description
              "The name of file virus code is found in (if
               applicable).";
          }
          leaf os {
            type string;
            description
              "The operating system of the device.";
          }
        }
      }
      case i2nsf-nsf-detection-intrusion {
        if-feature "i2nsf-nsf-detection-intrusion";
        container i2nsf-nsf-detection-intrusion {
          description
            "This notification is sent, when an intrusion event
             is detected.";
          uses i2nsf-nsf-event-type-content-extend;
          leaf protocol {
            type identityref {
              base transport-protocol;
            }
            description
              "The transport protocol type for
               nsf-detection-intrusion notification";
          }
          leaf app {
            type identityref {
              base application-protocol;
            }
            description
              "The employed application layer protocol";
          }
          leaf attack-type {
            type identityref {
              base intrusion-attack-type;
            }
            description
              "The sub attack type for intrusion attack";
          }
        }
      }
      case i2nsf-nsf-detection-web-attack {
        if-feature "i2nsf-nsf-detection-web-attack";
        container i2nsf-nsf-detection-web-attack {
          description
            "This notification is sent, when an attack event is
             detected.";
          uses i2nsf-nsf-event-type-content-extend;
          leaf attack-type {
            type identityref {
              base web-attack-type;
            }
            description
              "Concrete web attack type, e.g., SQL injection,
               command injection, XSS, and CSRF.";
          }
          leaf req-method {
            type identityref {
              base req-method;
            }
            description
              "The HTTP method of the request, e.g., PUT or GET.";
            reference
              "draft-ietf-httpbis-semantics-19: HTTP Semantics - 
               Request Methods";
          }
          leaf req-target {
            type string;
            description
              "The HTTP Request Target. This field can be filled in
               the format of origin-form, absolute-form,
               authority-form, or asterisk-form";
            reference
              "draft-ietf-httpbis-messaging-19: HTTP/1.1 - Request 
               Target";
          }
          leaf-list filtering-type {
            type identityref {
              base filter-type;
            }
            description
              "URL filtering type, e.g., deny-list, allow-list,
               and Unknown";
          }
          leaf cookies {
            type string;
            description
              "The HTTP Cookies header field of the request from
               the user agent. The cookie information needs to be 
               kept confidential and is not RECOMMENDED to be 
               included in the monitoring data unless the information
               is absolutely necessary to help to enhance the 
               security of the network.";
            reference
              "RFC 6265: HTTP State Management Mechanism - Cookie";
          }
          leaf req-host {
            type string;
            description
              "The HTTP Host header field of the request";
            reference
              "draft-ietf-httpbis-semantics-19: HTTP Semantics - Host";
          }
          leaf response-code {
            type string;
            description
              "The HTTP Response status code";
            reference
              "IANA Website: Hypertext Transfer Protocol (HTTP)
               Status Code Registry";
          }
        }
      }
      case i2nsf-nsf-detection-voip-vocn {
        if-feature "i2nsf-nsf-detection-voip-vocn";
        container i2nsf-nsf-detection-voip-vocn {
          description
            "This notification is sent, when a VoIP/VoCN violation 
             is detected.";
          uses i2nsf-nsf-event-type-content-extend;
          leaf-list source-voice-id {
            type string;
            description
              "The detected source voice ID for VoIP and VoCN that
               violates the security policy.";
          }
          leaf-list destination-voice-id {
            type string;
            description
              "The detected destination voice ID for VoIP and VoCN 
               that violates the security policy.";
          }
          leaf-list user-agent {
            type string;
            description
              "The detected user-agent for VoIP and VoCN that
               violates the security policy.";
          }
        }
      }
    }
  }
  /*
   * Data nodes
   */
  container i2nsf-counters {
    config false;
    description
      "The state data representing continuous value changes of 
       information elements that occur very frequently. The value
       should be calculated from the start of the service of the
       NSF.";
       
    uses common-monitoring-data;
    uses timestamp;
    uses characteristics;
    
    list system-interface {
      key interface-name;
      description
        "Interface counters provide the visibility of traffic into
         and out of an NSF, and bandwidth usage.";
      uses i2nsf-system-counter-type-content; 
    }
    list nsf-firewall {
      key policy-name;
      description
        "Firewall counters provide visibility into traffic signatures 
         and bandwidth usage that correspond to the policy that is 
         configured in a firewall.";
      leaf in-interface {
        type if:interface-ref;
        description
          "Inbound interface of the traffic";
      }
      leaf out-interface {
        type if:interface-ref;
        description
          "Outbound interface of the traffic";
      }
      uses i2nsf-nsf-counters-type-content;
      uses traffic-rates;
    }
    list nsf-policy-hits {
      key policy-name;
      description
        "Policy hit counters record the number of hits that traffic 
         packets match a security policy. It can check if policy 
         configurations are correct or not.";
      uses i2nsf-nsf-counters-type-content;
      leaf discontinuity-time {
        type yang:date-and-time;
        mandatory true;
        description
          "The time on the most recent occasion at which any one or
           more of the counters suffered a discontinuity. If no such 
           discontinuities have occurred since the last 
           re-initialization of the local management subsystem, then 
           this node contains the time the local management subsystem
           was re-initialized.";
      }
      leaf hit-times {
        type yang:counter64;
        description
          "The number of times that the security policy matches the
           specified traffic.";
      }
    }
  }
  
  container i2nsf-monitoring-configuration {
    description
      "The container for configuring I2NSF monitoring.";
    container i2nsf-system-detection-alarm {
      description
        "The container for configuring I2NSF system-detection-alarm
         notification";
      uses enable-notification;
      list system-alarm {
        key alarm-type;
        description
          "Configuration for system alarm (i.e., CPU, Memory, and
           Disk Usage)";
        leaf alarm-type {
          type enumeration {
            enum cpu {
              description
                "To configure the CPU usage threshold to trigger the
                 cpu-alarm";
            }
            enum memory {
              description
                "To configure the Memory usage threshold to trigger 
                 the memory-alarm";
            }
            enum disk {
              description
                "To configure the Disk (storage) usage threshold to 
                 trigger the disk-alarm";
            }
          }
          description
            "Type of alarm to be configured. The three alarm-types 
             defined here are used to configure the threshold of the 
             monitoring notification. The threshold is used to
             determine when the notification should be sent. 
             The other two alarms defined in the module (i.e., 
             hardware-alarm and interface-alarm) do not use any
             threshold value to create a notification. These alarms 
             detect a failure or a change of state to create a 
             notification.";
        }
        leaf threshold {
          type uint8 {
            range "1..100";
          }
          units "percent";
          description
            "The configuration for threshold percentage to trigger
             the alarm. The alarm will be triggered if the usage
             is exceeded the threshold.";
        }
        uses dampening;
      }
    }
    container i2nsf-system-detection-event {
      description
        "The container for configuring I2NSF system-detection-event
         notification";
      uses enable-notification;
      uses dampening;
    }
    container i2nsf-traffic-flows {
      description
        "The container for configuring I2NSF traffic-flows
         notification";
      uses dampening;
      uses enable-notification;
    }
    container i2nsf-nsf-detection-ddos {
      if-feature "i2nsf-nsf-detection-ddos";
      description
        "The container for configuring I2NSF nsf-detection-ddos
         notification";
      uses enable-notification;
      uses dampening;
    }
    container i2nsf-nsf-detection-virus {
      if-feature "i2nsf-nsf-detection-virus";
      description
        "The container for configuring I2NSF nsf-detection-virus
         notification";
      uses enable-notification;
      uses dampening;
    }
    container i2nsf-nsf-detection-session-table {
      description
        "The container for configuring I2NSF nsf-detection-session-
         table notification";
      uses enable-notification;
      uses dampening;
    }
    container i2nsf-nsf-detection-intrusion {
      if-feature "i2nsf-nsf-detection-intrusion";
      description
        "The container for configuring I2NSF nsf-detection-intrusion
         notification";
      uses enable-notification;
      uses dampening;
    }
    container i2nsf-nsf-detection-web-attack {
      if-feature "i2nsf-nsf-detection-web-attack";
      description
        "The container for configuring I2NSF nsf-detection-web-attack
         notification";
      uses enable-notification;
      uses dampening;
    }
    container i2nsf-nsf-detection-voip-vocn {
      if-feature "i2nsf-nsf-detection-voip-vocn";
      description
        "The container for configuring I2NSF nsf-detection-voip-vocn
         notification";
      uses enable-notification;
      uses dampening;
    }
    container i2nsf-nsf-system-access-log {
      description
        "The container for configuring I2NSF system-access-log
         notification";
      uses enable-notification;
      uses dampening;
    }
    container i2nsf-system-res-util-log {
      description
        "The container for configuring I2NSF system-res-util-log
         notification";
      uses enable-notification;
      uses dampening;
    }
    container i2nsf-system-user-activity-log {
      description
        "The container for configuring I2NSF system-user-activity-log
         notification";
      uses enable-notification;
      uses dampening;
    }
    container i2nsf-nsf-log-dpi {
      if-feature "i2nsf-nsf-log-dpi";
      description
        "The container for configuring I2NSF nsf-log-dpi
         notification";
      uses enable-notification;
      uses dampening;
    }
    container i2nsf-counter {
      description
        "This is used to configure the counters
         for monitoring an NSF";
      leaf period {
        type uint16;
        units "minutes";
        default 0;
        description
          "The configuration for the period interval of reporting 
           the counter. If 0, then the counter period is disabled.
           If value is not 0, then the counter will be reported
           following the period value.";
      }
    }
  }
}
<CODE ENDS>
]]>
      </artwork>
    </figure>
  </section>  <!-- End Section YANG DATA MODEL -->

  <section anchor="section:Stream" title="I2NSF Event Stream">
    <t>
      This section discusses the NETCONF event stream for an I2NSF NSF 
      Monitoring subscription. 
      The YANG module in this document supports "ietf-subscribed-notifications"
      YANG module <xref target="RFC8639"/> for subscription. 
      The reserved event stream name for this document is "I2NSF-Monitoring". 
      The NETCONF Server (e.g., an NSF) MUST support "I2NSF-Monitoring"
      event stream for an NSF data collector (e.g., Security Controller). 
      The "I2NSF-Monitoring" event stream contains all I2NSF events 
      described in this document.
    </t>
    <t>
      The following XML example shows the capabilities of the event 
      streams generated by an NSF (e.g., "NETCONF" and "I2NSF-Monitoring" event
      streams) for the subscription of an NSF data collector. Refer to
      <xref target="RFC5277"/> for more detailed explanation of Event 
      Streams. The XML examples in this document follow the line breaks as per 
      <xref target="RFC8792"/>.
    </t>
    <figure anchor="xml-example-for-event-streams" title="Example of NETCONF Server supporting I2NSF-Monitoring Event Stream">
      <artwork>
<![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply message-id="1"
           xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data>
    <netconf xmlns="urn:ietf:params:xml:ns:netmod:notification">
      <streams>
        <stream>
          <name>NETCONF</name>
          <description>Default NETCONF Event Stream</description>
          <replaySupport>false</replaySupport>
        </stream>
        <stream>
          <name>I2NSF-Monitoring</name>
          <description>I2NSF Monitoring Event Stream</description>
          <replaySupport>true</replaySupport>
          <replayLogCreationTime>
            2021-04-29T09:37:39+00:00
          </replayLogCreationTime>
        </stream>
      </streams>
    </netconf>
  </data>
</rpc-reply>

]]>
      </artwork>
    </figure>

  </section>  <!-- End Section Event Stream -->

  <section anchor="section:Examples" title="XML Examples for I2NSF NSF Monitoring">
    <t>
      This section shows XML examples of I2NSF NSF Monitoring data 
      delivered via Monitoring Interface from an NSF.  The XML examples
      are following the guidelines from <xref target="RFC6241"/>
      <xref target="RFC7950"/>.
    </t>
    
    <section anchor="section:example-system-alarm" title="I2NSF System Detection Alarm">
      <t>
        The following example shows an alarm triggered by Memory Usage on the server; this example XML file is delivered by an NSF to an NSF data collector:  
      </t>  
      <figure anchor="xml-example-for-memory-alarm" title="Example of I2NSF System Detection Alarm triggered by Memory Usage">
        <artwork>
<![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<notification 
 xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
  <eventTime>2021-04-29T07:43:52.181088+00:00</eventTime>
  <i2nsf-event
    xmlns="urn:ietf:params:xml:ns:yang:ietf-i2nsf-nsf-monitoring">
    <acquisition-method>subscription</acquisition-method>
    <emission-type>on-change</emission-type>
    <dampening-type>on-repetition</dampening-type>
    <language>en-US</language>
    <i2nsf-system-detection-alarm>
      <alarm-category>memory-alarm</alarm-category>
      <usage>91</usage>
      <threshold>90</threshold>
      <message>Memory Usage Exceeded the Threshold</message>
      <nsf-name>time_based_firewall</nsf-name>
      <severity>high</severity>
    </i2nsf-system-detection-alarm>
  </i2nsf-event>
</notification>
]]>
        </artwork>
      </figure>
      <t>
        The XML data above shows:
        <list style="numbers">
          <t>The NSF that sends the information is named "time_based_firewall".</t>
          <t>The memory usage of the NSF triggered the alarm.</t>
          <t>The monitoring information is received by subscription method.</t>
          <t>The monitoring information is emitted "on-change".</t>
          <t>The monitoring information is dampened "on-repetition".</t>
          <t>The memory usage of the NSF is 91 percent.</t>
          <t>The memory threshold to trigger the alarm is 90 percent.</t>
          <t>The severity level of the notification is high.</t>
        </list>
      </t>
    </section>  <!-- End Section Example System alarm -->
  
    <section anchor="section:example-interface-counters" title="I2NSF Interface Counters">
      <t>
        To get the I2NSF system interface counters information by query, NETCONF Client (e.g., NSF data collector) needs to initiate GET connection with NETCONF Server (e.g., NSF). The following XML file can be used to get the state data and filter the information.
      </t>  
      <figure anchor="xml-example-for-filter-interface" title="XML Example for NETCONF GET with System Interface Filter">
        <artwork>
<![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <get>
    <filter
      xmlns="urn:ietf:params:xml:ns:yang:ietf-i2nsf-nsf-monitoring">
      <i2nsf-counters>
        <system-interface/>
      </i2nsf-counters>
    </filter>
  </get>
</rpc>
]]>
        </artwork>
      </figure>
      <t>
        The following XML file shows the reply from the NETCONF Server (e.g., NSF):
      </t>
      <figure anchor="xml-example-for-interface-counters" title="Example of I2NSF System Interface Counters XML Information">
        <artwork>
<![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply message-id="1"
           xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data>
    <i2nsf-counters 
      xmlns="urn:ietf:params:xml:ns:yang:ietf-i2nsf-nsf-monitoring">
      <acquisition-method>query</acquisition-method>
      <system-interface>
        <discontinuity-time>
          2021-04-29T08:43:52.181088+00:00
        </discontinuity-time>
        <interface-name>ens3</interface-name>
        <in-total-traffic-bytes>549050</in-total-traffic-bytes>
        <out-total-traffic-bytes>814956</out-total-traffic-bytes>
        <in-drop-traffic-bytes>0</in-drop-traffic-bytes>
        <out-drop-traffic-bytes>5078</out-drop-traffic-bytes>
        <nsf-name>time_based_firewall</nsf-name>
      </system-interface>
      <system-interface>
        <discontinuity-time>
          2021-04-29T08:43:52.181088+00:00
        </discontinuity-time>
        <interface-name>lo</interface-name>
        <in-total-traffic-bytes>48487</in-total-traffic-bytes>
        <out-total-traffic-bytes>48487</out-total-traffic-bytes>
        <in-drop-traffic-bytes>0</in-drop-traffic-bytes>
        <out-drop-traffic-bytes>0</out-drop-traffic-bytes>
        <nsf-name>time_based_firewall</nsf-name>
      </system-interface>
    </i2nsf-counters>
  </data>
</rpc-reply>
]]>
        </artwork>
      </figure>
      
    </section>  <!-- End Section Example Interface Counters -->
    
  </section> <!-- End Section Examples -->


  <section anchor="section:IANA" title="IANA Considerations">
    <t>
      This document requests IANA to register the following URI in the
      "IETF XML Registry" <xref target="RFC3688" />:
      <figure>
        <artwork>
<![CDATA[
  URI: urn:ietf:params:xml:ns:yang:ietf-i2nsf-nsf-monitoring
  Registrant Contact: The IESG.
  XML: N/A; the requested URI is an XML namespace.
]]>
        </artwork>
      </figure>
      
      This document requests IANA to register the following YANG
      module in the "YANG Module Names" registry <xref
      target="RFC7950" /><xref target="RFC8525" />:
      
      <figure>
        <artwork>
<![CDATA[
  name: ietf-i2nsf-nsf-monitoring
  namespace: urn:ietf:params:xml:ns:yang:ietf-i2nsf-nsf-monitoring
  prefix: nsfmi
  reference: RFC XXXX

  // RFC Ed.: replace XXXX with an actual RFC number and remove
  // this note.
]]>
        </artwork>
      </figure>
    </t>
  </section> <!-- End Section IANA Considerations -->

  <section anchor="section:Security" title="Security Considerations">

    <t>
      The YANG module described in this document defines a schema for data 
      that is designed to be accessed via network management protocols 
      such as NETCONF <xref target="RFC6241"/> or RESTCONF <xref target="RFC8040"/>. 
      The lowest NETCONF layer is the secure transport layer, and the 
      required secure transport is Secure Shell (SSH) 
      <xref target="RFC6242"/>. The lowest RESTCONF layer is HTTPS, and 
      the required secure transport is TLS <xref target="RFC8446"/>. 
    </t>

    <t>
      The NETCONF access control model <xref target="RFC8341"/>
      provides a means of restricting access by specific NETCONF or RESTCONF
      users to a preconfigured subset of all available NETCONF or RESTCONF
      protocol operations and content.
    </t>

    <t>
      All data nodes defined in the YANG module which can be created, modified 
      and deleted (i.e., config true, which is the default) are considered sensitive 
      as they all could potentially impact security monitoring and mitigation activities.
      Write operations (e.g., edit-config) applied to these data nodes without proper 
      protection could result in missed alarms or incorrect alarms information being 
      returned to the NSF data collector. The following are threats that need to be considered and
      mitigated:
      <list style="hanging">
        <t hangText="Compromised NSF with valid credentials:">
          It can send falsified information
          to the NSF data collector to mislead detection or mitigation activities; and/or to
          hide activity. Currently, there is no in-framework mechanism to mitigate this
          and it is an issue for all monitoring infrastructures. It is important to keep 
          confidential information from unauthorized persons to mitigate
          the possibility of compromising the NSF with this information.
        </t>
        <t hangText="Compromised NSF data collector with valid credentials:">
          It has visibility to all collected security alarms; the entire detection and mitigation
          infrastructure may be suspect. It is important to keep 
          confidential information from unauthorized persons to mitigate
          the possibility of compromising the NSF with this information.
        </t>
        <t hangText="Impersonating NSF:">
          This involves a system trying to send false information while imitating an NSF;
          client authentication would help the NSF data collector to identify this invalid
          NSF in the "push" model (NSF-to-collector), while the "pull" model (collector-to-NSF)
          should already be addressed with the authentication.
        </t>        
        <t hangText="Impersonating NSF data collector:">
          This is a rogue NSF data collector with which a legitimate NSF is tricked into communicating;
          for "push" model (NSF-to-collector), it is important to have valid credentials, without
          which it should not work; for "pull" model (collector-to-NSF), mutual authentication
          should be used to mitigate the threat.
        </t>
      </list>
    </t>

    <t>
      In addition, to defend against the DDoS attack caused by a lot of
      NSFs sending massive notifications to the NSF data collector,
      the rate limiting or similar mechanisms should be considered in both an NSF and
      NSF data collector, whether in advance or just in the process of DDoS
      attack.
    </t>
    
    <t>
      All of the readable data nodes in this YANG module may be 
      considered sensitive in some network environments. These data 
      nodes represent information consistent with the logging 
      commonly performed in network and security operations. They 
      may reveal the specific configuration of a network; 
      vulnerabilities in specific systems; and the deployed security 
      controls and their relative efficacy in detecting or mitigating
      an attack. To an attacker, this information could inform how 
      to (further) compromise the network, evade detection, or 
      confirm whether they have been observed by the network 
      operator.
    </t>
    
    <t>
      Additionally, many of the data nodes in this YANG module such 
      as containers "i2nsf-system-user-activity-log", 
      "i2nsf-system-detection-event", and 
      "i2nsf-nsf-detection-voip-vocn" are privacy sensitive.  They 
      may describe specific or aggregate user activity including
      associating user names with specific IP addresses; or users 
      with specific network usage. They may also describe the specific
      commands that were run by users and the resulting output. Any
      sensitive information in that command input or output will be
      visible to the NSF data collector and potentially other entities,
      and care must be taken to protect the confidentiality of such data
      from unauthorized parties.
    </t>

  </section> <!-- End Section Security Consideration -->
  
  <section anchor="section:Acknowledgments" title="Acknowledgments">
    <t>
      This document is a product by the I2NSF Working Group (WG) including
      WG Chairs (i.e., Linda Dunbar and Yoav Nir) and Diego Lopez. 
      This document took advantage of the review and comments from the following people: 
      Roman Danyliw, Tim Bray (IANA), Kyle Rose (TSV-ART), Dale R. Worley (Gen-ART), 
      Melinda Shore (SecDir), Valery Smyslov (ART-ART), and Tom Petch. 
      The authors sincerely appreciate their sincere efforts and kind help.
    </t>
    <t>
      This work was supported by Institute of Information &amp; Communications 
      Technology Planning &amp; Evaluation (IITP) grant funded by the Korea
      MSIT (Ministry of Science and ICT) (R-20160222-002755, Cloud based
      Security Intelligence Technology Development for the Customized Security
      Service Provisioning).
      This work was supported in part by the IITP (2020-0-00395, Standard
      Development of Blockchain based Network Management Automation Technology).      
      This work was supported in part by the MSIT under the Information Technology 
      Research Center (ITRC) support program (IITP-2021-2017-0-01633) supervised
      by the IITP.
    </t>    
    
  </section> <!-- End Section Acknowledgments -->

  <section anchor="section:Contributors" title="Contributors">
    <t> The following are co-authors of this document: </t>
    <t>
      Chaehong Chung - 
      <vspace blankLines="0"/>
      Department of Electronic, Electrical and Computer Engineering,
      <vspace blankLines="0"/>
      Sungkyunkwan University,  
      <vspace blankLines="0"/>  
      2066 Seobu-ro Jangan-gu,
      <vspace blankLines="0"/>
      Suwon, Gyeonggi-do 16419,
      <vspace blankLines="0"/>
      Republic of Korea,
      <vspace blankLines="1"/>
      Email: darkhong@skku.edu
      <vspace blankLines="1"/>
    </t>
    
    <t>
      Jinyong (Tim) Kim - 
      <vspace blankLines="0"/>
      Department of Electronic, Electrical and Computer Engineering,
      <vspace blankLines="0"/>
      Sungkyunkwan University,
      <vspace blankLines="0"/>  
      2066 Seobu-ro Jangan-gu,
      <vspace blankLines="0"/>
      Suwon, Gyeonggi-do 16419,
      <vspace blankLines="0"/>
      Republic of Korea,
      <vspace blankLines="1"/>
      Email: timkim@skku.edu
      <vspace blankLines="1"/>
    </t>

    <t>
      Dongjin Hong - 
      <vspace blankLines="0"/>
      Department of Electronic, Electrical and Computer Engineering,
      <vspace blankLines="0"/>
      Sungkyunkwan University, 
      <vspace blankLines="0"/>  
      2066 Seobu-ro Jangan-gu,
      <vspace blankLines="0"/>
      Suwon, Gyeonggi-do 16419,
      <vspace blankLines="0"/>
      Republic of Korea,
      <vspace blankLines="1"/>
      Email: dong.jin@skku.edu
      <vspace blankLines="1"/>
    </t>

    <t>
      Dacheng Zhang - 
      <vspace blankLines="0"/>
      Huawei,
      <vspace blankLines="0"/>
        
      <vspace blankLines="0"/>  
      
      <vspace blankLines="0"/>
      
      <vspace blankLines="0"/>
      
      <vspace blankLines="1"/>
      Email: dacheng.zhang@huawei.com
      <vspace blankLines="1"/>
    </t>

    <t>
      Yi Wu - 
      <vspace blankLines="0"/>
      Aliababa Group,
      <vspace blankLines="0"/>
        
      <vspace blankLines="0"/>  
      
      <vspace blankLines="0"/>
      
      <vspace blankLines="0"/>
      
      <vspace blankLines="1"/>
      Email:  anren.wy@alibaba-inc.com
      <vspace blankLines="1"/>
    </t>
    
    <t>
      Rakesh Kumar - 
      <vspace blankLines="0"/>
      Juniper Networks,
      <vspace blankLines="0"/>
      1133 Innovation Way, 
      <vspace blankLines="0"/>  
      Sunnyvale, CA 94089,
      <vspace blankLines="0"/>
      USA,
      <vspace blankLines="1"/>
      Email: rkkumar@juniper.net
      <vspace blankLines="1"/>
    </t>

    <t>
      Anil Lohiya - 
      <vspace blankLines="0"/>
      Juniper Networks,
      <vspace blankLines="0"/>
        
      <vspace blankLines="0"/>  
      
      <vspace blankLines="0"/>
      
      <vspace blankLines="0"/>
      
      <vspace blankLines="1"/>
      Email: alohiya@juniper.net
      <vspace blankLines="1"/>
    </t>

  </section> <!--End Section Contributors -->

</middle>

<back>

  <references title="Normative References">
    
    <?rfc include="reference.RFC.0768"?>
    <?rfc include="reference.RFC.0791"?>
    <?rfc include="reference.RFC.0792"?>
    <?rfc include="reference.RFC.0854"?>
    <?rfc include="reference.RFC.0959"?>
    <?rfc include="reference.RFC.1939"?>
    <?rfc include="reference.RFC.2119"?>
    <?rfc include="reference.RFC.2595"?>    
    <?rfc include="reference.RFC.3339"?>
    <?rfc include="reference.RFC.3688"?>
    <?rfc include="reference.RFC.3877"?>
    <?rfc include="reference.RFC.4340"?>
    <?rfc include="reference.RFC.4443"?>
    <?rfc include="reference.RFC.5277"?>
    <?rfc include="reference.RFC.5321"?>
    <?rfc include="reference.RFC.5646"?>    
    <?rfc include="reference.RFC.6241"?>
    <?rfc include="reference.RFC.6242"?>
    <?rfc include="reference.RFC.6265"?>
    <?rfc include="reference.RFC.6991"?>
    <?rfc include="reference.RFC.7011"?>
    <?rfc include="reference.RFC.7950"?>
    <?rfc include="reference.RFC.8040"?>
    <?rfc include="reference.RFC.8174"?>
    <?rfc include="reference.RFC.8200"?>
    <?rfc include="reference.RFC.8329"?>
    <?rfc include="reference.RFC.8340"?>
    <?rfc include="reference.RFC.8341"?>
    <?rfc include="reference.RFC.8342"?>
    <?rfc include="reference.RFC.8343"?>
    <?rfc include="reference.RFC.8407"?>
    <?rfc include="reference.RFC.8446"?>
    <?rfc include="reference.RFC.8525"?>
    <?rfc include="reference.RFC.8639"?>
    <?rfc include="reference.RFC.8641"?>
    <?rfc include="reference.RFC.8650"?>
    <?rfc include="reference.RFC.9000"?>
    <?rfc include="reference.RFC.9051"?>
    <?rfc include='reference.I-D.ietf-httpbis-http2bis'?>
    <?rfc include='reference.I-D.ietf-httpbis-messaging'?>
    <?rfc include='reference.I-D.ietf-httpbis-semantics'?>
    <?rfc include='reference.I-D.ietf-i2nsf-capability-data-model'?>
    <?rfc include="reference.I-D.ietf-i2nsf-nsf-facing-interface-dm"?>
    <?rfc include='reference.I-D.ietf-tcpm-rfc793bis'?>
    <?rfc include='reference.I-D.ietf-tsvwg-rfc4960-bis'?>
  </references> 
  
  <references title="Informative References">
    <?rfc include="reference.RFC.0826"?>
    <?rfc include="reference.RFC.4861"?>
    <?rfc include="reference.RFC.4949"?>
    <?rfc include="reference.RFC.8792"?>
    
    <?rfc include="reference.I-D.ietf-i2nsf-consumer-facing-interface-dm"?>
    <!--
    <?rfc include="reference.I-D.ietf-i2nsf-registration-interface-dm"?>
    <?rfc include="reference.I-D.ietf-i2nsf-applicability"?>
    <?rfc include="reference.I-D.yang-i2nsf-security-policy-translation"?>
    -->
    
 
    <reference anchor="IANA-HTTP-Status-Code" target='https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml'>
      <front>
          <title>Hypertext Transfer Protocol (HTTP) Status Code Registry</title>
          <author initials="IANA">
            <organization>Internet Assigned Numbers Authority (IANA)</organization>
          </author>
          <date month="September" year="2018" />
      </front>
      <format type="TXT" target="https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml"/>   
    </reference>
    
    <reference anchor="IEEE-802.1AB" target='https://ieeexplore.ieee.org/document/7433915'>
      <front>
        <title>IEEE Standard for Local and metropolitan area networks - Station and Media Access Control Connectivity Discovery</title>
        <author initials="IEEE">
          <organization>Institute of Electrical and Electronics Engineers</organization>
        </author>
        <date month="March" year="2016"/>
      </front>
      <format type="TXT" target="https://ieeexplore.ieee.org/document/7433915"/>   
    </reference>
  
  </references>

  <!-- START: Changes from the previous version -->
  <section title="Changes from draft-ietf-i2nsf-nsf-monitoring-data-model-15">
      <t>
        The following changes are made from draft-ietf-i2nsf-nsf-monitoring-data-model-15:
        <list style="symbols">
          <t>
            This version is added following Benjamin Kaduk, Francesca
            Palombini, and Robert Wilton's comments
          </t>
        </list>
      </t>
  </section> 
  <!-- END: Changes from the previous version -->
  
</back>

<!-- <vspace blankLines="100"/> -->
<!-- page break to put addresses onto one page-->

</rfc>
