No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NETCONF YANG API Reference

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

NETCONF YANG API Reference
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
TWAMP

TWAMP

NOTE:

AR161EW&AR161EW-M1&AR169EW&AR169EGW-L do not support TWAMP Light.

Data Model

The data model files matching the TWAMP are ietf-twamp.yang and huawei-twamp.yang.

Table 3-2154 TWAMP

Object

Description

twamp

Indicates that the operation request (creating, deleting, and modifying) object is the TWAMP-related configurations. It is only used to contain sub-objects, but does not have any data meaning.

ietf-twamp:twamp/twamp-client/client-admin-state

Indicates the TWAMP Light Client administration state. ture and false state.

ietf-twamp:twamp/twamp-client/twamp-client-ctrl-connection/ctrl-connection-name

Indicates the TWAMP Light Client control connection name.The host name is a string.

ietf-twamp:twamp/twamp-client/twamp-client-ctrl-connection/server-ip

Indicates the TWAMP Light Server IP address.

ietf-twamp:twamp/twamp-client/twamp-client-ctrl-connection/twamp-session-request/test-session-name

Indicates the statistics session name.

ietf-twamp:twamp/twamp-client/twamp-client-ctrl-connection/twamp-session-request/sender-ip

Indicates the sender IP address.The value is in dotted decimal notation.

ietf-twamp:twamp/twamp-client/twamp-client-ctrl-connection/twamp-session-request/reflector-ip

Specifies the reflector IP address.The value is in dotted decimal notation.

ietf-twamp:twamp/twamp-client/twamp-client-ctrl-connection/twamp-session-request/sender-udp-port

Indicates the UDP port number of the sender.The value is an integer that ranges from 862/863/1025 to 65535.

ietf-twamp:twamp/twamp-client/twamp-client-ctrl-connection/twamp-session-request/reflector-udp-port

Indicates the UDP port number of the reflector.The value is an integer that ranges from 862/863/1025 to 65535.

ietf-twamp:twamp/twamp-client/twamp-client-ctrl-connection/twamp-session-request/dscp

Indicates the DSCP value of sent packets.The value is an integer that ranges from 0 to 63. The default is 0.

ietf-twamp:twamp/twamp-client/twamp-client-ctrl-connection/twamp-session-request/padding-length

Indicates the padding length of an statistics session.The value is an integer that ranges from 32 to 8500. The default is 128.

ietf-twamp:twamp/twamp-client/twamp-client-ctrl-connection/twamp-session-request/timeout

Indicates the timeout of packets to be sent.The value is an integer that ranges from 1 to 10, in seconds. The default is 5.

Table 3-2155 The huawei-twamp data model

Object

Description

ietf-twamp:twamp/twamp-client/twamp-client-ctrl-connection/twamp-session-request/huawei-twamp:test-session-id

Indicates the statistics session ID.The value is a string.

ietf-twamp:twamp/twamp-client/twamp-client-ctrl-connection/twamp-session-request/huawei-twamp:duration

Indicates the duration of sent packets.The value is an integer that ranges from 60 to 300, in seconds.

NOTE:
  • If the test sample message contains this field, The for on-demand measurement service. Otherwise, The consecutive statistics service.
  • Duration of the packets sent " duration " field and the number of packets sent " packet-count " field, In on-demand measurement test sample and can exist only in a field.

ietf-twamp:twamp/twamp-client/twamp-client-ctrl-connection/twamp-session-request/huawei-twamp:packet-count

Indicates the number of packets to be sent.The value is an integer that ranges from 100 to 30000.

NOTE:
  • If the test sample message contains this field, The for on-demand measurement service. Otherwise, The consecutive statistics service.
  • Duration of the packets sent " duration " field and the number of packets sent " packet-count " field, In on-demand measurement test sample and can exist only in a field.

ietf-twamp:twamp/twamp-client/twamp-client-ctrl-connection/twamp-session-request/huawei-twamp:period

Indicates the period for sending packets.The value is an integer , in milliseconds.The default is 100.

ietf-twamp:twamp/twamp-server/huawei-twamp:twamp-session-response

Indicates the reflector session.

ietf-twamp:twamp/twamp-server/huawei-twamp:twamp-session-response/test-session-id

Indicates the reflector session ID.The value is a string.

