<?xml version='1.0' encoding='utf-8'?>

<!-- Compiles with XML2RFC v3 https://xml2rfc.tools.ietf.org/cgi-bin/xml2rfc-dev.cgi -->

<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="3"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<?rfc compact="no"?>
<?rfc subcompact="no"?>
<?rfc authorship="yes"?>
<?rfc tocappendix="yes"?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="info" docName="draft-ietf-raw-architecture-25"
     ipr="trust200902" obsoletes="" submissionType="IETF"
     xml:lang="en" version="3">
  <front>
    <title abbrev="RAW Architecture">Reliable and Available Wireless
    Architecture</title>

   <author initials='P' surname='Thubert' fullname='Pascal Thubert' role='editor'>
      <organization abbrev=''>Without Affiliation</organization> 
      <address>
         <postal>
            <city>Roquefort-les-Pins</city>
            <code>06330</code>
          <country>France</country>
         </postal>
         <email>pascal.thubert@gmail.com</email>
      </address>
   </author>


    <date/>
    <area>Routing Area</area>
    <workgroup>DetNet</workgroup>
    <keyword>Draft</keyword>
    <abstract>
      <t>

      Reliable and Available Wireless (RAW) extends the reliability and
      availability of DetNet to networks composed of any combination of wired and
      wireless segments.

      The RAW Architecture leverages and extends RFC 8655, the
      Deterministic Networking Architecture, to adapt to challenges that
      affect prominently the wireless medium, notably intermittent transmission loss.

      This document defines a network control loop that optimizes the use of
      constrained bandwidth and energy while assuring the expected
      DetNet services.

      The loop involves a new Point of Local Repair (PLR) function in
      the DetNet service sublayer that dynamically selects the DetNet 
      path(s) for packets to route around local connectivity degradation.

      </t>
    </abstract>
  </front>
  <middle>

    <section numbered="true" toc="default">
      <name>Introduction</name>

      <t>
   Deterministic Networking aims at providing bounded latency and eliminating
   congestion loss, even when co-existing with best-effort traffic.
   it provides the ability to carry
   specified unicast or multicast data flows for real-time applications
   with extremely low packet loss rates and assured maximum end-to-end
   delivery latency.  A description of the general background and
   concepts of DetNet can be found in [RFC8655].
      </t>
   <t>
   DetNet and the related IEEE 802.1
   Time-Sensitive networking (TSN) initially focused on wired
   infrastructure, which provides a more stable communication channel
   than wireless networks.
   Wireless networks operate on a shared medium where uncontrolled interference,
   including the self-induced multipath fading, may cause intermittent transmission losses.
   Fixed and mobile obstacles and reflectors may block or alter the signal,
   causing transient and unpredictable variations of the throughput and packet
   delivery ratio (PDR) of a wireless link. This adds new dimensions to the
   statistical effects that affect the quality and reliability of the link.
   </t>
   <t>
   Nevertheless, deterministic capabilities are required in a number of wireless
   use cases as well <xref target="I-D.ietf-raw-use-cases"/>. With scheduled
   radios such as Time Slotted Channel Hopping (TSCH) and Orthogonal Frequency
   Division Multiple Access (OFDMA) <xref target="I-D.ietf-raw-technologies"/>
   being developed to provide determinism over wireless links at the lower
   layers, providing DetNet capabilities has become possible.
   </t>
   <t>
   Reliable and Available Wireless (RAW) takes up the challenge of providing
   highly available and reliable end-to-end performances in a DetNet network that may include
   wireless segments. To achieve this, RAW leverages all the possible transmission 
   diversity and redundancy to assure packet delivery, while optimizing the use of the shared spectrum to preserve bandwidth and save energy.
    To that effect, RAW defines Protection Paths can be activated dynamically upon failures and a control loop that dynamically controls the activation and deactivation of the feasible Protection Paths to react quickly to intermittent losses.
   </t>

    <t>
   In addition, RAW includes the concept of a lower-layer API (LL
   API), that provides an interface between the
   lower layer (e.g.,  wireless) technology and the DetNet layers. The LL API is
   technology  dependent as what the lower layers expose towards the DetNet layers may vary. 
   Furthermore, the different RAW technologies are equipped with different 
   reliability features, e.g., short range broadcast, Multiple-User,
   Multiple-Input, and Multiple-Output (MUMIMO), PHY rate and 
   other Modulation Coding Scheme (MCS) adaptation, coding and retransmissions methods, constructive 
   interference and overhearing, see <xref target="I-D.ietf-raw-technologies"/> for details.
   <!-- The LL API enables interactions between the -->
   reliability functions provided by the lower layer and the 
   reliability functions provided by DetNet. That is, the LL API makes 
   cross-layer optimization possible for the reliability functions of 
   different layers depending on the actual exposure provided via the LL API
   by the given RAW technology. 
   The Dynamic Link Exchange Protocol (DLEP) <xref target="RFC8175"/> is an
   example protocol that can be used to implement the LL API.
    </t>
   <t>This document presents the RAW problem and associated terminology in
   <xref target="problem"/>, presents a conceptual model for RAW in
   <xref target="model"/>, and, based on that model, elaborates on an
   in-network optimization control loop in <xref target="ooda"/>.
   </t>
    </section>
    <!-- Introduction -->
    <!--  000000000000000000000    -->


   <section anchor="terms" numbered="true" toc="default">
    <name>Terminology</name>

    <t>RAW reuses terminology defined for DetNet in the <xref target="RFC8655">
    "Deterministic Networking Architecture"</xref>, e.g., PREOF for Packet
    Replication, Elimination and Ordering Functions. RAW inherits and augments
    the IETF art of Protection as seen in DetNet and Traffic Engineering.
    </t>
    <t>
    RAW also reuses terminology defined for MPLS in <xref target=
    "RFC4427" format="default"/> such as the term recovery as covering
    both Protection and Restoration, a number of recovery types.
    That document defines a number of concepts like recovery domain that are
    used in the RAW mechanisms, and creates the new term recovery graph.
    A recovery graph associates a topological graph with usage metadata that
    represents how the paths within the recovery graph are built.
    </t>
    <t>
    RAW also reuses terminology defined for RSVP-TE in <xref target=
    "RFC4090" format="default"/> such as the Point of Local Repair (PLR).
    The concept of backup path is generalized with protection path, which is the
    term mostly found in recent standards and used in this document.
    </t>
    <t>
    RAW also reuses terminology defined for 6TiSCH in <xref target=
    "RFC9030" format="default"/> and equates the 6TiSCH concept of a Track with 
   that of a recovery graph.
    </t>
    <t>In an quantic analogy, a recovery graph is to a path what an atomic orbital is to
    a planetary orbit, in that the electron has a probability of presence within
    a known shape as opposed to a deterministic trajectory.
    </t>
    <t>
    The concept of recovery graph is agnostic to
    the underlying technology and applies but is not limited to any full or
    partial wireless mesh.
    RAW specifies strict and loose recovery graphs depending on whether the path is fully
    controled by RAW or traverses an opaque network where RAW cannot observe
    and control the individual hops.
    </t>
    <t>
    RAW uses the following terminology and acronyms:
    </t>

    <section><name>Acronyms</name>
    <section><name>ARQ</name>
    <t>
   Automatic Repeat Request, a well-known mechanism, enabling an acknowledged
   transmission with retries to mitigate errors and loss. ARQ may be 
   implemented at various layers in a network. ARQ is typically implemented at
   Layer-2, per hop and not end-to-end in wireless networks. ARQ improves 
   delivery on lossy wireless. Additionally, ARQ retransmission may be further
   limited by a bounded time to meet end-to-end packet latency constraints. 
   Additional details and considerations for ARQ are detailed in 
   <xref target="RFC3366"/>.   
    </t>
    </section>
        
    <section><name>ETX</name>
    <t>
    Expected Transmission Count: a statistical metric that represents the expected total number of packet transmissions (including retransmissions) required to successfully deliver a packet along a path, used by 6TiSCH <xref target="RFC6551"/>.
    </t>
    </section>
    
    <section><name>FEC</name>
    <t>
    Forward Error Correction, adding redundant data to protect against a partial
    loss without retries.
    </t>
    </section>
    
    <section><name>HARQ</name>
    <t>
    Hybrid Automatic Repeat Request, combining FEC and ARQ.
    </t>
    </section>
    
    <section><name>ISM</name>
    <t>
    
    The industrial, scientific, and medical (ISM) radio band refers to a group of radio bands or parts of the radio spectrum (e.g., 2.4 GHz and 5 GHz) that are internationally reserved for the use of radio frequency (RF) energy intended for scientific, medical, and industrial requirements, e.g., by microwaves, depth radars, and medical diathermy machines. Cordless phones, Bluetooth and LoWPAN devices, near-field communication (NFC) devices, garage door openers, baby monitors, and Wi-Fi networks may all use the ISM frequencies, although these low-power transmitters are not considered to be ISM devices. In general, communications equipment operating in ISM bands must tolerate any interference generated by ISM applications, and users have no regulatory protection from ISM device operation in these bands.
    
    </t>
    </section>
    
    <section><name>LQI</name>
    <t>
    Link-Quality Indication: a cumulative value used in multi-hop networks to assess the cost of a link. LQI values can be modified at each step as the massage propagates through the mesh matrix. Messages taking different paths through a mesh may have different LQI values, the path with the best LQI is chosen for subsequent messages. Outgoing LQI values can be calculated from coherent (demodulated) Packet Error Rates (PER), RSSI and incoming LQI values. The exact method depends on the network stack being used.
    </t>
    </section>
    
    <section><name>OAM</name>
    <t>
      OAM stands for Operations, Administration, and Maintenance, and
      covers the processes, activities, tools, and standards involved
      with operating, administering, managing, and maintaining any
      system.  This document uses the terms Operations, Administration,
      and Maintenance, in conformance with the <xref target="RFC6291">
      'Guidelines for the Use of the "OAM" Acronym in the IETF'</xref>
      and the system observed by the RAW OAM is the recovery graph.

     </t>
    </section>
    <section><name>OODA</name>
    <t>
    Observe, Orient, Decide, Act. The OODA Loop is a
    conceptual cyclic model developed by USAF Colonel John Boyd, and that is
    applicable in multiple domains where agility can provide benefits against
    brute force. In the context of RAW, OODA is applied to network
    control and convergence. 
    </t>
    </section>
    <section><name>RSSI</name>
    <t>
    Received Signal Strength Indication (a.k.a. Energy Detection Level): a measure of incoherent (raw) RF power in a channel. The RF power can come from any source: other transmitters using the same technology, other radio technology using the same band, or background radiation. For a single-hop, RSSI may be used for LQI.
    </t>
    </section>
    
    
    <section><name>SNR</name>
    <t>
    Signal-Noise Ratio (a.k.a S/N): a measure used in science and engineering that compares the level of a desired signal to the level of background noise. SNR is defined as the ratio of signal power to noise power, often expressed in decibels.
    </t>
    </section>

    </section><!--Acronyms-->

    <section><name>Link and Direction</name>

    <section><name>Flapping</name>
    <t>
    In the context of RAW, a link flaps when the reliability of the wireless
    connectivity drops abruptly for a short period of time, typically of a
    subsecond to seconds duration.
    </t>
    </section>

    <section><name>Uplink</name>
    <t>
     Connection from end-devices to data communication equipment. In the
     context of wireless, uplink refers to the connection between a station
     (STA) and a controller (AP) or a User Equipment (UE) to a Base Station (BS)
     such as a 3GPP 5G gNodeB (gNb).
     </t>
    </section>

    <section><name>Downlink</name>
    <t>
      The reverse direction from uplink.
     </t>
    </section>

    <section><name>Downstream</name>
    <t>
     Following the direction of the flow data path along a recovery graph.
     </t>
    </section>

    <section><name>Upstream</name>
    <t>
     Against the direction of the flow data path along a recovery graph.
     </t>
     </section>

    </section><!-- Link and Direction -->


    <section anchor="pt"><name>Path and Recovery Graphs</name>
    <section><name>Path</name>

    <t>
    Quoting section 1.1.3 of <xref target="RFC1122"/>:
    </t>
    <blockquote>
    At a given moment, all the IP datagrams from a particular source host to a
    particular destination host typically traverse the same sequence of
    gateways.  We use the term "path" for this sequence.  Note that a path is
    unidirectional; it is not unusual to have different paths in the two
    directions between a given host pair.
    </blockquote>
    <t>
    Section 2 of <xref target="I-D.irtf-panrg-path-properties"/> points to a
    longer, more modern definition of path, which begins as follows:
    </t>
    <blockquote>
    A sequence of adjacent path elements over which a packet can
    be transmitted, starting and ending with a node.  A path is
    unidirectional.  Paths are time-dependent, i.e., the sequence of
    path elements over which packets are sent from one node to another
    may change.  A path is defined between two nodes.
    </blockquote>
    <t>
    It follows that the general acceptance of a path is a linear sequence of
    links and nodes, as opposed to a multi-dimensional graph, defined by the
    experience of the packet that went from a node A to a node B.
    In the context of this document, a path is observed by following one copy
    or one fragment of a packet that conserves its uniqueness and integrity.
    
    For instance, if C replicates to E and F and D eliminates duplicates,
    a packet from A to B can experience 2 paths, A->C->E->D->B and
    A->C->F->D->B. Those path are called protection paths. Protection
    paths may be fully non-congruent, and alternatively may intersect at
    replication or elimination points.
    
    </t>
    <t> With DetNet and RAW,
    a packet may be duplicated, fragmented, and network-coded, and the various
    byproducts may travel different paths that are not necessarily end-to-end
    between A and B; we refer to that complex scenario as a DetNet path.
    As such, the DetNet path extends the above description of a path,
    but it still matches the experience of a packet that traverses the network.
    </t>
    <t>
    With RAW, the path experienced by a packet is subject to change from one packet to the next,
    but all the possible experiences are all contained within a finite set.
    Therefore, we introduce below the term of a recovery graph that coalesces
    that set and covers the overall topology where the possible DetNet paths are
    all contained. As such, the recovery graph coalesces all the possible paths
    a flow
    may experience, each with its own statistical probability to be used.
    </t>
    </section>
    <section anchor="trk"><name>Recovery Graph</name>

    <t>A networking graph that can be followed to transport packets with
    equivalent treatment, associated with usage metadata; as opposed to the
    definition of a path above, a recovery graph represents not an actual but a
    potential, it is not necessarily a linear sequence like a simple path, and
    is not
    necessarily fully traversed (flooded) by all packets of a flow like a Detnet
    Path. Still, and as a simplification, the casual reader may consider that a
    recovery graph is very much like a DetNet path, aggregating multiple paths that may
    overlap, fork and rejoin, for instance to enable a protection service by the
    PREOF operations.
    </t>
   <figure anchor="Figtrk">
          <name>Example IoT Recovery Graph to an IoT Gateway with 1+1 Redundancy</name>
       <artwork align="center" name="" type="" alt="">
       <![CDATA[
             +---------+
             | IoT G/W |
             +---------+
               EGRESS  <=== Elimination at Egress
                 | |
         /------/   \-------\    Wired backbone
         |                  |
      +--|--+            +--|--+
      |  |  | Backbone   |  |  | Backbone
      |  |  | Router     |  |  | Router
      +--|--+            +--|--+
         |                  |
      o   \     o          /  protection path
    o      o      o---o---o   o      o   o  o
            \  o /    o          o         o
     o   o   \  /       o        low power lossy network
              \/ o           o        o
         o  INGRESS <=== Replication at recovery graph Ingress
               |
               o <- source device
    ]]>
       </artwork>
       </figure>

    <t>
    Refining further, a recovery graph is defined as the coalescence of the collection
    of all the feasible DetNet Paths that a packet for which a flow is assigned to the
    recovery graph may be forwarded along.
    A packet that is assigned to the recovery graph experiences one of the feasible
    DetNet Paths based on the current selection by the PLR at the time the
    packet traverses the network.
    </t>
    <t>
    Refining even further, the feasible DetNet Paths within the recovery graph may or may
    not be computed in advance, but decided upon the detection of a change from
    a clean slate.
    Furthermore, the PLR decision may be distributed, which yields a large
    combination of possible and dependant decisions, with no node in the network
    capable of reporting which is the current DetNet Path within the recovery graph.
    </t>
    <t>
    In DetNet <xref target="RFC8655"/> terms, a recovery graph has the following
    properties:
    </t>
    <ul>
    <li>
    A recovery graph is a Layer-3 abstraction built upon IP links between routers.
    A router may form multiple IP links over a single radio interface.
    </li><li>
    A recovery graph has one Ingress and one Egress nodes, which operate as DetNet Edge
    nodes.
    </li><li>
    The graph of a recovery graph is reversible, meaning that packets can be routed against
    the flow of data packets, e.g., to carry OAM measurements or control
    messages back to the Ingress.
    </li><li>
    The vertices of that graph are DetNet Relay nodes that operate at the
    DetNet Service sub-layer and provide the PREOF functions.
    </li><li>
    The topological edges of the graph are strict sequences of DetNet Transit
    nodes that operate at the DetNet Forwarding sub-layer.
    </li>
    </ul>




    <t>
    <xref target='TRK'/> illustrates the generic concept of a recovery graph,
   between an Ingress Node and an Egress Node

    The recovery graph is composed of forward protection paths and forward or crossing
    Segments, see the definition for those terms in the next sections.
    The recovery graph contains at least 2 protection paths as a main path and a backup path.
