README 1.5 KB

12345678910111213141516171819202122232425262728
  1. The external interface makes it possible to connect the simulation with real
  2. networks.
  3. In this example the network consists of one client, one router, one internal
  4. server and one external (real) server.
  5. The client sends 100 MB of data to the external server using TCP for uplink traffic.
  6. For downlink traffic the external server may send data to the internal server.
  7. To run this example, some parameters have to be adjusted in the omnetpp.ini.
  8. - Make sure that you have libpcap-dev (v1.5.3 or later) installed on your machine.
  9. - Turn on the "Network Emulation" feature (In IDE / INET Project Properties / Project Features.
  10. (if you forget this you will receive a 'Class "inet::cSocketRTScheduler" not found' error)
  11. - Rebuild INET
  12. - Set **.ext[0].device to the device name of the interface of the computer
  13. running the simulation in the omnetpp.ini file.
  14. - Set IP address of the external server to: 192.168.0.111/24 and add a route
  15. to routers external interface 192.168.0.100/24 and set the gateway to the
  16. IP address of the computer, on which the simulation is running
  17. or adjust the omnetpp.ini and mrt files to your networks setup.
  18. - For uplink traffic use e.g. FileZilla and setup your external server to
  19. listen on port 10021.
  20. - For downlink traffic use e.g. Iperf with following command line:
  21. iperf -c 172.0.1.111 -P 1 -i 1 -m -p 10021 -M 1452.0B -l 100.0M -f m -t 0
  22. Start the simulation with root privileges.
  23. IP addresses and routing tables are set up by using mrt files.