Giter Site home page Giter Site logo

sharath29 / teacup-docker-image Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.17 MB

Python 43.71% Shell 5.34% CSS 1.39% HTML 2.74% JavaScript 6.98% TeX 3.57% R 5.30% Makefile 4.90% C 15.50% Roff 1.64% C++ 5.16% M4 1.29% Batchfile 2.45% Dockerfile 0.03%

teacup-docker-image's Introduction

Course Project for Creating a Docker-Image for easy setup of TEACUP

Course Code : CO300

Overview

TEACUP (TCP Experimentation Automation Controlled Using Python) is an automated framework to setup a testbed for real time experimentation of TCP. This framework has been proposed by Swinburne University, Australia and has been in use since past few years. However, setting up this framework is a tedious job and takes away several months. At NITK, this framework has been set up successfully. This project aims to use the docker technology to simplify the setting of TEACUP in future.

TEACUP is used to automate many aspects of running TCP performance experiments in our specially-constructed physical testbed. TEACUP enables repeatable testing of different TCP algorithms over a range of emulated network path conditions, bottleneck rate limits and bottleneck queuing disciplines.We hope TEACUP proves useful to other researchers who already have (or are interested in setting up) similar network testbeds.

Instructions for TEACUP testbed setup

  1. Make sure you are running Ubuntu.
  2. Before running any of the scripts mentioned henceforth;
  • Make the appropriate script executable by using the command chmod +x scriptName.sh
  • Run the script using the command ./scriptName.sh
  1. Depending on whether your OS type is 32-bit or 64-bit, run install32.sh or install64.sh scripts respectively.
  2. Boot with Linux 3.17 kernel by going to "Advanced options for Ubuntu" before system startup after restart.
  3. Make other changes to your kernel by running the installteacup.sh script.
  4. Install Docker by running the installdocker.sh script.
  5. Load the Docker image using the command sudo docker load -i teacup.tar
  6. Run the container using the command sudo docker run -it teacup
  7. Before running teacupstart.sh add path to configuration files in the commands. Also add env.username and env.password at and fields.
  8. Run teacupstart.sh to open the teacup files.
  9. Run ttprobe.sh inside your teacup-code/tools folder to apple the ttprobe patch to the kernel.
  10. Create experiment folder in TEACUP directory containing the teacup-code folder.This will contain the configuration for teacup testbed.
  11. Run
  • teacup-code/example_configs/config-scenario1.py /experiment/config.py
  • cp teacup-1.0/example_configs/run.sh /experiment/
  • cp teacup-1.0/fabfile.py /experiment/
  1. Add to config.py file in experiment folder
  • TPCONF_linux_tcp_logger = 'ttprobe'
  • TPCONF_ttprobe_direction = 'io'
  • TPCONF_ttprobe_output_mode = 'o'
  1. Add env.user and env.password and also specify the teacup-code path in TPCONF_script_path.
  2. Run ./run.sh in experiment folder to generate the required log files.

Instructions for TEACUP testbed setup using Docker containers

  1. Make sure you are running Ubuntu.
  2. Before running any of the scripts mentioned henceforth;
  • Make the appropriate script executable by using the command chmod +x scriptName.sh
  • Run the script using the command ./scriptName.sh
  1. Install Docker by running the installdocker.sh script.
  2. Load the Docker images for server, client and router using the command sudo docker load -i teacup.tar on the respective machines.
  3. Run the containers for server, client and router using the command sudo docker run -it teacup on the respective machines.
  4. Navigate to /home/TEACUP/experiment and run TEACUP using command ./run.sh on the server's docker container to generate the required log files.

References

teacup-docker-image's People

Contributors

sharath29 avatar

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.