<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd"[
<!ENTITY RFC2119 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC2629 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2629.xml">
<!ENTITY RFC6020 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6020.xml">
<!ENTITY RFC3688 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3688.xml">
<!ENTITY RFC5357 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5357.xml">
<!ENTITY RFC6241 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6241.xml">
<!ENTITY RFC6242 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6242.xml">
<!ENTITY RFC6536 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6536.xml">
<!ENTITY RFC7750 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.7750.xml">

<!ENTITY I-D.ietf-ippm-twamp-yang SYSTEM "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.draft-ietf-ippm-twamp-yang-00.xml">

]>
<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="3"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>

<rfc category="std" ipr="trust200902" docName="draft-mirsky-ippm-twamp-light-yang-03">

<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>

<front>
	<title abbrev='TWAMP Light data model'>Two-Way Active Measurement Protocol (TWAMP) Light Data Model</title>

	<author initials='G.' surname="Mirsky" fullname='Greg Mirsky'>
		<organization>Ericsson</organization>
		<address>
			<email>gregory.mirsky@ericsson.com</email>
		</address> 
	</author>

<!--
	<author initials='T.' surname="Elteto" fullname='Tamas Elteto'>
		<organization>Ericsson</organization>
		<address>
			<email>tamas.elteto@ericsson.com</email>
		</address> 
	</author>
-->
	<author initials='A.' surname="Pan" fullname='Adrain Pan'>
		<organization>Ericsson</organization>
		<address>
			<email>adrian.pan@ericsson.com</email>
		</address> 
	</author>
	
    <date day="28" month="June" year="2016"/>

    <area>Transport</area>

    <workgroup>Network Working Group</workgroup>

    <keyword>Internet-Draft</keyword>

   <keyword>IPPM</keyword>
   
   <keyword>TWAMP </keyword>
   
   <keyword>YANG</keyword>
	
	<abstract>
	<t>
	This document specifies the data model for implementations of Session-Sender and Session-Reflector
	for Two-Way Active Measurement Protocol (TWAMP) Light mode using YANG.
	 </t>
	</abstract>

</front>

<middle>

<section anchor="intro" title="Introduction">
   <t>
   The Two-Way Active Measurement Protocol (TWAMP) <xref target="RFC5357"/> can be used
   to measure performance parameters of IP networks such as latency, jitter,
   and packet loss by sending test packets and monitoring their
   experience in the network.  The <xref target="RFC5357"/> defines two protocols, TWAMP Control and TWAMP Test,
   and a profile of TWAMP Test, TWAMP Light. The TWAMP Light is known to have many implementations
   though no common management framework being defined, thus leaving some aspects of test packet
   processing to interpretation. The goal of this document is to collect analyze these variations; describe common
   model while allowing for extensions in the future. This document defines such a TWAMP data model
   and specifies it formally using the YANG data modeling language <xref target="RFC6020"/>.
   </t>

     <section title="Conventions used in this document">
<!--
         <section title="Terminology">

           <t>IPPM:      IP Performance Measurement
</t>

           <t>TWAMP:  Two-Way Active Measurement Protocol
</t>
  
         </section>    
         
-->
        <section title="Requirements Language">
             <t>
	  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 
	  <xref target="RFC2119"/>.
             </t>
             </section>
      </section>
      </section>
   
         <section anchor="scope-model-applicability" title="Scope, Model, and Applicability">
          <t>
          The scope of this document includes model of the TWAMP Light as defined in Appendix I of
          <xref target="RFC5357"/>. This mode of TWAMP Light
          will be referred in this document as Stateless. Another mode, where the Session-Reflector
          is aware of the state of the TWAMP test session and thus can independently count reflected test packets,
          referred as Stateful. This document benefits from earlier
          attempt to define TWAMP MIB in <xref target="I-D.elteto-ippm-twamp-mib"/> and from 
          TWAMP YANG model defined in <xref target="I-D.ietf-ippm-twamp-yang"/>.
          </t>
          
<t>
          <xref target="TWAMP-light"/> updates TWAMP-Light reference model presented in Appendix I <xref target="RFC5357"/>
          for the scenario when instantiation of a TWAMP-Test session between Session-Sender and Session-Reflector
          controlled by communication between a Configuration Client as a manager and Configuration Servers as agents
          
of the configuration session.
          
</t>

         <figure align="left" anchor="TWAMP-light"
                title="TWAMP Light Reference Model">
          <artwork>
          <![CDATA[   
      o----------------------------------------------------------o
      |                        Config client                     |
      o----------------------------------------------------------o
            ||                                          ||
            ||             NETCONF/RESTCONF             ||
            ||                                          ||
   o-------------------o                       o-------------------o
   |   Config server   |                       |   Config server   |
   |                   |                       |                   |
   +-------------------+                       +-------------------+
   |  Session-Sender   |  <--- TWAMP-Test ---> | Session-Reflector |
   +-------------------+                       +-------------------+
         ]]>
          </artwork>
        </figure>

          <section anchor="data-model-parameters" title="Data Model Parameters">     
<t>
This section describes all the parameters of the the TWAMP-Light data model.
</t>

          <section anchor="session-sender" title="Session-Sender">  
          <t>
   The twamp-light-session-sender container holds
   items that are related to the configuration of the TWAMP-Light 
   Session-Sender logical entity.

                        </t>         
 <t>
 The twamp-light-session-sender-state container holds information about the state of the
 particular TWAMP-Light test session.
 </t>         
 <t>
 RPCs twamp-sender-start and twamp-sender-stop respectively start and stop the referenced by session-id 
 TWAMP-Light test session.
 </t>
 </section>
                                
           <section anchor="session-reflector" title="Session-Reflector">
             <t>
   The twamp-light-session-reflector container holds
   items that are related to the configuration of the TWAMP-Light 
   Session-Reflector logical entity.
             </t>
             <t>
             The twamp-light-session-reflector-state container holds Session-Reflector
             state data for the particular TWAMP-Light test session.
             </t>

</section>
            </section>  
        </section>
 
<section anchor="data-model" title="Data Model">

<t>
Creating 
TWAMP-Light data model presents number of challenges and among them
is identification of a test-session at Session-Reflector. A Session-Reflector MAY require
only as little as its IP and UDP port number in received TWAMP-Test packet to spawn new
test session. More so, to test processing of Class-of-Service along the same route in
Equal Cost Multi-Path environment Session-Sender may run TWAMP test sessions
concurrently using the same source IP address, source UDP port number, destination
IP address, and destination UDP port number. Thus the only parameter that can be used to
differentiate these test sessions would be DSCP value. The DSCP field may get re-marked
along the path and without use of <xref target="RFC7750"/> that will go undetected,
but by using five-tuple instead of four-tuple as a key we can ensure that TWAMP test packets that
are considered as different test sessions follow the same path even in ECMP environments.

