unicast1.ned 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package inet.examples.rtp.unicast1;
  2. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  3. import inet.node.inet.Router;
  4. import inet.node.rtp.RTPHost;
  5. import ned.DatarateChannel;
  6. network RTPUnicast1
  7. {
  8. types:
  9. channel ethernet extends DatarateChannel
  10. {
  11. delay = normal(0.00015s, 0.00005s);
  12. datarate = 10Mbps;
  13. }
  14. submodules:
  15. host1: RTPHost {
  16. parameters:
  17. forwarding = false;
  18. profileName = "inet.transportlayer.rtp.RTPAVProfile";
  19. destinationAddress = "host4";
  20. portNumber = 5004;
  21. bandwidth = 8000;
  22. @display("p=150,50");
  23. }
  24. host2: RTPHost {
  25. parameters:
  26. forwarding = false;
  27. profileName = "inet.transportlayer.rtp.RTPAVProfile";
  28. destinationAddress = "host4";
  29. portNumber = 5004;
  30. bandwidth = 8000;
  31. @display("p=250,150");
  32. }
  33. host3: RTPHost {
  34. parameters:
  35. forwarding = false;
  36. profileName = "inet.transportlayer.rtp.RTPAVProfile";
  37. destinationAddress = "host4";
  38. portNumber = 5004;
  39. bandwidth = 8000;
  40. @display("p=150,250");
  41. }
  42. host4: RTPHost {
  43. parameters:
  44. forwarding = false;
  45. profileName = "inet.transportlayer.rtp.RTPAVProfile";
  46. destinationAddress = "host1";
  47. portNumber = 5004;
  48. bandwidth = 8000;
  49. @display("p=50,150");
  50. }
  51. router1: Router {
  52. parameters:
  53. @display("p=150,150");
  54. gates:
  55. pppg[];
  56. }
  57. configurator: IPv4NetworkConfigurator {
  58. @display("p=58,32");
  59. }
  60. connections:
  61. host1.pppg++ <--> ethernet <--> router1.pppg++;
  62. host2.pppg++ <--> ethernet <--> router1.pppg++;
  63. host3.pppg++ <--> ethernet <--> router1.pppg++;
  64. host4.pppg++ <--> ethernet <--> router1.pppg++;
  65. }