Code Monkey home page Code Monkey logo

linc-switch's Introduction

LINC - OpenFlow software switch

What is LINC?

LINC is a pure OpenFlow switch written in Erlang. It's implemented in operating system's userspace as an Erlang node. Such approach is not the most efficient one, compared to Open vSwitch implemented in Linux kernel, or pure hardware implementations of traditional switches, but it gives a lot of flexibility and allows quick deployments and tests of new OpenFlow features.

Features

Planned features

How to use it?

Erlang

To use LINC you need to have an Erlang runtime installed on your machine. Required version is R15B.

Install from sources

To build Erlang from sources first you have to install some required system packages.

On Ubuntu:

# apt-get install gcc wget make autoconf openssl libssl0.9.8 libssl-dev libncurses5 libncurses5-dev

On RedHat/CentOS:

# yum install gcc wget make autoconf openssl openssl-devel ncurses ncurses-devel

On other Linux systems you need to install the counterparts of aforementioned packages.

When your system environment is ready download the sources from erlang.org. Unpack, compile and install:

% ./configure
% make
# make install

Install from binaries

If you're lazy you can also use Erlang binary packages created by Erlang Solutions.

LINC

To build the switch you need to install the following additional libraries and tools.

On Ubuntu:

# apt-get install git-core bridge-utils libpcap0.8 libpcap-dev libcap2-bin uml-utilities

On RedHat/CentOS:

# yum install git sudo bridge-utils libpcap libpcap-devel libcap tunctl

Note that on RedHat/CentOS 5.x you need a newer version of libpcap:

# yum erase libpcap libpcap-devel
# yum install flex byacc
# wget http://www.tcpdump.org/release/libpcap-1.2.1.tar.gz
# tar xzf libpcap-1.2.1.tar.gz
# cd libpcap-1.2.1
# ./configure
# make && make install

On other Linux systems you need to install the counterparts of aforementioned packages.

When your environment is set up you are ready to build and run LINC.

Clone this git repository:

% git clone <REPO>

Compile everything:

% make

Generate an Erlang release:

% make rel

Adjust switch configuration by editing the rel/openflow/releases/0.1/sys.config file which looks like this:

{of_switch, [
    {controllers, [
        {"localhost", 6633}
    ]},
    {ports, [
        [{ofs_port_no, 1},
         {interface, "eth0"},
         {queues, [{0, [{ofp_queue_prop_min_rate, 0},
                        {ofp_queue_prop_max_rate, 1000}]}]},
         {rate, {1, gibps}}],
        [{ofs_port_no, 2},
         {interface, "eth1"},
         {queues, [{0, [{ofp_queue_prop_min_rate, 0},
                        {ofp_queue_prop_max_rate, 1000}]}]},
         {rate, {1, gibps}}]
    ]}
]}.

At the moment you can change the list of controllers and ports used by the switch.

Start LINC switch in console mode:

% rel/openflow/bin/openflow console

For further instructions on how to use LINC check the "Ping example".

For detailed explanation on how to setup simple LINC testbed check the "Testbed setup".

Read more...

Support

If you have any technical questions, problems or suggestions regarding LINC please contact [email protected].

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.