Hi,
Please cc the Ryu-devel mailing list and keep it.
On 2017年04月23日 18:58, raghu rathode wrote:
> Dear Iwase,
>
> I want to test my ryu application communication overhead in terms of control
> traffic to/from the controller to install rules in the switches i.e HP 5900
> OpenFlow1.3. I searched over the internet, i find your email conversation
> suggestion regarding "KulCloud Cbench tool" for OpenFlow1.3 but i didn't find
> any documentation how to run and integrate with the RYU application. Can you
> please help me out, how to execute with the ryu controller. or any other tool
> is available to test RYU Controlller with Openflow 1.3.
You mean "How to run KulCloud Cbench tool with Ryu? And is
there any app for cbench for OpenFlow 1.3", right?
I don't know about "KulCloud Cbench tool" further...
Just know where to get the source code.
https://kulcloud.wordpress.com/tag/cbench/
OTOH, I attached to the Ryu-side application for tests.
This is a fork of cbench.py which is one of the built-in
apps of Ryu.
https://github.com/osrg/ryu/blob/master/ryu/app/cbench.py
Thanks,
Iwase
>
>
> Thanks and Regards
> Hari Raghavendar Rao Bandari
# Copyright (C) 2017 Nippon Telegraph and Telephone Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
A dumb OpenFlow 1.3 responder for benchmarking the controller framework.
Intended to be used with oflops cbench.
"""
from ryu.base import app_manager
from ryu.controller import ofp_event
from ryu.controller.handler import MAIN_DISPATCHER
from ryu.controller.handler import set_ev_cls
from ryu.ofproto import ofproto_v1_3
class Cbench13(app_manager.RyuApp):
OFP_VERSIONS = [ofproto_v1_3.OFP_VERSION]
def __init__(self, *args, **kwargs):
super(Cbench13, self).__init__(*args, **kwargs)
@set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)
def packet_in_handler(self, ev):
datapath = ev.msg.datapath
parser = datapath.ofproto_parser
# ofproto = datapath.ofproto
match = parser.OFPMatch()
mod = parser.OFPFlowMod(datapath, match=match)
datapath.send_msg(mod)
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel