pimDMFinal.ned 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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.dm.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 pimDMFinal
  26. {
  27. @display("bgb=448,352,white");
  28. submodules:
  29. R1: MulticastRouter {
  30. @display("p=208,102");
  31. }
  32. R2: MulticastRouter {
  33. @display("p=143,163");
  34. }
  35. R3: MulticastRouter {
  36. @display("p=276,163");
  37. }
  38. Source1: StandardHost {
  39. @display("p=208,33");
  40. }
  41. Host1: StandardHost {
  42. @display("p=98,235;i=device/pc");
  43. }
  44. Source2: StandardHost {
  45. @display("p=242,235");
  46. }
  47. Host2: StandardHost {
  48. @display("p=177,235;i=device/pc");
  49. }
  50. Host3: StandardHost {
  51. @display("p=317,235;i=device/pc");
  52. }
  53. configurator: IPv4NetworkConfigurator {
  54. @display("p=44,41");
  55. }
  56. // scenarioManager: ScenarioManager {
  57. // @display("p=376,26");
  58. // script = xmldoc("scenario.xml");
  59. // }
  60. connections allowunconnected:
  61. R1.ethg++ <--> Eth100M <--> R2.ethg++;
  62. R1.ethg++ <--> Eth100M <--> R3.ethg++;
  63. R1.ethg++ <--> Eth100M <--> Source1.ethg++;
  64. R2.ethg++ <--> Eth100M <--> Host1.ethg++;
  65. R2.ethg++ <--> Eth100M <--> Host2.ethg++;
  66. R3.ethg++ <--> Eth100M <--> Source2.ethg++;
  67. R3.ethg++ <--> Eth100M <--> Host3.ethg++;
  68. }