Interference_IdealRadio_Reception_WS.test 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 stronger than the reception threshold.
  5. The first signal is too weak to cause bit errors.
  6. The second 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 = 50m
  56. *.hostSender1.wlan[*].radio.transmitter.interferenceRange = 100m
  57. *.hostSender1.wlan[*].radio.transmitter.detectionRange = 200m
  58. *.hostSender2.wlan[*].radio.transmitter.communicationRange = 500m
  59. *.hostSender2.wlan[*].radio.transmitter.interferenceRange = 1km
  60. *.hostSender2.wlan[*].radio.transmitter.detectionRange = 2km
  61. *.hostReceiver.wlan[*].radio.transmitter.communicationRange = 300m
  62. *.hostReceiver.wlan[*].radio.transmitter.interferenceRange = 500m
  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 BUSY.
  72. %contains: results/General-0.elog
  73. Changing radio reception state from BUSY to RECEIVING.
  74. %contains: results/General-0.elog
  75. Passing up contained packet `ping0' to higher layer
  76. %contains: results/General-0.elog
  77. Sending datagram (inet::IPv4Datagram)ping0-reply with destination = 10.0.0.2
  78. %#--------------------------------------------------------------------------------------------------------------
  79. %not-contains: stdout
  80. undisposed object:
  81. %not-contains: stdout
  82. -- check module destructor
  83. %#--------------------------------------------------------------------------------------------------------------