<?xml version="1.0" encoding="UTF-8"?>

<!-- [CS] updated by Chris 06/15/22 -->

<!-- [ST] formatted by Sarah 07/06/22 -->

<!-- [rfced] draft submitted in xml v3 -->

<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>

<!-- generated by https://github.com/cabo/kramdown-rfc2629 version 1.5.6 -->

<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-ietf-alto-path-vector-25" number="0000" submissionType="IETF" category="exp" consensus="true" obsoletes="" updates="" xml:lang="en" tocInclude="true" tocDepth="3" sortRefs="true" symRefs="true" version="3">
  
  <!-- xml2rfc v2v3 conversion 3.12.0 -->
  <front>
    <title abbrev="ALTO-PV">An ALTO Extension: Path Vector</title>
    <seriesInfo name="RFC" value="0000"/>
    <author initials="K." surname="Gao" fullname="Kai Gao">
      <organization>Sichuan University</organization>
      <address>
        <postal>
	  <extaddr>No.24 South Section 1</extaddr>
          <street>Yihuan Road</street>
          <city>Chengdu</city>
          <code>610000</code>
          <country>China</country>
        </postal>
        <email>kaigao@scu.edu.cn</email>
      </address>
    </author>
    <author initials="Y." surname="Lee" fullname="Young Lee">
      <organization>Samsung</organization>
      <address>
        <postal>
          <country>South Korea</country>
        </postal>
        <email>younglee.tx@gmail.com</email>
      </address>
    </author>
    <author initials="S." surname="Randriamasy" fullname="Sabine Randriamasy">
      <organization>Nokia Bell Labs</organization>
      <address>
        <postal>
          <street>Route de Villejust</street>
          <city>Nozay</city>
          <code>91460</code>
          <country>France</country>
        </postal>
        <email>sabine.randriamasy@nokia-bell-labs.com</email>
      </address>
    </author>
    <author initials="Y.R." surname="Yang" fullname="Yang Richard Yang">
      <organization>Yale University</organization>
      <address>
        <postal>
          <street>51 Prospect Street</street>
          <city>New Haven</city>
	  <code>06511</code>
          <region>CT</region>
          <country>USA</country>
        </postal>
        <email>yry@cs.yale.edu</email>
      </address>
    </author>
    <author initials="J." surname="Zhang" fullname="Jingxuan Jensen Zhang">
      <organization>Tongji University</organization>
      <address>
        <postal>
          <street>4800 Caoan Road</street>
          <city>Shanghai</city>
          <code>201804</code>
          <country>China</country>
        </postal>
        <email>jingxuan.n.zhang@gmail.com</email>
      </address>
    </author>

    <date year="2022" month="August" />

    <area>tsv</area>
    <workgroup>alto</workgroup>

    <abstract>
      <t>This document is an extension to the base Application-Layer Traffic Optimization
(ALTO) protocol. It extends the ALTO Cost Map and ALTO Property Map services so
that an application can decide which endpoint(s) to connect based on not only
numerical/ordinal cost values but also fine-grained abstract information of the
paths. This is useful for applications whose performance is impacted by
specified components of a network on the end-to-end paths, e.g., they may infer
that several paths share common links and prevent traffic bottlenecks by
avoiding such paths. This extension introduces a new abstraction called Abstract
Network Element (ANE) to represent these components and encodes a network path
as a vector of ANEs. Thus, it provides a more complete but still abstract graph
representation of the underlying network(s) for informed traffic optimization
among endpoints.</t>
    </abstract>
  </front>
  <middle>
    <section anchor="introduction" numbered="true" toc="default">
      <name>Introduction</name>
      <!-- ALTO can improve QoE of overlay applications. -->
<t>Network performance metrics are crucial to assess the Quality of Experience
(QoE) of applications. The ALTO protocol allows Internet Service Providers
(ISPs) to provide guidance, such as topological distance between different end
hosts, to overlay applications. Thus, the overlay applications can potentially
improve the perceived QoE by better orchestrating their traffic to utilize the
resources in the underlying network infrastructure.</t>
      <!-- ALTO supports only cost information of end-to-end paths. -->
<t>Existing ALTO
Cost Map (<xref target="RFC7285" sectionFormat="of" section=
"11.2.3"/>) and Endpoint Cost Service (<xref target="RFC7285" sectionFormat="of" section="11.5"/>) provide only cost information on an end-to-end path defined by
its &lt;source, destination&gt; endpoints: The base protocol <xref target="RFC7285" format="default"/> allows the
services to expose the topological distances of end-to-end paths, while various
extensions have been proposed to extend the capability of these services, e.g.,
to express other performance metrics <xref target="ALTO-PERF-METRICS" format="default"/>, to
query multiple costs simultaneously <xref target="RFC8189" format="default"/>, and to obtain the time-varying
values <xref target="RFC8896" format="default"/>.</t>
      <!-- However, the QoE also depends on ANEs. -->
<t>While the existing extensions are sufficient for many overlay applications,
the QoE of some overlay applications depends not only on the cost
information of end-to-end paths, but also on particular components of a network
on the paths and their properties. For example, job completion time, which is an
important QoE metric for a large-scale data analytics application, is impacted
by shared bottleneck links inside the carrier network as link capacity may
impact the rate of data input/output to the job. We refer to such components of
a network as Abstract Network Elements (ANE).</t>
      <t>Predicting such information can be very complex without the help of ISPs, for
example, <xref target="BOXOPT" format="default"/> has shown that finding the optimal bandwidth reservation for
multiple flows can be NP-hard without further information than whether a
reservation succeeds. With proper guidance from the ISP, an overlay application
may be able to schedule its traffic for better QoE. In the meantime, it may be
helpful as well for ISPs if applications could avoid using bottlenecks or
challenging the network with poorly scheduled traffic.</t>
      <t>Despite the claimed benefits, ISPs are not likely to expose raw details on their
network paths: first for the sake of topology hiding requirement, second because
it may increase volume and computation overhead, and last because applications
do not necessarily need all the network path details and are likely not able to
understand them.</t>
      <t>Therefore, it is beneficial for both ISPs and applications if an ALTO server
provides ALTO clients with an "abstract network state" that provides the
necessary information to applications, while hiding the network complexity and
confidential information. An "abstract network state" is a selected set of
abstract representations of Abstract Network Elements traversed by the paths
between &lt;source, destination&gt; pairs combined with properties of these Abstract
Network Elements that are relevant to the overlay applications' QoE. Both an
application via its ALTO client and the ISP via the ALTO server can achieve
better confidentiality and resource utilization by appropriately abstracting
relevant Abstract Network Elements. Server scalability can also be improved by
combining Abstract Network Elements and their properties in a single response.</t>
      <t>This document extends <xref target="RFC7285" format="default"/> to allow an ALTO server to convey "abstract
network state", for paths defined by their &lt;source, destination&gt; pairs. To this
end, it introduces a new cost type called "Path Vector" following the cost
metric registration specified in <xref target="RFC7285" format="default"/> and the updated cost mode
registration specified in <xref target="RFCYYY2" format="default"/>. A Path Vector is an array
of identifiers that identifies an Abstract Network Element, which can be
associated with various properties. The associations between ANEs and their
properties are encoded in an ALTO information resource called Unified Property
Map, which is specified in <xref target="RFC9240" format="default"/>.</t>
      <t>For better confidentiality, this document aims to minimize information exposure
of an ALTO server when providing Path Vector service. In particular, this
document enables and recommends that first ANEs are constructed on demand, and
second an ANE is only associated with properties that are requested by an ALTO
client. A Path Vector response involves two ALTO Maps: the Cost Map that
contains the Path Vector results and the up-to-date Unified Property Map that
contains the properties requested for these ANEs. To enforce consistency and
improve server scalability, this document uses the "multipart/related" content
type defined in <xref target="RFC2387" format="default"/> to return the two maps in a single response.</t>
      <t>As a single ISP may not have the knowledge of the full Internet paths between
arbitrary endpoints, this document is mainly applicable 1) when there is a
single ISP between the requested source and destination PIDs or endpoints, for
example, ISP-hosted CDN/edge, tenant interconnection in a single public cloud
platform, etc.; or 2) when the Path Vectors are generated from end-to-end
measurement data.</t>
    </section>
    <section anchor="requirements-languages" numbered="true" toc="default">
      <name>Requirements Languages</name>
       <t>The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>",
       "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>",
       "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>",
       "<bcp14>SHOULD NOT</bcp14>",
       "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
       "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document
       are to be interpreted as described in BCP&nbsp;14
       <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only
       when, they appear in all capitals, as shown here.</t>
      <t>When the words appear in lower case, they are to be interpreted with their
natural language meanings.</t>
    </section>
    <section anchor="term" numbered="true" toc="default">
      <name>Terminology</name>
      <t>This document extends the ALTO base protocol <xref target="RFC7285" format="default"/> and the Unified
Property Map extension <xref target="RFC9240" format="default"/>. In addition to
the terms defined in these documents, this document also uses the following
additional terms:</t>
      <dl>
        <dt>
Abstract Network Element (ANE):  </dt>
        <dd>
          <t>An abstract representation for a component in a network that handles data
packets and whose properties can potentially have an impact on the end-to-end
performance of traffic. An ANE can be a physical device such as a router, a
link or an interface, or an aggregation of devices such as a subnetwork or a
data center.
</t>
          <t>The definition of Abstract Network Element is similar to Network Element
defined in <xref target="RFC2216" format="default"/> in the sense that they both provide an abstract
representation of specific components of a network. However, they have
different criteria on how these particular components are selected.
Specifically, a Network Element requires the components to be capable of
exercising QoS control, while Abstract Network Element only requires the
components to have an impact on the end-to-end performance.</t>
        </dd>
        <dt>
ANE Name:  </dt>
        <dd>
          <t>A string that uniquely identifies an ANE in a specific scope. An ANE
can be constructed either statically in advance or on demand based on the
requested information. Thus, different ANEs may only be valid within a
particular scope, either ephemeral or persistent. Within each scope, an ANE is
uniquely identified by an ANE Name, as defined in <xref target="ane-name-spec" format="default"/>. Note that
an ALTO client must not assume ANEs in different scopes but with the same ANE
Name refer to the same component(s) of the network.</t>
        </dd>
        <dt>
Path Vector:  </dt>
        <dd>
          <t>Path Vector, or ANE Path Vector, refers to a JSON array of ANE Names. It is a
generalization of BGP path vector. While standard BGP path vector (<xref target="RFC4271" sectionFormat="of" section="5.1.2"/>) specifies a sequence of autonomous systems for a
destination IP prefix, the Path Vector defined in this extension specifies a
sequence of ANEs either for a source Provider-Defined Identifier (PID) and a
destination PID as in the CostMapData (<xref target="RFC7285" sectionFormat="of" section="11.2.3.6"/>), or for a
source endpoint and a destination endpoint as in the EndpointCostMapData
object (<xref target="RFC7285" sectionFormat="of" section="11.5.1.6"/>).</t>
        </dd>
        <dt>
Path Vector resource:  </dt>
        <dd>
          <t>An ALTO information resource (<xref target="RFC7285" sectionFormat="of" section="8.1"/>) which supports the
extension defined in this document.</t>
        </dd>
        <dt>
Path Vector cost type:  </dt>
        <dd>
          <t>A special cost type, which is specified in <xref target="cost-type-spec" format="default"/>. When this cost
type is present in an IRD entry, it indicates that the information resource is
a Path Vector resource. When this cost type is present in a Filtered Cost Map
request or an Endpoint Cost Service request, it indicates each cost value must
be interpreted as a Path Vector.</t>
        </dd>
        <dt>
Path Vector request:  </dt>
        <dd>
          <t>The POST message sent to an ALTO Path Vector resource.</t>
        </dd>
        <dt>
Path Vector response:  </dt>
        <dd>
          <t>A Path Vector response refers to the multipart/related message returned by a
Path Vector resource.</t>
        </dd>
      </dl>
    </section>
    <section anchor="probstat" numbered="true" toc="default">
      <name>Requirements and Use Cases</name>
      <section anchor="design-requirements" numbered="true" toc="default">
        <name>Design Requirements</name>
        <t>This section gives an illustrative example of how an overlay application can
benefit from the extension defined in this document.</t>
        <t>Assume that an application has control over a set of flows, which may go through
shared links/nodes and share bottlenecks. The application seeks to schedule the
traffic among multiple flows to get better performance. The constraints of
feasible rate allocations of those flows will benefit the scheduling. However,
Cost Maps as defined in <xref target="RFC7285" format="default"/> can not reveal such information.</t>
        <t>Specifically, consider a network as shown in <xref target="fig-dumbbell" format="default"/>. The network has 7
switches (sw1 to sw7) forming a dumb-bell topology. Switches "sw1", "sw2", "sw3"
and "sw4" are access switches, and sw5-sw7 form the backbone. End hosts eh1 to
eh4 are connected to access switches sw1 to sw4 respectively. Assume that the
bandwidth of link eh1 -&gt; sw1 and link sw1 -&gt; sw5 is 150 Mbps, and the bandwidth
of the other links is 100 Mbps.</t>
        <figure anchor="fig-dumbbell">
          <name>Raw Network Topology</name>
<artwork name="" type="" align="left" alt=""><![CDATA[           
                              +-----+
                              |     |
                            --+ sw6 +--
                           /  |     |  \
     PID1 +-----+         /   +-----+   \          +-----+  PID2
     eh1__|     |_       /               \     ____|     |__eh2
192.0.2.2 | sw1 | \   +--|--+         +--|--+ /    | sw2 | 192.0.2.3
          +-----+  \  |     |         |     |/     +-----+
                    \_| sw5 +---------+ sw7 |
     PID3 +-----+   / |     |         |     |\     +-----+  PID4
     eh3__|     |__/  +-----+         +-----+ \____|     |__eh4
192.0.2.4 | sw3 |                                  | sw4 | 192.0.2.5
          +-----+                                  +-----+

bw(eh1--sw1) = bw(sw1--sw5) = 150 Mbps
bw(eh2--sw2) = bw(eh3--sw3) = bw(eh4--sw4) = 100 Mbps
bw(sw1--sw5) = bw(sw3--sw5) = bw(sw2--sw7) = bw(sw4--sw7) = 100 Mbps
bw(sw5--sw6) = bw(sw5--sw7) = bw(sw6--sw7) = 100 Mbps
]]></artwork>
        </figure>
        <t>The base ALTO topology abstraction of the network is shown in <xref target="fig-base" format="default"/>.
Assume the cost map returns an hypothetical cost type representing the available
bandwidth between a source and a destination.</t>

        <figure anchor="fig-base">
          <name>Base Topology Abstraction</name>
	  <artwork name="" type="" align="left" alt=""><![CDATA[ 
                          +----------------------+
                 {eh1}    |                      |     {eh2}
                 PID1     |                      |     PID2
                   +------+                      +------+
                          |                      |
                          |                      |
                 {eh3}    |                      |     {eh4}
                 PID3     |                      |     PID4
                   +------+                      +------+
                          |                      |
                          +----------------------+
]]></artwork>
        </figure>
        <t>Now assume the application wants to maximize the total rate of the traffic among
a set of &lt;source, destination&gt; pairs, say "eh1 -&gt; eh2" and "eh1 -&gt; eh4". Let "x"
denote the transmission rate of "eh1 -&gt; eh2" and "y" denote the rate of "eh1 -&gt;
eh4". The objective function is</t>

        <artwork name="" type="" align="left" alt=""><![CDATA[
    max(x + y).
]]></artwork>
        <t>With the ALTO Cost Map, the cost between PID1 and PID2 and between PID1 and PID4 will
both be 100 Mbps. The client can get a capacity region of</t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
    x <= 100 Mbps,
    y <= 100 Mbps.
]]></artwork>
        <t>With this information, the client may mistakenly think it can achieve a maximum
total rate of 200 Mbps. However, this rate is infeasible, as there are only two
potential cases:</t>
        <ul spacing="normal">
          <li>
            <t>Case 1: "eh1 -&gt; eh2" and "eh1 -&gt; eh4" take different path segments from "sw5" to "sw7". For
example, if "eh1 -&gt; eh2" uses path "eh1 -&gt; sw1 -&gt; sw5 -&gt; sw6 -&gt; sw7 -&gt; sw2 -&gt; eh2"
and "eh1 -&gt; eh4" uses path "eh1 -&gt; sw1 -&gt; sw5 -&gt; sw7 -&gt; sw4 -&gt; eh4", then the shared
bottleneck links are "eh1 -&gt; sw1" and "sw1 -&gt; sw5". In this case, the capacity
region is:  </t>
            <artwork name="" type="" align="left" alt=""><![CDATA[
    x     <= 100 Mbps
    y     <= 100 Mbps
    x + y <= 150 Mbps
]]></artwork>
            <t>
and the real optimal total rate is 150 Mbps.</t>
          </li>
          <li>
            <t>Case 2: "eh1 -&gt; eh2" and "eh1 -&gt; eh4" take the same path segment from "sw5" to "sw7".
For example, if "eh1 -&gt; eh2" uses path "eh1 -&gt; sw1 -&gt; sw5 -&gt; sw7 -&gt; sw2 -&gt; eh2"
and "eh1 -&gt; eh4" also uses path "eh1 -&gt; sw1 -&gt; sw5 -&gt; sw7 -&gt; sw4 -&gt; eh4", then the
shared bottleneck link is "sw5 -&gt; sw7". In this case, the capacity region is:  </t>
            <artwork name="" type="" align="left" alt=""><![CDATA[
    x     <= 100 Mbps
    y     <= 100 Mbps
    x + y <= 100 Mbps
]]></artwork>
            <t>
and the real optimal total rate is 100 Mbps.</t>
          </li>
        </ul>
        <t>Clearly, with more accurate and fine-grained information, the application can
gain a better prediction of its traffic and may orchestrate its resources
accordingly. However, to provide such information, the network needs to expose
abstract information beyond the simple cost map abstraction. In particular:</t>
        <ul spacing="normal">
          <li>The ALTO server must expose abstract information about the network paths that are
traversed by the traffic between a source and a destination beyond a simple
numerical value, which allows the overlay application to distinguish between
Cases 1 and 2 and to compute the optimal total rate accordingly.</li>
          <li>The ALTO server must allow the client to distinguish the common ANE shared by
"eh1 -&gt; eh2" and "eh1 -&gt; eh4", e.g., "eh1 - sw1" and "sw1 - sw5" in Case 1.</li>
          <li>The ALTO server must expose abstract information on the properties of the
ANEs used by "eh1 -&gt; eh2" and "eh1 -&gt; eh4". For example, an ALTO server can
either expose the available bandwidth between "eh1 - sw1", "sw1 - sw5", "sw5 -
sw7", "sw5 - sw6", "sw6 - sw7", "sw7 - sw2", "sw7 - sw4", "sw2 - eh2", "sw4 -
eh4" in Case 1, or expose 3 abstract elements "A", "B" and "C", which
represent the linear constraints that define the same capacity region in Case
1.</li>
        </ul>
        <t>In general, we can conclude that to support the multiple flow scheduling
use case, the ALTO framework must be extended to satisfy the following
additional requirements:</t>
        <dl>
          <dt>
AR1:  </dt>
          <dd>
            <t>An ALTO server must provide the ANEs that are important to assess the QoE of
the overlay application on the path of a &lt;source, destination&gt; pair.</t>
          </dd>
          <dt>
AR2:  </dt>
          <dd>
            <t>An ALTO server must provide information to identify how ANEs are shared on the
paths of different &lt;source, destination&gt; pairs.</t>
          </dd>
          <dt>
AR3:  </dt>
          <dd>
            <t>An ALTO server must provide information on the properties that are important
to assess the QoE of the application for ANEs.</t>
          </dd>
        </dl>
        <t>The extension defined in this document specifies a solution to expose such
abstract information.</t>
      </section>
      <section anchor="sample-use-cases" numbered="true" toc="default">
        <name>Sample Use Cases</name>
        <t>While the multiple flow scheduling problem is used to help identify the
additional requirements, the extension defined in this document can be applied
to a wide range of applications. This section highlights some use cases that are
reported.</t>
        <section anchor="exposing-network-bottlenecks" numbered="true" toc="default">
          <name>Exposing Network Bottlenecks</name>
          <t>An important use case of the Path Vector extension is to expose network
bottlenecks. Applications which need to perform large scale data transfers can
benefit from being aware of the resource constraints exposed by this extension
even if they have different objectives. One such example is the Worldwide LHC
Computing Grid (WLCG), the largest example of a distributed computation
collaboration in the research and education world.</t>
          <t><xref target="fig-da" format="default"/> illustrates an example of using ALTO Path Vector as an interface
between the job optimizer for a data analytics system and the network manager.
In particular, we assume the objective of the job optimizer is to minimize the
job completion time.</t>
          <t>In such a setting, the network-aware job optimizer (e.g., <xref target="CLARINET" format="default"/>) takes a
query and generates multiple query execution plans (QEP). It can encode the QEPs
as Path Vector requests that are send to an ALTO server. The ALTO server obtains
the routing information for the flows in a QEP and finds links, routers, or
middleboxes (e.g., a stateful firewall) that can potentially become bottlenecks
of the QEP (e.g., see <xref target="NOVA" format="default"/> and <xref target="G2" format="default"/> for mechanisms to identify bottleneck
links under different settings). The resource constraint information is encoded
in a Path Vector response and returned to the ALTO client.</t>
          <t>With the network resource constraints, the job optimizer may choose the QEP with
the optimal job completion time to be executed. It must be noted that the ALTO
framework itself does not offer the capability to control the traffic. However,
certain network managers may offer ways to enforce resource guarantees, such as
on-demand tunnels (e.g., <xref target="SWAN" format="default"/>), demand vector (e.g., <xref target="HUG" format="default"/>, <xref target="UNICORN" format="default"/>),
etc. The traffic control interfaces and mechanisms are out of the scope of this
document.</t>
          <figure anchor="fig-da">
            <name>Example Use Case for Data Analytics</name>
            <artwork name="" type="" align="left" alt=""><![CDATA[
                                  Data schema      Queries
                                       |             |
                                       \             /
    +-------------+                   +-----------------+
    | ALTO Client | <===============> |  Job Optimizer  |
    +-------------+                   +-----------------+
PV       |   ^ PV                                    |
Request  |   | Response                              |
         |   |                  On-demand resource   |
(Data    |   | (Network         allocation, demand   |
Transfer |   | Resource         vector, etc.         |
Intents) |   | Constraints)     (Non-ALTO interfaces)|
         v   |                                       v
    +-------------+                   +-----------------+
    | ALTO Server | <===============> | Network Manager |
    +-------------+                   +-----------------+
                                        /      |      \
                                        |      |      |
                                       WAN    DC1    DC2
]]></artwork>
          </figure>
          <t>Another example is as illustrated in <xref target="fig-dts" format="default"/>. Consider a network consisting
of multiple sites and a non-blocking core network, i.e., the links in the core
network have sufficient bandwidth that they will not become the bottleneck of
the data transfers.</t>
          <figure anchor="fig-dts">
            <name>Example Use Case for Cross-site Bottleneck Discovery</name>
            <artwork name="" type="" align="left" alt=""><![CDATA[
               On-going transfers   New transfer requests
                             \----\        |
                                  |        |
                                  v        v
   +-------------+               +---------------+
   | ALTO Client | <===========> | Data Transfer |
   +-------------+               |   Scheduler   |
     ^ |      ^ | PV request     +---------------+
     | |      | \--------------\
     | |      \--------------\ |
     | v       PV response   | v
   +-------------+          +-------------+
   | ALTO Server |          | ALTO Server |
   +-------------+          +-------------+
         ||                       ||
     +---------+              +---------+
     | Network |              | Network |
     | Manager |              | Manager |
     +---------+              +---------+
      .                           .
     .             _~_  __         . . .
    .             (   )(  )             .___
  ~v~v~       /--(         )------------(   )
 (     )-----/    (       )            (     )
  ~w~w~            ~^~^~^~              ~v~v~
 Site 1        Non-blocking Core        Site 2
]]></artwork>
          </figure>
          <figure anchor="fig-sbot">
            <name>Example: Three Flows in Two Sites</name>
            <artwork name="" type="" align="left" alt=""><![CDATA[
Site 1:

[c]
 .
 ........................................> [d]
  +---+ 10 Gbps +---+ 10 Gbps +----+ 50 Gbps
  | A |---------| B |---------| GW |--------- Core
  +---+         +---+         +----+
 ...................
 .                 .
 .                 v
[a]               [b]

Site 2:

[d] <........................................ [c]
  +---+ 5 Gbps +---+ 10 Gbps +----+ 20 Gbps
  | X |--------| Y |---------| GW |--------- Core
  +---+        +---+         +----+
             ....................
             .                  .
             .                  v
            [e]                [f]
]]></artwork>
          </figure>
          <t>With the Path Vector extension, a site can reveal the bottlenecks inside its own
network with necessary information (such as link capacities) to the ALTO client,
instead of providing the full topology and routing information, or no bottleneck
information at all. The bottleneck information can be used to analyze the impact
of adding/removing data transfer flows, e.g., using the <xref target="G2" format="default"/> framework. For
example, assume hosts "a", "b", "c" are in site 1 and hosts "d", "e", "f" are in
site 2, and there are 3 flows in two sites: "a -&gt; b", "c -&gt; d", "e -&gt; f". For
these flows, site 1 returns:</t>
          <sourcecode name="" type=""><![CDATA[
a: { b: [ane1] },
c: { d: [ane1, ane2, ane3] }

ane1: bw = 10 Gbps (link: A->B)
ane2: bw = 10 Gbps (link: B->GW)
ane3: bw = 50 Gbps (link: GW->Core)
]]></sourcecode>
          <t>and site 2 returns:</t>
          <sourcecode name="" type=""><![CDATA[
c: { d: [anei, aneii, aneiii] }
e: { f: [aneiv] }

anei: bw = 5 Gbps (link Y->X)
aneii: bw = 10 Gbps (link GW->Y)
aneiii: bw = 20 Gbps (link Core->GW)
aneiv: bw = 10 Gbps (link Y->GW)
]]></sourcecode>
          <t>With the information, the data transfer scheduler can use algorithms such as the
theory on bottleneck structure <xref target="G2" format="default"/> to predict the potential throughput of the
flows.</t>
        </section>
        <section anchor="resource-exposure-for-cdn-and-service-edge" numbered="true" toc="default">
          <name>Resource Exposure for CDN and Service Edge</name>
          <t>A growing trend in today's applications (2021) is to bring storage and computation
closer to the end users for better QoE, such as Content Delivery Network (CDN),
AR/VR, and cloud gaming, as reported in various documents (e.g., <xref target="SEREDGE" format="default"/> and
<xref target="MOWIE" format="default"/>). Internet Service Providers may deploy multiple layers of CDN caches,
or more generally service edges, with different latency and available resources
including number of CPU cores, memory, and storage.</t>
          <t>For example, <xref target="fig-se" format="default"/> illustrates a typical edge-cloud scenario where memory
is measured in Gigabytes (G) and storage is measured in Terabytes (T). The
"on-premise" edge nodes are closest to the end hosts and have the smallest
latency, and the site-radio edge node and access central office (CO) have larger
latency but more available resources.</t>
          <figure anchor="fig-se">
            <name>Example Use Case for Service Edge Exposure</name>
            <artwork name="" type="" align="left" alt=""><![CDATA[
      +-------------+              +----------------------+
      | ALTO Client | <==========> | Application Provider |
      +-------------+              +----------------------+
PV         |   ^ PV                      |
Request    |   | Response                | Resource allocation,
           |   |                         | service establishment,
(End hosts |   | (Edge nodes             | etc.
and cloud  |   | and metrics)            |
servers)   |   |                         |
           v   |                         v
      +-------------+             +---------------------+
      | ALTO Server | <=========> | Cloud-Edge Provider |
      +-------------+             +---------------------+
       ____________________________________/\___________
      /                                                 \
      |           (((o                                  |
                     |
                    /_\             _~_            __   __
  a               (/\_/\)          (   )          (  )~(  )_
   \      /------(      )---------(     )----\\---(          )
   _|_   /        (______)         (___)          (          )
   |_| -/         Site-radio     Access CO       (__________)
  /---\          Edge Node 1         |             Cloud DC
On premise                           |
                           /---------/
           (((o           /
              |          /
 Site-radio  /_\        /
Edge Node 2(/\_/\)-----/
          /(_____)\
   ___   /         \   ---
b--|_| -/           \--|_|--c
  /---\               /---\
On premise          On premise
]]></artwork>
          </figure>
          <figure anchor="fig-se-example">
            <name>Example Service Edge Query Results</name>
            <sourcecode name="" type=""><![CDATA[
a: { b: [ane1, ane2, ane3, ane4, ane5],
     c: [ane1, ane2, ane3, ane4, ane6],
     DC: [ane1, ane2, ane3] }
b: { c: [ane5, ane4, ane6], DC: [ane5, ane4, ane3] }

ane1: latency=5ms cpu=2 memory=8G storage=10T
(on premise, a)

ane2: latency=20ms cpu=4 memory=8G storage=10T
(Site-radio Edge Node 1)

ane3: latency=100ms cpu=8 memory=128G storage=100T
(Access CO)

ane4: latency=20ms cpu=4 memory=8G storage=10T
(Site-radio Edge Node 2)

ane5: latency=5ms cpu=2 memory=8G storage=10T
(on premise, b)

ane6: latency=5ms cpu=2 memory=8G storage=10T
(on premise, c)
]]></sourcecode>
          </figure>
          <t>With the extension defined in this document, an ALTO server can selectively
reveal the CDNs and service edges that reside along the paths between different
end hosts and/or the cloud servers, together with their properties such as
capabilities (e.g., storage, GPU) and available Service Level Agreement (SLA)
plans. See <xref target="fig-se-example" format="default"/> for an example where the query is made for sources
[a, b] and destinations [b, c, DC]. Here each ANE represents a service edge and
the properties include access latency, available resources, etc. Note the
properties here are only used for illustration purposes and are not part of this
extension.</t>
          <t>With the service edge information, an ALTO client may better conduct CDN request
routing or offload functionalities from the user equipment to the service edge,
with considerations on customized quality of experience.</t>
        </section>
      </section>
    </section>
    <section anchor="Overview" numbered="true" toc="default">
      <name>Path Vector Extension: Overview</name>
      <t>This section provides a non-normative overview of the Path Vector extension
defined in this document. It is assumed that the readers are familiar with both
the base protocol <xref target="RFC7285" format="default"/> and the Unified Property Map extension
<xref target="RFC9240" format="default"/>.</t>
      <t>To satisfy the additional requirements listed in <xref target="design-requirements"/>, this extension:</t>
      <ol spacing="normal" type="1"><li>introduces the concept of Abstract Network Element (ANE) as the abstraction
of components in a network whose properties may have an impact on the
end-to-end performance of the traffic handled by those components,</li>
        <li>extends the Cost Map and Endpoint Cost Service to convey the ANEs traversed
by the path of a &lt;source, destination&gt; pair as Path Vectors, and</li>
        <li>uses the Unified Property Map to convey the association between the
ANEs and their properties.</li>
      </ol>
      <t>Thus, an ALTO client can learn about the ANEs that are important to assess the
QoE of different &lt;source, destination&gt; pairs by investigating the corresponding
Path Vector value (AR1), identify common ANEs if an ANE appears in the Path
Vectors of multiple &lt;source, destination&gt; pairs (AR2), and retrieve the
properties of the ANEs by searching the Unified Property Map (AR3).</t>
      <section anchor="ane-design" numbered="true" toc="default">
        <name>Abstract Network Element (ANE)</name>
        <t>This extension introduces ANE as an indirect and network-agnostic way to specify
a component or an aggregation of components of a network whose properties have
an impact on the end-to-end performance for application traffic between
endpoints.</t>
        <t>ANEs allow ALTO servers to focus on common properties of different types of
network components. For example, the throughput of a flow can be constrained by
different components in a network: the capacity of a physical link, the maximum
throughput of a firewall, the reserved bandwidth of an MPLS tunnel, etc. See the
example below, assume the throughput of the firewall is 100 Mbps and the
capacity for link (A, B) is also 100 Mbps, they result in the same constraint on
the total throughput of f1 and f2. Thus, they are identical when treated as an
ANE.</t>
        <artwork name="" type="" align="left" alt=""><![CDATA[
   f1 |      ^                  f1
      |      |                 ----------------->
    +----------+                +---+     +---+
    | Firewall |                | A |-----| B |
    +----------+                +---+     +---+
      |      |                 ----------------->
      v      | f2               f2
]]></artwork>
        <t>When an ANE is defined by an ALTO server, it is assigned an identifier by the
ALTO server, i.e., a string of type ANEName as specified in <xref target="ane-name-spec" format="default"/>,
and a set of associated properties.</t>
        <section anchor="ane-entity-domain" numbered="true" toc="default">
          <name>ANE Entity Domain</name>
          <t>In this extension, the associations between ANE and the properties are conveyed
in a Unified Property Map. Thus, ANEs must constitute an entity domain (<xref target="RFC9240" sectionFormat="of" section="5.1"/>), and each ANE property must be an
entity property (<xref target="RFC9240" sectionFormat="of" section="5.2"/>).</t>
          <t>Specifically, this document defines a new entity domain called "ane" as
specified in <xref target="ane-domain-spec" format="default"/> and defines two initial properties for the ANE
entity domain.</t>
        </section>
        <section anchor="assoc" numbered="true" toc="default">
          <name>Ephemeral and Persistent ANEs</name>
          <t>By design, ANEs are ephemeral and not to be used in further requests to other
ALTO resources. More precisely, the corresponding ANE names are no longer valid
beyond the scope of a Path Vector response or the incremental update stream
for a Path Vector request. Compared with globally unique ANE names, ephemeral
ANE has several benefits including better privacy of the ISP's internal
structure and more flexible ANE computation.</t>
          <t>For example, an ALTO server may define an ANE for each aggregated bottleneck
link between the sources and destinations specified in the request. For requests
with different sources and destinations, the bottlenecks may be different but
can safely reuse the same ANE names. The client can still adjust its traffic
based on the information but is difficult to infer the underlying topology with
multiple queries.</t>
          <t>However, sometimes an ISP may intend to selectively reveal some "persistent"
network components which, opposite to being ephemeral, have a longer life cycle.
For example, an ALTO server may define an ANE for each service edge cluster.
Once a client chooses to use a service edge, e.g., by deploying some
user-defined functions, it may want to stick to the service edge to avoid the
complexity of state transition or synchronization, and continuously query the
properties of the edge cluster.</t>
          <t>This document provides a mechanism to expose such network components as
persistent ANEs. A persistent ANE has a persistent ID that is registered in a
Property Map, together with their properties. See Sections&nbsp;<xref target="domain-defining" format="counter"/> and
<xref target="persistent-entity-id" format="counter"/> for more detailed instructions on how to identify
ephemeral ANEs and persistent ANEs.</t>
        </section>
        <section anchor="property-filtering" numbered="true" toc="default">
          <name>Property Filtering</name>
          <t>Resource-constrained ALTO clients (see <xref target="RFC7285" sectionFormat="of" section="4.1.2"/>) may benefit
from the filtering of Path Vector query results at the ALTO server, as an ALTO
client may only require a subset of the available properties.</t>
          <t>Specifically, the available properties for a given resource are announced in the
Information Resource Directory as a new capability called "ane-property-names".
The properties selected by a client as being of interest are specified in the
subsequent Path Vector queries using the filter called 'ane-property-names'. The
response includes and only includes the selected properties for the ANEs in the
response.</t>
          <t>The "ane-property-names" capability for Cost Map and for Endpoint Cost Service
is specified in Sections&nbsp;<xref target="pvcm-cap" format="counter"/> and <xref target="pvecs-cap" format="counter"/> respectively. The
"ane-property-names" filter for Cost Map and Endpoint Cost Service is specified
in Sections&nbsp;<xref target="pvcm-accept" format="counter"/> and <xref target="pvecs-accept" format="counter"/> accordingly.</t>
        </section>
      </section>
      <section anchor="path-vector-design" numbered="true" toc="default">
        <name>Path Vector Cost Type</name>
        <t>For an ALTO client to correctly interpret the Path Vector, this extension
specifies a new cost type called the Path Vector cost type.</t>
        <t>The Path Vector cost type must convey both the interpretation and semantics in
the "cost-mode" and "cost-metric" respectively. Unfortunately, a single
"cost-mode" value cannot fully specify the interpretation of a Path Vector,
which is a compound data type. For example, in programming languages such as C++
where there existed a JSON array type named JSONArray, a Path Vector will have
the type of <tt>JSONArray&lt;ANEName&gt;</tt>.</t>
        <t>Instead of extending the "type system" of ALTO, this document takes a simple
and backward compatible approach. Specifically, the "cost-mode" of the Path
Vector cost type is "array", which indicates the value is a JSON array. Then, an
ALTO client must check the value of the "cost-metric". If the value is
"ane-path", it means that the JSON array should be further interpreted as a path
of ANENames.</t>
        <t>The Path Vector cost type is specified in <xref target="cost-type-spec" format="default"/>.</t>
      </section>
      <section anchor="multipart-path-vector-response" numbered="true" toc="default">
        <name>Multipart Path Vector Response</name>
        <t>For a basic ALTO information resource, a response contains only one type of
ALTO resources, e.g., Network Map, Cost Map, or Property Map. Thus, only one
round of communication is required: An ALTO client sends a request to an ALTO
server, and the ALTO server returns a response, as shown in <xref target="fig-alto" format="default"/>.</t>
        <figure anchor="fig-alto">
          <name>A Typical ALTO Request and Response</name>
          <artwork type="" align="center" name="" alt=""><![CDATA[
  ALTO client                              ALTO server
       |-------------- Request ---------------->|
       |<------------- Response ----------------|
]]></artwork>
        </figure>
        <t>The extension defined in this document, on the other hand, involves two types of
information resources: Path Vectors conveyed in an InfoResourceCostMap (defined
in <xref target="RFC7285" sectionFormat="of" section="11.2.3.6"/>) or an InfoResourceEndpointCostMap (defined
in <xref target="RFC7285" sectionFormat="of" section="11.5.1.6"/>), and ANE properties conveyed in an
InfoResourceProperties (defined in <xref target="RFC9240" sectionFormat="of" section="7.6"/>).</t>
        <t>Instead of two consecutive message exchanges, the extension defined in this
document enforces one round of communication. Specifically, the ALTO client must
include the source and destination pairs and the requested ANE properties in a
single request, and the ALTO server must return a single response containing
both the Path Vectors and properties associated with the ANEs in the Path
Vectors, as shown in <xref target="fig-pv" format="default"/>. Since the two parts are bundled together in one
response message, their orders are interchangeable. See Sections&nbsp;<xref target="pvcm-resp" format="counter"/> and
<xref target="pvecs-resp" format="counter"/> for details.</t>
        <figure anchor="fig-pv">
          <name>The Path Vector Extension Request and Response</name>
          <artwork type="" align="center" name="" alt=""><![CDATA[
  ALTO client                              ALTO server
       |------------- PV Request -------------->|
       |<----- PV Response (Cost Map Part) -----|
       |<--- PV Response (Property Map Part) ---|
]]></artwork>
        </figure>
        <t>This design is based on the following considerations:</t>
        <ol spacing="normal" type="1"><li>ANEs may be constructed on demand, and potentially based on the
requested properties (See <xref target="ane-design" format="default"/> for more details). If sources and
destinations are not in the same request as the properties, an ALTO server
either cannot construct ANEs on-demand, or must wait until both requests are
received.</li>
          <li>As ANEs may be constructed on demand, mappings of each ANE to its underlying
network devices and resources can be specific to the request. In order
to respond to the Property Map request correctly, an ALTO server must store
the mapping of each Path Vector request until the client fully retrieves the
property information. The "stateful" behavior may substantially harm the
server scalability and potentially lead to Denial-of-Service attacks.</li>
        </ol>
        <t>One approach to realize the one-round communication is to define a new media
type to contain both objects, but this violates modular design. This document
follows the standard-conforming usage of "multipart/related" media type defined
in <xref target="RFC2387" format="default"/> to elegantly combine the objects. Path Vectors are encoded in an
InfoResourceCostMap or an InfoResourceEndpointCostMap, and the Property Map is
encoded in an InfoResourceProperties. They are encapsulated as parts of a
multipart message. The modular composition allows ALTO servers and clients to
reuse the data models of the existing information resources. Specifically, this
document addresses the following practical issues using "multipart/related".</t>
        <section anchor="identifying-the-media-type-of-the-root-object" numbered="true" toc="default">
          <name>Identifying the Media Type of the Root Object</name>
          <t>ALTO uses media type to indicate the type of an entry in the Information
Resource Directory (IRD) (e.g., "application/alto-costmap+json" for Cost Map
and "application/alto-endpointcost+json" for Endpoint Cost Service). Simply
putting "multipart/related" as the media type, however, makes it impossible
for an ALTO client to identify the type of service provided by related
entries.</t>
          <t>To address this issue, this document uses the "type" parameter to indicate the
root object of a multipart/related message. For a Cost Map resource, the
"media-type" field in the IRD entry is "multipart/related" with the parameter
"type=application/alto-costmap+json"; for an Endpoint Cost Service, the
parameter is "type=application/alto-endpointcost+json".</t>
        </section>
        <section anchor="ref-partmsg-design" numbered="true" toc="default">
          <name>References to Part Messages</name>
          <t>As the response of a Path Vector resource is a multipart message with two
different parts, it is important that each part can be uniquely identified.
Following the designs of <xref target="RFC8895" format="default"/>, this extension requires that an ALTO
server assigns a unique identifier to each part of the multipart response
message. This identifier, referred to as a Part Resource ID (See
<xref target="part-rid-spec" format="default"/> for details), is present in the part message's "Content-ID"
header. By concatenating the Part Resource ID to the identifier of the Path
Vector request, an ALTO server/client can uniquely identify the Path Vector Part
or the Property Map part.</t>
        </section>
      </section>
    </section>
    <section anchor="Basic" numbered="true" toc="default">
      <name>Specification: Basic Data Types</name>
      <section anchor="ane-name-spec" numbered="true" toc="default">
        <name>ANE Name</name>
        <t>An ANE Name is encoded as a JSON string with the same format as that of the type
PIDName (<xref target="RFC7285" sectionFormat="of" section="10.1"/>).</t>
        <t>The type ANEName is used in this document to indicate a string of this
format.</t>
      </section>
      <section anchor="ane-domain-spec" numbered="true" toc="default">
        <name>ANE Entity Domain</name>
        <t>The ANE entity domain associates property values with the Abstract Network
Elements in a Property Map. Accordingly, the ANE entity domain always depends on
a Property Map.</t>
        <t>It must be noted that the term "domain" here does not refer to a network domain.
Rather, it is inherited from the "entity domain" defined in
<xref target="RFC9240" sectionFormat="of" section="3.2"/> that represents the set of valid entities
defined by an ALTO information resource (called the defining information
resource).</t>
        <section anchor="domain-type" numbered="true" toc="default">
          <name>Entity Domain Type</name>
          <t>The Entity Domain Type is "ane".</t>
        </section>
        <section anchor="entity-address" numbered="true" toc="default">
          <name>Domain-Specific Entity Identifier</name>
          <t>The entity identifiers are the ANE Names in the associated Property Map.</t>
        </section>
        <section anchor="hierarchy-and-inheritance" numbered="true" toc="default">
          <name>Hierarchy and Inheritance</name>
          <t>There is no hierarchy or inheritance for properties associated with ANEs.</t>
        </section>
        <section anchor="domain-defining" numbered="true" toc="default">
          <name>Media Type of Defining Resource</name>
          <t>The defining resource for entity domain type "ane" <bcp14>MUST</bcp14> be a Property Map, i.e.,
the media type of defining resources is:</t>
          <sourcecode name="" type="json"><![CDATA[
application/alto-propmap+json
]]></sourcecode>
          <t>Specifically, for ephemeral ANEs that appear in a Path Vector response, their
entity domain names <bcp14>MUST</bcp14> be exactly ".ane" and the defining resource of these
ANEs is the Property Map part of the multipart response. Meanwhile, for any
persistent ANE whose defining resource is a Property Map resource, its entity
domain name <bcp14>MUST</bcp14> have the format of "PROPMAP.ane" where PROPMAP is the resource
ID of the defining resource. Persistent entities are "persistent" because
standalone queries can be made by an ALTO client to their defining resource(s)
when the connection to the Path Vector service is closed.</t>
          <t>For example, the defining resource of an ephemeral ANE whose entity identifier
is ".ane:NET1" is the Property Map part that contains this identifier. The
defining resource of a persistent ANE whose entity identifier is
"dc-props.ane:DC1" is the Property Map with the resource ID "dc-props".</t>
        </section>
      </section>
      <section anchor="ane-prop-name-spec" numbered="true" toc="default">
        <name>ANE Property Name</name>
        <t>An ANE Property Name is encoded as a JSON string with the same format as that of
Entity Property Name (<xref target="RFC9240" sectionFormat="of" section="5.2.2"/>).</t>
      </section>
      <section anchor="initial-ane-property-types" numbered="true" toc="default">
        <name>Initial ANE Property Types</name>
        <t>Two initial ANE property types are specified, "max-reservable-bandwidth" and
"persistent-entity-id".</t>
        <t>Note that these property types do not depend on any information resource. As
such, the EntityPropertyName <bcp14>MUST</bcp14> only have the EntityPropertyType part.</t>
        <section anchor="maxresbw" numbered="true" toc="default">
          <name>Maximum Reservable Bandwidth</name>
          <t>The maximum reservable bandwidth property ("max-reservable-bandwidth") stands
for the maximum bandwidth that can be reserved for all the traffic that
traverses an ANE. The value <bcp14>MUST</bcp14> be encoded as a non-negative numerical cost
value as defined in 
<xref target="RFC7285" sectionFormat="of" section="6.1.2.1"/> and the unit is bit per
second (bps). If this property is requested by the ALTO client but not present
for an ANE in the server response, it <bcp14>MUST</bcp14> be interpreted as that the property
is not defined for the ANE.</t>
          <t>This property can be offered in a setting where the ALTO server is part of a
network system that provides on-demand resource allocation and the ALTO client
is part of a user application. One existing example is <xref target="NOVA" format="default"/>: the ALTO server
is part of an SDN controller and exposes a list of traversed network elements
and associated link bandwidth to the client. The encoding in <xref target="NOVA" format="default"/> differs
from the Path Vector response defined in this document that the Path Vector part
and Property Map part are put in the same JSON object.</t>
          <t>In such a framework, the ALTO server exposes resource (e.g., reservable bandwidth)
availability information to the ALTO client. How the client makes resource
requests based on the information and how the resource allocation is achieved
respectively depend on interfaces between the management system and the users or
a higher-layer protocol (e.g., SDN network intents or MPLS tunnels), which are
out of the scope of this document.</t>
        </section>
        <section anchor="persistent-entity-id" numbered="true" toc="default">
          <name>Persistent Entity ID</name>
          <t>The persistent entity ID property is the entity identifier of the persistent
ANE which an ephemeral ANE presents (See <xref target="assoc" format="default"/> for details). The value of
this property is encoded with the format EntityID defined in
<xref target="RFC9240" sectionFormat="of" section="5.1.3"/>.</t>
          <t>In this format, the entity ID combines:</t>
          <ul spacing="normal">
            <li>a defining information resource for the ANE on which a
"persistent-entity-id" is queried, which is the Property Map resource
defining the ANE as a persistent entity, together with the properties;</li>
            <li>the persistent name of the ANE in that Property Map.</li>
          </ul>
          <t>With this format, the client has all the needed information for further
standalone query properties on the persistent ANE.</t>
        </section>
        <section anchor="examples" numbered="true" toc="default">
          <name>Examples</name>
          <t>To illustrate the use of "max-reservable-bandwidth", consider the following
network with 5 nodes. Assume the client wants to query the maximum reservable
bandwidth from H1 to H2. An ALTO server may split the network into two ANEs:
"ane1" that represents the subnetwork with routers A, B, and C, and "ane2" that
represents the subnetwork with routers B, D and E. The maximum reservable
bandwidth for "ane1" is 15 Mbps (using path A-&gt;C-&gt;B) and the maximum reservable
bandwidth for "ane2" is 20 Mbps (using path B-&gt;D-&gt;E).</t>
          <artwork name="" type="" align="left" alt=""><![CDATA[
                     20 Mbps  20 Mbps
          10 Mbps +---+   +---+    +---+
             /----| B |---| D |----| E |---- H2
       +---+/     +---+   +---+    +---+
H1 ----| A | 15 Mbps|
       +---+\     +---+
             \----| C |
          15 Mbps +---+
]]></artwork>
          <t>To illustrate the use of "persistent-entity-id", consider the scenario in
<xref target="fig-se" format="default"/>. As the life cycle of service edges are typically long, they may
contain information that is not specific to the query. Such information can be
stored in an individual unified property map and later be accessed by an ALTO
client.</t>
          <t>For example, "ane1" in <xref target="fig-se-example" format="default"/> represents the on-premise service edge
closest to host a. Assume the properties of the service edges are provided in
a unified property map called "se-props" and the ID of the on-premise service
edge is "9a0b55f7-7442-4d56-8a2c-b4cc6a8e3aa1", the "persistent-entity-id" of
"ane1" will be "se-props.ane:9a0b55f7-7442-4d56-8a2c-b4cc6a8e3aa1". With this
persistent entity ID, an ALTO client may send queries to the "se-props" resource
with the entity ID ".ane:9a0b55f7-7442-4d56-8a2c-b4cc6a8e3aa1".</t>
        </section>
      </section>
      <section anchor="cost-type-spec" numbered="true" toc="default">
        <name>Path Vector Cost Type</name>
        <t>This document defines a new cost type, which is referred to as the Path Vector
cost type. An ALTO server <bcp14>MUST</bcp14> offer this cost type if it supports the extension
defined in this document.</t>
        <section anchor="metric-spec" numbered="true" toc="default">
          <name>Cost Metric: ane-path</name>
          <t>The cost metric "ane-path" indicates the value of such a cost type conveys an
array of ANE names, where each ANE name uniquely represents an ANE traversed by
traffic from a source to a destination.</t>
          <t>An ALTO client <bcp14>MUST</bcp14> interpret the Path Vector as if the traffic between a source
and a destination logically traverses the ANEs in the same order as they appear
in the Path Vector.</t>
          <t>When the Path Vector procedures defined in this document are in use, an ALTO
server using the "ane-path" cost metric and the "array" cost mode (see
<xref target="mode-spec" format="default"/>) <bcp14>MUST</bcp14> return as the cost value a JSON array of ANEName and the
client <bcp14>MUST</bcp14> also check that each element contained in the array is an ANEName
(<xref target="ane-name-spec" format="default"/>). Otherwise, the client <bcp14>MUST</bcp14> discard the response and <bcp14>SHOULD</bcp14>
follow the instructions in <xref target="RFC7285" sectionFormat="of" section="8.3.4.3"/> to handle the error.</t>
        </section>
        <section anchor="mode-spec" numbered="true" toc="default">
          <name>Cost Mode: array</name>
          <t>The cost mode "array" indicates that every cost value in the response body of a
(Filtered) Cost Map or an Endpoint Cost Service <bcp14>MUST</bcp14> be interpreted as a JSON
array object. While this cost mode can be applied to all cost metrics,
additional specifications will be needed to clarify the semantics of the array
cost mode when combined with cost metrics other than 'ane-path'.</t>
        </section>
      </section>
      <section anchor="part-rid-spec" numbered="true" toc="default">
        <name>Part Resource ID and Part Content ID</name>
        <t>A Part Resource ID is encoded as a JSON string with the same format as that of the
type ResourceID (<xref target="RFC7285" sectionFormat="of" section="10.2"/>).</t>
        <t>Even though the client-id assigned to a Path Vector request and the Part
Resource ID <bcp14>MAY</bcp14> contain up to 64 characters by their own definition, their
concatenation (see <xref target="ref-partmsg-design" format="default"/>) <bcp14>MUST</bcp14> also conform to the same length
constraint. The same requirement applies to the resource ID of the Path Vector
resource, too. Thus, it is <bcp14>RECOMMENDED</bcp14> to limit the length of resource ID and
client ID related to a Path Vector resource to 31 characters.</t>
        <t>A Part Content ID conforms to the format of msg-id as specified in
<xref target="RFC2387" format="default"/> and <xref target="RFC5322" format="default"/>. Specifically, it has the following format:</t>
        <t>"&lt;" PART-RESOURCE-ID "@" DOMAIN-NAME "&gt;"</t>
        <dl>
          <dt>
PART-RESOURCE-ID:  </dt>
          <dd>
            <t>PART-RESOURCE-ID has the same format as the Part Resource ID. It is used to
identify whether a part message is a Path Vector or a Property Map.</t>
          </dd>
          <dt>
DOMAIN-NAME:  </dt>
          <dd>
            <t>DOMAIN-NAME has the same format as dot-atom-text specified in
<xref target="RFC5322" sectionFormat="of" section="3.2.3"/>. It must be the domain name of the ALTO server.</t>
          </dd>
        </dl>
      </section>
    </section>
    <section anchor="Services" numbered="true" toc="default">
      <name>Specification: Service Extensions</name>
      <section anchor="notations" numbered="true" toc="default">
        <name>Notations</name>
        <t>This document uses the same syntax and notations as introduced in <xref target="RFC7285" sectionFormat="of" section="8.2"/> to specify the extensions to existing ALTO resources and
services.</t>
      </section>
      <section anchor="pvcm-spec" numbered="true" toc="default">
        <name>Multipart Filtered Cost Map for Path Vector</name>
        <t>This document introduces a new ALTO resource called multipart Filtered Cost Map
resource, which allows an ALTO server to provide other ALTO resources associated
with the Cost Map resource in the same response.</t>
        <section anchor="media-type" numbered="true" toc="default">
          <name>Media Type</name>
          <t>The media type of the multipart Filtered Cost Map resource is
"multipart/related" and the required "type" parameter <bcp14>MUST</bcp14> have
a value of "application/alto-costmap+json".</t>
        </section>
        <section anchor="http-method" numbered="true" toc="default">
          <name>HTTP Method</name>
          <t>The multipart Filtered Cost Map is requested using the HTTP POST method.</t>
        </section>
        <section anchor="pvcm-accept" numbered="true" toc="default">
          <name>Accept Input Parameters</name>
          <t>The input parameters of the multipart Filtered Cost Map are supplied in the body
of an HTTP POST request. This document extends the input parameters to a
Filtered Cost Map, which is defined as a JSON object of type
ReqFilteredCostMap in <xref target="RFC8189" sectionFormat="of" section="4.1.2"/>, with a data
format indicated by the media type "application/alto-costmapfilter+json", which
is a JSON object of type PVReqFilteredCostMap:</t>
          <sourcecode type="json"><![CDATA[
object {
  [EntityPropertyName ane-property-names<0..*>;]
} PVReqFilteredCostMap : ReqFilteredCostMap;
]]></sourcecode>
          <t>with fields:</t>
          <dl>
            <dt>
ane-property-names:  </dt>
            <dd>
              <t>A list of selected ANE properties to be included in the response. Each
property in this list <bcp14>MUST</bcp14> match one of the supported ANE properties indicated
in the resource's "ane-property-names" capability (<xref target="pvcm-cap" format="default"/>). If the
field is not present, it <bcp14>MUST</bcp14> be interpreted as an empty list.</t>
            </dd>
          </dl>
          <t>Example: Consider the network in <xref target="fig-dumbbell" format="default"/>. If an ALTO client wants to
query the "max-reservable-bandwidth" between PID1 and PID2, it can submit the
following request.</t>
          <sourcecode name="" type="json"><![CDATA[
   POST /costmap/pv HTTP/1.1
   Host: alto.example.com
   Accept: multipart/related;type=application/alto-costmap+json,
           application/alto-error+json
   Content-Length: 201
   Content-Type: application/alto-costmapfilter+json

   {
     "cost-type": {
       "cost-mode": "array",
       "cost-metric": "ane-path"
     },
     "pids": {
       "srcs": [ "PID1" ],
       "dsts": [ "PID2" ]
     },
     "ane-property-names": [ "max-reservable-bandwidth" ]
   }
]]></sourcecode>
        </section>
        <section anchor="pvcm-cap" numbered="true" toc="default">
          <name>Capabilities</name>
          <t>The multipart Filtered Cost Map resource extends the capabilities defined
in <xref target="RFC8189" sectionFormat="of" section="4.1.1"/>. The capabilities are defined by a JSON
object of type PVFilteredCostMapCapabilities:</t>
          <sourcecode name="" type="json"><![CDATA[
object {
  [EntityPropertyName ane-property-names<0..*>;]
} PVFilteredCostMapCapabilities : FilteredCostMapCapabilities;
]]></sourcecode>
          <t>with fields:</t>
          <dl>
            <dt>
ane-property-names:  </dt>
            <dd>
              <t>Defines a list of ANE properties that can be returned. If the field is not
present, it <bcp14>MUST</bcp14> be interpreted as an empty list, indicating the ALTO server
cannot provide any ANE property.</t>
            </dd>
          </dl>
          <t>This extension also introduces additional restrictions for the following fields:</t>
          <dl>
            <dt>
cost-type-names:  </dt>
            <dd>
              <t>The "cost-type-names" field <bcp14>MUST</bcp14> include the Path Vector cost type,
unless explicitly documented by a future extension. This also implies that the
Path Vector cost type <bcp14>MUST</bcp14> be defined in the "cost-types" of the Information
Resource Directory's "meta" field.</t>
            </dd>
            <dt>
cost-constraints:  </dt>
            <dd>
              <t>If the "cost-type-names" field includes the Path Vector cost type,
"cost-constraints" field <bcp14>MUST</bcp14> be "false" or not present unless specifically
instructed by a future document.</t>
            </dd>
            <dt>
testable-cost-type-names (<xref target="RFC8189" sectionFormat="of" section="4.1.1"/>):  </dt>
            <dd>
              <t>If the "cost-type-names" field includes the Path Vector cost type and the
"testable-cost-type-names" field is present, the Path Vector cost type <bcp14>MUST
NOT</bcp14> be included in the "testable-cost-type-names" field unless specifically
instructed by a future document.</t>
            </dd>
          </dl>
        </section>
        <section anchor="uses" numbered="true" toc="default">
          <name>Uses</name>
          <t>This member <bcp14>MUST</bcp14> include the resource ID of the network map based on which the
PIDs are defined. If this resource supports "persistent-entity-id", it <bcp14>MUST</bcp14> also
include the defining resources of persistent ANEs that may appear in the response.</t>
        </section>
        <section anchor="pvcm-resp" numbered="true" toc="default">
          <name>Response</name>
          <t>The response <bcp14>MUST</bcp14> indicate an error, using ALTO protocol error handling, as
defined in <xref target="RFC7285" sectionFormat="of" section="8.5"/>, if the request is invalid.</t>
          <t>The "Content-Type" header of the response <bcp14>MUST</bcp14> be "multipart/related" as defined
by <xref target="RFC2387" format="default"/> with the following parameters:</t>
          <dl>
            <dt>
type:  </dt>
            <dd>
              <t>The type parameter is mandatory and <bcp14>MUST</bcp14> be "application/alto-costmap+json". Note
that <xref target="RFC2387" format="default"/> permits both parameters with and without the double quotes.</t>
            </dd>
            <dt>
start:  </dt>
            <dd>
              <t>The start parameter is as defined in <xref target="RFC2387" format="default"/> and is optional.
If present, it <bcp14>MUST</bcp14> have the same value as the "Content-ID" header of the Path
Vector part.</t>
            </dd>
            <dt>
boundary:  </dt>
            <dd>
              <t>The boundary parameter is as defined in <xref target="RFC2046" sectionFormat="of" section="5.1.1"/> and is mandatory.</t>
            </dd>
          </dl>
          <t>The body of the response <bcp14>MUST</bcp14> consist of two parts:</t>
          <ul spacing="normal">
            <li>
              <t>The Path Vector part <bcp14>MUST</bcp14> include "Content-ID" and "Content-Type" in its
header. The "Content-Type" <bcp14>MUST</bcp14> be "application/alto-costmap+json".
The value of "Content-ID" <bcp14>MUST</bcp14> have the same format as the Part Content ID as
specified in <xref target="part-rid-spec" format="default"/>.  </t>
              <t>
The body of the Path Vector part <bcp14>MUST</bcp14> be a JSON object with the same format as
defined in <xref target="RFC7285" sectionFormat="of" section="11.2.3.6"/> when the "cost-type" field is
present in the input parameters and <bcp14>MUST</bcp14> be a JSON object with the same format
as defined in <xref target="RFC8189" sectionFormat="of" section="4.1.3"/> if the "multi-cost-types" field is
present. The JSON object <bcp14>MUST</bcp14> include the
"vtag" field in the "meta" field, which provides the version tag of the
returned CostMapData. The resource ID of the version tag <bcp14>MUST</bcp14> follow the
format of  </t>
              <sourcecode name="" type="json"><![CDATA[
resource-id '.' part-resource-id
]]></sourcecode>
              <t>
where "resource-id" is the resource Id of the Path Vector resource, and
"part-resource-id" has the same value as the PART-RESOURCE-ID in the
"Content-ID" of the Path Vector part.
The "meta" field <bcp14>MUST</bcp14> also include the "dependent-vtags" field, whose value is
a single-element array to indicate the version tag of the network map used,
where the network map is specified in the "uses" attribute of the multipart
Filtered Cost Map resource in IRD.</t>
            </li>
            <li>
              <t>The Unified Property Map part <bcp14>MUST</bcp14> also include "Content-ID" and
"Content-Type" in its header. The "Content-Type" <bcp14>MUST</bcp14> be
"application/alto-propmap+json". The value of "Content-ID" <bcp14>MUST</bcp14> have the same
format as the Part Content ID as specified in <xref target="part-rid-spec" format="default"/>.  </t>
              <t>
The body of the Unified Property Map part is a JSON object with the same
format as defined in <xref target="RFC9240" sectionFormat="of" section="7.6"/>. The
JSON object <bcp14>MUST</bcp14> include the "dependent-vtags" field in the "meta" field. The
value of the "dependent-vtags" field <bcp14>MUST</bcp14> be an array of VersionTag objects as
defined by <xref target="RFC7285" sectionFormat="of" section="10.3"/>. The "vtag" of the Path Vector part <bcp14>MUST</bcp14>
be included in the "dependent-vtags". If "persistent-entity-id" is requested, the
version tags of the dependent resources that may expose the entities in the
response <bcp14>MUST</bcp14> also be included.  </t>
              <t>
The PropertyMapData has one member for each ANEName that appears in the Path
Vector part, which is an entity identifier belonging to the self-defined
entity domain as defined in
<xref target="RFC9240" sectionFormat="of" section="5.1.2.3"/>. The EntityProps for each ANE has one
member for each property that is both 1) associated with the ANE, and 2)
specified in the "ane-property-names" in the request. If the Path Vector cost
type is not included in the "cost-type" field or the "multi-cost-type" field,
the "property-map" field <bcp14>MUST</bcp14> be present and the value <bcp14>MUST</bcp14> be an empty object
({}).</t>
            </li>
          </ul>
          <t>A complete and valid response <bcp14>MUST</bcp14> include both the Path Vector part and the
Property Map part in the multipart message. If any part is NOT present, the
client <bcp14>MUST</bcp14> discard the received information and send another request if
necessary.</t>
          <t>According to <xref target="RFC2387" format="default"/>, the Path Vector part, whose media type is
the same as the "type" parameter of the multipart response message, is the root
object. Thus, it is the element the application processes first. Even though the
"start" parameter allows it to be placed anywhere in the part sequence, it is
<bcp14>RECOMMENDED</bcp14> that the parts arrive in the same order as they are processed, i.e.,
the Path Vector part is always put as the first part, followed by the Property
Map part. When doing so, an ALTO server <bcp14>MAY</bcp14> choose not to set the "start"
parameter, which implies the first part is the root object.</t>
          <t>Example: Consider the network in <xref target="fig-dumbbell" format="default"/>. The response of the example
request in <xref target="pvcm-accept" format="default"/> is as follows, where "ANE1" represents the
aggregation of all the switches in the network.</t>
          <sourcecode name="" type="json"><![CDATA[
HTTP/1.1 200 OK
Content-Length: 859
Content-Type: multipart/related; boundary=example-1;
              type=application/alto-costmap+json

--example-1
Content-ID: <costmap@alto.example.com>
Content-Type: application/alto-costmap+json

{
  "meta": {
    "vtag": {
      "resource-id": "filtered-cost-map-pv.costmap",
      "tag": "fb20b76204814e9db37a51151faaaef2"
    },
    "dependent-vtags": [
      {
        "resource-id": "my-default-networkmap",
        "tag": "75ed013b3cb58f896e839582504f6228"
      }
    ],
    "cost-type": { "cost-mode": "array", "cost-metric": "ane-path" }
  },
  "cost-map": {
    "PID1": { "PID2": ["ANE1"] }
  }
}
--example-1
Content-ID: <propmap@alto.example.com>
Content-Type: application/alto-propmap+json

{
  "meta": {
    "dependent-vtags": [
      {
        "resource-id": "filtered-cost-map-pv.costmap",
        "tag": "fb20b76204814e9db37a51151faaaef2"
      }
    ]
  },
  "property-map": {
    ".ane:ANE1": { "max-reservable-bandwidth": 100000000 }
  }
}
]]></sourcecode>
          <!-- TODO: Error Handling -->

</section>
      </section>
      <section anchor="pvecs-spec" numbered="true" toc="default">
        <name>Multipart Endpoint Cost Service for Path Vector</name>
        <t>This document introduces a new ALTO resource called multipart Endpoint Cost
Service, which allows an ALTO server to provide other ALTO resources associated
with the Endpoint Cost Service resource in the same response.</t>
        <section anchor="media-type-1" numbered="true" toc="default">
          <name>Media Type</name>
          <t>The media type of the multipart Endpoint Cost Service resource is
"multipart/related" and the required "type" parameter <bcp14>MUST</bcp14> have
a value of "application/alto-endpointcost+json".</t>
        </section>
        <section anchor="http-method-1" numbered="true" toc="default">
          <name>HTTP Method</name>
          <t>The multipart Endpoint Cost Service resource is requested using the HTTP POST method.</t>
        </section>
        <section anchor="pvecs-accept" numbered="true" toc="default">
          <name>Accept Input Parameters</name>
          <t>The input parameters of the multipart Endpoint Cost Service resource are
supplied in the body of an HTTP POST request. This document extends the input
parameters to an Endpoint Cost Service, which is defined as a JSON object of
type ReqEndpointCost in <xref target="RFC8189" sectionFormat="of" section="4.2.2"/>, with a data
format indicated by the media type "application/alto-endpointcostparams+json",
which is a JSON object of type PVReqEndpointCost:</t>
          <sourcecode name="" type="json"><![CDATA[
object {
  [EntityPropertyName ane-property-names<0..*>;]
} PVReqEndpointcost : ReqEndpointcostMap;
]]></sourcecode>
          <t>with fields:</t>
          <dl>
            <dt>
ane-property-names:  </dt>
            <dd>
              <t>This document defines the "ane-property-names" in PVReqEndpointcost as the
same as in PVReqFilteredCostMap. See <xref target="pvcm-accept" format="default"/>.</t>
            </dd>
          </dl>
          <t>Example: Consider the network in <xref target="fig-dumbbell" format="default"/>. If an ALTO client wants to
query the "max-reservable-bandwidth" between eh1 and eh2, it can submit the
following request.</t>
          <sourcecode name="" type="json"><![CDATA[
POST /ecs/pv HTTP/1.1
Host: alto.example.com
Accept: multipart/related;type=application/alto-endpointcost+json,
        application/alto-error+json
Content-Length: 227
Content-Type: application/alto-endpointcostparams+json

{
  "cost-type": {
    "cost-mode": "array",
    "cost-metric": "ane-path"
  },
  "endpoints": {
    "srcs": [ "ipv4:192.0.2.2" ],
    "dsts": [ "ipv4:192.0.2.18" ]
  },
  "ane-property-names": [ "max-reservable-bandwidth" ]
}
]]></sourcecode>
        </section>
        <section anchor="pvecs-cap" numbered="true" toc="default">
          <name>Capabilities</name>
          <t>The capabilities of the multipart Endpoint Cost Service resource are defined by
a JSON object of type PVEndpointcostCapabilities, which is defined as the same
as PVFilteredCostMapCapabilities. See <xref target="pvcm-cap" format="default"/>.</t>
        </section>
        <section anchor="uses-1" numbered="true" toc="default">
          <name>Uses</name>
          <t>If this resource supports "persistent-entity-id", it <bcp14>MUST</bcp14> also include the
defining resources of persistent ANEs that may appear in the response.</t>
        </section>
        <section anchor="pvecs-resp" numbered="true" toc="default">
          <name>Response</name>
          <t>The response <bcp14>MUST</bcp14> indicate an error, using ALTO protocol error handling, as
defined in <xref target="RFC7285" sectionFormat="of" section="8.5"/>, if the request is invalid.</t>
          <t>The "Content-Type" header of the response <bcp14>MUST</bcp14> be "multipart/related" as defined
by <xref target="RFC7285" format="default"/> with the following parameters:</t>
          <dl>
            <dt>
type:  </dt>
            <dd>
              <t>The type parameter <bcp14>MUST</bcp14> be "application/alto-endpointcost+json" and is mandatory.</t>
            </dd>
            <dt>
start:  </dt>
            <dd>
              <t>The start parameter is as defined in <xref target="pvcm-resp" format="default"/>.</t>
            </dd>
            <dt>
boundary:  </dt>
            <dd>
              <t>The boundary parameter is as defined in <xref target="RFC2046" sectionFormat="of" section="5.1.1"/> and is mandatory.</t>
            </dd>
          </dl>
          <t>The body <bcp14>MUST</bcp14> consist of two parts:</t>
          <ul spacing="normal">
            <li>
              <t>The Path Vector part <bcp14>MUST</bcp14> include "Content-ID" and "Content-Type" in its
header.
The "Content-Type" <bcp14>MUST</bcp14> be "application/alto-endpointcost+json".
The value of "Content-ID" <bcp14>MUST</bcp14> have the same format as the Part Content ID as
specified in <xref target="part-rid-spec" format="default"/>.  </t>
              <t>
The body of the Path Vector part <bcp14>MUST</bcp14> be a JSON object with the same format as
defined in <xref target="RFC7285" sectionFormat="of" section="11.5.1.6"/> when the "cost-type" field is
present in the input parameters and <bcp14>MUST</bcp14> be a JSON object with the same format
as defined in <xref target="RFC8189" sectionFormat="of" section="4.2.3"/> if the "multi-cost-types" field is
present. The JSON object <bcp14>MUST</bcp14> include the
"vtag" field in the "meta" field, which provides the version tag of the returned
EndpointCostMapData. The resource ID of the version tag <bcp14>MUST</bcp14> follow the format of  </t>
              <sourcecode name="" type="json"><![CDATA[
resource-id '.' part-resource-id
]]></sourcecode>
              <t>
where "resource-id" is the resource Id of the Path Vector resource, and
"part-resource-id" has the same value as the PART-RESOURCE-ID in the "Content-ID"
of the Path Vector part.</t>
            </li>
            <li>
              <t>The Unified Property Map part <bcp14>MUST</bcp14> also include "Content-ID" and
"Content-Type" in its header. The "Content-Type" <bcp14>MUST</bcp14> be
"application/alto-propmap+json".
The value of "Content-ID" <bcp14>MUST</bcp14> have the same format as the Part Content ID as
specified in <xref target="part-rid-spec" format="default"/>.  </t>
              <t>
The body of the Unified Property Map part <bcp14>MUST</bcp14> be a JSON object with the same
format as defined in <xref target="RFC9240" sectionFormat="of" section="7.6"/>. The
JSON object <bcp14>MUST</bcp14> include the "dependent-vtags" field in the "meta" field. The
value of the "dependent-vtags" field <bcp14>MUST</bcp14> be an array of VersionTag objects as
defined by <xref target="RFC7285" sectionFormat="of" section="10.3"/>. The "vtag" of the Path Vector part <bcp14>MUST</bcp14>
be included in the "dependent-vtags". If "persistent-entity-id" is requested, the
version tags of the dependent resources that may expose the entities in the
response <bcp14>MUST</bcp14> also be included.  </t>
              <t>
The PropertyMapData has one member for each ANEName that appears in the Path
Vector part, which is an entity identifier belonging to the self-defined
entity domain as defined in
<xref target="RFC9240" sectionFormat="of" section="5.1.2.3"/>. The EntityProps for each ANE has one
member for each property that is both 1) associated with the ANE, and 2)
specified in the "ane-property-names" in the request. If the Path Vector cost
type is not included in the "cost-type" field or the "multi-cost-type" field,
the "property-map" field <bcp14>MUST</bcp14> be present and the value <bcp14>MUST</bcp14> be an empty object
({}).</t>
            </li>
          </ul>
          <t>A complete and valid response <bcp14>MUST</bcp14> include both the Path Vector part and the
Property Map part in the multipart message. If any part is NOT present, the
client <bcp14>MUST</bcp14> discard the received information and send another request if
necessary.</t>
          <t>According to <xref target="RFC2387" format="default"/>, the Path Vector part, whose media type is
the same as the "type" parameter of the multipart response message, is the root
object. Thus, it is the element the application processes first. Even though the
"start" parameter allows it to be placed anywhere in the part sequence, it is
<bcp14>RECOMMENDED</bcp14> that the parts arrive in the same order as they are processed, i.e.,
the Path Vector part is always put as the first part, followed by the Property
Map part. When doing so, an ALTO server <bcp14>MAY</bcp14> choose not to set the "start"
parameter, which implies the first part is the root object.</t>
          <t>Example: Consider the network in <xref target="fig-dumbbell" format="default"/>. The response of the example
request in <xref target="pvecs-accept" format="default"/> is as follows.</t>
          <sourcecode name="" type="json"><![CDATA[
HTTP/1.1 200 OK
Content-Length: 845
Content-Type: multipart/related; boundary=example-1;
              type=application/alto-endpointcost+json

--example-1
Content-ID: <ecs@alto.example.com>
Content-Type: application/alto-endpointcost+json

{
  "meta": {
    "vtag": {
      "resource-id": "ecs-pv.ecs",
      "tag": "ec137bb78118468c853d5b622ac003f1"
    },
    "dependent-vtags": [
      {
        "resource-id": "my-default-networkmap",
        "tag": "677fe5f4066848d282ece213a84f9429"
      }
    ],
    "cost-type": { "cost-mode": "array", "cost-metric": "ane-path" }
  },
  "cost-map": {
    "ipv4:192.0.2.2": { "ipv4:192.0.2.18": ["ANE1"] }
  }
}
--example-1
Content-ID: <propmap@alto.example.com>
Content-Type: application/alto-propmap+json

{
  "meta": {
    "dependent-vtags": [
      {
        "resource-id": "ecs-pv.ecs",
        "tag": "ec137bb78118468c853d5b622ac003f1"
      }
    ]
  },
  "property-map": {
    ".ane:ANE1": { "max-reservable-bandwidth": 100000000 }
  }
}
]]></sourcecode>
        </section>
      </section>
    </section>
    <section anchor="Examples" numbered="true" toc="default">
      <name>Examples</name>
      <t>This section lists some examples of Path Vector queries and the corresponding
responses. Some long lines are truncated for better readability.</t>
      <section anchor="sample-setup" numbered="true" toc="default">
        <name>Sample Setup</name>
        <figure anchor="fig-pe">
          <name>Examples of ANE Properties</name>
          <artwork type="" align="center" name="" alt=""><![CDATA[
                                     ----- L1
                                    /
        PID1   +----------+ 10 Gbps +----------+    PID3
 192.0.2.0/28+-+ +------+ +---------+          +--+192.0.2.32/28
               | | MEC1 | |         |          |   2001:db8::3:0/16
               | +------+ |   +-----+          |
        PID2   |          |   |     +----------+
192.0.2.16/28+-+          |   |         NET3
               |          |   | 15 Gbps
               |          |   |        \
               +----------+   |         -------- L2
                   NET1       |
                            +----------+
                            | +------+ |   PID4
                            | | MEC2 | +--+192.0.2.48/28
                            | +------+ |   2001:db8::4:0/16
                            +----------+
                                NET2
]]></artwork>
        </figure>
        <t>In this document, <xref target="fig-pe" format="default"/> is used to illustrate the message contents. There
are 3 sub-networks (NET1, NET2 and NET3) and two interconnection links (L1 and
L2). It is assumed that each sub-network has sufficiently large bandwidth to be
reserved.</t>
      </section>
      <section anchor="example-ird" numbered="true" toc="default">
        <name>Information Resource Directory</name>
        <t>To give a comprehensive example of the extension defined in this document, we
consider the network in <xref target="fig-pe" format="default"/>. Assume that the ALTO server provides the
following information resources:</t>
        <dl spacing="normal">
          <dt>"my-default-networkmap":</dt><dd>A Network Map resource which contains the PIDs in the
network.</dd>
          <dt>"filtered-cost-map-pv":</dt><dd>A Multipart Filtered Cost Map resource for Path Vector,
which exposes the "max-reservable-bandwidth" property for the PIDs in
"my-default-networkmap".</dd>
          <dt>"ane-props":</dt><dd>A filtered Unified Property resource that exposes the
information for persistent ANEs in the network.</dd>
          <dt>"endpoint-cost-pv":</dt><dd>A Multipart Endpoint Cost Service for Path Vector, which
exposes the "max-reservable-bandwidth" and the "persistent-entity-id" properties.</dd>
          <dt>"update-pv":</dt><dd>An Update Stream service, which provides the incremental update
service for the "endpoint-cost-pv" service.</dd>
          <dt>"multicost-pv":</dt><dd>A Multipart Endpoint Cost Service with both Multi-Cost and
Path Vector.</dd>
	</dl>
        <t>Below is the Information Resource Directory of the example ALTO server. To
enable the extension defined in this document, the "path-vector" cost type
(<xref target="cost-type-spec" format="default"/>) is defined in the "cost-types" of the "meta" field, and is
included in the "cost-type-names" of resources "filtered-cost-map-pv" and
"endpoint-cost-pv".</t>

        <sourcecode name="" type="json"><![CDATA[
{
  "meta": {
    "cost-types": {
      "path-vector": {
        "cost-mode": "array",
        "cost-metric": "ane-path"
      },
      "num-rc": {
        "cost-mode": "numerical",
        "cost-metric": "routingcost"
      }
    }
  },
  "resources": {
    "my-default-networkmap": {
      "uri": "https://alto.example.com/networkmap",
      "media-type": "application/alto-networkmap+json"
    },
    "filtered-cost-map-pv": {
      "uri": "https://alto.example.com/costmap/pv",
      "media-type": "multipart/related;
                     type=application/alto-costmap+json",
      "accepts": "application/alto-costmapfilter+json",
      "capabilities": {
        "cost-type-names": [ "path-vector" ],
        "ane-property-names": [ "max-reservable-bandwidth" ]
      },
      "uses": [ "my-default-networkmap" ]
    },
    "ane-props": {
      "uri": "https://alto.example.com/ane-props",
      "media-type": "application/alto-propmap+json",
      "accepts": "application/alto-propmapparams+json",
      "capabilities": {
        "mappings": {
          ".ane": [ "cpu" ]
        }
      }
    },
    "endpoint-cost-pv": {
      "uri": "https://alto.exmaple.com/endpointcost/pv",
      "media-type": "multipart/related;
                     type=application/alto-endpointcost+json",
      "accepts": "application/alto-endpointcostparams+json",
      "capabilities": {
        "cost-type-names": [ "path-vector" ],
        "ane-property-names": [
          "max-reservable-bandwidth", "persistent-entity-id"
        ]
      },
      "uses": [ "ane-props" ]
    },
    "update-pv": {
      "uri": "https://alto.example.com/updates/pv",
      "media-type": "text/event-stream",
      "uses": [ "endpoint-cost-pv" ],
      "accepts": "application/alto-updatestreamparams+json",
      "capabilities": {
        "support-stream-control": true
      }
    },
    "multicost-pv": {
      "uri": "https://alto.exmaple.com/endpointcost/mcpv",
      "media-type": "multipart/related;
                     type=application/alto-endpointcost+json",
      "accepts": "application/alto-endpointcostparams+json",
      "capabilities": {
        "cost-type-names": [ "path-vector", "num-rc" ],
        "max-cost-types": 2,
        "testable-cost-type-names": [ "num-rc" ],
        "ane-property-names": [
          "max-reservable-bandwidth", "persistent-entity-id"
        ]
      },
      "uses": [ "ane-props" ]
    }
  }
}
]]></sourcecode>
      </section>
      <section anchor="multipart-filtered-cost-map" numbered="true" toc="default">
        <name>Multipart Filtered Cost Map</name>
        <t>The following examples demonstrate the request to the "filtered-cost-map-pv"
resource and the corresponding response.</t>
        <t>The request uses the "path-vector" cost type in the "cost-type" field. The
"ane-property-names" field is missing, indicating that the client only requests
for the Path Vector but not the ANE properties.</t>
        <t>The response consists of two parts. The first part returns the array of ANEName
for each source and destination pair. There are two ANEs, where "L1" represents
the interconnection link L1, and "L2" represents the interconnection link L2.</t>
        <t>The second part returns an empty Property Map. Note that the ANE entries are
omitted since they have no properties (See <xref target="RFC9240" sectionFormat="of" section="3.1"/>).</t>
        <sourcecode name="" type="json"><![CDATA[
POST /costmap/pv HTTP/1.1
Host: alto.example.com
Accept: multipart/related;type=application/alto-costmap+json,
        application/alto-error+json
Content-Length: 153
Content-Type: application/alto-costmapfilter+json

{
  "cost-type": {
    "cost-mode": "array",
    "cost-metric": "ane-path"
  },
  "pids": {
    "srcs": [ "PID1" ],
    "dsts": [ "PID3", "PID4" ]
  }
}
]]></sourcecode>
        <sourcecode name="" type="json"><![CDATA[
HTTP/1.1 200 OK
Content-Length: 855
Content-Type: multipart/related; boundary=example-1;
              type=application/alto-costmap+json

--example-1
Content-ID: <costmap@alto.example.com>
Content-Type: application/alto-costmap+json

{
  "meta": {
    "vtag": {
      "resource-id": "filtered-cost-map-pv.costmap",
      "tag": "d827f484cb66ce6df6b5077cb8562b0a"
    },
    "dependent-vtags": [
      {
        "resource-id": "my-default-networkmap",
        "tag": "c04bc5da49534274a6daeee8ea1dec62"
      }
    ],
    "cost-type": {
      "cost-mode": "array",
      "cost-metric": "ane-path"
    }
  },
  "cost-map": {
    "PID1": {
      "PID3": [ "L1" ],
      "PID4": [ "L1", "L2" ]
    }
  }
}
--example-1
Content-ID: <propmap@alto.example.com>
Content-Type: application/alto-propmap+json

{
  "meta": {
    "dependent-vtags": [
      {
        "resource-id": "filtered-cost-map-pv.costmap",
        "tag": "d827f484cb66ce6df6b5077cb8562b0a"
      }
    ]
  },
  "property-map": {
  }
}
]]></sourcecode>
      </section>
      <section anchor="example-ecspv" numbered="true" toc="default">
        <name>Multipart Endpoint Cost Service Resource</name>
        <t>The following examples demonstrate the request to the "endpoint-cost-pv"
resource and the corresponding response.</t>
        <t>The request uses the Path Vector cost type in the "cost-type" field, and
queries the Maximum Reservable Bandwidth ANE property and the Persistent Entity
property for two IPv4 source and destination pairs (192.0.2.34 -&gt; 192.0.2.2 and
192.0.2.34 -&gt; 192.0.2.50) and one IPv6 source and destination pair
(2001:db8::3:1 -&gt; 2001:db8::4:1).</t>
        <t>The response consists of two parts. The first part returns the array of ANEName
for each valid source and destination pair. As one can see in <xref target="fig-pe" format="default"/>, flow
192.0.2.34 -&gt; 192.0.2.2 traverses NET2, L1 and NET1, and flows 192.0.2.34 -&gt;
192.0.2.50 and 2001:db8::3:1 -&gt; 2001:db8::4:1 traverse NET2, L2 and NET3.</t>
        <t>The second part returns the requested properties of ANEs. Assume NET1, NET2 and NET3 has
sufficient bandwidth and their "max-reservable-bandwidth" values are set to a sufficiently
large number (50 Gbps in this case). On the other hand, assume there are no
prior reservation on L1 and L2, and their "max-reservable-bandwidth" values are
the corresponding link capacity (10 Gbps for L1 and 15 Gbps for L2).</t>
        <t>Both NET1 and NET2 have a mobile edge deployed, i.e., MEC1 in NET1 and MEC2 in
NET2. Assume the ANEName for MEC1 and MEC2 are "MEC1" and "MEC2" and their
properties can be retrieved from the Property Map "ane-props". Thus, the
"persistent-entity-id" property of NET1 and NET3 are "ane-props.ane:MEC1" and
"ane-props.ane:MEC2" respectively.</t>
        <sourcecode name="" type="json"><![CDATA[
POST /endpointcost/pv HTTP/1.1
Host: alto.example.com
Accept: multipart/related;
        type=application/alto-endpointcost+json,
        application/alto-error+json
Content-Length: 362
Content-Type: application/alto-endpointcostparams+json

{
  "cost-type": {
    "cost-mode": "array",
    "cost-metric": "ane-path"
  },
  "endpoints": {
    "srcs": [
      "ipv4:192.0.2.34",
      "ipv6:2001:db8::3:1"
    ],
    "dsts": [
      "ipv4:192.0.2.2",
      "ipv4:192.0.2.50",
      "ipv6:2001:db8::4:1"
    ]
  },
  "ane-property-names": [
    "max-reservable-bandwidth",
    "persistent-entity-id"
  ]
}
]]></sourcecode>
        <sourcecode name="" type="json"><![CDATA[
HTTP/1.1 200 OK
Content-Length: 1432
Content-Type: multipart/related; boundary=example-2;
              type=application/alto-endpointcost+json

--example-2
Content-ID: <ecs@alto.example.com>
Content-Type: application/alto-endpointcost+json

{
  "meta": {
    "vtags": {
      "resource-id": "endpoint-cost-pv.ecs",
      "tag": "bb6bb72eafe8f9bdc4f335c7ed3b10822a391cef"
    },
    "cost-type": {
      "cost-mode": "array",
      "cost-metric": "ane-path"
    }
  },
  "endpoint-cost-map": {
    "ipv4:192.0.2.34": {
      "ipv4:192.0.2.2":   [ "NET3", "L1", "NET1" ],
      "ipv4:192.0.2.50":   [ "NET3", "L2", "NET2" ]
    },
    "ipv6:2001:db8::3:1": {
      "ipv6:2001:db8::4:1": [ "NET3", "L2", "NET2" ]
    }
  }
}
--example-2
Content-ID: <propmap@alto.example.com>
Content-Type: application/alto-propmap+json

{
  "meta": {
    "dependent-vtags": [
      {
        "resource-id": "endpoint-cost-pv.ecs",
        "tag": "bb6bb72eafe8f9bdc4f335c7ed3b10822a391cef"
      },
      {
        "resource-id": "ane-props",
        "tag": "bf3c8c1819d2421c9a95a9d02af557a3"
      }
    ]
  },
  "property-map": {
    ".ane:NET1": {
      "max-reservable-bandwidth": 50000000000,
      "persistent-entity-id": "ane-props.ane:MEC1"
    },
    ".ane:NET2": {
      "max-reservable-bandwidth": 50000000000,
      "persistent-entity-id": "ane-props.ane:MEC2"
    },
    ".ane:NET3": {
      "max-reservable-bandwidth": 50000000000
    },
    ".ane:L1": {
      "max-reservable-bandwidth": 10000000000
    },
    ".ane:L2": {
      "max-reservable-bandwidth": 15000000000
    }
  }
}
]]></sourcecode>
        <t>Under certain scenarios where the traversal order is not crucial, an ALTO server
implementation may choose to not follow strictly the physical traversal order
and may even obfuscate the order intentionally to preserve its own privacy or
conform to its own policies.
For example, an ALTO server may choose to aggregate NET1 and L1 as a new ANE
with ANE name "AGGR1", and aggregate NET2 and L2 as a new ANE with ANE name
"AGGR2". The "max-reservable-bandwidth" of "AGGR1" takes the value of L1, which
is smaller than that of NET1, and the "persistent-entity-id" of "AGGR1" takes
the value of NET1. The properties of "AGGR2" are computed in a similar way and
the obfuscated response is as shown below. Note that the obfuscation of Path
Vector responses is implementation-specific and is out of the scope of this
document, and developers may refer to <xref target="Security" format="default"/> for further references.</t>
        <sourcecode name="" type="json"><![CDATA[
HTTP/1.1 200 OK
Content-Length: 1263
Content-Type: multipart/related; boundary=example-2;
              type=application/alto-endpointcost+json

--example-2
Content-ID: <ecs@alto.example.com>
Content-Type: application/alto-endpointcost+json

{
  "meta": {
    "vtags": {
      "resource-id": "endpoint-cost-pv.ecs",
      "tag": "bb975862fbe3422abf4dae386b132c1d"
    },
    "cost-type": {
      "cost-mode": "array",
      "cost-metric": "ane-path"
    }
  },
  "endpoint-cost-map": {
    "ipv4:192.0.2.34": {
      "ipv4:192.0.2.2":   [ "NET3", "AGGR1" ],
      "ipv4:192.0.2.50":   [ "NET3", "AGGR2" ]
    },
    "ipv6:2001:db8::3:1": {
      "ipv6:2001:db8::4:1": [ "NET3", "AGGR2" ]
    }
  }
}
--example-2
Content-ID: <propmap@alto.example.com>
Content-Type: application/alto-propmap+json

{
  "meta": {
    "dependent-vtags": [
      {
        "resource-id": "endpoint-cost-pv.ecs",
        "tag": "bb975862fbe3422abf4dae386b132c1d"
      },
      {
        "resource-id": "ane-props",
        "tag": "bf3c8c1819d2421c9a95a9d02af557a3"
      }
    ]
  },
  "property-map": {
    ".ane:AGGR1": {
      "max-reservable-bandwidth": 10000000000,
      "persistent-entity-id": "ane-props.ane:MEC1"
    },
    ".ane:AGGR2": {
      "max-reservable-bandwidth": 15000000000,
      "persistent-entity-id": "ane-props.ane:MEC2"
    },
    ".ane:NET3": {
      "max-reservable-bandwidth": 50000000000
    }
  }
}
]]></sourcecode>
      </section>
      <section anchor="example-sse" numbered="true" toc="default">
        <name>Incremental Updates</name>
        <t>In this example, an ALTO client subscribes to the incremental update for the
multipart Endpoint Cost Service resource "endpoint-cost-pv".</t>
        <sourcecode name="" type="json"><![CDATA[
POST /updates/pv HTTP/1.1
Host: alto.example.com
Accept: text/event-stream
Content-Type: application/alto-updatestreamparams+json
Content-Length: 112

{
  "add": {
    "ecspvsub1": {
      "resource-id": "endpoint-cost-pv",
      "input": <ecs-input>
    }
  }
}
]]></sourcecode>
        <t>Based on the server-side process defined in <xref target="RFC8895" format="default"/>, the ALTO server will
send the "control-uri" first using Server-Sent Event (SSE), followed by the full
response of the multipart message.</t>
        <sourcecode name="" type="json"><![CDATA[
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: text/event-stream

event: application/alto-updatestreamcontrol+json
data: {"control-uri": "https://alto.example.com/updates/streams/123"}

event: multipart/related;boundary=example-3;
       type=application/alto-endpointcost+json,ecspvsub1
data: --example-3
data: Content-ID: <ecsmap@alto.example.com>
data: Content-Type: application/alto-endpointcost+json
data:
data: <endpoint-cost-map-entry>
data: --example-3
data: Content-ID: <propmap@alto.example.com>
data: Content-Type: application/alto-propmap+json
data:
data: <property-map-entry>
data: --example-3--
]]></sourcecode>

        <t>When the contents change, the ALTO server will publish the updates for each node
in this tree separately, based on <xref target="RFC8895" sectionFormat="of" section="6.7.3"/>.</t>
        <sourcecode name="" type="json"><![CDATA[
event: application/merge-patch+json, ecspvsub1.ecsmap@alto.example.com
data: <Merge patch for endpoint-cost-map-update>

event: application/merge-patch+json, ecspvsub1.propmap@alto.example.com
data: <Merge patch for property-map-update>
]]></sourcecode>
        <!-- TODO: the remaining issue is where to specify the json-merge-patch capability for each node -->

</section>
      <section anchor="multi-cost" numbered="true" toc="default">
        <name>Multi-cost</name>
        <t>The following examples demonstrate the request to the "multicost-pv" resource
and the corresponding response.</t>
        <t>The request asks for two cost types: the first is the Path Vector cost type, and
the second is a numerical routing cost. It also queries the Maximum Reservable
Bandwidth ANE property and the Persistent Entity property for two IPv4 source and
destination pairs (192.0.2.34 -&gt; 192.0.2.2 and 192.0.2.34 -&gt; 192.0.2.50) and one
IPv6 source and destination pair (2001:db8::3:1 -&gt; 2001:db8::4:1).</t>
        <t>The response consists of two parts. The first part returns a JSONArray that
contains two JSONValue for each requested source and destination pair: the first
JSONValue is a JSONArray of ANENames, which is the value of the Path Vector cost
type, and the second JSONValue is a JSONNumber which is the value of the routing
cost. The second part contains a Property Map that maps the ANEs to their
requested properties.</t>
        <sourcecode name="" type="json"><![CDATA[
POST /endpointcost/mcpv HTTP/1.1
Host: alto.example.com
Accept: multipart/related;
        type=application/alto-endpointcost+json,
        application/alto-error+json
Content-Length: 433
Content-Type: application/alto-endpointcostparams+json

{
  "multi-cost-types": [
    { "cost-mode": "array", "cost-metric": "ane-path" },
    { "cost-mode": "numerical", "cost-metric": "routingcost" }
  ],
  "endpoints": {
    "srcs": [
      "ipv4:192.0.2.34",
      "ipv6:2001:db8::3:1"
    ],
    "dsts": [
      "ipv4:192.0.2.2",
      "ipv4:192.0.2.50",
      "ipv6:2001:db8::4:1"
    ]
  },
  "ane-property-names": [
    "max-reservable-bandwidth",
    "persistent-entity-id"
  ]
}
]]></sourcecode>
        <sourcecode name="" type="json"><![CDATA[
HTTP/1.1 200 OK
Content-Length: 1350
Content-Type: multipart/related; boundary=example-4;
              type=application/alto-endpointcost+json

--example-4
Content-ID: <ecs@alto.example.com>
Content-Type: application/alto-endpointcost+json

{
  "meta": {
    "vtags": {
      "resource-id": "endpoint-cost-pv.ecs",
      "tag": "84a4f9c14f9341f0983e3e5f43a371c8"
    },
    "multi-cost-types": [
      { "cost-mode": "array", "cost-metric": "ane-path" },
      { "cost-mode": "numerical", "cost-metric": "routingcost" }
    ]
  },
  "endpoint-cost-map": {
    "ipv4:192.0.2.34": {
      "ipv4:192.0.2.2":   [[ "NET3", "AGGR1" ], 3],
      "ipv4:192.0.2.50":   [[ "NET3", "AGGR2" ], 2]
    },
    "ipv6:2001:db8::3:1": {
      "ipv6:2001:db8::4:1": [[ "NET3", "AGGR2" ], 2]
    }
  }
}
--example-4
Content-ID: <propmap@alto.example.com>
Content-Type: application/alto-propmap+json

{
  "meta": {
    "dependent-vtags": [
      {
        "resource-id": "endpoint-cost-pv.ecs",
        "tag": "84a4f9c14f9341f0983e3e5f43a371c8"
      },
      {
        "resource-id": "ane-props",
        "tag": "be157afa031443a187b60bb80a86b233"
      }
    ]
  },
  "property-map": {
    ".ane:AGGR1": {
      "max-reservable-bandwidth": 10000000000,
      "persistent-entity-id": "ane-props.ane:MEC1"
    },
    ".ane:AGGR2": {
      "max-reservable-bandwidth": 15000000000,
      "persistent-entity-id": "ane-props.ane:MEC2"
    },
    ".ane:NET3": {
      "max-reservable-bandwidth": 50000000000
    }
  }
}
]]></sourcecode>
      </section>
    </section>
    <section anchor="Compatibility" numbered="true" toc="default">
      <name>Compatibility with Other ALTO Extensions</name>
      <section anchor="compatibility-with-legacy-alto-clientsservers" numbered="true" toc="default">
        <name>Compatibility with Legacy ALTO Clients/Servers</name>
        <t>The multipart Filtered Cost Map resource and the multipart Endpoint Cost
Service resource has no backward compatibility issue with legacy ALTO clients and
servers. Although these two types of resources reuse the media types defined in
the base ALTO protocol for the accept input parameters, they have different
media types for responses. If the ALTO server provides these two types of
resources, but the ALTO client does not support them, the ALTO client will
ignore the resources without incurring any incompatibility problem.</t>
        <!--
The Path Vector extension on Filtered Cost Map and Endpoint Cost Service is
backward compatible with the base ALTO protocol:

- If the ALTO server provides extended capabilities "dependent-property-map" and
  "allow-compound-response" for Filtered Cost Map or Endpoint Cost Service, but
  the client only supports the base ALTO protocol, then the client will ignore
  those capabilities without conducting any incompatibility.
- If the client sends a request with the input parameter "properties", but the
  server only supports the base ALTO protocol, the server will ignore this
  field.
-->

</section>
      <section anchor="compatibility-with-multi-cost-extension" numbered="true" toc="default">
        <name>Compatibility with Multi-Cost Extension</name>
        <!-- FIXME: path-vector cannot be used in multi-cost, also no reason -->

<t>The extension defined in this document is compatible with the multi-cost
extension <xref target="RFC8189" format="default"/>. Such a resource has a media type of either
"multipart/related; type=application/alto-costmap+json" or "multipart/related;
type=application/alto-endpointcost+json". Its "cost-constraints" field must
either be "false" or not present and the Path Vector cost type must be present
in the "cost-type-names" capability field but must not be present in the
"testable-cost-type-names" field, as specified in Sections&nbsp;<xref target="pvcm-cap" format="counter"/> and <xref target="pvecs-cap" format="counter"/>.</t>
        <!--
As [](#fcm-cap) mentions, the syntax and semantics of whether "constraints" or
"or-constraints" field for the "array" cost mode is not specified in this
document. So if an ALTO server provides a resource with the "array" cost mode
and the capability "cost-constraints" or "testable-cost-types-names", the ALTO
client MAY ignore the capability "cost-constraints" or
"testable-cost-types-names" unless the implementation or future documents
specify the behavior.
-->

<!--
Cost type path-vector is not a testable cost type. Any format of constraints
SHOULD NOT be applied to cost type path-vector in order for multi-cost to
support the path-vector extension. Specifically,

- Cost type path-vector MUST NOT be included in "testable-cost-types-names" or
  "testable-cost-types".
- When "testable-cost-types-names" is omitted in the "capabilities" and
  "testable-cost-types" is omitted in the input parameters, "constraints" or
  "or-constraints" SHOULD NOT add any format of constraints on cost type
  path-vector.
-->

</section>
      <section anchor="compatibility-with-incremental-update" numbered="true" toc="default">
        <name>Compatibility with Incremental Update</name>
        <!-- FIXME: using resource-id header in MIME part -->

<t>This extension is compatible with the incremental update extension <xref target="RFC8895" format="default"/>.
ALTO clients and servers <bcp14>MUST</bcp14> follow the specifications given in Sections <xref target="RFC8895" section=
"5.2" sectionFormat="bare"/> and <xref target="RFC8895" section="6.7.3" sectionFormat="bare"/> of <xref target="RFC8895"/> to support incremental updates for a Path Vector
resource.</t>
      </section>
      <section anchor="compatibility-with-cost-calendar" numbered="true" toc="default">
        <name>Compatibility with Cost Calendar</name>
        <t>The extension specified in this document is compatible with the Cost Calendar
extension <xref target="RFC8896" format="default"/>. When used together with the Cost Calendar extension, the
cost value between a source and a destination is an array of Path Vectors, where
the k-th Path Vector refers to the abstract network paths traversed in the k-th
time interval by traffic from the source to the destination.</t>
        <t>When used with time-varying properties, e.g., maximum reservable bandwidth, a
property of a single ANE may also have different values in different time
intervals. In this case, if such an ANE has different property values in two
time intervals, it <bcp14>MUST</bcp14> be treated as two different ANEs, i.e., with different
entity identifiers. However, if it has the same property values in two time
intervals, it <bcp14>MAY</bcp14> use the same identifier.</t>
        <t>This rule allows the Path Vector extension to represent both changes of ANEs and
changes of the ANEs' properties in a uniform way. The Path Vector part is
calendared in a compatible way, and the Property Map part is not affected by the
calendar extension.</t>
        <t>The two extensions combined together can provide the historical network
correlation information for a set of source and destination pairs. A network
broker or client may use this information to derive other resource requirements
such as Time-Block-Maximum Bandwidth, Bandwidth-Sliding-Window, and
Time-Bandwidth-Product (TBP) (See <xref target="SENSE" format="default"/> for details).</t>
      </section>
    </section>
    <section anchor="SecDisc" numbered="true" toc="default">
      <name>General Discussions</name>
      <!--
Cost Calendar is proposed as a useful ALTO extension to provide the historical
cost values for Filtered Cost Map Service and Endpoint Cost Service. Since path
vector is an extension to these services, it SHOULD be compatible with Cost
Calendar extension.

However, the calendar of a path-vector (Endpoint) Cost Map is insufficient for
the application which requires the historical data of routing state information.
The (Endpoint) Cost Map can only provide the changes of the paths. But more
useful information is the history of network element properties which are
recorded in the dependent Network Element Property Map.

Before the Unified Property Map is introduced as an ALTO extension, Filtered
Cost Map Service and Endpoint Cost Service are the only resources which require
the calendar supported. Because other resources don't have to be updated
frequently. But Network Element Property Map as a use case of Unified Property
Map will collect the real-time information of the network. It SHOULD be updated
as soon as possible once the metrics of network elements change.

So the requirement is to provide a general calendar extension which not only
meets the Filtered Cost Map and Endpoint Cost Service but also applies to the
Property Map Service.
-->

<section anchor="constraint-tests-for-general-cost-types" numbered="true" toc="default">
        <name>Constraint Tests for General Cost Types</name>
        <t>The constraint test is a simple approach to query the data. It allows users to
filter the query result by specifying some boolean tests. This approach is
already used in the ALTO protocol. <xref target="RFC7285" format="default"/> and <xref target="RFC8189" format="default"/> allow ALTO
clients to specify the "constraints" and "or-constraints" tests to better
filter the result.</t>
        <t>However, the current syntax can only be used to test scalar cost types, and
cannot easily express constraints on complex cost types, e.g., the Path Vector
cost type defined in this document.</t>
        <t>In practice, developing a bespoke language for general-purpose boolean tests can
be a complex undertaking, and it is conceivable that there are some existing
implementations already (the authors have not done an exhaustive search to
determine whether there are such implementations). One avenue to develop such a
language may be to explore extending current query languages like XQuery
<xref target="XQuery" format="default"/> or JSONiq <xref target="JSONiq" format="default"/> and integrating these with ALTO.</t>
        <t>Filtering the Path Vector results or developing a more sophisticated filtering
mechanism is beyond the scope of this document.</t>
      </section>
      <section anchor="general-multi-resource-query" numbered="true" toc="default">
        <name>General Multi-Resource Query</name>
        <t>Querying multiple ALTO information resources continuously is a general
requirement. Enabling such a capability, however, must address general
issues like efficiency and consistency. The incremental update extension
<xref target="RFC8895" format="default"/> supports submitting multiple queries in a single request, and allows
flexible control over the queries. However, it does not cover the case
introduced in this document where multiple resources are needed for a single
request.</t>
        <t>This extension gives an example of using a multipart message to encode the
responses from two specific ALTO information resources: a Filtered Cost Map or
an Endpoint Cost Service, and a Property Map. By packing multiple resources in a
single response, the implication is that servers may proactively push related
information resources to clients.</t>
        <t>Thus, it is worth looking into the direction of extending the SSE mechanism as
used in the incremental update extension <xref target="RFC8895" format="default"/>, or upgrading to HTTP/2
<xref target="RFC9113" format="default"/> and HTTP/3 <xref target="RFC9114" format="default"/>, which
provides the ability to multiplex queries and to allow servers proactively send
related information resources.</t>
        <t>Defining a general multi-resource query mechanism is out of the scope of this
document.</t>
      </section>
    </section>
    <section anchor="Security" numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>This document is an extension of the base ALTO protocol, so the Security
Considerations <xref target="RFC7285" format="default"/> of the base ALTO protocol fully apply when this
extension is provided by an ALTO server.</t>
      <!-- Additional security considerations -->

<!-- ## Privacy Concerns { #pricon } -->

<t>The Path Vector extension requires additional scrutiny on three security
considerations discussed in the base protocol: confidentiality of ALTO
information (<xref target="RFC7285" sectionFormat="of" section="15.3"/>), potential undesirable guidance from
authenticated ALTO information (<xref target="RFC7285" sectionFormat="of" section="15.2"/>), and availability
of ALTO service (<xref target="RFC7285" sectionFormat="of" section="15.5"/>).</t>
      <t>For confidentiality of ALTO information, a network operator should be aware that
this extension may introduce a new risk: the Path Vector information, when used
together with sensitive ANE properties such as capacities of bottleneck links,
may make network attacks easier. For example, as the Path Vector information may
reveal more fine-grained internal network structures than the base protocol, an
attacker may identify the bottleneck link and start a distributed
denial-of-service (DDoS) attack involving minimal flows to conduct the
in-network congestion. Given the potential risk of leaking sensitive
information, the Path Vector extension is mainly applicable in scenarios where
1) the ANE structures and ANE properties do not impose security risks to the
ALTO service provider, e.g., not carrying sensitive information, or 2) the ALTO
server and client have established a reliable trust relationship, for example,
operated in the same administrative domain, or managed by business partners with
legal contracts.</t>
      <t>Three risk types are identified in <xref target="RFC7285" sectionFormat="of" section="15.3.1"/>: (1) Excess
disclosure of the ALTO service provider's data to an unauthorized ALTO client;
(2) Disclosure of the ALTO service provider's data (e.g., network topology
information or endpoint addresses) to an unauthorized third party; and (3)
Excess retrieval of the ALTO service provider's data by collaborating ALTO
clients. To mitigate these risks, an ALTO server <bcp14>MUST</bcp14> follow the guidelines in <xref target="RFC7285" sectionFormat="of" section="15.3.2"/>. Furthermore, an ALTO server <bcp14>MUST</bcp14> follow the
following additional protections strategies for risk types (1) and (3).</t>
      <t>For risk type (1), an ALTO server <bcp14>MUST</bcp14> use the authentication methods specified
