Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a dogbone example with ns3
authorNavarrop <Pierre.Navarro@imag.fr>
Thu, 8 Sep 2011 11:33:04 +0000 (13:33 +0200)
committerNavarrop <Pierre.Navarro@imag.fr>
Thu, 8 Sep 2011 11:33:04 +0000 (13:33 +0200)
examples/msg/ns3/dogbone-d.xml [new file with mode: 0644]
examples/msg/ns3/dogbone-p.xml [new file with mode: 0644]

diff --git a/examples/msg/ns3/dogbone-d.xml b/examples/msg/ns3/dogbone-d.xml
new file mode 100644 (file)
index 0000000..e5935f0
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version='1.0'?>
+<!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid.dtd">
+<platform version="3">
+
+  <process host="S1" function="master">
+      <argument value="200000"/>
+      <argument value="C1"/>
+      <argument value="0"/>
+  </process>
+
+  <process host="S2" function="master">
+      <argument value="200000"/>
+      <argument value="C2"/>
+      <argument value="1"/>
+  </process>
+
+  <process host="C1" function="slave">
+      <argument value="0"/>
+  </process>
+  <process host="C2" function="slave">
+      <argument value="1"/>
+  </process>
+</platform>
diff --git a/examples/msg/ns3/dogbone-p.xml b/examples/msg/ns3/dogbone-p.xml
new file mode 100644 (file)
index 0000000..44ac5c3
--- /dev/null
@@ -0,0 +1,67 @@
+<?xml version='1.0'?>
+ <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid.dtd">
+ <platform version="3"> 
+ <AS  id="AS0"  routing="Full">
+ <!---  dogbone
+ -->
+   <host id="S1" power="1000000000"/>
+   <host id="C1" power="1000000000"/>
+   <host id="S2" power="1000000000"/>
+   <host id="C2" power="1000000000"/>
+   <router id="R1"/>
+   <router id="R2"/>
+   <link id="1" bandwidth="1000000" latency="0.0001"/>
+   <link id="2" bandwidth="100000" latency="0.1"/>
+   <link id="3" bandwidth="1000000" latency="0.0001"/>
+   <link id="4" bandwidth="1000000" latency="0.0001"/>
+   <link id="5" bandwidth="1000000" latency="0.0001"/>
+   <route src="S1" dst="C1">
+      <link_ctn id="1"/>
+      <link_ctn id="2"/>
+      <link_ctn id="3"/>
+   </route>
+   <route src="S2" dst="C2">
+      <link_ctn id="4"/>
+      <link_ctn id="2"/>
+      <link_ctn id="5"/>
+   </route>
+   <route src="S1" dst="C2">
+      <link_ctn id="1"/>
+      <link_ctn id="2"/>
+      <link_ctn id="5"/>
+   </route>
+   <route src="S2" dst="C1">
+      <link_ctn id="4"/>
+      <link_ctn id="2"/>
+      <link_ctn id="3"/>
+   </route>
+   <route src="S1" dst="R1">
+      <link_ctn id="1"/>
+   </route>
+   <route src="R1" dst="R2">
+      <link_ctn id="2"/>
+   </route>
+   <route src="R2" dst="C1">
+      <link_ctn id="3"/>
+   </route>
+   <route src="S2" dst="R1">
+      <link_ctn id="4"/>
+   </route>
+   <route src="R2" dst="C2">
+      <link_ctn id="5"/>
+   </route>
+ </AS>
+ </platform>