Re: [nox-dev] gathering status of Openflow Switch
Hi, I was actually referring to netapps/monitoring/montoring.py, which is a more complete (and complicated) monitoring component, but it is the same idea. However the one you looked at might actually be a better example exactly because it is simpler, but still shows how to create and send switch query packets. The output you pasted looks okay 2011/6/19 Min-Hyup KANG > Hi, > > > after I found monitoring.py, > > There is existing /src/nox/coreapps/examples/monitor.py. > > I think what you mean is /src/nox/coreapps/examples/monitor.py. right ? > > > so, I excuted monitor component. > > > I can check Table stats and Port stats, Aggregate stats as a below. > > > 00072|openflow-event|DBG:received stats reply from 002320ca92e0 > > Table stats in from datapath 00:23:20:ca:92:e0 > > hash2 : 0 > > linear : 2 > > 00073|openflow-event|DBG:received stats reply from 002320ca92e0 > > Port stats in from datapath 00:23:20:ca:92:e0 > > 1 : 4 > > 2 : 4 > > 00074|openflow-event|DBG:received stats reply from 002320ca92e0 > > Aggregate stats in from datapath 00:23:20:ca:92:e0 > > {'packet_count': 0L, 'byte_count': 0L, 'flow_count': 0L} > > > > > - 원본 메일 - > > *보낸사람*: Kyriakos Zarifis > *받는사람* : Min-Hyup KANG > *참조* : nox-dev@noxrepo.org > *날짜*: 2011년 6월 20일 월요일, 00시 35분 26초 +0900 > > *제목*: Re: [nox-dev] gathering status of Openflow Switch > Hi, > > the 'monitoring' component I was referring to, is under: > ** / src / nox / netapps / monitoring / monitoring.py** > > but on the Destiny branch of the repository (not Zaku which is the master > branch). > Follow the instructions here > http://noxrepo.org/noxwiki/index.php/NOX_Installation#Installation (where > it says "For a branch other than master"...) > to switch to Destiny. > >> -> 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 >> > > Exactly. You can see some example of how to build some messages in > 'monitoring.py' > > > > > > > > Best Regards, > Min-Hyup KANG > > > ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev
Re: [nox-dev] I'm openflow beginner
I received your mail successfully.so I think you become a member of nox-mailing list.- 원본 메일 -보낸사람: "Bluesky" 받는사람 : 날짜: 2011년 6월 20일 월요일, 15시 14분 35초 +0900제목: [nox-dev] I'm openflow beginner Hi all, I'm a student ,who is interesting in openflow.I have signed up nox mailling-list, so I would like to check whether I become a member of nox-dev mailing list or not.If so, please let me know.Thanks, Best Regards, Min-Hyup KANG ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev
[nox-dev] I'm openflow beginner
Hi all, I'm a student ,who is interesting in openflow.I have signed up nox mailling-list, so I would like to check whether I become a member of nox-dev mailing list or not.If so, please let me know.Thanks, ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev
[nox-dev] Assertion on udp.checksum()
Hello, I'm trying to send udp packets from my controller but I'm getting the following assertion when I call udp().checksum(). I was hoping someone could point out where I'm going wrong. Thanks, Aaron Traceback (most recent call last): File "./nox/lib/util.py", line 116, in f event.total_len, buffer_id, packet) File "./nox/coreapps/examples/sos.py", line 299, in packet_in_callback learn(dpid, inport, packet) File "./nox/coreapps/examples/sos.py", line 56, in learn send_packet = send_udp_message() File "./nox/coreapps/examples/sos.py", line 48, in send_udp_message l4.csum = l4.checksum() File "./nox/lib/packet/udp.py", line 111, in checksum assert(isinstance(self.next, packet_base)) AssertionError def send_udp_message(): l4 = udp() l4.srcport = 1999 l4.dstport = 1888 l4.len = udp.MIN_LEN + len("hello_world") l4.set_payload("Hello_world") l3 = ipv4() l3.iplen = ipv4.MIN_LEN l3.protocol = ipv4.UDP_PROTOCOL l3.dstip = ipstr_to_int("130.127.39.7"); l3.srcip = ipstr_to_int("1.1.1.1"); l3.set_payload(l4) l2 = ethernet() l2.set_payload(l3) l2.dst = octstr_to_array("00:00:00:00:00:02") l2.dst = octstr_to_array("a1:00:04:00:0a:04") l2.type = ethernet.IP_TYPE l3.checksum() l4.csum = l4.checksum() return l2 send_packet = send_udp_message() inst.send_openflow_packet(dpid, send_packet.tostring(), openflow.OFPP_FLOOD, inport) -- Aaron O. Rosen Masters Student - Network Communication 306B Fluor Daniel ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev
[nox-dev] how to only learn hosts directly attached to OF switch.
Hello, I'm trying to keep a list of hosts that are actually on inports of an openflow switch but the problem I'm running into is hosts that are on the same vlan are getting picked up though the trunk port, (for example the gateway). I know that I could hard code this inport so that I don't learn these hosts but I was wondering if there was any dynamic way to do this? Thanks, Aaron -- Aaron O. Rosen Masters Student - Network Communication 306B Fluor Daniel ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev
Re: [nox-dev] gathering status of Openflow Switch
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 002320c576d600077|reactor|ERR:Unhandled Error Traceback (most recent call last): --- --- 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 : 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 002320c576d62. (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.pyBut, It is difficult to use . so I need your help.can you give some tips ?Many Thanks,- ¿øº» ¸ÞÀÏ -º¸³½»ç¶÷: Kyriakos Zarifis ¹Þ´Â»ç¶÷ : Min-Hyup KANG ÂüÁ¶ : 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 KANGHi. allI 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
Re: [nox-dev] gathering status of Openflow Switch
Hi, the 'monitoring' component I was referring to, is under: / src / nox / netapps / monitoring / monitoring.py but on the Destiny branch of the repository (not Zaku which is the master branch). Follow the instructions here http://noxrepo.org/noxwiki/index.php/NOX_Installation#Installation (where it says "For a branch other than master"...) to switch to Destiny. > -> 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 > Exactly. You can see some example of how to build some messages in 'monitoring.py' ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev
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 > 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 > > ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev