Hi everyone.
I'm updating cbench to emulate OpenFlow 1.4 switches (instead of 1.0) and I
just tested it against Ryu.
I noticed that there's a "cbench.py" app that I suppose it is to be used
when benchmarking Ryu. As I'm new to Ryu, I would like to know if I'm doing
things right.
So, from ryu main folder, i ran "./bin/ryu-manager ryu/app/cbench.py" and
started the original version of cbench, getting this result:
*RESULT: 16 switches 15 tests min/max/avg/stdev =
5191.99/5742.99/5514.55/163.41 responses/s*
Then I tried running my updated version of cbench, but seems like this app
isn't ready to deal with OF 1.4 switches, as I got this error: AttributeError:
'OFPSwitchFeatures' object has no attribute 'ports' (full output in the end
of the email).
Because of this, I decided to test Ryu running the
"ryu/app/simple_switch.py" since it had the counterpart
"simple_switch_14.py" and both versions of cbench worked:
Cbench vs Ryu's simple_switch.py:
*RESULT: 16 switches 15 tests min/max/avg/stdev =
2047.69/2560.00/2315.53/215.48 responses/s*
Cbench 1.4 vs Ryu's simple_switch_14.py: *RESULT: 16 switches 15 tests
min/max/avg/stdev = 869.00/1270.03/1140.63/117.47 responses/s*
I would like to know if these values are common/expected or if I'm doing
something wrong (either in launching ryu or if the Cbench 1.4 values look
"weird).
Thanks in advance!
---------------------
loading app ryu/app/cbench.py
loading app ryu.controller.ofp_handler
instantiating app ryu/app/cbench.py of Cbench
instantiating app ryu.controller.ofp_handler of OFPHandler
Error in the datapath 0000000000000007 from ('127.0.0.1', 36439)
hub: uncaught exception: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 54, in
_launch
return func(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", line
448, in datapath_connection_factory
datapath.serve()
File
"/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", line
366, in serve
self._recv_loop()
File
"/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", line
129, in deactivate
method(self)
File
"/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", line
271, in _recv_loop
handler(ev)
File
"/usr/local/lib/python2.7/dist-packages/ryu/controller/ofp_handler.py",
line 205, in switch_features_handler
datapath.ports = msg.ports
AttributeError: 'OFPSwitchFeatures' object has no attribute 'ports'
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel