Logo AND Algorithmique Numérique Distribuée

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