Giter Site home page Giter Site logo

kopsa95 / ml-for-resource-allocation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cn-upb/ml-for-resource-allocation

0.0 0.0 0.0 9.59 MB

Machine Learning for Dynamic Resource Allocation in Network Function Virtualization

Jupyter Notebook 100.00%

ml-for-resource-allocation's Introduction

Machine-learning Based Dynamic Resource Allocation in Network Function Virtualization

Virtual network functions (VNFs), e.g., firewalls or video optimizers, can run on standard x86 servers and can be instantiated, terminated, or migrated according to the current demand. Depending on the load a VNF instance has to process, it requires more or less resources (e.g., CPU) to function properly. Dynamically allocating a suitable amount of resources to each VNF instance is non trivial and depends on the characteristics of the VNF and its current load. Here, we propose to use machine learning regression algorithms to predict VNF resource requirements by learning from raw VNF performance measurements. The resulting machine learning models can be integrated and used in existing VNF placement algorithms to automatically assign the right amount of resources to each new VNF instance or to dynamically adjust allocated resources of already deployed VNF instances.

This repository contains real-world VNF performance data from the SNDZoo, code to train machine learning models on this data, as well as trained and saved models, which are ready to use. It also contains all data used to evaluate the impact of using machine learning in VNF placement algorithms. As an example, we adjusted the B-JointSP algorithm for joint scaling and placement of VNFs to use our machine learning models (see B-JointSP repo with our adjustments).

If you use this repository, please cite our paper:

"Machine Learning for Dynamic Resource Allocation in Network Function Virtualization" by Stefan Schneider, Narayanan Puthenpurayil Satheeschandran, Manuel Peuster, and Holger Karl. IEEE Conference on Network Softwarization (NetSoft), 2020.

Setup

Requires Python 3.6+.

pip install -r requirements.txt

Usage

All code in this repository is Python code running in Jupyter notebooks. After installing the requirements above, you can run Jupyter Lab as follows:

jupyter lab

This starts the Jupyter server and should open a browser tab showing the Jupyter Lab GUI with the available notebooks. The following notebooks are available:

  • example.ipynb: Code for generating example VNF data, training ML models on this data. Used for motivational example and illustration in paper.
  • synth_data.ipynb: Code for generating example VNF data, training and evaluating different ML models on this data.
  • vnf_web.ipynb: Code reading real-world VNF performance data, processing it, training multiple ML models, tuning hyperparamters of these models, and comparing their RMSE.
  • placement_eval.ipynb: Code parsing and plotting VNF placement results produced with the B-JointSP algorithm and different ML models.
  • runtime.ipynb: Code for measuring/parsing the runtimes of prediction and VNF placement with different models

In addition, we adjusted and used the B-JointSP VNF placement algorithm for applying our machine learning models to dynamic resource allocation in VNF placement.

Contact

This work was developed as part of the RealVNF project.

Lead developer: Stefan Schneider

For questions or support, please use GitHub's issue system.

ml-for-resource-allocation's People

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.