network-twohosts.ned 390 B

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