<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" category="std" consensus="true" docName="draft-ietf-homenet-babel-profile-07" indexInclude="true" ipr="trust200902" number="9080" prepTime="2021-08-26T15:48:15" 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-homenet-babel-profile-07" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc9080" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="Homenet Babel Profile">Homenet Profile of the Babel Routing Protocol</title>
    <seriesInfo name="RFC" value="9080" stream="IETF"/>
    <author fullname="Juliusz Chroboczek" initials="J." surname="Chroboczek">
      <organization showOnFrontPage="true">IRIF, University of Paris-Diderot</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="08" year="2021"/>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">This document defines the exact subset of the Babel routing protocol
and its extensions that is required by an implementation of the Homenet
protocol suite, as well as the interactions between the Home Networking
Control Protocol (HNCP) and Babel.</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 is an Internet Standards Track document.
        </t>
        <t indent="0" pn="section-boilerplate.1-2">
            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).  Further
            information on Internet Standards is available in 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/rfc9080" 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) 2021 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 Simplified BSD License text as described in
            Section 4.e of the Trust Legal Provisions and are provided without
            warranty as described in the Simplified 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-requirements-language">Requirements Language</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.2">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.2.1"><xref derivedContent="1.2" format="counter" sectionFormat="of" target="section-1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-background">Background</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-the-homenet-profile-of-babe">The Homenet Profile of Babel</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" 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-requirements">Requirements</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-optional-features">Optional Features</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-interactions-between-hncp-a">Interactions between HNCP and Babel</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.3.2">
              <li pn="section-toc.1-1.3.2.1">
                <t indent="0" pn="section-toc.1-1.3.2.1.1"><xref derivedContent="3.1" format="counter" sectionFormat="of" target="section-3.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-requirements-2">Requirements</xref></t>
              </li>
              <li pn="section-toc.1-1.3.2.2">
                <t indent="0" pn="section-toc.1-1.3.2.2.1"><xref derivedContent="3.2" format="counter" sectionFormat="of" target="section-3.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-optional-features-2">Optional Features</xref></t>
              </li>
            </ul>
          </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-security-considerations">Security Considerations</xref></t>
          </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-iana-considerations">IANA Considerations</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-references">References</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.6.2">
              <li pn="section-toc.1-1.6.2.1">
                <t indent="0" pn="section-toc.1-1.6.2.1.1"><xref derivedContent="6.1" format="counter" sectionFormat="of" target="section-6.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.2">
                <t indent="0" pn="section-toc.1-1.6.2.2.1"><xref derivedContent="6.2" format="counter" sectionFormat="of" target="section-6.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.7">
            <t indent="0" pn="section-toc.1-1.7.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.8">
            <t indent="0" pn="section-toc.1-1.8.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 core of the Homenet protocol suite consists of the Home Networking
Control Protocol (HNCP) <xref target="RFC7788" format="default" sectionFormat="of" derivedContent="RFC7788"/>, a protocol used for
flooding configuration information and assigning prefixes to links,
combined with the Babel routing protocol <xref target="RFC8966" format="default" sectionFormat="of" derivedContent="RFC8966"/>.
Babel is an extensible, flexible, and modular protocol: minimal
implementations of Babel have been demonstrated that consist of a few
hundred lines of code, while the "large" implementation includes support
for a number of extensions and consists of over ten thousand lines of
C code.</t>
      <t indent="0" pn="section-1-2">This document consists of two parts.  The first specifies the exact
subset of the Babel protocol and its extensions that is required by an
implementation of the Homenet protocol suite.  The second specifies how
HNCP interacts with Babel.</t>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-1.1">
        <name slugifiedName="name-requirements-language">Requirements Language</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 numbered="true" toc="include" removeInRFC="false" pn="section-1.2">
        <name slugifiedName="name-background">Background</name>
        <t indent="0" pn="section-1.2-1">The Babel routing protocol and its extensions are defined in a number
of documents:
</t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-1.2-2">
          <li pn="section-1.2-2.1">RFC 8966 <xref target="RFC8966" format="default" sectionFormat="of" derivedContent="RFC8966"/> defines the Babel routing
protocol.  It allows Babel's control data to be carried either over
link-local IPv6 or over IPv4 and in either case allows announcing both
IPv4 and IPv6 routes.  It leaves link cost estimation, metric computation,
and route selection to the implementation.  Distinct implementations of
Babel <xref target="RFC8966" format="default" sectionFormat="of" derivedContent="RFC8966"/> will interoperate, in the sense that they will
maintain a set of loop-free forwarding paths.  However, if they implement
conflicting options, they might not be able to exchange a full set of
routes. In the worst case, an implementation that only implements the IPv6
subset of the protocol and an implementation that only implements the IPv4
subset of the protocol will not exchange any routes.  In addition, if
implementations use conflicting route selection policies, persistent
oscillations might occur.</li>
          <li pn="section-1.2-2.2">The informative <xref target="RFC8966" section="A" sectionFormat="of" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8966#appendix-A" derivedContent="RFC8966"/> suggests a simple and
easy-to-implement algorithm for cost and metric computation that has been
found to work satisfactorily in a wide range of topologies.</li>
          <li pn="section-1.2-2.3">While RFC 8966 does not provide an algorithm for route selection,
its Section <xref target="RFC8966" section="3.6" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8966#section-3.6" derivedContent="RFC8966"/>  
suggests selecting the route with the smallest metric
with some hysteresis applied.  An algorithm that has been found to work
well in practice is described in Section III.E of
<xref target="DELAY-BASED" format="default" sectionFormat="of" derivedContent="DELAY-BASED"/>.</li>
          <li pn="section-1.2-2.4">Four documents define optional extensions to Babel:
authentication based on Hashed Message Authentication Code (HMAC) <xref target="RFC8967" format="default" sectionFormat="of" derivedContent="RFC8967"/>, 
source-specific routing <xref target="RFC9079" format="default" sectionFormat="of" derivedContent="RFC9079"/>, 
delay-based routing <xref target="I-D.ietf-babel-rtt-extension" format="default" sectionFormat="of" derivedContent="BABEL-RTT"/>, and 
ToS-specific (Type of Service) routing <xref target="I-D.chouasne-babel-tos-specific" format="default" sectionFormat="of" derivedContent="ToS-SPECIFIC"/>.  
All of these extensions interoperate with
the core protocol as well as with each other.</li>
        </ul>
      </section>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-2">
      <name slugifiedName="name-the-homenet-profile-of-babe">The Homenet Profile of Babel</name>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-2.1">
        <name slugifiedName="name-requirements">Requirements</name>
        <ol type="REQ%d:" group="req" indent="8" start="1" spacing="normal" pn="section-2.1-1">
        <li anchor="req1" pn="section-2.1-1.1" derivedCounter="REQ1:">
            <t indent="0" pn="section-2.1-1.1.1">A Homenet implementation of Babel <bcp14>MUST</bcp14> encapsulate Babel control
traffic in IPv6 packets sent to the IANA-assigned port 6696 and either the
IANA-assigned multicast group ff02::1:6 or to a link-local unicast
address.</t>
            <t indent="3" pn="section-2.1-1.1.2">Rationale: Since Babel is able to carry both
IPv4 and IPv6 routes over either IPv4 or IPv6, choosing the protocol used
for carrying control traffic is a matter of preference.  Since IPv6 has
some features that make implementations somewhat simpler and more reliable
(notably properly scoped and reasonably stable link-local addresses), we
require carrying control data over IPv6.</t>
          </li>
          <li anchor="req2" pn="section-2.1-1.2" derivedCounter="REQ2:">
            <t indent="0" pn="section-2.1-1.2.1">A Homenet implementation of Babel <bcp14>MUST</bcp14> implement the IPv6 subset
of the protocol defined in the body of RFC 8966.</t>
            <t indent="3" pn="section-2.1-1.2.2">Rationale: Support for IPv6 routing is an
essential component of the Homenet architecture.</t>
          </li>
          <li anchor="req3" pn="section-2.1-1.3" derivedCounter="REQ3:">
            <t indent="0" pn="section-2.1-1.3.1">A Homenet implementation of Babel <bcp14>SHOULD</bcp14> implement the IPv4
subset of the protocol defined in the body of RFC 8966.  Use of other
techniques for acquiring IPv4 connectivity (such as multiple layers of
NAT) is strongly discouraged.</t>
            <t indent="3" pn="section-2.1-1.3.2">Rationale: Support for IPv4 will likely remain
necessary for years to come, and even in pure IPv6 deployments, including
code for supporting IPv4 has very little cost.  Since HNCP makes it easy
to assign distinct IPv4 prefixes to the links in a network, it is not
necessary to resort to multiple layers of NAT, with all of its
problems.</t>
          </li>
          <li anchor="req4" pn="section-2.1-1.4" derivedCounter="REQ4:">
            <t indent="0" pn="section-2.1-1.4.1">A Homenet implementation of Babel <bcp14>MUST</bcp14> implement source-specific
routing for IPv6, as defined in RFC 9079 
<xref target="RFC9079" format="default" sectionFormat="of" derivedContent="RFC9079"/>.</t>
            <t indent="3" pn="section-2.1-1.4.2">Rationale: Source-specific routing is an