in <xref target="RFC7285" sectionFormat="of" section="15.3.2"/> to authenticate the identify of an ALTO client,
and apply access control techniques to restrict unprivileged ALTO clients from
retrieving sensitive Path Vector information. For settings where the ALTO server
and client are not in the same trust domain, the ALTO server should reach
agreements with the ALTO client on protecting the confidentiality before
granting the access to Path Vector service with sensitive information. Such
agreements may include legal contracts or Digital Right Management (DRM)
techniques. Otherwise, the ALTO server <bcp14>MUST NOT</bcp14> offer the Path Vector service
carrying sensitive information to the clients unless the potential risks are
fully assessed and mitigated.</t>
      <t>For risk type (3), an ALTO service provider must be aware that persistent ANEs
may be used as "landmarks" in collaborative inferences. Thus, they should only
be used when exposing public service access points (e.g., API gateways, CDNi)
and/or when the granularity is coarse-grained (e.g., when an ANE represents an
AS, a data center or a WAN).
Otherwise, an ALTO server <bcp14>MUST</bcp14> use dynamic mappings from ephemeral ANE names to
underlying physical entities. Specifically, for the same physical entity, an
ALTO server <bcp14>SHOULD</bcp14> assign a different ephemeral ANE name when the entity appears
in the responses to different clients or even for different request from the
same client. A <bcp14>RECOMMENDED</bcp14> assignment strategy is to generate ANE names from
random numbers.</t>
      <t>Further, to protect the network topology from graph reconstruction (e.g.,
through isomorphic graph identification <xref target="BONDY" format="default"/>), the ALTO server <bcp14>SHOULD</bcp14>
consider protection mechanisms to reduce information exposure or obfuscate the
real information. When doing so, the ALTO server must be aware that information
reduction/obfuscation may lead to potential Undesirable Guidance from
Authenticated ALTO Information risk (<xref target="RFC7285" sectionFormat="of" section="15.2"/>).</t>
      <t>Thus, implementations of ALTO servers involving reduction or obfuscation of the
