<?xml version="1.0" encoding="UTF-8"?>
<!--  Edited by Dino Farinacci farinacci@gmail.com -->

<!DOCTYPE rfc SYSTEM "rfc2629.dtd">

<rfc category="info" ipr="trust200902" docName="draft-farinacci-lisp-decent-22">

<?rfc toc="yes" ?>
<?rfc symrefs="yes" ?>
<?rfc sortrefs="yes"?>
<?rfc iprnotified="no" ?>
<?rfc strict="yes" ?>

<front>
  <title>A Decent LISP Mapping System (LISP-Decent)</title>

  <author initials='D' surname="Farinacci" fullname='Dino Farinacci'>
    <organization>lispers.net</organization>
    <address><postal>
      <street></street>
      <city>San Jose</city> <region>CA</region>
      <code></code>
      <country>USA</country>
    </postal>
    <email>farinacci@gmail.com</email></address>
  </author>

  <author initials='C' surname="Cantrell" fullname='Colin Cantrell'>
    <organization>Nexus</organization>
    <address><postal>
      <street></street>
      <city>Tempe</city> <region>AZ</region>
      <code></code>
      <country>USA</country>
    </postal>
    <email>colin@nexus.io</email></address>
  </author>

  <date></date>

  <abstract>
    <t>This draft describes how the LISP mapping system can be
    distributed for scale, decentralized for management and maintain
    trust among data-plane nodes. The intended status for this
    document is Informational RFC and should be used by LISP-Decent
    implementations to interoperate with each other.</t>
  </abstract>

  <note title="Requirements Language">
    <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL
    NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED",
    "MAY", and "OPTIONAL" in this document are to be interpreted as
    described in BCP 14 <xref target="RFC2119"/> <xref
    target="RFC8174"/> when, and only when, they appear in all
    capitals, as shown here.</t>
  </note>
</front>

