[Docs] [txt|pdf] [Tracker] [Email] [Nits]

Versions: 00

IETF RTGWG                                                    Fangwei Hu
Internet-Draft                                              RongRong Hua
Intended status: Standards Track                         ZTE Corporation
Expires: February 22, 2019                                     Shujun Hu
                                                             Fengwei Qin
                                                            China Mobile
                                                         August 21, 2018


 YANG Data Model for Configuration Interface of Control-Plane and User-
                          Plane separation BNG
           draft-cuspdt-rtgwg-cu-separation-yang-model-00.txt

Abstract

   This document defines the YANG data model for operation management of
   Control-Plane and User-Plane separation BNG (Broadband Network
   Gateway).

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 February 22, 2019.

Copyright Notice

   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



Fangwei Hu, et al.      Expires February 22, 2019               [Page 1]


Internet-Draft         YANG for CU Separation BNG            August 2018


   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
   2.  Conventions used in this document . . . . . . . . . . . . . .   4
     2.1.  Terminology . . . . . . . . . . . . . . . . . . . . . . .   4
     2.2.  Requirements Language . . . . . . . . . . . . . . . . . .   4
   3.  Design Tree . . . . . . . . . . . . . . . . . . . . . . . . .   4
     3.1.  Yang Data model through Management Interfaces . . . . . .   4
     3.2.  YANG Data Model for vBNG-CP . . . . . . . . . . . . . . .   6
     3.3.  YANG Data Model for vBNG-UP . . . . . . . . . . . . . . .   7
   4.  vBNG YANG Data Model  . . . . . . . . . . . . . . . . . . . .   7
     4.1.  ietf-vbng module  . . . . . . . . . . . . . . . . . . . .   7
     4.2.  ietf-vbng-cp module . . . . . . . . . . . . . . . . . . .  12
     4.3.  ietf-vbng-up module . . . . . . . . . . . . . . . . . . .  20
   5.  Security Considerations . . . . . . . . . . . . . . . . . . .  22
   6.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .  24
   7.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  24
   8.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  25
     8.1.  Normative References  . . . . . . . . . . . . . . . . . .  25
     8.2.  Informative References  . . . . . . . . . . . . . . . . .  26
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  26

1.  Introduction

   The main idea of BNG Control-Plane and User-Plane separation is to
   extract and centralize the user management functions of multiple BNG
   devices, forming an unified and centralized control plane (CP), while
   the traditional router's Control Plane and forwarding plane are both
   preserved on BNG devices in the form of a user plane (UP).We name the
   control-Plane and User-plane separation BNG as vBNG.

   The architecture of Control-plane and user-plane separated BNG is
   shown as the following figure.















Fangwei Hu, et al.      Expires February 22, 2019               [Page 2]


Internet-Draft         YANG for CU Separation BNG            August 2018


                   +--------------------------------------+
                   |                                      |
                   |              vBNG-CP                 |
                   |                                      |
                   +----+--------------+--------------+---+
                        |              |              |
                Service |      Control |    Management|
               Interface|     Interface|     Interface|
                   |    |         |    |         |    |
                 VXLAN  |       CUSP   |       NETCONF|
                        |              |              |
                   +----+--------------+--------------+---+
                   |                                      |
                   |              vBNG-UP                 |
                   |                                      |
                   +-------------------+------------------+
                                       |
                                       |
                              +--------+--------+
                              |                 |
                              | Access Network  |
                              |                 |
                              +--------+--------+
                                       |
                                  +----+----+
                                  |         |
                                  |   User  |
                                  +---------+
                 Figure 1: Architecture of C/U separated BNG


   There are three interfaces between vBNG-CP and vBNG-UP: Service
   interface, control interface and management interface.  The service
   interface is used to carry PPPoE/IPoE dialup packets between user
   plane and control plane.  The requirement and possible solution is
   defined in the [I-D.huang-nvo3-vxlan-extension-for-vbras].  Control
   interface is used for setting forwarding entries of user plane
   through CUSP [I-D.cuspdt-rtgwg-cu-separation-bng-protocol] or other
   protocols.  Management interface is used by vBNG-CP to carry out
   related configurations of vBNG-UP through NETCONF protocol [RFC6241].

   This document defines the YANG data model for vBNG(vBNG-CP and vBNG-
   UP).  There are three types of YANG data model for vBNG in this
   document: The YANG data models for vBNG-CP, the YANG data models for
   vBNG-UP by network management directly, and the YANG data models for
   BGN-UP through the management interfaces among the vBNG-UP and vBNG-
   CP.




Fangwei Hu, et al.      Expires February 22, 2019               [Page 3]


Internet-Draft         YANG for CU Separation BNG            August 2018


2.  Conventions used in this document

2.1.  Terminology

   BNG: Broadband Network Gateway.  A broadband remote access server
   routes traffic to and from broadband remote access devices such as
   digital subscriber line access multiplexers (DSLAM) on an Internet
   service provider's (ISP) network.

   vBNG: Virtualization Broadband Network Gateway.  An vBNG is to
   extract and centralize the user management functions of multiple BNG
   devices, and to form an unified and centralized control plane (CP).
   The vBNG devices include vBNG-UP and vBNG-CP.

   vBNG-CP: vBNG Control Plane.  The vBNG-CP is a user control
   management component which support to manage UP's resources such as
   the user entry and forwarding policy.

   vBNG-UP: vBNG User Plane. vBNG-UP is a network edge and user policy
   implementation component.

2.2.  Requirements Language

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
   "OPTIONAL" in this document are to be interpreted as described in BCP
   14 [RFC2119] [RFC8174] when, and only when, they appear in all
   capitals, as shown here.

3.  Design Tree

3.1.  Yang Data model through Management Interfaces

   The vBNG-UP or vBNG-CP part can be a physical or virtualized network
   element.  The LNE model [I-D.ietf-rtgwg-lne-model] is augmented to
   define the YANG data models for vBNG-UP and vBNG-CP in this document.

   The YANG data model for vBNG through management interface includes
   vBNG-UP interface configuration, control channel and service channel
   configuration, ACL and QoS.

   The vBNG-UP interface configuration is to configure the basic
   interface informations of vBNG-UP element, such as interface name,
   the VLAN parameters for the sub-interface.

   The control channel is to configure the CUSP parameters.  The control
   channel parameters include: name, id, port, CUSP version, hello
   interval, dead time, and keepalive time.



Fangwei Hu, et al.      Expires February 22, 2019               [Page 4]


Internet-Draft         YANG for CU Separation BNG            August 2018


   The VXLAN tunnel is the suggestion service interface protocol between
   vBNG-CP and vBNG-UP.  The VXLAN tunnel parameters include: tunnel-
   source-ip,tunnel-destination-ip, vxlan-id, vxlan-tunnel-id, vxlan-
   tunnel-name, etc.

   The ACL information includes ipv4-acl,ipv6-acl,link-acl,etc.  The
   YANG data model for ACL refers to [I-D.ietf-netmod-acl-model]

   The QoS information includes IP-DSCP, MPLS,VPLS, VPWS etc.  The YANG
   data model for QoS refers to [I-D.asechoud-rtgwg-qos-model]

    module: ietf-vbng
      augment /lne:logical-network-elements/lne:logical-network-element:
       +--rw ietf-vbng
           +--rw interfaces
           |  +--rw interface* [name]
           |     +--rw name      if:interface-ref
           |     +--rw ethernet
           |     |  +--rw lacp?   boolean
           |     +--rw mac-offset?   uint32
           |     +--rw vlans
           |        +--rw tag* [index]
           |           +--rw index    uint8
           |           +--rw tag
           |              +--rw tag-type?   string
           |              +--rw vlan-id?    vlan-id
           +--rw control-channel
           |  +--rw name?            string
           |  +--rw id?              uint32
           |  +--rw port?            uint32
           |  +--rw version          uint8
           |  +--rw hellointerval    uint32
           |  +--rw deadtime         uint32
           |  +--rw keepalivetime    uint32
           +--rw service-channel* [vxlan-tunnel-id]
           |  +--rw vxlan-tunnel-id      uint32
           |  +--rw vxlan-tunnel-name?   string
           |  +--rw address-family* [af]
           |     +--rw af                       address-family-type
           |     +--rw tunnel-source-ip?        inet:ip-address
           |     +--rw tunnel-destination-ip?   inet:ip-address
           |     +--rw bind-vxlan-id* [vxlan-id]
           |        +--rw vxlan-id    vxlan-id
           +--rw acl
           ... ...
           +--rw qos
           ... ...




Fangwei Hu, et al.      Expires February 22, 2019               [Page 5]


Internet-Draft         YANG for CU Separation BNG            August 2018


3.2.  YANG Data Model for vBNG-CP

   The ietf-vbng-cp module is to configure vBNG-CP.  The YANG data model
   includes: vbng-cp-name, netconf-server and PPPoE parameters, etc.

    module: ietf-vbng-cp
     augment /lne:logical-network-elements/lne:logical-network-element:
       +--rw ietf-vbng-cp
          +--rw vbng-cp-name?      string
          +--rw enable?           boolean
          +--rw netconf-server!
          |  +--rw address-family* [af]
          |  |  +--rw af    address-family-type
          |  |  +--rw ip    inet:ip-address
          |  +--rw user-name?        string
          |  +--rw password?         string
          |  +--rw port?             uint32
          +--rw vbng-pppoe
             +--rw pppoe-switch
             |  +--rw delay-time?             uint16
             |  +--rw keepalive-timer?        enumeration
             |  +--rw ppp-max-payload?        enumeration
             |  +--rw service?                enumeration
             |  +--rw ppp-mru-verify?         enumeration
             |  +--rw keepalive-fast-reply?   enumeration
             +--rw pppoe-cfg* [template]
                +--rw template                    uint32
                +--rw ppp-authentication?         enumeration
                +--rw ppp-check-magic-num?        enumeration
                +--rw ppp-mru?                    uint32
                +--rw pppoe-ac-name?              string
                +--rw pppoe-service-name-omit?    enumeration
                +--rw pppoe-ac-cookie-check?      enumeration
                +--rw pppoe-password-string?      string
                +--rw pppoe-username-string?      string
                +--rw (ppp-quick-redial)?
                |  +--:(quick-redial-disable)
                |  |  +--rw ppp-quick-redial-disable?   enumeration
                |  +--:(fast-response)
                |     +--rw ppp-fast-response?          enumeration
                |     +--rw ppp-quick-redial-enable?    enumeration
                +--rw ppp-keepalive
                |  +--rw ppp-keepalive-timer?   uint32
                |  +--rw ppp-keepalive-count?   uint16
                +--rw ppp-timeout
                   +--rw ppp-timeout-negtimeoutsec?    uint8
                   +--rw ppp-timeout-authentication?   uint8




Fangwei Hu, et al.      Expires February 22, 2019               [Page 6]


Internet-Draft         YANG for CU Separation BNG            August 2018


3.3.  YANG Data Model for vBNG-UP

   The ietf-vbng-up module is to configure the vBNG-UP.  The YANG data
   model includes: shelf-number, vbng-up-name, netconf-client and
   keepalive-sink , etc.

    module: ietf-vbng-up
     augment /lne:logical-network-elements/lne:logical-network-element:
       +--rw ietf-vbng-up
          +--rw vbng-up* [shelf-no]
             +--rw shelf-no          uint8
             +--rw vbng-up-name?     string
             +--rw netconf-client!
             |  +--rw address-family* [af]
             |  |  +--rw af    address-family-type
             |  |  +--rw ip    inet:ip-address
             |  +--rw user-name?        string
             |  +--rw password?         string
             |  +--rw port?             uint32
             +--rw keepalive-sink?   enumeration


4.  vBNG YANG Data Model

4.1.  ietf-vbng module


   <CODE BEGINS> file "ietf-vbng@2018-08-02.yang"
    module ietf-vbng{
    namespace "urn:ietf:params:xml:ns:yang:ietf-vbng";
    prefix "vbng";

    import ietf-inet-types {
       prefix "inet";
     }

    import ietf-interfaces {
      prefix if;
     }

    import ietf-logical-network-element {
      prefix lne;
    }

    organization
      "IETF NETCONF Working Group";

      contact



Fangwei Hu, et al.      Expires February 22, 2019               [Page 7]


Internet-Draft         YANG for CU Separation BNG            August 2018


       "
         WG List:  <mailto:netconf@ietf.org>

         Editor:   Fangwei Hu
                   <mailto:hu.fangwei@zte.com.cn>
        ";

    description
       "The YANG module defines a generic configuration
         model for vbng";

    revision 2018-08-02{
      description "Initial a new vbng control and user plane separation
          yang data model, the yang data model includes ietf-vbng, ietf-vbng-cp,and ietf-vbng-up,
          this module is ietf-vbng";
      reference
         "draft-cuspdt-rtgwg-cu-separation-yang-model-00";
    }

   /* Typedefs  */

     typedef vlan-id {
      type uint16 {
        range "0..4094";
      }
      description
        "Typedef for VLAN ID.";
    }

    typedef vxlan-id {
      type uint32;
      description
        "Typedef for VxLAN ID.";
    }

     typedef address-family-type {
       type enumeration {
         enum ipv4 {
           description
             "IPv4";
         }
         enum ipv6 {
           description
             "IPv6";
         }
       }
       description
         "Typedef for address family type.";



Fangwei Hu, et al.      Expires February 22, 2019               [Page 8]


Internet-Draft         YANG for CU Separation BNG            August 2018


     }

    /* Configuration Data */

    augment /lne:logical-network-elements/lne:logical-network-element {
    container ietf-vbng{
        container interfaces {
          list interface {
            key name;
            leaf name {
               type if:interface-ref;
               description "interface name";
              }
            container ethernet {
              leaf lacp {
               type boolean;
               description "enable lacp function";
               }
               description "configure ethernet interface";
              }
            leaf mac-offset {
               type uint32;
               description "configure mac offset";
              }
            container vlans {
                list tag {
                    key index;
                    max-elements 2;
                    leaf index {
                       type uint8 {
                         range "0..1";
                     }
                     must ". = 0 or
                       count(../../tag[index = 0]/index) > 0" {
                       error-message "An inner tag can only be specified if an
                                outer tag has also been specified";
                      description "Ensure that an inner tag cannot be
                              specified without an outer tag'";
                      }

                     description "The index into the tag stack, outermost tag
                            assigned index 0";
                    }

                    container tag{
                      leaf tag-type {
                         type string;
                         description "tag type";



Fangwei Hu, et al.      Expires February 22, 2019               [Page 9]


Internet-Draft         YANG for CU Separation BNG            August 2018


                         }
                      leaf vlan-id {
                        type vlan-id;
                        description "vlan id value";
                       }

                   description "tag";
                   }
                  description "tag list";
                }
              description "vlans";
            }
           description "interfaces list";
          }
         description "interface container";
        }

        container control-channel {
          leaf name {
            type string;
            description "control channel protocol logical name";
          }
          leaf id {
            type uint32;
            description "the cusp session id";
          }
          leaf port {
            type uint32;
            description "cusp tcp connection port number";
          }
          leaf version {
            type uint8;
            description "cusp version number";
          }
          leaf hellointerval {
            type uint32;
            description "cusp hello interval";
          }
          leaf deadtime {
            type uint32;
            description "cusp dead time";
          }
          leaf keepalivetime {
            type uint32;
            description "cusp keepalive time";
          }

          description "configure cusp parameters";



Fangwei Hu, et al.      Expires February 22, 2019              [Page 10]


Internet-Draft         YANG for CU Separation BNG            August 2018


        }

        list service-channel{
            key vxlan-tunnel-id;
            leaf vxlan-tunnel-id {
               type uint32;
               description
                     "Static VxLAN tunnel ID.";
            }

            leaf vxlan-tunnel-name {
               type string;
               description
               "Name of the static VxLAN tunnel.";
            }

            list address-family {
               key "af";
               leaf af {
                 type address-family-type;
                 description
                 "Address family type value.";
               }

               leaf tunnel-source-ip {
                 type inet:ip-address;
                 description
                 "Source IP address for the static VxLAN tunnel";
               }

               leaf tunnel-destination-ip {
                  type inet:ip-address;
                  description
                   "Destination IP address for the static VxLAN tunnel";
               }

               list bind-vxlan-id {
                  key vxlan-id;
                  leaf vxlan-id {
                    type vxlan-id;
                    description
                       "VxLAN ID.";
                  }
                  description
                     "VxLAN ID list for the VTEP.";
               }

                description



Fangwei Hu, et al.      Expires February 22, 2019              [Page 11]


Internet-Draft         YANG for CU Separation BNG            August 2018


                   "Per-af params.";
             }
            description
              "Configure VxLAN channel";
        }
       description "ietf-bng configuration!";
    }
   description "augment lne model";
  }
}
 <CODE ENDS>