</t>
<figure anchor='TRK'><name>A Recovery Graph and its Components</name>
              <artwork align="center"><![CDATA[

 ------------------- forward direction ---------------------->

       a ==> b ==> C -=- F ==> G ==> H     T1       I: Ingress
     /              \   /      |       \ /          E: Egress
   I                  o        n        E -=- T2    T1, T2, T3:
     \              /   \      |       / \            External
       p ==> q ==> R -=- T ==> U ==> v     T3         Targets


      Uppercase: DetNet Relay nodes
      Lowercase: DetNet Transit nodes


   I ==> a ==> b ==> C : A forward Segment to targets F and o
   C ==> o ==> T: A forward Segment to target T (and/or U)
   G | n | U : A crossing Segment to targets G or U
   I -> F -> E : A forward Protection Path to targets T1, T2, and T3

   I, a, b, C, F, G, H, E : a path to T1, T2, and/or T3
   I, p, q, R, o, F, G, H, E : segment-crossing protection path

]]></artwork>
</figure>


    </section>
  <section><name>Forward and Crossing</name>
    <t>
    Forward refers to progress towards the recovery graph Egress. Forward links are
    directional, and packets that are forwarded along the recovery graph can only be
    transmitted along the link direction. Crossing links are bidirectional,
    meaning that they can be used in both directions, though a given packet may
    use the link in one direction only. A Segment can be forward, in which
    case it is composed of forward links only, or crossing, in which
    case it is composed of crossing links only. A Protection Path is always forward,
    meaning that it is composed of forward links and Segments.
    </t>
    </section>
  <section><name>Protection Path</name>
    <t>
    An end-to-end forward path between the Ingress and Egress Nodes of a
    recovery graph. A protection path in a recovery graph is expressed as a strict sequence
    of DetNet Relay nodes or as a loose sequence of DetNet Relay nodes that are
    joined by recovery graph Segments.  Background information on the
    concepts related to protection paths can be found in <xref
    target="RFC4427"/> and <xref target="RFC6378"/>
    </t>
  </section>
    <section><name>Segment</name>
    <t>
    A strict sequence of DetNet Transit nodes between 2 DetNet Relay nodes; a
    Segment of a recovery graph is composed topologically of two vertices of the
    recovery graph and one edge of the recovery graph between those vertices.
    </t>
    </section>

    </section><!--Path and recovery graphs-->


    <section><name>Deterministic Networking</name>
    <t>This document reuses the terminology in section 2 of
    <xref target="RFC8557"/> and section 4.1.2 of <xref target="RFC8655"/>
    for deterministic networking and deterministic networks.
    </t>
    <section><name>Flow</name>
    <t>
    A collection of consecutive IP packets defined by the upper layers and
    signaled by the same 5 or 6-tuple, see section 5.1 of
    <xref target="RFC8939"/>. Packets of the same flow must be placed
    on the same recovery graph to receive an equivalent treatment from Ingress to Egress
    within the recovery graph. Multiple flows may be transported along the same recovery graph.
    The DetNet Path that is selected for the flow may change over time under the
    control of the PLR.
    </t>
    </section>
   
    <section><name>L3 Deterministic Flow Identifier </name>
    <t>
     See section 3.3 of <xref target="RFC8938"/>. The classical IP 5-tuple that
     identifies a flow comprises the source IP, destination IP, source port,
     destination port, and
     the upper layer protocol (ULP). DetNet uses a 6-tuple where the extra field
     is the DSCP field in the packet. The IPv6 flow label is not used for that
     purpose.
     </t>
     </section>
     <section><name>TSN</name>
    <t>
    TSN stands for Time-Sensitive Networking and denotes the efforts at IEEE
    802 for deterministic networking, originally for use on Ethernet. Wireless
    TSN (WTSN) denotes extensions of the TSN work on wireless media such as
    the selected RAW technologies <xref target="I-D.ietf-raw-technologies"/>.
    </t>
    </section>
     </section><!--Deterministic Networking -->


    <section><name>Reliability and Availability</name>
    <t>
    In the context of the RAW work, Reliability and Availability are defined as
    follows:
    </t>

    <section><name>Service Level Agreement</name>
    <t>
    In the context of RAW, an SLA (service level agreement) is a contract
    between a provider (the network) and a client, the application flow,
    defining measurable metrics such as latency boundaries, consecutive losses,
    and packet delivery ratio (PDR).
    </t>
    </section>
    <section><name>Service Level Objective</name>
    <t>
    A service level objective (SLO) is one term in the SLA, for which specific
    network setting and operations are implemented. For instance, a dynamic
    tuning of the packet redundancy addresses an SLO of consecutive losses in
    a row by augmenting the chances of delivery of a packet that follows a loss.
    </t>
    </section>

    <section><name>Service Level Indicator</name>
    <t>
    A service level indicator (SLI) measures the compliance of an SLO to the
    terms of the contract. It can be for instance, the statistics of individual
    losses and losses in a row as time series.
    </t>
    </section>

    <section><name>Reliability</name>
    <t>
    Reliability is a measure of the probability that an item (e.g., system, 
   network) will perform its intended function with no failure for a stated 
   period of time (or a stated number of demands or load) under stated environmental 
   conditions. In other words, reliability is the probability that an item 
   will be in an uptime state (i.e., fully operational or ready to perform) 
   for a stated mission, e.g., to provide an SLA. See more in 
   <xref target="NASA1"/>.
    </t>
    </section>

    <section><name>Availability</name>
    <t>
    Availability is the probability of an item’s (e.g., a network’s) mission
   readiness (e.g., to provide an SLA), an uptime state with the likelihood 
   of a recoverable downtime state. Availability is expressed as 
   (uptime)/(uptime+downtime). Note that it is availability that addresses 
   downtime (including time for maintenance, repair, and replacement activities) 
   and not reliability. See more in <xref target="NASA2"/>.
    </t>
    </section>

    </section><!--Reliability and Availability-->

    <section><name>OAM variations</name>
    <section><name>Active OAM</name>
    <t>
     See <xref target="RFC7799"/>. In the context of RAW, Active OAM is used to
     observe a particular recovery graph, DetNet Path, or Segment of a recovery graph regardless of
     whether it is used for traffic at that time.
     </t>
    </section>
    <section><name>In-Band OAM</name>
    <t>
     An active OAM packet is considered in-band for the
      monitored recovery graph when it traverses the same set of links and interfaces
      and if the OAM packet receives the same QoS and service protection treatment as the
      packets of the data flows that are injected in the recovery graph.
     </t>
    </section>
    <section><name>Out-of-Band OAM</name>
    <t>
     Out-of-band OAM is an active OAM whose path is not topologically congruent
     to the recovery graph, or its test packets receive a
      QoS and/or service protection treatment that is different from that of the packets of
      the data flows that are injected in the recovery graph, or both.
     </t>
    </section>
    <section><name>Limited OAM</name>
    <t>
       An active OAM packet is a Limited OAM packet when
      it observes the RAW operation over a node, a segment, or a DetNet Path
      of the recovery graph, as opposed to the whole recovery graph from Ingress to Egress.
      The active OAM packet is injected
      in the data path and extracted from the data path around the
      particular function or subnetwork (e.g., around a relay providing
      a Service sub-layer replication point) that is being tested.
     </t>
    </section>
    <section><name>Upstream OAM</name>

     <t>
    An upstream OAM packet is an Out-of-Band OAM packet that traverses the recovery graph
    from egress to ingress on the reverse direction, to capture and  report OAM
    measurements upstream. The collection may capture all information along the
    whole recovery graph, or it may only learn select data across all, or only a
    particular DetNet Path, or Segment of a recovery graph.
     </t>
