extServer.ned 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // author: Thomas Reschka
  3. //
  4. package inet.examples.emulation.extserver;
  5. import inet.node.inet.Router;
  6. import inet.node.inet.StandardHost;
  7. import ned.DatarateChannel;
  8. network extserver
  9. {
  10. parameters:
  11. @display("bgb=400,200");
  12. submodules:
  13. router: Router {
  14. parameters:
  15. numExtInterfaces = 1;
  16. @display("p=200,100;i=abstract/router");
  17. gates:
  18. pppg[2];
  19. }
  20. client: StandardHost {
  21. parameters:
  22. @display("p=50,100");
  23. gates:
  24. pppg[1];
  25. }
  26. server: StandardHost {
  27. parameters:
  28. @display("p=350,100;i=device/server");
  29. gates:
  30. pppg[1];
  31. }
  32. connections allowunconnected:
  33. router.pppg[0] <--> NormalPath <--> client.pppg[0];
  34. router.pppg[1] <--> NormalPath <--> server.pppg[0];
  35. }
  36. channel NormalPath extends DatarateChannel
  37. {
  38. parameters:
  39. datarate = 100Mbps;
  40. delay = 0.0565us; // 10m
  41. per = 0;
  42. ber = 0;
  43. }