Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
switch the platform used by these examples
[simgrid.git] / examples / platforms / dogbone.xml
1 <?xml version='1.0'?>
2 <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd">
3
4 <!-- Describe a dogbone graph, with 4 hosts:
5   --
6   -- S1 ---[ 1 ]---                 ---[ 3 ]--- C1
7   --               \               /
8   --                R1 --[ 2 ]-- R2
9   --               /               \
10   -- S2 ---[ 4 ]---                 ---[ 5 ]--- C2
11   --
12   --
13   -- This platform is a valid NS3 platform, even if it exhibits routes of length >1,
14   -- because when you only keep the routes of length 1,
15   -- you get a graph where every host can speak to any other host.
16   --
17   -- For example, S1--C1 is (l1,l2,l3) of length >1
18   -- But it's also S1--C1 = S1--R1, R1--R2, R2--C1 which are all of length 1
19   --
20   -- http://simgrid.gforge.inria.fr/simgrid/latest/doc/pls_ns3.html
21   -->
22
23 <platform version="4.1">
24   <zone  id="AS0"  routing="Full">
25     <host id="S1" speed="1Gf"/>
26     <host id="C1" speed="1Gf"/>
27     <host id="S2" speed="1Gf"/>
28     <host id="C2" speed="1Gf"/>
29     <router id="R1"/>
30     <router id="R2"/>
31
32     <link id="1" bandwidth="100MBps" latency="10ms"/>
33     <link id="2" bandwidth="100MBps" latency="10ms"/>
34     <link id="3" bandwidth="100MBps" latency="10ms"/>
35     <link id="4" bandwidth="100MBps" latency="10ms"/>
36     <link id="5" bandwidth="100MBps" latency="10ms"/>
37
38     <route src="S1" dst="C1">
39       <link_ctn id="1"/>
40       <link_ctn id="2"/>
41       <link_ctn id="3"/>
42     </route>
43     <route src="S2" dst="C2">
44       <link_ctn id="4"/>
45       <link_ctn id="2"/>
46       <link_ctn id="5"/>
47     </route>
48     <route src="S1" dst="C2">
49       <link_ctn id="1"/>
50       <link_ctn id="2"/>
51       <link_ctn id="5"/>
52     </route>
53     <route src="S2" dst="C1">
54       <link_ctn id="4"/>
55       <link_ctn id="2"/>
56       <link_ctn id="3"/>
57     </route>
58     <route src="S1" dst="R1">
59       <link_ctn id="1"/>
60     </route>
61     <route src="R1" dst="R2">
62       <link_ctn id="2"/>
63     </route>
64     <route src="R2" dst="C1">
65       <link_ctn id="3"/>
66     </route>
67     <route src="S2" dst="R1">
68       <link_ctn id="4"/>
69     </route>
70     <route src="R2" dst="C2">
71       <link_ctn id="5"/>
72     </route>
73   </zone>
74 </platform>