RSVPTE4.ned 4.2 KB

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