added sample XML configuration files for BitTorrent experiments
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tue, 19 Jan 2010 09:02:10 +0000 (11:02 +0200)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tue, 19 Jan 2010 09:02:10 +0000 (11:02 +0200)
razvan/xml/clients.xml [new file with mode: 0644]
razvan/xml/nodes.xml [new file with mode: 0644]
razvan/xml/swarm.xml [new file with mode: 0644]

diff --git a/razvan/xml/clients.xml b/razvan/xml/clients.xml
new file mode 100644 (file)
index 0000000..636ccde
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<clients>
+    <client id="tribler">
+       <run type="script">
+           <file>Tribler/Tools/cmdline.py</file>
+           <interpreter>python</file>
+           <prefix>PYTHONPATH=.</prefix>
+           <suffix></suffix>
+       </run>
+       <upload_limit_option></upload_limit_option>
+       <download_limit_option></download_limit_option>
+       <port_option>-p</port_option>
+       <logging_dir_option>-l</port_option>
+       <download_dir_option>-d</download_dir_option>
+    </client>
+    <client id="libtorrent">
+       <run type="executable">
+           <file>hrktorrent</file>
+       </run>
+       <port_option>-p</port_option>
+       <download_dir_option>-d</download_dir_option>
+    </client>
+    <client id="transmission">
+       <run type="executable">
+           <file>src/transmission-cli</file>
+       </run>
+       <upload_limit_option>-u</upload_limit_option>
+       <download_limit_option>-d</download_limit_option>
+       <port_option>-p</port_option>
+       <logging_dir_option>-l</port_option>
+       <download_dir_option>-o</download_dir_option>
+    </client>
+</clients>
diff --git a/razvan/xml/nodes.xml b/razvan/xml/nodes.xml
new file mode 100644 (file)
index 0000000..def3961
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<nodes>
+    <node id="1">
+       <public_address>141.85.224.201</public_address>
+       <public_port>10150</public_port>
+       <private_address>172.30.10.0</private_address>
+       <private_port>10150</private_port>
+       <ssh_port>10122</ssh_port>
+       <clients>
+           <client id="tribler">
+               <base>/home/p2p/p2p-clients/tribler/</base>
+           </client>
+           <client id="libtorrent">
+               <base>/home/p2p/p2p-clients/libtorrent/</base>
+           </client>
+           <client id="transmission">
+               <base>/home/p2p/p2p-clients/transmission/</base>
+           </client>
+        </clients>
+    </node>
+    <node id="2">
+       <public_address>141.85.224.202</public_address>
+       <public_port>10250</public_port>
+       <private_address>172.30.20.0</private_address>
+       <private_port>10250</private_port>
+       <ssh_port>10222</ssh_port>
+       <clients>
+           <client id="tribler">
+               <base>/home/p2p/p2p-clients/tribler/</base>
+           </client>
+           <client id="libtorrent">
+               <base>/home/p2p/p2p-clients/libtorrent/</base>
+           </client>
+           <client id="transmission">
+               <base>/home/p2p/p2p-clients/transmission/</base>
+           </client>
+       </clients>
+    </node>
+</nodes>
diff --git a/razvan/xml/swarm.xml b/razvan/xml/swarm.xml
new file mode 100644 (file)
index 0000000..be6b041
--- /dev/null
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<swarm>
+    <instance id="1">
+       <node>1</node>
+       <client>triber</client>
+       <upload_limit></upload_limit>
+       <download_limit></download_limit>
+       <port></port>
+       <download_dir></download_dir>
+       <logging_dir></logging_dir>
+       <actions>
+           <action type="start" delay="00:05:00" />
+           <action type="stop" delay="00:10:00" />
+           <action type="start" delay="00:15:00" />
+           <action type="stop" delay="00:20:00" />
+           <action type="start" delay="00:25:00" />
+           <action type="start" delay="end" />
+       </actions>
+    </instance>
+    <instance id="2">
+       <node>2</node>
+       <client>transmission</client>
+       <upload_limit></upload_limit>
+       <download_limit></download_limit>
+       <port></port>
+       <download_dir></download_dir>
+       <logging_dir></logging_dir>
+       <actions>
+           <action type="start" delay="00:05:00" />
+           <action type="stop" delay="01:00:00" />
+           <action type="start" delay="02:00:00" />
+           <action type="start" delay="end" />
+       </actions>
+    </instance>
+    <instance id="3">
+       <node>3</node>
+       <client>libtorrent</client>
+       <upload_limit></upload_limit>
+       <download_limit></download_limit>
+       <port></port>
+       <download_dir></download_dir>
+       <logging_dir></logging_dir>
+       <actions>
+           <action type="start" delay="00:00:00" />
+           <action type="start" delay="end" />
+       </actions>
+    </instance>
+</swarm>