Internet-Draft ND YANG model December 2026
Zhang, et al. Expires 4 June 2027 [Page]
Workgroup:
6MAN
Published:
Intended Status:
Standards Track
Expires:
Authors:
F. Zhang
China Telecom
Y. Zhu
China Telecom
B. Wu
Huawei
J. Hu
China Telecom

A YANG Data Model for IPv6 Neighbor Discovery

Abstract

This document defines a YANG data model to manage IPv6 Neighbor Discovery (ND) and related functions, including IPv6 address resolution, redirect function, proxy Neighbor Advertisement, Neighbor Unreachability Detection (NUD), Duplicate Address Detection (DAD), and Enhanced Duplicate Address Detection.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 4 June 2027.

▲

Table of Contents

1. Introduction

This document defines a YANG [RFC7950] module "ietf-ipv6-nd" to manage IPv6 Neighbor Discovery (ND) and related functions.

Basic neighbor management functionality is supported by the "ietf-ip" YANG module [RFC8344], and [I-D.ietf-intarea-arp-yang-model] extends the basic ARP YANG functionality to cover optional ARP features and related statistics, which applies only to IPv4. Thus, an extension for IPv6 is required to maintain the IPv6 Neighbor Cache entries.

[RFC4861] specifies the Neighbor Discovery protocol for IPv6, while [RFC4862] specifies IPv6 Stateless Address Autoconfiguration (SLAAC). This document covers IPv6 address resolution, redirect function, proxy Neighbor Advertisement, and Neighbor Unreachability Detection (NUD), as defined in [RFC4861], as well as Duplicate Address Detection (DAD), as defined in [RFC4862], and Enhanced DAD, as defined in [RFC7527].

Other functions defined in these RFCs are covered by existing YANG data models. Specifically, Router and Prefix Discovery [RFC4861] are covered by submodule "ietf-ipv6-router-advertisements" [RFC8349], and static Neighbor Cache entries and Stateless Address Autoconfiguration [RFC4862] are covered by module "ietf-ip" [RFC8344].

Neighbor Discovery Optimization for 6LoWPANs [RFC6775] and other related extensions, such as those specified in [RFC8505], [RFC8928], and [RFC9010], are out of scope of this document.

Appendix B summarizes the functions and parameters related to the IPv6 ND protocol and identifies whether they are covered by existing IETF YANG modules or defined in this document.

1.1. Terminology

The following terms are defined in [RFC7950]:

  • augment
  • container
  • data model
  • data node
  • leaf
  • list
  • module
  • schema tree

The following terms are defined in [RFC4861]:

  • Neighbor Discovery
  • Neighbor Advertisement
  • proxy Neighbor Advertisement
  • Neighbor Unreachability Detection

The following terms are defined in [RFC4862]:

  • Duplicate Address Detection
  • Stateless Address Autoconfiguration

The following term is defined in [RFC7527]:

  • Enhanced Duplicate Address Detection

1.2. Tree Diagrams

Tree diagrams used in this document follow the notation defined in [RFC8340].

2. Design of the Data Model

The YANG module for IPv6 ND augments the "ietf-ip" [RFC8344] to provide per-interface manage of IPv6 address resolution and redirect functions based on the IPv6 ND protocol, as well as other related functions, including proxy Neighbor Advertisement, NUD, DAD, and Enhanced DAD.

Note that the features related to ICMP Router and Prefix Discovery are out of scope of this model, since they have already been defined in the submodule "ietf-ipv6-router-advertisements" [RFC8349]. Static Neighbor Cache entries and SLAAC [RFC4862] are also out of scope, as they are covered by "ietf-ip" [RFC8344].

2.1. IPv6 Address Resolution and Redirect Function

The YANG module augments the "/if:interfaces/if:interface/ip:ipv6" path defined in the "ietf-ip" module [RFC8344] for the IPv6 ND protocol [RFC4861].

The "retrans-timer" leaf defines the interval in milliseconds for retransmitting Neighbor Solicitation messages when a node tries to learn the link-layer address of another node, as defined in Section 6.3.2 of [RFC4861]. The default value of the "retrans-timer" leaf is 1,000 milliseconds, as specified by RETRANS_TIMER specified in Section 10. In the <operational> datastore, the "retrans-timer" leaf reports the value currently in use, which may differ from the configured value when a host receives a non-zero Retrans Timer in a Router Advertisement, as specified in Section 6.3.4 of [RFC4861].

The "redirect" leaf enables the sending of Redirect messages. The default behavior of IPv6 Redirects may vary depending on the deployment scenario. [RFC4861] specifies the expected Redirect behavior, while [RFC8504] recommends disabling Redirects by default on routers intended for core networks, but allows them to be enabled by default on routers intended to support hosts on edge networks. Therefore, this module does not specify a default value for the "redirect" leaf, leaving the default behavior to the implementation and deployment requirements.

The "statistics" container defines a collection of per-interface operational statistics for each type of IPv6 ND message. The values of these counters may become discontinuous upon re-initialization of the management system or at other times, as indicated by the "discontinuity-time" leaf in the ietf-interfaces YANG module [RFC8343].

2.2. Neighbor Unreachability Detection

The "reachable-time" leaf defines the time in milliseconds to confirm a neighbor's reachability for NUD, as defined in Section 6.3.2 of [RFC4861]. A neighbor's state changes from REACHABLE to STALE when there is no other reachability confirmation from the neighbor within the "reachable-time". Its default value is 30,000 milliseconds, as specified by REACHABLE_TIME specified in Section 10. In the <operational> datastore, the "reachable-time" leaf reports the value currently in use, which may differ from the configured value when a host receives a non-zero Retrans Timer in a Router Advertisement, as specified in Section 6.3.4 of [RFC4861].

The "retrans-timer" leaf also indicates the interval for retransmitting Neighbor Solicitation messages used by NUD, as defined in Section 7.3.2 of [RFC4861].

2.3. Proxy Neighbor Advertisement

The "proxy-na" leaf augmenting "ietf-ip" [RFC8344] defines the configuration of proxy Neighbor Advertisements [RFC4861], which indicates that a router is willing to accept packets not explicitly addressed to itself. The router answers a valid Neighbor Solicitation when its Target Address is one for which the router provides proxy service on the receiving interface. The Neighbor Advertisement carries that same Target Address. When included, the Target Link-Layer Address option carries the proxy's link-layer address. The router selects the destination and Solicited flag as specified in Section 7.2.4 of [RFC4861] and clears the Override flag in solicited proxy advertisements as required by Section 7.2.8. A router does not provide proxy service unless explicitly configured to do so. Therefore, the "proxy-na" leaf defaults to "false".

The configuration of proxy targets or policies for selecting them are implementation-specific and are out of scope of this model.

2.4. Duplicate Address Detection

The "dup-addr-detect-transmits" leaf, as defined in "ietf-ip" [RFC8344], indicates the number of consecutive Neighbor Solicitation messages sent while performing Duplicate Address Detection (DAD) [RFC4862]. The value of "dup-addr-detect-transmits" can be set to 0 to disable DAD.

The "retrans-timer" leaf also indicates the interval for retransmitting Neighbor Solicitation messages during DAD, as defined in Section 5.1 of [RFC4862].

The "enhanced-dad" container augmenting "ietf-ip" [RFC8344] defines the configuration for Enhanced DAD [RFC7527], which is used to automatically detect the looped-back IPv6 ND messages used in DAD.

The "enable" leaf controls whether Enhanced DAD is enabled and defaults to "false" to avoid activating it without explicit configuration.

The "auto-resolve" leaf enables automated action when a genuine duplicate is detected by Enhanced DAD. Section 5 of [RFC7527] describes a use case in which a trusted router serves untrusted IPv6 host nodes. In such a scenario, automated actions may include logging a system management message, dropping the received ND message, or blocking the node associated with the duplicate NS (DAD) or NA message. The specific actions, including the scope and duration of any blocking and the procedure for restoring service, are implementation-specific and are out of scope of this model. The "auto-resolve" leaf defaults to "false" to prevent automated actions from being taken without explicit configuration.

2.5. Tree Structure

This document defines the YANG module "ietf-ipv6-nd", which has the following structure.


module: ietf-ipv6-nd

  augment /if:interfaces/if:interface/ip:ipv6:
    +--rw nd
       +--rw reachable-time?   uint32
       +--rw retrans-timer?    uint32
       +--rw redirect?         boolean
       +--rw proxy-na?         boolean {proxy-na}?
       +--rw enhanced-dad {enhanced-dad}?
       |  +--rw enable?         boolean
       |  +--rw auto-resolve?   boolean {auto-resolve}?
       +--ro statistics
          +--ro neighbor-solicitation
          |  +--ro in-pkts?                  yang:counter64
          |  +--ro out-pkts?                 yang:counter64
          |  +--ro drop-pkts?                yang:counter64
          |  +--ro in-unicast-pkts?          yang:counter64
          |  +--ro in-multicast-pkts?        yang:counter64
          |  +--ro out-unicast-pkts?         yang:counter64
          |  +--ro out-multicast-pkts?       yang:counter64
          |  +--ro drop-bad-code-pkts?       yang:counter64
          |  +--ro drop-bad-hoplimit-pkts?   yang:counter64
          |  +--ro drop-bad-len-pkts?        yang:counter64
          |  +--ro drop-bad-option-pkts?     yang:counter64
          |  +--ro drop-checksum-err-pkts?   yang:counter64
          |  +--ro drop-fragmented-pkts?     yang:counter64
          |  +--ro out-nud-pkts?             yang:counter64
          +--ro neighbor-advertisement
          |  +--ro in-pkts?                  yang:counter64
          |  +--ro out-pkts?                 yang:counter64
          |  +--ro drop-pkts?                yang:counter64
          |  +--ro in-unicast-pkts?          yang:counter64
          |  +--ro in-multicast-pkts?        yang:counter64
          |  +--ro out-unicast-pkts?         yang:counter64
          |  +--ro out-multicast-pkts?       yang:counter64
          |  +--ro drop-bad-code-pkts?       yang:counter64
          |  +--ro drop-bad-hoplimit-pkts?   yang:counter64
          |  +--ro drop-bad-len-pkts?        yang:counter64
          |  +--ro drop-bad-option-pkts?     yang:counter64
          |  +--ro drop-checksum-err-pkts?   yang:counter64
          |  +--ro drop-fragmented-pkts?     yang:counter64
          |  +--ro in-solicited-pkts?        yang:counter64
          |  +--ro in-unsolicited-pkts?      yang:counter64
          |  +--ro in-override-pkts?         yang:counter64
          |  +--ro in-nonoverride-pkts?      yang:counter64
          |  +--ro out-solicited-pkts?       yang:counter64
          |  +--ro out-unsolicited-pkts?     yang:counter64
          |  +--ro out-override-pkts?        yang:counter64
          |  +--ro out-nonoverride-pkts?     yang:counter64
          +--ro router-solicitation
          |  +--ro in-pkts?                  yang:counter64
          |  +--ro out-pkts?                 yang:counter64
          |  +--ro drop-pkts?                yang:counter64
          |  +--ro in-unicast-pkts?          yang:counter64
          |  +--ro in-multicast-pkts?        yang:counter64
          |  +--ro out-unicast-pkts?         yang:counter64
          |  +--ro out-multicast-pkts?       yang:counter64
          |  +--ro drop-bad-code-pkts?       yang:counter64
          |  +--ro drop-bad-hoplimit-pkts?   yang:counter64
          |  +--ro drop-bad-len-pkts?        yang:counter64
          |  +--ro drop-bad-option-pkts?     yang:counter64
          |  +--ro drop-checksum-err-pkts?   yang:counter64
          |  +--ro drop-fragmented-pkts?     yang:counter64
          +--ro router-advertisement
          |  +--ro in-pkts?                  yang:counter64
          |  +--ro out-pkts?                 yang:counter64
          |  +--ro drop-pkts?                yang:counter64
          |  +--ro in-unicast-pkts?          yang:counter64
          |  +--ro in-multicast-pkts?        yang:counter64
          |  +--ro out-unicast-pkts?         yang:counter64
          |  +--ro out-multicast-pkts?       yang:counter64
          |  +--ro drop-bad-code-pkts?       yang:counter64
          |  +--ro drop-bad-hoplimit-pkts?   yang:counter64
          |  +--ro drop-bad-len-pkts?        yang:counter64
          |  +--ro drop-bad-option-pkts?     yang:counter64
          |  +--ro drop-checksum-err-pkts?   yang:counter64
          |  +--ro drop-fragmented-pkts?     yang:counter64
          +--ro redirect
             +--ro in-pkts?                  yang:counter64
             +--ro out-pkts?                 yang:counter64
             +--ro drop-pkts?                yang:counter64
             +--ro drop-bad-code-pkts?       yang:counter64
             +--ro drop-bad-hoplimit-pkts?   yang:counter64
             +--ro drop-bad-len-pkts?        yang:counter64
             +--ro drop-bad-option-pkts?     yang:counter64
             +--ro drop-checksum-err-pkts?   yang:counter64
             +--ro drop-fragmented-pkts?     yang:counter64
  augment /if:interfaces/if:interface/ip:ipv6/ip:neighbor:
    +--ro age?   uint32

