An dedicated OpenFlow controller implementation for "cbench" OpenFlow controller benchmark.
- Ruby 2.0.0 or higher (RVM).
- Open vSwitch (
apt-get install openvswitch-switch
).
$ git clone https://github.com/trema/cbench.git
$ cd cbench
$ bundle install --binstubs
Run this controller
$ ./bin/trema run ./lib/cbench.rb
or
$ ./bin/trema run ./lib/fast_cbench.rb # multi-threaded version
then, on another terminal
$ ./bin/cbench --port 6633 --switches 1 --loops 10 --ms-per-test 10000 --delay 1000 --throughput
Enjoy!