Path Vector information <bcp14>SHOULD</bcp14> consider reduction/obfuscation mechanisms that
can preserve the integrity of ALTO information, for example, by using minimal
feasible region compression algorithms <xref target="NOVA" format="default"/> or obfuscation protocols
<xref target="RESA" format="default"/><xref target="MERCATOR" format="default"/>. However, these obfuscation methods are experimental and
their practical applicability of these methods to the generic capability
provided by this extension is not fully assessed. The ALTO server <bcp14>MUST</bcp14> carefully
verify that the deployment scenario satisfies the security assumptions of these
methods before applying them to protect Path Vector services with sensitive
network information.</t>
      <t>For availability of ALTO service, an ALTO server should be cognizant that using
Path Vector extension might have a new risk: frequent requesting for Path
Vectors might consume intolerable amounts of the server-side computation and
storage, which can break the ALTO server. For example, if an ALTO server
implementation dynamically computes the Path Vectors for each request, the
service providing Path Vectors may become an entry point for denial-of-service
attacks on the availability of an ALTO server.</t>
      <t>To mitigate this risk, an ALTO server may consider using optimizations such as
precomputation-and-projection mechanisms <xref target="MERCATOR" format="default"/> to reduce the overhead for
processing each query. Also, an ALTO server may also protect itself from
malicious clients by monitoring the behaviors of clients and stopping serving
clients with suspicious behaviors (e.g., sending requests at a high frequency).</t>
      <t>The ALTO service providers must be aware that providing incremental updates of
