[要約] RFC 8513は、Dual-Stack Lite(DS-Lite)のためのYANGデータモデルであり、IPv4とIPv6の両方をサポートするネットワーク環境を定義しています。このRFCの目的は、DS-Liteの実装と管理を容易にするための標準化を提供することです。

Internet Engineering Task Force (IETF)                      M. Boucadair
Request for Comments: 8513                                  C. Jacquenet
Category: Standards Track                                         Orange
ISSN: 2070-1721                                             S. Sivakumar
                                                           Cisco Systems
                                                            January 2019
        

A YANG Data Model for Dual-Stack Lite (DS-Lite)

Dual-Stack Lite(DS-Lite)のYANGデータモデル

Abstract

概要

This document defines a YANG module for the Dual-Stack Lite (DS-Lite) Address Family Transition Router (AFTR) and Basic Bridging BroadBand (B4) elements.

このドキュメントでは、Dual-Stack Lite(DS-Lite)Address Family Transition Router(AFTR)およびBasic Bridging BroadBand(B4)要素のYANGモジュールを定義します。

Status of This Memo

本文書の状態

This is an Internet Standards Track document.

これはInternet Standards Trackドキュメントです。

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.

このドキュメントは、IETF(Internet Engineering Task Force)の製品です。これは、IETFコミュニティのコンセンサスを表しています。公開レビューを受け、インターネットエンジニアリングステアリンググループ(IESG)による公開が承認されました。インターネット標準の詳細については、RFC 7841のセクション2をご覧ください。

Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at https://www.rfc-editor.org/info/rfc8513.

このドキュメントの現在のステータス、エラッタ、およびフィードバックの提供方法に関する情報は、https://www.rfc-editor.org/info/rfc8513で入手できます。

Copyright Notice

著作権表示

Copyright (c) 2019 IETF Trust and the persons identified as the document authors. All rights reserved.

Copyright(c)2019 IETF Trustおよびドキュメントの作成者として識別された人物。全著作権所有。

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) 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.

