<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc toc="yes" ?>
<?rfc symrefs="yes" ?>
<?rfc sortrefs="yes"?>
<?rfc iprnotified="no" ?>
<?rfc strict="yes" ?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="std" ipr="trust200902" docName="draft-ietf-manet-dlep-credit-flow-control-15" obsoletes="" updates="" submissionType="IETF" xml:lang="en" tocInclude="true" symRefs="true" sortRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 3.19.4 -->
  <front>
    <title abbrev="DLEP Credit-Based Flow Control">
  DLEP Credit-Based Flow Control Messages and Data Items</title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-manet-dlep-credit-flow-control-15"/>
    <author initials="B." surname="Cheng" fullname="Bow-Nan Cheng">
      <organization>MIT Lincoln Laboratory</organization>
      <address>
        <postal>
          <street>Massachusetts Institute of Technology</street>
          <street>244 Wood Street</street>
          <city>Lexington</city>
          <region>MA</region>
          <code>02421-6426</code>
        </postal>
        <email>bcheng@ll.mit.edu</email>
      </address>
    </author>
    <author initials="D." surname="Wiggins" fullname="David Wiggins">
      <address>
        <email>david@none.org</email>
      </address>
    </author>
    <author initials="L." surname="Berger" fullname="Lou Berger">
      <organization>LabN Consulting, L.L.C.</organization>
      <address>
        <email>lberger@labn.net</email>
      </address>
    </author>
    <author fullname="Stan Ratliff" initials="S." surname="Ratliff">
      <address>
        <email>stan@none.org</email>
      </address>
    </author>
    <date/>
    <abstract>
      <t>
      This document defines new Dynamic Link Exchange Protocol (DLEP) Data Items that are used to
      support credit-based flow control.
      Credit
      window control is used to regulate when data may be sent to an
      associated virtual or physical queue.  The Data Items are defined in
      an extensible and reusable fashion. Their use will be mandated in
      other documents defining specific DLEP extensions.
      </t>
    </abstract>
  </front>
  <middle>
    <section anchor="sec-1" numbered="true" toc="default">
      <name>Introduction</name>
      <t>
      The Dynamic Link Exchange Protocol (DLEP) is defined in <xref target="RFC8175" format="default"/>.  This protocol provides the exchange of link related
      control information between DLEP peers.  DLEP peers are comprised
      of a modem and a router.  DLEP defines a base set of mechanisms as
      well as support for possible extensions.  DLEP defines Data Items
      which are sets of information that can be reused in DLEP
      messaging.
      The DLEP specification does not include any flow
      identification beyond DLEP endpoints nor flow control capability.
      There are various flow control techniques theoretically possible
      with DLEP.  For example, a credit-window scheme for
      destination-specific flow control which provides aggregate flow
      control for both modem and routers has been proposed in <xref target="I-D.ietf-manet-credit-window" format="default"/>, and a control plane pause
      based mechanism is defined in <xref target="RFC8651" format="default"/>.
      </t>
      <t>
      This document defines DLEP Data Items and Messages which provide
      a flow control mechanism for traffic sent
      from a router to a modem. Flow control is provided using one or
      more logical "Credit Windows", each of which will typically be
      supported by an associated virtual or physical queue.
      A router will use traffic flow classification information
      provided by the modem,
      as defined in <xref target="I-D.ietf-manet-dlep-traffic-classification" format="default"/>,
      to identify which traffic is associated with
      each credit window.
      In this case, a flow is identified based on
      information found in a data plane header and one or more matches
      are associated with a single flow.  (For general background on
      traffic classification see <xref target="RFC2475" format="default"/> Section 2.3.)
      Credit windows may be shared or dedicated on a per flow basis. The
      Data Items are structured to allow for reuse of the defined
      credit window based flow
      control with different traffic classification techniques.
      A router logically consumes credits for each credit window
      matching packet sent.
      </t>
      <t>
      Note that this document defines common Messages, Data Items and
      mechanisms that are reusable.  They are expected to be required by
      DLEP extensions defined in other documents such as found in <xref target="I-D.ietf-manet-dlep-da-credit-extension" format="default"/>.
      </t>
      <t>
      This document
      supports credit window control by introducing two new DLEP
      messages in <xref target="sec-msgs" format="default"/>, and five new DLEP Data
      Items in <xref target="sec-data-items" format="default"/>.
      </t>
      <section anchor="sec-1.1" numbered="true" toc="default">
        <name>Key Words</name>
        <t>
        The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
        "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
        "OPTIONAL" in this document are to be interpreted as described in
        BCP 14 <xref target="RFC2119" format="default"/> <xref target="RFC8174" format="default"/> when, and
        only when, they appear in all capitals, as shown here.
        </t>
      </section>
    </section>
    <section anchor="sec-cw-control" numbered="true" toc="default">
      <name>Credit Window Control</name>
      <t>
    This section defines additions to DLEP used in credit based flow
    control.  Two
    new messages and five Data Items are defined to support credit
    window control.  The use of credit window control impacts the data
    plane.
      </t>
      <t>
    The credit window control mechanisms defined in this document
    support credit based flow control of traffic sent from a router to a
    modem.  The mapping of specific flows of traffic to a particular
    credit window is based on the Traffic Classification Data Item
    defined in <xref target="I-D.ietf-manet-dlep-traffic-classification" format="default"/>. Both types of
    DLEP endpoints, 
    i.e., a router and a modem, negotiate the use of this extension during
    session initialization, e.g., see <xref target="I-D.ietf-manet-dlep-da-credit-extension" format="default"/>.  When using
    credit windows, data traffic is only allowed to be sent by the
            router to the modem when there are credits available except during
            transients when the credit window has been reduced. Implementations should 
            allow exceeding the credit window during the short time that a router might 
            take to respect the new credit window. 
      </t>
      <t>
    Credits are managed on a per logical "Credit Window" basis.  Each
    credit window can be thought of as corresponding to a queue within a
    modem.  Credit windows may be shared across, or dedicated to,
    destinations and data plane identifiers, e.g., DSCPs, at a
    granularity that is appropriate for a modem's implementation and its
    attached transmission technology.  As defined below, there is a
    direct one-for-one mapping of credit windows to flows as identified
    by Flow Identifiers (FIDs) carried within the Traffic Classification Data Item.  Modems
    pass to the router information on their credit windows and FIDs
    prior to a router being able to send data when an extension
    requiring the use of credit window control is used.  In addition to
    the traffic classification information associated with an FID,
    modems provide an initial credit window size, as well as the
    maximum size of the logical queue associated with each credit
    window.  The maximum size is included for informative and potential
    future uses.
      </t>
      <t>
    Modems provide an initial credit window size at the time of "Credit
    Window Initialization".  Such initialization can take place during
    session initiation or any point thereafter.  It can also take place
    when rate information changes.  Additional "Credit Grants", i.e.,
    increments to Credit Window size, are provided using a Destination
    Up or the new "Credit Control" Message.  A router provides its view
    of the Credit Window, which is known as "Status", in Destination Up
    Response and the new "Credit Control Response" Messages.  Routers
    can also request credits using the new "Credit Control" Message.
      </t>
      <t>
    When modems provide credits to a router, they will need to take into
    account any overhead of their attached transmission technology and
    map it into the credit semantics defined in this document.  In
    particular, the credit window is defined below to include per frame
    (packet) MAC headers, and this may not match the actual overhead of
    the modem attached transmission technology.  In that case a direct
    mapping, or an approximation will need to be made by the modem to
    provide appropriate credit values.
      </t>
      <t>
    Actual flows of traffic are mapped to credit windows based on flow
    identification information provided by modems in the Traffic
    Classification Data item defined in <xref target="I-D.ietf-manet-dlep-traffic-classification" format="default"/>. This
    data item supports traffic classification on a per destination or
    more fine grain level.  Routers use the combination of the DLEP
    identified destination and flow information associated with a credit
    window in order to match traffic they send to specific credit
    windows.
      </t>
      <t>
    When a destination becomes reachable, a modem "associates"
    (identifies) the appropriate traffic classification information via
    the Traffic Class Identifier (TID) to be used for traffic sent by the router to that
    destination.
    This is supported by the Credit Window
    Association Data Item which is carried in Destination Up and Update
    messages, see <xref target="sec-di-cwa" format="default"/>.
    The TID provides the information to support router traffic
    classification, based on the FIDs contained in the TID, see <xref target="I-D.ietf-manet-dlep-traffic-classification" format="default"/>. 
    As defined,
    each credit window has a corresponding FID, so traffic is
    mapped to a credit window by locating a matching FID that is
    contained in the TID that is associated with the traffic's
    destination.
    This means that the use of FIDs, TIDs and the association of a
    TID to a DLEP destination enables a modem to share or dedicate
    resources as needed to match the specifics of its implementation and
    its attached transmission technology.
      </t>
      <t>
      The defined credit window control has similar objectives as the
      control found in <xref target="I-D.ietf-manet-credit-window" format="default"/>.
      One notable difference from that credit control is that in this
      document, credits are never provided by the router to the modem.
      </t>
      <section anchor="data-plane" numbered="true" toc="default">
        <name>Data Plane Considerations</name>
        <t>
      When credit windowing is used, a router MUST NOT send data traffic
      to a modem for forwarding when there are no credits available in the
      associated Credit Window.  This document defines credit windows in
      octets.  A credit window value MUST be larger than the number of
      octets contained in a packet, including any MAC overhead (e.g.,
      framing, headers and trailers) used between
      the router and the modem, in order for the router to send the packet
      to a modem for forwarding.  The credit window is decremented by the
      number of sent octets.
        </t>
        <t>
      A router MUST identify the credit window associated with traffic
      sent to a modem based on the traffic classification information
      provided in the Data Items defined in this document.
        </t>
      </section>
      <section anchor="sec-msgs" numbered="true" toc="default">
        <name>Credit Window Messages</name>
        <t>
      Two new messages are defined in support for credit window control:
      the Credit Control and the Credit Control Response Message.  Sending
      and receiving both message types is REQUIRED to support the credit
      window control defined in this document.
        </t>
        <section anchor="sec-cc-msg" numbered="true" toc="default">
          <name>Credit Control Message</name>
          <t>
        Credit Control Messages are sent by modems and routers. Each
        sender is only permitted to have one message outstanding at one
        time.  That is, a sender (i.e., modem or router) MUST NOT send a
        second or any subsequent Credit Control Message until a Credit
        Control Response Message is received from its peer (i.e., router
        or modem).
          </t>
          <t>
        Credit Control Messages are sent by modems to provide credit
        window increases.  Modems send credit increases when there is
        transmission or local queue availability that exceeds the credit
        window value previously provided to the router. Modems will need to
        balance the load generated by sending and processing frequent credit
        window increases against a router having data traffic available to send,
        but no credits available.
          </t>
          <t>
        Credit Control Messages MAY be sent by routers to request
        credits and provide window status. Routers will need to
        balance the load generated by sending and processing frequent credit
        window requests against having data traffic available to send,
        but no credits available.
          </t>
          <t>
        The Message Type value in the DLEP Message Header is set to TBA2.
          </t>
          <t>
        A message sent by a modem, MUST contain one or more
        Credit Window Grant Data Items as defined below in <xref target="sec-di-grant" format="default"/>.  A router receiving this message MUST
        respond with a Credit Control Response Message.
          </t>
          <t>
        A message sent by a router, MUST contain one or more Credit Window
        Request Data Items defined below in <xref target="sec-di-request" format="default"/> and SHOULD contain a Credit Window
        Status Data Item, defined in <xref target="sec-di-status" format="default"/>,
        corresponding to each credit window request. A modem receiving
        this message MUST respond with a Credit Control Response
        Message based on the received message and Data Item and the
        processing defined below, which will typically result in credit
        window increments being provided.
          </t>
          <t>
        Specific processing associated with each Credit Data Item is
        provided below.
          </t>
        </section>
        <section anchor="sec-ccr-msg" numbered="true" toc="default">
          <name>Credit Control Response Message</name>
          <t>
        Credit Control Response Messages are sent by routers to report
        the current Credit Window for a destination.  A message sent by
        a router, MUST contain one or more Credit Window Status Data
        Items as defined below in <xref target="sec-di-status" format="default"/>.
        Specific receive processing associated with the Credit Window
        Status Data Item is provided below.
          </t>
          <t>
        Credit Control Response Messages sent by modems MUST contain one
        or more Credit Window Grant Data Items. A Data Item for every
        Credit Window Request Data Item contained in the corresponding
        Credit Control Message received by the modem MUST be
        included.  Each Credit Grant Data Item MAY provide zero or more
        additional credits based on the modem's transmission or local
        queue availability.  Specific receive processing associated with
        each Grant Data Item is provided below.
          </t>
          <t>
        The Message Type value in the DLEP Message Header is set to TBA3.
          </t>
        </section>
      </section>
      <section anchor="sec-data-items" numbered="true" toc="default">
        <name>Credit Window Control Data Items</name>
        <t>
      Five new Data Items are defined to support credit window control.
      The Credit Window Initialization
      Data Item is used by a modem to identify a credit window and set its
      size.
      The Credit Window Association
      Data Item is used by a modem to identify which traffic classification
      identifiers (flows) should be used when sending traffic to a particular DLEP
      identified destination.
      The Credit Window Grant is used by a modem to provide additional
      credits to a router.
      The Credit Window Request is used by a router to request additional
      credits.
      The Credit Window Status is used to advertise the sender's view of
      number of available credits for state synchronization purposes.
        </t>
        <t>
      Any errors or inconsistencies encountered in parsing Data Items
      are handled in the same fashion as any other data item parsing error
      encountered in DLEP, see <xref target="RFC8175" format="default"/>. In particular, the
      node parsing the Data Item MUST terminate the session with a
      Status Data Item indicating Invalid Data.
        </t>
        <section anchor="sec-di-cwi" numbered="true" toc="default">
          <name>Credit Window Initialization</name>
          <t>
        The Credit Window Initialization Data Item is used by a modem to
        identify a credit window and set its size.
        In order to avoid errors caused by use of undefined FIDs or
        uninitialized credit windows,
        this Data Item
        SHOULD be included in any Session Initialization Response
        Message that also indicates support for an extension that
        requires support for the credit window control mechanisms
        defined in this document, e.g., see <xref target="I-D.ietf-manet-dlep-da-credit-extension" format="default"/>.  Updates to
        previously identified credit windows or new credit windows MAY
        be sent by a modem by including the Data Item in Session Update
        Messages.  More than one data item MAY be included in a message
        to provide information on multiple credit windows.
          </t>
          <t>
        The Credit Window Initialization Data Item identifies a credit
        window using a Flow Identifier, or FID.  It also provides the
        size of the identified credit window.  Finally, a queue size (in
        bytes) is provided for informational purposes.  Note that to be
        used, a FID must be defined within a Traffic Classification Data
        Item and the associated TID must be provided via a Credit Window
        Association Data Item.
          </t>
          <t>
        The format of the Credit Window Initialization Data Item is:
          </t>
          <artwork name="" type="" align="left" alt=""><![CDATA[
     0                   1                   2                   3
     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    | Data Item Type                | Length (16)                   |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    | Flow Identifier (FID)         |            Reserved           |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |                         Credit Value                          :
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    :                         Credit Value                          |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |    Scale      |         Credit Window Max Size                |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
          ]]></artwork>
          <dl newline="true" spacing="normal">
            <dt>Data Item Type:</dt>
            <dd>TBA4</dd>
            <dt>Length:</dt>
            <dd>
              <t> 16
              </t>
              <t>
          Per <xref target="RFC8175" format="default"/> Length
          is the number of octets in the Data Item.  It MUST be equal to
          sixteen (16).
              </t>
            </dd>
            <dt>Flow Identifier (FID):</dt>
            <dd>
            A flow identifier as defined by the Traffic Classification
            Data Item.  The FID also uniquely identifies a credit
            window.
          </dd>
            <dt>Reserved:</dt>
            <dd>
            MUST be set to zero by the sender (a modem) and ignored by the
            receiver (a router).
          </dd>
            <dt>Credit Value:</dt>
            <dd>
            A 64-bit unsigned integer representing the credits, in octets, to
            be added to the Credit Window.  This value includes MAC
            headers as seen on the link between the modem and router.
          </dd>
            <dt>Scale:</dt>
            <dd>
              <t>
            An 8-bit unsigned integer indicating the scale used in the Credit Window
            Max Size field.  The valid values are:
              </t>
              <artwork name="" type="" align="left" alt=""><![CDATA[
      Value  Scale
      ------------
          0   B - Bytes     (Octets)
          1  KB - Kilobytes (B/1024)
          2  MB - Megabytes (KB/1024)
          3  GB - Gigabytes (MB/1024)
              ]]></artwork>
            </dd>
            <dt>Credit Window Max Size:</dt>
            <dd>
            A 24-bit unsigned integer representing the maximum size, in the
            octet scale indicated by the Scale field, of the associated credit
            window.
          </dd>
          </dl>
          <t>
        A router that receives a Credit Window Initialization Data Item
        MUST ensure that the FID field value has been provided by the
        modem in a Traffic Classification Data Item carried in either
        the current or a previous message.  If the FID cannot be found the
        router SHOULD report or log this information.  Note that
        no traffic will be associated with the credit window in this
        case.  After FID validation, the router MUST locate the credit
        window that is associated with the FID indicated in each
        received Data Item.  If no associated credit window is found,
        the router MUST initialize a new credit window using the values
        carried in the Data Item.  When an associated credit window is
        found, the router MUST update the credit window and associated
        data plane state using the values carried in the Data Item.
        If the resulting Credit Value results in the credit window
        exceeding the represented Credit Window Max Size, the Credit
        Window Max Size field value is used as the new credit window size.
          </t>
          <t>
        It is worth noting, that such updates can result in a credit window
        size being reduced, for example, due to a transmission rate
        change on the modem.
        After sending the Session Update Message with one or more Credit
        Window Initialization Data Items that decrease the Credit Window
        Max Size, the modem SHOULD continue processing received packets
        that match the indicated FIDs, fit within the window for the
        unmodified Credit Window Max Size and arrive before the modem
        receives the corresponding Session Update Response Message.
        The modem SHOULD NOT issue additional credits for each affected
        FID until the associated affected Window has drained to be
        less than the new Credit Window Max Size, regardless of whether
        sufficient draining occurs before or after the modem receives
        that corresponding Session Update Response Message.
          </t>
        </section>
        <section anchor="sec-di-cwa" numbered="true" toc="default">
          <name>Credit Window Association</name>
          <t>
        The Credit Window Association Data Item is used by a modem to
        associate traffic classification information with a destination.
        The traffic classification information is identified using a TID
        value that has previously been sent by the modem or is listed
        in a Traffic Classification Data Item carried in the same message
        as the Data Item.  TIDs in different Credit windows must not
        overlap.
          </t>
          <t>
        A single Credit Window Association Data Item MUST be included in all
        Destination Up and Destination Update Messages sent by a modem when
        the credit window control defined in this document is used. Note
        that a TID will not be used unless it is listed in a Credit Window
        Association Data Item.
          </t>
          <t>
        The format of the Credit Window Association Data Item is:
          </t>
          <artwork name="" type="" align="left" alt=""><![CDATA[
     0                   1                   2                   3
     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    | Data Item Type                | Length (2)                    |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |Traffic Class. Identifier (TID)|
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
          ]]></artwork>
          <dl newline="true" spacing="normal">
            <dt>Data Item Type:</dt>
            <dd>TBA5</dd>
            <dt>Length:</dt>
            <dd>
              <t> 2
              </t>
              <t>
          Per <xref target="RFC8175" format="default"/> Length
          is the number of octets in the Data Item. It MUST be equal to
          two (2).
              </t>
            </dd>
            <dt> Traffic Classification Identifier (TID):</dt>
            <dd>
            A 16-bit unsigned integer identifying a traffic
            classification set that has been identified in a Traffic
            Classification Data Item, see <xref target="I-D.ietf-manet-dlep-traffic-classification" format="default"/>.
          </dd>
          </dl>
          <t>
        A router that receives the Credit Window Association Data Item MUST
        locate the traffic classification information indicated by the
        received TID.  If no corresponding information can be located, the
        Data Item MUST be treated as an error as described above. Once the
        traffic classification information is located,
        the router MUST ensure that any data plane
        state, see <xref target="data-plane" format="default"/>, that is associated with the
        TID and its corresponding FIDs is updated as needed.  If a
        router determines that a newly received Data Item results in
        credit windows with overlapping TIDs, the Data Item MUST be
        treated as an error as described above.
          </t>
        </section>
        <section anchor="sec-di-grant" numbered="true" toc="default">
          <name>Credit Window Grant</name>
          <t>
        The Credit Window Grant Data Item is used by a modem to
        provide credits to a router.  One or more Credit Window Grant Data
        Items MAY be carried in the DLEP Destination Up, Destination Announce
        Response, Destination Update, Credit Control Messages, and Credit
        Control Response Messages.  Multiple
        Credit Window Grant Data Items in a single message are used to
        indicate different credit values for different credit windows.  In all
        message types, this Data Item provides an additional number of octets
        to be added to the indicated credit window.  Credit windows are
        identified using FID values that have been previously been
        sent by the modem or are listed in a Credit Window Initialization
        Data Item carried in the same message as the Data Item.
          </t>
          <t>
        The format of the Credit Window Grant Data Item is:
          </t>
          <artwork name="" type="" align="left" alt=""><![CDATA[
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Data Item Type                | Length (12)                   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Flow Identifier (FID)         |            Reserved           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                     Additional Credits                        :
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   :                     Additional Credits                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
          ]]></artwork>
          <dl newline="true" spacing="normal">
            <dt>Data Item Type:</dt>
            <dd>TBA6</dd>
            <dt>Length:</dt>
            <dd>
              <t>12
              </t>
              <t>
          Per <xref target="RFC8175" format="default"/>, Length
          is the number of octets in the Data Item.  It MUST be equal to
          twelve (12).
              </t>
            </dd>
            <dt>Flow Identifier (FID):</dt>
            <dd>
            A flow identifier as defined by the Traffic Classification
            Data Item.  The FID also uniquely indicates a credit
            window.
          </dd>
            <dt>Reserved:</dt>
            <dd>
            MUST be set to zero by the sender and ignored by the
            receiver.
          </dd>
            <dt>Additional Credit:</dt>
            <dd>
            A 64-bit unsigned integer representing the credits, in octets, to
            be added to the Credit Window.  This value includes MAC
            headers as seen on the link between the modem and router. A value
          of zero indicates that no additional credits are being provided.</dd>
          </dl>
          <t>
        When receiving this Data Item, a router MUST identify the credit
        window indicated by the FID.  If the FID is not known to the router,
        it SHOULD report or log this information and discard the Data Item.
        It is important to note that while this Data Item can be received in a
        destination specific message, credit windows are managed independently
        from the destination identified in the message carrying this Data
        Item, and the indicated FID MAY even be disjoint from the identified
        destination.
          </t>
          <t>
        Once the credit window is identified, the credit window size MUST be
        increased by the value contained in the Additional Credits field.  If
        the increase results in a window overflow, the Credit Window
        must be set to its maximum as defined by the Credit Window Max
        Size carried in the Credit Window Initialization Data Item.
          </t>
          <t>
        No response is sent by the router to a modem after processing a Credit
        Window Grant Data Item received in a Credit Control Response Message.
        In other cases, the receiving router MUST send a
        Credit Window Status Data Item or items reflecting the
        resulting Credit Window value of the updated credit window.  When the
        Credit Grant Data Item is received in a Destination Up Message, the
        Credit Window Status Data Item(s) MUST be sent in the
        corresponding Destination Up Response Message.  Otherwise, a
        Credit Control Message MUST be sent.
          </t>
        </section>
        <section anchor="sec-di-status" numbered="true" toc="default">
          <name>Credit Window Status</name>
          <t>
        The Credit Window Status Data Item is used by
        a router to report the current credit window size to its peer modem.  One
        or more Credit Window Status Data Items MAY be carried in a
        Destination Up Response Message or a Credit Control Response Message.
        As discussed above, the Destination Up Response Message is used when
        the Data Item is sent in response to a Destination Up Message, and
        the Credit Control Response Message is sent in response to a Credit
        Control Message.  Multiple Credit Window Status Data Items in a
        single message are used to indicate different sizes of different
        credit windows.  Similar to the Credit Window Grant, credit windows
        are identified using FID values that have been previously been sent
        by the modem.
          </t>
          <t>
        The format of the Credit Window Status Data Item is:
          </t>
          <artwork name="" type="" align="left" alt=""><![CDATA[
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Data Item Type                | Length (12)                   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Flow Identifier (FID)         |            Reserved           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                  Current Credit Window Size                   :
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   :                  Current Credit Window Size                   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
          ]]></artwork>
          <dl newline="true" spacing="normal">
            <dt>Data Item Type:</dt>
            <dd>TBA7</dd>
            <dt>Length:</dt>
            <dd>
              <t>12
              </t>
              <t>
          Per <xref target="RFC8175" format="default"/> Length
          is the number of octets in the Data Item. It MUST be equal to
          twelve (12).
              </t>
            </dd>
            <dt>Flow Identifier (FID):</dt>
            <dd>
            A flow identifier as defined by the Traffic Classification
            Data Item.  The FID also uniquely identifies a credit
            window.
          </dd>
            <dt>Reserved:</dt>
            <dd>
            MUST be set to zero by the sender and ignored by the
            receiver.
          </dd>
            <dt>Current Credit Window Size:</dt>
            <dd>
            A 64-bit unsigned integer, indicating
            the current number of credits, in octets, available for the
            router to send to the modem.  This is referred to as the
            Modem Receive Window in <xref target="I-D.ietf-manet-credit-window" format="default"/>.
          </dd>
          </dl>
          <t>
        When receiving this Data Item, a modem MUST identify the credit
        window indicated by the FID.  If the FID is not known to the modem,
        it SHOULD report or log this information and discard the Data Item.  As
        with the Credit Window Grant Data Item, the FID MAY be unrelated to
        the Destination indicated in the message carrying the Data Item.
          </t>
          <t>
        Once the credit window is identified, the modem SHOULD check the
        received Current Credit Window Size field value against the outstanding credit
        window's available credits at the time the most recent Credit Window
        Initialization or Grant Data Item associated with the indicated FID
        was sent.  If the values significantly differ, i.e., greater than can
        be accounted for based on observed data frames, then the modem SHOULD
        send a Credit Window Initialization Data Item to reset the associated
        credit window size to the modem's current view of the available
        credits.  As defined above, Credit Window Initialization Data Items are
        sent in Session Update Messages.  When multiple Data Items need to be
        sent, they SHOULD be combined into a single message when possible.
        Alternatively, and also in cases where there are small differences,
        the modem MAY adjust the values sent in Credit Window Grant Data Items
        to account for the reported Credit Window.
          </t>
        </section>
        <section anchor="sec-di-request" numbered="true" toc="default">
          <name>Credit Window Request</name>
          <t>
        The Credit Window Request Data Item is used by a router to
        request additional credits for particular credit windows.  Credit
        Window Request Data Items are carried in Credit Control Messages, and
        one or more Credit Window Request Data Items MAY be present in a
        message.
          </t>
          <t>
        Credit windows are identified using a FID as defined above in <xref target="sec-di-cwi" format="default"/>.  Multiple FIDs MAY be present to allow for the
        case where the router identifies that credits are needed in multiple
        credit windows.  A special FID value, as defined below, is used to
        indicate that a credit request is being made across all queues.
          </t>
          <t>
        The format of the Credit Window Request Data Item is:
          </t>
          <artwork name="" type="" align="left" alt=""><![CDATA[
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Data Item Type                | Length                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Flow Identifier (FID)         |               ...             :
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   :               ...             | Flow Identifier (FID)         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
          ]]></artwork>
          <dl newline="true" spacing="normal">
            <dt>Data Item Type:</dt>
            <dd>TBA8</dd>
            <dt>Length:</dt>
            <dd>
              <t>Variable
              </t>
              <t>
          Per <xref target="RFC8175" format="default"/> Length
          is the number of octets in the Data Item, excluding the Type and
          Length fields.  It will equal the number of FID
          fields carried in the Data Item times 2 and MUST be at least 2.
              </t>
            </dd>
            <dt>Flow Identifier (FID):</dt>
            <dd>
            A flow identifier as defined by the Traffic Classification
            Data Item.  The FID also uniquely identifies a credit
            window.
            The special value of 0xFFFF indicates that the
            request applies to all FIDs.
            Note that when the special value is included, all other FID
            values included in the Data Item are redundant as the
            special value indicates all FIDs.
          </dd>
          </dl>
          <t>
        A modem receiving this Data Item MUST provide a Credit Increment for
        the indicated credit windows via Credit Window Grant Data Items
        carried in a new Credit Control Message.  Multiple values and queue
        indexes SHOULD be combined into a single Credit Control Message when
        possible.  Unknown FID values SHOULD be reported or logged and then
        ignored by the modem.
          </t>
        </section>
      </section>
      <section anchor="sec-mgmnt" numbered="true" toc="default">
        <name>Management Considerations</name>
        <t>
      This section provides several network management guidelines
      to implementations supporting the credit window mechanisms defined
      in this document.
        </t>
        <t>
      Modems MAY support the configuration of the number of credit
      windows (queues) to advertise to a router.
        </t>
        <t>
      Routers may have limits on the number of queues that they can
      support and, perhaps, even limits in supported credit window
      combinations, e.g., if per destination queues can even be
      supported at all.  When modem-provided credit window information
      exceeds the capabilities of a router, the router SHOULD use a subset of
      the provided credit windows.  Alternatively, a router MAY reset the
      session and indicate that the extension is not supported.  In either
      case, the mismatch of capabilities SHOULD be reported to the user via
      normal network management mechanisms, e.g., user interface or error
      logging.
        </t>
        <t>
      In all cases, if credit windows are in use, traffic for which credits are not
      available MUST NOT be sent to the modem by the router.
        </t>
      </section>
    </section>
    <section anchor="sec-compat" numbered="true" toc="default">
      <name>Compatibility</name>
      <t>
    The messages and data items defined in this document will only be used when
    extensions require their use.
      </t>
      <t>
    The DLEP specification <xref target="RFC8175" format="default"/> defines handling of unexpected
    appearances of any data items, including those defined in this
    document.
      </t>
    </section>
    <section anchor="sec-sec" numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>
    This document introduces credit window control and flow mechanisms
    to DLEP.  These mechanisms expose vulnerabilities similar to
    existing DLEP messages, e.g., an injected message resizes a credit
    window to a value that results in a denial of service.
    The security mechanisms documented in <xref target="RFC8175" format="default"/> can be applied equally to the mechanism defined
    in this document.
      </t>
    </section>
    <section anchor="sec-iana" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t>
    This document requests the assignment of several values by IANA.  All
    assignments are to registries defined by <xref target="RFC8175" format="default"/>.
      </t>
      <section anchor="sec-iana-msg" numbered="true" toc="default">
        <name>Message Values</name>
        <t>
      This document requests 2 new assignments to the DLEP Message Registry
      named "Message Values" in the range with the "Specification Required"
      policy.  The requested values are as follows:
        </t>
        <t keepWithNext="true"/>
        <table anchor="table_msg" align="center">
          <name>Requested Message Values</name>
          <thead>
            <tr>
              <th align="left">Type Code</th>
              <th align="left">Description</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">TBA2</td>
              <td align="left">Credit Control</td>
            </tr>
            <tr>
              <td align="left">TBA3</td>
              <td align="left">Credit Control Response</td>
            </tr>
          </tbody>
        </table>
        <t keepWithPrevious="true"/>
      </section>
      <section anchor="sec-iana-di" numbered="true" toc="default">
        <name>Data Item Values</name>
        <t>
      This document requests the following new assignments to the DLEP Data Item
      Registry named "Data Item Type Values" in the range with the "Specification
      Required" policy.  The requested values are as follows:
        </t>
        <t keepWithNext="true"/>
        <table anchor="table_di" align="center">
          <name>Requested Data Item Values</name>
          <thead>
            <tr>
              <th align="left">Type Code</th>
              <th align="left">Description</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">TBA4</td>
              <td align="left">Credit Window Initialization</td>
            </tr>
            <tr>
              <td align="left">TBA5</td>
              <td align="left">Credit Window Association</td>
            </tr>
            <tr>
              <td align="left">TBA6</td>
              <td align="left">Credit Window Grant</td>
            </tr>
            <tr>
              <td align="left">TBA7</td>
              <td align="left">Credit Window Status</td>
            </tr>
            <tr>
              <td align="left">TBA8</td>
              <td align="left">Credit Window Request</td>
            </tr>
          </tbody>
        </table>
        <t keepWithPrevious="true"/>
      </section>
    </section>
  </middle>
  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author fullname="S. Bradner" initials="S." surname="Bradner"/>
            <date month="March" year="1997"/>
            <abstract>
              <t>In many standards track documents several words are used to signify the requirements in the specification. These words are often capitalized. This document defines these words as they should be interpreted in IETF documents. This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <date month="May" year="2017"/>
            <abstract>
              <t>RFC 2119 specifies common key words that may be used in protocol specifications. This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
        <reference anchor="RFC8175" target="https://www.rfc-editor.org/info/rfc8175" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8175.xml">
          <front>
            <title>Dynamic Link Exchange Protocol (DLEP)</title>
            <author fullname="S. Ratliff" initials="S." surname="Ratliff"/>
            <author fullname="S. Jury" initials="S." surname="Jury"/>
            <author fullname="D. Satterwhite" initials="D." surname="Satterwhite"/>
            <author fullname="R. Taylor" initials="R." surname="Taylor"/>
            <author fullname="B. Berry" initials="B." surname="Berry"/>
            <date month="June" year="2017"/>
            <abstract>
              <t>When routing devices rely on modems to effect communications over wireless links, they need timely and accurate knowledge of the characteristics of the link (speed, state, etc.) in order to make routing decisions. In mobile or other environments where these characteristics change frequently, manual configurations or the inference of state through routing or transport protocols does not allow the router to make the best decisions. This document introduces a new protocol called the Dynamic Link Exchange Protocol (DLEP), which provides a bidirectional, event-driven communication channel between the router and the modem to facilitate communication of changing link characteristics.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8175"/>
          <seriesInfo name="DOI" value="10.17487/RFC8175"/>
        </reference>
        <reference anchor="I-D.ietf-manet-dlep-traffic-classification" target="https://datatracker.ietf.org/doc/html/draft-ietf-manet-dlep-traffic-classification" xml:base="https://bib.ietf.org/public/rfc/bibxml-ids/reference.I-D.ietf-manet-dlep-traffic-classification.xml">
          <front>
            <title>DLEP Traffic Classification Data Item</title>
            <author fullname="Bow-Nan Cheng" initials="B." surname="Cheng">
              <organization>MIT Lincoln Laboratory</organization>
            </author>
            <author fullname="David Wiggins" initials="D." surname="Wiggins">
              <organization>MIT Lincoln Laboratory</organization>
            </author>
            <author fullname="Lou Berger" initials="L." surname="Berger">
              <organization>LabN Consulting, L.L.C.</organization>
            </author>
            <date day="10" month="July" year="2023"/>
            <abstract>
              <t>This document defines a new Dynamic Link Exchange Protocol (DLEP) Data Item that is used to support traffic classification. Traffic classification information is used to identify traffic flows based on frame/packet content such as destination address. The Data Item is defined in an extensible and reusable fashion. Its use will be mandated in other documents defining specific DLEP extensions. This document also introduces DLEP Sub-Data Items, and Sub-Data Items are defined to support DiffServ and Ethernet traffic classification.</t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-manet-dlep-traffic-classification-09"/>
        </reference>
      </references>
      <references>
        <name>Informative References</name>
        <reference anchor="I-D.ietf-manet-dlep-da-credit-extension" target="https://datatracker.ietf.org/doc/html/draft-ietf-manet-dlep-da-credit-extension" xml:base="https://bib.ietf.org/public/rfc/bibxml-ids/reference.I-D.ietf-manet-dlep-da-credit-extension.xml">
          <front>
            <title>DLEP DiffServ Aware Credit Window Extension</title>
            <author fullname="Bow-Nan Cheng" initials="B." surname="Cheng">
              <organization>MIT Lincoln Laboratory</organization>
            </author>
            <author fullname="David Wiggins" initials="D." surname="Wiggins">
              <organization>MIT Lincoln Laboratory</organization>
            </author>
            <author fullname="Lou Berger" initials="L." surname="Berger">
              <organization>LabN Consulting, L.L.C.</organization>
            </author>
            <date day="10" month="July" year="2023"/>
            <abstract>
              <t>This document defines an extension to the Dynamic Link Exchange Protocol (DLEP) that enables a DiffServ aware credit-window scheme for destination-specific and shared flow control.</t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-manet-dlep-da-credit-extension-14"/>
        </reference>
        <reference anchor="I-D.ietf-manet-credit-window" target="https://datatracker.ietf.org/doc/html/draft-ietf-manet-credit-window" xml:base="https://bib.ietf.org/public/rfc/bibxml-ids/reference.I-D.ietf-manet-credit-window.xml">
          <front>
            <title>Credit Windowing extension for DLEP</title>
            <author fullname="Stan Ratliff" initials="S." surname="Ratliff">
              <organization>VT iDirect</organization>
            </author>
            <date day="13" month="November" year="2016"/>
            <abstract>
              <t>This draft describes an extension to the DLEP protocol to provide a credit-windowing scheme for destination-specific flow control.</t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-manet-credit-window-07"/>
        </reference>
        <reference anchor="RFC2475" target="https://www.rfc-editor.org/info/rfc2475" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2475.xml">
          <front>
            <title>An Architecture for Differentiated Services</title>
            <author fullname="S. Blake" initials="S." surname="Blake"/>
            <author fullname="D. Black" initials="D." surname="Black"/>
            <author fullname="M. Carlson" initials="M." surname="Carlson"/>
            <author fullname="E. Davies" initials="E." surname="Davies"/>
            <author fullname="Z. Wang" initials="Z." surname="Wang"/>
            <author fullname="W. Weiss" initials="W." surname="Weiss"/>
            <date month="December" year="1998"/>
            <abstract>
              <t>This document defines an architecture for implementing scalable service differentiation in the Internet. This memo provides information for the Internet community.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="2475"/>
          <seriesInfo name="DOI" value="10.17487/RFC2475"/>
        </reference>
        <reference anchor="RFC8651" target="https://www.rfc-editor.org/info/rfc8651" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8651.xml">
          <front>
            <title>Dynamic Link Exchange Protocol (DLEP) Control-Plane-Based Pause Extension</title>
            <author fullname="B. Cheng" initials="B." surname="Cheng"/>
            <author fullname="D. Wiggins" initials="D." surname="Wiggins"/>
            <author fullname="L. Berger" initials="L." role="editor" surname="Berger"/>
            <date month="October" year="2019"/>
            <abstract>
              <t>This document defines an extension to the Dynamic Link Exchange Protocol (DLEP) that enables a modem to use DLEP messages to pause and resume data traffic coming from its peer router.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8651"/>
          <seriesInfo name="DOI" value="10.17487/RFC8651"/>
        </reference>
      </references>
    </references>
    <section numbered="true" toc="default">
      <name>Acknowledgments</name>
      <t>
     We mourn the loss of Stan Ratliff who passed away on October 22,
     2019. His guidance, leadership and personal contributions were
     critical in the development of this work and DLEP as a whole. His
     leadership and friendship shall be missed.
      </t>
      <t>
     We mourn the loss of David Wiggins who passed away on November 23,
     2023.  His guidance, leadership and personal contributions were
     critical in the development of this work and DLEP as a whole. His
     leadership and friendship shall be missed.
      </t>
      <t>
     Many useful comments were
     received from contributors to the MANET working group, notably Rick
     Taylor, Ronald in't Velt, David Black and Eric Kinzie.  This
     document was derived from <xref target="I-D.ietf-manet-dlep-da-credit-extension" format="default"/> as a result of
     discussions at IETF 101.
      </t>
      <t>
        We had the honor of working too briefly with David Wiggins on
        this and related DLEP work. His contribution to the IETF and
        publication of the first and definitive open source DLEP
        implementation have been critical to the acceptance of DLEP. We
        morn his passing on November 23, 2023.  We wish to recognize his
        guidance, leadership and professional excellence.  We were
        fortunate to benefit from his leadership and friendship. He
        shall be missed.
      </t>
    </section>
  </back>
</rfc>
<!-- Local Variables: -->
<!-- fill-column:72 -->
<!-- End: -->
