Git Product home page Git Product logo

ovs-multipath's Introduction

Multipath OVS

This modified version of Open vSwitch adds two features:

  • Multipath Select GROUP Used to do packet-scheduling over different paths. It uses rules pushed by the controller to perform packet decisions over a set of actions (which can be a simple output or a IP rewrite for routing). It can use multiple scheduling algorithms, but we focus on weighted round-robin. It reuses Openflow Select GROUP Feature.

  • TCP Reordering GROUP Used to reorder TCP packets incoming from multiple ports. Flows can be channeled to this group, which will perform reordering of the TCP packets and output them as per group output rules. It adds a GROUP to the OpenFlow specifications with id: 4

Installation instructions

This project has been built on Ubuntu Linux 14 - 16. If you want to use other Linux distributions, make sure to install the matching dependencies. The installation procedure is exactly the same for normal OVS. In short:

sudo apt-get install -y git automake autoconf gcc uml-utilities libtool build-essential git pkg-config linux-headers-`uname -r`
chmod +x boot.sh
./boot.sh
./configure
make && make install

touch /usr/local/etc/ovs-vswitchd.conf
mkdir -p /usr/local/etc/openvswitch
ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema

ovsdb-server /usr/local/etc/openvswitch/conf.db \
--remote=punix:/usr/local/var/run/openvswitch/db.sock
ovs-vsctl --no-wait init
ovs-vswitchd --pidfile --detach

In case you have problems, this article can help with a step-by-step guide: http://networkstatic.net/installing-and-configuring-openvswitch-on-ubuntu-12-04-precise-pangolin/

Usage

Multipath flow rules can be set up with the following command:

ovs-ofctl -O OpenFlow13 add-group s1 group_id=11,type=select,bucket=weight:10,output:1,bucket=weight:20,output:2

Reordering flow rules can be set up with the following command:

ovs-ofctl -O OpenFlow13 add-group s1 group_id=10,type=reordering,bucket=output:3
ovs-ofctl -O OpenFlow13 add-flow s1 in_port=1,actions=group:10
ovs-ofctl -O OpenFlow13 add-flow s1 in_port=2,actions=group:10

ovs-multipath's People

Contributors

dariobanfi avatar

Watchers

James Cloos avatar huoliuwei 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.