Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use cat+here document, instead of non-portable echo -e.
[simgrid.git] / examples / platforms / routing_cluster.xml
1 <?xml version='1.0'?>
2 <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid.dtd">
3
4 <!--              router1 -------------link1-2--------------router2
5        __________________________                   _________________________
6        |                        |                   |                        |
7        |        backbone1       |                   |      backbone2         |
8        |________________________|                   |________________________|
9        / /         |          \ \                   / /         |          \ \
10 l1_up / / l1_down  | l3   l2_up\ \ l2_down   l4_up / / l4_down  | l6   l5_up\ \ l5_down
11      / /           |            \ \               / /           |            \ \
12     host1         host3         host2           host4         host6          host5
13 -->
14
15
16 <platform version="3">
17 <AS id="AS0" routing="Full">
18   <AS  id="my_cluster1"  routing="Cluster">
19     <router id="router1"/>
20
21     <host id="host1" power="1000000000"/>
22     <link id="l1_UP" bandwidth="125000000" latency="0.000100"/>
23     <link id="l1_DOWN" bandwidth="125000000" latency="0.000100"/>
24     <host_link id="host1" up="l1_UP" down="l1_DOWN"/>
25
26     <host id="host2" power="1000000000"/>
27     <link id="l2" bandwidth="125000000" latency="0.000100" sharing_policy="FULLDUPLEX"/>
28     <host_link id="host2" up="l2_UP" down="l2_DOWN"/>
29
30     <host id="host3" power="1000000000"/>
31     <link id="l3" bandwidth="125000000" latency="0.000100"/>
32     <host_link id="host3" up="l3" down="l3"/>
33
34     <backbone id="backbone1" bandwidth="2250000000" latency="5E-4"/>
35   </AS>
36
37   <AS  id="my_cluster2"  routing="Cluster">
38     <router id="router2"/>
39
40     <host id="host4" power="1000000000"/>
41     <link id="l4_UP" bandwidth="125000000" latency="0.000100"/>
42     <link id="l4_DOWN" bandwidth="125000000" latency="0.000100"/>
43     <host_link id="host4" up="l4_UP" down="l4_DOWN"/>
44
45     <host id="host5" power="1000000000"/>
46     <link id="l5" bandwidth="125000000" latency="0.000100" sharing_policy="FULLDUPLEX"/>
47     <host_link id="host5" up="l5_UP" down="l5_DOWN"/>
48
49     <host id="host6" power="1000000000"/>
50     <link id="l6" bandwidth="125000000" latency="0.000100"/>
51     <host_link id="host6" up="l6" down="l6"/>
52  
53     <backbone id="backbone2" bandwidth="2250000000" latency="5E-4"/>
54   </AS>
55   
56   <link id="link1-2" bandwidth="2250000000" latency="5E-4"/>
57   
58   <ASroute src="my_cluster1" dst="my_cluster2"
59     gw_src="router1"
60     gw_dst="router2">
61     <link_ctn id="link1-2" />
62   </ASroute>
63 </AS>   
64 </platform>