omnetpp.ini 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. #-----------------------------------------------------------------------------
  2. [Config Wireless01]
  3. description = Two hosts communicating wirelessly
  4. network = WirelessA
  5. sim-time-limit = 25s
  6. *.host*.networkLayer.arpType = "GlobalARP"
  7. *.hostA.numUdpApps = 1
  8. *.hostA.udpApp[0].typename = "UDPBasicApp"
  9. *.hostA.udpApp[0].destAddresses = "hostB"
  10. *.hostA.udpApp[0].destPort = 5000
  11. *.hostA.udpApp[0].messageLength = 1000B
  12. *.hostA.udpApp[0].sendInterval = exponential(12ms)
  13. *.hostA.udpApp[0].packetName = "UDPData"
  14. *.hostB.numUdpApps = 1
  15. *.hostB.udpApp[0].typename = "UDPSink"
  16. *.hostB.udpApp[0].localPort = 5000
  17. *.host*.wlan[0].typename = "IdealWirelessNic"
  18. *.host*.wlan[0].mac.useAck = false
  19. *.host*.wlan[0].mac.fullDuplex = false
  20. *.host*.wlan[0].radio.transmitter.communicationRange = 500m
  21. *.host*.wlan[0].radio.receiver.ignoreInterference = true
  22. *.host*.**.bitrate = 1Mbps
  23. #-----------------------------------------------------------------------------
  24. [Config Wireless02]
  25. description = Setting up some animations
  26. extends = Wireless01
  27. *.hostA.wlan[0].radio.displayCommunicationRange = true
  28. *.visualizer.sceneVisualizer.descriptionFigure = "title"
  29. *.visualizer.mediumVisualizer.displaySignals = true
  30. *.visualizer.physicalLinkVisualizer.displayLinks = true
  31. *.visualizer.physicalLinkVisualizer.packetFilter = "UDPData*"
  32. #-----------------------------------------------------------------------------
  33. [Config Wireless03]
  34. description = Adding more nodes and decreasing the communication range
  35. extends = Wireless02
  36. network = WirelessB
  37. *.host*.wlan[0].radio.transmitter.communicationRange = 250m
  38. *.hostR1.wlan[0].radio.displayCommunicationRange = true
  39. #-----------------------------------------------------------------------------
  40. [Config Wireless04]
  41. description = Setting up static routing
  42. extends = Wireless03
  43. *.host*.forwarding = true
  44. *.configurator.config = xml("<config><interface hosts='**' address='10.0.0.x' netmask='255.255.255.0'/><autoroute metric='errorRate'/></config>")
  45. *.configurator.optimizeRoutes = false
  46. *.host*.routingTable.netmaskRoutes = ""
  47. *.visualizer.physicalLinkVisualizer.displayLinks = true
  48. *.visualizer.dataLinkVisualizer.displayLinks = true
  49. *.visualizer.networkRouteVisualizer.displayRoutes = true
  50. *.visualizer.*LinkVisualizer.lineShift = 0
  51. *.visualizer.networkRouteVisualizer.lineShift = 0
  52. *.visualizer.networkRouteVisualizer.packetFilter = "UDPData*"
  53. #-----------------------------------------------------------------------------
  54. [Config Wireless05]
  55. description = Taking interference into account
  56. extends = Wireless04
  57. *.host*.wlan[0].radio.receiver.ignoreInterference = false
  58. *.host*.wlan[0].radio.transmitter.interferenceRange = 500m
  59. *.hostA.wlan[0].radio.displayInterferenceRange = true
  60. *.visualizer.dataLinkVisualizer.packetFilter = ""
  61. #-----------------------------------------------------------------------------
  62. [Config Wireless06]
  63. description = Using CSMA to better utilize the medium
  64. extends = Wireless05
  65. *.host*.wlan[0].typename = "WirelessNic"
  66. *.host*.wlan[0].radioType = "IdealRadio"
  67. *.host*.wlan[0].macType = "CsmaCaMac"
  68. #-----------------------------------------------------------------------------
  69. [Config Wireless07]
  70. description = Turning on ACKs in CSMA
  71. extends = Wireless06
  72. *.host*.wlan[0].mac.useAck = true
  73. #-----------------------------------------------------------------------------
  74. [Config Wireless08]
  75. description = Modeling energy consumption
  76. extends = Wireless07
  77. *.host*.wlan[0].radio.energyConsumerType = "StateBasedEpEnergyConsumer"
  78. *.host*.wlan[0].radio.energyConsumer.offPowerConsumption = 0mW
  79. *.host*.wlan[0].radio.energyConsumer.sleepPowerConsumption = 1mW
  80. *.host*.wlan[0].radio.energyConsumer.switchingPowerConsumption = 1mW
  81. *.host*.wlan[0].radio.energyConsumer.receiverIdlePowerConsumption = 2mW
  82. *.host*.wlan[0].radio.energyConsumer.receiverBusyPowerConsumption = 5mW
  83. *.host*.wlan[0].radio.energyConsumer.receiverReceivingPowerConsumption = 10mW
  84. *.host*.wlan[0].radio.energyConsumer.transmitterIdlePowerConsumption = 2mW
  85. *.host*.wlan[0].radio.energyConsumer.transmitterTransmittingPowerConsumption = 100mW
  86. *.host*.energyStorageType = "IdealEpEnergyStorage"
  87. *.host*.wlan[0].radio.displayInterferenceRange = false
  88. *.hostR1.wlan[0].radio.displayCommunicationRange = false
  89. *.visualizer.mediumVisualizer.displaySignals = false
  90. #-----------------------------------------------------------------------------
  91. [Config Wireless09]
  92. description = Configuring node movements
  93. extends = Wireless08
  94. *.hostR*.mobilityType = "LinearMobility"
  95. *.hostR*.mobility.speed = 12mps
  96. *.hostR*.mobility.angle = 270deg
  97. *.host*.wlan[0].mac.maxQueueSize = 10
  98. *.visualizer.mobilityVisualizer.displayVelocities = true
  99. *.visualizer.mobilityVisualizer.displayMovementTrails = true
  100. #-----------------------------------------------------------------------------
  101. [Config Wireless10]
  102. description = Configuring ad-hoc routing (AODV)
  103. extends = Wireless09
  104. *.configurator.addStaticRoutes = false
  105. *.hostType = "AODVRouter"
  106. *.hostB.wlan[0].radio.displayCommunicationRange = true
  107. *.visualizer.dataLinkVisualizer.packetFilter = "AODV*"
  108. #-----------------------------------------------------------------------------
  109. [Config Wireless11]
  110. description = Adding obstacles to the environment
  111. extends = Wireless10
  112. network = WirelessC
  113. *.host*.mobility.initialZ = 1.7m
  114. *.physicalEnvironment.config = xmldoc("walls.xml")
  115. *.radioMedium.obstacleLossType = "IdealObstacleLoss"
  116. #-----------------------------------------------------------------------------
  117. [Config Wireless12]
  118. description = Changing to a more realistic radio model
  119. extends = Wireless11
  120. *.mediumType = "APSKScalarRadioMedium"
  121. *.radioMedium.backgroundNoise.power = -90dBm
  122. *.radioMedium.mediumLimitCache.carrierFrequency = 2GHz
  123. *.host*.wlan[0].radioType = "APSKScalarRadio"
  124. *.host*.wlan[0].radio.carrierFrequency = 2GHz
  125. *.host*.wlan[0].radio.bandwidth = 2MHz
  126. *.host*.wlan[0].radio.transmitter.power = 1.4mW
  127. *.host*.wlan[0].radio.transmitter.preambleDuration = 10us
  128. *.host*.wlan[0].radio.transmitter.headerBitLength = 0b
  129. *.host*.wlan[0].radio.receiver.sensitivity = -85dBm
  130. *.host*.wlan[0].radio.receiver.energyDetection = -85dBm
  131. *.host*.wlan[0].radio.receiver.snirThreshold = 4dB
  132. #-----------------------------------------------------------------------------
  133. [Config Wireless13]
  134. description = Configuring a more accurate pathloss model
  135. extends = Wireless12
  136. *.physicalEnvironment.groundType = "FlatGround"
  137. *.physicalEnvironment.ground.elevation = 0m
  138. *.radioMedium.pathLossType = "TwoRayGroundReflection"
  139. #-----------------------------------------------------------------------------
  140. [Config Wireless14]
  141. description = Introducing antenna gain
  142. extends = Wireless13
  143. *.host*.wlan[0].radio.antennaType = "ConstantGainAntenna"
  144. *.host*.wlan[0].radio.antenna.gain = 3dB
  145. #-----------------------------------------------------------------------------