3. IPv6 Neighbor Discovery YANG Module

This module imports modules from Common YANG Data Types [RFC9911], A YANG Data Model for Interface Management [RFC8343], A YANG Data Model for IP Management [RFC8344], and YANG Semantic Versioning[I-D.ietf-netmod-yang-semver].

<CODE BEGINS> file "ietf-ipv6-nd@2026-12-02.yang"


module ietf-ipv6-nd {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-ipv6-nd";
  prefix v6nd;

  import ietf-yang-types {
    prefix yang;
    reference
      "RFC 9911: Common YANG Data Types, Section 3";
  }
  import ietf-interfaces {
    prefix if;
    reference
      "RFC 8343: A YANG Data Model for Interface Management";
  }
  import ietf-ip {
    prefix ip;
    reference
      "RFC 8344: A YANG Data Model for IP Management";
  }
  import ietf-yang-semver {
    prefix "ysv";
    reference
      "RFC XXXX: YANG Semantic Versioning";
  }

  organization
    "IETF 6MAN (IPv6 Maintenance) Working Group";

  contact
    "WG Web:  <https://datatracker.ietf.org/wg/6man/>
     WG List: 6MAN <mailto:ipv6@ietf.org>

     Author:  Fan Zhang
              <zhangf52@chinatelecom.cn>
     Author:  Yongqing Zhu
              <zhuyq8@chinatelecom.cn>
     Author:  Bo Wu
              <lana.wubo@huawei.com>
     Author:  Jiayuan Hu
              <hujy5@chinatelecom.cn>";

  description
    "This YANG module defines a YANG data model to manage
     IPv6 Neighbor Discovery (ND) and related functions,
     including IPv6 address resolution, redirect, proxy Neighbor
     Advertisement, Neighbor Unreachability Detection (NUD),
     Duplicate Address Detection (DAD), and Enhanced DAD.

     Copyright (c) 2026 IETF Trust and the persons
     identified as authors of the code.  All rights reserved.

