Interference_IdealRadio_Collision_SS_3.test 3.2 KB

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