[nox-dev] What is the possible cause of error: type=3, code=3 and type=3, code=1

2010-09-22 Thread Guanyao Huang
Hi When setting up a flow entry (I am using mininet and NOX from HOTI tutorial), it says: 00065|openflow-event|ERR:received Openflow error packet from dpid=000c: type=3, code=1, 80 bytes of data 00324|openflow-event|ERR:received Openflow error packet from dpid=0013: type=3,

Re: [nox-dev] How can I resolve: make[9]: *** No rule to make target `meta.json', needed by `all-am'. Stop.

2010-09-20 Thread Guanyao Huang
The link for spanning_tree module: http://www.mail-archive.com/nox-dev@noxrepo.org/msg00167.html http://www.openflowswitch.org/wk/index.php/Basic_Spanning_Tree I plan to use spanning_tree so that routing module can be used for a network of loops. Thanks. On Sun, Sep 19, 2010 at 11:26 PM, Guanyao

Re: [nox-dev] How can I resolve: make[9]: *** No rule to make target `meta.json', needed by `all-am'. Stop.

2010-09-20 Thread Guanyao Huang
The problem is solved. I named the file as meta.jason. That was the problem. Thank you Kyriakos. On Sun, Sep 19, 2010 at 11:26 PM, Guanyao Huang gyhu...@ucdavis.edu wrote: Hello Sorry to bother others. I am using the latest NOX module from: http://www.openflowswitch.org/foswiki/bin/view

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

2010-09-15 Thread Guanyao Huang
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 working. When make, it ignores my module. It never

[nox-dev] I met a basic problem when testing virtual environment

2010-06-21 Thread Guanyao Huang
Hello Sorry to bother others. I am testing my software openflow according to http://www.openflowswitch.org/foswiki/bin/view/OpenFlow/Deployment/HOWTO/Virtual I also run ./nox_core -i ptcp:6633 routing After run vms-start.py -u 2hosts-2ofsw.vms.xml, 4 windows pop up for 2 hosts and 2 switches.

Re: [nox-dev] Cant run virtual machine for the simple example in the tutorial

2010-06-08 Thread Guanyao Huang
It works. Thank you. On Tue, Jun 8, 2010 at 1:09 PM, kk yap yap...@stanford.edu wrote: As mentioned, the list is ordered.  So, I swapped ip and xterm in the host definition, and it works now.  Attached is the updated file. Regards KK On 8 June 2010 13:02, Guanyao Huang gyhu...@ucdavis.edu

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

2010-05-24 Thread Guanyao Huang
Sorry. I dont quite understand. I am already compiling under ./nox/build. build is a new directory. It is not source tree, right? I am following instructions from the webpage. First I mkdir build, then I go into it, ../configure, and then I make in it. On Mon, May 24, 2010 at 8:16 AM, Martin

[nox-dev] is this a known bug in storage module

2010-05-06 Thread Guanyao Huang
Hi Sorry to bother others. My program has serious problem. Here is the dump under gdb. I am wondering has anyone seen something similar before. Maybe this is known bug? Any suggestion would be helpful. *** glibc detected *** /home/sraza/noxcore/build/src/.libs/lt-nox_core: malloc(): memory

Re: [nox-dev] Need to the error type of send_openflow_command()

2010-04-07 Thread Guanyao Huang
. On Mon, Apr 5, 2010 at 4:12 AM, kk yap yap...@stanford.edu wrote: Hi Guanyao,, Did you check for datapath_leave_event and make sure that you do not send commands to invalid datapathid?  Seems like that is the problem. Regards KK On 4 April 2010 21:41, Guanyao Huang gyhu...@ucdavis.edu wrote: Hi

[nox-dev] Need to the error type of send_openflow_command()

2010-04-04 Thread Guanyao Huang
Hi Sorry to bother others. My program breaks with datapath leaves the network (HP switch). There are some errors returned by the send_openflow_command, which I dont understand. Is there any document on the meaning of the error? 00079|openflow|WARN:stream: send error: Broken pipe

Re: [nox-dev] What will happen when OFPBAC_BAD_OUT_PORT occurs

2010-03-26 Thread Guanyao Huang
message that had the ofp_match structure set to specify the in_port to match on. Does that help? Also, including the list helps archive some of these answers, so is there a reason you did not include the list? - Rob . On Fri, Mar 26, 2010 at 9:21 AM, Guanyao Huang gyhu...@ucdavis.edu