<middle>
  <section title="Introduction">
    <t>The LISP architecture and protocols <xref target="RFC9300" />
    introduces two new numbering spaces, Endpoint Identifiers (EIDs)
    and Routing Locators (RLOCs) that are intended to provide overlay
    network functionality. To map from EID to a set of RLOCs, a
    control-plane mapping system is used <xref target="RFC6836"/>
    <xref target="RFC8111"/>. These mapping systems are naturally distributed
    in their deployment for scalability but are centrally
    managed by a third-party entity, namely a Mapping System Provider
    (MSP). The entities that use the mapping system, such as
    data-plane LISP Tunnel Routers (xTRs), depend on and trust the
    MSP. They do not participate in the mapping system other than to
    register and retrieve information <xref target="RFC9301" />.</t>

    <t>This document introduces a Decentralized Mapping System (DMS)
    so the xTRs can participate in the mapping system as well as use
    it. They can trust each other rather than rely on third-party
    infrastructure. The xTRs act as Map-Servers to maintain
    distributed state for scale and reduce the attack surface. The trust
    relationships between the xTRs are established through
    authentication and authorization procedures in <xref
    target="RFC9301" /> and <xref target="I-D.ietf-lisp-ecdsa-auth"/>.</t>

    <t>This design was first introduced to the LISP WG in January
    2018. It was presented in London March 2018 <xref
    target="MAR-WG-PRESO"/> and in Prague July 2019 <xref
    target="JUL-WG-PRESO"/>. This informational document is not a
    standard and did not reach community consensus to make it IETF
    LISP working group document.</t>

    <t>The intended audience for this specification are protocol
    development engineers who would implement this specification in
    products as well network engineers who deploy the technology in
    operational environments.</t>

    <t>This design does not conflict with those designs or contradicts
    any other LISP design principles produced by the working
    group. This solution makes no fundamental LISP protocol changes
    and adheres to the specifications documented in <xref
    target="RFC9301"/>.</t>
    
    <t>By the nature of this work, this document uses IP addresses as
    examples.  They should not be copied or used outside of a lab
    environment.  Deployments should use addresses appropriate for
    their environment.</t>
  </section>

  <section title="Definition of Terms">
    <t><list style="hanging">
      <t hangText="Mapping System Provider (MSP):">
      infrastructure service that deploys LISP Map-Resolvers and
      Map-Servers <xref target="RFC9301"/> and possibly LISP-ALT nodes
      <xref target="RFC6836"/> or LISP-DDT nodes <xref
      target="RFC8111"/>. ALT-nodes and DDT-nodes use different
      algorithms for connecting together Map-Resolvers and
      Map-Servers.  The MSP can be managed by a separate organization
      other than the one that manages xTRs. This model provides a
      business separation between who manages and responsible for
      the control-plane versus who manages the data-plane overlay
      service.</t>

      <t hangText="Decentralized Mapping System (DMS):">a mapping
      system entity that is managed by the xTR nodes that use it and
      not third-party nodes/operators. The xTRs themselves are part of
      the mapping system. The state of the mapping system is fully
      distributed across xTRs, decentralized, and the trust relies on
      the xTRs that use and participate in their own mapping
      system.</t>

      <t hangText="Decent-Pull Based Mapping System:">the mapping
      system is pull-based meaning that xTRs will lookup and register
      mappings by algorithmic transformation to locate which
      Map-Resolvers and Map-Servers are used. It is required that the
      lookup and registration uses a consistent algorithmic
      transformation function. Map-Registers are sent to specific
      Map-Servers.  Map-Requests are considered external lookups when sent to
      Map-Resolvers on xTRs that do not participate in the mapping
      system and the Map-Requests are considered internal lookups when they
      are sent to Map-Resolvers on xTRs that do participate in the mapping
      system.</t>

      <t hangText="Modulus Value:">this value is used in the
      Pull-Based Mapping System. It defines the number of map-server
      sets used for the mapping system. The modulus value is used to
      produce a Name Index used for a DNS lookup. The Modulus Value is
      chosen based on the horizontal scale-out width of the map-server
      cluster the network operator chooses to deploy.</t>
        
      <t hangText="Name Index:">this index value &lt;index&gt; is used in
      the Pull-Based Mapping System. For a mapping system that is
      configured with a map-server set of DNS names in the form of
      &lt;name&gt;.example.com, the name index is prepended to &lt;name&gt; to
      form the lookup name &lt;index&gt;.&lt;name&gt;.example.com. If
      the Modulus Value is 8, then the name indexes are 0 through 7.</t>
      
      <t hangText="Hash Mask:">The Hash Mask is used in the Pull-Based
      Mapping System. It is a mask value with 1 bits left justified.
      The mask is used to select what high-order bits of an EID-prefix are
      used in the hash function.</t>

      <t hangText="Decent-Push Based Mapping System:">the mapping system is
      push-based meaning that xTRs will push registrations via IP
      multicast to a group of Map-Servers and do local lookups acting
      as their own Map-Resolvers.</t>

      <t hangText="Replication List Entry (RLE):">an RLOC-record
      format that contains a list of RLOCs that an Ingress Tunnel
      Router (ITR) replicates multicast packets on a multicast
      overlay. The RLE format is specified in <xref
      target="RFC8060"/>. RLEs are used with the
      Decent-Pushed Based mapping system.</t>

      <t hangText="Group Address EID:">an EID-record format that
      contains IPv4 (0.0.0.0/0, G) or IPv6 (0::/0, G) state. This
      state is encoded as a Multicast Info Type LCAF specified in
      <xref target="RFC8060"/>. Members of a
      seed-group send Map-Registers for (0.0.0.0/0, G) or (0::/0, G)
      with an RLOC-record that RLE encodes its RLOC address. Details
      are specified in <xref target="RFC8378"/>.</t>

      <t hangText="Seed-Group:">a set of Map-Servers joined to a
      multicast group for the Decent-Push Based Mapping system or are mapped
      by DNS names in a Pull-Based Mapping System. A core seed-group is used
      to bootstrap a set of LISP-Decent xTRs so they can learn about each
      other and use each other's mapping system service. A seed-group can
      be pull-based to bootstrap the Decent-Push based mapping system. That is,
      a set of DNS mapped map-servers can be used to join the mapping
      system's IP multicast group.</t>
   </list></t>
  </section>

  <section title="Overview">
    <t>The clients of the Decentralized Mapping System (DMS) are also
    the providers of mapping state, see <xref target="RFC9301"/> for
    formal details. Clients are typically Egress Tunnel Routers (ETRs)
    that Map-Register EID-to-RLOC mapping state to the mapping
    database system. ITRs are clients in that they send Map-Requests
    to the mapping database system to obtain EID-to-RLOC mappings that
    are cached for data-plane use. When xTRs participate in a DMS,
    they are also acting as Map-Resolvers and Map-Servers using the
    protocol machinery defined in LISP control-plane specifications
    <xref target="RFC9301"/>, <xref target="RFC9303"/>, and <xref
    target="I-D.ietf-lisp-ecdsa-auth"/>. The xTRs are not required to
    run the database mapping transport system protocols specified in
    <xref target="RFC6836"/> or <xref target="RFC8111"/>.</t>

    <t>This document will describe two decentralized and distributed mapping
    system mechanisms. A Decent-Push Based Mapping System uses IP multicast so
    xTRs can find each other by locally joining an IP multicast group. A
    Decent-Pull Based Mapping System uses DNS with an algorithmic transformation
    function so xTRs can find each other.</t>

    <t>The document proposes two approaches to provide
    state/bandwidth, ease of configurability, and
    robustness/complexity tradeoffs. When the Decent-Push Based
    approach is used there is less messaging involved. xTRs can
    multicast a single Map-Register message which goes to all
    Map-Servers joined to the multicast group. When Map-Servers are
    added to or removed from the Map-Server cluster group, the mapping system
    updates quickly with little human intervention. In the push model,
    all mapping state is stored in all Map-Servers so there is
    robustness achieved through redundancy. However, this requires a
    multicast underlay in nodes between all xTRs and Map-Servers. When
    a multicast underlay is not available, the Decent-Pull Based
    approach can be used with the help of the DNS system. This
    approach uses less state overall among the Map-Servers (they each
    have different mapping system state) and the ITRs know which
    Map-Server to ask by using the hashing techniques described later
    in this document.</t>

    <t>This document does not describe any compatibility with other
    mapping systems.  The design is intentional all xTRs and
    Map-Servers support this specification. Moreover, all xTRs and
    Map-Servers MUST support either the Pull-Based or Push-Based
    algorithms. They cannot be mixed. When both are used, they are
    completely discrete mapping systems just like they would be using
    one of the LISP Working Group mapping system designs. An
    implementation can decide to implement only the Pull-Based approach or the
    Push-Based approach and still be compliant with this specification.</t>

    <t><vspace blankLines='40' /></t>
  </section>
   
  <section title="Decent-Push Based Mapping System">
    <t>The xTRs are organized in a mapping-system group. The group is
    identified by an IPv4 or IPv6 multicast group address or using a
    Decent-Pull based approach described in <xref target="PULL"/>. When
    using multicast, the xTRs join the same multicast group and
    receive LISP control-plane messages addressed to the
    group. Messages sent to the multicast group are distributed when
    the underlay network supports IP multicast <xref
    target="RFC6831"/> or via the overlay multicast
    mechanism described in <xref target="RFC8378"/>. When overlay
    multicast is used and LISP Map-Register messages are sent to the
    group, they are LISP data encapsulated with a instance-ID set to
    0xffffff in the LISP header. The inner header of the encapsulated
    packet has the destination address set to the multicast group
    address and the outer header that is prepended has the destination
    address set to the RLOC of mapping system group member. The members of
    the mapping system group are kept in the LISP data-plane map-cache
    so packets for the group can be replicated to each member
    RLOC.</t>

    <t>All xTRs in a mapping system group will store the same
    registered mappings and maintain the state as Map-Servers normally
    do. The members are not only receivers of the multicast group but
    also send packets to the group.</t>

    <section title="Components of a Decent-Pushed Based LISP-Decent xTR">
      <t>When an xTR is configured to be a LISP-Decent xTR (or PxTR
      <xref target="RFC6832"/>), it runs the ITR, ETR, Map-Resolver,
      and Map-Server LISP network functions.</t>

      <t>The following diagram shows 3 LISP-Decent xTRs joined to
      mapping system group 233.252.1.1. When the ETR function of xTR1
      originates a Map-Register, it is sent to all xTRs (including
      itself) synchronizing all 3 Map-Servers in xTR1, xTR2, and
      xTR3. The ITR function can populate its map-cache by sending a
      Map-Request locally to its Map-Resolver so it can replicate
      packets to each RLOC for EID 233.252.1.1.</t>

      <t>In this document, there is no special meaning for the
      multicast group address 233.252.1.1.  It is used for example
      purposes only.</t>

    <figure>
      <preamble></preamble>
      <artwork><![CDATA[

                        xTR1
 Map-Request    +--------------------+
(always local)  |  +-----+  +-----+  |   
   +---------------| ITR |  | ETR |-------------+
   |            |  +-----+  +-----+  |          |
   |            |                    |          |    Map-Register to EID
   |            |      +-------+     |          |  233.252.1.1 encapsulated to 
   +------------------>| MR/MS |<---------------+  RLOCs xTR1, xTR2, and xTR3
                |      +-------+     |          |
                +--------------------+          |
                                                |
                           +--------------------+------------+
                           |                                 |
                           |                                 |
                +----------v---------+            +----------v---------+
                |     +--------+     |            |     +--------+     |
                |     |  MR/MS |     |            |     |  MR/MS |     |
                |     +--------+     |            |     +--------+     |
                |  +-----+  +-----+  |            |  +-----+  +-----+  |
                |  | ITR |  | ETR |  |            |  | ITR |  | ETR |  |
                |  +-----+  +-----+  |            |  +-----+  +-----+  |
                +--------------------+            +--------------------+
                         xTR2                              xTR3

      ]]></artwork>
      <postamble />
    </figure>

      <t>Note if any external xTR would like to use a Map-Resolver
      from the mapping system group, it only needs to have one of the
      LISP-Decent Map-Resolvers configured. By doing a looking to this
      Map-Resolver for EID 233.252.1.1, the external xTR could get the
      complete list of members for the mapping system group.</t>

      <t>For future study, an external xTR could multicast the
      Map-Request to 233.252.1.1 and either one of the LISP-Decent
      Map-Resolvers would return a Map-Reply or the external xTR is
      prepared to receive multiple Map-Replies.</t>
    </section>

    <section title="Implementation Considerations">
      <t>There are no LISP protocol changes required to support the
      Decent-Push based LISP-Decent set of procedures. An implementation
      that sends Map-Register messages to a multicast group versus a
      specific Map-Server unicast address MUST change to call the
      data-plane component so the ITR functionality in the node can
      encapsulate the Map-Register as a unicast packet to each member
      of the mapping system group.</t>

      <t>An ITR SHOULD lookup its mapping system group address
      periodically to determine if the membership has changed. The
      lookup interval is a configuration parameter only needed when
      when the ITR does not use the PubSub capability documented in
      <xref target="RFC9437"/> to be notified when a new
      member joins or leaves the multicast group. When PubSub is not
      used, there needs to be coordination (via configuration
      management) among all xTRs so they rendezvous roughly at the
      same time and to the same group address.</t>
    </section>

    <section title="Configuration and Authentication">
      <t>When xTRs are joined to a multicast group, they MUST have
      their site registration configuration consistent. Any policy or
      authentication key material MUST be configured consistently
      among all members. When <xref
      target="I-D.ietf-lisp-ecdsa-auth"/> is used to sign Map-Register
      messages, public-keys can be registered to the mapping system
      group using the site authentication key mentioned above or using
      a different authentication key from the one used for registering
      EID records. An out-of-band registration controller, like an ETR
      dedicated for this function, can send Map-Register messages for
      public-key encoded EIDs.</t>
    </section>

    <section title="Core Seed-Group">
      <t>A core seed-group can be discovered using a multicast group in
      a Decent-Push based system or a Map-Server set of DNS names in a Decent-Pull based
      system (see <xref target="PULL"/> for details).</t>
      
      <t>When using multicast for the mapping system group, a core seed-group
      multicast group address can be preconfigured to bootstrap the
      decentralized mapping system. The group address (or DNS name
      that maps to a group address) can be explicitly configured in a
      few xTRs to start building up the registrations. Then as other xTRs
      come online, they can add themselves to the core seed-group by
      joining the seed-group multicast group.</t>

      <t>Alternatively or additionally, new xTRs can join a new
      mapping system multicast group to form another layer of a
      decentralized mapping system. The group address and members of
      this new layer seed-group would be registered to the core
      seed-group address and stored in the core seed-group mapping
      system. Note each mapping system layer could have a specific
      function or a specific circle of trust.</t>

      <t><vspace blankLines='20' /></t>

      <t>This multi-layer mapping system can be illustrated:</t>

    <figure>
      <preamble></preamble>
      <artwork><![CDATA[
           ____________                 -----------
          /   core     \  233.252.2.2  /  layer-1  \
         | seed-group   | ----------> |      I      |
         |  233.252.1.1 |             |     / \     |
          \____________/              |    J---K    |
               |                       \___________/
               | 233.252.3.3
               |
               v
           ---------
          / layer-2 \
         |     X     |
         |    / \    |
         |   Y---Z   |
          \_________/

Configured in xTRs A, B, and C (they make up the core seed-group):
  233.252.1.1 -> RLE: A, B, C

core seed-group DMS, mapping state in A, B, and C:
  233.252.2.2 -> RLE: I, J, K
  233.252.3.3 -> RLE: X, Y, Z

layer-1 seed-group DMS (inter-continental), mapping state in I, J, K:
   EID1 -> RLOCs: i(1), j(2)
   ...
   EIDn -> RLOCs: i(n), j(n)

layer-2 seed-group DMS (intra-continental), mapping sate in X, Y, Z::
   EIDa -> RLOCs: x(1), y(2)
   ...
   EIDz -> RLOCs: x(n), y(n)

      ]]></artwork>
      <postamble />
    </figure>

      <t>The core seed-group multicast address 233.252.1.1 is configured
      in xTRs A, B and C so when each of them send Map-Register
      messages, they would all be able to maintain synchronized
      mapping state. Any EID can be registered to this DMS but in this
      example, seed-group multicast group EIDs are being registered
      only to find other mapping system groups.</t>

      <t>For example, lets say that xTR I boots up and it wants to
      find its other peers in its mapping system group
      233.252.2.2. Group address 233.252.2.2 is configured so xTR I knows
      what group to join for its mapping system group. But xTR I needs
      a mapping system to register to, so the core seed-group is used
      and available to receive Map-Registers. The other xTRs J and K
      in the mapping system group do the same so when any of I, J or K
      needs to register EIDs, they can now send their Map-Register
      messages to group 233.252.2.2. Examples of EIDs being register are
      EID1 through EIDn shown above.</t>

      <t>When Map-Registers are sent to group 233.252.2.2, they are
      encapsulated by the LISP data-plane by looking up EID 233.252.2.2
      in the core seed-group mapping system. For the map-cache entry
      to be populated for 233.252.2.2, the data-plane MUST send a
      Map-Request so the RLOCs I, J, and K are cached for
      replication. To use the core seed-group mapping system, the
      data-plane MUST know of at least one of the RLOCs A, B, and/or
      C.</t>
    </section>
  </section>

  <section title="Decent-Pull Based Mapping System" anchor="PULL">
    <section title="Components of a Decent-Pulled Based LISP-Decent xTR">
      <t>When an xTR is configured to be a LISP-Decent xTR (or PxTR
      <xref target="RFC6832"/>), it runs the ITR, ETR, Map-Resolver,
      and Map-Server LISP network functions.</t>

      <t>Unlike the Decent-Push Based Mapping System, the xTRs do not need to
      be organized by joining a multicast group. In a Decent-Pull Based
      Mapping System, a hash function over an EID is used to identify
      which xTR is used as the Map-Resolver and Map-Server. The Domain
      Name System (DNS) <xref target="RFC1034"/> <xref
      target="RFC1035"/> is used as a resource discovery mechanism.</t>

      <t>The RLOC addresses of the xTRs will be A and AAAA records for
      DNS names that map algorithmically from the hash of the EID. A
      SHA-256 hash function <xref target="RFC6234"/> over the
      following ASCII formatted EID string is used:</t>

    <figure>
      <preamble></preamble>
      <artwork><![CDATA[
    [<iid>]<eid>/<ml>
    [<iid>]<group>/<gml>-<source>/<sml>
      ]]></artwork>
      <postamble />
    </figure>

    <t>In this section, where you see angle brackets, they are
    replaced with values in ASCII characters. For example, a unicast
    EID of 1.1.1.1 in instance-id 11 would be encoded as a string
    "[11]1.1.1.1/32".</t>

    <t>Where &lt;iid&gt; is the instance-ID and &lt;eid&gt; is the EID
    of any EID-type defined in <xref
    target="RFC8060"/>. And then the Modulus Value
    &lt;mv&gt; is used to produce the Name Index &lt;index&gt; used to
    build the DNS lookup name:</t>

    <figure>
      <preamble></preamble>
      <artwork><![CDATA[
    eid = "[<iid>]<eid>/<ml>"
    index = hash.sha_256(eid) MOD mv
      ]]></artwork>
      <postamble />
    </figure>

    <t>The Hash Mask is used to select what bits are used in the
    SHA-256 hash function. This is required to support longest match
    lookups in the mapping system. The same map-server set needs to be
    selected when looking up a more-specific EID found in the
    Map-Request message with one that could match a less-specific
    EID-prefix registered and found in the Map-Register message. For
    example, if an EID-prefix [0]240.0.1.0/24 is registered to the
    mapping system and EID [0]240.0.1.1/32 is looked up to match the
    registered prefix, a Hash Mask of 8 bytes can be used to AND both
    the /32 or /24 entries to produce the same hash string bits
    of "[0]240.0".</t>

    <t>For (*,G) and (S,G) multicast entries in the mapping system,
    the hash strings are:</t>

    <figure>
      <preamble></preamble>
      <artwork><![CDATA[
    sg-eid = "[<iid>]<group>/<gml>-<source>/<sml>"
    index = hash.sha_256(sg-eid) MOD mv

    starg-eid = "[<iid>]<group>/<gml>-0.0.0.0/0"
    index = hash.sha_256(starg-eid) MOD mv
      ]]></artwork>
      <postamble />
    </figure>

    <t>The Hash Mask MUST include the string
    "[&lt;iid&gt;]&lt;group&gt;" and not string &lt;source&gt;. So
    when looking up [0](2.2.2.2, 233.252.1.1) that will match a (*,
    233.252.1.1/32), the hash string produced with a Hash Mask of 12
    bytes is "[0]233.252.1.1".</t>

    <t>When the &lt;index&gt; is computed from a unicast or multicast EID,
    the DNS lookup name becomes:</t>

    <figure>
      <preamble></preamble>
      <artwork><![CDATA[
    <index>.map-server.example.com
      ]]></artwork>
      <postamble />
    </figure>

    <t>When an xTR does a DNS lookup on the lookup name, it will send
    Map-Register messages to all A and AAAA records for EID
    registrations. For Map-Request messages, xTRs MAY round robin EID
    lookup requests among the A and AAAA records.</t>
    </section>

    <section title="Configurable EID Prefix Lengths for Lookups">
      <t>In implementations where EID allocations follow a predictable
      pattern, operators MAY configure ITRs to use specific prefix
      lengths for lookups when the EID falls within well-known
      allocation ranges. This configuration allows ITRs to compute the
      correct hash index even when data packets carry more-specific
      EIDs than the prefix lengths used by ETRs during registration.</t>

      <t>For example, if an operator allocates EIDs in the range
      [0]240.11.0.0/16 and all ETRs register these EIDs with a /24
      prefix length, ITRs receiving data packets for EIDs like
      [0]240.11.1.1/32 will still hash on the /24 prefix to locate the
      correct Map-Server. Without this configuration, the ITR would
      hash on the /32 and potentially query the wrong Map-Server.</t>

      <t>ITRs SHOULD support configuration of EID prefix ranges and
      their associated lookup prefix lengths. When an ITR performs a
      Map-Request lookup, it SHOULD check if the destination EID
      matches any configured range. If a match is found, the ITR MUST
      use the configured lookup prefix length instead of the EID's
      native prefix length when computing the hash string. When
      multiple configured ranges match a given EID, the range with the
      longest (most-specific) configured prefix length MUST be
      selected.</t>

      <t>The configuration consists of pairs of EID-prefix (the
      well-known EID allocation range in CIDR notation, e.g.,
      240.11.0.0/16) and lookup-length (the prefix length to use for
      hash computation when EIDs fall within this range, 0-32 for
      IPv4, 0-128 for IPv6).</t>

      <t>Implementation note: When computing the hash string for a
      lookup where the EID matches a configured range, the ITR MUST
      construct the hash string using the configured lookup-length,
      ensuring that the bits beyond the lookup-length are zero (i.e.,
      the EID address is masked to the lookup-length before converting
      to the hash string format).</t>

      <t>Example configuration with multiple EID ranges:</t>

    <figure>
      <preamble></preamble>
      <artwork><![CDATA[
  EID Range Configuration:
    Range: [0]240.11.0.0/16  -> lookup-length: 24
    Range: [0]240.12.0.0/16  -> lookup-length: 30
    Range: [0]240.13.0.0/16  -> lookup-length: 25

  Lookup Examples:
    EID [0]240.11.1.1/32     -> hash on [0]240.11.1.0/24
    EID [0]240.12.2.5/32     -> hash on [0]240.12.2.4/30
    EID [0]240.13.3.7/32     -> hash on [0]240.13.3.0/25
    EID [0]240.14.1.1/32     -> hash on [0]240.14.1.1/32 (no match, use full EID)
    ]]></artwork>
      <postamble />
    </figure>

    <t>This approach is particularly useful in deployments where the
    mapping system uses a consistent ETR registration strategy (e.g.,
    all ETRs in a region register with /24 prefixes) but ITRs receive
    packets with more-specific destinations (/32 addresses). By
    configuring the expected registration prefix length for each
    allocation range, ITRs can reliably locate the correct Map-Servers
    without modifying the LISP protocols or introducing complex
    multi-level lookups.</t>
  </section>

  <section title="Deployment Example">
      <t>Here is an example deployment of a Decent-Pull based model. Let's
      say 4 map-server sets are provisioned for the mapping system.
      Therefore 4 distinct DNS names are allocated and a Modulus Value 4
      is used. Each DNS name is allocated Name Index 0 through 3:</t>
    
    <figure>
      <preamble></preamble>
      <artwork><![CDATA[
    0.map-server.lispers.net
    1.map-server.lispers.net
    2.map-server.lispers.net
    3.map-server.lispers.net
      ]]></artwork>
      <postamble />
    </figure>

      <t>The A records for each name can be assigned as:</t>

    <figure>
      <preamble></preamble>
      <artwork><![CDATA[
    0.map-server.lispers.net:  
        A <rloc1-att>
        A <rloc2-verizon>
    1.map-server.lispers.net:
        A <rloc1-bt>
        A <rloc2-dt>
    2.map-server.lispers.net:
        A <rloc1-cn>
        A <rloc2-kr>
    3.map-server.lispers.net:
        A <rloc1-au>
        A <rloc2-nz>
      ]]></artwork>
      <postamble />
    </figure>

      <t>When an xTR wants to register "[1000]fd::2222", it hashes the
      EID string to produce, for example, hash value 0x66. Using the
      modulus value 4 (0x67 &amp; 0x3) produces index 0x3, so the DNS name
      3.map-server.lispers.net is used and a Map-Register is sent to
      &lt;rloc1-au&gt; and &lt;rloc2-nz&gt;.</t>

      <t>Note that the Decent-Pull based method can be used for a core
      seed-group for bootstrapping a Decent-Push based mapping system where
      multicast groups are registered.</t>
    </section>

    <section title="Management Considerations">
      <t>An implementation SHOULD do periodic DNS lookups to determine
      if A records have changed for a DNS entry. This is a
      configuration parameter the network operator selects. This
      specification makes no recommendation for an interval value.</t>
  
      <t>When xTRs derive Map-Resolver and Map-Server names from the DNS,
      they need to use the same Modulus Value otherwise some xTRs will lookup
      EIDs to the wrong place they were registered.</t>
  
      <t>The Modulus Value can be configured or pushed to the LISP-Decent xTRs.
      A future version of this document will describe a push mechanism so all
      xTRs use a consistent modulus value.</t>
    </section>
  </section>

  <section title="Security Considerations">
    <t>Refer to the Security Considerations section of <xref
    target="RFC9301"/> for a complete list of security
    mechanisms as well as pointers to threat analysis drafts.</t>

    <t>It is recommended, where DNS is deployed for the Pull-Based
    Mapping System, DNSSEC <xref target="RFC9364"/> be used to add
    more security to the DNS lookup system.</t>

    <t>Replay attacks, spoofing, and trust relationships are discussed in detail in
    <xref target="RFC9301"/> and <xref target="RFC9303"/>.</t>
  </section>

  <section title="IANA Considerations">
    <t>At this time there are no specific requests for IANA.</t>
  </section>
