Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
I changed the way to connect traces afterward about 5 months ago. good time to notice...
[simgrid.git] / examples / platforms / metaxml.xml
1 <!-- This platform shows the use of traces, clusters and sets of hosts defined with the new XML format. It also explains how to define
2      routes between sets of hosts using the route:multi tag
3 -->
4 <?xml version='1.0'?>
5 <!DOCTYPE platform SYSTEM "simgrid.dtd">
6 <platform version="2">
7
8   <!-- define a trace inside the XML file -->
9   <trace id="mytrace" periodicity="12">
10         5 100
11         17 200
12         15 140
13   </trace>
14
15   <!-- define a cluster for Nancy. Hosts, links, backbone, routes for inter linkage and external linkage are generated by the parser automatically --> 
16   <cluster id="Nancy" prefix="nancy_" radical="0-2" suffix="_host" power="1234566789" bw="125000000" lat="0.00005" bb_bw="50000000" bb_lat="0.001"/>
17
18   <!-- Now we will define in 5 steps the same thing for cluster Lille but using the tags foreach and route:multi -->
19
20   <!-- 1. Define Lille set -->
21   <set id="Lille" prefix="lille_" suffix="_host" radical="0-2"/>
22
23   <!-- 2. Define the Lille group (host+link) -->
24   <foreach set_id="Lille">
25     <host id="$1" power="1234566789"/>
26     <link id="$1" bandwidth="125000000" latency="0.00005"/>
27   </foreach>
28
29   <!-- 3. Backbones for Lille hosts -->
30   <link id="Lille_bb" bandwidth="50000000" latency="0.00005"/>
31
32   <!-- Define backbone for communication between Nancy and Lille-->
33   <link id="INTER-bb" bandwidth="125000000" latency="0.000100"/>
34
35   <!-- 4. Define startpoint for Lille -> $* (All other hosts including Nancy hosts) routes. It is the starting point so it overrides all previosly routes!!! -->
36   <route:multi src="Lille" dst="$*" action="OVERRIDE" symmetric="NO">
37     <link:ctn id="$src"/>
38   </route:multi>
39
40   <!-- 5. Define Lille intra-cluster communication. Default behaviour POSTPEND links to already existing routes, and NOT symmetric because all routes are created in the first pass.  If you choose symmetric you will duplicate links due to POSTPEND !!!-->
41   <route:multi src="Lille" dst="Lille" symmetric="NO">
42     <link:ctn id="Lille_bb"/>
43   </route:multi>
44
45   <!-- Add other links to routes. Default behaviour POSTPEND links to already existing routes -->
46   <route:multi src="Nancy" dst="Lille">
47     <link:ctn id="INTER-bb"/>
48     <link:ctn id="$dst"/>
49   </route:multi>
50   
51   <!-- Connect the trace with the host nancy_0_host -->
52   <trace:connect trace="mytrace" kind="POWER" element="nancy_0_host"/>
53
54 </platform>