Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
efaf30b0b6aeb64f1b9d5c9a022e98a538754694
[simgrid.git] / examples / platforms / cluster_multi.xml
1 <?xml version='1.0' encoding='utf-8'?>
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 bw="125MBps" id="simple" lat="50us" prefix="node-" radical="0-7" speed="1Gf" suffix=".1core.org">
27     <prop id="wattage_per_state" value="0.0:1.0:1.0" />
28     <prop id="wattage_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 bb_bw="2.25GBps" bb_lat="500us" bw="125MBps" core="2" id="backboned" lat="50us" prefix="node-" radical="0-7" speed="1Gf" suffix=".2cores.org">
43     <prop id="wattage_per_state" value="0.0:0.0:2.0" />
44     <prop id="wattage_off" value="0.0" />
45   </cluster>
46            
47
48   <!-- This cluster has a backbone link, but no links are splitduplex.
49     -  It means that up and down communications compete as if they
50     -  were using exactly the same resource. If you send and receive
51     -  at the same time, then each get half of the bandwidth.
52     - 
53     -  Also, the hosts have 4 cores.
54     -->
55   <cluster bb_bw="2.25GBps" bb_lat="500us" bb_sharing_policy="SHARED" bw="125MBps" core="4" id="halfduplex" lat="50us" prefix="node-" radical="0-7" sharing_policy="SHARED" speed="1Gf" suffix=".4cores.org">
56     <prop id="wattage_per_state" value="0.0:0.0:4.0" />
57     <prop id="wattage_off" value="0.0" />
58   </cluster>
59
60   <!-- And now, we create the routes between the clusters, ie inter-zone routes -->
61   
62   <!-- We have only one outer link, representing the internet 
63     -  Its sharing is FATPIPE, meaning that communications have no impact on each others.
64     -  Any given comm can use the full provided bandwidth. 
65     - 
66     -  This models the big links constituting the backbone of the internet, 
67     -  that users cannot saturate. 
68     -  Users' bandwidth is mostly limited by their outgoing connexion,
69     -  not by the network backbone.
70     -->
71
72     <link bandwidth="1.25GBps" id="backbone" latency="500us" sharing_policy="FATPIPE" />
73
74     <zoneRoute dst="backboned" gw_dst="node-backboned_router.2cores.org" gw_src="node-simple_router.1core.org" src="simple">
75       <link_ctn id="backbone" />
76     </zoneRoute>
77
78     <zoneRoute dst="halfduplex" gw_dst="node-halfduplex_router.4cores.org" gw_src="node-simple_router.1core.org" src="simple">
79       <link_ctn id="backbone" />
80     </zoneRoute>
81     
82     <zoneRoute dst="halfduplex" gw_dst="node-halfduplex_router.4cores.org" gw_src="node-backboned_router.2cores.org" src="backboned">
83       <link_ctn id="backbone" />
84     </zoneRoute>
85 </zone>
86 </platform>