Interference_IdealRadio_Collision_WW.test 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. %description:
  2. This is a test for ideal radio interference handling.
  3. The first signal is weaker than the reception threshold.
  4. The second signal is weaker than the reception threshold.
  5. No signals are expected to be received.
  6. %file: test.ned
  7. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  8. import inet.node.inet.WirelessHost;
  9. import inet.physicallayer.idealradio.IdealRadioMedium;
  10. network Test
  11. {
  12. submodules:
  13. radioMedium: IdealRadioMedium;
  14. configurator: IPv4NetworkConfigurator;
  15. hostSender1: WirelessHost;
  16. hostSender2: WirelessHost;
  17. hostReceiver: WirelessHost;
  18. }
  19. %inifile: omnetpp.ini
  20. [General]
  21. network = Test
  22. sim-time-limit = 500us
  23. record-eventlog = true
  24. ned-path = .;../../../../src
  25. #omnetpp 5.0 - 5.1 compatibility:
  26. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  27. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  28. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  29. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  30. **.arpType = "GlobalARP"
  31. **.mobility.constraintAreaMinZ = 0m
  32. **.mobility.constraintAreaMinX = 0m
  33. **.mobility.constraintAreaMinY = 0m
  34. **.mobility.constraintAreaMaxX = 1000m
  35. **.mobility.constraintAreaMaxY = 1000m
  36. **.mobility.constraintAreaMaxZ = 0m
  37. **.mobility.initFromDisplayString = false
  38. **.mobility.initialY = 500m
  39. **.mobility.initialZ = 0m
  40. *.host*.mobilityType = "StationaryMobility"
  41. *.hostSender1.mobility.initialX = 200m
  42. *.hostSender2.mobility.initialX = 800m
  43. *.hostReceiver.mobility.initialX = 400m
  44. # nic
  45. *.host*.wlan[*].typename = "IdealWirelessNic"
  46. *.host*.wlan[*].bitrate = 2Mbps
  47. *.host*.wlan[*].mac.headerLength = 10B
  48. *.host*.wlan[*].mac.fullDuplex = false
  49. *.host*.wlan[*].radioType = "IdealRadio"
  50. *.host*.wlan[*].radio.transmitter.bitrate = 2Mbps
  51. *.host*.wlan[*].radio.transmitter.preambleDuration = 0s
  52. *.host*.wlan[*].radio.transmitter.headerBitLength = 100b
  53. *.host*.wlan[*].radio.receiver.ignoreInterference = false
  54. *.hostSender1.wlan[*].radio.transmitter.communicationRange = 150m
  55. *.hostSender1.wlan[*].radio.transmitter.interferenceRange = 300m
  56. *.hostSender1.wlan[*].radio.transmitter.detectionRange = 600m
  57. *.hostSender2.wlan[*].radio.transmitter.communicationRange = 300m
  58. *.hostSender2.wlan[*].radio.transmitter.interferenceRange = 600m
  59. *.hostSender2.wlan[*].radio.transmitter.detectionRange = 1.2km
  60. *.hostReceiver.wlan[*].radio.transmitter.communicationRange = 0m
  61. *.hostReceiver.wlan[*].radio.transmitter.interferenceRange = 0m
  62. *.hostReceiver.wlan[*].radio.transmitter.detectionRange = 0m
  63. # ping app
  64. *.hostSender*.numPingApps = 1
  65. *.hostSender*.pingApp[0].count = 1
  66. *.hostSender*.pingApp[0].printPing = true
  67. *.hostSender*.pingApp[0].destAddr = "hostReceiver"
  68. *.hostSender*.pingApp[0].startTime = 0s
  69. %not-contains: results/General-0.elog
  70. Changing radio reception state from IDLE to RECEIVING.
  71. %not-contains: results/General-0.elog
  72. Received (inet::IdealMacFrame)ping0 contains bit errors or collision, dropping it
  73. %not-contains: results/General-0.elog
  74. Passing up contained packet `ping0' to higher layer
  75. %#--------------------------------------------------------------------------------------------------------------
  76. %not-contains: stdout
  77. undisposed object:
  78. %not-contains: stdout
  79. -- check module destructor
  80. %#--------------------------------------------------------------------------------------------------------------