the "max-reservable-bandwidth" may provide information about other consumers of
the network. For example, a change of the value may indicate one or more
reservations has been made or changed. To mitigate this risk, an ALTO server
can batch the updates and/or add a random delay before publishing the updates.</t>
    </section>
    <section anchor="IANA" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <section anchor="alto-cost-metric-registry" numbered="true" toc="default">
        <name>ALTO Cost Metric Registry</name>
        <t>This document registers a new entry to the ALTO Cost Metric Registry, as
instructed by <xref target="RFC7285" sectionFormat="of" section="14.2"/>. The new entry
is as shown below in <xref target="tbl-cost-metric" format="default"/>.</t>
        <table anchor="tbl-cost-metric" align="center">
          <name>ALTO Cost Metric Registry</name>
          <thead>
            <tr>
              <th align="left">Identifier</th>
              <th align="left">Intended Semantics</th>
              <th align="left">Security Considerations</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">ane-path</td>
              <td align="left">See <xref target="metric-spec" format="default"/></td>
              <td align="left">See <xref target="Security" format="default"/></td>
            </tr>
          </tbody>
        </table>
      </section>
      <section anchor="alto-cost-mode-registry" numbered="true" toc="default">
        <name>ALTO Cost Mode Registry</name>
        <t>This document registers a new entry to the ALTO Cost Mode Registry, as