</section> <!-- Upstream OAM -->

    <section><name>Residence Time</name>
    <t>
    A residence time (RT) is defined as the time interval between the reception
   of a packet starts and the transmission of the packet begins. In the 
   context of RAW, RT is useful for a transit node, not ingress or egress.
    </t>
    </section>


    <section><name>Lower-Layer information</name>
    <t>
    The Operational Plane elements (Routing and OAM control) may gather
    aggregated information from lower layers about e.g., link quality,
    either via measurement or communication with the lower layer.
    This information may be obtained from inside the device using
    specialized API (e.g., L2 triggers),  via monitoring and measurement protocols such as BFD
    <xref target="RFC5880"/> and STAMP <xref target="RFC8762"/>, respectively, or via a control protocol exchange with the
    lower layer via, e.g.,  DLEP
    <xref target="RFC8175"/>. It may then be 
    massaged and exported through OAM messaging or via an YANG model,
    and exposed to the Controller Plane.
    </t>
    </section>

    <section><name>Additional References</name>
    <t>  
   <xref target="RFC9551"/> provides additional terminology related to OAM in
   the context of DetNet and by extension of RAW, whereas 
   <xref target="RFC7799"/> defines the Active, Passive, and Hybrid OAM methods.
    </t>
</section> <!-- Additional References -->

</section> <!-- OAM variations -->


    </section><!-- Terminology -->
    <!--  1111111111111111    -->
    <section anchor="raw" numbered="true" toc="default">
      <name>Reliable and Available Wireless</name>


    <!--  111  -->

    <section numbered="true" toc="default">
      <name>Reliability and Availability</name>


    <!--  2222222222222222    -->
    <section numbered="true" toc="default">
      <name>High Availability Engineering Principles</name>

    <t>
    The reliability criteria of a critical system pervades through its elements,
    and if the system comprises a data network and then the data network is also
    subject to the inherited reliability and availability criteria.
    It is only natural to consider the art of high availability engineering and
    apply it to wireless communications in the context of RAW.
    </t>

    <t>
    There are three principles [pillars] of high availability engineering:
    </t>
     <ol spacing="compact">
     <li>elimination of each single point of failure</li>
     <li>reliable crossover</li>
     <li>prompt detection of failures as they occur</li>
     </ol>
     <t>
     These principles are common to all high availability systems, not just ones
     with Internet technology at the center.  Examples of both non-Internet and
     Internet are included.
    </t>


    <!--  333333333333333333333   -->

    <section numbered="true" toc="default">
      <name>Elimination of Single Points of Failure</name>

    <t>
    Physical and logical components in a system happen to fail, either as the
    effect of wear and tear, when used beyond acceptable limits, or due to a
    software bug.
    It is necessary to decouple component failure from system failure to avoid
    the latter.
    This allows failed components to be restored while the rest of the system
    continues to function.
    </t>
    <t>
    IP Routers leverage routing protocols to reroute to alternate routes in case
    of a failure. There is a rather open-ended issue over alternate routes --
    for example, when links are cabled through the same conduit, they form a
    shared risk link group (SRLG), and share the same fate if the conduit is
    cut. The same effect can happen with virtual links that end up in a same
    physical transport through the games of encapsulation. In a same fashion,
    an interferer or an obstacle may affect multiple wireless transmissions at
    the same time, even between different sets of peers.
    </t>
    <t>
    Intermediate network Nodes such as routers, switches and APs, wire bundles,
    and the air medium itself can become single points of failure. For High
    Availability, it is thus required to use physically link-disjoint and Node-disjoint
    paths; in the wireless space, it is also required to use the highest
    possible degree of diversity (time, space, code, frequency, channel width)
    in the transmissions over the air to combat the additional causes of
    transmission loss.
    </t>
    <t>
    From an economics standpoint, executing this principle properly generally
    increases capitalization expense because of the redundant equipment. In a
    constrained network where the waste of energy and bandwidth should be
    minimized, an excessive use of redundant links must be avoided; for RAW this
    means that the extra bandwidth must be used wisely and efficiently.
    </t>

    </section>
      <!--Elimination of Single Points of Failure-->



    <!--  333333333333333333333   -->


    <section numbered="true" toc="default">
      <name>Reliable Crossover</name>

    <t>
    Having a backup equipment has a limited value unless it can be reliably
    switched into use within the down-time parameters.
    IP Routers execute reliable crossover continuously because
    the routers use any alternate routes that are available <xref target=
    "RFC0791"/>. This is due to the stateless nature of IP datagrams and the
    dissociation of the datagrams from the forwarding routes they take.
    The <xref target="RFC5714">"IP Fast Reroute Framework"</xref> analyzes
    mechanisms for fast failure detection and path repair for IP Fast-Reroute,
    and discusses the case of multiple failures and SRLG. Examples of FRR
    techniques include Remote Loop-Free Alternate <xref target="RFC7490"/> and
    backup label-switched path (LSP) tunnels for the local repair of LSP tunnels
    using RSVP-TE <xref target="RFC4090"/>.
    </t>
    <t>
    Deterministic flows, on the contrary, are attached to specific paths where
    dedicated resources are reserved for each flow. Therefore each DetNet path
    must inherently provide sufficient redundancy to provide the assured SLA
    at all times.
    The DetNet PREOF typically leverages 1+1 redundancy whereby a packet is sent
    twice, over non-congruent paths. This avoids the gap during the fast reroute
    operation, but doubles the traffic in the network.
    </t>
    <t>
    In the case of RAW, the expectation is that multiple transient faults may
    happen in overlapping time windows, in which case the 1+1 redundancy with
    delayed reestablishment of the second path does not provide the required
    guarantees.
    The Data Plane must be configured with a sufficient degree of
    redundancy to select an alternate redundant path immediately upon a fault,
    without the need for a slow intervention from the Controller Plane.
    </t>
    </section>
      <!--Reliable Crossover-->





    <!--  333333333333333333333   -->


    <section numbered="true" toc="default">
      <name>Prompt Notification of Failures</name>
    <t>
    The execution of the two above principles is likely to render a system where
    the end user rarely sees a failure. But a failure that occurs must still be detected in order to direct maintenance.
    </t>
    <t>
    There are many reasons for system monitoring (FCAPS for fault, configuration,
    accounting, performance, security is a handy mental checklist) but fault
    monitoring is sufficient reason.
    </t>
    <t>
    <xref target="RFC9522">
    "Overview and Principles of Internet Traffic Engineering"</xref> discusses
    the importance of measurement for network protection, and provides an 
   abstract method for network survivability with the analysis of a traffic 
   matrix as observed via a network management YANG model, probing techniques, 
   file transfers, IGP link state advertisements, and more.
    </t>

    <t>
    Those measurements are needed in the context of RAW to inform the controller
    and make the long-term reactive decision to rebuild a recovery graph based on
    statistical and aggregated information. RAW itself operates in the DetNet
    Network
    Plane at a faster time-scale with live information on speed, state, etc...
    This live information can be obtained directly from the lower layer, e.g.,
    using L2 triggers, read from a protocol such as the <xref target="RFC8175">
    Dynamic Link Exchange Protocol (DLEP)</xref>, or transported over multiple
    hops using OAM and reverse OAM, as illustrated in <xref target="Figlearn"/>.
    </t>

