<div dir="ltr"><div>Thank you so much for your guide Murphy. Yeah the  "Example - Web Flow Statistics" helped me to count flows but port statistics is still not getting cleared up. I want to get count values for rx_packets, rx_dropped, rx_errors etc individually from a specific port based on packet type such as tcp, udp, ip, arp, icmp, source/destination IP/MAC addresses etc. <br>
<br>I looked into flow_stats.py example here <a href="https://github.com/hip2b2/poxstuff/blob/master/flow_stats.py">https://github.com/hip2b2/poxstuff/blob/master/flow_stats.py</a> and checked out some previous posts regarding getting port statistics but couldn't get what I am looking for .<br>
</div><div>Please tell me if there is a way possible to get port statistics based on a certain condition as I described above. <br><br></div><div>Thank you for any hints/help. <br><br></div><div>Kind Regards;<br></div><div>

<br></div><br>
<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 29, 2013 at 9:47 AM, Murphy McCauley <span dir="ltr"><<a href="mailto:murphy.mccauley@gmail.com" target="_blank">murphy.mccauley@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A good starting point might be "Example - Web Flow Statistics" in the POX manual.<br>
<br>
As far as uniquely identifying a flow, the original idea was to use the match itself (since it certainly should identify the flow).  There's also a flow "cookie".  In OpenFlow 1.0, this was only useful in very limited contexts, but has become more useful with Nicira extensions and higher versions of OpenFlow.<br>

<span class="HOEnZb"><font color="#888888"><br>
-- Murphy<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Nov 27, 2013, at 6:59 PM, Sadia Bashir <<a href="mailto:11msccssbashir@seecs.edu.pk">11msccssbashir@seecs.edu.pk</a>> wrote:<br>
<br>
> Hi everyone,<br>
><br>
> I want controller to get flow statistics from a switch such as the count-value associated with each flow installed on a switch, how do I uniquely identify a flow and then retrieve associated statistics.<br>
><br>
> I am using Dart branch for POX-Controller, which files should I look into in order to get an idea in this regard.<br>
><br>
> Thank you for your help.<br>
> --<br>
> Sadia<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><font color="#3366ff"><br></font></div><div><font color="#3366ff"></font> </div>
</div>