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

2011-08-26 Thread Martin Casado
___ 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] CONTINUE vs. STOP in Disposition methods?

2011-04-14 Thread Martin Casado
-- ~~~ 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
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 cell: 650-776-1457

Re: [nox-dev] pytopology patch

2011-01-13 Thread Martin Casado
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, Inc

Re: [nox-dev] Contributing to Nox

2011-01-11 Thread Martin Casado
for destiny. 'barrier-reply.tar.gz' - 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

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,

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

2010-12-15 Thread Martin Casado
I'll let Amin follow up, but from what I understand, the way he's doing batching doesn't introduce any additional delay. Rather, if he can write to the socket, he writes. However, if the socket is blocked for whatever reason (e.g. waiting for an ACK or send buffer is full) he buffers all of

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,

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

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

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] [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] 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] 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

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: [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

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
? Thanks, Albert On Wed, Jul 14, 2010 at 12:40 PM, Martin Casado cas...@nicira.com 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 version

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 cas...@nicira.com 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 anything to do

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:

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

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

2010-05-10 Thread Martin Casado
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't believe that OpenFlow allows

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] Threads in Python

2010-04-22 Thread Martin Casado
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 well could

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] A question about the discovery

2010-04-15 Thread Martin Casado
/4/15 Martin Casado cas...@nicira.com: 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

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

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

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

2010-03-26 Thread Martin Casado
Inline: On Fri, Mar 26, 2010 at 9:56 AM, Martin Casado cas...@nicira.com 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

Re: [nox-dev] asynchronous behavior in NOX

2010-03-11 Thread Martin Casado
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 cas...@nicira.com mailto:cas...@nicira.com wrote: Events are processed

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

2010-03-09 Thread Martin Casado
- From: Martin Casado [mailto:cas...@nicira.com mailto:cas...@nicira.com] Sent: Friday, January 15, 2010 2:34 PM To: MinChi Tseng Cc: nox-dev@noxrepo.org mailto:nox-dev@noxrepo.org

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

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

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

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

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?

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] 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 cas...@nicira.com mailto:cas...@nicira.com wrote: Which language? Hi: I am trying to make

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

2010-02-24 Thread Martin Casado
it hop-by-hop does not make a difference. What am I missing here? Regards KK On 24 February 2010 13:58, Martin Casado cas...@nicira.com 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

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 cas...@nicira.com wrote: Again, I may not be remembering correctly, but things

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

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 =

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.:

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] namespace vigil ?

2010-02-21 Thread Martin Casado
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 cas...@nicira.com wrote: That would be fantastic. Yes, vigil

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] 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

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

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.

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] Flow_stats_in_event's more field

2010-02-09 Thread Martin Casado
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 cas...@nicira.com 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

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

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 how

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

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

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 b...@nicira.com wrote: Normally the OpenFlow reference implementation and Open vSwitch log a message

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

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

Re: [nox-dev] Full Topology

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

Re: [nox-dev] register event

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

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

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: code def

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

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

2010-01-26 Thread Martin Casado
need to run traffic ( example: having host1 ping host2) Thanks Thuymai *From:* Martin Casado cas...@nicira.com *To:* Chonduy Nguyen chond...@yahoo.com *Cc:* nox-dev@noxrepo.org *Sent:* Tue, January 26, 2010 12:47:57 PM

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

2010-01-26 Thread Martin Casado
*From:* Martin Casado cas...@nicira.com mailto:cas...@nicira.com *To:* Chonduy Nguyen chond...@yahoo.com mailto:chond...@yahoo.com *Cc:* nox-dev@noxrepo.org mailto:nox-dev@noxrepo.org *Sent:* Tue, January 26, 2010 12:47:57 PM

Re: [nox-dev] nox version

2010-01-26 Thread Martin Casado
) 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 cas...@nicira.com *To:* Chonduy Nguyen chond

Re: [nox-dev] nox version

2010-01-26 Thread Martin Casado
*From:* Martin Casado cas...@nicira.com *To:* Chonduy Nguyen chond...@yahoo.com *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

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%

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

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 help

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 http://noxrepo.org/nox), and when I try to setup

Re: [nox-dev] patch: fix unsupported operand exception when parsing TCP packets with MSS option

2010-01-24 Thread Martin Casado
Thanks a lot Brandon. I'll push to 0.6 shortly. Hi, Please disregard the previous attachment - what started out as a bugreport became a patch, and I forgot to remove the pcap dump of the offending packets. Thanks, -b On Sun, Jan 24, 2010 at 4:15 AM, Brandon Heller brand...@stanford.edu

Re: [nox-dev] Some recent flow setup numbers

2010-01-24 Thread Martin Casado
, the hardware switches we've tested are no where near capable of producing that number of flow setups per second. They generally support hundreds of flow setups per second, due to their limited CPU. - Rob . On Sat, Jan 23, 2010 at 11:30 PM, Martin Casado cas...@cs.stanford.edu wrote: Minlan

Re: [nox-dev] Documentation about components Event Harness Cooperative Threading

2010-01-24 Thread Martin Casado
Sorry, really behind on e-mail. The threading library has significant documentation in source. Check out src/include/threads, and in particular cooperative.hh and impl.hh. I want to know if there is some documentation about the components Event Harness Cooperative Threading -- Wallison

Re: [nox-dev] Some recent flow setup numbers

2010-01-23 Thread Martin Casado
== flow entries pushed/src or complete end-to-end flows pushed/sec? Thanks, -b On Sat, Jan 23, 2010 at 11:30 PM, Martin Casado cas...@cs.stanford.edu mailto:cas...@cs.stanford.edu wrote: Minlan recently did some performance analysis of Nox and has kindly agreed to let me post

Re: [nox-dev] nox-0.5.0~full~beta make fails

2010-01-21 Thread Martin Casado
Prateek, if possible I'd suggest you build nox 0.6 from git. Several automake and gcc versioning issues are fixed in that release. I believe this is a result in a change in GCC that eliminated the automatic inclusion of certain header files. Try adding #include stdio.h at the top of the source

Re: [nox-dev] nox throughput performance

2010-01-15 Thread Martin Casado
C++ only is required for high throughput. Looking through the last performance numbers I have (about 4 months old) it looks like throughput maxed out closer to 40k/s. I not sure what the discrepancy is, we've modified the core events loop a number of times. With Python we never reached more

Re: [nox-dev] SwigPtr_PyObject not declared in pystorage.cc

2010-01-14 Thread Martin Casado
Excellent. If you have a patch which works with earlier versions of swig, could you send it out to the list? thanks! .martin Figured out the problem. I needed to also patch two header files (pystorage-common.hh and pytransactional-storage.hh) in the storage module. Aaron On Wed, Jan 13,

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

2010-01-14 Thread Martin Casado
Are you using the OF reference code from Stanford? Hi all, I am using NOX Virtual Test Environment The topology is one OpenFlow switch and two hosts. Host 1 and host2 continually ping each other. In monitor component, the aggregate statistics always show 0. But, if I dump the aggregate

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

2010-01-14 Thread Martin Casado
Message- From: Martin Casado [mailto:cas...@nicira.com] Sent: Friday, January 15, 2010 2:34 PM To: MinChi Tseng Cc: nox-dev@noxrepo.org Subject: Re: [nox-dev] aggregate flow statistics always return 0 Are you using the OF reference code from Stanford? Hi all, I am using NOX Virtual Test

Re: [nox-dev] nox 0.6 branch openflow-1.0

2010-01-12 Thread Martin Casado
All nx_flow structs are obsolete and can be removed. They were used for pulling Netflow records from the kernel early on. I'll clean up and push. Thanks for pointing this out. .martin Yes, this was done on a 64 bit machine. Thanks! Vjeko - Forwarded message from kk yap

Re: [nox-dev] Unable to configure nox

2010-01-11 Thread Martin Casado
Great thanks. Pushed to 0.6. Yes it worked. Thanks, Immad On Mon, Jan 11, 2010 at 3:38 PM, Martin Casado cas...@nicira.com mailto:cas...@nicira.com wrote: Let me know if this works and I'll add a patch for it to 0.6. thanks guys, .martin Hi, Maybe this might

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

2010-01-11 Thread Martin Casado
#include cstdio using namespace std; .m Hi, I am trying to install and configure nox on ubuntu 9.10. I was able to install all dependencies and was able to get the noxcore using git. I was able to configure and make nox. However, when I tried the command 'make check', I get the following

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

2010-01-11 Thread Martin Casado
like that got overwritten. Just cherry pick. commit 8f34004cbce1bf94965c336502665e72a929612a Author: Mikio Hara mik...@stanford.edu Date: Thu Dec 3 12:47:32 2009 -0800 GCC 4.4 compliance patch for test suite (make check) Fixed header compatibility issues Regards KK 2010/1/11 Martin Casado

Re: [nox-dev] nox testing build

2010-01-11 Thread Martin Casado
Yeah, the unit test framework hasn't been fully ported yet. However, system testing should work: badwater:~/noxrepo/nox/build cd src/ badwater:~/noxrepo/nox/build/src sudo make test ++ | nox/coreapps/coretests/test_async.sh |

Re: [nox-dev] Question about NOX Openflow 1.0 branch slicing

2010-01-04 Thread Martin Casado
Supporting slicing in Nox should be fairly straightforward, however integrating with existing components (e.g. routing) may be a bit more of a chore. Holly, can you say a bit about what you want to do with slicing? .martin Hi Holly, AFAIK, the page is up-to-date. You have 3 options if you

Re: [nox-dev] NOX Component's Destructor

2009-12-31 Thread Martin Casado
Currently there is no graceful shutdown implemented within Nox. One option would be to create a new event which is thrown on a given signal (e.g. USR1) and register handlers for cleanup. Hi, I am wondering how I can use the component's destructor to do some cleanup, e.g., dump state to a

Re: [nox-dev] error compiling nox 0.6 on deb testing

2009-12-29 Thread Martin Casado
fyi, I pushed a fix for this to noxrepo. Was a very minor change in how swig handles command line args from 1.3.33 to 1.3.4. Hi, With a few different packages (changes to more recent boost versions, 1.35 is not available), I was able to pass configure w/nox 0.6 on deb testing: sudo

Re: [nox-dev] A general question regarding discovery module

2009-12-21 Thread Martin Casado
algorithm that, if you're interested in previewing, I can send you a copy. - Rob . On Fri, Dec 18, 2009 at 2:44 PM, Martin Casado cas...@nicira.com wrote: Yeah, it could be due to high-loss from load (unfortunately). You could try increasing the timeout value in discovery.py. If you

Re: [nox-dev] A general question regarding discovery module

2009-12-18 Thread Martin Casado
The goal is to detect link failures, so one would hope that would be the most common failure mode. I assume LLDP packets are sent periodically. If there is no LLDP, what will be the most possible reason? The controller or the switch is too busy? On Thu, Dec 17, 2009 at 3:07 PM, Martin Casado

Re: [nox-dev] A general question regarding discovery module

2009-12-18 Thread Martin Casado
links sometimes, causing my program not working well. I will debug to find out details why the link fails. Actually they are not supposed to fail. Maybe it's because of huge data. On Fri, Dec 18, 2009 at 8:41 AM, Martin Casado cas...@nicira.com wrote: The goal is to detect link failures, so one

Re: [nox-dev] A general question regarding discovery module

2009-12-17 Thread Martin Casado
Discovery times out links when no LLDP packets have been received over some timeout period. Timer values are documented within discovery.py. It seems this module will periodically construct the topology. I dont know why it will periodically time_out the links. I want to know in what

Re: [nox-dev] error compiling nox 0.6 on deb testing

2009-12-13 Thread Martin Casado
What version of swig do you have installed? Are you using Debian stable? Hi, With a few different packages (changes to more recent boost versions, 1.35 is not available), I was able to pass configure w/nox 0.6 on deb testing: sudo apt-get install autoconf automake g++ libtool python

Re: [nox-dev] Need help regarding querying statistics from switches

2009-12-10 Thread Martin Casado
Have you verified that the counter is correct on the switch via dpctl dump-flows? Sorry, I was wrong in saying my program can query flow statistics of large flows. It cant query statistics of flows, no matter large or small. But I can query statistics of port. That is successful. Below is my

Re: [nox-dev] Using multiple NOX controllers

2009-11-30 Thread Martin Casado
If the switches are configured to connect to the correct controller it should just work. However, discovery will not detect the link between the two domains so routing won't be able to work across both domains. However, something basic, like pyswitch should work just fine (provided there

Re: [nox-dev] boot.sh error

2009-11-30 Thread Martin Casado
' openflow-event.cc:369: error: expected ')' before 'const' -Original Message- From: Martin Casado [mailto:cas...@nicira.com] Sent: Thursday, November 19, 2009 10:25 PM To: Pradeep Padala Subject: Re: [nox-dev] boot.sh error Nox doesn't currently support 0.9 though it should work

Re: [nox-dev] topology

2009-11-20 Thread Martin Casado
There are no applications contained in the standard Nox distribrution which provide visualization of the topology. However some third party apps have been built. For example: http://www.openflowswitch.org/wk/index.php/LAVI .m hi Is there any application to see the topology of a network?

Re: [nox-dev] nox full beta make error

2009-11-15 Thread Martin Casado
Yeah, there's a bug with pointing to xerces in that the include path is not updated. Can you try updating the AM_CPPFLAGS in src/lib manually and seeing if that works? Hi, In previous post (nox full beta configure error) i have cited that i have got xercess c++ library error .. now little

Re: [nox-dev] NOX thread model and the Pol-Eth language

2009-11-11 Thread Martin Casado
First I have one question about the NOX thread model. Based on my understanding, there are three pollables added in the poll_loop: conn, event_dispatcher and timer_dispatcher. Then the poll_loop is initiated with 8 threads. Does this mean that each pollable can have more than one thread

Re: [nox-dev] Preparing for Nox 0.6.0

2009-11-04 Thread Martin Casado
Hi Amin, The goal is certainly for Nox 0.6 to support all 1.0 features. However, that will happen after wire protocol compatibility (shooting for this Friday ... though that might slip). Regarding tracing the event call stack. This would certainly be a useful debugging tool. However, the

  1   2   >