Skip to Content.
Sympa Menu

perfsonar-dev - [pS-dev] [GEANT/SA2/SA2T3-OPPD] r786 - branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0

Subject: perfsonar development work

List archive

[pS-dev] [GEANT/SA2/SA2T3-OPPD] r786 - branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0


Chronological Thread 
  • From:
  • To:
  • Subject: [pS-dev] [GEANT/SA2/SA2T3-OPPD] r786 - branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0
  • Date: Thu, 24 Jan 2013 09:10:54 +0000 (GMT)

Author: dfn.calim
Date: 2013-01-24 09:10:54 +0000 (Thu, 24 Jan 2013)
New Revision: 786

Added:

branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataRequest-BWCTL-MP-001.xml

branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataRequest-BWCTL-MP-002.xml

branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataResponse-BWCTL-MP-001.xml

branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataResponse-BWCTL-MP-002.xml
Log:
Addninf new BWCTL MP request and response examples

Added:
branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataRequest-BWCTL-MP-001.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataRequest-BWCTL-MP-001.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataRequest-BWCTL-MP-001.xml
2013-01-24 09:10:54 UTC (rev 786)
@@ -0,0 +1,50 @@
+<!--
+ File: SetupDataRequest-BWCTL-MP-001.xml
+
+ Description:
+ Setup data reques example send from
+ web based perfSONARUI to BWCTL MP service.
+ This is an example which demonstrate how to
+ define a request.
+
+ Have a look in file: SetupDataResponse-BWCTL-MP-001.xml
+ To see how the response of this request looks like.
+ -->
+
+
+
+
+<ns2:message xmlns:ns2="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns:ns3="http://ggf.org/ns/nmwg/topology/2.0/";
+ xmlns:ns5="http://ggf.org/ns/nmwg/tools/bwctl/2.0/";
+ xmlns:ns6="http://ggf.org/ns/nmwg/tools/iperf/2.0/";
+ xmlns:ns7="http://ggf.org/ns/nmwg/ops/select/2.0/";
+ xmlns:ns8="http://ggf.org/ns/nmwg/result/2.0/";
id="bwctl-request" type="SetupDataRequest">
+
+ <ns2:metadata id="bwctl-metadata">
+
<ns2:eventType>http://ggf.org/ns/nmwg/tools/bwctl/2.0</ns2:eventType>
+ <ns5:subject id="bwctl-subject">
+ <ns3:endPoint type="ipv4"
value="http://genesis-vm-centos5-32.rrze.uni-erlangen.de:8090/services/MP/BWCTL"/>
+ </ns5:subject>
+ <ns5:parameters id="bwctl-parameters">
+ <ns2:parameter name="duration" value="30"/>
+ </ns5:parameters>
+ </ns2:metadata>
+ <ns2:metadata id="iperf-metadata">
+
<ns2:eventType>http://ggf.org/ns/nmwg/tools/iperf/2.0</ns2:eventType>
+ <ns6:subject id="iperf-subject"
metadataIdRef="bwctl-metadata">
+ <ns3:endPointPair>
+ <ns3:src type="ipv4"
value="genesis-vm-centos5-32.rrze.uni-erlangen.de"/>
+ <ns3:dst type="ipv4"
value="perfsonar-mp.uni-ruse.bg"/>
+ </ns3:endPointPair>
+ </ns6:subject>
+ <ns6:parameters id="iperf-parameters">
+ <ns2:parameter name="protocol" value="TCP"/>
+ <ns2:parameter name="interval" value="6"/>
+ </ns6:parameters>
+ </ns2:metadata>
+
+ <ns2:data id="1" metadataIdRef="iperf-metadata"/>
+</ns2:message>
+
+

