omnetpp.ini 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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. #! TODO: this shouldn't be here
  57. #! it's here because of an error in the optimizer
  58. *.host0.numPingApps = 1
  59. *.host0.pingApp[*].destAddr = "host6"
  60. *.host0.pingApp[*].startTime = 0.6s
  61. ######################################################################################################
  62. [Config Step6A]
  63. extends = Step4
  64. description = "Setting different metric for automatic routing table configuration - using dataRate metric"
  65. *.configurator.config = xmldoc("step6a.xml")
  66. *.visualizer.routingTableVisualizer.destinationFilter = "host1"
  67. ######################################################################################################
  68. [Config Step6B]
  69. extends = Step4
  70. description = "Setting different metric for automatic routing table configuration - manually specifying link cost"
  71. *.configurator.config = xmldoc("step6b.xml")
  72. *.visualizer.routingTableVisualizer.destinationFilter = "host1"
  73. ######################################################################################################
  74. [Config Step7A]
  75. network = ConfiguratorB
  76. description = "Configuring a hierarchical network - A: non optimized, fully automatic IP address assignment and static routes"
  77. *.configurator.assignDisjunctSubnetAddresses = false
  78. *.configurator.addDefaultRoutes = false
  79. *.configurator.addSubnetRoutes = false
  80. *.configurator.optimizeRoutes = false
  81. ######################################################################################################
  82. [Config Step7B]
  83. network = ConfiguratorB
  84. description = "Configuring a hierarchical network - B: optimized, fully automatic IP address assignment and static routes"
  85. ######################################################################################################
  86. [Config Step7C]
  87. network = ConfiguratorB
  88. description = "Configuring a hierarchical network - C: optimized, hierarchically asssigned IP addresses and static routes"
  89. *.configurator.config = xmldoc("step7c.xml")
  90. ######################################################################################################
  91. [Config Step8A]
  92. network = ConfiguratorC
  93. description = "Mixed wired/wireless network configuration - using <wireless> attribute"
  94. *.configurator.config = xmldoc("step8a.xml")
  95. *.area1lan3host2.numPingApps = 1
  96. *.area1lan3host2.pingApp[*].destAddr = "area3lan3host2"
  97. # visualizer settings
  98. *.visualizer.routingTableVisualizer.displayRoutingTables = true
  99. *.visualizer.routingTableVisualizer.destinationFilter = "area3lan3*"
  100. *.visualizer.routingTableVisualizer.lineShift = 0
  101. ######################################################################################################
  102. [Config Step8B]
  103. extends = Step8A
  104. description = "Mixed wired/wireless network configuration - using SSID"
  105. *.configurator.config = xmldoc("step8b.xml")
  106. *.area1AP.wlan[*].mgmt.ssid = "area1"
  107. *.area3AP.wlan[*].mgmt.ssid = "area3"
  108. *.area1lan3*.wlan[*].agent.default_ssid = "area1"
  109. *.area3lan3*.wlan[*].agent.default_ssid = "area3"
  110. ######################################################################################################
  111. [Config Step9]
  112. network = ConfiguratorC
  113. description = "Leaving some part of the network unconfigured"
  114. # Configurator settings
  115. *.configurator.config = xmldoc("step9.xml")
  116. # SSID settings
  117. *.area1AP.wlan[*].mgmt.ssid = "area1lan3"
  118. *.area3AP.wlan[*].mgmt.ssid = "area3lan3"
  119. *.area1lan3host*.wlan[*].agent.default_ssid = "area1lan3"
  120. *.area3lan3host*.wlan[*].agent.default_ssid = "area3lan3"
  121. # DHCP server in routers
  122. *.area1router.hasDHCP = true
  123. *.area1router.dhcp.typename = "DHCPServer"
  124. *.area1router.dhcp.numReservedAddresses = 2
  125. *.area1router.dhcp.leaseTime = 100s
  126. *.area1router.dhcp.maxNumClients = 3
  127. *.area1router.dhcp.interface = "eth3"
  128. *.area2router.hasDHCP = true
  129. *.area2router.dhcp.typename = "DHCPServer"
  130. *.area2router.dhcp.numReservedAddresses = 2
  131. *.area2router.dhcp.leaseTime = 100s
  132. *.area2router.dhcp.maxNumClients = 3
  133. *.area2router.dhcp.interface = "eth0"
  134. *.area3router.hasDHCP = true
  135. *.area3router.dhcp.typename = "DHCPServer"
  136. *.area3router.dhcp.numReservedAddresses = 2
  137. *.area3router.dhcp.leaseTime = 100s
  138. *.area3router.dhcp.maxNumClients = 3
  139. *.area3router.dhcp.interface = "eth3"
  140. # DHCP in hosts
  141. *.area1lan3*.numUdpApps = 1
  142. *.area1lan3*.udpApp[0].typename = "DHCPClient"
  143. *.area2lan1*.numUdpApps = 1
  144. *.area2lan1*.udpApp[0].typename = "DHCPClient"
  145. *.area3lan3*.numUdpApps = 1
  146. *.area3lan3*.udpApp[*].typename = "DHCPClient"
  147. # PingApp in host
  148. *.area1lan3host2.numPingApps = 1
  149. *.area1lan3host2.pingApp[*].destAddr = "area3lan3host2"
  150. *.area1lan3host2.pingApp[*].startTime = 3s
  151. # Visualizer settings
  152. *.visualizer.routingTableVisualizer.displayRoutingTables = true
  153. *.visualizer.routingTableVisualizer.destinationFilter = "area3lan3host2"
  154. ######################################################################################################
  155. [Config Step10A]
  156. network = ConfiguratorD
  157. description = "Completely wireless network, static routing based on error rate metric"
  158. *.configurator.config = xmldoc("step10a.xml")
  159. *.*.wlan[*].radio.transmitter.power = 1mW
  160. *.visualizer.routingTableVisualizer.displayRoutingTables = true
  161. *.visualizer.routingTableVisualizer.labelFormat = ""
  162. *.visualizer.routingTableVisualizer.lineShiftMode = "none"
  163. *.visualizer.routingTableVisualizer.destinationFilter = "*"
  164. *.visualizer.mediumVisualizer.displayCommunicationRanges = true
  165. ######################################################################################################
  166. [Config Step10B]
  167. extends = Step10A
  168. description = "Completely wireless network, routing tables unconfigured, prepared for MANET routing"
  169. *.configurator.addStaticRoutes = false
  170. ######################################################################################################
  171. [Config Step10C]
  172. extends = Step10B
  173. description = "Completely wireless network, routing tables unconfigured, using AODV routing"
  174. *.host1.numPingApps = 1
  175. *.host1.pingApp[*].destAddr = "host7"
  176. ######################################################################################################
  177. [Config Step11A]
  178. network = ConfiguratorA
  179. description = "Manually modifying an automatically created configuration - dumping the full configuration"
  180. *.configurator.dumpConfig = "step11a_dump.xml"
  181. *.visualizer.routingTableVisualizer.displayRoutingTables = true
  182. *.visualizer.routingTableVisualizer.destinationFilter = "*"
  183. *.visualizer.routingTableVisualizer.displayRoutesIndividually = false
  184. *.visualizer.routingTableVisualizer.displayLabels = false
  185. *.visualizer.routingTableVisualizer.lineShift = 0
  186. ######################################################################################################
  187. [Config Step11B]
  188. network = ConfiguratorA
  189. description = "Manually modifying an automatically created configuration - using the modified configuration"
  190. # Configurator settings
  191. *.configurator.config = xmldoc("step11b.xml")
  192. *.configurator.addStaticRoutes = false
  193. # Ping settings
  194. *.host1.numPingApps = 1
  195. *.host1.pingApp[*].destAddr = "host4"
  196. *.host4.numPingApps = 1
  197. *.host4.pingApp[*].destAddr = "host7"
  198. *.host7.numPingApps = 1
  199. *.host7.pingApp[*].destAddr = "host1"
  200. # Visualizer settings
  201. *.visualizer.routingTableVisualizer.displayRoutingTables = true
  202. *.visualizer.routingTableVisualizer.destinationFilter = "*"
  203. *.visualizer.routingTableVisualizer.displayRoutesIndividually = false
  204. *.visualizer.routingTableVisualizer.displayLabels = false
  205. *.visualizer.routingTableVisualizer.lineShift = 0
  206. ######################################################################################################
  207. [Config Step12]
  208. network = ConfiguratorE
  209. description = "Mixing different kinds of autorouting"
  210. # Configurator settings
  211. *.configurator.config = xmldoc("step12.xml")
  212. *.configurator.optimizeRoutes = false
  213. #! TODO! különben nem működik -> ezért kell
  214. # Wireless node settings
  215. *.*.wlan[*].radio.transmitter.power = 1mW
  216. *.area1host*.forwarding = true
  217. *.area1*.wlan[*].mgmtType = "Ieee80211MgmtAdhoc"
  218. # pingApp settings
  219. *.area1host1.numPingApps = 1
  220. *.area1host1.pingApp[*].destAddr = "area2host1"
  221. # Visualizer settings
  222. *.visualizer.mediumVisualizer.displayCommunicationRanges = true
  223. *.visualizer.routingTableVisualizer.displayRoutingTables = true
  224. *.visualizer.routingTableVisualizer.displayRoutesIndividually = false
  225. *.visualizer.routingTableVisualizer.displayLabels = false
  226. *.visualizer.routingTableVisualizer.lineShift = 0
  227. *.visualizer.routingTableVisualizer.destinationFilter = "*"
  228. ######################################################################################################