Interference_IdealRadio_Collision_SS_2.test 3.4 KB

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