Added:
branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataRequest-BWCTL-MP-002.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataRequest-BWCTL-MP-002.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataRequest-BWCTL-MP-002.xml
2013-01-24 09:10:54 UTC (rev 786)
@@ -0,0 +1,54 @@
+<!--
+ File: SetupDataRequest-BWCTL-MP-002.xml
+
+ Description:
+ This style of reuqest the known request to BWCTL MP.
+ You can use this to send in NMWG schema a request to
+ BWCTL MP.
+
+ Have look in file: SetupDataResponse-BWCTL-MP-002.xml
+ too see the result / response of this request.
+
+ if you have for example defined a wrong source
+ interface than the datum filed of the request looks like this:
+
+ <nmwg:data id="1" metadataIdRef="meta1"/>
+ <nmwg:metadata id="return_meta1">
+
<nmwg:eventType>error.mp.bwctl</nmwg:eventType>
+ </nmwg:metadata>
+ <nmwg:data id="data_return_meta1"
metadataIdRef="return_meta1">
+ <nmwgr:datum>BWCTL Error: bwctl: Unable to
connect to 131.188.81.61</nmwgr:datum>
+-->
+
+<nmwg:message type="SetupDataRequest"
+ id="datarq2-1"
+ xmlns="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/";
+ xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1">
+ <nmwgt:endPointPair>
+ <nmwgt:src type="ipv4" value="131.188.81.234"/>
+ <nmwgt:dst type="ipv4" value="91.210.88.64"/>
+ </nmwgt:endPointPair>
+ </perfsonar:subject>
+
+ <nmwg:eventType>bwctl</nmwg:eventType>
+ <nmwg:parameters id="param1">
+ <nmwg:parameter name="protocol" value="TCP"/>
+ <nmwg:parameter name="windowSize" value="50000"/>
+ <nmwg:parameter name="duration" value="5"/>
+ <nmwg:parameter name="interval" value="2"/>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <!-- triggers to indicate head of chains -->
+ <nmwg:data id="1" metadataIdRef="meta1"/>
+
+
+</nmwg:message>
+

Added:
branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataResponse-BWCTL-MP-001.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataResponse-BWCTL-MP-001.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataResponse-BWCTL-MP-001.xml
2013-01-24 09:10:54 UTC (rev 786)
@@ -0,0 +1,54 @@
+<!--
+ File: SetupDataResponse-BWCTL-MP-001.xml
+
+ Description:
+ This is a response to the SetupDataRequest-BWCTL-MP-001.xml
+ file. This example show if the reuest parameter can be
executed
+ correctly and the endpoints are reachable.
+-->
+
+
+<ns2:message xmlns:ns2="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns:ns3="http://ggf.org/ns/nmwg/topology/2.0/";
+ xmlns:ns5="http://ggf.org/ns/nmwg/tools/bwctl/2.0/";
+ xmlns:ns6="http://ggf.org/ns/nmwg/tools/iperf/2.0/";
+ xmlns:ns7="http://ggf.org/ns/nmwg/ops/select/2.0/";
+ xmlns:ns8="http://ggf.org/ns/nmwg/result/2.0/";
id="bwctl-request" type="SetupDataResponse">
+
+ <ns2:metadata id="bwctl-metadata">
+ <ns2:eventType>http://ggf.org/ns/nmwg/tools/bwctl/2.0</ns2:eventType>
+ <ns5:subject id="bwctl-subject">
+ <ns3:endPoint type="ipv4"
value="http://genesis-vm-centos5-32.rrze.uni-erlangen.de:8090/services/MP/BWCTL"/>
+ </ns5:subject>
+ <ns5:parameters id="bwctl-parameters">
+ <ns2:parameter name="duration" value="30"/>
+ </ns5:parameters>
+ </ns2:metadata>
+
+ <ns2:metadata id="iperf-metadata">
+ <ns2:eventType>http://ggf.org/ns/nmwg/tools/iperf/2.0</ns2:eventType>
+ <ns6:subject id="iperf-subject" metadataIdRef="bwctl-metadata">
+
+ <ns3:endPointPair>
+ <ns3:src type="ipv4"
value="genesis-vm-centos5-32.rrze.uni-erlangen.de"/>
+ <ns3:dst type="ipv4"
value="perfsonar-mp.uni-ruse.bg"/>
+ </ns3:endPointPair>
+ </ns6:subject>
+
+ <ns6:parameters id="iperf-parameters">
+ <ns2:parameter name="protocol" value="TCP"/>
+ <ns2:parameter name="interval" value="6"/>
+ </ns6:parameters>
+ </ns2:metadata>
+
+ <ns2:data id="1" metadataIdRef="iperf-metadata">
+ <ns6:datum numBytes="226170096" value="301560128"
valueUnits="bits/sec" timeValue="1358949717" interval="0.0- 6.0"
numBytesUnits="Bytes" timeType="unix"/>
+ <ns6:datum numBytes="350583096" value="467444128"
valueUnits="bits/sec" timeValue="1358949717" interval="6.0-12.0"
numBytesUnits="Bytes" timeType="unix"/>
+ <ns6:datum numBytes="272009904" value="362679872"
valueUnits="bits/sec" timeValue="1358949717" interval="12.0-18.0"
numBytesUnits="Bytes" timeType="unix"/>
+ <ns6:datum numBytes="330794096" value="441058795"
valueUnits="bits/sec" timeValue="1358949717" interval="18.0-24.0"
numBytesUnits="Bytes" timeType="unix"/>
+ <ns6:datum numBytes="288736440" value="384981920"
valueUnits="bits/sec" timeValue="1358949717" interval="24.0-30.0"
numBytesUnits="Bytes" timeType="unix"/>
+ <ns6:datum numBytes="1468530688" value="391347429"
valueUnits="bits/sec" timeValue="1358949717" interval="0.0-30.0"
numBytesUnits="Bytes" timeType="unix"/>
+ </ns2:data>
+
+</ns2:message>
+

