Hi,
In my RYU controller, I use one thread that repeatedly adds and then deletes
a flow entry for measuring flow setup time. I use event flow removed handler
as mentioned below for knowing when the flow entry is removed.
@set_ev_cls(ofp_event.EventOFPFlowRemoved, MAIN_DISPATCHER)
def flow_removed_handler(self, ev):
Also, I use Set Asynchronous Configuration Message as mentioned below for
filtering packet-in messages caused by ACTION.
def send_set_async(self, datapath):
ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
packet_in_mask = ofp.OFPR_ACTION
port_status_mask = ofp.OFPPR_ADD
flow_removed_mask = ofp. OFPRR_HARD_TIMEOUT
req = ofp_parser.OFPSetAsync(datapath,
[packet_in_mask, 0],
[port_status_mask, 1],
[flow_removed_mask, 1])
datapath.send_msg(req)
As you can see, I don’t filter flow removed message caused by DELETE for
my controller in EQUAL mode, but there is no anymore flow removed event.
Why? How can I fix it?
Thank you,
...................................................
mehran shetabi
PhD student
Computer Engineering Department
IUST
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel