http://www.openflowhub.org/display/floodlightcontroller/Cbench+(New)
$ sudo apt-get install autoconf automake libtool libsnmp-dev libpcap-dev
$ git clone git://gitosis.stanford.edu/oflops.git
$ cd oflops; git submodule init && git submodule update
$ git clone git://gitosis.stanford.edu/openflow.git
$ cd openflow; git checkout -b release/1.0.0 remotes/origin/release/1.0.0
$ wget http://hyperrealm.com/libconfig/libconfig-1.4.9.tar.gz
$ tar -xvzf libconfig-1.4.9.tar.gz
$ cd libconfig-1.4.9
$ ./configure
$ sudo make && sudo make install
$ cd ../../netfpga-packet-generator-c-library/
$ sudo ./autogen.sh && sudo ./configure && sudo make
$ cd ..
$ sh ./boot.sh ; ./configure --with-openflow-src-dir=<absolute path to openflow branch>; make
$ sudo make install
$ cd cbench
交互:
Cbench产生Paket_in事件,发送给OpenFlow controller
Cbench模拟出一系列 switches 连接到NOX,发送Packet_in messages ,等待NOX下推flow-mods/packet_out,记录收到多少个flow-mods/packet_out。
NOX收到Packet_in,发给Cbench :ofp_flow_mod 。
参数配置:
Cbench 的参数有:
-c/--controller <str> hostname of controller to connect to ("localhost")
-l/--loops <int> loops per test (16)
-M/--mac-addresses <int> unique source MAC addresses per switch (100000)