Git Product home page Git Product logo

olayinkaadeleye / ccnsim-0.4 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from teamrossi/ccnsim-0.4

0.0 1.0 0.0 1.3 MB

ccnSim is an extremely scalable chunk-level simulator of Information and Content Centric Networks (ICN/CCN) written in C++ under the Omnet++ framework.

Home Page: http://perso.telecom-paristech.fr/~drossi/index.php?n=Software.CcnSim

License: GNU General Public License v3.0

Makefile 2.80% Shell 17.14% C++ 80.07%

ccnsim-0.4's Introduction

                   ______
		  / _____)_	      
  ____ ____ ____ ( (____ (_)_ __ ____  
 / ___) ___)  _ \ \____ \| | '_ ` _  \ 
( (__( (___| | | |_____) | | | | | | |
 \____)____)_| |_(______/|_|_| |_| |_|

Welcome

Thank you for joining the ccnSim community!

This is ccnSim-0.4, the stable ccnSim version which implements

  • the classical Event Driven (ED) engine [1]
  • the hybrid stochastic/Monte-Carlo simulation engine known as ModelGraft (MG) [2], that allow 100x gains with respect to ED

You may also be interested into

This readme will guide you through simple examples to install and use ccnSim-0.4. For further details we refer the reader to the PDF manual.

Enjoy!

Getting started

Installation

To install ccnSim-0.4, please follow the instructions in INSTALL.txt (or use the docker to skip this step altogether).

Hello, ccnSim

After having successfully installed ccnSim, you can run your first simulation from the command line with the following command:

./ccnSim -u Cmdenv -f ED_TTL-omnetpp.ini r 0

In this case, the default ED_TTL-omnetpp.ini file will be used to execute a sample simulation. Each parameter in ED_TTL-omnetpp.ini is documented with the aim of providing a complete understanding of the features of the simulator and of the relative simple scenario that is simulated. At the end of the simulation, log files are written inside the "results/" folder, in the form of .sca files.

Example scenario

ccnSim-0.4 also provides, also, an example script which can be used through the following command:

./runsim_script_ED_TTL.sh {parameters}

This script is meant to automatically configure a new .ini file, according to the parameters passed from the command line, and to collect Key Performance Indicators (KPIs) at the end of the simulations. In particular, log files are produced under "logs/", "results/", and "infoSim/" directories. A summary file containing all the collected KPIs is produced under "infoSim/ALL_MEASURES_*".

Additiona scenarii

Furthermore, commands to run additional sample scenarios are provided inside:

run_ED_TTL_scanarios.sh

Note that TTL-based simulations, a.k.a. ModelGraft [1] simulations, require input files containing TTL caches' eviction timers, a.k.a. Tc values, to be present inside the folder "Tc_Values". These files can be produced either by simulating the correspondent scenario with the classic event-driven (ED) version of ccnSim using always "runsim_script_ED_TTL.sh" (they will be automatically added to the folder), or by creating them manually. The rationale is that the first line contains the Tc of Node 0, the second line the Tc of Node 1, and so on. Even if random values are provided, ModelGraft [2] is able to iteratively correct them, thus converging to a consistent state. The current v0.4 provides also a random generation of Tc values in the Tc file correspondent to the scenario is not present in the folder. It is, however, a very general heuristic which does not guarantee optimal performance. Despite the Memory usage of ccnSim-v0.4 being extremely optimized, thanks to the use of the Inversion Rejection Sampling technique (see user manual), we suggest performing ED simulations only for small scenarios, i.e., comprising content catalogs with cardinality M < 1e9, owing to CPU and Memory requirements.

Shot noise scenarii

ccnSim-0.4 also comes with an new model for the generation of content requests with evolving popularity, know as Shot Noise Model [3]. A reference scenario is already included in order to perform simulations using the ShotNoise model:

./runsim_script_ED_TTL.sh tree 8 1 spr lce lru 1 1e4 1e4 1e7 1e9 20.0 ShotNoise ShotNoiseContentDistribution 6 0 cold naive 0.75 1

which is based on the features reported inside the "ShotNoiseScenario.txt" file. The simulated scenario comprises a ShotNoise client, a ShotNoise content distribution logic, LRU caches with size C = 1e4, a content catalog with M = 1e7 total contents (i.e., the sum of all the cardinalities present in the ShotNoiseScenario.txt file), and an OFF time of Toff = 6.

More details

For more details please refer to the ccnSim manual.

References

[1] Chiocchetti, Raffaele, Rossi, Dario and Rossini, Giuseppe, "ccnSim: an Highly Scalable CCN Simulator" In IEEE International Conference on Communications (ICC), June 2013.

[2] M. Tortelli, D. Rossi, E. Leonardi, "A Hybrid Methodology for the Performance Evaluation of Internet-scale Cache Networks", Elsevier Computer Networks, Special Issue on Softwarization and Caching in NGN, 2017, DOI: 10.1016/j.comnet.2017.04.006.

[3] S. Traverso et al., Unravelling the Impact of Temporal and Geographical Locality in Content Caching Systems. IEEE Transactions on Multimedia 17(10): 1839-1854 (2015)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.