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

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

<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="info" ipr="trust200902" docName="draft-farinacci-lisp-decent-22" number="9962" obsoletes="" updates="" submissionType="independent" xml:lang="en" tocInclude="true" symRefs="true" sortRefs="true" version="3">

  <front>
    <title abbrev="LISP-Decent">A Decentralized Locator/ID Separation Protocol Mapping System (LISP-Decent)</title>
    <seriesInfo name="RFC" value="9962"/>
    <author initials="D" surname="Farinacci" fullname="Dino Farinacci">
      <organization>lispers.net</organization>
      <address>
        <postal>
          <city>San Jose</city>
          <region>CA</region>
          <country>United States of America</country>
        </postal>
        <email>farinacci@gmail.com</email>
      </address>
    </author>
    <author initials="C" surname="Cantrell" fullname="Colin Cantrell">
      <organization>Nexus</organization>
      <address>
        <postal>
          <city>Tempe</city>
          <region>AZ</region>
          <country>United States of America</country>
        </postal>
        <email>colin@nexus.io</email>
      </address>
    </author>
    <date month="April" year="2026"/>
    <abstract>
      <t> This document describes how the Locator/ID Separation Protocol
      (LISP) Mapping System can be distributed for scale and decentralized for
      management, while maintaining trust among data plane nodes. This is an
      Informational RFC and should be used by LISP-Decent implementations to
      interoperate with each other.</t>
    </abstract>
  </front>
  <middle>
    <section numbered="true" toc="default">
      <name>Introduction</name>
      <t>The LISP architecture <xref target="RFC9300" format="default"/>
      introduces two new numbering spaces that are intended to provide overlay
      network functionality: Endpoint Identifiers (EIDs) and Routing Locators
      (RLOCs). To map from EIDs to a set of RLOCs, a
    control plane Mapping System is used <xref target="RFC6836" format="default"/>
        <xref target="RFC8111" format="default"/>. 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" format="default"/>.</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" format="default"/> and <xref target="I-D.ietf-lisp-ecdsa-auth" format="default"/>.</t>
      <t>This design was first introduced to the LISP Working Group (WG) in January of
    2018. It was presented in London in March 2018 <xref target="IETF101-PRESO" format="default"/> and in Prague in March 2019 <xref target="IETF104-PRESO" format="default"/>. This Informational document is not a
    standard and did not reach community consensus to make it an IETF
    LISP WG 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 changes
    and adheres to the specifications documented in <xref target="RFC9301" format="default"/>.</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 numbered="true" toc="default">
      <name>Definitions of Terms</name>
      <dl newline="false" spacing="normal">
        <dt>Mapping System Provider (MSP):</dt>
        <dd>
      Infrastructure service that deploys LISP Map-Resolvers and Map-Servers
      <xref target="RFC9301" format="default"/> and possibly LISP-ALT nodes
      <xref target="RFC6836" format="default"/> or LISP-DDT nodes <xref
      target="RFC8111" format="default"/>. ALT-nodes and DDT-nodes use
      different algorithms for connecting Map-Resolvers and Map-Servers
      together. The MSP can be managed by a separate organization other than
      the one that manages xTRs. This model provides a business separation
      between the organization that manages (and is responsible for) the
      control plane versus the organization that manages the data plane
      overlay service.</dd>
        <dt>Decentralized Mapping System (DMS):</dt>
        <dd>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.</dd>
        <dt>Decent-Pull-Based Mapping System:</dt>
        <dd>The mapping
      system is pull-based, meaning that xTRs will look up 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.</dd>
        <dt>Modulus Value:</dt>
        <dd>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 Domain Name System (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.</dd>
        <dt>Name Index:</dt>
        <dd>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.</dd>
        <dt>Hash Mask:</dt>
        <dd>The Hash Mask is used in the Pull-based
      Mapping System. It is a mask value with 1 bit left justified.
      The mask is used to select what high-order bits of an EID-prefix are
      used in the hash function.</dd>
        <dt>Decent-Push-Based Mapping System:</dt>
        <dd>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.</dd>
        <dt>Replication List Entry (RLE):</dt>
        <dd>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" format="default"/>. RLEs are used with the
      Decent-Push-based Mapping System.</dd>
        <dt>Group Address EID:</dt>
        <dd>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 LISP Canonical Address Format (LCAF) specified in
      <xref target="RFC8060" format="default"/>. 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" format="default"/>.</dd>
        <dt>Seed-Group:</dt>
        <dd>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.</dd>
      </dl>
      <section>
      <name>Requirements Language</name>
        <t>The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>",
        "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL
        NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>",
        "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
        "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document
        are to be interpreted as described in BCP&nbsp;14 <xref
        target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they
        appear in all capitals, as shown here.
        </t>
      </section>

    </section>
    <section numbered="true" toc="default">
      <name>Overview</name>
      <t>The clients of the DMS are also
    the providers of mapping state, see <xref target="RFC9301" format="default"/> 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" format="default"/>, <xref target="RFC9303" format="default"/>, and <xref target="I-D.ietf-lisp-ecdsa-auth" format="default"/>. The xTRs are not required to
    run the database mapping transport system protocols specified in
    <xref target="RFC6836" format="default"/> or <xref target="RFC8111" format="default"/>.</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 trade-offs. When the Decent-Push-based
    approach is used, there is less messaging involved. xTRs can
    multicast a single Map-Register message that 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. 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 so that all xTRs and Map-Servers
      support this specification. Moreover, all xTRs and Map-Servers
      <bcp14>MUST</bcp14> 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 WG 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>
    </section>
    <section numbered="true" toc="default">
      <name>Decent-Push-Based Mapping System</name>
      <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" format="default"/>. 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" format="default"/> or via the overlay multicast
    mechanism described in <xref target="RFC8378" format="default"/>. When overlay
    multicast is used and LISP Map-Register messages are sent to the
    group, they are LISP data encapsulated with an 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 they
    also send packets to the group.</t>
      <section numbered="true" toc="default">
        <name>Components of a Decent-Push-Based LISP-Decent xTR</name>
        <t>When an xTR is configured to be a LISP-Decent xTR (or PxTR
      <xref target="RFC6832" format="default"/>), 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 address 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>
        <artwork name="" type="" align="left" alt=""><![CDATA[
                        xTR1
 Map-Request    +--------------------+
(always local)  |  +-----+  +-----+  |
   +---------------| ITR |  | ETR |-------------+
   |            |  +-----+  +-----+  |          |
   |            |                    |          |  Map-Register to
   |            |      +-------+     |          |  EID 233.252.1.1
   +------------------>| MR/MS |<---------------+  encapsulated to
                |      +-------+     |          | RLOCs xTR1, xTR2,
                +--------------------+          |     and xTR3
                                                |
                           +--------------------+------------+
                           |                                 |
                           |                                 |
                +----------v---------+            +----------v---------+
                |     +--------+     |            |     +--------+     |
                |     |  MR/MS |     |            |     |  MR/MS |     |
                |     +--------+     |            |     +--------+     |
                |  +-----+  +-----+  |            |  +-----+  +-----+  |
                |  | ITR |  | ETR |  |            |  | ITR |  | ETR |  |
                |  +-----+  +-----+  |            |  +-----+  +-----+  |
                +--------------------+            +--------------------+
                         xTR2                              xTR3]]></artwork>
        <t>Note that 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 looking at the 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 numbered="true" toc="default">
        <name>Implementation Considerations</name>
        <t>There are no LISP 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 <bcp14>MUST</bcp14> 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 <bcp14>SHOULD</bcp14> look up its Mapping System group address
      periodically to determine if the membership has changed. The
      lookup interval is a configuration parameter only needed 
      when the ITR does not use the PubSub capability documented in
      <xref target="RFC9437" format="default"/> 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 numbered="true" toc="default">
        <name>Configuration and Authentication</name>
        <t>When xTRs are joined to a multicast group, they <bcp14>MUST</bcp14> have
      their site registration configuration consistent. Any policy or
      authentication key material <bcp14>MUST</bcp14> be configured consistently
      among all members. When <xref target="I-D.ietf-lisp-ecdsa-auth" format="default"/> 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 numbered="true" toc="default">
        <name>Core Seed-Group</name>
        <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" format="default"/> 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 that each Mapping System layer could have a specific
      function or a specific circle of trust.</t>
        <t>This multi-layer Mapping System can be illustrated:</t>
        <artwork name="" type="" align="left" alt=""><![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>

        <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, xTR I boots up and it wants to
      find its other peers in its Mapping System group
      address 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. However, 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 address 233.252.2.2. Examples of EIDs being registered are
      EID1 through EIDn shown above.</t>
        <t>When Map-Registers are sent to group address 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 <bcp14>MUST</bcp14> 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 <bcp14>MUST</bcp14> know of at least one of the RLOCs A, B, and/or
      C.</t>
      </section>
    </section>
    <section anchor="PULL" numbered="true" toc="default">
      <name>Decent-Pull-Based Mapping System</name>
      <section numbered="true" toc="default">
        <name>Components of a Decent-Pulled Based LISP-Decent xTR</name>
        <t>When an xTR is configured to be a LISP-Decent xTR (or PxTR
      <xref target="RFC6832" format="default"/>), 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 DNS <xref target="RFC1034" format="default"/> <xref target="RFC1035" format="default"/> 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" format="default"/> over the
      following ASCII-formatted EID string is used:</t>

        <artwork name="" type="" align="left" alt=""><![CDATA[
    [<iid>]<eid>/<ml>
    [<iid>]<group>/<gml>-<source>/<sml>]]></artwork>

        <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>&lt;iid&gt; is the instance-ID and &lt;eid&gt; is the EID
    of any EID-type defined in <xref target="RFC8060" format="default"/>. The Modulus Value
    &lt;mv&gt; is used to produce the Name Index &lt;index&gt; used to
    build the DNS lookup name:</t>

        <artwork name="" type="" align="left" alt=""><![CDATA[
    eid = "[<iid>]<eid>/<ml>"
    index = hash.sha_256(eid) MOD mv]]></artwork>

        <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>

        <artwork name="" type="" align="left" alt=""><![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>

        <t>The Hash Mask <bcp14>MUST</bcp14> 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>

        <artwork name="" type="" align="left" alt=""><![CDATA[
    <index>.map-server.example.com]]></artwork>

        <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 <bcp14>MAY</bcp14> round robin EID
    lookup requests among the A and AAAA records.</t>
      </section>

      <section numbered="true" toc="default">
        <name>Configurable EID Prefix Lengths for Lookups</name>
      <t>In implementations where EID allocations follow a predictable
      pattern, operators <bcp14>MAY</bcp14> 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 <bcp14>SHOULD</bcp14> support configuration of EID prefix ranges and
      their associated lookup prefix lengths. When an ITR performs a
      Map-Request lookup, it <bcp14>SHOULD</bcp14> check if the destination EID
      matches any configured range. If a match is found, the ITR <bcp14>MUST</bcp14>
      use the configured lookup prefix length instead of the EID's
      registered 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 <bcp14>MUST</bcp14> be
      selected.</t>
      
      <t>The configuration consists of pairs of EID-prefix (the
      well-known EID allocation range in Classless Inter-Domain Routing (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 bytes for
      IPv4 and 0-128 bytes for IPv6).</t>

      <t>Implementation note: When computing the hash string for a
      lookup where the EID matches a configured range, the ITR <bcp14>MUST</bcp14>
      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>
        <artwork name="" type="" align="left" alt=""><![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>

    <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
    LISP or introducing complex multi-level lookups.</t>
  </section>

      <section numbered="true" toc="default">
        <name>Deployment Example</name>
        <t>Here is an example deployment of a Decent-Pull-based model. Let's say that 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>

        <artwork name="" type="" align="left" alt=""><![CDATA[
    0.map-server.lispers.net
    1.map-server.lispers.net
    2.map-server.lispers.net
    3.map-server.lispers.net]]></artwork>

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

        <artwork name="" type="" align="left" alt=""><![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>

        <t>When an xTR wants to register "[1000]fd::2222/128", it hashes the
      EID string to produce, for example, hash value 0x67. 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 numbered="true" toc="default">
        <name>Management Considerations</name>
        <t>An implementation <bcp14>SHOULD</bcp14> 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 look up
      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 numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>Refer to <xref target="RFC9301" sectionFormat="of" section="9"/> for a complete list of security
    mechanisms as well as pointers to threat analysis documents.</t>
      <t>Where DNS is deployed for the Pull-based
    Mapping System, it is recommended to use DNSSEC <xref target="RFC9364" format="default"/> 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" format="default"/> and <xref target="RFC9303" format="default"/>.</t>
    </section>
    <section numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t>This document has no IANA actions.</t>
    </section>
  </middle>
  <back>
    <displayreference target="I-D.ietf-lisp-ecdsa-auth" to="ECDSA-AUTH"/>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9300.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9301.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9303.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9364.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6832.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6836.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8111.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8060.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.1034.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.1035.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6234.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9437.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6831.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8378.xml"/>
      </references>
      <references>
        <name>Informative References</name>
<!--[I-D.ietf-lisp-ecdsa-auth]
draft-ietf-lisp-ecdsa-auth-15
IESG State: I-D Exists as of 12/12/25
-->
        <reference anchor="I-D.ietf-lisp-ecdsa-auth" target="https://datatracker.ietf.org/doc/html/draft-ietf-lisp-ecdsa-auth-16">
          <front>
            <title>LISP Control-Plane ECDSA Authentication and Authorization</title>
            <author fullname="Dino Farinacci" initials="D." surname="Farinacci">
              <organization>lispers.net</organization>
            </author>
            <author fullname="Erik Nordmark" initials="E." surname="Nordmark">
              <organization>Zededa</organization>
            </author>
            <date day="29" month="January" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-lisp-ecdsa-auth-16"/>
        </reference>
        <reference anchor="IETF101-PRESO" target="https://datatracker.ietf.org/meeting/101/materials/slides-101-lisp-lisp-decentralized-mapping-system-00">
          <front>
            <title>A Decentralized Mapping System: draft-farinacci-lisp-decent-00</title>
            <author fullname="Dino Farinacci"/>
            <author fullname="Colin Cantrell"/>
            <date year="2018" month="March"/>
          </front>
          <refcontent>IETF 101 Proceedings</refcontent>
        </reference>

        <reference anchor="IETF104-PRESO" target="https://datatracker.ietf.org/meeting/104/materials/slides-104-lisp-a-decent-lisp-mapping-system-00">
          <front>
            <title>A Decentralized Mapping System: draft-farinacci-lisp-decent-03</title>
            <author fullname="Dino Farinacci"/>
            <author fullname="Colin Cantrell"/>
            <date year="2019" month="March"/>
          </front>
<refcontent>IETF 104 Proceedings</refcontent>
        </reference>
      </references>
    </references>

    <section numbered="false" toc="default">
      <name>Acknowledgments</name>
      <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 <contact
      fullname="Roman Shaposhnik"/> for several discussions that occurred
      before the initial draft of this document.</t>
      <t><contact fullname="Eliot Lear"/> and <contact fullname="Victor
      Moreno"/> are appreciated for their efforts proofreading the draft  
      before publication as an RFC.</t>
    </section>
  </back>
</rfc>