<!--

    Security requirements. SNMP messages need to be authentic in all cases.
    Implementations may need to be confidential as well.



[ ... dovetail this into the OAM things that need to be included. Most of the discussion seems to cluster around performance management]

-->
    </section>
      <!--Prompt Notification of Failures-->




   </section>
      <!--Reliability Engineering-->
    <!--  22222222222222222222    -->


    <section numbered="true" toc="default">
      <name>Applying Reliability Concepts to Networking</name>
    <t>
    The terms Reliability and Availability are defined for use in RAW in
    <xref target="terms"/> and the reader is invited to read
    <xref target="NASA1"/> and <xref target="NASA2"/>
    for more details on the general definition of Reliability.
    Practically speaking, a number of nines is often used to indicate the
    reliability of a data link, e.g., 5 nines indicate a
    Packet Delivery Ratio (PDR) of 99.999%.
    </t>
    <t>
    This number is typical in a wired
    environment where the loss is due to a random event such as a solar particle
    that affects the transmission of a particular packet, but does not affect the
    previous or next packet, nor packets transmitted on other links. Note that the
    QoS requirements in RAW may include a bounded latency, and a packet that
    arrives too late is a fault and not considered as delivered.
    </t>
    <t>
    For a periodic networking pattern such as an automation control loop, this
    number is proportional to the Mean Time Between Failures (MTBF).
    When a single fault can have dramatic consequences, the MTBF expresses the
    chances that the unwanted fault event occurs. In data networks,
    this is rarely the case. Packet loss cannot be fully avoided and the
    systems are built to resist to some loss, e.g., using redundancy with Retries
    (HARQ), Packet Replication and Elimination (PRE), Network Coding (e.g., using 
    FEC with SCHC <xref target="RFC8724"/> fragments), or, in a typical control
    loop, by linear interpolation from the previous measurements.
    </t>
   <t>
    But the linear interpolation method cannot resist multiple consecutive
    losses, and a high MTBF is desired as a guarantee that this does not happen,
    IOW that the number of losses-in-a-row can be bounded. In that case, what is
    really desired is a Maximum Consecutive Loss (MCL). (See also section 
   5.9.5 in <xref target="RFC8175"/>.)
    If the number of losses in a row passes the MCL, the control loop has to
    abort and the system, e.g., the production line, may need to enter an
    emergency stop condition.
    </t>
   <t>
    Engineers that build automated processes may use the network reliability
    expressed in nines or as an MTBF as a proxy to indicate an MCL, e.g., as
    described in section 7.4 of the <xref target="RFC8578">"Deterministic
    Networking Use Cases"</xref>.
    </t>
    </section>
      <!--Applying Reliability concepts to Networking-->
    <!--  22222222222222222222    -->

    <section numbered="true" toc="default">
      <name>Wireless Effects Affecting Reliability</name>
    <t>
    In contrast with wired networks, errors in transmission are the predominant
    source of packet loss in wireless networks.
    </t>
    <t>
    The root cause for the loss may be of multiple origins, calling for
    the use of different forms of diversity:
    </t>
    <dl>
    <dt>Multipath Fading:</dt>
    <dd>
    <t>A destructive interference by a reflection of the original signal.
    </t>
    <t>A radio signal may be received directly
    (line-of-sight) and/or as a reflection on a physical structure (echo).
    The reflections take a longer path and are delayed by the extra distance
    divided by the speed of light in the medium. Depending on the frequency, the
    echo lands with a different phase which may add up to (constructive
    interference) or cancel the direct signal (destructive interference).
    </t>
    <t>
    The affected frequencies depend on the relative position of the sender, the
    receiver, and all the reflecting objects in the environment.
    A given hop suffers from multipath fading for multiple packets in a
    row till a physical movement changes the reflection patterns.
    </t>
    </dd>
    <dt>Co-channel Interference:</dt>
    <dd>
    <t>
    Energy in the spectrum used for the transmission confuses the receiver.
    </t>
    <t>
    The wireless medium itself is a Shared Risk Link Group (SRLG) for nearby
    users of the same spectrum, as an interference may affect multiple co-channel
    transmissions between different peers within the interference domain of the
    interferer, possibly even when they use different technologies.
    </t>
    </dd>
    <dt>Obstacle in Fresnel Zone:</dt>
    <dd>

    <t>
    The Fresnel zone is an elliptical region of space between and around the transmit and receive antennas in a point to point wireless communication. The optimal transmission happens when it is free of obstacles.
    </t>
    <t>
    As long as a physical object (e.g., a metallic trolley between peers) that
    affects the transmission is not removed, the quality of the link is affected.
    </t>
    </dd>
    </dl>
    <t>
    In an environment that is rich of metallic structures and mobile objects, a
    single radio link provides a fuzzy service, meaning that it cannot be 
   trusted to transport the traffic reliably over a long period of time.
    </t>
    <t>
    Transmission losses are typically not independent, and their nature and
    duration are unpredictable; as long as a physical object (e.g., a metallic
    trolley between peers) that affects the transmission is not removed, or as
    long as the interferer (e.g., a radar in the ISM band) keeps transmitting, a continuous
    stream of packets are affected.
    </t>
    <t>
    The key technique to combat those unpredictable losses is diversity.
    Different forms of diversity are necessary to combat different causes of
    loss and the use of diversity must be maximized to optimize the PDR.
    </t>
    <t>
    A single packet may be sent at different times (time diversity) over diverse
    paths (spatial diversity) that rely on diverse radio channels (frequency
    diversity) and diverse PHY technologies, e.g., narrowband vs. spread
    spectrum, or diverse codes.
    Using time diversity defeats short-term interferences;
    spatial diversity combats very local causes of interference such as multipath fading;
    narrowband and spread spectrum are relatively innocuous to one another and
    can be used for diversity in the presence of the other.
    </t>


    </section>
      <!--Reliability in the Context of RAW-->

    </section>
    <!--Reliability and Availability-->
    <!--  11111111111111111111    -->



    <section anchor="problem" numbered="true" toc="default">
      <name>The RAW problem</name>
   <t>
   While the generic <xref target="RFC8557">"Deterministic Networking
   Problem Statement"</xref> applies to both the wired and the wireless media,
   the <xref target="RFC8655">"Deterministic Networking Architecture"
   </xref> must be extended to address less consistent
   transmissions, energy conservation, and shared spectrum efficiency.
   </t>
   <t>

   Operating at the Layer-3, RAW does not change the wireless technology at the lower layers. OTOH, it can further increase diversity in the spatial,
   time, code, and frequency domains by enabling multiple link-layer wired and
   wireless technologies in parallel or sequentially, for a higher resilience
   and a wider applicability. RAW can also provide homogeneous services to
   critical applications beyond the boundaries of a single subnetwork, e.g.,
   using diverse radio access technologies to optimize the 
   end-to-end application experience.
   </t>
      <t>
   RAW extends the DetNet services by providing elements that are specialized
   for transporting IP flows over deterministic radio technologies such as
   listed in <xref target="I-D.ietf-raw-technologies"/>.
   Conceptually, RAW is agnostic to the lower layer, though the
   capability to control latency is assumed to assure the DetNet services that RAW extends.
   How the lower layers are operated to do so, and, e.g., whether a radio network is single-hop or meshed, are opaque to the IP layer and not part of the RAW abstraction.
   Nevertheless, cross-layer optimizations may take place to ensure proper
   link awareness (think, link quality) and packet handling (think, scheduling).
      </t>
      <t>
   <xref target="RFC8655"/> defines three planes: the Application (User) Plane, the Controller Plane,  and the Network Plane.
   The DetNet Network Plane is composed of a Dataplane (packet forwarding) and an
   Operational Plane where OAM operations take place.
   In the Network Plane, the DetNet service sub-layer
   focuses on flow protection (e.g., using redundancy) and can be fully operated
   at Layer-3, while the DetNet forwarding sub-layer establishes the paths, 
   associates the flows to the paths, and ensures the availability of the 
   necessary resources, leverages Layer-2 functionalities for timely delivery 
   to the next DetNet system.
      </t>
      <t>
   The RAW Architecture extends the DetNet Network Plane, to accommodate one or
   multiple hops of homogeneous or heterogeneous wired and wireless technologies.
   RAW adds reactivity to the DetNet Forwarding sub-layer to compensate the dynamics
   for the radio links in terms of lossiness and bandwidth. This may apply, for
   instance, to mesh networks as illustrated in <xref target ="FigCPF"/>, or
   diverse radio access networks as illustrated in <xref target ="Figranp2"/>.
      </t>


    <t>
    As opposed to wired links, the availability and performance of an individual
    wireless link cannot be trusted over the long term; it varies with
    transient service discontinuity, and any path that includes wireless
    hops is bound to face short periods of high loss. On the other hand, being
    broadcast in nature, the wireless medium provides capabilities that are
    atypical on modern wired links and that the RAW Architecture can leverage
    opportunistically to improve the end-to-end reliability over a collection of
    paths.
    </t>
    <t>
    Those capabilities include:
    </t>
    <dl>
    <dt>Promiscuous Overhearing:</dt><dd> Some wired and wireless
    technologies allow for multiple lower-layer attached nodes to recieve
    the same packet sent by another node.  This differs from a
    lower-layer network that is physically point-to-point like a wire.
    With overhearing, more than one
    node in the forward direction of the packet may hear or overhear a
    transmission, and the reception by one may compensate the loss by another.
    The concept of path can be revisited in favor of multipoint to multipoint
    progress in the forward direction and statistical chances of successful
    reception of any of the transmissions by any of the receivers.
    </dd>
    <dt>L2-aware routing:</dt><dd> As the quality and speed of a link varies
    over time, the concept of metric must also be revisited. Shortest-path cost loses
    its absolute value, and hop count turns into a bad idea as the link budget
    drops with the distance. Routing over radio requires both 1) a new and more
    dynamic sense of link metrics, with new protocols such as DLEP and L2-trigger to
    keep L3 up to date with the link quality and availability, and 2) an
    approach to multipath routing, where multiple link metrics are
    considered since simple shortest-path cost loses its meaning with
    the instability of the metrics.
    </dd>
    <dt>ARQ, FEC, and codes:</dt><dd>Though feasible on any technology, proactive
    (forward) and reactive (ARQ) error correction are typical to the wireless
    media. Bounded latency can still be obtained on a wireless link while
    operating those technologies, provided that link latency used in
    path selection allows for the extra transmission, or that the introduced delay is
    compensated along the path. In the case of coded fragments and retries, it
    makes sense to vary all the possible physical properties of the
    transmission to reduce the chances that the same effect causes the loss of
    both original and redundant transmissions.
    </dd>
    <dt>Relay Coordination and constructive interference:</dt><dd>Though it can be difficult to achieve at high speed, a fine time synchronization and a
    precise sense of phase allows the energy from multiple coordinated senders
    to add up at the receiver and actually improve the signal quality,
    compensating for either distance or physical objects in the Fresnel zone
    that would reduce the link budget. From a DetNet perspective, this
    may translate taking into account how transmission from one node may
    interfere with the transmission of another node attached to the same
    wireless sub-layer network.
    </dd>
      </dl>
      <t>
    RAW and DetNet serve application flows that require a special
    treatment along the paths that provide that treatment.
    This may be seen as a form of Path Aware Networking and may be subject to
    impediments documented in <xref target="RFC9049"/>.
      </t>
      <t>
   The mechanisms used to establish a path is not unique to, or necessarily
   impacted by, RAW. It is expected to be the product of the DetNet
   Controller Plane <xref
   target="I-D.ietf-detnet-controller-plane-framework"/>, and may use
   a Path computation Element (PCE) <xref target="RFC4655"/> or the
   DetNet Yang Model <xref target="RFC9633"/>, or may be
   computed in a distributed fashion ala
   Resource ReSerVation Protocol (RSVP) <xref target="RFC2205"/>.
   Either way, the assumption us that it is slow relative to
   local forwarding operations in the recovery graph.
   To react fast enough to transient changes in the radio transmissions, RAW leverages DetNet Network Plane enhancements to
   optimize the use of the paths and match the quality of the transmissions over
   time.
   </t>
   <t>
   As opposed to wired
   networks, the action of installing a path over a set of wireless links
   may be very slow relative to the speed at which the radio conditions vary,
   and it makes sense in the wireless case to provide redundant forwarding
   solutions along a alternate paths (see <xref target="pt"/>) and to leave it
   to the Network Plane to select which of those forwarding solutions are to be
   used for a given packet based on the current conditions.
      </t>
      <t>
   RAW distinguishes the longer time-scale at which routes are computed from the
   shorter time-scale where forwarding decisions are made. For a limited time,
   RAW Network Plane operations happen at a time-scale that sits between the
   routing and the forwarding time-scales, on one DetNet flow, to select a DetNet
   path within the resources delineated by a recovery graph (see <xref target="trk"/>).
   The recovery graph is
   pre-established and installed by means outside of the scope of RAW; it may be
   strict or loose depending on whether each or just a subset of the hops are
   observed and controlled by RAW.
      </t>
      <t>
   The RAW Architecture is based on an abstract OODA Loop (Observe, Orient, Decide,
   Act). The generic concept involves:
      </t>
      <ol>
      <li> Operational Plane measurement protocols for Operations, Administration
      and Maintenance (OAM) to observe (like the first O in OODA) some or all hops along a recovery graph as well as
      the end-to-end packet delivery.
      </li>
      <li>
      The DetNet Controller Plane establish primary and protection paths
      for use by the RAW Network Plane.
     The orientation function reports
      data and information such as link statistics to be used 
      by the routing function to compute, install, and maintain the
      recovery graphs. The routing function may also generate knowledge and wisdom such as a trained model
      for link quality prediction, which in turn can be used by the orientation function (like the second O in OODA) to influence the Path selection by the PLR within the RAW OODA loop.
      </li>
      <li> A PLR operates at the DetNet Service 
     sub-layer and hosts the decision function (like the D in OODA) of which DetNet Paths to use
     for the future packets that are routed within the recovery graph.
      </li>
      <li> Service protection actions that are actuated or triggered over the LL API by the PLR to increase the reliability of the end-to-end transmissions.
     The RAW architecture also covers in-situ signaling that is embedded within live user traffic <xref target="RFC9378"/>, e.g., via OAM, when the decision is
     acted (like the A in OODA) upon by a node that is downstream in the recovery graph from the PLR.
      </li>
      </ol>
   <t> The overall OODA Loop optimizes the use of redundancy to achieve the
   required reliability and availability Service Level Agreement (SLA) while
   minimizing the use of constrained resources such as spectrum and battery.
   </t>


    </section>      <!-- The RAW problem -->
     </section>   <!-- Reliable and Available Wireless -->

    <!--  000000000000000000000    -->