Re: [nox-dev] A question regarding Authenticator module

2010-03-12 Thread Guanyao Huang
I think some document of authenticator module is very necessary. The newest version of authenticator module seems changed a lot, but the code for routing module remains the same. For example, why there are many events defined in host_event.hh, why there are many entries, bindings defined in

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

2010-03-11 Thread Guanyao Huang
Hi Sorry to bother others. My program needs to tcpreplay some packets between switches. Since the trace is from raw IP, I converted them to ethernet packets. However, some of the original packets are truncated, and I found these packets are forwarded but missed. If I tcpreplay them and tcpdump the

Re: [nox-dev] A question regarding Authenticator module

2010-03-11 Thread Guanyao Huang
you're using. 2.   That is not expected behavior and likely just depends on what information that authenticator/routing modules have discovered so far. Natasha On Wed, Mar 3, 2010 at 2:51 PM, Guanyao Huang gyhu...@ucdavis.edu wrote: Sorry to bother you again. I have two issues regarding both

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

2010-03-09 Thread Guanyao Huang
for all the fields? On Tue, Mar 9, 2010 at 5:58 PM, Yu-Chieh Chou bouyu...@gmail.com wrote: Sorry, I did not explain very clearly. I use the command dpctl dump-aggregate on OpenFlow switch works correctly. But the aggregate value on NOX component monitor always get zero. 2010/3/10 Guanyao Huang

Re: [nox-dev] What will happen when OFPBAC_BAD_OUT_PORT occurs

2010-03-04 Thread Guanyao Huang
.   To prevent loops, OpenFlow makes you explicitly use the action output:OFPP_INPORT if you want to send back out the port a packet came in on. Does that help? - Rob . On Thu, Mar 4, 2010 at 11:24 AM, Guanyao Huang gyhu...@ucdavis.edu wrote: Hello My program shows error of type2 code4. From

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

2010-03-01 Thread Guanyao Huang
Hi Sorry to bother others. In my program the datapath leaves network again. This time it seems a little different: 00341|openflow|WARN:stream: no response to inactivity probe after 15 seconds, disconnecting 00342|nox|WARN:stream: disconnected (Protocol error) Datapath leave, f7:ca:e4:00:01:90

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

2010-03-01 Thread Guanyao Huang
2010 21:42, Guanyao Huang gyhu...@ucdavis.edu wrote: Which part defines the time interval for this echo request? I guess enlarger it will temporarily handle my problem. On Mon, Mar 1, 2010 at 9:38 PM, kk yap yap...@stanford.edu wrote: Hi Guanyao, NOX periodic checks if the switch is still

[nox-dev] A quick question about topology module

2010-02-26 Thread Guanyao Huang
Hi I find that the topology module doesnt support the case where there are two links between two switches. But Discovery module support this situation. Is there a particular reason for this? Thanks. ___ nox-dev mailing list nox-dev@noxrepo.org

Re: [nox-dev] A quick question about topology module

2010-02-26 Thread Guanyao Huang
.  Finally that points to LinkSet that is a lis to src and dst ports.  That information is preserved from what I can see. Regards KK On 26 February 2010 12:13, Guanyao Huang gyhu...@ucdavis.edu wrote: Hi I find that the topology module doesnt support the case where there are two links between two

[nox-dev] Inquiry a race condition of openflow switches

2010-02-08 Thread Guanyao Huang
Hi Sorry to bother others. In order to establish packet forwarding between switches, the rule should be sent to switch before the first packet is sent back. The race condition is the packet is sent back and even forwarded by the first switch, but it doesnt find a rule in the second switch although

Re: [nox-dev] Inquiry a race condition of openflow switches

2010-02-08 Thread Guanyao Huang
14:33, Guanyao Huang gyhu...@ucdavis.edu wrote: Hi Sorry to bother others. In order to establish packet forwarding between switches, the rule should be sent to switch before the first packet is sent back. The race condition is the packet is sent back and even forwarded by the first switch

Re: [nox-dev] Inquiry a race condition of openflow switches