instructed by <xref target="RFCYYY2" sectionFormat="of" section="4"/>. The new entry
is as shown below in <xref target="tbl-cost-mode" format="default"/>.</t>
        <table anchor="tbl-cost-mode" align="center">
          <name>ALTO Cost Mode Registry</name>
          <thead>
            <tr>
              <th align="left">Identifier</th>
              <th align="left">Intended Semantics</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">array</td>
              <td align="left">See <xref target="mode-spec" format="default"/></td>
            </tr>
          </tbody>
        </table>
      </section>
      <section anchor="alto-entity-domain-type-registry" numbered="true" toc="default">
        <name>ALTO Entity Domain Type Registry</name>
        <t>This document registers a new entry to the ALTO Domain Entity Type Registry, as
instructed by <xref target="RFC9240" sectionFormat="of" section="12.2"/>. The new entry
is as shown below in <xref target="tbl-entity-domain" format="default"/>.</t>
        <table anchor="tbl-entity-domain" align="center">
          <name>ALTO Entity Domain Type Registry</name>
          <thead>
            <tr>
              <th align="left">Identifier</th>
              <th align="left">Entity Identifier Encoding</th>
              <th align="left">Hierarchy &amp; Inheritance</th>
              <th align="left">Media Type of Defining Resoucrce</th>
              <th align="left">Mapping to ALTO Address Type</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">ane</td>
              <td align="left">See <xref target="entity-address" format="default"/></td>
              <td align="left">None</td>
              <td align="left">application/alto-propmap+json</td>
              <td align="left">false</td>
            </tr>
          </tbody>
        </table>
        <dl>
          <dt>
Identifier:  </dt>
          <dd>
            <t>See <xref target="domain-type" format="default"/>.</t>
          </dd>
          <dt>
Entity Identifier Encoding:  </dt>
          <dd>
            <t>See <xref target="entity-address" format="default"/>.</t>
          </dd>
          <dt>
Hierarchy:  </dt>
          <dd>
            <t>None</t>
          </dd>
          <dt>
Inheritance:  </dt>
          <dd>
            <t>None</t>
          </dd>
          <dt>
Media Type of Defining Resource:  </dt>
          <dd>
            <t>See <xref target="domain-defining" format="default"/>.</t>
          </dd>
          <dt>
Mapping to ALTO Address Type:  </dt>
          <dd>
            <t>This entity type does not map to ALTO address type.</t>
          </dd>
          <dt>
Security Considerations:  </dt>
          <dd>
            <t>In some usage scenarios, ANE addresses carried in ALTO Protocol messages may
reveal information about an ALTO client or an ALTO service provider.
Applications and ALTO service providers using addresses of ANEs will be made
aware of how (or if) the addressing scheme relates to private information and
network proximity, in further iterations of this document.</t>
          </dd>
        </dl>
      </section>
      <section anchor="alto-entity-property-type-registry" numbered="true" toc="default">
        <name>ALTO Entity Property Type Registry</name>
        <t>Two initial entries "max-reservable-bandwidth" and "persistent-entity-id" are
registered to the ALTO Domain "ane" in the "ALTO Entity Property Type Registry",
as instructed by <xref target="RFC9240" sectionFormat="of" section="12.3"/>. The two
new entries are shown below in <xref target="tbl-prop-type-reg" format="default"/> and their details can be
found in Sections <xref target="mrb-iana" format="counter"/> and <xref target="pei-iana" format="counter"/>.</t>
        <table anchor="tbl-prop-type-reg" align="center">
          <name>Initial Entries for ane Domain in the ALTO Entity Property Types Registry</name>
          <thead>
            <tr>
              <th align="left">Identifier</th>
              <th align="left">Intended Semantics</th>
              <th align="left">Media Type of Defining Resource</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">max-reservable-bandwidth</td>
              <td align="left">See <xref target="maxresbw" format="default"/></td>
              <td align="left">application/alto-propmap+json</td>
            </tr>
            <tr>
              <td align="left">persistent-entity-id</td>
              <td align="left">See <xref target="persistent-entity-id" format="default"/></td>
              <td align="left">application/alto-propmap+json</td>
            </tr>
          </tbody>
        </table>
        <section anchor="mrb-iana" numbered="true" toc="default">
          <name>New ANE Property Type: Maximum Reservable Bandwidth</name>
          <dl>
            <dt>
Identifier:  </dt>
            <dd>
              <t>"max-reservable-bandwidth"</t>
            </dd>
            <dt>
Intended Semantics:  </dt>
            <dd>
              <t>See <xref target="maxresbw" format="default"/>.</t>
            </dd>
            <dt>
Media Type of Defining Resource:  </dt>
            <dd>
              <t>application/alto-propmap+json</t>
            </dd>
            <dt>
Security Considerations:  </dt>
            <dd>
              <t>This property is essential for applications such as large-scale data
transfers or overlay network interconnection to make better choice of
bandwidth reservation. It may reveal the bandwidth usage of the underlying
network and can potentially be leveraged to reduce the cost of conducting
denial-of-service attacks. Thus, the ALTO server <bcp14>MUST</bcp14> consider protection
mechanisms including only providing the information to authorized clients, and
information reduction and obfuscation as introduced in <xref target="Security" format="default"/>.</t>
            </dd>
          </dl>
        </section>
        <section anchor="pei-iana" numbered="true" toc="default">
          <name>New ANE Property Type: Persistent Entity ID</name>
          <dl>
            <dt>
Identifier:  </dt>
            <dd>
              <t>"persistent-entity-id"</t>
            </dd>
            <dt>
Intended Semantics:  </dt>
            <dd>
              <t>See <xref target="persistent-entity-id" format="default"/>.</t>
            </dd>
            <dt>
Media Type of Defining Resource:  </dt>
            <dd>
              <t>application/alto-propmap+json</t>
            </dd>
            <dt>
Security Considerations:  </dt>
            <dd>
              <t>This property is useful when an ALTO server wants to selectively expose
certain service points whose detailed properties can be further queried by
applications. The entity IDs may consider sensitive information about the
underlying network, and an ALTO server should follow the security
considerations in <xref target="RFC9240" sectionFormat="of" section="11"/>.</t>
            </dd>
          </dl>
        </section>
      </section>
    </section>
  </middle>
  <back>

    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>

<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2046.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7285.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2387.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5322.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8189.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8895.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8896.xml"/>

<!-- draft-ietf-alto-unified-props-new (AUTH48-DONE; RFC 9240) -->
<reference anchor='RFC9240' target="https://www.rfc-editor.org/info/rfc9240">
<front>
<title>An Extension for Application-Layer Traffic Optimization (ALTO): Entity Property Maps</title>
<author initials='W' surname='Roome' fullname='Wendy Roome'>
<organization />
</author>
<author initials='S' surname='Randriamasy' fullname='Sabine Randriamasy'>
<organization />
</author>
<author initials='Y' surname='Yang' fullname='Y. Richard Yang'>
<organization />
</author>
<author initials='J' surname='Zhang' fullname='Jingxuan Zhang'>
<organization />
</author>
<author initials='K' surname='Gao' fullname='Kai Gao'>
<organization />
</author>
<date year='2022' month='August' />
</front>
<seriesInfo name="RFC" value="9240"/>
<seriesInfo name="DOI" value="10.17487/RFC9240"/>
</reference>

<!-- draft-bw-alto-cost-mode (replaced by draft-ietf-alto-cost-mode) (EDIT; RFC YYY2) -->
<reference anchor="RFCYYY2" target="https://www.rfc-editor.org/info/rfcYYY2">
<front>
<title>
A Cost Mode Registry for the Application-Layer Traffic Optimization (ALTO) Protocol
</title>
<author initials="M" surname="Boucadair" fullname="Mohamed Boucadair">
<organization>Orange</organization>
</author>
<author initials="Q" surname="Wu" fullname="Qin Wu">
<organization>Huawei</organization>
</author>
<date month="June" year="2022"/>
</front>
<seriesInfo name="RFC" value="YYY2"/>
<seriesInfo name="DOI" value="10.17487/RFCYYY2"/>
</reference>

      </references>
      <references>
        <name>Informative References</name>

<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2216.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4271.xml"/>

<!-- draft-ietf-httpbis-http2bis (RFC 9113; published) -->
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.9113.xml"/>

<!-- draft-ietf-quic-http (RFC 9114; published) -->
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.9114.xml"/>

<!-- draft-ietf-alto-performance-metrics (MISSREF)
   Have to do "long way" for correct author initials.  Also,
   "Contreras" vice "Contreras Murillo", per published RFCs
   7028, 7161, 8432, 8568, 8597, and 9013. -->
<reference anchor="ALTO-PERF-METRICS">
   <front>
      <title>ALTO Performance Cost Metrics</title>
      <author fullname="Qin Wu" initials="Q" surname="Wu">
	 <organization>Huawei</organization>
      </author>
      <author fullname="Y. Richard Yang" initials="Y" surname="Yang">
	 <organization>Yale University</organization>
      </author>
      <author fullname="Young Lee" initials="Y" surname="Lee">
	 <organization>Samsung</organization>
      </author>
      <author fullname="Dhruv Dhody" initials="D" surname="Dhody">
	 <organization>Huawei</organization>
      </author>
      <author fullname="Sabine Randriamasy" initials="S" surname="Randriamasy">
	 <organization>Nokia Bell Labs</organization>
      </author>
      <author fullname="Luis Miguel Contreras Murillo" initials="L" surname="Contreras">
	 <organization>Telefonica</organization>
      </author>
      <date month="March" day="21" year="2022" />
   </front>
   <seriesInfo name="Internet-Draft" value="draft-ietf-alto-performance-metrics-28" />
</reference>

        <reference anchor="XQuery" target="https://www.w3.org/TR/xquery-31/">
          <front>
            <title>XQuery 3.1: An XML Query Language</title>
            <author>
              <organization/>
            </author>
            <date year="2017" month="March"/>
          </front>
        </reference>

        <reference anchor="SEREDGE" target="https://ieeexplore.ieee.org/document/9110342">
          <front>
            <title>Computing at the Edge: But, what Edge?</title>
            <author initials="L." surname="Contreras" fullname="Luis M. Contreras">
              <organization>Telefonica</organization>
            </author>
            <author initials="J." surname="Baliosian" fullname="Javier Baliosian">
              <organization>Telefonica/Universidad de la República</organization>
            </author>
            <author initials="P." surname="Martı́nez-Julia" fullname="Pedro Martı́nez-Julia">
              <organization>National Institute of Information and Communications Technology, Japan</organization>
            </author>
            <author initials="J." surname="Serrat" fullname="Joan Serrat">
              <organization>Universitat Politcnica de Catalunya</organization>
            </author>
            <date year="2020" month="June"/>
          </front>
          <refcontent>Proceedings of the NOMS 2020 - 2020 IEEE/IFIP Network Operations and Management Symposium, pp. 1-9</refcontent>
	  <seriesInfo name="DOI" value="10.1109/NOMS47738.2020.9110342"/>
        </reference>

        <reference anchor="MOWIE" target="https://dl.acm.org/doi/10.1145/3405672.3409489">
          <front>
            <title>MoWIE: Toward Systematic, Adaptive Network Information Exposure as an Enabling Technique for Cloud-Based Applications over 5G and Beyond</title>
            <author initials="Y." surname="Zhang" fullname="Yunfei Zhang">
              <organization>Tencent</organization>
            </author>
            <author initials="G." surname="Li" fullname="Gang Li">
              <organization>China Mobile</organization>
            </author>
            <author initials="C." surname="Xiong" fullname="Chunshan Xiong">
              <organization>Tencent</organization>
            </author>
            <author initials="Y." surname="Lei" fullname="Yixue Lei">
              <organization>Tencent</organization>
            </author>
            <author initials="W." surname="Huang" fullname="Wei Huang">
              <organization>Tencent</organization>
            </author>
            <author initials="Y." surname="Han" fullname="Yunbo Han">
              <organization>Tencent</organization>
            </author>
            <author initials="A." surname="Walid" fullname="Anwar Walid">
              <organization>Nokia Bell Labs</organization>
            </author>
            <author initials="Y.R." surname="Yang" fullname="Yang Richard Yang">
              <organization>Yale University</organization>
            </author>
            <author initials="Z." surname="Zhang" fullname="Zhi-Li Zhang">
              <organization>University of Minnesota</organization>
            </author>
            <date year="2020" month="August"/>
          </front>
          <refcontent>Proceedings of the Workshop on Network Application Integration/CoDesign, ACM, Virtual Event USA, 20-27</refcontent>
	  <seriesInfo name="DOI" value="10.1145/3405672.3409489"/>
        </reference>

        <reference anchor="JSONiq" target="https://www.jsoniq.org/">
          <front>
            <title>The JSON Query language</title>
            <author>
              <organization>JSONiq</organization>
            </author>
            <date year="2022"/>
          </front>
        </reference>

        <reference anchor="MERCATOR" target="https://ieeexplore.ieee.org/document/8756056">
          <front>
            <title>Toward Fine-Grained, Privacy-Preserving, Efficient Multi-Domain Network Resource Discovery</title>
            <author initials="Q." surname="Xiang" fullname="Qiao Xiang">
              <organization>Yale University</organization>
            </author>
            <author initials="J." surname="Zhang" fullname="Jingxuan Zhang">
              <organization>Tongji University</organization>
            </author>
            <author initials="X." surname="Wang" fullname="Xin Wang">
              <organization>Tongji University</organization>
            </author>
            <author initials="Y." surname="Liu" fullname="Yang Liu">
              <organization>Tongji University</organization>
            </author>
            <author initials="C." surname="Guok" fullname="Chin Guok">
              <organization>ESNet</organization>
            </author>
            <author initials="F." surname="Le" fullname="Franck Le">
              <organization>IBM T.J. Watson Research Center</organization>
            </author>
            <author initials="J." surname="MacAuley" fullname="John MacAuley">
              <organization>ESNet</organization>
            </author>
            <author initials="H." surname="Newman" fullname="Harvey Newman">
              <organization>Caltech</organization>
            </author>
            <author initials="Y.R." surname="Yang" fullname="Yang Richard Yang">
              <organization>Yale University</organization>
            </author>
            <date year="2019" month="August"/>
          </front>
          <refcontent>IEEE/ACM, IEEE Journal on Selected Areas of Communication, 37(8): 1924-1940</refcontent>
	  <seriesInfo name="DOI" value="10.1109/JSAC.2019.2927073"/>
        </reference>

