unicast.ned 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package inet.examples.rtp.unicast2;
  2. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  3. import inet.node.rtp.RTPHost;
  4. network RTPUnicast2
  5. {
  6. types:
  7. channel ethernet extends ned.DatarateChannel
  8. {
  9. parameters:
  10. delay = normal(0.00015s, 0.00005s);
  11. datarate = 10Mbps;
  12. ber = 0.00001;
  13. }
  14. submodules:
  15. sender: RTPHost {
  16. parameters:
  17. forwarding = false;
  18. profileName = "inet.transportlayer.rtp.RTPAVProfile";
  19. destinationAddress = "receiver";
  20. portNumber = 5004;
  21. bandwidth = 8000;
  22. fileName = "../data/moving.mpg.gdf";
  23. payloadType = 32;
  24. @display("p=185,128");
  25. }
  26. receiver: RTPHost {
  27. parameters:
  28. forwarding = false;
  29. profileName = "inet.transportlayer.rtp.RTPAVProfile";
  30. destinationAddress = "sender";
  31. portNumber = 5004;
  32. bandwidth = 8000;
  33. fileName = "";
  34. payloadType = 32;
  35. @display("p=54,128");
  36. }
  37. configurator: IPv4NetworkConfigurator {
  38. parameters:
  39. @display("p=54,23");
  40. }
  41. connections:
  42. sender.pppg++ <--> ethernet <--> receiver.pppg++;
  43. }