Skip to content

Commit

Permalink
First Simu5G commit
Browse files Browse the repository at this point in the history
  • Loading branch information
giovanninardini committed Apr 14, 2021
0 parents commit 4d124a4
Show file tree
Hide file tree
Showing 577 changed files with 82,980 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# ignore generated files
src/**/*_m.h
src/**/*_m.cc
src/Makefile
src/Makefile.vc
/doc/doxy/
/doc/neddoc/
*.pcap
*.sca
*.vec
*.vci
*.anf
*.qtenvrc
.settings/
err/
src/err

# ignore binary files
out/
*.so
*.dylib
*.dll
*.a
*.lib
*.exe
*.o
*.obj
*.pdb
*.idb
*.manifest
.tkenvrc
.tkenvlog
*.out
.computed

# ignore backup and temp files
*.bak
backups
*~
*.log


*.FAILED
*.UPDATED
*.ERROR
.cproject
.project
ui/com.simulte.configeditor/bin/

# ignore result folders
/simulations/gtpNetwork/ResultLteCoreNetwork/
/simulations/*/results*/
/simulations/*/*/results*/
/simulations/*/*/*/results*/
/simulations/*/scenario*/
/simulations/*/eval*/
/simulations/*/.cmdenv-log
*.rt
*.elog

/simulations/*/*/stats*/
/simulations/*/*/positions*/
/simulations/*/*/outLogs*/
/simulations/*/*/scripts/plots*/

vim files
*.swp
*.swo
.qtenvrc.*

# project file
.cproject
3 changes: 3 additions & 0 deletions .nedexclusions
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
simu5g.simulations.NR.cars
simu5g.simulations.cars
simu5g.nodes.cars
2 changes: 2 additions & 0 deletions .nedfolders
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
simulations
src
5 changes: 5 additions & 0 deletions .oppbuildspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<buildspec version="4.0">
<dir makemake-options="--make-so --deep -o simu5g -O out -I. --meta:recurse --meta:export-include-path --meta:use-exported-include-paths --meta:export-library --meta:use-exported-libs --meta:feature-cflags --meta:feature-ldflags" path="src" type="makemake"/>
<dir path="." type="custom"/>
</buildspec>
16 changes: 16 additions & 0 deletions .oppfeatures
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<features cppSourceRoots="src/common" definesFile="src/common/features.h">
<feature
id="Simu5G_Cars"
name="Simu5G Cars"
description = "5G-enabled vehicular networks"
initiallyEnabled = "false"
requires = ""
labels = ""
nedPackages = "simu5g.nodes.cars
simu5g.simulations.cars
simu5g.simulations.NR.cars"
extraSourceFolders = ""
compileFlags = ""
linkerFlags = ""
/>
</features>
4 changes: 4 additions & 0 deletions .oppfeaturestate
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<featurestates>
<feature enabled="false" id="Simu5G_Cars"/>
</featurestates>
61 changes: 61 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
INSTALLATION INSTRUCTIONS
=========================

The Simu5G Framework can be compiled on any platform supported by the INET Framework.


Prerequisites
-------------

You should have a
- working OMNeT++ (v5.6.2) installation. (Download from http://omnetpp.org)
- working INET-Framework (v4.2.2) installation. (Download from http://inet.omnetpp.org)

Make sure your OMNeT++ installation works OK (e.g. try running the samples)
and it is in the path (to test, try the command "which nedtool"). 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.


Building Simu5G from the IDE
-----------------------------

1. Extract the downloaded Simu5G tarball next to the INET directory
(i.e. into your workspace directory, if you are using the IDE).

2. Start the IDE, and ensure that the 'inet4' project is open and correctly built.

3. 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.

4. You can build the project by pressing CTRL-B (Project | Build all)

5. To run an example from the IDE, select the simulation example's folder under
'simulations/NR', and click 'Run' on the toolbar.


Building Simu5G from the command line
--------------------------------------

1. Extract the downloaded Simu5G tarball next to the INET directory.

2. Change to the Simu5G directory.

3. Type ". setenv". This will add the 'simu5G/bin' directory to the PATH environment variable.

4. Type "make makefiles". This should generate the makefiles.

5. Type "make" to build the Simu5G executable (release version). Use "make MODE=debug"
to build debug version.

6. You can run examples by changing into a directory under 'simulations/NR', and
executing "./run"


Enjoy,
The Simu5G Team
209 changes: 209 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
The following license governs the use of Simu5G.

Disclaimer
----------

Simu5G is an open source simulator licensed under LGPL, and based on
OMNeT framework which is available under the Academic Public License and
a commercial license (see https://omnest.com/licensingfaq.php). You are
solely responsible for obtaining the appropriate license for your use(s)
of OMNeT. Intel is not responsible for obtaining any such licenses, nor
liable for any licensing fees due in connection with your use of OMNeT.
Neither the University of Pisa, nor the authors of this software, are
responsible for obtaining any such licenses, nor liable for any licensing
fees due in connection with your use of OMNeT.

Simu5G is based on 3GPP specifications, which may involve patented and
proprietary technology. See https://www.3gpp.org/contact/3gpp-faqs#L5.
You are solely responsible for determining if your use of Simu5G requires
any additional licenses. Intel is not responsible for obtaining any such
licenses, nor liable for any licensing fees due in connection with your
use of Simu5G. Neither the University of Pisa, nor the authors of this
software, are responsible for obtaining any such licenses, nor liable
for any licensing fees due in connection with your use of OMNeT.

This software is provided on an "as is" basis, without warranties of
any kind, either express or implied, including, but not limited to,
warranties of accuracy, adequacy, validity, reliability or compliance
for any specific purpose. Neither the University of Pisa, nor the
authors of this software, are liable for any loss, expense or damage
of any type that may arise in using this software.

If you use this software or part of it for your research, please cite
our work:

G. Nardini, D. Sabella, G. Stea, P. Thakkar, A. Virdis, "Simu5G – An
OMNeT++ Library for End-to-End Performance Evaluation of 5G Networks,"
in IEEE Access, vol. 8, pp. 181176-181191, 2020,
doi: 10.1109/ACCESS.2020.3028550.

If you include this software or part of it within your own software,
README and LICENSE files cannot be removed from it and must be included
in the root directory of your software package.


GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.


This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.

0. Additional Definitions.

As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.

"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.

An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.

A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".

The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.

The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.

1. Exception to Section 3 of the GNU GPL.

You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.

2. Conveying Modified Versions.

If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:

a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or

b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.

3. Object Code Incorporating Material from Library Header Files.

The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:

a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the object code with a copy of the GNU GPL and this license
document.

4. Combined Works.

You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:

a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.

c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.

d) Do one of the following:

0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.

1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.

e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)

5. Combined Libraries.

You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:

a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.

b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.

6. Revised Versions of the GNU Lesser General Public License.

The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.

Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.

If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
Loading

0 comments on commit 4d124a4

Please sign in to comment.