omnetpp.ini 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. [General]
  2. network = HiddenNodeShowcase
  3. sim-time-limit = 5s
  4. #record-eventlog = true
  5. *.host*.networkLayer.arpType = "GlobalARP"
  6. # nic settings
  7. *.host*.wlan[*].mgmtType = "Ieee80211MgmtAdhoc"
  8. *.host*.wlan[*].radioType = "Ieee80211IdealRadio"
  9. *.host*.wlan[*].radio.transmitter.communicationRange = 300m
  10. *.host*.wlan[*].bitrate = 6Mbps
  11. *.host*.wlan[*].mac.controlBitrate = 6Mbps
  12. # visualizer settings
  13. *.visualizer.mediumVisualizer.displaySignals = true
  14. #*.visualizer.mediumVisualizer.signalPropagationUpdateInterval = 100ns
  15. *.hostA.wlan[*].radio.displayCommunicationRange = true
  16. *.hostC.wlan[*].radio.displayCommunicationRange = true
  17. *.hostA.wlan[*].radio.displayInterferenceRange = true
  18. *.hostC.wlan[*].radio.displayInterferenceRange = true
  19. #*.visualizer.physicalLinkVisualizer.packetNameFilter = "*"
  20. *.visualizer.physicalLinkVisualizer.displayLinks = true
  21. *.visualizer.dataLinkVisualizer.displayLinks = true
  22. *.visualizer.dataLinkVisualizer.packetFilter = "UDP*"
  23. # traffic generation
  24. *.hostA.numUdpApps = 1
  25. *.hostA.udpApp[0].typename = "UDPBasicApp"
  26. *.hostA.udpApp[0].destAddresses = "hostB"
  27. *.hostA.udpApp[0].destPort = 5000
  28. *.hostA.udpApp[0].packetName = "UDPData"
  29. *.hostA.udpApp[0].messageLength = 1000byte
  30. *.hostA.udpApp[0].sendInterval = exponential(5ms)
  31. *.hostC.numUdpApps = 1
  32. *.hostC.udpApp[0].typename = "UDPBasicApp"
  33. *.hostC.udpApp[0].destAddresses = "hostB"
  34. *.hostC.udpApp[0].destPort = 5000
  35. *.hostC.udpApp[0].packetName = "UDPData"
  36. *.hostC.udpApp[0].messageLength = 1000byte
  37. *.hostC.udpApp[0].sendInterval = exponential(5ms)
  38. *.hostB.numUdpApps = 1
  39. *.hostB.udpApp[0].typename = "UDPSink"
  40. *.hostB.udpApp[0].localPort = 5000
  41. # physical environment
  42. *.radioMedium.obstacleLossType = "IdealObstacleLoss"
  43. #TODO: Why HiddenNodeX? why not simply WallOnRtsCtsOn and so on?
  44. [Config WallOnRtsOff]
  45. description = "Hidden node behind wall, no RTS/CTS"
  46. *.physicalEnvironment.config = xmldoc("wall.xml")
  47. *.host*.wlan[*].mac.rtsThresholdBytes = 3000byte # turn off RTS/CTS
  48. [Config WallOnRtsOn]
  49. description = "Hidden node behind wall, RTS/CTS enabled"
  50. *.physicalEnvironment.config = xmldoc("wall.xml")
  51. *.host*.wlan[*].mac.rtsThresholdBytes = 100byte # turn on RTS/CTS
  52. [Config WallOffRtsOff]
  53. description = "No wall, no RTS/CTS"
  54. *.host*.wlan[*].mac.rtsThresholdBytes = 3000byte # turn off RTS/CTS
  55. [Config WallOffRtsOn]
  56. description = "No wall, RTS/CTS enabled"
  57. *.host*.wlan[*].mac.rtsThresholdBytes = 100byte # turn on RTS/CTS