     Redistribution and use in source and binary forms, with or
     without modification, is permitted pursuant to, and subject
     to the license terms contained in, the Revised BSD License
     set forth in Section 4.c of the IETF Trust's Legal Provisions
     Relating to IETF Documents
     (https://trustee.ietf.org/license-info).

     All revisions of IETF and IANA published modules can be found
     at the YANG Parameters registry group
     (https://www.iana.org/assignments/yang-parameters).

     This version of this YANG module is part of RFC XXXX; see
     the RFC itself for full legal notices.";

  // RFC Ed: replace '2026-12-02' with the module publication date
  // and remove this note
  // the format is (YYYY-MM-DD)

  // RFC Ed: replace XXXX (including in the imports above) with
  // actual RFC number and remove this note

  // RFC Ed: please replace ysv:version with 1.0.0 and
  // remove this note.

  revision 2026-12-02 {
    description
      "Initial version.";
    ysv:version "0.1.0";
    reference
      "RFC XXXX: A YANG Data Model for IPv6 Neighbor Discovery";
  }

  /* Features */

  feature proxy-na {
    description
      "Indicates support for proxy Neighbor Advertisement.";
  }

  feature enhanced-dad {
    description
      "Indicates support for Enhanced DAD.";
  }

  feature auto-resolve {
    description
      "Indicates support for automated action when a
       duplicate is detected by Enhanced DAD.";
  }

  /* Groupings */

  grouping nd-basic-statistics {
    description
      "Grouping for basic statistics for IPv6 ND messages.";
    leaf in-pkts {
      type yang:counter64;
      description
        "The total number of packets received.";
    }
    leaf out-pkts {
      type yang:counter64;
      description
        "The total number of packets transmitted.";
    }
    leaf drop-pkts {
      type yang:counter64;
      description
        "The total number of packets discarded.";
    }
  }

  grouping nd-unicast-multicast-statistics {
    description
      "Grouping for statistics for IPv6 ND messages categorized by
       unicast and multicast.";
    leaf in-unicast-pkts {
      type yang:counter64;
      description
        "The total number of packets received with the destination
         address as a unicast address.";
    }
    leaf in-multicast-pkts {
      type yang:counter64;
      description
        "The total number of packets received with the destination
         address as a multicast address.";
    }
    leaf out-unicast-pkts {
      type yang:counter64;
      description
        "The total number of packets transmitted with the destination
         address as a unicast address.";
    }
    leaf out-multicast-pkts {
      type yang:counter64;
      description
        "The total number of packets transmitted with the destination
         address as a multicast address.";
    }
  }

  grouping nd-drop-statistics {
    description
      "Grouping for statistics for IPv6 ND messages discarded by
       reason.";
    leaf drop-bad-code-pkts {
      type yang:counter64;
      description
        "The total number of packets discarded due to invalid code.";
    }
    leaf drop-bad-hoplimit-pkts {
      type yang:counter64;
      description
        "The total number of packets discarded due to invalid hop
         limits.";
    }
    leaf drop-bad-len-pkts {
      type yang:counter64;
      description
        "The total number of packets discarded due to invalid length.";
    }
    leaf drop-bad-option-pkts {
      type yang:counter64;
      description
        "The total number of packets discarded due to invalid option.";
    }
    leaf drop-checksum-err-pkts {
      type yang:counter64;
      description
        "The total number of packets discarded due to checksum errors.";
    }
    leaf drop-fragmented-pkts {
      type yang:counter64;
      description
        "The total number of packets discarded due to fragmentation.";
    }
  }

  /* Data nodes */

  augment "/if:interfaces/if:interface/ip:ipv6" {
    description
      "Augments interface configuration and state data with
       parameters of IPv6 ND.";
    container nd {
      description
        "Parameters of IPv6 ND.";
      leaf reachable-time {
        type uint32;
        units "milliseconds";
        default "30000";
        description
          "The time to confirm a neighbor's reachability for NUD.";
        reference
          "RFC4861: Neighbor Discovery for IP version 6 (IPv6),
                    Section 6.3.2 - BaseReachableTime";
      }
      leaf retrans-timer {
        type uint32 {
          range "1..max";
        }
        units "milliseconds";
        default "1000";
        description
          "The interval of retransmitting Neighbor Solicitations to a
           neighbor for address resolution, NUD, or DAD.";
        reference
          "RFC4861: Neighbor Discovery for IP version 6 (IPv6),
                    Section 6.3.2 - RetransTimer";
      }
      leaf redirect {
        type boolean;
        description
          "Controls whether the sending of ICMP Redirect messages
           on the interface is enabled or disabled when it acts as
           a router.

           If this leaf is absent, the device applies its
           implementation-specific default behavior, which may
           depend on the deployment scenario.";
        reference
          "RFC4861: Neighbor Discovery for IP version 6 (IPv6),
                    Section 8
           RFC8504: IPv6 Node Requirements,
                    Section 5.4";
      }
      leaf proxy-na {
        if-feature proxy-na;
        type boolean;
        default "false";
        description
          "Controls whether the router proxies for one or more other
           nodes by sending proxy Neighbor Advertisements.";
        reference
          "RFC4861: Neighbor Discovery for IP version 6 (IPv6),
                    Section 7.2.8";
      }
      container enhanced-dad {
        if-feature enhanced-dad;
        description
          "Parameters of Enhanced DAD algorithm.";
        leaf enable {
          type boolean;
          default "false";
          description
            "Controls whether the Enhanced DAD algorithm is enabled or
             disabled.";
          reference
            "RFC7527: Enhanced Duplicate Address Detection,
                      Section 4";
        }
        leaf auto-resolve {
          when "../enable = 'true'";
          if-feature auto-resolve;
          type boolean;
          default "false";
          description
            "Controls whether the automated action is enabled or
             disabled when detecting duplicates.";
          reference
            "RFC7527: Enhanced Duplicate Address Detection,
                      Section 5";
        }
        reference
          "RFC7527: Enhanced Duplicate Address Detection";
      }
      container statistics {
        config false;
        description
          "A collection of interface-related statistics about IPv6
           ND messages.

           For all IPv6 ND interface counters, discontinuities in the
           value can occur at re-initialization of the management
           system and at other times as indicated by the value of
           '../../statistics/discontinuity-time' in the
           ietf-interfaces YANG module.";
        container neighbor-solicitation {
          description
            "Statistics for Neighbor Solicitation packets.";
          uses nd-basic-statistics;
          uses nd-unicast-multicast-statistics;
          uses nd-drop-statistics;
          leaf out-nud-pkts {
            type yang:counter64;
            description
              "The total number of NS packets transmitted for NUD.";
          }
        }
        container neighbor-advertisement {
          description
            "Statistics for Neighbor Advertisement packets.";
          uses nd-basic-statistics;
          uses nd-unicast-multicast-statistics;
          uses nd-drop-statistics;
          leaf in-solicited-pkts {
            type yang:counter64;
            description
              "The total number of solicited NA packets received.";
          }
          leaf in-unsolicited-pkts {
            type yang:counter64;
            description
              "The total number of unsolicited NA packets received.";
          }
          leaf in-override-pkts {
            type yang:counter64;
            description
              "The total number of override NA packets received.";
          }
          leaf in-nonoverride-pkts {
            type yang:counter64;
            description
              "The total number of non-override NA packets received.";
          }
          leaf out-solicited-pkts {
            type yang:counter64;
            description
              "The total number of solicited NA packets transmitted.";
          }
          leaf out-unsolicited-pkts {
            type yang:counter64;
            description
              "The total number of unsolicited NA packets transmitted.";
          }
          leaf out-override-pkts {
            type yang:counter64;
            description
              "The total number of override NA packets transmitted.";
          }
          leaf out-nonoverride-pkts {
            type yang:counter64;
            description
              "The total number of non-override NA packets
               transmitted.";
          }
        }
        container router-solicitation {
          description
            "Statistics for Router Solicitation packets.";
          uses nd-basic-statistics;
          uses nd-unicast-multicast-statistics;
          uses nd-drop-statistics;
        }
        container router-advertisement {
          description
            "Statistics for Router Advertisement packets.";
          uses nd-basic-statistics;
          uses nd-unicast-multicast-statistics;
          uses nd-drop-statistics;
        }
        container redirect {
          description
            "Statistics for Redirect packets.";
          uses nd-basic-statistics;
          uses nd-drop-statistics;
        }
      }
    }
  }

  augment "/if:interfaces/if:interface/ip:ipv6/ip:neighbor" {
    description
      "Augments IPv6 neighbor list with parameters of IPv6 address
       resolution based on IPv6 ND.";
    leaf age {
      when "../ip:origin = 'dynamic'";
      type uint32;
      units "seconds";
      config false;
      description
        "The time that has passed since receipt of the last
         reachability confirmation for the neighbor. This leaf
         is present only for dynamic neighbor entries.";
      reference
        "RFC4861: Neighbor Discovery for IP version 6 (IPv6),
                  Section 7.3.3";
    }
  }
}


<CODE ENDS>

4. IANA Considerations

IANA is requested to register the following URI in the "ns" registry within the "IETF XML Registry" group [RFC3688]:

   URI: urn:ietf:params:xml:ns:yang:ietf-ipv6-nd
   Registrant Contact:  The IESG
   XML: N/A; the requested URI is an XML namespace.

IANA is requested to register the following YANG module in the "YANG Module Names" registry [RFC6020] within the "YANG Parameters" registry group.

   Name: ietf-ipv6-nd
   Maintained by IANA?  N
   Namespace: urn:ietf:params:xml:ns:yang:ietf-ipv6-nd
   Prefix: v6nd
   Reference: RFC XXXX

5. Security Considerations

This section is modeled after the template described in Section 3.7.1 of [RFC9907].

The "ietf-ipv6-nd" YANG module defines a data model that is designed to be accessed via YANG-based management protocols, such as the Network Configuration Protocol (NETCONF) [RFC6241] and RESTCONF [RFC8040]. These YANG-based management protocols (1) have to use a secure transport layer (e.g., Secure Shell (SSH) [RFC4253], TLS [RFC9846], and QUIC [RFC9000]) and (2) have to use mutual authentication.

The Network Configuration Access Control Model (NACM) [RFC8341] provides the means to restrict access for particular NETCONF or RESTCONF users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content.

There are a number of data nodes defined in this YANG module that are writable/creatable/deletable (i.e., "config true", which is the default). All writable data nodes are likely to be sensitive or vulnerable in some network environments. Write operations (e.g., edit-config) and delete operations to these data nodes without proper protection or authentication can have a negative effect on network operations. The following subtrees and data nodes have particular sensitivities/vulnerabilities:

* /if:interfaces/if:interface/ip:ipv6/v6nd:nd/v6nd:reachable-time

This leaf is used to consider a neighbor reachable since the last confirmation of reachability. An excessively large value could prolong the use of stale or spoofed Neighbor Cache entries, while an excessively small value could cause unnecessarily frequent NUDs.

* /if:interfaces/if:interface/ip:ipv6/v6nd:nd/v6nd:retrans-timer

This leaf is used to set the interval of retransmitting Neighbor Solicitations. An excessively small value could cause excessive NS traffic and increase network load, potentially resulting in denial of service.

* /if:interfaces/if:interface/ip:ipv6/v6nd:nd/v6nd:redirect

This leaf is used to enable the sending of Redirect messages on an interface. Unauthorized or mistaken changes to this leaf could cause traffic to be misdirected, potentially resulting in traffic hijacking, denial of service, or on-path attacks.

* /if:interfaces/if:interface/ip:ipv6/v6nd:nd/v6nd:proxy-na

This leaf is used to enable proxy Neighbor Advertisement on an interface. Unauthorized or mistaken changes to this leaf could cause traffic to be misdirected, potentially enabling traffic interception or denial of service.

* /if:interfaces/if:interface/ip:ipv6/v6nd:nd/v6nd:enhanced-dad/v6nd:enable

This leaf is used to enable Enhanced DAD algorithm on an interface. Unauthorized or mistaken changes to this leaf could disable Enhanced DAD, causing looped back NS (DAD) messages to be incorrectly interpreted as indicating duplicate addresses and potentially preventing legitimate IPv6 addresses from being configured.

* /if:interfaces/if:interface/ip:ipv6/v6nd:nd/v6nd:enhanced-dad/v6nd:auto-resolve

This leaf is used to enable the automated resolution when detecting duplicates by the Enhanced DAD algorithm on an interface, which could trigger automated actions that affect legitimate hosts or cause ND messages to be dropped, potentially resulting in denial of service.

Some of the readable data nodes in this YANG module may be considered sensitive or vulnerable in some network environments. It is thus important to control read access (e.g., via get, get-config, or notification) to these data nodes. Specifically, the following subtrees and data nodes have particular sensitivities/ vulnerabilities:

* /if:interfaces/if:interface/ip:ipv6/ip:neighbor/v6nd:age

Unauthorized access to this node may disclose information about IPv6 neighbor reachability and behavior patterns on the network.

* /if:interfaces/if:interface/ip:ipv6/v6nd:nd/v6nd:redirect

* /if:interfaces/if:interface/ip:ipv6/v6nd:nd/v6nd:proxy-na

* /if:interfaces/if:interface/ip:ipv6/v6nd:nd/v6nd:enhanced-dad

Unauthorized access to these nodes may disclose behavior patterns and security-related configuration of IPv6 Neighbor Discovery functions.

* /if:interfaces/if:interface/ip:ipv6/v6nd:nd/v6nd:statistics

Unauthorized access to this subtree may disclose information about neighbor activity and behavior patterns, including probing, packet drops and redirect.

6. Acknowledgments

The authors would like to thank Bin Han, Acee Lindem, Jen Linkova, Éric Vyncke, Changwang Lin, and many others for their helpful comments and suggestions.

Thanks to Ebben Aries for the YANG Doctors review.

Thanks to Yaroslav Rosomakho for the SECDIR review. Thanks to Carlos Pignataro for the INTDIR review. Thanks to Roni Even for the GENART review. Thanks to Tina Tsou for the OPSDIR review.

Thanks to Mohamed Boucadair, Gunter Van de Velde, and Mahesh Jethanandani for the IESG review.

7. References

7.1. Normative References

[RFC3688]
Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688, DOI 10.17487/RFC3688, , <https://www.rfc-editor.org/info/rfc3688>.
[RFC4861]
Narten, T., Nordmark, E., Simpson, W., and H. Soliman, "Neighbor Discovery for IP version 6 (IPv6)", RFC 4861, DOI 10.17487/RFC4861, , <https://www.rfc-editor.org/info/rfc4861>.
[RFC4862]
Thomson, S., Narten, T., and T. Jinmei, "IPv6 Stateless Address Autoconfiguration", RFC 4862, DOI 10.17487/RFC4862, , <https://www.rfc-editor.org/info/rfc4862>.
[RFC6020]
Bjorklund, M., Ed., "YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)", RFC 6020, DOI 10.17487/RFC6020, , <https://www.rfc-editor.org/info/rfc6020>.
[RFC7527]
Asati, R., Singh, H., Beebee, W., Pignataro, C., Dart, E., and W. George, "Enhanced Duplicate Address Detection", RFC 7527, DOI 10.17487/RFC7527, , <https://www.rfc-editor.org/info/rfc7527>.
[RFC7950]
Bjorklund, M., Ed., "The YANG 1.1 Data Modeling Language", RFC 7950, DOI 10.17487/RFC7950, , <https://www.rfc-editor.org/info/rfc7950>.
[RFC8341]
Bierman, A. and M. Bjorklund, "Network Configuration Access Control Model", STD 91, RFC 8341, DOI 10.17487/RFC8341, , <https://www.rfc-editor.org/info/rfc8341>.
[RFC8343]
Bjorklund, M., "A YANG Data Model for Interface Management", RFC 8343, DOI 10.17487/RFC8343, , <https://www.rfc-editor.org/info/rfc8343>.
[RFC8344]
Bjorklund, M., "A YANG Data Model for IP Management", RFC 8344, DOI 10.17487/RFC8344, , <https://www.rfc-editor.org/info/rfc8344>.
[RFC8349]
Lhotka, L., Lindem, A., and Y. Qu, "A YANG Data Model for Routing Management (NMDA Version)", RFC 8349, DOI 10.17487/RFC8349, , <https://www.rfc-editor.org/info/rfc8349>.
[RFC8504]
Chown, T., Loughney, J., and T. Winters, "IPv6 Node Requirements", BCP 220, RFC 8504, DOI 10.17487/RFC8504, , <https://www.rfc-editor.org/info/rfc8504>.
[RFC9911]
Schönwälder, J., Ed., "Common YANG Data Types", RFC 9911, DOI 10.17487/RFC9911, , <https://www.rfc-editor.org/info/rfc9911>.
[I-D.ietf-netmod-yang-semver]
Clarke, J., Wilton, R., Rahman, R., Lengyel, B., Sterne, J., and B. Claise, "YANG Semantic Versioning", Work in Progress, Internet-Draft, draft-ietf-netmod-yang-semver-29, , <https://datatracker.ietf.org/doc/html/draft-ietf-netmod-yang-semver-29>.

7.2. Informative References

[RFC4253]
Ylonen, T. and C. Lonvick, Ed., "The Secure Shell (SSH) Transport Layer Protocol", RFC 4253, DOI 10.17487/RFC4253, , <https://www.rfc-editor.org/info/rfc4253>.
[RFC6241]
Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed., and A. Bierman, Ed., "Network Configuration Protocol (NETCONF)", RFC 6241, DOI 10.17487/RFC6241, , <https://www.rfc-editor.org/info/rfc6241>.
[RFC6775]
Shelby, Z., Ed., Chakrabarti, S., Nordmark, E., and C. Bormann, "Neighbor Discovery Optimization for IPv6 over Low-Power Wireless Personal Area Networks (6LoWPANs)", RFC 6775, DOI 10.17487/RFC6775, , <https://www.rfc-editor.org/info/rfc6775>.
[RFC8040]
Bierman, A., Bjorklund, M., and K. Watsen, "RESTCONF Protocol", RFC 8040, DOI 10.17487/RFC8040, , <https://www.rfc-editor.org/info/rfc8040>.
[RFC8340]
Bjorklund, M. and L. Berger, Ed., "YANG Tree Diagrams", BCP 215, RFC 8340, DOI 10.17487/RFC8340, , <https://www.rfc-editor.org/info/rfc8340>.
[RFC8505]
Thubert, P., Ed., Nordmark, E., Chakrabarti, S., and C. Perkins, "Registration Extensions for IPv6 over Low-Power Wireless Personal Area Network (6LoWPAN) Neighbor Discovery", RFC 8505, DOI 10.17487/RFC8505, , <https://www.rfc-editor.org/info/rfc8505>.
[RFC8928]
Thubert, P., Ed., Sarikaya, B., Sethi, M., and R. Struik, "Address-Protected Neighbor Discovery for Low-Power and Lossy Networks", RFC 8928, DOI 10.17487/RFC8928, , <https://www.rfc-editor.org/info/rfc8928>.
[RFC8981]
Gont, F., Krishnan, S., Narten, T., and R. Draves, "Temporary Address Extensions for Stateless Address Autoconfiguration in IPv6", RFC 8981, DOI 10.17487/RFC8981, , <https://www.rfc-editor.org/info/rfc8981>.
[RFC9000]
Iyengar, J., Ed. and M. Thomson, Ed., "QUIC: A UDP-Based Multiplexed and Secure Transport", RFC 9000, DOI 10.17487/RFC9000, , <https://www.rfc-editor.org/info/rfc9000>.
[RFC9010]
Thubert, P., Ed. and M. Richardson, "Routing for RPL (Routing Protocol for Low-Power and Lossy Networks) Leaves", RFC 9010, DOI 10.17487/RFC9010, , <https://www.rfc-editor.org/info/rfc9010>.
[RFC9846]
Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 9846, DOI 10.17487/RFC9846, , <https://www.rfc-editor.org/info/rfc9846>.
[RFC9907]
Bierman, A., Boucadair, M., Ed., and Q. Wu, "Guidelines for Authors and Reviewers of Documents Containing YANG Data Models", BCP 216, RFC 9907, DOI 10.17487/RFC9907, , <https://www.rfc-editor.org/info/rfc9907>.
[I-D.ietf-intarea-arp-yang-model]
Zheng, F., Wu, B., Wilton, R., Zhang, F., Zhu, Y., and X. Ding, "A YANG Data Model for ARP Extensions", Work in Progress, Internet-Draft, draft-ietf-intarea-arp-yang-model-02, , <https://datatracker.ietf.org/doc/html/draft-ietf-intarea-arp-yang-model-02>.

Appendix A. Example Proxy Neighbor Advertisement, Redirect, NUD, and DAD Configuration

This example illustrates the configuration of enabling proxy Neighbor Advertisement, Redirect, NUD, DAD, and Enhanced DAD on interface eth0 with setting the "dup-addr-detect-transmits" leaf to 2, the "reachable-time" leaf to 40,000 milliseconds, and the "retrans-timer" leaf to 2,000 milliseconds, using the ietf-interfaces module [RFC8343], the ietf-ip module [RFC8344], and the IPv6 ND module.

<CODE BEGINS>
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
  xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">
  <interface>
    <name>eth0</name>
    <type>ianaift:ethernetCsmacd</type>
    <ipv6 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip">
      <dup-addr-detect-transmits>2</dup-addr-detect-transmits>
      <nd xmlns="urn:ietf:params:xml:ns:yang:ietf-ipv6-nd">
        <reachable-time>40000</reachable-time>
        <retrans-timer>2000</retrans-timer>
        <redirect>true</redirect>
        <proxy-na>true</proxy-na>
        <enhanced-dad>
          <enable>true</enable>
          <auto-resolve>true</auto-resolve>
        </enhanced-dad>
      </nd>
    </ipv6>
  </interface>
</interfaces>


<CODE ENDS>

The following is the same example using JSON format.

<CODE BEGINS>
{
  "ietf-interfaces:interfaces": {
    "interface": [
      {
        "name": "eth0",
        "type": "iana-if-type:ethernetCsmacd",
        "ietf-ip:ipv6": {
          "dup-addr-detect-transmits": 2,
          "ietf-ipv6-nd:nd": {
            "reachable-time": 40000,
            "retrans-timer": 2000,
            "redirect": true,
            "proxy-na": true,
            "enhanced-dad": {
              "enable": true,
              "auto-resolve": true
            }
          }
        }
      }
    ]
  }
}


<CODE ENDS>

Appendix B. Coverage of IPv6 ND Functions and Parameters in YANG Modules

This appendix summarizes the functional elements related to the IPv6 ND protocol and identifies whether they are covered by existing IETF YANG modules or defined in this document.

The table below maps the relevant RFCs, functions or parameters, the corresponding YANG modules, and their specific data paths. The functions are defined in [RFC4861] (Neighbor Discovery for IP version 6 (IPv6)), [RFC4862] (IPv6 Stateless Address Autoconfiguration), and [RFC7527] (Enhanced Duplicate Address Detection). The parameters are defined in Section 6.2.1 and 6.3.2 of [RFC4861], Section 5.1 of [RFC4862], and Section 3.4 of [RFC8981].

Table 1: Coverage of IPv6 ND Functions and Parameters in YANG Modules
RFC
(Section)
Function/Parameter Covered by Path
4861
s5.1
Neighbor Cache ietf-ip /if:interfaces
/if:interface
/ip:ipv6
/ip:neighbor
4861
s6.2.1
Prefix List
(AdvPrefixList)
ietf-ipv6-
router-
advertisements
/if:interfaces
/if:interface
/ip:ipv6
/v6ur:ipv6-router
-advertisements
/v6ur:prefix-list
4861
s6.2.1
IsRouter ietf-ip /if:interfaces
/if:interface
/ip:ipv6
/ip:forwarding
4861
s6.2.1
AdvSendAdvertisements ietf-ipv6-
router-
advertisements
/if:interfaces
/if:interface
/ip:ipv6
/v6ur:ipv6-router
-advertisements
/v6ur:send
-advertisements
4861
s6.2.1
MaxRtrAdvInterval ietf-ipv6-
router-
advertisements
/if:interfaces
/if:interface
/ip:ipv6
/v6ur:ipv6-router
-advertisements
/v6ur:max-rtr
-adv-interval
4861
s6.2.1
MinRtrAdvInterval ietf-ipv6-
router-
advertisements
/if:interfaces
/if:interface
/ip:ipv6
/v6ur:ipv6-router
-advertisements
/v6ur:min-rtr
-adv-interval
4861
s6.2.1
AdvManagedFlag ietf-ipv6-
router-
advertisements
/if:interfaces
/if:interface
/ip:ipv6
/v6ur:ipv6-router
-advertisements/
v6ur:managed-flag
4861
s6.2.1
AdvOtherConfigFlag ietf-ipv6-
router-
advertisements
/if:interfaces
/if:interface
/ip:ipv6
/v6ur:ipv6-router
-advertisements
/v6ur:other-
config-flag
4861
s6.2.1
AdvLinkMTU ietf-ipv6-
router-
advertisements
/if:interfaces
/if:interface
/ip:ipv6
/v6ur:ipv6-router
-advertisements
/v6ur:link-mtu
4861
s6.2.1
AdvReachableTime ietf-ipv6-
router-
advertisements
/if:interfaces
/if:interface
/ip:ipv6
/v6ur:ipv6-router
-advertisements
/v6ur:reachable-time
4861
s6.2.1
AdvRetransTimer ietf-ipv6-
router-
advertisements
/if:interfaces
/if:interface
/ip:ipv6
/v6ur:ipv6-router
-advertisements
/v6ur:retrans-timer
4861
s6.2.1
AdvCurHopLimit ietf-ipv6-
router-
advertisements
/if:interfaces
/if:interface
/ip:ipv6
/v6ur:ipv6-router
-advertisements
/v6ur:cur-hop-limit
4861
s6.2.1
AdvDefaultLifetime ietf-ipv6-
router-
advertisements
/if:interfaces
/if:interface
/ip:ipv6
/v6ur:ipv6-router
-advertisements
/v6ur:default-lifetime
4861
s6.2.1
AdvPrefixList/
AdvValidLifetime
ietf-ipv6-
router-
advertisements
/if:interfaces
/if:interface
/ip:ipv6
/v6ur:ipv6-router
-advertisements
/v6ur:prefix-list
/v6ur:prefix
/v6ur:valid
-lifetime
4861
s6.2.1
AdvPrefixList/
AdvOnLinkFlag
ietf-ipv6-
router-
advertisements
/if:interfaces
/if:interface
/ip:ipv6
/v6ur:ipv6-router
-advertisements
/v6ur:prefix-list
/v6ur:prefix/
v6ur:on-link-flag
4861
s6.2.1
AdvPrefixList/
AdvPreferredLifetime
ietf-ipv6-
router-
advertisements
/if:interfaces
/if:interface
/ip:ipv6
/v6ur:ipv6-router
-advertisements
/v6ur:prefix-list
/v6ur:prefix
/v6ur:preferred
-lifetime
4861
s6.2.1
AdvPrefixList/
AdvAutonomousFlag
ietf-ipv6-
router-
advertisements
/if:interfaces
/if:interface
/ip:ipv6
/v6ur:ipv6-router
-advertisements
/v6ur:prefix-list
/v6ur:prefix
/v6ur:autonomous
-flag
4861
s6.3.2
LinkMTU ietf-ip /if:interfaces
/if:interface
/ip:ipv6/ip:mtu
4861
s6.3.2
CurHopLimit - -
4861
s6.3.2
BaseReachableTime ietf-ipv6-nd /if:interfaces
/if:interface
/ip:ipv6/v6nd:nd
/v6nd:reachable
-time
4861
s6.3.2
ReachableTime - -
4861
s6.3.2 /4862
s5.1
RetransTimer ietf-ipv6-nd /if:interfaces
/if:interface
/ip:ipv6/v6nd:nd
/v6nd:retrans
-timer
4861
s7.2.8
Proxy Neighbor
Advertisement
ietf-ipv6-nd /if:interfaces
/if:interface
/ip:ipv6/v6nd:nd
/v6nd:proxy-na
4861
s8
Redirect ietf-ipv6-nd /if:interfaces
/if:interface
/ip:ipv6/v6nd:nd
/v6nd:redirect
4862
s5.1
DupAddrDetectTransmits ietf-ip /if:interfaces
/if:interface
/ip:ipv6/ip:dup
-addr-detect
-transmits
4862
s5.5
Creation of Global
Addresses
ietf-ip /if:interfaces
/if:interface
/ip:ipv6
/ip:autoconf
/ip:create-
global-
addresses
8981
s3.4
Creation of Temporary
Addresses
ietf-ip /if:interfaces
/if:interface
/ip:ipv6
/ip:autoconf
/ip:create-
temporary-
addresses
8981
s3.4
TEMP_VALID_LIFETIME ietf-ip /if:interfaces
/if:interface
/ip:ipv6
/ip:autoconf
/ip:temporary-
valid-lifetime
8981
s3.4
TEMP_PREFERRED_
LIFETIME
ietf-ip /if:interfaces
/if:interface
/ip:ipv6
/ip:autoconf
/ip:temporary-
preferred-
lifetime
7527
s4
Enhanced Duplicate
Address Detection
ietf-ipv6-nd /if:interfaces
/if:interface
/ip:ipv6/v6nd:nd/
v6nd:enhanced-dad
7527
s5
Automated Resolving
of Duplicates
ietf-ipv6-nd /if:interfaces
/if:interface
/ip:ipv6/v6nd:nd/
v6nd:enhanced-dad
/v6nd:auto
-resolve

Contributors

Bin Han
Huawei
China

Authors' Addresses

Fan Zhang
China Telecom
Guangzhou
China
Yongqing Zhu
China Telecom
Guangzhou
China
Bo Wu
Huawei
China
Jiayuan Hu
China Telecom
Guangzhou
China