<!-- AQ; title doesn't match -->
        <reference anchor="NOVA" target="https://doi.org/10.1109/IWQoS.2017.7969117">
          <front>
            <title>An objective-driven on-demand network abstraction for adaptive applications</title>
            <author initials="K." surname="Gao" fullname="Kai Gao">
              <organization>Sichuan University</organization>
            </author>
            <author initials="Q." surname="Xiang" fullname="Qiao Xiang">
              <organization>Yale University</organization>
            </author>
            <author initials="X." surname="Wang" fullname="Xin Wang">
              <organization>Tongji University</organization>
            </author>
            <author initials="Y.R." surname="Yang" fullname="Yang Richard Yang">
              <organization>Yale University</organization>
            </author>
            <author initials="J." surname="Bi" fullname="Jun Bi">
              <organization>Tsinghua University</organization>
            </author>
            <date year="2019"/>
          </front>
          <refcontent>IEEE/ACM Transactions on Networking (TON) Vol 27, no. 2 (2019): 805-818</refcontent>
        </reference>

        <reference anchor="RESA" target="https://ieeexplore.ieee.org/document/8665783">
          <front>
            <title>Fine-grained, multi-domain network resource abstraction as a fundamental primitive to enable high-performance, collaborative data sciences</title>
            <author initials="Q." surname="Xiang" fullname="Qiao Xiang">
              <organization>Yale University</organization>
            </author>
            <author initials="J." surname="Zhang" fullname="Jingxuan Zhang">
              <organization>Tongji University</organization>
            </author>
            <author initials="X." surname="Wang" fullname="Xin Wang">
              <organization>Tongji University</organization>
            </author>
            <author initials="Y." surname="Liu" fullname="Yang Liu">
              <organization>Tongji University</organization>
            </author>
            <author initials="C." surname="Guok" fullname="Chin Guok">
              <organization>ESNet</organization>
            </author>
            <author initials="F." surname="Le" fullname="Franck Le">
              <organization>IBM T.J. Watson Research Center</organization>
            </author>
            <author initials="J." surname="MacAuley" fullname="John MacAuley">
              <organization>ESNet</organization>
            </author>
            <author initials="H." surname="Newman" fullname="Harvey Newman">
              <organization>Caltech</organization>
            </author>
            <author initials="Y.R." surname="Yang" fullname="Yang Richard Yang">
              <organization>Yale University</organization>
            </author>
            <date year="2019" month="March"/>
          </front>
          <refcontent>Proceedings of the Super Computing 2018, 5:1-5:13</refcontent>
	  <seriesInfo name="DOI" value="10.1109/SC.2018.00008"/>
        </reference>

        <reference anchor="BOXOPT" target="https://ojs.aaai.org//index.php/AAAI/article/view/3984">
          <front>
            <title>Optimizing in the Dark: Learning an Optimal Solution through a Simple Request Interface</title>
            <author initials="Q." surname="Xiang" fullname="Qiao Xiang">
              <organization>Yale University</organization>
            </author>
            <author initials="H." surname="Yu" fullname="Haitao Yu">
              <organization>Tongji University</organization>
            </author>
            <author initials="J." surname="Aspnes" fullname="James Aspnes">
              <organization>Yale University</organization>
            </author>
            <author initials="F." surname="Le" fullname="Franck Le">
              <organization>IBM T.J. Watson Research Center</organization>
            </author>
            <author initials="L." surname="Kong" fullname="Linghe Kong">
              <organization>Shanghai Jiao Tong University</organization>
            </author>
            <author initials="Y.R." surname="Yang" fullname="Yang Richard Yang">
              <organization>Yale University</organization>
            </author>
            <date year="2019" month="July"/>
          </front>
          <refcontent> Proceedings of the AAAI Conference on Artificial Intelligence 33, 1674-1681</refcontent>
	  <seriesInfo name="DOI" value="10.1609/aaai.v33i01.33011674 "/>
        </reference>

        <reference anchor="SENSE" target="https://www.es.net/network-r-and-d/sense/">
          <front>
            <title>Software Defined Networking (SDN) for End-to-End Networked Science at the Exascale</title>
            <author>
              <organization>ESnet</organization>
            </author>
            <date year="2019"/>
          </front>
        </reference>

        <reference anchor="HUG" target="https://dl.acm.org/doi/10.5555/2930611.2930638">
          <front>
            <title>HUG: multi-resource fairness for correlated and elastic demands</title>
            <author initials="M." surname="Chowdhury" fullname="Mosharaf Chowdhury">
              <organization>University of Michigan</organization>
            </author>
            <author initials="Z." surname="Liu" fullname="Zhenhua Liu">
              <organization>Stony Brook University</organization>
            </author>
            <author initials="A." surname="Ghodsi" fullname="Ali Ghodsi">
              <organization>UC Berkeley, Databricks Inc.</organization>
            </author>
            <author initials="I." surname="Stoica" fullname="Ion Stoica">
              <organization>UC Berkeley, Databricks Inc.</organization>
            </author>
            <date year="2016" month="March"/>
          </front>
          <refcontent>13th USENIX Symposium on Networked Systems Design and Implementation (NSDI 16) (Santa Clara, CA, 407-424</refcontent>
        </reference>

        <reference anchor="SWAN" target="https://dl.acm.org/doi/10.1145/2486001.2486012">
          <front>
            <title>Achieving high utilization with software-driven WAN</title>
            <author initials="C." surname="Hong" fullname="Chi-Yao Hong">
              <organization>Microsoft</organization>
            </author>
            <author initials="S." surname="Kandula" fullname="Srikanth Kandula">
              <organization>Microsoft</organization>
            </author>
            <author initials="R." surname="Mahajan" fullname="Ratul Mahajan">
              <organization>Microsoft</organization>
            </author>
            <author initials="M." surname="Zhang" fullname="Ming Zhang">
              <organization>Microsoft</organization>
            </author>
            <author initials="V." surname="Gill" fullname="Vijay Gill">
              <organization>Microsoft</organization>
            </author>
            <author initials="M." surname="Nanduri" fullname="Mohan Nanduri">
              <organization>Microsoft</organization>
            </author>
            <author initials="R." surname="Wattenhofer" fullname="Roger Wattenhofer">
              <organization>ETH</organization>
            </author>
            <date year="2013" month="August"/>
          </front>
          <refcontent>Proceedings of the ACM SIGCOMM 2013 Conference on SIGCOMM (SIGCOMM '13), ACM, New York, NY, USA, 15-26</refcontent>
	  <seriesInfo name="DOI" value="10.1145/2486001.2486012"/>
        </reference>

        <reference anchor="CLARINET" target="https://dl.acm.org/doi/abs/10.5555/3026877.3026911">
          <front>
            <title>CLARINET: WAN-aware optimization for analytics queries</title>
            <author initials="R." surname="Viswanathan" fullname="Raajay Viswanathan">
              <organization>University of Wisconsin-Madison</organization>
            </author>
            <author initials="G." surname="Ananthanarayanan" fullname="Ganesh Ananthanarayanan">
              <organization>Microsoft</organization>
            </author>
            <author initials="A." surname="Akella" fullname="Aditya Akella">
              <organization>University of Wisconsin-Madison</organization>
            </author>
            <date year="2016" month="November"/>
          </front>
          <refcontent>12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16), USENIX Association, Savannah, GA, 435-450</refcontent>
        </reference>

        <reference anchor="G2" target="https://dl.acm.org/doi/10.1145/3366707">
          <front>
            <title>On the Bottleneck Structure of Congestion-Controlled Networks</title>
            <author initials="J." surname="Ros-Giralt" fullname="Jordi Ros-Giralt">
              <organization>Reservoir Labs</organization>
            </author>
            <author initials="A." surname="Bohara" fullname="Atul Bohara">
              <organization>Reservoir Labs</organization>
            </author>
            <author initials="S." surname="Yellamraju" fullname="Sruthi Yellamraju">
              <organization>Reservoir Labs</organization>
            </author>
            <author initials="M.H." surname="Langston" fullname="M. Harper Langston">
              <organization>Reservoir Labs</organization>
            </author>
            <author initials="R." surname="Lethin" fullname="Richard Lethin">
              <organization>Reservoir Labs</organization>
            </author>
            <author initials="Y." surname="Jiang" fullname="Yuang Jiang">
              <organization>Yale University</organization>
            </author>
            <author initials="L." surname="Tassiulas" fullname="Leandros Tassiulas">
              <organization>Yale University</organization>
            </author>
            <author initials="J." surname="Li" fullname="Josie Li">
              <organization>University of Virginia</organization>
            </author>
            <author initials="Y." surname="Tan" fullname="Yuanlong Tan">
              <organization>University of Virginia</organization>
            </author>
            <author initials="M." surname="Veeraraghavan" fullname="Malathi Veeraraghavan">
              <organization>University of Virginia</organization>
            </author>
            <date year="2019" month="December"/>
          </front>
          <refcontent>Proceedings of the ACM on Measurement and Analysis of Computing Systems, Volume 3, Issue 3, pp 1-31</refcontent>
	  <seriesInfo name="DOI" value="10.1145/3366707"/>
        </reference>

        <reference anchor="BONDY" target="https://onlinelibrary.wiley.com/doi/10.1002/jgt.3190010306">
          <front>
            <title>Graph reconstruction--a survey</title>
            <author initials="J.A." surname="Bondy" fullname="John Adrian Bondy">
              <organization>University of Waterloo</organization>
            </author>
            <author initials="R.L." surname="Hemminger" fullname="Robert Hemminger">
              <organization>Vanderbilt University</organization>
            </author>
            <date year="1977"/>
          </front>
          <refcontent>Journal of Graph Theory, Volume 1, Issue 3, pp 227-268</refcontent>
	  <seriesInfo name="DOI" value="10.1002/jgt.3190010306"/>
        </reference>

        <reference anchor="UNICORN" target="https://www.sciencedirect.com/science/article/abs/pii/S0167739X18302413?via%3Dihub">
          <front>
            <title>Unicorn: Unified Resource Orchestration for Multi-Domain, Geo-Distributed Data Analytics</title>
            <author initials="Q." surname="Xiang" fullname="Qiao Xiang">
              <organization>Yale University</organization>
            </author>
            <author initials="S." surname="Chen" fullname="Shenshen Chen">
              <organization>Tongji University</organization>
            </author>
            <author initials="K." surname="Gao" fullname="Kai Gao">
              <organization>Tsinghua University</organization>
            </author>
            <author initials="H." surname="Newman" fullname="Harvey Newman">
              <organization>California Institute of Technology</organization>
            </author>
            <author initials="I." surname="Taylor" fullname="Ian Taylor">
              <organization>Cardiff University</organization>
            </author>
            <author initials="J." surname="Zhang" fullname="Jingxuan Zhang">
              <organization>Tongji University</organization>
            </author>
            <author initials="Y.R." surname="Yang" fullname="Yang Richard Yang">
              <organization>Yale University</organization>
            </author>
            <date year="2017" month="August"/>
          </front>
          <refcontent>2017 IEEE SmartWorld, Ubiquitous Intelligence Computing, Advanced Trusted Computed, Scalable Computing Communications, Cloud Big Data Computing, Internet of People and Smart City Innovation (SmartWorld/SCALCOM/UIC/ATC/CBDCom/IOP/SCI), 1-6</refcontent>
	  <seriesInfo name="DOI" value="10.1016/j.future.2018.09.048"/>
        </reference>
      </references>
    </references>
    <section anchor="acknowledgments" numbered="true" toc="default">
      <name>Acknowledgments</name>
      <t>The authors would like to thank discussions with <contact fullname="Andreas Voellmy"/>, <contact fullname="Erran Li"/>, <contact fullname="Haibin Song"/>, <contact fullname="Haizhou Du"/>, <contact fullname="Jiayuan Hu"/>, <contact fullname="Qiao Xiang"/>, <contact fullname="Tianyuan Liu"/>, <contact 
fullname="Xiao Shi"/>, <contact fullname="Xin Wang"/>, and <contact fullname="Yan Luo"/>. The authors thank <contact fullname="Greg Bernstein"/>, <contact fullname="Dawn Chen"/>, <contact fullname="Wendy Roome"/>, and
<contact fullname="Michael Scharf"/> for their contributions to earlier drafts.</t>
      <t>The authors would also like to thank <contact fullname="Tim Chown"/>, <contact fullname="Luis Contreras"/>, <contact fullname="Roman Danyliw"/>,
<contact fullname="Benjamin Kaduk"/>, <contact fullname="Erik Kline"/>, <contact fullname="Suresh Krishnan"/>, <contact fullname="Murray Kucherawy"/>, <contact fullname="Warren Kumari"/>, <contact fullname="Danny Lachos"/>, <contact fullname="Francesca Palombini"/>, <contact fullname="Eric Vyncke"/>, <contact fullname="Samuel Weiler"/>, and <contact fullname="Qiao Xiang"/>
whose feedback and suggestions are invaluable to improve the practicability and
conciseness of this document, and <contact fullname="Mohamed Boucadair"/>, <contact fullname="Martin Duke"/>, <contact fullname="Vijay Gurbani"/>,
<contact fullname="Jan Seedorf"/>, and <contact fullname="Qin Wu"/> who provide great support and guidance.</t>
    </section>
    <section anchor="revision-logs-to-be-removed-before-publication" numbered="true" toc="default">
      <name>Revision Logs (To be removed before publication)</name>
      <section anchor="changes-since-20" numbered="true" toc="default">
        <name>Changes since -20</name>
        <t>Reivision -21</t>
        <ul spacing="normal">
          <li>changes the normative requirement on protecting confidentiality of PV
information with softer language</li>
        </ul>
      </section>
      <section anchor="changes-since-19" numbered="true" toc="default">
        <name>Changes since -19</name>
        <t>Revision -20</t>
        <ul spacing="normal">
          <li>changes the IANA registry information</li>
          <li>adopts the comments from IESG reviews</li>
        </ul>
      </section>
      <section anchor="changes-since-18" numbered="true" toc="default">
        <name>Changes since -18</name>
        <t>Revision -19</t>
        <ul spacing="normal">
          <li>adds detailed examples for use cases</li>
          <li>clarify terms with ambiguous meanings</li>
        </ul>
      </section>
      <section anchor="changes-since-17" numbered="true" toc="default">
        <name>Changes since -17</name>
        <t>Revision -18</t>
        <ul spacing="normal">
          <li>changes the specification for content-id to conform to <xref target="RFC2387" format="default"/> and <xref target="RFC5322" format="default"/></li>
          <li>adds IPv6 examples</li>
        </ul>
      </section>
      <section anchor="changes-since-16" numbered="true" toc="default">
        <name>Changes since -16</name>
        <t>Revision -17</t>
        <ul spacing="normal">
          <li>adds items for media type of defining resources in IANA considerations</li>
        </ul>
      </section>
      <section anchor="changes-since-15" numbered="true" toc="default">
        <name>Changes since -15</name>
        <t>Revision -16</t>
        <ul spacing="normal">
          <li>resolves the compatibility with the Multi-Cost extension (RFC 8189)</li>
          <li>adds media types of defining resources for ANE property types (for IANA
registration)</li>
        </ul>
      </section>
      <section anchor="changes-since-14" numbered="true" toc="default">
        <name>Changes since -14</name>
        <t>Revision -15</t>
        <ul spacing="normal">
          <li>fixes the IDNits warnings,</li>
          <li>fixes grammar issues,</li>
          <li>addresses the comments in the AD review.</li>
        </ul>
      </section>
      <section anchor="changes-since-13" numbered="true" toc="default">
        <name>Changes since -13</name>
        <t>Revision -14</t>
        <ul spacing="normal">
          <li>addresses the comments in the chair review,</li>
          <li>fixes most issues raised by IDNits.</li>
        </ul>
      </section>
      <section anchor="changes-since-12" numbered="true" toc="default">
        <name>Changes since -12</name>
        <t>Revision -13</t>
        <ul spacing="normal">
          <li>changes the abstract based on the chairs' reviews</li>
          <li>integrates Richard's responds to WGLC reviews</li>
        </ul>
      </section>
      <section anchor="changes-since-11" numbered="true" toc="default">
        <name>Changes since -11</name>
        <t>Revision -12</t>
        <ul spacing="normal">
          <li>clarifies the definition of ANEs in a similar way as how Network Elements is
defined in <xref target="RFC2216" format="default"/></li>
          <li>restructures several paragraphs that are not clear (Sec 3, Path Vector bullet, Sec 4.2, Sec 5.1.3, Sec 6.2.4, Sec 6.4.2, Sec 9.3)</li>
          <li>uses "ALTO Entity Domain Type Registry"</li>
        </ul>
      </section>
      <section anchor="changes-since-10" numbered="true" toc="default">
        <name>Changes since -10</name>
        <t>Revision -11</t>
        <ul spacing="normal">
          <li>replaces "part"  with "components" in the abstract;</li>
          <li>identifies additional requirements (AR) derived from the flow scheduling
example, and introduces how the extension addresses the additional
requirements</li>
          <li>fixes the inconsistent use of "start" parameter in multipart responses;</li>
          <li>specifies explicitly how to handle "cost-constraints";</li>
          <li>uses the latest IANA registration mechanism defined in
<xref target="RFC9240" format="default"/>;</li>
          <li>renames "persistent-entities" to "persistent-entity-id";</li>
          <li>makes "application/alto-propmap+json" as the media type of defining resources
for the "ane" domain;</li>
          <li>updates the examples;</li>
          <li>adds the discussion on ephemeral and persistent ANEs.</li>
        </ul>
      </section>
      <section anchor="changes-since-09" numbered="true" toc="default">
        <name>Changes since -09</name>
        <t>Revision -10</t>
        <ul spacing="normal">
          <li>
            <t>revises the introduction which
            </t>
            <ul spacing="normal">
              <li>extends the scope where the PV extension can be applied beyond the "path
correlation" information</li>
            </ul>
          </li>
          <li>brings back the capacity region use case to better illustrate the problem</li>
          <li>revises the overview to explain and defend the concepts and decision choices</li>
          <li>fixes inconsistent terms, typos</li>
        </ul>
      </section>
      <section anchor="changes-since-08" numbered="true" toc="default">
        <name>Changes since -08</name>
        <t>This revision</t>
        <ul spacing="normal">
          <li>fixes a few spelling errors</li>
          <li>emphasizes that abstract network elements can be generated on demand in both
introduction and motivating use cases</li>
        </ul>
      </section>
      <section anchor="changes-since-version-06" numbered="true" toc="default">
        <name>Changes Since Version -06</name>
        <ul spacing="normal">
          <li>
            <t>We emphasize the importance of the path vector extension in two aspects:  </t>
            <ol spacing="normal" type="1"><li>It expands the problem space that can be solved by ALTO, from preferences
of network paths to correlations of network paths.</li>
              <li>It is motivated by new usage scenarios from both application's and
network's perspectives.</li>
            </ol>
          </li>
          <li>More use cases are included, in addition to the original capacity region use
case.</li>
          <li>We add more discussions to fully explore the design space of the path vector
extension and justify our design decisions, including the concept of abstract
network element, cost type (reverted to -05), newer capabilities and the
multipart message.</li>
          <li>Fix the incremental update process to be compatible with SSE -16 draft, which
uses client-id instead of resource-id to demultiplex updates.</li>
          <li>Register an additional ANE property (i.e., persistent-entities) to cover all
use cases mentioned in the draft.</li>
        </ul>
      </section>
    </section>
  </back>

</rfc>
