[nox-dev] NOX connection rate limiting

2011-10-17 Thread Edward Balas
Hey all,

Does NOX has an ability to rate limit the number of rules pushed to a switch in 
a set amout of time?  In benchmarking a few switches in our lab, we have been 
able to make the controller lose access with the switch by simply pushing a 
large number of rules(the controller does not appear resource bound).  How are 
most folks dealing with such issues today?


Thanks for any insights,

Edward Balas
317-313-2646
eba...@grnoc.iu.edu




___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[nox-dev] Cannot see the flow table

2011-10-17 Thread Candy Floss
I have the following configuration

NOX - eth0 - 192.168.10.1/24
Switch 1 - eth0- 192.168.10.2/24
Switch 2 - eth0 - 192.168.10.3/24
Host 1 - eth0 - 192.168.10.4/24
Host2 - eth0 - 192.168.10.5/24
NOX
   |
|--|
switch1 switch2
|   |
host1host2


All of them are connected to VLAN(including host1 and host2). I ran the
pyswitch module on NOX and secchan on switches. Switches are connected to
NOX. When I ping from host1 to host2 the ping works but I cannot see any
flow tables on switches. I used dumpflow command to see flow tables. Where
did I go wrong? Is my configuration right?


Regards,
Candy
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Bugs in the send_openflow_command(..) and send_openflow_packet(..)

2011-10-17 Thread andrea simeoni
Thank you very much Murphy :)

2011/10/17 Murphy McCauley 

> Yes.  Use 0x as the second parameter to set_action_output().
>
> -- Murphy
>
> On Oct 17, 2011, at 7:14 AM, andrea simeoni wrote:
>
> You are right Murphy,
>
> in the case of simplerouting, I receive error messages by all switches
> along the path except for the first (as it is the only having a non empty
> buffer-id for that packet). I didn't know that those OF errors could be
> ignored.
>
> I solved also the question for the send_openflow_packet() instruction.
> Since the reason of my packet-in events is "explicitely send to controller",
> then packets are never buffered in switches.
>
> However I've a little question more: When I configure the action
> OFPP_CONTROLLER using ofp_action, is there a way to tell the switch to send
> the whole packet to the controller, using the
> ofp_action::set_action_output()?
>
> Thank you very much
>
> 2011/10/17 Murphy McCauley 
>
>> Assuming you're installing a route along multiple switches, all of them
>> except maybe one should probably have an empty (0x) buffer_id.  This
>> doesn't seem like it should be the problem.
>>
>> I can't even hazard a guess without knowing more about the situation.
>>
>> What version of NOX are you running?
>> What kind of switch?
>> What does the NOX log show?
>> Can you provide a capture of the OpenFlow traffic between a switch that
>> sends an error and the controller?
>>
>> -- Murphy
>>
>> On Oct 17, 2011, at 6:33 AM, andrea simeoni wrote:
>>
>> > Hi guys,
>> >
>> > I'm trying to run the simplerouting component, and found that when
>> installing the route it receives "Malformed packet error" messages back from
>> the switches.
>> > The same happens when calling send_openflow_packet(..).  If i go in
>> wireshark to analyse the controller->switches openflow packets, I find that
>> the field buffer-id has "None" value in both cases.
>> >
>> > Any suggestions? How can I make things working properly?
>> >
>> > --
>> > Andrea Simeoni
>> > ___
>> > nox-dev mailing list
>> > nox-dev@noxrepo.org
>> > http://noxrepo.org/mailman/listinfo/nox-dev
>>
>>
>
>
> --
> Andrea Simeoni
>
>
>


-- 
Andrea Simeoni
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] problem --> nox|ERR:Application 'python' description not found.

2011-10-17 Thread Murphy McCauley
Ignore anything on http://noxrepo.org/wp/?page_id=15.
The only reasonable way to get NOX is along the lines of:
git clone git://noxrepo.org/nox
cd nox
git checkout destiny

Please attach your config.log, and run "nox_core -v -v" and attach the results 
of that too.

-- Murphy

On Oct 17, 2011, at 7:26 AM, RG_gmail wrote:

> I beg your pardon i don’t know if it’s the roght way to answer.
>  
> First I’ve found only the 0.5 inthis url http://noxrepo.org/wp/?page_id=15 
> and I’ve followed what’s in this 
> urlhttp://noxrepo.org/noxwiki/index.php/NOX_Installation
>  
> And the release when i launch nox_core –V is the 0.9 compiled with OpenFlow 
> 0x01
>  
> Thanks in advance for your ideas
>  
>  
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev

___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Bugs in the send_openflow_command(..) and send_openflow_packet(..)

2011-10-17 Thread Murphy McCauley
Yes.  Use 0x as the second parameter to set_action_output().

-- Murphy

On Oct 17, 2011, at 7:14 AM, andrea simeoni wrote:

> You are right Murphy,
> 
> in the case of simplerouting, I receive error messages by all switches along 
> the path except for the first (as it is the only having a non empty buffer-id 
> for that packet). I didn't know that those OF errors could be ignored.
> 
> I solved also the question for the send_openflow_packet() instruction. Since 
> the reason of my packet-in events is "explicitely send to controller", then 
> packets are never buffered in switches.
> 
> However I've a little question more: When I configure the action 
> OFPP_CONTROLLER using ofp_action, is there a way to tell the switch to send 
> the whole packet to the controller, using the 
> ofp_action::set_action_output()? 
> 
> Thank you very much
> 
> 2011/10/17 Murphy McCauley 
> Assuming you're installing a route along multiple switches, all of them 
> except maybe one should probably have an empty (0x) buffer_id.  This 
> doesn't seem like it should be the problem.
> 
> I can't even hazard a guess without knowing more about the situation.
> 
> What version of NOX are you running?
> What kind of switch?
> What does the NOX log show?
> Can you provide a capture of the OpenFlow traffic between a switch that sends 
> an error and the controller?
> 
> -- Murphy
> 
> On Oct 17, 2011, at 6:33 AM, andrea simeoni wrote:
> 
> > Hi guys,
> >
> > I'm trying to run the simplerouting component, and found that when 
> > installing the route it receives "Malformed packet error" messages back 
> > from the switches.
> > The same happens when calling send_openflow_packet(..).  If i go in 
> > wireshark to analyse the controller->switches openflow packets, I find that 
> > the field buffer-id has "None" value in both cases.
> >
> > Any suggestions? How can I make things working properly?
> >
> > --
> > Andrea Simeoni
> > ___
> > nox-dev mailing list
> > nox-dev@noxrepo.org
> > http://noxrepo.org/mailman/listinfo/nox-dev
> 
> 
> 
> 
> -- 
> Andrea Simeoni

___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] problem --> nox|ERR:Application 'python' description not found.

2011-10-17 Thread RG_gmail
I beg your pardon i don't know if it's the roght way to answer.

 

First I've found only the 0.5 inthis url
 http://noxrepo.org/wp/?page_id=15 and
I've followed what's in this url

http://noxrepo.org/noxwiki/index.php/NOX_Installation

 

And the release when i launch nox_core -V is the 0.9 compiled with OpenFlow
0x01

 

Thanks in advance for your ideas

 

 

___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Bugs in the send_openflow_command(..) and send_openflow_packet(..)

2011-10-17 Thread andrea simeoni
You are right Murphy,

in the case of simplerouting, I receive error messages by all switches along
the path except for the first (as it is the only having a non empty
buffer-id for that packet). I didn't know that those OF errors could be
ignored.

I solved also the question for the send_openflow_packet() instruction. Since
the reason of my packet-in events is "explicitely send to controller", then
packets are never buffered in switches.

However I've a little question more: When I configure the action
OFPP_CONTROLLER using ofp_action, is there a way to tell the switch to send
the whole packet to the controller, using the
ofp_action::set_action_output()?

Thank you very much

2011/10/17 Murphy McCauley 

