Giter Club home page Giter Club logo

sonetor's Introduction

Description

SONETOR is a set of utilities that generates synthetic social network traces. This social network traces represent interaction of users in a social network fashion or in a regular client-server fashion.

We invite interested readers to [1] for further information.

Features

  • Synthetic trace generator
  • Represents social network or client-server traffic
  • Create traces with mobility patterns

Installation

In order to install SONETOR, you have two options. Either to install it using virtualenv, either without it.

setuptools - from Git repository

Without virtualenv:

> apt-get install git
> apt-get install python-dev
> apt-get install python-networkx python-scipy python-numpy python-pyparsing
> git clone https://github.com/panisson/pymobility.git
> cd pymobility
> python setup.py install
> cd ..
> git clone https://github.com/mesarpe/sonetor
> cd sonetor
> chmod +x sonetor.sh

With virtualenv:

> apt-get install git
> apt-get install python-dev
> apt-get install python-virtualenv
> apt-get install python-networkx python-scipy python-numpy
> virtualenv .
> source bin/activate
> easy_install numpy scipy pyparsing networkx
> git clone https://github.com/panisson/pymobility.git
> cd pymobility
> python setup.py install
> cd ..
> git clone https://github.com/mesarpe/sonetor
> cd sonetor
> chmod +x sonetor.sh

Creating the first trace file:

> ./sonetor.sh examples/example.ini /tmp/trace123

NOTE: if you still have problems, just let me know.

Dependencies

NumPy, SciPy, Networkx and PyMobility

Examples

#create new trace python traffic.py examples/example.ini | sort -k 1 -t ' ' -n > /tmp/traza;

#add mobility python mobility.py examples/example.ini /tmp/traza > /tmp/traza2;

Regular Traffic traces (build_regulartraffic.sh [configuration_file] [output_trace_file]:

python traffic.py examples/regulartraffic.ini | sort -k 1 -t ' ' -n > /tmp/traza; python complete_client_server_traces.py examples/regulartraffic.ini > /tmp/traza_header; cat /tmp/traza_header /tmp/traza > /tmp/traza2; python mobility.py examples/example.ini /tmp/traza2 > /tmp/traza;

Generate regular traffic traces:

for alpha in 065 110 150 200; do for i in 1 2 3; do ./build_regulartraffic.sh examples/compare_caching/reg_106_$alpha_waypoint.ini /data/caching/reg_106_$alpha_waypoint.trace.$i; done; done

Contributing

If you have a Github account please fork the repository, create a topic branch, and commit your changes. Then submit a pull request from that branch.

License

Written by César Bernardini [email protected]
Copyright (C) 2014 César Bernardini. You can contact us by email ([email protected]).

References

[1] Cesar Bernardini, Thomas Silverston, Olivier Festor. SONETOR: a Social Network Traffic Generator. IEEE ICC 2014.

sonetor's People

Watchers

 avatar

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.