<?xml version="1.0" encoding="US-ASCII"?>
<!-- This is built from a template for a generic Internet Draft. Suggestions for
     improvement welcome - write to Brian Carpenter, brian.e.carpenter @ gmail.com 
     This can be converted using the Web service at http://xml.resource.org/ -->
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<!-- You want a table of contents -->
<!-- Use symbolic labels for references -->
<!-- This sorts the references -->
<!-- Change to "yes" if someone has disclosed IPR for the draft -->
<!-- This defines the specific filename and version number of your draft (and inserts the appropriate IETF boilerplate -->
<?rfc sortrefs="yes"?>
<?rfc toc="yes"?>
<?rfc symrefs="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<?rfc topblock="yes"?>
<?rfc comments="no"?>
<rfc category="info" docName="draft-yang-nmrg-network-measurement-intent-07"
     ipr="trust200902">
  <front>
    <title abbrev="Network Working Group">Network measurement intent - one of
    IBN use cases</title>

    <author fullname="Danyang Chen" initials="D." surname="Chen">
      <organization>China Mobile</organization>

      <address>
        <postal>
          <street/>

          <city>Beijing</city>

          <code>100053</code>

          <country>China</country>
        </postal>

        <email>chendanyang@chinamobile.com</email>
      </address>
    </author>

    <author fullname="Hongwei Yang" initials="H." surname="Yang">
      <organization>China Mobile</organization>

      <address>
        <postal>
          <street/>

          <city>Beijing</city>

          <code>100053</code>

          <country>China</country>
        </postal>

        <email>yanghongwei@chinamobile.com</email>
      </address>
    </author>

    <author fullname="Kehan Yao" initials="K." surname="Yao">
      <organization>China Mobile</organization>

      <address>
        <postal>
          <street/>

          <city>Beijing</city>

          <code>100053</code>

          <country>China</country>
        </postal>

        <email>yaokehan@chinamobile.com</email>
      </address>
    </author>

    <author fullname="Giuseppe Fioccola" initials="G." surname="Fioccola">
      <organization>Huawei</organization>

      <address>
        <postal>
          <street>Riesstrasse, 25</street>

          <city>Munich</city>

          <code>80992</code>

          <country>Germany</country>
        </postal>

        <email>giuseppe.fioccola@huawei.com</email>
      </address>
    </author>

    <author fullname="Qin Wu" initials="Q." surname="Wu">
      <organization>Huawei</organization>

      <address>
        <postal>
          <street>101 Software Avenue, Yuhua District</street>

          <city>Nanjing</city>

          <code>210012</code>

          <country>China</country>
        </postal>

        <email>bill.wu@huawei.com</email>
      </address>
    </author>

    <author fullname="Luis M. Contreras" initials="LM." surname="Contreras">
      <organization>Telefonica</organization>

      <address>
        <postal>
          <street/>

          <city>Madrid</city>

          <code>28050</code>

          <country>Spain</country>
        </postal>

        <email>luismiguel.contrerasmurillo@telefonica.com</email>
      </address>
    </author>

    <!---->

    <date day="20" month="October" year="2023"/>

    <area>Networking</area>

    <workgroup>Internet Research Task Force</workgroup>

    <keyword>Network measurement intent; intent</keyword>

    <abstract>
      <t>As an important technical mean to detect network state, network
      measurement has attracted more and more attention in the development of
      networks. However, the current network measurement technology has the
      problem that the measurement method and the measurement purpose are not
      well matched. To solve this problem, this memo introduces network
      measurement intent, presents a process of scheduling the network
      resources and measurement tasks to meet the user or network operator's
      needs. And it can be seen as a specific use case of intent based
      network.</t>
    </abstract>

    <note 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">RFC 2119</xref>.</t>
    </note>
  </front>

  <middle>
    <section anchor="intro" title="Introduction">
      <t>With the rapid growth of the present network, the scale of the
      network increases, while users' service requirements for the network are
      getting stricter and more diversified, such as meeting the loss
      requirements and throughput requirements simultaneously. At the same
      time, the growth of network resources is hard to meet the service
      requirements of users. In order to meet the needs of network
      development, many new network technologies have emerged. The rise and
      development of intention network is one of it, which brings many
      advantages to the development of network. In this memo, we presented the
      network measurement use cases of the intent based network. In order to
      make good usage of network resources and improve utilization of the
      bandwidth, it becomes necessary to understand the current running state
      of the network, and collect network measurements, as technical means to
      detect the network resource changes. As an important technical mean to
      detect network state, network measurement has attracted more and more
      attention in the development of networks. The continuous development of
      network measurement technology has also increased higher precision of
      network awareness. However, both the traditional network measurement
      technology (e.g., loss measurement and delay measurement defined in<xref
      target="RFC7679">RFC 7679</xref><xref target="RFC7680">RFC 7680</xref>)
      and the network telemetry technology <xref target="RFC8639">RFC
      8639</xref><xref target="RFC8641">RFC 8641</xref><xref
      target="I-D.ietf-netconf-adaptive-subscription"/>, which has emerged
      with the development of software-defined network in recent years, need
      to consume more network resources when detecting the network state
      changes and feeding back the detection results. Therefore, to some
      extent, the choice of network measurement methods, in addition to
      different accuracy of measurement results, will also cause different
      level of network load to the network.</t>

      <t>In order to balance the accuracy of network measurement results with
      the network load, it is very important to choose the appropriate network
      measurement method according to the different requirements of network
      measurement. As a result, accurate on-demand network measurement
      technology is becoming more and more important. Besides, the current
      network measurement technology has the problem that the measurement
      method and the measurement purpose cannot match well.</t>

      <t>Our proposed approach is to use the network measurement intent to
      achieve network performance acquisition based on user/network
      administrator intent, verify whether network measurement results meet
      the measurement intent, and further improve the accuracy of the
      configuration in IBN.</t>
    </section>

    <section title="Definitions and Acronyms">
      <t>CLI: Command-line Interface.</t>

      <t>IBN: Intent based Network.</t>

      <t>Policy: A set of rules that governs the choices in behavior of a
      system.</t>

      <t>NMI: Network Measurement Intent, refers to based on user/network
      operator's demand for network status, and automatically collect network
      status information on demand.</t>

      <t>SLA: Service Level Agreement.</t>
    </section>

    <section title="Relationship to Existing Documents">
      <t>As the rise of IBN, different groups have different definitions of
      the intent. For example, ONF [ONOS] defines intent is represented as a
      list of CLI modes that allows users to pass low-level details on the
      network; and there are two active RG drafts in the NMRG right now,
      Intent-Based Networking - Concepts and Definitions, <xref
      target="RFC9315">RFC 9315</xref> solves the problem that "What is an
      intent?" and<xref target="RFC9316">RFC 9316</xref><xref
      target="I-D.irtf-nmrg-ibn-intent-classification"/>solves the problem
      "Given a specific intent, how to parse/disassemble it from different
      angles?".</t>

      <t>Naturally, the question that needs to be solved after concept
      definition should be "How to realize an specific intent?".<xref
      target="I-D.irtf-nmrg-ibn-intent-classification"/>can be considered as
      the first step of realization of a given intent, however, it is not
      enough. Some other issues should be clarified, like" whether the input
      intent is valid or not?" , "What would the IBN system do when the result
      is not acceptable?", "If the result is not acceptable, does
      human/operator interference required?"... We should take a specific IBN
      use case for illustration of the realization procedure, so we will take
      the network measurement intent as an example.</t>

      <t>Referring to the taxonomy of intent proposed in <xref
      target="I-D.irtf-nmrg-ibn-intent-classification"/>, the network
      measurement intent can be classified into different categories.<list>
          <t>Solution: the intent could cover carrier and data center.</t>

          <t>Intent user type: customer.</t>

          <t>Intent type: customer service intent.</t>

          <t>Intent scope: Application, QoS.</t>

          <t>Network scope: Radio Access, Transport, Edge, Core.</t>

          <t>Abstraction: Non-technical.</t>

          <t>Lifecycle Requirements: transient.</t>
        </list></t>

      <t>In order to integrate the NMI with the IBN, in this document we
      define the components of the NMI interactive process as follows:<list
          style="symbols">
          <t>NMI Recognition and Acquisition</t>

          <t>NMI Translation</t>

          <t>NMI Policy</t>

          <t>NMI Orchestration and pre-Verification</t>

          <t>Data Collection and Analytics</t>

          <t>NMI Compliance Assessment</t>
        </list></t>
    </section>

    <section title="Overview">
      <t>As mentioned above, NMI refers to the on-demand measurement of the
      network state based on the user/network operators' perceived intent of
      the network state.The user/network operators' perceived intent is
      usually in the form of service level objective or service level
      expectation. We will take the measurement of the performance of the
      network overwhelming with the network traffic as a simple example and
      present the detailed interactive process for those components defined in
      section 3.<list style="symbols">
          <t>NMI Recognition and Acquisition. <list>
              <t>In this function, NMI will be recognized by "ingesting"
              users' or network operators' measurement intent. They have the
              ability to identify the NMI of a certain network performance
              that users want to measure, such as delay, jitter, etc., and at
              the same time allow users to express the NMI of network
              performance in a variety of interactive ways to ensure the
              accuracy of the identification. To achieve this functionality,
              such an interaction requires the use of the intent-northbound
              interface defined in the IBN,e.g., service interface model in
              <xref target="RFC8299"/><xref target="RFC8466"/> or intent
              interface defined in [TMF1253A].</t>
            </list></t>

          <t>NMI Translation. <list>
              <t>In this function, NMI needs to be translated into
              corresponding measurement policy, which includes but is not
              limited to network performance parameters to be measured (such
              as delay, jitter, and packet loss), time period to be measured,
              and measurement unit. For a simple example, in the measurement
              of busy network performances, due to dynamic changes of network
              characteristics, such as daily network bandwidth utilization
              rate, the period of network busy time is not fixed. As a result,
              NMI Policy generated by NMI Translation can determine the
              threshold when the network state is busy or the network is
              congested on the same day based on the historical data learned
              by AI.</t>
            </list></t>

          <t>NMI Policy<list>
              <t>In this function, NMI policy needs to be translated into
              actions and instruction invoked against the specified network
              element. Therefore, NMI policy generated by NMI Translation must
              be executable, that is, corresponding underlying network devices
              must be able to support policy execution. If the generated
              policy cannot be executed by the underlying device, the policy
              needs to be adjusted. And if the measurement results cannot meet
              the service requirements set by the users and network operators,
              the policy also needs to be adjusted.</t>
            </list></t>

          <t>NMI Orchestration and pre-Verification. <list>
              <t>In this function, according to the previous NMI Translation
              and NMI Policy step, NMI Orchestration and pre-Verification
              determines the measurement scheme according to the measurement
              policy generated by NMI Policy, and pre-verifies whether the
              measurement scheme is feasible.</t>

              <t>Take busy time network measurement as an example, besides
              choosing of measurement schemes and assigning measurement tasks
              <xref target="RFC8639"/><xref target="RFC8641"/><xref
              target="I-D.ietf-netconf-adaptive-subscription"/><xref
              target="RFC8194"/><xref target="I-D.ietf-netmod-eca-policy"/>,
              it also needs to determine whether the network is busy according
              to the current network state. In addition, this function
              performs automatic network deployment,e.g.,using model driven
              network management approach defined in <xref
              target="RFC8969"/>.</t>
            </list></t>

          <t>Data Collection and Analytics.<list>
              <t>In NMI, data collection and analysis should be based on the
              selected measurement scheme and parameters set to be measured
              that determined in previous steps, automatically realize the
              collection on demand, and generate corresponding data analysis
              results.</t>
            </list></t>

          <t>NMI Compliance Assessment. <list>
              <t>At the end, this function verifies whether the results meets
              the service requirement and whether the NMI is satisfied. If
              either of the two conditions is not satisfied, the NMI should be
              modified and re-enter the NMI Policy.</t>
            </list></t>
        </list></t>

      <t>And the measurement flow diagram is shown as the following
      figure:</t>

      <figure title="Full Lifecycle of NMI">
        <artwork>            +                  ^
  NMI input|                  |
 +---------v-------+          |
 | NMI Recognition |          |Measurement
 |and Acquisition  |          |Results
 +--------+--------+          |Feedback
          |                   |
 +--------v--------+          |
 | NMI Translation |          |
 +--------+--------+          |
          |               +---+----- -----+
 +--------v--------+      |NMI Compliance |
 |   NMI Policy    &lt;------+Assessment     |
 +--------+--------+      +--^------------+
          |                  |
+---------v-----------+   +--+--------------+
| NMI Orchestration   |   | Data Collection |
| and pre-Verification|   | and Analytics   |
+---------+-----------+   +--^--------------+
          |                  |
      +---v------------------+---+
      |   Network Infrastructure |
      +--------------------------+
</artwork>
      </figure>
    </section>

    <section anchor="sect-5" title="Concrete Examples">
      <t>In this section, we will take time accuracy measurement intent and
      spatial accuracy measurement as examples to illustrate each step of the
      process.</t>

      <section anchor="sect-5.1" title="Time Accuracy Measurement">
        <t>With the development of measurement technology in recent years,
        network measurement methods can be divided into active measurement,
        passive measurement and a hybrid measurement <xref target="RFC7799"/>.
        No matter which measurement technology is used, the network resource
        consumption will be influenced by the network condition and change
        over the time.e.g., if the transmission frequency of active
        measurement message is too fast, it will occupy too much bandwidth
        resources and affect the normal operation of actual business. While if
        the transmission frequency is too slow, some instantaneous network
        anomalies will be missed and the network status cannot be accurately
        reflected. Passive measurement requires real- time collection of
        actual business data. If the sampling rate is too high, a large amount
        of data will be accumulated in a short time <xref
        target="I-D.ietf-netconf-adaptive-subscription"/>.The analysis system
        for real-time analysis of these data needs strong processing capacity;
        if the sampling rate is too low, some network anomalies will also be
        omitted.</t>

        <t>How to balance and accurately measure the network state, especially
        the abnormal network affecting the service, while occupying as little
        network bandwidth as possible, and the processing capacity of the data
        analysis system is not high, this is the function that the NMI scheme
        based on IBN should realize.</t>

        <t>Taking network SLA performance metric -- delay measurement as an
        example, the simple schematic diagram is as follows, different
        thresholds, warning value and alert value should be set for network
        delay in advance. When the delay value is below warning, the network
        is normal and the business is normal. When the delay is between
        warning value and alert value, the network fluctuation is abnormal,
        but the business is normal. When the delay exceeds the alert value,
        both the network and business are abnormal. For delay in different
        thresholds, different measurement strategies should be adopted:<list
            style="symbols">
            <t>When the network delay exceeds the alert value, or when the
            historical data predict that the delay will exceed the alert
            value, passive measurement requires 100% sampling of business
            data, and the transmission frequency of active measurement is
            modulated to the maximum. At the same time, the log and alarm data
            of the whole network equipment are collected to realize the most
            fine-grained measurement of the network, locate the root cause of
            the problem and repair the network in time.</t>

            <t>When the network delay exceeds warning value but is lower than
            alert value, passive measurement samples 60% of business data, and
            the transmission message frequency of the active measurement is
            adjusted to the median value, and the running state data of some
            key devices in the network is collected synchronously.</t>

            <t>When the network delay is less than warning value, passive
            measurement data is sampled at 20%, and active measurement message
            frequency is adjusted to the lowest, and the network equipment
            running state of key nodes can be collected as needed.</t>
          </list></t>

        <figure title="Network SLA Performance Metric">
          <artwork>        ^ms
        |
        |
        |                         XX
        |                        X X            Sampling Rate 100%
        |                       XX X
  alert +--------------------------------------------------------+
        |                      X   X             Sampling Rate 60%
        |                     X    XX
        |                    X      X                XX
        |          XX        X      X                XXX
        |          XXX       X       X              X  X
        |         XX X      X        X             X   XX  
        |         X   XX    X        X  XX   XX    X    XX
warning +-------------------------------------------------------+
        |         X    XX  X          XX X  XX X  XX      XX
        |     XX  X     X  X          X   XX   XX X        X
        |    XX X X     X  X          X   XX    XXX         X
        |   X   XX       XXX          X         XX          X
        |   X   XX       XX           X
        |        X       XX                      Sampling Rate 20%
        |
        +-----------------------------------------------------------&gt;
</artwork>
        </figure>

        <t>Based on the above SLA time delay index measurement, different
        thresholds adopt different measurement strategies, the concrete steps
        of SLA measurement intent are as follows:<list style="symbols">
            <t>In NMI Recognition and Acquisition, SLA measurement intent is
            recognized, and business requirements and performance metrics are
            identified by interacting with users. Then the NMI Recognition and
            Acquisition module inputs the SLA measurement intent into the NMI
            Translation module.</t>

            <t>The NMI Translation module consolidates the SLA measurement
            intent with the measurement policy in NMI Policy, and outputs the
            executable measurement policy, such as the message transmission
            frequency of active measurement, the sampling rate of passive
            measurement, the collection range of equipment running state,
            etc.</t>

            <t>The NMI Orchestration and pre-Verification module uses the
            measurement policy as input and for orchestration layer which is
            responsible for translating it into the specific configuration and
            execution time of each device in the tested network. The NMI
            Orchestration and pre-Verification module verifies the
            implementation of the policy in the equipment and pre-analyzes the
            measurement results.</t>

            <t>The Data Collection and Analysis module will collect the
            measurement data according to the configuration and execution time
            requirements of the previous step, make a simple analysis of the
            collected data (e.g.,verify the correctness of the measurement
            data), and then send the collected measurement data to the NMI
            Compliance Assessment module. After that, the NMI Compliance
            Assessment module feedbacks the measurement results (e.g., the
            measurement results match user intent) to the user to complete the
            closed loop of the measurement task.</t>

            <t>The NMI Compliance Assessment module evaluates whether the
            actual measurement results are in line with the user's intent. If
            they are, the results will be fed back. If they are not, the NMI
            Policy module will be informed to adjust the policy, and then the
            measurement will be restarted. According to the measurement
            results, the NMI Compliance Assessment module notifies the NMI
            Orchestration and pre-Verification module to modify the execution
            time of the policy in time, and at the same time updates the
            measured results to the delay history database to improve the
            accuracy of delay prediction.</t>
          </list></t>
      </section>

      <section anchor="sect-5.2" title="Spatial Accuracy Measurement">
        <t>The desired approach is to accurately measure the network state,
        especially when there are some issues affecting the service, but at
        the same time, reduce the resources to be employed to achieve the
        desired accuracy.</t>

        <t>In this regard, the Clustered Alternate-Marking framework<xref
        target="RFC9342">RFC 9342</xref> adds flexibility to Performance
        Measurement (PM), because it can reduce the order of magnitude of the
        packet counters. This allows the NMI Orchestration and
        pre-Verification module to supervise, control, and manage PM in large
        networks.</t>

        <t><xref target="RFC9342">RFC 9342</xref> introduces the concept of
        cluster partition of a network. The monitored network can be
        considered as a whole or split into clusters that are the smallest
        subnetworks (group-to-group segments), maintaining the packet loss
        property for each subnetwork. The clusters can be combined in new
        connected subnetworks at different levels, forming new clusters,
        depending on the level of detail to achieve.</t>

        <t>The clustered performance measurement intent represents the spatial
        accuracy, that is the size of the subnetworks to consider for the
        monitoring. It is possible to start without examining in depth and, in
        case of necessity, the "network zooming" approach can be used.</t>

        <t>This approach called "network zooming" and can be performed in two
        different ways:<list style="numbers">
            <t>change the traffic filter and select more detailed flows;</t>

            <t>activate new measurement points by defining more specified
            clusters.</t>
          </list></t>

        <t>The network-zooming approach implies that some filters, rules or
        flow identifiers are changed. But these changes must be done in a way
        that do not affect the performance. Therefore there could be a
        transient time to wait once the new network configuration takes
        effect. Anyway, if the performance issue is relevant, it is likely to
        last for a time much longer than the transient time.</t>

        <t>The concrete steps of the clustered performance measurement intent
        are as follows:<list style="symbols">
            <t>In NMI Recognition and Acquisition, the clustered performance
            measurement intent is recognized. Then the NMI Recognition and
            Acquisition module inputs the clustered performance measurement
            intent into the NMI Translation module.</t>

            <t>The NMI Translation module analyzes the clustered performance
            measurement intent and outputs the executable measurement policy,
            such as network partition and the spatial accuracy for the
            monitoring.</t>

            <t>The NMI Orchestration and pre-Verification module arranges and
            calibrates the measurement with the specific configuration to
            split the whole network into clusters at different levels.</t>

            <t>The Data Collection and Analysis module collects the
            measurement data from the different clusters, and then send these
            data to the NMI Compliance Assessment module. It verifies the
            performance for each cluster and send the measurement results to
            the user.</t>

            <t>The NMI Compliance Assessment module, in case a cluster is
            experiencing a packet loss or the delay is high, notifies the NMI
            Orchestration and pre-Verification module to modify the cluster
            partition of the network for further investigation. The network
            configuration can be immediately modified in order to perform a
            new partition of the network but only for the cluster with bad
            performance. In this way, the problem can be localized with
            successive approximation up to a flow detailed analysis. This is
            the so-called "closed loop" performance management.</t>
          </list></t>
      </section>
    </section>

    <section anchor="sect-6" title="Classification of NMI">
      <t>In this section, we divide the network measurement intent into static
      NMI and dynamic NMI according to different requirement
      characteristics.</t>

      <section anchor="sect-6.1" title="Static NMI">
        <t>Static NMI refers to the measurement purposes remain unchanged and
        is independent of the network state/external environment. Static NMI
        can be translated into determined network performance indicator
        values, such as concrete delay values, network bandwidth utilization,
        throughput and so on.</t>

        <t>Because the static NMI can be translated into the measurement of
        the determined network performance parameters, the whole process is
        relatively simple and error-free, and only needs to verify whether the
        measurement results meet the requirements.</t>
      </section>

      <section anchor="sect-6.2" title="Dynamic NMI">
        <t>Dynamic NMI refers to the measurement purpose remains unchanged but
        the measurement process changes dynamically according to the network
        state/external environment. Dynamic NMI can also be translated into
        the measurement of determined network performance parameters, however,
        the values of network performance parameters will change with the
        changes of network states and external environment.</t>

        <t>For example, the measurement of busy network performances mentioned
        in the previous section. Although the corresponding network parameters
        for judging whether the network is busy are determined, the
        corresponding network parameters have different values according to
        different network states and external environments.</t>

        <t>Due to the dynamic nature of dynamic NMI, its processing process is
        more complex than static NMI. It is not only necessary to verify the
        accuracy of demand analysis, but also to verify whether the final
        measurement results meet the requirements.</t>
      </section>
    </section>

    <section anchor="Security" title="Security Considerations">
      <t>This document introduces the network measurement intent, and uses two
      concrete examples to illustrate the process of network measurement
      intent. On the basis of existing intent work, this document can be used
      as a use case for IBN.</t>

      <t><xref target="I-D.irtf-nmrg-ibn-concepts-definitions"/>provides a
      comprehensive discussion of security considerations in the context of
      IBN, which are generally applicable also to the network measurement
      intent discussed in this document.</t>
    </section>

    <section anchor="IANA" title="IANA Considerations">
      <t>This document has no requests to IANA.</t>
    </section>
  </middle>

  <back>
    <references title="Normative References">
      <?rfc include="reference.RFC.2119"?>

      <?rfc include="reference.RFC.9315"?>

      <?rfc include="reference.RFC.9316"?>

      <?rfc include="reference.RFC.9342"?>

      <?rfc include="reference.RFC.7679"?>

      <?rfc include="reference.RFC.7680"?>

      <?rfc include="reference.RFC.8639"?>

      <?rfc include="reference.RFC.8641"?>

      <?rfc include="reference.RFC.8299"?>

      <?rfc include="reference.RFC.8194"?>

      <?rfc include="reference.RFC.8466"?>

      <?rfc include="reference.RFC.8969"?>

      <?rfc include="reference.RFC.7799"?>
    </references>

    <references title="Informative References">
      <?rfc include="reference.I-D.irtf-nmrg-ibn-concepts-definitions"?>

      <?rfc include="reference.I-D.irtf-nmrg-ibn-intent-classification"?>

      <?rfc include="reference.I-D.ietf-netconf-adaptive-subscription"?>

      <?rfc include="reference.I-D.ietf-netmod-eca-policy"?>
    </references>
  </back>
</rfc>
