omnetpp.ini 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. [General]
  2. #debug-on-errors = true
  3. #record-eventlog = true
  4. tkenv-plugin-path = ../../../etc/plugins
  5. num-rngs = 3
  6. **.mobility.rng-0 = 1
  7. **.wlan[*].mac.rng-0 = 2
  8. *.numHosts = 2
  9. # mobility
  10. *.host[*].mobilityType = "MassMobility"
  11. *.host[*].mobility.constraintAreaMinX = 0m
  12. *.host[*].mobility.constraintAreaMinY = 0m
  13. *.host[*].mobility.constraintAreaMinZ = 0m
  14. *.host[*].mobility.constraintAreaMaxX = 60m
  15. *.host[*].mobility.constraintAreaMaxY = 40m
  16. *.host[*].mobility.constraintAreaMaxZ = 0m
  17. *.host[*].mobility.initFromDisplayString = false
  18. *.host[*].mobility.changeInterval = truncnormal(2s, 0.5s)
  19. *.host[*].mobility.changeAngleBy = normal(0deg, 30deg)
  20. *.host[*].mobility.speed = truncnormal(20mps, 8mps)
  21. *.host[*].mobility.updateInterval = 100ms
  22. # ping app (host[0] pinged by others)
  23. *.host[0].numPingApps = 0
  24. *.host[*].numPingApps = 1
  25. *.host[*].pingApp[*].destAddr = "host[0]"
  26. *.host[*].pingApp[*].printPing = true
  27. [Config AbstractIdealMac]
  28. *.host[*].wlan[*].typename = "IdealWirelessNic"
  29. *.host[*].wlan[*].bitrate = 2Mbps
  30. *.host[*].wlan[*].mac.headerLength = 10B
  31. [Config AbstractBMac]
  32. *.host[*].wlan[*].typename = "WirelessNic"
  33. *.host[*].wlan[*].macType = "BMacLayer"
  34. [Config AbstractLMac]
  35. *.host[*].wlan[*].typename = "WirelessNic"
  36. *.host[*].wlan[*].macType = "LMacLayer"
  37. *.host[*].wlan[*].mac.numSlots = 2
  38. [Config AbstractCSMA]
  39. *.host[*].wlan[*].typename = "WirelessNic"
  40. *.host[*].wlan[*].macType = "CSMA"
  41. *.host[*].wlan[*].mac.useMACAcks = false
  42. *.host[*].wlan[*].mac.rxSetupTime = 0s
  43. [Config AbstractIeee80211Mac]
  44. *.host[*].wlan[*].typename = "Ieee80211Nic"
  45. *.host[*].wlan[*].mgmtType = "Ieee80211MgmtAdhoc"
  46. [Config AbstractIdealRadio]
  47. *.radioMediumType = "IdealRadioMedium"
  48. *.host[*].wlan[*].radioType = "IdealRadio"
  49. *.host[*].wlan[*].radio.transmitter.bitrate = 2Mbps
  50. *.host[*].wlan[*].radio.transmitter.preambleDuration = 0s
  51. *.host[*].wlan[*].radio.transmitter.headerBitLength = 100b
  52. *.host[*].wlan[*].radio.transmitter.communicationRange = 100m
  53. *.host[*].wlan[*].radio.transmitter.interferenceRange = 0m
  54. *.host[*].wlan[*].radio.transmitter.detectionRange = 0m
  55. *.host[*].wlan[*].radio.receiver.ignoreInterference = true
  56. [Config AbstractAPSKScalarRadio]
  57. *.radioMediumType = "APSKScalarRadioMedium"
  58. *.radioMedium.backgroundNoise.power = -110dBm
  59. *.host[*].wlan[*].radioType = "APSKScalarRadio"
  60. *.host[*].wlan[*].radio.carrierFrequency = 2.412GHz
  61. *.host[*].wlan[*].radio.bandwidth = 2MHz
  62. *.host[*].wlan[*].radio.transmitter.power = 2mW
  63. *.host[*].wlan[*].radio.transmitter.bitrate = 2Mbps
  64. *.host[*].wlan[*].radio.transmitter.preambleDuration = 0s
  65. *.host[*].wlan[*].radio.transmitter.headerBitLength = 100b
  66. *.host[*].wlan[*].radio.transmitter.modulation = "BPSK"
  67. *.host[*].wlan[*].radio.receiver.sensitivity = -85dBm
  68. *.host[*].wlan[*].radio.receiver.energyDetection = -85dBm
  69. *.host[*].wlan[*].radio.receiver.snirThreshold = 4dB
  70. [Config AbstractAPSKDimensionalRadio]
  71. *.radioMediumType = "APSKDimensionalRadioMedium"
  72. *.radioMedium.backgroundNoise.power = -110dBm
  73. *.host[*].wlan[*].radioType = "APSKDimensionalRadio"
  74. *.host[*].wlan[*].radio.carrierFrequency = 2.412GHz
  75. *.host[*].wlan[*].radio.bandwidth = 2MHz
  76. *.host[*].wlan[*].radio.transmitter.power = 2mW
  77. *.host[*].wlan[*].radio.transmitter.bitrate = 2Mbps
  78. *.host[*].wlan[*].radio.transmitter.preambleDuration = 0s
  79. *.host[*].wlan[*].radio.transmitter.headerBitLength = 100b
  80. *.host[*].wlan[*].radio.transmitter.modulation = "BPSK"
  81. *.host[*].wlan[*].radio.receiver.sensitivity = -85dBm
  82. *.host[*].wlan[*].radio.receiver.energyDetection = -85dBm
  83. *.host[*].wlan[*].radio.receiver.snirThreshold = 4dB
  84. [Config IdealMacWithIdealRadio]
  85. network = TestNic
  86. extends = AbstractIdealMac, AbstractIdealRadio
  87. description = "Ideal mac with ideal radio"
  88. [Config IdealMacWithAPSKScalarRadio]
  89. network = TestNic
  90. extends = AbstractIdealMac, AbstractAPSKScalarRadio
  91. description = "Ideal mac with scalar radio"
  92. *.host[*].wlan[*].mac.fullDuplex = false
  93. [Config IdealMacWithAPSKDimensionalRadio]
  94. network = TestNic
  95. extends = AbstractIdealMac, AbstractAPSKDimensionalRadio
  96. description = "Ideal mac with dimensional radio"
  97. *.host[*].wlan[*].mac.fullDuplex = false
  98. [Config LMacWithIdealRadio]
  99. network = TestNic
  100. extends = AbstractLMac, AbstractIdealRadio
  101. description = "Lightweight mac with ideal radio"
  102. [Config LMacWithAPSKScalarRadio]
  103. network = TestNic
  104. extends = AbstractLMac, AbstractAPSKScalarRadio
  105. description = "Lightweight mac with scalar radio"
  106. [Config LMacWithAPSKDimensionalRadio]
  107. network = TestNic
  108. extends = AbstractLMac, AbstractAPSKDimensionalRadio
  109. description = "Lightweight mac with dimensional radio"
  110. [Config CSMAWithIdealRadio]
  111. network = TestNic
  112. extends = AbstractCSMA, AbstractIdealRadio
  113. description = "CSMA mac with ideal radio"
  114. [Config CSMAWithAPSKScalarRadio]
  115. network = TestNic
  116. extends = AbstractCSMA, AbstractAPSKScalarRadio
  117. description = "CSMA mac with scalar radio"
  118. [Config CSMAWithAPSKDimensionalRadio]
  119. network = TestNic
  120. extends = AbstractCSMA, AbstractAPSKDimensionalRadio
  121. description = "CSMA mac with dimensional radio"
  122. [Config BMacWithIdealRadio]
  123. network = TestNic
  124. extends = AbstractBMac, AbstractIdealRadio
  125. description = "Berkley mac with ideal radio"
  126. [Config BMacWithAPSKScalarRadio]
  127. network = TestNic
  128. extends = AbstractBMac, AbstractAPSKScalarRadio
  129. description = "Berkley mac with scalar radio"
  130. [Config BMacWithAPSKDimensionalRadio]
  131. network = TestNic
  132. extends = AbstractBMac, AbstractAPSKDimensionalRadio
  133. description = "Berkley mac with dimensional radio"
  134. [Config Ieee80211MacWithIdealRadio]
  135. network = TestNic
  136. extends = AbstractIeee80211Mac, AbstractIdealRadio
  137. description = "IEEE 80211 mac with ideal radio"
  138. # nic settings
  139. **.wlan[*].bitrate = 54Mbps
  140. **.mac.dataBitrate = 54Mbps
  141. **.mac.basicBitrate = 2Mbps
  142. **.mac.multicastBitrate = 54Mbps
  143. **.mac.controlBitrate = 54Mbps
  144. #for validation
  145. [Config Ieee80211MacWithIeee80211ScalarRadio]
  146. network = TestNic
  147. extends = AbstractIeee80211Mac, AbstractAPSKScalarRadio
  148. description = "IEEE 80211 mac with scalar radio"
  149. *.host[*].wlan[*].radioType = "Ieee80211ScalarRadio"
  150. # nic settings
  151. **.mac.dataBitrate = 54Mbps
  152. **.mac.basicBitrate = 2Mbps
  153. **.mac.multicastBitrate = 2Mbps
  154. **.mac.controlBitrate = 2Mbps
  155. #for validation