PIM-SM.ned 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. // Copyright (C) 2013 Brno University of Technology (http://nes.fit.vutbr.cz/ansa)
  2. //
  3. // This program is free software: you can redistribute it and/or modify
  4. // it under the terms of the GNU Lesser General Public License as published by
  5. // the Free Software Foundation, either version 3 of the License, or
  6. // (at your option) any later version.
  7. //
  8. // This program is distributed in the hope that it will be useful,
  9. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. // GNU Lesser General Public License for more details.
  12. //
  13. // You should have received a copy of the GNU Lesser General Public License
  14. // along with this program. If not, see http://www.gnu.org/licenses/.
  15. //
  16. // @file finalTest.ned
  17. // @date 21.10.2011
  18. // @author: Tomas Prochazka (mailto:xproch21@stud.fit.vutbr.cz), Vladimir Vesely (mailto:ivesely@fit.vutbr.cz)
  19. // @brief Topology with PIM network
  20. package inet.examples.pim.sm.basic;
  21. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  22. import inet.node.ethernet.Eth100M;
  23. import inet.node.inet.MulticastRouter;
  24. import inet.node.inet.StandardHost;
  25. network PIM_SM_Network
  26. {
  27. @display("bgb=567,467");
  28. submodules:
  29. DR_R1: MulticastRouter {
  30. parameters:
  31. @display("p=70,420");
  32. gates:
  33. ethg[3];
  34. }
  35. DR_R2: MulticastRouter {
  36. parameters:
  37. @display("p=70,302");
  38. gates:
  39. ethg[4];
  40. }
  41. RP: MulticastRouter {
  42. parameters:
  43. @display("p=394,302");
  44. gates:
  45. ethg[3];
  46. }
  47. DR_S2: MulticastRouter {
  48. parameters:
  49. @display("p=230,197");
  50. gates:
  51. ethg[4];
  52. }
  53. DR_S1: MulticastRouter {
  54. parameters:
  55. @display("p=420,143");
  56. gates:
  57. ethg[3];
  58. }
  59. Source2: StandardHost {
  60. parameters:
  61. @display("i=device/server;p=230,36");
  62. gates:
  63. ethg[1];
  64. }
  65. Source1: StandardHost {
  66. parameters:
  67. @display("i=device/server;p=536,29");
  68. gates:
  69. ethg[1];
  70. }
  71. Receiver1: StandardHost {
  72. parameters:
  73. @display("p=394,420");
  74. gates:
  75. ethg[1];
  76. }
  77. Receiver2: StandardHost {
  78. parameters:
  79. @display("p=70,85");
  80. gates:
  81. ethg[1];
  82. }
  83. configurator: IPv4NetworkConfigurator {
  84. @display("p=510,420");
  85. }
  86. connections allowunconnected:
  87. DR_R2.ethg[2] <--> Eth100M <--> RP.ethg[1];
  88. DR_R2.ethg[1] <--> Eth100M <--> DR_S2.ethg[1];
  89. RP.ethg[0] <--> Eth100M <--> DR_S2.ethg[2];
  90. DR_S2.ethg[0] <--> Eth100M <--> DR_S1.ethg[1];
  91. DR_S1.ethg[0] <--> Eth100M <--> Source1.ethg[0];
  92. DR_R1.ethg[1] <--> Eth100M <--> DR_R2.ethg[0];
  93. Receiver1.ethg[0] <--> Eth100M <--> DR_R1.ethg[0];
  94. Receiver2.ethg[0] <--> Eth100M <--> DR_R2.ethg[3];
  95. DR_S2.ethg[3] <--> Eth100M <--> Source2.ethg[0];
  96. }