Re: [nox-dev] Component's priority over events

2011-10-09 Thread Martin Casado
priorities? Thanks -- Andrea Simeoni ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev -- ~~~ Martin Casado Nicira Networks, Inc. www.nicira.com | www.openvswitch.org cell: 650-776-1457

Re: [nox-dev] Python API on 64 bit system

2011-08-26 Thread Martin Casado
..@grnoc.iu.edu ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev -- ~~~~~~~ Martin Casado Nicira Networks, Inc. www.nicira.com | www.openvswitch.org cel

Re: [nox-dev] NOX Zaku with OF 1.1 support (C++ only)

2011-05-11 Thread Martin Casado
man/listinfo/nox-dev -- ~~~~~~~ Martin Casado Nicira Networks, Inc. www.nicira.com | www.openvswitch.org cell: 650-776-1457 ~~~ ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev

Re: [nox-dev] CONTINUE vs. STOP in Disposition methods?

2011-04-14 Thread Martin Casado
istinfo/nox-dev -- ~~~~~~~ Martin Casado Nicira Networks, Inc. www.nicira.com | www.openvswitch.org cell: 650-776-1457 ~~~ ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev

Re: [nox-dev] Kill Nox from Application

2011-03-01 Thread Martin Casado
omputer Science 2012 ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org -- ~~~~~~~ Martin Casado Nicira Networks, Inc. www.nicira.com | www.openvswitch.org cel

Re: [nox-dev] pytopology patch

2011-01-13 Thread Martin Casado
stiny branch (commit no. 5917f412d6d2a23ce5373ec499872cb8b40833e8). Thanks, Nikhil ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org -- ~~~ Martin Casado Nicira Networks

Re: [nox-dev] Contributing to Nox

2011-01-11 Thread Martin Casado
z' - make barrier reply events available to the Python API. 'flow-stats-in.tar.gz' - add a convenience method in component to register for flow stats in events. -Derek On 12/28/2010 01:30 AM, Martin Casado wrote: Thanks KK. I pushed a few edits as well. Hi, I have done that

Re: [nox-dev] Contributing to Nox

2010-12-27 Thread Martin Casado
Thanks KK. I pushed a few edits as well. Hi, I have done that for destiny and pushed the file. Martin, you should probably check the list again. If I have missed you out (since I only exploited git log), do let me know. Regards KK ___ nox-d

Re: [nox-dev] Contributing to Nox

2010-12-27 Thread Martin Casado
On an off (but related) topic, we should maintain an authors file for nox. There have been many good contributions from the community. KK, mind creating one? Hi Derek, Please post on this mailing list. Thanks. Regards KK On 26 December 2010 22:07, Derek Cormier

Re: [nox-dev] NOX's API Documentation online