4.2.  ietf-vbng-cp module


   <CODE BEGINS> file "ietf-vbng@2018-08-02.yang"
    module ietf-vbng-cp{
    namespace "urn:ietf:params:xml:ns:yang:ietf-vbng-cp";
    prefix "vbng-cp";

    import ietf-inet-types {
       prefix "inet";
     }

    import ietf-interfaces {
      prefix if;
     }

    import ietf-logical-network-element {
      prefix lne;
    }

    organization
      "IETF NETCONF Working Group";

      contact
       "
         WG List:  <mailto:netconf@ietf.org>

         Editor:   Fangwei Hu
                   <mailto:hu.fangwei@zte.com.cn>
        ";

    description
       "The YANG module defines a generic configuration
         model for vbng-cp";

    revision 2018-08-02{



Fangwei Hu, et al.      Expires February 22, 2019              [Page 12]


Internet-Draft         YANG for CU Separation BNG            August 2018


      description "Initial a new vbng control and user plane separation
      yang data model, the yang data model includes ietf-vbng, ietf-vbng-cp,and ietf-vbng-up, this module
      is ietf-vbng-cp";
      reference
         "draft-cuspdt-rtgwg-cu-separation-yang-model-00";
    }

   /* Typedefs  */

     typedef address-family-type {
       type enumeration {
         enum ipv4 {
           description
             "IPv4";
         }
         enum ipv6 {
           description
             "IPv6";
         }
       }
       description
         "Typedef for address family type.";
     }

    /* Configuration Data */

    augment /lne:logical-network-elements/lne:logical-network-element {
     container ietf-vbng-cp{
       leaf bng-cp-name  {
       type string;
       description "configure vbng-cp name";
     }
      leaf enable  {
       type boolean;
       description "'true' to support vbng control plane and user plane separation";
      }
     container netconf-server {
        presence netconf-server ;
        list address-family {
           key "af";
           leaf af {
              type address-family-type;
              description
                "Address family type value.";
           }
           leaf ip {
            type inet:ip-address;
            mandatory true ;



Fangwei Hu, et al.      Expires February 22, 2019              [Page 13]


Internet-Draft         YANG for CU Separation BNG            August 2018


            description 'Configure ip address of netconf server.';
           }
            description "address family list";
        }
        leaf user-name {
          type string {
            length 1..65 ;
          }
         description 'configure user name, default: "who".';
        }
        leaf password {
          type string {
           length 3..32 ;
          }
        description 'configure password, default: "who".';
        }

        leaf port {
          type uint32;
          description 'Configure port.';
        }
         description 'Configure netconf server.';
     }
     container vbng-pppoe {
      container pppoe-switch {
        leaf delay-time {
          type uint16 {
            range 1..300 ;
          }
          description 'Trigger user offline when VCC phys-interface down';
        }
        leaf keepalive-timer {
          type enumeration {
            enum start {
              value 1 ;
              description "start keepalive timer";
            }
            enum stop {
              value 0 ;
              description "stop keepalive timer";
            }
          }
          default start ;
          description 'Start or stop send keepalive packet';
        }
        leaf ppp-max-payload {
          type enumeration {
            enum disable {



Fangwei Hu, et al.      Expires February 22, 2019              [Page 14]


Internet-Draft         YANG for CU Separation BNG            August 2018


              value 0 ;
              description "disable ppp max payload";
            }
            enum enable {
              value 1 ;
              description "enable ppp max payload";
            }
          }
          default disable ;
          description 'Enable or disable pppoe ppp-max-payload';
        }
        leaf service {
          type enumeration {
            enum advertise{
              value 1 ;
              description "enable ppp service!";
            }
            enum disable {
              value 0 ;
              description "disable ppp service!";
            }
          }
          default advertise ;
           description 'Open or close pppoe service';
        }
        leaf ppp-mru-verify {
          type enumeration {
            enum open {
              value 1 ;
              description "enable ppp mru verify!";
            }
            enum close {
              value 0 ;
              description "disable ppp mru!";
            }
          }
          default close ;
          description 'set ppp lcp mru verify when mru over 1492';
        }

        leaf keepalive-fast-reply {
          type enumeration {
            enum enable {
              value 1 ;
              description 'Enable keepalive fast reply!';
            }
            enum disable {
              value 0 ;



Fangwei Hu, et al.      Expires February 22, 2019              [Page 15]


Internet-Draft         YANG for CU Separation BNG            August 2018


              description 'Disable keepalive fast reply!';
            }
          }
          description 'Set keepalive fast reply flag.';
        }
        description 'Configuration about pppoe switch.';
      }
      list pppoe-cfg {
        key template ;
        leaf template {
          type uint32 {
            range 1..1000 ;
          }
          description 'PPPoX template number';
        }
        leaf ppp-authentication {
          type enumeration {
            enum pap {
              value 1 ;
              description "configure pap authentication!";
            }
            enum chap {
              value 2 ;
              description "configure chap authentication!";
            }
            enum mschapv1 {
              value 6 ;
              description "configure mschapv1 authentication!";
            }
            enum mschapv2 {
              value 7 ;
              description "configure mschapv2 authentication!";
            }
            enum pap-chap {
              value 21 ;
              description "configure pap-chap authentication!";
            }
          }
          default pap-chap ;
          description 'Set ppp authentication';
        }
        leaf ppp-check-magic-num {
          type enumeration {
            enum disable {
              value 0 ;
              description 'disable ppp magic check';
            }
            enum enable {



Fangwei Hu, et al.      Expires February 22, 2019              [Page 16]


Internet-Draft         YANG for CU Separation BNG            August 2018


              value 1 ;
              description 'enable ppp magic check';
            }
          }
          default enable ;
          description 'Check magic number or not';
        }
        leaf ppp-mru {

          type uint32 {
            range 320..9000 ;
          }
          default 1492 ;
          description 'Set mru value';
        }
        leaf pppoe-ac-name {
          type string ;
          description 'Set ac-name';
        }
        leaf pppoe-service-name-omit {
          type enumeration {
            enum disable {
              value 0 ;
              description "disable pppoe service name omit";
            }
            enum enable {
              value 1 ;
              description "enable pppoe service name omit";
            }
          }
          default disable ;
          description 'Check service-name value';
        }
        leaf pppoe-ac-cookie-check {
          type enumeration {
            enum disable {
              value 0 ;
              description "disable pppoe ac cookie check";
            }
            enum enable {
              value 1 ;
              description "enable pppoe ac cookie check";
            }
          }
          default enable ;
          description 'Check options';
        }
        leaf pppoe-password-string {



Fangwei Hu, et al.      Expires February 22, 2019              [Page 17]


Internet-Draft         YANG for CU Separation BNG            August 2018


          type string ;
          description 'Set authen fail password error string';
        }
        leaf pppoe-username-string {
          type string ;
          description 'Set authen fail username error string';
        }

        choice ppp-quick-redial {
          case quick-redial-disable {
            leaf ppp-quick-redial-disable {
              type enumeration {
                enum disable {
                  value 0 ;
                  description "disable ppp quick redial";
                }
              }
              default disable ;
              description 'disable quick-redial';
            }
            description 'disable quick-redial';
          }
          case fast-response {
            leaf ppp-fast-response {
              type enumeration {
                enum diable {
                  value 0 ;
                   description "disable ppp fast response";
                }
                enum enable {
                  value 1 ;
                  description "enable ppp fast response";
                }
              }
              description 'set Response the access request immediately';
            }
            leaf ppp-quick-redial-enable {
              type enumeration {
                enum enable {
                  value 1 ;
                  description "enable ppp quick redial";
                }
              }
              default enable ;
              description 'Enable quick-redial';
            }
            description 'set quick-redial or Response the access request immediately';
          }



Fangwei Hu, et al.      Expires February 22, 2019              [Page 18]


Internet-Draft         YANG for CU Separation BNG            August 2018


          default quick-redial-disable ;
          description 'Enable or disable quick-redial';
        }
        container ppp-keepalive {
          leaf ppp-keepalive-timer {
            type uint32 {
              range 10..14400 ;
            }
            default 60 ;
            description 'Set keepalive time(unit:seconds)';
          }
          leaf ppp-keepalive-count {
            type uint16 {
              range 1..10 ;
            }
            default 3 ;
            description 'Set keepalive counter';
          }
         description 'Set keepalive time and counter';
        }
        container ppp-timeout {
          leaf ppp-timeout-negtimeoutsec {
            type uint8 {
              range 1..10 ;
            }
            default 3 ;
            description 'Set ppp negtimeoutsec timeout(unit:seconds)';
          }
          leaf ppp-timeout-authentication {
            type uint8 {
              range 1..10 ;
            }
            default 3 ;
            description 'Set ppp authentication timeout(unit:seconds)';
          }
         description 'Set ppp negtimeoutsec and authentication timeout';
        }
        description 'Configuration pppoe template';
      }
      description 'Configuration vBRAS PPPoE.';
    }
     description "configure bng-cp";
  }
  description "ietf-bng configuration!";
  }
  description "augment lne model";
 }
 <CODE ENDS>