この文書は、BCP 78およびIETF文書に関するIETFトラストの法的規定(https://trustee.ietf.org/license-info)の対象であり、この文書の発行日に有効です。これらのドキュメントは、このドキュメントに関するあなたの権利と制限を説明しているため、注意深く確認してください。このドキュメントから抽出されたコードコンポーネントには、Trust Legal Provisionsのセクション4.eに記載されているSimplified BSD Licenseのテキストが含まれている必要があり、Simplified BSD Licenseに記載されているように保証なしで提供されます。

Table of Contents

目次

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
     1.1.  Terminology . . . . . . . . . . . . . . . . . . . . . . .   4
   2.  DS-Lite YANG Module: An Overview  . . . . . . . . . . . . . .   4
   3.  DS-Lite YANG Module . . . . . . . . . . . . . . . . . . . . .   7
   4.  Security Considerations . . . . . . . . . . . . . . . . . . .  15
   5.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  16
   6.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  16
     6.1.  Normative References  . . . . . . . . . . . . . . . . . .  16
     6.2.  Informative References  . . . . . . . . . . . . . . . . .  17
   Appendix A.  B4 Example . . . . . . . . . . . . . . . . . . . . .  19
   Appendix B.  AFTR Examples  . . . . . . . . . . . . . . . . . . .  19
   Acknowledgements  . . . . . . . . . . . . . . . . . . . . . . . .  21
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  21
        
1. Introduction
1. はじめに

This document defines a data model for DS-Lite [RFC6333], using the YANG data modeling language [RFC7950]. Both the Address Family Transition Router (AFTR) and Basic Bridging BroadBand (B4) elements are covered by this specification.

このドキュメントでは、YANGデータモデリング言語[RFC7950]を使用して、DS-Lite [RFC6333]のデータモデルを定義します。アドレスファミリトランジションルーター(AFTR)と基本的なブリッジングBroadBand(B4)の両方の要素がこの仕様の対象です。

Figure 1 is a slight adaptation of Figure 1 from RFC 6333 and is provided here for the convenience of the reader.

図1は、RFC 6333の図1を少し変更したものであり、読者の便宜のためにここに提供されています。

                      +-----------+
                      |    Host   |
                      +-----+-----+
                            |192.0.2.1
                            |
                            |
                            |192.0.2.2
                  +---------|---------+
                  |         |         |
                  |    Home router    |
                  |+--------+--------+|
                  ||       B4        ||
                  |+--------+--------+|
                  +--------|||--------+
                           |||2001:db8:0:1::1
                           |||
                           |||<-IPv4-in-IPv6 Softwire
                           |||
                    -------|||-------
                  /        |||        \
                 |   ISP core network  |
                  \        |||        /
                    -------|||-------
                           |||
                           |||2001:db8:0:2::1
                  +--------|||--------+
                  |        AFTR       |
                  |+--------+--------+|
                  ||   Concentrator  ||
                  |+--------+--------+|
                  |       |NAT|       |
                  |       +-+-+       |
                  +---------|---------+
                            |198.51.100.1
                            |
                    --------|--------
                  /         |         \
                 |       Internet      |
                  \         |         /
                    --------|--------
                            |
                            |203.0.113.1
                      +-----+-----+
                      | IPv4 Host |
                      +-----------+
        

Figure 1: DS-Lite Base Architecture

図1:DS-Liteベースのアーキテクチャ

DS-Lite deployment considerations are discussed in [RFC6908].

DS-Liteの展開に関する考慮事項は、[RFC6908]で説明されています。

This document follows the guidelines of [RFC8407], uses the common YANG types defined in [RFC6991], and adopts the Network Management Datastore Architecture (NMDA) [RFC8342].

このドキュメントは[RFC8407]のガイドラインに従い、[RFC6991]で定義されている一般的なYANGタイプを使用し、ネットワーク管理データストアアーキテクチャ(NMDA)[RFC8342]を採用しています。

1.1. Terminology
1.1. 用語

This document makes use of the terms defined in Section 3 of [RFC6333].

このドキュメントでは、[RFC6333]のセクション3で定義されている用語を使用します。

The terminology for describing YANG data models is defined in [RFC7950].

YANGデータモデルを説明する用語は、[RFC7950]で定義されています。

The meaning of the symbols in tree diagrams is defined in [RFC8340].

ツリー図の記号の意味は、[RFC8340]で定義されています。

2. DS-Lite YANG Module: An Overview
2. DS-Lite YANGモジュール:概要

As shown in Figure 1:

図1に示すように:

o The AFTR element is a combination of an IPv4-in-IPv6 tunnel and a NAPT function (Section 2.2 of [RFC3022]).

o AFTR要素は、IPv4-in-IPv6トンネルとNAPT機能の組み合わせです([RFC3022]のセクション2.2)。

o The B4 element is an IPv4-in-IPv6 tunnel.

o B4要素はIPv4-in-IPv6トンネルです。

Therefore, the DS-Lite YANG module is designed to augment both the Interfaces YANG module [RFC8343] and the NAT YANG module [RFC8512] with DS-Lite-specific features.

したがって、DS-Lite YANGモジュールは、DS-Lite固有の機能を備えたInterfaces YANGモジュール[RFC8343]とNAT YANGモジュール[RFC8512]の両方を拡張するように設計されています。

The YANG "feature" statement is used to distinguish which of the DS-Lite elements ('aftr' or 'b4') is relevant for a specific data node.

YANGの「機能」ステートメントは、どのDS-Lite要素( 'aftr'または 'b4')が特定のデータノードに関連するかを区別するために使用されます。

Concretely, the DS-Lite YANG module (Figure 2) augments the Interfaces YANG module with the following:

具体的には、DS-Lite YANGモジュール(図2)は、Interfaces YANGモジュールを次のように拡張します。

o An IPv6 address used by the tunnel endpoint (AFTR or B4) for sending and receiving IPv4-in-IPv6 packets (ipv6-address).

o IPv4-in-IPv6パケットを送受信するためにトンネルエンドポイント(AFTRまたはB4)で使用されるIPv6アドレス(ipv6-address)。

o An IPv4 address that is used by the tunnel endpoint (AFTR or B4) for troubleshooting purposes (ipv4-address).

o トラブルシューティングの目的でトンネルエンドポイント(AFTRまたはB4)で使用されるIPv4アドレス(ipv4-address)。

o An IPv6 address used by a B4 element to reach its AFTR (aftr-ipv6-addr).

o B4要素がそのAFTRに到達するために使用するIPv6アドレス(aftr-ipv6-addr)。

o The tunnel MTU used to avoid fragmentation (tunnel-mtu).

o 断片化を回避するために使用されるトンネルMTU(tunnel-person)。

o A policy to instruct the tunnel endpoint (AFTR or B4) whether it must preserve Differentiated Services Code Point (DSCP) marking when encapsulating/decapsulating packets (v6-v4-dscp-preservation).

o トンネルエンドポイント(AFTRまたはB4)に、パケットのカプセル化/カプセル化解除時にDiffServコードポイント(DSCP)マーキングを保持する必要があるかどうかを指示するポリシー(v6-v4-dscp-preservation)。

In addition, the DS-Lite YANG module augments the NAT YANG module (policy, in particular) with the following:

さらに、DS-Lite YANGモジュールは、NAT YANGモジュール(特にポリシー)に次の機能を追加します。

o A policy to limit the number of DS-Lite softwires per subscriber (max-softwire-per-subscriber).

o サブスクライバーあたりのDS-Liteソフトワイヤーの数を制限するポリシー(サブスクライバーあたりのmax-softwire)。

o A policy to instruct the AFTR whether a state can be automatically migrated (state-migrate).

o 状態を自動的に移行できるかどうか(state-migrate)をAFTRに指示するポリシー。

o Further, in order to prevent a Denial of Service (DoS) by frequently changing the source IPv6 address, 'b4-address-change-limit' is used to rate-limit such changes.

o さらに、送信元IPv6アドレスを頻繁に変更してサービス拒否(DoS)を防ぐために、「b4-address-change-limit」を使用して、そのような変更をレート制限します。

o An instruction to rewrite the TCP Maximum Segment Size (MSS) option (mss-clamping) to avoid TCP fragmentation.

o TCPの断片化を回避するために、TCP最大セグメントサイズ(MSS)オプション(mss-clamping)を書き換える命令。

Given that the NAPT table of the AFTR element is extended to include the source IPv6 address of incoming packets, the DS-Lite YANG module augments the NAPT44 mapping entry with the following:

AFTRエレメントのNAPTテーブルが拡張されて着信パケットのソースIPv6アドレスが含まれるとすると、DS-Lite YANGモジュールはNAPT44マッピングエントリを次のように拡張します。

o b4-ipv6-address, which is used to record the source IPv6 address of a packet received from a B4 element. This IPv6 address is required to disambiguate between the overlapping IPv4 address space of subscribers.

o b4-ipv6-address。B4要素から受信したパケットのソースIPv6アドレスを記録するために使用されます。このIPv6アドレスは、加入者の重複するIPv4アドレス空間を明確にするために必要です。

o The value of the Traffic Class field in the IPv6 header as received from a B4 element (v6-dscp): This information is used to preserve DSCP marking when encapsulating/decapsulating at the AFTR.

o B4要素(v6-dscp)から受信したIPv6ヘッダーのトラフィッククラスフィールドの値:この情報は、AFTRでカプセル化/カプセル化解除するときにDSCPマーキングを保持するために使用されます。

o The IPv4 DSCP marking of the IPv4 packet received from a B4 element (internal-v4-dscp): This information can be used by the AFTR for setting the DSCP of packets relayed to a B4 element.

o B4要素(internal-v4-dscp)から受信したIPv4パケットのIPv4 DSCPマーキング:この情報は、B4要素にリレーされるパケットのDSCPを設定するためにAFTRで使用できます。

o The IPv4 DSCP marking as set by the AFTR in its external interface (external-v4-dscp): An AFTR can be instructed to preserve the same marking or to set it to another value when forwarding an IPv4 packet destined to a remote IPv4 host.

o 外部インターフェース(external-v4-dscp)でAFTRによって設定されたIPv4 DSCPマーキング:リモートIPv4ホスト宛てのIPv4パケットを転送するときに、同じマーキングを保持するか、別の値に設定するようにAFTRに指示できます。

Access Control List (ACL) and Quality-of-Service (QoS) policies discussed in Section 2.5 of [RFC6908] are out of scope. A YANG module for ACLs is documented in [ACL-YANG].

[RFC6908]のセクション2.5で説明されているアクセス制御リスト(ACL)とサービス品質(QoS)のポリシーは対象外です。 ACLのYANGモジュールは[ACL-YANG]に文書化されています。

Likewise, considerations that are related to the Port Control Protocol (PCP) and discussed in Section 8.5 of [RFC6333] are out of scope. A YANG module for PCP is documented in [YANG-PCP].

同様に、ポートコントロールプロトコル(PCP)に関連し、[RFC6333]のセクション8.5で説明されている考慮事項は範囲外です。 PCPのYANGモジュールは、[YANG-PCP]で文書化されています。

The YANG module "ietf-dslite" has the following structure:

YANGモジュール「ietf-dslite」の構造は次のとおりです。

   module: ietf-dslite
     augment /if:interfaces/if:interface:
       +--rw ipv6-address?              inet:ipv6-address
       +--rw ipv4-address?              inet:ipv4-address
       +--rw aftr-ipv6-addr?            inet:ipv6-address {b4}?
       +--rw tunnel-mtu?                uint16
       +--rw v6-v4-dscp-preservation?   boolean
     augment /nat:nat/nat:instances/nat:instance/nat:policy:
       +--rw max-softwires-per-subscriber?   uint8 {aftr}?
       +--rw state-migrate?                  boolean {aftr}?
       +--rw b4-address-change-limit?        uint32 {aftr}?
       +--rw mss-clamping {aftr}?
          +--rw enable?      boolean
          +--rw mss-value?   uint16
     augment /nat:nat/nat:instances/nat:instance
             /nat:mapping-table/nat:mapping-entry:
       +--rw b4-ipv6-address {aftr}?
       |  +--rw address?               inet:ipv6-address
       |  +--rw last-address-change?   yang:date-and-time
       +--rw v6-dscp?            inet:dscp {aftr}?
       +--rw internal-v4-dscp?   inet:dscp {aftr}?
       +--rw external-v4-dscp?   inet:dscp {aftr}?
     augment /nat:nat/nat:instances/nat:instance
             /nat:statistics/nat:mappings-statistics:
       +--ro active-softwires?   yang:gauge32 {aftr}?
        
     notifications:
       +---n b4-address-change-limit-policy-violation {aftr}?
          +--ro id           -> /nat:nat/instances/instance/id
          +--ro policy-id    -> /nat:nat/instances/instance/policy/id
          +--ro address      inet:ipv6-address
        

Figure 2: DS-Lite YANG Tree Diagram

図2:DS-Lite YANGツリー図

Examples to illustrate the use of the "ietf-dslite" module are provided in Appendices A and B.

「ietf-dslite」モジュールの使用を説明する例は、付録AおよびBにあります。

3. DS-Lite YANG Module
3. DS-Lite YANGモジュール

This module uses the tunnel interface identity defined in [RFC7224].

このモジュールは、[RFC7224]で定義されているトンネルインターフェイスIDを使用します。

  <CODE BEGINS> file "ietf-dslite@2019-01-10.yang"
        
  module ietf-dslite {
   yang-version 1.1;
   namespace "urn:ietf:params:xml:ns:yang:ietf-dslite";
   prefix dslite;
        
   import ietf-inet-types {
     prefix inet;
     reference
       "Section 4 of RFC 6991";
   }
   import ietf-interfaces {
     prefix if;
     reference
       "RFC 8343: A YANG Data Model for Interface Management";
   }
   import iana-if-type {
     prefix ianaift;
     reference
       "RFC 7224: IANA Interface Type YANG Module";
   }
   import ietf-nat {
     prefix nat;
     reference
       "RFC 8512: A YANG Module for Network Address Translation (NAT)
                  and Network Prefix Translation (NPT)";
   }
   import ietf-yang-types {
     prefix yang;
     reference
       "Section 3 of RFC 6991";
   }
        
   organization
     "IETF Softwire Working Group";
   contact
     "WG Web:   <https://datatracker.ietf.org/wg/softwire/>
      WG List:  <mailto:softwires@ietf.org>
        
      Editor:  Mohamed Boucadair
               <mailto:mohamed.boucadair@orange.com>
        
      Author:  Christian Jacquenet
               <mailto:christian.jacquenet@orange.com>
        
      Author:  Senthil Sivakumar
               <mailto:ssenthil@cisco.com>";
        

description "This module is a YANG module for DS-Lite AFTR and B4 implementations.

説明「このモジュールは、DS-Lite AFTRおよびB4実装用のYANGモジュールです。

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

Copyright(c)2018 IETF Trustおよびコードの作成者として識別された人物。全著作権所有。

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 Simplified BSD License set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info).

ソースおよびバイナリ形式での再配布および使用は、変更の有無にかかわらず、IETF文書に関連するIETFトラストの法的規定のセクション4.cに記載されているSimplified BSD Licenseに従い、それに含まれるライセンス条項に従って許可されます( http://trustee.ietf.org/license-info)。

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

このYANGモジュールのこのバージョンはRFC 8513の一部です。完全な法的通知については、RFC自体を参照してください。 ";

   revision 2019-01-10 {
     description
       "Initial revision.";
     reference
       "RFC 8513: A YANG Data Model for Dual-Stack Lite (DS-Lite)";
   }
        
   identity dslite {
     base ianaift:tunnel;
     description
       "DS-Lite tunnel.";
   }
        
   /*
    * Features
    */
        
   feature b4 {
     description
       "The B4 element is a function implemented on a dual-stack-capable
        node, either a directly connected device or Customer Premises
        Equipment (CPE), that creates a tunnel to an AFTR.";
     reference
       "Section 5 of RFC 6333";
   }
   feature aftr {
     description
       "An AFTR element is the combination of an IPv4-in-IPv6 tunnel
        endpoint and an IPv4-IPv4 NAT implemented on the same node.";
     reference
       "Section 6 of RFC 6333";
   }
        
   /*
    * Augments
    */
        
   augment "/if:interfaces/if:interface" {
     when 'derived-from(if:type, "dslite")';
     description
       "Augments Interface module with DS-Lite parameters.
        

IANA interface types are maintained at this registry: <https://www.iana.org/assignments/ianaiftype-mib/>.

IANAインターフェースタイプは次のレジストリで維持されます:<https://www.iana.org/assignments/ianaiftype-mib/>。

        tunnel (131),       -- Encapsulation interface";
     leaf ipv6-address {
       type inet:ipv6-address;
       description
         "IPv6 address of the local DS-Lite endpoint (AFTR or B4).";
       reference
         "RFC 6333: Dual-Stack Lite Broadband Deployments Following
                    IPv4 Exhaustion";
     }
     leaf ipv4-address {
       type inet:ipv4-address;
       description
         "IPv4 address of the local DS-Lite AFTR or B4.
        

192.0.0.1 is reserved for the AFTR element, while 192.0.0.0/29 is reserved for the B4 element.

192.0.0.1はAFTRエレメント用に予約されており、192.0.0.0 / 29はB4エレメント用に予約されています。

          This address can be used to report ICMP problems and will
          appear in traceroute outputs.";
       reference
         "RFC 6333: Dual-Stack Lite Broadband Deployments Following
                    IPv4 Exhaustion";
     }
     leaf aftr-ipv6-addr {
       if-feature "b4";
       type inet:ipv6-address;
       description
         "Indicates the AFTR's IPv6 address to be used by a B4
        
          element.";
       reference
         "RFC 6333: Dual-Stack Lite Broadband Deployments Following
                    IPv4 Exhaustion";
     }
     leaf tunnel-mtu {
       type uint16;
       description
         "Configures a tunnel MTU.
        
          RFC 6908 specifies that since fragmentation and reassembly
          are not optimal, the operator should do everything possible
          to eliminate the need for them.  If the operator uses simple
          IPv4-in-IPv6 softwire, it is recommended that the MTU size
          of the IPv6 network between the B4 and the AFTR account
          for the additional overhead (40 bytes).";
       reference
         "RFC 6908: Deployment Considerations for Dual-Stack Lite";
     }
     leaf v6-v4-dscp-preservation {
       type boolean;
       description
         "Copies the DSCP value from the IPv6 header, and vice versa.
        
          According to Section 2.10 of RFC 6908, operators should
          use the uniform model by provisioning the network such
          that the AFTR/B4 copies the DSCP value in the IPv4 header
          to the Traffic Class field in the IPv6 header, after the
          IPv4-in-IPv6 encapsulation.";
       reference
         "Section 2.10 of RFC 6908";
     }
   }
        
   augment "/nat:nat/nat:instances/nat:instance/nat:policy" {
     when "derived-from-or-self(/nat:nat/nat:instances/nat:instance"
        + "/nat:type, 'nat:napt44')"
        + " and /nat:nat/nat:instances/nat:instance/"
        + "nat:per-interface-binding='dslite'";
     if-feature "aftr";
     description
       "Augments the NAPT44 module with AFTR parameters.";
     leaf max-softwires-per-subscriber {
       type uint8;
       default "1";
       description
         "Configures the maximum softwires per subscriber feature.
        

A subscriber is uniquely identified by means of a subscriber-mask (subscriber-mask-v6).

加入者は、加入者マスク(subscriber-mask-v6)によって一意に識別されます。

          This policy aims to prevent a misbehaving subscriber from
          mounting several DS-Lite softwires that would consume
          additional AFTR resources (e.g., get more external ports
          if the quota was enforced on a per-softwire basis and
          consume extra processing due to a large number of active
          softwires).";
       reference
         "Section 4 of RFC 7785";
     }
     leaf state-migrate {
       type boolean;
       default "true";
       description
         "State migration is enabled by default.
        

In the event a new IPv6 address is assigned to the B4 element, the AFTR should migrate existing state to be bound to the new IPv6 address. This operation ensures that traffic destined to the previous B4's IPv6 address will be redirected to the newer B4's IPv6 address. The destination IPv6 address for tunneling return traffic from the AFTR should be the last seen as the B4's IPv6 source address from the user device (e.g., CPE).

新しいIPv6アドレスがB4要素に割り当てられた場合、AFTRは既存の状態を移行して、新しいIPv6アドレスにバインドする必要があります。この操作により、以前のB4のIPv6アドレス宛てのトラフィックが新しいB4のIPv6アドレスにリダイレクトされることが保証されます。 AFTRからのリターントラフィックをトンネリングするための宛先IPv6アドレスは、ユーザーデバイス(CPEなど)からのB4のIPv6送信元アドレスとして最後に認識される必要があります。

          The AFTR uses the subscriber-mask-v6 to determine whether two
          IPv6 addresses belong to the same CPE (e.g., if the
          subscriber-mask-v6 is set to 56, the AFTR concludes that
          2001:db8:100:100::1 and 2001:db8:100:100::2 belong to the same
          CPE assigned with 2001:db8:100:100::/56).";
       reference
         "RFC 7785: Recommendations for Prefix Binding in the Context
                    of Softwire Dual-Stack Lite";
     }
     leaf b4-address-change-limit {
       type uint32;
       units "seconds";
       default "1800";
       description
         "Minimum number of seconds between a successive B4's IPv6
          address change from the same prefix.
        

Changing the source B4's IPv6 address may be used as an attack vector. Packets with a new B4's IPv6 address from the same prefix should be rate-limited.

ソースB4のIPv6アドレスの変更は、攻撃ベクトルとして使用される可能性があります。同じプレフィックスからの新しいB4のIPv6アドレスを持つパケットは、レート制限する必要があります。

It is recommended that this rate limit be set to 30 minutes;

このレート制限は30分に設定することをお勧めします。

          other values can be set on a per-deployment basis.";
       reference
         "RFC 7785: Recommendations for Prefix Binding in the Context
                    of Softwire Dual-Stack Lite";
     }
     container mss-clamping {
       description
         "MSS rewriting configuration to avoid IPv6 fragmentation.";
       leaf enable {
         type boolean;
         description
           "Enable/disable MSS rewriting feature.";
       }
       leaf mss-value {
         type uint16;
         units "octets";
         description
           "Sets the MSS value to be used for MSS rewriting.";
       }
     }
   }
        
   augment "/nat:nat/nat:instances/nat:instance"
         + "/nat:mapping-table/nat:mapping-entry" {
     when "derived-from-or-self(/nat:nat/nat:instances/nat:instance"
        + "/nat:type, 'nat:napt44')"
        + "and /nat:nat/nat:instances/nat:instance"
        + "/nat:per-interface-binding='dslite'";
     if-feature "aftr";
     description
       "Augments the NAPT44 mapping table with DS-Lite specifics.";
     container b4-ipv6-address {
       description
         "Records the IPv6 address used by a B4 element and the last
          time that address changed.";
       leaf address {
         type inet:ipv6-address;
         description
           "Corresponds to the IPv6 address used by a B4 element.";
         reference
           "RFC 6333: Dual-Stack Lite Broadband Deployments Following
                      IPv4 Exhaustion";
       }
       leaf last-address-change {
         type yang:date-and-time;
         description
           "Records the last time that the address changed.";
       }
        
     }
     leaf v6-dscp {
       when "/if:interfaces/if:interface"
          + "/dslite:v6-v4-dscp-preservation = 'true'";
       type inet:dscp;
       description
         "DSCP value used at the softwire level (i.e., IPv6 header).";
     }
     leaf internal-v4-dscp {
       when "/if:interfaces/if:interface"
          + "/dslite:v6-v4-dscp-preservation = 'true'";
       type inet:dscp;
       description
         "DSCP value of the encapsulated IPv4 packet.";
     }
     leaf external-v4-dscp {
       when "/if:interfaces/if:interface"
          + "/dslite:v6-v4-dscp-preservation = 'true'";
       type inet:dscp;
       description
         "DSCP value of the translated IPv4 packet as marked by
          the AFTR.";
     }
   }
        
   augment "/nat:nat/nat:instances/nat:instance"
         + "/nat:statistics/nat:mappings-statistics" {
     if-feature "aftr";
     description
       "Indicates the number of active softwires.";
     leaf active-softwires {
       type yang:gauge32;
       description
         "The number of currently active softwires on the AFTR
          instance.";
     }
   }
        
   /*
    * Notifications
    */
        
   notification b4-address-change-limit-policy-violation {
     if-feature "aftr";
     description
       "Generates notifications when a B4 unsuccessfully attempts
        to change the IPv6 address in a time shorter than the value
        of b4-address-change-limit.
        
        Notifications are rate-limited (notify-interval).";
     leaf id {
       type leafref {
         path "/nat:nat/nat:instances/nat:instance/nat:id";
       }
       mandatory true;
       description
         "NAT instance identifier.";
     }
     leaf policy-id {
       type leafref {
         path "/nat:nat/nat:instances/nat:instance/nat:policy/nat:id";
       }
       mandatory true;
       description
         "Policy identifier.";
     }
     leaf address {
       type inet:ipv6-address;
       mandatory true;
       description
         "B4's IPv6 address.";
     }
   }
  }
        

<CODE ENDS>

<コード終了>

4. Security Considerations
4. セキュリティに関する考慮事項

The YANG module specified in this document defines a schema for data that is designed to be accessed via network management protocols such as NETCONF [RFC6241] or RESTCONF [RFC8040]. The lowest NETCONF layer is the secure transport layer, and the mandatory-to-implement secure transport is Secure Shell (SSH) [RFC6242]. The lowest RESTCONF layer is HTTPS, and the mandatory-to-implement secure transport is TLS [RFC8446].

このドキュメントで指定されているYANGモジュールは、NETCONF [RFC6241]やRESTCONF [RFC8040]などのネットワーク管理プロトコルを介してアクセスするように設計されたデータのスキーマを定義します。最下位のNETCONFレイヤーはセキュアなトランスポートレイヤーであり、実装に必須のセキュアなトランスポートはセキュアシェル(SSH)です[RFC6242]。最下位のRESTCONFレイヤーはHTTPSであり、実装に必須のセキュアなトランスポートはTLS [RFC8446]です。

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.

ネットワーク構成アクセス制御モデル(NACM)[RFC8341]は、特定のNETCONFまたはRESTCONFユーザーのアクセスを、利用可能なすべてのNETCONFまたはRESTCONFプロトコル操作およびコンテンツの事前構成されたサブセットに制限する手段を提供します。

All data nodes defined in the YANG module that can be created, modified, and deleted (i.e., config true, which is the default) are considered sensitive. Write operations (e.g., edit-config) applied to these data nodes without proper protection can negatively affect network operations. An attacker who is able to access the B4/AFTR can undertake various attacks, such as:

作成、変更、および削除できるYANGモジュールで定義されたすべてのデータノード(つまり、デフォルトであるconfig true)は機密と見なされます。適切な保護なしにこれらのデータノードに適用された書き込み操作(edit-configなど)は、ネットワーク操作に悪影響を与える可能性があります。 B4 / AFTRにアクセスできる攻撃者は、次のようなさまざまな攻撃を行うことができます。

o Setting the value of 'aftr-ipv6-addr' on the B4 to point to an illegitimate AFTR so that it can intercept all the traffic sent by a B4. Illegitimately intercepting users' traffic is an attack with severe implications on privacy.

o B4で送信されたすべてのトラフィックを傍受できるように、B4の「aftr-ipv6-addr」の値を不正なAFTRを指すように設定します。ユーザーのトラフィックを不正に傍受することは、プライバシーに重大な影響を与える攻撃です。

o Setting the MTU to a low value, which may increase the number of fragments ('tunnel-mtu' for both B4 and AFTR).

o MTUを低い値に設定すると、フラグメントの数が増える可能性があります(B4とAFTRの両方で「tunnel-mtu」)。

o Setting 'max-softwire-per-subscriber' to an arbitrary high value, which will be exploited by a misbehaving user to grab more resources (by mounting as many softwires as required to get more external IP addresses/ports) or to perform a DoS on the AFTR by mounting a massive number of softwires.

o 「max-softwire-per-subscriber」を任意の高い値に設定します。これは、誤動作しているユーザーが(より多くの外部IPアドレス/ポートを取得するために必要な数のソフトワイヤーをマウントすることにより)より多くのリソースを取得したり、DoSを実行したりするために利用されます。膨大な数のソフトワイヤーを取り付けることにより、AFTRで。

o Setting 'state-migrate' to 'false' on the AFTR. This action may lead to a service degradation for the users.

o AFTRで「state-migrate」を「false」に設定します。このアクションにより、ユーザーのサービスが低下する可能性があります。

o Setting 'b4-address-change-limit' to an arbitrary low value can ease DoS attacks based on frequent change of the B4 IPv6 address.

o 「b4-address-change-limit」を任意の低い値に設定すると、B4 IPv6アドレスの頻繁な変更に基づくDoS攻撃を緩和できます。

o Setting 'v6-v4-dscp-preservation' to 'false" may lead to a service degradation if some policies are applied on the network based on the DSCP value.

o 「v6-v4-dscp-preservation」を「false」に設定すると、一部のポリシーがDSCP値に基づいてネットワークに適用されている場合、サービスが低下する可能性があります。

Additional security considerations are discussed in [RFC8512].

セキュリティに関するその他の考慮事項は、[RFC8512]で説明されています。

Security considerations related to DS-Lite are discussed in [RFC6333].

DS-Liteに関連するセキュリティの考慮事項は、[RFC6333]で説明されています。

5. IANA Considerations
5. IANAに関する考慮事項

IANA has registered the following URI in the "ns" subregistry within the "IETF XML Registry" [RFC3688]:

IANAは、「IETF XMLレジストリ」[RFC3688]内の「ns」サブレジストリに次のURIを登録しました。

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

URI:urn:ietf:params:xml:ns:yang:ietf-dslite登録者の連絡先:IESG。 XML:なし。要求されたURIはXML名前空間です。

IANA has registered the following YANG module in the "YANG Module Names" subregistry [RFC7950] within the "YANG Parameters" registry.

IANAは、「YANGパラメータ」レジストリ内の「YANGモジュール名」サブレジストリ[RFC7950]に次のYANGモジュールを登録しました。

            name: ietf-dslite
            namespace: urn:ietf:params:xml:ns:yang:ietf-dslite
            prefix: dslite
            reference: RFC 8513
        
6. References
6. 参考文献
6.1. Normative References
6.1. 引用文献

[RFC3688] Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688, DOI 10.17487/RFC3688, January 2004, <https://www.rfc-editor.org/info/rfc3688>.

[RFC3688] Mealling、M。、「The IETF XML Registry」、BCP 81、RFC 3688、DOI 10.17487 / RFC3688、2004年1月、<https://www.rfc-editor.org/info/rfc3688>。

[RFC6241] Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed., and A. Bierman, Ed., "Network Configuration Protocol (NETCONF)", RFC 6241, DOI 10.17487/RFC6241, June 2011, <https://www.rfc-editor.org/info/rfc6241>.

[RFC6241] Enns、R。、編、Bjorklund、M。、編、Schoenwaelder、J。、編、およびA. Bierman、編、「Network Configuration Protocol(NETCONF)」、RFC 6241、DOI 10.17487 / RFC6241、2011年6月、<https://www.rfc-editor.org/info/rfc6241>。

[RFC6242] Wasserman, M., "Using the NETCONF Protocol over Secure Shell (SSH)", RFC 6242, DOI 10.17487/RFC6242, June 2011, <https://www.rfc-editor.org/info/rfc6242>.

[RFC6242] Wasserman、M。、「Using the NETCONF Protocol over Secure Shell(SSH)」、RFC 6242、DOI 10.17487 / RFC6242、2011年6月、<https://www.rfc-editor.org/info/rfc6242>。

[RFC6333] Durand, A., Droms, R., Woodyatt, J., and Y. Lee, "Dual-Stack Lite Broadband Deployments Following IPv4 Exhaustion", RFC 6333, DOI 10.17487/RFC6333, August 2011, <https://www.rfc-editor.org/info/rfc6333>.

[RFC6333] Durand、A.、Droms、R.、Woodyatt、J。、およびY. Lee、「IPv4の枯渇に続くデュアルスタックLiteブロードバンドの展開」、RFC 6333、DOI 10.17487 / RFC6333、2011年8月、<https:/ /www.rfc-editor.org/info/rfc6333>。

[RFC6991] Schoenwaelder, J., Ed., "Common YANG Data Types", RFC 6991, DOI 10.17487/RFC6991, July 2013, <https://www.rfc-editor.org/info/rfc6991>.

[RFC6991] Schoenwaelder、J。、編、「Common YANG Data Types」、RFC 6991、DOI 10.17487 / RFC6991、2013年7月、<https://www.rfc-editor.org/info/rfc6991>。

[RFC7224] Bjorklund, M., "IANA Interface Type YANG Module", RFC 7224, DOI 10.17487/RFC7224, May 2014, <https://www.rfc-editor.org/info/rfc7224>.

[RFC7224] Bjorklund、M。、「IANA Interface Type YANG Module」、RFC 7224、DOI 10.17487 / RFC7224、2014年5月、<https://www.rfc-editor.org/info/rfc7224>。

[RFC7950] Bjorklund, M., Ed., "The YANG 1.1 Data Modeling Language", RFC 7950, DOI 10.17487/RFC7950, August 2016, <https://www.rfc-editor.org/info/rfc7950>.

[RFC7950] Bjorklund、M。、編、「The YANG 1.1 Data Modeling Language」、RFC 7950、DOI 10.17487 / RFC7950、2016年8月、<https://www.rfc-editor.org/info/rfc7950>。

[RFC8040] Bierman, A., Bjorklund, M., and K. Watsen, "RESTCONF Protocol", RFC 8040, DOI 10.17487/RFC8040, January 2017, <https://www.rfc-editor.org/info/rfc8040>.

[RFC8040] Bierman、A.、Bjorklund、M。、およびK. Watsen、「RESTCONFプロトコル」、RFC 8040、DOI 10.17487 / RFC8040、2017年1月、<https://www.rfc-editor.org/info/rfc8040 >。

[RFC8341] Bierman, A. and M. Bjorklund, "Network Configuration Access Control Model", STD 91, RFC 8341, DOI 10.17487/RFC8341, March 2018, <https://www.rfc-editor.org/info/rfc8341>.

[RFC8341] Bierman、A。およびM. Bjorklund、「Network Configuration Access Control Model」、STD 91、RFC 8341、DOI 10.17487 / RFC8341、2018年3月、<https://www.rfc-editor.org/info/rfc8341 >。

[RFC8343] Bjorklund, M., "A YANG Data Model for Interface Management", RFC 8343, DOI 10.17487/RFC8343, March 2018, <https://www.rfc-editor.org/info/rfc8343>.

[RFC8343] Bjorklund、M。、「A YANG Data Model for Interface Management」、RFC 8343、DOI 10.17487 / RFC8343、2018年3月、<https://www.rfc-editor.org/info/rfc8343>。

[RFC8446] Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 8446, DOI 10.17487/RFC8446, August 2018, <https://www.rfc-editor.org/info/rfc8446>.

[RFC8446] Rescorla、E。、「The Transport Layer Security(TLS)Protocol Version 1.3」、RFC 8446、DOI 10.17487 / RFC8446、2018年8月、<https://www.rfc-editor.org/info/rfc8446>。

[RFC8512] Boucadair, M., Ed., Sivakumar, S., Jacquenet, C., Vinapamula, S., and Q. Wu, "A YANG Module for Network Address Translation (NAT) and Network Prefix Translation (NPT)", RFC 8512, DOI 10.17487/RFC8512, January 2019, <https://www.rfc-editor.org/info/rfc8512>.

[RFC8512] Boucadair、M.、Ed。、Sivakumar、S.、Jacquenet、C.、Vinapamula、S.、and Q. Wu、 "A YANG Module for Network Address Translation(NAT)and Network Prefix Translation(NPT)" 、RFC 8512、DOI 10.17487 / RFC8512、2019年1月、<https://www.rfc-editor.org/info/rfc8512>。

6.2. Informative References
6.2. 参考引用

[ACL-YANG] Jethanandani, M., Agarwal, S., Huang, L., and D. Blair, "Network Access Control List (ACL) YANG Data Model", Work in Progress, draft-ietf-netmod-acl-model-21, November 2018.

[ACL-YANG] Jethanandani、M.、Agarwal、S.、Huang、L。、およびD. Blair、「Network Access Control List(ACL)YANG Data Model」、Work in Progress、draft-ietf-netmod-acl-モデル-21、2018年11月。

[RFC3022] Srisuresh, P. and K. Egevang, "Traditional IP Network Address Translator (Traditional NAT)", RFC 3022, DOI 10.17487/RFC3022, January 2001, <https://www.rfc-editor.org/info/rfc3022>.

[RFC3022] Srisuresh、P。およびK. Egevang、「Traditional IP Network Address Translator(Traditional NAT)」、RFC 3022、DOI 10.17487 / RFC3022、2001年1月、<https://www.rfc-editor.org/info/ rfc3022>。

[RFC6908] Lee, Y., Maglione, R., Williams, C., Jacquenet, C., and M. Boucadair, "Deployment Considerations for Dual-Stack Lite", RFC 6908, DOI 10.17487/RFC6908, March 2013, <https://www.rfc-editor.org/info/rfc6908>.

[RFC6908] Lee、Y.、Maglione、R.、Williams、C.、Jacquenet、C。、およびM. Boucadair、「Dual-Stack Liteの導入に関する考慮事項」、RFC 6908、DOI 10.17487 / RFC6908、2013年3月、< https://www.rfc-editor.org/info/rfc6908>。

[RFC7785] Vinapamula, S. and M. Boucadair, "Recommendations for Prefix Binding in the Context of Softwire Dual-Stack Lite", RFC 7785, DOI 10.17487/RFC7785, February 2016, <https://www.rfc-editor.org/info/rfc7785>.

[RFC7785] Vinapamula、S。およびM. Boucadair、「Softwire Dual-Stack Liteのコンテキストでのプレフィックスバインディングに関する推奨事項」、RFC 7785、DOI 10.17487 / RFC7785、2016年2月、<https://www.rfc-editor。 org / info / rfc7785>。

[RFC8340] Bjorklund, M. and L. Berger, Ed., "YANG Tree Diagrams", BCP 215, RFC 8340, DOI 10.17487/RFC8340, March 2018, <https://www.rfc-editor.org/info/rfc8340>.

[RFC8340] Bjorklund、M。およびL. Berger、編、「YANG Tree Diagrams」、BCP 215、RFC 8340、DOI 10.17487 / RFC8340、2018年3月、<https://www.rfc-editor.org/info/ rfc8340>。

[RFC8342] Bjorklund, M., Schoenwaelder, J., Shafer, P., Watsen, K., and R. Wilton, "Network Management Datastore Architecture (NMDA)", RFC 8342, DOI 10.17487/RFC8342, March 2018, <https://www.rfc-editor.org/info/rfc8342>.

[RFC8342] Bjorklund、M.、Schoenwaelder、J.、Shafer、P.、Watsen、K。、およびR. Wilton、「Network Management Datastore Architecture(NMDA)」、RFC 8342、DOI 10.17487 / RFC8342、2018年3月、< https://www.rfc-editor.org/info/rfc8342>。

[RFC8407] Bierman, A., "Guidelines for Authors and Reviewers of Documents Containing YANG Data Models", BCP 216, RFC 8407, DOI 10.17487/RFC8407, October 2018, <https://www.rfc-editor.org/info/rfc8407>.

[RFC8407] Bierman、A。、「YANGデータモデルを含むドキュメントの作成者とレビューアーのためのガイドライン」、BCP 216、RFC 8407、DOI 10.17487 / RFC8407、2018年10月、<https://www.rfc-editor.org/info / rfc8407>。

[YANG-PCP] Boucadair, M., Jacquenet, C., Sivakumar, S., and S. Vinapamula, "YANG Modules for the Port Control Protocol (PCP)", Work in Progress, draft-boucadair-pcp-yang-05, October 2017.

[YANG-PCP] Boucadair、M.、Jacquenet、C.、Sivakumar、S.、S。Vinapamula、「YANG Modules for the Port Control Protocol(PCP)」、Work in Progress、draft-boucadair-pcp-yang- 2017年10月5日。

Appendix A. B4 Example
付録A. B4の例

The following example shows a B4 element (2001:db8:0:1::1) that is configured with an AFTR element (2001:db8:0:2::1). The B4 element is also instructed to preserve the DSCP marking.

次の例は、AFTR要素(2001:db8:0:2 :: 1)で構成されたB4要素(2001:db8:0:1 :: 1)を示しています。 B4要素は、DSCPマーキングを保持するようにも指示されます。

   <interfaces>
     <interface>
       <name>myB4</name>
       <type>dslite:dslite</type>
       <enabled>true</enabled>
       <dslite:ipv6-address>
         2001:db8:0:1::1
       </dslite:ipv6-address>
       <dslite:aftr-ipv6-addr>
         2001:db8:0:2::1
       </dslite:aftr-ipv6-addr>
       <dslite:v6-v4-dscp-preservation>
         true
       </dslite:v6-v4-dscp-preservation>
     </interface>
   </interfaces>
        
Appendix B. AFTR Examples
付録B. AFTRの例

The following example shows an AFTR that is reachable at 2001:db8:0:2::1. Also, this XML snippet indicates that the AFTR is provided with an IPv4 address (192.0.0.1) to be used for troubleshooting purposes such as reporting problems to B4s.

次の例は、2001:db8:0:2 :: 1で到達可能なAFTRを示しています。また、このXMLスニペットは、AFTRにIPv4アドレス(192.0.0.1)が提供され、B4に問題を報告するなどのトラブルシューティングの目的で使用されることを示しています。

Note that a subscriber is identified by a subscriber-mask [RFC7785] that can be configured by means of [RFC8512].

加入者は、[RFC8512]で構成できる加入者マスク[RFC7785]で識別されることに注意してください。

   <interfaces>
     <interface>
       <name>myAFTR</name>
       <type>dslite:dslite</type>
       <enabled>true</enabled>
       <dslite:ipv6-address>2001:db8:0:2::1</dslite:ipv6-address>
       <dslite:ipv4-address>192.0.0.1</dslite:ipv4-address>
     </interface>
   </interfaces>
        

The following shows an XML excerpt depicting a dynamic UDP mapping entry maintained by a DS-Lite AFTR for a packet received from the B4 element introduced in Appendix A. Concretely, this UDP packet received with a source IPv6 address (2001:db8:0:1::1), a source IPv4 address (192.0.2.1), and a source port number (1568) is translated into a UDP packet having a source IPv4 address (198.51.100.1) and source port number (15000). The remaining lifetime of this mapping is 300 seconds.

以下は、付録Aで紹介されたB4要素から受信したパケットのDS-Lite AFTRによって維持される動的UDPマッピングエントリを示すXMLの抜粋です。具体的には、このUDPパケットはソースIPv6アドレス(2001:db8:0: 1 :: 1)、送信元IPv4アドレス(192.0.2.1)、および送信元ポート番号(1568)は、送信元IPv4アドレス(198.51.100.1)および送信元ポート番号(15000)を持つUDPパケットに変換されます。このマッピングの残りのライフタイムは300秒です。

   <mapping-entry>
     <index>15</index>
     <type>
       dynamic-explicit
     </type>
     <transport-protocol>
       17
     </transport-protocol>
     <dslite:b4-ipv6-address>
       <dslite:address>
         2001:db8:0:1::1
       </dslite:address>
     </dslite:b4-ipv6-address>
     <internal-src-address>
       192.0.2.1
     </internal-src-address>
     <internal-src-port>
       <start-port-number>
         1568
       </start-port-number>
     </internal-src-port>
     <external-src-address>
       198.51.100.1
     </external-src-address>
     <external-src-port>
       <start-port-number>
         15000
       </start-port-number>
     </external-src-port>
     <lifetime>
       300
     </lifetime>
   </mapping-entry>
        

Acknowledgements

謝辞

Thanks to Qin Wu, Benoit Claise, and Andy Bierman who helped to identify compiling errors. Mahesh Jethanandani provided early YANG Doctors reviews; many thanks to him.

コンパイルエラーの特定に協力してくれたQin Wu、Benoit Claise、Andy Biermanに感謝します。 Mahesh Jethanandaniが初期のYANG Doctorsレビューを提供しました。彼に感謝します。

Many thanks to Ian Farrer and Tom Petch for their reviews and comments.

Ian FarrerとTom Petchのレビューとコメントに感謝します。

Authors' Addresses

著者のアドレス

Mohamed Boucadair Orange Rennes 35000 France

Mohamed Boucadair Orange Rennes 35000フランス

   Email: mohamed.boucadair@orange.com
        

Christian Jacquenet Orange Rennes 35000 France

クリスチャンジャケネオレンジレンヌ35000フランス

   Email: christian.jacquenet@orange.com
        

Senthil Sivakumar Cisco Systems 7100-8 Kit Creek Road Research Triangle Park, North Carolina 27709 United States of America

Senthil Sivakumar Cisco Systems 7100-8 Kit Creek Road Research Triangle Park、North Carolina 27709 United States of America

   Phone: +1-919-392-5158
   Email: ssenthil@cisco.com