Ieee8021d-STP.test 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. %description:
  2. Test RSTP treebuilding
  3. %file: test.ned
  4. import inet.node.ethernet.Eth1G;
  5. import inet.node.ethernet.EtherHost;
  6. import inet.common.lifecycle.LifecycleController;
  7. import inet.node.ethernet.EtherSwitch;
  8. import inet.common.scenario.ScenarioManager;
  9. import inet.linklayer.configurator.L2NetworkConfigurator;
  10. import inet.linklayer.ieee8021d.tester.STPTester;
  11. network LargeNet
  12. {
  13. submodules:
  14. stpTester: STPTester;
  15. scenarioManager: ScenarioManager;
  16. l2NetworkConfigurator: L2NetworkConfigurator;
  17. lifecycleController: LifecycleController;
  18. switch1: EtherSwitch;
  19. switch2: EtherSwitch;
  20. switch3: EtherSwitch;
  21. switch4: EtherSwitch;
  22. switch5: EtherSwitch;
  23. switch6: EtherSwitch;
  24. switch7: EtherSwitch;
  25. switch8: EtherSwitch;
  26. switch9: EtherSwitch;
  27. switch10: EtherSwitch;
  28. switch11: EtherSwitch;
  29. host1: EtherHost;
  30. host2: EtherHost;
  31. host3: EtherHost;
  32. host4: EtherHost;
  33. host5: EtherHost;
  34. host6: EtherHost;
  35. connections:
  36. switch1.ethg++ <--> Eth1G <--> switch4.ethg++;
  37. switch1.ethg++ <--> Eth1G <--> switch3.ethg++;
  38. switch2.ethg++ <--> Eth1G <--> switch4.ethg++;
  39. switch2.ethg++ <--> Eth1G <--> switch6.ethg++;
  40. switch2.ethg++ <--> Eth1G <--> switch7.ethg++;
  41. switch3.ethg++ <--> Eth1G <--> switch7.ethg++;
  42. switch4.ethg++ <--> Eth1G <--> switch6.ethg++;
  43. switch4.ethg++ <--> Eth1G <--> switch7.ethg++;
  44. switch5.ethg++ <--> Eth1G <--> switch7.ethg++;
  45. switch11.ethg++ <--> Eth1G <--> switch9.ethg++;
  46. switch11.ethg++ <--> Eth1G <--> switch10.ethg++;
  47. switch11.ethg++ <--> Eth1G <--> switch5.ethg++;
  48. switch9.ethg++ <--> Eth1G <--> switch10.ethg++;
  49. switch8.ethg++ <--> Eth1G <--> switch9.ethg++;
  50. switch8.ethg++ <--> Eth1G <--> switch11.ethg++;
  51. switch8.ethg++ <--> Eth1G <--> switch5.ethg++;
  52. switch8.ethg++ <--> Eth1G <--> switch2.ethg++;
  53. switch3.ethg++ <--> Eth1G <--> host3.ethg;
  54. switch5.ethg++ <--> Eth1G <--> host2.ethg;
  55. switch6.ethg++ <--> Eth1G <--> host1.ethg;
  56. host5.ethg <--> Eth1G <--> switch9.ethg++;
  57. host4.ethg <--> Eth1G <--> switch10.ethg++;
  58. host6.ethg <--> Eth1G <--> switch8.ethg++;
  59. }
  60. %inifile: omnetpp.ini
  61. [General]
  62. sim-time-limit = 50s
  63. cmdenv-express-mode = false
  64. tkenv-plugin-path = ../../../etc/plugins
  65. ned-path = .;../../../../src;../../lib
  66. #omnetpp 5.0 - 5.1 compatibility:
  67. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  68. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  69. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  70. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  71. **.vector-recording = false
  72. **.agingTime = 1s
  73. network = LargeNet
  74. **.switch1.**.address="AAAAAA000001"
  75. **.switch2.**.address="AAAAAA000002"
  76. **.switch3.**.address="AAAAAA000003"
  77. **.switch4.**.address="AAAAAA000004"
  78. **.switch5.**.address="AAAAAA000005"
  79. **.switch6.**.address="AAAAAA000006"
  80. **.switch7.**.address="AAAAAA000007"
  81. **.switch8.**.address="AAAAAA000008"
  82. **.switch9.**.address="AAAAAA000009"
  83. **.switch10.**.address="AAAAAA00000A"
  84. **.switch11.**.address="AAAAAA00000B"
  85. **.host2.cli.destAddress = "LargeNet.host1"
  86. **.host3.cli.destAddress = "LargeNet.host1"
  87. **.host4.cli.destAddress = "LargeNet.host6"
  88. **.host5.cli.destAddress = "LargeNet.host3"
  89. **.host6.cli.destAddress = "LargeNet.host3"
  90. **.host*.cli.startTime = 10ms
  91. **.spanningTreeProtocol = "STP"
  92. %contains-regex: stdout
  93. The network topology is a tree topology
  94. %#--------------------------------------------------------------------------------------------------------------
  95. %not-contains: stdout
  96. undisposed object:
  97. %not-contains: stdout
  98. -- check module destructor
  99. %#--------------------------------------------------------------------------------------------------------------