Re: [nox-dev] ports statistics questions

2012-03-07 Thread Murphy McCauley
o a good documentation? I am currently using the one > on noxrepo. > > Thanks a lot! > Diana > On Sat, Feb 18, 2012 at 11:25 AM, Murphy McCauley wrote: > Ah, I begin to see the problem here. :) > > The ports that the port stats are referring to are *switch ports*. Like the &g

[nox-dev] IMPORTANT: noxrepo.org service outage is forthcoming

2012-03-01 Thread Murphy McCauley
Sometime in the next few days, you may have trouble connecting to noxrepo.org and there may be problems with the mailing list and git repositories. Hopefully this will be quite short-lived, but I wanted to give a heads up that this is liable to occur. If you have problems, you might want to tr

Re: [nox-dev] For help

2012-03-01 Thread Murphy McCauley
ocal port" in the openflow-switch, I didn't > know how to write the "actions list"( using python), Is the following right? > actions = [[openflow.OFPAT_OUTPUT, [0, OFPP_LOCAL]]] > > Thank you for your replay! > > John > > > 在 2012-03-01 21:54:

Re: [nox-dev] For help

2012-03-01 Thread Murphy McCauley
I'm not clear on what you want to do… What do you mean by "the local machine"? The controller? Where do you want to output them? Out of an ethernet adapter? -- Murphy On Mar 1, 2012, at 2:43 AM, bbs wrote: > Hi, > I want to let the packets send to the local machine, how could I write >

Re: [nox-dev] How to configure an OpenFlow network in in-band mode?

2012-02-28 Thread Murphy McCauley
There are multiple ways that you can set up in-band control, and I believe support varies depending on the specific type of switch you're using, so you will probably get a better response by asking the specific switch vendor. (By the way, your message was posted to the list like five or six time

Re: [nox-dev] Help with NOX to OpenFlow messages

2012-02-28 Thread Murphy McCauley
t; On Feb 28, 2012, at 4:25 PM, Murphy McCauley wrote: > > "OpenFlow version 2.02" doesn't mean anything to me. What kind of switches > are you using? > > What IP address are you using with dpctl? The switch? In general, switches > make active connections

Re: [nox-dev] Help with NOX to OpenFlow messages

2012-02-28 Thread Murphy McCauley
"OpenFlow version 2.02" doesn't mean anything to me. What kind of switches are you using? What IP address are you using with dpctl? The switch? In general, switches make active connections (they initiate a connection to the controller/NOX), so it's not listening on port 6633. Sometimes swit

Re: [nox-dev] nox-destiny src/builtin/nox.cc Syntax Error