Fangwei Hu, et al.      Expires February 22, 2019              [Page 19]


Internet-Draft         YANG for CU Separation BNG            August 2018


4.3.  ietf-vbng-up module


    module ietf-vbng-up{
    namespace "urn:ietf:params:xml:ns:yang:ietf-vbng-up";
    prefix "vbng-up";

    import ietf-inet-types {
       prefix "inet";
     }

    import ietf-logical-network-element {
      prefix lne;
    }

    organization
      "IETF NETCONF Working Group";

      contact
       "
         WG List:  <mailto:netconf@ietf.org>

         Editor:   Fangwei Hu
                   <mailto:hu.fangwei@zte.com.cn>
        ";

    description
       "The YANG module defines a generic configuration
         model for vbng";

    revision 2018-08-02{
      description "Initial a new vbng control and user plane separation
      yang data model, the yang data model includes ietf-vbng, ietf-vbng-cp,and ietf-vbng-up, this module
      is ietf-vbng-up";
      reference
         "draft-cuspdt-rtgwg-cu-separation-yang-model-00";
    }

   /* Typedefs  */

     typedef address-family-type {
       type enumeration {
         enum ipv4 {
           description
             "IPv4";
         }
         enum ipv6 {
           description



Fangwei Hu, et al.      Expires February 22, 2019              [Page 20]


Internet-Draft         YANG for CU Separation BNG            August 2018


             "IPv6";
         }
       }
       description
         "Typedef for address family type.";
     }

    /* Configuration Data */

    augment /lne:logical-network-elements/lne:logical-network-element {
    container ietf-vbng-up{
      list vbng-up {
        key shelf-no ;
        leaf shelf-no {
          type uint8 {
            range 1..127 ;
          }
          description 'Configure shelf-no of forwarder,1-127.';
        }

        leaf vbng-up-name {
          type string {
            length 1..31 ;
          }
          description 'Configure bng up name.' ;
        }
        container netconf-client {
          presence netconf-client ;
          list address-family {
           key "af";
           leaf af {
              type address-family-type;
              description
                "Address family type value.";
           }
           leaf ip {
            type inet:ip-address;
            mandatory true ;
            description 'Configure ip address of netconf server.';
           }
           description "address family list";
          }
          leaf user-name {
            type string {
              length 1..65 ;
            }
            description 'configure user name, default: "who".';
          }



Fangwei Hu, et al.      Expires February 22, 2019              [Page 21]


Internet-Draft         YANG for CU Separation BNG            August 2018


          leaf password {
            type string {
              length 3..32 ;
            }
            description 'configure password, default: "who".';
          }

          leaf port {
            type uint32;
            description 'Configure port.';
          }
         description 'Configure netconf server.';
        }

        leaf keepalive-sink {
          type enumeration {
            enum enable {
              value 1 ;
              description 'enable the keepalive-sink function';
            }
            enum disable {
              value 0 ;
              description 'disable keepalive-sink function';
            }
          }
          description "configure keepalive-sink";
         }
         description "configure vbng-up list";
        }
      description "vbng-up configuration!";
    }
    description "augment lne model";
   }
  }
  <CODE ENDS>