2010-12-27 Thread Martin Casado
On 12/26/10 9:43 PM, kk yap wrote: The last release of NOX (zaku) has come with doxygen-generated documentation, which can be a rich source of information for those trying to figure out what individual components do (e.g., routing). Judging from recent questions on the list (and to make my fri

Re: [nox-dev] Multi-threaded handlers

2010-12-16 Thread Martin Casado
Zaku uses cooperative threading so there shouldn't be any issues with preemption unless you perform I/O. A component writer can spawn a native thread (see src/include/thread/native.hh and src/include/thread/native-pool.hh) and use the Native_sema, Native_cond, Native_mutix, Native_recursive_mu

Re: [nox-dev] [openflow-discuss] NOX performance improvement by a factor 10

2010-12-15 Thread Martin Casado
r cores ~800 replies/sec. These numbers are higher than what I reported in my previous post. That is most probably because, right now, I am testing with MTU 9000 (jumbo frames) and with more user-space threads. Cheers, Amin On Wed, Dec 15, 2010 at 12:36 AM, Martin Casado wrote: Also, do you min

Re: [nox-dev] [openflow-discuss] NOX performance improvement by a factor 10

2010-12-14 Thread Martin Casado
Also, do you mind posting the single core throughput? [cross-posting to nox-dev, openflow-discuss, ovs-discuss] I have prepared a patch based on NOX Zaku that improves its performance by a factor of>10. This implies that a single controller instance can run a large network with near a million f

Re: [nox-dev] [openflow-discuss] NOX performance improvement by a factor 10

2010-12-14 Thread Martin Casado
This is awesome Amin, thanks for posting. It is also probably worth mentioning that cbench was broken and over-reporting numbers. Do you mind sending out a few details about that? I presume that will be helpful to those using cbench [cross-posting to nox-dev, openflow-discuss, ovs-di

Re: [nox-dev] nox or arm

2010-12-09 Thread Martin Casado
Not really. As long as you have an arm port of boost and a g++ tool chain, you should be fine ... Hello all. Is there any reason for NOX not to compile under ARM? Thanks! Vjeko ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/

Re: [nox-dev] Query regarding routing protocol

2010-12-01 Thread Martin Casado
afaik this isn't possible today. However a patch to return the K shortest paths would be fantastic. Hi, I am trying to modify that routing protocol implemented in the NOX controller to obtain the second shortest path. Is it feasible to obtain the second shortest path, such that, the flow cor

Re: [nox-dev] [PATCH] 64 bit DPID in discovery fix?

2010-11-15 Thread Martin Casado
Thanks Murphy, This has been a long time coming :) I know there's a longstanding issue with some switches that use more than 48 bits for their DPIDs. This problem stemming from the fact that discovery stuffs the DPID into a MAC subtype chassis ID TLV in the LLDP packet it sends out, which

Re: [nox-dev] accessing python module from c++ module

2010-11-15 Thread Martin Casado
The most straightforward way to do this is to accept a PyObject* and then to use the python C api to manipulate it. Dear All, I am currently doing some development on nox creating a network statistics extraction module. I would like to export the control of these measurements as a web service

Re: [nox-dev] Question about the Discovery Module

2010-11-14 Thread Martin Casado
Would there be a problem with having multiple lldp packets on different wires in the same network? No, there would be no problem. The reason for the delay is to save CPU and control bandwidth. ___ nox-dev mailing list nox-dev@noxrepo.org http:

Re: [nox-dev] Functionality in a Switch

2010-11-13 Thread Martin Casado
To be clear, you want to do per-packet load balancing for a single flow? This isn't supported in OpenFlow - you could do flow-level load-balancing - but it also probably isn't what you want. Per-packet load balancing can lead to out of order packets. I am working on a project to implement

Re: [nox-dev] How can I introduce new NOX module

2010-09-15 Thread Martin Casado
Did you rerun boot.sh? Hello Sorry to bother others. http://noxrepo.org/wp/ seems outdated. I have a new module and I want to compile it. I remember the only files I need to change are: configure.ac.in , nox.xml and meta.xml inside my module folder. However, it is not

Re: [nox-dev] discovery

2010-09-06 Thread Martin Casado
Yeah, we've run into this before. Basically, the HP drops invalid MACs (which are just treat as a string of bits). KK, could you push this to revival? Hi all, I noticed that the discovery module in the destiny branch does not work with HP switches (at least). So attached is a patch that re

Re: [nox-dev] NOX performance benchmarks

2010-09-06 Thread Martin Casado
Hey Nikhil, A few things to consider. - Nox is *not* a very efficient controller. The event model using argument binding and function pointers adds a lot of overhead, and significant time is wasted checking fd's which don't have any events pending. There are other scalability limitations a

Re: [nox-dev] Installed flows deleted on datapath_join event?

2010-08-11 Thread Martin Casado
I'm not sure I completely follow what is going on here, but Nox will delete all flows of newly joined switches (see src/builtin/nox.cc Handshake_fsm::register_switch() ). Perhaps that is contributing? Hi KK, thanks for the fast reply. Actually I'm trying to run the controllers independently of

Re: [nox-dev] NOX packaging issues

2010-08-06 Thread Martin Casado
These changes are badly needed. The current build system is a long running amalgam of poor implementation decisions and a failed experiment to dynamically consume components as they are added. Having separate packages for noxcore (which may or may not include coreapps), netapps, and webapps

Re: [nox-dev] importing into nox modules

2010-07-14 Thread Martin Casado
swig -version How do I check my version of swig? I'm not sure. On Wed, Jul 14, 2010 at 4:19 PM, Martin Casado <mailto:cas...@nicira.com>> wrote: It looks like swig is throwing an assert when it tries to convert storage.i. I can't imagine this has anyth

Re: [nox-dev] importing into nox modules

2010-07-14 Thread Martin Casado
o you know what this means? Thanks, Albert On Wed, Jul 14, 2010 at 12:40 PM, Martin Casado mailto:cas...@nicira.com>> wrote: Yeah, we've run into this problem before. I believe the segfault is in numpy and we got around it by compiling against a more recent

Re: [nox-dev] importing into nox modules

2010-07-14 Thread Martin Casado
Yeah, we've run into this problem before. I believe the segfault is in numpy and we got around it by compiling against a more recent version of numpy. Hey, I put this line of code import matplotlib into my NOX module (Python graphing utility). Now, when I start NOX, it exits on a segmentat

Re: [nox-dev] Running discoveryws - module import error

2010-06-30 Thread Martin Casado
Looks like a bug to me. Thanks for pointing that out and the patch. We'll push it to master. Hi, I was trying to run the Discovery web service inside NOX using the following command, and I got the accompanying error: ./nox_core -v -i ptcp:2525 monitor discoveryws 00071|nox|ERR:Cannot ch

Re: [nox-dev] git nox error

2010-06-22 Thread Martin Casado
Actually, in this case git-daemon is down. I haven't had time to look into the problem since last evening, but will do so today. Thanks for pointing out the problem ... .martin > IIRC, there was a post some time back (a year ago?) with a similar > error. I believe the result was a firewall betwe

Re: [nox-dev] Some problem with nox compiling, err or: forward declaration of ‘struct vigil::Kernel ’

2010-05-24 Thread Martin Casado
Yeah, this seems to happen when you compile in the source tree. Try using a remote build tree from a clean source tree and see if that works. Hi, Sorry to bother others. I am compiling OpenFlow v1.0. compatible NOX, following steps on: http://www.openflowswitch.org/foswiki/bin/view/OpenFlow/De

Re: [nox-dev] using nox as a python api to linux networking stack

2010-05-14 Thread Martin Casado
Hey there Mort, i'm trying to use nox/openflow simply as an python API to control the networking stack on a linux box. (this may be overkill - alternate suggestions welcome!) i believe i've got everything running (nox_core, ofprotocol, ofdatapath), using the latest repo versions of each (NOX 0

Re: [nox-dev] using python_flow_fetcher to get flows by switch outport

2010-05-10 Thread Martin Casado
It defined the out_port as fsr.out_port = ntohs(OFPP_NONE); so it did not take my value into account. I added PyObject* out_port = PyDict_GetItemString(pyfsr, "out_port"); if (out_port) { ~ fsr.out_port = ntohs(from_python(out_port)); } to read the out_port value from python. Now it works, I

Re: [nox-dev] using python_flow_fetcher to get flows by switch outport

2010-05-10 Thread Martin Casado
indicates no restriction. */ }; That looks to me as if you should specify an ouport to filter. I thought if this is in the spec, then nox would support it. Correct me, if I am reading this wrong! Kind regards Martin Martin Casado wrote: | Hi Martin, (nice name btw ;) | | I don'

Re: [nox-dev] using python_flow_fetcher to get flows by switch outport

2010-05-08 Thread Martin Casado
Hi Martin, (nice name btw ;) I don't believe that OpenFlow allows matching over actions. Therefore, you cannot match over an output action. For future reference, the fields you can define for matching are defined in src/nox/lib/core.py -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello!

Re: [nox-dev] Fail to receive flow-expire message occasionally.

2010-04-29 Thread Martin Casado
It could very well be the case the the OpenFlow image you are using will drop flow expirations. There is nothing in the spec which requires them to be reliable and we regularly loose them in transit. Even if the counter is 0, a flow expiration message should be sent to the controller (unless

Re: [nox-dev] ipv4.py: ethernet frame padding interpreted as payload? (With patch to make it stop)

2010-04-22 Thread Martin Casado
Thanks for the patch Murphy, just getting around to e-mail backlog. Kyriakos will be pushing this and subsequent patches (Zdravko's and Samuel's) to the master and destiny branches on noxrepo. ipv4.py's parse() grabs the IP headers and passes the rest of its input on to some next layer (whic

Re: [nox-dev] Threads in Python

2010-04-22 Thread Martin Casado
ble on the file descriptor - very nice! I also came across this blog entry, which has some useful infos about using IReadDescriptor: http://krondo.com/blog/?p=1445 Best regards, Zdravko On 15.04.2010, at 06:26, Martin Casado wrote: I've not tried using Python threads within Nox. It very

Re: [nox-dev] Problem with git

2010-04-21 Thread Martin Casado
Can you post the clone command you're using? It is working fine for me ... casado$ git clone git://noxrepo.org/nox Initialized empty Git repository in //nox/.git/ remote: Counting objects: 1683, done. remote: Compressing objects: 100% (989/989), done. remote: Total 1683 (delta 884), reused 1417

Re: [nox-dev] Bug in core.py?

2010-04-21 Thread Martin Casado
Awesome, thanks for the patch. We'll add and push to noxrepo. Hi all, to get straight to the point: while using nox I discovered a problem concerning rules to insert into a switch's flow table from a python script. When the list of actions contained the change of the ip_src / ip_dst heade

Re: [nox-dev] A question about the discovery

2010-04-15 Thread Martin Casado
one ... >>> >>> Because I have ever see this in the openflow switch website. >>> http://www.openflowswitch.org/wk/index.php/OpenFlow_v1.0#Neighbor_Discovery >>> >>> Sorry, I really want to know. >>> >>> Thank you so much. >>> >>>

Re: [nox-dev] Threads in Python

2010-04-14 Thread Martin Casado
I've not tried using Python threads within Nox. It very well could be broken. You can grep around src/nox/coreapps/pyrt/ to see the reactor implementation within Nox. I would suggest using Twisted event harness and deferred's rather than Python threads. .martin Hello *, I recently start

Re: [nox-dev] A question about the discovery

2010-04-14 Thread Martin Casado
That pretty much describes it. Nox uses a very simplistic discovery method of sending out a unique LLDP packet per connected switch port. On receipt of an LLDP packet it can then determine the link-state based on the incoming port and switch that the packet was received on. .martin Dear al

Re: [nox-dev] Posting Timers

2010-04-05 Thread Martin Casado
It looks to me line you have a bug in your code. I'd valgrind it. Hi, Sorry, the error was the following Caught signal 11. 0xb75601a1 64 (vigil::fault_handler(int)+0x51) 0xb7757400 1376 (__kernel_sigreturn+0x0) 0xb75a1e2e 0xb75a1faa 48 (vigil::Co_waitqueue::wake_n(int, unsigned int)

Re: [nox-dev] The conversation between two NOXs

2010-03-25 Thread Martin Casado
Inline: On Fri, Mar 26, 2010 at 9:56 AM, Martin Casado <mailto:cas...@nicira.com>> wrote: Inline: Dear martin, Thanks for your reply. We just think when the network environment contains more than 2 NOXs, what is the behavior between them? S

Re: [nox-dev] The conversation between two NOXs

2010-03-25 Thread Martin Casado
.martin We really appreciate to all the help you gave us. Best, JW On Fri, Mar 26, 2010 at 5:55 AM, Martin Casado <mailto:cas...@nicira.com>> wrote: Hi JW, Nox was not built to support coordination between two instances. Why don't control both switches f

Re: [nox-dev] The conversation between two NOXs

2010-03-25 Thread Martin Casado
Hi JW, Nox was not built to support coordination between two instances. Why don't control both switches from the same Nox process? .martin Dear all, We just join the world of OpenFlow and NOX lately. Everything for us is new and also doesn't know how to start. Currently, we have built th

Re: [nox-dev] How to generate the app Makefile and How to config the routing app?

2010-03-19 Thread Martin Casado
Answers inline: >> I'm interested in NOX, and want to write a simple app on it. >> But how to generate the app Makefile? >> I use this method: >> 1. make a directory in the nox/coreapp. >> 2. copy the Makefile.am in the nox/coreapp/simple_c_app, and fix it to my own app configuration. >> 3. cop

Re: [nox-dev] asynchronous behavior in NOX

2010-03-11 Thread Martin Casado
bably missing something basic, but if events are processed sequentially and each event is sent sequentially to each of its handlers, then where does threading play a role? On Tue, Mar 9, 2010 at 9:18 PM, Martin Casado <mailto:cas...@nicira.com>> wrote: Events are processed sequent

Re: [nox-dev] What will nox do with [Malformed packet]

2010-03-11 Thread Martin Casado
I'm not exactly sure what you're doing. If the openflow headers have become corrupted, then the openflow stack will drop the packets without generating events. Hi Sorry to bother others. My program needs to tcpreplay some packets between switches. Since the trace is from raw IP, I converted t

Re: [nox-dev] asynchronous behavior in NOX

2010-03-09 Thread Martin Casado
Events are processed sequentially until an event blocks on an IO operation or stops in which case another event may enter the system. NOX is described as supporting an asynchronous programming model. I'm trying to understand what this means by considering the following scenarios: Multiple co

Re: [nox-dev] Questions about NOX event delivery details

2010-03-09 Thread Martin Casado
I might be wrong, but from my understanding there is nothing in OpenFlow that dictates reliable execution of commands received. btw; I can't resist and comment this by saying that unreliable (silently dropped) control plane operations of OF complicate development of any controlle

Re: [nox-dev] Questions about NOX event delivery details

2010-03-09 Thread Martin Casado
Teemu Koponen wrote: On Mar 8, 2010, at 21:32 , kk yap wrote: I might be wrong, but from my understanding there is nothing in OpenFlow that dictates reliable execution of commands received. btw; I can't resist and comment this by saying that unreliable (silently dropped) control plan

Re: [nox-dev] aggregate flow statistics always return 0

2010-03-09 Thread Martin Casado
>> >> > wget http://noxrepo.org/openflow_mod.ko >> >> > wget http://noxrepo.org/dpctl >> >> > wget http://noxrepo.org/secchan >> >> > >> >> > >> >>

Re: [nox-dev] NOX applications and source code

2010-03-07 Thread Martin Casado
Inline: A) Are there any more applications other than the ones in the 0.6 version being developed separately. Like some kind of NOX cli, or MPLS support etc. This way we won’t have to duplicate efforts writing the same piece again. There are a number of applications being built on top of Nox 0.

Re: [nox-dev] Send message to host

2010-03-03 Thread Martin Casado
Why not just address the host directly and use sockets? Hi, I am trying to send a message from nox to a host of the switch. My first approach was to construct a packet using the packet lib available. There's a way to put a string inside a packet? Do you recomend another way to do that? Than

Re: [nox-dev] My datapath leaves again (HP network)

2010-03-01 Thread Martin Casado
On Mon, Mar 1, 2010 at 10:12 PM, Martin Casado mailto:cas...@nicira.com>> wrote: > Actually nevermind, I don't think the HP switch support inband control so > you must be using out of band. > > Another option is to turn off the echo timer in Nox ... &g

Re: [nox-dev] My datapath leaves again (HP network)

2010-03-01 Thread Martin Casado
I wonder if this is a problem with lost echo requests under load ... Can you set up your environment to use out of band control? My program runs about 15 mins, it processes some traces. Datapath leaves at around 12 mins. Current CPU load is around 30%, and hit 35% occasionally. On Mon, Mar 1,

Re: [nox-dev] Generate checksums for packet proxy

2010-03-01 Thread Martin Casado
See src/nox/lib/packet/packet_utils.py (search for checksum). example of its use is in ipv4.py I am using Python. Regards, Immad On Mon, Mar 1, 2010 at 4:41 PM, Martin Casado <mailto:cas...@nicira.com>> wrote: Which language? Hi: I am trying to make the nox c

Re: [nox-dev] Generate checksums for packet proxy

2010-03-01 Thread Martin Casado
Which language? Hi: I am trying to make the nox controller to act as a proxy . I am able to make nox controller generate arp reply. I am kind of stuck on generating icmp replies and other similar protocols that involve ip layer and other protocol that have checksums as part of the protocol.

Re: [nox-dev] Building a module outside of Nox's source tree?

2010-02-24 Thread Martin Casado
Hey Rob, The build system doesn't really support this. You'll have to construct your own external makesystem which builds/links against an existing Nox build directory. .martin Can someone point me to an example of building a C++ module outside of Nox's source tree? Looking at the build sy

Re: [nox-dev] Routing with NOX0.6

2010-02-24 Thread Martin Casado
deployments, but hop-by-hop routing does not seems like a good default for NOX to be in unless majority of the users needs it that way, which I would contend not. Regards KK On 24 February 2010 14:12, Martin Casado wrote: Again, I may not be remembering correctly, but things are complex if

Re: [nox-dev] Routing with NOX0.6

2010-02-24 Thread Martin Casado
Doing it hop-by-hop does not make a difference. What am I missing here? Regards KK On 24 February 2010 13:58, Martin Casado wrote: I believe it is simpler integration with a legacy network in which all switches are not running OF. Hi, What is the motivation for hop-by-hop routing?

Re: [nox-dev] Routing with NOX0.6

2010-02-24 Thread Martin Casado
I believe it is simpler integration with a legacy network in which all switches are not running OF. Hi, What is the motivation for hop-by-hop routing? Does seems novel in some aspects. Regards KK On 24 February 2010 13:52, Martin Casado wrote: From Natasha: "I'm wonderin

Re: [nox-dev] Routing with NOX0.6

2010-02-24 Thread Martin Casado
From Natasha: "I'm wondering if maybe the server is showing up on hpsw3, and so the packet is first getting routed there, and then re-routed again when it reaches hpsw1. This is probably a result of all the authenticator code commented out that was making it depend on routing. It's in a coupl

Re: [nox-dev] Applications supported by NOX

2010-02-22 Thread Martin Casado
NOX does not support any direct IGP integration. It's "routing" application computes all pairs shortest paths on each link status change and uses that per-flow to set up routes on the network. The shortest path algorithm used is from Demetrescu et. al.: http://portal.acm.org/citation.cfm?id

Re: [nox-dev] Force the switch to send entire unmatched packet to controller

2010-02-22 Thread Martin Casado
I think Muhammed as asking about setting the miss_send_len. See lib/openflow.cc, search for miss_send_len. Hi Muhammad, Which version of OpenFlow are you on? Selective flow expiration is introduced in OpenFlow v1.0. For OpenFlow v0.8.9, you want to go to src/lib/openflow.cc: osc.flags = h

Re: [nox-dev] namespace vigil ?

2010-02-21 Thread Martin Casado
anged secchan to ofprotocol in OpenFlow, too much work results. Unless someone volunteer to update everyone's code to the new namespace, I see no reason why such a change should be made. Regards KK On 21 February 2010 18:15, Martin Casado wrote: That would be fantastic. Yes, vigil is purely

Re: [nox-dev] namespace vigil ?

2010-02-21 Thread Martin Casado
That would be fantastic. Yes, vigil is purely vestigial. IIRC, all of the "namespace vigil" references are historical and outdated -- is that correct? Is there any reason not to wholesale replace vigil with 'nox'? The current name causes some confusion in the source code. I can do the honors

Re: [nox-dev] When will datapath leave network?

2010-02-19 Thread Martin Casado
It looks to me like the switch is closing the connection, not the controller. So this is probably a question for HP ... ? Hello I am running on a topology of 9 switches. It uses both HP switch and NEC switch. What is the meaning of the following error? Is it the controller connection breaking

Re: [nox-dev] Order of event handlers

2010-02-16 Thread Martin Casado
I don't believe so ... though Natasha can correct me. Hi all, Is there a way to specify a handler to be the last one receiving an event (without enumerating all components in nox.xml)? Thanks, Amin ___ nox-dev mailing list nox-dev@noxrepo.org http:/

Re: [nox-dev] understanding NOX internals

2010-02-16 Thread Martin Casado
Events are sent through a chain of handlers. Each handler returns a Disposition, either STOP or CONTINUE (with the obvious consequences). The order in which handlers are called can be specified in nox.xml. If a handler is not specified in nox.xml, there is no guarantee where it will be calle

Re: [nox-dev] verify switches connected from web browser

2010-02-10 Thread Martin Casado
Which version of Nox? Following the instructions in the NOX Manual: Setting Up a Virtual Testing Environment, I get through all steps except the last. It states that you can verify that the switches are connected by going to http://localhost:. I did this but it just says cannot connect. W

Re: [nox-dev] Flow_stats_in_event's "more" field

2010-02-09 Thread Martin Casado
why should this be done? It is a stream protocol, so any length of message should fit. Regards KK On 9 February 2010 22:22, Martin Casado wrote: I believe that means more flow stats may be received from the switch for the given query. This happens when more flow stats are queried than can fi

Re: [nox-dev] Flow_stats_in_event's "more" field

2010-02-09 Thread Martin Casado
I believe that means more flow stats may be received from the switch for the given query. This happens when more flow stats are queried than can fit within a single OpenFlow packet. Ultimately, it is the switch which sets this field. Hi, The Flow_stats_in_event has a boolean field "more".

Re: [nox-dev] samplerouting problem

2010-02-07 Thread Martin Casado
Right, thanks KK. The point is that the name is not taken from the python file, but rather the meta.xml used to describe the component. > Hi, > > You might want to try > ./nox_core -v -i ptcp:6633 sample_routing > > Looking into meta.xml under src/nox/netapps/routing will give you some > clues on

Re: [nox-dev] Generate echo reply from nox

2010-02-07 Thread Martin Casado
src/nox/lib/packet/icmp.py provides some utility classes for constructing/parsing ICMP packets. Hi, I am trying to make the nox controller to act as proxy for a host. For a simple scenario, I want to make the controller reply to ping requests destined to that host. I am trying to modify the

Re: [nox-dev] Help with individual flow stats

2010-02-04 Thread Martin Casado
Check out flowfetcher in netapps. Hi Martin, I'd want to know if is there a way to get all flow entries into switch OF ?? I need individual info about all flows (number_pkts, number_bytes, etc) in determined time, so Is there a way to get these flow entries individually and store in an arr

Re: [nox-dev] Test fail report.

2010-02-04 Thread Martin Casado
I see three problems (a) you need to run make test as root (b) I believe that you're using a python more recent than 2.5 (c) you should post this to nox-dev .m Hi, I have been trying to install nox. After resoving all the dependencies I am getting an error that asked me to report the error to

Re: [nox-dev] What can I do with datapath leave

2010-02-03 Thread Martin Casado
You might want to ask Jean at HP ... On Wed, Feb 03, 2010 at 01:34:50PM -0800, Guanyao Huang wrote: I am using HP switch with openflow 0.8.9 On Wed, Feb 3, 2010 at 1:02 PM, Ben Pfaff wrote: Normally the OpenFlow reference implementation and Open vSwitch log a message when a connecti

Re: [nox-dev] What can I do with datapath leave

2010-02-03 Thread Martin Casado
Guanyao, What switch software are you using? I don't recall .. Hello Sorry to bother others. My program is redirecting traffic of 5 switches. Each switch tcpreplay a trace with speed=0.01mbps. There are at maximum 400 flow entries per switch. This is very small. However, the program shows some

Re: [nox-dev] Nox installation: problem with make check

2010-01-29 Thread Martin Casado
Thanks for the ptr on autoconf, we pushed that patch on suggestion from the list a few weeks back. We very much need to compile a list of packages required to compile Nox 0.6 on different platforms. If you could put that together, it would be hugely useful (and greatly appreciated). .martin

Re: [nox-dev] Nox installation: problem with make check

2010-01-29 Thread Martin Casado
Hi Josh, Ah, that's 0.5. It hasn't been patched for more recent versions of g++. Could you pull from noxrepo.org/nox instead? .martin MC> What branch are you compiling against? I think just the main branch -- I got the code with git clone git://noxrepo.org/noxcore cd noxcore so whateve

Re: [nox-dev] Nox installation: problem with make check

2010-01-28 Thread Martin Casado
What branch are you compiling against? If cstdio is being included then this is probably a namespace issue. Try std::printf instead and let us know if that works. I'm trying to build NOX for Ubuntu K (9.10), and running into a problem that I've seen references to on the list. When I do a 'm

Re: [nox-dev] register event

2010-01-27 Thread Martin Casado
(self.ctxt) *From:* Martin Casado *To:* Chonduy Nguyen *Cc:* nox-dev@noxrepo.org; ppad...@docomolabs-usa.com *Sent:* Tue, January 26, 2010 3:34:37 PM *Subject:* Re: [nox-dev] directoryws not on version 0.6 Alternatively, you

Re: [nox-dev] Full Topology

2010-01-27 Thread Martin Casado
switch and nox components can give a full topology or not? Thanks Thuymai ---- *From:* Martin Casado *To:* Chonduy Nguyen *Cc:* nox-dev@noxrepo.org; ppad...@docomolabs-usa.com *Sent:* Tue, January 26, 2010 3:34:37 PM *Subject

Re: [nox-dev] nox version

2010-01-26 Thread Martin Casado
so much Thuymai ---- *From:* Martin Casado *To:* Chonduy Nguyen *Cc:* nox-dev@noxrepo.org; ppad...@docomolabs-usa.com *Sent:* Tue, January 26, 2010 5:54:51 PM *Subject:* Re: [nox-dev] nox version For 1.0 support, you need to pull

Re: [nox-dev] nox version

2010-01-26 Thread Martin Casado
ox version 0.6 - should get from git clone git://noxrepo.org/nox - ? is that correct? If I choose this nox version - which version of the switch working well with this nox? Thank you, thuymai ---- *From:* Martin C

Re: [nox-dev] nox version

2010-01-26 Thread Martin Casado
x97 (exp) Is that mean the nox_core version that I get is really not 0.6 or the nox_core software didnot update version string correctly? Thanks Thuymai *From:* Martin Casado *To:* Chonduy Nguyen *Cc:* nox-dev@noxrepo.o

Re: [nox-dev] directoryws not on version 0.6

2010-01-26 Thread Martin Casado
t2) > > Thanks > > Thuymai > > > > > > -------- > *From:* Martin Casado mailto:cas...@nicira.com>> > *To:* Chonduy Nguyen mailto:chond...@yahoo.com>> > *Cc:* nox-dev@noxrepo.org <mailto:nox-dev@noxrepo.org> >

Re: [nox-dev] directoryws not on version 0.6

2010-01-26 Thread Martin Casado
quot; ? or I need to run traffic ( example: having host1 ping host2) Thanks Thuymai ---- *From:* Martin Casado *To:* Chonduy Nguyen *Cc:* nox-dev@noxrepo.org *Sent:* Tue, January 26, 2010 12:47:57 PM *Subject:* Re

Re: [nox-dev] Restrict access between hosts

2010-01-26 Thread Martin Casado
(cc'ing nox-dev) If you want to drop packets at the controller, then yes, you can simply "return CONTINUE" in a packet handler after checking the type. If you'd like packets to be dropped at the switch, you should install a flow entry with no actions which matches on the packets you'd like d

Re: [nox-dev] directoryws not on version 0.6

2010-01-26 Thread Martin Casado
more details advice ? Thank you, TNguyen *From:* Martin Casado *To:* Chonduy Nguyen *Cc:* nox-dev@noxrepo.org *Sent:* Mon, January 25, 2010 10:45:11 PM *Subject:* Re: [nox-dev] nox core discovery Discovery only shows

Re: [nox-dev] Restrict access between hosts

2010-01-26 Thread Martin Casado
Sure, if you specify no actions in a flow setup, all matching packets will be dropped. Hi, I saw the question of Muhammad Immad and your answer (Martin) and it helped me too. But I also would like to know what I could use to drop a specific kind of packet. There is a Nox compound that does it

Re: [nox-dev] Vendor specific events

2010-01-26 Thread Martin Casado
Did you register an event converter in pycontext.cc? Hi, I added vendor_msg event in the nox core (attaching the patch, but not sure if its strictly required or if there is any work around). With that patch applied to nox 0.5.0, I wrote following callback in the pyswitch: def vendor_msg_callb

Re: [nox-dev] Restrict access between hosts

2010-01-26 Thread Martin Casado
Pyswitch is a good place to start. All of the packet processing code is in nox/lib/packet/. In general you can iterate over the packet headers using .next. So packet.next should be the IP header. packet.next.next the tcp header and so on. Note that if VLANs are in play, they'll come in as a

Re: [nox-dev] How to use Openflow 1.0.0 on NOX 0.6.0

2010-01-25 Thread Martin Casado
The compiled OpenFlow binary is pretty ancient. I would suggest compiling your own from either the stanford reference solution or Open vSwitch. Hi, KK , Thanks for your quick response :) I got NOX from git (git clone git://noxrepo.org/nox ), and when I try to setup

Re: [nox-dev] Add own defined event and event handler

2010-01-25 Thread Martin Casado
> In python, just use twisted. If you're using C++ you'll probably want to use the asynchronous event harness. Check out src/include/tcp-socket.hh. .m > Hi, > Sorry for unclear question. > To be simple, do you know how to implement a thread socket server > within component? > Sincerely for your

Re: [nox-dev] nox core discovery

2010-01-25 Thread Martin Casado
Discovery only shows links between switches, not between switches and hosts. For that, you'll have to explore authenticator. Hi I am new with this module - I have switch setup and connected with flowvisor - and nox_core ran with discoveryws and discovery module. The switch also connected to

Re: [nox-dev] nox 0.6 installation issue

2010-01-25 Thread Martin Casado
Looks to me like you may not have libtool installed. Running into problem installing nox 0.6: toroki-snac:/home/gershon# git clone git://noxrepo.org/nox Initialized empty Git repository in /home/gershon/nox/.git/ remote: Counting objects: 1283, done. remote: Compressing objects: 100% (80

  1   2   3   4   >