</t>
<section anchor="tree-diagram" title="Tree Diagram">
<t>
      <figure>
          <artwork>
          <![CDATA[
          
module: ietf-twamp-light
   +--rw twamp-light
   |  +--rw twamp-light-session-sender {session-sender-light}?
   |  |  +--rw sender-light-enable?   enable
   |  |  +--rw test-session* [session-id]
   |  |     +--rw session-id                     uint32
   |  |     +--rw test-session-enable?           enable
   |  |     +--rw number-of-packets?             uint32
   |  |     +--rw packet-padding-size?           uint32
   |  |     +--rw session-authentication-mode?   enumeration
   |  |     +--rw interval?                      uint32
   |  |     +--rw sender-ip                      inet:ip-address
   |  |     +--rw sender-udp-port                inet:port-number
   |  |     +--rw reflector-ip                   inet:ip-address
   |  |     +--rw reflector-udp-port             inet:port-number
   |  |     +--rw dscp?                          inet:dscp
   |  +--rw twamp-light-session-reflector {session-reflector-light}?
   |     +--rw reflector-light-enable?   enable
   |     +--rw ref-wait?                 uint32
   |     +--rw reflector-light-mode?     enumeration
   |     +--rw dscp-handling-mode?       enumeration
   |     +--rw test-session* [session-id]
   |        +--rw session-id            uint32
   |        +--rw sender-ip             inet:ip-address
   |        +--rw sender-udp-port       inet:port-number
   |        +--rw reflector-ip          inet:ip-address
   |        +--rw reflector-udp-port    inet:port-number
   |        +--rw dscp?                 inet:dscp
   +--ro twamp-light-state
      +--ro twamp-light-session-sender-state {session-sender-light}?
      |  +--ro test-session-state* [session-id]
      |     +--ro session-id              uint32
      |     +--ro sender-session-state?   enumeration
      |     +--ro current-stats
      |     |  +--ro start-time                yang:date-and-time
      |     |  +--ro number-of-packets?        uint32
      |     |  +--ro packet-padding-size?      uint32
      |     |  +--ro interval?                 uint32
      |     |  +--ro duplicate-packets?        uint32
      |     |  +--ro reordered-packets?        uint32
      |     |  +--ro loss-packets?             uint32
      |     |  +--ro sender-ip                 inet:ip-address
      |     |  +--ro sender-udp-port           inet:port-number
      |     |  +--ro reflector-ip              inet:ip-address
      |     |  +--ro reflector-udp-port        inet:port-number
      |     |  +--ro dscp?                     inet:dscp
      |     |  +--ro sent-packets?             uint32
      |     |  +--ro rcv-packets?              uint32
      |     |  +--ro sent-packets-error?       uint32
      |     |  +--ro rcv-packets-error?        uint32
      |     |  +--ro last-sent-seq?            uint32
      |     |  +--ro last-rcv-seq?             uint32
      |     |  +--ro two-way-delay
      |     |  |  +--ro delay
      |     |  |  |  +--ro min?   yang:gauge32
      |     |  |  |  +--ro max?   yang:gauge32
      |     |  |  |  +--ro avg?   yang:gauge32
      |     |  |  +--ro delay-variation
      |     |  |     +--ro min?   uint32
      |     |  |     +--ro max?   uint32
      |     |  |     +--ro avg?   uint32
      |     |  +--ro one-way-delay-far-end
      |     |  |  +--ro delay
      |     |  |  |  +--ro min?   yang:gauge32
      |     |  |  |  +--ro max?   yang:gauge32
      |     |  |  |  +--ro avg?   yang:gauge32
      |     |  |  +--ro delay-variation
      |     |  |     +--ro min?   uint32
      |     |  |     +--ro max?   uint32
      |     |  |     +--ro avg?   uint32
      |     |  +--ro one-way-delay-near-end
      |     |     +--ro delay
      |     |     |  +--ro min?   yang:gauge32
      |     |     |  +--ro max?   yang:gauge32
      |     |     |  +--ro avg?   yang:gauge32
      |     |     +--ro delay-variation
      |     |        +--ro min?   uint32
      |     |        +--ro max?   uint32
      |     |        +--ro avg?   uint32
      |     +--ro history-stats* [id]
      |        +--ro id                        uint32
      |        +--ro end-time                  yang:date-and-time
      |        +--ro number-of-packets?        uint32
      |        +--ro packet-padding-size?      uint32
      |        +--ro interval?                 uint32
      |        +--ro duplicate-packets?        uint32
      |        +--ro reordered-packets?        uint32
      |        +--ro loss-packets?             uint32
      |        +--ro sender-ip                 inet:ip-address
      |        +--ro sender-udp-port           inet:port-number
      |        +--ro reflector-ip              inet:ip-address
      |        +--ro reflector-udp-port        inet:port-number
      |        +--ro dscp?                     inet:dscp
      |        +--ro sent-packets?             uint32
      |        +--ro rcv-packets?              uint32
      |        +--ro sent-packets-error?       uint32
      |        +--ro rcv-packets-error?        uint32
      |        +--ro last-sent-seq?            uint32
      |        +--ro last-rcv-seq?             uint32
      |        +--ro two-way-delay
      |        |  +--ro delay
      |        |  |  +--ro min?   yang:gauge32
      |        |  |  +--ro max?   yang:gauge32
      |        |  |  +--ro avg?   yang:gauge32
      |        |  +--ro delay-variation
      |        |     +--ro min?   uint32
      |        |     +--ro max?   uint32
      |        |     +--ro avg?   uint32
      |        +--ro one-way-delay-far-end
      |        |  +--ro delay
      |        |  |  +--ro min?   yang:gauge32
      |        |  |  +--ro max?   yang:gauge32
      |        |  |  +--ro avg?   yang:gauge32
      |        |  +--ro delay-variation
      |        |     +--ro min?   uint32
      |        |     +--ro max?   uint32
      |        |     +--ro avg?   uint32
      |        +--ro one-way-delay-near-end
      |           +--ro delay
      |           |  +--ro min?   yang:gauge32
      |           |  +--ro max?   yang:gauge32
      |           |  +--ro avg?   yang:gauge32
      |           +--ro delay-variation
      |              +--ro min?   uint32
      |              +--ro max?   uint32
      |              +--ro avg?   uint32
      +--ro twamp-light-session-reflector-state \
                                        {session-reflector-light}?
         +--ro reflector-light-admin-status    boolean
         +--ro test-session-state* [session-id]
            +--ro session-id            uint32
            +--ro sent-packets?         uint32
            +--ro rcv-packets?          uint32
            +--ro sent-packets-error?   uint32
            +--ro rcv-packets-error?    uint32
            +--ro last-sent-seq?        uint32
            +--ro last-rcv-seq?         uint32
            +--ro sender-ip             inet:ip-address
            +--ro sender-udp-port       inet:port-number
            +--ro reflector-ip          inet:ip-address
            +--ro reflector-udp-port    inet:port-number
            +--ro dscp?                 inet:dscp
            +--ro one-way-delay
               +--ro delay
               |  +--ro min?   yang:gauge32
               |  +--ro max?   yang:gauge32
               |  +--ro avg?   yang:gauge32
               +--ro delay-variation
                  +--ro min?   uint32
                  +--ro max?   uint32
                  +--ro avg?   uint32
rpcs:
   +---x twamp-sender-start
   |  +---w input
   |     +---w session-id    uint32
   +---x twamp-sender-stop
      +---w input
         +---w session-id    uint32
         
          ]]></artwork>
        </figure>