5.  Security Considerations

   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
   [RFC5246].

   The NETCONF access control model [RFC6536] provides the means to
   restrict access for particular NETCONF or RESTCONF users to a



Fangwei Hu, et al.      Expires February 22, 2019              [Page 22]


Internet-Draft         YANG for CU Separation BNG            August 2018


   preconfigured subset of all available NETCONF or RESTCONF protocol
   operations and content.

   vBNG(vBNG-CP, vBNG-UP) represents device and network configuration
   information based on the LNE.  As such, the security of this
   information is important, but it is fundamentally no different than
   any other interface or device configuration information that has
   already been covered in other documents such as
   [I-D.ietf-rtgwg-lne-model].

   The vulnerable "config true" parameters and subtree are the
   following:

   lne:logical-network-elements/lne:logical-network-element/ietf-vbng/
   interfaces: this subtree specifies vBNG-UP interface parameters
   configuration.  Modify the configuration can cause the vBNG-UP
   interfaces disable.

   lne:logical-network-elements/lne:logical-network-element/ietf-vbng/
   control-channel: this subtree specifies control channel parameters
   configuration.  Modify the configuration can cause the CUSP protocol
   sessions interrupted among the vBNG-CPs and vBNG-UPs.

   lne:logical-network-elements/lne:logical-network-element/ietf-vbng/
   service-channel: this subtree specifies the service channel
   parameters configuration among vbng user planes and control plane.
   Modify the configuration can cause the VxLAN session interrupted
   among vBGN-UPs and vBNG-CPs.

   lne:logical-network-elements/lne:logical-network-element/ietf-vbng-
   cp/netconf-server: this subtree specifies netconf parameters of vBNG-
   CP.  Modify the configuration can cause the netconf session among
   vBNG-CPs and vBNG-UPs interrupted.

   lne:logical-network-elements/lne:logical-network-element/ietf-vbng-
   cp/vbng-pppoe: this subtree specifies PPPoE parameters of vBNG-CP.
   Modify the configuration can cause the PPPoE session interrupted.

   lne:logical-network-elements/lne:logical-network-element/ietf-vbng-
   cp/netconf-client: this subtree specifies netconf parameters of vBNG-
   UP.  Modify the configuration can cause the netconf session among
   vBNG-CP and vBNG-UP interrupted.

   Unauthorized access to any of these lists can adversely affect the
   security of both the local device and the network.  This may lead to
   network malfunctions, delivery of packets to inappropriate
   destinations, and other problems.




Fangwei Hu, et al.      Expires February 22, 2019              [Page 23]


Internet-Draft         YANG for CU Separation BNG            August 2018


6.  Acknowledgements

7.  IANA Considerations

   This document registers three URI in the IETF XML registry [RFC3688].
   Following the format in [RFC3688], the following registrations are
   requested to be made.

   URI: urn:ietf:params:xml:ns:yang:ietf-vbng.

   Registrant Contact: The IESG.

   XML: N/A, the requested URI is an XML namespace.

   URI: urn:ietf:params:xml:ns:yang:ietf-vbng-cp.

   Registrant Contact: The IESG.

   XML: N/A, the requested URI is an XML namespace.

   URI: urn:ietf:params:xml:ns:yang:ietf-vbng-up.

   Registrant Contact: The IESG.

   XML: N/A, the requested URI is an XML namespace.

   This document registers three YANG modules in the YANG Module Names
   registry [RFC6020].

      name:        ietf-vbng
      namespace:   urn:ietf:params:xml:ns:yang:ietf-vbng
      prefix:      vbng
      reference:   RFC XXXX

      name:        ietf-vbng
      namespace:   urn:ietf:params:xml:ns:yang:ietf-vbng-cp
      prefix:      vbng-cp
      reference:   RFC XXXX

      name:        ietf-vbng
      namespace:   urn:ietf:params:xml:ns:yang:ietf-vbng-up
      prefix:      vbng-up
      reference:   RFC XXXX