> Assuming you're installing a route along multiple switches, all of them
> except maybe one should probably have an empty (0x) buffer_id.  This
> doesn't seem like it should be the problem.
>
> I can't even hazard a guess without knowing more about the situation.
>
> What version of NOX are you running?
> What kind of switch?
> What does the NOX log show?
> Can you provide a capture of the OpenFlow traffic between a switch that
> sends an error and the controller?
>
> -- Murphy
>
> On Oct 17, 2011, at 6:33 AM, andrea simeoni wrote:
>
> > Hi guys,
> >
> > I'm trying to run the simplerouting component, and found that when
> installing the route it receives "Malformed packet error" messages back from
> the switches.
> > The same happens when calling send_openflow_packet(..).  If i go in
> wireshark to analyse the controller->switches openflow packets, I find that
> the field buffer-id has "None" value in both cases.
> >
> > Any suggestions? How can I make things working properly?
> >
> > --
> > Andrea Simeoni
> > ___
> > nox-dev mailing list
> > nox-dev@noxrepo.org
> > http://noxrepo.org/mailman/listinfo/nox-dev
>
>


-- 
Andrea Simeoni
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] problem --> nox|ERR:Application 'python' description not found.

2011-10-17 Thread Murphy McCauley
0.5 is very old.  If you don't have a specific reason not to, you should 
probably be using the destiny branch from the git repository.  For details see:
http://noxrepo.org/noxwiki/index.php/NOX_Installation

It does seem strange that you are getting this message even though you haven't 
specified any applications to run.

But the most likely scenario is that you've built NOX without Python.  The most 
common reason for this on old versions of NOX is because Twisted is not 
available.  If you look in the config.log, you might notice messages about 
Python being disabled or not found.  It's also possible that this old version 
of NOX requires arguments to ./configure to turn Python on -- I don't remember 
when it started being the default.  You could look at "./configure --help".

Hope that helps.

-- Murphy

On Oct 17, 2011, at 6:48 AM, RG_gmail wrote:

> Hi all,
>  
> I have launched “nox_core –v –I pctp:6633”
>  
> The first message I received was “nox|INFO:Starting noc_core 
> ($HOME/.libs/lt-nox_core)”   then the second was “nox|ERR:Application 
> 'python' description not found.”
>  
> I’m at an initial condition, I can’t understand why it’s answered me so cause 
> I’ve tried to follow all the instructions shown at the site.
>  
> I’ve installed nox_core 0.5.
>  
> Thanks in advance
>  
>  
>  
>  
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev

___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] How use "send_openflow_packet(indpid, pie.buffer_id, const ofp_action_header actions[] ...)"

2011-10-17 Thread Murphy McCauley
On first glance, yes, that looks correct.  Then just cast arrbuff.data() to the 
appropriate type and pass it as the actions parameter.

-- Murphy

On Oct 17, 2011, at 5:28 AM, andrea simeoni wrote:

> Hi guys,
> 
> I'm trying to instruct a switch to send a buffered packet out of a port. Then 
> I'm trying to use the function "send_openflow_packet(indpid, pie.buffer_id, 
> const ofp_action_header actions[] ...)".  If I start from an 
> "ofp_action_list" how can I get the correct "ofp_action_header []"?
> I tried the following code: 
> 
>  ofp_action_list* act_list=new ofp_action_list(); 
>  ofp_action* act = new ofp_action(); 
> 
>  act->set_action_output(2, 0); // output on port 2
>  act_list->action_list.push_back(*act);
>  
> Array_buffer arrbuff(act_list->mem_size());
> act_list->pack(arrbuff.data());
> 
> It's correct? What is the correct "ofp_action_header []" parameter to pass to 
> the function?
> 
> Thank you
> -- 
> Andrea Simeoni
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev

___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[nox-dev] problem --> nox|ERR:Application 'python' description not found.

2011-10-17 Thread RG_gmail
Hi all,

 

I have launched "nox_core -v -I pctp:6633"

 

The first message I received was "nox|INFO:Starting noc_core
($HOME/.libs/lt-nox_core)"   then the second was "nox|ERR:Application
'python' description not found."

 

I'm at an initial condition, I can't understand why it's answered me so
cause I've tried to follow all the instructions shown at the site.

 

I've installed nox_core 0.5.

 

Thanks in advance

 

 

 

 

___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Bugs in the send_openflow_command(..) and send_openflow_packet(..)

