[pox-dev] How can POX get packet counts (or beta transferred) from a switch within a timeline.

William Emmanuel Yu wyu at ateneo.edu
Wed Sep 19 03:51:31 PDT 2012


Hi Weiyang,

Did you check out ofp_flow_stats_request()?

import pox.openflow.libopenflow_01 as of
fsr = of.ofp_flow_stats_request()
sr = of.ofp_stats_request(body = fsr)
switch.send(sr)

Check out:
https://groups.google.com/forum/?fromgroups=#!topic/pox_dev/sSlfqm5Okls

Good luck!

On Tue, 2012-09-18 at 08:21 -0700, Weiyang Mo wrote:
> Hi,All,
>  
> I try to use packet counts from switches within a time period (e.g
> 10secs) to do some routing.  In the documentation
> https://openflow.stanford.edu/display/ONL/POX
> +Wiki#POXWiki-StatisticEvent it mentions that it's possible to do this
> using a timer. I guess using 'time to wake' to call a counting
> function may help.
>  
> However I'm not famiiar with getting statistics from a switch. More
> than one flow, I want to get total packet counts within 10 seconds
> from all flow entries. Could you please help to give me a simple
> examples about this?
>  
> Thanks very much.
>  
> Best
>  
> Weiyang
>  
>  

-- 
-------------------------------------------------------
William Emmanuel S. Yu, Ph.D. (杨怀义)
Department of Information Systems and Computer Science
Ateneo de Manila University
email  :  wyu at ateneo dot edu
blog   :  http://hip2b2.yutivo.org/
web    :  http://CNG.ateneo.edu/cng/wyu/
phone  :  +63(2)4266001 loc. 4186
GPG    :  http://CNG.ateneo.net/cng/wyu/wyy.pgp

Confidentiality Issue:  This message is intended only for the use of the
addressee and may contain information that is privileged and
confidential. If you are not the intended recipient, you are hereby
notified that any use or dissemination of this communication is strictly
prohibited.  If you have received this communication in error, please
notify us immediately by reply and delete this message from your system.




More information about the pox-dev mailing list