essential component of the Homenet architecture.  Source-specific routing
for IPv4 is not required, since HNCP arranges things so that a single
nonspecific IPv4 default route is announced (<xref target="RFC7788" section="6.5" sectionFormat="of" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7788#section-6.5" derivedContent="RFC7788"/>).</t>
          </li>
          <li anchor="req5" pn="section-2.1-1.5" derivedCounter="REQ5:">
            <t indent="0" pn="section-2.1-1.5.1">A Homenet implementation of Babel must use metrics that are
of a similar magnitude to the values suggested in 
<xref target="RFC8966" section="A" sectionFormat="of" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8966#appendix-A" derivedContent="RFC8966"/>.
In particular, it <bcp14>SHOULD</bcp14> assign costs that are no less
than 256 to wireless links and <bcp14>SHOULD</bcp14> assign costs between 32 and 196 to
lossless wired links.</t>
            <t indent="3" pn="section-2.1-1.5.2">Rationale: If two implementations of Babel
choose very different values for link costs, combining routers from
different vendors will cause suboptimal routing.</t>
          </li>
          <li anchor="req6" pn="section-2.1-1.6" derivedCounter="REQ6:">
            <t indent="0" pn="section-2.1-1.6.1">A Homenet implementation of Babel <bcp14>SHOULD</bcp14> distinguish between
wired and wireless links; if it is unable to determine whether a link is
wired or wireless, it <bcp14>SHOULD</bcp14> make the worst-case hypothesis that the link
is wireless.  It <bcp14>SHOULD</bcp14> dynamically probe the quality of wireless links
and derive a suitable metric from its quality estimation.
<xref target="RFC8966" section="A" sectionFormat="of" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8966#appendix-A" derivedContent="RFC8966"/> 
gives an example of a suitable algorithm.</t>
            <t indent="3" pn="section-2.1-1.6.2">Rationale: Support for wireless transit links is
a distinguishing feature of Homenet, and one that is requested by our
users.  In the absence of dynamically computed metrics, the routing
protocol attempts to minimise the number of links crossed by a route and
therefore prefers long, lossy links to shorter, lossless ones.  In
wireless networks, "hop-count routing is worst-path routing".</t>
            <t indent="3" pn="section-2.1-1.6.3">While it would be desirable to perform link-quality probing on some
wired link technologies, notably power-line networks, these kinds of links
tend to be difficult or impossible to detect automatically, and we are not
aware of any published link-quality algorithms for them.  Hence, we do not
require link-quality estimation for wired links of any kind.</t>
          </li>
        </ol>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-2.2">
        <name slugifiedName="name-optional-features">Optional Features</name>
        <ol type="OPT%d:" group="opt" indent="8" start="1" spacing="normal" pn="section-2.2-1">
        <li anchor="opt1" pn="section-2.2-1.1" derivedCounter="OPT1:">
            <t indent="0" pn="section-2.2-1.1.1">A Homenet implementation of Babel <bcp14>MAY</bcp14> perform route selection by
applying hysteresis to route metrics, as suggested in 
<xref target="RFC8966" section="3.6" sectionFormat="of" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8966#section-3.6" derivedContent="RFC8966"/>
and described in detail in Section III.E of <xref target="DELAY-BASED" format="default" sectionFormat="of" derivedContent="DELAY-BASED"/>.  
However, hysteresis is not required, and the
implementation may simply pick the route with the smallest metric.</t>
            <t indent="3" pn="section-2.2-1.1.2">Rationale: Hysteresis is only useful in
congested and highly dynamic networks.  In a typical home network, which is stable
and uncongested, the feedback loop that hysteresis compensates for does
not occur.</t>
          </li>
          <li anchor="opt2" pn="section-2.2-1.2" derivedCounter="OPT2:">
            <t indent="0" pn="section-2.2-1.2.1">A Homenet implementation of Babel may include support for other
extensions to the protocol, as long as they are known to interoperate with
both the core protocol and source-specific routing.</t>
            <t indent="3" pn="section-2.2-1.2.2">Rationale: A number of extensions to the Babel
routing protocol have been defined over the years; however, they are
useful in fairly specific situations, such as routing over global-scale
overlay networks <xref target="I-D.ietf-babel-rtt-extension" format="default" sectionFormat="of" derivedContent="BABEL-RTT"/> or multi-hop wireless networks
with multiple radio frequencies <xref target="I-D.chroboczek-babel-diversity-routing" format="default" sectionFormat="of" derivedContent="BABEL-Z"/>.  Hence, with the
exception of source-specific routing, no extensions are required for
Homenet.</t>
          </li>
        </ol>
      </section>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-3">
      <name slugifiedName="name-interactions-between-hncp-a">Interactions between HNCP and Babel</name>
      <t indent="0" pn="section-3-1">The Homenet architecture cleanly separates configuration, which is done
by HNCP, from routing, which is done by Babel.  While the coupling between
the two protocols is deliberately kept to a minimum, some interactions are
unavoidable.</t>
      <t indent="0" pn="section-3-2">All the interactions between HNCP and Babel consist of HNCP causing
Babel to perform an announcement on its behalf (under no circumstances
does Babel cause HNCP to perform an action).  How this is realised is an
implementation detail that is outside the scope of this document; while it
could conceivably be done using a private communication channel between
HNCP and Babel, in existing implementations, HNCP installs a route in the
operating system's kernel that is later picked up by Babel using the
existing redistribution mechanisms.</t>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-3.1">
        <name slugifiedName="name-requirements-2">Requirements</name>
        <ol type="REQ%d:" group="req" indent="8" start="7" spacing="normal" pn="section-3.1-1">
        <li anchor="req7" pn="section-3.1-1.1" derivedCounter="REQ7:">
            <t indent="0" pn="section-3.1-1.1.1">If an HNCP node receives a DHCPv6 prefix delegation for prefix
P and publishes an External-Connection TLV containing a Delegated-Prefix
TLV with prefix P and no Prefix-Policy TLV, then it <bcp14>MUST</bcp14> announce
a source-specific default route with source prefix P over Babel.</t>
            <t indent="3" pn="section-3.1-1.1.2">Rationale: Source-specific routes are the main
tool that Homenet uses to enable optimal routing in the presence of
multiple IPv6 prefixes.  External connections with nontrivial prefix
policies are explicitly excluded from this requirement, since their exact
behaviour is application specific.</t>
          </li>
          <li anchor="req8" pn="section-3.1-1.2" derivedCounter="REQ8:">
            <t indent="0" pn="section-3.1-1.2.1">If an HNCP node receives a DHCPv4 lease with an IPv4 address and
wins the election for NAT gateway, then it <bcp14>MUST</bcp14> act as a NAT gateway and
<bcp14>MUST</bcp14> announce a (nonspecific) IPv4 default route over Babel.</t>
            <t indent="3" pn="section-3.1-1.2.2">Rationale: The Homenet stack does not use
source-specific routing for IPv4; instead, HNCP elects a single NAT
gateway and publishes a single default route towards that gateway
(<xref target="RFC7788" section="6.5" sectionFormat="comma" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7788#section-6.5" derivedContent="RFC7788"/>).</t>
          </li>
          <li anchor="req9" pn="section-3.1-1.3" derivedCounter="REQ9:">
            <t indent="0" pn="section-3.1-1.3.1">If an HNCP node assigns a prefix P to an attached link and
announces P in an Assigned-Prefix TLV, then it <bcp14>MUST</bcp14> announce a route towards
P over Babel.</t>
            <t indent="3" pn="section-3.1-1.3.2">Rationale: Prefixes assigned to links must be
routable within the Homenet.</t>
          </li>
        </ol>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-3.2">
        <name slugifiedName="name-optional-features-2">Optional Features</name>
        <ol type="OPT%d:" group="opt" indent="8" start="3" spacing="normal" pn="section-3.2-1">
        <li anchor="opt3" pn="section-3.2-1.1" derivedCounter="OPT3:">
            <t indent="0" pn="section-3.2-1.1.1">An HNCP node that receives a DHCPv6 prefix delegation <bcp14>MAY</bcp14>
announce a nonspecific IPv6 default route over Babel in addition to the
source-specific default route mandated by requirement <xref target="req7" format="none" sectionFormat="of" derivedContent="">REQ7</xref>.</t>
            <t indent="3" pn="section-3.2-1.1.2">Rationale: Since the source-specific default
route is more specific than the nonspecific default route, the former
will override the latter if all nodes implement source-specific routing.
Announcing an additional nonspecific route is allowed, since doing that
causes no harm and might simplify operations in some circumstances,
e.g., when interoperating with a routing protocol that does not
support source-specific routing.</t>
          </li>
          <li anchor="opt4" pn="section-3.2-1.2" derivedCounter="OPT4:">
            <t indent="0" pn="section-3.2-1.2.1">An HNCP node that receives a DHCPv4 lease with an IPv4 address and
wins the election for NAT gateway <bcp14>SHOULD NOT</bcp14> announce a source-specific
IPv4 default route.</t>
            <t indent="3" pn="section-3.2-1.2.2">Rationale: Homenet does not require support for IPv4
source-specific routing.  Announcing IPv4 source-specific routes will not
cause routing pathologies (blackholes or routing loops), but it might
cause packets sourced in different parts of the Homenet to follow
different paths, with all the confusion that this entails.</t>
          </li>
        </ol>
      </section>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-4">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-4-1">Both HNCP and Babel carry their control data in IPv6 packets with
a link-local source address, and implementations are required to drop
packets sent from a global address.  Hence, they are only susceptible to
attacks from a directly connected link on which the HNCP and Babel
implementations are listening.</t>
      <t indent="0" pn="section-4-2">The security of a Homenet network relies on having a set of "Internal",
"Ad Hoc", and "Hybrid" interfaces (<xref target="RFC7788" section="5.1" sectionFormat="of" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7788#section-5.1" derivedContent="RFC7788"/>)
that are assumed to be connected to links that are secured at a lower
layer.  HNCP and Babel packets are only accepted when they originate on
these trusted links.  "External" and "Guest" interfaces are connected to
links that are not trusted, and any HNCP or Babel packets that are
received on such interfaces are ignored.  ("Leaf" interfaces are a special
case since they are connected to trusted links, but HNCP and Babel traffic
received on such interfaces is ignored.)  This implies that the security
of a Homenet network depends on the reliability of the border discovery
procedure described in <xref target="RFC7788" section="5.3" sectionFormat="of" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7788#section-5.3" derivedContent="RFC7788"/>.</t>
      <t indent="0" pn="section-4-3">If untrusted links are used for transit, which is <bcp14>NOT RECOMMENDED</bcp14>,
then any HNCP and Babel traffic that is carried over such links <bcp14>MUST</bcp14> be
secured using an upper-layer security protocol.  While both HNCP and Babel
support cryptographic authentication, at the time of writing, no protocol
for autonomous configuration of HNCP and Babel security has been defined.</t>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-5">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <t indent="0" pn="section-5-1">This document has no IANA actions.</t>
    </section>
  </middle>
  <back>
    <displayreference target="I-D.ietf-babel-rtt-extension" to="BABEL-RTT"/>
    <displayreference target="I-D.chouasne-babel-tos-specific" to="ToS-SPECIFIC"/>
    <displayreference target="I-D.chroboczek-babel-diversity-routing" to="BABEL-Z"/>
    <references pn="section-6">
      <name slugifiedName="name-references">References</name>
      <references pn="section-6.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <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="RFC7788" target="https://www.rfc-editor.org/info/rfc7788" quoteTitle="true" derivedAnchor="RFC7788">
          <front>
            <title>Home Networking Control Protocol</title>
            <author initials="M." surname="Stenberg" fullname="M. Stenberg">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="S." surname="Barth" fullname="S. Barth">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="P." surname="Pfister" fullname="P. Pfister">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2016" month="April"/>
            <abstract>
              <t indent="0">This document describes the Home Networking Control Protocol (HNCP), an extensible configuration protocol, and a set of requirements for home network devices.  HNCP is described as a profile of and extension to the Distributed Node Consensus Protocol (DNCP).  HNCP enables discovery of network borders, automated configuration of addresses, name resolution, service discovery, and the use of any routing protocol that supports routing based on both the source and destination address.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7788"/>
          <seriesInfo name="DOI" value="10.17487/RFC7788"/>
        </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>
        <reference anchor="RFC9079" quoteTitle="true" target="https://www.rfc-editor.org/rfc/rfc9079" derivedAnchor="RFC9079">
          <front>
            <title>Source-Specific Routing in the Babel Routing Protocol</title>
            <author initials="M" surname="Boutier" fullname="Matthieu Boutier">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="J" surname="Chroboczek" fullname="Juliusz Chroboczek">
              <organization showOnFrontPage="true"/>
            </author>
            <date month="August" year="2021"/>
          </front>
          <seriesInfo name="RFC" value="9079"/>
          <seriesInfo name="DOI" value="10.17487/RFC9079"/>
        </reference>
      </references>
      <references pn="section-6.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="I-D.ietf-babel-rtt-extension" quoteTitle="true" target="https://datatracker.ietf.org/doc/html/draft-ietf-babel-rtt-extension-00" derivedAnchor="BABEL-RTT">
          <front>
            <title>Delay-based Metric Extension for the Babel Routing Protocol</title>
            <author fullname="Baptiste Jonglez">
              <organization showOnFrontPage="true">ENS Lyon</organization>
            </author>
            <author fullname="Juliusz Chroboczek">
              <organization showOnFrontPage="true">IRIF, University of Paris-Diderot</organization>
            </author>
            <date month="April" day="26" year="2019"/>
            <abstract>
              <t indent="0">   This document defines an extension to the Babel routing protocol that
   uses symmetric delay in metric computation and therefore makes it
   possible to prefer lower latency links to higher latency ones.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-babel-rtt-extension-00"/>
          <format type="TXT" target="https://www.ietf.org/archive/id/draft-ietf-babel-rtt-extension-00.txt"/>
          <refcontent>Work in Progress</refcontent>
        </reference>
        <reference anchor="I-D.chroboczek-babel-diversity-routing" quoteTitle="true" target="https://datatracker.ietf.org/doc/html/draft-chroboczek-babel-diversity-routing-01" derivedAnchor="BABEL-Z">
          <front>
            <title>Diversity Routing for the Babel Routing Protocol</title>
            <author fullname="Juliusz Chroboczek">
	 </author>
            <date month="February" day="15" year="2016"/>
            <abstract>
              <t indent="0">   This document defines an extension to the Babel routing protocol that
   allows routing updates to carry radio frequency information, and
   therefore makes it possible to use radio diversity information for
   route selection.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-chroboczek-babel-diversity-routing-01"/>
          <format type="TXT" target="https://www.ietf.org/archive/id/draft-chroboczek-babel-diversity-routing-01.txt"/>
          <refcontent>Work in Progress</refcontent>
        </reference>
        <reference anchor="DELAY-BASED" target="http://arxiv.org/abs/1403.3488" quoteTitle="true" derivedAnchor="DELAY-BASED">
          <front>
            <title>A delay-based routing metric</title>
            <author fullname="Baptiste Jonglez" initials="B." surname="Jonglez"/>
            <author fullname="Matthieu Boutier" initials="M." surname="Boutier"/>
            <author fullname="Juliusz Chroboczek" initials="J." surname="Chroboczek"/>
            <date month="March" year="2014"/>
          </front>
        </reference>
        <reference anchor="RFC8967" target="https://www.rfc-editor.org/info/rfc8967" quoteTitle="true" derivedAnchor="RFC8967">
          <front>
            <title>MAC Authentication for the Babel Routing Protocol</title>
            <author initials="C." surname="Dô" fullname="C. Dô">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="W." surname="Kolodziejak" fullname="W. Kolodziejak">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="J." surname="Chroboczek" fullname="J. Chroboczek">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2021" month="January"/>
            <abstract>
              <t indent="0">This document describes a cryptographic authentication mechanism for the Babel routing protocol that has provisions for replay avoidance.  This document obsoletes RFC 7298.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8967"/>
          <seriesInfo name="DOI" value="10.17487/RFC8967"/>
        </reference>
        <reference anchor="I-D.chouasne-babel-tos-specific" quoteTitle="true" target="https://datatracker.ietf.org/doc/html/draft-chouasne-babel-tos-specific-00" derivedAnchor="ToS-SPECIFIC">
          <front>
            <title>TOS-Specific Routing in Babel</title>
            <author fullname="Gwendoline Chouasne">
              <organization showOnFrontPage="true">PPS, University of Paris-Diderot</organization>
            </author>
            <author fullname="Juliusz Chroboczek">
              <organization showOnFrontPage="true">PPS, University of Paris-Diderot</organization>
            </author>
            <date month="July" day="3" year="2017"/>
            <abstract>
              <t indent="0">   This document describes an extension to the Babel routing protocol to
   support TOS-specific routing.  This version is using mandatory sub-
   TLVs.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-chouasne-babel-tos-specific-00"/>
          <format type="TXT" target="https://www.ietf.org/archive/id/draft-chouasne-babel-tos-specific-00.txt"/>
          <refcontent>Work in Progress</refcontent>
        </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">A number of people have helped with defining the requirements listed in
this document.  I am especially indebted to <contact fullname="Barbara Stark"/> and 
<contact fullname="Markus Stenberg"/>.</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-Diderot</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>
