976fb55189f46bd8d7e20963a4f3b2848b52c598
[nepi.git] / examples / POPI / popi-tun-classfilter-2MB-q500-pl-hibw.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <experiment>
3     <testbeds>
4         <testbed guid="1" testbed_id="planetlab" testbed_version="0.1">
5             <graphical_info height="580.0" width="872.882843778" x="-317.0" y="-124.0"/>
6             <attributes>
7                 <attribute name="slice" type="STRING" value="##plslice##"/>
8                 <attribute name="plLogLevel" type="STRING" value="INFO"/>
9                 <attribute name="logLevel" type="STRING" value="Debug"/>
10                 <attribute name="dedicatedSlice" type="BOOL" value="True"/>
11                 <attribute name="plcUrl" type="STRING" value="https://%(hostname)s:443/PLCAPI/"/>
12                 <attribute name="recoveryPolicy" type="STRING" value="Recover"/>
13                 <attribute name="p2pDeployment" type="BOOL" value="False"/>
14                 <attribute name="label" type="STRING" value=""/>
15                 <attribute name="tapPortBase" type="INTEGER" value="16000"/>
16                 <attribute name="authUser" type="STRING" value="##pluser##"/>
17                 <attribute name="sliceSSHKey" type="STRING" value="##plkey##"/>
18                 <attribute name="authPass" type="STRING" value="##plpass##"/>
19                 <attribute name="plcHost" type="STRING" value="www.planet-lab.eu"/>
20             </attributes>
21             <elements>
22                 <element factory_id="Node" guid="2">
23                     <graphical_info height="100.0" width="100.0" x="-256.0" y="-223.0"/>
24                     <attributes>
25                         <attribute name="maxBandwidth" type="DOUBLE" value="1024.0"/>
26                         <attribute name="minCpu" type="DOUBLE" value="30.0"/>
27                         <attribute name="operatingSystem" type="STRING" value="f12"/>
28                     </attributes>
29                     <routes>
30                         <route Destination="192.168.2.32" Metric="0" NetPrefix="27" NextHop="192.168.2.3"/>
31                     </routes>
32                     <connections>
33                         <connection connector="devs" other_connector="node" other_guid="11"/>
34                         <connection connector="devs" other_connector="node" other_guid="21"/>
35                         <connection connector="apps" other_connector="node" other_guid="8"/>
36                     </connections>
37                 </element>
38                 <element factory_id="Node" guid="3">
39                     <graphical_info height="100.0" width="100.0" x="263.0" y="-222.0"/>
40                     <attributes>
41                         <attribute name="maxBandwidth" type="DOUBLE" value="1024.0"/>
42                         <attribute name="forward_X11" type="BOOL" value="False"/>
43                         <attribute name="minCpu" type="DOUBLE" value="30.0"/>
44                         <attribute name="operatingSystem" type="STRING" value="f12"/>
45                     </attributes>
46                     <routes>
47                         <route Destination="192.168.2.0" Metric="0" NetPrefix="27" NextHop="192.168.2.34"/>
48                     </routes>
49                     <connections>
50                         <connection connector="devs" other_connector="node" other_guid="24"/>
51                         <connection connector="devs" other_connector="node" other_guid="12"/>
52                         <connection connector="apps" other_connector="node" other_guid="10"/>
53                     </connections>
54                 </element>
55                 <element factory_id="Application" guid="8">
56                     <graphical_info height="100.0" width="100.0" x="-365.684303842" y="-223.842151921"/>
57                     <attributes>
58                         <attribute name="buildDepends" type="STRING" value="libpcap-devel make gcc "/>
59                         <attribute name="sudo" type="BOOL" value="True"/>
60                         <attribute name="label" type="STRING" value="popi-cli"/>
61                         <attribute name="sources" type="STRING" value="popi-0.9.tar.gz"/>
62                         <attribute name="depends" type="STRING" value="libpcap"/>
63                         <attribute name="command" type="STRING" value="sleep 2; ./popi -et 136/2004/30002,6/2000/30002,17/2002/30002,1/30002/8 -b 32 -r 2000  -o {#[popi-cli].trace[output].[name]#} -i {#[tap-cli].[if_name]#} {#[tap-srv].addr[0].[Address]#}"/>
64                         <attribute name="build" type="STRING" value="tar xzf ${SOURCES}/popi-0.9.tar.gz &amp;&amp; cd popi-0.9 &amp;&amp; ./configure --enable-debug --with-host=planetlab &amp;&amp; make"/>
65                         <attribute name="install" type="STRING" value="cp ./popi-0.9/popi ${SOURCES}"/>
66                     </attributes>
67                     <traces>
68                         <trace name="output"/>
69                         <trace name="stderr"/>
70                         <trace name="stdout"/>
71                     </traces>
72                     <connections>
73                         <connection connector="node" other_connector="apps" other_guid="2"/>
74                     </connections>
75                 </element>
76                 <element factory_id="Internet" guid="9">
77                     <graphical_info height="100.0" width="100.0" x="8.0" y="211.0"/>
78                     <connections>
79                         <connection connector="devs" other_connector="inet" other_guid="16"/>
80                         <connection connector="devs" other_connector="inet" other_guid="11"/>
81                         <connection connector="devs" other_connector="inet" other_guid="12"/>
82                     </connections>
83                 </element>
84                 <element factory_id="Application" guid="10">
85                     <graphical_info height="100.0" width="100.0" x="374.0" y="-222.0"/>
86                     <attributes>
87                         <attribute name="buildDepends" type="STRING" value="libpcap-devel make gcc "/>
88                         <attribute name="sudo" type="BOOL" value="True"/>
89                         <attribute name="label" type="STRING" value="popi-srv"/>
90                         <attribute name="sources" type="STRING" value="popi-0.9.tar.gz"/>
91                         <attribute name="depends" type="STRING" value="libpcap"/>
92                         <attribute name="command" type="STRING" value="./popid -v -i {#[tap-srv].[if_name]#} -b 136/30002,6/30002,17/30002,1/30002"/>
93                         <attribute name="build" type="STRING" value="tar xzf ${SOURCES}/popi-0.9.tar.gz &amp;&amp; cd popi-0.9 &amp;&amp; ./configure --enable-debug --with-host=planetlab &amp;&amp; make"/>
94                         <attribute name="install" type="STRING" value="cp ./popi-0.9/popid ${SOURCES}"/>
95                     </attributes>
96                     <traces>
97                         <trace name="stderr"/>
98                         <trace name="stdout"/>
99                     </traces>
100                     <connections>
101                         <connection connector="node" other_connector="apps" other_guid="3"/>
102                     </connections>
103                 </element>
104                 <element factory_id="NodeInterface" guid="11">
105                     <graphical_info height="100.0" width="100.0" x="-355.87051993" y="67.7927863957"/>
106                     <factory_attributes>
107                         <factory_attribute name="maxAddresses" type="INTEGER" value="1"/>
108                     </factory_attributes>
109                     <attributes>
110                         <attribute name="maxAddresses" type="INTEGER" value="1"/>
111                     </attributes>
112                     <connections>
113                         <connection connector="node" other_connector="devs" other_guid="2"/>
114                         <connection connector="inet" other_connector="devs" other_guid="9"/>
115                     </connections>
116                 </element>
117                 <element factory_id="NodeInterface" guid="12">
118                     <graphical_info height="100.0" width="100.0" x="356.0" y="76.0"/>
119                     <factory_attributes>
120                         <factory_attribute name="maxAddresses" type="INTEGER" value="1"/>
121                     </factory_attributes>
122                     <attributes>
123                         <attribute name="maxAddresses" type="INTEGER" value="1"/>
124                     </attributes>
125                     <connections>
126                         <connection connector="node" other_connector="devs" other_guid="3"/>
127                         <connection connector="inet" other_connector="devs" other_guid="9"/>
128                     </connections>
129                 </element>
130                 <element factory_id="Node" guid="15">
131                     <graphical_info height="100.0" width="100.0" x="1.0" y="-216.0"/>
132                     <attributes>
133                         <attribute name="maxBandwidth" type="DOUBLE" value="512.0"/>
134                         <attribute name="forward_X11" type="BOOL" value="False"/>
135                         <attribute name="minCpu" type="DOUBLE" value="50.0"/>
136                         <attribute name="operatingSystem" type="STRING" value="f12"/>
137                     </attributes>
138                     <connections>
139                         <connection connector="devs" other_connector="node" other_guid="16"/>
140                         <connection connector="devs" other_connector="node" other_guid="22"/>
141                         <connection connector="devs" other_connector="node" other_guid="23"/>
142                     </connections>
143                 </element>
144                 <element factory_id="NodeInterface" guid="16">
145                     <graphical_info height="100.0" width="100.0" x="6.0" y="72.0"/>
146                     <factory_attributes>
147                         <factory_attribute name="maxAddresses" type="INTEGER" value="1"/>
148                     </factory_attributes>
149                     <attributes>
150                         <attribute name="maxAddresses" type="INTEGER" value="1"/>
151                     </attributes>
152                     <connections>
153                         <connection connector="node" other_connector="devs" other_guid="15"/>
154                         <connection connector="inet" other_connector="devs" other_guid="9"/>
155                     </connections>
156                 </element>
157                 <element factory_id="TunInterface" guid="21">
158                     <graphical_info height="100.0" width="100.0" x="-255.0" y="-110.0"/>
159                     <factory_attributes>
160                         <factory_attribute name="maxAddresses" type="INTEGER" value="1"/>
161                     </factory_attributes>
162                     <attributes>
163                         <attribute name="up" type="BOOL" value="True"/>
164                         <attribute name="maxAddresses" type="INTEGER" value="1"/>
165                         <attribute name="label" type="STRING" value="tap-cli"/>
166                         <attribute name="bwlimit" type="INTEGER" value="256"/>
167                     </attributes>
168                     <traces>
169                         <trace name="pcap"/>
170                     </traces>
171                     <addresses>
172                         <address Address="192.168.2.2" NetPrefix="27"/>
173                     </addresses>
174                     <connections>
175                         <connection connector="node" other_connector="devs" other_guid="2"/>
176                         <connection connector="udp" other_connector="udp" other_guid="22"/>
177                     </connections>
178                 </element>
179                 <element factory_id="TunInterface" guid="22">
180                     <graphical_info height="100.0" width="100.0" x="-56.0" y="-105.0"/>
181                     <factory_attributes>
182                         <factory_attribute name="maxAddresses" type="INTEGER" value="1"/>
183                     </factory_attributes>
184                     <attributes>
185                         <attribute name="up" type="BOOL" value="True"/>
186                         <attribute name="maxAddresses" type="INTEGER" value="1"/>
187                         <attribute name="bwlimit" type="INTEGER" value="256"/>
188                     </attributes>
189                     <traces>
190                         <trace name="pcap"/>
191                     </traces>
192                     <addresses>
193                         <address Address="192.168.2.3" NetPrefix="27"/>
194                     </addresses>
195                     <connections>
196                         <connection connector="node" other_connector="devs" other_guid="15"/>
197                         <connection connector="udp" other_connector="udp" other_guid="21"/>
198                     </connections>
199                 </element>
200                 <element factory_id="TunInterface" guid="23">
201                     <graphical_info height="100.0" width="100.0" x="77.0" y="-104.0"/>
202                     <factory_attributes>
203                         <factory_attribute name="maxAddresses" type="INTEGER" value="1"/>
204                     </factory_attributes>
205                     <attributes>
206                         <attribute name="up" type="BOOL" value="True"/>
207                         <attribute name="maxAddresses" type="INTEGER" value="1"/>
208                         <attribute name="bwlimit" type="INTEGER" value="##bwlimit##"/>
209                     </attributes>
210                     <traces>
211                         <trace name="pcap"/>
212                     </traces>
213                     <addresses>
214                         <address Address="192.168.2.34" NetPrefix="27"/>
215                     </addresses>
216                     <connections>
217                         <connection connector="node" other_connector="devs" other_guid="15"/>
218                         <connection connector="fd-&gt;" other_connector="-&gt;fd" other_guid="26"/>
219                     </connections>
220                 </element>
221                 <element factory_id="TunInterface" guid="24">
222                     <graphical_info height="100.0" width="100.0" x="264.0" y="-107.0"/>
223                     <factory_attributes>
224                         <factory_attribute name="maxAddresses" type="INTEGER" value="1"/>
225                     </factory_attributes>
226                     <attributes>
227                         <attribute name="up" type="BOOL" value="True"/>
228                         <attribute name="maxAddresses" type="INTEGER" value="1"/>
229                         <attribute name="label" type="STRING" value="tap-srv"/>
230                         <attribute name="bwlimit" type="INTEGER" value="256"/>
231                     </attributes>
232                     <traces>
233                         <trace name="pcap"/>
234                     </traces>
235                     <addresses>
236                         <address Address="192.168.2.35" NetPrefix="27"/>
237                     </addresses>
238                     <connections>
239                         <connection connector="node" other_connector="devs" other_guid="3"/>
240                         <connection connector="udp" other_connector="udp" other_guid="26"/>
241                     </connections>
242                 </element>
243                 <element factory_id="ClassQueueFilter" guid="26">
244                     <graphical_info height="100.0" width="100.0" x="174.0" y="19.0"/>
245                     <attributes>
246                         <attribute name="args" type="STRING" value="size=500,classes=##classes##"/>
247                     </attributes>
248                     <traces>
249                         <trace name="dropped_stats"/>
250                     </traces>
251                     <connections>
252                         <connection connector="udp" other_connector="udp" other_guid="24"/>
253                         <connection connector="-&gt;fd" other_connector="fd-&gt;" other_guid="23"/>
254                     </connections>
255                 </element>
256             </elements>
257         </testbed>
258     </testbeds>
259 </experiment>