Skip to main content

CATS metric Definition
draft-ysl-cats-metric-definition-01

The information below is for an old version of the document.
Document Type
This is an older version of an Internet-Draft whose latest revision state is "Active".
Authors Kehan Yao , Hang Shi , Cheng Li
Last updated 2024-10-21 (Latest revision 2024-07-08)
RFC stream (None)
Formats
Stream Stream state (No stream defined)
Consensus boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date (None)
Responsible AD (None)
Send notices to (None)
draft-ysl-cats-metric-definition-01
Computing-Aware Traffic Steering                                Y. Kehan
Internet-Draft                                              China Mobile
Intended status: Informational                               H. Shi, Ed.
Expires: 24 April 2025                                        C. Li, Ed.
                                                     Huawei Technologies
                                                         21 October 2024

                         CATS metric Definition
                  draft-ysl-cats-metric-definition-01

Abstract

   This document defines the computing metrics used in Computing-Aware
   Traffic Steering.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at https://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on 24 April 2025.

Copyright Notice

   Copyright (c) 2024 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents (https://trustee.ietf.org/
   license-info) in effect on the date of publication of this document.
   Please review these documents carefully, as they describe your rights
   and restrictions with respect to this document.  Code Components
   extracted from this document must include Revised BSD License text as
   described in Section 4.e of the Trust Legal Provisions and are
   provided without warranty as described in the Revised BSD License.

Kehan, et al.             Expires 24 April 2025                 [Page 1]
Internet-Draft                 CATS Metric                  October 2024

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
   2.  Conventions and Definitions . . . . . . . . . . . . . . . . .   3
   3.  Definition of Metrics . . . . . . . . . . . . . . . . . . . .   4
     3.1.  Level 0: Raw Metrics  . . . . . . . . . . . . . . . . . .   4
     3.2.  Level 1: Normalized Metrics in Categories . . . . . . . .   5
     3.3.  Level 2: Fully Normalized Metric. . . . . . . . . . . . .   6
   4.  Representation of Metrics . . . . . . . . . . . . . . . . . .   6
     4.1.  Level 0 Metric Representation . . . . . . . . . . . . . .   7
       4.1.1.  Compute Raw Metrics . . . . . . . . . . . . . . . . .   7
       4.1.2.  Storage Raw Metrics . . . . . . . . . . . . . . . . .   7
       4.1.3.  Network Raw Metrics . . . . . . . . . . . . . . . . .   8
       4.1.4.  Delay Raw Metrics . . . . . . . . . . . . . . . . . .   8
       4.1.5.  Considerations on the Sources of Metrics and the
               Statistics  . . . . . . . . . . . . . . . . . . . . .   8
     4.2.  Level 1 Metric Representation . . . . . . . . . . . . . .   8
       4.2.1.  Normalized Compute Metrics  . . . . . . . . . . . . .   8
       4.2.2.  Normalized Storage Metrics  . . . . . . . . . . . . .   8
       4.2.3.  Normalized Network Metrics  . . . . . . . . . . . . .   9
       4.2.4.  Normalized Delay  . . . . . . . . . . . . . . . . . .   9
       4.2.5.  Considerations on the Sources of Metrics and the
               Statistics  . . . . . . . . . . . . . . . . . . . . .   9
     4.3.  Level 2 Metric Representation . . . . . . . . . . . . . .   9
   5.  Comparison of three layers of metric  . . . . . . . . . . . .   9
   6.  Security Considerations . . . . . . . . . . . . . . . . . . .  11
   7.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  11
   8.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  11
     8.1.  Normative References  . . . . . . . . . . . . . . . . . .  11
     8.2.  Informative References  . . . . . . . . . . . . . . . . .  11
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  12

1.  Introduction

   Many modern computing services are deployed in a distributed way.  In
   this deployment mode, multiple service instances are deployed in
   multiple sites to provide equivalent function to end users.  In order
   to provide better service to end users, a framework called CATS
   (Computing-Aware Traffic Steering) [I-D.ietf-cats-framework] is
   proposed.

   CATS (Computing-Aware Traffic Steering) [I-D.ietf-cats-framework] is
   a traffic engineering approach that takes into account the dynamic
   nature of computing resources and network state to optimize service-
   specific traffic forwarding towards a given service contact instance.
   Various relevant metrics may be used to enforce such computing-aware
   traffic steering policies.

