IGMPv3_router5.test 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. %description:
  2. Checks the router leave latency.
  3. %#--------------------------------------------------------------------------------------------------------------
  4. %inifile: omnetpp.ini
  5. [General]
  6. ned-path = .;../../../../src;../../lib
  7. sim-time-limit=10s
  8. cmdenv-express-mode = false
  9. #cmdenv-log-prefix = "%t %N: "
  10. #omnetpp 5.0 - 5.1 compatibility:
  11. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  12. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  13. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  14. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  15. network=TestIGMPNetwork
  16. **.igmpType = "IGMPv3"
  17. **.igmp.lastMemberQueryInterval = 1s
  18. **.igmp.lastMemberQueryCount = 1
  19. **.IPForward = true
  20. **.multicastForwarding = true
  21. **.scenarioManager.script = xmldoc("scenario.xml")
  22. %#--------------------------------------------------------------------------------------------------------------
  23. %file: scenario.xml
  24. <scenario>
  25. <send t="1" module="node.tester" ifname="eth0" type="IGMPv3Report">
  26. <record group="225.0.0.1" type="TO_EX" sources=""/>
  27. </send>
  28. <dump t="1.001" module="node.tester" ifname="eth0" what="listeners"/>
  29. <send t="2" module="node.tester" ifname="eth0" type="IGMPv3Report">
  30. <record group="225.0.0.1" type="TO_IN" sources=""/>
  31. </send>
  32. <dump t="3.001" module="node.tester" ifname="eth0" what="listeners"/>
  33. </scenario>
  34. %#--------------------------------------------------------------------------------------------------------------
  35. %#
  36. %# Check that Group-Specific or Group-and-Source-Specific Queries are sent.
  37. %#
  38. %postrun-command: grep "IGMPTester: .* listeners" test.out > tester.out || true
  39. %contains: tester.out
  40. IGMPTester: eth0: listeners = 225.0.0.1 E.
  41. IGMPTester: eth0: listeners = .
  42. %#--------------------------------------------------------------------------------------------------------------
  43. %not-contains: stdout
  44. undisposed object:
  45. %not-contains: stdout
  46. -- check module destructor
  47. %#--------------------------------------------------------------------------------------------------------------