</t>
        
</section>

<section anchor="yang-module" title="YANG Module">
      <t>
      <figure>
          <artwork>
          <![CDATA[
<CODE BEGINS> file "ietf-twamp-light@2016-0305"

module ietf-twamp-light {
   namespace "urn:ietf:params:xml:ns:yang:ietf-twamp-light";
    //namespace need to be assigned by IANA
   prefix "ietf-twamp-light";

   import ietf-inet-types {
     prefix inet;
   }
   import ietf-yang-types {
     prefix yang;
   }
   organization
     "IETF IPPM (IP Performance Metrics) Working Group";

   contact
     "draft-mirsky-ippm-twamp-light-yang@tools.ietf.org";

   description "TWAMP Light Data Model";

   revision "2016-06-17" {
     description "01 version. RFC5357 is covered,
     including Appendix I and the Errata";
     reference "draft-mirsky-ippm-twamp-light-yang";
   }

   feature session-sender-light {
     description "This feature relates to the device functions as the 
     TWAMP Light Session-Sender";
   }

   feature session-reflector-light {
     description "This feature relates to the device functions as the
     TWAMP Light Session-Reflector";
   }
   

   typedef enable {
      type boolean;
      description "enable";
   }
     
   grouping maintenance-statistics {
     description "Maintenance statistics grouping";
     leaf sent-packets {
       type uint32;
       description "Packets sent";
     }
     leaf rcv-packets {
       type uint32;
       description "Packets received";
     }
     leaf sent-packets-error {
       type uint32;
       description "Packets sent error";
     }
     leaf rcv-packets-error {
       type uint32;
       description "Packets received error";
     }
     leaf last-sent-seq {
       type uint32;
       description "Last sent sequence number";
     }
     leaf last-rcv-seq {
       type uint32;
       description "Last received sequence number";
     }
   }

   grouping delay-statistics {
     description "delay statistics grouping";
     container delay {
       description "Packets transmitted delay";
		 leaf min {
		   type yang:gauge32;
		   units microseconds;
		   description "Min of Packets transmitted delay";
		 }
		 leaf max {
		    type yang:gauge32;
		    units microseconds;
		    description "Max of Packets transmitted delay";
		 }
		 leaf avg {
		    type yang:gauge32;
		    units microseconds;
		    description "Avg of Packets transmitted delay";
		 }
     }

	 container delay-variation {
		 description "Packets transmitted delay variation";
		 leaf min {
		   type uint32;
		   units microseconds;
		   description "Min of Packets 
		   transmitted delay variation";
		 }
		 leaf max {
		   type uint32;
		   units microseconds;
		   description "Max of Packets 
		   transmitted delay variation";
		 }
		 leaf avg {
		   type uint32;
		   units microseconds;
		   description "Avg of Packets 
		   transmitted delay variation";
		 }
	  }
   }


   grouping session-light-parameters {
     description "Parameters common among 
     Session-Sender and Session-Reflector";
     leaf sender-ip {
       type inet:ip-address;
       mandatory true;
       description "Sender IP address";
     }
     leaf sender-udp-port {
       type inet:port-number {
         range "49152..65535";
       }
       mandatory true;
       description "Sender UDP port number";
     }
     leaf reflector-ip {
       type inet:ip-address;
       mandatory true;
       description "Reflector IP address";
     }
     leaf reflector-udp-port {
       type inet:port-number{
         range "49152..65535";
       }
       mandatory true;
       description "Reflector UDP port number";
     }
     leaf dscp {
       type inet:dscp;
       default "0";
       description "The DSCP value to be placed in the header of
       TWAMP UDP test packets generated by the Session-Sender.
       Whether Session-Reflector uses this value depends upon its
       local configuration";
     }
   }

   /*Configuration Data*/
   container twamp-light {
     description "Top level container for TWAMP-Light configuration";

    container twamp-light-session-sender {
       if-feature session-sender-light;
       description "TWAMP-Light Session-Sender container";


       leaf sender-light-enable {
         type enable;
         default "true";
         description "Whether this network element is enabled to
         act as TWAMP-Light Sender";
       }       
       
       list test-session {
         key "session-id";
	       unique "sender-ip sender-udp-port reflector-ip"
         +" reflector-udp-port dscp";
         description "This structure is a container of test session
         managed objects";


         leaf session-id {
           type uint32;
           description "Session ID";
         }


         leaf test-session-enable {
           type enable;
           default "true";
           description "Whether this TWAMP Test session is enabled";
         }       
 
         leaf number-of-packets {
           type uint32;
           description "The overall number of UDP test packets to be
             transmitted by the sender for this test session";
         }

         leaf packet-padding-size {
           type uint32;
           default 27;
           description "Size of the Packet Padding. Suggested to run
           Path MTU Discovery to avoid packet fragmentation in IPv4
           and packet blackholing in IPv6";
         }

          leaf session-authentication-mode {
            type enumeration {
              enum unauthenticated {
                description "Unauthenticated TWAMP-Light
                   test session";
              }
              enum authenticated {
                description "Authenticated TWAMP-Light test session";
              }
              enum encrypted {
                description "Encrypted TWAMP-Light test session";
              }
            }
            default unauthenticated;
            description "Authentication mode of the TWAMP-Light test
            session";
          }

         leaf interval  {
           type uint32;
           description "Time interval between transmission of two
 
           consecutive packets in the test session";
         }

         uses session-light-parameters;
       }
     }

     container twamp-light-session-reflector {
       if-feature session-reflector-light;
       description "TWAMP-Light Session-Reflector container";
         leaf reflector-light-enable {
           type enable;
           default "true";
           description "Whether this network element is enabled to
           act as TWAMP-Light Reflector";
         }

         leaf ref-wait {
         type uint32 {
           range 1..604800;
         }
         units seconds;
         default 900;
         description "REFWAIT(TWAMP test session timeout in seconds),
         the default value is 900";
       }

       leaf reflector-light-mode-state {
         type enumeration {
           enum stateful {
             description "When the Session-Reflector Light is
             stateful, i.e. is aware of test session state";
           }
           enum stateless {
             description "When the Session-Reflector is stateless
             and uses sequence number of the received TWAMP-Test
             packet as its own";
           }
         }
         default stateless;
         description "The state of the mode of the TWAMP-Light
         Session-Reflector";
        }

        leaf dscp-handling-mode {
          type enumeration {
            enum copy-received-value {
              description "Use DSCP value copied from received TWAMP
              test packet of the test session";
              }
              enum use-configured-value {
                description "Use DSCP value configured for this test
                session on the Session-Reflector";
                }
             }
             default copy-received-value;
             description "Session-Reflector handling of DSCP:
                 - use value copied from received TWAMP-Test packet;
                 - use value explicitly configured";
        }

        list test-session {
          key "session-id";
	        unique "sender-ip sender-udp-port reflector-ip"
          +" reflector-udp-port dscp";
          description "This structure is a container of test session
          managed objects";

        leaf session-id {
          type uint32;
          description "Session ID";
        }

        uses session-light-parameters;
       }
     }
   }

 /*Operational state data nodes*/
 container twamp-light-state{
   config "false";
   description "Top level container for TWAMP-Light state data";

   container twamp-light-session-sender-state {
     if-feature session-sender-light;
     description "Session-Sender container for state data";
     list test-session-state{
       key "session-id";
       description "This structure is a container of test session
       managed objects";

       leaf session-id {
         type uint32;
         description "Session ID";
       }

       leaf sender-session-state {
         type enumeration {
           enum active {
             description "Test session is active";
           }
           enum ready {
             description "Test session is idle";
           }
         }
         description "State of the particular TWAMP-Light test
         session at the sender";
       }

       container current-stats {
         description
         "This container contains the results for the current
          Measurement Interval in a Measurement session ";
          leaf start-time {
            type yang:date-and-time;
            mandatory true;
            description
            "The time that the current Measurement Interval started";
          }
          leaf number-of-packets {
            type uint32;
            description "The overall number of UDP test packets to be
            transmitted by the sender for this test session";
          }

          leaf packet-padding-size {
            type uint32;
            default 27;
            description "Size of the Packet Padding. Suggested to run
            Path MTU Discovery	to avoid packet fragmentation in IPv4
            and packet backholing in IPv6";
          }

          leaf interval  {
            type uint32;
           description "Time interval between transmission of two
           consecutive packets in the test session";
          }

          leaf duplicate-packets  {
            type uint32;
           description "Duplicate packets";
          }
          leaf reordered-packets  {
            type uint32;
           description "Reordered packets";
          }
          leaf loss-packets  {
            type uint32;
           description "Loss packets";
          }
          uses session-light-parameters;
          uses maintenance-statistics;

          container two-way-delay{
            description "two way delay result of the test session";
            uses delay-statistics;
          }
          container one-way-delay-far-end{
            description "one way delay far end of the test session";
            uses delay-statistics;
          }
          container one-way-delay-near-end{
            description "one way delay near end of the test session";
            uses delay-statistics;
          }
       }

       list history-stats {
         key id;
         description
         "This container contains the results for the history
          Measurement Interval in a Measurement session ";
          leaf id {
            type uint32;
            description
            "The identifier for the Measurement Interval within this
             session";
          }
          leaf end-time {
            type yang:date-and-time;
            mandatory true;
            description
            "The time that the Measurement Interval ended";
          }
          leaf number-of-packets {
            type uint32;
            description "The overall number of UDP test packets to be
            transmitted by the sender for this test session";
          }

          leaf packet-padding-size {
            type uint32;
            default 27;
            description "Size of the Packet Padding. Suggested to run
            Path MTU Discovery	to avoid packet fragmentation in IPv4
            and packet blackholing in IPv6";
          }

          leaf interval  {
            type uint32;
           description "Time interval between transmission of two
           consecutive packets in the test session";
          }
          leaf duplicate-packets  {
            type uint32;
           description "Duplicate packets";
          }
          leaf reordered-packets  {
            type uint32;
           description "Reordered packets";
          }
          leaf loss-packets  {
            type uint32;
           description "Loss packets";
          }

          uses session-light-parameters;
          uses maintenance-statistics;

          container two-way-delay{
            description "two way delay result of the test session";
            uses delay-statistics;
          }
          container one-way-delay-far-end{
            description "one way delay far end of the test session";
            uses delay-statistics;
          }
          container one-way-delay-near-end{
            description "one way delay near end of the test session";
            uses delay-statistics;
          }
       }
     }
   }

   container twamp-light-session-reflector-state {
     if-feature session-reflector-light;
     description "TWAMP-Light Session-Reflector container for
     state data";
     leaf reflector-light-admin-status {
       type boolean;
       mandatory "true";
       description "Whether this network element is enabled to
       act as TWAMP-Light Reflector";
     }

     list test-session-state {
       key "session-id";
       description "This structure is a container of test session
       managed objects";

       leaf session-id {
         type uint32;
         description "Session ID";
       }

       uses maintenance-statistics;
       uses session-light-parameters;

       container one-way-delay {
         description "one way delay of the test session";
         uses delay-statistics;
       }
     }
   }
 }

 rpc twamp-sender-start {
   description
	 "start the configured sender session";
   input {
  	 leaf session-id {
  	   type uint32;
  	   mandatory true;
  	   description
  		 "The session to be started";
  	 }
   }
 }

 rpc twamp-sender-stop {
   description
	 "stop the configured sender session";
   input {
  	 leaf session-id {
  	   type uint32;
  	   mandatory true;
  	   description
  		 "The session to be stopped";
  	 }
   }
 }
}

 <CODE ENDS>  
          ]]></artwork>
        </figure>
        </t>
        
</section>

</section>


     <section anchor="iana-consider" title="IANA Considerations">

<t>
   This document registers a URI in the IETF XML registry <xref target="RFC3688"/>.
   Following the format in <xref target="RFC3688"/>, the following registration is
   requested to be made.
</t>
<t>
   URI: urn:ietf:params:xml:ns:yang:ietf-twamp-light
</t>
<t>
   Registrant Contact: The IPPM WG of the IETF.
</t>
<t>
   XML: N/A, the requested URI is an XML namespace.
</t>
<t>
   This document registers a YANG module in the YANG Module Names
   registry <xref target="RFC6020"/>.
</t>
<t>
   name: ietf-twamp-light
</t>
<t>
   namespace: urn:ietf:params:xml:ns:yang:ietf-twamp-light
</t>
<t>
   prefix: twamp
</t>
<t>
   reference: RFC XXXX
</t>
     </section>
     
     <section anchor="security" title="Security Considerations">
   <t>
   The configuration, state, action data defined in
   this document may be accessed via the NETCONF protocol
   <xref target="RFC6241"/>.  SSH <xref target="RFC6242"/> is mandatory secure transport
   that is the lowest NETCONF layer.
   The NETCONF access control model <xref target="RFC6536"/> provides means to restrict
   access for particular NETCONF users to a pre-configured subset of all
   available NETCONF protocol operations and content.
   </t>
   <!--
   <t>
   There are a number of data nodes defined in the TWAMP Light YANG
   module that are writable/creatable/deletable.  These data nodes may be considered sensitive
   or vulnerable in some network environments.  Write operations (e.g.,
   edit-config) to these data nodes without proper protection can have a
   negative effect on network operations.
   </t>
   -->
   <t>
   But, in general, this TWAMP Light YANG module does not change
   any underlying security issues that already may exist in 
   <xref target="I-D.elteto-ippm-twamp-mib"/>.
   </t>
     </section>
      
     
      <section title="Acknowledgements">
         <t>
 
         </t>  
      </section>

  </middle>
  
    <back>
    <references title="Normative References">
   
      <?rfc include="reference.RFC.2119"?>

    &RFC7750;
      &RFC6020;

     &RFC3688;
     &RFC5357;
     &RFC6241;
     &RFC6242;
     &RFC6536;
    </references>

    <references title="Informative References">

 
<?rfc include='reference.I-D.elteto-ippm-twamp-mib'?>


    &I-D.ietf-ippm-twamp-yang;
    </references>

 </back>
</rfc>