<section anchor="model" numbered="true" toc="default">
    <name>The RAW Conceptual Model</name>
    <t>
    RAW extends the conceptual model described in section 4 of the DetNet
    Architecture <xref target="RFC8655"/> with the PLR at the service layer,
   as illustrated in <xref target='FigLayers'/>. The PLR 
   (see <xref target='PLRpce'/>) is a point of local reaction  to
   provide additional agility against transmission loss. The PLR can act, e.g.,
   based on indications from the lower layer or based on OAM.   
    </t>

<figure anchor="FigLayers">
          <name>Extended DetNet Data-Plane Protocol Stack</name>
       <artwork align="left" name="" type="" alt="">
      
           |  packets going  |        ^  packets coming   ^
           v down the stack  v        |   up the stack    |
        +-----------------------+   +-----------------------+
        |        Source         |   |      Destination      |
        +-----------------------+   +-----------------------+
        |   Service sub-layer:  |   |   Service sub-layer:  |
        |   Packet sequencing   |   | Duplicate elimination |
        |    Flow replication   |   |      Flow merging     |
        |    Packet encoding    |   |    Packet decoding    |
        | Point of Local Repair |   |                       |
        +-----------------------+   +-----------------------+
        | Forwarding sub-layer: |   | Forwarding sub-layer: |
        |  Resource allocation  |   |  Resource allocation  |
        |    Explicit routes    |   |    Explicit routes    |
        +-----------------------+   +-----------------------+
        |     Lower layers      |   |     Lower layers      |
        +-----------------------+   +-----------------------+
                    v                           ^
                     \_________________________/
                  
</artwork>
</figure>

<section anchor="plane" numbered="true" toc="default">
    <name>The RAW Planes</name>
    <t>
   A RAW Network Plane may be strict (as illustrated in <xref target='FigDN2'/>)
   or loose (as illustrated in <xref target='FigDN3'/>), depending
   on whether RAW observes and takes actions on all hops or not. For instance,
   the packets between two wireless entities may be relayed over a wired
   infrastructure, in which case RAW observes and controls the transmission 
   over the wireless first and last hops, as well as end-to-end metrics such as
   latency, jitter, and delivery ratio. This operation is loose since the 
   structure and properties of the wired infrastructure are ignored, and may be
   either controlled by other means such as DetNet/TSN, or neglected in the 
   face of the wireless hops.

    </t><t>
   The RAW Nodes are DetNet relays that operate in the RAW Network Plane and
   are capable of additional diversity mechanisms and measurement functions
   related to the radio interface.
   RAW leverages an Operational Plane orientation function (that typically operates inside the Ingress
   Edge Nodes) to dynamically adapt the path of the packets and optimizes the
   resource usage.
    </t><t>
   In the case of centralized routing operations, the RAW Controller Plane Function (CPF) interacts
   with RAW Nodes over a Southbound API. It consumes data and information from
   the network and generates knowledge and wisdom to help steer the traffic optimally  inside a recovery graph.
    </t>
<figure anchor="FigCPF">
          <name>RAW Nodes (Centralized Routing Case)</name>
       <artwork align="center" name="" type="" alt="">

                         DetNet Routing

        CPF               CPF          CPF                 CPF


                       Southbound API
   _-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-
 _-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-


                 RAW  --/   RAW  --/   RAW  --/   RAW
             /-- Node  /--  Node  /--  Node  /--  Node --/
  Ingress --/    /          /                           /-- Egress
  End           /          /         .. .                   End
  Node   ---/   /          /       .. ..  .             /-- Node
           /-- RAW  --/   RAW     ( non-RAW ) -- RAW --/
               Node  /--  Node --- ( Nodes  )   Node
                                      ... .
  --/   wireless           wired
   /--  link           --- link
</artwork>
</figure>
<t>
   When a new flow is defined, the routing function uses its current knowledge of
   the network to build a new recovery graph between an Ingress End System and an Egress
   End System for that flow; it indicates to the RAW Nodes where the PREOF and/or radio 
   diversity and reliability operations may be actioned in the Network Plane.
  </t>
  <ul>
  <li>
    The recovery graph may be strict, meaning that the
    DetNet forwarding sub-layer operations are enforced end-to-end
  </li><li>
    The recovery graph may be expressed loosely to enable traversing a non-RAW subnetwork
    as in <xref target='FigDN3'/>.
    In that case, RAW cannot leverage end-to-end DetNet and cannot provide
    latency guarantees.
   
    </li>
    </ul>
    <t>
    The information that the orientation function reports to the routing function
   includes may be a time-aggregated, e.g., statistical fashion, to match the longer term   operation of the routing function.
    Example information includes Link-Layer metrics such as Link
    bandwidth (the medium speed depends dynamically on the PHY mode), number of
    flows (bandwidth that can be reserved for a flow depends on the number and
    size of flows sharing the spectrum) and average and mean squared deviation
    of availability and reliability metrics, such as, Packet Delivery Ratio (PDR)
    over long periods of time. It may also report an aggregated expected
    transmission count (ETX), or a variation of it.
    </t><t>
    Based on those metrics, the routing function installs the recovery graph with enough
    redundant forwarding solutions to ensure that the Network Plane can reliably
    deliver the packets within a System Level Agreement (SLA) associated to the
    flows that it transports.
    The SLA defines end-to-end reliability and availability requirements, where
    reliability may be expressed as a successful delivery in-order and within a
    bounded delay of at least one copy of a packet.
    </t><t>
    Depending on the use case and the SLA, the recovery graph may comprise non-RAW
    segments, either interleaved inside the recovery graph (e.g. over tunnels), 
   or all the way to the Egress End Node (e.g., a server in the local wired 
   domain). RAW observes the
    Lower-Layer Links between RAW nodes (typically, radio links) and the
    end-to-end Network Layer operation to decide at all times which of the 
    diversity schemes is actioned by which RAW Nodes.
    </t><t>
    Once a recovery graph is established, per-segment and end-to-end reliability
   and availability statistics are periodically reported to the routing function to assure
   that the SLA can be met or if not, then have the recovery graph recomputed.
    </t>

    </section> <!--The RAW Network Plane -->

