<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?Pub Inc?>
<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="3"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<rfc category="std" docName="draft-dunbar-cats-5g-metadata-applicability-00"
     ipr="trust200902">
  <front>
    <title abbrev="Metadata Applicability">BGP Edge
    Metadata Path Applicability</title>

    <author fullname="Linda Dunbar" initials="L. " surname="Dunbar">
      <organization>Futurewei</organization>

      <address>
        <postal>
          <city>Dallas, TX</city>

          <country>USA</country>
        </postal>

        <email>ldunbar@futurewei.com</email>
      </address>
    </author>

    <author fullname="Cheng Li" initials="C. " surname="Li">
      <organization>Huawei Technologies</organization>

      <address>
        <postal>
          <street/>

          <city>Beijing</city>

          <code/>

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

        <email>c.l@huawei.com</email>
      </address>
    </author>



    <date year="2025"/>

    <abstract>
      <t>This document analyzes the applicability of the Edge Metadata Path Attribute specified in (ietf-idr-5g-edge-service-metadata) to the computing and service related metrics defined by the IETF CATS Working Group.</t>
    </abstract>

    <note title="Requirements Language">
      <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 <xref
      target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they
      appear in all capitals, as shown here.</t>
    </note>
  </front>

  <middle>
    <section title="Introduction">
      <t>
        The Edge Metadata Path Attribute defined in
        <xref target="I-D.ietf-idr-5g-edge-service-metadata"/>
        allows egress routers at edge data centers to advertise edge service related metadata (e.g., availability, preference,
        delay prediction, and resource status) to ingress routers.
      </t>
	  <t>
        CATS (Computing-Aware Traffic Steering) optimizes traffic steering to service
        instances by considering both network and compute resource state.
        The CATS WG defines raw and normalized compute/communication/delay metrics in
        <xref target="I-D.ietf-cats-metric-definition"/>
        and describes BGP distribution for service and shared-resource metrics in
        <xref target="I-D.ll-idr-cats-bgp-extension"/>.
      </t>
      <t>
        This document evaluates how far the existing Edge Metadata mechanisms
        can carry, approximate, or be extended to support CATS metrics and their
        operational requirements.
      </t>
    </section>

    <section title="Conventions used in this document">
      <t>The following conventions are used in this document.</t>

      <list style="hanging">
        <t hangText="Edge DC:">Edge Data Center, which provides the hosting
        environment for the edge services. An Edge DC might host 5G core
        functions in addition to the frequently used edge services.</t>

        <t hangText="gNB:">next generation Node B <xref
        target="TS.23.501-3GPP"/></t>

        <t hangText="RTT:">Round-trip Time</t>

        <t hangText="PSA:">PDU Session Anchor (UPF) <xref
        target="TS.23.501-3GPP"/></t>

        <t hangText="UE:">User Equipment</t>

        <t hangText="UPF:">User Plane Function <xref
        target="TS.23.501-3GPP"/></t>
      </list>
		<t>
        This document uses the terms "Service Contact Instance (SCI)", "Service",
        "Compute Resource", "Shared Resource", and "CATS Metric Levels (L0/L1/L2)"
        as defined in <xref target="I-D.ietf-cats-framework"/> and
        <xref target="I-D.ietf-cats-metric-definition"/>.
      </t>
      <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
      [RFC8174] when, and only when, they appear in all capitals, as shown
      here.</t>
    </section>

    <section title="Summary of 5G Edge Service Metadata Mechanism">
     <section title ="Attribute Structure"> 
        <t>
          The Edge Metadata Path Attribute is an optional, non-transitive BGP Path Attribute
          consisting of a set of Sub-TLVs. Each Sub-TLV carries one metric or an abstracted value
          about the running environment or capability of an edge service or its hosting site.
        </t>
        <t>
          The base document defines Sub-TLVs including (but not limited to):
          Site Preference Index, Site Physical Availability Index, Service Delay Prediction,
          Raw Measurement, Service-Oriented Capability, and Service-Oriented Available Resource.
        </t>
        <t>
          The attribute is carried with selected service routes, typically anycast service prefixes,
          and can also be used in standalone UPDATEs for site-wide values.
        </t>
		</section> 
	        
		<section title = "High-Level Distribution Behavior">
        <t>
          Edge Metadata is intended for limited-domain distribution.
          The attribute is non-transitive and is expected to be filtered at administrative boundaries.
          Route Reflectors (RRs) can further constrain propagation using NO-ADVERTISE or an in-attribute AS-Scope Sub-TLV.
        </t>
        <t>
          The metadata is propagated in BGP UPDATEs, subject to a minimum advertisement interval (default 30 seconds) to control churn.
        </t>
      </section>
	  
	  <section title ="Mapping Sub-TLVs to CATS Metric Categories (Overview)">
	  <t>CATS defines metrics at three abstraction levels: L0 (raw resource and network measures), L1 (normalized per-resource-type metrics), and L2 (composite or policy-derived metrics). The 5G Edge Metadata Path Attribute primarily supports L1 and L2-style abstractions, which aligns with the CATS guidance to avoid flooding highly dynamic raw (L0) metrics in BGP. 
	  </t>
	  <t>The Sub-TLVs defined in [I-D.ietf-idr-5g-edge-service-metadata] naturally map to CATS metric classes as follows:
	  </t>
	   <list style="hanging">
            <t hangText ="Service-Oriented Capability -> CATS L1/L2 compute capability:"> Represents a normalized measure of compute availability for a service or set of instances.
            </t>


            <t hangText = "Service-Oriented Available Resource -> CATS L1 compute availability:"> Similar to CPU/memory/storage availability, but abstracted into a comparable index.
            </t>

            <t hangText = "Service Delay Prediction -> CATS L1 normalized delay or L0 raw delay:"> Provides a predictive or measured service-instance delay, supporting both raw and normalized forms depending on encoding.
            </t>

            <t hangText = "Raw Measurement -> CATS L0 telemetry:"> Byte/packet counters can be used to construct utilization and load factors that feed into higher-level metrics.
            </t>

            <t hangText ="Site Preference Index -> CATS L2 policy composite:"> Not a standard CATS metric, but fits naturally into the L2 category used for operator-defined policy overrides.
            </t>

            <t hangText ="Site Physical Availability Index (SPAI) -> CATS Shared Resource metric:"> Directly expresses physical-site-level constraints that affect all SCIs hosted at that site.
            </t>	  
        </list>
		
	  </section>
	</section>
    <section title ="Applicability of 5G Edge Metadata to CATS Metrics">

        <t>
          The 5G Edge Metadata Path Attribute provides a ready-made container to carry most CATS-defined compute and service metrics, especially those that must be synchronized across ingress nodes for service-instance selection. The mechanisms align with CATS in several dimensions:
        </t>
        
       <section title ="Compute/Resource Capability (CATS L1/L2)">
	   <t>The Service-Oriented Capability Sub-TLV is directly usable as a normalized compute capability indicator.</t>
		<t>It already conforms to the CATS requirement that compute metrics be abstracted and comparable across heterogeneous hardware.
       </t>
       </section>
        
        <section title ="Compute/Resource Availability (CATS L1)">
		<t>The Available Resource Sub-TLV corresponds to CATS L1 availability metrics such as CPU headroom, memory availability, or accelerator capacity.
        </t>
		<t>Where CATS defines a family of resource-type-specific primitives, the 5G mechanism provides a unified normalized format suitable for routing-level decisions.
		</t>
        </section>
 
        <section title ="Service Processing Delay (CATS L0 or L1)">
		<t>The Service Delay Prediction SubTLV supports both, raw time values (L0), when expressed in milliseconds; and normalized delay scores (L1/L2), when expressed as a 0-100 index.</t>

		<t>This flexibility matches CATS' need for both precise measurements and abstracted comparative metrics.
         </t>
         </section>
 
 	  <section title = "Traffic Load / Utilization (CATS L0-L1/L2">
		 <t>The Raw Measurement Sub-TLV offers input signals for evaluating congestion, load, and resource pressure.</t>
		<t>These serve as L0 primitives from which CATS-compliant L1 or L2 metrics can be derived.
         </t>
         </section>
         
		 <section title ="Site Preference (CATS L2 policy metric)">
             <t> Although not defined by CATS, the Site Preference Index aligns with the CATS concept of operator-defined L2 composite metrics (e.g., policy-driven affinity, regulatory guidance, cost-based biasing).
            </t>
         </section>
		  
		 <section title = "Site Physical Availability (CATS Shared Resource)">
			<t>Site Physical Availability Index (SPAI) Sub-TLV provides a site/pod/row/floor/DC availability percentage
			that applies to a group of routes sharing the same physical characteristic. This directly aligns
			with the "Shared Resource" concept in [I.D.ll-idr-cats-bgp-extension], where a single metric update should influence multiple SCIs without per-service replication.
            </t>  
		  	
			<t>
			The SPAI is naturally suited for use as a CATS Shared Resource
			metric because it reflects conditions that affect all service instances within the same facility.
			SPAI represents substrate-level constraints such as power redundancy, cooling capacity, rack/row
			availability, and environmental health - factors that are not tied to any individual service
			instance. When the physical state of a site changes, all hosted services are simultaneously impacted,
			meaning a single SPAI update conveys a facility wide condition without requiring per-service updates.
		    </t>
			<t>
			This behavior matches the CATS Shared Resource semantics defined in [I-D.ll-idr-cats-bgp-extension], which aims to avoid churn by enabling one update to apply to many SCIs. SPAI's value is also normalized and abstracted (0-100), satisfying CATS's preference for L1/L2 metrics that can be compared uniformly across egress nodes. Additionally, SPAI is disseminated using the same limited domain, non-transitive BGP propagation model recommended for CATS, without requiring new identifiers or mapping constructs because the site itself serves as the implicit shared resource boundary.
			</t>
			<t>
			Therefore, SPAI can be used directly as a Shared Resource metric in CATS deployments, helping reduce protocol overhead, avoiding per service metric replication, and improving responsiveness to physical site level events.
			</t>
		  </section>
		  
		  
        <section title ="Expressiveness, Granularity, Update Semantics">
         <t> CATS recommends distributing normalized L1/L2 metrics due to their stability and comparability.</t>
		<t>The 5G Edge Metadata model already restricts itself to abstracted values, with raw L0 metrics not directly exposed except through Raw Measurement.</t>
		<t>Thus, the overall expressiveness aligns well with CATS' guidance and operational constraints.
        </t>
		</section>
		
	  </section>

	 <section title = "Distribution Model and Leakage Prevention">
	 
	 </section>
	 
     <section title ="Metric Lifetimes">
        <t>
          The Edge Metadata model uses BGP UPDATE propagation,
          with default minimum advertisement interval of 30 seconds in iBGP domains. This is consistent with typical CATS control plane expectations for "moderately dynamic" metrics (seconds-to-minutes scale), but may be insufficient for
          highly bursty L0 measurements unless operators apply dampening and aggregation.
        </t>
        <t>
          For L2-style normalized values (capability/availability/delay prediction),
          BGP timeliness is generally adequate in a limited domain where topology diameter is small. For raw L0-style signals (if added later), asynchronous collection
          and local aggregation before BGP export is RECOMMENDED.
        </t>
      </section>
     
      <section title ="Granularity Semantics Issues">
        <t>
          CATS separates metrics by scope: per-SCI (service instance),
          per-service (aggregate over instances), per-site, and shared-resource.
          The Edge Metadata mechanisms currently mix these scopes:
        </t>
        <list style="symbols">
          <li>
            <t>
              Service-Oriented Capability and Available Resource are per-service at a site
              (implicitly per-service aggregate over instances).
            </t>
          </li>
          <li>
            <t>
              Service Delay Prediction is per-service at a site, but can represent either a
              normalized score or raw time; consistent semantic interpretation across ingress nodes
              is required.
            </t>
          </li>
          <li>
            <t>
              Site Physical Availability Index is per-site or shared-resource and supports
              standalone updates. This matches CATS shared resource needs.
            </t>
          </li>
          <li>
            <t>
              Raw Measurement is per-service route signal, not a standardized CATS L0 set.
            </t>
          </li>
        </list>
        <t>
          If CATS requires explicit per-SCI differentiation (e.g., for multiple instances behind one
          anycast service prefix), the 5G Edge Metadata encoding needs augmentation to carry an
          instance identifier or to bind distinct metrics to distinct NLRIs.
        </t>
      </section>
	  
	  <section title ="Scalability and Churn Considerations">
        <t>
          The 5G Edge Metadata draft deliberately limits scope to a small subset of services
          in a limited domain, and applies a minimum advertisement interval to avoid route churn.
          This is aligned with CATS concerns about frequent metric updates causing cascading BGP UPDATEs. Operators SHOULD:
        </t>
        <list style="symbols">
          <li><t>Prefer L1/L2 normalized metrics for distribution.</t></li>
          <li><t>Aggregate L0 signals locally and export only on meaningful change.</t></li>
          <li><t>Use shared-resource/site-wide updates (e.g., Site Physical Availability Index) whenever possible.</t></li>
        </list>
        <t>
          In large deployments with many services per site, the per-service Sub-TLV updates could still
          create noticeable churn. Mapping to the generic CATS BGP metric container may reduce the
          need for new Sub-TLV types and simplify extensibility.
        </t>
    </section>
	
	<section title ="Gaps and Extensions Needed for CATS Compliance">
	<t>The following additions would allow the 5G Edge Metadata mechanisms to serve as a fully compliant CATS metric container:</t>
	<list style = "hanging">
	<t hangText = "Per-SCI Differentiation: ">Add an Instance-ID field or tie individual metric Sub-TLVs to distinct NLRIs so ingress routers can distinguish metrics for different service instances behind an anycast prefix.</t>

	<t hangText =" Explicit Resource-Type Identification (for L0->L1 transitions): ">CATS defines specific raw metrics (CPU load, GPU usage, memory pressure). Adding optional resource-type enumerations would allow Raw Measurement or Capability TLVs to expose more structured CATS L0 primitives when needed.</t>

	<t hangText ="Metric Lifetime / Validity Interval: ">CATS defines explicit metric-freshness semantics. The 5G Edge Metadata mechanism can be extended with: TTL or "valid until" timestamps, change-threshold indicators, or explicit "stale" flags.</t>

	<t hangText = "Scope Identifier for Shared Resource Metrics: ">Allow SPAI-like metrics to reference a named resource pool (e.g., "DC-Room-A", "GPU-Cluster-2") when a site contains multiple independent shared resources.</t>

	<t hangText = "Support for More Dynamic Metric Classes: ">For highly dynamic CATS L0 metrics, support for sub-second updates is generally not appropriate in BGP. Guidance should mandate local smoothing/aggregation before exporting updates into the control plane.</t>
	</list>
	
	</section>
    <section title = "Security Considerations">
      <t>
        This document does not introduce new security mechanisms beyond those in
        <xref target="I-D.ietf-idr-5g-edge-service-metadata"/> and
        <xref target="I-D.ll-idr-cats-bgp-extension"/>.
        Operators MUST ensure metadata remains within the trusted limited domain,
        and SHOULD apply policy-based filtering and AS-scope controls.
      </t>
    </section>
	
    <section title="IANA Considerations">
	<t> This document makes no IANA requests.</t>
    </section>

    <section title="Contributors">
     
    </section>

    <section title="Acknowledgements">

    </section>
  </middle>

  <back>
    <references title="Normative References">
     


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

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

      <?rfc include="reference.RFC.4360"?>
	  
	  <?rfc include="reference.RFC.4364"?>

      <?rfc include="reference.RFC.4760"?>
	  
	  <?rfc include="reference.RFC.4761"?>

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

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

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

      <?rfc include="reference.RFC.5905"?>
	  
	  <?rfc include="reference.RFC.6513"?>
	  
	  <?rfc include="reference.RFC.7120"?>
	  
	  <?rfc include="reference.RFC.7432"?>

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

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

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

    <references title="Informative References">
	  <?rfc include="reference.RFC.1136"?>
	
      <reference anchor="IANA-BGP-PARAMS">
        <front>
          <title>BGP Path Attributes</title>

          <author>
            <organization abbrev="IANA">Internet Assigned Numbers
            Authority</organization>
          </author>
        </front>

        <seriesInfo name="BGP Path Attributes"
                    value="https://www.iana.org/assignments/bgp-parameters/"/>
      </reference>

      <reference anchor="I-D.ietf-idr-5g-edge-service-metadata"
                 target="https://datatracker.ietf.org/doc/draft-ietf-idr-5g-edge-service-metadata/">
        <front>
          <title>BGP Extension for 5G Edge Service Metadata</title>

          <author>
            <organization>L. Dunbar, et al</organization>
          </author>

          <date month="Sept" year="2025"/>
        </front>
      </reference>

       <reference anchor="I-D.ietf-cats-framework"
                 target="https://datatracker.ietf.org/doc/draft-ietf-cats-framework/">
        <front>
          <title>A Framework for Computing-Aware Traffic Steering (CATS)</title>

          <author>
            <organization>C. Li, et al</organization>
          </author>

          <date month="Nov" year="2025"/>
        </front>
      </reference>
       <reference anchor="I-D.ietf-cats-metric-definition"
                 target="https://datatracker.ietf.org/doc/draft-ietf-cats-metric-definition/">
        <front>
          <title>CATS Metrics Definition</title>

          <author>
            <organization>C. Li, et al</organization>
          </author>

          <date month="Oct" year="2025"/>
        </front>
      </reference>
	  
	  <reference anchor="I-D.ll-idr-cats-bgp-extension"
                 target="https://datatracker.ietf.org/doc/draft-ll-idr-cats-bgp-extension/">
        <front>
          <title>CATS BGP Extension</title>

          <author>
            <organization>C. Li and P. Liu</organization>
          </author>

          <date month="Oct" year="2025"/>
        </front>
      </reference>

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

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

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

      <reference anchor="TS.23.501-3GPP">
        <front>
          <title>System Architecture for 5G System; Stage 2, 3GPP TS 23.501
          v2.0.1</title>

          <author>
            <organization>3rd Generation Partnership Project
            (3GPP)</organization>
          </author>

          <date month="December" year="2017"/>
        </front>
      </reference>

    </references>
	<section title = "Service Delay Prediction Based on Load Measurement">
	  <t>When data centers detailed running status are not exposed to the
	  network operator, historic traffic patterns through the egress routers
	  can be utilized to predict the load to a specific service. For
	  example, when traffic volume to one service at one data center
	  suddenly increases a huge percentage compared with the past 24 hours
	  average, it is likely caused by a larger than normal demand for the
	  service. When this happens, another data center with
	  lower-than-average traffic volume for the same service might have a
	  shorter processing time for the same service.</t>

	  <t>Here are some measurements that can be utilized to derive the
	  Service Delay Predication for a service ID:</t>

	  <list style="hanging">
		<t hangText="-">Total number of packets to the attached service
		instance (ToPackets);</t>

		<t hangText="-">Total number of packets from the attached service
		instance (FromPackets);</t>

		<t hangText="-">Total number of bytes to the attached service
		instance (ToBytes);</t>

		<t hangText="-">Total number of bytes from the attached service
		instance (FromBytes);</t>

		<t hangText="-">The actual load measurement to the service
		instance attached to an egress router can be based on one of the
		metrics above or including all four metrics with different weights
		applied to each, such as:</t>

		<t>LoadIndex =
		w1*ToPackets+w2*FromPackes+w3*ToBytes+w4*FromBytes</t>

		<t>Where w1/w2/w3/w4 are between 0-1. w1+ w2+ w3+ w4 = 1;</t>

		<t>The weights of each metric contributing to the index of the
		service instance attached to an egress router can be configured or
		learned by self-adjusting based on user feedbacks.</t>
	  </list>

	  <t>The Service Delay Prediction Index can be derived from
	  LoadIndex/24Hour-Average. A higher value means a longer delay
	  prediction. The egress router can use the ServiceDelayPred sub-TLV
	  to indicate to the ingress routers of the delay prediction derived
	  from the traffic pattern.</t>

	  <t>Note: The proposed IP layer load measurement is only an estimate
	  based on the amount of traffic through the egress router, which
	  might not truly reflect the load of the servers attached to the
	  egress routers. They are listed here only for some special
	  deployments where those metrics are helpful to the ingress routers
	  in selecting the optimal paths.</t>
	</section>
	    <section title="Service Metadata Influenced Decision Process">
      <section title="Egress Router Behavior">
        <t>Multiple instances of the same service could be attached to one
        egress router. When all instances of the same service are grouped
        behind one application layer load balancer, they appear as one single
        route to the egress router, i.e., the application loader balancer's
        prefix. Under this scenario, the compute metrics for all those
        instances behind one application layer balancer are aggregated under
        the application load balancer's prefix. In this case, the compute
        metrics aggregated by the Load Balancer are visible to the egress
        router as associated with the Load Balancer's prefix. However, how the
        application layer Load Balancers distribute the traffic among
        different instances is out of the scope of this document. When
        multiple instances of the same service have different paths or links
        reachable from the egress router, multiple groups of metrics from
        respective paths could be exposed to the egress router. The egress
        router can have preconfigured policies on aggregating various metrics
        from different paths and the corresponding policies in selecting a
        path for forwarding the packets received from ingress routers. The
        aggregated metrics can be carried in the BGP UPDATE messages instead
        of detailed measurements to reduce the entries advertised by the
        control plane and dampen the routes update in the forwarding plane.
        Upon receiving packets from ingress routers, the egress router can use
        its policies to choose an optimal path to one service instance. It is
        out of the scope of this document how the measurements are aggregated
        on egress routers and how ingress routers are configured with the
        algorithms to integrate the aggregated metrics with network layer
        metrics.</t>

        <t>Many measurements could impact and correspondingly reflect service
        performance. In order to simplify an optimal selection process, egress
        routers can have preconfigured policies or algorithms to aggregate
        multiple metrics into one simple one to ingress routers. Though out of
        the scope of this document, an egress router can also have an
        algorithm to convert multiple metrics to network metrics, an IGP cost
        for each instance, to pass to ingress nodes. This decision-making
        process integrates network metrics computed by traditional IGP/BGP and
        the service delay metrics from egress routers to achieve a
        well-informed and adaptive routing approach. This intelligent
        orchestration at the edge enhances the service's overall performance
        and optimizes resource utilization across the distributed
        infrastructure. When the egress has merged the compute metrics from
        the local sites behind it, it can include one or more aggregated
        compute metrics in the Metadata Path Attribute in the BGP UPDATE to
        the Ingress. Also, an identifier or flag can be carried to indicate
        that the metrics are merged ones. After receiving the routes for the
        Service ID with the identifier, the ingress would do the route
        selection based on pre-configured algorithms (see Section 3 of this
        document).</t>
      </section>

      <section title="Integrating Network Delay with the Service Metrics">
        <t>As the service metrics and network delays are in different units,
        here is an exemplary algorithm for an ingress router to compare the
        cost to reach the service instances at Site-i or Site-j.</t>

        <artwork><![CDATA[
                ServD-i * CP-j               Pref-j * NetD-i
Cost-i=min(w *(----------------) + (1-w) *(------------------))
                ServD-j * CP-i               Pref-i * NetD-j  

	]]></artwork>

        <list style="hanging">
          <t hangText="CP-i:">Capacity Availability Index at Site-i. A higher
          value means higher capacity available.</t>

          <t hangText="NetD-i:">Network latency measurement (RTT) to the
          Egress Router at the site-i.</t>

          <t hangText="Pref-i:">Preference Index for Site-i, a higher value
          means higher preference.</t>

          <t hangText="ServD-i:">Service Delay Predication Index at Site-i for
          the service, i.e., the ANYCAST address [RFC4786] for the
          service.</t>

          <t hangText="w:">Weight is a value between 0 and 1. If smaller than
          0.5, Network latency and the site Preference have more influence;
          otherwise, Service Delay and capacity availability have more
          influence.</t>
        </list>

        <t>When a set of service Metadata is converted to a simple metric, a
        decision process is determined by the metric semantics and deployment
        situations. The goal is to integrate the conventional network decision
        process with the service Metadata into a unified decision-making
        process for path selection.</t>
      </section>

	<!-- XXX JMH Issue 40 - nothing in this document discusses integration into the
	custom decision process mechanism.  I'd suggest dropping the reference
	to it.  However, what you do need to do is discuss how this algorithm
	influences BGP route selection for the routes that contain the metadata
	attribute, how such routes compare vs. routes that DO NOT contain it.
	Also, this is a strong piece of normative behavior and needs to be in
	the main part of the document.-->
      <section title="Integrating with BGP Route Selection">
        <t>Not all metadata attributes specified in this document are intended for use in every deployment. Each deployment may choose to consider only a subset of the available metadata attributes based on its specific service requirements.</t>
		<t> - Deployment-Specific Attribute Selection:</t>
		<t>A deployment may prioritize only certain metadata attributes relevant to its operational needs. For example, one deployment might only use the Service Delay Prediction Index for latency-sensitive applications, while another might focus solely on the Capacity Availability Index to manage resource availability.</t>
		<t> - Influence on BGP Decision Process:</t>
		<t>The edge service Metadata influences next-hop selection differently from traditional BGP metrics (e.g., Local Preference, MED). Unlike a general next-hop metric that can affect many routes, edge service Metadata selectively impacts optimal next-hop selection for specific routes configured to consider these service-specific attributes. This targeted influence allows for optimized path selection without disrupting broader route decisions.</t>
		<t> - Handling Degraded Metrics (Policy-Based):</t>
		<t>If a service-specific metric degrades beyond a configured threshold (e.g., the Service Delay Prediction Index exceeds an acceptable delay threshold or the Capacity Availability Index drops below a required level), the ingress router will treat that route as ineligible for traffic steering. This is similar to a BGP route withdrawal, where the degraded route is deprioritized or ignored, even if traditional BGP attributes would otherwise favor it. This ensures that traffic is directed only to service instances that meet the defined performance criteria.</t>
		<t> - Fallback to Non-Metadata Routes:</t>
		<t>If no suitable routes with the required metadata are available, the BGP decision process defaults to traditional attribute evaluation [RFC4271], ensuring consistent routing even when metadata-specific paths are absent.</t>

		
		<t>This approach provides flexibility and adaptability in routing decisions, allowing each deployment to apply relevant metadata attributes and enforce performance thresholds for improved service quality.</t>
        
      </section>
    </section>
  </back>
</rfc>
