[nox-dev] Something about Routing Application

2011-06-20 Thread ZHOU Ye
Hi, I'm a freshman of Openflow and Nox. I want to make a demo about customized routing control, but there are something I'm confused. For example, I have a network topology consisting of 3 switches( Switch A, Switch B, Switch C), making up a triangle. We also have a host "Host A" connected to S

Re: [nox-dev] Assertion on udp.checksum()

2011-06-20 Thread Aaron Rosen
Thanks Murphy! You're right, that did the trick. Aaron On Mon, Jun 20, 2011 at 1:55 PM, Murphy McCauley wrote: > So I think the call to l3.checksum() is extraneous, but the real issue is > probably that l3.iplen should be ipv4.MIN_LEN + l4.len. > > -- Murphy > > On Monday, June 20, 2011 09:42:0

Re: [nox-dev] Assertion on udp.checksum()

2011-06-20 Thread Murphy McCauley
So I think the call to l3.checksum() is extraneous, but the real issue is probably that l3.iplen should be ipv4.MIN_LEN + l4.len. -- Murphy On Monday, June 20, 2011 09:42:07 AM Aaron Rosen wrote: > Hi Murphy, > > wow... Opps... > > I'm trying the following: This doesn't return any errors but i

Re: [nox-dev] Assertion on udp.checksum()

2011-06-20 Thread Aaron Rosen
Hi Murphy, wow... Opps... I'm trying the following: This doesn't return any errors but in wireshark the packet_outs say Malformed UDP packets. def send_udp_message(): l4 = udp() l4.srcport = 1999 l4.dstport = 1888 l4.len = udp.MIN_LEN + len("hello_world") l4.set_payload("Hello_wo

Re: [nox-dev] gathering status of Openflow Switch

2011-06-20 Thread Min-Hyup KANG
Ok, you are right.I refered http://noxrepo.org/noxwiki/index.php/NOX_Installation#Installationso, git clone git://noxrepo.org/noxcd noxgit branch -agit checkout -b destiny origin/destiny./boost.shmkdir build/cd build../configuremake -j 5and thenI can see monitoring directory.src/nox/netapps#

Re: [nox-dev] Assertion on udp.checksum()

2011-06-20 Thread Murphy McCauley
Unfortunately, your tweak breaks the logic of the assert. The assert is asserting that self.next is a packet_base of some sort OR a string. You've set it to a string, so... it should be a string. So it should definitely not be a packet_base. So the first of your asserts will always fail.

Re: [nox-dev] Assertion on udp.checksum()

2011-06-20 Thread Aaron Rosen
Hi Murphy, I'm using zaku but the one in destiny looked the same to be. I changed to assert to be on two lines so I could see which one was firing. def checksum(self): #assert(isinstance(self.next, packet_base) or type(self.next) == type('')) assert(isinstance(self.next, pack

Re: [nox-dev] Assertion on udp.checksum()

2011-06-20 Thread Murphy McCauley
What NOX are you using? Your udp.py does not seem to be the one in zaku or destiny... -- Murphy On Sunday, June 19, 2011 03:34:20 PM Aaron Rosen wrote: > 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 h

Re: [nox-dev] Assertion on udp.checksum()

2011-06-20 Thread Aaron Rosen
Hello, I was able to successfully craft my UDP packets using scapy and then pass that to send_openflow_packet() and that seemed to do the trick for me. (I'm this curious what my issue is with building the packet up using nox though). def send_udp(): packet = scapy.Ether(type=0x800, dst="00:0

Re: [nox-dev] Assertion on udp.checksum()

2011-06-20 Thread Aaron Rosen
I see if I put a = packet_base() l4.next = a That gets me around the first part of the assertion but then I get asserted on: assert(type(self.next) == type('')) Thanks, Aaron On Sun, Jun 19, 2011 at 6:34 PM, Aaron Rosen wrote: > Hello, > > I'm trying to send udp packets from my contr

Re: [nox-dev] gathering status of Openflow Switch

2011-06-20 Thread Kyriakos Zarifis
Hi, you are probably using the branch of the repository and not destiny. Take a look at the first reply above, which explains that the monitoring component is only on the Destiny branch, and how to get it. (Using Destiny is suggested at this point, as it is more up-to-date version of nox with sev

Re: [nox-dev] gathering status of Openflow Switch

2011-06-20 Thread Min-Hyup KANG
Thanks for your kindness.But there is not exsisting monitoring.py of netapps/so there is existing some derectory in netapps as a below.src/nox/netapps# lsMakefile.am  __init__.py    bindings_storage  discovery     hoststate  networkstate  routing  switch_management  tablog  topologyMakef

Re: [nox-dev] gathering status of Openflow Switch

2011-06-20 Thread 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 s