Re: [nox-dev] Timestamp update on pyswitch

2011-01-26 Thread kk yap
Hi Niky, Yes, this is clearer now. I do think it is better to watch for both packet_in and flow_removed in this case. You are looking for hints on the host binding and both gives you the same information. The easiest fix is to just update the timestamp nonetheless. Regards KK On 26 January 20

[nox-dev] DL_TYPE on packets with vlan tags

2011-01-26 Thread Niky Riga
Hi, We recently ran into a problem with tagged packets. I am using nox zaku, and my modules are written in python. The extract_flow() in util.py will set the DL_TYPE always to the type in the ethernet frame. This results into setting the DL_TYPE to VLAN_TYPE in the case that the packet is tagged

Re: [nox-dev] Timestamp update on pyswitch

2011-01-26 Thread Niky Riga
On the pyswitch code there is a function do_l2_learning(). It's easier if I just paste the code here, hopefully it won't be too clattered. def do_l2_learning(dpid, inport, packet): global inst # learn MAC on incoming port srcaddr = packet.src.tostring() if ord(srcaddr[0]) & 1:

Re: [nox-dev] Timestamp update on pyswitch

2011-01-26 Thread kk yap
Hi, I am lost in this conversation. While I can go and read the code, can someone explain this to people on the list? I can figure out why entries will timeout quickly. Regards KK On 26 January 2011 14:49, Niky Riga wrote: > I am not exactly sure what you mean about L3 flows, I am guessing yo

Re: [nox-dev] Timestamp update on pyswitch

2011-01-26 Thread Niky Riga
I am not exactly sure what you mean about L3 flows, I am guessing you mean that it installs exact matches on all the fields and not just using the L2 fields, which, I am guessing, is done for efficiency reasons. I was thinking along the same lines as you, and modifying the controller to use th

Re: [nox-dev] Timestamp update on pyswitch

2011-01-26 Thread Murphy McCauley
I think you're right. This has bothered me (a tiny, tiny bit) for years, but I never took the time to 100% convince myself that having it update the timestamp was the right thing to do. Since pyswitch isn't exactly an L2 switch -- it installs L3 flows -- I was worried there might be something

[nox-dev] Timestamp update on pyswitch

2011-01-26 Thread Niky Riga
Hi, I was recently going over the code of pyswitch and I noticed that the timestamp of an entry is not being updated when a packet comes in on the same port as before (if the port is the same the code will return before updating the entry). I know that this is not terribly important since, un

Re: [nox-dev] Installing NOX Zaku in Ubuntu 10.10

2011-01-26 Thread Ishaan Aggarwal
Ok problem solved. Basically I had installed autoconf myself and Ubuntu had installed a version of it as well. So the files were being generated using both autoconf which were conflicting. Thanks for the help. Ishaan On 26/01/2011 03:35, Murphy McCauley wrote: Is there any reason you're not