Simu5G can be compiled on any platform supported by OMNeT++ and INET frameworks.
Make sure your OMNeT++ installation works OK (e.g. try running the samples) and it is in the PATH environment variable (to test it, type the command "which nedtool" into the terminal). On Windows, open a console with the "mingwenv.cmd" command. The PATH and other variables will be automatically adjusted for you. Use this console to compile and run INET and Simu5G.
Install and test INET according to the installation instructions found in the archive. Be sure to check if the INET examples are running fine before continuing.
Latest release: Simu5G 1.2.1.
In order to get Simu5G on your machine, you have the following options:
- Download and install Simu5G directly from the OMNeT++ IDE
- Download the source code and build Simu5G manually
- Download and run Simu5G Plug-and-Play.
1) Download and install Simu5G from the OMNeT++ IDE
This is the easiest way to get Simu5G:
- Open the OMNeT++ IDE on your machine and make sure that the 'inet4.4' project is open and correctly built in your workspace
- In the menu bar, click Help | Install Simulation Models... | Select Simu5G 1.2.1 and click Install Project
- Wait until the building process is complete. This may take up several minutes.
2) Download and build the source code
Alternatively, you can download the most recent code directly from the Simu5G repository on GitHub. Current master branch requires OMNeT++ v6.0 and INET v4.4.0. Note: this is the development branch, hence this version of the code might be unstable;
Building from the OMNeT++ IDE
- Extract the downloaded Simu5G tarball next to the "inet4.4" directory (i.e. into your workspace directory, if you are using the IDE).
- Start the IDE, and ensure that the 'inet4.4' project is open and correctly built.
- Import the project using: File | Import | General | Existing projects into Workspace. Then select the workspace dir as the root directory, and be sure NOT to check the "Copy projects into workspace" box. Click Finish.
- You can build the project by pressing CTRL-B (Project | Build all)
- To run an example from the IDE, select the simulation example's folder under 'simulations', and click 'Run' on the toolbar.
Building from the command line
- Extract the downloaded Simu5G tarball next to the "inet4.4" directory
- Change to the Simu5G directory.
- Type ". setenv". This will add the Simu5g/bin directory to the PATH environment variable.
- Type "make makefiles". This should generate the makefiles.
- Type "make" to build the Simu5G executable (debug version). Use "make MODE=release" to build release version.
- Run an examples by changing into one of the directories under 'simulations/NR', and executing "./run"
3) Simu5G Plug-and-Play
If you cannot wait to try Simu5G... COOL! You are in the right place!
You can download the following Virtual Machine appliance, import it into your favorite virtualization software (e.g. Oracle Virtualbox, VMWare Player), and start simulating! You do not need to carry out the complete installation procedure, we already did the boring stuff for you ;)
This guide assumes you have Oracle Virtualbox 6.1 installed on your machine.
- Download Simu5G PnP from here.
This VM includes Ubuntu 20.04, with OMNeT++ 6.0, INET 4.4.0, Simu5G 1.2.1. We also included Veins 5.2 in case you want to simulate 5G-enabled vehicular networks.
- Open Virtualbox, then click File -> Import Appliance...
- In the dialog window, browse your file system and select the downloaded file (with .ova extension). Then, click Next.
- Check the VM configuration, then click Import.
- Select the new VM on the left side of the Virtualbox main window, then click Start.