IPv4NetworkConfigurator_2.test 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. %description:
  2. Tests IPv4NetworkConfigurator for a wireless LAN.
  3. %file: test.ned
  4. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  5. import inet.node.ethernet.EtherSwitch;
  6. import inet.node.ethernet.Eth10M;
  7. import inet.node.inet.Router;
  8. import inet.node.inet.StandardHost;
  9. import inet.node.inet.WirelessHost;
  10. import inet.node.wireless.AccessPoint;
  11. import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
  12. network Test
  13. {
  14. parameters:
  15. int numHosts;
  16. submodules:
  17. configurator: IPv4NetworkConfigurator {
  18. parameters:
  19. dumpAddresses = true;
  20. }
  21. radioMedium: Ieee80211ScalarRadioMedium;
  22. server: StandardHost;
  23. router: Router;
  24. accessPoint: AccessPoint;
  25. mobile[numHosts]: WirelessHost;
  26. connections:
  27. server.ethg++ <--> Eth10M <--> router.ethg++;
  28. router.ethg++ <--> Eth10M <--> accessPoint.ethg++;
  29. }
  30. %inifile: omnetpp.ini
  31. [General]
  32. network = Test
  33. cmdenv-express-mode = false
  34. tkenv-plugin-path = ../../../etc/plugins
  35. ned-path = .;../../../../src;../../lib
  36. sim-time-limit = 1s
  37. #omnetpp 5.0 - 5.1 compatibility:
  38. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  39. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  40. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  41. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  42. *.numHosts = 3
  43. **.constraintAreaMinX = 0m
  44. **.constraintAreaMinY = 0m
  45. **.constraintAreaMinZ = 0m
  46. **.constraintAreaMaxX = 1000m
  47. **.constraintAreaMaxY = 1000m
  48. **.constraintAreaMaxZ = 0m
  49. %contains-regex: stdout
  50. Link 0
  51. server / eth0 id=\d+ on:nwLayer.ifOut\[\d+\] MTU:1500 BROADCAST MULTICAST macAddr:0A-AA-00-00-00-[0-9A-F]{2} IPv4:\{inet_addr:10.0.0.1/30.*\}
  52. router / eth0 id=\d+ on:nwLayer.ifOut\[\d+\] MTU:1500 BROADCAST MULTICAST macAddr:0A-AA-00-00-00-[0-9A-F]{2} IPv4:\{inet_addr:10.0.0.2/30.*\}
  53. Link 1
  54. router / eth1 id=\d+ on:nwLayer.ifOut\[\d+\] MTU:1500 BROADCAST MULTICAST macAddr:0A-AA-00-00-00-[0-9A-F]{2} IPv4:\{inet_addr:10.0.0.9/29.*\}
  55. mobile\[0\] / wlan0 id=\d+ on:nwLayer.ifOut\[\d+\] MTU:2304 BROADCAST MULTICAST macAddr:0A-AA-00-00-00-[0-9A-F]{2} IPv4:\{inet_addr:10.0.0.10/29.*\}
  56. mobile\[1\] / wlan0 id=\d+ on:nwLayer.ifOut\[\d+\] MTU:2304 BROADCAST MULTICAST macAddr:0A-AA-00-00-00-[0-9A-F]{2} IPv4:\{inet_addr:10.0.0.11/29.*\}
  57. mobile\[2\] / wlan0 id=\d+ on:nwLayer.ifOut\[\d+\] MTU:2304 BROADCAST MULTICAST macAddr:0A-AA-00-00-00-[0-9A-F]{2} IPv4:\{inet_addr:10.0.0.12/29.*\}
  58. %#--------------------------------------------------------------------------------------------------------------
  59. %not-contains: stdout
  60. undisposed object:
  61. %not-contains: stdout
  62. -- check module destructor
  63. %#--------------------------------------------------------------------------------------------------------------