Kehan, et al.             Expires 24 April 2025                 [Page 2]
Internet-Draft                 CATS Metric                  October 2024

   To effectively steer traffic to the appropriate service instance,
   network devices need a model of the service instance's computing
   status.  A common definition of computing metrics is essential for
   effective coordination between network devices and computing systems.
   Without standardized computing metrics, devices on the network may
   interpret and respond to traffic conditions and computing load
   differently, leading to inefficiencies and potential conflicts.  A
   standardized metric allows both network devices and computing systems
   to evaluate load consistently, enabling precise traffic steering
   decisions that optimize resource utilization and improve overall
   system performance.

   Various considerations for metric definition are proposed in
   [I-D.du-cats-computing-modeling-description], which are useful in
   defining computing metrics.

   Based on the considerations defined in
   [I-D.du-cats-computing-modeling-description], this document defines
   relevant computing metrics for CATS by categorizing the metrics into
   three levels based on their complexity and richness.

2.  Conventions and Definitions

   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 [RFC2119] [RFC8174] when, and only when, they appear in all
   capitals, as shown here.

   This document uses terms defined in [I-D.ietf-cats-framework].  We
   list them below for clarification.

   *  Computing-Aware Traffic Steering (CATS): An architecture that
      takes into account the dynamic nature of computing resources and
      network state to steer service traffic to a service instance.
      This dynamicity is expressed by means of relevant metrics.

   *  Service: An offering that is made available by a provider by
      orchestrating a set of resources (networking, compute, storage,
      etc.).

   *  Service instance: An instance of running resources according to a
      given service logic.

Kehan, et al.             Expires 24 April 2025                 [Page 3]
Internet-Draft                 CATS Metric                  October 2024

3.  Definition of Metrics

   Many metrics are being discussed and/or defined in routing and
   computing area.  Definition and usage of specific metrics are highly
   related to the use case, especially in IT use cases.  However, when
   considering distributing compute metrics to network devices,
   appropriate categorizing and abstraction is required in order to not
   introduce extra complexity into the network.

   Based on the abstraction level of metrics, this document defines
   three levels of metric to meet different requirements of different
   use cases:

   *  Level 0(L0): Raw Metrics.  In this level, the metrics are not
      abstracted, so different metrics use their own unit and format.

   *  Level 1(L1): Normalized Metrics in Categories.  In this level, the
      metrics are categorized into multiple dimensions, such as network,
      computing and storage.  Each category metric is normalized into a
      value.

   *  Level 2(L2): Fully Normalized Metric.  In this level, metrics are
      normalized into a single value, the category information or raw
      metrics information cannot be interpreted from the value directly.

3.1.  Level 0: Raw Metrics

   The metrics without any abstraction are Level 0 metrics.  Therefore,
   Level 0 metrics encompass detailed, raw metrics, including but not
   limit to:

   *  CPU: Base Frequency, Number of Cores, Boosted Frequency, Memory
      Bandwidth, Memory Size, Memory Utilization Ratio, Core Utilization
      Ratio, Power Consumption.

   *  GPU: Frequency, Number of Render Unit, Memory Bandwidth, Memory
      Size, Memory Utilization Ratio, Core Utilization Ratio, Power
      Consumption.

   *  NPU: Computing Power, Utlization Ratio, Power Consumption.

   *  Network: Bandwidth, TXBytes, RXBytes, HostBusUtilization.

   *  Storage: Available Space, Read Speed, Write Speed.

   *  Delay: Time takes to process a request.

Kehan, et al.             Expires 24 April 2025                 [Page 4]
Internet-Draft                 CATS Metric                  October 2024

   In L0, detailed information of a metric can be encoded into the
   protocol, and different service has its own metrics with different
   information elements.  This kind of metrics are used widely in IT
   systems.

   Regarding network related raw metrics, IPPM WG has defined many types
   of metrics in [performance-metrics].  [RFC9439] also defines a lot of
   metrics of packet performance and Throughput/Bandwidth.  Regarding
   computing metrics, [I-D.rcr-opsawg-operational-compute-metrics]
   defines a set of cloud resource metrics.

3.2.  Level 1: Normalized Metrics in Categories

   In Level 1, the metrics will be categorized into different
   categories, and appropriate abstraction will be applied to each
   category.  The Level 0 raw metrics can be categorized into multiple
   categories, such as computing, networking, storage and delay.  In
   each category, the metrics are normalized into a value that present
   the state of the resource, making it as a Level 1 metric.  Potential
   categories are shown below:

   *  Computing: A normalized value generating from the computing
      related L0 metrics, such as CPU/GPU/NPU L0 metrics

   *  Networking: A normalized value generating from the network related
      L0 metrics.

   *  Storage: A normalized value generating from the storage L0
      metrics.

   *  Delay: A normalized value generating from computing/networking/
      storage metrics, reflecting the processing delay of a request.

   Editor note: detailed categories can be updated according to the CATS
   WG discussion.

   The L0 metrics, such as the ones defined in [performance-metrics]
   ,[RFC9439] and [I-D.rcr-opsawg-operational-compute-metrics] can be
   categorized into above categories.  Each category will use its own
   method(weighted summary, etc.) to generate the normalized value.  In
   this way, the protocol only care about the metric categories and its
   normalized value, and avoid to process the detailed metrics.

Kehan, et al.             Expires 24 April 2025                 [Page 5]
Internet-Draft                 CATS Metric                  October 2024

3.3.  Level 2: Fully Normalized Metric.

   L2 metric is a one-dimensional value derived from a weighted sum of
   L1 metrics or from L0 metrics directly.  Different service has its
   own normalization method which might use different metrics with
   different weight.  For the ingress CATS router, it can compare the
   metric value to make the traffic steering decision (e.g., larger
   value has higher priority) . In some cases, some implementations may
   support to configure the ingress CATS router to know the metric
   normalizing method so that it can decode the affection from the L1 or
   L0 metrics.

   This method simplifies the complexity of transmission and management
   of multiple metrics by consolidating them into a single, unified
   measure.

   The below figure 1 shows the logic of metrics in Level 0, level 1 and
   level 2.

                        +--------------+
   Level 2       +------| Normalized M |-------+
                 |      +--------------+       |
                 |             |               |
                 |             |  Normalizing  |
            +---------+    +--------+     +--------+
   Level 1  | Cate M1 |    | Cate M2|     | Cate M3|  ...
            +---------+    +--------+     +--------+
                  | |            |               | |
                  | |            |Normalizing    | |
           +------+ +------+   +------+   +------+ +------+
   Level 0 |Raw M1| |Raw M2|...|Raw M3|...|Raw M4| |Raw M5| ...
           +------+ +------+   +------+   +------+ +------+

                 Figure 1: Logic of CATS Metrics in levels

4.  Representation of Metrics

   A hierarchical view of metrics has been shown in the section above.
   In this section, the detailed representation of metrics will be
   described.

   [RFC9439] gives a good way to show the representation of some network
   metrics which is used for network capabilities exposure to
   applications.  This document further describe the representation of
   CATS metrics.

Kehan, et al.             Expires 24 April 2025                 [Page 6]
Internet-Draft                 CATS Metric                  October 2024

   Basically, in each metric level and for each metric, there will be
   some common fields for representation, including metric type, unit,
   and precision.  Metric type is a name for network devices and
   protocols to recognize what the metric is. unit and precision are
   necessary for metric descripition.  How many bits a metric occupies
   in protocols is also required.

   Beyond these basic representations, the source of the metrics MUST
   also be declared.  As defined in [RFC9439], there are three cost-
   sources, nominal, sla, and estimation.  This document further divide
   the estimation type into three sub-types, direct measurement,
   aggregation, and normalization, since different levels of metrics
   require different sources to acquire CATS metrics.  Directly measured
   metrics have physical meanings and units without any processing.
   Aggregation metrics can be either physically meaningful or not, and
   they maintain their meanings compared to the directly measured
   metrics.  Normalized metrics can have physical meanings or not, but
   they do not have units, and they are just numbers that used for
   routing decision making.

   To be more fine grained, This document refer to the definition of
   [RFC9439] on the metrics statistics.

4.1.  Level 0 Metric Representation

   Raw metrics have exact physical meanings and units.  They are
   directly measured from the underlying computing resources providers.
   Lots of definition on this level of metrics have been defined in IT
   industry and other standardisations[DMTF], and this document only
   show some examples for different categories of metrics for reference.

4.1.1.  Compute Raw Metrics

   *  The metric type of compute resources are named as “compute_type:
      CPU” or “compute_type: GPU”. Their frequency unit is GHZ, the
      compute capabilities unit is FLOPS.  Format should support integer
      and FP8.  It will occupy 4 octets.

   *  Example[TBA].

4.1.2.  Storage Raw Metrics

   The metric type of storage resources like SSD are named as
   “storage_type: SSD”. The storage space unit is megaBytes(MBs).
   Format is integer.  It will occupy 2 octets.  The unit of read or
   write speed is denoted as MB per second.

   *  Example[TBA].

