omnetpp.ini 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. [General]
  2. network = NeighborCacheTest
  3. #record-eventlog = true
  4. num-rngs = 3
  5. **.mobility.rng-0 = 1
  6. **.wlan[*].mac.rng-0 = 2
  7. tkenv-plugin-path = ../../../etc/plugins
  8. # channel physical parameters
  9. **.wlan[*].typename = "IdealWirelessNic"
  10. **.wlan[*].bitrate = 2Mbps
  11. **.wlan[*].mac.address = "auto"
  12. **.wlan[*].mac.headerLength = 20B
  13. **.wlan[*].radioType = "IdealRadio"
  14. **.wlan[*].radio.transmitter.headerBitLength = 0b
  15. **.wlan[*].radio.transmitter.communicationRange = 250m
  16. **.wlan[*].radio.transmitter.interferenceRange = 0m
  17. **.wlan[*].radio.transmitter.detectionRange = 0m
  18. **.wlan[*].radio.receiver.ignoreInterference = true
  19. *.numHosts = 20
  20. # mobility
  21. **.host[0..1].mobilityType = "StationaryMobility"
  22. **.host[1].mobility.initialX = 600m
  23. **.host[1].mobility.initialY = 600m
  24. **.host[2..20].mobilityType = "LinearMobility"
  25. **.host[2..20].mobility.speed = 8mps
  26. **.mobility.constraintAreaMinZ = 0m
  27. **.mobility.constraintAreaMaxZ = 0m
  28. **.mobility.constraintAreaMinX = 0m
  29. **.mobility.constraintAreaMinY = 0m
  30. **.mobility.constraintAreaMaxX = 600m
  31. **.mobility.constraintAreaMaxY = 600m
  32. **.host[2..20].mobility.changeInterval = normal(5s, 0.1s)
  33. **.host[2..20].mobility.changeAngleBy = normal(0deg, 30deg)
  34. # ping app
  35. *.host[0].numPingApps = 1
  36. *.host[0].pingApp[0].startTime = uniform(1s,5s)
  37. *.host[0].pingApp[0].printPing = true
  38. *.host[0].pingApp[0].destAddr = "host[1](ipv4)"
  39. # lifecycle
  40. **.hasStatus = true
  41. # AODV protocol settings
  42. **.aodv.activeRouteTimeout = 3s
  43. # neighbor cache settigns
  44. **.neighborCache.refillPeriod = 1s
  45. # radio medium
  46. **.radioMedium.mediumLimitCache.communicationRange = 250m
  47. **.radioMedium.rangeFilter = "communicationRange"
  48. [Config WithoutNeighborCache]
  49. **.radioMedium.neighborCacheType = ""
  50. [Config QuadTreeNeighborCache]
  51. **.radioMedium.neighborCacheType = "QuadTreeNeighborCache"
  52. **.radioMedium.neighborCache.maxNumOfPointsPerQuadrant = 2
  53. [Config NeighborListNeighborCache]
  54. **.radioMedium.neighborCacheType = "NeighborListNeighborCache"
  55. **.radioMedium.neighborCache.range = 250m
  56. [Config GridNeighborCache]
  57. **.radioMedium.neighborCacheType = "GridNeighborCache"
  58. **.radioMedium.neighborCache.cellSizeX = 100m
  59. **.radioMedium.neighborCache.cellSizeY = 100m
  60. **.radioMedium.neighborCache.cellSizeZ = 100m