omnetpp.ini 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [General]
  2. network = SimpleTest
  3. tkenv-plugin-path = ../../../etc/plugins
  4. **.ospf.ospfConfig = xmldoc("ASConfig.xml")
  5. **.numUdpApps = 2
  6. **.udpApp[0].typename = "UDPBasicApp"
  7. **.udpApp[0].destPort = 1234
  8. **.udpApp[0].messageLength = 32 bytes
  9. **.udpApp[0].sendInterval = 0.1s
  10. **.udpApp[0].startTime = 4s
  11. **.H2.udpApp[0].destAddresses = "H1"
  12. **.H1.udpApp[0].destAddresses = "H2"
  13. **.udpApp[1].typename = "UDPEchoApp"
  14. **.udpApp[1].localPort = 1234
  15. **.arp.cacheTimeout = 1s
  16. [Config AlwaysUp]
  17. **.scenarioManager.script = xml("<empty/>")
  18. [Config ShutdownAndRestart]
  19. **.scenarioManager.script = xml( \
  20. "<script>\n" + \
  21. "<at t='3s'><tell module='lifecycleController' operation='NodeShutdownOperation' target='R1'/></at>\n" + \
  22. "<at t='6s'><tell module='lifecycleController' operation='NodeStartOperation' target='R1'/></at>\n" + \
  23. "<at t='10s'><tell module='lifecycleController' operation='NodeShutdownOperation' target='R1'/></at>\n" + \
  24. "<at t='11'><tell module='lifecycleController' operation='NodeShutdownOperation' target='R2'/></at>\n" + \
  25. "<at t='20s'><tell module='lifecycleController' operation='NodeStartOperation' target='R1'/></at>\n" + \
  26. "<at t='21s'><tell module='lifecycleController' operation='NodeStartOperation' target='R2'/></at>\n" + \
  27. "</script>")
  28. [Config CrashAndReboot]
  29. **.scenarioManager.script = xml( \
  30. "<script>\n" + \
  31. "<at t='3s'><tell module='lifecycleController' operation='NodeCrashOperation' target='R1'/></at>\n" + \
  32. "<at t='6s'><tell module='lifecycleController' operation='NodeStartOperation' target='R1'/></at>\n" + \
  33. "<at t='10s'><tell module='lifecycleController' operation='NodeCrashOperation' target='R1'/></at>\n" + \
  34. "<at t='11'><tell module='lifecycleController' operation='NodeCrashOperation' target='R2'/></at>\n" + \
  35. "<at t='20s'><tell module='lifecycleController' operation='NodeStartOperation' target='R1'/></at>\n" + \
  36. "<at t='21s'><tell module='lifecycleController' operation='NodeStartOperation' target='R2'/></at>\n" + \
  37. "</script>")