Kehan, et al.             Expires 24 April 2025                 [Page 7]
Internet-Draft                 CATS Metric                  October 2024

4.1.3.  Network Raw Metrics

   The metric type of network resources like bandwidth are named as
   “network_type: Bandwidth”. The unit is gigabits per second(Gb/s).
   Format is integer.  It will occupy 2 octets.  The unit of TXBytes and
   RXBytes is denoted as MB per second.

   *  Example[TBA].

4.1.4.  Delay Raw Metrics

   Delay is a kind of synthesized metric which is influenced by
   computing, storage access, and network transmission.  It is named as
   “delay_raw”. Format should support integer and FP8.  Its unit is
   microsecond.  It will occupy 4 octets.

4.1.5.  Considerations on the Sources of Metrics and the Statistics

   The sources of L0 metrics can be nominal, directly measured, or
   aggregated.  Nominal L0 metrics are provided initially by resource
   providers.  Dynamic L0 metrics are measured and updated during
   service stage.  L0 metrics also support aggregation, in case that
   there are multiple service instances.

   The statistics of L0 metrics will follow the definition of section
   3.2 of [RFC9439].

4.2.  Level 1 Metric Representation

   Normalized metrics in categories have physical meanings but they do
   not have unit.  They are numbers after some ways of abstraction, but
   they can represent their type, in case that in some use cases, some
   specific types of metrics require more attention.

4.2.1.  Normalized Compute Metrics

   The metric type of normalized compute metrics is “compute_norm”, and
   its format is integer.  It has no unit.  It will occupy a octet.

   *  Example[TBA].

4.2.2.  Normalized Storage Metrics

   The metric type of normalized compute metrics is “storage_norm”, and
   its format is integer.  It has no unit.  It will occupy a octet.

   *  Example[TBA].

Kehan, et al.             Expires 24 April 2025                 [Page 8]
Internet-Draft                 CATS Metric                  October 2024

4.2.3.  Normalized Network Metrics

   The metric type of normalized compute metrics is “network_norm”, and
   its format is integer.  It has no unit.  It will occupy a octet.

   *  Example[TBA].

4.2.4.  Normalized Delay

   The metric type of normalized compute metrics is “delay_norm”, and
   its format is integer.  It has no unit.  It will occupy a octet.

   *  Example[TBA].

4.2.5.  Considerations on the Sources of Metrics and the Statistics

   The sources of L1 metrics is normalized and support aggregation.
   Based on L0 metrics, service providers design their own algorithms to
   normalize metrics.  For example, assigning different cost values to
   each raw metric and do summation.  L1 metric do not need further
   statistical values.

4.3.  Level 2 Metric Representation

   The fully normalized metric is a single value which does not have any
   physical meaning or unit.  Each provider may have its own methods to
   derive the value, but all providers MUST follow the definition in
   this section to represent the fully normalized value.

   Metric type is “Norm_fi”. The format of the value is non-negative
   integer.  It has no unit.  It will occupy a octet.

   The fully normalized value also supports aggregation when there are
   multiple service instances providing these fully normalized values.
   When providing fully normalized values, service instances do not need
   to do further statistics.

5.  Comparison of three layers of metric

   From L0 to L1 to L2, the computing metric is consolidated.  Different
   level of abstraction can meet the requirements from different
   services.  Table 1 shows the comparison among metric levels.

Kehan, et al.             Expires 24 April 2025                 [Page 9]
Internet-Draft                 CATS Metric                  October 2024

      +=======+=============+===============+===========+==========+
      | Level | Encoding    | Extensibility | Stability | Accuracy |
      |       | Complexity  |               |           |          |
      +=======+=============+===============+===========+==========+
      | Level | Complicated | Bad           | Bad       | Good     |
      |   0   |             |               |           |          |
      +-------+-------------+---------------+-----------+----------+
      | Level | Medium      | Medium        | Medium    | Medium   |
      |   1   |             |               |           |          |
      +-------+-------------+---------------+-----------+----------+
      | Level | Simple      | Good          | Good      | Medium   |
      |   2   |             |               |           |          |
      +-------+-------------+---------------+-----------+----------+

                 Table 1: Comparison among Metrics Levels

   Since Level 0 metrics are raw metrics, therefore, different services
   may have their own metrics, resulting in hundreds or thousands of
   metrics in total, this brings huge complexity in protocol encoding
   and standardization.  Therefore, this kind of metrics are always used
   in customized IT systems case by case.  In Level 1 metrics, metrics
   are categorized into several categories and each category is
   normalized into a value, therefore they can be encoded into the
   protocol and standardized.  Regarding the Level 2 metrics, all the
   metrics are normalized into one single metric, it is easier to be
   encoded in protocol and standardized.  Therefore, from the encoding
   complexity aspect, Level 2 and Level 1 metrics are suggested.

   Similarly, when considering extensibility, new services can define
   their own new L0 metrics, which requires protocol to be extended as
   needed.  Too many metrics type can create a lot of overhead to the
   protocol resulting in a bad extensibility of the protocol.  Level 1
   introduce only several metrics categories, which is acceptable for
   protocol extension.  Level 2 metric only need one single metric, so
   it brings least burden to the protocol.  Therefore, from the
   extensibility aspect, Level 2 and Level 1 metrics are suggested.

   Regarding Stability, new Level 0 raw metrics may require new
   extension in protocol, which brings unstable format for protocol,
   therefore, this document does not recommend to standardize Level 0
   metrics in protocol.  Level 1 metrics request only few categories,
   and Level 2 Metric only introduce one metric to the protocol, so they
   are preferred from the stability aspect.

