r37.ned 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. //
  2. // This library is free software, you can redistribute it
  3. // and/or modify
  4. // it under the terms of the GNU Lesser General Public License
  5. // as published by the Free Software Foundation;
  6. // either version 2 of the License, or any later version.
  7. // The library 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.
  10. // See the GNU Lesser General Public License for more details.
  11. //
  12. package inet.examples.mpls.net37;
  13. import inet.common.misc.ThruputMeteringChannel;
  14. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  15. import inet.node.inet.StandardHost;
  16. import inet.node.mpls.RSVP_LSR;
  17. network R37
  18. {
  19. types:
  20. channel line extends ThruputMeteringChannel
  21. {
  22. delay = 15ms;
  23. datarate = 128kbps;
  24. thruputDisplayFormat = "u";
  25. }
  26. submodules:
  27. configurator: IPv4NetworkConfigurator {
  28. parameters:
  29. @display("p=100,100");
  30. }
  31. LSR0: RSVP_LSR {
  32. parameters:
  33. @display("p=391,225");
  34. }
  35. LSR1: RSVP_LSR {
  36. parameters:
  37. @display("p=799,589");
  38. }
  39. LSR2: RSVP_LSR {
  40. parameters:
  41. @display("p=289,472");
  42. }
  43. LSR3: RSVP_LSR {
  44. parameters:
  45. @display("p=712,418");
  46. }
  47. LSR4: RSVP_LSR {
  48. parameters:
  49. @display("p=541,228");
  50. }
  51. LSR5: RSVP_LSR {
  52. parameters:
  53. @display("p=288,169");
  54. }
  55. LSR6: RSVP_LSR {
  56. parameters:
  57. @display("p=256,394");
  58. }
  59. LSR7: RSVP_LSR {
  60. parameters:
  61. @display("p=380,263");
  62. }
  63. LSR8: RSVP_LSR {
  64. parameters:
  65. @display("p=682,348");
  66. }
  67. LSR9: RSVP_LSR {
  68. parameters:
  69. @display("p=536,142");
  70. }
  71. LSR10: RSVP_LSR {
  72. parameters:
  73. @display("p=177,170");
  74. }
  75. LSR11: RSVP_LSR {
  76. parameters:
  77. @display("p=424,262");
  78. }
  79. LSR12: RSVP_LSR {
  80. parameters:
  81. @display("p=470,279");
  82. }
  83. LSR13: RSVP_LSR {
  84. parameters:
  85. @display("p=278,91");
  86. }
  87. LSR14: RSVP_LSR {
  88. parameters:
  89. @display("p=467,214");
  90. }
  91. LSR15: RSVP_LSR {
  92. parameters:
  93. @display("p=724,19");
  94. }
  95. LSR16: RSVP_LSR {
  96. parameters:
  97. @display("p=685,287");
  98. }
  99. LSR17: RSVP_LSR {
  100. parameters:
  101. @display("p=20,519");
  102. }
  103. LSR18: RSVP_LSR {
  104. parameters:
  105. @display("p=298,236");
  106. }
  107. LSR19: RSVP_LSR {
  108. parameters:
  109. @display("p=390,390");
  110. }
  111. LSR20: RSVP_LSR {
  112. parameters:
  113. @display("p=148,502");
  114. }
  115. LSR21: RSVP_LSR {
  116. parameters:
  117. @display("p=362,448");
  118. }
  119. LSR22: RSVP_LSR {
  120. parameters:
  121. @display("p=476,397");
  122. }
  123. LSR23: RSVP_LSR {
  124. parameters:
  125. @display("p=517,325");
  126. }
  127. LSR24: RSVP_LSR {
  128. parameters:
  129. @display("p=514,34");
  130. }
  131. LSR25: RSVP_LSR {
  132. parameters:
  133. @display("p=548,599");
  134. }
  135. LSR26: RSVP_LSR {
  136. parameters:
  137. @display("p=330,301");
  138. }
  139. LSR27: RSVP_LSR {
  140. parameters:
  141. @display("p=612,310");
  142. }
  143. LSR28: RSVP_LSR {
  144. parameters:
  145. @display("p=556,502");
  146. }
  147. LSR29: RSVP_LSR {
  148. parameters:
  149. @display("p=83,570");
  150. }
  151. LSR30: RSVP_LSR {
  152. parameters:
  153. @display("p=796,466");
  154. }
  155. LSR31: RSVP_LSR {
  156. parameters:
  157. @display("p=610,65");
  158. }
  159. LSR32: RSVP_LSR {
  160. parameters:
  161. @display("p=435,321");
  162. }
  163. LSR33: RSVP_LSR {
  164. parameters:
  165. @display("p=605,337");
  166. }
  167. LSR34: RSVP_LSR {
  168. parameters:
  169. @display("p=707,227");
  170. }
  171. LSR35: RSVP_LSR {
  172. parameters:
  173. @display("p=613,405");
  174. }
  175. LSR36: RSVP_LSR {
  176. parameters:
  177. @display("p=435,361");
  178. }
  179. host1: StandardHost {
  180. parameters:
  181. @display("p=299,522;i=device/laptop_s");
  182. }
  183. host2: StandardHost {
  184. parameters:
  185. @display("p=757,227;i=device/laptop_s");
  186. }
  187. connections:
  188. LSR7.pppg++ <--> line <--> LSR0.pppg++; // cost 259
  189. LSR8.pppg++ <--> line <--> LSR3.pppg++; // cost 474
  190. LSR9.pppg++ <--> line <--> LSR4.pppg++; // cost 540
  191. LSR11.pppg++ <--> line <--> LSR7.pppg++; // cost 264
  192. LSR12.pppg++ <--> line <--> LSR11.pppg++; // cost 275
  193. LSR13.pppg++ <--> line <--> LSR0.pppg++; // cost 1067
  194. LSR13.pppg++ <--> line <--> LSR5.pppg++; // cost 610
  195. LSR13.pppg++ <--> line <--> LSR10.pppg++; // cost 462
  196. LSR14.pppg++ <--> line <--> LSR0.pppg++; // cost 552
  197. LSR14.pppg++ <--> line <--> LSR4.pppg++; // cost 381
  198. LSR14.pppg++ <--> line <--> LSR12.pppg++; // cost 592
  199. LSR16.pppg++ <--> line <--> LSR8.pppg++; // cost 436
  200. LSR18.pppg++ <--> line <--> LSR0.pppg++; // cost 540
  201. LSR18.pppg++ <--> line <--> LSR5.pppg++; // cost 239
  202. LSR18.pppg++ <--> line <--> LSR10.pppg++; // cost 690
  203. LSR18.pppg++ <--> line <--> LSR17.pppg++; // cost 1977
  204. LSR20.pppg++ <--> line <--> LSR2.pppg++; // cost 760
  205. LSR20.pppg++ <--> line <--> LSR6.pppg++; // cost 834
  206. LSR20.pppg++ <--> line <--> LSR17.pppg++; // cost 751
  207. LSR21.pppg++ <--> line <--> LSR2.pppg++; // cost 508
  208. LSR21.pppg++ <--> line <--> LSR6.pppg++; // cost 756
  209. LSR21.pppg++ <--> line <--> LSR19.pppg++; // cost 411
  210. LSR23.pppg++ <--> line <--> LSR4.pppg++; // cost 757
  211. LSR23.pppg++ <--> line <--> LSR12.pppg++; // cost 456
  212. LSR23.pppg++ <--> line <--> LSR22.pppg++; // cost 522
  213. LSR24.pppg++ <--> line <--> LSR9.pppg++; // cost 722
  214. LSR24.pppg++ <--> line <--> LSR15.pppg++; // cost 1182
  215. LSR25.pppg++ <--> line <--> LSR1.pppg++; // cost 1363
  216. LSR26.pppg++ <--> line <--> LSR6.pppg++; // cost 747
  217. LSR26.pppg++ <--> line <--> LSR7.pppg++; // cost 393
  218. LSR26.pppg++ <--> line <--> LSR18.pppg++; // cost 514
  219. LSR26.pppg++ <--> line <--> LSR19.pppg++; // cost 594
  220. LSR27.pppg++ <--> line <--> LSR4.pppg++; // cost 420
  221. LSR27.pppg++ <--> line <--> LSR8.pppg++; // cost 668
  222. LSR28.pppg++ <--> line <--> LSR21.pppg++; // cost 907
  223. LSR28.pppg++ <--> line <--> LSR22.pppg++; // cost 720
  224. LSR28.pppg++ <--> line <--> LSR25.pppg++; // cost 638
  225. LSR29.pppg++ <--> line <--> LSR2.pppg++; // cost 1244
  226. LSR29.pppg++ <--> line <--> LSR17.pppg++; // cost 471
  227. LSR30.pppg++ <--> line <--> LSR1.pppg++; // cost 794
  228. LSR30.pppg++ <--> line <--> LSR3.pppg++; // cost 487
  229. LSR31.pppg++ <--> line <--> LSR9.pppg++; // cost 777
  230. LSR31.pppg++ <--> line <--> LSR15.pppg++; // cost 597
  231. LSR32.pppg++ <--> line <--> LSR12.pppg++; // cost 271
  232. LSR32.pppg++ <--> line <--> LSR26.pppg++; // cost 600
  233. LSR33.pppg++ <--> line <--> LSR23.pppg++; // cost 534
  234. LSR33.pppg++ <--> line <--> LSR27.pppg++; // cost 376
  235. LSR34.pppg++ <--> line <--> LSR4.pppg++; // cost 775
  236. LSR34.pppg++ <--> line <--> LSR15.pppg++; // cost 1370
  237. LSR34.pppg++ <--> line <--> LSR16.pppg++; // cost 383
  238. LSR35.pppg++ <--> line <--> LSR1.pppg++; // cost 1500
  239. LSR35.pppg++ <--> line <--> LSR3.pppg++; // cost 551
  240. LSR35.pppg++ <--> line <--> LSR28.pppg++; // cost 783
  241. LSR35.pppg++ <--> line <--> LSR33.pppg++; // cost 400
  242. LSR36.pppg++ <--> line <--> LSR19.pppg++; // cost 507
  243. LSR36.pppg++ <--> line <--> LSR22.pppg++; // cost 327
  244. LSR36.pppg++ <--> line <--> LSR32.pppg++; // cost 218
  245. host1.pppg++ <--> line <--> LSR2.pppg++;
  246. host2.pppg++ <--> line <--> LSR34.pppg++;
  247. }