2010-02-08 Thread Guanyao Huang
barrier function returns, we install A.  That way, we are sure B and C has the entries before sending the flow_mod to A. Hope I am clear. Regards KK On 8 February 2010 19:39, Guanyao Huang gyhu...@ucdavis.edu wrote: I heard this from my supervisor. I also think this is not resolved, because

[nox-dev] A question regarding Authenticator module

2010-02-04 Thread Guanyao Huang
Hello Sorry to bother others. I can't understand the code of authenticator module, but I need a small favor. I understand that if one mac is dst address, this mac address should first be authenticated. After a while, this mac will timeout and expire. My current program wants to extend this timeout

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

2010-02-03 Thread Guanyao Huang
descriptor) Datapath leave, f7:ca:e4:00:00:64 Datapath leave, f7:ca:e4:00:01:f4 Datapath leave, f7:ca:e4:00:00:c8 Datapath leave, f7:ca:e4:00:01:2c Datapath leave, f7:ca:e4:00:01:90 On Tue, Feb 2, 2010 at 9:33 PM, Ben Pfaff b...@nicira.com wrote: On Tue, Feb 02, 2010 at 09:23:52PM -0800, Guanyao

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

2010-02-03 Thread Guanyao Huang
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 when a connection closes. On Wed, Feb 03, 2010 at 12:59:16PM -0800, Guanyao Huang wrote: Hi What

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

2010-02-02 Thread Guanyao Huang
I guess it depends on whether dpctl dump-aggregate works correctly. My problem with it is that sometimes it can not aggregate flows according to the specified wildcard. I guess this depends on configuration of switches. On Tue, Feb 2, 2010 at 5:57 PM, Rodrigo Braga rodrigog...@gmail.com wrote: I

[nox-dev] Inquiry about counters of openflow switches

2010-02-02 Thread Guanyao Huang
Hello Sorry to bother others. My program is to redirect flows according to some metric in a topology of loops, 5 switches. I need to accurately query flow sizes from counters. For one flow, I will query its size from the egress switch. I find that: 1, Querying sizes from the ingress switch has

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

2010-02-02 Thread Guanyao Huang
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 datapath leaves: 00016|openflow|WARN:stream: connection closed by

Re: [nox-dev] [openflow-discuss] One question regarding byte number, another one regarding ./dpctl dump-flows entries

2010-01-27 Thread Guanyao Huang
On 1/26/10 1:09 PM, Guanyao Huang wrote: Hi I am running on my own nox module on a topology of 5 switches. I find two phenomena: 1, The byte number of every packet read from statistics is always 4 bytes larger than the real size. If pcap shows the packet is of size N,  ./dpctl dump-flows

[nox-dev] One question regarding byte number, another one regarding ./dpctl dump-flows entries

2010-01-26 Thread Guanyao Huang
Hi I am running on my own nox module on a topology of 5 switches. I find two phenomena: 1, The byte number of every packet read from statistics is always 4 bytes larger than the real size. If pcap shows the packet is of size N, ./dpctl dump-flows will show a size of N+4. So, if we query

[nox-dev] aggregated flow statistics doesnt support nw_src and nw_dst option.

2010-01-22 Thread Guanyao Huang
Hi I have two questions. 1, why have people developed both individual flow statistics query and aggregated flow statistics query, since both of them have wildcard to aggregate flows. My supervisor suggested that for individual flow statistics query, if one flow in flow table is matched, then the

Re: [nox-dev] aggregated flow statistics doesnt support nw_src and nw_dst option.

2010-01-22 Thread Guanyao Huang
Sorry, I was saying toroki switch and NEC switch, not sure about HP switch. On Fri, Jan 22, 2010 at 3:04 PM, Guanyao Huang gyhu...@ucdavis.edu wrote: Hi I have two questions. 1, why have people developed both individual flow statistics query and aggregated flow statistics query, since both

[nox-dev] ofp_match

2009-12-23 Thread Guanyao Huang
This question might be too naive. If I want to specify nw_src and nw_dst, and make other fields wildcards, shouldn't the code be as follows: tmpmatch.wildcards=htonl( OFPFW_NW_PROTO | OFPFW_DL_VLAN | OFPFW_DL_SRC | OFPFW_DL_DST | OFPFW_DL_TYPE | OFPFW_TP_SRC | OFPFW_TP_DST ); Is there anything

Re: [nox-dev] ofp_match