Added:
branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataResponse-BWCTL-MP-002.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataResponse-BWCTL-MP-002.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0/SetupDataResponse-BWCTL-MP-002.xml
2013-01-24 09:10:54 UTC (rev 786)
@@ -0,0 +1,38 @@
+<!--
+ File: SetupDataResponse-BWCTL-MP-002.xml
+
+ Description:
+ This file includes the meadurement result of the reqeust in
file: SetupDataRequest-BWCTL-MP-002.xml
+-->
+
+<nmwg:message id="datarq2-1" type="SetupDataResponse"
+ xmlns="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+ xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";>
+
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1">
+ <nmwgt:endPointPair>
+ <nmwgt:src type="ipv4" value="131.188.81.234"/>
+ <nmwgt:dst type="ipv4" value="91.210.88.64"/>
+ </nmwgt:endPointPair>
+ </perfsonar:subject>
+
+ <nmwg:eventType>bwctl</nmwg:eventType>
+ <nmwg:parameters id="param1">
+ <nmwg:parameter name="protocol" value="TCP"/>
+ <nmwg:parameter name="windowSize" value="50000"/>
+ <nmwg:parameter name="duration" value="5"/>
+ <nmwg:parameter name="interval" value="2"/>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <!-- triggers to indicate head of chains -->
+ <nmwg:data id="1" metadataIdRef="meta1">
+ <datum interval="0.0- 2.0" numBytes="3294176" numBytesUnits="Bytes"
timeType="unix" timeValue="1359017983" value="13176704" valueUnits="bits/sec"
xmlns="http://ggf.org/ns/nmwg/tools/iperf/2.0/"/>
+ <datum interval="2.0- 4.0" numBytes="3707664" numBytesUnits="Bytes"
timeType="unix" timeValue="1359017983" value="14830656" valueUnits="bits/sec"
xmlns="http://ggf.org/ns/nmwg/tools/iperf/2.0/"/>
+ <datum interval="0.0- 5.2" numBytes="9043968" numBytesUnits="Bytes"
timeType="unix" timeValue="1359017983" value="14040229" valueUnits="bits/sec"
xmlns="http://ggf.org/ns/nmwg/tools/iperf/2.0/"/>
+ </nmwg:data>
+</nmwg:message>



  • [pS-dev] [GEANT/SA2/SA2T3-OPPD] r786 - branches/perfsonar-oppd-all-0.53/lib/NMWG/examples/2.0, svn-noreply, 01/24/2013

Archive powered by MHonArc 2.6.16.

Top of Page