omnetpp.ini.ftl 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. [General]
  2. network = ${targetTypeName}
  3. <#if parametric>
  4. *.numOfHosts = ${numOfHosts}
  5. <#assign host_0 = "host[0]">
  6. <#assign host_all = "host[*]">
  7. <#else>
  8. <#assign host_0 = "host0">
  9. <#assign host_all = "host*">
  10. </#if>
  11. #debug-on-errors = true
  12. tkenv-plugin-path = ../../../etc/plugins
  13. **.mobility.constraintAreaMinZ = 0m
  14. **.mobility.constraintAreaMaxZ = 0m
  15. **.mobility.constraintAreaMinX = 0m
  16. **.mobility.constraintAreaMinY = 0m
  17. **.mobility.constraintAreaMaxX = 600m
  18. **.mobility.constraintAreaMaxY = 400m
  19. **.debug = false
  20. **.coreDebug = false
  21. **.channelNumber = 0
  22. # channel physical parameters
  23. *.channelControl.carrierFrequency = 2.4GHz
  24. *.channelControl.pMax = 20.0mW
  25. *.channelControl.sat = -110dBm
  26. *.channelControl.alpha = 2
  27. # mobility
  28. **.${host_all}.mobilityType = "MassMobility"
  29. **.${host_all}.mobility.changeInterval = truncnormal(2s, 0.5s)
  30. **.${host_all}.mobility.changeAngleBy = normal(0deg, 30deg)
  31. **.${host_all}.mobility.speed = truncnormal(20mps, 8mps)
  32. **.${host_all}.mobility.updateInterval = 100ms
  33. <#if hasUdpApp>
  34. # udp app
  35. **.numUdpApps = 1
  36. **.${host_0}.udpApp[*].typename = "UDPVideoStreamSvr"
  37. **.${host_0}.udpApp[*].videoSize = 10MiB
  38. **.${host_0}.udpApp[*].serverPort = 3088
  39. **.${host_0}.udpApp[*].sendInterval = 10ms
  40. **.${host_0}.udpApp[*].packetLen = 1000B
  41. **.${host_all}.udpApp[*].typename = "UDPVideoStreamCli"
  42. **.${host_all}.udpApp[*].serverAddress = "${host_0}"
  43. **.${host_all}.udpApp[*].localPort = 9999
  44. **.${host_all}.udpApp[*].serverPort = 3088
  45. **.${host_all}.udpApp[*].startTime = 0
  46. </#if>
  47. <#if hasPingApp>
  48. # ping app (${host_0} pinged by others)
  49. **.numPingApps = 1
  50. *.${host_0}.pingApp[*].destAddr = ""
  51. *.${host_all}.pingApp[*].destAddr = "${host_0}"
  52. **.pingApp[*].sendInterval = 10ms
  53. **.pingApp[*].startTime = uniform(0s,0.1s)
  54. </#if>
  55. <#if hasTcpApp>
  56. **.${host_0}.tcpType = "${serverTcpLayer}" # TCP/TCP_lwIP/TCP_NSC
  57. **.${host_all}.tcpType = "${clientTcpLayer}" # TCP/TCP_lwIP/TCP_NSC
  58. # tcp apps
  59. **.${host_0}.numTcpApps = 1
  60. **.${host_0}.tcpApp[0].typename = "TCPSinkApp"
  61. **.${host_all}.numTcpApps = 1
  62. **.${host_all}.tcpApp[0].typename = "TCPSessionApp" # ftp
  63. **.${host_all}.tcpApp[0].connectAddress = "${host_0}"
  64. </#if>
  65. # nic settings
  66. **.bitrate = 2Mbps
  67. **.mac.address = "auto"
  68. **.mac.maxQueueSize = 14
  69. **.mac.rtsThresholdBytes = 3000B
  70. **.wlan[*].mac.retryLimit = 7
  71. **.wlan[*].mac.cwMinData = 7
  72. **.wlan[*].mac.cwMinMulticast = 31
  73. **.radio.transmitterPower = 20.0mW
  74. **.radio.carrierFrequency = 2.4GHz
  75. **.radio.thermalNoise = -110dBm
  76. **.radio.sensitivity = -85dBm
  77. **.radio.pathLossAlpha = 2
  78. **.radio.snirThreshold = 4dB
  79. # relay unit configuration
  80. **.relayUnitType = "MACRelayUnitNP"
  81. **.relayUnit.addressTableSize = 100
  82. **.relayUnit.agingTime = 120s
  83. **.relayUnit.bufferSize = 1MiB
  84. **.relayUnit.highWatermark = 512KiB
  85. **.relayUnit.pauseUnits = 300 # pause for 300*512 bit (19200 byte) time
  86. **.relayUnit.addressTableFile = ""
  87. **.relayUnit.numCPUs = 2
  88. **.relayUnit.processingTime = 2us