2009-12-23 Thread Guanyao Huang
| OFPFW_DL_VLAN | OFPFW_DL_SRC | OFPFW_DL_DST | OFPFW_DL_TYPE | OFPFW_TP_SRC | OFPFW_TP_DST ); memcpy(ofsr-match, tmpmatch, sizeof(ofp_match)); send_openflow_command(thisdp, ost-header, false) ; On Wed, Dec 23, 2009 at 1:01 AM, Guanyao Huang gyhu...@ucdavis.edu wrote: This question might

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

2009-12-23 Thread Guanyao Huang
failed with 32:Broken pipe. 00018|openflow|WARN:stream: receive error: Bad file descriptor 00019|nox|WARN:stream: disconnected (Bad file descriptor) Datapath leave, f7:ca:e4:00:00:64 What does Broken pipe usually imply? I cant find where it is from. On Tue, Dec 22, 2009 at 10:41 AM, Guanyao Huang

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

2009-12-23 Thread Guanyao Huang
be said with certainty. Regards KK 2009/12/23 Guanyao Huang gyhu...@ucdavis.edu: Some general questions: Will the datapath actively leave the network if it is burdened? Or only link_timeouts at discovery module will make them leave. My program has following messages: 00016|openflow

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

2009-12-23 Thread Guanyao Huang
-- Forwarded message -- From: Guanyao Huang gyhu...@ucdavis.edu Date: Wed, Dec 23, 2009 at 3:17 PM Subject: Re: [nox-dev] A general question regarding discovery module To: Martin Casado cas...@nicira.com In verbose model: 00015|openflow|WARN:stream: send error: Broken pipe

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

2009-12-21 Thread Guanyao Huang
I can have a try, but I dont expect the new algorithm will solve my problem. :) On Mon, Dec 21, 2009 at 12:36 AM, Rob Sherwood rob.sherw...@stanford.edu wrote: Hello Guanyao, I don't work for Nicira, but there are some well known scaling issues with the algorithm used by the discovery

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

2009-12-18 Thread Guanyao Huang
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 cas...@nicira.com wrote: Discovery times out links when no LLDP packets have been received over some

[nox-dev] A general question regarding discovery module

2009-12-17 Thread Guanyao Huang
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 situations the links will time_out. Thanks. ___ nox-dev mailing list nox-dev@noxrepo.org

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

2009-12-17 Thread Guanyao Huang
We are recently confirmed the switch itself has some bug, it cant collect byte statistics. Thanks all. On Thu, Dec 10, 2009 at 6:02 PM, Guanyao Huang gyhu...@ucdavis.edu wrote: Hello Sorry to bother others. I one question regarding querying flow statistics from switches through struct

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

2009-12-15 Thread Guanyao Huang
are you using?          Thanks, Keith On Sun, 13 Dec 2009 11:17:01 -0800, Guanyao Huang gyhu...@ucdavis.edu wrote: I dont think the flow table entries expire quickly, because I find out only initially the new packet is sent to the controller. Later packets already have entries. It seems I dont

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

2009-12-15 Thread Guanyao Huang
...@nicira.com wrote: I apologize if you stated this already and I missed it, but what versions NOX and switch software are you using?          Thanks, Keith On Sun, 13 Dec 2009 11:17:01 -0800, Guanyao Huang gyhu...@ucdavis.edu wrote: I dont think the flow table entries expire quickly, because I find

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

2009-12-10 Thread Guanyao Huang
Hello Sorry to bother others. I one question regarding querying flow statistics from switches through struct ofp_stats_request. I am using nox 5.0 In my topology I periodically ping between hosts. However, I find the packet_count and byte_count from the switch are always 0. I am confirmed that I

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

2009-12-10 Thread Guanyao Huang
. Is this some setting problem? On Thu, Dec 10, 2009 at 6:02 PM, Guanyao Huang gyhu...@ucdavis.edu wrote: Hello Sorry to bother others. I one question regarding querying flow statistics from switches through struct ofp_stats_request. I am using nox 5.0 In my topology I periodically ping between hosts

[nox-dev] Questions regarding routing module

2009-11-30 Thread Guanyao Huang
Hi Sorry to bother others. I find that there is one routing module under netapps directory. It can route the flows between openflow switches. My work now is to write my own routing module which uses dijstra protocol to find the shortest path (not all-pairs shortest path algorithm). I have a