<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="3"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<rfc category="std" docName="draft-boucadair-6man-prefix-routing-reco-01"
     ipr="trust200902" updates="">
  <front>
    <title abbrev="">IPv6 Prefix Length Recommendation for Routing
    Protocols</title>

    <author fullname="Mohamed Boucadair" initials="M." surname="Boucadair">
      <organization>France Telecom</organization>

      <address>
        <postal>
          <street></street>

          <city>Rennes</city>

          <region></region>

          <code>35000</code>

          <country>France</country>
        </postal>

        <email>mohamed.boucadair@orange.com</email>
      </address>
    </author>

    <author fullname="Alexandru Petrescu" initials="A." surname="Petrescu">
      <organization>CEA, LIST</organization>

      <address>
        <postal>
          <street>CEA Saclay</street>

          <city>Gif-sur-Yvette</city>

          <region>Ile-de-France</region>

          <code>91190</code>

          <country>France</country>
        </postal>

        <phone>+33169089223</phone>

        <email>Alexandru.Petrescu@cea.fr</email>
      </address>
    </author>

    <date day="26" month="June" year="2014" />

    <workgroup>6man Working Group</workgroup>

    <abstract>
      <t>The length of IP prefixes to be manipulated by forwarding and routing
      processes is policy-based; no maximum length must be assumed by design.
      This document sketches a recommendation to be followed by forwarding and
      routing designs with regards to the prefix length. The aim is to avoid
      hard-coded routing and forwarding designs that exclude some IP prefix
      lengths.</t>
    </abstract>

    <note title="Requirements Language">
      <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
      "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
      document are to be interpreted as described in <xref
      target="RFC2119">RFC 2119</xref>.</t>
    </note>
  </front>

  <middle>
    <section title="Introduction">
      <t>Recent discussions on the 64-bit boundary in IPv6 addressing (<xref
      target="I-D.ietf-6man-why64"></xref>) revealed a need for a clear
      recommendation on which bits must be used by routing protocols
      (including route decision-making processes).</t>

      <t>A detailed analysis of the 64-bit boundary in IPv6 addressing, and
      the implication for end-site prefix assignment, is documented in <xref
      target="I-D.ietf-6man-why64"></xref>. No recommendation is included in
      <xref target="I-D.ietf-6man-why64"></xref>.</t>

      <t>It is fundamental to not link routing and forwarding to the IPv6
      prefix/address semantic <xref target="RFC4291"></xref>. This document
      includes a recommendation for that aim.</t>

      <t>Forwarding decisions performed by routers rely on implementations of
      a longest prefix-match algorithm. As in IPv4, the IPv6 prefix-match
      algorithms involve one critical operation which is the comparison of a
      destination address to a prefix present in a routing table (e.g. compare
      the address 2001:db8::1 to the prefix 2001:db8::/64). The recommendation
      on this draft apply to that critical operation.</t>

      <t>It is important that the compare operation be a bit-wise comparison,
      and not a byte-wise comparison.</t>

      <t>A prefix length of value 0 in the routing table should not exist,
      unless the prefix value is also 0 - the default route.</t>

      <t>A prefix length of value 128 in the routing table means a 'host-based
      route'.</t>
    </section>

    <section title="Recommendation">
      <t>Forwarding and routing protocols MUST NOT restrict by design the
      length of IPv6 prefixes. In particular, forwarding and routing processes
      MUST be designed to accept prefixes of any length up to /128, by
      increments of 1.</t>

      <t>Obviously, policies can be enforced to restrict the length of IP
      prefixes advertised within a given domain or in a given interconnection
      link. These policies are deployment-specific and/or driven by
      administrative (interconnection) considerations.</t>

      <t>This recommendation does not conflict with the 64-bit boundary
      followed for end-site prefix assignments.</t>

      <t>Certain lookup algorithm implementations (find the prefix matching a
      given destination address) may be affected by this recommentation, and
      more so in IPv6 than in IPv4. Some implementations may prove less well
      performing when prefix lengths are above 64 (e.g. see discussion by F.
      Baker and 6MAN WG members at
      http://www.ietf.org/mail-archive/web/ipv6/current/msg20633.html)</t>
    </section>

    <section anchor="IANA" title="IANA Considerations">
      <t>This document does not require any action from IANA.</t>
    </section>

    <section anchor="Security" title="Security Considerations">
      <t>This document does not introduce security issues in addition to what
      is discussed in <xref target="RFC4291"></xref>.</t>
    </section>
  </middle>

  <back>
    <references title="Normative References">
      <?rfc include='reference.RFC.2119'?>

      <?rfc include='reference.RFC.4291'?>
    </references>

    <references title="Informative References">
      <?rfc include='reference.I-D.ietf-6man-why64'?>
    </references>
  </back>
</rfc>