Kehan, et al.             Expires 24 April 2025                [Page 10]
Internet-Draft                 CATS Metric                  October 2024

   In conclusion, for computing-aware traffic steering, it is
   recommended to use the L2 metric due to its simplicity.  If advanced
   scheduling is needed, L1 metric can be used.  L2 metrics are the most
   comprehensive and dynamic, therefore transferring them to network
   devices is discouraged due to their high overhead.

   Editor notes: this draft can be updated according to the discussion
   of metric definition in CATS WG.

6.  Security Considerations

   TBD

7.  IANA Considerations

   TBD

8.  References

8.1.  Normative References

   [I-D.ietf-cats-framework]
              Li, C., Du, Z., Boucadair, M., Contreras, L. M., and J.
              Drake, "A Framework for Computing-Aware Traffic Steering
              (CATS)", Work in Progress, Internet-Draft, draft-ietf-
              cats-framework-04, 17 October 2024,
              <https://datatracker.ietf.org/doc/html/draft-ietf-cats-
              framework-04>.

   [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119,
              DOI 10.17487/RFC2119, March 1997,
              <https://www.rfc-editor.org/rfc/rfc2119>.

   [RFC8174]  Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
              2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
              May 2017, <https://www.rfc-editor.org/rfc/rfc8174>.

8.2.  Informative References

   [DMTF]     "DMTF", n.d., <https://www.dmtf.org/>.

Kehan, et al.             Expires 24 April 2025                [Page 11]
Internet-Draft                 CATS Metric                  October 2024

   [I-D.du-cats-computing-modeling-description]
              Du, Z., Yao, K., Li, C., Huang, D., and Z. Fu, "Computing
              Information Description in Computing-Aware Traffic
              Steering", Work in Progress, Internet-Draft, draft-du-
              cats-computing-modeling-description-03, 6 July 2024,
              <https://datatracker.ietf.org/doc/html/draft-du-cats-
              computing-modeling-description-03>.

   [I-D.rcr-opsawg-operational-compute-metrics]
              Randriamasy, S., Contreras, L. M., Ros-Giralt, J., and R.
              Schott, "Joint Exposure of Network and Compute Information
              for Infrastructure-Aware Service Deployment", Work in
              Progress, Internet-Draft, draft-rcr-opsawg-operational-
              compute-metrics-06, 7 July 2024,
              <https://datatracker.ietf.org/doc/html/draft-rcr-opsawg-
              operational-compute-metrics-06>.

   [performance-metrics]
              "performance-metrics", n.d.,
              <https://www.iana.org/assignments/performance-metrics/
              performance-metrics.xhtml>.

   [RFC9439]  Wu, Q., Yang, Y., Lee, Y., Dhody, D., Randriamasy, S., and
              L. Contreras, "Application-Layer Traffic Optimization
              (ALTO) Performance Cost Metrics", RFC 9439,
              DOI 10.17487/RFC9439, August 2023,
              <https://www.rfc-editor.org/rfc/rfc9439>.

Authors' Addresses

   Kehan Yao
   China Mobile
   China
   Email: yaokehan@chinamobile.com

   Hang Shi (editor)
   Huawei Technologies
   China
   Email: shihang9@huawei.com

   Cheng Li (editor)
   Huawei Technologies
   China
   Email: c.l@huawei.com

Kehan, et al.             Expires 24 April 2025                [Page 12]