Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

Initiating multiple twping sessions

The following example shows the RPC equivalent of the twping localhost session-count 2 CLI command. The RPC call initiates two sessions.

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3">
  <twping xmlns="urn:vyatta.com:mgmt:vyatta-service-twamp:1">
    <host>localhost</host>
    <session-count>2</session-count>
  </twping>
</rpc>]]>]]>
<?xml version="1.0"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3">
  <results xmlns="urn:vyatta.com:mgmt:vyatta-service-twamp:1">
    <reflector-processing-time>
      <max>0.0238</max>
      <min>0.00334</min>
    </reflector-processing-time>
    <send-hops>
      <max>0</max>
      <min>0</min>
      <diff-num-ttl>1</diff-num-ttl>
    </send-hops>
    <round-trip-time>
      <max>0.13</max>
      <pdv>0.1</pdv>
      <min>0.0339</min>
      <median>0.1</median>
      <error>0.000001</error>
    </round-trip-time>
    <packets>
      <time-of-last>2016-01-13T14:51:30.480+00:00</time-of-last>
      <reflect-duplicates>0</reflect-duplicates>
      <num-pkts-lost>0</num-pkts-lost>
      <time-of-first>2016-01-13T14:51:22.587+00:00</time-of-first>
      <num-pkts-sent>100</num-pkts-sent>
      <send-duplicates>0</send-duplicates>
    </packets>
    <destination>
      <address>localhost</address>
      <port>55938</port>
    </destination>
    <source>
      <port>8834</port>
      <address>localhost</address>
    </source>
    <sid>00000001da40e2e976cebbba7be73c29</sid>
    <reflect-hops>
      <max>0</max>
      <diff-num-ttl>1</diff-num-ttl>
      <min>0</min>
    </reflect-hops>
    <send-time>
      <min>0.0229</min>
      <median>0.1</median>
      <error>0.0</error>
      <max>0.0987</max>
      <pdv>0.0</pdv>
    </send-time>
    <reflect-time>
      <min>0.00811</min>
      <median>0.1</median>
      <error>0.0</error>
      <max>0.073</max>
      <pdv>0.0</pdv>
    </reflect-time>
  </results>
  <results xmlns="urn:vyatta.com:mgmt:vyatta-service-twamp:1">
    <reflector-processing-time>
      <max>0.0319</max>
      <min>0.00286</min>
    </reflector-processing-time>
    <send-hops>
      <max>0</max>
      <min>0</min>
      <diff-num-ttl>1</diff-num-ttl>
    </send-hops>
    <destination>
      <port>35818</port>
      <address>localhost</address>
    </destination>
    <packets>
      <num-pkts-lost>0</num-pkts-lost>
      <time-of-first>2016-01-13T14:51:22.845+00:00</time-of-first>
      <num-pkts-sent>100</num-pkts-sent>
      <reflect-duplicates>0</reflect-duplicates>
      <time-of-last>2016-01-13T14:51:32.199+00:00</time-of-last>
      <send-duplicates>0</send-duplicates>
    </packets>
    <sid>00000001da40e2e97730835514472ecb</sid>
    <source>
      <address>localhost</address>
      <port>8905</port>
    </source>
    <reflect-hops>
      <min>0</min>
      <diff-num-ttl>1</diff-num-ttl>
      <max>0</max>
    </reflect-hops>
    <round-trip-time>
      <min>0.0238</min>
      <median>0.1</median>
      <error>0.000001</error>
      <max>0.129</max>
      <pdv>0.1</pdv>
    </round-trip-time>
    <send-time>
      <error>0.0</error>
      <max>0.107</max>
      <pdv>0.0</pdv>
      <min>0.0157</min>
      <median>0.1</median>
    </send-time>
    <reflect-time>
      <min>0.00811</min>
      <median>0.1</median>
      <error>0.0</error>
      <max>0.0491</max>
      <pdv>0.0</pdv>
    </reflect-time>
  </results>
</rpc-reply>
]]>]]>