ietf-twamp:twamp/twamp-server/huawei-twamp:twamp-session-response/local-ip

Indicates the reflector IP address.The value is in dotted decimal notation.

ietf-twamp:twamp/twamp-server/huawei-twamp:twamp-session-response/local-udp-port

Indicates the UDP port number of the sender.The value is an integer that ranges from 862/863/1025 to 65535.

ietf-twamp:twamp/twamp-server/huawei-twamp:twamp-session-response/remote-ip

Indicates the sender IP address.The value is in dotted decimal notation.

ietf-twamp:twamp/twamp-server/huawei-twamp:twamp-session-response/remote-udp-port

Indicates the UDP port number of the sender.The value is an integer that ranges from 862/863/1025 to 65535.

TWAMP Light Client Configuration

Creating the TWAMP Light Client Configuration

This section provides a sample of creating the TWAMP Light client configuration.

Table 3-2156 Creating the TWAMP Light client configuration

Operation

XPATH

edit-config:default

ietf-twamp:twamp/twamp-client

Data Requirements
Table 3-2157 Creating the TWAMP Light client configuration

Item

Data

Description

TWAMP Light client administration state

true

Create a TWAMP Light client control connection name, and configure IP address of the TWAMP Light server and parameters of a TWAMP Light statistics session.

TWAMP Light client control connection name

dsfs

IP address of the TWAMP Light server

1.1.1.8

Statistics session name

fg

Statistics session ID

1

Sender IP address

1.1.1.4

Reflector IP address

1.1.1.8

UDP port number of the sender

2000

UDP port number of the reflector

3000

DSCP value of sent packets

60

Padding length of an statistics session

32

Period for sending packets

10

Timeout period of packets to be sent

1

Duration of sent packets

60

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="nqa-2102114484P0F5000013-c02d58d2-7a3c-40f3-8be8-b71d47919e97">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <twamp xmlns="urn:ietf:params:xml:ns:yang:ietf-twamp" >
    <twamp-client>
     <client-admin-state>true</client-admin-state>
     <twamp-client-ctrl-connection>
      <ctrl-connection-name>dsfs</ctrl-connection-name>
      <server-ip>1.1.1.8</server-ip>
      <twamp-session-request>
       <test-session-name>fg</test-session-name>
       <test-session-id xmlns="urn:huawei:params:xml:ns:yang:hw-twamp">1</test-session-id>
       <sender-ip>1.1.1.4</sender-ip>
       <reflector-ip>1.1.1.8</reflector-ip>
       <sender-udp-port>2000</sender-udp-port>
       <reflector-udp-port>3000</reflector-udp-port>
       <dscp>60</dscp>
       <padding-length>32</padding-length>
       <duration xmlns="urn:huawei:params:xml:ns:yang:hw-twamp">60</duration>
       <period xmlns="urn:huawei:params:xml:ns:yang:hw-twamp">10</period>
       <timeout>1</timeout>
      </twamp-session-request>
     </twamp-client-ctrl-connection>
    </twamp-client>
   </twamp>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="nqa-2102114484P0F5000013-c02d58d2-7a3c-40f3-8be8-b71d47919e97"> 
  <ok/> 
</rpc-reply>
Modifying the TWAMP Light Client Configuration

This section provides a sample of modifying the TWAMP Light client configuration.

Table 3-2158 Modifying the TWAMP Light client configuration

Operation

XPATH

edit-config:replace

ietf-twamp:twamp/twamp-client

Data Requirements
Table 3-2159 Modifying the TWAMP Light client configuration

Item

Data

Description

TWAMP Light client administration state

true

Modify a TWAMP Light client control connection name, and configure IP address of the TWAMP Light server and parameters of a TWAMP Light statistics session.

TWAMP Light client control connection name

dsfs

IP address of the TWAMP Light server

1.1.1.8

Statistics session name

fg

Statistics session ID

2

Sender IP address

1.1.1.2

Reflector IP address

1.1.1.6

UDP port number of the sender

862

UDP port number of the reflector

1025

DSCP value of sent packets

63

Padding length of an statistics session

128

Period for sending packets

100

Timeout period of packets to be sent

10

Duration of sent packets

300

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="nqa-2102114484P0F5000013-c02d58d2-7a3c-40f3-8be8-b71d47919e96">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <twamp xmlns="urn:ietf:params:xml:ns:yang:ietf-twamp" xc:operation="replace">
    <twamp-client>
     <client-admin-state>true</client-admin-state>
     <twamp-client-ctrl-connection>
      <ctrl-connection-name>dsfs</ctrl-connection-name>
       <server-ip>1.1.1.8</server-ip>
      <twamp-session-request>
       <test-session-name>fg</test-session-name>
       <test-session-id xmlns="urn:huawei:params:xml:ns:yang:hw-twamp">2</test-session-id>
       <sender-ip>1.1.1.2</sender-ip>
       <reflector-ip>1.1.1.6</reflector-ip>
       <sender-udp-port>862</sender-udp-port>
       <reflector-udp-port>1025</reflector-udp-port>
       <dscp>63</dscp>
       <padding-length>128</padding-length>
       <duration xmlns="urn:huawei:params:xml:ns:yang:hw-twamp">300</duration>
       <period xmlns="urn:huawei:params:xml:ns:yang:hw-twamp">100</period>
       <timeout>10</timeout>
      </twamp-session-request>
     </twamp-client-ctrl-connection>
    </twamp-client>
   </twamp>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="nqa-2102114484P0F5000013-c02d58d2-7a3c-40f3-8be8-b71d47919e96"> 
  <ok/> 
</rpc-reply>
Deleting the TWAMP Light Client Configuration

This section provides a sample of deleting the TWAMP Light client configuration.

Table 3-2160 Deleting the TWAMP Light client configuration

Operation

XPATH

edit-config:remove

ietf-twamp:twamp/twamp-client

Data Requirements
Table 3-2161 Deleting the TWAMP Light client configuration

Item

Data

Description

TWAMP Light client administration state

true

Delete a TWAMP Light client control connection name, and configure IP address of the TWAMP Light server and parameters of a TWAMP Light statistics session.

TWAMP Light client control connection name

dsfs

IP address of the TWAMP Light server

1.1.1.8

Statistics session name

fg

Statistics session ID

2

Sender IP address

1.1.1.4

Reflector IP address

1.1.1.8

UDP port number of the sender

2000

UDP port number of the reflector

3000

DSCP value of sent packets

63

Padding length of an statistics session

128

Period for sending packets

100

Timeout period of packets to be sent

10

Duration of sent packets

300

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="nqa-2102114484P0F5000013-c02d58d2-7a3c-40f3-8be8-b71d47919e96">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <twamp xmlns="urn:ietf:params:xml:ns:yang:ietf-twamp" xc:operation="remove">
    <twamp-client>
     <client-admin-state>true</client-admin-state>
     <twamp-client-ctrl-connection>
      <ctrl-connection-name>dsfs</ctrl-connection-name>
       <server-ip>1.1.1.8</server-ip>
      <twamp-session-request>
       <test-session-name>fg</test-session-name>
       <test-session-id xmlns="urn:huawei:params:xml:ns:yang:hw-twamp">2</test-session-id>
       <sender-ip>1.1.1.4</sender-ip>
       <reflector-ip>1.1.1.8</reflector-ip>
       <sender-udp-port>2000</sender-udp-port>
       <reflector-udp-port>3000</reflector-udp-port>
       <dscp>63</dscp>
       <padding-length>128</padding-length>
       <duration xmlns="urn:huawei:params:xml:ns:yang:hw-twamp">300</duration>
       <period xmlns="urn:huawei:params:xml:ns:yang:hw-twamp">100</period>
       <timeout>10</timeout>
      </twamp-session-request>
     </twamp-client-ctrl-connection>
    </twamp-client>
   </twamp>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="nqa-2102114484P0F5000013-c02d58d2-7a3c-40f3-8be8-b71d47919e96"> 
  <ok/> 
</rpc-reply> 

TWAMP Light Responder Configuration

Creating the TWAMP Light Responder Configuration

This section provides a sample of creating the TWAMP Light responder configuration.

Table 3-2162 Creating the TWAMP Light responder configuration

Operation

XPATH

edit-config:default

ietf-twamp:twamp/twamp-server

Data Requirements
Table 3-2163 Creating the TWAMP Light responder configuration

Item

Data

Description

Statistics session ID

20

Configure parameters of a statistics session of the TWAMP Light responder.

Reflector IP address

10.1.1.1

Sender IP address

20.2.2.2

UDP port number of the reflector

2000

UDP port number of the sender

2000

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="cb5cfe93-fa4f-4b3e-b475-bb07bb9a5dba">
  <edit-config>
    <target>
     <running/>
    </target>
    <error-option>rollback-on-error</error-option>
    <config>
     <twamp xmlns="urn:ietf:params:xml:ns:yang:ietf-twamp"> 
      <twamp-session-reflector>
       <twamp-session-response xmlns="urn:huawei:params:xml:ns:yang:hw-twamp">
        <test-session-id>20</test-session-id>
        <local-ip>10.1.1.1</local-ip>
        <local-udp-port>2000</local-udp-port>
        <remote-ip>20.2.2.2</remote-ip>
        <remote-udp-port>2000</remote-udp-port>
      </twamp-session-response>
    </twamp-session-reflector>
    </twamp>
   </config>
  </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="cb5cfe93-fa4f-4b3e-b475-bb07bb9a5dba"> 
  <ok/> 
</rpc-reply> 
Modifying the TWAMP Light Responder Configuration

This section provides a sample of modifying the TWAMP Light responder configuration.

Table 3-2164 Modifying the TWAMP Light responder configuration

Operation

XPATH

edit-config:replace

ietf-twamp:twamp/twamp-server

Data Requirements
Table 3-2165 Modifying the TWAMP Light responder configuration

Item

Data

Description

Statistics session ID

20

Modify parameters of the statistics session of the TWAMP Light responder.

Reflector IP address

10.1.1.1

Sender IP address

20.2.2.2

UDP port number of the reflector

2000

UDP port number of the sender

2000

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="cb5cfe93-fa4f-4b3e-b475-bb07bb9a5dba">
  <edit-config>
    <target>
     <running/>
    </target>
    <error-option>rollback-on-error</error-option>
    <config>
     <twamp xmlns="urn:ietf:params:xml:ns:yang:ietf-twamp" xc:operation="replace"> 
      <twamp-session-reflector>
       <twamp-session-response xmlns="urn:huawei:params:xml:ns:yang:hw-twamp">
        <test-session-id>20</test-session-id>
        <local-ip>10.1.1.1</local-ip>
        <local-udp-port>2000</local-udp-port>
        <remote-ip>20.2.2.2</remote-ip>
        <remote-udp-port>2000</remote-udp-port>
      </twamp-session-response>
    </twamp-session-reflector>
    </twamp>
   </config>
  </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="cb5cfe93-fa4f-4b3e-b475-bb07bb9a5dba"> 
  <ok/> 
</rpc-reply>
Deleting the TWAMP Light Responder Configuration

This section provides a sample of deleting the TWAMP Light responder configuration.

Table 3-2166 Deleting the TWAMP Light responder configuration

Operation

XPATH

edit-config:remove

ietf-twamp:twamp/twamp-server

Data Requirements
Table 3-2167 Deleting the TWAMP Light responder configuration

Item

Data

Description

Statistics session ID

20

Delete parameters of the statistics session of the TWAMP Light responder.

Reflector IP address

10.1.1.1

Sender IP address

20.2.2.2

UDP port number of the reflector

2000

UDP port number of the sender

2000

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="nqa-2102114484P0F5000013-c02d58d2-7a3c-40f3-8be8-b71d47919e96">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <twamp xmlns="urn:ietf:params:xml:ns:yang:ietf-twamp" xc:operation="remove">
    <twamp-server>
     <server-admin-state>true</server-admin-state>
     <twamp-session-response xmlns="urn:huawei:params:xml:ns:yang:hw-twamp" >
      <test-session-id>2</test-session-id>
      <local-ip>3.1.1.2</local-ip>
      <remote-ip>3.1.1.10</remote-ip>
      <local-udp-port>862</local-udp-port>
      <remote-udp-port>1025</remote-udp-port>
     </twamp-session-response>
    </twamp-server>
   </twamp>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="nqa-2102114484P0F5000013-c02d58d2-7a3c-40f3-8be8-b71d47919e96"> 
  <ok/>
</rpc-reply>
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 8150

Downloads: 69

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next