Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge the two wifi platform files
[simgrid.git] / examples / platforms / wifi.xml
1 <?xml version='1.0'?>
2
3 <!DOCTYPE platform SYSTEM "https://simgrid.org/simgrid.dtd">
4 <platform version="4.1">
5   <zone id="world" routing="Full">
6
7     <zone id="WIFI zone" routing="Cluster">
8         <!-- First declare the Access Point (ie, the wifi media) -->
9         <link id="AP1" sharing_policy="WIFI" bandwidth="54Mbps" latency="0ms" />
10
11         <!-- Two stations in the wifi zone -->
12         <host id="Station 1" speed="100.0Mf,50.0Mf,20.0Mf" />
13         <host id="Station 2" speed="100.0Mf,50.0Mf,20.0Mf" />
14
15         <!-- Specify that stations use the WIFI link for every communication (incoming or outgoing) -->
16         <host_link id="Station 1" up="AP1" down="AP1"/>
17         <host_link id="Station 2" up="AP1" down="AP1"/>
18
19         <router id="WIFI router"/>
20     </zone>
21
22
23     <!-- NODE1 AS -->
24     <zone id="Wired zone" routing="Full">
25       <host id="NODE1" speed="100.0Mf,50.0Mf,20.0Mf" />
26     </zone>
27     
28
29     <!-- AS Routing -->
30     <link id="Collector" sharing_policy="SHARED" bandwidth="100Mbps" latency="0ms" />
31     <zoneRoute src="WIFI zone" dst="Wired zone" gw_src="WIFI router" gw_dst="NODE1">
32       <link_ctn id="Collector" />
33     </zoneRoute>
34     
35   </zone>
36 </platform>