sir, I am a research scholar, I am working in SDN area, I am using mininet and pox-fangtooth controller. I am running a webserver in one of the hosts and send curl requests.
I want to find number of installed flow entries for varying number of curl requests.
I have written the following code in "def _handle_openflow_PacketIn (self, event):"
in block "if isinstance(packet.next, ipv4):"
for con in core.openflow.connections:
con.send(of.ofp_stats_request(body=of.ofp_flow_stats_request()))
and added the method
def handle_flow_stats (event):
flows = 0
for f in event.stats:
flows += 1
print "flows=",flows
core.openflow.addListenerByName("FlowStatsReceived", handle_flow_stats)
I am getting number of flows as double that of number of curls, I believe that it should be much greater than the values what I got. e.g., for 5 curls I got 11 flows.
Using ovs-ofctl dump-flows switch in the xterm window of switch. I am getting only current flows count, but I need count of all the installed flows.
Kindly help me in getting correct count of total number of installed flow entries.
Is there a way to get the actual count from switch log files
Kindly suggest how to store flow entries in log files.
sir, I am a research scholar, I am working in SDN area, I am using mininet and pox-fangtooth controller. I am running a webserver in one of the hosts and send curl requests. I want to find number of installed flow entries for varying number of curl requests. I have written the following code in "def _handle_openflow_PacketIn (self, event):" in block "if isinstance(packet.next, ipv4):"
for con in core.openflow.connections:
con.send(of.ofp_stats_request(body=of.ofp_flow_stats_request())) and added the method def handle_flow_stats (event):
flows = 0
for f in event.stats:
flows += 1
print "flows=",flows core.openflow.addListenerByName("FlowStatsReceived", handle_flow_stats)
I am getting number of flows as double that of number of curls, I believe that it should be much greater than the values what I got. e.g., for 5 curls I got 11 flows. Using ovs-ofctl dump-flows switch in the xterm window of switch. I am getting only current flows count, but I need count of all the installed flows. Kindly help me in getting correct count of total number of installed flow entries. Is there a way to get the actual count from switch log files Kindly suggest how to store flow entries in log files.