Thank you for your kindness.


I am using Openflow Switch(v.1.0) based on PC box. and I am using NOX zaku.


1.You can look at the 'monitoring' component in the netapps folder

-> do you mean switchstats.py and pycswitchstats.py  in /netapps ?


additionally,  I test using "./nox_core -i ptcp:6633 -v pyswitch packetdump switchstats pycswitchstats "

and then I can see this message.


00076|openflow-event|DBG:received stats reply from 002320c576d6

00077|reactor|ERR:Unhandled Error

Traceback (most recent call last):

--- <exception caught here> ---

 File "./nox/coreapps/pyrt/pyoxidereactor.py", line 86, in __call__

   self.func(*self.args, **self.kw);

 File "./nox/netapps/switchstats/switchstats.py", line 123, in <lambda>

   lambda : self.port_timer(dp))

 File "./nox/netapps/switchstats/switchstats.py", line 88, in port_timer

   self.ctxt.send_port_stats_request(dp)

 File "./nox/coreapps/pyrt/pycomponent.py", line 538, in send_port_stats_request

   def send_port_stats_request(self, *args): return _pycomponent.PyContext_send_port_stats_request(self, *args)

exceptions.TypeError: PyContext_send_port_stats_request() takes exactly 3 arguments (2 given)


00078|openflow-event|DBG:received stats reply from 002320c576d6



2. (or, if you prefer, you can modify pyswitch to send such queries) 

-> you mean pyswitch can gather status of flow, port  in switch, right ?


and I think I should use  ofp_stats_request, ofp_stats_reply, ofp_desc_stats, ofp_port_stats_request, ofp_ports_stats etc of struct in openflow.h and core.py


But,  It is difficult to use . so I need your help.


can you give some tips ?


Many Thanks,






--------- ¿øº» ¸ÞÀÏ ---------
º¸³½»ç¶÷: Kyriakos Zarifis <kyr.zari...@gmail.com>
¹Þ´Â»ç¶÷ : Min-Hyup KANG <kang-min-h...@hanmail.net>
ÂüÁ¶ : nox-dev@noxrepo.org
³¯Â¥: 2011³â 6¿ù 19ÀÏ ÀÏ¿äÀÏ, 18½Ã 10ºÐ 32ÃÊ +0900
Á¦¸ñ: Re: [nox-dev] gathering status of Openflow Switch
Hi, 

no, pyswitch does not show information about establish flows. You need to write a component that does that by sending query packets from NOX to the switch. (or, if you prefer, you can modify pyswitch to send such queries) You can look at the 'monitoring' component in the netapps folder, which gather statistics from switches, as an example for how to construct and send such query packets. From what I can tell, you are mostly interested in the "flow_stats" message

2011/6/18 Min-Hyup KANG <kang-min-h...@hanmail.net>

Hi. all


I would like to gather through pyswitch.py a little status information of flow in Openflow Switch(v.10)


I think I should use Openflow protocol that can gather their some status of flow between OpenflowSwitch and NOX controller.


so Is it possible with pyswitch.py ?


or Should I write a new C++ component ?


Thanks,




Best Regards,
Min-Hyup KANG



_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev








Best Regards,
Min-Hyup KANG


_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to