Network.ned 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // Copyright (C) 2013 Andras Varga
  2. //
  3. // This program is free software; you can redistribute it and/or
  4. // modify it under the terms of the GNU Lesser General Public License
  5. // as published by the Free Software Foundation; either version 2
  6. // of the License, or (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. package inet.examples.pim.dm.assert;
  17. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  18. import inet.node.ethernet.Eth100M;
  19. import inet.node.ethernet.EtherSwitch;
  20. import inet.node.inet.MulticastRouter;
  21. import inet.node.inet.StandardHost;
  22. network Network
  23. {
  24. @display("bgb=448,352,white");
  25. submodules:
  26. R1: MulticastRouter {
  27. @display("p=208,102");
  28. }
  29. R2: MulticastRouter {
  30. @display("p=143,163");
  31. }
  32. R3: MulticastRouter {
  33. @display("p=276,163");
  34. }
  35. Source: StandardHost {
  36. @display("p=208,33");
  37. }
  38. configurator: IPv4NetworkConfigurator {
  39. @display("p=44,41");
  40. }
  41. R4: MulticastRouter {
  42. @display("p=208,300");
  43. }
  44. Receiver: StandardHost {
  45. @display("p=301,300");
  46. }
  47. switch: EtherSwitch {
  48. @display("p=208,221");
  49. }
  50. connections allowunconnected:
  51. R1.ethg++ <--> Eth100M <--> R2.ethg++;
  52. R1.ethg++ <--> Eth100M <--> R3.ethg++;
  53. R1.ethg++ <--> Eth100M <--> Source.ethg++;
  54. switch.ethg++ <--> Eth100M <--> R2.ethg++;
  55. switch.ethg++ <--> Eth100M <--> R3.ethg++;
  56. R4.ethg++ <--> Eth100M <--> switch.ethg++;
  57. R4.ethg++ <--> Eth100M <--> Receiver.ethg++;
  58. }