--- 1/draft-ietf-opsawg-nat-yang-09.txt 2018-01-17 01:13:08.228044277 -0800 +++ 2/draft-ietf-opsawg-nat-yang-10.txt 2018-01-17 01:13:08.384047967 -0800 @@ -1,26 +1,26 @@ Network Working Group M. Boucadair Internet-Draft Orange Intended status: Standards Track S. Sivakumar -Expires: May 19, 2018 Cisco Systems +Expires: July 20, 2018 Cisco Systems C. Jacquenet Orange S. Vinapamula Juniper Networks Q. Wu Huawei - November 15, 2017 + January 16, 2018 A YANG Data Model for Network Address Translation (NAT) and Network Prefix Translation (NPT) - draft-ietf-opsawg-nat-yang-09 + draft-ietf-opsawg-nat-yang-10 Abstract For the sake of network automation and the need for programming Network Address Translation (NAT) function in particular, a data model for configuring and managing the NAT is essential. This document defines a YANG module for the NAT function. NAT44, Network Address and Protocol Translation from IPv6 Clients to IPv4 Servers (NAT64), Customer-side transLATor (CLAT), Stateless IP/ @@ -48,25 +48,25 @@ 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 May 19, 2018. + This Internet-Draft will expire on July 20, 2018. Copyright Notice - Copyright (c) 2017 IETF Trust and the persons identified as the + Copyright (c) 2018 IETF Trust and the persons identified as the document authors. All rights reserved. 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 @@ -3119,25 +3119,26 @@ } container mappings-statistics { description "Mappings statistics."; leaf total-active-subscribers { if-feature "basic-nat44 or napt44 or nat64"; type yang:gauge32; description - "Total number of active subscribers (that is, subscribers - for which the NAT maintains active mappings. + "Total number of active subscribers (that is, + subscribers for which the NAT maintains active + mappings. - A subscriber is identified by a subnet, subscriber-mask, - etc."; + A subscriber is identified by a subnet, + subscriber-mask, etc."; } leaf total-address-mappings { if-feature "basic-nat44 or napt44 " + "or nat64 or clat or dst-nat"; type yang:gauge32; description "Total number of address mappings present at a given time. It includes both static and dynamic mappings."; reference @@ -3478,20 +3481,23 @@ Special thanks to Maros Marsalek and Marek Gradzki for sharing their comments based on the FD.io implementation of an earlier version of this module. Rajiv Asati suggested to clarify how the module applies for both stateless and stateful NAT64. Juergen Schoenwaelder provided an early yandgoctors review. Many thanks to him. + Thanks to Roni Even and Mach Chen for the directorates review. Igor + Ryzhov identified a nit in one example. + 7. References 7.1. Normative References [RFC3688] Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688, DOI 10.17487/RFC3688, January 2004, . [RFC4787] Audet, F., Ed. and C. Jennings, "Network Address Translation (NAT) Behavioral Requirements for Unicast @@ -3594,27 +3600,27 @@ 7.2. Informative References [I-D.boucadair-pcp-yang] Boucadair, M., Jacquenet, C., Sivakumar, S., and S. Vinapamula, "YANG Modules for the Port Control Protocol (PCP)", draft-boucadair-pcp-yang-05 (work in progress), October 2017. [I-D.ietf-netmod-yang-tree-diagrams] Bjorklund, M. and L. Berger, "YANG Tree Diagrams", draft- - ietf-netmod-yang-tree-diagrams-02 (work in progress), - October 2017. + ietf-netmod-yang-tree-diagrams-04 (work in progress), + December 2017. [I-D.ietf-softwire-dslite-yang] - Boucadair, M., Jacquenet, C., and S. Sivakumar, "YANG Data - Modules for Dual-Stack Lite (DS-Lite)", draft-ietf- - softwire-dslite-yang-09 (work in progress), November 2017. + Boucadair, M., Jacquenet, C., and S. Sivakumar, "A YANG + Data Module for Dual-Stack Lite (DS-Lite)", draft-ietf- + softwire-dslite-yang-14 (work in progress), January 2018. [I-D.ietf-tsvwg-natsupp] Stewart, R., Tuexen, M., and I. Ruengeler, "Stream Control Transmission Protocol (SCTP) Network Address Translation Support", draft-ietf-tsvwg-natsupp-11 (work in progress), July 2017. [RFC2663] Srisuresh, P. and M. Holdrege, "IP Network Address Translator (NAT) Terminology and Considerations", RFC 2663, DOI 10.17487/RFC2663, August 1999, @@ -3697,21 +3703,21 @@ 192.0.2.1 .... .... 192.0.2.1 .... - + The following shows the XML excerpt depicting a dynamic UDP mapping entry maintained by a traditional NAPT44. In reference to this example, the UDP packet received with a source IPv4 address (192.0.2.1) and source port number (1568) is translated into a UDP packet having a source IPv4 address (198.51.100.1) and source port (15000). The remaining lifetime of this mapping is 300 seconds.