GithubHelp home page GithubHelp logo

oftest12's Introduction

OFTest for OpenFlow 1.2
-----------------------

OFTest if a test suite for testing OpenFlow 1.2 [1] compatible switches.
This version is based on the original OFTest code [2], with fixes for 1.2
compatibility.

[1] https://www.opennetworking.org/images/stories/downloads/openflow/openflow-spec-v1.2.pdf 
[2] http://yuba.stanford.edu/git/gitweb.cgi?p=oftest.git;a=tree;h=f2333b5fb3ac73c262ba90548ff75ff2c7b0e72a;hb=830393a8dff06630839909cb06f8be6719a5dc84


Getting Started
---------------

This setup describes how to set-up an environment to run both the switch under
test and oftest itself on the same machine. For other environments, please
refer to the documentation and the source code.

In order to control datapath communication, virtual links must be set up on
the system. For now this will be four virtual ethernet links. To establish
the links, run the following command four times:

    sudo ip link add veth

This created eight virtual network adapters: veth0 - veth7. By default oftest
uses veth 1, 3, 5 and 7, while the switch should connect to 0, 2, 4 and 6.
First enable the interfaces:

    sudo ifconfig veth0 up
    ...
    sudo ifconfig veth7 up


To install oftest, run the following commands:

    cd tools/munger
    sudo make install


To run a specific test, run the following command. Note that at this point the
switch must already be running, and should try connecting to localhost:6633.

    sudo ./oft --platform=local --verbose --log-file="" --test-spec=<spec>

To run all available tests, simply run:

    sudo ./oft

To get a list of all testcases, run:

    ./oft --list


Note: the test suite contains test cases for port queues. As the OpenFlow
protocol does not enable configuring switch queues (only using them), you
must set up the queues before running the tests on a switch-specific way.


Contribute
----------

Please submit your bug reports, fixes and suggestions as pull requests on
github, or by contacting us directly.


References
----------

[1] OpenFlow: http://www.openflow.org/
[2] ONF:      http://www.opennetworkingfoundation.org/


Contact
-------

E-mail: Zoltan Lajos Kis ([email protected])

Repo:   https://github.com/TrafficLab/oftest11

oftest12's People

Contributors

rrdenicol avatar

Stargazers

 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.