network-twohosts.ned 419 B

123456789101112131415161718192021
  1. package inet.tests.ethernet;
  2. import inet.node.ethernet.EtherHost2;
  3. import ned.DatarateChannel;
  4. network TwoHosts
  5. {
  6. types:
  7. submodules:
  8. hostA: EtherHost2 {
  9. parameters:
  10. @display("p=72,80");
  11. }
  12. hostB: EtherHost2 {
  13. parameters:
  14. @display("p=334,80");
  15. }
  16. connections:
  17. hostA.ethg <--> DatarateChannel <--> hostB.ethg;
  18. }