omnetpp.ini 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. [General]
  2. network = MixedNetwork
  3. tkenv-plugin-path = ../../../etc/plugins
  4. *.numCHosts = 10
  5. *.numRipRouters = 10
  6. *.cHost[0].numPingApps = 1
  7. *.cHost[0].pingApp[0].destAddr = "rHost"
  8. *.cHost[0].pingApp[0].printPing = true
  9. [Config stable]
  10. sim-time-limit = 60s
  11. *.scenarioManager.script = xml("<scenario/>")
  12. [Config disconnect]
  13. sim-time-limit = 150s
  14. *.scenarioManager.script = \
  15. xml("<scenario>" \
  16. +"<disconnect t='31' src-module='rRouter[0]' src-gate='ethg[3]' />" \
  17. +"<disconnect t='91' src-module='rRouter[0]' src-gate='ethg[1]' />" \
  18. +"</scenario>")
  19. [Config shutdown-restart]
  20. sim-time-limit = 280s
  21. **.hasStatus = true
  22. *.scenarioManager.script = \
  23. xml("<scenario>" \
  24. +"<tell t='31' module='lifecycleController' target='rRouter[8]' operation='NodeShutdownOperation'/>" \
  25. +"<tell t='91' module='lifecycleController' target='rRouter[1]' operation='NodeShutdownOperation'/>" \
  26. +"<tell t='151' module='lifecycleController' target='rRouter[1]' operation='NodeStartOperation'/>" \
  27. +"<tell t='211' module='lifecycleController' target='rRouter[8]' operation='NodeStartOperation'/>" \
  28. +"</scenario>")