</middle>

<back>
  <references title='Normative References'>
    <?rfc include="reference.RFC.2119'?>
    <?rfc include="reference.RFC.8174'?>
    <?rfc include="reference.RFC.9300'?>
    <?rfc include="reference.RFC.9301'?>
    <?rfc include="reference.RFC.9303'?>
    <?rfc include="reference.RFC.9364'?>
    <?rfc include="reference.RFC.6832'?>
    <?rfc include="reference.RFC.6836'?>
    <?rfc include="reference.RFC.8111'?>
    <?rfc include="reference.RFC.8060'?>
    <?rfc include="reference.RFC.1034'?>
    <?rfc include="reference.RFC.1035'?>
    <?rfc include="reference.RFC.6234'?>
    <?rfc include="reference.RFC.9437'?>
    <?rfc include="reference.RFC.6831'?>
    <?rfc include="reference.RFC.8378'?>
  </references>


  <references title='Informative References'>
    <?rfc include='http://xml.resource.org/public/rfc/bibxml3/reference.I-D.ietf-lisp-ecdsa-auth.xml'?>

    <reference anchor="MAR-WG-PRESO">
      <front>
	    <title>LISP WG March 2018 Presentation</title>
        <author fullname="Dino Farinacci"/>
	    <date year="2018" month="March" />
      </front>
      <refcontent>https://www.dropbox.com/scl/fi/eqoqestxsoc4w7zh2t8dr/lisp-decent-ietf-london.pdf?rlkey=dw0c96xtbi4c5074a2i90g4qh</refcontent>
    </reference>

    <reference anchor="JUL-WG-PRESO">
      <front>
	    <title>LISP WG July 2019 Presentation</title>
        <author fullname="Dino Farinacci"/>
	    <date year="2019" month="July" />
      </front>
      <refcontent>https://www.dropbox.com/scl/fi/3z7uichvi8x9940xlz6pm/lisp-decent-ietf-prague.pdf?rlkey=4v1lup23zc0j6kpicqfr2npro</refcontent>
    </reference>
  </references>
  
  <section title="Acknowledgments">
    <t>The authors would like to thank the LISP WG for their review
    and acceptance of this draft.</t>

    <t>The authors would also like to give a special thanks to Roman
    Shaposhnik for several discussions that occurred before the first
    draft was published.</t>

    <t>ISE Eliot Lear and Victor Moreno are appreciated for their
    efforts proof reading the draft before Informational RFC publication.</t>
  </section>

  <section title="Document Change Log">
    <t>[RFC Editor: Please delete this section on publication as RFC.]</t>

    <section title="Changes to draft-farinacci-lisp-decent-22">
      <t><list style="symbols">
        <t>Posted March 2026.</t>
        <t>Add section on configuring EID-prefix mask lengths in ITRs
        so when a non /32 or /128 is registered, the lookup hash is
        consistent with the registration hash.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-21">
      <t><list style="symbols">
        <t>Posted November 2025.</t>
        <t>Remove normative references to bis documents for RFC6831, RFC8378,
        and RFC8060 but keep the original RFCs.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-20">
      <t><list style="symbols">
        <t>Posted October 2025.</t>
        <t>Made editorial changes suggested by Eliot.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-19">
      <t><list style="symbols">
        <t>Posted October 2025.</t>
        <t>Victor Moreno completed proof-read and submitted editorial comments.</t>
        <t>Dino completed final proof-read.</t>
        <t>Updated references to latest working group drafts and RFCs.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-18">
      <t><list style="symbols">
        <t>Posted July 2025.</t>
        <t>Made suggested changes to reflect comments from Joel and
        Padma per ISE (Eliot) distinguished review request. This
        should be final review cycle.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-17">
      <t><list style="symbols">
        <t>Posted April 2025.</t>
        <t>Made suggested changes to reflect second review from ISE (Eliot Lear).</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-16">
      <t><list style="symbols">
        <t>Posted December 2024.</t>
        <t>Made suggested changes from ISE review.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-15">
      <t><list style="symbols">
        <t>Posted June 2024.</t>
        <t>Making draft an ISE submission as Informational RFC.</t>
        <t>Update references and document expiry timer.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-14">
      <t><list style="symbols">
        <t>Posted April 2024.</t>
        <t>Update references and document expiry timer.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-13">
      <t><list style="symbols">
        <t>Posted October 2023.</t>
        <t>Make the general definitions of "pull-based" and
        "push-based" be more specific to the way LISP-Decent uses
        them. Call them Decent-Pull and Decent-Push.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-12">
      <t><list style="symbols">
        <t>Posted August 2023.</t>
        <t>Update references and document expiry timer.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-11">
      <t><list style="symbols">
        <t>Posted February 2023.</t>
        <t>Update references and document expiry timer.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-10">
      <t><list style="symbols">
        <t>Posted August 2022.</t>
        <t>Update references and document expiry timer.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-09">
      <t><list style="symbols">
        <t>Posted February 2022.</t>
        <t>Update references and document expiry timer.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-08">
      <t><list style="symbols">
        <t>Posted August 2021.</t>
        <t>Update references and document expiry timer.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-07">
      <t><list style="symbols">
        <t>Posted March 2021.</t>
        <t>Update references and document expiry timer.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-06">
      <t><list style="symbols">
        <t>Posted September 2020.</t>
        <t>Update references and document expiry timer.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-05">
      <t><list style="symbols">
        <t>Posted March 2020.</t>
        <t>Update references and document expiry timer.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-04">
      <t><list style="symbols">
        <t>Posted September 2019.</t>
        <t>Update references and document expiry timer.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-03">
      <t><list style="symbols">
        <t>Posted March 2019.</t>
        <t>Introduce the Hash Mask which is used to grab common bits from
        a registered prefix and a lookup prefix.</t>
        <t>Spec how multicast lookups are done in the pull-based mapping
        system.</t>
        <t>Indicate the hash string includes the unicast EID mask-length
        and multicast group and source mask-lengths.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-02">
      <t><list style="symbols">
        <t>Posted November 2018.</t>
        <t>Changed references from peer-group to seed-group to make the
        algorithms in this document more like how blockchain networks
        initialize the peer-to-peer network.</t>
        <t>Added pull mechanism to complement the push mechanism. The
        pull mechanism could be used as a seed-group to bootstrap the
        push mechanism.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-01">
      <t><list style="symbols">
        <t>Posted July 2018.</t>
        <t>Document timer and reference update.</t>
      </list></t>
    </section>

    <section title="Changes to draft-farinacci-lisp-decent-00">
      <t><list style="symbols">
        <t>Initial draft posted January 2018.</t>
      </list></t>
    </section>

  </section>

</back>
</rfc>
