Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
110efda20dc47720be005d547c7a794dcb2392a9
[simgrid.git] / examples / platforms / cluster_multi.xml
1 <?xml version='1.0'?>
2 <!DOCTYPE platform SYSTEM "https://simgrid.org/simgrid.dtd">
3 <platform version="4.1">
4   <zone id="world" routing="Full">
5   <!-- this platform models 3 clusters, interconnected over the Internet
6     --
7     -- This example intends to be somewhat exhaustive, your platform should probably be simpler.
8     --
9     -- In particular, the clusters are modeled in very different ways,
10     -- but you should pick the way you prefer, and stick to it.
11     -->
12
13   <!-- Here comes the first cluster, the simplest one.
14      
15        Every nodes are connected through a private link to a router
16        (ie a machine that cannot host computations).
17   
18        node-0.1core.org --[l0]--
19                                 \
20        node-1.1core.org --[l1]-- router -- (outer world)
21                 ...             /
22        node-7.1core.org --[l9]--
23  
24        So the route from node-0 to node-1 is {l0.UP, l1.DOWN}
25     -->
26   <cluster id="simple" prefix="node-" radical="0-7" suffix=".1core.org" speed="1Gf" bw="125MBps" lat="50us">
27     <prop id="watt_per_state" value="0.0:1.0" />
28     <prop id="watt_off" value="0.0" />
29   </cluster>
30
31
32   <!-- This second cluster has a backbone link, connecting all private links:
33        node-0.2cores.org --[l0]-------+
34                                      |
35        node-1.2cores.org --[l1]--[backbone]-- router -- (outer world)
36                 ...                  |
37        node-7.2cores.org --[l7]-------+
38     The route from node-0 to node-1 is: l0.UP ; backbone ; l1.DOWN
39     
40     The route from node-0 to the outer world begins with: l0.UP ; backbone
41   -->    
42   <cluster id="backboned" prefix="node-" radical="0-7" suffix=".2cores.org"
43               speed="1Gf"       core="2" 
44               bw="125MBps"      lat="50us"
45            bb_bw="2.25GBps"  bb_lat="500us">
46     <prop id="watt_per_state" value="0.0:1.0:2.0" />
47     <prop id="watt_off" value="0.0" />
48   </cluster>
49            
50
51   <!-- This cluster has a backbone link, but no links are splitduplex.
52     -- It means that up and down communications compete as if they
53     -- were using exactly the same resource. If you send and receive
54     -- at the same time, then each get half of the bandwidth.
55     --
56     -- Also, the hosts have 4 cores.
57     -->
58   <cluster id="halfduplex" prefix="node-" radical="0-7" suffix=".4cores.org" speed="1Gf" core="4"
59               bw="125MBps"      lat="50us"     sharing_policy="SHARED"
60            bb_bw="2.25GBps"  bb_lat="500us" bb_sharing_policy="SHARED">
61     <prop id="watt_per_state" value="0.0:1.0:4.0" />
62     <prop id="watt_off" value="0.0" />
63   </cluster>
64
65   <!-- And now, we create the routes between the clusters, ie inter-zone routes -->
66   
67   <!-- We have only one outer link, representing the internet 
68     -- Its sharing is FATPIPE, meaning that communications have no impact on each others.
69     -- Any given comm can use the full provided bandwidth. 
70     --
71     -- This models the big links constituting the backbone of the internet, 
72     -- that users cannot saturate. 
73     -- Users' bandwidth is mostly limited by their outgoing connexion,
74     -- not by the network backbone. -->
75
76     <link id="backbone" bandwidth="1.25GBps" latency="500us" sharing_policy="FATPIPE"/>
77
78     <zoneRoute src="simple" dst="backboned" 
79                gw_src="node-simple_router.1core.org"
80                gw_dst="node-backboned_router.2cores.org">
81       <link_ctn id="backbone" />
82     </zoneRoute>
83
84     <zoneRoute src="simple" dst="halfduplex" 
85                gw_src="node-simple_router.1core.org"
86                gw_dst="node-halfduplex_router.4cores.org">
87       <link_ctn id="backbone" />
88     </zoneRoute>
89     
90     <zoneRoute src="backboned" dst="halfduplex" 
91                gw_src="node-backboned_router.2cores.org"
92                gw_dst="node-halfduplex_router.4cores.org">
93       <link_ctn id="backbone" />
94     </zoneRoute>
95 </zone>
96 </platform>