<section anchor="layers" numbered="true" toc="default">
    <name>RAW vs. Upper and Lower Layers</name>

    <t>RAW builds on DetNet provided scheduling and shaping.
    RAW improves the reliability of transmissions and the availability of the
    communication resources, and should be seen as a dynamic optimization of the use of
    redundancy to maintain it within certain boundaries. For instance, ARQ is
    operated by the lower layers and RAW only abstracts the concept and hints
    the lower layers on the desired outcome, as opposed to performing the
    retries at Layer-3.
    </t>
    <t>
    Guarantees such as bounded latency depend on the upper layers (Transport or
    Application) to provide the payload in volumes and at times that match the
    contract with the DetNet sub-layers and the layers below. Excess of
    incoming traffic at the DetNet Ingress may result in dropping or
    queueing of packets, and can entail loss, latency, or jitter, and
    therefore violate the guarantees that are provided inside the DetNet Network.
    </t>
    <t>
    When the traffic from upper layers matches the expectation of the lower
    layers, RAW still depends on DetNet mechanisms and the 
    lower layers to provide the timing and
    physical resource guarantees that are needed to match the traffic SLA.
    When the availability of the physical resource varies, RAW acts on the
    distribution of the traffic to leverage alternates within a finite set of
    potential resources.
    </t>


    </section> <!--The RAW Network Plane -->

<section anchor="DetNet" numbered="true" toc="default">
    <name>RAW and DetNet</name>
