Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Finalize properties on AS.
[simgrid.git] / examples / platforms / bypassRoute.xml
1 <?xml version='1.0'?>
2 <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid.dtd">
3 <platform version="3">
4         <AS  id="AS_Big"  routing="Dijkstra">
5           <AS id="AS_1" routing="Full">    
6              <host id="AS_1_host1" power="1000000000"/> 
7              <link id="AS_1_link" bandwidth="1250000000" latency="5E-4"/>  
8              <router id="AS_1_gateway"/>
9              <route src="AS_1_host1" dst="AS_1_gateway">
10                     <link_ctn id="AS_1_link"/>
11              </route>   
12           </AS>
13           <AS id="AS_2" routing="Floyd">    
14              <host id="AS_2_host1" power="1000000000"/> 
15              <host id="AS_2_host2" power="1000000000"/> 
16              <host id="AS_2_host3" power="1000000000"/> 
17             
18              <link id="AS_2_link1" bandwidth="1250000000" latency="5E-4"/>  
19              <link id="AS_2_link2" bandwidth="1250000000" latency="5E-4"/>  
20              <link id="AS_2_link3" bandwidth="1250000000" latency="5E-4"/>  
21              <link id="AS_2_link4" bandwidth="1250000000" latency="5E-4"/>
22              <link id="AS_2_link5" bandwidth="1250000000" latency="5E-4"/>  
23              <link id="AS_2_link6" bandwidth="1250000000" latency="5E-4"/>             
24              <link id="AS_2_link7" bandwidth="1250000000" latency="5E-4"/>
25              
26              <router id="central_router"/>
27              <router id="bypass_router1"/>
28              <router id="bypass_router2"/>
29              <router id="AS_2_gateway"/>
30             
31              <!-- routes providing topological information -->  
32              <route src="central_router" dst="AS_2_host1"><link_ctn id="AS_2_link1"/></route>   
33              <route src="central_router" dst="AS_2_host2"><link_ctn id="AS_2_link2"/></route>   
34              <route src="central_router" dst="AS_2_host3"><link_ctn id="AS_2_link3"/></route>        
35              <route src="central_router" dst="AS_2_gateway"><link_ctn id="AS_2_link4"/></route>
36              
37              <!--  longer route -->
38              <route src="bypass_router1" dst="AS_2_host2"><link_ctn id="AS_2_link5"/></route>
39              <route src="bypass_router1" dst="bypass_router2"><link_ctn id="AS_2_link6"/></route>
40              <route src="bypass_router2" dst="AS_2_host1"><link_ctn id="AS_2_link7"/></route>
41              
42              <!-- bypass route -->
43              <bypassRoute src="AS_2_host1" dst="AS_2_host2">
44                      <link_ctn id="AS_2_link7"/>
45                      <link_ctn id="AS_2_link6"/>
46                      <link_ctn id="AS_2_link5"/>
47              </bypassRoute>     
48           </AS>
49           <link id="backbone" bandwidth="1250000000" latency="5E-4"/>   
50         
51            <ASroute src="AS_1" dst="AS_2" 
52         gw_src="AS_1_gateway" 
53         gw_dst="AS_2_gateway">
54                 <link_ctn id="backbone"/>
55            </ASroute>
56            
57         </AS>
58 </platform>