ConfiguratorA.ned 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. //
  2. // This program is free software: you can redistribute it and/or modify
  3. // it under the terms of the GNU Lesser General Public License as published by
  4. // the Free Software Foundation, either version 3 of the License, or
  5. // (at your option) any later version.
  6. //
  7. // This program is distributed in the hope that it will be useful,
  8. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. // GNU Lesser General Public License for more details.
  11. //
  12. // You should have received a copy of the GNU Lesser General Public License
  13. // along with this program. If not, see http://www.gnu.org/licenses/.
  14. //
  15. package inet.tutorials.configurator;
  16. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  17. import inet.node.ethernet.Eth100M;
  18. import inet.node.ethernet.Eth10M;
  19. import inet.node.ethernet.EtherSwitch;
  20. import inet.node.inet.Router;
  21. import inet.node.inet.StandardHost;
  22. import inet.visualizer.integrated.IntegratedCanvasVisualizer;
  23. network ConfiguratorA
  24. {
  25. @display("bgb=1610.5125,874.96497");
  26. submodules:
  27. configurator: IPv4NetworkConfigurator {
  28. @display("p=100,100");
  29. }
  30. host0: StandardHost {
  31. @display("p=268.32748,417.6225");
  32. }
  33. host1: StandardHost {
  34. @display("p=227.9775,542.7075");
  35. }
  36. host2: StandardHost {
  37. @display("p=268.32748,736.3875");
  38. }
  39. host3: StandardHost {
  40. @display("p=667.7925,98.8575");
  41. }
  42. router0: Router {
  43. @display("p=667.7925,574.9875");
  44. }
  45. router2: Router {
  46. @display("p=972.435,574.9875");
  47. }
  48. router1: Router {
  49. @display("p=821.1225,369.20248");
  50. }
  51. host4: StandardHost {
  52. @display("p=843.315,70.612495");
  53. }
  54. host5: StandardHost {
  55. @display("p=972.435,98.8575");
  56. }
  57. host6: StandardHost {
  58. @display("p=1430.4075,417.6225");
  59. }
  60. host7: StandardHost {
  61. @display("p=1472.775,542.7075");
  62. }
  63. host8: StandardHost {
  64. @display("p=1430.4075,736.3875");
  65. }
  66. switch0: EtherSwitch {
  67. @display("p=518.4975,574.9875");
  68. }
  69. switch2: EtherSwitch {
  70. @display("p=1162.08,574.9875");
  71. }
  72. switch1: EtherSwitch {
  73. @display("p=821.1225,225.95999");
  74. }
  75. visualizer: IntegratedCanvasVisualizer {
  76. @display("p=98.8575,209.81999");
  77. }
  78. connections:
  79. host2.ethg++ <--> Eth100M <--> switch0.ethg++;
  80. host1.ethg++ <--> Eth100M <--> switch0.ethg++;
  81. host0.ethg++ <--> Eth100M <--> switch0.ethg++;
  82. switch0.ethg++ <--> Eth100M <--> router0.ethg++;
  83. router0.ethg++ <--> Eth100M <--> router1.ethg++;
  84. router1.ethg++ <--> Eth100M <--> switch1.ethg++;
  85. switch1.ethg++ <--> Eth100M <--> host3.ethg++;
  86. switch1.ethg++ <--> Eth100M <--> host4.ethg++;
  87. switch1.ethg++ <--> Eth100M <--> host5.ethg++;
  88. router1.ethg++ <--> Eth100M <--> router2.ethg++;
  89. router2.ethg++ <--> Eth100M <--> switch2.ethg++;
  90. switch2.ethg++ <--> Eth100M <--> host6.ethg++;
  91. switch2.ethg++ <--> Eth100M <--> host7.ethg++;
  92. switch2.ethg++ <--> Eth100M <--> host8.ethg++;
  93. router0.ethg++ <--> Eth10M <--> router2.ethg++;
  94. }