SCTPFeatureTest.ned 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import inet.node.inet.StandardHost;
  2. import inet.node.inet.Router;
  3. import ned.DatarateChannel;
  4. network SCTPFeatureTest
  5. {
  6. parameters:
  7. volatile double testTimeout;
  8. bool testing;
  9. types:
  10. channel BottlePath extends DatarateChannel
  11. {
  12. parameters:
  13. datarate = 1Mbps;
  14. per = 0.005;
  15. }
  16. channel NormalPath extends DatarateChannel
  17. {
  18. parameters:
  19. datarate = 1Gbps;
  20. }
  21. submodules:
  22. sctp_client: StandardHost {
  23. parameters:
  24. forwarding = false;
  25. routingTable.routingFile = "../../lib/sctp_client.mrt";
  26. networkLayer.configurator.networkConfiguratorModule = "";
  27. @display("i=old/laptop3;p=128,317");
  28. gates:
  29. pppg[1];
  30. }
  31. sctp_server: StandardHost {
  32. parameters:
  33. forwarding = false;
  34. routingTable.routingFile = "../../lib/sctp_server.mrt";
  35. networkLayer.configurator.networkConfiguratorModule = "";
  36. @display("i=old/laptop3");
  37. gates:
  38. pppg[1];
  39. }
  40. router1: Router {
  41. parameters:
  42. routingTable.routingFile = "../../lib/sctp_router1.mrt";
  43. networkLayer.configurator.networkConfiguratorModule = "";
  44. @display("i=abstract/router;p=270,293");
  45. gates:
  46. pppg[2];
  47. }
  48. router2: Router {
  49. parameters:
  50. routingTable.routingFile = "../../lib/sctp_router2.mrt";
  51. networkLayer.configurator.networkConfiguratorModule = "";
  52. @display("i=abstract/router");
  53. gates:
  54. pppg[2];
  55. }
  56. connections:
  57. sctp_client.pppg[0] <--> NormalPath <--> router1.pppg[0];
  58. router2.pppg[0] <--> NormalPath <--> sctp_server.pppg[0];
  59. router1.pppg[1] <--> BottlePath <--> router2.pppg[1];
  60. }