RSVPTE4.ned 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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.testte_failure2;
  13. import inet.common.lifecycle.LifecycleController;
  14. import inet.common.scenario.ScenarioManager;
  15. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  16. import inet.node.inet.StandardHost;
  17. import inet.node.mpls.RSVP_LSR;
  18. //
  19. // Example network to demonstrate RSVP-TE.
  20. //
  21. // See the README file in the model directory for scenario description.
  22. //
  23. network RSVPTE4
  24. {
  25. submodules:
  26. configurator: IPv4NetworkConfigurator {
  27. parameters:
  28. @display("p=115,50");
  29. }
  30. LSR1: RSVP_LSR {
  31. parameters:
  32. @display("p=160,167");
  33. }
  34. LSR2: RSVP_LSR {
  35. parameters:
  36. @display("p=254,255");
  37. }
  38. LSR3: RSVP_LSR {
  39. parameters:
  40. @display("p=253,78");
  41. }
  42. LSR4: RSVP_LSR {
  43. parameters:
  44. @display("p=358,167");
  45. }
  46. LSR5: RSVP_LSR {
  47. parameters:
  48. @display("p=460,167");
  49. }
  50. LSR6: RSVP_LSR {
  51. parameters:
  52. @display("p=400,300");
  53. }
  54. LSR7: RSVP_LSR {
  55. parameters:
  56. @display("p=400,50");
  57. }
  58. host1: StandardHost { // client
  59. parameters:
  60. @display("p=71,80;i=device/pc2");
  61. }
  62. host2: StandardHost { // client
  63. parameters:
  64. @display("p=72,153;i=device/pc2");
  65. }
  66. host3: StandardHost { // server
  67. parameters:
  68. @display("p=570,88;i=device/server");
  69. }
  70. host4: StandardHost { // server
  71. parameters:
  72. @display("p=562,256;i=device/server");
  73. }
  74. host5: StandardHost { // client
  75. parameters:
  76. @display("p=73,233;i=device/pc2");
  77. }
  78. scenarioManager: ScenarioManager {
  79. parameters:
  80. @display("p=195,50");
  81. }
  82. lifecycleController: LifecycleController {
  83. parameters:
  84. @display("p=500,50");
  85. }
  86. connections:
  87. LSR1.pppg++ <--> { delay = 15ms; datarate = 600kbps; } <--> LSR2.pppg++;
  88. LSR1.pppg++ <--> { delay = 5ms; datarate = 600kbps; } <--> LSR3.pppg++;
  89. host2.pppg++ <--> { delay = 10ms; datarate = 600kbps; } <--> LSR1.pppg++;
  90. host1.pppg++ <--> { delay = 10ms; datarate = 600kbps; } <--> LSR1.pppg++;
  91. LSR2.pppg++ <--> { delay = 5ms; datarate = 600kbps; } <--> LSR4.pppg++;
  92. LSR3.pppg++ <--> { delay = 5ms; datarate = 600kbps; } <--> LSR4.pppg++;
  93. LSR4.pppg++ <--> { delay = 5ms; datarate = 600kbps; } <--> LSR5.pppg++;
  94. LSR5.pppg++ <--> { delay = 10ms; datarate = 600kbps; } <--> host3.pppg++;
  95. LSR5.pppg++ <--> { delay = 10ms; datarate = 600kbps; } <--> host4.pppg++;
  96. LSR2.pppg++ <--> { delay = 10ms; datarate = 600kbps; } <--> LSR6.pppg++;
  97. LSR5.pppg++ <--> { delay = 10ms; datarate = 600kbps; } <--> LSR6.pppg++;
  98. LSR3.pppg++ <--> { delay = 10ms; datarate = 600kbps; } <--> LSR7.pppg++;
  99. LSR5.pppg++ <--> { delay = 10ms; datarate = 600kbps; } <--> LSR7.pppg++;
  100. host5.pppg++ <--> { delay = 10ms; datarate = 600kbps; } <--> LSR1.pppg++;
  101. }