<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" category="exp" consensus="true" docName="draft-ietf-babel-v4viav6-08" indexInclude="true" ipr="trust200902" number="9229" prepTime="2022-05-06T11:06:46" scripts="Common,Latin" sortRefs="true" submissionType="IETF" symRefs="true" tocDepth="2" tocInclude="true" xml:lang="en">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-babel-v4viav6-08" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc9229" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="IPv4 Routes with an IPv6 Next Hop">IPv4 Routes with an IPv6 Next Hop in the Babel Routing Protocol</title>
    <seriesInfo name="RFC" value="9229" stream="IETF"/>
    <author fullname="Juliusz Chroboczek" initials="J." surname="Chroboczek">
      <organization showOnFrontPage="true">IRIF, University of Paris</organization>
      <address>
        <postal>
          <street>Case 7014</street>
          <city>Paris Cedex 13</city>
          <code>75205</code>
          <country>France</country>
        </postal>
        <email>jch@irif.fr</email>
      </address>
    </author>
    <date month="05" year="2022"/>
    <area>rtg</area>
    <workgroup>babel</workgroup>
    <keyword>routing</keyword>
    <keyword>transition</keyword>
    <keyword>IPv6 transition</keyword>
    <keyword>double-stack</keyword>
    <keyword>dual-stack</keyword>
    <keyword>glorious IPv6-only future</keyword>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">This document defines an extension to the Babel routing protocol that
allows announcing routes to an IPv4 prefix with an IPv6 next hop, which
makes it possible for IPv4 traffic to flow through interfaces that have
not been assigned an IPv4 address.</t>
    </abstract>
    <boilerplate>
      <section anchor="status-of-memo" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.1">
        <name slugifiedName="name-status-of-this-memo">Status of This Memo</name>
        <t indent="0" pn="section-boilerplate.1-1">
            This document is not an Internet Standards Track specification; it is
            published for examination, experimental implementation, and
            evaluation.
        </t>
        <t indent="0" pn="section-boilerplate.1-2">
            This document defines an Experimental Protocol for the Internet
            community.  This document is a product of the Internet Engineering
            Task Force (IETF).  It represents the consensus of the IETF community.
            It has received public review and has been approved for publication
            by the Internet Engineering Steering Group (IESG).  Not all documents
            approved by the IESG are candidates for any level of Internet
            Standard; see Section 2 of RFC 7841. 
        </t>
        <t indent="0" pn="section-boilerplate.1-3">
            Information about the current status of this document, any
            errata, and how to provide feedback on it may be obtained at
            <eref target="https://www.rfc-editor.org/info/rfc9229" brackets="none"/>.
        </t>
      </section>
      <section anchor="copyright" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.2">
        <name slugifiedName="name-copyright-notice">Copyright Notice</name>
        <t indent="0" pn="section-boilerplate.2-1">
            Copyright (c) 2022 IETF Trust and the persons identified as the
            document authors. All rights reserved.
        </t>
        <t indent="0" pn="section-boilerplate.2-2">
            This document is subject to BCP 78 and the IETF Trust's Legal
            Provisions Relating to IETF Documents
            (<eref target="https://trustee.ietf.org/license-info" brackets="none"/>) in effect on the date of
            publication of this document. Please review these documents
            carefully, as they describe your rights and restrictions with
            respect to this document. Code Components extracted from this
            document must include Revised BSD License text as described in
            Section 4.e of the Trust Legal Provisions and are provided without
            warranty as described in the Revised BSD License.
        </t>
      </section>
    </boilerplate>
    <toc>
      <section anchor="toc" numbered="false" removeInRFC="false" toc="exclude" pn="section-toc.1">
        <name slugifiedName="name-table-of-contents">Table of Contents</name>
        <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1">
          <li pn="section-toc.1-1.1">
            <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.1"><xref derivedContent="1" format="counter" sectionFormat="of" target="section-1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-introduction">Introduction</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.1.2">
              <li pn="section-toc.1-1.1.2.1">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.1.1"><xref derivedContent="1.1" format="counter" sectionFormat="of" target="section-1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-specification-of-requiremen">Specification of Requirements</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.2">
            <t indent="0" pn="section-toc.1-1.2.1"><xref derivedContent="2" format="counter" sectionFormat="of" target="section-2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-protocol-operation">Protocol Operation</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.2.2">
              <li pn="section-toc.1-1.2.2.1">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.2.2.1.1"><xref derivedContent="2.1" format="counter" sectionFormat="of" target="section-2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-announcing-v4-via-v6-routes">Announcing v4-via-v6 Routes</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.2">
                <t indent="0" pn="section-toc.1-1.2.2.2.1"><xref derivedContent="2.2" format="counter" sectionFormat="of" target="section-2.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-receiving-v4-via-v6-routes">Receiving v4-via-v6 Routes</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.3">
                <t indent="0" pn="section-toc.1-1.2.2.3.1"><xref derivedContent="2.3" format="counter" sectionFormat="of" target="section-2.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-route-and-seqno-requests">Route and Seqno Requests</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.4">
                <t indent="0" pn="section-toc.1-1.2.2.4.1"><xref derivedContent="2.4" format="counter" sectionFormat="of" target="section-2.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-other-tlvs">Other TLVs</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.3">
            <t indent="0" pn="section-toc.1-1.3.1"><xref derivedContent="3" format="counter" sectionFormat="of" target="section-3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-icmpv4-and-pmtu-discovery">ICMPv4 and PMTU Discovery</xref></t>
          </li>
          <li pn="section-toc.1-1.4">
            <t indent="0" pn="section-toc.1-1.4.1"><xref derivedContent="4" format="counter" sectionFormat="of" target="section-4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-protocol-encoding">Protocol Encoding</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2">
              <li pn="section-toc.1-1.4.2.1">
                <t indent="0" pn="section-toc.1-1.4.2.1.1"><xref derivedContent="4.1" format="counter" sectionFormat="of" target="section-4.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-prefix-encoding">Prefix Encoding</xref></t>
              </li>
              <li pn="section-toc.1-1.4.2.2">
                <t indent="0" pn="section-toc.1-1.4.2.2.1"><xref derivedContent="4.2" format="counter" sectionFormat="of" target="section-4.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-changes-to-existing-tlvs">Changes to Existing TLVs</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.5">
            <t indent="0" pn="section-toc.1-1.5.1"><xref derivedContent="5" format="counter" sectionFormat="of" target="section-5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-backwards-compatibility">Backwards Compatibility</xref></t>
          </li>
          <li pn="section-toc.1-1.6">
            <t indent="0" pn="section-toc.1-1.6.1"><xref derivedContent="6" format="counter" sectionFormat="of" target="section-6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-iana-considerations">IANA Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.7">
            <t indent="0" pn="section-toc.1-1.7.1"><xref derivedContent="7" format="counter" sectionFormat="of" target="section-7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-security-considerations">Security Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.8">
            <t indent="0" pn="section-toc.1-1.8.1"><xref derivedContent="8" format="counter" sectionFormat="of" target="section-8"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-references">References</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.8.2">
              <li pn="section-toc.1-1.8.2.1">
                <t indent="0" pn="section-toc.1-1.8.2.1.1"><xref derivedContent="8.1" format="counter" sectionFormat="of" target="section-8.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.2">
                <t indent="0" pn="section-toc.1-1.8.2.2.1"><xref derivedContent="8.2" format="counter" sectionFormat="of" target="section-8.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.9">
            <t indent="0" pn="section-toc.1-1.9.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.a"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgments">Acknowledgments</xref></t>
          </li>
          <li pn="section-toc.1-1.10">
            <t indent="0" pn="section-toc.1-1.10.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.b"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-address">Author's Address</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t indent="0" pn="section-1-1">
  The role of a routing protocol is to build a routing table, a data
structure that maps network prefixes in a given family (IPv4 or IPv6)
to next hops, which are (at least conceptually) pairs of an outgoing
interface and a neighbour's network address. For example:
</t>
      <artwork name="" type="" align="left" alt="" pn="section-1-2">
          destination                      next hop
      2001:db8:0:1::/64               eth0, fe80::1234:5678
      203.0.113.0/24                  eth0, 192.0.2.1
</artwork>
      <t indent="0" pn="section-1-3">When a packet is routed according to a given routing table entry, the
forwarding plane typically uses a neighbour discovery protocol (the
Neighbour Discovery (ND) protocol <xref target="RFC4861" format="default" sectionFormat="of" derivedContent="RFC4861"/> in the case of
IPv6 and the Address Resolution Protocol (ARP) <xref target="RFC0826" format="default" sectionFormat="of" derivedContent="RFC0826"/> in
the case of IPv4) to map the next-hop address to a link-layer address (a
"Media Access Control (MAC) address"), which is then used to construct the link-layer frames that
encapsulate forwarded packets.</t>
      <t indent="0" pn="section-1-4">It is apparent from the description above that there is no fundamental
reason why the destination prefix and the next-hop address should be in
the same address family: there is nothing preventing an IPv6 packet from
being routed through a next hop with an IPv4 address (in which case the
next hop's MAC address will be obtained using ARP) or, conversely, an
IPv4 packet from being routed through a next hop with an IPv6 address.
(In fact, it is even possible to store link-layer addresses directly in
the next-hop entry of the routing table, which is commonly done in
networks using the OSI protocol suite).</t>
      <t indent="0" pn="section-1-5">The case of routing IPv4 packets through an IPv6 next hop is
particularly interesting, since it makes it possible to build networks
that have no IPv4 addresses except at the edges and still provide IPv4
connectivity to edge hosts.  In addition, since an IPv6 next hop can use
a link-local address that is autonomously configured, the use of such
routes enables a mode of operation where the network core has no
statically assigned IP addresses of either family, which significantly
reduces the amount of manual configuration required.  (See also
<xref target="RFC7404" format="default" sectionFormat="of" derivedContent="RFC7404"/> for a discussion of the issues involved with such
an approach.)</t>
      <t indent="0" pn="section-1-6">We call a route towards an IPv4 prefix that uses an IPv6 next hop
a "v4-via-v6" route.  This document describes an extension that allows the
Babel routing protocol <xref target="RFC8966" format="default" sectionFormat="of" derivedContent="RFC8966"/> to announce v4-via-v6
routes across interfaces that have no IPv4 addresses assigned but are
capable of forwarding IPv4 traffic.  <xref target="icmp" format="default" sectionFormat="of" derivedContent="Section 3"/> describes
procedures that ensure that all routers can originate ICMPv4 packets, even
if they have not been assigned any IPv4 addresses.</t>
      <t indent="0" pn="section-1-7">The extension described in this document is inspired by a previously
defined extension to BGP <xref target="RFC5549" format="default" sectionFormat="of" derivedContent="RFC5549"/>.</t>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-1.1">
        <name slugifiedName="name-specification-of-requiremen">Specification of Requirements</name>
        <t indent="0" pn="section-1.1-1">
    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 14 <xref target="RFC2119" format="default" sectionFormat="of" derivedContent="RFC2119"/> <xref target="RFC8174" format="default" sectionFormat="of" derivedContent="RFC8174"/> when, and only when, they appear in all capitals, as
    shown here.
        </t>
      </section>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-2">
      <name slugifiedName="name-protocol-operation">Protocol Operation</name>
      <t indent="0" pn="section-2-1">The Babel protocol fully supports dual-stack operation: all data that
represent a neighbour address or a network prefix are tagged by an Address
Encoding (AE), a small integer that identifies the address family (IPv4 or
IPv6) of the address of prefix and describes how it is encoded.  This
extension defines a new AE, called "v4-via-v6", which has the same format as
the existing AE for IPv4 addresses (AE 1).  This new AE is only
allowed in TLVs that carry network prefixes: TLVs that carry an IPv6
neighbour address use one of the normal encodings for IPv6 addresses.</t>
      <section anchor="updates" numbered="true" toc="include" removeInRFC="false" pn="section-2.1">
        <name slugifiedName="name-announcing-v4-via-v6-routes">Announcing v4-via-v6 Routes</name>
        <t indent="0" pn="section-2.1-1">A Babel node can use a v4-via-v6 announcement to announce an IPv4 route
over an interface that has no assigned IPv4 address.  In order to do so,
it first establishes an IPv6 next-hop address in the usual manner (either
by sending the Babel packet over IPv6, or by including a Next Hop TLV
containing an IPv6 address and using AE 2 or 3); it then sends an Update,
with AE equal to 4 (v4-via-v6) containing the IPv4 prefix being
announced.</t>
        <t indent="0" pn="section-2.1-2">If the outgoing interface has been assigned an IPv4 address, then, in
the interest of maximising compatibility with existing routers, the sender
<bcp14>SHOULD</bcp14> prefer an ordinary IPv4 announcement; even in that case, however,
it <bcp14>MAY</bcp14> send a v4-via-v6 announcement.  A node <bcp14>SHOULD NOT</bcp14> send both
ordinary IPv4 and v4-via-v6 announcements for the same prefix over
a single interface (if the update is sent to a multicast address) or to
a single neighbour (if sent to a unicast address), since doing that
provides no benefit while doubling the amount of routing traffic.</t>
        <t indent="0" pn="section-2.1-3">Updates with infinite metric are retractions: they indicate that
a previously announced route is no longer available.  Retractions do not
require a next hop; therefore, there is no difference between v4-via-v6
retractions and ordinary retractions.  A node <bcp14>MAY</bcp14> send IPv4 retractions
only, or it <bcp14>MAY</bcp14> send v4-via-v6 retractions on interfaces that have not
been assigned an IPv4 address.</t>
      </section>
      <section anchor="receiving-updates" numbered="true" toc="include" removeInRFC="false" pn="section-2.2">
        <name slugifiedName="name-receiving-v4-via-v6-routes">Receiving v4-via-v6 Routes</name>
        <t indent="0" pn="section-2.2-1">Upon reception of an Update TLV with AE equal to 4 (v4-via-v6) and
finite metric, a Babel node computes the IPv6 next hop, as described in
<xref target="RFC8966" format="default" sectionFormat="of" section="4.6.9" derivedLink="https://rfc-editor.org/rfc/rfc8966#section-4.6.9" derivedContent="RFC8966"/>.  If no IPv6 next hop exists,
then the Update <bcp14>MUST</bcp14> be ignored.  If an IPv6 next hop exists,
then the node <bcp14>MAY</bcp14> acquire the route being announced, as described in
<xref target="RFC8966" format="default" sectionFormat="of" section="3.5.3" derivedLink="https://rfc-editor.org/rfc/rfc8966#section-3.5.3" derivedContent="RFC8966"/>; the parameters of the route are
as follows:
</t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.2-2">
          <li pn="section-2.2-2.1">The prefix, plen, router-id, seqno, and metric <bcp14>MUST</bcp14> be computed as for an
IPv4 route, as described in <xref target="RFC8966" format="default" sectionFormat="of" section="4.6.9" derivedLink="https://rfc-editor.org/rfc/rfc8966#section-4.6.9" derivedContent="RFC8966"/>.</li>
          <li pn="section-2.2-2.2">The next hop <bcp14>MUST</bcp14> be computed as for an IPv6 route, as described in
<xref target="RFC8966" format="default" sectionFormat="of" section="4.6.9" derivedLink="https://rfc-editor.org/rfc/rfc8966#section-4.6.9" derivedContent="RFC8966"/>. It is taken from the last
preceding Next Hop TLV with an AE field equal to 2 or 3; if no such
entry exists and if the Update TLV has been sent in a Babel packet
carried over IPv6, then the next hop is the network-layer source address
of the packet.</li>
        </ul>
        <t indent="0" pn="section-2.2-3">An Update TLV with a v4-via-v6 AE and metric equal to infinity is
a retraction: it announces that a previously available route is being
retracted.  In that case, no next hop is necessary, and the retraction is
treated as described in <xref target="RFC8966" format="default" sectionFormat="of" section="4.6.9" derivedLink="https://rfc-editor.org/rfc/rfc8966#section-4.6.9" derivedContent="RFC8966"/>.</t>
        <t indent="0" pn="section-2.2-4">As usual, a node <bcp14>MAY</bcp14> ignore the update, e.g., due to filtering
(see <xref target="RFC8966" format="default" sectionFormat="of" section="C" derivedLink="https://rfc-editor.org/rfc/rfc8966#appendix-C" derivedContent="RFC8966"/>).  If a node cannot install
v4-via-v6 routes, e.g., due to hardware or software limitations, then
routes to an IPv4 prefix with an IPv6 next hop <bcp14>MUST NOT</bcp14> be selected.</t>
      </section>
      <section anchor="requests" numbered="true" toc="include" removeInRFC="false" pn="section-2.3">
        <name slugifiedName="name-route-and-seqno-requests">Route and Seqno Requests</name>
        <t indent="0" pn="section-2.3-1">Route and seqno requests are used to request an update for a given
prefix.  Since they are not related to a specific next hop, there is no
semantic difference between IPv4 and v4-via-v6 requests.  Therefore,
a node <bcp14>SHOULD NOT</bcp14> send requests of either kind with the AE field being set
to 4 (v4-via-v6); instead, it <bcp14>SHOULD</bcp14> request IPv4 updates by sending
requests with the AE field being set to 1 (IPv4).</t>
        <t indent="0" pn="section-2.3-2">When receiving requests, AEs 1 (IPv4) and 4 (v4-via-v6) <bcp14>MUST</bcp14> be treated
in the same manner: the receiver processes the request as described in
<xref target="RFC8966" format="default" sectionFormat="of" section="3.8" derivedLink="https://rfc-editor.org/rfc/rfc8966#section-3.8" derivedContent="RFC8966"/>.  If an Update is sent, then it
<bcp14>MAY</bcp14> be an ordinary IPv4 announcement (AE = 1) or a v4-via-v6
announcement (AE = 4), as described in <xref target="updates" format="default" sectionFormat="of" derivedContent="Section 2.1"/>, irrespective of which AE was used in the request.</t>
        <t indent="0" pn="section-2.3-3">When receiving a request with AE 0 (wildcard), the receiver <bcp14>SHOULD</bcp14> send
a full route dump, as described in <xref target="RFC8966" format="default" sectionFormat="of" section="3.8.1.1" derivedLink="https://rfc-editor.org/rfc/rfc8966#section-3.8.1.1" derivedContent="RFC8966"/>.  Any IPv4 routes contained in the route dump may use
either AE 1 (IPv4) or AE 4 (v4-via-v6), as described <xref target="updates" format="default" sectionFormat="of" derivedContent="Section 2.1"/>.</t>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-2.4">
        <name slugifiedName="name-other-tlvs">Other TLVs</name>
        <t indent="0" pn="section-2.4-1">The only other TLVs defined by <xref target="RFC8966" format="default" sectionFormat="of" derivedContent="RFC8966"/> that carry an
AE field are Next Hop and IHU.  Next Hop and IHU TLVs <bcp14>MUST NOT</bcp14> carry the
AE 4 (v4-via-v6).</t>
      </section>
    </section>
    <section anchor="icmp" numbered="true" toc="include" removeInRFC="false" pn="section-3">
      <name slugifiedName="name-icmpv4-and-pmtu-discovery">ICMPv4 and PMTU Discovery</name>
      <t indent="0" pn="section-3-1">The Internet Control Message Protocol (ICMPv4, or simply ICMP) <xref target="RFC0792" format="default" sectionFormat="of" derivedContent="RFC0792"/> is a protocol related to IPv4 that is primarily used to
carry diagnostic and debugging information.  ICMPv4 packets may be
originated by end hosts (e.g., the "destination unreachable, port
unreachable" ICMPv4 packet), but they may also be originated by
intermediate routers (e.g., most other kinds of "destination unreachable"
packets).</t>
      <t indent="0" pn="section-3-2">Some protocols deployed in the Internet rely on ICMPv4 packets sent by
intermediate routers.  Most notably, Path MTU Discovery (PMTUD) <xref target="RFC1191" format="default" sectionFormat="of" derivedContent="RFC1191"/> is an algorithm executed by end hosts to discover the
maximum packet size that a route is able to carry.  While there exist
variants of PMTUD that are purely end-to-end <xref target="RFC4821" format="default" sectionFormat="of" derivedContent="RFC4821"/>, the
variant most commonly deployed in the Internet has a hard dependency on
ICMPv4 packets originated by intermediate routers: if intermediate routers
are unable to send ICMPv4 packets, PMTUD may lead to persistent
blackholing of IPv4 traffic.</t>
      <t indent="0" pn="section-3-3">Due to this kind of dependency, every Babel router that is able to
forward IPv4 traffic <bcp14>MUST</bcp14> be able originate ICMPv4 traffic.  Since the
extension described in this document enables routers to forward IPv4
traffic received over an interface that has not been assigned an IPv4
address, a router implementing this extension <bcp14>MUST</bcp14> be able to originate
ICMPv4 packets even when the outgoing interface has not been assigned an
IPv4 address.</t>
      <t indent="0" pn="section-3-4">In such a situation, if a Babel router has an interface that has been
assigned an IPv4 address (other than a loopback address) or if an IPv4
address has been assigned to the router itself (to the "loopback
interface"), then that IPv4 address may be used as the source of
originated ICMPv4 packets.  If no IPv4 address is available, a Babel
router could use the experimental mechanism described in Requirement
R-22 of <xref target="RFC7600" format="default" sectionFormat="of" section="4.8" derivedLink="https://rfc-editor.org/rfc/rfc7600#section-4.8" derivedContent="RFC7600"/>, which consists of
using the dummy address 192.0.0.8 as the source address of originated
ICMPv4 packets.  Note, however, that using the same address on multiple
routers may hamper debugging and fault isolation, e.g., when using the
"traceroute" utility.</t>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-4">
      <name slugifiedName="name-protocol-encoding">Protocol Encoding</name>
      <t indent="0" pn="section-4-1">This extension defines the v4-via-v6 AE, whose value is 4. This AE is
solely used to tag network prefixes and <bcp14>MUST NOT</bcp14> be used to tag neighbour
addresses, e.g., in Next Hop or IHU TLVs.</t>
      <t indent="0" pn="section-4-2">This extension defines no new TLVs or sub-TLVs.</t>
      <section anchor="prefix-encoding" numbered="true" toc="include" removeInRFC="false" pn="section-4.1">
        <name slugifiedName="name-prefix-encoding">Prefix Encoding</name>
        <t indent="0" pn="section-4.1-1">Network prefixes tagged with AE 4 (v4-via-v6) <bcp14>MUST</bcp14> be encoded and
decoded just like prefixes tagged with AE 1 (IPv4), as described in
<xref target="RFC8966" format="default" sectionFormat="of" section="4.1.5" derivedLink="https://rfc-editor.org/rfc/rfc8966#section-4.1.5" derivedContent="RFC8966"/>.</t>
        <t indent="0" pn="section-4.1-2">A new compression state for AE 4 (v4-via-v6) distinct from that of AE
1 (IPv4) is introduced and <bcp14>MUST</bcp14> be used for address compression of
prefixes tagged with AE 4, as described in Sections <xref target="RFC8966" sectionFormat="bare" section="4.5" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8966#section-4.5" derivedContent="RFC8966"/> and <xref target="RFC8966" sectionFormat="bare" section="4.6.9" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8966#section-4.6.9" derivedContent="RFC8966"/> of
<xref target="RFC8966" format="default" sectionFormat="of" derivedContent="RFC8966"/></t>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-4.2">
        <name slugifiedName="name-changes-to-existing-tlvs">Changes to Existing TLVs</name>
        <t indent="0" pn="section-4.2-1">The following TLVs <bcp14>MAY</bcp14> be tagged with AE 4 (v4-via-v6):

</t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-4.2-2">
          <li pn="section-4.2-2.1">Update (Type = 8)</li>
          <li pn="section-4.2-2.2">Route Request (Type = 9)</li>
          <li pn="section-4.2-2.3">Seqno Request (Type = 10)</li>
        </ul>
        <t indent="0" pn="section-4.2-3">As AE 4 (v4-via-v6) is suitable only for network prefixes, IHU
(Type = 5) and Next Hop (Type = 7) TLVs are never sent
with AE 4.  Such (incorrect) TLVs <bcp14>MUST</bcp14> be ignored upon reception.</t>
        <section numbered="true" toc="exclude" removeInRFC="false" pn="section-4.2.1">
          <name slugifiedName="name-update">Update</name>
          <t indent="0" pn="section-4.2.1-1">An Update (Type = 8) TLV with AE 4 (v4-via-v6) is constructed as described in
<xref target="RFC8966" format="default" sectionFormat="of" section="4.6.9" derivedLink="https://rfc-editor.org/rfc/rfc8966#section-4.6.9" derivedContent="RFC8966"/> for AE 1 (IPv4), with the
following specificities:
</t>
          <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-4.2.1-2">
            <li pn="section-4.2.1-2.1">The Prefix field is constructed according to
<xref target="prefix-encoding" format="default" sectionFormat="of" derivedContent="Section 4.1"/>.</li>
            <li pn="section-4.2.1-2.2">The Next Hop field is built and parsed as described in Sections
<xref target="updates" format="counter" sectionFormat="of" derivedContent="2.1"/> and <xref target="receiving-updates" format="counter" sectionFormat="of" derivedContent="2.2"/>.</li>
          </ul>
        </section>
        <section numbered="true" toc="exclude" removeInRFC="false" pn="section-4.2.2">
          <name slugifiedName="name-requests">Requests</name>
          <t indent="0" pn="section-4.2.2-1">When tagged with the AE 4 (v4-via-v6), Route Request and Seqno Request TLVs
<bcp14>MUST</bcp14> be constructed and decoded as described in
<xref target="RFC8966" format="default" sectionFormat="of" section="4.6" derivedLink="https://rfc-editor.org/rfc/rfc8966#section-4.6" derivedContent="RFC8966"/>, and the network prefixes contained within them
<bcp14>MUST</bcp14> be decoded as described in <xref target="prefix-encoding" format="default" sectionFormat="of" derivedContent="Section 4.1"/> (see also
<xref target="requests" format="default" sectionFormat="of" derivedContent="Section 2.3"/>).</t>
        </section>
      </section>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-5">
      <name slugifiedName="name-backwards-compatibility">Backwards Compatibility</name>
      <t indent="0" pn="section-5-1">This protocol extension adds no new TLVs or sub-TLVs.</t>
      <t indent="0" pn="section-5-2">This protocol extension uses a new AE.  As discussed in
<xref target="RFC8966" format="default" sectionFormat="of" section="D" derivedLink="https://rfc-editor.org/rfc/rfc8966#appendix-D" derivedContent="RFC8966"/> and specified in the same document, implementations
that do not understand the present extension will silently ignore the various
TLVs that use this new AE.  As a result, incompatible versions will ignore
v4-via-v6 routes.  They will also ignore requests with AE 4 (v4-via-v6), which, as
stated in <xref target="requests" format="default" sectionFormat="of" derivedContent="Section 2.3"/>, are not recommended.</t>
      <t indent="0" pn="section-5-3">Using a new AE introduces a new compression state, which is used to
      parse the network prefixes.  As this compression state is separate from
      the states of other AEs, it will not interfere with the compression
      state of unextended nodes.</t>
      <t indent="0" pn="section-5-4">This extension reuses the next-hop state from AEs 2 and 3 (IPv6) but
makes no changes to the way in which it is updated. Therefore, it causes
no compatibility issues.</t>
      <t indent="0" pn="section-5-5">As mentioned in <xref target="updates" format="default" sectionFormat="of" derivedContent="Section 2.1"/>, ordinary IPv4 announcements
are preferred to v4-via-v6 announcements when the outgoing interface has
an assigned IPv4 address; doing otherwise would prevent routers that do
not implement this extension from learning the route being announced.</t>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-6">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <t indent="0" pn="section-6-1">IANA has allocated value 4 in the "Babel Address Encodings" registry as
follows:</t>
      <table align="center" pn="table-1">
        <thead>
          <tr>
            <th align="left" colspan="1" rowspan="1">AE</th>
            <th align="left" colspan="1" rowspan="1">Name</th>
            <th align="left" colspan="1" rowspan="1">Reference</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left" colspan="1" rowspan="1">4</td>
            <td align="left" colspan="1" rowspan="1">v4-via-v6</td>
            <td align="left" colspan="1" rowspan="1">RFC 9229</td>
          </tr>
        </tbody>
      </table>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-7">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-7-1">The extension defined in this document does not fundamentally change
the security properties of the Babel protocol.  However, by allowing IPv4
routes to be propagated across routers that have not been assigned IPv4
addresses, it might invalidate the assumptions made by network
administrators, which could conceivably lead to security issues.</t>
      <t indent="0" pn="section-7-2">For example, if an island of IPv4-only hosts is separated from the IPv4
Internet by routers that have not been assigned IPv4 addresses, a network
administrator might reasonably assume that the IPv4-only hosts are
unreachable from the IPv4 Internet.  This assumption is broken if the
intermediary routers implement the extension described in this document,
which might expose the IPv4-only hosts to traffic from the IPv4 Internet.
If this is undesirable, the flow of IPv4 traffic must be restricted by the
use of suitable filtering rules (see <xref target="RFC8966" format="default" sectionFormat="of" section="C" derivedLink="https://rfc-editor.org/rfc/rfc8966#appendix-C" derivedContent="RFC8966"/>)
together with matching packet filters in the data plane.</t>
    </section>
  </middle>
  <back>
    <references pn="section-8">
      <name slugifiedName="name-references">References</name>
      <references pn="section-8.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="RFC0792" target="https://www.rfc-editor.org/info/rfc792" quoteTitle="true" derivedAnchor="RFC0792">
          <front>
            <title>Internet Control Message Protocol</title>
            <author initials="J." surname="Postel" fullname="J. Postel">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="1981" month="September"/>
          </front>
          <seriesInfo name="STD" value="5"/>
          <seriesInfo name="RFC" value="792"/>
          <seriesInfo name="DOI" value="10.17487/RFC0792"/>
        </reference>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" quoteTitle="true" derivedAnchor="RFC2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author initials="S." surname="Bradner" fullname="S. Bradner">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="1997" month="March"/>
            <abstract>
              <t indent="0">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" quoteTitle="true" derivedAnchor="RFC8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author initials="B." surname="Leiba" fullname="B. Leiba">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2017" month="May"/>
            <abstract>
              <t indent="0">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="RFC8966" target="https://www.rfc-editor.org/info/rfc8966" quoteTitle="true" derivedAnchor="RFC8966">
          <front>
            <title>The Babel Routing Protocol</title>
            <author initials="J." surname="Chroboczek" fullname="J. Chroboczek">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="D." surname="Schinazi" fullname="D. Schinazi">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2021" month="January"/>
            <abstract>
              <t indent="0">Babel is a loop-avoiding, distance-vector routing protocol that is robust and efficient both in ordinary wired networks and in wireless mesh networks.  This document describes the Babel routing protocol and obsoletes RFC 6126 and RFC 7557.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8966"/>
          <seriesInfo name="DOI" value="10.17487/RFC8966"/>
        </reference>
      </references>
      <references pn="section-8.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="RFC0826" target="https://www.rfc-editor.org/info/rfc826" quoteTitle="true" derivedAnchor="RFC0826">
          <front>
            <title>An Ethernet Address Resolution Protocol: Or Converting Network Protocol Addresses to 48.bit Ethernet Address for Transmission on Ethernet Hardware</title>
            <author initials="D." surname="Plummer" fullname="D. Plummer">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="1982" month="November"/>
            <abstract>
              <t indent="0">The purpose of this RFC is to present a method of Converting Protocol Addresses (e.g., IP addresses) to Local Network Addresses (e.g., Ethernet addresses).  This is an issue of general concern in the ARPA Internet Community at this time.  The method proposed here is presented for your consideration and comment.  This is not the specification of an Internet Standard.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="37"/>
          <seriesInfo name="RFC" value="826"/>
          <seriesInfo name="DOI" value="10.17487/RFC0826"/>
        </reference>
        <reference anchor="RFC1191" target="https://www.rfc-editor.org/info/rfc1191" quoteTitle="true" derivedAnchor="RFC1191">
          <front>
            <title>Path MTU discovery</title>
            <author initials="J.C." surname="Mogul" fullname="J.C. Mogul">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="S.E." surname="Deering" fullname="S.E. Deering">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="1990" month="November"/>
            <abstract>
              <t indent="0">This memo describes a technique for dynamically discovering the maximum transmission unit (MTU) of an arbitrary internet path.  It specifies a small change to the way routers generate one type of ICMP message.  For a path that passes through a router that has not been so changed, this technique might not discover the correct Path MTU, but it will always choose a Path MTU as accurate as, and in many cases more accurate than, the Path MTU that would be chosen by current practice.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="1191"/>
          <seriesInfo name="DOI" value="10.17487/RFC1191"/>
        </reference>
        <reference anchor="RFC4821" target="https://www.rfc-editor.org/info/rfc4821" quoteTitle="true" derivedAnchor="RFC4821">
          <front>
            <title>Packetization Layer Path MTU Discovery</title>
            <author initials="M." surname="Mathis" fullname="M. Mathis">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="J." surname="Heffner" fullname="J. Heffner">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2007" month="March"/>
            <abstract>
              <t indent="0">This document describes a robust method for Path MTU Discovery (PMTUD) that relies on TCP or some other Packetization Layer to probe an Internet path with progressively larger packets.  This method is described as an extension to RFC 1191 and RFC 1981, which specify ICMP-based Path MTU Discovery for IP versions 4 and 6, respectively.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4821"/>
          <seriesInfo name="DOI" value="10.17487/RFC4821"/>
        </reference>
        <reference anchor="RFC4861" target="https://www.rfc-editor.org/info/rfc4861" quoteTitle="true" derivedAnchor="RFC4861">
          <front>
            <title>Neighbor Discovery for IP version 6 (IPv6)</title>
            <author initials="T." surname="Narten" fullname="T. Narten">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="E." surname="Nordmark" fullname="E. Nordmark">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="W." surname="Simpson" fullname="W. Simpson">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="H." surname="Soliman" fullname="H. Soliman">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2007" month="September"/>
            <abstract>
              <t indent="0">This document specifies the Neighbor Discovery protocol for IP Version 6.  IPv6 nodes on the same link use Neighbor Discovery to discover each other's presence, to determine each other's link-layer addresses, to find routers, and to maintain reachability information about the paths to active neighbors.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4861"/>
          <seriesInfo name="DOI" value="10.17487/RFC4861"/>
        </reference>
        <reference anchor="RFC5549" target="https://www.rfc-editor.org/info/rfc5549" quoteTitle="true" derivedAnchor="RFC5549">
          <front>
            <title>Advertising IPv4 Network Layer Reachability Information with an IPv6 Next Hop</title>
            <author initials="F." surname="Le Faucheur" fullname="F. Le Faucheur">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="E." surname="Rosen" fullname="E. Rosen">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2009" month="May"/>
            <abstract>
              <t indent="0">Multiprotocol BGP (MP-BGP) specifies that the set of network-layer protocols to which the address carried in the Next Hop field may belong is determined by the Address Family Identifier (AFI) and the Subsequent Address Family Identifier (SAFI).  The current AFI/SAFI definitions for the IPv4 address family only have provisions for advertising a Next Hop address that belongs to the IPv4 protocol when advertising IPv4 Network Layer Reachability Information (NLRI) or VPN-IPv4 NLRI.  This document specifies the extensions necessary to allow advertising IPv4 NLRI or VPN-IPv4 NLRI with a Next Hop address that belongs to the IPv6 protocol.  This comprises an extension of the AFI/SAFI definitions to allow the address of the Next Hop for IPv4 NLRI or VPN-IPv4 NLRI to also belong to the IPv6 protocol, the encoding of the Next Hop in order to determine which of the protocols the address actually belongs to, and a new BGP Capability allowing MP-BGP Peers to dynamically discover whether they can exchange IPv4 NLRI and VPN-IPv4 NLRI with an IPv6 Next Hop.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5549"/>
          <seriesInfo name="DOI" value="10.17487/RFC5549"/>
        </reference>
        <reference anchor="RFC7404" target="https://www.rfc-editor.org/info/rfc7404" quoteTitle="true" derivedAnchor="RFC7404">
          <front>
            <title>Using Only Link-Local Addressing inside an IPv6 Network</title>
            <author initials="M." surname="Behringer" fullname="M. Behringer">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="E." surname="Vyncke" fullname="E. Vyncke">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2014" month="November"/>
            <abstract>
              <t indent="0">In an IPv6 network, it is possible to use only link-local addresses on infrastructure links between routers.  This document discusses the advantages and disadvantages of this approach to facilitate the decision process for a given network.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7404"/>
          <seriesInfo name="DOI" value="10.17487/RFC7404"/>
        </reference>
        <reference anchor="RFC7600" target="https://www.rfc-editor.org/info/rfc7600" quoteTitle="true" derivedAnchor="RFC7600">
          <front>
            <title>IPv4 Residual Deployment via IPv6 - A Stateless Solution (4rd)</title>
            <author initials="R." surname="Despres" fullname="R. Despres">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="S." surname="Jiang" fullname="S. Jiang" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="R." surname="Penno" fullname="R. Penno">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="Y." surname="Lee" fullname="Y. Lee">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="G." surname="Chen" fullname="G. Chen">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="M." surname="Chen" fullname="M. Chen">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2015" month="July"/>
            <abstract>
              <t indent="0">This document specifies a stateless solution for service providers to progressively deploy IPv6-only network domains while still offering IPv4 service to customers.  The solution's distinctive properties are that TCP/UDP IPv4 packets are valid TCP/UDP IPv6 packets during domain traversal and that IPv4 fragmentation rules are fully preserved end to end.  Each customer can be assigned one public IPv4 address, several public IPv4 addresses, or a shared address with a restricted port set.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7600"/>
          <seriesInfo name="DOI" value="10.17487/RFC7600"/>
        </reference>
      </references>
    </references>
    <section numbered="false" toc="include" removeInRFC="false" pn="section-appendix.a">
      <name slugifiedName="name-acknowledgments">Acknowledgments</name>
      <t indent="0" pn="section-appendix.a-1">This protocol extension was originally designed, described, and
implemented in collaboration with <contact fullname="Theophile Bastian"/>.  <contact fullname="Margaret Cullen"/>
pointed out the issues with ICMP and helped coin the phrase "v4-via-v6".
The author is also indebted to <contact fullname="Donald Eastlake"/>, <contact fullname="Toke Høiland-Jørgensen"/>,
<contact fullname="David Schinazi"/>, and <contact fullname="Donald Sharp"/>.</t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.b">
      <name slugifiedName="name-authors-address">Author's Address</name>
      <author fullname="Juliusz Chroboczek" initials="J." surname="Chroboczek">
        <organization showOnFrontPage="true">IRIF, University of Paris</organization>
        <address>
          <postal>
            <street>Case 7014</street>
            <city>Paris Cedex 13</city>
            <code>75205</code>
            <country>France</country>
          </postal>
          <email>jch@irif.fr</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
