On Mar 19, 2013, at 6:07 AM, udita gangwal wrote:
> I would like to know how the Flow Table entries (Rule, Actions and Stats) 
> could be viewed using the POX controller?
> 
Send the switch an ofp_flow_stats_request.  Handle the resulting 
FlowStatsReceived event.  The event object will have a list of ofp_flow_stats 
in the stats attribute.  These ofp_flow_stats entries contain the match, 
actions, and stats.

This is exactly what the web flows example does.  It then summarizes only the 
flows on port 80.  (It should actually check that it's specifically TCP, but it 
doesn't.)
> I also want to know what the variable “web_flows” signifies in the code 
> “flow_stats.py” which is given in the POX wiki. Why is it incremented by 1 
> every time?
> 
Because it's counting the number of flow entries that use port 80 -- flows 
carrying web traffic.  This is so it can print out a message like: "Web 
traffic: 96695 bytes over 16 flows".  That is, there are 16 flows that use port 
80, and 96695 bytes have been transferred over all of them.

-- Murphy

Reply via email to