unicast.ned 1020 B

123456789101112131415161718192021222324252627282930313233343536
  1. package inet.examples.rtp.unicast;
  2. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  3. import inet.node.rtp.RTPHost;
  4. network RTPNetwork
  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. profileName = "inet.transportlayer.rtp.RTPAVProfile";
  18. destinationAddress = "receiver";
  19. portNumber = 5004;
  20. bandwidth = 8000;
  21. }
  22. receiver: RTPHost {
  23. parameters:
  24. profileName = "inet.transportlayer.rtp.RTPAVProfile";
  25. destinationAddress = "sender";
  26. portNumber = 5004;
  27. bandwidth = 8000;
  28. }
  29. configurator: IPv4NetworkConfigurator;
  30. connections:
  31. sender.pppg++ <--> ethernet <--> receiver.pppg++;
  32. }