Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
codacy
[simgrid.git] / examples / platforms / cluster_backbone.xml
1 <?xml version='1.0'?>
2 <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid/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  
25        So the route from node-0 to node-1 is {l0.UP, l1.DOWN}
26     -->
27   <cluster id="simple" prefix="node-" radical="0-7" suffix=".1core.org" speed="1Gf" bw="125MBps" lat="50us" />
28
29
30   <!-- This second cluster has a backbone link, connecting all private links:
31
32        node-0.2cores.org --[l0]-------+
33                                      |
34        node-1.2cores.org --[l1]--[backbone]-- router -- (outer world)
35                 ...                  |
36        node-7.2cores.org --[l7]-------+
37
38
39     The route from node-0 to node-1 is: l0.UP ; backbone ; l1.DOWN
40     
41     The route from node-0 to the outer world begins with: l0.UP ; backbone
42   -->    
43   <cluster id="backboned" prefix="node-" radical="0-7" suffix=".2cores.org"
44               speed="1Gf"       core="2" 
45               bw="125MBps"      lat="50us"
46            bb_bw="2.25GBps"  bb_lat="500us"/>
47            
48
49   <!-- This cluster has a backbone link, but no links are fullduplex.
50     -- It means that up and down communications compete as if they
51     -- were using exactly the same resource. If you send and receive
52     -- at the same time, then each get half of the bandwidth.
53     --
54     -- Also, the hosts have 4 cores.
55     -->
56   <cluster id="halfduplex" prefix="node-" radical="0-7" suffix=".4cores.org" speed="1Gf" core="4"
57               bw="125MBps"      lat="50us"     sharing_policy="SHARED"
58            bb_bw="2.25GBps"  bb_lat="500us" bb_sharing_policy="SHARED" />
59
60
61   <!-- And now, we create the routes between the clusters, ie inter-zone routes -->
62   
63   <!-- We have only one outer link, representing the internet 
64     -- Its sharing is FATPIPE, meaning that communications have no impact on each others.
65     -- Any given comm can use the full provided bandwidth. 
66     --
67     -- This models the big links constituting the backbone of the internet, 
68     -- that users cannot saturate. 
69     -- Users' bandwidth is mostly limited by their outgoing connexion,
70     -- not by the network backbone. -->
71
72     <link id="backbone" bandwidth="1.25GBps" latency="500us" sharing_policy="FATPIPE"/>
73
74     <zoneRoute src="simple" dst="backboned" 
75                gw_src="node-simple_router.1core.org"
76                gw_dst="node-backboned_router.2cores.org">
77       <link_ctn id="backbone" />
78     </zoneRoute>
79
80     <zoneRoute src="simple" dst="halfduplex" 
81                gw_src="node-simple_router.1core.org"
82                gw_dst="node-halfduplex_router.4cores.org">
83       <link_ctn id="backbone" />
84     </zoneRoute>
85     
86     <zoneRoute src="backboned" dst="halfduplex" 
87                gw_src="node-backboned_router.2cores.org"
88                gw_dst="node-halfduplex_router.4cores.org">
89       <link_ctn id="backbone" />
90     </zoneRoute>
91 </zone>
92 </platform>