chorist.xml 2.97 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
<?xml version="1.0" encoding="UTF-8"?>
<!--DOCTYPE vnuml SYSTEM "/usr/local/share/xml/vnuml/vnuml.dtd"--> 
<!DOCTYPE vnuml SYSTEM "/packages/vnuml_1.8.3/share/xml/vnuml/vnuml.dtd">

<!--
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE vnuml SYSTEM "/packages/vnuml_1.8.3/share/xml/vnuml/vnuml.dtd">

This file describe the Wireless Mesh Network topology for Chorist Project
Author: 
	Huu-Nghia.Nguyen@eurecom.fr
	Christian.Bonnet@eurecom.fr
-->

<vnuml>
  <global>
    <version>1.8</version>
    <simulation_name>chorist</simulation_name>
    <automac/>
    <vm_mgmt type="none" />
    <vm_defaults exec_mode="mconsole">
  		<filesystem type="cow">/home/Local_Data/nguyenhn/airnet/root_fs.fc6</filesystem>
	<kernel>/home/Local_Data/nguyenhn/airnet/linux</kernel>
<!--
	    <filesystem type="cow">/home/all/root_fs.fc6</filesystem>
	    <kernel>/home/all/linux</kernel>
-->	

       <console id="0">xterm</console>
       <console id="1">pts</console>
       <console id="2">pts</console>
       <console id="3">pts</console>
       <console id="4">pts</console>
       <console id="5">pts</console>
    </vm_defaults>
  </global>

  <net name="Inter" mode="uml_switch" hub="yes" />
  <net name="CH.0" mode="uml_switch" hub="yes"/>
  <net name="MR1.1" mode="uml_switch" hub="yes" />
  <net name="MR2.1" mode="uml_switch" hub="yes" />
  <net name="MR1.0" mode="uml_switch" hub="yes" />
  <net name="MR2.0" mode="uml_switch" hub="yes" />
  <net name="MN1.0" mode="uml_switch" hub="yes" />
  <net name="MN2.0" mode="uml_switch" hub="yes" />

  <!-- Correspondent Node -->  

  <vm name="CN">
	  <if id="0" net="Inter">
		  <ipv6>2000::1/64</ipv6>
	  </if>
	  <route type="ipv6" gw="2000::2">2001::/16</route>
  </vm>
  
  <!-- Cluster Heads -->
  <vm name="CH">
	  <if id="1" net="Inter">
		  <ipv6>2000::2/64</ipv6>
	  </if>  
	  <if id="0" net="CH.0">
		  <ipv6>2001:100::1/64</ipv6>
	  </if>

	  <route type="ipv6" gw="2001:100::2">2001:1::1/128</route> <!-- forward to MR1 -->
	  <route type="ipv6" gw="2001:100::3">2001:1::2/128</route> <!-- forward to MR2 -->
	  <route type="ipv6" gw="2000::2">2000::/16</route> <!-- forward through CH.1-->

	  <forwarding type="ip"/>
  </vm>
  
  <!-- Mobile Routers-->
  <vm name="MR1">
	  <if id="1" net="MR1.1">
		  <ipv6>2001:100::2/64</ipv6>
	  </if>  
	  <if id="0" net="MR1.0">
		  <ipv6>2001:1::1/64</ipv6>
	  </if>
	  <route type="ipv6" gw="2001:100::1">default</route> <!-- default gateway is CH.IF0 -->
	  <forwarding type="ip"/>
  </vm> 
  
  <vm name="MR2">
	  <if id="1" net="MR2.1">
		  <ipv6>2001:100::3/64</ipv6>
	  </if>  
	  <if id="0" net="MR2.0">
		  <ipv6>2001:1::2/64</ipv6>
	  </if>
	  <route type="ipv6" gw="2001:100::1">default</route> <!-- default gateway is CH.IF0 -->
	  <forwarding type="ip"/>
  </vm>   
  
  <!-- Mobile Nodes -->  
  <vm name="MN1">
	  <if id="0" net="MN1.0">
	  </if>
  </vm>

  <vm name="MN2">
	  <if id="0" net="MN2.0">
	  </if>
  </vm>
</vnuml>