<t>
  RAW leverages the DetNet Forwarding sub-layer and requires the support of
  OAM in DetNet Transit Nodes (see figure 3 of <xref target="RFC8655"/> for the 
  dynamic acquisition of link capacity and state to maintain a strict RAW
  service, end-to-end, over a DetNet Network. RAW extends DetNet to improve the
  protection against link errors such as transient flapping that are far more
  common in wireless links. Nevertheless, the RAW methods are for the most part
  applicable to wired links as well, e.g., when energy savings are desirable and
  the available path diversity exceeds 1+1 linear redundancy.
</t>
<t>
  RAW adds sub-layer functions that operate in the DetNet Operational Plane, which is part of the Network Plane.
  The RAW orientation function may run only in the DetNet edge nodes (Ingress Edge
  Node or End System), or it also run in DetNet Relay Nodes
  when the RAW operations are distributed along the recovery graph.
  The RAW service layer includes the PLR, which decides the DetNet Path for the 
  future packets of a flow along the DetNet Path, Maintenance End Points (MEPs) 
  on edge nodes, and Maintenance Intermediate Points (MIPs) within. The MEPs
  trigger, and learn from, OAM observations, and feeds the PLR for its
  next decision.
</t>
<t>
  As illustrated in <xref target='FigDN'/>, RAW extends the DetNet Stack (see
  figure 4 of <xref target="RFC8655"/> and <xref target='FigLayers'/>) with 
  additional functionality at the DetNet Service sub-layer for the actuation of PREOF based on the PLR decision.
  DetNet operates at Layer-3, leveraging abstractions of the
  lower layers and APIs that control those abstractions. For instance,
  DetNet already leverages lower layers for time-sensitive operations such as
  time synchronization and traffic shapers. As the performances of the
  radio layers are subject to rapid changes, RAW needs more dynamic gauges
  and knobs. To that effect, the LL API provides an  
  abstraction to the DetNet layer that can be used to push reliability
  and timing hints like suggest X retries (min, max) within a time window, or 
  send unicast (one next hop) or multicast (for overhearing). 
  In the other direction up the stack, the RAW PLR needs hints about the radio conditions like L2 triggers (e.g., RSSI, LQI, or ETX) over all the wireless hops. 
  </t>
  <t>
  RAW uses various OAM functionalities at the different layers. For instance,
  the OAM function in the DetNet Service sub-layer (re)generates the OAM 
  information as it is formed and propagated In-Band or Out-of-Band. The RAW
  functions may be present in Service sub-layer in DetNet Edge and Relay Nodes.
</t>


<figure anchor="FigDN">
          <name>RAW function placement (Centralized Routing Case)</name>
       <artwork align="left" name="" type="" alt="">
  
  +-----------------+     +-------------------+ 
  |     Routing     |     |  OAM  Control     |   
  +-----------------+     +-------------------+  
  
  
                                          Controller Plane    
+-+-+-+-+-+-+-+-+ Southbound Interface -+-+-+-+-+-+-+-+-+-+-+-+
                                           Network Plane   
                                
                                                |                    
                Operational Plane               .   Data Plane        
                                                |
  +-----------------+                           .
  |  Orientation    |                           |
  +-----------------+                           .
                                                |
  +-----------------+   +-------------------+   .
  |    Point of     |   |  OAM  Maintenance |   |
  |   local Repair  |   |  End Point  (MEP) |   .
  +-----------------+   +-------------------+   |
                                                .
                                                |
                                    
  </artwork>
</figure>

<t> There are two main proposed models to deploy RAW and DetNet. In the first
  model (strict) (illustrated in <xref target="FigDN2"/>), RAW operates over a
  continuous DetNet Service end-to-end between the Ingress and the Egress Edge
  Nodes or End Systems.
</t>
<t>
  A minimal Forwarding sub-layer service is provided at all DetNet Nodes
  to ensure that the OAM information flows. Relay Nodes may or may not support
  RAW services, and the Edge nodes do support RAW. DetNet guarantees, such as,
  latency are provided end-to-end, and RAW supports the DetNet Service to
  optimize the use of resources.
</t>


<figure anchor="FigDN2">
          <name>(Strict) RAW over DetNet</name>
       <artwork align="left" name="" type="" alt="">

--------------------Flow Direction---------------------------------->

+---------+
| RAW     |
| Control |
+---------+                           +---------+        +---------+
| RAW +   |                           | RAW +   |        | RAW +   |
| DetNet  |                           | DetNet  |        | DetNet  |
| Service |                           | Service |        | Service |
+---------+---------------------------+---------+--------+---------+
|                       DetNet                                     |
|                     Forwarding                                   |
+------------------------------------------------------------------+

  Ingress             Transit            Relay              Egress
  Edge      ...       Nodes     ...      Nodes     ...        Edge
  Node                                                        Node

&lt;------------------End-to-End DetNet Service----------------------->

</artwork>
</figure>


<t> In the second model (loose), illustrated in <xref target="FigDN3"/>, RAW
  operates over a partial DetNet Service where typically only the Ingress and
  the Egress End Systems support RAW. The DetNet Domain may extend beyond the
  Ingress node, or there may be a DetNet domain starting at an Ingress
  Edge Node at the first hop after the End System.
</t>
<t>
  In the loose model, RAW cannot observe the hops in network, and the path
  beyond the first hop is opaque; RAW can still observe the end-to-end
  behavior and use Layer-3 measurements to decide whether to replicate a packet
  and select the first-hop interface(s).
</t>
<figure anchor="FigDN3">
          <name>Loose RAW</name>
       <artwork align="left" name="" type="" alt="">

--------------------Flow Direction---------------------------------->

+---------+
| RAW     |
| Control |
+---------+            +---------+                       +---------+
| RAW +   |            | DetNet  |                       | RAW +   |
| DetNet  |            |  Only   |                       | DetNet  |
| Service |            | Service |                       | Service |
+---------+----------------------+---+               +---+---------+
|          DetNet                    |_______________|   DetNet    |
|         Forwarding                  _______________  Forwarding  |
+------------------------------------+               +-------------+

 Ingress    Transit       Relay           Tunnel             Egress
 End  ...   Nodes   ...   Nodes    ...                ...       End
 System                                                      System

&lt;---------------Partitioned DetNet Service------------------------->

</artwork>
</figure>


    </section>      <!-- RAW and DetNet -->



    <!--  1111111111111   -->


</section> <!-- The RAW Conceptual Model -->
<section anchor="control" numbered="true" toc="default">
    <name>The RAW Control Loop</name>


    <section anchor="timescale" numbered="true" toc="default">
      <name>Routing Time-Scale vs. Forwarding Time-Scale</name>
      <t>
   With DetNet, the Controller Plane Function handles the routing
   computation and maintenance. With RAW, the routing operation is
   segregated from the RAW Control Loop, so it may reside in the Controller Plane 
   whereas the control loop itself happens in the Network Plane. To achieve RAW capabilities, the routing operation is extended to generate the information required by the orientation function in the loop. 
   The routing function may, e.g., propose DetNet Paths to be used as a reflex
   action in response to network events, or provide an aggregated history that
   the orientation function can use to make a decision.
   </t>
<t>
   In a wireless mesh, the path to a routing function located in the controller 
   plane can be expensive and
   slow, possibly going across the whole mesh and back.
   Reaching to the Controller Plane can also be slow in regards to the speed
   of events that affect the forwarding operation in the Network Plane at the radio layer.
   Note that a distributed routing protocol may also take time and
   consume excessive wireless resources to reconverge to a new optimized state.

      </t><t>
   As a result, the DetNet routing fucntion is not expected to be aware of and to react to
   very transient changes. The abstraction of a link at the routing level is
   expected to use statistical metrics that aggregate the behavior of a link
   over long periods of time, and  represent its properties as shades of gray as
   opposed to numerical values such as a link quality indicator, or a boolean
   value for either up or down.
      </t><t>

   The interaction between the network nodes and the routing function is handled by the orientation function, which 
   builds reports to the routing function and 
   sends control information in a digested form back to the RAW node, to be used inside a forwarding control loop for
   traffic steering.
   
      </t>

         <figure anchor="Figcontrol">
          <name>Time-Scales</name>
       <artwork align="center" name="" type="" alt="">
       <![CDATA[
               +----------------+
               |     DetNet     |
               |    Routing     |
               +----------------+
                       ^
                       |
                      Slow
                       |            Controller Plane
   _-._-._-._-._-._-.  |  ._-._-._-._-._-._-._-._-._-._-._-._-
 _-._-._-._-._-._-._-. | _-._-._-._-._-._-._-._-._-._-._-._-
                       |             Network Plane
                    Expensive
                       |
                ....   |  .......
            ....    .  | .       .......
         ....          v               ...
       ..    A-------B-------C---D        ..
    ...     /  \           /      \      ..
   .       I ----M-------N--***-- E        ..
   ..       \         /         /         ...
     ..      P--***--Q-----M---R        ....
       ..                              ....
        .   <----- Fast ------->    ....
         .......                ....
                .................

*** = flapping at this time
    ]]>
       </artwork>
       </figure>
      <t>
   In the case of wireless, the changes that affect the forwarding decision can
   happen frequently and often for short durations, e.g., a mobile object moves
   between a transmitter and a receiver, and cancels the line of sight
   transmission for a few seconds, or, a radar measures the depth of a pool using the ISM band, and
   interferes on a particular channel for a split second.
      </t>
      <t>
   There is thus a desire to separate the long-term computation of the route and
   the short-term forwarding decision. In that model, the routing operation
   computes a recovery graph that enables multiple Unequal Cost Multi-Path
   (UCMP) forwarding solutions along so-called protection paths, and leaves
   it to the Network Plane to make
   the short-term decision of which of these possibilities should be used for which upcoming packets / flows.
      </t>
      <t>
   In the context of Traffic Engineering (TE), an alternate path can be used 
   upon the detection of a failure in the main path, e.g., using OAM in 
   MPLS-TP or BFD over a collection of SD-WAN tunnels. RAW
   formalizes a forwarding time-scale that is an order(s) of magnitude shorter
   than the Controller Plane routing time-scale, and separates the protocols
   and metrics that are used at both scales.
   Routing can operate on long-term statistics such as delivery
   ratio over minutes to hours, but as a first approximation can ignore flapping.
   On the other hand, the RAW forwarding decision is made at the scale of the packet rate, and uses information that must be pertinent at the present time for the current transmission(s).
      </t>

    </section >
    <!--Routing time-scale vs. Forwarding time-scale-->

<section anchor="ooda" numbered="true" toc="default">
    <name>A OODA Loop</name>
      <t>
   OODA (Observe, Orient, Decide, Act) is a generic formalism to represent the
   operational steps in a Control Loop.
   The RAW Architecture applies the generic OODA model to continuously optimize the
   spectrum and energy used to forward packets within a recovery graph, instantiating the
   OODA steps as follows:
      </t>
      <dl>
      <dt>Observe:</dt><dd> Network Plane measurements, including protocols for
      Operations, Administration and Maintenance (OAM), to Observe the local
      state of the links and some or all hops along a recovery graph as well as
      the end-to-end packet delivery, more in <xref target =
      "aom"/>. Information can also be provided by lower-layer
      interfaces such as DLEP;
      </dd>
      <dt>Orient:</dt><dd>
      The orientation function, which reports data and information such as the link
      statistics, and leverages offline-computed wisdom and knowledge to Orient
      the PLR for its forwarding decision, more in <xref target = "pce" />;
      </dd>
      <dt>Decide:</dt><dd> A local PLR that decides which DetNet Path to use
      for the future packet(s) that are routed along the recovery graph,
      more in <xref target = "PLRpce" />;
      </dd>
      <dt>Act:</dt><dd> PREOF Dataplane
      actions are controlled by the PLR over the LL API to increase the
      reliability of the end-to-end transmission. The RAW architecture also
      covers in-situ signaling when the decision is Acted by a node that is
      down the recovery graph from the PLR, more in 
     <xref target = "reliability" />.
      </dd>
      </dl>
      <figure anchor="oodaloop">
          <name>The RAW OODA Loop</name>
       <artwork align="center" name="" type="" alt="">
<![CDATA[

     +-------> Orientation ---------+
     |        reflex actions        |
     |       pre-trained model      |
     |                              |
   ......................................
     |                              |
     |        Service sub-layer     |
     |                              v
 Observe (OAM)                 Decide (PLR)
     ^                              |
     |                              |
     |                              |
     +------- Act (LL API) <--------+
    
]]></artwork>
</figure>
   <t> The overall OODA Loop optimizes the use of redundancy to achieve the
   required reliability and availability Service Level Agreement (SLA) while
   minimizing the use of constrained resources such as spectrum and battery.
   </t>


</section > <!-- A OODA Loop -->
<section anchor="aom" numbered="true" toc="default">
    <name>Observe: The RAW OAM </name><t>
    RAW In-situ OAM operation in the Network Plane may observe either a full
    recovery graph or the DetNet Path that is being used at this time. As packets may be load
    balanced, replicated, eliminated, and / or fragmented for Network Coding
    (NC) forward error correction (FEC), the RAW In-situ operation needs to be
    able to signal which operation occurred to an individual packet.
    </t>
    <t>
    Active RAW OAM may
    be needed to observe the unused segments and evaluate the desirability of
    a rerouting decision.
    </t>
    <t>
    Finally, the RAW Service sub-layer Assurance may observe the individual PREOF
    operation of a relay node to ensure that it is conforming; this might
    require injecting an OAM packet at an upstream point inside the recovery graph and
    extracting that packet at another point downstream before it reaches the
    egress.
    </t><t>
    This observation feeds the RAW
    PLR that makes the decision on which path is used at which RAW
    Node, for one packet or a small continuous series of packets.
     </t>
<figure anchor="Figranp2">
          <name>Observed Links in Radio Access Protection</name>
       <artwork align="center" name="" type="" alt="">
<![CDATA[

                               Opaque to OAM
                       <---------------------------->
                                   ...   ..
                RAN 1  -----  ...      ..  ...
             /              .    ..          ....
+-------+  /              .            ..      ....    +------+
|Ingress|-              __________Tunnel_______________|Egress|
|  End  |------ RAN 2 --_______________________________  End  |
|System |-                ..                   .....   |System|
+-------+  \               .               ......      +------+
             \               ...   ...     .....
                RAN n  --------  ...   .....

        <-------L2------> 
         Observed by OAM       
        <----------------------L3----------------------->
]]></artwork>
</figure>
   <t>
    In the case of End-to-End Protection in a Wireless Mesh, the recovery
   graph is strict and congruent with the path so all links are observed.
    </t>
    <t>
    Conversely, in the case of Radio Access Protection, illustrated in 
   <xref target="Figranp2"/>, the recovery graph is Loose and only the first
   hop is observed; the rest of the path is abstracted and considered 
   infinitely reliable. The loss of a packet is attributed to the first-hop 
   Radio Access Network (RAN), even if a particular loss effectively happens 
   farther down the path. In that case, RAW enables technology diversity 
   (e.g., Wi-Fi and 5G), which in turn improves the diversity in spectrum usage.
    </t>
    <t>
    The Links that are not observed by OAM are opaque to it, meaning that the
    OAM information is carried across and possibly echoed as data, but there is
    no information capture in intermediate nodes. In the example above, the
    Tunnel underlay is opaque and not controlled by RAW; still the RAW OAM measures the
    end-to-end latency and delivery ratio for packets sent via RAN 1, RAN 2, and 
   RAN 3, and determines whether a packet should be sent over either or a 
   collection of those access links.
    </t>




</section>
    <!-- Observe: The RAW OAM -->


<section anchor="pce" numbered="true" toc="default">
    <name>Orient: The RAW-extended DetNet Operational Plane</name>

   <t>
   RAW separates the long time-scale at which a recovery graph is computed and installed,
   from the short time-scale at which the forwarding decision is taken for one
   or for a few packets (see <xref target="timescale"/>) that experience the
   same path until the network conditions evolve and another path is selected
   within the same recovery graph.
   </t>
   <t>
   The recovery graph computation is out of scope, but RAW expects that the CPF
   that installs the recovery graph also provides related knowledge
   in the form of meta data about the links, segments, and possible DetNet Paths.
   That meta data can be a pre-digested statistical model, and may include
   prediction of future flaps and packet loss, as well as recommended actions
   when that happens.
   </t>
   <t>
   The meta data may include:
   </t>
   <ul>
   <li>
   A set of Pre-Determined DetNet Paths that are prepared to match 
   expected link-degradation profiles, so the DetNet relay nodes can take reflex rerouting actions when
   facing a degradation that matches one such profile.
   </li>
   <li>
   Link-Quality Statistics history and pre-trained models, e.g., to predict the
   short-term variation of quality of the links in a recovery graph
   </li>
   </ul>
   <t>
   The recovery graph is installed with measurable objectives that are computed
   by the CPF to achieve the RAW SLA. The objectives can be expressed as any of the
   maximum number of packets lost in a row, bounded latency, maximal jitter,
   maximum number of interleaved out-of-order packets,
   average number of copies received at the elimination point, and maximal
   delay between the first and the last received copy of the same packet.
   </t>
</section>
    <!-- Orient: The Path Computation Engine -->

<section anchor="PLRpce" numbered="true" toc="default">
    <name>Decide: The Point of Local Repair</name>
 <t>
    The RAW OODA Loop operates at the path selection time-scale to provide
    agility vs. the brute-force approach of flooding the whole recovery graph.
    The OODA Loop controls, within the redundant solutions that are proposed
    by the routing function, which is used for each packet to provide a Reliable and
   Available service while minimizing the waste of constrained resources.
    </t><t>
    To that effect, RAW defines the Point of Local Repair (PLR), which performs
   rapid local adjustments of the forwarding tables within the path diversity that is
   available in that in the recovery graph. The PLR enables exploitation of 
   the richer forwarding capabilities at a faster time-scale over a portion of
   the recovery graph, in either a loose or a strict fashion.
    </t>
   <t>
    The PLR operates on metrics that evolve faster, but that need to be
    advertised at a fast rate but only locally, within the recovery graph, and reacts on
    the metric updates by changing the DetNet path in use for the affected
    flows.
   </t>
   <t>
    The rapid changes in the forwarding decisions are made and contained within
    the scope of a recovery graph and the actions of the PLR are not signaled outside
    the recovery graph. This is as opposed to the routing function that must observe
    the whole network and optimize all the recovery graphs globally, which can only be
    done at a slow pace and using long-term statistical metrics, as presented in
    <xref target="PCEPLRtable"/>.
    </t>


    <table anchor="PCEPLRtable"><name>Centralized Decision vs. PLR</name>
   <thead>
      <tr>
       <th> </th>
         <th align='center'> Controller Plane      </th>
         <th align='center'> PLR        </th>
      </tr>

   </thead><tbody>


         <tr><td>Communication
</td>
             <td align='center'>Slow, distributed</td>
             <td align='center'>Fast, local</td>
        </tr>


         <tr><td>Time-Scale (order)</td>
             <td align='center'>Path computation + round trip, milliseconds to seconds</td>
             <td align='center'>Lookup + protection switch, micro to milliseconds</td>
        </tr>


         <tr><td>Network Size</td>
             <td align='center'>Large, many recovery graphs to optimize globally</td>
             <td align='center'>Small, limited set of protection paths</td>
        </tr>


         <tr><td>Considered Metrics</td>
             <td align='center'>Averaged, statistical, shade of grey</td>
             <td align='center'>Instantaneous values / boolean condition</td>
        </tr>



    </tbody>
    </table>
    <t>
    The PLR sits in the DetNet Forwarding sub-Layer of Edge and Relay Nodes. 
    The PLR operates on the packet flow, learning the recovery graph and 
    path-selection information from the packet, possibly making a local decision and
    retagging the packet to indicate so. On the other hand, the PLR interacts
    with the lower layers (through triggers and DLEP) and with its peers
    (through OAM) to obtain up-to-date information about its links and
    the quality of the overall recovery graph, respectively, as illustrated in
    <xref target="Figlearn"/>.
    </t>

<figure anchor="Figlearn">
          <name>PLR Conceptual Interfaces</name>
       <artwork align="center" name="" type="" alt=""><![CDATA[
            |
     packet | going
   down the | stack
 +==========v==========+=====================+=====================+
 |(in-band OAM + iCTRL)| (L2 Triggers, DLEP) |        (OAM)        |
 +==========v==========+=====================+=====================+
 |     Learn from      |                     |    Learn from       |
 |    packet tagging   >       Maintain      <    end-to-end       |
 +----------v----------+      Forwarding     |    OAM packets      |
 | Forwarding decision <        State        +---------^-----------|
 +----------v----------+                     |      Enrich or      |
 +    Retag Packet     |  Learn abstracted   >     Regenerate      |
 |    and Forward      | metrics about Links |     OAM packets     |
 +..........v..........+..........^..........+.........^.v.........+
 |                          Lower layers                           |
 +..........v.....................^....................^.v.........+
      frame | sent          Frame | L2 Ack         OAM | | packet
       over | wireless        In  |                 In | | and out
            v                     |                    | v
]]></artwork>
</figure>
</section>
    <!--PCE vs. PLR-->


    <!--  11111111111111111    -->
    <section anchor="reliability" numbered="true" toc="default">
      <name>Act: DetNet Path Selection and Reliability Functions</name>
      <t>
    The main action by the PLR is the swapping of the DetNet Path within the
    recovery graph for the future packets.
    The candidate DetNet Paths represent different energy and spectrum profiles,
    and provide protection against different failures.
    </t>
    <t>The LL API enriches the DetNet protection services (PREOF)
    with potential possibility to interact with lower-layer one-hop reliability
   functions that are more typical to wireless than wired, including Automatic 
   Repeat reQuest (ARQ), Forward Error Correction (FEC), Hybrid ARQ (HARQ) 
   that includes both, and other techniques such as overhearing and 
   constructive interferences. Because RAW may be leveraged on wired links, 
   e.g., to save power, it is not expected that all lower layers support all
   those capabilities.
    </t>
    <t>
    RAW provides hints to the lower-layer services on the desired outcome, and
   the lower layer acts on those hints to provide the best approximation of 
   that outcome, e.g., a level of reliability for one-hop transmission within
   a bounded budget of time and/or energy. Thus, the LL API makes possible 
   cross-layer optimization for reliability depending on the actual 
   abstraction provided. That is, some reliability functions are controlled
   from Layer-3 using an abstract interface, while they are really operated at
   the lower layers.
    </t>
    <t>
    The RAW Path Selection can be implemented in both centralized and 
   distributed approaches.
    In the centralized approach, the PLR may obtain a set of pre-computed DetNet
    paths matching a set of expected failures, and apply the appropriate DetNet
    paths for the current state of the wireless links.
    In the distributed approach, the signaling in the packet may be more
    abstract than an explicit Path, and the PLR decision might be revised along
    the selected DetNet Path based on a better knowledge of the rest of the way.
    </t>
    <t>
    The dynamic DetNet Path selection in RAW avoids the waste of critical
    resources such as spectrum and energy while providing for the
    assured SLA, e.g., by rerouting and/or adding redundancy only when a
    loss spike is observed.
    </t>




</section>      <!-- Act: The reliability Functions-->

</section>
   <!-- The RAW Control Loop -->

    <!--  000000000000000000000    -->



    <section anchor="SecurityConsiderations" numbered="true" toc="default">
      <name>Security Considerations</name>
    <t>
    RAW uses all forms of diversity including radio technology and physical path
    to increase the reliability and availability in the face of unpredictable
    conditions. While this is not done specifically to defeat an attacker, the
    amount of diversity used in RAW makes an attack harder to achieve.
    </t>




    <section numbered="true" toc="default">
      <name>Layer-2 encryption</name>
    <t>
    Radio networks typically encrypt at the MAC layer to protect the
    transmission. If the encryption is per-pair of peers, then certain
    RAW operations like promiscuous overhearing become impossible.
    </t>

      </section><!-- Layer-2 encryption -->
    <section numbered="true" toc="default">
      <name>Forced Access</name>
    <t>
    A RAW policy may typically select the cheapest collection of links that
    matches the requested SLA, e.g., use free Wi-Fi vs. paid 3GPP access. By
    defeating the cheap connectivity (e.g., PHY-layer interference) the attacker
    can force an End System to use the paid access and increase the cost of the
    transmission for the user.
    </t>

      </section><!-- Forced Access -->

    <!--  111111111111111111111    -->
    </section>
      <!--Security Considerations-->
    <!--  000000000000000000000    -->




    <section numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t>This document has no IANA actions.
      </t>
    </section>
      <!--IANA Considerations-->
    <!--  000000000000000000000    -->

    <section numbered="true" toc="default">
      <name>Contributors</name>
      <t>The editor wishes to thank the document co-authors:
      </t>
      <dl>
    <dt>Lou Berger:</dt><dd>LabN Consulting, L.L.C, lberger@labn.net</dd>
    <!--dt>Janos Farkas:</dt><dd>Erisson,    Janos.Farkas@ericsson.com</dd-->
    <dt>Xavi Vilajosana:</dt><dd>Wireless Networks Research Lab, Universitat Oberta de Catalunya, xvilajosana@gmail.com</dd>
    <dt>Geogios Papadopolous:</dt><dd>IMT Atlantique   , georgios.papadopoulos@imt-atlantique.fr</dd>
    <dt>Remous-Aris Koutsiamanis:</dt><dd>IMT Atlantique, remous-aris.koutsiamanis@imt-atlantique.fr </dd>
    <dt>Rex Buddenberg:</dt><dd>retired, buddenbergr@gmail.com</dd>
    <dt>Greg Mirsky:</dt><dd>Ericsson, gregimirsky@gmail.com</dd>
      </dl>
      <t>for their contributions to the text and ideas exposed in this document.
      </t>
    </section>
      <!--ConTributors-->
    <!--  000000000000000000000    -->

   <section><name>Acknowledgments</name>
   <t>This architecture could never have been completed without the support and
   recommendations from the DetNet Chairs Janos Farkas and Lou Berger, and
   Dave Black, the DetNet Tech Advisor.
   Many thanks to all of you.
   </t>
   <t>The authors wish to thank Balazs Varga, Dave Cavalcanti, Don Fedyk,
   Nicolas Montavont, and Fabrice Theoleyre for their in-depth reviews during
   the development of this document.
   </t>
   <t>The authors wish to thank Acee Lindem and Eva Schooler for their 
   reviews and comments during the IETF last call phase, and 
   Ketan Talaulikar, .. for their IESG reviews.
   </t>
   </section>
   <!-- Acknowledgments -->
    <!--  000000000000000000000    -->


  </middle>
  <back>


<displayreference   target="I-D.ietf-raw-technologies"   to="RAW-TECHNOS"/>
<displayreference   target="I-D.ietf-raw-use-cases"   to="RAW-USE-CASES"/>

<displayreference   target="RFC1122"                  to="INT-ARCHI"/>
<displayreference   target="RFC9522"                  to="TE"/>
<displayreference   target="RFC8175"                  to="DLEP"/>
<displayreference   target="RFC7490"                  to="RLFA-FRR"/>
<displayreference   target="RFC5714"                  to="FRR"/>
<displayreference   target="RFC8938"                  to="DetNet-DP"/>
<!--displayreference   target="RFC9016"                  to="DetNet-Flow"/-->
<displayreference   target="RFC8655"                  to="DetNet-ARCHI"/>
<displayreference   target="RFC9030"                  to="6TiSCH-ARCHI"/>
<displayreference   target="RFC9551"                  to="DetNet-OAM"/>

    <references>
      <name>References</name>
      <references>
    <name>Normative References</name>


<xi:include href="http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.9030.xml"/>
<!-- 6TiSCH Architecture -->

<xi:include href="http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.1122.xml"/>
<!-- Internet Architecture -->
<xi:include href="http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.4427.xml"/>
<!-- Internet Architecture -->

<xi:include href="http://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-raw-technologies.xml"/>
<!-- Reliable and Available Wireless Technologies -->

<xi:include href="http://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-raw-use-cases.xml"/>
<!-- RAW use cases -->

<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.4655.xml"/>
<!-- PCE -->

<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6291.xml"/>
<!-- Guidelines for the Use of the "OAM" Acronym in the IETF  -->

<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.7799.xml"/>
<!-- Active and Passive Metrics and Methods for OAM  -->

<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8578.xml"/>
<!-- Deterministic Networking Use Cases -->

<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8557.xml"/>
<!-- DetNet problem statement -->

<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8655.xml"/>
<!-- Deterministic Networking Architecture -->
<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8939.xml"/>
<!-- Deterministic Networking IP dataplane -->

<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.9049.xml"/>
<!-- Path Aware Networking: Obstacles to Deployment  -->

      </references>
    <!--Normative References-->


      <references>
    <name>Informative References</name>


<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.0791.xml"/>
<!-- IP -->

<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.2205.xml"/>
<!-- RSVP -->


<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.9522.xml"/>
<!-- TE -->

<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.3366.xml"/>
<!-- Advice to link designers on link Automatic Repeat reQuest (ARQ) -->


<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.4090.xml"/>
<!-- Fast Reroute Extensions to RSVP-TE -->



<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.5880.xml"/>
<!-- BFD -->

<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.5714.xml"/>
<!--  IP Fast Reroute Framework -->
<xi:include href="http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6378.xml"/>
<xi:include href="http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6551.xml"/>

<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.7490.xml"/>
<!--   Remote Loop-Free Alternate (LFA) Fast Reroute (FRR) -->

<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8724.xml"/>

<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8938.xml"/>
<!--   Deterministic Networking (DetNet) Data Plane Framework -->

<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8175.xml"/>
 <!--    Dynamic Link Exchange Protocol  -->

<!--xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.9016.xml"/-->
 <!-- Flow and Service Information Model for Deterministic Networking (DetNet) -->

<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.9551.xml"/>
<xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.9378.xml"/>
 <!-- Framework of Operations, Administration, and Maintenance (OAM) for Deterministic Networking (DetNet) -->

 <xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8762.xml"/>
 <xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.9633.xml"/>

<xi:include href="http://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-detnet-controller-plane-framework"/>

<xi:include href="http://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.irtf-panrg-path-properties.xml"/>


    <reference anchor="NASA1" target="https://extapps.ksc.nasa.gov/Reliability/Documents/150814-3bWhatIsReliability.pdf">
      <front>
        <title>RELIABILITY: Definition &amp; Quantitative Illustration</title>
        <author  initials="T." surname="Adams" fullname="Tim Adams" >
          <organization>NASA</organization>
        </author>
        <date/>
      </front>
    </reference>
   
   <reference anchor="NASA2" target="https://extapps.ksc.nasa.gov/Reliability/Documents/160727.1_Availability_What_is_it.pdf">
      <front>
        <title>Availability</title>
        <author  initials="T." surname="Adams" fullname="Tim Adams" >
          <organization>NASA</organization>
        </author>
        <date/>
      </front>
    </reference>

    <!--Informative References-->
    </references>
    </references>


  </back>
</rfc>
