Skip to content

kumokay/placethings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

placethings

Overview

placethings allows developers to construct an experimental testbed to evaluate and verify their internet of things (IoT) applications during the development phase. placethingsleverages the famous Mininet/Containernet emulation environment to span the emulation across virtual machines, containers, and bare metal devices. Developers can configure the emulated network and add virtual or real THINGs. Based on the network and devices configuration, placethings also suggests good solutions for deploying IoT applications.

placethings follows python PEP8 standard and is python 2-3 compatible.

Features

  • Allow user to PLACE virtual or real THINGs in a emulated network, such as

    • data sources, e.g. virtual or real sensors
    • network devices, e.g. switches, mininet switches
    • servers and edge devices, e.g. virtual machines, containers, and bare metal devices
  • Define computation tasks and find an optimal solution to PLACE them on those virtual or bare metal servers and edge devices

Installation

  1. Install containernet
$ sudo apt-get install ansible git aptitude
$ git clone https://github.com/containernet/containernet.git
$ cd containernet/ansible
$ sudo ansible-playbook -i "localhost," -c local install.yml
$ cd ..
$ sudo python setup.py install
$ sudo py.test -v mininet/test/test_containernet.py
  1. Intall ilp solvers and python packages
$ pip install --upgrade pip==9.0.1
$ sudo pip install msgpack-rpc-python numpy Pillow future networkx matplotlib six aenum pulp
$ sudo apt-get install glpk-utils
  1. Run demo case
# first get the docker image for creating mininet hosts
$  sudo docker pull kumokay/heliot_host:v4

# try it out! and run with -v option to print the output graphs
$ python main.py -tc test_ddflow_demo_local.Test -v

For more details, see this docs/demo.md#demo-case-explain

Example

All examples are in placethings/demo. See docs/demo.md for more details

About

just rushing for something

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages