Network.ned 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package inet.examples.bgpv4.BGPUpdate;
  2. import inet.common.misc.ThruputMeteringChannel;
  3. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  4. import inet.node.inet.StandardHost;
  5. network BGPTest
  6. {
  7. types:
  8. channel LINK_100 extends ThruputMeteringChannel
  9. {
  10. parameters:
  11. delay = 0;
  12. datarate = 100Mbps;
  13. thruputDisplayFormat = "#N";
  14. }
  15. submodules:
  16. A: BGPRouterEx {
  17. parameters:
  18. @display("p=160,92");
  19. gates:
  20. pppg[1];
  21. ethg[1];
  22. }
  23. B: BGPRouterEx {
  24. parameters:
  25. @display("p=256,92");
  26. gates:
  27. pppg[1];
  28. ethg[1];
  29. }
  30. H1: StandardHost {
  31. parameters:
  32. @display("p=56,92;i=device/laptop");
  33. gates:
  34. ethg[1];
  35. }
  36. H2: StandardHost {
  37. parameters:
  38. @display("p=364,92;i=device/laptop");
  39. gates:
  40. ethg[1];
  41. }
  42. configurator: IPv4NetworkConfigurator {
  43. @display("p=208,23");
  44. config = xmldoc("IPv4Config.xml");
  45. //assignAddresses = false;
  46. //assignDisjunctSubnetAddresses = false;
  47. addStaticRoutes = false;
  48. addDefaultRoutes = false;
  49. addSubnetRoutes = false;
  50. }
  51. connections:
  52. H1.ethg[0] <--> LINK_100 <--> A.ethg[0];
  53. A.pppg[0] <--> LINK_100 <--> B.pppg[0];
  54. B.ethg[0] <--> LINK_100 <--> H2.ethg[0];
  55. }