Interference_IdealRadio_Reception_SW.test 3.4 KB

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