2012-02-28 Thread Murphy McCauley
Added to my queue. Thanks. -- Murphy On Feb 28, 2012, at 10:28 AM, Martin Fong wrote: > When compiling nox-destiny src/builtin/nox.cc with -O0, g++ > _correctly_ reports the syntax error > >../../../src/builtin/nox.cc: In member function `void > vigil::nox::Handshake_fsm::handle_vendo

Re: [nox-dev] Malformed ARP reply packet

2012-02-26 Thread Murphy McCauley
Are you sure you haven't changed the code that you originally posted? Specifically, are you still setting the ethernet source address using: eth.src = octstr_to_array(SOURCE_MAC_ADDR) ? -- Murphy On Feb 26, 2012, at 9:23 PM, Volodymyr Bulakh wrote: > Hi, > > Thank you for the reply. I am gett

Re: [nox-dev] Create new OpenFlow message

2012-02-23 Thread Murphy McCauley
What you're really talking about here is changing OpenFlow. OpenFlow is a standard, meaning any changes should go through the Open Networking Foundation (who maintains the standard). Any changes you make will make your program incompatible with other switches that implement the OpenFlow protoc

Re: [nox-dev] Install NOX Destiny on Ubuntu 11.04

2012-02-22 Thread Murphy McCauley
Did you forget a -v? That is, did you actually run "./nox_core -i ptcp: switch -v" or similar? If so, then this looks good. Are you sure it's not running fine? It should be listening on port 6633. -- Murphy On Feb 22, 2012, at 1:51 AM, ibrahim menem wrote: > Hi, > > So I decided to upgrad

Re: [nox-dev] ports statistics questions

2012-02-18 Thread Murphy McCauley
dst'] == 22: > print "packet_in_callback: ", longlong_to_octstr(dpid)[6:] > print "ssh packet received on port 22" > > def install(self): > self.register_for_packet_in(self.packet_in_callback) > self.regis

Re: [nox-dev] ports statistics questions

2012-02-17 Thread Murphy McCauley
What type of switch are you using, and are you sure that it's reporting the ports correctly? I assume your ssh traffic should be going through multiple ports... The first thing I'd suggest is that you check the control traffic with Wireshark and the OpenFlow dissector to see if what's coming a

Re: [nox-dev] I can't run nox after checking out to destiny

2012-02-16 Thread Murphy McCauley
Could you please include the text that running nox_core produces? -- Murphy On Feb 16, 2012, at 3:16 PM, Baraki Halefom wrote: > > please help me. after checking out to destiny branch I can not even run nox > controller > > the command ./nox_core -i ptcp:6633 > displays a bunch of informati

Re: [nox-dev] NOX requires OpenSSL

2012-02-09 Thread Murphy McCauley
Do you have the openssl-devel package installed? -- Murphy On Feb 9, 2012, at 1:51 AM, Prashanth Prahalad wrote: > Hi Folks, > > I'm seeing this error when running ../configure on Centos. I did see some > other threads with similar issues here > (http://noxrepo.org/pipermail/nox-dev/2011-Octo

Re: [nox-dev] FW: Nox question

2012-02-04 Thread Murphy McCauley
So the parameters for the packet_in callback are: dpid, inport, reason, len, bufid, packet The last one is an "ethernet" object from src/nox/lib/packet/ethernet.py. For IP packets, this ethernet object will then reference an ipv4 object which then might reference a tcp object. So for example,

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

2012-02-01 Thread Murphy McCauley
local changes with whats in the git and noticed > this change never made it in. > > In ipv4.py self.id = int(time.time()) but this should be self.id = > int(time.time)) &0x (since the field is only 2bytes) > > Aaron > > > On Mon, Aug 8, 2011 at 6:31 PM, Murph

Re: [nox-dev] how to use own controller in custom topology

2012-01-31 Thread Murphy McCauley
This seems to be much more of a mininet question than a NOX question, and you should probably be asking about it somewhere else. For example, there is a mininet mailing list at: https://mailman.stanford.edu/mailman/listinfo/mininet-discuss That said, the problem here is that the value you pass

Re: [nox-dev] Receiving JSON messages

2012-01-26 Thread Murphy McCauley
;>> What are the IP address, the tcp port and the interface that this socket >>> refers to? Is there any way to set them? >>> I undersotood the mechanism, but I don't know where to send my messages >>> from the external application. >>> Thank you. &

Re: [nox-dev] Receiving JSON messages

2012-01-25 Thread Murphy McCauley
sages from > the external application. > Thank you. > Regards, > > Giorgio > > On 24/01/2012 13:49, Murphy McCauley wrote: >> >> The minimum to get up and going should be something like this: >> >> 1) In your component's install funct

Re: [nox-dev] Receiving JSON messages

2012-01-24 Thread Murphy McCauley
The minimum to get up and going should be something like this: 1) In your component's install function: from nox.coreapps.messenger.pymsgevent import JSONMsg_event JSONMsg_event.register_event_converter(self.ctxt) self.register_handler(JSONMsg_event.static_get_name(), myHandler) 2) Implement a ha

Re: [nox-dev] ERR:application 'pyswitch' descritpion not found

2012-01-21 Thread Murphy McCauley
I imagine this means you're not running destiny, which you may want to consider unless you have a specific reason to use the zaku branch. This almost certainly means that Python is disabled in your build. The most common reasons for this are that you didn't have Twisted or SWIG installed. Ple

Re: [nox-dev] Error while running nox_core

2012-01-21 Thread Murphy McCauley
That fix is actually buggy. :) A better one is in the destiny branch, which is very, very close to being the stable branch. -- Murphy On Jan 21, 2012, at 11:44 AM, Maciej Gałkiewicz wrote: > Have anyone implemented a fix for > http://noxrepo.org/pipermail/nox-dev/2010-November/006685.html? I

Re: [nox-dev] nox api development

2012-01-18 Thread Murphy McCauley
So my first thought is to wonder what happens if you try with wildcards = 0x... -- Murphy On Jan 18, 2012, at 11:19 PM, edward wilson wrote: > hi, > Currently im using NOX 0.9.0(zaku)~full~beta (nox_core), compiled Jan 3 2012 > 15:21:13 > Compiled with OpenFlow 0x01 > > Now i have d

Re: [nox-dev] Python API buffer_id None problems

2012-01-17 Thread Murphy McCauley
nflow(datapath_id, None, packet, actions, inport=inport) > > Kind regards > Peter > > > On Tue, Jan 17, 2012 at 11:42 AM, Murphy McCauley wrote: > Can you please show us the code you are using to call send_openflow()? > > -- Murphy > > On Jan 17, 2012, at 1:

Re: [nox-dev] Python API buffer_id None problems

2012-01-17 Thread Murphy McCauley
Can you please show us the code you are using to call send_openflow()? -- Murphy On Jan 17, 2012, at 1:40 AM, Peter Peresini wrote: > Hi developers. > It seems that there is an inconsistency in python API (destiny branch) for > using buffer_id. Namely, "send_openflow" documentation states that

Re: [nox-dev] attribute '_handleSigchld'

2012-01-16 Thread Murphy McCauley
I believe you can safely just remove the offending line from pyoxidereactor (the signal.signal(signal.SIGCHLD, self._handleSigchld) one). If not, the current version of pyoxidereactor (from the destiny branch) should fix this in a way which doesn't require you to modify your system's Twisted in

Re: [nox-dev] questions regarding OFPAT_STRIP_VLAN

2012-01-16 Thread Murphy McCauley
Do you mean support creating flows using the OFPAT_STRIP_VLAN, OFPAT_SET_NW_SRC, OFPAT_SET_NW_DST, and OFPAT_SET_NW_TOS action types? If so, all of these should be available if you are using the destiny branch. -- Murphy On Jan 16, 2012, at 8:15 AM, Alexander Cheskis wrote: > Dear All, > > W

Re: [nox-dev] NOX for 64 bit

2012-01-16 Thread Murphy McCauley
Thanks Murphy > Please confirm for NOX 0.9 zaku as well? > > Regards, > Sheili > > From: Murphy McCauley [mailto:jam...@nau.edu] > Sent: 16 January 2012 14:29 > To: Sheili Mittal > Cc: nox-dev@noxrepo.org > Subject: Re: [nox-dev] NOX for 64 bit > > desti

Re: [nox-dev] NOX for 64 bit

2012-01-16 Thread Murphy McCauley
destiny is routinely run on both 32 and 64 bit systems. -- Murphy On Jan 16, 2012, at 12:52 AM, Sheili Mittal wrote: > Hi, > > Can you please confirm are the branch available on git (0.9 zaku) and destiny > supported for 64 bit machine also? > Are the version we downloading from git is for 3

Re: [nox-dev] need support for these features in NOX

2012-01-16 Thread Murphy McCauley
t; branch? > > I saw destiny branch is unstable on NOX site so I used 0.9 zaku. > > Thanks & Regards, > Sheili Mittal > > From: Murphy McCauley [mailto:jam...@nau.edu] > Sent: 16 January 2012 09:22 > To: Sheili Mittal > Cc: nox-dev@noxrepo.org > Subjec

Re: [nox-dev] need support for these features in NOX

2012-01-15 Thread Murphy McCauley
The most recent branch is destiny. -- Murphy On Jan 15, 2012, at 7:49 PM, Sheili Mittal wrote: > Hi, > > I am using NOX 0.9 zaku, following is not supporting in this, Can anyone > please confirm in which branch of NOX all the following supported:- > > 1) Action Enqueue > 2) Flow s

Re: [nox-dev] Error while installing NOX on Fedora release 14

2012-01-15 Thread Murphy McCauley
;t help. > I have installed all the packages that you mentioned in your mails. I already > had boost-devel and boost-system. What should I do now? > > Thanks, > > Dushyant > > > > - Original Message - > From: "John Meylor" > To: "Du

Re: [nox-dev] Recieved LLDP packet from unconnected switch

2012-01-14 Thread Murphy McCauley
I'd suggest that you don't skip to zaku but skip to destiny instead. If you still have this problem in destiny, can you please tell us about your setup? Like switch types (ProCurve?), whether you are using FlowVisor, etc.? -- Murphy On Jan 14, 2012, at 7:31 AM, Theophlius Benson wrote: > I'm

Re: [nox-dev] Error while installing NOX on Fedora release 14

2012-01-14 Thread Murphy McCauley
I'm not a Fedora user, but try installing boost-system and boost-devel. -- Murphy On Jan 14, 2012, at 1:11 AM, Dushyant Arora wrote: > Hello, > > I am trying to install NOX by following the instructions on NOX Wiki. I get > an error while running ~/nox/configure > > checking for boostlib >= 1

Re: [nox-dev] help need

2012-01-13 Thread Murphy McCauley
You also need to rerun configure in your build directory. You might also consider using src/scripts/nox-new-py-app.py to simplify the whole process for yourself. Hope that helps! -- Murphy On Jan 13, 2012, at 2:04 PM, Baraki Halefom wrote: > Hi dear nox developers, > > I am new to NOX develo

Re: [nox-dev] error with try to ./configure

2012-01-12 Thread Murphy McCauley
I was responding earlier from my phone, so I didn't look at this as closely as I might have. Sorry. However, my initial suggestion -- to use the destiny branch -- still stands. "git checkout destiny" (if you're using a recent version of git). But this really looks like you just don't have th

Re: [nox-dev] Topology component and FlowVisor.

2012-01-12 Thread Murphy McCauley
There have been some changes to logging. Use -v -v. -- Murphy On Jan 12, 2012, at 10:10 AM, Sergio Jiménez Feijóo wrote: > Hi Aaron, > > I have moved to the destiny branch and compiled everything again. The > topology component seems to work fine (I can see "new link detected" messages > in

Re: [nox-dev] features-reply without features-request

2012-01-11 Thread Murphy McCauley
I can't speak as to the particulars of the reference switch (you might try one of the OpenFlow mailing lists). However, the spec does state that part of the handshake sequence is that the controller sends a features request when a connection is established. I don't see this in your sequences o

Re: [nox-dev] Nox messenger example for external c++ and nox python

2012-01-10 Thread Murphy McCauley
d() function > from nox-send-cmd.py but for recv() function, I can’t find example. How can I > use recv() functionof messenger.py?? > > Thanks, > Harshil > > > From: Murphy McCauley [mailto:jam...@nau.edu] > Sent: Wednesday, December 21, 2011 4:47 PM > To: Harsh

Re: [nox-dev] nox api support for openflow 1.0 spec operation

2012-01-09 Thread Murphy McCauley
Item #1: flowtracer and monitoring both do per flow statistics. You might want to examine how they do it (they use pylibopenflow to craft an OpenFlow message). Item #2: As I mentioned in response to your previous message, you must be using the destiny branch of NOX (not zaku) to use OFPAT_ENQUE

Re: [nox-dev] IP address prefixing

2012-01-09 Thread Murphy McCauley
I am assuming that by 10.10.23.40/2, you don't intend the CIDR meaning, and in fact mean that you want two bits to be wildcarded. Try this: wildcard = (wildcard & ~OFPFW_NW_DST_MASK) | (wild_bits << OFPFW_NW_DST_SHIFT); .. where wild_bits is between 0 and 32 inclusive (in your case, it should be

Re: [nox-dev] extract_flow not consistent with install_datapath_flow?

2012-01-09 Thread Murphy McCauley
Thanks for the report. Since matching on IP addresses in ARPs is an optional switch feature, I don't think it's 100% clear what the function should do, but I don't object to the idea that it should probably just extract the addresses. I'll add it to my queue. -- Murphy On Jan 9, 2012, at 6:2

Re: [nox-dev] How can I update the IP checksum?

2012-01-09 Thread Murphy McCauley
OFPAT_SET_NW_DST should update the IP checksum. Are you sure that a bad checksum is the problem? Remember that if you rewrite the DST when sending from A to B, you'll also need to rewrite the SRC when sending from B back to A. Host A doesn't know that you've rewritten the address and will hav

Re: [nox-dev] nox-gui flowtracer problem

2012-01-09 Thread Murphy McCauley
I forgot that our client are 64 bit version.Thanks for your reminding me. >> >> >> 於 2012/1/5 下午 06:11, Murphy McCauley 提到: >>> >>> Ah, of course, you must be running a 32 bit version. >>> >>> We should fix this (maybe by replacing hex

Re: [nox-dev] Where is the repository in development?

2012-01-08 Thread Murphy McCauley
You're in the right repository but the wrong branch -- the current development branch is in the destiny branch (last updated within the past couple months). To get this, after you clone the repository, use "git checkout destiny". I have a number of patches pending for this branch, after which i

Re: [nox-dev] NOX API development

2012-01-05 Thread Murphy McCauley
Responses inline. On Jan 5, 2012, at 5:10 AM, Amit Tewari wrote: > If I use openflow.OFPFC_MODIFY flag in send_flow_command, it gives me > error-“invalid action type” Something like the following should let you modify flows: from util import set_match from nox.coreapps.pyrt.pycomponent import

Re: [nox-dev] nox-gui flowtracer problem

2012-01-05 Thread Murphy McCauley
Ah, of course, you must be running a 32 bit version. We should fix this (maybe by replacing hex(n) with "0x%x" % (n,)). Thanks for humoring me. -- Murphy On Jan 5, 2012, at 2:03 AM, wunyuan wrote: > > Hi, > > The answers are as follows: > > 於 2012/1/5

Re: [nox-dev] nox-gui flowtracer problem

2012-01-05 Thread Murphy McCauley
> Thanks! > > 於 2012/1/5 下午 05:26, Murphy McCauley 提到: >> >> Are you using Python 2.5? I am guessing this bug doesn't exist with Python >> 2.6+... >> >> -- Murphy >> >> On Jan 4, 2012, at 11:52 PM, wunyuan wrote: >> >>>

Re: [nox-dev] nox-gui flowtracer problem

2012-01-05 Thread Murphy McCauley
Are you using Python 2.5? I am guessing this bug doesn't exist with Python 2.6+... -- Murphy On Jan 4, 2012, at 11:52 PM, wunyuan wrote: > Hi, > > The "0xe4115b1251b4L" string is our client internet iterface mac. Our client > are HP DL380 G7. > Our Openflow are installed in Desktop PC with N

Re: [nox-dev] something about the working mechanism of NOX

2012-01-04 Thread Murphy McCauley
#1: When a switch gets a packet that doesn't correspond to an entry in the flow tables, it will generally buffer it and associate this buffer with an opaque buffer identifier. It will then send a packet_in message to the controller that includes the buffer ID and *part* of the packet data itsel

Re: [nox-dev] Must each switch connect to nox controller?

2012-01-04 Thread Murphy McCauley
The machine running NOX does not need to be *directly* connected to the switches; it just needs to be able to reach them. So you could build a separate control network out of standard L2 switches or routers or whatever which allows all OpenFlow switches to be accessed from a single port. Alte

Re: [nox-dev] Error on importing nox/netapps/monitoring.py

2011-12-29 Thread Murphy McCauley
t, you can just specify monitoring on the commandline along the lines of: ./nox_core monitoring NOXSwitch Hope that helps. -- Murphy On Dec 29, 2011, at 11:18 PM, Dushyant Arora wrote: > No. > > On Fri, Dec 30, 2011 at 2:16 AM, Murphy McCauley wrote: > Are you also running the moni

Re: [nox-dev] Error on importing nox/netapps/monitoring.py

2011-12-29 Thread Murphy McCauley
Are you also running the monitoring component, either on the commandline before your component or by adding it as a dependency in your component's meta.json? -- Murphy On Dec 29, 2011, at 10:25 PM, Dushyant Arora wrote: > Hello, > > I have created a NOX application NOXSwitch.py which calls >

Re: [nox-dev] Regarding dpctl command and python scripts

2011-12-28 Thread Murphy McCauley
There are... I think at least three different dpctl programs (if you count ovs-dpctl), and I don't know which you're talking about. These commands generally go with a specific OpenFlow switch (the reference OpenFlow implementation, Open vSwitch, etc.), so they aren't particularly related to NO

Re: [nox-dev] Openflow flowtable Cross comparsion

2011-12-23 Thread Murphy McCauley
Yes, you can do this. Take a look at the OpenFlow 1.0 specification; specifically the ofp_stats_request message. Basically, you send a stats request with the type set to OFPST_FLOW and the body as an ofp_flow_stats_request. For the ofp_flow_stats_request, set the match to have all fields wild

Re: [nox-dev] Running nox with a pcap file as input

2011-12-21 Thread Murphy McCauley
If I recall correctly, this is enabled or disabled automatically during configure based on whether the pcap header and/or library can be found. On Ubuntu, you should be good if you have... I think it's libpcap-dev installed. If you don't, please install it and then re-run configure. If you hav

Re: [nox-dev] Nox messenger example for external c++ and nox python

2011-12-21 Thread Murphy McCauley
ain messenger. > > -Harshil > > From: Murphy McCauley [mailto:jam...@nau.edu] > Sent: Wednesday, December 21, 2011 2:33 PM > To: Harshil Anil Kumar Shah > Cc: Kyriakos Zarifis; nox-dev@noxrepo.org > Subject: Re: [nox-dev] Nox messenger example for external c++ and no

Re: [nox-dev] Nox messenger example for external c++ and nox python

2011-12-21 Thread Murphy McCauley
I am using libjson library at C++ module. > > -Harshil. > > From: Murphy McCauley [mailto:jam...@nau.edu] > Sent: Wednesday, December 21, 2011 1:38 AM > To: Harshil Anil Kumar Shah > Cc: Kyriakos Zarifis; nox-dev@noxrepo.org > Subject: Re: [nox-dev] Nox messenger example f

Re: [nox-dev] NOX UnicodeDecodeError in nox/coreapps/pyrt/pyoxidereactor.py

2011-12-20 Thread Murphy McCauley
It looks like some Python component is trying to log something unprintable. Is your prrt module in Python? Does it do any logging? Is that the full stack trace that you pasted? It'd be nice to see where emit() was being called from. If you just want a quick fix, you could try just commenting

Re: [nox-dev] Nox messenger example for external c++ and nox python

2011-12-20 Thread Murphy McCauley
Do you mean that you have some external program (written in C++) that you want to communicate with a NOX component (written in Python)? jsonmessenger works by sending and receiving JSON (http://json.org) messages. So on the NOX side, you use jsonmessenger. In the external program, you can use

Re: [nox-dev] NOX for windows

2011-12-20 Thread Murphy McCauley
Sorry, but I'm not aware of anyone ever trying to get NOX running on Windows. I wouldn't take a guess at how much work might be involved. -- Murphy On Dec 20, 2011, at 5:00 AM, Sheili Mittal wrote: > Hi, > > I am new to NOX. Anyone confirm me whether NOX supported Windows also? > From where

Re: [nox-dev] error in "flowtracer" component

2011-12-20 Thread Murphy McCauley
flowtracer should have jsonmessenger as a dependency, but doesn't. Either edit flowtracer's meta.json file to add jsonmessenger as a dependency, or simply specify jsonmessenger on the commandline before flowtracer (e.g., nox_core jsonmessenger flowtracer). Hope that helps. -- Murphy On Dec 20

Re: [nox-dev] Generating doxygen documentation

2011-12-19 Thread Murphy McCauley
Are you sure you're in build/doc/doxygen and not just doc/doxygen? -- Murphy On Dec 19, 2011, at 12:28 PM, Guy A wrote: > Thanks for replying. I tried those steps but after make html I get error: > make: *** No rule to make target 'html'. Stop. > > I don't think it should affect anything but I'

Re: [nox-dev] Generate traffic

2011-12-18 Thread Murphy McCauley
On Dec 18, 2011, at 11:52 AM, Walid van Boetzelaer wrote: > Openflow does maintain counters for each flow table, and these counters have > the number of received packets per port, etc... How can I retrieve these? At the OpenFlow level, you do this by sending an ofp_port_stats_request asking for

Re: [nox-dev] Getting switch statistics

2011-12-18 Thread Murphy McCauley
resolve(switchstats) is probably failing because the switchstats component is not loaded. You should either put "switchstats" on the commandline *before* your component, or (better yet) add switchstats as a dependency of your component in your component's meta.json. Hopefully that will fix it

Re: [nox-dev] Generating doxygen documentation

2011-12-17 Thread Murphy McCauley
This is from memory, but it should be more or less... Start as usual: ./boot.sh mkdir build cd build ../configure And now to build the HTML docs: cd doc/doxygen make html Give that a shot. :) -- Murphy On Dec 16, 2011, at 4:42 PM, Guy A wrote: > Hi, > > I'm have problems generating the doxy

Re: [nox-dev] meta.json syntax and importing files in Python

2011-12-16 Thread Murphy McCauley
Some of this is at least lightly documented on the wiki: http://noxrepo.org/noxwiki/index.php/Developing_in_NOX (Please feel free to extend it!) There's a bit more info about the meta files in the FAQ: http://noxrepo.org/noxwiki/index.php/FAQ#Where_can_I_see_and_edit_the_code_that_corresponds_to

Re: [nox-dev] Not able to send ARP Reply in C++

2011-12-15 Thread Murphy McCauley
[size]; > >memcpy(data, ðPacket, sizeof(ethPacket)); >memcpy(data + sizeof(ethPacket), &arpPacket, sizeof(arpPacket)); >Array_buffer buffer(data,size); // data will be deleted automatically > >send_openflow_packet(dpid, buffer, port, OFPP_LOCAL, true); } > } >

Re: [nox-dev] Running Error on nox.json

2011-12-15 Thread Murphy McCauley
uration file. Checked the following locations: > -> /usr/local/etc/nox/nox.json > -> etc/nox.json > > > > > Peng > > > On Thu, Dec 15, 2011 at 5:50 PM, Murphy McCauley wrote: > Hi; maybe you can provide a bit more information. > > What OS

Re: [nox-dev] Not able to send ARP Reply in C++

2011-12-15 Thread Murphy McCauley
n is that arp > reply should be addressed. > > I examined which api to send arp reply by using of Nox(zaku) in > C++, and I get a hint from attached Nox sample code "switch.cc". > The hint is Packet_in_event... > > Then I want to tell you how to get packet da

Re: [nox-dev] how to display network topology timely

2011-12-15 Thread Murphy McCauley
> Wang Jian > >Friday, > December 2,2011 > > > At 2011-11-29 03:01:56,"Murphy McCauley" wrote: > I think the attachment is being scrubbed. Maybe you ca

Re: [nox-dev] Watch inside the IP Option field with Openflow

2011-12-15 Thread Murphy McCauley
Well, this depends on what you mean. There is no way in the OpenFlow 1.0 spec to have matches against an IP option. However, if you are installing exact-match flows for TCP or UDP connections and the first packet of the connection will have the option set, then you may be able to do what you w

Re: [nox-dev] Running Error on nox.json

2011-12-15 Thread Murphy McCauley
Hi; maybe you can provide a bit more information. What OS/version are you running on? What steps did you use to configure, build, and run NOX? -- Murphy On Dec 15, 2011, at 2:45 PM, Peng Sun wrote: > Hi, > > I encountered an error when running NOX. The error is: > > ERR: Unable to find a

Re: [nox-dev] what is the difference between pyswitch and routing module?

2011-12-15 Thread Murphy McCauley
No. The situation is as I described -- the routing module is really more like a network-wide L2 switch than anything else. It's possible to implement some L3 routing functionality in NOX as Srini mentions in the referenced email. However, there's at least one thing that IP routers do which ca

Re: [nox-dev] how to add flow through NOX

2011-12-12 Thread Murphy McCauley
There's no simple "manual" way to add a flow using NOX -- you must write code in C++ or Python to add flows. However, you could certainly write a NOX component that accepts user input and uses it to add flows. Hope that helps. -- Murphy On Dec 12, 2011, at 10:48 AM, Shan Hu wrote: > Hi All,

Re: [nox-dev] error in programming flow

2011-12-12 Thread Murphy McCauley
This is an error message from the switch. I believe type 2 code 4 is from a bad output port on an action, but you can refer to the OpenFlow 1.0 specification to be sure. -- Murphy On Dec 12, 2011, at 6:04 AM, Beeram, Suresh KumarReddy wrote: > Hi all, > I tried to program flow on switch usin

Re: [nox-dev] error compiling...

2011-12-07 Thread Murphy McCauley
What platform are you trying to compile on, and which branch of NOX? Have you tried the destiny branch? -- Murphy On Dec 7, 2011, at 1:39 AM, Prashanth Prahalad wrote: > > Just getting started with nox controller. > > During compilation (make -j 5) I'm seeing this error : > > ../../src/nox_

Re: [nox-dev] does openflow dedicated switch surpport layer 3 processing

2011-12-05 Thread Murphy McCauley
Responses inline. On Dec 5, 2011, at 6:42 PM, 王健 wrote: > Hi Murphy: > I am confused about a question about OpenFlow dedicated switch for a long > time.The following is my testing network topology: > <截图4.png> > PC1 and PC2 can ping each other successful

Re: [nox-dev] unable to create new app in nox

2011-12-05 Thread Murphy McCauley
I'm not sure if this is a bug or a feature, but if you check try_newapp's meta.json file, you'll see that the actual component name is "try newapp" (with a space) and not "try_newapp" (with an underscore). If you try running: ./nox_core -v -l ptcp:789 "try newapp" .. it should work. It might be

Re: [nox-dev] Cannot find packages or modules imported in Graph_Topology.py (NOX destiny)

2011-12-05 Thread Murphy McCauley
This file is ancient and I don't think it has ever worked with a public release of NOX. It is probably in there by mistake and we've never noticed. I'd suggest you look at the existing GUI if you want a graph. If you really want to get that thing going... discovery is now nox.netapps.discove

Re: [nox-dev] "attempt to reuse the buffer"

2011-12-01 Thread Murphy McCauley
Your first call to install_datapath_flow() in the code below is wrong. The last argument you're passing is priority. But the parameter at that position is buffer_id. So what you're actually doing is telling the switch to use buffer_id 5 over and over. Either insert a "None" between actions a

Re: [nox-dev] help: link_type

2011-12-01 Thread Murphy McCauley
I'm not an LAVI expert, but I believe the only types are all, sw2sw and host2sw. -- Murphy On Dec 1, 2011, at 12:48 AM, ztom wrote: > Hi~ alls, > I need to get all link_types of topo's jsonmsg, but i just find two of them > ("all" & "sw2sw"). Is there some docs about it? I can't get any hint fr

Re: [nox-dev] Why does NOX Destiny version lack of SQLite3 database support??

2011-11-30 Thread Murphy McCauley
It was removed several years ago... I think just because nothing in NOX itself was using it. What do you want to use it for? If you just want to use sqlite for your own component to keep data, you can just include it yourself... -- Murphy On Nov 30, 2011, at 6:45 AM, dongxia pan wrote: > hi,

Re: [nox-dev] Spanning Tree Module

2011-11-30 Thread Murphy McCauley
itches. > Thanks for your quick answer. > > Best regards > Bernd > > > > Zitat von Murphy McCauley : > >> AFAIK, this should work. Have you actually inspected the switches? Are the >> relevant ports actually getting NOFLOOD set? >> >&g

Re: [nox-dev] Spanning Tree Module

2011-11-29 Thread Murphy McCauley
AFAIK, this should work. Have you actually inspected the switches? Are the relevant ports actually getting NOFLOOD set? -- Murphy On Nov 29, 2011, at 7:54 AM, Bernd Wittefeld wrote: > Hi, > first of all: thanks for your great work and the really good support > here. I have a small problem and

Re: [nox-dev] Modify the packet's header in Openflow Switch(Router)

2011-11-29 Thread Murphy McCauley
rv.c) ? > But I don't know exactly. > > Could you give some advice or where is the packet receiving callback? > > Thank you for your favor. > > Best Regards > > - Hyogi > > 2011/11/29 Murphy McCauley > This depends on exactly what you mean, thoug

Re: [nox-dev] the connection between OF switch and openwrt

2011-11-28 Thread Murphy McCauley
I think the attachment is being scrubbed. Maybe you can send an image? Though offhand, I don't know what I can tell you. What do mean by unreachable? Devices connected to the netfpga switch can't ping devices connected to the openwrt switch? What NOX components are you running? -- Murphy On

Re: [nox-dev] Not able to send ARP Reply in C++

2011-11-28 Thread Murphy McCauley
I don't think I've ever used it, but have you taken a look at include/netinet++/arp.hh? -- Murphy On Nov 25, 2011, at 1:54 AM, Kimihiko FUKAMI wrote: > Hi, > > Currently, I can not send an ARP Reply by using of Nox(zaku) in > C++ code. > > # I can write a code to reply ARP in python. > >

Re: [nox-dev] Modify the packet's header in Openflow Switch(Router)

2011-11-28 Thread Murphy McCauley
This depends on exactly what you mean, though I wonder if you are operating under a misconception. If you use NOX to install a flow with, for example, an OFPAT_SET_DL_DST action to set the ethernet address... the actual work of rewriting the packet header happens on the switch. It's only the i

Re: [nox-dev] Information on Controller Open Flow in general

2011-11-22 Thread Murphy McCauley
Maybe some of these resources will be useful? Wiki: http://noxrepo.org/noxwiki/index.php/Main_Page Slightly dated NOX presentation: https://docs.google.com/present/view?id=dfsbt2qf_327f9688ngr Doxygen: http://noxrepo.org/~yapkke/doc/ Hope that helps. -- Murphy On Nov 22, 2011, at 8:43 AM, Fra

Re: [nox-dev] Flow hard timeout

2011-11-19 Thread Murphy McCauley
Sorry, but it's in seconds. (See ofp_flow_mod in the OpenFlow spec.) -- Murphy On Nov 19, 2011, at 6:30 AM, andrea simeoni wrote: > Hi guys, > > Does the flow hard timeout must be an integer number of seconds? I'm trying > to set it to 0.5 ms but i get that it is set to the default value. > T

Re: [nox-dev] import error

2011-11-16 Thread Murphy McCauley
I don't really know anything about mobilevms, and I suspect this may be one of the cases where SWIG is misleading about what's going on. But for starters, why don't you try... ./nox_core -v -v -i ptcp:6633 spanning_tree mobilevms -- Murphy On Nov 16, 2011, at 4:37 AM, 王健 wrote: > Hello every

Re: [nox-dev] what is the difference between pyswitch and routing module?

2011-11-11 Thread Murphy McCauley
t; Right now,I try to reserve bandwidth and limit rate with the queue table, it >> works great with pyswitch component,but it doesnt work with routing >> component.What reason could it be? >> >> And another question,where can i find all the modules of NOX?There are not &g

Re: [nox-dev] what is the difference between pyswitch and routing module?

2011-11-10 Thread Murphy McCauley
omponent,but it doesnt work with routing > component.What reason could it be? > > And another question,where can i find all the modules of NOX?There are not > much in the noxwiki.Or, those in noxwiki already include all existing modules? > > regards, > Shan > >

Re: [nox-dev] Switches crash when inserting OFPP_CONTROLLER actions

2011-11-08 Thread Murphy McCauley
How do the switches crash? With an assertion about insufficient buffer headroom or something? Or about a bad buffer ID (are you applying multiple actions?)? Or do they just segfault? Feel free to send along a capture of the OpenFlow traffic between NOX and the switch (along with the NOX and

Re: [nox-dev] co-thread starving?

2011-11-05 Thread Murphy McCauley
Are you using co_sleep() to do the sleeping? -- Murphy On Nov 4, 2011, at 11:35 PM, danderson415 wrote: > Hi, > > I am wondering how co-threads works. I create a co-thread in my component > which just loop 100 times and sleep 100 ms and call co_yield() in the loop. > If I run nox with my comp

Re: [nox-dev] what is the difference between pyswitch and routing module?

2011-11-03 Thread Murphy McCauley
pyswitch is intended to be a very simple demo and does something along the lines of making each switch in the network a standalone L2 learning switch. Each switch gets no insight about the topology from its neighbors. routing actually uses a global view of the topology, and can just generate o

Re: [nox-dev] a code problem about “util.py”

2011-11-03 Thread Murphy McCauley
The definition of register_handler is in pycontext.cc in pyrt. It's exposed to Python via SWIG. -- Murphy On Nov 2, 2011, at 10:14 PM, hzy wrote: > the code problem I have solved after I looked the python books about function. > > but, when I look the codes in the core.py. > def register_han

Re: [nox-dev] a code problem about “util.py”

2011-11-03 Thread Murphy McCauley
A function in Python is a first class object. In the code below, f is defined inside of gen_datapath_join_callback, and you get a new f. Since a function is just an object, gen_datapath_join_callback then adds a new property to f -- the cb property. Inside f, this property is accessed. I did

  1   2   3   4   5   >