pingapp_1.test 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. %description:
  2. Test for one host pinging another.
  3. %inifile: omnetpp.ini
  4. [General]
  5. network = Test
  6. tkenv-plugin-path = ../../../etc/plugins
  7. ned-path = .;../../../../src;../../lib
  8. cmdenv-express-mode = false
  9. #omnetpp 5.0 - 5.1 compatibility:
  10. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  11. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  12. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  13. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  14. *.host*.numPingApps = 1
  15. *.hostSource.pingApp[0].startTime = 0.1s
  16. *.hostSource.pingApp[0].stopTime = 10s
  17. *.hostSource.pingApp[0].destAddr = "hostDestination"
  18. *.hostSource.pingApp[0].printPing = true
  19. %file: test.ned
  20. import inet.node.ethernet.Eth10M;
  21. import inet.node.inet.StandardHost;
  22. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  23. network Test
  24. {
  25. submodules:
  26. hostSource: StandardHost;
  27. hostDestination: StandardHost;
  28. configurator: IPv4NetworkConfigurator;
  29. connections:
  30. hostSource.ethg++ <--> Eth10M <--> hostDestination.ethg++;
  31. }
  32. %#--------------------------------------------------------------------------------------------------------------
  33. %contains-regex: stdout
  34. --------------------------------------------------------
  35. sent: 10 received: 10 loss rate \(%\): 0
  36. round-trip min/avg/max \(ms\): 0\.1761/0\.18763/0\.2914
  37. stddev \(ms\): 0\.0364611 variance:1\.32941e-00?9
  38. --------------------------------------------------------
  39. %#--------------------------------------------------------------------------------------------------------------
  40. %not-contains: stdout
  41. undisposed object:
  42. %not-contains: stdout
  43. -- check module destructor
  44. %#--------------------------------------------------------------------------------------------------------------