Fangwei Hu, et al.      Expires February 22, 2019              [Page 24]


Internet-Draft         YANG for CU Separation BNG            August 2018


8.  References

8.1.  Normative References

   [I-D.asechoud-rtgwg-qos-model]
              Choudhary, A., Jethanandani, M., Strahle, N., Aries, E.,
              and I. Chen, "YANG Model for QoS", draft-asechoud-rtgwg-
              qos-model-07 (work in progress), July 2018.

   [I-D.ietf-netmod-acl-model]
              Jethanandani, M., Huang, L., Agarwal, S., and D. Blair,
              "Network Access Control List (ACL) YANG Data Model",
              draft-ietf-netmod-acl-model-19 (work in progress), April
              2018.

   [I-D.ietf-rtgwg-lne-model]
              Berger, L., Hopps, C., Lindem, A., Bogdanovic, D., and X.
              Liu, "YANG Model for Logical Network Elements", draft-
              ietf-rtgwg-lne-model-10 (work in progress), March 2018.

   [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119,
              DOI 10.17487/RFC2119, March 1997,
              <https://www.rfc-editor.org/info/rfc2119>.

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

   [RFC5246]  Dierks, T. and E. Rescorla, "The Transport Layer Security
              (TLS) Protocol Version 1.2", RFC 5246,
              DOI 10.17487/RFC5246, August 2008,
              <https://www.rfc-editor.org/info/rfc5246>.

   [RFC6020]  Bjorklund, M., Ed., "YANG - A Data Modeling Language for
              the Network Configuration Protocol (NETCONF)", RFC 6020,
              DOI 10.17487/RFC6020, October 2010,
              <https://www.rfc-editor.org/info/rfc6020>.

   [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>.

   [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>.




Fangwei Hu, et al.      Expires February 22, 2019              [Page 25]


Internet-Draft         YANG for CU Separation BNG            August 2018


   [RFC6536]  Bierman, A. and M. Bjorklund, "Network Configuration
              Protocol (NETCONF) Access Control Model", RFC 6536,
              DOI 10.17487/RFC6536, March 2012,
              <https://www.rfc-editor.org/info/rfc6536>.

   [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>.

   [RFC8174]  Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
              2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
              May 2017, <https://www.rfc-editor.org/info/rfc8174>.

8.2.  Informative References

   [I-D.cuspdt-rtgwg-cu-separation-bng-protocol]
              Hu, S., Wang, Z., Qin, F., Li, Z., Song, J., and T. Chua,
              "Control-Plane and User-Plane separation BNG control
              channel Protocol", draft-cuspdt-rtgwg-cu-separation-bng-
              protocol-01 (work in progress), July 2018.

   [I-D.huang-nvo3-vxlan-extension-for-vbras]
              Huang, L. and S. Hu, "VxLAN Extension Requirement for
              Signaling Exchange Between Control and User Plane of
              vBras", draft-huang-nvo3-vxlan-extension-for-vbras-00
              (work in progress), March 2017.

Authors' Addresses

   Fangwei Hu
   ZTE Corporation
   No.889 Bibo Rd
   Shanghai  201203
   China

   Phone: +86 21 68896273
   Email: hu.fangwei@zte.com.cn


   RongRong Hua
   ZTE Corporation
   No.50 Software Avenue,Yuhuatai District
   Nanjing, Jiangsu Province  210012
   China

   Email: hua.rongrong@zte.com.cn





Fangwei Hu, et al.      Expires February 22, 2019              [Page 26]


Internet-Draft         YANG for CU Separation BNG            August 2018


   Shujun Hu
   China Mobile
   32 Xuanwumen West Ave, Xicheng District
   Beijing  100053
   China

   Email: shujun_hu@outlook.com


   Fengwei Qin
   China Mobile
   32 Xuanwumen West Ave, Xicheng District
   Beijing, Beijing  100053
   China

   Email: qinfengwei@chinamobile.com



































Fangwei Hu, et al.      Expires February 22, 2019              [Page 27]


Html markup produced by rfcmarkup 1.128, available from https://tools.ietf.org/tools/rfcmarkup/