2011-10-17 Thread Murphy McCauley
Assuming you're installing a route along multiple switches, all of them except 
maybe one should probably have an empty (0x) buffer_id.  This doesn't 
seem like it should be the problem.

I can't even hazard a guess without knowing more about the situation.

What version of NOX are you running?
What kind of switch?
What does the NOX log show?
Can you provide a capture of the OpenFlow traffic between a switch that sends 
an error and the controller?

-- Murphy

On Oct 17, 2011, at 6:33 AM, andrea simeoni wrote:

> Hi guys,
> 
> I'm trying to run the simplerouting component, and found that when installing 
> the route it receives "Malformed packet error" messages back from the 
> switches.
> The same happens when calling send_openflow_packet(..).  If i go in wireshark 
> to analyse the controller->switches openflow packets, I find that the field 
> buffer-id has "None" value in both cases.
> 
> Any suggestions? How can I make things working properly?
> 
> -- 
> Andrea Simeoni
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev

___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Sending Entire packet to NOX contoller

2011-10-17 Thread Murphy McCauley
The problem is that this isn't true anymore.  Since OpenFlow 0.9 or 1.0, you 
should set it to 0x instead of 0.  0 does exactly what it seems like it 
should -- send 0 bytes of data.

-- Murphy

On Oct 17, 2011, at 4:39 AM, ali ahmad wrote:

> Hi all,
> 
> I have a query that how we can instruct the switch to send the entire packet 
> rather i found solution to this as in
> 
> "To instruct the switch to send the entire packet to NOX, we have to make 
> some changes to src/lib/openflow.cc. The following statement 
> osc.miss_send_len = htons(OFP_DEFAULT_MISS_SEND_LEN);
> has to be changed to 
> osc.miss_send_len = htons(0);"(1)
> But when i changed the parameter in the openflow.cc file and recompiled the 
> NOX it has started dropping the packet giving the error packet to short. My 
> question is that by sending entire packet do we mean sending application 
> level data..
> 
> Regards,
> 
> Ali Ahmad
>  
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev

___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[nox-dev] Bugs in the send_openflow_command(..) and send_openflow_packet(..)

2011-10-17 Thread andrea simeoni
Hi guys,

I'm trying to run the simplerouting component, and found that when
installing the route it receives "Malformed packet error" messages back from
the switches.
The same happens when calling send_openflow_packet(..).  If i go in
wireshark to analyse the controller->switches openflow packets, I find that
the field buffer-id has "None" value in both cases.

Any suggestions? How can I make things working properly?

-- 
Andrea Simeoni
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[nox-dev] How use "send_openflow_packet(indpid, pie.buffer_id, const ofp_action_header actions[] ...)"

2011-10-17 Thread andrea simeoni
Hi guys,

I'm trying to instruct a switch to send a buffered packet out of a port.
Then I'm trying to use the function "send_openflow_packet(indpid,
pie.buffer_id, const ofp_action_header actions[] ...)".  If I start from an
"ofp_action_list" how can I get the correct "ofp_action_header []"?
I tried the following code:

 ofp_action_list* act_list=new ofp_action_list();
 ofp_action* act = new ofp_action();

 act->set_action_output(2, 0); // output on port 2
 act_list->action_list.push_back(*act);

Array_buffer arrbuff(act_list->mem_size());
act_list->pack(arrbuff.data());

It's correct? What is the correct "ofp_action_header []" parameter to pass
to the function?

Thank you
-- 
Andrea Simeoni
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[nox-dev] Sending Entire packet to NOX contoller

2011-10-17 Thread ali ahmad

Hi all,

I have a query that how we can instruct the switch to send the entire packet 
rather i found solution to this as in

"To instruct the switch to send the entire packet to NOX, we have to make some 
changes to src/lib/openflow.cc.  The following statement

osc.miss_send_len = htons(OFP_DEFAULT_MISS_SEND_LEN);

has to be changed to

osc.miss_send_len = htons(0);"(1)
But when i changed the parameter in the openflow.cc file and recompiled the NOX 
it has started dropping the packet giving the error packet to short. My 
question is that by sending entire packet do we mean sending application level 
data..

Regards,

Ali Ahmad
 
  ___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev