omnetpp.uncommented.ini 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. [General]
  2. # Configurator settings
  3. *.configurator.dumpAddresses = true
  4. *.configurator.dumpTopology = true
  5. *.configurator.dumpLinks = true
  6. *.configurator.dumpRoutes = true
  7. # Routing settings
  8. *.*.networkLayer.arpType = "GlobalARP"
  9. *.*.routingTable.netmaskRoutes = ""
  10. # Wireless settings
  11. *.*.wlan[*].bitrate = 54Mbps
  12. # Visualizer settings
  13. *.visualizer.interfaceTableVisualizer.displayInterfaceTables = true
  14. *.visualizer.interfaceTableVisualizer.nodeFilter = "not (*switch* or *Switch* or *AP*)"
  15. ######################################################################################################
  16. [Config Step1]
  17. network = ConfiguratorA
  18. description = "Fully automatic IP address assignment"
  19. ######################################################################################################
  20. [Config Step2]
  21. network = ConfiguratorA
  22. description = "Manually overriding individual IP addresses"
  23. # Using inline XML configuration
  24. *.configurator.config = xml("<config> \
  25. <interface hosts='host3' names='eth0' address='10.0.0.100'/> \
  26. <interface hosts='host1' names='eth0' address='10.0.0.50'/> \
  27. <interface hosts='**' address='10.x.x.x' netmask='255.x.x.x'/> \
  28. </config>")
  29. ######################################################################################################
  30. [Config Step3]
  31. network = ConfiguratorA
  32. description = "Automatically assigning IP addresses to a subnet from a given range"
  33. *.configurator.config = xmldoc("step3.xml")
  34. ######################################################################################################
  35. [Config Step4]
  36. network = ConfiguratorA
  37. description = "Fully automatic static routing table configuration"
  38. *.host1.numPingApps = 1
  39. *.host1.pingApp[*].destAddr = "host7"
  40. *.visualizer.routingTableVisualizer.displayRoutingTables = true
  41. *.visualizer.routingTableVisualizer.destinationFilter = "host7"
  42. ######################################################################################################
  43. [Config Step5A]
  44. extends = Step4
  45. description = "Manually overriding individual routes - route to a specific host"
  46. *.configurator.config = xmldoc("step5a.xml")
  47. *.host0.numPingApps = 1
  48. *.host0.pingApp[*].destAddr = "host6"
  49. *.host0.pingApp[*].startTime = 0.6s
  50. ######################################################################################################
  51. [Config Step5B]
  52. extends = Step4
  53. description = "Manually overriding individual routes - route to a set of hosts"
  54. *.configurator.config = xmldoc("step5b.xml")
  55. *.configurator.optimizeRoutes = false
  56. *.host0.numPingApps = 1
  57. *.host0.pingApp[*].destAddr = "host6"
  58. *.host0.pingApp[*].startTime = 0.6s
  59. ######################################################################################################
  60. [Config Step6A]
  61. extends = Step4
  62. description = "Setting different metric for automatic routing table configuration - using dataRate metric"
  63. *.configurator.config = xmldoc("step6a.xml")
  64. *.visualizer.routingTableVisualizer.destinationFilter = "host1"
  65. ######################################################################################################
  66. [Config Step6B]
  67. extends = Step4
  68. description = "Setting different metric for automatic routing table configuration - manually specifying link cost"
  69. *.configurator.config = xmldoc("step6b.xml")
  70. *.visualizer.routingTableVisualizer.destinationFilter = "host1"
  71. ######################################################################################################
  72. [Config Step7A]
  73. network = ConfiguratorB
  74. description = "Configuring a hierarchical network - A: non optimized, fully automatic IP address assignment and static routes"
  75. *.configurator.assignDisjunctSubnetAddresses = false
  76. *.configurator.addDefaultRoutes = false
  77. *.configurator.addSubnetRoutes = false
  78. *.configurator.optimizeRoutes = false
  79. ######################################################################################################
  80. [Config Step7B]
  81. network = ConfiguratorB
  82. description = "Configuring a hierarchical network - B: optimized, fully automatic IP address assignment and static routes"
  83. ######################################################################################################
  84. [Config Step7C]
  85. network = ConfiguratorB
  86. description = "Configuring a hierarchical network - C: optimized, hierarchically asssigned IP addresses and static routes"
  87. *.configurator.config = xmldoc("step7c.xml")
  88. ######################################################################################################
  89. [Config Step8A]
  90. network = ConfiguratorC
  91. description = "Mixed wired/wireless network configuration - using <wireless> attribute"
  92. *.configurator.config = xmldoc("step8a.xml")
  93. *.area1lan3host2.numPingApps = 1
  94. *.area1lan3host2.pingApp[*].destAddr = "area3lan3host2"
  95. # visualizer settings
  96. *.visualizer.routingTableVisualizer.displayRoutingTables = true
  97. *.visualizer.routingTableVisualizer.destinationFilter = "area3lan3*"
  98. *.visualizer.routingTableVisualizer.lineShift = 0
  99. ######################################################################################################
  100. [Config Step8B]
  101. extends = Step8A
  102. description = "Mixed wired/wireless network configuration - using SSID"
  103. *.configurator.config = xmldoc("step8b.xml")
  104. *.area1AP.wlan[*].mgmt.ssid = "area1"
  105. *.area3AP.wlan[*].mgmt.ssid = "area3"
  106. *.area1lan3*.wlan[*].agent.default_ssid = "area1"
  107. *.area3lan3*.wlan[*].agent.default_ssid = "area3"
  108. ######################################################################################################
  109. [Config Step9]
  110. network = ConfiguratorC
  111. description = "Leaving some part of the network unconfigured"
  112. # Configurator settings
  113. *.configurator.config = xmldoc("step9.xml")
  114. # SSID settings
  115. *.area1AP.wlan[*].mgmt.ssid = "area1lan3"
  116. *.area3AP.wlan[*].mgmt.ssid = "area3lan3"
  117. *.area1lan3host*.wlan[*].agent.default_ssid = "area1lan3"
  118. *.area3lan3host*.wlan[*].agent.default_ssid = "area3lan3"
  119. # DHCP server in routers
  120. *.area1router.hasDHCP = true
  121. *.area1router.dhcp.typename = "DHCPServer"
  122. *.area1router.dhcp.numReservedAddresses = 2
  123. *.area1router.dhcp.leaseTime = 100s
  124. *.area1router.dhcp.maxNumClients = 3
  125. *.area1router.dhcp.interface = "eth3"
  126. *.area2router.hasDHCP = true
  127. *.area2router.dhcp.typename = "DHCPServer"
  128. *.area2router.dhcp.numReservedAddresses = 2
  129. *.area2router.dhcp.leaseTime = 100s
  130. *.area2router.dhcp.maxNumClients = 3
  131. *.area2router.dhcp.interface = "eth0"
  132. *.area3router.hasDHCP = true
  133. *.area3router.dhcp.typename = "DHCPServer"
  134. *.area3router.dhcp.numReservedAddresses = 2
  135. *.area3router.dhcp.leaseTime = 100s
  136. *.area3router.dhcp.maxNumClients = 3
  137. *.area3router.dhcp.interface = "eth3"
  138. # DHCP in hosts
  139. *.area1lan3*.numUdpApps = 1
  140. *.area1lan3*.udpApp[0].typename = "DHCPClient"
  141. *.area2lan1*.numUdpApps = 1
  142. *.area2lan1*.udpApp[0].typename = "DHCPClient"
  143. *.area3lan3*.numUdpApps = 1
  144. *.area3lan3*.udpApp[*].typename = "DHCPClient"
  145. # PingApp in host
  146. *.area1lan3host2.numPingApps = 1
  147. *.area1lan3host2.pingApp[*].destAddr = "area3lan3host2"
  148. *.area1lan3host2.pingApp[*].startTime = 3s
  149. # Visualizer settings
  150. *.visualizer.routingTableVisualizer.displayRoutingTables = true
  151. *.visualizer.routingTableVisualizer.destinationFilter = "area3lan3host2"
  152. ######################################################################################################
  153. [Config Step10A]
  154. network = ConfiguratorD
  155. description = "Completely wireless network, static routing based on error rate metric"
  156. *.configurator.config = xmldoc("step10a.xml")
  157. *.*.wlan[*].radio.transmitter.power = 1mW
  158. *.visualizer.routingTableVisualizer.displayRoutingTables = true
  159. *.visualizer.routingTableVisualizer.labelFormat = ""
  160. *.visualizer.routingTableVisualizer.lineShiftMode = "none"
  161. *.visualizer.routingTableVisualizer.destinationFilter = "*"
  162. *.visualizer.mediumVisualizer.displayCommunicationRanges = true
  163. ######################################################################################################
  164. [Config Step10B]
  165. extends = Step10A
  166. description = "Completely wireless network, routing tables unconfigured, prepared for MANET routing"
  167. *.configurator.addStaticRoutes = false
  168. ######################################################################################################
  169. [Config Step10C]
  170. extends = Step10B
  171. description = "Completely wireless network, routing tables unconfigured, using AODV routing"
  172. *.host1.numPingApps = 1
  173. *.host1.pingApp[*].destAddr = "host7"
  174. ######################################################################################################
  175. [Config Step11A]
  176. network = ConfiguratorA
  177. description = "Manually modifying an automatically created configuration - dumping the full configuration"
  178. *.configurator.dumpConfig = "step11a_dump.xml"
  179. *.visualizer.routingTableVisualizer.displayRoutingTables = true
  180. *.visualizer.routingTableVisualizer.destinationFilter = "*"
  181. *.visualizer.routingTableVisualizer.displayRoutesIndividually = false
  182. *.visualizer.routingTableVisualizer.displayLabels = false
  183. *.visualizer.routingTableVisualizer.lineShift = 0
  184. ######################################################################################################
  185. [Config Step11B]
  186. network = ConfiguratorA
  187. description = "Manually modifying an automatically created configuration - using the modified configuration"
  188. # Configurator settings
  189. *.configurator.config = xmldoc("step11b.xml")
  190. *.configurator.addStaticRoutes = false
  191. # Ping settings
  192. *.host1.numPingApps = 1
  193. *.host1.pingApp[*].destAddr = "host4"
  194. *.host4.numPingApps = 1
  195. *.host4.pingApp[*].destAddr = "host7"
  196. *.host7.numPingApps = 1
  197. *.host7.pingApp[*].destAddr = "host1"
  198. # Visualizer settings
  199. *.visualizer.routingTableVisualizer.displayRoutingTables = true
  200. *.visualizer.routingTableVisualizer.destinationFilter = "*"
  201. *.visualizer.routingTableVisualizer.displayRoutesIndividually = false
  202. *.visualizer.routingTableVisualizer.displayLabels = false
  203. *.visualizer.routingTableVisualizer.lineShift = 0
  204. ######################################################################################################
  205. [Config Step12]
  206. network = ConfiguratorE
  207. description = "Mixing different kinds of autorouting"
  208. # Configurator settings
  209. *.configurator.config = xmldoc("step12.xml")
  210. *.configurator.optimizeRoutes = false
  211. # Wireless node settings
  212. *.*.wlan[*].radio.transmitter.power = 1mW
  213. *.area1host*.forwarding = true
  214. *.area1*.wlan[*].mgmtType = "Ieee80211MgmtAdhoc"
  215. # pingApp settings
  216. *.area1host1.numPingApps = 1
  217. *.area1host1.pingApp[*].destAddr = "area2host1"
  218. # Visualizer settings
  219. *.visualizer.mediumVisualizer.displayCommunicationRanges = true
  220. *.visualizer.routingTableVisualizer.displayRoutingTables = true
  221. *.visualizer.routingTableVisualizer.displayRoutesIndividually = false
  222. *.visualizer.routingTableVisualizer.displayLabels = false
  223. *.visualizer.routingTableVisualizer.lineShift = 0
  224. *.visualizer.routingTableVisualizer.destinationFilter = "*"
  225. ######################################################################################################